@mindly/ui-components 5.41.0 → 5.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -13,7 +13,7 @@ import{jsx as e,jsxs as n,Fragment as t}from"react/jsx-runtime";import r,{css as
13
13
  Licensed under the MIT License (MIT), see
14
14
  http://jedwatson.github.io/classnames
15
15
  */
16
- Nc=Ic,function(){var e={}.hasOwnProperty;function n(){for(var e="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(e=r(e,t(i)))}return e}function t(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var i="";for(var o in t)e.call(t,o)&&t[o]&&(i=r(i,o));return i}function r(e,n){return n?e?e+" "+n:e+n:e}Nc.exports?(n.default=n,Nc.exports=n):window.classNames=n}();var Fc,Rc,Vc=Ic.exports,Gc=((Fc={})[Us.Title48Bold]="text-5xl/[120%] font-bold font-title tracking-normal",Fc[Us.Title48Semi]="text-5xl font-semibold font-title tracking-normal",Fc[Us.Title32Semi]="text-3.5xl font-semibold font-title tracking-normal",Fc[Us.Title28Semi]="text-2.5xl font-semibold font-title tracking-normal",Fc[Us.Title24Semi]="text-2xl/[140%] font-semibold font-title tracking-normal",Fc[Us.Title20Semi]="text-xl/[140%] font-semibold font-title tracking-normal",Fc[Us.Text48Semi]="text-5xl/[120%] font-semibold",Fc[Us.Text32Semi]="text-3.5xl font-semibold",Fc[Us.Text24Semi]="text-2xl/[140%] font-semibold",Fc[Us.Text20Semi]="text-xl/[140%] font-semibold",Fc[Us.Text18Regular]="text-lg/[150%]",Fc[Us.Text18Semi]="text-lg/[150%] font-semibold",Fc[Us.Text16Semi]="text-base/[150%] font-semibold",Fc[Us.Text16Regular]="text-base/[150%]",Fc[Us.Text15Semi]="text-sl font-semibold",Fc[Us.Text15Regular]="text-sl",Fc[Us.Text14Semi]="text-sm/[140%] font-semibold",Fc[Us.Text14Regular]="text-sm/[140%]",Fc[Us.Text13Semi]="text-xm font-semibold",Fc[Us.Text13Regular]="text-xm",Fc[Us.Text12Regular]="text-xs/[120%]",Fc[Us.Tabbar10Medium]="text-lm font-medium",Fc),Wc={left:"text-left",right:"text-right",center:"text-center"},Yc={100:"opacity-100",65:"opacity-65",50:"opacity-50",45:"opacity-45",35:"opacity-35",30:"opacity-30",15:"opacity-15",10:"opacity-10",8:"opacity-8",6:"opacity-6"},Uc=a.memo((function(n){var t=n.variant,r=void 0===t?Us.Text16Regular:t,i=n.align,o=void 0===i?"left":i,a=n.opacity,l=void 0===a?100:a,s=n.isAppearCase,c=void 0!==s&&s,d=n.className,u=void 0===d?"":d,f=n.children;return e("div",ce({className:Vc("text-typography-typography-primary",Gc[r],Wc[o],Yc[l],{uppercase:c},u)},{children:f}))})),Kc=r(S)(Rc||(Rc=he(["\n background: #ffffff !important;\n display: flex;\n justify-content: center;\n\n ion-toolbar {\n --background: #ffffff !important;\n --padding-bottom: 10px;\n --padding-top: 10px;\n --padding-start: 20px;\n --padding-end: 20px;\n --border-width: 0;\n max-width: ",";\n padding: 0 !important;\n }\n\n &.bottomSaveArea {\n ion-toolbar {\n --padding-bottom: calc(10px + var(--ion-safe-area-bottom));\n }\n }\n\n .controls {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n }\n\n &.transparent {\n background: transparent;\n\n ion-toolbar {\n --background: transparent;\n }\n }\n"],["\n background: #ffffff !important;\n display: flex;\n justify-content: center;\n\n ion-toolbar {\n --background: #ffffff !important;\n --padding-bottom: 10px;\n --padding-top: 10px;\n --padding-start: 20px;\n --padding-end: 20px;\n --border-width: 0;\n max-width: ",";\n padding: 0 !important;\n }\n\n &.bottomSaveArea {\n ion-toolbar {\n --padding-bottom: calc(10px + var(--ion-safe-area-bottom));\n }\n }\n\n .controls {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n }\n\n &.transparent {\n background: transparent;\n\n ion-toolbar {\n --background: transparent;\n }\n }\n"])),D("desktop")||D("tablet")?"410px":"100%"),qc=a.memo((function(n){var t=n.children,r=n.transparent,i=n.bottomSaveArea,o=void 0===i||i,a=n.borderTop;return e(Kc,ce({mode:"ios",className:Vc("ion-no-border",{"border-t-[1px] border-t-solid border-t-skeleton-color":void 0!==a&&a},{transparent:r},{bottomSaveArea:o})},{children:e(M,ce({mode:"ios"},{children:t}))}))}));var Jc,Zc,_c,$c=r.div(Jc||(Jc=he(["\n border-radius: ",";\n background-color: ",";\n flex-grow: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n border: 1px solid rgb(var(--borders-divider) / 0.1);\n background-clip: padding-box;\n\n &.small {\n width: 40px;\n height: 40px;\n }\n\n &.error {\n background-color: #28bfa1;\n }\n\n .avatar-loader {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n }\n\n .empty-icon {\n color: #fff;\n width: 24px;\n height: 24px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n .avatar-img {\n width: 100%;\n height: 100%;\n\n &::part(image) {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n &.medium {\n width: 72px;\n height: 72px;\n\n .empty-icon {\n width: 43px;\n height: 43px;\n }\n }\n"],["\n border-radius: ",";\n background-color: ",";\n flex-grow: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n border: 1px solid rgb(var(--borders-divider) / 0.1);\n background-clip: padding-box;\n\n &.small {\n width: 40px;\n height: 40px;\n }\n\n &.error {\n background-color: #28bfa1;\n }\n\n .avatar-loader {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n }\n\n .empty-icon {\n color: #fff;\n width: 24px;\n height: 24px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n .avatar-img {\n width: 100%;\n height: 100%;\n\n &::part(image) {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n &.medium {\n width: 72px;\n height: 72px;\n\n .empty-icon {\n width: 43px;\n height: 43px;\n }\n }\n"])),(function(e){switch(null==e?void 0:e.round){case"circle":default:return"50%";case"drop":return"00% 50% 50% 50%;"}}),(function(e){return"drop"!==e.round||e.isLoading?void 0:"#212121"}));function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ed.apply(this,arguments)}function nd(e){return o.createElement("svg",ed({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Zc||(Zc=o.createElement("circle",{cx:12,cy:7,r:4,stroke:"currentColor",strokeWidth:1.5})),_c||(_c=o.createElement("path",{d:"M4 18a3 3 0 013-3h10a3 3 0 013 3v0a3 3 0 01-3 3H7a3 3 0 01-3-3v0z",stroke:"currentColor",strokeWidth:1.5})))}var td,rd,id,od=r(B)(td||(td=he(["\n margin: 0;\n padding: 0;\n"],["\n margin: 0;\n padding: 0;\n"]))),ad=a.memo((function(n){var t=n.animated,r=void 0===t||t,i=n.className,o=void 0===i?"":i,a=n.style;return e(od,{animated:r,className:o,style:void 0===a?{}:a})})),ld=a.memo((function(t){var r=t.variant,i=void 0===r?"small":r,o=t.round,l=void 0===o?"circle":o,d=t.className,u=t.src,f=t.alt,p=t.showSkeleton,g=pe(a.useState(!0),2),h=g[0],v=g[1],A=pe(a.useState(!1),2),m=A[0],w=A[1];s((function(){w(!u&&!p)}),[u,p]);var x=c((function(){w(!0),v(!1)}),[]);return n($c,ce({className:"".concat(i," ").concat(m&&"error"),round:l,isLoading:h},{children:[(h||p)&&!m&&e(ad,{className:"avatar-loader"}),m&&e(nd,{className:"empty-icon"}),!m&&e(R,{className:"avatar-img ".concat(d),src:u,alt:f,onIonImgDidLoad:function(){w(!1),v(!1)},onIonError:x,onIonImgWillLoad:function(){w(!1),v(!0)}})]}))})),sd=r(V)(rd||(rd=he(["\n margin: 0;\n --padding-top: 10px;\n --padding-bottom: 10px;\n --padding-end: 20px;\n --padding-start: 20px;\n --border-radius: 40px;\n --color: var(--buttons-btn-text);\n --background: var(--buttons-btn-primary);\n --background-focused: var(--buttons-btn-primary);\n --background-hover: var(--buttons-btn-primary);\n --background-activated: var(--buttons-btn-pressed);\n --background-focused-opacity: 1;\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n\n font-weight: 600;\n font-size: 14px;\n\n min-height: 40px;\n\n &.loading {\n --color: transparent;\n }\n\n & ion-spinner {\n width: 20px;\n height: 20px;\n --color: var(--buttons-btn-text);\n }\n\n &.full-width {\n width: 100%;\n }\n\n &.button-small {\n min-height: 30px;\n --padding-top: 5px;\n --padding-bottom: 5px;\n --padding-end: 16px;\n --padding-start: 16px;\n\n font-size: 14px;\n }\n\n &.button-large {\n --padding-top: 14px;\n --padding-bottom: 14px;\n\n font-size: 16px;\n min-height: 52px;\n\n & ion-spinner {\n width: 24px;\n height: 24px;\n }\n }\n\n &.button-outline {\n --color: var(--buttons-btn-primary);\n --color-hover: var(--buttons-btn-primary);\n --color-focused: var(--buttons-btn-primary);\n --color-activated: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: none;\n --background-hover: none;\n --background-activated: var(--color-background-anti-flash-50);\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n --background-focused-opacity: 1;\n --border-width: 2px;\n --border-color: var(--buttons-btn-primary);\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-clear {\n --color: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: transparent;\n --background-hover: transparent;\n --background-activated: transparent;\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-disabled.loading {\n opacity: 1;\n }\n\n &::part(native) {\n .button-inner {\n padding: 20px;\n }\n }\n"],["\n margin: 0;\n --padding-top: 10px;\n --padding-bottom: 10px;\n --padding-end: 20px;\n --padding-start: 20px;\n --border-radius: 40px;\n --color: var(--buttons-btn-text);\n --background: var(--buttons-btn-primary);\n --background-focused: var(--buttons-btn-primary);\n --background-hover: var(--buttons-btn-primary);\n --background-activated: var(--buttons-btn-pressed);\n --background-focused-opacity: 1;\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n\n font-weight: 600;\n font-size: 14px;\n\n min-height: 40px;\n\n &.loading {\n --color: transparent;\n }\n\n & ion-spinner {\n width: 20px;\n height: 20px;\n --color: var(--buttons-btn-text);\n }\n\n &.full-width {\n width: 100%;\n }\n\n &.button-small {\n min-height: 30px;\n --padding-top: 5px;\n --padding-bottom: 5px;\n --padding-end: 16px;\n --padding-start: 16px;\n\n font-size: 14px;\n }\n\n &.button-large {\n --padding-top: 14px;\n --padding-bottom: 14px;\n\n font-size: 16px;\n min-height: 52px;\n\n & ion-spinner {\n width: 24px;\n height: 24px;\n }\n }\n\n &.button-outline {\n --color: var(--buttons-btn-primary);\n --color-hover: var(--buttons-btn-primary);\n --color-focused: var(--buttons-btn-primary);\n --color-activated: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: none;\n --background-hover: none;\n --background-activated: var(--color-background-anti-flash-50);\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n --background-focused-opacity: 1;\n --border-width: 2px;\n --border-color: var(--buttons-btn-primary);\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-clear {\n --color: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: transparent;\n --background-hover: transparent;\n --background-activated: transparent;\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-disabled.loading {\n opacity: 1;\n }\n\n &::part(native) {\n .button-inner {\n padding: 20px;\n }\n }\n"]))),cd=function(t){var r=t.children,i=t.fullWidth,o=void 0!==i&&i,a=t.className,l=void 0===a?"":a,s=t.routerLink,c=t.onClick,d=t.isLoading,u=t.disabled,f=t.icon,p=t.iconPosition,g=void 0===p?"start":p,h=de(t,["children","fullWidth","className","routerLink","onClick","isLoading","disabled","icon","iconPosition"]);return e(sd,ce({className:"relative ".concat(l," ").concat(o?"full-width":""," ").concat(d?"loading":""),routerLink:s,onClick:c},h,{disabled:!!u||!!d,mode:"ios"},{children:n("div",ce({className:Vc("flex justify-center items-center w-full relative",{"gap-2.5":"center"===g})},{children:[!!f&&e("div",ce({className:Vc("flex items-center justify-center",{"absolute left-0 top-1/2 -translate-y-1/2":"center"!==g},{"w-6 h-6":"small"!==h.size},{"w-5 h-5":"small"===h.size},{invisible:d})},{children:f})),d&&e(F,{name:"crescent",className:"absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2"}),e("div",ce({className:Vc({"flex-1":"center"!==g},{"pl-7":"center"!==g&&"small"===h.size&&!o&&!!f},{"pl-8":"center"!==g&&"small"!==h.size&&!o&&!!f})},{children:r}))]}))}))},dd=r(G)(id||(id=he(["\n --padding-start: 20px;\n --padding-end: 20px;\n\n div& {\n padding-left: 20px;\n padding-right: 20px;\n ","\n }\n\n div.flex-container& {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n\n &::part(scroll) {\n ","\n }\n\n &.flex-container {\n &::part(scroll) {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n }\n"],["\n --padding-start: 20px;\n --padding-end: 20px;\n\n div& {\n padding-left: 20px;\n padding-right: 20px;\n ","\n }\n\n div.flex-container& {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n\n &::part(scroll) {\n ","\n }\n\n &.flex-container {\n &::part(scroll) {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n }\n"])),(D("desktop")||D("tablet")&&!D("capacitor"))&&"\n max-width: 410px;\n margin: 0 auto;\n ",(function(e){return e.flexGapInPx}),(D("desktop")||D("tablet")&&!D("hybrid"))&&"\n max-width: 410px;\n margin: 0 auto;\n ",(function(e){return e.flexGapInPx})),ud=f((function(n,t){var r=n.className,i=n.children,o=n.scrollEvents,a=n.onIonScroll,l=n.onIonScrollStart,s=n.style,c=n.as,d=n.isFlexContainer,u=void 0!==d&&d,f=n.flexGapInPx,p=void 0===f?0:f;return e(dd,ce({as:c,ref:t,className:Vc({"flex-container":u},r),flexGapInPx:p,scrollEvents:o,onIonScroll:a,onIonScrollStart:l,style:s},{children:i}))}));ud.displayName="Container_v2";var fd,pd=r.div(fd||(fd=he(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n"]))),gd=a.memo((function(n){var t,r=n.name,i=n.className,o=void 0===i?"":i;return e(A,ce({fallback:e(ad,{style:{width:"24px",height:"15px"}})},{children:e(pd,ce({className:o},{children:null!==(t=function(e){if(!e)return null;"uk"===e&&(e="ua");var n=e.toUpperCase().split("").map((function(e){return 127397+e.charCodeAt(0)}));return String.fromCodePoint.apply(String,ge([],pe(n),!1))}(r))&&void 0!==t?t:"🏳️"}))}))})),hd=new Map,vd=new WeakMap,Ad=0,md=void 0;function wd(e){return Object.keys(e).sort().filter((n=>void 0!==e[n])).map((n=>{return`${n}_${"root"===n?(t=e.root,t?(vd.has(t)||(Ad+=1,vd.set(t,Ad.toString())),vd.get(t)):"0"):e[n]}`;var t})).toString()}function xd(e,n,t={},r=md){if(void 0===window.IntersectionObserver&&void 0!==r){const i=e.getBoundingClientRect();return n(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof t.threshold?t.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:o,elements:a}=function(e){const n=wd(e);let t=hd.get(n);if(!t){const r=new Map;let i;const o=new IntersectionObserver((n=>{n.forEach((n=>{var t;const o=n.isIntersecting&&i.some((e=>n.intersectionRatio>=e));e.trackVisibility&&void 0===n.isVisible&&(n.isVisible=o),null==(t=r.get(n.target))||t.forEach((e=>{e(o,n)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),t={id:n,observer:o,elements:r},hd.set(n,t)}return t}(t),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(n),o.observe(e),function(){l.splice(l.indexOf(n),1),0===l.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),hd.delete(i))}}var bd,yd=r.div(bd||(bd=he(["\n position: relative;\n\n picture {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n .skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n }\n"],["\n position: relative;\n\n picture {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n .skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n }\n"]))),Pd=a.memo((function(t){var r=t.width,i=t.height,l=t.src,s=t.srcType,d=t.alt,u=t.className,f=void 0===u?"":u,p=function({threshold:e,delay:n,trackVisibility:t,rootMargin:r,root:i,triggerOnce:a,skip:l,initialInView:s,fallbackInView:c,onChange:d}={}){var u;const[f,p]=o.useState(null),g=o.useRef(),[h,v]=o.useState({inView:!!s,entry:void 0});g.current=d,o.useEffect((()=>{if(l||!f)return;let o;return o=xd(f,((e,n)=>{v({inView:e,entry:n}),g.current&&g.current(e,n),n.isIntersecting&&a&&o&&(o(),o=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:t,delay:n},c),()=>{o&&o()}}),[Array.isArray(e)?e.toString():e,f,i,r,a,l,t,c,n]);const A=null==(u=h.entry)?void 0:u.target,m=o.useRef();f||!A||a||l||m.current===A||(m.current=A,v({inView:!!s,entry:void 0}));const w=[p,h.inView,h.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({triggerOnce:!0,rootMargin:"200px 0px"}),g=p.ref,h=p.inView,v=pe(a.useState(!0),2),A=v[0],m=v[1],w=c((function(){m(!1)}),[]);return n(yd,ce({ref:g,style:{width:"".concat(r,"px"),height:"".concat(i,"px")},className:f},{children:[A&&e(ad,{className:"skeleton"}),h?n("picture",ce({onLoad:w},{children:[(!!(null==l?void 0:l.webp)||!!(null==l?void 0:l.webp2x))&&e("source",{srcSet:"".concat((null==l?void 0:l.webp)?l.webp+" 1x,":""," ").concat((null==l?void 0:l.webp2x)?l.webp2x+" 2x":""),type:"image/webp"}),e("source",{srcSet:"".concat((null==l?void 0:l.src)?l.src+" 1x,":""," ").concat((null==l?void 0:l.src2x)?l.src2x+" 2x":""),type:s}),e("img",{src:null==l?void 0:l.src,loading:"lazy",alt:d})]})):null]}))})),Cd=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,zd=e=>!e||"object"!=typeof e||0===Object.keys(e).length;function Od(e,n){e.forEach((function(e){Array.isArray(e)?Od(e,n):n.push(e)}))}function Bd(e){let n=[];return Od(e,n),n}var Dd=(...e)=>Bd(e).filter(Boolean),Hd=(e,n)=>{let t={},r=Object.keys(e),i=Object.keys(n);for(let o of r)if(i.includes(o)){let r=e[o],i=n[o];"object"==typeof r&&"object"==typeof i?t[o]=Hd(r,i):Array.isArray(r)||Array.isArray(i)?t[o]=Dd(i,r):t[o]=i+" "+r}else t[o]=e[o];for(let e of i)r.includes(e)||(t[e]=n[e]);return t},Xd=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e;function kd(){for(var e,n,t=0,r="";t<arguments.length;)(e=arguments[t++])&&(n=Ed(e))&&(r&&(r+=" "),r+=n);return r}function Ed(e){if("string"==typeof e)return e;for(var n,t="",r=0;r<e.length;r++)e[r]&&(n=Ed(e[r]))&&(t&&(t+=" "),t+=n);return t}var Ld="-";function Td(e){var n=function(e){var n=e.theme,t=e.prefix,r={nextPart:new Map,validators:[]},i=function(e,n){if(!n)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?n+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],r=e[1];return[n+t,r]}))):e}))]}))}(Object.entries(e.classGroups),t);return i.forEach((function(e){var t=e[0];Md(e[1],r,t,n)})),r}(e),t=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,i=void 0===r?{}:r;return{getClassGroupId:function(e){var t=e.split(Ld);return""===t[0]&&1!==t.length&&t.shift(),Qd(t,n)||function(e){if(jd.test(e)){var n=jd.exec(e)[1],t=n?.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}}(e)},getConflictingClassGroupIds:function(e,n){var r=t[e]||[];return n&&i[e]?[].concat(r,i[e]):r}}}function Qd(e,n){if(0===e.length)return n.classGroupId;var t=e[0],r=n.nextPart.get(t),i=r?Qd(e.slice(1),r):void 0;if(i)return i;if(0!==n.validators.length){var o=e.join(Ld);return n.validators.find((function(e){return(0,e.validator)(o)}))?.classGroupId}}var jd=/^\[(.+)\]$/;function Md(e,n,t,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void Md(e(r),n,t,r):void n.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach((function(e){var i=e[0];Md(e[1],Nd(n,i),t,r)}))}else{(""===e?n:Nd(n,e)).classGroupId=t}}))}function Nd(e,n){var t=e;return n.split(Ld).forEach((function(e){t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)})),t}function Sd(e){if(e<1)return{get:function(){},set:function(){}};var n=0,t=new Map,r=new Map;function i(i,o){t.set(i,o),++n>e&&(n=0,r=t,t=new Map)}return{get:function(e){var n=t.get(e);return void 0!==n?n:void 0!==(n=r.get(e))?(i(e,n),n):void 0},set:function(e,n){t.has(e)?t.set(e,n):i(e,n)}}}var Id="!";function Fd(e){var n=e.separator||":",t=1===n.length,r=n[0],i=n.length;return function(e){for(var o,a=[],l=0,s=0,c=0;c<e.length;c++){var d=e[c];if(0===l){if(d===r&&(t||e.slice(c,c+i)===n)){a.push(e.slice(s,c)),s=c+i;continue}if("/"===d){o=c;continue}}"["===d?l++:"]"===d&&l--}var u=0===a.length?e:e.substring(s),f=u.startsWith(Id);return{modifiers:a,hasImportantModifier:f,baseClassName:f?u.substring(1):u,maybePostfixModifierPosition:o&&o>s?o-s:void 0}}}var Rd=/\s+/;function Vd(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,i,o,a=function(e){var t=n[0],s=n.slice(1).reduce((function(e,n){return n(e)}),t());return r=function(e){return{cache:Sd(e.cacheSize),splitModifiers:Fd(e),...Td(e)}}(s),i=r.cache.get,o=r.cache.set,a=l,l(e)};function l(e){var n=i(e);if(n)return n;var t=function(e,n){var t=n.splitModifiers,r=n.getClassGroupId,i=n.getConflictingClassGroupIds,o=new Set;return e.trim().split(Rd).map((function(e){var n=t(e),i=n.modifiers,o=n.hasImportantModifier,a=n.baseClassName,l=n.maybePostfixModifierPosition,s=r(l?a.substring(0,l):a),c=Boolean(l);if(!s){if(!l)return{isTailwindClass:!1,originalClassName:e};if(!(s=r(a)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var n=[],t=[];return e.forEach((function(e){"["===e[0]?(n.push.apply(n,t.sort().concat([e])),t=[]):t.push(e)})),n.push.apply(n,t.sort()),n}(i).join(":");return{isTailwindClass:!0,modifierId:o?d+Id:d,classGroupId:s,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var n=e.modifierId,t=e.classGroupId,r=e.hasPostfixModifier,a=n+t;return!o.has(a)&&(o.add(a),i(t,r).forEach((function(e){return o.add(n+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return o(e,t),t}return function(){return a(kd.apply(null,arguments))}}function Gd(e){var n=function(n){return n[e]||[]};return n.isThemeGetter=!0,n}var Wd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yd=/^\d+\/\d+$/,Ud=new Set(["px","full","screen"]),Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jd=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Zd(e){return ru(e)||Ud.has(e)||Yd.test(e)||_d(e)}function _d(e){return du(e,"length",uu)}function $d(e){return du(e,"size",fu)}function eu(e){return du(e,"position",fu)}function nu(e){return du(e,"url",pu)}function tu(e){return du(e,"number",ru)}function ru(e){return!Number.isNaN(Number(e))}function iu(e){return e.endsWith("%")&&ru(e.slice(0,-1))}function ou(e){return gu(e)||du(e,"number",gu)}function au(e){return Wd.test(e)}function lu(){return!0}function su(e){return Kd.test(e)}function cu(e){return du(e,"",hu)}function du(e,n,t){var r=Wd.exec(e);return!!r&&(r[1]?r[1]===n:t(r[2]))}function uu(e){return qd.test(e)}function fu(){return!1}function pu(e){return e.startsWith("url(")}function gu(e){return Number.isInteger(Number(e))}function hu(e){return Jd.test(e)}function vu(){var e=Gd("colors"),n=Gd("spacing"),t=Gd("blur"),r=Gd("brightness"),i=Gd("borderColor"),o=Gd("borderRadius"),a=Gd("borderSpacing"),l=Gd("borderWidth"),s=Gd("contrast"),c=Gd("grayscale"),d=Gd("hueRotate"),u=Gd("invert"),f=Gd("gap"),p=Gd("gradientColorStops"),g=Gd("gradientColorStopPositions"),h=Gd("inset"),v=Gd("margin"),A=Gd("opacity"),m=Gd("padding"),w=Gd("saturate"),x=Gd("scale"),b=Gd("sepia"),y=Gd("skew"),P=Gd("space"),C=Gd("translate"),z=function(){return["auto",au,n]},O=function(){return[au,n]},B=function(){return["",Zd]},D=function(){return["auto",ru,au]},H=function(){return["","0",au]},X=function(){return[ru,tu]},k=function(){return[ru,au]};return{cacheSize:500,theme:{colors:[lu],spacing:[Zd],blur:["none","",su,au],brightness:X(),borderColor:[e],borderRadius:["none","","full",su,au],borderSpacing:O(),borderWidth:B(),contrast:X(),grayscale:H(),hueRotate:k(),invert:H(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[iu,_d],inset:z(),margin:z(),opacity:X(),padding:O(),saturate:X(),scale:X(),sepia:H(),skew:k(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",au]}],container:["container"],columns:[{columns:[su]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[au])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ou]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",au]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ou]}],"grid-cols":[{"grid-cols":[lu]}],"col-start-end":[{col:["auto",{span:["full",ou]},au]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[lu]}],"row-start-end":[{row:["auto",{span:[ou]},au]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",au]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",au]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",au,n]}],"min-w":[{"min-w":["min","max","fit",au,Zd]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[su]},su,au]}],h:[{h:[au,n,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",au,Zd]}],"max-h":[{"max-h":[au,n,"min","max","fit"]}],"font-size":[{text:["base",su,_d]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tu]}],"font-family":[{font:[lu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",au]}],"line-clamp":[{"line-clamp":["none",ru,tu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",au,Zd]}],"list-image":[{"list-image":["none",au]}],"list-style-type":[{list:["none","disc","decimal",au]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Zd]}],"underline-offset":[{"underline-offset":["auto",au,Zd]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",au]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",au]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[eu])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$d]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[au,Zd]}],"outline-w":[{outline:[Zd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Zd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",su,cu]}],"shadow-color":[{shadow:[lu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",su,au]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[w]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",au]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",au]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",au]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[ou,au]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[y]}],"skew-y":[{"skew-y":[y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",au]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",au]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",au]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zd,tu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Au=Object.prototype.hasOwnProperty,mu=new Set(["string","number","boolean"]);function wu(e,n,t){if(Au.call(e,n)&&!mu.has(typeof t)&&null!==t){if(Array.isArray(t)&&Array.isArray(e[n]))e[n]=e[n].concat(t);else if("object"==typeof t&&"object"==typeof e[n]){if(null===e[n])return void(e[n]=t);for(var r in t)wu(e[n],r,t[r])}}else e[n]=t}function xu(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return"function"==typeof e?Vd.apply(void 0,[vu,e].concat(t)):Vd.apply(void 0,[function(){return function(e,n){for(var t in n)wu(e,t,n[t]);return e}(vu(),e)}].concat(t))}var bu=Vd(vu),yu={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Pu=e=>e||void 0,Cu=(...e)=>Pu(Bd(e).filter(Boolean).join(" ")),zu=null,Ou={},Bu=!1,Du=(...e)=>n=>n.twMerge?((!zu||Bu)&&(Bu=!1,zu=zd(Ou)?bu:xu(Ou)),Pu(zu(Cu(e)))):Cu(e),Hu=(e,n)=>{for(let t in n)e.hasOwnProperty(t)?e[t]=Cu(e[t],n[t]):e[t]=n[t];return e},Xu=(e,n)=>{let{extend:t=null,slots:r={},variants:i={},compoundVariants:o=[],compoundSlots:a=[],defaultVariants:l={}}=e,s={...yu,...n},c=null!=t&&t.base?Cu(t.base,null==e?void 0:e.base):null==e?void 0:e.base,d=null!=t&&t.variants&&!zd(t.variants)?Hd(i,t.variants):i,u=null!=t&&t.defaultVariants&&!zd(t.defaultVariants)?{...t.defaultVariants,...l}:l;!zd(s.twMergeConfig)&&!((e,n)=>JSON.stringify(e)===JSON.stringify(n))(s.twMergeConfig,Ou)&&(Bu=!0,Ou=s.twMergeConfig);let f=zd(null==t?void 0:t.slots),p=zd(r)?{}:{base:Cu(null==e?void 0:e.base,f&&(null==t?void 0:t.base)),...r},g=f?p:Hu({...null==t?void 0:t.slots},zd(p)?{base:null==e?void 0:e.base}:p),h=e=>{if(zd(d)&&zd(r)&&f)return Du(c,null==e?void 0:e.class,null==e?void 0:e.className)(s);if(o&&!Array.isArray(o))throw new TypeError('The "compoundVariants" prop must be an array. Received: '+typeof o);if(a&&!Array.isArray(a))throw new TypeError('The "compoundSlots" prop must be an array. Received: '+typeof a);let n=(e,n,t=[],r)=>{let i=t;if("string"==typeof n)i=i.concat(Xd(n).split(" ").map((n=>`${e}:${n}`)));else if(Array.isArray(n))i=i.concat(n.reduce(((n,t)=>n.concat(`${e}:${t}`)),[]));else if("object"==typeof n&&"string"==typeof r)for(let t in n)if(n.hasOwnProperty(t)&&t===r){let o=n[t];if(o&&"string"==typeof o){let n=Xd(o);i[r]?i[r]=i[r].concat(n.split(" ").map((n=>`${e}:${n}`))):i[r]=n.split(" ").map((n=>`${e}:${n}`))}else Array.isArray(o)&&o.length>0&&(i[r]=o.reduce(((n,t)=>n.concat(`${e}:${t}`)),[]))}return i},i=(t,r=d,i=null,o=null)=>{var a;let l=r[t];if(!l||zd(l))return null;let c=null!=(a=null==o?void 0:o[t])?a:null==e?void 0:e[t];if(null===c)return null;let f=Cd(c),p=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||!0===s.responsiveVariants,g=null==u?void 0:u[t],h=[];if("object"==typeof f&&p)for(let[e,t]of Object.entries(f)){let r=l[t];"initial"!==e?Array.isArray(s.responsiveVariants)&&!s.responsiveVariants.includes(e)||(h=n(e,r,h,i)):g=t}let v=l[f]||l[Cd(g)];return"object"==typeof h&&"string"==typeof i&&h[i]?Hu(h,v):h.length>0?(h.push(v),h):v},l=(e,n)=>{if(!d||"object"!=typeof d)return null;let t=new Array;for(let r in d){let o=i(r,d,e,n),a="base"===e&&"string"==typeof o?o:o&&o[e];a&&(t[t.length]=a)}return t},p={};for(let n in e)void 0!==e[n]&&(p[n]=e[n]);let h=(n,t)=>{var r;let i="object"==typeof(null==e?void 0:e[n])?{[n]:null==(r=e[n])?void 0:r.initial}:{};return{...u,...p,...i,...t}},v=(e=[],n)=>{let t=[];for(let{class:r,className:i,...o}of e){let e=!0;for(let[t,r]of Object.entries(o)){let i=h(t,n);if(Array.isArray(r)){if(!r.includes(i[t])){e=!1;break}}else if(i[t]!==r){e=!1;break}}e&&(r&&t.push(r),i&&t.push(i))}return t},A=e=>{let n=v(o,e),r=v(null==t?void 0:t.compoundVariants,e);return Dd(r,n)},m=e=>{let n=A(e);if(!Array.isArray(n))return n;let t={};for(let e of n)if("string"==typeof e&&(t.base=Du(t.base,e)(s)),"object"==typeof e)for(let[n,r]of Object.entries(e))t[n]=Du(t[n],r)(s);return t},w=e=>{if(a.length<1)return null;let n={};for(let{slots:t=[],class:r,className:i,...o}of a){if(!zd(o)){let n=!0;for(let t of Object.keys(o)){let r=h(t,e)[t];if(void 0===r||(Array.isArray(o[t])?!o[t].includes(r):o[t]!==r)){n=!1;break}}if(!n)continue}for(let e of t)n[e]=n[e]||[],n[e].push([r,i])}return n};if(!zd(r)||!f){let e={};if("object"==typeof g&&!zd(g))for(let n of Object.keys(g))e[n]=e=>{var t,r;return Du(g[n],l(n,e),(null!=(t=m(e))?t:[])[n],(null!=(r=w(e))?r:[])[n],null==e?void 0:e.class,null==e?void 0:e.className)(s)};return e}return Du(c,d?Object.keys(d).map((e=>i(e,d))):null,A(),null==e?void 0:e.class,null==e?void 0:e.className)(s)};return h.variantKeys=(()=>{if(d&&"object"==typeof d)return Object.keys(d)})(),h.extend=t,h.base=c,h.slots=g,h.variants=d,h.defaultVariants=u,h.compoundSlots=a,h.compoundVariants=o,h},ku=Xu({base:"inline-flex justify-center items-center rounded-3xl",variants:{variant:{attention:"",neutral:"",warning:"",danger:"",success:"",brand:"",info:""},size:{S:"px-2 py-1 text-xs/[140%] font-semibold",M:"px-2.5 py-1 text-[13px]/[150%] font-semibold"},type:{default:"",accent:""}},compoundVariants:[{type:"default",variant:"attention",size:["S","M"],className:"bg-badges-attention-bg text-badges-attention-main"},{type:"default",variant:"success",size:["S","M"],className:"bg-badges-success-bg text-badges-success-main"},{type:"default",variant:"info",size:["S","M"],className:"bg-badges-info-bg text-badges-info-main"},{type:"default",variant:"warning",size:["S","M"],className:"bg-badges-warning-bg text-badges-warning-main"},{type:"default",variant:"neutral",size:["S","M"],className:"bg-badges-neutral-bg text-badges-neutral-main/50"},{type:"default",variant:"brand",size:["S","M"],className:""},{type:"accent",variant:"attention",size:["S","M"],className:"bg-badges-attention-main text-color-background-white"},{type:"accent",variant:"success",size:["S","M"],className:"bg-badges-success-main text-color-background-white"},{type:"accent",variant:"info",size:["S","M"],className:"bg-badges-info-main text-color-background-white"},{type:"accent",variant:"warning",size:["S","M"],className:"bg-badges-warning-main text-color-background-white"},{type:"accent",variant:"brand",size:["S","M"],className:"bg-badges-accent-main text-color-background-white"},{type:"accent",variant:"neutral",size:["S","M"],className:"bg-badges-neutral-main text-color-background-white"}],defaultVariants:{variant:"neutral",size:"S",type:"default"}}),Eu=o.forwardRef((function(n,t){var r=n.variant,i=n.size,a=void 0===i?"S":i,l=n.type,s=void 0===l?"default":l,c=n.children,d=n.className,u=de(n,["variant","size","type","children","className"]),f=o.useMemo((function(){return ku({type:s,size:a,className:d,variant:r})}),[r,a,s,d]);return e("span",ce({ref:t,className:f},u,{children:c}))})),Lu=o.memo(Eu),Tu=Xu({base:"",variants:{variant:{neutral:"bg-color-background-anti-flash-light rounded-[30px]",transparent:"bg-transparent rounded-[24px] border border-color-black border-opacity-35"},size:{M:"p-5",M4:"p-4"}},compoundVariants:[{variant:"neutral",size:["M"]},{variant:"transparent",size:["M4"]}]}),Qu=o.forwardRef((function(n,t){var r=n.variant,i=n.size,a=void 0===i?"M":i,l=n.children,s=n.className,c=de(n,["variant","size","children","className"]),d=o.useMemo((function(){return Tu({size:a,className:s,variant:r})}),[r,a,s]);return e("div",ce({ref:t,className:d},c,{children:l}))})),ju=o.memo(Qu),Mu="AppHeader_v2-module_appHeaderContainer__tuJkw",Nu="AppHeader_v2-module_appHeaderToolbar__U9asl";Ye(".AppHeader_v2-module_appHeaderContainer__tuJkw:after{background-image:none!important}.AppHeader_v2-module_appHeaderToolbar__U9asl{--padding-bottom:0;--padding-end:20px;--padding-start:20px;--padding-top:0;--background:#fff;--border-width:0!important;--border-style:none}.AppHeader_v2-module_appHeaderToolbar__U9asl.AppHeader_v2-module_buttons-first-slot__9-SNP,.AppHeader_v2-module_appHeaderToolbar__U9asl.AppHeader_v2-module_buttons-last-slot__AIuWx{margin:0}",{insertAt:"top"});var Su=function(n){var t=n.fullwidth,r=void 0!==t&&t,i=n.className,o=n.children,a=!r&&(D("desktop")||D("tablet"));return e(O,ce({className:Vc("bg-white shadow-none flex justify-center",i,Mu)},{children:e(M,ce({className:"".concat(a?"max-w-container":"max-w-full"," ").concat(Nu)},{children:o}))}))};function Iu(e,n,t){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function Fu(e,n){return e-n*Math.floor(e/n)}const Ru=1721426;function Vu(e,n,t,r){let i=(n=Wu(e,n))-1,o=-2;return t<=2?o=0:Gu(n)&&(o=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*t-362)/12+o+r)}function Gu(e){return e%4==0&&(e%100!=0||e%400==0)}function Wu(e,n){return"BC"===e?1-n:n}function Yu(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}const Uu={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 Ku{fromJulianDay(e){let n=e,t=n-Ru,r=Math.floor(t/146097),i=Fu(t,146097),o=Math.floor(i/36524),a=Fu(i,36524),l=Math.floor(a/1461),s=Fu(a,1461),c=Math.floor(s/365),d=400*r+100*o+4*l+c+(4!==o&&4!==c?1:0),[u,f]=Yu(d),p=n-Vu(u,f,1,1),g=2;n<Vu(u,f,3,1)?g=0:Gu(f)&&(g=1);let h=Math.floor((12*(p+g)+373)/367),v=n-Vu(u,f,h,1)+1;return new Uf(u,f,h,v)}toJulianDay(e){return Vu(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Uu[Gu(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Gu(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const qu={"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 Ju(e,n){return n=Pf(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function Zu(e,n){return e.calendar.identifier===n.calendar.identifier&&e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function _u(e,n){let t=e.calendar.toJulianDay(e),r=Math.ceil(t+1-function(e){let n=function(e){if(Intl.Locale){let n=sf.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&sf.set(e,n)),n}let n=e.split("-")[1];return"u"===n?void 0:n}(e);return n&&qu[n]||0}(n))%7;return r<0&&(r+=7),r}function $u(e){return bf(function(e){return xf(Date.now(),e)}(e))}function ef(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function nf(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let tf=null;function rf(){return null==tf&&(tf=(new Intl.DateTimeFormat).resolvedOptions().timeZone),tf}function of(e){return e.subtract({days:e.day-1})}function af(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function lf(e,n){let t=_u(e,n);return e.subtract({days:t})}const sf=new Map;function cf(e,n){return e&&n?e.compare(n)<=0?e:n:e||n}function df(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function uf(e){return ff(Wu((e=Pf(e,new Ku)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ff(e,n,t,r,i,o,a){let l=new Date;return l.setUTCHours(r,i,o,a),l.setUTCFullYear(e,n-1,t),l.getTime()}function pf(e,n){if("UTC"===n)return 0;if(e>0&&n===rf())return-6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:i,hour:o,minute:a,second:l}=hf(e,n);return ff(t,r,i,o,a,l,0)-1e3*Math.floor(e/1e3)}const gf=new Map;function hf(e,n){let t=gf.get(n);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:n,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),gf.set(n,t));let r=t.formatToParts(new Date(e)),i={};for(let e of r)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?1-i.year:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}const vf=864e5;function Af(e,n,t,r){return(t===r?[t]:[t,r]).filter((t=>function(e,n,t){let r=hf(t,n);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,n,t)))}function mf(e,n,t="compatible"){let r=yf(e);if("UTC"===n)return uf(r);if(n===rf()&&"compatible"===t){r=Pf(r,new Ku);let e=new Date,n=Wu(r.era,r.year);return e.setFullYear(n,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=uf(r),o=pf(i-vf,n),a=pf(i+vf,n),l=Af(r,n,i-o,i-a);if(1===l.length)return l[0];if(l.length>1)switch(t){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function wf(e,n,t="compatible"){return new Date(mf(e,n,t))}function xf(e,n){let t=pf(e,n),r=new Date(e+t),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),l=r.getUTCHours(),s=r.getUTCMinutes(),c=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new Zf(i,o,a,n,t,l,s,c,d)}function bf(e){return new Uf(e.calendar,e.era,e.year,e.month,e.day)}function yf(e,n){let t=0,r=0,i=0,o=0;if("timeZone"in e)({hour:t,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!n)return e;return n&&({hour:t,minute:r,second:i,millisecond:o}=n),new qf(e.calendar,e.era,e.year,e.month,e.day,t,r,i,o)}function Pf(e,n){if(e.calendar.identifier===n.identifier)return e;let t=n.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=n,r.era=t.era,r.year=t.year,r.month=t.month,r.day=t.day,Xf(r),r}function Cf(e,n,t){if(e instanceof Zf)return e.timeZone===n?e:function(e,n){let t=uf(e)-e.offset;return Pf(xf(t,n),e.calendar)}(e,n);return xf(mf(e,n,t),n)}const zf=36e5;function Of(e,n){let t=e.copy(),r="hour"in t?function(e,n){return e.hour+=n.hours||0,e.minute+=n.minutes||0,e.second+=n.seconds||0,e.millisecond+=n.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Qf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Qf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Qf(e.minute,60);let n=Math.floor(e.hour/24);return e.hour=Qf(e.hour,24),n}(e)}(t,n):0;Bf(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,Df(t),Hf(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,Df(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Df(e)}(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let i=t.calendar.getYearsInEra(t);if(t.year>i){var o,a;let e=null===(o=(a=t.calendar).isInverseEra)||void 0===o?void 0:o.call(a,t);t.year=i,t.month=e?1:t.calendar.getMonthsInYear(t),t.day=e?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let l=t.calendar.getMonthsInYear(t);return t.month>l&&(t.month=l,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function Bf(e,n){var t,r;(null===(t=(r=e.calendar).isInverseEra)||void 0===t?void 0:t.call(r,e))&&(n=-n),e.year+=n}function Df(e){for(;e.month<1;)Bf(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,Bf(e,1)}function Hf(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Xf(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Hf(e)}function kf(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function Ef(e,n){return Of(e,kf(n))}function Lf(e,n){let t=e.copy();return null!=n.era&&(t.era=n.era),null!=n.year&&(t.year=n.year),null!=n.month&&(t.month=n.month),null!=n.day&&(t.day=n.day),Xf(t),t}function Tf(e,n){let t=e.copy();var r;return null!=n.hour&&(t.hour=n.hour),null!=n.minute&&(t.minute=n.minute),null!=n.second&&(t.second=n.second),null!=n.millisecond&&(t.millisecond=n.millisecond),(r=t).millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23)),t}function Qf(e,n){let t=e%n;return t<0&&(t+=n),t}function jf(e,n,t,r){let i=e.copy();switch(n){case"era":{let n=e.calendar.getEras(),o=n.indexOf(e.era);if(o<0)throw new Error("Invalid era: "+e.era);o=Nf(o,t,0,n.length-1,null==r?void 0:r.round),i.era=n[o],Xf(i);break}case"year":var o,a;(null===(o=(a=i.calendar).isInverseEra)||void 0===o?void 0:o.call(a,i))&&(t=-t),i.year=Nf(e.year,t,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Nf(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":i.day=Nf(e.day,t,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+n)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Xf(i),i}function Mf(e,n,t,r){let i=e.copy();switch(n){case"hour":{let n=e.hour,o=0,a=23;if(12===(null==r?void 0:r.hourCycle)){let e=n>=12;o=e?12:0,a=e?23:11}i.hour=Nf(n,t,o,a,null==r?void 0:r.round);break}case"minute":i.minute=Nf(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":i.second=Nf(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=Nf(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+n)}return i}function Nf(e,n,t,r,i=!1){if(i){(e+=Math.sign(n))<t&&(e=r);let i=Math.abs(n);(e=n>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>r&&(e=t)}else(e+=n)<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function Sf(e,n){let t;if(null!=n.years&&0!==n.years||null!=n.months&&0!==n.months||null!=n.weeks&&0!==n.weeks||null!=n.days&&0!==n.days){t=mf(Of(yf(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone)}else t=uf(e)-e.offset;return t+=n.milliseconds||0,t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),t+=36e5*(n.hours||0),Pf(xf(t,e.timeZone),e.calendar)}const If=/^(\d{4})-(\d{2})-(\d{2})$/;function Ff(e,n,t){let r=Number(e);if(r<n||r>t)throw new RangeError(`Value out of range: ${n} <= ${r} <= ${t}`);return r}function Rf(e){let n=Pf(e,new Ku);return`${String(n.year).padStart(4,"0")}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function Vf(e){return`${Rf(e)}T${n=e,`${String(n.hour).padStart(2,"0")}:${String(n.minute).padStart(2,"0")}:${String(n.second).padStart(2,"0")}${n.millisecond?String(n.millisecond/1e3).slice(1):""}`}`;var n}function Gf(e){return`${Vf(e)}${function(e){let n=Math.sign(e)<0?"-":"+";e=Math.abs(e);let t=Math.floor(e/36e5),r=e%36e5/6e4;return`${n}${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Wf(e){let n,t="object"==typeof e[0]?e.shift():new Ku;if("string"==typeof e[0])n=e.shift();else{let e=t.getEras();n=e[e.length-1]}return[t,n,e.shift(),e.shift(),e.shift()]}var Yf=new WeakMap;class Uf{copy(){return this.era?new Uf(this.calendar,this.era,this.year,this.month,this.day):new Uf(this.calendar,this.year,this.month,this.day)}add(e){return Of(this,e)}subtract(e){return Ef(this,e)}set(e){return Lf(this,e)}cycle(e,n,t){return jf(this,e,n,t)}toDate(e){return wf(this,e)}toString(){return Rf(this)}compare(e){return ef(this,e)}constructor(...e){Iu(this,Yf,{writable:!0,value:void 0});let[n,t,r,i,o]=Wf(e);this.calendar=n,this.era=t,this.year=r,this.month=i,this.day=o,Xf(this)}}var Kf=new WeakMap;class qf{copy(){return this.era?new qf(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new qf(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Of(this,e)}subtract(e){return Ef(this,e)}set(e){return Lf(Tf(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return jf(this,e,n,t);default:return Mf(this,e,n,t)}}toDate(e,n){return wf(this,e,n)}toString(){return Vf(this)}compare(e){let n=ef(this,e);return 0===n?function(e,n){return nf(e)-nf(n)}(this,yf(e)):n}constructor(...e){Iu(this,Kf,{writable:!0,value:void 0});let[n,t,r,i,o]=Wf(e);this.calendar=n,this.era=t,this.year=r,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Xf(this)}}var Jf=new WeakMap;class Zf{copy(){return this.era?new Zf(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Zf(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Sf(this,e)}subtract(e){return function(e,n){return Sf(e,kf(n))}(this,e)}set(e,n){return function(e,n,t){let r=yf(e),i=Tf(Lf(r,n),n);return 0===i.compare(r)?e:Pf(xf(mf(i,e.timeZone,t),e.timeZone),e.calendar)}(this,e,n)}cycle(e,n,t){return function(e,n,t,r){switch(n){case"hour":{let n=0,i=23;if(12===(null==r?void 0:r.hourCycle)){let t=e.hour>=12;n=t?12:0,i=t?23:11}let o=yf(e),a=Pf(Tf(o,{hour:n}),new Ku),l=[mf(a,e.timeZone,"earlier"),mf(a,e.timeZone,"later")].filter((n=>xf(n,e.timeZone).day===a.day))[0],s=Pf(Tf(o,{hour:i}),new Ku),c=[mf(s,e.timeZone,"earlier"),mf(s,e.timeZone,"later")].filter((n=>xf(n,e.timeZone).day===s.day)).pop(),d=uf(e)-e.offset,u=Math.floor(d/zf),f=d%zf;return d=Nf(u,t,Math.floor(l/zf),Math.floor(c/zf),null==r?void 0:r.round)*zf+f,Pf(xf(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Mf(e,n,t,r);case"era":case"year":case"month":case"day":return Pf(xf(mf(jf(yf(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return function(e){let n=uf(e)-e.offset;return new Date(n)}(this)}toString(){return Gf(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Cf(e,this.timeZone).toDate().getTime()}constructor(...e){Iu(this,Jf,{writable:!0,value:void 0});let[n,t,r,i,o]=Wf(e),a=e.shift(),l=e.shift();this.calendar=n,this.era=t,this.year=r,this.month=i,this.day=o,this.timeZone=a,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Xf(this)}}const _f=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],$f=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ep=[1867,1911,1925,1988,2018],np=["meiji","taisho","showa","heisei","reiwa"];function tp(e){const n=_f.findIndex((([n,t,r])=>e.year<n||(e.year===n&&e.month<t||e.year===n&&e.month===t&&e.day<r)));return-1===n?_f.length-1:0===n?0:n-1}function rp(e){let n=ep[np.indexOf(e.era)];if(!n)throw new Error("Unknown era: "+e.era);return new Uf(e.year+n,e.month,e.day)}class ip extends Ku{fromJulianDay(e){let n=super.fromJulianDay(e),t=tp(n);return new Uf(this,np[t],n.year-ep[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(rp(e))}balanceDate(e){let n=rp(e),t=tp(n);np[t]!==e.era&&(e.era=np[t],e.year=n.year-ep[t]),this.constrainDate(e)}constrainDate(e){let n=np.indexOf(e.era),t=$f[n];if(null!=t){let[r,i,o]=t,a=r-ep[n];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(o,e.day)))}if(1===e.year&&n>=0){let[,t,r]=_f[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return np}getYearsInEra(e){let n=np.indexOf(e.era),t=_f[n],r=_f[n+1];if(null==r)return 9999-t[0]+1;let i=r[0]-t[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(rp(e))}getMinimumMonthInYear(e){let n=op(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=op(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function op(e){if(1===e.year){let n=np.indexOf(e.era);return _f[n]}}class ap extends Ku{fromJulianDay(e){let n=super.fromJulianDay(e),t=Wu(n.era,n.year);return new Uf(this,t- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(lp(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(lp(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function lp(e){let[n,t]=Yu(e.year+-543);return new Uf(n,t,e.month,e.day)}const sp=1911;function cp(e){return"minguo"===e.era?e.year+sp:1-e.year+sp}function dp(e){let n=e-sp;return n>0?["minguo",n]:["before_minguo",1-n]}class up extends Ku{fromJulianDay(e){let n=super.fromJulianDay(e),t=Wu(n.era,n.year),[r,i]=dp(t);return new Uf(this,r,i,n.month,n.day)}toJulianDay(e){return super.toJulianDay(fp(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=dp(cp(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(fp(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-sp}constructor(...e){super(...e),this.identifier="roc"}}function fp(e){let[n,t]=Yu(cp(e));return new Uf(n,t,e.month,e.day)}function pp(e,n,t){let r=e>0?e-474:e-473,i=Fu(r,2820)+474,o=n<=7?31*(n-1):30*(n-1)+6;return 1948320+1029983*Math.floor(r/2820)+365*(i-1)+Math.floor((31*i-5)/128)+o+t}class gp{fromJulianDay(e){let n=e-pp(475,1,1),t=Math.floor(n/1029983),r=Fu(n,1029983),i=474+2820*t+(1029982===r?2820:Math.floor((128*r+46878)/46751));i<=0&&i--;let o=e-pp(i,1,1)+1,a=o<=186?Math.ceil(o/31):Math.ceil((o-6)/31),l=e-pp(i,a,1)+1;return new Uf(this,i,a,l)}toJulianDay(e){return pp(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||function(e){let n=Fu(e>0?e-474:e-473,2820)+474;return Fu(31*(n+38),128)<31}(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class hp extends Ku{fromJulianDay(e){let n,t,r,i=super.fromJulianDay(e),o=i.year-78,a=e-Vu(i.era,i.year,1,1);if(a<80?(o--,n=Gu(i.year-1)?31:30,a+=n+155+90+10):(n=Gu(i.year)?31:30,a-=80),a<n)t=1,r=a+1;else{let e=a-n;e<155?(t=Math.floor(e/31)+2,r=e%31+1):(e-=155,t=Math.floor(e/30)+7,r=e%30+1)}return new Uf(this,o,t,r)}toJulianDay(e){let n,t,r=e.year+78,[i,o]=Yu(r);return Gu(o)?(n=31,t=Vu(i,o,3,21)):(n=30,t=Vu(i,o,3,22)),1===e.month?t+e.day-1:(t+=n+31*Math.min(e.month-2,5),e.month>=8&&(t+=30*(e.month-7)),t+=e.day-1,t)}getDaysInMonth(e){return 1===e.month&&Gu(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const vp=1948440,Ap=1948439,mp=1300,wp=1600,xp=460322;function bp(e,n,t,r){return r+Math.ceil(29.5*(t-1))+354*(n-1)+Math.floor((3+11*n)/30)+e-1}function yp(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),i=Math.min(12,Math.ceil((t-(29+bp(n,r,1,1)))/29.5)+1),o=t-bp(n,r,i,1)+1;return new Uf(e,r,i,o)}function Pp(e){return(14+11*e)%30<11}class Cp{fromJulianDay(e){return yp(this,vp,e)}toJulianDay(e){return bp(vp,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&Pp(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return Pp(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class zp extends Cp{fromJulianDay(e){return yp(this,Ap,e)}toJulianDay(e){return bp(Ap,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Op,Bp;function Dp(e){return xp+Bp[e-mp]}function Hp(e,n){let t=1<<11-(n-1);return Op[e-mp]&t?30:29}function Xp(e,n){let t=Dp(e);for(let r=1;r<n;r++)t+=Hp(e,r);return t}function kp(e){return Bp[e+1-mp]-Bp[e-mp]}class Ep extends Cp{fromJulianDay(e){let n=e-vp,t=Dp(mp),r=Dp(wp);if(n<t||n>r)return super.fromJulianDay(e);{let e=mp-1,t=1,r=1;for(;r>0;){e++,r=n-Dp(e)+1;let i=kp(e);if(r===i){t=12;break}if(r<i){let n=Hp(e,t);for(t=1;r>n;)r-=n,t++,n=Hp(e,t);break}}return new Uf(this,e,t,n-Xp(e,t)+1)}}toJulianDay(e){return e.year<mp||e.year>wp?super.toJulianDay(e):vp+Xp(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<mp||e.year>wp?super.getDaysInMonth(e):Hp(e.year,e.month)}getDaysInYear(e){return e.year<mp||e.year>wp?super.getDaysInYear(e):kp(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Op||(Op=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Bp){Bp=new Uint32Array(wp-mp+1);let e=0;for(let n=mp;n<=wp;n++){Bp[n-mp]=e;for(let t=1;t<=12;t++)e+=Hp(n,t)}}}}const Lp=347997;function Tp(e){return Fu(7*e+1,19)<7}function Qp(e){let n=Math.floor((235*e-234)/19),t=12084+13753*n,r=29*n+Math.floor(t/25920);return Fu(3*(r+1),7)<3&&(r+=1),r}function jp(e){return Qp(e)+function(e){let n=Qp(e-1),t=Qp(e);return Qp(e+1)-t==356?2:t-n==382?1:0}(e)}function Mp(e){return jp(e+1)-jp(e)}function Np(e,n){if(n>=6&&!Tp(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=Mp(e);switch(n>380&&(n-=30),n){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===n?2===t?30:29:3===n?0===t?29:30:6===n?Tp(e)?30:0:30}class Sp{fromJulianDay(e){let n=e-Lp,t=25920*n/765433,r=Math.floor((19*t+234)/235)+1,i=jp(r),o=Math.floor(n-i);for(;o<1;)r--,i=jp(r),o=Math.floor(n-i);let a=1,l=0;for(;l<o;)l+=Np(r,a),a++;return a--,l-=Np(r,a),new Uf(this,r,a,o-l)}toJulianDay(e){let n=jp(e.year);for(let t=1;t<e.month;t++)n+=Np(e.year,t);return n+e.day+Lp}getDaysInMonth(e){return Np(e.year,e.month)}getMonthsInYear(e){return Tp(e.year)?13:12}getDaysInYear(e){return Mp(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(Tp(n.year)&&!Tp(e.year)&&n.month>6?e.month--:!Tp(n.year)&&Tp(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Ip=1723856,Fp=1824665,Rp=5500;function Vp(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function Gp(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-Vp(e,t,1,1))/30);return[t,r,n+1-Vp(e,t,r,1)]}function Wp(e){return Math.floor(e%4/3)}function Yp(e,n){return n%13!=0?30:Wp(e)+5}class Up{fromJulianDay(e){let[n,t,r]=Gp(Ip,e),i="AM";return n<=0&&(i="AA",n+=Rp),new Uf(this,i,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=Rp),Vp(Ip,n,e.month,e.day)}getDaysInMonth(e){return Yp(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Wp(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Kp extends Up{fromJulianDay(e){let[n,t,r]=Gp(Ip,e);return n+=Rp,new Uf(this,"AA",n,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class qp extends Up{fromJulianDay(e){let[n,t,r]=Gp(Fp,e),i="CE";return n<=0&&(i="BCE",n=1-n),new Uf(this,i,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),Vp(Fp,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),Yp(n,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Jp(e){switch(e){case"buddhist":return new ap;case"ethiopic":return new Up;case"ethioaa":return new Kp;case"coptic":return new qp;case"hebrew":return new Sp;case"indian":return new hp;case"islamic-civil":return new Cp;case"islamic-tbla":return new zp;case"islamic-umalqura":return new Ep;case"japanese":return new ip;case"persian":return new gp;case"roc":return new up;default:return new Ku}}let Zp=new Map;class _p{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,n){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(n)}`}formatRangeToParts(e,n){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let t=this.formatter.formatToParts(e),r=this.formatter.formatToParts(n);return[...t.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==tg&&(tg="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return tg}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,n){if(!n.timeStyle&&!n.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let t=eg(e,{...n,timeZone:void 0}),r=parseInt(t.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),i=parseInt(t.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===i)return"h23";if(24===r&&23===i)return"h24";if(0===r&&11===i)return"h11";if(12===r&&11===i)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,n={}){this.formatter=eg(e,n),this.options=n}}const $p={true:{ja:"h11"},false:{}};function eg(e,n={}){if("boolean"==typeof n.hour12&&function(){null==ng&&(ng="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return ng}()){n={...n};let t=$p[String(n.hour12)][e.split("-")[0]],r=n.hour12?"h12":"h23";n.hourCycle=null!=t?t:r,delete n.hour12}let t=e+(n?Object.entries(n).sort(((e,n)=>e[0]<n[0]?-1:1)).join():"");if(Zp.has(t))return Zp.get(t);let r=new Intl.DateTimeFormat(e,n);return Zp.set(t,r),r}let ng=null;let tg=null;function rg(e,n,t){let[r,i]=l(e||n),o=h(void 0!==e),a=void 0!==e;s((()=>{let e=o.current;e!==a&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a}),[a]);let d=a?e:r,u=c(((e,...n)=>{let r=(e,...n)=>{t&&(Object.is(d,e)||t(e,...n)),a||(d=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((t,...i)=>{let o=e(a?d:t,...i);return r(o,...n),a?t:o}))}else a||i(e),r(e,...n)}),[a,d,t]);return[d,u]}function ig(e,n,t){return null!=n&&e.compare(n)<0||null!=t&&e.compare(t)>0}function og(e,n,t,r,i){let o={};for(let e in n)o[e]=Math.floor(n[e]/2),o[e]>0&&n[e]%2==0&&o[e]--;return sg(e,ag(e,n,t).subtract(o),n,t,r,i)}function ag(e,n,t,r,i){let o=e;return n.years?o=function(e){return of(e.subtract({months:e.month-1}))}(e):n.months?o=of(e):n.weeks&&(o=lf(e,t)),sg(e,o,n,t,r,i)}function lg(e,n,t,r,i){let o={...n};return n.days?o.days--:n.weeks?o.weeks--:n.months?o.months--:n.years&&o.years--,sg(e,ag(e,n,t).subtract(o),n,t,r,i)}function sg(e,n,t,r,i,o){return i&&e.compare(i)>=0&&(n=df(n,ag(bf(i),t,r))),o&&e.compare(o)<=0&&(n=cf(n,lg(bf(o),t,r))),n}function cg(e,n,t){return n&&(e=df(e,bf(n))),t&&(e=cf(e,bf(t))),e}function dg(e){let n=v((()=>new _p(e.locale)),[e.locale]),t=v((()=>n.resolvedOptions()),[n]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:s,selectionAlignment:c,isDateUnavailable:d,pageBehavior:u="visible"}=e,f=v((()=>i(t.calendar)),[i,t.calendar]),[p,g]=rg(e.value,e.defaultValue,e.onChange),h=v((()=>p?Pf(bf(p),f):null),[p,f]),A=v((()=>p&&"timeZone"in p?p.timeZone:t.timeZone),[p,t.timeZone]),m=v((()=>e.focusedValue?cg(Pf(bf(e.focusedValue),f),a,s):void 0),[e.focusedValue,f,a,s]),w=v((()=>cg(e.defaultFocusedValue?Pf(bf(e.defaultFocusedValue),f):h||Pf($u(A),f),a,s)),[e.defaultFocusedValue,h,A,f,a,s]),[x,b]=rg(m,w,e.onFocusChange),[y,P]=l((()=>{switch(c){case"start":return ag(x,o,r,a,s);case"end":return lg(x,o,r,a,s);default:return og(x,o,r,a,s)}})),[C,z]=l(e.autoFocus||!1),O=v((()=>{let e={...o};return e.days?e.days--:e.days=-1,y.add(e)}),[y,o]),[B,D]=l(f.identifier);if(f.identifier!==B){let e=Pf(x,f);P(og(e,o,r,a,s)),b(e),D(f.identifier)}function H(e){e=cg(e,a,s),b(e)}function X(n){if(!e.isDisabled&&!e.isReadOnly){if(n=function(e,n,t){if(!t)return e;for(;e.compare(n)>=0&&t(e);)e=e.subtract({days:1});return e.compare(n)>=0?e:void 0}(n=cg(n,a,s),y,d),!n)return;n=Pf(n,(null==p?void 0:p.calendar)||new Ku),g(p&&"hour"in p?p.set(n):n)}}ig(x,a,s)?b(cg(x,a,s)):x.compare(y)<0?P(lg(x,o,r,a,s)):x.compare(O)>0&&P(ag(x,o,r,a,s));let k=v((()=>!!h&&(!(!d||!d(h))||ig(h,a,s))),[h,d,a,s]),E=e.isInvalid||"invalid"===e.validationState||k,L=E?"invalid":null,T=v((()=>"visible"===u?o:ug(o)),[u,o]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:h,setValue:X,visibleRange:{start:y,end:O},minValue:a,maxValue:s,focusedDate:x,timeZone:A,validationState:L,isValueInvalid:E,setFocusedDate(e){H(e),z(!0)},focusNextDay(){H(x.add({days:1}))},focusPreviousDay(){H(x.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&H(x.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&H(x.subtract({weeks:1}))},focusNextPage(){let e=y.add(T);b(cg(x.add(T),a,s)),P(ag(sg(x,e,T,r,a,s),T,r))},focusPreviousPage(){let e=y.subtract(T);b(cg(x.subtract(T),a,s)),P(ag(sg(x,e,T,r,a,s),T,r))},focusSectionStart(){o.days?H(y):o.weeks?H(lf(x,r)):(o.months||o.years)&&H(of(x))},focusSectionEnd(){o.days?H(O):o.weeks?H(function(e,n){return lf(e,n).add({days:6})}(x,r)):(o.months||o.years)&&H(af(x))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?H(x.add({months:1})):(o.months||o.years)&&H(x.add({years:1})):H(x.add(ug(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?H(x.subtract({months:1})):(o.months||o.years)&&H(x.subtract({years:1})):H(x.subtract(ug(o)))},selectFocusedDate(){X(x)},selectDate(e){X(e)},isFocused:C,setFocused:z,isInvalid:e=>ig(e,a,s),isSelected(e){return null!=h&&Ju(e,h)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>C&&x&&Ju(e,x),isCellDisabled(n){return e.isDisabled||n.compare(y)<0||n.compare(O)>0||this.isInvalid(n,a,s)},isCellUnavailable:n=>e.isDateUnavailable&&e.isDateUnavailable(n),isPreviousVisibleRangeInvalid(){let e=y.subtract({days:1});return Ju(e,y)||this.isInvalid(e,a,s)},isNextVisibleRangeInvalid(){let e=O.add({days:1});return Ju(e,O)||this.isInvalid(e,a,s)},getDatesInWeek(e,n=y){let t=n.add({weeks:e}),i=[];t=lf(t,r);let o=_u(t,r);for(let e=0;e<o;e++)i.push(null);for(;i.length<7;){i.push(t);let e=t.add({days:1});if(Ju(t,e))break;t=e}for(;i.length<7;)i.push(null);return i}}}function ug(e){let n={...e};for(let t in e)n[t]=1;return n}function fg(e){return null}function pg(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&a.Children.count(e.children)>0)}fg.getCollectionNode=function*(e,n){let{childItems:t,title:r,children:i}=e,o=e.title||e.children,l=e.textValue||("string"==typeof o?o:"")||e["aria-label"]||"";l||(null==n?void 0:n.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:o,textValue:l,"aria-label":e["aria-label"],hasChildNodes:pg(e),*childNodes(){if(t)for(let e of t)yield{type:"item",value:e};else if(r){let e=[];a.Children.forEach(i,(n=>{e.push({type:"item",element:n})})),yield*e}}}};let gg=fg;class hg{build(e,n){return this.context=n,vg((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:t}=e;if("function"==typeof n){if(!t)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];a.Children.forEach(n,(n=>{e.push(n)}));let t=0;for(let n of e){let e=this.getFullNode({element:n,index:t},{});for(let n of e)t++,yield n}}}getKey(e,n,t,r){if(null!=e.key)return e.key;if("cell"===n.type&&null!=n.key)return`${r}${n.key}`;let i=n.value;if(null!=i){var o;let e=null!==(o=i.key)&&void 0!==o?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,t,r){let i=e.element;if(!i&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=r?r.key:null,void(yield t);i=n.renderer(e.value)}if(a.isValidElement(i)){let o=i.type;if("function"!=typeof o&&"function"!=typeof o.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=o.getCollectionNode(i.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let o=s.value;e.index=l;let c=o.key;c||(c=o.element?null:this.getKey(i,e,n,t));let d=[...this.getFullNode({...o,key:c,index:l,wrapper:Ag(e.wrapper,o.wrapper)},this.getChildState(n,o),t?`${t}${i.key}`:i.key,r)];for(let n of d){if(n.value=o.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error(`Unsupported type <${mg(n.type)}> in <${mg(r.type)}>. Only <${mg(e.type)}> is supported.`);l++,yield n}s=a.next(d)}return}if(null==e.key)return;let o=this,l={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:vg((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${l.key}${r.key}`),r.index=t;let e=o.getFullNode(r,o.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}constructor(){this.cache=new WeakMap}}function vg(e){let n=[],t=null;return{*[Symbol.iterator](){for(let e of n)yield e;t||(t=e());for(let e of t)n.push(e),yield e}}}function Ag(e,n){return e&&n?t=>e(n(t)):e||(n||void 0)}function mg(e){return e[0].toUpperCase()+e.slice(1)}function wg(e,n){return"function"==typeof n.getChildren?n.getChildren(e.key):e.childNodes}function xg(e){return function(e,n){if(n<0)return;let t=0;for(let r of e){if(t===n)return r;t++}}(e,0)}function bg(e,n,t){if(n.parentKey===t.parentKey)return n.index-t.index;let r=[...yg(e,n),n],i=[...yg(e,t),t],o=r.slice(0,i.length).findIndex(((e,n)=>e!==i[n]));return-1!==o?(n=r[o],t=i[o],n.index-t.index):r.findIndex((e=>e===t))>=0?1:(i.findIndex((e=>e===n)),-1)}function yg(e,n){let t=[];for(;null!=(null==n?void 0:n.parentKey);)n=e.getItem(n.parentKey),t.unshift(n);return t}const Pg=new WeakMap;class Cg extends Set{constructor(e,n,t){super(e),e instanceof Cg?(this.anchorKey=n||e.anchorKey,this.currentKey=t||e.currentKey):(this.anchorKey=n,this.currentKey=t)}}function zg(e,n){return e?"all"===e?"all":new Cg(e):n}class Og{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every((e=>n.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let t=this.collection.getItem(n);(!e||t&&bg(this.collection,t,e)<0)&&(e=t)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let t=this.collection.getItem(n);(!e||t&&bg(this.collection,t,e)>0)&&(e=t)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let n;if(e=this.getKey(e),"all"===this.state.selectedKeys)n=new Cg([e],e,e);else{let t=this.state.selectedKeys,r=t.anchorKey||e;n=new Cg(t,r,e);for(let i of this.getKeyRange(r,t.currentKey||e))n.delete(i);for(let t of this.getKeyRange(e,r))this.canSelectItem(t)&&n.add(t)}this.state.setSelectedKeys(n)}getKeyRange(e,n){let t=this.collection.getItem(e),r=this.collection.getItem(n);return t&&r?bg(this.collection,t,r)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){let t=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&t.push(r),r===n)return t;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n)return e;if("cell"===n.type&&this.allowsCellSelection)return e;for(;"item"!==n.type&&null!=n.parentKey;)n=this.collection.getItem(n.parentKey);return n&&"item"===n.type?n.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let n=new Cg("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);n.has(e)?n.delete(e):this.canSelectItem(e)&&(n.add(e),n.anchorKey=e,n.currentKey=e),this.disallowEmptySelection&&0===n.size||this.state.setSelectedKeys(n)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let n=this.canSelectItem(e)?new Cg([e],e,e):new Cg;this.state.setSelectedKeys(n)}setSelectedKeys(e){if("none"===this.selectionMode)return;let n=new Cg;for(let t of e)if(t=this.getKey(t),null!=t&&(n.add(t),"single"===this.selectionMode))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=t=>{for(;t;){if(this.canSelectItem(t)){let r=this.collection.getItem(t);"item"===r.type&&e.push(t),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&n(xg(wg(r,this.collection)).key)}t=this.collection.getKeyAfter(t)}};return n(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Cg)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||n&&("touch"===n.pointerType||"virtual"===n.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;for(let t of n)if(!e.has(t))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){return this.state.disabledKeys.has(e)&&"all"===this.state.disabledBehavior}isLink(e){var n,t;return!!(null===(t=this.collection.getItem(e))||void 0===t||null===(n=t.props)||void 0===n?void 0:n.href)}constructor(e,n,t){var r;this.collection=e,this.state=n,this.allowsCellSelection=null!==(r=null==t?void 0:t.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}class Bg{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(null==n?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let n,t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let r=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=r++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}function Dg(e){let{filter:n}=e,t=function(e){let{selectionMode:n="none",disallowEmptySelection:t,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=h(!1),[,c]=l(!1),d=h(null),u=h(null),[,f]=l(null),p=v((()=>zg(e.selectedKeys)),[e.selectedKeys]),g=v((()=>zg(e.defaultSelectedKeys,new Cg)),[e.defaultSelectedKeys]),[A,m]=rg(p,g,e.onSelectionChange),w=v((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[x,b]=l(i);"replace"===i&&"toggle"===x&&"object"==typeof A&&0===A.size&&b("replace");let y=h(i);return s((()=>{i!==y.current&&(b(i),y.current=i)}),[i]),{selectionMode:n,disallowEmptySelection:t,selectionBehavior:x,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(e){a.current=e,c(e)},get focusedKey(){return d.current},get childFocusStrategy(){return u.current},setFocusedKey(e,n="first"){d.current=e,u.current=n,f(e)},selectedKeys:A,setSelectedKeys(e){!r&&function(e,n){if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;return!0}(e,A)||m(e)},disabledKeys:w,disabledBehavior:o}}(e),r=v((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=c((e=>new Bg(n?n(e):e)),[n]),o=v((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),a=function(e,n,t){let r=v((()=>new hg),[]),{children:i,items:o,collection:a}=e;return v((()=>{if(a)return a;let e=r.build({children:i,items:o},t);return n(e)}),[r,i,o,a,t,n])}(e,i,o),d=v((()=>new Og(a,t)),[a,t]);const u=h(null);return s((()=>{if(null!=t.focusedKey&&!a.getItem(t.focusedKey)){const e=u.current.getItem(t.focusedKey),n=[...u.current.getKeys()].map((e=>{const n=u.current.getItem(e);return"item"===n.type?n:null})).filter((e=>null!==e)),r=[...a.getKeys()].map((e=>{const n=a.getItem(e);return"item"===n.type?n:null})).filter((e=>null!==e)),i=n.length-r.length;let o,l=Math.min(i>1?Math.max(e.index-i+1,0):e.index,r.length-1);for(;l>=0;){if(!d.isDisabled(r[l].key)){o=r[l];break}l<r.length-1?l++:(l>e.index&&(l=e.index),l--)}t.setFocusedKey(o?o.key:null)}u.current=a}),[a,d,t,t.focusedKey]),{collection:a,disabledKeys:r,selectionManager:d}}const Hg=Symbol.for("react-aria.i18n.locale"),Xg=Symbol.for("react-aria.i18n.strings");let kg;class Eg{getStringForLocale(e,n){let t=this.getStringsForLocale(n)[e];if(!t)throw new Error(`Could not find intl message ${e} in ${n} locale`);return t}getStringsForLocale(e){let n=this.strings[e];return n||(n=function(e,n,t="en-US"){if(n[e])return n[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(n[r])return n[r];for(let e in n)if(e.startsWith(r+"-"))return n[e];return n[t]}(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let n=window[Hg];if(void 0===kg){let e=window[Xg];if(!e)return null;kg={};for(let t in e)kg[t]=new Eg({[n]:e[t]},n)}let t=null==kg?void 0:kg[e];if(!t)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return t}constructor(e,n="en-US"){this.strings={...e},this.defaultLocale=n}}const Lg=new Map,Tg=new Map;class Qg{format(e,n){let t=this.strings.getStringForLocale(e,this.locale);return"function"==typeof t?t(n,this):t}plural(e,n,t="cardinal"){let r=n["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+t,o=Lg.get(i);return o||(o=new Intl.PluralRules(this.locale,{type:t}),Lg.set(i,o)),r=n[o.select(e)]||n.other,"function"==typeof r?r():r}number(e){let n=Tg.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Tg.set(this.locale,n)),n.format(e)}select(e,n){let t=e[n]||e.other;return"function"==typeof t?t():t}constructor(e,n){this.locale=e,this.strings=n}}const jg={prefix:String(Math.round(1e10*Math.random())),current:0},Mg=a.createContext(jg),Ng=a.createContext(!1);let Sg=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Ig=new WeakMap;const Fg="function"==typeof a.useId?function(e){let n=a.useId(),[t]=l(Wg()),r=t||"test"===process.env.NODE_ENV?"react-aria":`react-aria${jg.prefix}`;return e||`${r}-${n}`}:function(e){let n=p(Mg);n!==jg||Sg||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=function(e=!1){let n=p(Mg),t=h(null);if(null===t.current&&!e){var r,i;let e=null===(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let t=Ig.get(e);null==t?Ig.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,Ig.delete(e))}t.current=++n.current}return t.current}(!!e),r=n===jg&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return e||`${r}-${t}`};function Rg(){return!1}function Vg(){return!0}function Gg(e){return()=>{}}function Wg(){return"function"==typeof a.useSyncExternalStore?a.useSyncExternalStore(Gg,Rg,Vg):p(Ng)}function Yg(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=Yg(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ug(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=Yg(e))&&(r&&(r+=" "),r+=n);return r}const Kg="undefined"!=typeof document?a.useLayoutEffect:()=>{};function qg(e){const n=h(null);return Kg((()=>{n.current=e}),[e]),c(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}let Jg=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Zg=new Map;function _g(e){let[n,t]=l(e),r=h(null),i=Fg(n),o=c((e=>{r.current=e}),[]);return Jg&&Zg.set(i,o),Kg((()=>{let e=i;return()=>{Zg.delete(e)}}),[i]),s((()=>{let e=r.current;e&&(r.current=null,t(e))})),i}function $g(e,n){if(e===n)return e;let t=Zg.get(e);if(t)return t(n),n;let r=Zg.get(n);return r?(r(e),e):n}function eh(e=[]){let n=_g(),[t,r]=function(e){let[n,t]=l(e),r=h(null),i=qg((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:n===e.value?i():t(e.value)}));Kg((()=>{r.current&&i()}));let o=qg((e=>{r.current=e(n),i()}));return[n,o]}(n),i=c((()=>{r((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,r]);return Kg(i,[n,i,...e]),t}function nh(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}const th=e=>{var n;return null!==(n=null==e?void 0:e.ownerDocument)&&void 0!==n?n:document},rh=e=>{if(e&&"window"in e&&e.window===e)return e;return th(e).defaultView||window};function ih(...e){let n={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let e in r){let t=n[e],i=r[e];"function"==typeof t&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?n[e]=nh(t,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof t||"string"!=typeof i?"id"===e&&t&&i?n.id=$g(t,i):n[e]=void 0!==i?i:t:n[e]=Ug(t,i)}}return n}const oh=new Set(["id"]),ah=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),lh=new Set(["href","target","rel","download","ping","referrerPolicy"]),sh=/^(data-.*)$/;function ch(e,n={}){let{labelable:t,isLink:r,propNames:i}=n,o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(oh.has(n)||t&&ah.has(n)||r&&lh.has(n)||(null==i?void 0:i.has(n))||sh.test(n))&&(o[n]=e[n]);return o}function dh(e){if(function(){if(null==uh){uh=!1;try{document.createElement("div").focus({get preventScroll(){return uh=!0,!0}})}catch(e){}}return uh}())e.focus({preventScroll:!0});else{let n=function(e){let n=e.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==r;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return t}(e);e.focus(),function(e){for(let{element:n,scrollTop:t,scrollLeft:r}of e)n.scrollTop=t,n.scrollLeft=r}(n)}}let uh=null;function fh(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((n=>e.test(n.brand))))||e.test(window.navigator.userAgent))}function ph(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform)}function gh(){return ph(/^Mac/i)}function hh(){return ph(/^iPad/i)||gh()&&navigator.maxTouchPoints>1}function vh(){return ph(/^iPhone/i)||hh()}function Ah(){return fh(/AppleWebKit/i)&&!fh(/Chrome/i)}function mh(){return fh(/Android/i)}const wh=u({isNative:!0,open:function(e,n){!function(e,n){if(e instanceof HTMLAnchorElement)n(e);else if(e.hasAttribute("data-href")){let t=document.createElement("a");t.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(t.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(t.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(t.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(t.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(t.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(t),n(t),e.removeChild(t)}}(e,(e=>bh(e,n)))}});function xh(){return p(wh)}function bh(e,n,t=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=n;fh(/Firefox/i)&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(gh()?o=!0:a=!0);let c=Ah()&&gh()&&!hh()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});bh.isOpening=t,dh(e),e.dispatchEvent(c),bh.isOpening=!1}bh.isOpening=!1;let yh=new Map,Ph=new Set;function Ch(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=yh.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),yh.delete(t.target)),0===yh.size)){for(let e of Ph)e();Ph.clear()}};document.body.addEventListener("transitionrun",(t=>{if(!e(t)||!t.target)return;let r=yh.get(t.target);r||(r=new Set,yh.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)})),document.body.addEventListener("transitionend",n)}function zh(e){requestAnimationFrame((()=>{0===yh.size?e():Ph.add(e)}))}function Oh(){let e=h(new Map),n=c(((n,t,r,i)=>{let o=(null==i?void 0:i.once)?(...n)=>{e.current.delete(r),r(...n)}:r;e.current.set(r,{type:t,eventTarget:n,fn:o,options:i}),n.addEventListener(t,r,i)}),[]),t=c(((n,t,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;n.removeEventListener(t,a,i),e.current.delete(r)}),[]),r=c((()=>{e.current.forEach(((e,n)=>{t(e.eventTarget,e.type,n,e.options)}))}),[t]);return s((()=>r),[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}function Bh(e,n){let{id:t,"aria-label":r,"aria-labelledby":i}=e;if(t=_g(t),i&&r){let e=new Set([t,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!n||(r=n),{id:t,"aria-label":r,"aria-labelledby":i}}function Dh(e,n){const t=h(!0),r=h(null);s((()=>(t.current=!0,()=>{t.current=!1})),[]),s((()=>{t.current?t.current=!1:r.current&&!n.some(((e,n)=>!Object.is(e,r[n])))||e(),r.current=n}),n)}function Hh(e,n){Kg((()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}}))}function Xh(e,n){let t=e;for(kh(t,n)&&(t=t.parentElement);t&&!kh(t,n);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function kh(e,n){let t=window.getComputedStyle(e),r=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return r&&n&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}"undefined"!=typeof document&&("loading"!==document.readyState?Ch():document.addEventListener("DOMContentLoaded",Ch));let Eh=0;const Lh=new Map;function Th(e){let[n,t]=l();return Kg((()=>{if(!e)return;let n=Lh.get(e);if(n)t(n.element.id);else{let r="react-aria-description-"+Eh++;t(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},Lh.set(e,n)}return n.refCount++,()=>{n&&0==--n.refCount&&(n.element.remove(),Lh.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function Qh(e,n){let t=jh(e,n,"left"),r=jh(e,n,"top"),i=n.offsetWidth,o=n.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),u=e.scrollTop+parseInt(s,10),f=d+e.clientWidth,p=u+e.clientHeight;t<=a?a=t-parseInt(c,10):t+i>f&&(a+=t+i-f),r<=u?l=r-parseInt(s,10):r+o>p&&(l+=r+o-p),e.scrollLeft=a,e.scrollTop=l}function jh(e,n,t){const r="left"===t?"offsetLeft":"offsetTop";let i=0;for(;n.offsetParent&&(i+=n[r],n.offsetParent!==e);){if(n.offsetParent.contains(e)){i-=e[r];break}n=n.offsetParent}return i}function Mh(e,n){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let n=Xh(e);for(;e&&n&&e!==a&&n!==a;)Qh(n,e),n=Xh(e=n)}else{var t;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(t=e.scrollIntoView)||void 0===t||t.call(e,{block:"nearest"});let{left:s,top:c}=e.getBoundingClientRect();var r,i,o;if(Math.abs(a-s)>1||Math.abs(l-c)>1)null==n||null===(i=n.containingElement)||void 0===i||null===(r=i.scrollIntoView)||void 0===r||r.call(i,{block:"center",inline:"center"}),null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"})}}}function Nh(e){return!(0!==e.mozInputSource||!e.isTrusted)||(mh()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Sh(e,n){let t=h(null);return e&&t.current&&n(e,t.current)&&(e=t.current),t.current=e,e}function Ih(e,n,t){if(!n.has(e))throw new TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function Fh(e,n,t){return function(e,n,t){if(n.set)n.set.call(e,t);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=t}}(e,Ih(e,n,"set"),t),t}let Rh="default",Vh="",Gh=new WeakMap;function Wh(e){if(vh()){if("default"===Rh){const n=th(e);Vh=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}Rh="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Gh.set(e,e.style.userSelect),e.style.userSelect="none")}function Yh(e){if(vh()){if("disabled"!==Rh)return;Rh="restoring",setTimeout((()=>{zh((()=>{if("restoring"===Rh){const n=th(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=Vh||""),Vh="",Rh="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Gh.has(e)){let n=Gh.get(e);"none"===e.style.userSelect&&(e.style.userSelect=n),""===e.getAttribute("style")&&e.removeAttribute("style"),Gh.delete(e)}}const Uh=a.createContext({register:()=>{}});Uh.displayName="PressResponderContext";var Kh=new WeakMap;class qh{continuePropagation(){Fh(this,Kh,!1)}get shouldStopPropagation(){return function(e,n){return n.get?n.get.call(e):n.value}(e=this,Ih(e,Kh,"get"));var e}constructor(e,n,t){Iu(this,Kh,{writable:!0,value:void 0}),Fh(this,Kh,!0),this.type=e,this.pointerType=n,this.target=t.currentTarget,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey}}const Jh=Symbol("linkClicked");function Zh(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:g,...A}=function(e){let n=p(Uh);if(n){let{register:t,...r}=n;e=ih(r,e),t()}return Hh(n,e.ref),e}(e),[m,w]=l(!1),x=h({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=Oh(),P=qg(((e,n)=>{let i=x.current;if(a||i.didFirePressStart)return!1;let o=!0;if(i.isTriggeringEvent=!0,r){let t=new qh("pressstart",n,e);r(t),o=t.shouldStopPropagation}return t&&t(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,w(!0),o})),C=qg(((e,r,o=!0)=>{let l=x.current;if(!l.didFirePressStart)return!1;l.ignoreClickAfterPress=!0,l.didFirePressStart=!1,l.isTriggeringEvent=!0;let s=!0;if(i){let n=new qh("pressend",r,e);i(n),s=n.shouldStopPropagation}if(t&&t(!1),w(!1),n&&o&&!a){let t=new qh("press",r,e);n(t),s&&(s=t.shouldStopPropagation)}return l.isTriggeringEvent=!1,s})),z=qg(((e,n)=>{let t=x.current;if(a)return!1;if(o){t.isTriggeringEvent=!0;let r=new qh("pressup",n,e);return o(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),O=qg((e=>{let n=x.current;n.isPressed&&n.target&&(n.isOverTarget&&null!=n.pointerType&&C(nv(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,y(),f||Yh(n.target))})),B=qg((e=>{u&&O(e)})),D=v((()=>{let e=x.current,n={onKeyDown(n){if($h(n.nativeEvent,n.currentTarget)&&n.currentTarget.contains(n.target)){var r;iv(n.target,n.key)&&n.preventDefault();let i=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,i=P(n,"keyboard");let r=n.currentTarget,o=n=>{$h(n,r)&&!n.repeat&&r.contains(n.target)&&e.target&&z(nv(e.target,n),"keyboard")};b(th(n.currentTarget),"keyup",nh(o,t),!0)}i&&n.stopPropagation(),n.metaKey&&gh()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||n.currentTarget.contains(n.target))&&n&&0===n.button&&!e.isTriggeringEvent&&!bh.isOpening){let t=!0;if(a&&n.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||Nh(n.nativeEvent))){a||d||dh(n.currentTarget);let e=P(n,"virtual"),r=z(n,"virtual"),i=C(n,"virtual");t=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,t&&n.stopPropagation()}}},t=n=>{var t;if(e.isPressed&&e.target&&$h(n,e.target)){var r;iv(n.target,n.key)&&n.preventDefault();let t=n.target;C(nv(e.target,n),"keyboard",e.target.contains(t)),y(),"Enter"!==n.key&&_h(e.target)&&e.target.contains(t)&&!n[Jh]&&(n[Jh]=!0,bh(e.target,n,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(n.key)}else if("Meta"===n.key&&(null===(t=e.metaKeyEvents)||void 0===t?void 0:t.size)){var i;let n=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let t of n.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",t))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{if(0!==n.button||!n.currentTarget.contains(n.target))return;if(o=n.nativeEvent,!mh()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType)return void(e.pointerType="virtual");var o;rv(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType;let l=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,a||d||dh(n.currentTarget),f||Wh(e.target),l=P(n,e.pointerType),b(th(n.currentTarget),"pointermove",t,!1),b(th(n.currentTarget),"pointerup",r,!1),b(th(n.currentTarget),"pointercancel",i,!1)),l&&n.stopPropagation()},n.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(rv(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},n.onPointerUp=n=>{n.currentTarget.contains(n.target)&&"virtual"!==e.pointerType&&0===n.button&&tv(n,n.currentTarget)&&z(n,e.pointerType||n.pointerType)};let t=n=>{n.pointerId===e.activePointerId&&(e.target&&tv(n,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,P(nv(e.target,n),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,C(nv(e.target,n),e.pointerType,!1),B(n)))},r=n=>{n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target&&(tv(n,e.target)&&null!=e.pointerType?C(nv(e.target,n),e.pointerType):e.isOverTarget&&null!=e.pointerType&&C(nv(e.target,n),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),f||Yh(e.target))},i=e=>{O(e)};n.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{n.onMouseDown=n=>{if(0!==n.button||!n.currentTarget.contains(n.target))return;if(rv(n.currentTarget)&&n.preventDefault(),e.ignoreEmulatedMouseEvents)return void n.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Nh(n.nativeEvent)?"virtual":"mouse",a||d||dh(n.currentTarget),P(n,e.pointerType)&&n.stopPropagation(),b(th(n.currentTarget),"mouseup",t,!1)},n.onMouseEnter=n=>{if(!n.currentTarget.contains(n.target))return;let t=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,t=P(n,e.pointerType)),t&&n.stopPropagation()},n.onMouseLeave=n=>{if(!n.currentTarget.contains(n.target))return;let t=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,t=C(n,e.pointerType,!1),B(n)),t&&n.stopPropagation()},n.onMouseUp=n=>{n.currentTarget.contains(n.target)&&(e.ignoreEmulatedMouseEvents||0!==n.button||z(n,e.pointerType||"mouse"))};let t=n=>{0===n.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&tv(n,e.target)&&null!=e.pointerType?C(nv(e.target,n),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&C(nv(e.target,n),e.pointerType,!1),e.isOverTarget=!1))};n.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;let t=function(e){const{targetTouches:n}=e;return n.length>0?n[0]:null}(n.nativeEvent);t&&(e.activePointerId=t.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",a||d||dh(n.currentTarget),f||Wh(e.target),P(n,e.pointerType)&&n.stopPropagation(),b(rh(n.currentTarget),"scroll",r,!0))},n.onTouchMove=n=>{if(!n.currentTarget.contains(n.target))return;if(!e.isPressed)return void n.stopPropagation();let t=ev(n.nativeEvent,e.activePointerId),r=!0;t&&tv(t,n.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=P(n,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=C(n,e.pointerType,!1),B(n)),r&&n.stopPropagation()},n.onTouchEnd=n=>{if(!n.currentTarget.contains(n.target))return;if(!e.isPressed)return void n.stopPropagation();let t=ev(n.nativeEvent,e.activePointerId),r=!0;t&&tv(t,n.currentTarget)&&null!=e.pointerType?(z(n,e.pointerType),r=C(n,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=C(n,e.pointerType,!1)),r&&n.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!f&&Yh(e.target),y()},n.onTouchCancel=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&O(n))};let r=n=>{e.isPressed&&n.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};n.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return n}),[b,a,d,y,f,O,B,C,P,z]);return s((()=>()=>{var e;f||Yh(null!==(e=x.current.target)&&void 0!==e?e:void 0)}),[f]),{isPressed:c||m,pressProps:ih(A,D)}}function _h(e){return"A"===e.tagName&&e.hasAttribute("href")}function $h(e,n){const{key:t,code:r}=e,i=n,o=i.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==r||i instanceof rh(i).HTMLInputElement&&!av(i,t)||i instanceof rh(i).HTMLTextAreaElement||i.isContentEditable||("link"===o||!o&&_h(i))&&"Enter"!==t)}function ev(e,n){const t=e.changedTouches;for(let e=0;e<t.length;e++){const r=t[e];if(r.identifier===n)return r}return null}function nv(e,n){return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey}}function tv(e,n){let t=n.getBoundingClientRect(),r=function(e){let n=0,t=0;return void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?t=e.height/2:void 0!==e.radiusY&&(t=e.radiusY),{top:e.clientY-t,right:e.clientX+n,bottom:e.clientY+t,left:e.clientX-n}}(e);return function(e,n){return!(e.left>n.right||n.left>e.right||e.top>n.bottom||n.top>e.bottom)}(t,r)}function rv(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function iv(e,n){return e instanceof HTMLInputElement?!av(e,n):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!_h(e)}const ov=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function av(e,n){return"checkbox"===e.type||"radio"===e.type?" "===n:ov.has(e.type)}class lv{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function sv(e){let n=h({isFocused:!1,observer:null});Kg((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let t=qg((n=>{null==e||e(n)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let r=e.target,i=e=>{n.current.isFocused=!1,r.disabled&&t(new lv("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&r.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let t=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}})),n.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[t])}let cv=null,dv=new Set,uv=new Map,fv=!1,pv=!1;function gv(e,n){for(let t of dv)t(e,n)}function hv(e){fv=!0,function(e){return!(e.metaKey||!gh()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(cv="keyboard",gv("keyboard",e))}function vv(e){cv="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(fv=!0,gv("pointer",e))}function Av(e){Nh(e)&&(fv=!0,cv="virtual")}function mv(e){e.target!==window&&e.target!==document&&(fv||pv||(cv="virtual",gv("virtual",e)),fv=!1,pv=!1)}function wv(){fv=!1,pv=!0}function xv(e){if("undefined"==typeof window||uv.get(rh(e)))return;const n=rh(e),t=th(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){fv=!0,r.apply(this,arguments)},t.addEventListener("keydown",hv,!0),t.addEventListener("keyup",hv,!0),t.addEventListener("click",Av,!0),n.addEventListener("focus",mv,!0),n.addEventListener("blur",wv,!1),"undefined"!=typeof PointerEvent?(t.addEventListener("pointerdown",vv,!0),t.addEventListener("pointermove",vv,!0),t.addEventListener("pointerup",vv,!0)):(t.addEventListener("mousedown",vv,!0),t.addEventListener("mousemove",vv,!0),t.addEventListener("mouseup",vv,!0)),n.addEventListener("beforeunload",(()=>{bv(e)}),{once:!0}),uv.set(n,{focus:r})}const bv=(e,n)=>{const t=rh(e),r=th(e);n&&r.removeEventListener("DOMContentLoaded",n),uv.has(t)&&(t.HTMLElement.prototype.focus=uv.get(t).focus,r.removeEventListener("keydown",hv,!0),r.removeEventListener("keyup",hv,!0),r.removeEventListener("click",Av,!0),t.removeEventListener("focus",mv,!0),t.removeEventListener("blur",wv,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",vv,!0),r.removeEventListener("pointermove",vv,!0),r.removeEventListener("pointerup",vv,!0)):(r.removeEventListener("mousedown",vv,!0),r.removeEventListener("mousemove",vv,!0),r.removeEventListener("mouseup",vv,!0)),uv.delete(t))};function yv(){return"pointer"!==cv}function Pv(){return cv}function Cv(e){let{isDisabled:n,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:i}=e,o=h({isFocusWithin:!1}),a=c((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,t&&t(e),i&&i(!1))}),[t,i,o]),l=sv(a),s=c((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,l(e))}),[r,i,l]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:a}}}"undefined"!=typeof document&&function(e){const n=th(e);let t;"loading"!==n.readyState?xv(e):(t=()=>{xv(e)},n.addEventListener("DOMContentLoaded",t))}();let zv=!1,Ov=0;function Bv(){zv=!0,setTimeout((()=>{zv=!1}),50)}function Dv(e){"touch"===e.pointerType&&Bv()}function Hv(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Dv):document.addEventListener("touchend",Bv),Ov++,()=>{Ov--,Ov>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Dv):document.removeEventListener("touchend",Bv))}}function Xv(e){let{onHoverStart:n,onHoverChange:t,onHoverEnd:r,isDisabled:i}=e,[o,a]=l(!1),c=h({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s(Hv,[]);let{hoverProps:d,triggerHoverEnd:u}=v((()=>{let e=(e,r)=>{if(c.pointerType=r,i||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,n&&n({type:"hoverstart",target:o,pointerType:r}),t&&t(!0),a(!0)},o=(e,n)=>{if(c.pointerType="",c.target=null,"touch"===n||!c.isHovered)return;c.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:n}),t&&t(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=n=>{zv&&"mouse"===n.pointerType||e(n,n.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=n=>{c.ignoreEmulatedMouseEvents||zv||e(n,"mouse"),c.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[n,t,r,i,c]);return s((()=>{i&&u({currentTarget:c.target},c.pointerType)}),[i]),{hoverProps:d,isHovered:o}}function kv(e){if(!e)return;let n=!0;return t=>{let r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){n=!1}};e(r),n&&t.stopPropagation()}}const Ev=500;function Lv(e){const n=th(e);if("virtual"===Pv()){let t=n.activeElement;zh((()=>{n.activeElement===t&&e.isConnected&&dh(e)}))}else dh(e)}function Tv(e,n){return"#comment"!==e.nodeName&&function(e){const n=rh(e);if(!(e instanceof n.HTMLElement||e instanceof n.SVGElement))return!1;let{display:t,visibility:r}=e.style,i="none"!==t&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:n}=e.ownerDocument.defaultView;let{display:t,visibility:r}=n(e);i="none"!==t&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,n){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!n||"SUMMARY"===n.nodeName||e.hasAttribute("open"))}(e,n)&&(!e.parentElement||Tv(e.parentElement,e))}const Qv=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],jv=Qv.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Qv.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Mv=Qv.join(':not([hidden]):not([tabindex="-1"]),');function Nv(e,n){return!!e&&(!!n&&n.some((n=>n.contains(e))))}class Sv{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,t){let r=this.fastMap.get(null!=n?n:null);if(!r)return;let i=new Iv({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),t&&(i.nodeToRestore=t)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let n=this.fastMap.get(e);if(!n)return;let t=n.parent;for(let e of this.traverse())e!==n&&n.nodeToRestore&&e.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Nv(e.nodeToRestore,n.scopeRef.current)&&(e.nodeToRestore=n.nodeToRestore);let r=n.children;t&&(t.removeChild(n),r.size>0&&r.forEach((e=>t&&t.addChild(e)))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Sv;var t;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Iv({scopeRef:null}),this.fastMap.set(null,this.root)}}class Iv{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new Sv;let Fv=a.createContext(null);function Rv(e,n){let{focusProps:t}=function(e){let{isDisabled:n,onFocus:t,onBlur:r,onFocusChange:i}=e;const o=c((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=sv(o),l=c((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(t&&t(e),i&&i(!0),a(e))}),[i,t,a]);return{focusProps:{onFocus:!n&&(t||i||r)?l:void 0,onBlur:n||!r&&!i?void 0:o}}}(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:kv(e.onKeyDown),onKeyUp:kv(e.onKeyUp)}}}(e),i=ih(t,r),o=function(e){let n=p(Fv)||{};Hh(n,e);let{ref:t,...r}=n;return r}(n),a=e.isDisabled?{}:o,l=h(e.autoFocus);return s((()=>{l.current&&n.current&&Lv(n.current),l.current=!1}),[n]),{focusableProps:ih({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const Vv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Gv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Wv(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),t="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(t)return"rtl"===t.direction;if(n.script)return Vv.has(n.script)}let n=e.split("-")[0];return Gv.has(n)}const Yv=Symbol.for("react-aria.i18n.locale");function Uv(){let e="undefined"!=typeof window&&window[Yv]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(n){e="en-US"}return{locale:e,direction:Wv(e)?"rtl":"ltr"}}let Kv=Uv(),qv=new Set;function Jv(){Kv=Uv();for(let e of qv)e(Kv)}function Zv(){let e=Wg(),[n,t]=l(Kv);return s((()=>(0===qv.size&&window.addEventListener("languagechange",Jv),qv.add(t),()=>{qv.delete(t),0===qv.size&&window.removeEventListener("languagechange",Jv)})),[]),e?{locale:"en-US",direction:"ltr"}:n}const _v=a.createContext(null);function $v(e){let{locale:n,children:t}=e,r=Zv(),i=n?{locale:n,direction:Wv(n)?"rtl":"ltr"}:r;return a.createElement(_v.Provider,{value:i},t)}function eA(){let e=Zv();return p(_v)||e}const nA=new WeakMap;function tA(e,n){return n&&Eg.getGlobalDictionaryForPackage(n)||function(e){let n=nA.get(e);return n||(n=new Eg(e),nA.set(e,n)),n}(e)}function rA(e,n){let{locale:t}=eA(),r=tA(e,n);return v((()=>new Qg(t,r)),[t,r])}function iA(e){e=Sh(null!=e?e:{},oA);let{locale:n}=eA();return v((()=>new _p(n,e)),[n,e])}function oA(e,n){if(e===n)return!0;let t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(let r of t)if(n[r]!==e[r])return!1;return!0}let aA=new Map;function lA(e,n){let t,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:l,onPressUp:s,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:u,onClick:f,href:p,target:g,rel:h,type:v="button"}=e;t="button"===r?{type:v,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===r&&i?void 0:p,target:"a"===r?g:void 0,type:"input"===r?v:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?h:void 0};let{pressProps:A,isPressed:m}=Zh({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:o,onPressUp:s,isDisabled:i,preventFocusOnPress:d,ref:n}),{focusableProps:w}=Rv(e,n);u&&(w.tabIndex=i?-1:w.tabIndex);let x=ih(w,A,ch(e,{labelable:!0}));return{isPressed:m,buttonProps:ih(t,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}var sA;sA={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var cA;cA={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var dA;dA={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var uA;uA={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var fA;fA={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var pA;pA={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var gA;gA={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var hA;hA={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var vA;vA={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var AA;AA={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var mA;mA={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var wA;wA={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var xA;xA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var bA;bA={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var yA;yA={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var PA;PA={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var CA;CA={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var zA;zA={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var OA;OA={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var BA;BA={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var DA;DA={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var HA;HA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var XA;XA={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var kA;kA={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var EA;EA={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var LA;LA={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var TA;TA={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var QA;QA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var jA;jA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var MA;MA={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var NA;NA={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var SA;SA={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var IA;IA={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var FA;FA={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};const RA=7e3;let VA=null;function GA(e,n="assertive",t=RA){VA||(VA=new WA),VA.announce(e,n,t)}class WA{createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",t=RA){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===n?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),t)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function YA(e){return e&&e.__esModule?e.default:e}var UA={};UA={"ar-AE":sA,"bg-BG":cA,"cs-CZ":dA,"da-DK":uA,"de-DE":fA,"el-GR":pA,"en-US":gA,"es-ES":hA,"et-EE":vA,"fi-FI":AA,"fr-FR":mA,"he-IL":wA,"hr-HR":xA,"hu-HU":bA,"it-IT":yA,"ja-JP":PA,"ko-KR":CA,"lt-LT":zA,"lv-LV":OA,"nb-NO":BA,"nl-NL":DA,"pl-PL":HA,"pt-BR":XA,"pt-PT":kA,"ro-RO":EA,"ru-RU":LA,"sk-SK":TA,"sl-SI":QA,"sr-SP":jA,"sv-SE":MA,"tr-TR":NA,"uk-UA":SA,"zh-CN":IA,"zh-TW":FA};const KA=new WeakMap;function qA(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function JA(e,n,t,r){let i=rA(YA(UA),"@react-aria/calendar"),o=qA(e)||qA(n),a=iA({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:t}),l=iA({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:t});return v((()=>{if(Ju(e,of(e))){if(Ju(n,af(e)))return a.format(e.toDate(t));if(Ju(n,af(n)))return r?ZA(a,i,e,n,t):a.formatRange(e.toDate(t),n.toDate(t))}return r?ZA(l,i,e,n,t):l.formatRange(e.toDate(t),n.toDate(t))}),[e,n,a,l,i,t,r])}function ZA(e,n,t,r,i){let o=e.formatRangeToParts(t.toDate(i),r.toDate(i)),a=-1;for(let e=0;e<o.length;e++){let n=o[e];if("shared"===n.source&&"literal"===n.type)a=e;else if("endRange"===n.source)break}let l="",s="";for(let e=0;e<o.length;e++)e<a?l+=o[e].value:e>a&&(s+=o[e].value);return n.format("dateRange",{startDate:l,endDate:s})}function _A(e,n){let t=rA(YA(UA),"@react-aria/calendar"),r=ch(e),i=JA(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),o=JA(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Dh((()=>{n.isFocused||GA(o)}),[o]);let a=function(e){let n,t,r=rA(YA(UA),"@react-aria/calendar");"highlightedRange"in e?({start:n,end:t}=e.highlightedRange||{}):n=t=e.value;let i=iA({weekday:"long",month:"long",year:"numeric",day:"numeric",era:qA(n)||qA(t),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return v((()=>{if(!o&&n&&t){if(Ju(n,t)){let t=i.format(n.toDate(e.timeZone));return r.format("selectedDateDescription",{date:t})}{let o=ZA(i,r,n,t,e.timeZone);return r.format("selectedRangeDescription",{dateRange:o})}}return""}),[n,t,o,e.timeZone,r,i])}(n);Dh((()=>{a&&GA(a,"polite",4e3)}),[a]);let s=eh([Boolean(e.errorMessage),e.isInvalid,e.validationState]);KA.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:a});let[c,d]=l(!1),u=e.isDisabled||n.isNextVisibleRangeInvalid();u&&c&&(d(!1),n.setFocused(!0));let[f,p]=l(!1),g=e.isDisabled||n.isPreviousVisibleRangeInvalid();return g&&f&&(p(!1),n.setFocused(!0)),{calendarProps:ih(r,Bh({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":t.format("next"),isDisabled:u,onFocusChange:d},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":t.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:s},title:i}}function $A(e,n){return _A(e,n)}function em(e,n,t){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=KA.get(n),l=rA(YA(UA),"@react-aria/calendar"),c=iA({weekday:"long",day:"numeric",month:"long",year:"numeric",era:qA(r),timeZone:n.timeZone}),d=n.isSelected(r),u=n.isCellFocused(r);i=i||n.isCellDisabled(r);let f=n.isCellUnavailable(r),p=!i&&!f,g=n.isValueInvalid&&("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&r.compare(n.highlightedRange.start)>=0&&r.compare(n.highlightedRange.end)<=0:n.value&&Ju(n.value,r));g&&(d=!0),r=Sh(r,Zu);let A=v((()=>r.toDate(n.timeZone)),[r,n.timeZone]),m=function(e,n){return Ju(e,$u(n))}(r,n.timeZone),w=v((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(Ju(r,n.value.start)||Ju(r,n.value.end))&&(e=a+", "),e+=c.format(A),m?e=l.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=l.format("dateSelected",{date:e})),n.minValue&&Ju(r,n.minValue)?e+=", "+l.format("minimumDate"):n.maxValue&&Ju(r,n.maxValue)&&(e+=", "+l.format("maximumDate")),e}),[c,A,l,d,m,r,n,a]),x="";"anchorDate"in n&&u&&!n.isReadOnly&&p&&(x=n.anchorDate?l.format("finishRangeSelectionPrompt"):l.format("startRangeSelectionPrompt"));let b=Th(x),y=h(!1),P=h(!1),C=h(null),{pressProps:z,isPressed:O}=Zh({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!p||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(r);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!g){if(Ju(r,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(r),n.setDragging(!0),void(P.current=!0);if(Ju(r,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(r),n.setDragging(!0),void(P.current=!0)}let t=()=>{n.setDragging(!0),C.current=null,n.selectDate(r),n.setFocusedDate(r),y.current=!0};"touch"===e.pointerType?C.current=setTimeout(t,200):t()}},onPressEnd(){P.current=!1,y.current=!1,clearTimeout(C.current),C.current=null},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(r),n.setFocusedDate(r))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&C.current&&(n.selectDate(r),n.setFocusedDate(r)),"anchorDate"in n))if(P.current)n.setAnchorDate(r);else if(n.anchorDate&&!y.current)n.selectDate(r),n.setFocusedDate(r);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(r),n.setFocusedDate(r));else{n.selectDate(r);let e=r.add({days:1});n.isInvalid(e)&&(e=r.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}}),B=null;i||(B=Ju(r,n.focusedDate)?0:-1),s((()=>{u&&t.current&&(dh(t.current),"pointer"!==Pv()&&document.activeElement===t.current&&Mh(t.current,{containingElement:Xh(t.current)}))}),[u,t]);let D=iA({day:"numeric",timeZone:n.timeZone,calendar:r.calendar.identifier}),H=v((()=>D.formatToParts(A).find((e=>"day"===e.type)).value),[D,A]);return{cellProps:{role:"gridcell","aria-disabled":!p||null,"aria-selected":d||null,"aria-invalid":g||null},buttonProps:ih(z,{onFocus(){i||n.setFocusedDate(r)},tabIndex:B,role:"button","aria-disabled":!p||null,"aria-label":w,"aria-invalid":g||null,"aria-describedby":[g?o:null,b["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&p&&n.highlightDate(r)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:O,isFocused:u,isSelected:d,isDisabled:i,isUnavailable:f,isOutsideVisibleRange:r.compare(n.visibleRange.start)<0||r.compare(n.visibleRange.end)>0,isInvalid:g,formattedDate:H}}function nm(e){return gh()||vh()?e.altKey:e.ctrlKey}function tm(e){return gh()?e.metaKey:e.ctrlKey}const rm=1e3;function im(e){let{selectionManager:n,keyboardDelegate:t,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,selectOnFocus:c="replace"===n.selectionBehavior,disallowTypeAhead:d=!1,shouldUseVirtualFocus:u,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:A}=eA(),m=xh(),w=h({top:0,left:0});!function(e,n,t,r){let i=qg(t),o=null==t;s((()=>{if(o||!e.current)return;let t=e.current;return t.addEventListener(n,i,r),()=>{t.removeEventListener(n,i,r)}}),[e,n,r,o,i])}(g,"scroll",p?null:()=>{w.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const x=h(i);s((()=>{if(x.current){let e=null;"first"===i&&(e=t.getFirstKey()),"last"===i&&(e=t.getLastKey());let o=n.selectedKeys;if(o.size)for(let t of o)if(n.canSelectItem(t)){e=t;break}n.setFocused(!0),n.setFocusedKey(e),null!=e||u||Lv(r.current)}}),[]);let b=h(n.focusedKey);s((()=>{let e=Pv();if(n.isFocused&&null!=n.focusedKey&&(null==g?void 0:g.current)){let t=g.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);t&&("keyboard"===e||x.current)&&(p||Qh(g.current,t),"virtual"!==e&&Mh(t,{containingElement:r.current}))}n.isFocused&&null==n.focusedKey&&null!=b.current&&Lv(r.current),b.current=n.focusedKey,x.current=!1}),[p,g,n.focusedKey,n.isFocused,r]);let y,P={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!r.current.contains(e.target))return;const i=(t,r)=>{if(null!=t){if(n.isLink(t)&&"selection"===v&&c&&!nm(e)){oe((()=>{n.setFocusedKey(t,r)}));let i=g.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`);return void m.open(i,e)}if(n.setFocusedKey(t,r),n.isLink(t)&&"override"===v)return;e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):c&&!nm(e)&&n.replaceSelection(t)}};switch(e.key){case"ArrowDown":if(t.getKeyBelow){var s,d;e.preventDefault();let r=null!=n.focusedKey?t.getKeyBelow(n.focusedKey):null===(s=t.getFirstKey)||void 0===s?void 0:s.call(t);null==r&&o&&(r=null===(d=t.getFirstKey)||void 0===d?void 0:d.call(t,n.focusedKey)),i(r)}break;case"ArrowUp":if(t.getKeyAbove){var u,p;e.preventDefault();let r=null!=n.focusedKey?t.getKeyAbove(n.focusedKey):null===(u=t.getLastKey)||void 0===u?void 0:u.call(t);null==r&&o&&(r=null===(p=t.getLastKey)||void 0===p?void 0:p.call(t,n.focusedKey)),i(r)}break;case"ArrowLeft":if(t.getKeyLeftOf){var h,w;e.preventDefault();let r=t.getKeyLeftOf(n.focusedKey);null==r&&o&&(r="rtl"===A?null===(h=t.getFirstKey)||void 0===h?void 0:h.call(t,n.focusedKey):null===(w=t.getLastKey)||void 0===w?void 0:w.call(t,n.focusedKey)),i(r,"rtl"===A?"first":"last")}break;case"ArrowRight":if(t.getKeyRightOf){var x,b;e.preventDefault();let r=t.getKeyRightOf(n.focusedKey);null==r&&o&&(r="rtl"===A?null===(x=t.getLastKey)||void 0===x?void 0:x.call(t,n.focusedKey):null===(b=t.getFirstKey)||void 0===b?void 0:b.call(t,n.focusedKey)),i(r,"rtl"===A?"last":"first")}break;case"Home":if(t.getFirstKey){e.preventDefault();let r=t.getFirstKey(n.focusedKey,tm(e));n.setFocusedKey(r),tm(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(r):c&&n.replaceSelection(r)}break;case"End":if(t.getLastKey){e.preventDefault();let r=t.getLastKey(n.focusedKey,tm(e));n.setFocusedKey(r),tm(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(r):c&&n.replaceSelection(r)}break;case"PageDown":if(t.getKeyPageBelow){e.preventDefault(),i(t.getKeyPageBelow(n.focusedKey))}break;case"PageUp":if(t.getKeyPageAbove){e.preventDefault(),i(t.getKeyPageAbove(n.focusedKey))}break;case"a":tm(e)&&"multiple"===n.selectionMode&&!0!==l&&(e.preventDefault(),n.selectAll());break;case"Escape":e.preventDefault(),a||n.clearSelection();break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,n,t=function(e,n,t){let r=(null==n?void 0:n.tabbable)?Mv:jv,i=th(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==n||null===(i=n.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!Tv(e)||t&&!Nv(e,t)||(null==n?void 0:n.accept)&&!n.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==n?void 0:n.from)&&(i.currentNode=n.from),i}(r.current,{tabbable:!0});do{n=t.lastChild(),n&&(e=n)}while(n);e&&!e.contains(document.activeElement)&&dh(e)}break}}},onFocus:e=>{if(n.isFocused)e.currentTarget.contains(e.target)||n.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(n.setFocused(!0),null==n.focusedKey){let r=e=>{null!=e&&(n.setFocusedKey(e),c&&n.replaceSelection(e))},a=e.relatedTarget;var i,o;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(i=n.lastSelectedKey)&&void 0!==i?i:t.getLastKey()):r(null!==(o=n.firstSelectedKey)&&void 0!==o?o:t.getFirstKey())}else p||(g.current.scrollTop=w.current.top,g.current.scrollLeft=w.current.left);if(!p&&null!=n.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||dh(e),"keyboard"===Pv()&&Mh(e,{containingElement:r.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:C}=function(e){let{keyboardDelegate:n,selectionManager:t,onTypeSelect:r}=e,i=h({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?e=>{let o=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!o||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let a=n.getKeyForSearch(i.search,t.focusedKey);null==a&&(a=n.getKeyForSearch(i.search)),null!=a&&(t.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),rm)}:null}}}({keyboardDelegate:t,selectionManager:n});return d||(P=ih(C,P)),u||(y=null==n.focusedKey?0:-1),{collectionProps:{...P,tabIndex:y}}}function om(e){let{selectionManager:n,key:t,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:u="action"}=e,f=xh(),p=e=>{if("keyboard"===e.pointerType&&nm(e))n.toggleSelection(t);else{if("none"===n.selectionMode)return;if(n.isLink(t)){if("selection"===u)return f.open(r.current,e),void n.setSelectedKeys(n.selectedKeys);if("override"===u||"none"===u)return}"single"===n.selectionMode?n.isSelected(t)&&!n.disallowEmptySelection?n.toggleSelection(t):n.replaceSelection(t):e&&e.shiftKey?n.extendSelection(t):"toggle"===n.selectionBehavior||e&&(tm(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?n.toggleSelection(t):n.replaceSelection(t)}};s((()=>{t===n.focusedKey&&n.isFocused&&!o&&(a?a():document.activeElement!==r.current&&Lv(r.current))}),[r,t,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(t);let g={};o||l?l&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:t===n.focusedKey?0:-1,onFocus(e){e.target===r.current&&n.setFocusedKey(t)}};let v=n.isLink(t)&&"override"===u,A=n.isLink(t)&&"selection"!==u&&"none"!==u,m=!l&&n.canSelectItem(t)&&!v,w=(c||A)&&!l,x=w&&("replace"===n.selectionBehavior?!m:!m||n.isEmpty),b=w&&m&&"replace"===n.selectionBehavior,y=x||b,P=h(null),C=y&&m,z=h(!1),O=h(!1),B=e=>{c&&c(),A&&f.open(r.current,e)},D={};i?(D.onPressStart=e=>{P.current=e.pointerType,z.current=C,"keyboard"!==e.pointerType||y&&!lm()||p(e)},d?(D.onPressUp=x?null:e=>{"keyboard"!==e.pointerType&&m&&p(e)},D.onPress=x?B:null):D.onPress=e=>{if(x||b&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!am())return;B(e)}else"keyboard"!==e.pointerType&&m&&p(e)}):(D.onPressStart=e=>{P.current=e.pointerType,z.current=C,O.current=x,m&&("mouse"===e.pointerType&&!x||"keyboard"===e.pointerType&&(!w||lm()))&&p(e)},D.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&y&&am()||"mouse"===e.pointerType&&O.current)&&(y?B(e):m&&p(e))}),g["data-key"]=t,D.preventFocusOnPress=o;let{pressProps:H,isPressed:X}=Zh(D),k=b?e=>{"mouse"===P.current&&(e.stopPropagation(),e.preventDefault(),B(e))}:void 0,{longPressProps:E}=function(e){let{isDisabled:n,onLongPressStart:t,onLongPressEnd:r,onLongPress:i,threshold:o=Ev,accessibilityDescription:a}=e;const l=h();let{addGlobalListener:s,removeGlobalListener:c}=Oh(),{pressProps:d}=Zh({isDisabled:n,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(t&&t({...e,type:"longpressstart"}),l.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),l.current=void 0}),o),"touch"===e.pointerType)){let n=e=>{e.preventDefault()};s(e.target,"contextmenu",n,{once:!0}),s(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",n)}),30)}),{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:ih(d,Th(i&&!n?a:void 0))}}({isDisabled:!C,onLongPress(e){"touch"===e.pointerType&&(p(e),n.setSelectionBehavior("toggle"))}}),L=n.isLink(t)?e=>{bh.isOpening||e.preventDefault()}:void 0;return{itemProps:ih(g,m||x?H:{},C?E:{},{onDoubleClick:k,onDragStartCapture:e=>{"touch"===P.current&&z.current&&e.preventDefault()},onClick:L}),isPressed:X,isSelected:n.isSelected(t),isFocused:n.isFocused&&n.focusedKey===t,isDisabled:l,allowsSelection:m,hasAction:y}}function am(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function lm(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class sm{getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,n,t){let r=this.getItem(e);if(!r)return null;let i=r.getBoundingClientRect();do{e=n(e),r=this.getItem(e)}while(r&&t(i,r.getBoundingClientRect()));return e}isSameRow(e,n){return e.top===n.top||e.left!==n.left}isSameColumn(e,n){return e.left===n.left||e.top!==n.top}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){let n=this.collection.getItem(e);if("item"===(null==n?void 0:n.type)&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!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 n=this.ref.current,t=this.getItem(e);if(!t)return null;if(!kh(n))return this.getFirstKey();let r=n.getBoundingClientRect(),i=t.getBoundingClientRect();if("horizontal"===this.orientation){let o=r.x-n.scrollLeft,a=Math.max(0,i.x-o+i.width-r.width);for(;t&&i.x-o>a;)t=null==(e=this.getKeyAbove(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}else{let o=r.y-n.scrollTop,a=Math.max(0,i.y-o+i.height-r.height);for(;t&&i.y-o>a;)t=null==(e=this.getKeyAbove(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,t=this.getItem(e);if(!t)return null;if(!kh(n))return this.getLastKey();let r=n.getBoundingClientRect(),i=t.getBoundingClientRect();if("horizontal"===this.orientation){let o=r.x-n.scrollLeft,a=Math.min(n.scrollWidth,i.x-o-i.width+r.width);for(;t&&i.x-o<a;)t=null==(e=this.getKeyBelow(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}else{let o=r.y-n.scrollTop,a=Math.min(n.scrollHeight,i.y-o-i.height+r.height);for(;t&&i.y-o<a;)t=null==(e=this.getKeyBelow(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}return null!=e?e:this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let t=this.collection,r=n||this.getFirstKey();for(;null!=r;){let n=t.getItem(r),i=n.textValue.slice(0,e.length);if(n.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(1===e.length){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.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";"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function cm(e){let{selectionManager:n,collection:t,disabledKeys:r,ref:i,keyboardDelegate:o}=e,a=function(e){let{locale:n}=eA(),t=n+(e?Object.entries(e).sort(((e,n)=>e[0]<n[0]?-1:1)).join():"");if(aA.has(t))return aA.get(t);let r=new Intl.Collator(n,e);return aA.set(t,r),r}({usage:"search",sensitivity:"base"}),l=n.disabledBehavior,s=v((()=>o||new sm(t,"selection"===l?new Set:r,i,a)),[o,t,r,i,a,l]),{collectionProps:c}=im({...e,ref:i,selectionManager:n,keyboardDelegate:s});return{listProps:c}}const dm=new WeakMap;function um(e,n){let t=dm.get(e);if(!t)throw new Error("Unknown list");return`${t.id}-option-${r=n,"string"==typeof r?r.replace(/\s*/g,""):""+r}`;var r}function fm(e,n,t){let r=ch(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||("replace"===i?"action":"override");"toggle"===i&&"action"===o&&(o="override");let{listProps:a}=cm({...e,ref:t,selectionManager:n.selectionManager,collection:n.collection,disabledKeys:n.disabledKeys,linkBehavior:o}),{focusWithinProps:l}=Cv({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=_g(e.id);dm.set(n,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=function(e){let{id:n,label:t,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;n=_g(n);let a=_g(),l={};return t?(r=r?`${a} ${r}`:a,l={id:a,htmlFor:"label"===o?n:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:Bh({id:n,"aria-label":i,"aria-labelledby":r})}}({...e,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ih(r,l,"multiple"===n.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...ih(d,a)})}}function pm(e,n,t){var r;let{key:i}=e,o=dm.get(n);var a;let l=null!==(a=e.isDisabled)&&void 0!==a?a:n.disabledKeys.has(i);var s;let c=null!==(s=e.isSelected)&&void 0!==s?s:n.selectionManager.isSelected(i);var d;let u=null!==(d=e.shouldSelectOnPressUp)&&void 0!==d?d:null==o?void 0:o.shouldSelectOnPressUp;var f;let p=null!==(f=e.shouldFocusOnHover)&&void 0!==f?f:null==o?void 0:o.shouldFocusOnHover;var g;let h=null!==(g=e.shouldUseVirtualFocus)&&void 0!==g?g:null==o?void 0:o.shouldUseVirtualFocus;var v;let A=null!==(v=e.isVirtualized)&&void 0!==v?v:null==o?void 0:o.isVirtualized,m=eh(),w=eh(),x={role:"option","aria-disabled":l||void 0,"aria-selected":"none"!==n.selectionManager.selectionMode?c:void 0};gh()&&Ah()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=m,x["aria-describedby"]=w);let b=n.collection.getItem(i);if(A){let e=Number(null==b?void 0:b.index);x["aria-posinset"]=Number.isNaN(e)?void 0:e+1,x["aria-setsize"]=function(e){let n=Pg.get(e);if(null!=n)return n;n=0;let t=r=>{for(let i of r)"section"===i.type?t(wg(i,e)):n++};return t(e),Pg.set(e,n),n}(n.collection)}let{itemProps:y,isPressed:P,isFocused:C,hasAction:z,allowsSelection:O}=om({selectionManager:n.selectionManager,key:i,ref:t,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&p,isVirtualized:A,shouldUseVirtualFocus:h,isDisabled:l,onAction:(null==o?void 0:o.onAction)?()=>{var e;return null==o||null===(e=o.onAction)||void 0===e?void 0:e.call(o,i)}:void 0,linkBehavior:null==o?void 0:o.linkBehavior}),{hoverProps:B}=Xv({isDisabled:l||!p,onHoverStart(){yv()||(n.selectionManager.setFocused(!0),n.selectionManager.setFocusedKey(i))}}),D=ch(null==b?void 0:b.props,{isLink:!!(null==b||null===(r=b.props)||void 0===r?void 0:r.href)});return delete D.id,{optionProps:{...x,...ih(D,y,B),id:um(n,i)},labelProps:{id:m},descriptionProps:{id:w},isFocused:C,isFocusVisible:C&&yv(),isSelected:c,isDisabled:l,isPressed:P,allowsSelection:O,hasAction:z}}function gm(e){var n=o.useRef(null);return o.useImperativeHandle(e,(function(){return n.current})),n}function hm(e){var n=h(vm);g((function(){n.current=e}),[e]);var t=h(null);return t.current||(t.current=function(){return n.current.apply(this,arguments)}),t.current}function vm(){throw new Error("INVALID_USEEVENT_INVOCATION: the callback from useEvent cannot be invoked before the component has mounted.")}var Am,mm=D("ios")?300:0;function wm(){var e=this,n=o.useRef(null),t=pe(o.useState(!0),2),r=t[0],i=t[1];return o.useEffect((function(){r&&setTimeout((function(){return ue(e,void 0,void 0,(function(){return fe(this,(function(e){switch(e.label){case 0:return null===n.current?[3,2]:[4,n.current.setFocus()];case 1:e.sent(),i(!1),e.label=2;case 2:return[2]}}))}))}),mm)}),[r]),n}!function(e){e.client="client",e.specialist="specialist"}(Am||(Am={}));var xm=u({appTheme:Am.specialist}),bm=function(n){var t=n.children,r=n.appTheme;return a.useEffect((function(){document.documentElement.dataset.appTheme=r}),[r]),e(xm.Provider,ce({value:{appTheme:r}},{children:t}))},ym={exports:{}},Pm={},Cm=a;var zm="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},Om=Cm.useState,Bm=Cm.useEffect,Dm=Cm.useLayoutEffect,Hm=Cm.useDebugValue;function Xm(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!zm(e,t)}catch(e){return!0}}var km="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=Om({inst:{value:t,getSnapshot:n}}),i=r[0].inst,o=r[1];return Dm((function(){i.value=t,i.getSnapshot=n,Xm(i)&&o({inst:i})}),[e,t,n]),Bm((function(){return Xm(i)&&o({inst:i}),e((function(){Xm(i)&&o({inst:i})}))}),[e]),Hm(t),t};Pm.useSyncExternalStore=void 0!==Cm.useSyncExternalStore?Cm.useSyncExternalStore:km;var Em={};
16
+ Nc=Ic,function(){var e={}.hasOwnProperty;function n(){for(var e="",n=0;n<arguments.length;n++){var i=arguments[n];i&&(e=r(e,t(i)))}return e}function t(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var i="";for(var o in t)e.call(t,o)&&t[o]&&(i=r(i,o));return i}function r(e,n){return n?e?e+" "+n:e+n:e}Nc.exports?(n.default=n,Nc.exports=n):window.classNames=n}();var Fc,Rc,Vc=Ic.exports,Gc=((Fc={})[Us.Title48Bold]="text-5xl/[120%] font-bold font-title tracking-normal",Fc[Us.Title48Semi]="text-5xl font-semibold font-title tracking-normal",Fc[Us.Title32Semi]="text-3.5xl font-semibold font-title tracking-normal",Fc[Us.Title28Semi]="text-2.5xl font-semibold font-title tracking-normal",Fc[Us.Title24Semi]="text-2xl/[140%] font-semibold font-title tracking-normal",Fc[Us.Title20Semi]="text-xl/[140%] font-semibold font-title tracking-normal",Fc[Us.Text48Semi]="text-5xl/[120%] font-semibold",Fc[Us.Text32Semi]="text-3.5xl font-semibold",Fc[Us.Text24Semi]="text-2xl/[140%] font-semibold",Fc[Us.Text20Semi]="text-xl/[140%] font-semibold",Fc[Us.Text18Regular]="text-lg/[150%]",Fc[Us.Text18Semi]="text-lg/[150%] font-semibold",Fc[Us.Text16Semi]="text-base/[150%] font-semibold",Fc[Us.Text16Regular]="text-base/[150%]",Fc[Us.Text15Semi]="text-sl font-semibold",Fc[Us.Text15Regular]="text-sl",Fc[Us.Text14Semi]="text-sm/[140%] font-semibold",Fc[Us.Text14Regular]="text-sm/[140%]",Fc[Us.Text13Semi]="text-xm font-semibold",Fc[Us.Text13Regular]="text-xm",Fc[Us.Text12Regular]="text-xs/[120%]",Fc[Us.Tabbar10Medium]="text-lm font-medium",Fc),Wc={left:"text-left",right:"text-right",center:"text-center"},Yc={100:"opacity-100",65:"opacity-65",50:"opacity-50",45:"opacity-45",35:"opacity-35",30:"opacity-30",15:"opacity-15",10:"opacity-10",8:"opacity-8",6:"opacity-6"},Uc=a.memo((function(n){var t=n.variant,r=void 0===t?Us.Text16Regular:t,i=n.align,o=void 0===i?"left":i,a=n.opacity,l=void 0===a?100:a,s=n.isAppearCase,c=void 0!==s&&s,d=n.className,u=void 0===d?"":d,f=n.children;return e("div",ce({className:Vc("text-typography-typography-primary",Gc[r],Wc[o],Yc[l],{uppercase:c},u)},{children:f}))})),Kc=r(S)(Rc||(Rc=he(["\n background: #ffffff !important;\n display: flex;\n justify-content: center;\n\n ion-toolbar {\n --background: #ffffff !important;\n --padding-bottom: 10px;\n --padding-top: 10px;\n --padding-start: 20px;\n --padding-end: 20px;\n --border-width: 0;\n max-width: ",";\n padding: 0 !important;\n }\n\n &.bottomSaveArea {\n ion-toolbar {\n --padding-bottom: calc(10px + var(--ion-safe-area-bottom));\n }\n }\n\n .controls {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n }\n\n &.transparent {\n background: transparent;\n\n ion-toolbar {\n --background: transparent;\n }\n }\n"],["\n background: #ffffff !important;\n display: flex;\n justify-content: center;\n\n ion-toolbar {\n --background: #ffffff !important;\n --padding-bottom: 10px;\n --padding-top: 10px;\n --padding-start: 20px;\n --padding-end: 20px;\n --border-width: 0;\n max-width: ",";\n padding: 0 !important;\n }\n\n &.bottomSaveArea {\n ion-toolbar {\n --padding-bottom: calc(10px + var(--ion-safe-area-bottom));\n }\n }\n\n .controls {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 20px;\n }\n\n &.transparent {\n background: transparent;\n\n ion-toolbar {\n --background: transparent;\n }\n }\n"])),D("desktop")||D("tablet")?"410px":"100%"),qc=a.memo((function(n){var t=n.children,r=n.transparent,i=n.bottomSaveArea,o=void 0===i||i,a=n.borderTop;return e(Kc,ce({mode:"ios",className:Vc("ion-no-border",{"border-t-[1px] border-t-solid border-t-skeleton-color":void 0!==a&&a},{transparent:r},{bottomSaveArea:o})},{children:e(M,ce({mode:"ios"},{children:t}))}))}));var Jc,Zc,_c,$c=r.div(Jc||(Jc=he(["\n border-radius: ",";\n background-color: ",";\n flex-grow: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n border: 1px solid rgb(var(--borders-divider) / 0.1);\n background-clip: padding-box;\n\n &.small {\n width: 40px;\n height: 40px;\n }\n\n &.error {\n background-color: #28bfa1;\n }\n\n .avatar-loader {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n }\n\n .empty-icon {\n color: #fff;\n width: 24px;\n height: 24px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n .avatar-img {\n width: 100%;\n height: 100%;\n\n &::part(image) {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n &.medium {\n width: 72px;\n height: 72px;\n\n .empty-icon {\n width: 43px;\n height: 43px;\n }\n }\n"],["\n border-radius: ",";\n background-color: ",";\n flex-grow: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n border: 1px solid rgb(var(--borders-divider) / 0.1);\n background-clip: padding-box;\n\n &.small {\n width: 40px;\n height: 40px;\n }\n\n &.error {\n background-color: #28bfa1;\n }\n\n .avatar-loader {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n }\n\n .empty-icon {\n color: #fff;\n width: 24px;\n height: 24px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n .avatar-img {\n width: 100%;\n height: 100%;\n\n &::part(image) {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n }\n\n &.medium {\n width: 72px;\n height: 72px;\n\n .empty-icon {\n width: 43px;\n height: 43px;\n }\n }\n"])),(function(e){switch(null==e?void 0:e.round){case"circle":default:return"50%";case"drop":return"00% 50% 50% 50%;"}}),(function(e){return"drop"!==e.round||e.isLoading?void 0:"#212121"}));function ed(){return ed=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ed.apply(this,arguments)}function nd(e){return o.createElement("svg",ed({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Zc||(Zc=o.createElement("circle",{cx:12,cy:7,r:4,stroke:"currentColor",strokeWidth:1.5})),_c||(_c=o.createElement("path",{d:"M4 18a3 3 0 013-3h10a3 3 0 013 3v0a3 3 0 01-3 3H7a3 3 0 01-3-3v0z",stroke:"currentColor",strokeWidth:1.5})))}var td,rd,id,od=r(B)(td||(td=he(["\n margin: 0;\n padding: 0;\n"],["\n margin: 0;\n padding: 0;\n"]))),ad=a.memo((function(n){var t=n.animated,r=void 0===t||t,i=n.className,o=void 0===i?"":i,a=n.style;return e(od,{animated:r,className:o,style:void 0===a?{}:a})})),ld=a.memo((function(t){var r=t.variant,i=void 0===r?"small":r,o=t.round,l=void 0===o?"circle":o,d=t.className,u=t.src,f=t.alt,p=t.showSkeleton,g=pe(a.useState(!0),2),h=g[0],v=g[1],A=pe(a.useState(!1),2),m=A[0],w=A[1];s((function(){w(!u&&!p)}),[u,p]);var x=c((function(){w(!0),v(!1)}),[]);return n($c,ce({className:"".concat(i," ").concat(m&&"error"),round:l,isLoading:h},{children:[(h||p)&&!m&&e(ad,{className:"avatar-loader"}),m&&e(nd,{className:"empty-icon"}),!m&&e(R,{className:"avatar-img ".concat(d),src:u,alt:f,onIonImgDidLoad:function(){w(!1),v(!1)},onIonError:x,onIonImgWillLoad:function(){w(!1),v(!0)}})]}))})),sd=r(V)(rd||(rd=he(["\n margin: 0;\n --padding-top: 10px;\n --padding-bottom: 10px;\n --padding-end: 20px;\n --padding-start: 20px;\n --border-radius: 40px;\n --color: var(--buttons-btn-text);\n --background: var(--buttons-btn-primary);\n --background-focused: var(--buttons-btn-primary);\n --background-hover: var(--buttons-btn-primary);\n --background-activated: var(--buttons-btn-pressed);\n --background-focused-opacity: 1;\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n\n font-weight: 600;\n font-size: 14px;\n\n min-height: 40px;\n\n &.loading {\n --color: transparent;\n }\n\n & ion-spinner {\n width: 20px;\n height: 20px;\n --color: var(--buttons-btn-text);\n }\n\n &.full-width {\n width: 100%;\n }\n\n &.button-small {\n min-height: 30px;\n --padding-top: 5px;\n --padding-bottom: 5px;\n --padding-end: 16px;\n --padding-start: 16px;\n\n font-size: 14px;\n }\n\n &.button-large {\n --padding-top: 14px;\n --padding-bottom: 14px;\n\n font-size: 16px;\n min-height: 52px;\n\n & ion-spinner {\n width: 24px;\n height: 24px;\n }\n }\n\n &.button-outline {\n --color: var(--buttons-btn-primary);\n --color-hover: var(--buttons-btn-primary);\n --color-focused: var(--buttons-btn-primary);\n --color-activated: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: none;\n --background-hover: none;\n --background-activated: var(--color-background-anti-flash-50);\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n --background-focused-opacity: 1;\n --border-width: 2px;\n --border-color: var(--buttons-btn-primary);\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-clear {\n --color: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: transparent;\n --background-hover: transparent;\n --background-activated: transparent;\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-disabled.loading {\n opacity: 1;\n }\n\n &::part(native) {\n .button-inner {\n padding: 20px;\n }\n }\n"],["\n margin: 0;\n --padding-top: 10px;\n --padding-bottom: 10px;\n --padding-end: 20px;\n --padding-start: 20px;\n --border-radius: 40px;\n --color: var(--buttons-btn-text);\n --background: var(--buttons-btn-primary);\n --background-focused: var(--buttons-btn-primary);\n --background-hover: var(--buttons-btn-primary);\n --background-activated: var(--buttons-btn-pressed);\n --background-focused-opacity: 1;\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n\n font-weight: 600;\n font-size: 14px;\n\n min-height: 40px;\n\n &.loading {\n --color: transparent;\n }\n\n & ion-spinner {\n width: 20px;\n height: 20px;\n --color: var(--buttons-btn-text);\n }\n\n &.full-width {\n width: 100%;\n }\n\n &.button-small {\n min-height: 30px;\n --padding-top: 5px;\n --padding-bottom: 5px;\n --padding-end: 16px;\n --padding-start: 16px;\n\n font-size: 14px;\n }\n\n &.button-large {\n --padding-top: 14px;\n --padding-bottom: 14px;\n\n font-size: 16px;\n min-height: 52px;\n\n & ion-spinner {\n width: 24px;\n height: 24px;\n }\n }\n\n &.button-outline {\n --color: var(--buttons-btn-primary);\n --color-hover: var(--buttons-btn-primary);\n --color-focused: var(--buttons-btn-primary);\n --color-activated: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: none;\n --background-hover: none;\n --background-activated: var(--color-background-anti-flash-50);\n --background-hover-opacity: 1;\n --background-activated-opacity: 1;\n --background-focused-opacity: 1;\n --border-width: 2px;\n --border-color: var(--buttons-btn-primary);\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-clear {\n --color: var(--buttons-btn-primary);\n --background: transparent;\n --background-focused: transparent;\n --background-hover: transparent;\n --background-activated: transparent;\n\n & ion-spinner {\n --color: var(--buttons-btn-primary);\n }\n\n &.loading {\n --color: transparent;\n }\n }\n\n &.button-disabled.loading {\n opacity: 1;\n }\n\n &::part(native) {\n .button-inner {\n padding: 20px;\n }\n }\n"]))),cd=function(t){var r=t.children,i=t.fullWidth,o=void 0!==i&&i,a=t.className,l=void 0===a?"":a,s=t.routerLink,c=t.onClick,d=t.isLoading,u=t.disabled,f=t.icon,p=t.iconPosition,g=void 0===p?"start":p,h=de(t,["children","fullWidth","className","routerLink","onClick","isLoading","disabled","icon","iconPosition"]);return e(sd,ce({className:"relative ".concat(l," ").concat(o?"full-width":""," ").concat(d?"loading":""),routerLink:s,onClick:c},h,{disabled:!!u||!!d,mode:"ios"},{children:n("div",ce({className:Vc("flex justify-center items-center w-full relative",{"gap-2.5":"center"===g})},{children:[!!f&&e("div",ce({className:Vc("flex items-center justify-center",{"absolute left-0 top-1/2 -translate-y-1/2":"center"!==g},{"w-6 h-6":"small"!==h.size},{"w-5 h-5":"small"===h.size},{invisible:d})},{children:f})),d&&e(F,{name:"crescent",className:"absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2"}),e("div",ce({className:Vc({"flex-1":"center"!==g},{"pl-7":"center"!==g&&"small"===h.size&&!o&&!!f},{"pl-8":"center"!==g&&"small"!==h.size&&!o&&!!f},{invisible:d})},{children:r}))]}))}))},dd=r(G)(id||(id=he(["\n --padding-start: 20px;\n --padding-end: 20px;\n\n div& {\n padding-left: 20px;\n padding-right: 20px;\n ","\n }\n\n div.flex-container& {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n\n &::part(scroll) {\n ","\n }\n\n &.flex-container {\n &::part(scroll) {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n }\n"],["\n --padding-start: 20px;\n --padding-end: 20px;\n\n div& {\n padding-left: 20px;\n padding-right: 20px;\n ","\n }\n\n div.flex-container& {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n\n &::part(scroll) {\n ","\n }\n\n &.flex-container {\n &::part(scroll) {\n display: flex;\n flex-direction: column;\n gap: ","px;\n }\n }\n"])),(D("desktop")||D("tablet")&&!D("capacitor"))&&"\n max-width: 410px;\n margin: 0 auto;\n ",(function(e){return e.flexGapInPx}),(D("desktop")||D("tablet")&&!D("hybrid"))&&"\n max-width: 410px;\n margin: 0 auto;\n ",(function(e){return e.flexGapInPx})),ud=f((function(n,t){var r=n.className,i=n.children,o=n.scrollEvents,a=n.onIonScroll,l=n.onIonScrollStart,s=n.style,c=n.as,d=n.isFlexContainer,u=void 0!==d&&d,f=n.flexGapInPx,p=void 0===f?0:f;return e(dd,ce({as:c,ref:t,className:Vc({"flex-container":u},r),flexGapInPx:p,scrollEvents:o,onIonScroll:a,onIonScrollStart:l,style:s},{children:i}))}));ud.displayName="Container_v2";var fd,pd=r.div(fd||(fd=he(["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 24px;\n"]))),gd=a.memo((function(n){var t,r=n.name,i=n.className,o=void 0===i?"":i;return e(A,ce({fallback:e(ad,{style:{width:"24px",height:"15px"}})},{children:e(pd,ce({className:o},{children:null!==(t=function(e){if(!e)return null;"uk"===e&&(e="ua");var n=e.toUpperCase().split("").map((function(e){return 127397+e.charCodeAt(0)}));return String.fromCodePoint.apply(String,ge([],pe(n),!1))}(r))&&void 0!==t?t:"🏳️"}))}))})),hd=new Map,vd=new WeakMap,Ad=0,md=void 0;function wd(e){return Object.keys(e).sort().filter((n=>void 0!==e[n])).map((n=>{return`${n}_${"root"===n?(t=e.root,t?(vd.has(t)||(Ad+=1,vd.set(t,Ad.toString())),vd.get(t)):"0"):e[n]}`;var t})).toString()}function xd(e,n,t={},r=md){if(void 0===window.IntersectionObserver&&void 0!==r){const i=e.getBoundingClientRect();return n(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof t.threshold?t.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:i,observer:o,elements:a}=function(e){const n=wd(e);let t=hd.get(n);if(!t){const r=new Map;let i;const o=new IntersectionObserver((n=>{n.forEach((n=>{var t;const o=n.isIntersecting&&i.some((e=>n.intersectionRatio>=e));e.trackVisibility&&void 0===n.isVisible&&(n.isVisible=o),null==(t=r.get(n.target))||t.forEach((e=>{e(o,n)}))}))}),e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),t={id:n,observer:o,elements:r},hd.set(n,t)}return t}(t),l=a.get(e)||[];return a.has(e)||a.set(e,l),l.push(n),o.observe(e),function(){l.splice(l.indexOf(n),1),0===l.length&&(a.delete(e),o.unobserve(e)),0===a.size&&(o.disconnect(),hd.delete(i))}}var bd,yd=r.div(bd||(bd=he(["\n position: relative;\n\n picture {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n .skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n }\n"],["\n position: relative;\n\n picture {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n\n .skeleton {\n position: absolute;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n }\n"]))),Pd=a.memo((function(t){var r=t.width,i=t.height,l=t.src,s=t.srcType,d=t.alt,u=t.className,f=void 0===u?"":u,p=function({threshold:e,delay:n,trackVisibility:t,rootMargin:r,root:i,triggerOnce:a,skip:l,initialInView:s,fallbackInView:c,onChange:d}={}){var u;const[f,p]=o.useState(null),g=o.useRef(),[h,v]=o.useState({inView:!!s,entry:void 0});g.current=d,o.useEffect((()=>{if(l||!f)return;let o;return o=xd(f,((e,n)=>{v({inView:e,entry:n}),g.current&&g.current(e,n),n.isIntersecting&&a&&o&&(o(),o=void 0)}),{root:i,rootMargin:r,threshold:e,trackVisibility:t,delay:n},c),()=>{o&&o()}}),[Array.isArray(e)?e.toString():e,f,i,r,a,l,t,c,n]);const A=null==(u=h.entry)?void 0:u.target,m=o.useRef();f||!A||a||l||m.current===A||(m.current=A,v({inView:!!s,entry:void 0}));const w=[p,h.inView,h.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}({triggerOnce:!0,rootMargin:"200px 0px"}),g=p.ref,h=p.inView,v=pe(a.useState(!0),2),A=v[0],m=v[1],w=c((function(){m(!1)}),[]);return n(yd,ce({ref:g,style:{width:"".concat(r,"px"),height:"".concat(i,"px")},className:f},{children:[A&&e(ad,{className:"skeleton"}),h?n("picture",ce({onLoad:w},{children:[(!!(null==l?void 0:l.webp)||!!(null==l?void 0:l.webp2x))&&e("source",{srcSet:"".concat((null==l?void 0:l.webp)?l.webp+" 1x,":""," ").concat((null==l?void 0:l.webp2x)?l.webp2x+" 2x":""),type:"image/webp"}),e("source",{srcSet:"".concat((null==l?void 0:l.src)?l.src+" 1x,":""," ").concat((null==l?void 0:l.src2x)?l.src2x+" 2x":""),type:s}),e("img",{src:null==l?void 0:l.src,loading:"lazy",alt:d})]})):null]}))})),Cd=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,zd=e=>!e||"object"!=typeof e||0===Object.keys(e).length;function Od(e,n){e.forEach((function(e){Array.isArray(e)?Od(e,n):n.push(e)}))}function Bd(e){let n=[];return Od(e,n),n}var Dd=(...e)=>Bd(e).filter(Boolean),Hd=(e,n)=>{let t={},r=Object.keys(e),i=Object.keys(n);for(let o of r)if(i.includes(o)){let r=e[o],i=n[o];"object"==typeof r&&"object"==typeof i?t[o]=Hd(r,i):Array.isArray(r)||Array.isArray(i)?t[o]=Dd(i,r):t[o]=i+" "+r}else t[o]=e[o];for(let e of i)r.includes(e)||(t[e]=n[e]);return t},Xd=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e;function kd(){for(var e,n,t=0,r="";t<arguments.length;)(e=arguments[t++])&&(n=Ed(e))&&(r&&(r+=" "),r+=n);return r}function Ed(e){if("string"==typeof e)return e;for(var n,t="",r=0;r<e.length;r++)e[r]&&(n=Ed(e[r]))&&(t&&(t+=" "),t+=n);return t}var Ld="-";function Td(e){var n=function(e){var n=e.theme,t=e.prefix,r={nextPart:new Map,validators:[]},i=function(e,n){if(!n)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?n+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var t=e[0],r=e[1];return[n+t,r]}))):e}))]}))}(Object.entries(e.classGroups),t);return i.forEach((function(e){var t=e[0];Md(e[1],r,t,n)})),r}(e),t=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,i=void 0===r?{}:r;return{getClassGroupId:function(e){var t=e.split(Ld);return""===t[0]&&1!==t.length&&t.shift(),Qd(t,n)||function(e){if(jd.test(e)){var n=jd.exec(e)[1],t=n?.substring(0,n.indexOf(":"));if(t)return"arbitrary.."+t}}(e)},getConflictingClassGroupIds:function(e,n){var r=t[e]||[];return n&&i[e]?[].concat(r,i[e]):r}}}function Qd(e,n){if(0===e.length)return n.classGroupId;var t=e[0],r=n.nextPart.get(t),i=r?Qd(e.slice(1),r):void 0;if(i)return i;if(0!==n.validators.length){var o=e.join(Ld);return n.validators.find((function(e){return(0,e.validator)(o)}))?.classGroupId}}var jd=/^\[(.+)\]$/;function Md(e,n,t,r){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void Md(e(r),n,t,r):void n.validators.push({validator:e,classGroupId:t});Object.entries(e).forEach((function(e){var i=e[0];Md(e[1],Nd(n,i),t,r)}))}else{(""===e?n:Nd(n,e)).classGroupId=t}}))}function Nd(e,n){var t=e;return n.split(Ld).forEach((function(e){t.nextPart.has(e)||t.nextPart.set(e,{nextPart:new Map,validators:[]}),t=t.nextPart.get(e)})),t}function Sd(e){if(e<1)return{get:function(){},set:function(){}};var n=0,t=new Map,r=new Map;function i(i,o){t.set(i,o),++n>e&&(n=0,r=t,t=new Map)}return{get:function(e){var n=t.get(e);return void 0!==n?n:void 0!==(n=r.get(e))?(i(e,n),n):void 0},set:function(e,n){t.has(e)?t.set(e,n):i(e,n)}}}var Id="!";function Fd(e){var n=e.separator||":",t=1===n.length,r=n[0],i=n.length;return function(e){for(var o,a=[],l=0,s=0,c=0;c<e.length;c++){var d=e[c];if(0===l){if(d===r&&(t||e.slice(c,c+i)===n)){a.push(e.slice(s,c)),s=c+i;continue}if("/"===d){o=c;continue}}"["===d?l++:"]"===d&&l--}var u=0===a.length?e:e.substring(s),f=u.startsWith(Id);return{modifiers:a,hasImportantModifier:f,baseClassName:f?u.substring(1):u,maybePostfixModifierPosition:o&&o>s?o-s:void 0}}}var Rd=/\s+/;function Vd(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,i,o,a=function(e){var t=n[0],s=n.slice(1).reduce((function(e,n){return n(e)}),t());return r=function(e){return{cache:Sd(e.cacheSize),splitModifiers:Fd(e),...Td(e)}}(s),i=r.cache.get,o=r.cache.set,a=l,l(e)};function l(e){var n=i(e);if(n)return n;var t=function(e,n){var t=n.splitModifiers,r=n.getClassGroupId,i=n.getConflictingClassGroupIds,o=new Set;return e.trim().split(Rd).map((function(e){var n=t(e),i=n.modifiers,o=n.hasImportantModifier,a=n.baseClassName,l=n.maybePostfixModifierPosition,s=r(l?a.substring(0,l):a),c=Boolean(l);if(!s){if(!l)return{isTailwindClass:!1,originalClassName:e};if(!(s=r(a)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var n=[],t=[];return e.forEach((function(e){"["===e[0]?(n.push.apply(n,t.sort().concat([e])),t=[]):t.push(e)})),n.push.apply(n,t.sort()),n}(i).join(":");return{isTailwindClass:!0,modifierId:o?d+Id:d,classGroupId:s,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var n=e.modifierId,t=e.classGroupId,r=e.hasPostfixModifier,a=n+t;return!o.has(a)&&(o.add(a),i(t,r).forEach((function(e){return o.add(n+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,r);return o(e,t),t}return function(){return a(kd.apply(null,arguments))}}function Gd(e){var n=function(n){return n[e]||[]};return n.isThemeGetter=!0,n}var Wd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Yd=/^\d+\/\d+$/,Ud=new Set(["px","full","screen"]),Kd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Jd=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function Zd(e){return ru(e)||Ud.has(e)||Yd.test(e)||_d(e)}function _d(e){return du(e,"length",uu)}function $d(e){return du(e,"size",fu)}function eu(e){return du(e,"position",fu)}function nu(e){return du(e,"url",pu)}function tu(e){return du(e,"number",ru)}function ru(e){return!Number.isNaN(Number(e))}function iu(e){return e.endsWith("%")&&ru(e.slice(0,-1))}function ou(e){return gu(e)||du(e,"number",gu)}function au(e){return Wd.test(e)}function lu(){return!0}function su(e){return Kd.test(e)}function cu(e){return du(e,"",hu)}function du(e,n,t){var r=Wd.exec(e);return!!r&&(r[1]?r[1]===n:t(r[2]))}function uu(e){return qd.test(e)}function fu(){return!1}function pu(e){return e.startsWith("url(")}function gu(e){return Number.isInteger(Number(e))}function hu(e){return Jd.test(e)}function vu(){var e=Gd("colors"),n=Gd("spacing"),t=Gd("blur"),r=Gd("brightness"),i=Gd("borderColor"),o=Gd("borderRadius"),a=Gd("borderSpacing"),l=Gd("borderWidth"),s=Gd("contrast"),c=Gd("grayscale"),d=Gd("hueRotate"),u=Gd("invert"),f=Gd("gap"),p=Gd("gradientColorStops"),g=Gd("gradientColorStopPositions"),h=Gd("inset"),v=Gd("margin"),A=Gd("opacity"),m=Gd("padding"),w=Gd("saturate"),x=Gd("scale"),b=Gd("sepia"),y=Gd("skew"),P=Gd("space"),C=Gd("translate"),z=function(){return["auto",au,n]},O=function(){return[au,n]},B=function(){return["",Zd]},D=function(){return["auto",ru,au]},H=function(){return["","0",au]},X=function(){return[ru,tu]},k=function(){return[ru,au]};return{cacheSize:500,theme:{colors:[lu],spacing:[Zd],blur:["none","",su,au],brightness:X(),borderColor:[e],borderRadius:["none","","full",su,au],borderSpacing:O(),borderWidth:B(),contrast:X(),grayscale:H(),hueRotate:k(),invert:H(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[iu,_d],inset:z(),margin:z(),opacity:X(),padding:O(),saturate:X(),scale:X(),sepia:H(),skew:k(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",au]}],container:["container"],columns:[{columns:[su]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[au])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ou]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",au]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",ou]}],"grid-cols":[{"grid-cols":[lu]}],"col-start-end":[{col:["auto",{span:["full",ou]},au]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[lu]}],"row-start-end":[{row:["auto",{span:[ou]},au]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",au]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",au]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",au,n]}],"min-w":[{"min-w":["min","max","fit",au,Zd]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[su]},su,au]}],h:[{h:[au,n,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",au,Zd]}],"max-h":[{"max-h":[au,n,"min","max","fit"]}],"font-size":[{text:["base",su,_d]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tu]}],"font-family":[{font:[lu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",au]}],"line-clamp":[{"line-clamp":["none",ru,tu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",au,Zd]}],"list-image":[{"list-image":["none",au]}],"list-style-type":[{list:["none","disc","decimal",au]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",Zd]}],"underline-offset":[{"underline-offset":["auto",au,Zd]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",au]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",au]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[eu])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$d]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[au,Zd]}],"outline-w":[{outline:[Zd]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Zd]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",su,cu]}],"shadow-color":[{shadow:[lu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",su,au]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[w]}],sepia:[{sepia:[b]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",au]}],duration:[{duration:k()}],ease:[{ease:["linear","in","out","in-out",au]}],delay:[{delay:k()}],animate:[{animate:["none","spin","ping","pulse","bounce",au]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[ou,au]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[y]}],"skew-y":[{"skew-y":[y]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",au]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",au]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",au]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zd,tu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Au=Object.prototype.hasOwnProperty,mu=new Set(["string","number","boolean"]);function wu(e,n,t){if(Au.call(e,n)&&!mu.has(typeof t)&&null!==t){if(Array.isArray(t)&&Array.isArray(e[n]))e[n]=e[n].concat(t);else if("object"==typeof t&&"object"==typeof e[n]){if(null===e[n])return void(e[n]=t);for(var r in t)wu(e[n],r,t[r])}}else e[n]=t}function xu(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];return"function"==typeof e?Vd.apply(void 0,[vu,e].concat(t)):Vd.apply(void 0,[function(){return function(e,n){for(var t in n)wu(e,t,n[t]);return e}(vu(),e)}].concat(t))}var bu=Vd(vu),yu={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Pu=e=>e||void 0,Cu=(...e)=>Pu(Bd(e).filter(Boolean).join(" ")),zu=null,Ou={},Bu=!1,Du=(...e)=>n=>n.twMerge?((!zu||Bu)&&(Bu=!1,zu=zd(Ou)?bu:xu(Ou)),Pu(zu(Cu(e)))):Cu(e),Hu=(e,n)=>{for(let t in n)e.hasOwnProperty(t)?e[t]=Cu(e[t],n[t]):e[t]=n[t];return e},Xu=(e,n)=>{let{extend:t=null,slots:r={},variants:i={},compoundVariants:o=[],compoundSlots:a=[],defaultVariants:l={}}=e,s={...yu,...n},c=null!=t&&t.base?Cu(t.base,null==e?void 0:e.base):null==e?void 0:e.base,d=null!=t&&t.variants&&!zd(t.variants)?Hd(i,t.variants):i,u=null!=t&&t.defaultVariants&&!zd(t.defaultVariants)?{...t.defaultVariants,...l}:l;!zd(s.twMergeConfig)&&!((e,n)=>JSON.stringify(e)===JSON.stringify(n))(s.twMergeConfig,Ou)&&(Bu=!0,Ou=s.twMergeConfig);let f=zd(null==t?void 0:t.slots),p=zd(r)?{}:{base:Cu(null==e?void 0:e.base,f&&(null==t?void 0:t.base)),...r},g=f?p:Hu({...null==t?void 0:t.slots},zd(p)?{base:null==e?void 0:e.base}:p),h=e=>{if(zd(d)&&zd(r)&&f)return Du(c,null==e?void 0:e.class,null==e?void 0:e.className)(s);if(o&&!Array.isArray(o))throw new TypeError('The "compoundVariants" prop must be an array. Received: '+typeof o);if(a&&!Array.isArray(a))throw new TypeError('The "compoundSlots" prop must be an array. Received: '+typeof a);let n=(e,n,t=[],r)=>{let i=t;if("string"==typeof n)i=i.concat(Xd(n).split(" ").map((n=>`${e}:${n}`)));else if(Array.isArray(n))i=i.concat(n.reduce(((n,t)=>n.concat(`${e}:${t}`)),[]));else if("object"==typeof n&&"string"==typeof r)for(let t in n)if(n.hasOwnProperty(t)&&t===r){let o=n[t];if(o&&"string"==typeof o){let n=Xd(o);i[r]?i[r]=i[r].concat(n.split(" ").map((n=>`${e}:${n}`))):i[r]=n.split(" ").map((n=>`${e}:${n}`))}else Array.isArray(o)&&o.length>0&&(i[r]=o.reduce(((n,t)=>n.concat(`${e}:${t}`)),[]))}return i},i=(t,r=d,i=null,o=null)=>{var a;let l=r[t];if(!l||zd(l))return null;let c=null!=(a=null==o?void 0:o[t])?a:null==e?void 0:e[t];if(null===c)return null;let f=Cd(c),p=Array.isArray(s.responsiveVariants)&&s.responsiveVariants.length>0||!0===s.responsiveVariants,g=null==u?void 0:u[t],h=[];if("object"==typeof f&&p)for(let[e,t]of Object.entries(f)){let r=l[t];"initial"!==e?Array.isArray(s.responsiveVariants)&&!s.responsiveVariants.includes(e)||(h=n(e,r,h,i)):g=t}let v=l[f]||l[Cd(g)];return"object"==typeof h&&"string"==typeof i&&h[i]?Hu(h,v):h.length>0?(h.push(v),h):v},l=(e,n)=>{if(!d||"object"!=typeof d)return null;let t=new Array;for(let r in d){let o=i(r,d,e,n),a="base"===e&&"string"==typeof o?o:o&&o[e];a&&(t[t.length]=a)}return t},p={};for(let n in e)void 0!==e[n]&&(p[n]=e[n]);let h=(n,t)=>{var r;let i="object"==typeof(null==e?void 0:e[n])?{[n]:null==(r=e[n])?void 0:r.initial}:{};return{...u,...p,...i,...t}},v=(e=[],n)=>{let t=[];for(let{class:r,className:i,...o}of e){let e=!0;for(let[t,r]of Object.entries(o)){let i=h(t,n);if(Array.isArray(r)){if(!r.includes(i[t])){e=!1;break}}else if(i[t]!==r){e=!1;break}}e&&(r&&t.push(r),i&&t.push(i))}return t},A=e=>{let n=v(o,e),r=v(null==t?void 0:t.compoundVariants,e);return Dd(r,n)},m=e=>{let n=A(e);if(!Array.isArray(n))return n;let t={};for(let e of n)if("string"==typeof e&&(t.base=Du(t.base,e)(s)),"object"==typeof e)for(let[n,r]of Object.entries(e))t[n]=Du(t[n],r)(s);return t},w=e=>{if(a.length<1)return null;let n={};for(let{slots:t=[],class:r,className:i,...o}of a){if(!zd(o)){let n=!0;for(let t of Object.keys(o)){let r=h(t,e)[t];if(void 0===r||(Array.isArray(o[t])?!o[t].includes(r):o[t]!==r)){n=!1;break}}if(!n)continue}for(let e of t)n[e]=n[e]||[],n[e].push([r,i])}return n};if(!zd(r)||!f){let e={};if("object"==typeof g&&!zd(g))for(let n of Object.keys(g))e[n]=e=>{var t,r;return Du(g[n],l(n,e),(null!=(t=m(e))?t:[])[n],(null!=(r=w(e))?r:[])[n],null==e?void 0:e.class,null==e?void 0:e.className)(s)};return e}return Du(c,d?Object.keys(d).map((e=>i(e,d))):null,A(),null==e?void 0:e.class,null==e?void 0:e.className)(s)};return h.variantKeys=(()=>{if(d&&"object"==typeof d)return Object.keys(d)})(),h.extend=t,h.base=c,h.slots=g,h.variants=d,h.defaultVariants=u,h.compoundSlots=a,h.compoundVariants=o,h},ku=Xu({base:"inline-flex justify-center items-center rounded-3xl",variants:{variant:{attention:"",neutral:"",warning:"",danger:"",success:"",brand:"",info:""},size:{S:"px-2 py-1 text-xs/[140%] font-semibold",M:"px-2.5 py-1 text-[13px]/[150%] font-semibold"},type:{default:"",accent:""}},compoundVariants:[{type:"default",variant:"attention",size:["S","M"],className:"bg-badges-attention-bg text-badges-attention-main"},{type:"default",variant:"success",size:["S","M"],className:"bg-badges-success-bg text-badges-success-main"},{type:"default",variant:"info",size:["S","M"],className:"bg-badges-info-bg text-badges-info-main"},{type:"default",variant:"warning",size:["S","M"],className:"bg-badges-warning-bg text-badges-warning-main"},{type:"default",variant:"neutral",size:["S","M"],className:"bg-badges-neutral-bg text-badges-neutral-main/50"},{type:"default",variant:"brand",size:["S","M"],className:""},{type:"accent",variant:"attention",size:["S","M"],className:"bg-badges-attention-main text-color-background-white"},{type:"accent",variant:"success",size:["S","M"],className:"bg-badges-success-main text-color-background-white"},{type:"accent",variant:"info",size:["S","M"],className:"bg-badges-info-main text-color-background-white"},{type:"accent",variant:"warning",size:["S","M"],className:"bg-badges-warning-main text-color-background-white"},{type:"accent",variant:"brand",size:["S","M"],className:"bg-badges-accent-main text-color-background-white"},{type:"accent",variant:"neutral",size:["S","M"],className:"bg-badges-neutral-main text-color-background-white"}],defaultVariants:{variant:"neutral",size:"S",type:"default"}}),Eu=o.forwardRef((function(n,t){var r=n.variant,i=n.size,a=void 0===i?"S":i,l=n.type,s=void 0===l?"default":l,c=n.children,d=n.className,u=de(n,["variant","size","type","children","className"]),f=o.useMemo((function(){return ku({type:s,size:a,className:d,variant:r})}),[r,a,s,d]);return e("span",ce({ref:t,className:f},u,{children:c}))})),Lu=o.memo(Eu),Tu=Xu({base:"",variants:{variant:{neutral:"bg-color-background-anti-flash-light rounded-[30px]",transparent:"bg-transparent rounded-[24px] border border-color-black border-opacity-35"},size:{M:"p-5",M4:"p-4"}},compoundVariants:[{variant:"neutral",size:["M"]},{variant:"transparent",size:["M4"]}]}),Qu=o.forwardRef((function(n,t){var r=n.variant,i=n.size,a=void 0===i?"M":i,l=n.children,s=n.className,c=de(n,["variant","size","children","className"]),d=o.useMemo((function(){return Tu({size:a,className:s,variant:r})}),[r,a,s]);return e("div",ce({ref:t,className:d},c,{children:l}))})),ju=o.memo(Qu),Mu="AppHeader_v2-module_appHeaderContainer__tuJkw",Nu="AppHeader_v2-module_appHeaderToolbar__U9asl";Ye(".AppHeader_v2-module_appHeaderContainer__tuJkw:after{background-image:none!important}.AppHeader_v2-module_appHeaderToolbar__U9asl{--padding-bottom:0;--padding-end:20px;--padding-start:20px;--padding-top:0;--background:#fff;--border-width:0!important;--border-style:none}.AppHeader_v2-module_appHeaderToolbar__U9asl.AppHeader_v2-module_buttons-first-slot__9-SNP,.AppHeader_v2-module_appHeaderToolbar__U9asl.AppHeader_v2-module_buttons-last-slot__AIuWx{margin:0}",{insertAt:"top"});var Su=function(n){var t=n.fullwidth,r=void 0!==t&&t,i=n.className,o=n.children,a=!r&&(D("desktop")||D("tablet"));return e(O,ce({className:Vc("bg-white shadow-none flex justify-center",i,Mu)},{children:e(M,ce({className:"".concat(a?"max-w-container":"max-w-full"," ").concat(Nu)},{children:o}))}))};function Iu(e,n,t){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function Fu(e,n){return e-n*Math.floor(e/n)}const Ru=1721426;function Vu(e,n,t,r){let i=(n=Wu(e,n))-1,o=-2;return t<=2?o=0:Gu(n)&&(o=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*t-362)/12+o+r)}function Gu(e){return e%4==0&&(e%100!=0||e%400==0)}function Wu(e,n){return"BC"===e?1-n:n}function Yu(e){let n="AD";return e<=0&&(n="BC",e=1-e),[n,e]}const Uu={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 Ku{fromJulianDay(e){let n=e,t=n-Ru,r=Math.floor(t/146097),i=Fu(t,146097),o=Math.floor(i/36524),a=Fu(i,36524),l=Math.floor(a/1461),s=Fu(a,1461),c=Math.floor(s/365),d=400*r+100*o+4*l+c+(4!==o&&4!==c?1:0),[u,f]=Yu(d),p=n-Vu(u,f,1,1),g=2;n<Vu(u,f,3,1)?g=0:Gu(f)&&(g=1);let h=Math.floor((12*(p+g)+373)/367),v=n-Vu(u,f,h,1)+1;return new Uf(u,f,h,v)}toJulianDay(e){return Vu(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Uu[Gu(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Gu(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const qu={"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 Ju(e,n){return n=Pf(n,e.calendar),e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function Zu(e,n){return e.calendar.identifier===n.calendar.identifier&&e.era===n.era&&e.year===n.year&&e.month===n.month&&e.day===n.day}function _u(e,n){let t=e.calendar.toJulianDay(e),r=Math.ceil(t+1-function(e){let n=function(e){if(Intl.Locale){let n=sf.get(e);return n||(n=new Intl.Locale(e).maximize().region,n&&sf.set(e,n)),n}let n=e.split("-")[1];return"u"===n?void 0:n}(e);return n&&qu[n]||0}(n))%7;return r<0&&(r+=7),r}function $u(e){return bf(function(e){return xf(Date.now(),e)}(e))}function ef(e,n){return e.calendar.toJulianDay(e)-n.calendar.toJulianDay(n)}function nf(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let tf=null;function rf(){return null==tf&&(tf=(new Intl.DateTimeFormat).resolvedOptions().timeZone),tf}function of(e){return e.subtract({days:e.day-1})}function af(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function lf(e,n){let t=_u(e,n);return e.subtract({days:t})}const sf=new Map;function cf(e,n){return e&&n?e.compare(n)<=0?e:n:e||n}function df(e,n){return e&&n?e.compare(n)>=0?e:n:e||n}function uf(e){return ff(Wu((e=Pf(e,new Ku)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function ff(e,n,t,r,i,o,a){let l=new Date;return l.setUTCHours(r,i,o,a),l.setUTCFullYear(e,n-1,t),l.getTime()}function pf(e,n){if("UTC"===n)return 0;if(e>0&&n===rf())return-6e4*new Date(e).getTimezoneOffset();let{year:t,month:r,day:i,hour:o,minute:a,second:l}=hf(e,n);return ff(t,r,i,o,a,l,0)-1e3*Math.floor(e/1e3)}const gf=new Map;function hf(e,n){let t=gf.get(n);t||(t=new Intl.DateTimeFormat("en-US",{timeZone:n,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),gf.set(n,t));let r=t.formatToParts(new Date(e)),i={};for(let e of r)"literal"!==e.type&&(i[e.type]=e.value);return{year:"BC"===i.era||"B"===i.era?1-i.year:+i.year,month:+i.month,day:+i.day,hour:"24"===i.hour?0:+i.hour,minute:+i.minute,second:+i.second}}const vf=864e5;function Af(e,n,t,r){return(t===r?[t]:[t,r]).filter((t=>function(e,n,t){let r=hf(t,n);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,n,t)))}function mf(e,n,t="compatible"){let r=yf(e);if("UTC"===n)return uf(r);if(n===rf()&&"compatible"===t){r=Pf(r,new Ku);let e=new Date,n=Wu(r.era,r.year);return e.setFullYear(n,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=uf(r),o=pf(i-vf,n),a=pf(i+vf,n),l=Af(r,n,i-o,i-a);if(1===l.length)return l[0];if(l.length>1)switch(t){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(t){case"earlier":return Math.min(i-o,i-a);case"compatible":case"later":return Math.max(i-o,i-a);case"reject":throw new RangeError("No such absolute time found")}}function wf(e,n,t="compatible"){return new Date(mf(e,n,t))}function xf(e,n){let t=pf(e,n),r=new Date(e+t),i=r.getUTCFullYear(),o=r.getUTCMonth()+1,a=r.getUTCDate(),l=r.getUTCHours(),s=r.getUTCMinutes(),c=r.getUTCSeconds(),d=r.getUTCMilliseconds();return new Zf(i,o,a,n,t,l,s,c,d)}function bf(e){return new Uf(e.calendar,e.era,e.year,e.month,e.day)}function yf(e,n){let t=0,r=0,i=0,o=0;if("timeZone"in e)({hour:t,minute:r,second:i,millisecond:o}=e);else if("hour"in e&&!n)return e;return n&&({hour:t,minute:r,second:i,millisecond:o}=n),new qf(e.calendar,e.era,e.year,e.month,e.day,t,r,i,o)}function Pf(e,n){if(e.calendar.identifier===n.identifier)return e;let t=n.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=n,r.era=t.era,r.year=t.year,r.month=t.month,r.day=t.day,Xf(r),r}function Cf(e,n,t){if(e instanceof Zf)return e.timeZone===n?e:function(e,n){let t=uf(e)-e.offset;return Pf(xf(t,n),e.calendar)}(e,n);return xf(mf(e,n,t),n)}const zf=36e5;function Of(e,n){let t=e.copy(),r="hour"in t?function(e,n){return e.hour+=n.hours||0,e.minute+=n.minutes||0,e.second+=n.seconds||0,e.millisecond+=n.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Qf(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Qf(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Qf(e.minute,60);let n=Math.floor(e.hour/24);return e.hour=Qf(e.hour,24),n}(e)}(t,n):0;Bf(t,n.years||0),t.calendar.balanceYearMonth&&t.calendar.balanceYearMonth(t,e),t.month+=n.months||0,Df(t),Hf(t),t.day+=7*(n.weeks||0),t.day+=n.days||0,t.day+=r,function(e){for(;e.day<1;)e.month--,Df(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Df(e)}(t),t.calendar.balanceDate&&t.calendar.balanceDate(t),t.year<1&&(t.year=1,t.month=1,t.day=1);let i=t.calendar.getYearsInEra(t);if(t.year>i){var o,a;let e=null===(o=(a=t.calendar).isInverseEra)||void 0===o?void 0:o.call(a,t);t.year=i,t.month=e?1:t.calendar.getMonthsInYear(t),t.day=e?1:t.calendar.getDaysInMonth(t)}t.month<1&&(t.month=1,t.day=1);let l=t.calendar.getMonthsInYear(t);return t.month>l&&(t.month=l,t.day=t.calendar.getDaysInMonth(t)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day)),t}function Bf(e,n){var t,r;(null===(t=(r=e.calendar).isInverseEra)||void 0===t?void 0:t.call(r,e))&&(n=-n),e.year+=n}function Df(e){for(;e.month<1;)Bf(e,-1),e.month+=e.calendar.getMonthsInYear(e);let n=0;for(;e.month>(n=e.calendar.getMonthsInYear(e));)e.month-=n,Bf(e,1)}function Hf(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function Xf(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Hf(e)}function kf(e){let n={};for(let t in e)"number"==typeof e[t]&&(n[t]=-e[t]);return n}function Ef(e,n){return Of(e,kf(n))}function Lf(e,n){let t=e.copy();return null!=n.era&&(t.era=n.era),null!=n.year&&(t.year=n.year),null!=n.month&&(t.month=n.month),null!=n.day&&(t.day=n.day),Xf(t),t}function Tf(e,n){let t=e.copy();var r;return null!=n.hour&&(t.hour=n.hour),null!=n.minute&&(t.minute=n.minute),null!=n.second&&(t.second=n.second),null!=n.millisecond&&(t.millisecond=n.millisecond),(r=t).millisecond=Math.max(0,Math.min(r.millisecond,1e3)),r.second=Math.max(0,Math.min(r.second,59)),r.minute=Math.max(0,Math.min(r.minute,59)),r.hour=Math.max(0,Math.min(r.hour,23)),t}function Qf(e,n){let t=e%n;return t<0&&(t+=n),t}function jf(e,n,t,r){let i=e.copy();switch(n){case"era":{let n=e.calendar.getEras(),o=n.indexOf(e.era);if(o<0)throw new Error("Invalid era: "+e.era);o=Nf(o,t,0,n.length-1,null==r?void 0:r.round),i.era=n[o],Xf(i);break}case"year":var o,a;(null===(o=(a=i.calendar).isInverseEra)||void 0===o?void 0:o.call(a,i))&&(t=-t),i.year=Nf(e.year,t,-1/0,9999,null==r?void 0:r.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=Nf(e.month,t,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":i.day=Nf(e.day,t,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+n)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),Xf(i),i}function Mf(e,n,t,r){let i=e.copy();switch(n){case"hour":{let n=e.hour,o=0,a=23;if(12===(null==r?void 0:r.hourCycle)){let e=n>=12;o=e?12:0,a=e?23:11}i.hour=Nf(n,t,o,a,null==r?void 0:r.round);break}case"minute":i.minute=Nf(e.minute,t,0,59,null==r?void 0:r.round);break;case"second":i.second=Nf(e.second,t,0,59,null==r?void 0:r.round);break;case"millisecond":i.millisecond=Nf(e.millisecond,t,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+n)}return i}function Nf(e,n,t,r,i=!1){if(i){(e+=Math.sign(n))<t&&(e=r);let i=Math.abs(n);(e=n>0?Math.ceil(e/i)*i:Math.floor(e/i)*i)>r&&(e=t)}else(e+=n)<t?e=r-(t-e-1):e>r&&(e=t+(e-r-1));return e}function Sf(e,n){let t;if(null!=n.years&&0!==n.years||null!=n.months&&0!==n.months||null!=n.weeks&&0!==n.weeks||null!=n.days&&0!==n.days){t=mf(Of(yf(e),{years:n.years,months:n.months,weeks:n.weeks,days:n.days}),e.timeZone)}else t=uf(e)-e.offset;return t+=n.milliseconds||0,t+=1e3*(n.seconds||0),t+=6e4*(n.minutes||0),t+=36e5*(n.hours||0),Pf(xf(t,e.timeZone),e.calendar)}const If=/^(\d{4})-(\d{2})-(\d{2})$/;function Ff(e,n,t){let r=Number(e);if(r<n||r>t)throw new RangeError(`Value out of range: ${n} <= ${r} <= ${t}`);return r}function Rf(e){let n=Pf(e,new Ku);return`${String(n.year).padStart(4,"0")}-${String(n.month).padStart(2,"0")}-${String(n.day).padStart(2,"0")}`}function Vf(e){return`${Rf(e)}T${n=e,`${String(n.hour).padStart(2,"0")}:${String(n.minute).padStart(2,"0")}:${String(n.second).padStart(2,"0")}${n.millisecond?String(n.millisecond/1e3).slice(1):""}`}`;var n}function Gf(e){return`${Vf(e)}${function(e){let n=Math.sign(e)<0?"-":"+";e=Math.abs(e);let t=Math.floor(e/36e5),r=e%36e5/6e4;return`${n}${String(t).padStart(2,"0")}:${String(r).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function Wf(e){let n,t="object"==typeof e[0]?e.shift():new Ku;if("string"==typeof e[0])n=e.shift();else{let e=t.getEras();n=e[e.length-1]}return[t,n,e.shift(),e.shift(),e.shift()]}var Yf=new WeakMap;class Uf{copy(){return this.era?new Uf(this.calendar,this.era,this.year,this.month,this.day):new Uf(this.calendar,this.year,this.month,this.day)}add(e){return Of(this,e)}subtract(e){return Ef(this,e)}set(e){return Lf(this,e)}cycle(e,n,t){return jf(this,e,n,t)}toDate(e){return wf(this,e)}toString(){return Rf(this)}compare(e){return ef(this,e)}constructor(...e){Iu(this,Yf,{writable:!0,value:void 0});let[n,t,r,i,o]=Wf(e);this.calendar=n,this.era=t,this.year=r,this.month=i,this.day=o,Xf(this)}}var Kf=new WeakMap;class qf{copy(){return this.era?new qf(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new qf(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Of(this,e)}subtract(e){return Ef(this,e)}set(e){return Lf(Tf(this,e),e)}cycle(e,n,t){switch(e){case"era":case"year":case"month":case"day":return jf(this,e,n,t);default:return Mf(this,e,n,t)}}toDate(e,n){return wf(this,e,n)}toString(){return Vf(this)}compare(e){let n=ef(this,e);return 0===n?function(e,n){return nf(e)-nf(n)}(this,yf(e)):n}constructor(...e){Iu(this,Kf,{writable:!0,value:void 0});let[n,t,r,i,o]=Wf(e);this.calendar=n,this.era=t,this.year=r,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Xf(this)}}var Jf=new WeakMap;class Zf{copy(){return this.era?new Zf(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Zf(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Sf(this,e)}subtract(e){return function(e,n){return Sf(e,kf(n))}(this,e)}set(e,n){return function(e,n,t){let r=yf(e),i=Tf(Lf(r,n),n);return 0===i.compare(r)?e:Pf(xf(mf(i,e.timeZone,t),e.timeZone),e.calendar)}(this,e,n)}cycle(e,n,t){return function(e,n,t,r){switch(n){case"hour":{let n=0,i=23;if(12===(null==r?void 0:r.hourCycle)){let t=e.hour>=12;n=t?12:0,i=t?23:11}let o=yf(e),a=Pf(Tf(o,{hour:n}),new Ku),l=[mf(a,e.timeZone,"earlier"),mf(a,e.timeZone,"later")].filter((n=>xf(n,e.timeZone).day===a.day))[0],s=Pf(Tf(o,{hour:i}),new Ku),c=[mf(s,e.timeZone,"earlier"),mf(s,e.timeZone,"later")].filter((n=>xf(n,e.timeZone).day===s.day)).pop(),d=uf(e)-e.offset,u=Math.floor(d/zf),f=d%zf;return d=Nf(u,t,Math.floor(l/zf),Math.floor(c/zf),null==r?void 0:r.round)*zf+f,Pf(xf(d,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Mf(e,n,t,r);case"era":case"year":case"month":case"day":return Pf(xf(mf(jf(yf(e),n,t,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+n)}}(this,e,n,t)}toDate(){return function(e){let n=uf(e)-e.offset;return new Date(n)}(this)}toString(){return Gf(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Cf(e,this.timeZone).toDate().getTime()}constructor(...e){Iu(this,Jf,{writable:!0,value:void 0});let[n,t,r,i,o]=Wf(e),a=e.shift(),l=e.shift();this.calendar=n,this.era=t,this.year=r,this.month=i,this.day=o,this.timeZone=a,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Xf(this)}}const _f=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],$f=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ep=[1867,1911,1925,1988,2018],np=["meiji","taisho","showa","heisei","reiwa"];function tp(e){const n=_f.findIndex((([n,t,r])=>e.year<n||(e.year===n&&e.month<t||e.year===n&&e.month===t&&e.day<r)));return-1===n?_f.length-1:0===n?0:n-1}function rp(e){let n=ep[np.indexOf(e.era)];if(!n)throw new Error("Unknown era: "+e.era);return new Uf(e.year+n,e.month,e.day)}class ip extends Ku{fromJulianDay(e){let n=super.fromJulianDay(e),t=tp(n);return new Uf(this,np[t],n.year-ep[t],n.month,n.day)}toJulianDay(e){return super.toJulianDay(rp(e))}balanceDate(e){let n=rp(e),t=tp(n);np[t]!==e.era&&(e.era=np[t],e.year=n.year-ep[t]),this.constrainDate(e)}constrainDate(e){let n=np.indexOf(e.era),t=$f[n];if(null!=t){let[r,i,o]=t,a=r-ep[n];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(o,e.day)))}if(1===e.year&&n>=0){let[,t,r]=_f[n];e.month=Math.max(t,e.month),e.month===t&&(e.day=Math.max(r,e.day))}}getEras(){return np}getYearsInEra(e){let n=np.indexOf(e.era),t=_f[n],r=_f[n+1];if(null==r)return 9999-t[0]+1;let i=r[0]-t[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&i++,i}getDaysInMonth(e){return super.getDaysInMonth(rp(e))}getMinimumMonthInYear(e){let n=op(e);return n?n[1]:1}getMinimumDayInMonth(e){let n=op(e);return n&&e.month===n[1]?n[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function op(e){if(1===e.year){let n=np.indexOf(e.era);return _f[n]}}class ap extends Ku{fromJulianDay(e){let n=super.fromJulianDay(e),t=Wu(n.era,n.year);return new Uf(this,t- -543,n.month,n.day)}toJulianDay(e){return super.toJulianDay(lp(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(lp(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function lp(e){let[n,t]=Yu(e.year+-543);return new Uf(n,t,e.month,e.day)}const sp=1911;function cp(e){return"minguo"===e.era?e.year+sp:1-e.year+sp}function dp(e){let n=e-sp;return n>0?["minguo",n]:["before_minguo",1-n]}class up extends Ku{fromJulianDay(e){let n=super.fromJulianDay(e),t=Wu(n.era,n.year),[r,i]=dp(t);return new Uf(this,r,i,n.month,n.day)}toJulianDay(e){return super.toJulianDay(fp(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[n,t]=dp(cp(e));e.era=n,e.year=t}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(fp(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-sp}constructor(...e){super(...e),this.identifier="roc"}}function fp(e){let[n,t]=Yu(cp(e));return new Uf(n,t,e.month,e.day)}function pp(e,n,t){let r=e>0?e-474:e-473,i=Fu(r,2820)+474,o=n<=7?31*(n-1):30*(n-1)+6;return 1948320+1029983*Math.floor(r/2820)+365*(i-1)+Math.floor((31*i-5)/128)+o+t}class gp{fromJulianDay(e){let n=e-pp(475,1,1),t=Math.floor(n/1029983),r=Fu(n,1029983),i=474+2820*t+(1029982===r?2820:Math.floor((128*r+46878)/46751));i<=0&&i--;let o=e-pp(i,1,1)+1,a=o<=186?Math.ceil(o/31):Math.ceil((o-6)/31),l=e-pp(i,a,1)+1;return new Uf(this,i,a,l)}toJulianDay(e){return pp(e.year,e.month,e.day)}getMonthsInYear(){return 12}getDaysInMonth(e){return e.month<=6?31:e.month<=11||function(e){let n=Fu(e>0?e-474:e-473,2820)+474;return Fu(31*(n+38),128)<31}(e.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class hp extends Ku{fromJulianDay(e){let n,t,r,i=super.fromJulianDay(e),o=i.year-78,a=e-Vu(i.era,i.year,1,1);if(a<80?(o--,n=Gu(i.year-1)?31:30,a+=n+155+90+10):(n=Gu(i.year)?31:30,a-=80),a<n)t=1,r=a+1;else{let e=a-n;e<155?(t=Math.floor(e/31)+2,r=e%31+1):(e-=155,t=Math.floor(e/30)+7,r=e%30+1)}return new Uf(this,o,t,r)}toJulianDay(e){let n,t,r=e.year+78,[i,o]=Yu(r);return Gu(o)?(n=31,t=Vu(i,o,3,21)):(n=30,t=Vu(i,o,3,22)),1===e.month?t+e.day-1:(t+=n+31*Math.min(e.month-2,5),e.month>=8&&(t+=30*(e.month-7)),t+=e.day-1,t)}getDaysInMonth(e){return 1===e.month&&Gu(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const vp=1948440,Ap=1948439,mp=1300,wp=1600,xp=460322;function bp(e,n,t,r){return r+Math.ceil(29.5*(t-1))+354*(n-1)+Math.floor((3+11*n)/30)+e-1}function yp(e,n,t){let r=Math.floor((30*(t-n)+10646)/10631),i=Math.min(12,Math.ceil((t-(29+bp(n,r,1,1)))/29.5)+1),o=t-bp(n,r,i,1)+1;return new Uf(e,r,i,o)}function Pp(e){return(14+11*e)%30<11}class Cp{fromJulianDay(e){return yp(this,vp,e)}toJulianDay(e){return bp(vp,e.year,e.month,e.day)}getDaysInMonth(e){let n=29+e.month%2;return 12===e.month&&Pp(e.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(e){return Pp(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class zp extends Cp{fromJulianDay(e){return yp(this,Ap,e)}toJulianDay(e){return bp(Ap,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Op,Bp;function Dp(e){return xp+Bp[e-mp]}function Hp(e,n){let t=1<<11-(n-1);return Op[e-mp]&t?30:29}function Xp(e,n){let t=Dp(e);for(let r=1;r<n;r++)t+=Hp(e,r);return t}function kp(e){return Bp[e+1-mp]-Bp[e-mp]}class Ep extends Cp{fromJulianDay(e){let n=e-vp,t=Dp(mp),r=Dp(wp);if(n<t||n>r)return super.fromJulianDay(e);{let e=mp-1,t=1,r=1;for(;r>0;){e++,r=n-Dp(e)+1;let i=kp(e);if(r===i){t=12;break}if(r<i){let n=Hp(e,t);for(t=1;r>n;)r-=n,t++,n=Hp(e,t);break}}return new Uf(this,e,t,n-Xp(e,t)+1)}}toJulianDay(e){return e.year<mp||e.year>wp?super.toJulianDay(e):vp+Xp(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<mp||e.year>wp?super.getDaysInMonth(e):Hp(e.year,e.month)}getDaysInYear(e){return e.year<mp||e.year>wp?super.getDaysInYear(e):kp(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Op||(Op=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Bp){Bp=new Uint32Array(wp-mp+1);let e=0;for(let n=mp;n<=wp;n++){Bp[n-mp]=e;for(let t=1;t<=12;t++)e+=Hp(n,t)}}}}const Lp=347997;function Tp(e){return Fu(7*e+1,19)<7}function Qp(e){let n=Math.floor((235*e-234)/19),t=12084+13753*n,r=29*n+Math.floor(t/25920);return Fu(3*(r+1),7)<3&&(r+=1),r}function jp(e){return Qp(e)+function(e){let n=Qp(e-1),t=Qp(e);return Qp(e+1)-t==356?2:t-n==382?1:0}(e)}function Mp(e){return jp(e+1)-jp(e)}function Np(e,n){if(n>=6&&!Tp(e)&&n++,4===n||7===n||9===n||11===n||13===n)return 29;let t=function(e){let n=Mp(e);switch(n>380&&(n-=30),n){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===n?2===t?30:29:3===n?0===t?29:30:6===n?Tp(e)?30:0:30}class Sp{fromJulianDay(e){let n=e-Lp,t=25920*n/765433,r=Math.floor((19*t+234)/235)+1,i=jp(r),o=Math.floor(n-i);for(;o<1;)r--,i=jp(r),o=Math.floor(n-i);let a=1,l=0;for(;l<o;)l+=Np(r,a),a++;return a--,l-=Np(r,a),new Uf(this,r,a,o-l)}toJulianDay(e){let n=jp(e.year);for(let t=1;t<e.month;t++)n+=Np(e.year,t);return n+e.day+Lp}getDaysInMonth(e){return Np(e.year,e.month)}getMonthsInYear(e){return Tp(e.year)?13:12}getDaysInYear(e){return Mp(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,n){n.year!==e.year&&(Tp(n.year)&&!Tp(e.year)&&n.month>6?e.month--:!Tp(n.year)&&Tp(e.year)&&n.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const Ip=1723856,Fp=1824665,Rp=5500;function Vp(e,n,t,r){return e+365*n+Math.floor(n/4)+30*(t-1)+r-1}function Gp(e,n){let t=Math.floor(4*(n-e)/1461),r=1+Math.floor((n-Vp(e,t,1,1))/30);return[t,r,n+1-Vp(e,t,r,1)]}function Wp(e){return Math.floor(e%4/3)}function Yp(e,n){return n%13!=0?30:Wp(e)+5}class Up{fromJulianDay(e){let[n,t,r]=Gp(Ip,e),i="AM";return n<=0&&(i="AA",n+=Rp),new Uf(this,i,n,t,r)}toJulianDay(e){let n=e.year;return"AA"===e.era&&(n-=Rp),Vp(Ip,n,e.month,e.day)}getDaysInMonth(e){return Yp(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+Wp(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class Kp extends Up{fromJulianDay(e){let[n,t,r]=Gp(Ip,e);return n+=Rp,new Uf(this,"AA",n,t,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class qp extends Up{fromJulianDay(e){let[n,t,r]=Gp(Fp,e),i="CE";return n<=0&&(i="BCE",n=1-n),new Uf(this,i,n,t,r)}toJulianDay(e){let n=e.year;return"BCE"===e.era&&(n=1-n),Vp(Fp,n,e.month,e.day)}getDaysInMonth(e){let n=e.year;return"BCE"===e.era&&(n=1-n),Yp(n,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function Jp(e){switch(e){case"buddhist":return new ap;case"ethiopic":return new Up;case"ethioaa":return new Kp;case"coptic":return new qp;case"hebrew":return new Sp;case"indian":return new hp;case"islamic-civil":return new Cp;case"islamic-tbla":return new zp;case"islamic-umalqura":return new Ep;case"japanese":return new ip;case"persian":return new gp;case"roc":return new up;default:return new Ku}}let Zp=new Map;class _p{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,n){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,n);if(n<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(n)}`}formatRangeToParts(e,n){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,n);if(n<e)throw new RangeError("End date must be >= start date");let t=this.formatter.formatToParts(e),r=this.formatter.formatToParts(n);return[...t.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==tg&&(tg="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return tg}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,n){if(!n.timeStyle&&!n.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let t=eg(e,{...n,timeZone:void 0}),r=parseInt(t.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),i=parseInt(t.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===i)return"h23";if(24===r&&23===i)return"h24";if(0===r&&11===i)return"h11";if(12===r&&11===i)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,n={}){this.formatter=eg(e,n),this.options=n}}const $p={true:{ja:"h11"},false:{}};function eg(e,n={}){if("boolean"==typeof n.hour12&&function(){null==ng&&(ng="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return ng}()){n={...n};let t=$p[String(n.hour12)][e.split("-")[0]],r=n.hour12?"h12":"h23";n.hourCycle=null!=t?t:r,delete n.hour12}let t=e+(n?Object.entries(n).sort(((e,n)=>e[0]<n[0]?-1:1)).join():"");if(Zp.has(t))return Zp.get(t);let r=new Intl.DateTimeFormat(e,n);return Zp.set(t,r),r}let ng=null;let tg=null;function rg(e,n,t){let[r,i]=l(e||n),o=h(void 0!==e),a=void 0!==e;s((()=>{let e=o.current;e!==a&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),o.current=a}),[a]);let d=a?e:r,u=c(((e,...n)=>{let r=(e,...n)=>{t&&(Object.is(d,e)||t(e,...n)),a||(d=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i(((t,...i)=>{let o=e(a?d:t,...i);return r(o,...n),a?t:o}))}else a||i(e),r(e,...n)}),[a,d,t]);return[d,u]}function ig(e,n,t){return null!=n&&e.compare(n)<0||null!=t&&e.compare(t)>0}function og(e,n,t,r,i){let o={};for(let e in n)o[e]=Math.floor(n[e]/2),o[e]>0&&n[e]%2==0&&o[e]--;return sg(e,ag(e,n,t).subtract(o),n,t,r,i)}function ag(e,n,t,r,i){let o=e;return n.years?o=function(e){return of(e.subtract({months:e.month-1}))}(e):n.months?o=of(e):n.weeks&&(o=lf(e,t)),sg(e,o,n,t,r,i)}function lg(e,n,t,r,i){let o={...n};return n.days?o.days--:n.weeks?o.weeks--:n.months?o.months--:n.years&&o.years--,sg(e,ag(e,n,t).subtract(o),n,t,r,i)}function sg(e,n,t,r,i,o){return i&&e.compare(i)>=0&&(n=df(n,ag(bf(i),t,r))),o&&e.compare(o)<=0&&(n=cf(n,lg(bf(o),t,r))),n}function cg(e,n,t){return n&&(e=df(e,bf(n))),t&&(e=cf(e,bf(t))),e}function dg(e){let n=v((()=>new _p(e.locale)),[e.locale]),t=v((()=>n.resolvedOptions()),[n]),{locale:r,createCalendar:i,visibleDuration:o={months:1},minValue:a,maxValue:s,selectionAlignment:c,isDateUnavailable:d,pageBehavior:u="visible"}=e,f=v((()=>i(t.calendar)),[i,t.calendar]),[p,g]=rg(e.value,e.defaultValue,e.onChange),h=v((()=>p?Pf(bf(p),f):null),[p,f]),A=v((()=>p&&"timeZone"in p?p.timeZone:t.timeZone),[p,t.timeZone]),m=v((()=>e.focusedValue?cg(Pf(bf(e.focusedValue),f),a,s):void 0),[e.focusedValue,f,a,s]),w=v((()=>cg(e.defaultFocusedValue?Pf(bf(e.defaultFocusedValue),f):h||Pf($u(A),f),a,s)),[e.defaultFocusedValue,h,A,f,a,s]),[x,b]=rg(m,w,e.onFocusChange),[y,P]=l((()=>{switch(c){case"start":return ag(x,o,r,a,s);case"end":return lg(x,o,r,a,s);default:return og(x,o,r,a,s)}})),[C,z]=l(e.autoFocus||!1),O=v((()=>{let e={...o};return e.days?e.days--:e.days=-1,y.add(e)}),[y,o]),[B,D]=l(f.identifier);if(f.identifier!==B){let e=Pf(x,f);P(og(e,o,r,a,s)),b(e),D(f.identifier)}function H(e){e=cg(e,a,s),b(e)}function X(n){if(!e.isDisabled&&!e.isReadOnly){if(n=function(e,n,t){if(!t)return e;for(;e.compare(n)>=0&&t(e);)e=e.subtract({days:1});return e.compare(n)>=0?e:void 0}(n=cg(n,a,s),y,d),!n)return;n=Pf(n,(null==p?void 0:p.calendar)||new Ku),g(p&&"hour"in p?p.set(n):n)}}ig(x,a,s)?b(cg(x,a,s)):x.compare(y)<0?P(lg(x,o,r,a,s)):x.compare(O)>0&&P(ag(x,o,r,a,s));let k=v((()=>!!h&&(!(!d||!d(h))||ig(h,a,s))),[h,d,a,s]),E=e.isInvalid||"invalid"===e.validationState||k,L=E?"invalid":null,T=v((()=>"visible"===u?o:ug(o)),[u,o]);return{isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,value:h,setValue:X,visibleRange:{start:y,end:O},minValue:a,maxValue:s,focusedDate:x,timeZone:A,validationState:L,isValueInvalid:E,setFocusedDate(e){H(e),z(!0)},focusNextDay(){H(x.add({days:1}))},focusPreviousDay(){H(x.subtract({days:1}))},focusNextRow(){o.days?this.focusNextPage():(o.weeks||o.months||o.years)&&H(x.add({weeks:1}))},focusPreviousRow(){o.days?this.focusPreviousPage():(o.weeks||o.months||o.years)&&H(x.subtract({weeks:1}))},focusNextPage(){let e=y.add(T);b(cg(x.add(T),a,s)),P(ag(sg(x,e,T,r,a,s),T,r))},focusPreviousPage(){let e=y.subtract(T);b(cg(x.subtract(T),a,s)),P(ag(sg(x,e,T,r,a,s),T,r))},focusSectionStart(){o.days?H(y):o.weeks?H(lf(x,r)):(o.months||o.years)&&H(of(x))},focusSectionEnd(){o.days?H(O):o.weeks?H(function(e,n){return lf(e,n).add({days:6})}(x,r)):(o.months||o.years)&&H(af(x))},focusNextSection(e){e||o.days?o.days?this.focusNextPage():o.weeks?H(x.add({months:1})):(o.months||o.years)&&H(x.add({years:1})):H(x.add(ug(o)))},focusPreviousSection(e){e||o.days?o.days?this.focusPreviousPage():o.weeks?H(x.subtract({months:1})):(o.months||o.years)&&H(x.subtract({years:1})):H(x.subtract(ug(o)))},selectFocusedDate(){X(x)},selectDate(e){X(e)},isFocused:C,setFocused:z,isInvalid:e=>ig(e,a,s),isSelected(e){return null!=h&&Ju(e,h)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>C&&x&&Ju(e,x),isCellDisabled(n){return e.isDisabled||n.compare(y)<0||n.compare(O)>0||this.isInvalid(n,a,s)},isCellUnavailable:n=>e.isDateUnavailable&&e.isDateUnavailable(n),isPreviousVisibleRangeInvalid(){let e=y.subtract({days:1});return Ju(e,y)||this.isInvalid(e,a,s)},isNextVisibleRangeInvalid(){let e=O.add({days:1});return Ju(e,O)||this.isInvalid(e,a,s)},getDatesInWeek(e,n=y){let t=n.add({weeks:e}),i=[];t=lf(t,r);let o=_u(t,r);for(let e=0;e<o;e++)i.push(null);for(;i.length<7;){i.push(t);let e=t.add({days:1});if(Ju(t,e))break;t=e}for(;i.length<7;)i.push(null);return i}}}function ug(e){let n={...e};for(let t in e)n[t]=1;return n}function fg(e){return null}function pg(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&a.Children.count(e.children)>0)}fg.getCollectionNode=function*(e,n){let{childItems:t,title:r,children:i}=e,o=e.title||e.children,l=e.textValue||("string"==typeof o?o:"")||e["aria-label"]||"";l||(null==n?void 0:n.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:o,textValue:l,"aria-label":e["aria-label"],hasChildNodes:pg(e),*childNodes(){if(t)for(let e of t)yield{type:"item",value:e};else if(r){let e=[];a.Children.forEach(i,(n=>{e.push({type:"item",element:n})})),yield*e}}}};let gg=fg;class hg{build(e,n){return this.context=n,vg((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:n,items:t}=e;if("function"==typeof n){if(!t)throw new Error("props.children was a function but props.items is missing");for(let t of e.items)yield*this.getFullNode({value:t},{renderer:n})}else{let e=[];a.Children.forEach(n,(n=>{e.push(n)}));let t=0;for(let n of e){let e=this.getFullNode({element:n,index:t},{});for(let n of e)t++,yield n}}}getKey(e,n,t,r){if(null!=e.key)return e.key;if("cell"===n.type&&null!=n.key)return`${r}${n.key}`;let i=n.value;if(null!=i){var o;let e=null!==(o=i.key)&&void 0!==o?o:i.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${n.index}`:`$.${n.index}`}getChildState(e,n){return{renderer:n.renderer||e.renderer}}*getFullNode(e,n,t,r){let i=e.element;if(!i&&e.value&&n&&n.renderer){let t=this.cache.get(e.value);if(t&&(!t.shouldInvalidate||!t.shouldInvalidate(this.context)))return t.index=e.index,t.parentKey=r?r.key:null,void(yield t);i=n.renderer(e.value)}if(a.isValidElement(i)){let o=i.type;if("function"!=typeof o&&"function"!=typeof o.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=o.getCollectionNode(i.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let o=s.value;e.index=l;let c=o.key;c||(c=o.element?null:this.getKey(i,e,n,t));let d=[...this.getFullNode({...o,key:c,index:l,wrapper:Ag(e.wrapper,o.wrapper)},this.getChildState(n,o),t?`${t}${i.key}`:i.key,r)];for(let n of d){if(n.value=o.value||e.value,n.value&&this.cache.set(n.value,n),e.type&&n.type!==e.type)throw new Error(`Unsupported type <${mg(n.type)}> in <${mg(r.type)}>. Only <${mg(e.type)}> is supported.`);l++,yield n}s=a.next(d)}return}if(null==e.key)return;let o=this,l={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:vg((function*(){if(!e.hasChildNodes)return;let t=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${l.key}${r.key}`),r.index=t;let e=o.getFullNode(r,o.getChildState(n,r),l.key,l);for(let n of e)t++,yield n}}))};yield l}constructor(){this.cache=new WeakMap}}function vg(e){let n=[],t=null;return{*[Symbol.iterator](){for(let e of n)yield e;t||(t=e());for(let e of t)n.push(e),yield e}}}function Ag(e,n){return e&&n?t=>e(n(t)):e||(n||void 0)}function mg(e){return e[0].toUpperCase()+e.slice(1)}function wg(e,n){return"function"==typeof n.getChildren?n.getChildren(e.key):e.childNodes}function xg(e){return function(e,n){if(n<0)return;let t=0;for(let r of e){if(t===n)return r;t++}}(e,0)}function bg(e,n,t){if(n.parentKey===t.parentKey)return n.index-t.index;let r=[...yg(e,n),n],i=[...yg(e,t),t],o=r.slice(0,i.length).findIndex(((e,n)=>e!==i[n]));return-1!==o?(n=r[o],t=i[o],n.index-t.index):r.findIndex((e=>e===t))>=0?1:(i.findIndex((e=>e===n)),-1)}function yg(e,n){let t=[];for(;null!=(null==n?void 0:n.parentKey);)n=e.getItem(n.parentKey),t.unshift(n);return t}const Pg=new WeakMap;class Cg extends Set{constructor(e,n,t){super(e),e instanceof Cg?(this.anchorKey=n||e.anchorKey,this.currentKey=t||e.currentKey):(this.anchorKey=n,this.currentKey=t)}}function zg(e,n){return e?"all"===e?"all":new Cg(e):n}class Og{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,n){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,n)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=e.every((e=>n.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let t=this.collection.getItem(n);(!e||t&&bg(this.collection,t,e)<0)&&(e=t)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let n of this.state.selectedKeys){let t=this.collection.getItem(n);(!e||t&&bg(this.collection,t,e)>0)&&(e=t)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let n;if(e=this.getKey(e),"all"===this.state.selectedKeys)n=new Cg([e],e,e);else{let t=this.state.selectedKeys,r=t.anchorKey||e;n=new Cg(t,r,e);for(let i of this.getKeyRange(r,t.currentKey||e))n.delete(i);for(let t of this.getKeyRange(e,r))this.canSelectItem(t)&&n.add(t)}this.state.setSelectedKeys(n)}getKeyRange(e,n){let t=this.collection.getItem(e),r=this.collection.getItem(n);return t&&r?bg(this.collection,t,r)<=0?this.getKeyRangeInternal(e,n):this.getKeyRangeInternal(n,e):[]}getKeyRangeInternal(e,n){let t=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&t.push(r),r===n)return t;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let n=this.collection.getItem(e);if(!n)return e;if("cell"===n.type&&this.allowsCellSelection)return e;for(;"item"!==n.type&&null!=n.parentKey;)n=this.collection.getItem(n.parentKey);return n&&"item"===n.type?n.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let n=new Cg("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);n.has(e)?n.delete(e):this.canSelectItem(e)&&(n.add(e),n.anchorKey=e,n.currentKey=e),this.disallowEmptySelection&&0===n.size||this.state.setSelectedKeys(n)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let n=this.canSelectItem(e)?new Cg([e],e,e):new Cg;this.state.setSelectedKeys(n)}setSelectedKeys(e){if("none"===this.selectionMode)return;let n=new Cg;for(let t of e)if(t=this.getKey(t),null!=t&&(n.add(t),"single"===this.selectionMode))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],n=t=>{for(;t;){if(this.canSelectItem(t)){let r=this.collection.getItem(t);"item"===r.type&&e.push(t),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&n(xg(wg(r,this.collection)).key)}t=this.collection.getKeyAfter(t)}};return n(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Cg)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,n){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||n&&("touch"===n.pointerType||"virtual"===n.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;for(let t of n)if(!e.has(t))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){return this.state.disabledKeys.has(e)&&"all"===this.state.disabledBehavior}isLink(e){var n,t;return!!(null===(t=this.collection.getItem(e))||void 0===t||null===(n=t.props)||void 0===n?void 0:n.href)}constructor(e,n,t){var r;this.collection=e,this.state=n,this.allowsCellSelection=null!==(r=null==t?void 0:t.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}class Bg{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let n=this.keyMap.get(e);return n?n.prevKey:null}getKeyAfter(e){let n=this.keyMap.get(e);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const n=[...this.getKeys()];return this.getItem(n[e])}getChildren(e){let n=this.keyMap.get(e);return(null==n?void 0:n.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let n,t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let r=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=r++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}function Dg(e){let{filter:n}=e,t=function(e){let{selectionMode:n="none",disallowEmptySelection:t,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:o="all"}=e,a=h(!1),[,c]=l(!1),d=h(null),u=h(null),[,f]=l(null),p=v((()=>zg(e.selectedKeys)),[e.selectedKeys]),g=v((()=>zg(e.defaultSelectedKeys,new Cg)),[e.defaultSelectedKeys]),[A,m]=rg(p,g,e.onSelectionChange),w=v((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[x,b]=l(i);"replace"===i&&"toggle"===x&&"object"==typeof A&&0===A.size&&b("replace");let y=h(i);return s((()=>{i!==y.current&&(b(i),y.current=i)}),[i]),{selectionMode:n,disallowEmptySelection:t,selectionBehavior:x,setSelectionBehavior:b,get isFocused(){return a.current},setFocused(e){a.current=e,c(e)},get focusedKey(){return d.current},get childFocusStrategy(){return u.current},setFocusedKey(e,n="first"){d.current=e,u.current=n,f(e)},selectedKeys:A,setSelectedKeys(e){!r&&function(e,n){if(e.size!==n.size)return!1;for(let t of e)if(!n.has(t))return!1;return!0}(e,A)||m(e)},disabledKeys:w,disabledBehavior:o}}(e),r=v((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=c((e=>new Bg(n?n(e):e)),[n]),o=v((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),a=function(e,n,t){let r=v((()=>new hg),[]),{children:i,items:o,collection:a}=e;return v((()=>{if(a)return a;let e=r.build({children:i,items:o},t);return n(e)}),[r,i,o,a,t,n])}(e,i,o),d=v((()=>new Og(a,t)),[a,t]);const u=h(null);return s((()=>{if(null!=t.focusedKey&&!a.getItem(t.focusedKey)){const e=u.current.getItem(t.focusedKey),n=[...u.current.getKeys()].map((e=>{const n=u.current.getItem(e);return"item"===n.type?n:null})).filter((e=>null!==e)),r=[...a.getKeys()].map((e=>{const n=a.getItem(e);return"item"===n.type?n:null})).filter((e=>null!==e)),i=n.length-r.length;let o,l=Math.min(i>1?Math.max(e.index-i+1,0):e.index,r.length-1);for(;l>=0;){if(!d.isDisabled(r[l].key)){o=r[l];break}l<r.length-1?l++:(l>e.index&&(l=e.index),l--)}t.setFocusedKey(o?o.key:null)}u.current=a}),[a,d,t,t.focusedKey]),{collection:a,disabledKeys:r,selectionManager:d}}const Hg=Symbol.for("react-aria.i18n.locale"),Xg=Symbol.for("react-aria.i18n.strings");let kg;class Eg{getStringForLocale(e,n){let t=this.getStringsForLocale(n)[e];if(!t)throw new Error(`Could not find intl message ${e} in ${n} locale`);return t}getStringsForLocale(e){let n=this.strings[e];return n||(n=function(e,n,t="en-US"){if(n[e])return n[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(n[r])return n[r];for(let e in n)if(e.startsWith(r+"-"))return n[e];return n[t]}(e,this.strings,this.defaultLocale),this.strings[e]=n),n}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let n=window[Hg];if(void 0===kg){let e=window[Xg];if(!e)return null;kg={};for(let t in e)kg[t]=new Eg({[n]:e[t]},n)}let t=null==kg?void 0:kg[e];if(!t)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return t}constructor(e,n="en-US"){this.strings={...e},this.defaultLocale=n}}const Lg=new Map,Tg=new Map;class Qg{format(e,n){let t=this.strings.getStringForLocale(e,this.locale);return"function"==typeof t?t(n,this):t}plural(e,n,t="cardinal"){let r=n["="+e];if(r)return"function"==typeof r?r():r;let i=this.locale+":"+t,o=Lg.get(i);return o||(o=new Intl.PluralRules(this.locale,{type:t}),Lg.set(i,o)),r=n[o.select(e)]||n.other,"function"==typeof r?r():r}number(e){let n=Tg.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Tg.set(this.locale,n)),n.format(e)}select(e,n){let t=e[n]||e.other;return"function"==typeof t?t():t}constructor(e,n){this.locale=e,this.strings=n}}const jg={prefix:String(Math.round(1e10*Math.random())),current:0},Mg=a.createContext(jg),Ng=a.createContext(!1);let Sg=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Ig=new WeakMap;const Fg="function"==typeof a.useId?function(e){let n=a.useId(),[t]=l(Wg()),r=t||"test"===process.env.NODE_ENV?"react-aria":`react-aria${jg.prefix}`;return e||`${r}-${n}`}:function(e){let n=p(Mg);n!==jg||Sg||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=function(e=!1){let n=p(Mg),t=h(null);if(null===t.current&&!e){var r,i;let e=null===(i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let t=Ig.get(e);null==t?Ig.set(e,{id:n.current,state:e.memoizedState}):e.memoizedState!==t.state&&(n.current=t.id,Ig.delete(e))}t.current=++n.current}return t.current}(!!e),r=n===jg&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${n.prefix}`;return e||`${r}-${t}`};function Rg(){return!1}function Vg(){return!0}function Gg(e){return()=>{}}function Wg(){return"function"==typeof a.useSyncExternalStore?a.useSyncExternalStore(Gg,Rg,Vg):p(Ng)}function Yg(e){var n,t,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=Yg(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ug(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=Yg(e))&&(r&&(r+=" "),r+=n);return r}const Kg="undefined"!=typeof document?a.useLayoutEffect:()=>{};function qg(e){const n=h(null);return Kg((()=>{n.current=e}),[e]),c(((...e)=>{const t=n.current;return null==t?void 0:t(...e)}),[])}let Jg=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Zg=new Map;function _g(e){let[n,t]=l(e),r=h(null),i=Fg(n),o=c((e=>{r.current=e}),[]);return Jg&&Zg.set(i,o),Kg((()=>{let e=i;return()=>{Zg.delete(e)}}),[i]),s((()=>{let e=r.current;e&&(r.current=null,t(e))})),i}function $g(e,n){if(e===n)return e;let t=Zg.get(e);if(t)return t(n),n;let r=Zg.get(n);return r?(r(e),e):n}function eh(e=[]){let n=_g(),[t,r]=function(e){let[n,t]=l(e),r=h(null),i=qg((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:n===e.value?i():t(e.value)}));Kg((()=>{r.current&&i()}));let o=qg((e=>{r.current=e(n),i()}));return[n,o]}(n),i=c((()=>{r((function*(){yield n,yield document.getElementById(n)?n:void 0}))}),[n,r]);return Kg(i,[n,i,...e]),t}function nh(...e){return(...n)=>{for(let t of e)"function"==typeof t&&t(...n)}}const th=e=>{var n;return null!==(n=null==e?void 0:e.ownerDocument)&&void 0!==n?n:document},rh=e=>{if(e&&"window"in e&&e.window===e)return e;return th(e).defaultView||window};function ih(...e){let n={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let e in r){let t=n[e],i=r[e];"function"==typeof t&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?n[e]=nh(t,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof t||"string"!=typeof i?"id"===e&&t&&i?n.id=$g(t,i):n[e]=void 0!==i?i:t:n[e]=Ug(t,i)}}return n}const oh=new Set(["id"]),ah=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),lh=new Set(["href","target","rel","download","ping","referrerPolicy"]),sh=/^(data-.*)$/;function ch(e,n={}){let{labelable:t,isLink:r,propNames:i}=n,o={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(oh.has(n)||t&&ah.has(n)||r&&lh.has(n)||(null==i?void 0:i.has(n))||sh.test(n))&&(o[n]=e[n]);return o}function dh(e){if(function(){if(null==uh){uh=!1;try{document.createElement("div").focus({get preventScroll(){return uh=!0,!0}})}catch(e){}}return uh}())e.focus({preventScroll:!0});else{let n=function(e){let n=e.parentNode,t=[],r=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==r;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&t.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;r instanceof HTMLElement&&t.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return t}(e);e.focus(),function(e){for(let{element:n,scrollTop:t,scrollLeft:r}of e)n.scrollTop=t,n.scrollLeft=r}(n)}}let uh=null;function fh(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.brands.some((n=>e.test(n.brand))))||e.test(window.navigator.userAgent))}function ph(e){var n;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(n=window.navigator.userAgentData)||void 0===n?void 0:n.platform)||window.navigator.platform)}function gh(){return ph(/^Mac/i)}function hh(){return ph(/^iPad/i)||gh()&&navigator.maxTouchPoints>1}function vh(){return ph(/^iPhone/i)||hh()}function Ah(){return fh(/AppleWebKit/i)&&!fh(/Chrome/i)}function mh(){return fh(/Android/i)}const wh=u({isNative:!0,open:function(e,n){!function(e,n){if(e instanceof HTMLAnchorElement)n(e);else if(e.hasAttribute("data-href")){let t=document.createElement("a");t.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(t.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(t.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(t.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(t.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(t.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(t),n(t),e.removeChild(t)}}(e,(e=>bh(e,n)))}});function xh(){return p(wh)}function bh(e,n,t=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}=n;fh(/Firefox/i)&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(gh()?o=!0:a=!0);let c=Ah()&&gh()&&!hh()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});bh.isOpening=t,dh(e),e.dispatchEvent(c),bh.isOpening=!1}bh.isOpening=!1;let yh=new Map,Ph=new Set;function Ch(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let n=t=>{if(!e(t)||!t.target)return;let r=yh.get(t.target);if(r&&(r.delete(t.propertyName),0===r.size&&(t.target.removeEventListener("transitioncancel",n),yh.delete(t.target)),0===yh.size)){for(let e of Ph)e();Ph.clear()}};document.body.addEventListener("transitionrun",(t=>{if(!e(t)||!t.target)return;let r=yh.get(t.target);r||(r=new Set,yh.set(t.target,r),t.target.addEventListener("transitioncancel",n,{once:!0})),r.add(t.propertyName)})),document.body.addEventListener("transitionend",n)}function zh(e){requestAnimationFrame((()=>{0===yh.size?e():Ph.add(e)}))}function Oh(){let e=h(new Map),n=c(((n,t,r,i)=>{let o=(null==i?void 0:i.once)?(...n)=>{e.current.delete(r),r(...n)}:r;e.current.set(r,{type:t,eventTarget:n,fn:o,options:i}),n.addEventListener(t,r,i)}),[]),t=c(((n,t,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;n.removeEventListener(t,a,i),e.current.delete(r)}),[]),r=c((()=>{e.current.forEach(((e,n)=>{t(e.eventTarget,e.type,n,e.options)}))}),[t]);return s((()=>r),[r]),{addGlobalListener:n,removeGlobalListener:t,removeAllGlobalListeners:r}}function Bh(e,n){let{id:t,"aria-label":r,"aria-labelledby":i}=e;if(t=_g(t),i&&r){let e=new Set([t,...i.trim().split(/\s+/)]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!n||(r=n),{id:t,"aria-label":r,"aria-labelledby":i}}function Dh(e,n){const t=h(!0),r=h(null);s((()=>(t.current=!0,()=>{t.current=!1})),[]),s((()=>{t.current?t.current=!1:r.current&&!n.some(((e,n)=>!Object.is(e,r[n])))||e(),r.current=n}),n)}function Hh(e,n){Kg((()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}}))}function Xh(e,n){let t=e;for(kh(t,n)&&(t=t.parentElement);t&&!kh(t,n);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}function kh(e,n){let t=window.getComputedStyle(e),r=/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY);return r&&n&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}"undefined"!=typeof document&&("loading"!==document.readyState?Ch():document.addEventListener("DOMContentLoaded",Ch));let Eh=0;const Lh=new Map;function Th(e){let[n,t]=l();return Kg((()=>{if(!e)return;let n=Lh.get(e);if(n)t(n.element.id);else{let r="react-aria-description-"+Eh++;t(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},Lh.set(e,n)}return n.refCount++,()=>{n&&0==--n.refCount&&(n.element.remove(),Lh.delete(e))}}),[e]),{"aria-describedby":e?n:void 0}}function Qh(e,n){let t=jh(e,n,"left"),r=jh(e,n,"top"),i=n.offsetWidth,o=n.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),u=e.scrollTop+parseInt(s,10),f=d+e.clientWidth,p=u+e.clientHeight;t<=a?a=t-parseInt(c,10):t+i>f&&(a+=t+i-f),r<=u?l=r-parseInt(s,10):r+o>p&&(l+=r+o-p),e.scrollLeft=a,e.scrollTop=l}function jh(e,n,t){const r="left"===t?"offsetLeft":"offsetTop";let i=0;for(;n.offsetParent&&(i+=n[r],n.offsetParent!==e);){if(n.offsetParent.contains(e)){i-=e[r];break}n=n.offsetParent}return i}function Mh(e,n){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let n=Xh(e);for(;e&&n&&e!==a&&n!==a;)Qh(n,e),n=Xh(e=n)}else{var t;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(t=e.scrollIntoView)||void 0===t||t.call(e,{block:"nearest"});let{left:s,top:c}=e.getBoundingClientRect();var r,i,o;if(Math.abs(a-s)>1||Math.abs(l-c)>1)null==n||null===(i=n.containingElement)||void 0===i||null===(r=i.scrollIntoView)||void 0===r||r.call(i,{block:"center",inline:"center"}),null===(o=e.scrollIntoView)||void 0===o||o.call(e,{block:"nearest"})}}}function Nh(e){return!(0!==e.mozInputSource||!e.isTrusted)||(mh()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Sh(e,n){let t=h(null);return e&&t.current&&n(e,t.current)&&(e=t.current),t.current=e,e}function Ih(e,n,t){if(!n.has(e))throw new TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function Fh(e,n,t){return function(e,n,t){if(n.set)n.set.call(e,t);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=t}}(e,Ih(e,n,"set"),t),t}let Rh="default",Vh="",Gh=new WeakMap;function Wh(e){if(vh()){if("default"===Rh){const n=th(e);Vh=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}Rh="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Gh.set(e,e.style.userSelect),e.style.userSelect="none")}function Yh(e){if(vh()){if("disabled"!==Rh)return;Rh="restoring",setTimeout((()=>{zh((()=>{if("restoring"===Rh){const n=th(e);"none"===n.documentElement.style.webkitUserSelect&&(n.documentElement.style.webkitUserSelect=Vh||""),Vh="",Rh="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Gh.has(e)){let n=Gh.get(e);"none"===e.style.userSelect&&(e.style.userSelect=n),""===e.getAttribute("style")&&e.removeAttribute("style"),Gh.delete(e)}}const Uh=a.createContext({register:()=>{}});Uh.displayName="PressResponderContext";var Kh=new WeakMap;class qh{continuePropagation(){Fh(this,Kh,!1)}get shouldStopPropagation(){return function(e,n){return n.get?n.get.call(e):n.value}(e=this,Ih(e,Kh,"get"));var e}constructor(e,n,t){Iu(this,Kh,{writable:!0,value:void 0}),Fh(this,Kh,!0),this.type=e,this.pointerType=n,this.target=t.currentTarget,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey}}const Jh=Symbol("linkClicked");function Zh(e){let{onPress:n,onPressChange:t,onPressStart:r,onPressEnd:i,onPressUp:o,isDisabled:a,isPressed:c,preventFocusOnPress:d,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:f,ref:g,...A}=function(e){let n=p(Uh);if(n){let{register:t,...r}=n;e=ih(r,e),t()}return Hh(n,e.ref),e}(e),[m,w]=l(!1),x=h({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:b,removeAllGlobalListeners:y}=Oh(),P=qg(((e,n)=>{let i=x.current;if(a||i.didFirePressStart)return!1;let o=!0;if(i.isTriggeringEvent=!0,r){let t=new qh("pressstart",n,e);r(t),o=t.shouldStopPropagation}return t&&t(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,w(!0),o})),C=qg(((e,r,o=!0)=>{let l=x.current;if(!l.didFirePressStart)return!1;l.ignoreClickAfterPress=!0,l.didFirePressStart=!1,l.isTriggeringEvent=!0;let s=!0;if(i){let n=new qh("pressend",r,e);i(n),s=n.shouldStopPropagation}if(t&&t(!1),w(!1),n&&o&&!a){let t=new qh("press",r,e);n(t),s&&(s=t.shouldStopPropagation)}return l.isTriggeringEvent=!1,s})),z=qg(((e,n)=>{let t=x.current;if(a)return!1;if(o){t.isTriggeringEvent=!0;let r=new qh("pressup",n,e);return o(r),t.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),O=qg((e=>{let n=x.current;n.isPressed&&n.target&&(n.isOverTarget&&null!=n.pointerType&&C(nv(n.target,e),n.pointerType,!1),n.isPressed=!1,n.isOverTarget=!1,n.activePointerId=null,n.pointerType=null,y(),f||Yh(n.target))})),B=qg((e=>{u&&O(e)})),D=v((()=>{let e=x.current,n={onKeyDown(n){if($h(n.nativeEvent,n.currentTarget)&&n.currentTarget.contains(n.target)){var r;iv(n.target,n.key)&&n.preventDefault();let i=!0;if(!e.isPressed&&!n.repeat){e.target=n.currentTarget,e.isPressed=!0,i=P(n,"keyboard");let r=n.currentTarget,o=n=>{$h(n,r)&&!n.repeat&&r.contains(n.target)&&e.target&&z(nv(e.target,n),"keyboard")};b(th(n.currentTarget),"keyup",nh(o,t),!0)}i&&n.stopPropagation(),n.metaKey&&gh()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(n.key,n.nativeEvent))}else"Meta"===n.key&&(e.metaKeyEvents=new Map)},onClick(n){if((!n||n.currentTarget.contains(n.target))&&n&&0===n.button&&!e.isTriggeringEvent&&!bh.isOpening){let t=!0;if(a&&n.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||Nh(n.nativeEvent))){a||d||dh(n.currentTarget);let e=P(n,"virtual"),r=z(n,"virtual"),i=C(n,"virtual");t=e&&r&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,t&&n.stopPropagation()}}},t=n=>{var t;if(e.isPressed&&e.target&&$h(n,e.target)){var r;iv(n.target,n.key)&&n.preventDefault();let t=n.target;C(nv(e.target,n),"keyboard",e.target.contains(t)),y(),"Enter"!==n.key&&_h(e.target)&&e.target.contains(t)&&!n[Jh]&&(n[Jh]=!0,bh(e.target,n,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(n.key)}else if("Meta"===n.key&&(null===(t=e.metaKeyEvents)||void 0===t?void 0:t.size)){var i;let n=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let t of n.values())null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",t))}};if("undefined"!=typeof PointerEvent){n.onPointerDown=n=>{if(0!==n.button||!n.currentTarget.contains(n.target))return;if(o=n.nativeEvent,!mh()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType)return void(e.pointerType="virtual");var o;rv(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType;let l=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,a||d||dh(n.currentTarget),f||Wh(e.target),l=P(n,e.pointerType),b(th(n.currentTarget),"pointermove",t,!1),b(th(n.currentTarget),"pointerup",r,!1),b(th(n.currentTarget),"pointercancel",i,!1)),l&&n.stopPropagation()},n.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(rv(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},n.onPointerUp=n=>{n.currentTarget.contains(n.target)&&"virtual"!==e.pointerType&&0===n.button&&tv(n,n.currentTarget)&&z(n,e.pointerType||n.pointerType)};let t=n=>{n.pointerId===e.activePointerId&&(e.target&&tv(n,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,P(nv(e.target,n),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,C(nv(e.target,n),e.pointerType,!1),B(n)))},r=n=>{n.pointerId===e.activePointerId&&e.isPressed&&0===n.button&&e.target&&(tv(n,e.target)&&null!=e.pointerType?C(nv(e.target,n),e.pointerType):e.isOverTarget&&null!=e.pointerType&&C(nv(e.target,n),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,y(),f||Yh(e.target))},i=e=>{O(e)};n.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{n.onMouseDown=n=>{if(0!==n.button||!n.currentTarget.contains(n.target))return;if(rv(n.currentTarget)&&n.preventDefault(),e.ignoreEmulatedMouseEvents)return void n.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Nh(n.nativeEvent)?"virtual":"mouse",a||d||dh(n.currentTarget),P(n,e.pointerType)&&n.stopPropagation(),b(th(n.currentTarget),"mouseup",t,!1)},n.onMouseEnter=n=>{if(!n.currentTarget.contains(n.target))return;let t=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,t=P(n,e.pointerType)),t&&n.stopPropagation()},n.onMouseLeave=n=>{if(!n.currentTarget.contains(n.target))return;let t=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,t=C(n,e.pointerType,!1),B(n)),t&&n.stopPropagation()},n.onMouseUp=n=>{n.currentTarget.contains(n.target)&&(e.ignoreEmulatedMouseEvents||0!==n.button||z(n,e.pointerType||"mouse"))};let t=n=>{0===n.button&&(e.isPressed=!1,y(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&tv(n,e.target)&&null!=e.pointerType?C(nv(e.target,n),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&C(nv(e.target,n),e.pointerType,!1),e.isOverTarget=!1))};n.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;let t=function(e){const{targetTouches:n}=e;return n.length>0?n[0]:null}(n.nativeEvent);t&&(e.activePointerId=t.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",a||d||dh(n.currentTarget),f||Wh(e.target),P(n,e.pointerType)&&n.stopPropagation(),b(rh(n.currentTarget),"scroll",r,!0))},n.onTouchMove=n=>{if(!n.currentTarget.contains(n.target))return;if(!e.isPressed)return void n.stopPropagation();let t=ev(n.nativeEvent,e.activePointerId),r=!0;t&&tv(t,n.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=P(n,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=C(n,e.pointerType,!1),B(n)),r&&n.stopPropagation()},n.onTouchEnd=n=>{if(!n.currentTarget.contains(n.target))return;if(!e.isPressed)return void n.stopPropagation();let t=ev(n.nativeEvent,e.activePointerId),r=!0;t&&tv(t,n.currentTarget)&&null!=e.pointerType?(z(n,e.pointerType),r=C(n,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=C(n,e.pointerType,!1)),r&&n.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!f&&Yh(e.target),y()},n.onTouchCancel=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&O(n))};let r=n=>{e.isPressed&&n.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};n.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return n}),[b,a,d,y,f,O,B,C,P,z]);return s((()=>()=>{var e;f||Yh(null!==(e=x.current.target)&&void 0!==e?e:void 0)}),[f]),{isPressed:c||m,pressProps:ih(A,D)}}function _h(e){return"A"===e.tagName&&e.hasAttribute("href")}function $h(e,n){const{key:t,code:r}=e,i=n,o=i.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==r||i instanceof rh(i).HTMLInputElement&&!av(i,t)||i instanceof rh(i).HTMLTextAreaElement||i.isContentEditable||("link"===o||!o&&_h(i))&&"Enter"!==t)}function ev(e,n){const t=e.changedTouches;for(let e=0;e<t.length;e++){const r=t[e];if(r.identifier===n)return r}return null}function nv(e,n){return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey}}function tv(e,n){let t=n.getBoundingClientRect(),r=function(e){let n=0,t=0;return void 0!==e.width?n=e.width/2:void 0!==e.radiusX&&(n=e.radiusX),void 0!==e.height?t=e.height/2:void 0!==e.radiusY&&(t=e.radiusY),{top:e.clientY-t,right:e.clientX+n,bottom:e.clientY+t,left:e.clientX-n}}(e);return function(e,n){return!(e.left>n.right||n.left>e.right||e.top>n.bottom||n.top>e.bottom)}(t,r)}function rv(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function iv(e,n){return e instanceof HTMLInputElement?!av(e,n):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!_h(e)}const ov=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function av(e,n){return"checkbox"===e.type||"radio"===e.type?" "===n:ov.has(e.type)}class lv{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=e}}function sv(e){let n=h({isFocused:!1,observer:null});Kg((()=>{const e=n.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let t=qg((n=>{null==e||e(n)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){n.current.isFocused=!0;let r=e.target,i=e=>{n.current.isFocused=!1,r.disabled&&t(new lv("blur",e)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),n.current.observer=new MutationObserver((()=>{if(n.current.isFocused&&r.disabled){var e;null===(e=n.current.observer)||void 0===e||e.disconnect();let t=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}})),n.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[t])}let cv=null,dv=new Set,uv=new Map,fv=!1,pv=!1;function gv(e,n){for(let t of dv)t(e,n)}function hv(e){fv=!0,function(e){return!(e.metaKey||!gh()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(cv="keyboard",gv("keyboard",e))}function vv(e){cv="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(fv=!0,gv("pointer",e))}function Av(e){Nh(e)&&(fv=!0,cv="virtual")}function mv(e){e.target!==window&&e.target!==document&&(fv||pv||(cv="virtual",gv("virtual",e)),fv=!1,pv=!1)}function wv(){fv=!1,pv=!0}function xv(e){if("undefined"==typeof window||uv.get(rh(e)))return;const n=rh(e),t=th(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){fv=!0,r.apply(this,arguments)},t.addEventListener("keydown",hv,!0),t.addEventListener("keyup",hv,!0),t.addEventListener("click",Av,!0),n.addEventListener("focus",mv,!0),n.addEventListener("blur",wv,!1),"undefined"!=typeof PointerEvent?(t.addEventListener("pointerdown",vv,!0),t.addEventListener("pointermove",vv,!0),t.addEventListener("pointerup",vv,!0)):(t.addEventListener("mousedown",vv,!0),t.addEventListener("mousemove",vv,!0),t.addEventListener("mouseup",vv,!0)),n.addEventListener("beforeunload",(()=>{bv(e)}),{once:!0}),uv.set(n,{focus:r})}const bv=(e,n)=>{const t=rh(e),r=th(e);n&&r.removeEventListener("DOMContentLoaded",n),uv.has(t)&&(t.HTMLElement.prototype.focus=uv.get(t).focus,r.removeEventListener("keydown",hv,!0),r.removeEventListener("keyup",hv,!0),r.removeEventListener("click",Av,!0),t.removeEventListener("focus",mv,!0),t.removeEventListener("blur",wv,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",vv,!0),r.removeEventListener("pointermove",vv,!0),r.removeEventListener("pointerup",vv,!0)):(r.removeEventListener("mousedown",vv,!0),r.removeEventListener("mousemove",vv,!0),r.removeEventListener("mouseup",vv,!0)),uv.delete(t))};function yv(){return"pointer"!==cv}function Pv(){return cv}function Cv(e){let{isDisabled:n,onBlurWithin:t,onFocusWithin:r,onFocusWithinChange:i}=e,o=h({isFocusWithin:!1}),a=c((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,t&&t(e),i&&i(!1))}),[t,i,o]),l=sv(a),s=c((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,l(e))}),[r,i,l]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:a}}}"undefined"!=typeof document&&function(e){const n=th(e);let t;"loading"!==n.readyState?xv(e):(t=()=>{xv(e)},n.addEventListener("DOMContentLoaded",t))}();let zv=!1,Ov=0;function Bv(){zv=!0,setTimeout((()=>{zv=!1}),50)}function Dv(e){"touch"===e.pointerType&&Bv()}function Hv(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Dv):document.addEventListener("touchend",Bv),Ov++,()=>{Ov--,Ov>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Dv):document.removeEventListener("touchend",Bv))}}function Xv(e){let{onHoverStart:n,onHoverChange:t,onHoverEnd:r,isDisabled:i}=e,[o,a]=l(!1),c=h({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;s(Hv,[]);let{hoverProps:d,triggerHoverEnd:u}=v((()=>{let e=(e,r)=>{if(c.pointerType=r,i||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,n&&n({type:"hoverstart",target:o,pointerType:r}),t&&t(!0),a(!0)},o=(e,n)=>{if(c.pointerType="",c.target=null,"touch"===n||!c.isHovered)return;c.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:n}),t&&t(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=n=>{zv&&"mouse"===n.pointerType||e(n,n.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=n=>{c.ignoreEmulatedMouseEvents||zv||e(n,"mouse"),c.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[n,t,r,i,c]);return s((()=>{i&&u({currentTarget:c.target},c.pointerType)}),[i]),{hoverProps:d,isHovered:o}}function kv(e){if(!e)return;let n=!0;return t=>{let r={...t,preventDefault(){t.preventDefault()},isDefaultPrevented:()=>t.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){n=!1}};e(r),n&&t.stopPropagation()}}const Ev=500;function Lv(e){const n=th(e);if("virtual"===Pv()){let t=n.activeElement;zh((()=>{n.activeElement===t&&e.isConnected&&dh(e)}))}else dh(e)}function Tv(e,n){return"#comment"!==e.nodeName&&function(e){const n=rh(e);if(!(e instanceof n.HTMLElement||e instanceof n.SVGElement))return!1;let{display:t,visibility:r}=e.style,i="none"!==t&&"hidden"!==r&&"collapse"!==r;if(i){const{getComputedStyle:n}=e.ownerDocument.defaultView;let{display:t,visibility:r}=n(e);i="none"!==t&&"hidden"!==r&&"collapse"!==r}return i}(e)&&function(e,n){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!n||"SUMMARY"===n.nodeName||e.hasAttribute("open"))}(e,n)&&(!e.parentElement||Tv(e.parentElement,e))}const Qv=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],jv=Qv.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Qv.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Mv=Qv.join(':not([hidden]):not([tabindex="-1"]),');function Nv(e,n){return!!e&&(!!n&&n.some((n=>n.contains(e))))}class Sv{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,n,t){let r=this.fastMap.get(null!=n?n:null);if(!r)return;let i=new Iv({scopeRef:e});r.addChild(i),i.parent=r,this.fastMap.set(e,i),t&&(i.nodeToRestore=t)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let n=this.fastMap.get(e);if(!n)return;let t=n.parent;for(let e of this.traverse())e!==n&&n.nodeToRestore&&e.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Nv(e.nodeToRestore,n.scopeRef.current)&&(e.nodeToRestore=n.nodeToRestore);let r=n.children;t&&(t.removeChild(n),r.size>0&&r.forEach((e=>t&&t.addChild(e)))),this.fastMap.delete(n.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let n of e.children)yield*this.traverse(n)}clone(){var e;let n=new Sv;var t;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new Iv({scopeRef:null}),this.fastMap.set(null,this.root)}}class Iv{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new Sv;let Fv=a.createContext(null);function Rv(e,n){let{focusProps:t}=function(e){let{isDisabled:n,onFocus:t,onBlur:r,onFocusChange:i}=e;const o=c((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=sv(o),l=c((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(t&&t(e),i&&i(!0),a(e))}),[i,t,a]);return{focusProps:{onFocus:!n&&(t||i||r)?l:void 0,onBlur:n||!r&&!i?void 0:o}}}(e),{keyboardProps:r}=function(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:kv(e.onKeyDown),onKeyUp:kv(e.onKeyUp)}}}(e),i=ih(t,r),o=function(e){let n=p(Fv)||{};Hh(n,e);let{ref:t,...r}=n;return r}(n),a=e.isDisabled?{}:o,l=h(e.autoFocus);return s((()=>{l.current&&n.current&&Lv(n.current),l.current=!1}),[n]),{focusableProps:ih({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const Vv=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Gv=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Wv(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),t="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(t)return"rtl"===t.direction;if(n.script)return Vv.has(n.script)}let n=e.split("-")[0];return Gv.has(n)}const Yv=Symbol.for("react-aria.i18n.locale");function Uv(){let e="undefined"!=typeof window&&window[Yv]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(n){e="en-US"}return{locale:e,direction:Wv(e)?"rtl":"ltr"}}let Kv=Uv(),qv=new Set;function Jv(){Kv=Uv();for(let e of qv)e(Kv)}function Zv(){let e=Wg(),[n,t]=l(Kv);return s((()=>(0===qv.size&&window.addEventListener("languagechange",Jv),qv.add(t),()=>{qv.delete(t),0===qv.size&&window.removeEventListener("languagechange",Jv)})),[]),e?{locale:"en-US",direction:"ltr"}:n}const _v=a.createContext(null);function $v(e){let{locale:n,children:t}=e,r=Zv(),i=n?{locale:n,direction:Wv(n)?"rtl":"ltr"}:r;return a.createElement(_v.Provider,{value:i},t)}function eA(){let e=Zv();return p(_v)||e}const nA=new WeakMap;function tA(e,n){return n&&Eg.getGlobalDictionaryForPackage(n)||function(e){let n=nA.get(e);return n||(n=new Eg(e),nA.set(e,n)),n}(e)}function rA(e,n){let{locale:t}=eA(),r=tA(e,n);return v((()=>new Qg(t,r)),[t,r])}function iA(e){e=Sh(null!=e?e:{},oA);let{locale:n}=eA();return v((()=>new _p(n,e)),[n,e])}function oA(e,n){if(e===n)return!0;let t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(let r of t)if(n[r]!==e[r])return!1;return!0}let aA=new Map;function lA(e,n){let t,{elementType:r="button",isDisabled:i,onPress:o,onPressStart:a,onPressEnd:l,onPressUp:s,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:u,onClick:f,href:p,target:g,rel:h,type:v="button"}=e;t="button"===r?{type:v,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===r&&i?void 0:p,target:"a"===r?g:void 0,type:"input"===r?v:void 0,disabled:"input"===r?i:void 0,"aria-disabled":i&&"input"!==r?i:void 0,rel:"a"===r?h:void 0};let{pressProps:A,isPressed:m}=Zh({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:o,onPressUp:s,isDisabled:i,preventFocusOnPress:d,ref:n}),{focusableProps:w}=Rv(e,n);u&&(w.tabIndex=i?-1:w.tabIndex);let x=ih(w,A,ch(e,{labelable:!0}));return{isPressed:m,buttonProps:ih(t,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}var sA;sA={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var cA;cA={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var dA;dA={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var uA;uA={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var fA;fA={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var pA;pA={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var gA;gA={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var hA;hA={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var vA;vA={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var AA;AA={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var mA;mA={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var wA;wA={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var xA;xA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var bA;bA={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var yA;yA={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var PA;PA={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var CA;CA={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var zA;zA={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var OA;OA={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var BA;BA={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var DA;DA={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var HA;HA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var XA;XA={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var kA;kA={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var EA;EA={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var LA;LA={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var TA;TA={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var QA;QA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var jA;jA={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var MA;MA={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var NA;NA={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var SA;SA={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var IA;IA={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var FA;FA={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};const RA=7e3;let VA=null;function GA(e,n="assertive",t=RA){VA||(VA=new WA),VA.announce(e,n,t)}class WA{createLog(e){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",e),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,n="assertive",t=RA){if(!this.node)return;let r=document.createElement("div");r.textContent=e,"assertive"===n?this.assertiveLog.appendChild(r):this.politeLog.appendChild(r),""!==e&&setTimeout((()=>{r.remove()}),t)}clear(e){this.node&&(e&&"assertive"!==e||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function YA(e){return e&&e.__esModule?e.default:e}var UA={};UA={"ar-AE":sA,"bg-BG":cA,"cs-CZ":dA,"da-DK":uA,"de-DE":fA,"el-GR":pA,"en-US":gA,"es-ES":hA,"et-EE":vA,"fi-FI":AA,"fr-FR":mA,"he-IL":wA,"hr-HR":xA,"hu-HU":bA,"it-IT":yA,"ja-JP":PA,"ko-KR":CA,"lt-LT":zA,"lv-LV":OA,"nb-NO":BA,"nl-NL":DA,"pl-PL":HA,"pt-BR":XA,"pt-PT":kA,"ro-RO":EA,"ru-RU":LA,"sk-SK":TA,"sl-SI":QA,"sr-SP":jA,"sv-SE":MA,"tr-TR":NA,"uk-UA":SA,"zh-CN":IA,"zh-TW":FA};const KA=new WeakMap;function qA(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function JA(e,n,t,r){let i=rA(YA(UA),"@react-aria/calendar"),o=qA(e)||qA(n),a=iA({month:"long",year:"numeric",era:o,calendar:e.calendar.identifier,timeZone:t}),l=iA({month:"long",year:"numeric",day:"numeric",era:o,calendar:e.calendar.identifier,timeZone:t});return v((()=>{if(Ju(e,of(e))){if(Ju(n,af(e)))return a.format(e.toDate(t));if(Ju(n,af(n)))return r?ZA(a,i,e,n,t):a.formatRange(e.toDate(t),n.toDate(t))}return r?ZA(l,i,e,n,t):l.formatRange(e.toDate(t),n.toDate(t))}),[e,n,a,l,i,t,r])}function ZA(e,n,t,r,i){let o=e.formatRangeToParts(t.toDate(i),r.toDate(i)),a=-1;for(let e=0;e<o.length;e++){let n=o[e];if("shared"===n.source&&"literal"===n.type)a=e;else if("endRange"===n.source)break}let l="",s="";for(let e=0;e<o.length;e++)e<a?l+=o[e].value:e>a&&(s+=o[e].value);return n.format("dateRange",{startDate:l,endDate:s})}function _A(e,n){let t=rA(YA(UA),"@react-aria/calendar"),r=ch(e),i=JA(n.visibleRange.start,n.visibleRange.end,n.timeZone,!1),o=JA(n.visibleRange.start,n.visibleRange.end,n.timeZone,!0);Dh((()=>{n.isFocused||GA(o)}),[o]);let a=function(e){let n,t,r=rA(YA(UA),"@react-aria/calendar");"highlightedRange"in e?({start:n,end:t}=e.highlightedRange||{}):n=t=e.value;let i=iA({weekday:"long",month:"long",year:"numeric",day:"numeric",era:qA(n)||qA(t),timeZone:e.timeZone}),o="anchorDate"in e?e.anchorDate:null;return v((()=>{if(!o&&n&&t){if(Ju(n,t)){let t=i.format(n.toDate(e.timeZone));return r.format("selectedDateDescription",{date:t})}{let o=ZA(i,r,n,t,e.timeZone);return r.format("selectedRangeDescription",{dateRange:o})}}return""}),[n,t,o,e.timeZone,r,i])}(n);Dh((()=>{a&&GA(a,"polite",4e3)}),[a]);let s=eh([Boolean(e.errorMessage),e.isInvalid,e.validationState]);KA.set(n,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:a});let[c,d]=l(!1),u=e.isDisabled||n.isNextVisibleRangeInvalid();u&&c&&(d(!1),n.setFocused(!0));let[f,p]=l(!1),g=e.isDisabled||n.isPreviousVisibleRangeInvalid();return g&&f&&(p(!1),n.setFocused(!0)),{calendarProps:ih(r,Bh({id:e.id,"aria-label":[e["aria-label"],o].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>n.focusNextPage(),"aria-label":t.format("next"),isDisabled:u,onFocusChange:d},prevButtonProps:{onPress:()=>n.focusPreviousPage(),"aria-label":t.format("previous"),isDisabled:g,onFocusChange:p},errorMessageProps:{id:s},title:i}}function $A(e,n){return _A(e,n)}function em(e,n,t){let{date:r,isDisabled:i}=e,{errorMessageId:o,selectedDateDescription:a}=KA.get(n),l=rA(YA(UA),"@react-aria/calendar"),c=iA({weekday:"long",day:"numeric",month:"long",year:"numeric",era:qA(r),timeZone:n.timeZone}),d=n.isSelected(r),u=n.isCellFocused(r);i=i||n.isCellDisabled(r);let f=n.isCellUnavailable(r),p=!i&&!f,g=n.isValueInvalid&&("highlightedRange"in n?!n.anchorDate&&n.highlightedRange&&r.compare(n.highlightedRange.start)>=0&&r.compare(n.highlightedRange.end)<=0:n.value&&Ju(n.value,r));g&&(d=!0),r=Sh(r,Zu);let A=v((()=>r.toDate(n.timeZone)),[r,n.timeZone]),m=function(e,n){return Ju(e,$u(n))}(r,n.timeZone),w=v((()=>{let e="";return"highlightedRange"in n&&n.value&&!n.anchorDate&&(Ju(r,n.value.start)||Ju(r,n.value.end))&&(e=a+", "),e+=c.format(A),m?e=l.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=l.format("dateSelected",{date:e})),n.minValue&&Ju(r,n.minValue)?e+=", "+l.format("minimumDate"):n.maxValue&&Ju(r,n.maxValue)&&(e+=", "+l.format("maximumDate")),e}),[c,A,l,d,m,r,n,a]),x="";"anchorDate"in n&&u&&!n.isReadOnly&&p&&(x=n.anchorDate?l.format("finishRangeSelectionPrompt"):l.format("startRangeSelectionPrompt"));let b=Th(x),y=h(!1),P=h(!1),C=h(null),{pressProps:z,isPressed:O}=Zh({shouldCancelOnPointerExit:"anchorDate"in n&&!!n.anchorDate,preventFocusOnPress:!0,isDisabled:!p||n.isReadOnly,onPressStart(e){if(n.isReadOnly)n.setFocusedDate(r);else if("highlightedRange"in n&&!n.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(n.highlightedRange&&!g){if(Ju(r,n.highlightedRange.start))return n.setAnchorDate(n.highlightedRange.end),n.setFocusedDate(r),n.setDragging(!0),void(P.current=!0);if(Ju(r,n.highlightedRange.end))return n.setAnchorDate(n.highlightedRange.start),n.setFocusedDate(r),n.setDragging(!0),void(P.current=!0)}let t=()=>{n.setDragging(!0),C.current=null,n.selectDate(r),n.setFocusedDate(r),y.current=!0};"touch"===e.pointerType?C.current=setTimeout(t,200):t()}},onPressEnd(){P.current=!1,y.current=!1,clearTimeout(C.current),C.current=null},onPress(){"anchorDate"in n||n.isReadOnly||(n.selectDate(r),n.setFocusedDate(r))},onPressUp(e){if(!n.isReadOnly&&("anchorDate"in n&&C.current&&(n.selectDate(r),n.setFocusedDate(r)),"anchorDate"in n))if(P.current)n.setAnchorDate(r);else if(n.anchorDate&&!y.current)n.selectDate(r),n.setFocusedDate(r);else if("keyboard"!==e.pointerType||n.anchorDate)"virtual"===e.pointerType&&(n.selectDate(r),n.setFocusedDate(r));else{n.selectDate(r);let e=r.add({days:1});n.isInvalid(e)&&(e=r.subtract({days:1})),n.isInvalid(e)||n.setFocusedDate(e)}}}),B=null;i||(B=Ju(r,n.focusedDate)?0:-1),s((()=>{u&&t.current&&(dh(t.current),"pointer"!==Pv()&&document.activeElement===t.current&&Mh(t.current,{containingElement:Xh(t.current)}))}),[u,t]);let D=iA({day:"numeric",timeZone:n.timeZone,calendar:r.calendar.identifier}),H=v((()=>D.formatToParts(A).find((e=>"day"===e.type)).value),[D,A]);return{cellProps:{role:"gridcell","aria-disabled":!p||null,"aria-selected":d||null,"aria-invalid":g||null},buttonProps:ih(z,{onFocus(){i||n.setFocusedDate(r)},tabIndex:B,role:"button","aria-disabled":!p||null,"aria-label":w,"aria-invalid":g||null,"aria-describedby":[g?o:null,b["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in n&&("touch"!==e.pointerType||n.isDragging)&&p&&n.highlightDate(r)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:O,isFocused:u,isSelected:d,isDisabled:i,isUnavailable:f,isOutsideVisibleRange:r.compare(n.visibleRange.start)<0||r.compare(n.visibleRange.end)>0,isInvalid:g,formattedDate:H}}function nm(e){return gh()||vh()?e.altKey:e.ctrlKey}function tm(e){return gh()?e.metaKey:e.ctrlKey}const rm=1e3;function im(e){let{selectionManager:n,keyboardDelegate:t,ref:r,autoFocus:i=!1,shouldFocusWrap:o=!1,disallowEmptySelection:a=!1,disallowSelectAll:l=!1,selectOnFocus:c="replace"===n.selectionBehavior,disallowTypeAhead:d=!1,shouldUseVirtualFocus:u,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:A}=eA(),m=xh(),w=h({top:0,left:0});!function(e,n,t,r){let i=qg(t),o=null==t;s((()=>{if(o||!e.current)return;let t=e.current;return t.addEventListener(n,i,r),()=>{t.removeEventListener(n,i,r)}}),[e,n,r,o,i])}(g,"scroll",p?null:()=>{w.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const x=h(i);s((()=>{if(x.current){let e=null;"first"===i&&(e=t.getFirstKey()),"last"===i&&(e=t.getLastKey());let o=n.selectedKeys;if(o.size)for(let t of o)if(n.canSelectItem(t)){e=t;break}n.setFocused(!0),n.setFocusedKey(e),null!=e||u||Lv(r.current)}}),[]);let b=h(n.focusedKey);s((()=>{let e=Pv();if(n.isFocused&&null!=n.focusedKey&&(null==g?void 0:g.current)){let t=g.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);t&&("keyboard"===e||x.current)&&(p||Qh(g.current,t),"virtual"!==e&&Mh(t,{containingElement:r.current}))}n.isFocused&&null==n.focusedKey&&null!=b.current&&Lv(r.current),b.current=n.focusedKey,x.current=!1}),[p,g,n.focusedKey,n.isFocused,r]);let y,P={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!r.current.contains(e.target))return;const i=(t,r)=>{if(null!=t){if(n.isLink(t)&&"selection"===v&&c&&!nm(e)){oe((()=>{n.setFocusedKey(t,r)}));let i=g.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`);return void m.open(i,e)}if(n.setFocusedKey(t,r),n.isLink(t)&&"override"===v)return;e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(t):c&&!nm(e)&&n.replaceSelection(t)}};switch(e.key){case"ArrowDown":if(t.getKeyBelow){var s,d;e.preventDefault();let r=null!=n.focusedKey?t.getKeyBelow(n.focusedKey):null===(s=t.getFirstKey)||void 0===s?void 0:s.call(t);null==r&&o&&(r=null===(d=t.getFirstKey)||void 0===d?void 0:d.call(t,n.focusedKey)),i(r)}break;case"ArrowUp":if(t.getKeyAbove){var u,p;e.preventDefault();let r=null!=n.focusedKey?t.getKeyAbove(n.focusedKey):null===(u=t.getLastKey)||void 0===u?void 0:u.call(t);null==r&&o&&(r=null===(p=t.getLastKey)||void 0===p?void 0:p.call(t,n.focusedKey)),i(r)}break;case"ArrowLeft":if(t.getKeyLeftOf){var h,w;e.preventDefault();let r=t.getKeyLeftOf(n.focusedKey);null==r&&o&&(r="rtl"===A?null===(h=t.getFirstKey)||void 0===h?void 0:h.call(t,n.focusedKey):null===(w=t.getLastKey)||void 0===w?void 0:w.call(t,n.focusedKey)),i(r,"rtl"===A?"first":"last")}break;case"ArrowRight":if(t.getKeyRightOf){var x,b;e.preventDefault();let r=t.getKeyRightOf(n.focusedKey);null==r&&o&&(r="rtl"===A?null===(x=t.getLastKey)||void 0===x?void 0:x.call(t,n.focusedKey):null===(b=t.getFirstKey)||void 0===b?void 0:b.call(t,n.focusedKey)),i(r,"rtl"===A?"last":"first")}break;case"Home":if(t.getFirstKey){e.preventDefault();let r=t.getFirstKey(n.focusedKey,tm(e));n.setFocusedKey(r),tm(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(r):c&&n.replaceSelection(r)}break;case"End":if(t.getLastKey){e.preventDefault();let r=t.getLastKey(n.focusedKey,tm(e));n.setFocusedKey(r),tm(e)&&e.shiftKey&&"multiple"===n.selectionMode?n.extendSelection(r):c&&n.replaceSelection(r)}break;case"PageDown":if(t.getKeyPageBelow){e.preventDefault(),i(t.getKeyPageBelow(n.focusedKey))}break;case"PageUp":if(t.getKeyPageAbove){e.preventDefault(),i(t.getKeyPageAbove(n.focusedKey))}break;case"a":tm(e)&&"multiple"===n.selectionMode&&!0!==l&&(e.preventDefault(),n.selectAll());break;case"Escape":e.preventDefault(),a||n.clearSelection();break;case"Tab":if(!f){if(e.shiftKey)r.current.focus();else{let e,n,t=function(e,n,t){let r=(null==n?void 0:n.tabbable)?Mv:jv,i=th(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==n||null===(i=n.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!Tv(e)||t&&!Nv(e,t)||(null==n?void 0:n.accept)&&!n.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==n?void 0:n.from)&&(i.currentNode=n.from),i}(r.current,{tabbable:!0});do{n=t.lastChild(),n&&(e=n)}while(n);e&&!e.contains(document.activeElement)&&dh(e)}break}}},onFocus:e=>{if(n.isFocused)e.currentTarget.contains(e.target)||n.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(n.setFocused(!0),null==n.focusedKey){let r=e=>{null!=e&&(n.setFocusedKey(e),c&&n.replaceSelection(e))},a=e.relatedTarget;var i,o;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(i=n.lastSelectedKey)&&void 0!==i?i:t.getLastKey()):r(null!==(o=n.firstSelectedKey)&&void 0!==o?o:t.getFirstKey())}else p||(g.current.scrollTop=w.current.top,g.current.scrollLeft=w.current.left);if(!p&&null!=n.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||dh(e),"keyboard"===Pv()&&Mh(e,{containingElement:r.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||n.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:C}=function(e){let{keyboardDelegate:n,selectionManager:t,onTypeSelect:r}=e,i=h({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?e=>{let o=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!o||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let a=n.getKeyForSearch(i.search,t.focusedKey);null==a&&(a=n.getKeyForSearch(i.search)),null!=a&&(t.setFocusedKey(a),r&&r(a)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),rm)}:null}}}({keyboardDelegate:t,selectionManager:n});return d||(P=ih(C,P)),u||(y=null==n.focusedKey?0:-1),{collectionProps:{...P,tabIndex:y}}}function om(e){let{selectionManager:n,key:t,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:o,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:u="action"}=e,f=xh(),p=e=>{if("keyboard"===e.pointerType&&nm(e))n.toggleSelection(t);else{if("none"===n.selectionMode)return;if(n.isLink(t)){if("selection"===u)return f.open(r.current,e),void n.setSelectedKeys(n.selectedKeys);if("override"===u||"none"===u)return}"single"===n.selectionMode?n.isSelected(t)&&!n.disallowEmptySelection?n.toggleSelection(t):n.replaceSelection(t):e&&e.shiftKey?n.extendSelection(t):"toggle"===n.selectionBehavior||e&&(tm(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?n.toggleSelection(t):n.replaceSelection(t)}};s((()=>{t===n.focusedKey&&n.isFocused&&!o&&(a?a():document.activeElement!==r.current&&Lv(r.current))}),[r,t,n.focusedKey,n.childFocusStrategy,n.isFocused,o]),l=l||n.isDisabled(t);let g={};o||l?l&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:t===n.focusedKey?0:-1,onFocus(e){e.target===r.current&&n.setFocusedKey(t)}};let v=n.isLink(t)&&"override"===u,A=n.isLink(t)&&"selection"!==u&&"none"!==u,m=!l&&n.canSelectItem(t)&&!v,w=(c||A)&&!l,x=w&&("replace"===n.selectionBehavior?!m:!m||n.isEmpty),b=w&&m&&"replace"===n.selectionBehavior,y=x||b,P=h(null),C=y&&m,z=h(!1),O=h(!1),B=e=>{c&&c(),A&&f.open(r.current,e)},D={};i?(D.onPressStart=e=>{P.current=e.pointerType,z.current=C,"keyboard"!==e.pointerType||y&&!lm()||p(e)},d?(D.onPressUp=x?null:e=>{"keyboard"!==e.pointerType&&m&&p(e)},D.onPress=x?B:null):D.onPress=e=>{if(x||b&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!am())return;B(e)}else"keyboard"!==e.pointerType&&m&&p(e)}):(D.onPressStart=e=>{P.current=e.pointerType,z.current=C,O.current=x,m&&("mouse"===e.pointerType&&!x||"keyboard"===e.pointerType&&(!w||lm()))&&p(e)},D.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&y&&am()||"mouse"===e.pointerType&&O.current)&&(y?B(e):m&&p(e))}),g["data-key"]=t,D.preventFocusOnPress=o;let{pressProps:H,isPressed:X}=Zh(D),k=b?e=>{"mouse"===P.current&&(e.stopPropagation(),e.preventDefault(),B(e))}:void 0,{longPressProps:E}=function(e){let{isDisabled:n,onLongPressStart:t,onLongPressEnd:r,onLongPress:i,threshold:o=Ev,accessibilityDescription:a}=e;const l=h();let{addGlobalListener:s,removeGlobalListener:c}=Oh(),{pressProps:d}=Zh({isDisabled:n,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(t&&t({...e,type:"longpressstart"}),l.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),l.current=void 0}),o),"touch"===e.pointerType)){let n=e=>{e.preventDefault()};s(e.target,"contextmenu",n,{once:!0}),s(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",n)}),30)}),{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:ih(d,Th(i&&!n?a:void 0))}}({isDisabled:!C,onLongPress(e){"touch"===e.pointerType&&(p(e),n.setSelectionBehavior("toggle"))}}),L=n.isLink(t)?e=>{bh.isOpening||e.preventDefault()}:void 0;return{itemProps:ih(g,m||x?H:{},C?E:{},{onDoubleClick:k,onDragStartCapture:e=>{"touch"===P.current&&z.current&&e.preventDefault()},onClick:L}),isPressed:X,isSelected:n.isSelected(t),isFocused:n.isFocused&&n.focusedKey===t,isDisabled:l,allowsSelection:m,hasAction:y}}function am(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function lm(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class sm{getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,n,t){let r=this.getItem(e);if(!r)return null;let i=r.getBoundingClientRect();do{e=n(e),r=this.getItem(e)}while(r&&t(i,r.getBoundingClientRect()));return e}isSameRow(e,n){return e.top===n.top||e.left!==n.left}isSameColumn(e,n){return e.left===n.left||e.top!==n.top}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,n){return n?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){let n=this.collection.getItem(e);if("item"===(null==n?void 0:n.type)&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!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 n=this.ref.current,t=this.getItem(e);if(!t)return null;if(!kh(n))return this.getFirstKey();let r=n.getBoundingClientRect(),i=t.getBoundingClientRect();if("horizontal"===this.orientation){let o=r.x-n.scrollLeft,a=Math.max(0,i.x-o+i.width-r.width);for(;t&&i.x-o>a;)t=null==(e=this.getKeyAbove(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}else{let o=r.y-n.scrollTop,a=Math.max(0,i.y-o+i.height-r.height);for(;t&&i.y-o>a;)t=null==(e=this.getKeyAbove(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let n=this.ref.current,t=this.getItem(e);if(!t)return null;if(!kh(n))return this.getLastKey();let r=n.getBoundingClientRect(),i=t.getBoundingClientRect();if("horizontal"===this.orientation){let o=r.x-n.scrollLeft,a=Math.min(n.scrollWidth,i.x-o-i.width+r.width);for(;t&&i.x-o<a;)t=null==(e=this.getKeyBelow(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}else{let o=r.y-n.scrollTop,a=Math.min(n.scrollHeight,i.y-o-i.height+r.height);for(;t&&i.y-o<a;)t=null==(e=this.getKeyBelow(e))?null:this.getItem(e),i=null==t?void 0:t.getBoundingClientRect()}return null!=e?e:this.getLastKey()}getKeyForSearch(e,n){if(!this.collator)return null;let t=this.collection,r=n||this.getFirstKey();for(;null!=r;){let n=t.getItem(r),i=n.textValue.slice(0,e.length);if(n.textValue&&0===this.collator.compare(i,e))return r;r=this.getKeyBelow(r)}return null}constructor(...e){if(1===e.length){let n=e[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.orientation=n.orientation,this.direction=n.direction,this.layout=n.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";"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function cm(e){let{selectionManager:n,collection:t,disabledKeys:r,ref:i,keyboardDelegate:o}=e,a=function(e){let{locale:n}=eA(),t=n+(e?Object.entries(e).sort(((e,n)=>e[0]<n[0]?-1:1)).join():"");if(aA.has(t))return aA.get(t);let r=new Intl.Collator(n,e);return aA.set(t,r),r}({usage:"search",sensitivity:"base"}),l=n.disabledBehavior,s=v((()=>o||new sm(t,"selection"===l?new Set:r,i,a)),[o,t,r,i,a,l]),{collectionProps:c}=im({...e,ref:i,selectionManager:n,keyboardDelegate:s});return{listProps:c}}const dm=new WeakMap;function um(e,n){let t=dm.get(e);if(!t)throw new Error("Unknown list");return`${t.id}-option-${r=n,"string"==typeof r?r.replace(/\s*/g,""):""+r}`;var r}function fm(e,n,t){let r=ch(e,{labelable:!0}),i=e.selectionBehavior||"toggle",o=e.linkBehavior||("replace"===i?"action":"override");"toggle"===i&&"action"===o&&(o="override");let{listProps:a}=cm({...e,ref:t,selectionManager:n.selectionManager,collection:n.collection,disabledKeys:n.disabledKeys,linkBehavior:o}),{focusWithinProps:l}=Cv({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=_g(e.id);dm.set(n,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:o});let{labelProps:c,fieldProps:d}=function(e){let{id:n,label:t,"aria-labelledby":r,"aria-label":i,labelElementType:o="label"}=e;n=_g(n);let a=_g(),l={};return t?(r=r?`${a} ${r}`:a,l={id:a,htmlFor:"label"===o?n:void 0}):r||i||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:Bh({id:n,"aria-label":i,"aria-labelledby":r})}}({...e,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:ih(r,l,"multiple"===n.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...ih(d,a)})}}function pm(e,n,t){var r;let{key:i}=e,o=dm.get(n);var a;let l=null!==(a=e.isDisabled)&&void 0!==a?a:n.disabledKeys.has(i);var s;let c=null!==(s=e.isSelected)&&void 0!==s?s:n.selectionManager.isSelected(i);var d;let u=null!==(d=e.shouldSelectOnPressUp)&&void 0!==d?d:null==o?void 0:o.shouldSelectOnPressUp;var f;let p=null!==(f=e.shouldFocusOnHover)&&void 0!==f?f:null==o?void 0:o.shouldFocusOnHover;var g;let h=null!==(g=e.shouldUseVirtualFocus)&&void 0!==g?g:null==o?void 0:o.shouldUseVirtualFocus;var v;let A=null!==(v=e.isVirtualized)&&void 0!==v?v:null==o?void 0:o.isVirtualized,m=eh(),w=eh(),x={role:"option","aria-disabled":l||void 0,"aria-selected":"none"!==n.selectionManager.selectionMode?c:void 0};gh()&&Ah()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=m,x["aria-describedby"]=w);let b=n.collection.getItem(i);if(A){let e=Number(null==b?void 0:b.index);x["aria-posinset"]=Number.isNaN(e)?void 0:e+1,x["aria-setsize"]=function(e){let n=Pg.get(e);if(null!=n)return n;n=0;let t=r=>{for(let i of r)"section"===i.type?t(wg(i,e)):n++};return t(e),Pg.set(e,n),n}(n.collection)}let{itemProps:y,isPressed:P,isFocused:C,hasAction:z,allowsSelection:O}=om({selectionManager:n.selectionManager,key:i,ref:t,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&p,isVirtualized:A,shouldUseVirtualFocus:h,isDisabled:l,onAction:(null==o?void 0:o.onAction)?()=>{var e;return null==o||null===(e=o.onAction)||void 0===e?void 0:e.call(o,i)}:void 0,linkBehavior:null==o?void 0:o.linkBehavior}),{hoverProps:B}=Xv({isDisabled:l||!p,onHoverStart(){yv()||(n.selectionManager.setFocused(!0),n.selectionManager.setFocusedKey(i))}}),D=ch(null==b?void 0:b.props,{isLink:!!(null==b||null===(r=b.props)||void 0===r?void 0:r.href)});return delete D.id,{optionProps:{...x,...ih(D,y,B),id:um(n,i)},labelProps:{id:m},descriptionProps:{id:w},isFocused:C,isFocusVisible:C&&yv(),isSelected:c,isDisabled:l,isPressed:P,allowsSelection:O,hasAction:z}}function gm(e){var n=o.useRef(null);return o.useImperativeHandle(e,(function(){return n.current})),n}function hm(e){var n=h(vm);g((function(){n.current=e}),[e]);var t=h(null);return t.current||(t.current=function(){return n.current.apply(this,arguments)}),t.current}function vm(){throw new Error("INVALID_USEEVENT_INVOCATION: the callback from useEvent cannot be invoked before the component has mounted.")}var Am,mm=D("ios")?300:0;function wm(){var e=this,n=o.useRef(null),t=pe(o.useState(!0),2),r=t[0],i=t[1];return o.useEffect((function(){r&&setTimeout((function(){return ue(e,void 0,void 0,(function(){return fe(this,(function(e){switch(e.label){case 0:return null===n.current?[3,2]:[4,n.current.setFocus()];case 1:e.sent(),i(!1),e.label=2;case 2:return[2]}}))}))}),mm)}),[r]),n}!function(e){e.client="client",e.specialist="specialist"}(Am||(Am={}));var xm=u({appTheme:Am.specialist}),bm=function(n){var t=n.children,r=n.appTheme;return a.useEffect((function(){document.documentElement.dataset.appTheme=r}),[r]),e(xm.Provider,ce({value:{appTheme:r}},{children:t}))},ym={exports:{}},Pm={},Cm=a;var zm="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},Om=Cm.useState,Bm=Cm.useEffect,Dm=Cm.useLayoutEffect,Hm=Cm.useDebugValue;function Xm(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!zm(e,t)}catch(e){return!0}}var km="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=Om({inst:{value:t,getSnapshot:n}}),i=r[0].inst,o=r[1];return Dm((function(){i.value=t,i.getSnapshot=n,Xm(i)&&o({inst:i})}),[e,t,n]),Bm((function(){return Xm(i)&&o({inst:i}),e((function(){Xm(i)&&o({inst:i})}))}),[e]),Hm(t),t};Pm.useSyncExternalStore=void 0!==Cm.useSyncExternalStore?Cm.useSyncExternalStore:km;var Em={};
17
17
  /**
18
18
  * @license React
19
19
  * use-sync-external-store-shim.development.js