@murabei-data-science/pumpwood-ui 1.4.6 → 1.4.7

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.
@@ -17,13 +17,13 @@ var st={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
17
17
  *
18
18
  * This source code is licensed under the ISC license.
19
19
  * See the LICENSE file in the root directory of this source tree.
20
- */const lt=n(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...l},c)=>o("svg",{ref:c,...st,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:at("lucide",a),...!i&&!it(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>o(e,t)),...Array.isArray(i)?i:[i]])),ct=(e,t)=>{const r=n(({className:n,...r},a)=>{return o(lt,{ref:a,iconNode:t,className:at(`lucide-${i=rt(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var i});return r.displayName=rt(e),r},dt=ct("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),ut=ct("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),pt=ct("badge-info",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]]),ft=ct("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),mt=ct("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ht=ct("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),vt=ct("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),gt=ct("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),yt=ct("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),bt=ct("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),xt=ct("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),wt=ct("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]),kt=ct("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Nt=ct("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Ct=ct("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),_t=ct("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Dt=ct("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),St=ct("panel-right-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),Et=ct("panel-right-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]),Mt=ct("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Ot=ct("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Tt=ct("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),Rt=ct("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
20
+ */const lt=n(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...l},c)=>o("svg",{ref:c,...st,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:at("lucide",a),...!i&&!it(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>o(e,t)),...Array.isArray(i)?i:[i]])),ct=(e,t)=>{const r=n(({className:n,...r},a)=>{return o(lt,{ref:a,iconNode:t,className:at(`lucide-${i=rt(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var i});return r.displayName=rt(e),r},dt=ct("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),ut=ct("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),pt=ct("badge-info",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]]),ft=ct("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),mt=ct("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ht=ct("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),vt=ct("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),gt=ct("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),yt=ct("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),bt=ct("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),xt=ct("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),wt=ct("cloud-upload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]),kt=ct("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Nt=ct("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),Ct=ct("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),_t=ct("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),Dt=ct("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),St=ct("panel-right-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),Et=ct("panel-right-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]]),Mt=ct("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Ot=ct("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Tt=ct("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),Rt=ct("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Pt=n(function({children:e,onClick:t,direction:n,gap:o,className:r,...a},i){return g("div",{ref:i,...t?{role:"button",tabIndex:0,onClick:t,onKeyDown:e=>{!t||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())}}:{},className:Ye(`${"row"===n?"flex flex-row":"flex flex-col"} ${o?`gap-${o}`:"gap-0"}`,r),...a,children:e})});
21
21
  /**
22
22
  * @license lucide-react v0.562.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */function Pt({children:e,onClick:t,direction:n,gap:o,className:r,...a}){return g("div",{...t?{role:"button",tabIndex:0,onClick:t,onKeyDown:e=>{!t||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())}}:{},className:Ye(`${"row"===n?"flex flex-row":"flex flex-col"} ${o?`gap-${o}`:"gap-0"}`,r),...a,children:e})}const At=({handleClear:e})=>g("button",{type:"button",className:"h-10 p-2 mt-1 text-xs bg-white",onClick:e,children:y(Pt,{direction:"row",gap:2,className:"items-center",children:["Limpar filtros ",g(Rt,{size:16})]})});function It(t,n=[]){let o=[];const r=()=>{const n=o.map(t=>e.createContext(t));return function(o){const r=o?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...o,[t]:r}}),[o,r])}};return r.scopeName=t,[function(n,r){const a=e.createContext(r),i=o.length;o=[...o,r];const s=n=>{const{scope:o,children:r,...s}=n,l=o?.[t]?.[i]||a,c=e.useMemo(()=>s,Object.values(s));return g(l.Provider,{value:c,children:r})};return s.displayName=n+"Provider",[s,function(o,s){const l=s?.[t]?.[i]||a,c=e.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${n}\``)}]},Ft(r,...n)]}function Ft(...t){const n=t[0];if(1===t.length)return n;const o=()=>{const o=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const r=o.reduce((e,{useScope:n,scopeName:o})=>({...e,...n(t)[`__scope${o}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return o.scopeName=n.scopeName,o}function zt(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function jt(...e){return t=>{let n=!1;const o=e.map(e=>{const o=zt(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){const n=o[t];"function"==typeof n?n():zt(e[t],null)}}}}function Lt(...t){return e.useCallback(jt(...t),t)}function Wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),!1===n||!o.defaultPrevented)return t?.(o)}}var $t=globalThis?.document?e.useLayoutEffect:()=>{},Bt=e[" useId ".trim().toString()]||(()=>{}),Yt=0;function qt(t){const[n,o]=e.useState(Bt());return $t(()=>{o(e=>e??String(Yt++))},[t]),n?`radix-${n}`:""}var Ht=e[" useInsertionEffect ".trim().toString()]||$t;function Ut({prop:t,defaultProp:n,onChange:o=()=>{},caller:r}){const[a,i,s]=function({defaultProp:t,onChange:n}){const[o,r]=e.useState(t),a=e.useRef(o),i=e.useRef(n);return Ht(()=>{i.current=n},[n]),e.useEffect(()=>{a.current!==o&&(i.current?.(o),a.current=o)},[o,a]),[o,r,i]}({defaultProp:n,onChange:o}),l=void 0!==t,c=l?t:a;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,r])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else i(e)},[l,t,i,s]);return[c,d]}function Vt(t){const n=Kt(t),o=e.forwardRef((t,o)=>{const{children:r,...a}=t,i=e.Children.toArray(r),s=i.find(Zt);if(s){const t=s.props.children,r=i.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return g(n,{...a,ref:o,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return g(n,{...a,ref:o,children:r})});return o.displayName=`${t}.Slot`,o}function Kt(t){const n=e.forwardRef((t,n)=>{const{children:o,...r}=t;if(e.isValidElement(o)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...e)=>{const t=a(...e);return r(...e),t}:r&&(n[o]=r):"style"===o?n[o]={...r,...a}:"className"===o&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}(r,o.props);return o.type!==e.Fragment&&(a.ref=n?jt(n,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Gt=Symbol("radix.slottable");function Zt(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Gt}var Xt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=Vt(`Primitive.${n}`),r=e.forwardRef((e,t)=>{const{asChild:r,...a}=e,i=r?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),g(i,{...a,ref:t})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{});function Qt(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var Jt,en="dismissableLayer.update",tn="dismissableLayer.pointerDownOutside",nn="dismissableLayer.focusOutside",on=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=t,d=e.useContext(on),[u,p]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=Lt(n,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=u?v.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=x>=b,N=function(t,n=globalThis?.document){const o=Qt(t),r=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let t=function(){sn(tn,o,r,{discrete:!0})};const r={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);r.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,o]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));k&&!n&&(a?.(e),s?.(e),e.defaultPrevented||l?.())},f),C=function(t,n=globalThis?.document){const o=Qt(t),r=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!r.current){sn(nn,o,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||l?.())},f);return function(t,n=globalThis?.document){const o=Qt(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[o,n])}(e=>{x===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),e.useEffect(()=>{if(u)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Jt=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),an(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Jt)}},[u,f,o,d]),e.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),an())},[u,d]),e.useEffect(()=>{const e=()=>m({});return document.addEventListener(en,e),()=>document.removeEventListener(en,e)},[]),g(Xt.div,{...c,ref:h,style:{pointerEvents:w?k?"auto":"none":void 0,...t.style},onFocusCapture:Wt(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Wt(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Wt(t.onPointerDownCapture,N.onPointerDownCapture)})});rn.displayName="DismissableLayer";function an(){const e=new CustomEvent(en);document.dispatchEvent(e)}function sn(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?function(e,t){e&&x.flushSync(()=>e.dispatchEvent(t))}(r,a):r.dispatchEvent(a)}e.forwardRef((t,n)=>{const o=e.useContext(on),r=e.useRef(null),a=Lt(n,r);return e.useEffect(()=>{const e=r.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),g(Xt.div,{...t,ref:a})}).displayName="DismissableLayerBranch";var ln="focusScope.autoFocusOnMount",cn="focusScope.autoFocusOnUnmount",dn={bubbles:!1,cancelable:!0},un=e.forwardRef((t,n)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=t,[l,c]=e.useState(null),d=Qt(a),u=Qt(i),p=e.useRef(null),f=Lt(n,e=>c(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:hn(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||hn(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&hn(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[r,l,m.paused]),e.useEffect(()=>{if(l){vn.add(m);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(ln,dn);l.addEventListener(ln,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(hn(o,{select:t}),document.activeElement!==n)return}((e=pn(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&hn(l))}return()=>{l.removeEventListener(ln,d),setTimeout(()=>{const e=new CustomEvent(cn,dn);l.addEventListener(cn,u),l.dispatchEvent(e),e.defaultPrevented||hn(t??document.body,{select:!0}),l.removeEventListener(cn,u),vn.remove(m)},0)}}var e},[l,d,u,m]);const h=e.useCallback(e=>{if(!o&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=pn(e),n=fn(t,e),o=fn(t.reverse(),e);return[n,o]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&hn(a,{select:!0})):(e.preventDefault(),o&&hn(r,{select:!0})):n===t&&e.preventDefault()}},[o,r,m.paused]);return g(Xt.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})});function pn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fn(e,t){for(const n of e)if(!mn(n,{upTo:t}))return n}function mn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function hn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}un.displayName="FocusScope";var vn=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=gn(e,t),e.unshift(t)},remove(t){e=gn(e,t),e[0]?.resume()}}}();function gn(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var yn=e.forwardRef((t,n)=>{const{container:o,...r}=t,[a,i]=e.useState(!1);$t(()=>i(!0),[]);const s=o||a&&globalThis?.document?.body;return s?w.createPortal(g(Xt.div,{...r,ref:n}),s):null});yn.displayName="Portal";var bn=t=>{const{present:n,children:o}=t,r=function(t){const[n,o]=e.useState(),r=e.useRef(null),a=e.useRef(t),i=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=xn(r.current);i.current="mounted"===l?e:"none"},[l]),$t(()=>{const e=r.current,n=a.current;if(n!==t){const o=i.current,r=xn(e);if(t)c("MOUNT");else if("none"===r||"none"===e?.display)c("UNMOUNT");else{c(n&&o!==r?"ANIMATION_OUT":"UNMOUNT")}a.current=t}},[t,c]),$t(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,o=o=>{const i=xn(r.current).includes(CSS.escape(o.animationName));if(o.target===n&&i&&(c("ANIMATION_END"),!a.current)){const o=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=o)})}},s=e=>{e.target===n&&(i.current=xn(r.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",o),n.addEventListener("animationend",o),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",o),n.removeEventListener("animationend",o)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{r.current=e?getComputedStyle(e):null,o(e)},[])}}(n),a="function"==typeof o?o({present:r.isPresent}):e.Children.only(o),i=Lt(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof o||r.isPresent?e.cloneElement(a,{ref:i}):null};function xn(e){return e?.animationName||"none"}bn.displayName="Presence";var wn=0;function kn(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nn()),document.body.insertAdjacentElement("beforeend",e[1]??Nn()),wn++,()=>{1===wn&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wn--}},[])}function Nn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Cn.apply(this,arguments)};function _n(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function Dn(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}l((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var Sn="right-scroll-bar-position",En="width-before-scroll-bar";function Mn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var On="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Tn=new WeakMap;function Rn(e,t){var n,o,a,i=(n=null,o=function(t){return e.forEach(function(e){return Mn(e,t)})},(a=r(function(){return{value:n,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=o,a.facade);return On(function(){var t=Tn.get(i);if(t){var n=new Set(t),o=new Set(e),r=i.current;n.forEach(function(e){o.has(e)||Mn(e,null)}),o.forEach(function(e){n.has(e)||Mn(e,r)})}Tn.set(i,e)},[e]),i}function Pn(e){return e}var An=function(t){var n=t.sideCar,o=_n(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return e.createElement(r,Cn({},o))};An.isSideCarExport=!0;var In=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Cn({async:!0,ssr:!1},e),t}(),Fn=function(){},zn=e.forwardRef(function(t,n){var o=e.useRef(null),r=e.useState({onScrollCapture:Fn,onWheelCapture:Fn,onTouchMoveCapture:Fn}),a=r[0],i=r[1],s=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,u=t.enabled,p=t.shards,f=t.sideCar,m=t.noRelative,h=t.noIsolation,v=t.inert,g=t.allowPinchZoom,y=t.as,b=void 0===y?"div":y,x=t.gapMode,w=_n(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,N=Rn([o,n]),C=Cn(Cn({},w),a);return e.createElement(e.Fragment,null,u&&e.createElement(k,{sideCar:In,removeScrollBar:d,shards:p,noRelative:m,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:o,gapMode:x}),s?e.cloneElement(e.Children.only(l),Cn(Cn({},C),{ref:N})):e.createElement(b,Cn({},C,{className:c,ref:N}),l))});zn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zn.classNames={fullWidth:En,zeroRight:Sn};function jn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Ln=function(){var e=0,t=null;return{add:function(n){var o,r;0==e&&(t=jn())&&(r=n,(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wn=function(){var t,n=(t=Ln(),function(n,o){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&o])});return function(e){var t=e.styles,o=e.dynamic;return n(t,o),null}},$n={left:0,top:0,right:0,gap:0},Bn=function(e){return parseInt(e||"",10)||0},Yn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return $n;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[Bn(n),Bn(o),Bn(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},qn=Wn(),Hn="data-scroll-locked",Un=function(e,t,n,o){var r=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(s,"px ").concat(o,";\n }\n body[").concat(Hn,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Sn," {\n right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(En," {\n margin-right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n right: 0 ").concat(o,";\n }\n \n .").concat(En," .").concat(En," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(Hn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Vn=function(){var e=parseInt(document.body.getAttribute(Hn)||"0",10);return isFinite(e)?e:0},Kn=function(t){var n=t.noRelative,o=t.noImportant,r=t.gapMode,a=void 0===r?"margin":r;e.useEffect(function(){return document.body.setAttribute(Hn,(Vn()+1).toString()),function(){var e=Vn()-1;e<=0?document.body.removeAttribute(Hn):document.body.setAttribute(Hn,e.toString())}},[]);var i=e.useMemo(function(){return Yn(a)},[a]);return e.createElement(qn,{styles:Un(i,!n,a,o?"":"!important")})},Gn=!1;if("undefined"!=typeof window)try{var Zn=Object.defineProperty({},"passive",{get:function(){return Gn=!0,!0}});window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch(e){Gn=!1}var Xn=!!Gn&&{passive:!1},Qn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Jn=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),eo(e,o)){var r=to(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},eo=function(e,t){return"v"===e?function(e){return Qn(e,"overflowY")}(t):function(e){return Qn(e,"overflowX")}(t)},to=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},no=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},ro=function(e){return e&&"current"in e?e.current:e},ao=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},io=0,so=[];function lo(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var co,uo=(co=function(t){var n=e.useRef([]),o=e.useRef([0,0]),r=e.useRef(),a=e.useState(io++)[0],i=e.useState(Wn)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(ro),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=no(e),i=o.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===d||f.contains(d)))return!1;var m=Jn(u,d);if(!m)return!0;if(m?n=u:(n="v"===u?"h":"v",m=Jn(u,d)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=n),!n)return!0;var h=r.current||n;return function(e,t,n,o){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=r*o,i=n.target,s=t.contains(i),l=!1,c=a>0,d=0,u=0;do{if(!i)break;var p=to(e,i),f=p[0],m=p[1]-p[2]-r*f;(f||m)&&eo(e,i)&&(d+=m,u+=f);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(d)<1||!c&&Math.abs(u)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=e.useCallback(function(e){var t=e;if(so.length&&so[so.length-1]===i){var o="deltaY"in t?oo(t):no(t),r=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,o)})[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var a=(s.current.shards||[]).map(ro).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?l(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=e.useCallback(function(e,t,o,r){var a={name:e,delta:t,target:o,should:r,shadowParent:lo(o)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),u=e.useCallback(function(e){o.current=no(e),r.current=void 0},[]),p=e.useCallback(function(e){d(e.type,oo(e),e.target,l(e,t.lockRef.current))},[]),f=e.useCallback(function(e){d(e.type,no(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return so.push(i),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Xn),document.addEventListener("touchmove",c,Xn),document.addEventListener("touchstart",u,Xn),function(){so=so.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Xn),document.removeEventListener("touchmove",c,Xn),document.removeEventListener("touchstart",u,Xn)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(i,{styles:ao(a)}):null,m?e.createElement(Kn,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},In.useMedium(co),An),po=e.forwardRef(function(t,n){return e.createElement(zn,Cn({},t,{ref:n,sideCar:uo}))});po.classNames=zn.classNames;var fo=new WeakMap,mo=new WeakMap,ho={},vo=0,go=function(e){return e&&(e.host||go(e.parentNode))},yo=function(e,t,n,o){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=go(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);ho[n]||(ho[n]=new WeakMap);var a=ho[n],i=[],s=new Set,l=new Set(r),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};r.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(fo.get(e)||0)+1,c=(a.get(e)||0)+1;fo.set(e,l),a.set(e,c),i.push(e),1===l&&r&&mo.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),s.clear(),vo++,function(){i.forEach(function(e){var t=fo.get(e)-1,r=a.get(e)-1;fo.set(e,t),a.set(e,r),t||(mo.has(e)||e.removeAttribute(o),mo.delete(e)),r||e.removeAttribute(n)}),--vo||(fo=new WeakMap,fo=new WeakMap,mo=new WeakMap,ho={})}},bo=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),yo(o,r,n,"aria-hidden")):function(){return null}},xo="Dialog",[wo,ko]=It(xo),[No,Co]=wo(xo),_o=t=>{const{__scopeDialog:n,children:o,open:r,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,l=e.useRef(null),c=e.useRef(null),[d,u]=Ut({prop:r,defaultProp:a??!1,onChange:i,caller:xo});return g(No,{scope:n,triggerRef:l,contentRef:c,contentId:qt(),titleId:qt(),descriptionId:qt(),open:d,onOpenChange:u,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),modal:s,children:o})};_o.displayName=xo;var Do="DialogTrigger",So=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Do,n),a=Lt(t,r.triggerRef);return g(Xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vo(r.open),...o,ref:a,onClick:Wt(e.onClick,r.onOpenToggle)})});So.displayName=Do;var Eo="DialogPortal",[Mo,Oo]=wo(Eo,{forceMount:void 0}),To=t=>{const{__scopeDialog:n,forceMount:o,children:r,container:a}=t,i=Co(Eo,n);return g(Mo,{scope:n,forceMount:o,children:e.Children.map(r,e=>g(bn,{present:o||i.open,children:g(yn,{asChild:!0,container:a,children:e})}))})};To.displayName=Eo;var Ro="DialogOverlay",Po=e.forwardRef((e,t)=>{const n=Oo(Ro,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=Co(Ro,e.__scopeDialog);return a.modal?g(bn,{present:o||a.open,children:g(Io,{...r,ref:t})}):null});Po.displayName=Ro;var Ao=Vt("DialogOverlay.RemoveScroll"),Io=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Ro,n);return g(po,{as:Ao,allowPinchZoom:!0,shards:[r.contentRef],children:g(Xt.div,{"data-state":Vo(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Fo="DialogContent",zo=e.forwardRef((e,t)=>{const n=Oo(Fo,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=Co(Fo,e.__scopeDialog);return g(bn,{present:o||a.open,children:a.modal?g(jo,{...r,ref:t}):g(Lo,{...r,ref:t})})});zo.displayName=Fo;var jo=e.forwardRef((t,n)=>{const o=Co(Fo,t.__scopeDialog),r=e.useRef(null),a=Lt(n,o.contentRef,r);return e.useEffect(()=>{const e=r.current;if(e)return bo(e)},[]),g(Wo,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Wt(t.onFocusOutside,e=>e.preventDefault())})}),Lo=e.forwardRef((t,n)=>{const o=Co(Fo,t.__scopeDialog),r=e.useRef(!1),a=e.useRef(!1);return g(Wo,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||o.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target,i=o.triggerRef.current?.contains(n);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),Wo=e.forwardRef((t,n)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=t,l=Co(Fo,o),c=e.useRef(null),d=Lt(n,c);return kn(),y(b,{children:[g(un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:g(rn,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vo(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),y(b,{children:[g(Xo,{titleId:l.titleId}),g(Qo,{contentRef:c,descriptionId:l.descriptionId})]})]})}),$o="DialogTitle",Bo=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co($o,n);return g(Xt.h2,{id:r.titleId,...o,ref:t})});Bo.displayName=$o;var Yo="DialogDescription",qo=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Yo,n);return g(Xt.p,{id:r.descriptionId,...o,ref:t})});qo.displayName=Yo;var Ho="DialogClose",Uo=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Ho,n);return g(Xt.button,{type:"button",...o,ref:t,onClick:Wt(e.onClick,()=>r.onOpenChange(!1))})});function Vo(e){return e?"open":"closed"}Uo.displayName=Ho;var Ko="DialogTitleWarning",[Go,Zo]=function(t,n){const o=e.createContext(n),r=t=>{const{children:n,...r}=t,a=e.useMemo(()=>r,Object.values(r));return g(o.Provider,{value:a,children:n})};return r.displayName=t+"Provider",[r,function(r){const a=e.useContext(o);if(a)return a;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]}(Ko,{contentName:Fo,titleName:$o,docsSlug:"dialog"}),Xo=({titleId:t})=>{const n=Zo(Ko),o=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)||console.error(o)}},[o,t]),null},Qo=({contentRef:t,descriptionId:n})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zo("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");if(n&&e){document.getElementById(n)||console.warn(o)}},[o,t,n]),null},Jo=_o,er=So,tr=To,nr=Po,or=zo,rr=Bo,ar=qo,ir=Uo,sr="AlertDialog",[lr]=It(sr,[ko]),cr=ko(),dr=e=>{const{__scopeAlertDialog:t,...n}=e,o=cr(t);return g(Jo,{...o,...n,modal:!0})};dr.displayName=sr;var ur=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(er,{...r,...o,ref:t})});ur.displayName="AlertDialogTrigger";var pr=e=>{const{__scopeAlertDialog:t,...n}=e,o=cr(t);return g(tr,{...o,...n})};pr.displayName="AlertDialogPortal";var fr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(nr,{...r,...o,ref:t})});fr.displayName="AlertDialogOverlay";var mr="AlertDialogContent",[hr,vr]=lr(mr),gr=function(e){const t=({children:e})=>g(b,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Gt,t}("AlertDialogContent"),yr=e.forwardRef((t,n)=>{const{__scopeAlertDialog:o,children:r,...a}=t,i=cr(o),s=e.useRef(null),l=Lt(n,s),c=e.useRef(null);return g(Go,{contentName:mr,titleName:br,docsSlug:"alert-dialog",children:g(hr,{scope:o,cancelRef:c,children:y(or,{role:"alertdialog",...i,...a,ref:l,onOpenAutoFocus:Wt(a.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[g(gr,{children:r}),g(Dr,{contentRef:s})]})})})});yr.displayName=mr;var br="AlertDialogTitle",xr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(rr,{...r,...o,ref:t})});xr.displayName=br;var wr="AlertDialogDescription",kr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(ar,{...r,...o,ref:t})});kr.displayName=wr;var Nr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(ir,{...r,...o,ref:t})});Nr.displayName="AlertDialogAction";var Cr="AlertDialogCancel",_r=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=vr(Cr,n),a=cr(n),i=Lt(t,r);return g(ir,{...a,...o,ref:i})});_r.displayName=Cr;var Dr=({contentRef:t})=>{const n=`\`${mr}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${mr}\` by passing a \`${wr}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${mr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},Sr=dr,Er=ur,Mr=pr,Or=fr,Tr=yr,Rr=Nr,Pr=_r,Ar=xr,Ir=kr,Fr=Symbol.for("react.lazy"),zr=e[" use ".trim().toString()];function jr(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Fr&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Lr(t){const n=$r(t),o=e.forwardRef((t,o)=>{let{children:r,...a}=t;jr(r)&&"function"==typeof zr&&(r=zr(r._payload));const i=e.Children.toArray(r),s=i.find(Yr);if(s){const t=s.props.children,r=i.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return g(n,{...a,ref:o,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return g(n,{...a,ref:o,children:r})});return o.displayName=`${t}.Slot`,o}var Wr=Lr("Slot");function $r(t){const n=e.forwardRef((t,n)=>{let{children:o,...r}=t;if(jr(o)&&"function"==typeof zr&&(o=zr(o._payload)),e.isValidElement(o)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...e)=>{const t=a(...e);return r(...e),t}:r&&(n[o]=r):"style"===o?n[o]={...r,...a}:"className"===o&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}(r,o.props);return o.type!==e.Fragment&&(a.ref=n?jt(n,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Br=Symbol("radix.slottable");function Yr(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Br}const qr=E("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive hover:cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-11 rounded-md px-6 has-[>svg]:px-4",icon:"size-10","icon-sm":"size-8","icon-lg":"size-11"}},defaultVariants:{variant:"default",size:"default"}}),Hr=e=>"number"==typeof e?`${e}px`:e,Ur=e.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,icon:r,label:a,iconPosition:i="end",height:s,width:l,style:c,children:d,...u},p)=>{const f=null!=r||null!=a;return g(o?Wr:"button",{ref:p,"data-slot":"button",className:Ye(qr({variant:t,size:n}),e),style:{...c,...null!=s?{height:Hr(s)}:{},...null!=l?{width:Hr(l)}:{}},...u,children:f?y(b,{children:["start"===i&&r,null!=a&&g("span",{"data-slot":"button-label",children:a}),"end"===i&&r]}):d})});function Vr({...e}){return g(Sr,{"data-slot":"alert-dialog",...e})}function Kr({...e}){return g(Er,{"data-slot":"alert-dialog-trigger",...e})}function Gr({...e}){return g(Mr,{"data-slot":"alert-dialog-portal",...e})}function Zr({className:e,...t}){return g(Or,{"data-slot":"alert-dialog-overlay",className:Ye("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Xr({className:e,...t}){return y(Gr,{children:[g(Zr,{}),g(Tr,{"data-slot":"alert-dialog-content",className:Ye("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function Qr({className:e,...t}){return g("div",{"data-slot":"alert-dialog-header",className:Ye("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Jr({className:e,...t}){return g("div",{"data-slot":"alert-dialog-footer",className:Ye("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ea({className:e,...t}){return g(Ar,{"data-slot":"alert-dialog-title",className:Ye("text-lg font-semibold",e),...t})}function ta({className:e,...t}){return g(Ir,{"data-slot":"alert-dialog-description",className:Ye("text-muted-foreground text-sm",e),...t})}function na({className:e,...t}){return g(Rr,{className:Ye(qr(),e),...t})}function oa({className:e,...t}){return g(Pr,{className:Ye(qr({variant:"outline"}),e),...t})}Ur.displayName="Button";const ra={Root:function({open:e,onOpenChange:t,children:n}){return g(Vr,{open:e,onOpenChange:t,children:n})},Content:function({children:e,className:t}){return g(Xr,{className:Ye("bg-white",t),children:e})},Header:function({children:e}){return g(Qr,{children:e})},Title:function({children:e}){return g(ea,{children:e})},Description:function({children:e}){return g(ta,{children:e})},Footer:function({children:e}){return g(Jr,{children:e})},Action:function({children:e,onClick:t,variant:n="default",className:o=""}){return g(na,{onClick:t,className:Ye("bg-[#026CB6] text-[#FFFFFF]",`${"destructive"===n?"bg-destructive text-destructive-foreground hover:bg-destructive/90":""} ${o}`.trim()),children:e})},Cancel:function({children:e,onClick:t,className:n}){return g(oa,{onClick:t,className:Ye("bg-[#D1D5DB] text-[#3F3F46]",n),children:e})}},aa=6048e5,ia=Symbol.for("constructDateFrom");function sa(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ia in e?e[ia](t):e instanceof Date?new e.constructor(t):new Date(t)}function la(e,t){return sa(t||e,e)}function ca(e,t,n){const o=la(e,n?.in);return isNaN(t)?sa(e,NaN):t?(o.setDate(o.getDate()+t),o):o}function da(e,t,n){const o=la(e,n?.in);if(isNaN(t))return sa(e,NaN);if(!t)return o;const r=o.getDate(),a=sa(e,o.getTime());a.setMonth(o.getMonth()+t+1,0);return r>=a.getDate()?a:(o.setFullYear(a.getFullYear(),a.getMonth(),r),o)}let ua={};function pa(){return ua}function fa(e,t){const n=pa(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=la(e,t?.in),a=r.getDay(),i=(a<o?7:0)+a-o;return r.setDate(r.getDate()-i),r.setHours(0,0,0,0),r}function ma(e,t){return fa(e,{...t,weekStartsOn:1})}function ha(e,t){const n=la(e,t?.in),o=n.getFullYear(),r=sa(n,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const a=ma(r),i=sa(n,0);i.setFullYear(o,0,4),i.setHours(0,0,0,0);const s=ma(i);return n.getTime()>=a.getTime()?o+1:n.getTime()>=s.getTime()?o:o-1}function va(e){const t=la(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ga(e,...t){const n=sa.bind(null,t.find(e=>"object"==typeof e));return t.map(n)}function ya(e,t){const n=la(e,t?.in);return n.setHours(0,0,0,0),n}function ba(e,t,n){const[o,r]=ga(0,e,t),a=ya(o),i=ya(r),s=+a-va(a),l=+i-va(i);return Math.round((s-l)/864e5)}function xa(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function wa(e,t,n){const[o,r]=ga(0,e,t);return 12*(o.getFullYear()-r.getFullYear())+(o.getMonth()-r.getMonth())}function ka(e,t){const n=la(e,t?.in);return n.setHours(23,59,59,999),n}function Na(e,t){const[n,o]=ga(0,t.start,t.end);return{start:n,end:o}}function Ca(e,t){const n=la(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _a(e,t){const n=pa(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=la(e,t?.in),a=r.getDay(),i=6+(a<o?-7:0)-(a-o);return r.setDate(r.getDate()+i),r.setHours(23,59,59,999),r}const Da={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Sa(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ea={date:Sa({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Sa({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Sa({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ma={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Oa(e){return(t,n)=>{let o;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;o=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;o=e.values[r]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const Ta={ordinalNumber:(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Oa({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Oa({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Oa({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Oa({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Oa({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ra(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const i=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Pa={ordinalNumber:(Aa={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Aa.matchPattern);if(!n)return null;const o=n[0],r=e.match(Aa.parsePattern);if(!r)return null;let a=Aa.valueCallback?Aa.valueCallback(r[0]):r[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(o.length)}}),era:Ra({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ra({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ra({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ra({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ra({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Aa;const Ia={code:"en-US",formatDistance:(e,t,n)=>{let o;const r=Da[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:Ea,formatRelative:(e,t,n,o)=>Ma[e],localize:Ta,match:Pa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fa(e,t){const n=la(e,t?.in),o=+ma(n)-+function(e,t){const n=ha(e,t),o=sa(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),ma(o)}(n);return Math.round(o/aa)+1}function za(e,t){const n=la(e,t?.in),o=n.getFullYear(),r=pa(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=sa(t?.in||e,0);i.setFullYear(o+1,0,a),i.setHours(0,0,0,0);const s=fa(i,t),l=sa(t?.in||e,0);l.setFullYear(o,0,a),l.setHours(0,0,0,0);const c=fa(l,t);return+n>=+s?o+1:+n>=+c?o:o-1}function ja(e,t){const n=la(e,t?.in),o=+fa(n,t)-+function(e,t){const n=pa(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=za(e,t),a=sa(t?.in||e,0);return a.setFullYear(r,0,o),a.setHours(0,0,0,0),fa(a,t)}(n,t);return Math.round(o/aa)+1}function La(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Wa={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return La("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):La(n+1,2)},d:(e,t)=>La(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>La(e.getHours()%12||12,t.length),H:(e,t)=>La(e.getHours(),t.length),m:(e,t)=>La(e.getMinutes(),t.length),s:(e,t)=>La(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds();return La(Math.trunc(o*Math.pow(10,n-3)),t.length)}},$a="midnight",Ba="noon",Ya="morning",qa="afternoon",Ha="evening",Ua="night",Va={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return n.ordinalNumber(o,{unit:"year"})}return Wa.y(e,t)},Y:function(e,t,n,o){const r=za(e,o),a=r>0?r:1-r;if("YY"===t){return La(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):La(a,t.length)},R:function(e,t){return La(ha(e),t.length)},u:function(e,t){return La(e.getFullYear(),t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return La(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return La(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return Wa.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return La(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const r=ja(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):La(r,t.length)},I:function(e,t,n){const o=Fa(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):La(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Wa.d(e,t)},D:function(e,t,n){const o=function(e,t){const n=la(e,t?.in);return ba(n,Ca(n))+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):La(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const r=e.getDay(),a=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return La(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const r=e.getDay(),a=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return La(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return La(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let r;switch(r=12===o?Ba:0===o?$a:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let r;switch(r=o>=17?Ha:o>=12?qa:o>=4?Ya:Ua,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Wa.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Wa.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):La(o,t.length)},k:function(e,t,n){let o=e.getHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):La(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wa.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Wa.s(e,t)},S:function(e,t){return Wa.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Ga(o);case"XXXX":case"XX":return Za(o);default:return Za(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return Ga(o);case"xxxx":case"xx":return Za(o);default:return Za(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ka(o,":");default:return"GMT"+Za(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ka(o,":");default:return"GMT"+Za(o,":")}},t:function(e,t,n){return La(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return La(+e,t.length)}};function Ka(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),a=o%60;return 0===a?n+String(r):n+String(r)+t+La(a,2)}function Ga(e,t){if(e%60==0){return(e>0?"-":"+")+La(Math.abs(e)/60,2)}return Za(e,t)}function Za(e,t=""){const n=e>0?"-":"+",o=Math.abs(e);return n+La(Math.trunc(o/60),2)+t+La(o%60,2)}const Xa=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Qa=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ja={p:Qa,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return Xa(e,t);let a;switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Xa(o,t)).replace("{{time}}",Qa(r,t))}},ei=/^D+$/,ti=/^Y+$/,ni=["D","DD","YY","YYYY"];const oi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ri=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ai=/^'([^]*?)'?$/,ii=/''/g,si=/[a-zA-Z]/;function li(e,t,n){const o=pa(),r=n?.locale??o.locale??Ia,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=la(e,n?.in);if(!function(e){return!(!xa(e)&&"number"!=typeof e||isNaN(+la(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(ri).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ja[t])(e,r.formatLong)}return e}).join("").match(oi).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ci(e)};if(Va[t])return{isToken:!0,value:e};if(t.match(si))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:r};return l.map(o=>{if(!o.isToken)return o.value;const a=o.value;(!n?.useAdditionalWeekYearTokens&&function(e){return ti.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return ei.test(e)}(a))&&function(e,t,n){const o=function(e,t,n){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(o),ni.includes(e))throw new RangeError(o)}(a,t,String(e));return(0,Va[a[0]])(s,a,r.localize,c)}).join("")}function ci(e){const t=e.match(ai);return t?t[1].replace(ii,"'"):e}function di(e,t,n){const o=la(e,n?.in),r=o.getFullYear(),a=o.getDate(),i=sa(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=function(e,t){const n=la(e,t?.in),o=n.getFullYear(),r=n.getMonth(),a=sa(n,0);return a.setFullYear(o,r+1,0),a.setHours(0,0,0,0),a.getDate()}(i);return o.setMonth(t,Math.min(a,s)),o}const ui={},pi={};function fi(e,t){try{const n=(ui[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in pi?pi[n]:hi(n,n.split(":"))}catch{if(e in pi)return pi[e];const t=e?.match(mi);return t?hi(e,t.slice(1)):NaN}}const mi=/([+-]\d\d):?(\d\d)?/;function hi(e,t){const n=+(t[0]||0),o=+(t[1]||0),r=+(t[2]||0)/60;return pi[e]=60*n+o>0?60*n+o+r:60*n-o-r}class vi extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(fi(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),bi(this),yi(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new vi(...t,e):new vi(Date.now(),e)}withTimeZone(e){return new vi(+this,e)}getTimezoneOffset(){const e=-fi(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),yi(this),+this}[Symbol.for("constructDateFrom")](e){return new vi(+new Date(e),this.timeZone)}}const gi=/^(get|set)(?!UTC)/;function yi(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-fi(e.timeZone,e)))}function bi(e){const t=fi(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),a=r- -new Date(+o).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=r-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const l=new Date(+e);l.setUTCSeconds(0);const c=r>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-60*fi(e.timeZone,e))%60;(d||c)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+c));const u=fi(e.timeZone,e),p=u>0?Math.floor(u):Math.ceil(u),f=-new Date(+e).getTimezoneOffset()-p-s;if(p!==n&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);const t=fi(e.timeZone,e),n=p-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!gi.test(e))return;const t=e.replace(gi,"$1UTC");vi.prototype[t]&&(e.startsWith("get")?vi.prototype[e]=function(){return this.internal[t]()}:(vi.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bi(e),+this},vi.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),yi(this),+this}))});class xi extends vi{static tz(e,...t){return t.length?new xi(...t,e):new xi(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),o=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,o]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${o}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,o]=this.tzComponents();return`${e} GMT${t}${n}${o} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new xi(+this,e)}[Symbol.for("constructDateFrom")](e){return new xi(+new Date(e),this.timeZone)}}function wi(e,t){const n=t.startOfMonth(e),o=n.getDay();return 1===o?n:0===o?t.addDays(n,-6):t.addDays(n,-1*(o-1))}const ki={...Ia,labels:{labelDayButton:(e,t,n,o)=>{let r;r=o&&"function"==typeof o.format?o.format.bind(o):(e,t)=>li(e,t,{locale:Ia,...n});let a=r(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let o;return o=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>li(e,n,{locale:Ia,...t}),o(e,"LLLL yyyy")},labelGridcell:(e,t,n,o)=>{let r;r=o&&"function"==typeof o.format?o.format.bind(o):(e,t)=>li(e,t,{locale:Ia,...n});let a=r(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let o;return o=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>li(e,n,{locale:Ia,...t}),o(e,"cccc")}}};class Ni{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?xi.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new xi(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):ca(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):da(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return ca(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return da(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):ba(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):wa(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e){const{start:t,end:n}=Na(0,e);let o=+t>+n;const r=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0),a.setDate(1);const i=[];for(;+a<=r;)i.push(sa(t,a)),a.setMonth(a.getMonth()+1);return o?i.reverse():i}(e),this.eachYearOfInterval=e=>{const t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):function(e){const{start:t,end:n}=Na(0,e);let o=+t>+n;const r=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0),a.setMonth(0,1);const i=[];for(;+a<=r;)i.push(sa(t,a)),a.setFullYear(a.getFullYear()+1);return o?i.reverse():i}(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;const o=[];return n.forEach(e=>{o.push(new Date(e,0,1))}),o},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){const n=wi(e,t),o=function(e,t){const n=t.startOfMonth(e),o=n.getDay()>0?n.getDay():7,r=t.addDays(e,1-o),a=t.addDays(r,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*o-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return _a(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){const n=la(e,t?.in),o=n.getMonth();return n.setFullYear(n.getFullYear(),o+1,0),n.setHours(23,59,59,999),n}(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):_a(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=la(e,t?.in),o=n.getFullYear();return n.setFullYear(o+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{const o=this.overrides?.format?this.overrides.format(e,t,this.options):li(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(o):o},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):Fa(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return la(e,t?.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return la(e,t?.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):ja(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):function(e,t){return+la(e)>+la(t)}(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):function(e,t){return+la(e)<+la(t)}(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):xa(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t){const[n,o]=ga(0,e,t);return+ya(n)===+ya(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t){const[n,o]=ga(0,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t){const[n,o]=ga(0,e,t);return n.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,o=t?.in;return e.forEach(e=>{o||"object"!=typeof e||(o=sa.bind(null,e));const t=la(e,o);(!n||n<t||isNaN(+t))&&(n=t)}),sa(o,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,o=t?.in;return e.forEach(e=>{o||"object"!=typeof e||(o=sa.bind(null,e));const t=la(e,o);(!n||n>t||isNaN(+t))&&(n=t)}),sa(o,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):di(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const o=la(e,n?.in);return isNaN(+o)?sa(e,NaN):(o.setFullYear(t),o)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):wi(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):ya(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):ma(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){const n=la(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):fa(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Ca(e),this.options={locale:ki,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&Ni.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:t,timeZone:n,numerals:o}=this.options,r=t?.code;if(r&&Ni.yearFirstLocales.has(r))try{const t=new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:n,numberingSystem:o});return t.format(e)}catch{}const a="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(e,a)}}Ni.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Ci=new Ni;class _i{constructor(e,t,n=Ci){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,"yyyy-MM-dd"),this.displayMonthId=n.format(t,"yyyy-MM"),this.dateMonthId=n.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class Di{constructor(e,t){this.date=e,this.weeks=t}}class Si{constructor(e,t){this.days=t,this.weekNumber=e}}var Ei,Mi,Oi,Ti;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(Ei||(Ei={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(Mi||(Mi={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(Oi||(Oi={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(Ti||(Ti={}));const Ri=a(void 0);function Pi(){const e=i(Ri);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var Ai=Object.freeze({__proto__:null,Button:function(e){return t.createElement("button",{...e})},CaptionLabel:function(e){return t.createElement("span",{...e})},Chevron:function(e){const{size:n=24,orientation:o="left",className:r}=e;return t.createElement("svg",{className:r,width:n,height:n,viewBox:"0 0 24 24"},"up"===o&&t.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===o&&t.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===o&&t.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===o&&t.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))},Day:function(e){const{day:n,modifiers:o,...r}=e;return t.createElement("td",{...r})},DayButton:function(e){const{day:n,modifiers:o,...r}=e,a=t.useRef(null);return t.useEffect(()=>{o.focused&&a.current?.focus()},[o.focused]),t.createElement("button",{ref:a,...r})},Dropdown:function(e){const{options:n,className:o,components:r,classNames:a,...i}=e,s=[a[Ei.Dropdown],o].join(" "),l=n?.find(({value:e})=>e===i.value);return t.createElement("span",{"data-disabled":i.disabled,className:a[Ei.DropdownRoot]},t.createElement(r.Select,{className:s,...i},n?.map(({value:e,label:n,disabled:o})=>t.createElement(r.Option,{key:e,value:e,disabled:o},n))),t.createElement("span",{className:a[Ei.CaptionLabel],"aria-hidden":!0},l?.label,t.createElement(r.Chevron,{orientation:"down",size:18,className:a[Ei.Chevron]})))},DropdownNav:function(e){return t.createElement("div",{...e})},Footer:function(e){return t.createElement("div",{...e})},Month:function(e){const{calendarMonth:n,displayIndex:o,...r}=e;return t.createElement("div",{...r},e.children)},MonthCaption:function(e){const{calendarMonth:n,displayIndex:o,...r}=e;return t.createElement("div",{...r})},MonthGrid:function(e){return t.createElement("table",{...e})},Months:function(e){return t.createElement("div",{...e})},MonthsDropdown:function(e){const{components:n}=Pi();return t.createElement(n.Dropdown,{...e})},Nav:function(e){const{onPreviousClick:n,onNextClick:o,previousMonth:r,nextMonth:a,...i}=e,{components:l,classNames:c,labels:{labelPrevious:d,labelNext:u}}=Pi(),p=s(e=>{a&&o?.(e)},[a,o]),f=s(e=>{r&&n?.(e)},[r,n]);return t.createElement("nav",{...i},t.createElement(l.PreviousMonthButton,{type:"button",className:c[Ei.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":d(r),onClick:f},t.createElement(l.Chevron,{disabled:!r||void 0,className:c[Ei.Chevron],orientation:"left"})),t.createElement(l.NextMonthButton,{type:"button",className:c[Ei.NextMonthButton],tabIndex:a?void 0:-1,"aria-disabled":!a||void 0,"aria-label":u(a),onClick:p},t.createElement(l.Chevron,{disabled:!a||void 0,orientation:"right",className:c[Ei.Chevron]})))},NextMonthButton:function(e){const{components:n}=Pi();return t.createElement(n.Button,{...e})},Option:function(e){return t.createElement("option",{...e})},PreviousMonthButton:function(e){const{components:n}=Pi();return t.createElement(n.Button,{...e})},Root:function(e){const{rootRef:n,...o}=e;return t.createElement("div",{...o,ref:n})},Select:function(e){return t.createElement("select",{...e})},Week:function(e){const{week:n,...o}=e;return t.createElement("tr",{...o})},WeekNumber:function(e){const{week:n,...o}=e;return t.createElement("th",{...o})},WeekNumberHeader:function(e){return t.createElement("th",{...e})},Weekday:function(e){return t.createElement("th",{...e})},Weekdays:function(e){return t.createElement("thead",{"aria-hidden":!0},t.createElement("tr",{...e}))},Weeks:function(e){return t.createElement("tbody",{...e})},YearsDropdown:function(e){const{components:n}=Pi();return t.createElement(n.Dropdown,{...e})}});function Ii(e,t,n=!1,o=Ci){let{from:r,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=o;if(r&&a){i(a,r)<0&&([r,a]=[a,r]);return i(t,r)>=(n?1:0)&&i(a,t)>=(n?1:0)}return!n&&a?s(a,t):!(n||!r)&&s(r,t)}function Fi(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function zi(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function ji(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function Li(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function Wi(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function $i(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Bi(e,t,n=Ci){const o=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:a,isAfter:i}=n;return o.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return r(e,t);if($i(t,n))return t.some(t=>r(e,t));if(zi(t))return Ii(t,e,!1,n);if(Wi(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Fi(t)){const n=a(t.before,e)>0,o=a(t.after,e)<0;return i(t.before,t.after)?o&&n:n||o}return ji(t)?a(e,t.after)>0:Li(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function Yi(e){return{...Ai,...e}}function qi(){const e={};for(const t in Ei)e[Ei[t]]=`rdp-${Ei[t]}`;for(const t in Mi)e[Mi[t]]=`rdp-${Mi[t]}`;for(const t in Oi)e[Oi[t]]=`rdp-${Oi[t]}`;for(const t in Ti)e[Ti[t]]=`rdp-${Ti[t]}`;return e}function Hi(e,t,n){return(n??new Ni(t)).formatMonthYear(e)}const Ui=Hi;function Vi(e,t=Ci){return t.format(e,"yyyy")}const Ki=Vi;var Gi=Object.freeze({__proto__:null,formatCaption:Hi,formatDay:function(e,t,n){return(n??new Ni(t)).format(e,"d")},formatMonthCaption:Ui,formatMonthDropdown:function(e,t=Ci){return t.format(e,"LLLL")},formatWeekNumber:function(e,t=Ci){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)},formatWeekNumberHeader:function(){return""},formatWeekdayName:function(e,t,n){return(n??new Ni(t)).format(e,"cccccc")},formatYearCaption:Ki,formatYearDropdown:Vi});function Zi(e,t,n,o){let r=(o??new Ni(n)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}const Xi=Zi;function Qi(e,t,n){return(n??new Ni(t)).formatMonthYear(e)}const Ji=Qi;function es(e,t,n,o){let r=(o??new Ni(n)).format(e,"PPPP");return t?.today&&(r=`Today, ${r}`),r}function ts(e){return"Choose the Month"}function ns(){return""}function os(e,t){return"Go to the Next Month"}function rs(e){return"Go to the Previous Month"}function as(e,t,n){return(n??new Ni(t)).format(e,"cccc")}function is(e,t){return`Week ${e}`}function ss(e){return"Week Number"}function ls(e){return"Choose the Year"}var cs=Object.freeze({__proto__:null,labelCaption:Ji,labelDay:Xi,labelDayButton:Zi,labelGrid:Qi,labelGridcell:es,labelMonthDropdown:ts,labelNav:ns,labelNext:os,labelPrevious:rs,labelWeekNumber:is,labelWeekNumberHeader:ss,labelWeekday:as,labelYearDropdown:ls});const ds=(e,t,n)=>t||(n?"function"==typeof n?n:(...e)=>n:e);function us(e,t){const n=t.locale?.labels??{};return{...cs,...e??{},labelDayButton:ds(Zi,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:ds(ts,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:ds(os,e?.labelNext,n.labelNext),labelPrevious:ds(rs,e?.labelPrevious,n.labelPrevious),labelWeekNumber:ds(is,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:ds(ls,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:ds(Qi,e?.labelGrid,n.labelGrid),labelGridcell:ds(es,e?.labelGridcell,n.labelGridcell),labelNav:ds(ns,e?.labelNav,n.labelNav),labelWeekNumberHeader:ds(ss,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:ds(as,e?.labelWeekday,n.labelWeekday)}}function ps(e,t,n,o,r){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=r;return l({start:i(e),end:s(e)}).map(e=>{const i=o.formatMonthDropdown(e,r);return{value:c(e),label:i,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function fs(e,t,n,o,r=!1){if(!e)return;if(!t)return;const{startOfYear:a,endOfYear:i,eachYearOfInterval:s,getYear:l}=o,c=s({start:a(e),end:i(t)});return r&&c.reverse(),c.map(e=>{const t=n.formatYearDropdown(e,o);return{value:l(e),label:t,disabled:!1}})}const ms=e=>e instanceof HTMLElement?e:null,hs=e=>[...e.querySelectorAll("[data-animated-month]")??[]],vs=e=>ms(e.querySelector("[data-animated-caption]")),gs=e=>ms(e.querySelector("[data-animated-weeks]"));function ys(e,t,{classNames:n,months:o,focused:r,dateLib:a}){const i=l(null),s=l(o),d=l(!1);c(()=>{const l=s.current;if(s.current=o,!(t&&e.current&&e.current instanceof HTMLElement&&0!==o.length&&0!==l.length&&o.length===l.length))return;const c=a.isSameMonth(o[0].date,l[0].date),u=a.isAfter(o[0].date,l[0].date),p=u?n[Ti.caption_after_enter]:n[Ti.caption_before_enter],f=u?n[Ti.weeks_after_enter]:n[Ti.weeks_before_enter],m=i.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement){hs(h).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=ms(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=vs(e);n&&n.classList.remove(p);const o=gs(e);o&&o.classList.remove(f)}),i.current=h}else i.current=null;if(d.current||c||r)return;const v=m instanceof HTMLElement?hs(m):[],g=hs(e.current);if(g?.every(e=>e instanceof HTMLElement)&&v&&v.every(e=>e instanceof HTMLElement)){d.current=!0,e.current.style.isolation="isolate";const t=(y=e.current,ms(y.querySelector("[data-animated-nav]")));t&&(t.style.zIndex="1"),g.forEach((o,r)=>{const a=v[r];if(!a)return;o.style.position="relative",o.style.overflow="hidden";const i=vs(o);i&&i.classList.add(p);const s=gs(o);s&&s.classList.add(f);const l=()=>{d.current=!1,e.current&&(e.current.style.isolation=""),t&&(t.style.zIndex=""),i&&i.classList.remove(p),s&&s.classList.remove(f),o.style.position="",o.style.overflow="",o.contains(a)&&o.removeChild(a)};a.style.pointerEvents="none",a.style.position="absolute",a.style.overflow="hidden",a.setAttribute("aria-hidden","true");const c=(e=>ms(e.querySelector("[data-animated-weekdays]")))(a);c&&(c.style.opacity="0");const m=vs(a);m&&(m.classList.add(u?n[Ti.caption_before_exit]:n[Ti.caption_after_exit]),m.addEventListener("animationend",l));const h=gs(a);h&&h.classList.add(u?n[Ti.weeks_before_exit]:n[Ti.weeks_after_exit]),o.insertBefore(a,o.firstChild)})}var y})}function bs(e,t,n,o){const{month:r,defaultMonth:a,today:i=o.today(),numberOfMonths:s=1}=e;let l=r||a||i;const{differenceInCalendarMonths:c,addMonths:d,startOfMonth:u}=o;if(n&&c(n,l)<s-1){l=d(n,-1*(s-1))}return t&&c(l,t)<0&&(l=t),u(l)}function xs(e,t){const[n,o]=r(e);return[void 0===t?n:t,o]}function ws(e,t){const[n,o]=function(e,t){let{startMonth:n,endMonth:o}=e;const{startOfYear:r,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:l,endOfYear:c,newDate:d,today:u}=t,{fromYear:p,toYear:f,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&p&&(n=t.newDate(p,0,1)),!o&&h&&(o=h),!o&&f&&(o=d(f,11,31));const v="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=i(n):p?n=d(p,0,1):!n&&v&&(n=r(l(e.today??u(),-100))),o?o=s(o):f?o=d(f,11,31):!o&&v&&(o=c(e.today??u())),[n?a(n):n,o?a(o):o]}(e,t),{startOfMonth:r,endOfMonth:a}=t,i=bs(e,n,o,t),[s,l]=xs(i,e.month?i:void 0);d(()=>{const r=bs(e,n,o,t);l(r)},[e.timeZone]);const{months:c,weeks:p,days:f,previousMonth:m,nextMonth:h}=u(()=>{const r=function(e,t,n,o){const{numberOfMonths:r=1}=n,a=[];for(let n=0;n<r;n++){const r=o.addMonths(e,n);if(t&&r>t)break;a.push(r)}return a}(s,o,{numberOfMonths:e.numberOfMonths},t),i=function(e,t,n,o){const r=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:d,differenceInCalendarMonths:u,endOfBroadcastWeek:p,endOfISOWeek:f,endOfMonth:m,endOfWeek:h,isAfter:v,startOfBroadcastWeek:g,startOfISOWeek:y,startOfWeek:b}=o,x=l?g(r,o):i?y(r):b(r),w=l?p(a):i?f(m(a)):h(m(a)),k=t&&(l?p(t):i?f(t):h(t)),N=d(k&&v(w,k)?k:w,x),C=u(a,r)+1,_=[];for(let e=0;e<=N;e++){const t=c(x,e);_.push(t)}const D=(l?35:42)*C;if(s&&_.length<D){const e=D-_.length;for(let t=0;t<e;t++){const e=c(_[_.length-1],1);_.push(e)}}return _}(r,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),l=function(e,t,n,o){const{addDays:r,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:d,startOfBroadcastWeek:u,startOfISOWeek:p,startOfWeek:f}=o,m=e.reduce((e,m)=>{const h=n.broadcastCalendar?u(m,o):n.ISOWeek?p(m):f(m),v=n.broadcastCalendar?a(m):n.ISOWeek?i(s(m)):l(s(m)),g=t.filter(e=>e>=h&&e<=v),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&g.length<y){const e=t.filter(e=>{const t=y-g.length;return e>v&&e<=r(v,t)});g.push(...e)}const b=g.reduce((e,t)=>{const r=n.ISOWeek?c(t):d(t),a=e.find(e=>e.weekNumber===r),i=new _i(t,m,o);return a?a.days.push(i):e.push(new Si(r,[i])),e},[]),x=new Di(m,b);return e.push(x),e},[]);return n.reverseMonths?m.reverse():m}(r,i,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),c=function(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}(l),d=function(e){const t=[];return e.reduce((e,n)=>{const o=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(o.slice())},t.slice())}(l),u=function(e,t,n,o){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=o,c=r?a??1:1,d=i(e);return t&&l(d,t)<=0?void 0:s(d,-c)}(s,n,e,t),p=function(e,t,n,o){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=o,c=r?a:1,d=i(e);return t&&l(t,e)<a?void 0:s(d,c)}(s,o,e,t);return{months:l,weeks:c,days:d,previousMonth:u,nextMonth:p}},[t,s.getTime(),o?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:v,onMonthChange:g}=e,y=e=>{if(v)return;let t=r(e);n&&t<r(n)&&(t=r(n)),o&&t>r(o)&&(t=r(o)),l(t),g?.(t)};return{months:c,weeks:p,days:f,navStart:n,navEnd:o,previousMonth:m,nextMonth:h,goToMonth:y,goToDay:e=>{(e=>p.some(t=>t.days.some(t=>t.isEqualTo(e))))(e)||y(e.date)}}}var ks;function Ns(e){return!e[Mi.disabled]&&!e[Mi.hidden]&&!e[Mi.outside]}function Cs(e,t,n,o,r,a,i,s=0){if(s>365)return;const l=function(e,t,n,o,r,a,i){const{ISOWeek:s,broadcastCalendar:l}=a,{addDays:c,addMonths:d,addWeeks:u,addYears:p,endOfBroadcastWeek:f,endOfISOWeek:m,endOfWeek:h,max:v,min:g,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:x}=i;let w={day:c,week:u,month:d,year:p,startOfWeek:e=>l?y(e,i):s?b(e):x(e),endOfWeek:e=>l?f(e):s?m(e):h(e)}[e](n,"after"===t?1:-1);return"before"===t&&o?w=v([o,w]):"after"===t&&r&&(w=g([r,w])),w}(e,t,n.date,o,r,a,i),c=Boolean(a.disabled&&Bi(l,a.disabled,i)),d=Boolean(a.hidden&&Bi(l,a.hidden,i)),u=new _i(l,l,i);return c||d?Cs(e,t,u,o,r,a,i,s+1):u}function _s(e,t,n,o,a){const{autoFocus:i}=e,[s,l]=r(),c=function(e,t,n,o){let r,a=-1;for(const i of e){const e=t(i);Ns(e)&&(e[Mi.focused]&&a<ks.FocusedModifier?(r=i,a=ks.FocusedModifier):o?.isEqualTo(i)&&a<ks.LastFocused?(r=i,a=ks.LastFocused):n(i.date)&&a<ks.Selected?(r=i,a=ks.Selected):e[Mi.today]&&a<ks.Today&&(r=i,a=ks.Today))}return r||(r=e.find(e=>Ns(t(e)))),r}(t.days,n,o||(()=>!1),s),[d,u]=r(i?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:u,focused:d,blur:()=>{l(d),u(void 0)},moveFocus:(n,o)=>{if(!d)return;const r=Cs(n,o,d,t.navStart,t.navEnd,e,a);if(r){if(e.disableNavigation){if(!t.days.some(e=>e.isEqualTo(r)))return}t.goToDay(r),u(r)}}}}function Ds(e,t,n=Ci){return Ii(e,t.from,!1,n)||Ii(e,t.to,!1,n)||Ii(t,e.from,!1,n)||Ii(t,e.to,!1,n)}function Ss(e,t,n=Ci){const o=Array.isArray(t)?t:[t];if(o.filter(e=>"function"!=typeof e).some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return Ii(e,t,!1,n);if($i(t,n))return t.some(t=>Ii(e,t,!1,n));if(zi(t))return!(!t.from||!t.to)&&Ds(e,{from:t.from,to:t.to},n);if(Wi(t))return function(e,t,n=Ci){const o=Array.isArray(t)?t:[t];let r=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let e=0;e<=i;e++){if(o.includes(r.getDay()))return!0;r=n.addDays(r,1)}return!1}(e,t.dayOfWeek,n);if(Fi(t)){return n.isAfter(t.before,t.after)?Ds(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):Bi(e.from,t,n)||Bi(e.to,t,n)}return!(!ji(t)&&!Li(t))&&(Bi(e.from,t,n)||Bi(e.to,t,n))}))return!0;const r=o.filter(e=>"function"==typeof e);if(r.length){let t=e.from;const o=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=o;e++){if(r.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function Es(e,t){const{disabled:n,excludeDisabled:o,selected:r,required:a,onSelect:i}=e,[s,l]=xs(r,i?r:void 0),c=i?r:s;return{selected:c,select:(r,s,d)=>{const{min:u,max:p}=e,f=r?function(e,t,n=0,o=0,r=!1,a=Ci){const{from:i,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:d}=a;let u;if(i||s){if(i&&!s)u=l(i,e)?0===n?{from:i,to:e}:r?{from:i,to:void 0}:void 0:d(e,i)?{from:e,to:i}:{from:i,to:e};else if(i&&s)if(l(i,e)&&l(s,e))u=r?{from:i,to:s}:void 0;else if(l(i,e))u={from:i,to:n>0?void 0:e};else if(l(s,e))u={from:e,to:n>0?void 0:e};else if(d(e,i))u={from:e,to:s};else if(c(e,i))u={from:i,to:e};else{if(!c(e,s))throw new Error("Invalid range");u={from:i,to:e}}}else u={from:e,to:n>0?void 0:e};if(u?.from&&u?.to){const t=a.differenceInCalendarDays(u.to,u.from);(o>0&&t>o||n>1&&t<n)&&(u={from:e,to:void 0})}return u}(r,c,u,p,a,t):void 0;return o&&n&&f?.from&&f.to&&Ss({from:f.from,to:f.to},n,t)&&(f.from=r,f.to=void 0),i||l(f),i?.(f,r,s,d),f},isSelected:e=>c&&Ii(c,e,!1,t)}}function Ms(e,t){const n=function(e,t){const{selected:n,required:o,onSelect:r}=e,[a,i]=xs(n,r?n:void 0),s=r?n:a,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!o&&s&&s&&l(e,s)&&(a=void 0),r||i(a),r?.(a,e,t,n),a},isSelected:e=>!!s&&l(s,e)}}(e,t),o=function(e,t){const{selected:n,required:o,onSelect:r}=e,[a,i]=xs(n,r?n:void 0),s=r?n:a,{isSameDay:l}=t,c=e=>s?.some(t=>l(t,e))??!1,{min:d,max:u}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(c(e)){if(s?.length===d)return;if(o&&1===s?.length)return;a=s?.filter(t=>!l(t,e))}else a=s?.length===u?[e]:[...a,e];return r||i(a),r?.(a,e,t,n),a},isSelected:c}}(e,t),r=Es(e,t);switch(e.mode){case"single":return n;case"multiple":return o;case"range":return r;default:return}}function Os(e,t){return e instanceof xi&&e.timeZone===t?e:new xi(e,t)}function Ts(e,t,n){return Os(e,t)}function Rs(e,t,n){return"boolean"==typeof e||"function"==typeof e?e:e instanceof Date?Ts(e,t):Array.isArray(e)?e.map(e=>e instanceof Date?Ts(e,t):e):zi(e)?{...e,from:e.from?Os(e.from,t):e.from,to:e.to?Os(e.to,t):e.to}:Fi(e)?{before:Ts(e.before,t),after:Ts(e.after,t)}:ji(e)?{after:Ts(e.after,t)}:Li(e)?{before:Ts(e.before,t)}:e}function Ps(e,t,n){return e?Array.isArray(e)?e.map(e=>Rs(e,t)):Rs(e,t):e}function As(e){let n=e;const o=n.timeZone;if(o&&(n={...e,timeZone:o},n.today&&(n.today=Os(n.today,o)),n.month&&(n.month=Os(n.month,o)),n.defaultMonth&&(n.defaultMonth=Os(n.defaultMonth,o)),n.startMonth&&(n.startMonth=Os(n.startMonth,o)),n.endMonth&&(n.endMonth=Os(n.endMonth,o)),"single"===n.mode&&n.selected?n.selected=Os(n.selected,o):"multiple"===n.mode&&n.selected?n.selected=n.selected?.map(e=>Os(e,o)):"range"===n.mode&&n.selected&&(n.selected={from:n.selected.from?Os(n.selected.from,o):n.selected.from,to:n.selected.to?Os(n.selected.to,o):n.selected.to}),void 0!==n.disabled&&(n.disabled=Ps(n.disabled,o)),void 0!==n.hidden&&(n.hidden=Ps(n.hidden,o)),n.modifiers)){const e={};Object.keys(n.modifiers).forEach(t=>{e[t]=Ps(n.modifiers?.[t],o)}),n.modifiers=e}const{components:r,formatters:a,labels:i,dateLib:c,locale:d,classNames:p}=u(()=>{const e={...ki,...n.locale},t=n.broadcastCalendar?1:n.weekStartsOn,o=n.noonSafe&&n.timeZone?function(e,t={}){const{weekStartsOn:n,locale:o}=t,r=n??o?.options?.weekStartsOn??0,a=t=>{const n="number"==typeof t||"string"==typeof t?new Date(t):t;return new xi(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},i=e=>{const t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(xi.tz(e)),newDate:(t,n,o)=>new xi(t,n,o,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{const n=a(e),o=t?.weekStartsOn??r,i=(n.getDay()-o+7)%7;return n.setDate(n.getDate()-i),n},startOfISOWeek:e=>{const t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{const t=a(e);return t.setDate(1),t},startOfYear:e=>{const t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{const n=a(e),o=(((t?.weekStartsOn??r)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+o),n},endOfISOWeek:e=>{const t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{const t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{const t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{const n=a(t.start),o=a(t.end),r=[],i=new xi(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=12*o.getFullYear()+o.getMonth();for(;12*i.getFullYear()+i.getMonth()<=s;)r.push(new xi(i,e)),i.setMonth(i.getMonth()+1,1);return r},addDays:(e,t)=>{const n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{const n=a(e);return n.setDate(n.getDate()+7*t),n},addMonths:(e,t)=>{const n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{const n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{const n=a(t.start),o=a(t.end),r=[],i=new xi(n.getFullYear(),0,1,12,0,0,e);for(;i.getFullYear()<=o.getFullYear();)r.push(new xi(i,e)),i.setFullYear(i.getFullYear()+1,0,1);return r},getWeek:(e,t)=>ja(i(e),{weekStartsOn:t?.weekStartsOn??r,firstWeekContainsDate:t?.firstWeekContainsDate??o?.options?.firstWeekContainsDate??1}),getISOWeek:e=>Fa(i(e)),differenceInCalendarDays:(e,t)=>ba(i(e),i(t)),differenceInCalendarMonths:(e,t)=>wa(i(e),i(t))}}(n.timeZone,{weekStartsOn:t,locale:e}):void 0,r=n.dateLib&&o?{...o,...n.dateLib}:n.dateLib??o,a=new Ni({locale:e,weekStartsOn:t,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},r);return{dateLib:a,components:Yi(n.components),formatters:(i=n.formatters,i?.formatMonthCaption&&!i.formatCaption&&(i.formatCaption=i.formatMonthCaption),i?.formatYearCaption&&!i.formatYearDropdown&&(i.formatYearDropdown=i.formatYearCaption),{...Gi,...i}),labels:us(n.labels,a.options),locale:e,classNames:{...qi(),...n.classNames}};var i},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.noonSafe,n.components,n.formatters,n.labels,n.classNames]);n.today||(n={...n,today:c.today()});const{captionLayout:f,mode:m,navLayout:h,numberOfMonths:v=1,onDayBlur:g,onDayClick:y,onDayFocus:b,onDayKeyDown:x,onDayMouseEnter:w,onDayMouseLeave:k,onNextClick:N,onPrevClick:C,showWeekNumber:_,styles:D}=n,{formatCaption:S,formatDay:E,formatMonthDropdown:M,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:R,formatYearDropdown:P}=a,A=ws(n,c),{days:I,months:F,navStart:z,navEnd:j,previousMonth:L,nextMonth:W,goToMonth:$}=A,B=function(e,t,n,o,r){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:d=r.today()}=t,{isSameDay:u,isSameMonth:p,startOfMonth:f,isBefore:m,endOfMonth:h,isAfter:v}=r,g=n&&f(n),y=o&&h(o),b={[Mi.focused]:[],[Mi.outside]:[],[Mi.disabled]:[],[Mi.hidden]:[],[Mi.today]:[]},x={};for(const t of e){const{date:e,displayMonth:n}=t,o=Boolean(n&&!p(e,n)),f=Boolean(g&&m(e,g)),h=Boolean(y&&v(e,y)),w=Boolean(a&&Bi(e,a,r)),k=Boolean(i&&Bi(e,i,r))||f||h||!c&&!l&&o||c&&!1===l&&o,N=u(e,d);o&&b.outside.push(t),w&&b.disabled.push(t),k&&b.hidden.push(t),N&&b.today.push(t),s&&Object.keys(s).forEach(n=>{const o=s?.[n];o&&Bi(e,o,r)&&(x[n]?x[n].push(t):x[n]=[t])})}return e=>{const t={[Mi.focused]:!1,[Mi.disabled]:!1,[Mi.hidden]:!1,[Mi.outside]:!1,[Mi.today]:!1},n={};for(const n in b){const o=b[n];t[n]=o.some(t=>t===e)}for(const t in x)n[t]=x[t].some(t=>t===e);return{...t,...n}}}(I,n,z,j,c),{isSelected:Y,select:q,selected:H}=Ms(n,c)??{},{blur:U,focused:V,isFocusTarget:K,moveFocus:G,setFocused:Z}=_s(n,A,B,Y??(()=>!1),c),{labelDayButton:X,labelGridcell:Q,labelGrid:J,labelMonthDropdown:ee,labelNav:te,labelPrevious:ne,labelNext:oe,labelWeekday:re,labelWeekNumber:ae,labelWeekNumberHeader:ie,labelYearDropdown:se}=i,le=u(()=>function(e,t,n,o){const r=o??e.today(),a=n?e.startOfBroadcastWeek(r,e):t?e.startOfISOWeek(r):e.startOfWeek(r),i=[];for(let t=0;t<7;t++){const n=e.addDays(a,t);i.push(n)}return i}(c,n.ISOWeek,n.broadcastCalendar,n.today),[c,n.ISOWeek,n.broadcastCalendar,n.today]),ce=void 0!==m||void 0!==y,de=s(()=>{L&&($(L),C?.(L))},[L,$,C]),ue=s(()=>{W&&($(W),N?.(W))},[$,W,N]),pe=s((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),Z(e),t.disabled||(q?.(e.date,t,n),y?.(e.date,t,n))},[q,y,Z]),fe=s((e,t)=>n=>{Z(e),b?.(e.date,t,n)},[b,Z]),me=s((e,t)=>n=>{U(),g?.(e.date,t,n)},[U,g]),he=s((e,t)=>o=>{const r={ArrowLeft:[o.shiftKey?"month":"day","rtl"===n.dir?"after":"before"],ArrowRight:[o.shiftKey?"month":"day","rtl"===n.dir?"before":"after"],ArrowDown:[o.shiftKey?"year":"week","after"],ArrowUp:[o.shiftKey?"year":"week","before"],PageUp:[o.shiftKey?"year":"month","before"],PageDown:[o.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(r[o.key]){o.preventDefault(),o.stopPropagation();const[e,t]=r[o.key];G(e,t)}x?.(e.date,t,o)},[G,x,n.dir]),ve=s((e,t)=>n=>{w?.(e.date,t,n)},[w]),ge=s((e,t)=>n=>{k?.(e.date,t,n)},[k]),ye=s(e=>t=>{const n=Number(t.target.value),o=c.setMonth(c.startOfMonth(e),n);$(o)},[c,$]),be=s(e=>t=>{const n=Number(t.target.value),o=c.setYear(c.startOfMonth(e),n);$(o)},[c,$]),{className:xe,style:we}=u(()=>({className:[p[Ei.Root],n.className].filter(Boolean).join(" "),style:{...D?.[Ei.Root],...n.style}}),[p,n.className,n.style,D]),ke=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(n),Ne=l(null);ys(Ne,Boolean(n.animate),{classNames:p,months:F,focused:V,dateLib:c});const Ce={dayPickerProps:n,selected:H,select:q,isSelected:Y,months:F,nextMonth:W,previousMonth:L,goToMonth:$,getModifiers:B,components:r,classNames:p,styles:D,labels:i,formatters:a};return t.createElement(Ri.Provider,{value:Ce},t.createElement(r.Root,{rootRef:n.animate?Ne:void 0,className:xe,style:we,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],...ke},t.createElement(r.Months,{className:p[Ei.Months],style:D?.[Ei.Months]},!n.hideNavigation&&!h&&t.createElement(r.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Ei.Nav],style:D?.[Ei.Nav],"aria-label":te(),onPreviousClick:de,onNextClick:ue,previousMonth:L,nextMonth:W}),F.map((e,o)=>t.createElement(r.Month,{"data-animated-month":n.animate?"true":void 0,className:p[Ei.Month],style:D?.[Ei.Month],key:o,displayIndex:o,calendarMonth:e},"around"===h&&!n.hideNavigation&&0===o&&t.createElement(r.PreviousMonthButton,{type:"button",className:p[Ei.PreviousMonthButton],tabIndex:L?void 0:-1,"aria-disabled":!L||void 0,"aria-label":ne(L),onClick:de,"data-animated-button":n.animate?"true":void 0},t.createElement(r.Chevron,{disabled:!L||void 0,className:p[Ei.Chevron],orientation:"rtl"===n.dir?"right":"left"})),t.createElement(r.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:p[Ei.MonthCaption],style:D?.[Ei.MonthCaption],calendarMonth:e,displayIndex:o},f?.startsWith("dropdown")?t.createElement(r.DropdownNav,{className:p[Ei.Dropdowns],style:D?.[Ei.Dropdowns]},(()=>{const o="dropdown"===f||"dropdown-months"===f?t.createElement(r.MonthsDropdown,{key:"month",className:p[Ei.MonthsDropdown],"aria-label":ee(),classNames:p,components:r,disabled:Boolean(n.disableNavigation),onChange:ye(e.date),options:ps(e.date,z,j,a,c),style:D?.[Ei.Dropdown],value:c.getMonth(e.date)}):t.createElement("span",{key:"month"},M(e.date,c)),i="dropdown"===f||"dropdown-years"===f?t.createElement(r.YearsDropdown,{key:"year",className:p[Ei.YearsDropdown],"aria-label":se(c.options),classNames:p,components:r,disabled:Boolean(n.disableNavigation),onChange:be(e.date),options:fs(z,j,a,c,Boolean(n.reverseYears)),style:D?.[Ei.Dropdown],value:c.getYear(e.date)}):t.createElement("span",{key:"year"},P(e.date,c));return"year-first"===c.getMonthYearOrder()?[i,o]:[o,i]})(),t.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(e.date,c.options,c))):t.createElement(r.CaptionLabel,{className:p[Ei.CaptionLabel],role:"status","aria-live":"polite"},S(e.date,c.options,c))),"around"===h&&!n.hideNavigation&&o===v-1&&t.createElement(r.NextMonthButton,{type:"button",className:p[Ei.NextMonthButton],tabIndex:W?void 0:-1,"aria-disabled":!W||void 0,"aria-label":oe(W),onClick:ue,"data-animated-button":n.animate?"true":void 0},t.createElement(r.Chevron,{disabled:!W||void 0,className:p[Ei.Chevron],orientation:"rtl"===n.dir?"left":"right"})),o===v-1&&"after"===h&&!n.hideNavigation&&t.createElement(r.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Ei.Nav],style:D?.[Ei.Nav],"aria-label":te(),onPreviousClick:de,onNextClick:ue,previousMonth:L,nextMonth:W}),t.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===m||"range"===m,"aria-label":J(e.date,c.options,c)||void 0,className:p[Ei.MonthGrid],style:D?.[Ei.MonthGrid]},!n.hideWeekdays&&t.createElement(r.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:p[Ei.Weekdays],style:D?.[Ei.Weekdays]},_&&t.createElement(r.WeekNumberHeader,{"aria-label":ie(c.options),className:p[Ei.WeekNumberHeader],style:D?.[Ei.WeekNumberHeader],scope:"col"},T()),le.map(e=>t.createElement(r.Weekday,{"aria-label":re(e,c.options,c),className:p[Ei.Weekday],key:String(e),style:D?.[Ei.Weekday],scope:"col"},R(e,c.options,c)))),t.createElement(r.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:p[Ei.Weeks],style:D?.[Ei.Weeks]},e.weeks.map(e=>t.createElement(r.Week,{className:p[Ei.Week],key:e.weekNumber,style:D?.[Ei.Week],week:e},_&&t.createElement(r.WeekNumber,{week:e,style:D?.[Ei.WeekNumber],"aria-label":ae(e.weekNumber,{locale:d}),className:p[Ei.WeekNumber],scope:"row",role:"rowheader"},O(e.weekNumber,c)),e.days.map(e=>{const{date:o}=e,a=B(e);if(a[Mi.focused]=!a.hidden&&Boolean(V?.isEqualTo(e)),a[Oi.selected]=Y?.(o)||a.selected,zi(H)){const{from:e,to:t}=H;a[Oi.range_start]=Boolean(e&&t&&c.isSameDay(o,e)),a[Oi.range_end]=Boolean(e&&t&&c.isSameDay(o,t)),a[Oi.range_middle]=Ii(H,o,!0,c)}const i=function(e,t={},n={}){let o={...t?.[Ei.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{o={...o,...n?.[e]}}),o}(a,D,n.modifiersStyles),s=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[o])=>(n[o]?e.push(n[o]):t[Mi[o]]?e.push(t[Mi[o]]):t[Oi[o]]&&e.push(t[Oi[o]]),e),[t[Ei.Day]])}(a,p,n.modifiersClassNames),l=ce||a.hidden?void 0:Q(o,a,c.options,c);return t.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:a,className:s.join(" "),style:i,role:"gridcell","aria-selected":a.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":a.selected||void 0,"data-disabled":a.disabled||void 0,"data-hidden":a.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":a.focused||void 0,"data-today":a.today||void 0},!a.hidden&&ce?t.createElement(r.DayButton,{className:p[Ei.DayButton],style:D?.[Ei.DayButton],type:"button",day:e,modifiers:a,disabled:!a.focused&&a.disabled||void 0,"aria-disabled":a.focused&&a.disabled||void 0,tabIndex:K(e)?0:-1,"aria-label":X(o,a,c.options,c),onClick:pe(e,a),onBlur:me(e,a),onFocus:fe(e,a),onKeyDown:he(e,a),onMouseEnter:ve(e,a),onMouseLeave:ge(e,a)},E(o,c.options,c)):!a.hidden&&E(e.date,c.options,c))})))))))),n.footer&&t.createElement(r.Footer,{className:p[Ei.Footer],style:D?.[Ei.Footer],role:"status","aria-live":"polite"},n.footer)))}function Is({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:o="label",buttonVariant:r="ghost",formatters:a,components:i,...s}){const l=qi();return g(As,{showOutsideDays:n,className:Ye("bg-background group/calendar p-3 [--cell-size:2rem]",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:o,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...a},classNames:{root:Ye("w-fit",l.root),months:Ye("relative flex flex-col gap-4 md:flex-row",l.months),month:Ye("flex w-full flex-col gap-4",l.month),nav:Ye("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:Ye(qr({variant:r}),"size-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:Ye(qr({variant:r}),"size-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:Ye("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",l.month_caption),dropdowns:Ye("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:Ye("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:Ye("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:Ye("select-none font-medium","label"===o?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:Ye("flex",l.weekdays),weekday:Ye("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:Ye("mt-2 flex w-full",l.week),week_number_header:Ye("w-[--cell-size] select-none",l.week_number_header),week_number:Ye("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:Ye("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:Ye("bg-accent rounded-l-md",l.range_start),range_middle:Ye("rounded-none",l.range_middle),range_end:Ye("bg-accent rounded-r-md",l.range_end),today:Ye("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:Ye("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:Ye("text-muted-foreground opacity-50",l.disabled),hidden:Ye("invisible",l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>g("div",{"data-slot":"calendar",ref:t,className:Ye(e),...n}),Chevron:({className:e,orientation:t,...n})=>g("left"===t?vt:"right"===t?gt:ht,{className:Ye("size-4",e),...n}),DayButton:Fs,WeekNumber:({children:e,...t})=>g("td",{...t,children:g("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:e})}),...i},...s})}function Fs({className:t,day:n,modifiers:o,...r}){const a=qi(),i=e.useRef(null);return e.useEffect(()=>{o.focused&&i.current?.focus()},[o.focused]),g(Ur,{ref:i,variant:"ghost",size:"icon","data-day":n.date.toLocaleDateString(),"data-selected-single":o.selected&&!o.range_start&&!o.range_end&&!o.range_middle,"data-range-start":o.range_start,"data-range-end":o.range_end,"data-range-middle":o.range_middle,className:Ye("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",a.day,t),...r})}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(ks||(ks={}));const zs=["top","right","bottom","left"],js=Math.min,Ls=Math.max,Ws=Math.round,$s=Math.floor,Bs=e=>({x:e,y:e}),Ys={left:"right",right:"left",bottom:"top",top:"bottom"},qs={start:"end",end:"start"};function Hs(e,t,n){return Ls(e,js(t,n))}function Us(e,t){return"function"==typeof e?e(t):e}function Vs(e){return e.split("-")[0]}function Ks(e){return e.split("-")[1]}function Gs(e){return"x"===e?"y":"x"}function Zs(e){return"y"===e?"height":"width"}const Xs=new Set(["top","bottom"]);function Qs(e){return Xs.has(Vs(e))?"y":"x"}function Js(e){return Gs(Qs(e))}function el(e){return e.replace(/start|end/g,e=>qs[e])}const tl=["left","right"],nl=["right","left"],ol=["top","bottom"],rl=["bottom","top"];function al(e,t,n,o){const r=Ks(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?nl:tl:t?tl:nl;case"left":case"right":return t?ol:rl;default:return[]}}(Vs(e),"start"===n,o);return r&&(a=a.map(e=>e+"-"+r),t&&(a=a.concat(a.map(el)))),a}function il(e){return e.replace(/left|right|bottom|top/g,e=>Ys[e])}function sl(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ll(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function cl(e,t,n){let{reference:o,floating:r}=e;const a=Qs(t),i=Js(t),s=Zs(i),l=Vs(t),c="y"===a,d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-r.width,y:u};break;default:f={x:o.x,y:o.y}}switch(Ks(t)){case"start":f[i]-=p*(n&&c?-1:1);break;case"end":f[i]+=p*(n&&c?-1:1)}return f}async function dl(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Us(t,e),m=sl(f),h=s[p?"floating"===u?"reference":"floating":u],v=ll(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===u?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},x=ll(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-x.top+m.top)/b.y,bottom:(x.bottom-v.bottom+m.bottom)/b.y,left:(v.left-x.left+m.left)/b.x,right:(x.right-v.right+m.right)/b.x}}function ul(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pl(e){return zs.some(t=>e[t]>=0)}const fl=new Set(["left","top"]);function ml(){return"undefined"!=typeof window}function hl(e){return yl(e)?(e.nodeName||"").toLowerCase():"#document"}function vl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gl(e){var t;return null==(t=(yl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yl(e){return!!ml()&&(e instanceof Node||e instanceof vl(e).Node)}function bl(e){return!!ml()&&(e instanceof Element||e instanceof vl(e).Element)}function xl(e){return!!ml()&&(e instanceof HTMLElement||e instanceof vl(e).HTMLElement)}function wl(e){return!(!ml()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vl(e).ShadowRoot)}const kl=new Set(["inline","contents"]);function Nl(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Il(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!kl.has(r)}const Cl=new Set(["table","td","th"]);function _l(e){return Cl.has(hl(e))}const Dl=[":popover-open",":modal"];function Sl(e){return Dl.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const El=["transform","translate","scale","rotate","perspective"],Ml=["transform","translate","scale","rotate","perspective","filter"],Ol=["paint","layout","strict","content"];function Tl(e){const t=Rl(),n=bl(e)?Il(e):e;return El.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ml.some(e=>(n.willChange||"").includes(e))||Ol.some(e=>(n.contain||"").includes(e))}function Rl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Pl=new Set(["html","body","#document"]);function Al(e){return Pl.has(hl(e))}function Il(e){return vl(e).getComputedStyle(e)}function Fl(e){return bl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zl(e){if("html"===hl(e))return e;const t=e.assignedSlot||e.parentNode||wl(e)&&e.host||gl(e);return wl(t)?t.host:t}function jl(e){const t=zl(e);return Al(t)?e.ownerDocument?e.ownerDocument.body:e.body:xl(t)&&Nl(t)?t:jl(t)}function Ll(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=jl(e),a=r===(null==(o=e.ownerDocument)?void 0:o.body),i=vl(r);if(a){const e=Wl(i);return t.concat(i,i.visualViewport||[],Nl(r)?r:[],e&&n?Ll(e):[])}return t.concat(r,Ll(r,[],n))}function Wl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $l(e){const t=Il(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=xl(e),a=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=Ws(n)!==a||Ws(o)!==i;return s&&(n=a,o=i),{width:n,height:o,$:s}}function Bl(e){return bl(e)?e:e.contextElement}function Yl(e){const t=Bl(e);if(!xl(t))return Bs(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=$l(t);let i=(a?Ws(n.width):n.width)/o,s=(a?Ws(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ql=Bs(0);function Hl(e){const t=vl(e);return Rl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ql}function Ul(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),a=Bl(e);let i=Bs(1);t&&(o?bl(o)&&(i=Yl(o)):i=Yl(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vl(e))&&t}(a,n,o)?Hl(a):Bs(0);let l=(r.left+s.x)/i.x,c=(r.top+s.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(a){const e=vl(a),t=o&&bl(o)?vl(o):o;let n=e,r=Wl(n);for(;r&&o&&t!==n;){const e=Yl(r),t=r.getBoundingClientRect(),o=Il(r),a=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=i,n=vl(r),r=Wl(n)}}return ll({width:d,height:u,x:l,y:c})}function Vl(e,t){const n=Fl(e).scrollLeft;return t?t.left+n:Ul(gl(e)).left+n}function Kl(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Vl(e,n),y:n.top+t.scrollTop}}const Gl=new Set(["absolute","fixed"]);function Zl(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=vl(e),o=gl(e),r=n.visualViewport;let a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;const e=Rl();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}const c=Vl(o);if(c<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=gl(e),n=Fl(e),o=e.ownerDocument.body,r=Ls(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Ls(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Vl(e);const s=-n.scrollTop;return"rtl"===Il(o).direction&&(i+=Ls(t.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:s}}(gl(e));else if(bl(t))o=function(e,t){const n=Ul(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,a=xl(e)?Yl(e):Bs(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:r*a.x,y:o*a.y}}(t,n);else{const n=Hl(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ll(o)}function Xl(e,t){const n=zl(e);return!(n===t||!bl(n)||Al(n))&&("fixed"===Il(n).position||Xl(n,t))}function Ql(e,t,n){const o=xl(t),r=gl(t),a="fixed"===n,i=Ul(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Bs(0);function c(){l.x=Vl(r)}if(o||!o&&!a)if(("body"!==hl(t)||Nl(r))&&(s=Fl(t)),o){const e=Ul(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();a&&!o&&r&&c();const d=!r||o||a?Bs(0):Kl(r,s);return{x:i.left+s.scrollLeft-l.x-d.x,y:i.top+s.scrollTop-l.y-d.y,width:i.width,height:i.height}}function Jl(e){return"static"===Il(e).position}function ec(e,t){if(!xl(e)||"fixed"===Il(e).position)return null;if(t)return t(e);let n=e.offsetParent;return gl(e)===n&&(n=n.ownerDocument.body),n}function tc(e,t){const n=vl(e);if(Sl(e))return n;if(!xl(e)){let t=zl(e);for(;t&&!Al(t);){if(bl(t)&&!Jl(t))return t;t=zl(t)}return n}let o=ec(e,t);for(;o&&_l(o)&&Jl(o);)o=ec(o,t);return o&&Al(o)&&Jl(o)&&!Tl(o)?n:o||function(e){let t=zl(e);for(;xl(t)&&!Al(t);){if(Tl(t))return t;if(Sl(t))return null;t=zl(t)}return null}(e)||n}const nc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const a="fixed"===r,i=gl(o),s=!!t&&Sl(t.floating);if(o===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=Bs(1);const d=Bs(0),u=xl(o);if((u||!u&&!a)&&(("body"!==hl(o)||Nl(i))&&(l=Fl(o)),xl(o))){const e=Ul(o);c=Yl(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const p=!i||u||a?Bs(0):Kl(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:gl,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[..."clippingAncestors"===n?Sl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Ll(e,[],!1).filter(e=>bl(e)&&"body"!==hl(e)),r=null;const a="fixed"===Il(e).position;let i=a?zl(e):e;for(;bl(i)&&!Al(i);){const t=Il(i),n=Tl(i);n||"fixed"!==t.position||(r=null),(a?!n&&!r:!n&&"static"===t.position&&r&&Gl.has(r.position)||Nl(i)&&!n&&Xl(e,i))?o=o.filter(e=>e!==i):r=t,i=zl(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],i=a[0],s=a.reduce((e,n)=>{const o=Zl(t,n,r);return e.top=Ls(o.top,e.top),e.right=js(o.right,e.right),e.bottom=js(o.bottom,e.bottom),e.left=Ls(o.left,e.left),e},Zl(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:tc,getElementRects:async function(e){const t=this.getOffsetParent||tc,n=this.getDimensions,o=await n(e.floating);return{reference:Ql(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$l(e);return{width:t,height:n}},getScale:Yl,isElement:bl,isRTL:function(e){return"rtl"===Il(e).direction}};function oc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rc(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=Bl(e),d=r||a?[...c?Ll(c):[],...Ll(t)]:[];d.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const u=c&&s?function(e,t){let n,o=null;const r=gl(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:f}=c;if(s||t(),!p||!f)return;const m={rootMargin:-$s(u)+"px "+-$s(r.clientWidth-(d+p))+"px "+-$s(r.clientHeight-(u+f))+"px "+-$s(d)+"px",threshold:Ls(0,js(1,l))||1};let h=!0;function v(t){const o=t[0].intersectionRatio;if(o!==l){if(!h)return i();o?i(!1,o):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||oc(c,e.getBoundingClientRect())||i(),h=!1}try{o=new IntersectionObserver(v,{...m,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(v,m)}o.observe(e)}(!0),a}(c,n):null;let p,f=-1,m=null;i&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let h=l?Ul(e):null;return l&&function t(){const o=Ul(e);h&&!oc(h,o)&&n();h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const ac=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Vs(n),s=Ks(n),l="y"===Qs(n),c=fl.has(i)?-1:1,d=a&&l?-1:1,u=Us(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:i}}}}},ic=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Us(e,t),c={x:n,y:o},d=await dl(t,l),u=Qs(Vs(r)),p=Gs(u);let f=c[p],m=c[u];if(a){const e="y"===p?"bottom":"right";f=Hs(f+d["y"===p?"top":"left"],f,f-d[e])}if(i){const e="y"===u?"bottom":"right";m=Hs(m+d["y"===u?"top":"left"],m,m-d[e])}const h=s.fn({...t,[p]:f,[u]:m});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[p]:a,[u]:i}}}}}},sc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Us(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=Vs(r),y=Qs(s),b=Vs(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!h?[il(s)]:function(e){const t=il(e);return[el(e),t,el(t)]}(s)),k="none"!==m;!p&&k&&w.push(...al(s,h,m,x));const N=[s,...w],C=await dl(t,v),_=[];let D=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&_.push(C[g]),u){const e=function(e,t,n){void 0===n&&(n=!1);const o=Ks(e),r=Js(e),a=Zs(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=il(i)),[i,il(i)]}(r,i,x);_.push(C[e[0]],C[e[1]])}if(D=[...D,{placement:r,overflows:_}],!_.every(e=>e<=0)){var S,E;const e=((null==(S=a.flip)?void 0:S.index)||0)+1,t=N[e];if(t){if(!("alignment"===u&&y!==Qs(t))||D.every(e=>Qs(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:D},reset:{placement:t}}}let n=null==(E=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var M;const e=null==(M=D.filter(e=>{if(k){const t=Qs(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},lc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=Us(e,t),d=await dl(t,c),u=Vs(r),p=Ks(r),f="y"===Qs(r),{width:m,height:h}=a.floating;let v,g;"top"===u||"bottom"===u?(v=u,g=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,v="end"===p?"top":"bottom");const y=h-d.top-d.bottom,b=m-d.left-d.right,x=js(h-d[v],y),w=js(m-d[g],b),k=!t.middlewareData.shift;let N=x,C=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=b),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(N=y),k&&!p){const e=Ls(d.left,0),t=Ls(d.right,0),n=Ls(d.top,0),o=Ls(d.bottom,0);f?C=m-2*(0!==e||0!==t?e+t:Ls(d.left,d.right)):N=h-2*(0!==n||0!==o?n+o:Ls(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:N});const _=await i.getDimensions(s.floating);return m!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}},cc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Us(e,t);switch(o){case"referenceHidden":{const e=ul(await dl(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:pl(e)}}}case"escaped":{const e=ul(await dl(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:pl(e)}}}default:return{}}}}},dc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Us(e,t)||{};if(null==c)return{};const u=sl(d),p={x:n,y:o},f=Js(r),m=Zs(f),h=await i.getDimensions(c),v="y"===f,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[f]-p[f]-a.floating[m],w=p[f]-a.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let N=k?k[b]:0;N&&await(null==i.isElement?void 0:i.isElement(k))||(N=s.floating[b]||a.floating[m]);const C=x/2-w/2,_=N/2-h[m]/2-1,D=js(u[g],_),S=js(u[y],_),E=D,M=N-h[m]-S,O=N/2-h[m]/2+C,T=Hs(E,O,M),R=!l.arrow&&null!=Ks(r)&&O!==T&&a.reference[m]/2-(O<E?D:S)-h[m]/2<0,P=R?O<E?O-E:O-M:0;return{[f]:p[f]+P,data:{[f]:T,centerOffset:O-T-P,...R&&{alignmentOffset:P}},reset:R}}}),uc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Us(e,t),d={x:n,y:o},u=Qs(r),p=Gs(u);let f=d[p],m=d[u];const h=Us(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var g,y;const e="y"===p?"width":"height",t=fl.has(Vs(r)),n=a.reference[u]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[u])||0)+(t?0:v.crossAxis),o=a.reference[u]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[u])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:f,[u]:m}}}},pc=(e,t,n)=>{const o=new Map,r={platform:nc,...n},a={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=cl(c,o,l),p=o,f={},m=0;for(let n=0;n<s.length;n++){const{name:a,fn:h}=s[n],{x:v,y:g,data:y,reset:b}=await h({x:d,y:u,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=g?g:u,f={...f,[a]:{...f[a],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:d,y:u}=cl(c,p,l))),n=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:f}})(e,t,{...r,platform:a})};var fc="undefined"!=typeof document?c:function(){};function mc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!==o--;)if(!mc(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!==o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!mc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function hc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vc(e,t){const n=hc(e);return Math.round(t*n)/n}function gc(t){const n=e.useRef(t);return fc(()=>{n.current=t}),n}function yc(t){void 0===t&&(t={});const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,p]=e.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(r);mc(f,r)||m(r);const[h,v]=e.useState(null),[g,y]=e.useState(null),b=e.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=e.useCallback(e=>{e!==_.current&&(_.current=e,y(e))},[]),k=i||h,N=s||g,C=e.useRef(null),_=e.useRef(null),D=e.useRef(u),S=null!=c,E=gc(c),M=gc(a),O=gc(d),T=e.useCallback(()=>{if(!C.current||!_.current)return;const e={placement:n,strategy:o,middleware:f};M.current&&(e.platform=M.current),pc(C.current,_.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};R.current&&!mc(D.current,t)&&(D.current=t,x.flushSync(()=>{p(t)}))})},[f,n,o,M,O]);fc(()=>{!1===d&&D.current.isPositioned&&(D.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const R=e.useRef(!1);fc(()=>(R.current=!0,()=>{R.current=!1}),[]),fc(()=>{if(k&&(C.current=k),N&&(_.current=N),k&&N){if(E.current)return E.current(k,N,T);T()}},[k,N,T,E,S]);const P=e.useMemo(()=>({reference:C,floating:_,setReference:b,setFloating:w}),[b,w]),A=e.useMemo(()=>({reference:k,floating:N}),[k,N]),I=e.useMemo(()=>{const e={position:o,left:0,top:0};if(!A.floating)return e;const t=vc(A.floating,u.x),n=vc(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...hc(A.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}},[o,l,A.floating,u.x,u.y]);return e.useMemo(()=>({...u,update:T,refs:P,elements:A,floatingStyles:I}),[u,T,P,A,I])}const bc=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?dc({element:n.current,padding:o}).fn(t):{}:n?dc({element:n,padding:o}).fn(t):{};var r}}),xc=(e,t)=>({...ac(e),options:[e,t]}),wc=(e,t)=>({...ic(e),options:[e,t]}),kc=(e,t)=>({...uc(e),options:[e,t]}),Nc=(e,t)=>({...sc(e),options:[e,t]}),Cc=(e,t)=>({...lc(e),options:[e,t]}),_c=(e,t)=>({...cc(e),options:[e,t]}),Dc=(e,t)=>({...bc(e),options:[e,t]});var Sc=e.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return g(Xt.svg,{...a,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g("polygon",{points:"0,0 30,0 15,10"})})});Sc.displayName="Arrow";var Ec=Sc;var Mc="Popper",[Oc,Tc]=It(Mc),[Rc,Pc]=Oc(Mc),Ac=t=>{const{__scopePopper:n,children:o}=t,[r,a]=e.useState(null);return g(Rc,{scope:n,anchor:r,onAnchorChange:a,children:o})};Ac.displayName=Mc;var Ic="PopperAnchor",Fc=e.forwardRef((t,n)=>{const{__scopePopper:o,virtualRef:r,...a}=t,i=Pc(Ic,o),s=e.useRef(null),l=Lt(n,s),c=e.useRef(null);return e.useEffect(()=>{const e=c.current;c.current=r?.current||s.current,e!==c.current&&i.onAnchorChange(c.current)}),r?null:g(Xt.div,{...a,ref:l})});Fc.displayName=Ic;var zc="PopperContent",[jc,Lc]=Oc(zc),Wc=e.forwardRef((t,n)=>{const{__scopePopper:o,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...v}=t,y=Pc(zc,o),[b,x]=e.useState(null),w=Lt(n,e=>x(e)),[k,N]=e.useState(null),C=function(t){const[n,o]=e.useState(void 0);return $t(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let r,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=t.offsetWidth,a=t.offsetHeight;o({width:r,height:a})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}o(void 0)},[t]),n}(k),_=C?.width??0,D=C?.height??0,S=r+("center"!==i?"-"+i:""),E="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(d)?d:[d],O=M.length>0,T={padding:E,boundary:M.filter(qc),altBoundary:O},{refs:R,floatingStyles:P,placement:A,isPositioned:I,middlewareData:F}=yc({strategy:"fixed",placement:S,whileElementsMounted:(...e)=>rc(...e,{animationFrame:"always"===m}),elements:{reference:y.anchor},middleware:[xc({mainAxis:a+D,alignmentAxis:s}),c&&wc({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kc():void 0,...T}),c&&Nc({...T}),Cc({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${o}px`),i.setProperty("--radix-popper-anchor-width",`${r}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),k&&Dc({element:k,padding:l}),Hc({arrowWidth:_,arrowHeight:D}),f&&_c({strategy:"referenceHidden",...T})]}),[z,j]=Uc(A),L=Qt(h);$t(()=>{I&&L?.()},[I,L]);const W=F.arrow?.x,$=F.arrow?.y,B=0!==F.arrow?.centerOffset,[Y,q]=e.useState();return $t(()=>{b&&q(window.getComputedStyle(b).zIndex)},[b]),g("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:I?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:g(jc,{scope:o,placedSide:z,onArrowChange:N,arrowX:W,arrowY:$,shouldHideArrow:B,children:g(Xt.div,{"data-side":z,"data-align":j,...v,ref:w,style:{...v.style,animation:I?void 0:"none"}})})})});Wc.displayName=zc;var $c="PopperArrow",Bc={top:"bottom",right:"left",bottom:"top",left:"right"},Yc=e.forwardRef(function(e,t){const{__scopePopper:n,...o}=e,r=Lc($c,n),a=Bc[r.placedSide];return g("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:g(Ec,{...o,ref:t,style:{...o.style,display:"block"}})})});function qc(e){return null!==e}Yc.displayName=$c;var Hc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=0!==r.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=Uc(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(r.arrow?.x??0)+i/2,p=(r.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=a?d:`${u}px`,m=-s+"px"):"top"===l?(f=a?d:`${u}px`,m=`${o.floating.height+s}px`):"right"===l?(f=-s+"px",m=a?d:`${p}px`):"left"===l&&(f=`${o.floating.width+s}px`,m=a?d:`${p}px`),{data:{x:f,y:m}}}});function Uc(e){const[t,n="center"]=e.split("-");return[t,n]}var Vc=Ac,Kc=Fc,Gc=Wc,Zc=Yc,Xc="Popover",[Qc]=It(Xc,[Tc]),Jc=Tc(),[ed,td]=Qc(Xc),nd=t=>{const{__scopePopover:n,children:o,open:r,defaultOpen:a,onOpenChange:i,modal:s=!1}=t,l=Jc(n),c=e.useRef(null),[d,u]=e.useState(!1),[p,f]=Ut({prop:r,defaultProp:a??!1,onChange:i,caller:Xc});return g(Vc,{...l,children:g(ed,{scope:n,contentId:qt(),triggerRef:c,open:p,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:d,onCustomAnchorAdd:e.useCallback(()=>u(!0),[]),onCustomAnchorRemove:e.useCallback(()=>u(!1),[]),modal:s,children:o})})};nd.displayName=Xc;var od="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:o,...r}=t,a=td(od,o),i=Jc(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=a;return e.useEffect(()=>(s(),()=>l()),[s,l]),g(Kc,{...i,...r,ref:n})}).displayName=od;var rd="PopoverTrigger",ad=e.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=td(rd,n),a=Jc(n),i=Lt(t,r.triggerRef),s=g(Xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":gd(r.open),...o,ref:i,onClick:Wt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:g(Kc,{asChild:!0,...a,children:s})});ad.displayName=rd;var id="PopoverPortal",[sd,ld]=Qc(id,{forceMount:void 0}),cd=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,a=td(id,t);return g(sd,{scope:t,forceMount:n,children:g(bn,{present:n||a.open,children:g(yn,{asChild:!0,container:r,children:o})})})};cd.displayName=id;var dd="PopoverContent",ud=e.forwardRef((e,t)=>{const n=ld(dd,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,a=td(dd,e.__scopePopover);return g(bn,{present:o||a.open,children:a.modal?g(fd,{...r,ref:t}):g(md,{...r,ref:t})})});ud.displayName=dd;var pd=Vt("PopoverContent.RemoveScroll"),fd=e.forwardRef((t,n)=>{const o=td(dd,t.__scopePopover),r=e.useRef(null),a=Lt(n,r),i=e.useRef(!1);return e.useEffect(()=>{const e=r.current;if(e)return bo(e)},[]),g(po,{as:pd,allowPinchZoom:!0,children:g(hd,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,e=>{e.preventDefault(),i.current||o.triggerRef.current?.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;i.current=o},{checkForDefaultPrevented:!1}),onFocusOutside:Wt(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),md=e.forwardRef((t,n)=>{const o=td(dd,t.__scopePopover),r=e.useRef(!1),a=e.useRef(!1);return g(hd,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||o.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target,i=o.triggerRef.current?.contains(n);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),hd=e.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...u}=e,p=td(dd,n),f=Jc(n);return kn(),g(un,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:g(rn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:g(Gc,{"data-state":gd(p.open),role:"dialog",id:p.contentId,...f,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),vd="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=td(vd,n);return g(Xt.button,{type:"button",...o,ref:t,onClick:Wt(e.onClick,()=>r.onOpenChange(!1))})}).displayName=vd;function gd(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Jc(n);return g(Zc,{...r,...o,ref:t})}).displayName="PopoverArrow";var yd=cd,bd=ud;const xd=nd,wd=ad,kd=e.forwardRef(({className:e,align:t="center",sideOffset:n=4,...o},r)=>g(yd,{children:g(bd,{ref:r,align:t,sideOffset:n,"data-slot":"popover-content",className:Ye("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...o})}));kd.displayName=bd.displayName;const Nd="flex h-10 w-full items-center rounded-md border border-input bg-background px-3 text-sm font-normal shadow-none hover:bg-[hsl(var(--hover-ring))] hover:border-[hsl(var(--focus-ring))] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",Cd="text-muted-foreground",_d="size-4 shrink-0 text-muted-foreground opacity-50",Dd="data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground",Sd=e=>{if(!e)return;const t=new Date(e);return Number.isNaN(t.getTime())?void 0:t},Ed=({id:e,placeholder:t,value:n,onValueChange:o,className:r,boundary:a="start",dateFormat:i="dd/MM/yyyy"})=>{const s=Sd(n),l=((e,t)=>{const n=Sd(e);return n?li(n,t):null})(n,i);return g("div",{className:Ye("flex w-full min-w-0",r),children:y(xd,{children:[g(wd,{asChild:!0,children:y("button",{type:"button","data-testid":e,className:Ye(Nd,"justify-start text-left",!l&&Cd),children:[g(ft,{className:Ye("mr-2",_d)}),l??t]})}),g(kd,{className:"w-fit p-0",align:"start",children:g(Is,{mode:"single",selected:s,onSelect:e=>{if(!e)return void o?.("");const t="end"===a?ka(e):ya(e);o?.(t.toISOString())},initialFocus:!0})})]})})},Md=Jo,Od=er,Td=({className:e,...t})=>g(tr,{...t});Td.displayName=tr.displayName;const Rd=e.forwardRef(({className:e,...t},n)=>g(nr,{ref:n,className:Ye("fixed inset-0 z-50 overlay-dialog data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Rd.displayName=nr.displayName;const Pd=e.forwardRef(({className:e,children:t,showCloseButton:n=!0,...o},r)=>y(Td,{children:[g(Rd,{}),y(or,{ref:r,className:Ye("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-2xl md:w-full",e),...o,children:[t,n&&y(ir,{type:"button",className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g(Rt,{className:"h-4 w-4"}),g("span",{className:"sr-only",children:"Close"})]})]})]}));Pd.displayName=or.displayName;const Ad=({className:e,...t})=>g("div",{className:Ye("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ad.displayName="DialogHeader";const Id=({className:e,...t})=>g("div",{className:Ye("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Id.displayName="DialogFooter";const Fd=e.forwardRef(({className:e,...t},n)=>g(rr,{ref:n,className:Ye("text-lg font-semibold leading-none tracking-tight",e),...t}));Fd.displayName=rr.displayName;const zd=e.forwardRef(({className:e,...t},n)=>g(ar,{ref:n,className:Ye("text-sm text-muted-foreground",e),...t}));zd.displayName=ar.displayName;const jd=({openDialog:e,setOpenDialog:t,handleDelete:n,count:o})=>{const r=void 0!==o&&o>1;return g(Pt,{direction:"row",children:g(Md,{open:e,onOpenChange:t,children:y(Pd,{className:"max-w-[513px] rounded-xl px-8 py-6 gap-4",children:[y(Ad,{children:[g(Fd,{className:"pb-0 border-none",children:r?`Deseja apagar ${o} registros selecionados?`:"Deseja apagar registro atual?"}),g(zd,{})]}),g("form",{onSubmit:e=>{e.preventDefault(),n()},children:y(Pt,{gap:2,children:[g("p",{className:"text-fontcolor-secondary font-medium text-sm",children:r?`Essa ação não poderá ser desfeita e os ${o} registros serão removidos permanentemente. Tem certeza de que deseja continuar?`:"Essa ação não poderá ser desfeita e o registro será removido permanentemente. Tem certeza de que deseja continuar?"}),y(Id,{className:"mt-4",children:[g(Uo,{asChild:!0,children:g(Ur,{variant:"ghost",type:"button",children:"Cancelar"})}),g(Ur,{type:"submit",variant:"default",children:r?`Deletar ${o}`:"Deletar"})]})]})})]})})})};!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var Ld=e=>"number"==typeof e&&!isNaN(e),Wd=e=>"string"==typeof e,$d=e=>"function"==typeof e,Bd=1,Yd=()=>""+Bd++,qd=new Map,Hd=[],Ud=new Set,Vd=()=>qd.size>0;function Kd(e){if(Vd()){if(null==e||(e=>Wd(e)||Ld(e))(e))qd.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=qd.get(e.containerId);t?t.removeToast(e.id):qd.forEach(t=>{t.removeToast(e.id)})}}else Hd=Hd.filter(t=>null!=e&&t.options.toastId!==e)}function Gd(e,t){(e=>p(e)||Wd(e)||$d(e)||Ld(e))(e)&&(Vd()||Hd.push({content:e,options:t}),qd.forEach(n=>{n.buildToast(e,t)}))}function Zd(e,t){qd.forEach(n=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===n.id)&&n.toggle(e,null==t?void 0:t.id)})}function Xd(e){return e&&(Wd(e.toastId)||Ld(e.toastId))?e.toastId:Yd()}function Qd(e,t){return Gd(e,t),t.toastId}function Jd(e,t){return{...t,type:t&&t.type||e,toastId:Xd(t)}}function eu(e){return(t,n)=>Qd(t,Jd(e,n))}function tu(e,t){return Qd(e,Jd("default",t))}tu.loading=(e,t)=>Qd(e,Jd("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),tu.promise=function(e,{pending:t,error:n,success:o},r){let a;t&&(a=Wd(t)?tu.loading(t,r):tu.loading(t.render,{...r,...t}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,n)=>{if(null==t)return void tu.dismiss(a);let o={type:e,...i,...r,data:n},s=Wd(t)?{render:t}:t;return a?tu.update(a,{...o,...s}):tu(s.render,{...o,...s}),n},l=$d(e)?e():e;return l.then(e=>s("success",o,e)).catch(e=>s("error",n,e)),l},tu.success=eu("success"),tu.info=eu("info"),tu.error=eu("error"),tu.warning=eu("warning"),tu.warn=tu.warning,tu.dark=(e,t)=>Qd(e,Jd("default",{theme:"dark",...t})),tu.dismiss=function(e){Kd(e)},tu.clearWaitingQueue=(e={})=>{qd.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},tu.isActive=function(e,t){var n;if(t)return!(null==(n=qd.get(t))||!n.isToastActive(e));let o=!1;return qd.forEach(t=>{t.isToastActive(e)&&(o=!0)}),o},tu.update=(e,t={})=>{let n=((e,{containerId:t})=>{var n;return null==(n=qd.get(t||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:o,content:r}=n,a={delay:100,...o,...t,toastId:t.toastId||e,updateId:Yd()};a.toastId!==e&&(a.staleId=e);let i=a.render||r;delete a.render,Qd(i,a)}},tu.done=e=>{tu.update(e,{progress:1})},tu.onChange=function(e){return Ud.add(e),()=>{Ud.delete(e)}},tu.play=e=>Zd(!0,e),tu.pause=e=>Zd(!1,e);const nu=({item:e,modelClass:t,propertyName:n,retrieveFile:o})=>{const[a,i]=r(!1);return g(Ur,{variant:"outline",size:"icon",disabled:a||!o,onClick:async()=>{if(o){i(!0);try{const[r,a]=await o(t,Number(e[n]));if(a)return void tu.error(`Houve algum problema: ${a.message}`);if(!r)return void tu.error("Nenhum arquivo encontrado");const i=new Blob([new Uint8Array(r.data)],{type:r.contentType}),s=URL.createObjectURL(i),l=document.createElement("a");l.href=s,l.download=e.file.split(/[\\/]/).pop()??e.file,document.body.appendChild(l);try{l.click()}finally{document.body.removeChild(l),URL.revokeObjectURL(s)}tu.success("Arquivo baixado com sucesso!")}finally{i(!1)}}else tu.error("Função de download não configurada")},children:a?g(Dt,{className:"animate-spin"}):g(Nt,{})})};function ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ru,au={exports:{}},iu={exports:{}},su={};var lu,cu,du,uu,pu,fu,mu,hu,vu,gu,yu,bu,xu,wu,ku,Nu={};
26
+ */Pt.displayName="Stack";const At=({handleClear:e})=>g("button",{type:"button",className:"h-10 p-2 mt-1 text-xs bg-white",onClick:e,children:y(Pt,{direction:"row",gap:2,className:"items-center",children:["Limpar filtros ",g(Rt,{size:16})]})});function It(t,n=[]){let o=[];const r=()=>{const n=o.map(t=>e.createContext(t));return function(o){const r=o?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...o,[t]:r}}),[o,r])}};return r.scopeName=t,[function(n,r){const a=e.createContext(r),i=o.length;o=[...o,r];const s=n=>{const{scope:o,children:r,...s}=n,l=o?.[t]?.[i]||a,c=e.useMemo(()=>s,Object.values(s));return g(l.Provider,{value:c,children:r})};return s.displayName=n+"Provider",[s,function(o,s){const l=s?.[t]?.[i]||a,c=e.useContext(l);if(c)return c;if(void 0!==r)return r;throw new Error(`\`${o}\` must be used within \`${n}\``)}]},Ft(r,...n)]}function Ft(...t){const n=t[0];if(1===t.length)return n;const o=()=>{const o=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const r=o.reduce((e,{useScope:n,scopeName:o})=>({...e,...n(t)[`__scope${o}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])}};return o.scopeName=n.scopeName,o}function zt(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function jt(...e){return t=>{let n=!1;const o=e.map(e=>{const o=zt(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t<o.length;t++){const n=o[t];"function"==typeof n?n():zt(e[t],null)}}}}function Lt(...t){return e.useCallback(jt(...t),t)}function Wt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),!1===n||!o.defaultPrevented)return t?.(o)}}var $t=globalThis?.document?e.useLayoutEffect:()=>{},Bt=e[" useId ".trim().toString()]||(()=>{}),Yt=0;function qt(t){const[n,o]=e.useState(Bt());return $t(()=>{o(e=>e??String(Yt++))},[t]),n?`radix-${n}`:""}var Ht=e[" useInsertionEffect ".trim().toString()]||$t;function Ut({prop:t,defaultProp:n,onChange:o=()=>{},caller:r}){const[a,i,s]=function({defaultProp:t,onChange:n}){const[o,r]=e.useState(t),a=e.useRef(o),i=e.useRef(n);return Ht(()=>{i.current=n},[n]),e.useEffect(()=>{a.current!==o&&(i.current?.(o),a.current=o)},[o,a]),[o,r,i]}({defaultProp:n,onChange:o}),l=void 0!==t,c=l?t:a;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==l){const t=e?"controlled":"uncontrolled",n=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=l},[l,r])}const d=e.useCallback(e=>{if(l){const n=function(e){return"function"==typeof e}(e)?e(t):e;n!==t&&s.current?.(n)}else i(e)},[l,t,i,s]);return[c,d]}function Vt(t){const n=Kt(t),o=e.forwardRef((t,o)=>{const{children:r,...a}=t,i=e.Children.toArray(r),s=i.find(Zt);if(s){const t=s.props.children,r=i.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return g(n,{...a,ref:o,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return g(n,{...a,ref:o,children:r})});return o.displayName=`${t}.Slot`,o}function Kt(t){const n=e.forwardRef((t,n)=>{const{children:o,...r}=t;if(e.isValidElement(o)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...e)=>{const t=a(...e);return r(...e),t}:r&&(n[o]=r):"style"===o?n[o]={...r,...a}:"className"===o&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}(r,o.props);return o.type!==e.Fragment&&(a.ref=n?jt(n,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Gt=Symbol("radix.slottable");function Zt(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Gt}var Xt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const o=Vt(`Primitive.${n}`),r=e.forwardRef((e,t)=>{const{asChild:r,...a}=e,i=r?o:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),g(i,{...a,ref:t})});return r.displayName=`Primitive.${n}`,{...t,[n]:r}},{});function Qt(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}var Jt,en="dismissableLayer.update",tn="dismissableLayer.pointerDownOutside",nn="dismissableLayer.focusOutside",on=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=t,d=e.useContext(on),[u,p]=e.useState(null),f=u?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=Lt(n,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),x=u?v.indexOf(u):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,k=x>=b,N=function(t,n=globalThis?.document){const o=Qt(t),r=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let t=function(){sn(tn,o,r,{discrete:!0})};const r={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);r.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,o]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));k&&!n&&(a?.(e),s?.(e),e.defaultPrevented||l?.())},f),C=function(t,n=globalThis?.document){const o=Qt(t),r=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!r.current){sn(nn,o,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||l?.())},f);return function(t,n=globalThis?.document){const o=Qt(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&o(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[o,n])}(e=>{x===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),e.useEffect(()=>{if(u)return o&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Jt=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),an(),()=>{o&&1===d.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=Jt)}},[u,f,o,d]),e.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),an())},[u,d]),e.useEffect(()=>{const e=()=>m({});return document.addEventListener(en,e),()=>document.removeEventListener(en,e)},[]),g(Xt.div,{...c,ref:h,style:{pointerEvents:w?k?"auto":"none":void 0,...t.style},onFocusCapture:Wt(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Wt(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Wt(t.onPointerDownCapture,N.onPointerDownCapture)})});rn.displayName="DismissableLayer";function an(){const e=new CustomEvent(en);document.dispatchEvent(e)}function sn(e,t,n,{discrete:o}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?function(e,t){e&&x.flushSync(()=>e.dispatchEvent(t))}(r,a):r.dispatchEvent(a)}e.forwardRef((t,n)=>{const o=e.useContext(on),r=e.useRef(null),a=Lt(n,r);return e.useEffect(()=>{const e=r.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),g(Xt.div,{...t,ref:a})}).displayName="DismissableLayerBranch";var ln="focusScope.autoFocusOnMount",cn="focusScope.autoFocusOnUnmount",dn={bubbles:!1,cancelable:!0},un=e.forwardRef((t,n)=>{const{loop:o=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=t,[l,c]=e.useState(null),d=Qt(a),u=Qt(i),p=e.useRef(null),f=Lt(n,e=>c(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:hn(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||hn(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&hn(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return l&&o.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[r,l,m.paused]),e.useEffect(()=>{if(l){vn.add(m);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(ln,dn);l.addEventListener(ln,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(hn(o,{select:t}),document.activeElement!==n)return}((e=pn(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&hn(l))}return()=>{l.removeEventListener(ln,d),setTimeout(()=>{const e=new CustomEvent(cn,dn);l.addEventListener(cn,u),l.dispatchEvent(e),e.defaultPrevented||hn(t??document.body,{select:!0}),l.removeEventListener(cn,u),vn.remove(m)},0)}}var e},[l,d,u,m]);const h=e.useCallback(e=>{if(!o&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=pn(e),n=fn(t,e),o=fn(t.reverse(),e);return[n,o]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&hn(a,{select:!0})):(e.preventDefault(),o&&hn(r,{select:!0})):n===t&&e.preventDefault()}},[o,r,m.paused]);return g(Xt.div,{tabIndex:-1,...s,ref:f,onKeyDown:h})});function pn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fn(e,t){for(const n of e)if(!mn(n,{upTo:t}))return n}function mn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function hn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}un.displayName="FocusScope";var vn=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=gn(e,t),e.unshift(t)},remove(t){e=gn(e,t),e[0]?.resume()}}}();function gn(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}var yn=e.forwardRef((t,n)=>{const{container:o,...r}=t,[a,i]=e.useState(!1);$t(()=>i(!0),[]);const s=o||a&&globalThis?.document?.body;return s?w.createPortal(g(Xt.div,{...r,ref:n}),s):null});yn.displayName="Portal";var bn=t=>{const{present:n,children:o}=t,r=function(t){const[n,o]=e.useState(),r=e.useRef(null),a=e.useRef(t),i=e.useRef("none"),s=t?"mounted":"unmounted",[l,c]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=xn(r.current);i.current="mounted"===l?e:"none"},[l]),$t(()=>{const e=r.current,n=a.current;if(n!==t){const o=i.current,r=xn(e);if(t)c("MOUNT");else if("none"===r||"none"===e?.display)c("UNMOUNT");else{c(n&&o!==r?"ANIMATION_OUT":"UNMOUNT")}a.current=t}},[t,c]),$t(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,o=o=>{const i=xn(r.current).includes(CSS.escape(o.animationName));if(o.target===n&&i&&(c("ANIMATION_END"),!a.current)){const o=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=o)})}},s=e=>{e.target===n&&(i.current=xn(r.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",o),n.addEventListener("animationend",o),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",o),n.removeEventListener("animationend",o)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:e.useCallback(e=>{r.current=e?getComputedStyle(e):null,o(e)},[])}}(n),a="function"==typeof o?o({present:r.isPresent}):e.Children.only(o),i=Lt(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(a));return"function"==typeof o||r.isPresent?e.cloneElement(a,{ref:i}):null};function xn(e){return e?.animationName||"none"}bn.displayName="Presence";var wn=0;function kn(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Nn()),document.body.insertAdjacentElement("beforeend",e[1]??Nn()),wn++,()=>{1===wn&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),wn--}},[])}function Nn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Cn.apply(this,arguments)};function _n(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}function Dn(e,t,n,o){return new(n||(n=Promise))(function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,s)}l((o=o.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var Sn="right-scroll-bar-position",En="width-before-scroll-bar";function Mn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var On="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Tn=new WeakMap;function Rn(e,t){var n,o,a,i=(n=null,o=function(t){return e.forEach(function(e){return Mn(e,t)})},(a=r(function(){return{value:n,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=o,a.facade);return On(function(){var t=Tn.get(i);if(t){var n=new Set(t),o=new Set(e),r=i.current;n.forEach(function(e){o.has(e)||Mn(e,null)}),o.forEach(function(e){n.has(e)||Mn(e,r)})}Tn.set(i,e)},[e]),i}function Pn(e){return e}var An=function(t){var n=t.sideCar,o=_n(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return e.createElement(r,Cn({},o))};An.isSideCarExport=!0;var In=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pn);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=Cn({async:!0,ssr:!1},e),t}(),Fn=function(){},zn=e.forwardRef(function(t,n){var o=e.useRef(null),r=e.useState({onScrollCapture:Fn,onWheelCapture:Fn,onTouchMoveCapture:Fn}),a=r[0],i=r[1],s=t.forwardProps,l=t.children,c=t.className,d=t.removeScrollBar,u=t.enabled,p=t.shards,f=t.sideCar,m=t.noRelative,h=t.noIsolation,v=t.inert,g=t.allowPinchZoom,y=t.as,b=void 0===y?"div":y,x=t.gapMode,w=_n(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,N=Rn([o,n]),C=Cn(Cn({},w),a);return e.createElement(e.Fragment,null,u&&e.createElement(k,{sideCar:In,removeScrollBar:d,shards:p,noRelative:m,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!g,lockRef:o,gapMode:x}),s?e.cloneElement(e.Children.only(l),Cn(Cn({},C),{ref:N})):e.createElement(b,Cn({},C,{className:c,ref:N}),l))});zn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zn.classNames={fullWidth:En,zeroRight:Sn};function jn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Ln=function(){var e=0,t=null;return{add:function(n){var o,r;0==e&&(t=jn())&&(r=n,(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wn=function(){var t,n=(t=Ln(),function(n,o){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&o])});return function(e){var t=e.styles,o=e.dynamic;return n(t,o),null}},$n={left:0,top:0,right:0,gap:0},Bn=function(e){return parseInt(e||"",10)||0},Yn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return $n;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[Bn(n),Bn(o),Bn(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},qn=Wn(),Hn="data-scroll-locked",Un=function(e,t,n,o){var r=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(s,"px ").concat(o,";\n }\n body[").concat(Hn,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Sn," {\n right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(En," {\n margin-right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(Sn," .").concat(Sn," {\n right: 0 ").concat(o,";\n }\n \n .").concat(En," .").concat(En," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(Hn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Vn=function(){var e=parseInt(document.body.getAttribute(Hn)||"0",10);return isFinite(e)?e:0},Kn=function(t){var n=t.noRelative,o=t.noImportant,r=t.gapMode,a=void 0===r?"margin":r;e.useEffect(function(){return document.body.setAttribute(Hn,(Vn()+1).toString()),function(){var e=Vn()-1;e<=0?document.body.removeAttribute(Hn):document.body.setAttribute(Hn,e.toString())}},[]);var i=e.useMemo(function(){return Yn(a)},[a]);return e.createElement(qn,{styles:Un(i,!n,a,o?"":"!important")})},Gn=!1;if("undefined"!=typeof window)try{var Zn=Object.defineProperty({},"passive",{get:function(){return Gn=!0,!0}});window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch(e){Gn=!1}var Xn=!!Gn&&{passive:!1},Qn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Jn=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!=typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),eo(e,o)){var r=to(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},eo=function(e,t){return"v"===e?function(e){return Qn(e,"overflowY")}(t):function(e){return Qn(e,"overflowX")}(t)},to=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},no=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oo=function(e){return[e.deltaX,e.deltaY]},ro=function(e){return e&&"current"in e?e.current:e},ao=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},io=0,so=[];function lo(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var co,uo=(co=function(t){var n=e.useRef([]),o=e.useRef([0,0]),r=e.useRef(),a=e.useState(io++)[0],i=e.useState(Wn)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(ro),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=no(e),i=o.current,l="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===d||f.contains(d)))return!1;var m=Jn(u,d);if(!m)return!0;if(m?n=u:(n="v"===u?"h":"v",m=Jn(u,d)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=n),!n)return!0;var h=r.current||n;return function(e,t,n,o){var r=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=r*o,i=n.target,s=t.contains(i),l=!1,c=a>0,d=0,u=0;do{if(!i)break;var p=to(e,i),f=p[0],m=p[1]-p[2]-r*f;(f||m)&&eo(e,i)&&(d+=m,u+=f);var h=i.parentNode;i=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return(c&&Math.abs(d)<1||!c&&Math.abs(u)<1)&&(l=!0),l}(h,t,e,"h"===h?l:c)},[]),c=e.useCallback(function(e){var t=e;if(so.length&&so[so.length-1]===i){var o="deltaY"in t?oo(t):no(t),r=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,o)})[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var a=(s.current.shards||[]).map(ro).filter(Boolean).filter(function(e){return e.contains(t.target)});(a.length>0?l(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=e.useCallback(function(e,t,o,r){var a={name:e,delta:t,target:o,should:r,shadowParent:lo(o)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),u=e.useCallback(function(e){o.current=no(e),r.current=void 0},[]),p=e.useCallback(function(e){d(e.type,oo(e),e.target,l(e,t.lockRef.current))},[]),f=e.useCallback(function(e){d(e.type,no(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return so.push(i),t.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Xn),document.addEventListener("touchmove",c,Xn),document.addEventListener("touchstart",u,Xn),function(){so=so.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,Xn),document.removeEventListener("touchmove",c,Xn),document.removeEventListener("touchstart",u,Xn)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(i,{styles:ao(a)}):null,m?e.createElement(Kn,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},In.useMedium(co),An),po=e.forwardRef(function(t,n){return e.createElement(zn,Cn({},t,{ref:n,sideCar:uo}))});po.classNames=zn.classNames;var fo=new WeakMap,mo=new WeakMap,ho={},vo=0,go=function(e){return e&&(e.host||go(e.parentNode))},yo=function(e,t,n,o){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=go(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);ho[n]||(ho[n]=new WeakMap);var a=ho[n],i=[],s=new Set,l=new Set(r),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};r.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))d(e);else try{var t=e.getAttribute(o),r=null!==t&&"false"!==t,l=(fo.get(e)||0)+1,c=(a.get(e)||0)+1;fo.set(e,l),a.set(e,c),i.push(e),1===l&&r&&mo.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(o,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),s.clear(),vo++,function(){i.forEach(function(e){var t=fo.get(e)-1,r=a.get(e)-1;fo.set(e,t),a.set(e,r),t||(mo.has(e)||e.removeAttribute(o),mo.delete(e)),r||e.removeAttribute(n)}),--vo||(fo=new WeakMap,fo=new WeakMap,mo=new WeakMap,ho={})}},bo=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),yo(o,r,n,"aria-hidden")):function(){return null}},xo="Dialog",[wo,ko]=It(xo),[No,Co]=wo(xo),_o=t=>{const{__scopeDialog:n,children:o,open:r,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,l=e.useRef(null),c=e.useRef(null),[d,u]=Ut({prop:r,defaultProp:a??!1,onChange:i,caller:xo});return g(No,{scope:n,triggerRef:l,contentRef:c,contentId:qt(),titleId:qt(),descriptionId:qt(),open:d,onOpenChange:u,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),modal:s,children:o})};_o.displayName=xo;var Do="DialogTrigger",So=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Do,n),a=Lt(t,r.triggerRef);return g(Xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Vo(r.open),...o,ref:a,onClick:Wt(e.onClick,r.onOpenToggle)})});So.displayName=Do;var Eo="DialogPortal",[Mo,Oo]=wo(Eo,{forceMount:void 0}),To=t=>{const{__scopeDialog:n,forceMount:o,children:r,container:a}=t,i=Co(Eo,n);return g(Mo,{scope:n,forceMount:o,children:e.Children.map(r,e=>g(bn,{present:o||i.open,children:g(yn,{asChild:!0,container:a,children:e})}))})};To.displayName=Eo;var Ro="DialogOverlay",Po=e.forwardRef((e,t)=>{const n=Oo(Ro,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=Co(Ro,e.__scopeDialog);return a.modal?g(bn,{present:o||a.open,children:g(Io,{...r,ref:t})}):null});Po.displayName=Ro;var Ao=Vt("DialogOverlay.RemoveScroll"),Io=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Ro,n);return g(po,{as:Ao,allowPinchZoom:!0,shards:[r.contentRef],children:g(Xt.div,{"data-state":Vo(r.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),Fo="DialogContent",zo=e.forwardRef((e,t)=>{const n=Oo(Fo,e.__scopeDialog),{forceMount:o=n.forceMount,...r}=e,a=Co(Fo,e.__scopeDialog);return g(bn,{present:o||a.open,children:a.modal?g(jo,{...r,ref:t}):g(Lo,{...r,ref:t})})});zo.displayName=Fo;var jo=e.forwardRef((t,n)=>{const o=Co(Fo,t.__scopeDialog),r=e.useRef(null),a=Lt(n,o.contentRef,r);return e.useEffect(()=>{const e=r.current;if(e)return bo(e)},[]),g(Wo,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Wt(t.onFocusOutside,e=>e.preventDefault())})}),Lo=e.forwardRef((t,n)=>{const o=Co(Fo,t.__scopeDialog),r=e.useRef(!1),a=e.useRef(!1);return g(Wo,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||o.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target,i=o.triggerRef.current?.contains(n);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),Wo=e.forwardRef((t,n)=>{const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=t,l=Co(Fo,o),c=e.useRef(null),d=Lt(n,c);return kn(),y(b,{children:[g(un,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:g(rn,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Vo(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),y(b,{children:[g(Xo,{titleId:l.titleId}),g(Qo,{contentRef:c,descriptionId:l.descriptionId})]})]})}),$o="DialogTitle",Bo=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co($o,n);return g(Xt.h2,{id:r.titleId,...o,ref:t})});Bo.displayName=$o;var Yo="DialogDescription",qo=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Yo,n);return g(Xt.p,{id:r.descriptionId,...o,ref:t})});qo.displayName=Yo;var Ho="DialogClose",Uo=e.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,r=Co(Ho,n);return g(Xt.button,{type:"button",...o,ref:t,onClick:Wt(e.onClick,()=>r.onOpenChange(!1))})});function Vo(e){return e?"open":"closed"}Uo.displayName=Ho;var Ko="DialogTitleWarning",[Go,Zo]=function(t,n){const o=e.createContext(n),r=t=>{const{children:n,...r}=t,a=e.useMemo(()=>r,Object.values(r));return g(o.Provider,{value:a,children:n})};return r.displayName=t+"Provider",[r,function(r){const a=e.useContext(o);if(a)return a;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]}(Ko,{contentName:Fo,titleName:$o,docsSlug:"dialog"}),Xo=({titleId:t})=>{const n=Zo(Ko),o=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)||console.error(o)}},[o,t]),null},Qo=({contentRef:t,descriptionId:n})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zo("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{const e=t.current?.getAttribute("aria-describedby");if(n&&e){document.getElementById(n)||console.warn(o)}},[o,t,n]),null},Jo=_o,er=So,tr=To,nr=Po,or=zo,rr=Bo,ar=qo,ir=Uo,sr="AlertDialog",[lr]=It(sr,[ko]),cr=ko(),dr=e=>{const{__scopeAlertDialog:t,...n}=e,o=cr(t);return g(Jo,{...o,...n,modal:!0})};dr.displayName=sr;var ur=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(er,{...r,...o,ref:t})});ur.displayName="AlertDialogTrigger";var pr=e=>{const{__scopeAlertDialog:t,...n}=e,o=cr(t);return g(tr,{...o,...n})};pr.displayName="AlertDialogPortal";var fr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(nr,{...r,...o,ref:t})});fr.displayName="AlertDialogOverlay";var mr="AlertDialogContent",[hr,vr]=lr(mr),gr=function(e){const t=({children:e})=>g(b,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=Gt,t}("AlertDialogContent"),yr=e.forwardRef((t,n)=>{const{__scopeAlertDialog:o,children:r,...a}=t,i=cr(o),s=e.useRef(null),l=Lt(n,s),c=e.useRef(null);return g(Go,{contentName:mr,titleName:br,docsSlug:"alert-dialog",children:g(hr,{scope:o,cancelRef:c,children:y(or,{role:"alertdialog",...i,...a,ref:l,onOpenAutoFocus:Wt(a.onOpenAutoFocus,e=>{e.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[g(gr,{children:r}),g(Dr,{contentRef:s})]})})})});yr.displayName=mr;var br="AlertDialogTitle",xr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(rr,{...r,...o,ref:t})});xr.displayName=br;var wr="AlertDialogDescription",kr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(ar,{...r,...o,ref:t})});kr.displayName=wr;var Nr=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,r=cr(n);return g(ir,{...r,...o,ref:t})});Nr.displayName="AlertDialogAction";var Cr="AlertDialogCancel",_r=e.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...o}=e,{cancelRef:r}=vr(Cr,n),a=cr(n),i=Lt(t,r);return g(ir,{...a,...o,ref:i})});_r.displayName=Cr;var Dr=({contentRef:t})=>{const n=`\`${mr}\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \`${mr}\` by passing a \`${wr}\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${mr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return e.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},Sr=dr,Er=ur,Mr=pr,Or=fr,Tr=yr,Rr=Nr,Pr=_r,Ar=xr,Ir=kr,Fr=Symbol.for("react.lazy"),zr=e[" use ".trim().toString()];function jr(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Fr&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function Lr(t){const n=$r(t),o=e.forwardRef((t,o)=>{let{children:r,...a}=t;jr(r)&&"function"==typeof zr&&(r=zr(r._payload));const i=e.Children.toArray(r),s=i.find(Yr);if(s){const t=s.props.children,r=i.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return g(n,{...a,ref:o,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return g(n,{...a,ref:o,children:r})});return o.displayName=`${t}.Slot`,o}var Wr=Lr("Slot");function $r(t){const n=e.forwardRef((t,n)=>{let{children:o,...r}=t;if(jr(o)&&"function"==typeof zr&&(o=zr(o._payload)),e.isValidElement(o)){const t=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o),a=function(e,t){const n={...t};for(const o in t){const r=e[o],a=t[o];/^on[A-Z]/.test(o)?r&&a?n[o]=(...e)=>{const t=a(...e);return r(...e),t}:r&&(n[o]=r):"style"===o?n[o]={...r,...a}:"className"===o&&(n[o]=[r,a].filter(Boolean).join(" "))}return{...e,...n}}(r,o.props);return o.type!==e.Fragment&&(a.ref=n?jt(n,t):t),e.cloneElement(o,a)}return e.Children.count(o)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var Br=Symbol("radix.slottable");function Yr(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===Br}const qr=E("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive hover:cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-11 rounded-md px-6 has-[>svg]:px-4",icon:"size-10","icon-sm":"size-8","icon-lg":"size-11"}},defaultVariants:{variant:"default",size:"default"}}),Hr=e=>"number"==typeof e?`${e}px`:e,Ur=e.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,icon:r,label:a,iconPosition:i="end",height:s,width:l,style:c,children:d,...u},p)=>{const f=null!=r||null!=a;return g(o?Wr:"button",{ref:p,"data-slot":"button",className:Ye(qr({variant:t,size:n}),e),style:{...c,...null!=s?{height:Hr(s)}:{},...null!=l?{width:Hr(l)}:{}},...u,children:f?y(b,{children:["start"===i&&r,null!=a&&g("span",{"data-slot":"button-label",children:a}),"end"===i&&r]}):d})});function Vr({...e}){return g(Sr,{"data-slot":"alert-dialog",...e})}function Kr({...e}){return g(Er,{"data-slot":"alert-dialog-trigger",...e})}function Gr({...e}){return g(Mr,{"data-slot":"alert-dialog-portal",...e})}function Zr({className:e,...t}){return g(Or,{"data-slot":"alert-dialog-overlay",className:Ye("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Xr({className:e,...t}){return y(Gr,{children:[g(Zr,{}),g(Tr,{"data-slot":"alert-dialog-content",className:Ye("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function Qr({className:e,...t}){return g("div",{"data-slot":"alert-dialog-header",className:Ye("flex flex-col gap-2 text-center sm:text-left",e),...t})}function Jr({className:e,...t}){return g("div",{"data-slot":"alert-dialog-footer",className:Ye("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}function ea({className:e,...t}){return g(Ar,{"data-slot":"alert-dialog-title",className:Ye("text-lg font-semibold",e),...t})}function ta({className:e,...t}){return g(Ir,{"data-slot":"alert-dialog-description",className:Ye("text-muted-foreground text-sm",e),...t})}function na({className:e,...t}){return g(Rr,{className:Ye(qr(),e),...t})}function oa({className:e,...t}){return g(Pr,{className:Ye(qr({variant:"outline"}),e),...t})}Ur.displayName="Button";const ra={Root:function({open:e,onOpenChange:t,children:n}){return g(Vr,{open:e,onOpenChange:t,children:n})},Content:function({children:e,className:t}){return g(Xr,{className:Ye("bg-white",t),children:e})},Header:function({children:e}){return g(Qr,{children:e})},Title:function({children:e}){return g(ea,{children:e})},Description:function({children:e}){return g(ta,{children:e})},Footer:function({children:e}){return g(Jr,{children:e})},Action:function({children:e,onClick:t,variant:n="default",className:o=""}){return g(na,{onClick:t,className:Ye("bg-[#026CB6] text-[#FFFFFF]",`${"destructive"===n?"bg-destructive text-destructive-foreground hover:bg-destructive/90":""} ${o}`.trim()),children:e})},Cancel:function({children:e,onClick:t,className:n}){return g(oa,{onClick:t,className:Ye("bg-[#D1D5DB] text-[#3F3F46]",n),children:e})}},aa=6048e5,ia=Symbol.for("constructDateFrom");function sa(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ia in e?e[ia](t):e instanceof Date?new e.constructor(t):new Date(t)}function la(e,t){return sa(t||e,e)}function ca(e,t,n){const o=la(e,n?.in);return isNaN(t)?sa(e,NaN):t?(o.setDate(o.getDate()+t),o):o}function da(e,t,n){const o=la(e,n?.in);if(isNaN(t))return sa(e,NaN);if(!t)return o;const r=o.getDate(),a=sa(e,o.getTime());a.setMonth(o.getMonth()+t+1,0);return r>=a.getDate()?a:(o.setFullYear(a.getFullYear(),a.getMonth(),r),o)}let ua={};function pa(){return ua}function fa(e,t){const n=pa(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=la(e,t?.in),a=r.getDay(),i=(a<o?7:0)+a-o;return r.setDate(r.getDate()-i),r.setHours(0,0,0,0),r}function ma(e,t){return fa(e,{...t,weekStartsOn:1})}function ha(e,t){const n=la(e,t?.in),o=n.getFullYear(),r=sa(n,0);r.setFullYear(o+1,0,4),r.setHours(0,0,0,0);const a=ma(r),i=sa(n,0);i.setFullYear(o,0,4),i.setHours(0,0,0,0);const s=ma(i);return n.getTime()>=a.getTime()?o+1:n.getTime()>=s.getTime()?o:o-1}function va(e){const t=la(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ga(e,...t){const n=sa.bind(null,t.find(e=>"object"==typeof e));return t.map(n)}function ya(e,t){const n=la(e,t?.in);return n.setHours(0,0,0,0),n}function ba(e,t,n){const[o,r]=ga(0,e,t),a=ya(o),i=ya(r),s=+a-va(a),l=+i-va(i);return Math.round((s-l)/864e5)}function xa(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function wa(e,t,n){const[o,r]=ga(0,e,t);return 12*(o.getFullYear()-r.getFullYear())+(o.getMonth()-r.getMonth())}function ka(e,t){const n=la(e,t?.in);return n.setHours(23,59,59,999),n}function Na(e,t){const[n,o]=ga(0,t.start,t.end);return{start:n,end:o}}function Ca(e,t){const n=la(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _a(e,t){const n=pa(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=la(e,t?.in),a=r.getDay(),i=6+(a<o?-7:0)-(a-o);return r.setDate(r.getDate()+i),r.setHours(23,59,59,999),r}const Da={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Sa(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ea={date:Sa({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Sa({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Sa({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ma={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Oa(e){return(t,n)=>{let o;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;o=e.formattingValues[r]||e.formattingValues[t]}else{const t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;o=e.values[r]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const Ta={ordinalNumber:(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Oa({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Oa({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Oa({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Oa({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Oa({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Ra(e){return(t,n={})=>{const o=n.width,r=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(r);if(!a)return null;const i=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,e=>e.test(i)):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,e=>e.test(i));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}const Pa={ordinalNumber:(Aa={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Aa.matchPattern);if(!n)return null;const o=n[0],r=e.match(Aa.parsePattern);if(!r)return null;let a=Aa.valueCallback?Aa.valueCallback(r[0]):r[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(o.length)}}),era:Ra({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ra({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ra({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ra({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ra({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Aa;const Ia={code:"en-US",formatDistance:(e,t,n)=>{let o;const r=Da[e];return o="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:Ea,formatRelative:(e,t,n,o)=>Ma[e],localize:Ta,match:Pa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Fa(e,t){const n=la(e,t?.in),o=+ma(n)-+function(e,t){const n=ha(e,t),o=sa(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),ma(o)}(n);return Math.round(o/aa)+1}function za(e,t){const n=la(e,t?.in),o=n.getFullYear(),r=pa(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=sa(t?.in||e,0);i.setFullYear(o+1,0,a),i.setHours(0,0,0,0);const s=fa(i,t),l=sa(t?.in||e,0);l.setFullYear(o,0,a),l.setHours(0,0,0,0);const c=fa(l,t);return+n>=+s?o+1:+n>=+c?o:o-1}function ja(e,t){const n=la(e,t?.in),o=+fa(n,t)-+function(e,t){const n=pa(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,r=za(e,t),a=sa(t?.in||e,0);return a.setFullYear(r,0,o),a.setHours(0,0,0,0),fa(a,t)}(n,t);return Math.round(o/aa)+1}function La(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Wa={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return La("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):La(n+1,2)},d:(e,t)=>La(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>La(e.getHours()%12||12,t.length),H:(e,t)=>La(e.getHours(),t.length),m:(e,t)=>La(e.getMinutes(),t.length),s:(e,t)=>La(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds();return La(Math.trunc(o*Math.pow(10,n-3)),t.length)}},$a="midnight",Ba="noon",Ya="morning",qa="afternoon",Ha="evening",Ua="night",Va={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return n.ordinalNumber(o,{unit:"year"})}return Wa.y(e,t)},Y:function(e,t,n,o){const r=za(e,o),a=r>0?r:1-r;if("YY"===t){return La(a%100,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):La(a,t.length)},R:function(e,t){return La(ha(e),t.length)},u:function(e,t){return La(e.getFullYear(),t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return La(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return La(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return Wa.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return La(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const r=ja(e,o);return"wo"===t?n.ordinalNumber(r,{unit:"week"}):La(r,t.length)},I:function(e,t,n){const o=Fa(e);return"Io"===t?n.ordinalNumber(o,{unit:"week"}):La(o,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):Wa.d(e,t)},D:function(e,t,n){const o=function(e,t){const n=la(e,t?.in);return ba(n,Ca(n))+1}(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):La(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const r=e.getDay(),a=(r-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return La(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const r=e.getDay(),a=(r-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return La(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),r=0===o?7:o;switch(t){case"i":return String(r);case"ii":return La(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let r;switch(r=12===o?Ba:0===o?$a:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let r;switch(r=o>=17?Ha:o>=12?qa:o>=4?Ya:Ua,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return Wa.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):Wa.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return"Ko"===t?n.ordinalNumber(o,{unit:"hour"}):La(o,t.length)},k:function(e,t,n){let o=e.getHours();return 0===o&&(o=24),"ko"===t?n.ordinalNumber(o,{unit:"hour"}):La(o,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Wa.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Wa.s(e,t)},S:function(e,t){return Wa.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Ga(o);case"XXXX":case"XX":return Za(o);default:return Za(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return Ga(o);case"xxxx":case"xx":return Za(o);default:return Za(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ka(o,":");default:return"GMT"+Za(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ka(o,":");default:return"GMT"+Za(o,":")}},t:function(e,t,n){return La(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return La(+e,t.length)}};function Ka(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),r=Math.trunc(o/60),a=o%60;return 0===a?n+String(r):n+String(r)+t+La(a,2)}function Ga(e,t){if(e%60==0){return(e>0?"-":"+")+La(Math.abs(e)/60,2)}return Za(e,t)}function Za(e,t=""){const n=e>0?"-":"+",o=Math.abs(e);return n+La(Math.trunc(o/60),2)+t+La(o%60,2)}const Xa=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Qa=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ja={p:Qa,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],r=n[2];if(!r)return Xa(e,t);let a;switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",Xa(o,t)).replace("{{time}}",Qa(r,t))}},ei=/^D+$/,ti=/^Y+$/,ni=["D","DD","YY","YYYY"];const oi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ri=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ai=/^'([^]*?)'?$/,ii=/''/g,si=/[a-zA-Z]/;function li(e,t,n){const o=pa(),r=n?.locale??o.locale??Ia,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=la(e,n?.in);if(!function(e){return!(!xa(e)&&"number"!=typeof e||isNaN(+la(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(ri).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Ja[t])(e,r.formatLong)}return e}).join("").match(oi).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:ci(e)};if(Va[t])return{isToken:!0,value:e};if(t.match(si))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});r.localize.preprocessor&&(l=r.localize.preprocessor(s,l));const c={firstWeekContainsDate:a,weekStartsOn:i,locale:r};return l.map(o=>{if(!o.isToken)return o.value;const a=o.value;(!n?.useAdditionalWeekYearTokens&&function(e){return ti.test(e)}(a)||!n?.useAdditionalDayOfYearTokens&&function(e){return ei.test(e)}(a))&&function(e,t,n){const o=function(e,t,n){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(o),ni.includes(e))throw new RangeError(o)}(a,t,String(e));return(0,Va[a[0]])(s,a,r.localize,c)}).join("")}function ci(e){const t=e.match(ai);return t?t[1].replace(ii,"'"):e}function di(e,t,n){const o=la(e,n?.in),r=o.getFullYear(),a=o.getDate(),i=sa(e,0);i.setFullYear(r,t,15),i.setHours(0,0,0,0);const s=function(e,t){const n=la(e,t?.in),o=n.getFullYear(),r=n.getMonth(),a=sa(n,0);return a.setFullYear(o,r+1,0),a.setHours(0,0,0,0),a.getDate()}(i);return o.setMonth(t,Math.min(a,s)),o}const ui={},pi={};function fi(e,t){try{const n=(ui[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return n in pi?pi[n]:hi(n,n.split(":"))}catch{if(e in pi)return pi[e];const t=e?.match(mi);return t?hi(e,t.slice(1)):NaN}}const mi=/([+-]\d\d):?(\d\d)?/;function hi(e,t){const n=+(t[0]||0),o=+(t[1]||0),r=+(t[2]||0)/60;return pi[e]=60*n+o>0?60*n+o+r:60*n-o-r}class vi extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(fi(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),bi(this),yi(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new vi(...t,e):new vi(Date.now(),e)}withTimeZone(e){return new vi(+this,e)}getTimezoneOffset(){const e=-fi(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),yi(this),+this}[Symbol.for("constructDateFrom")](e){return new vi(+new Date(e),this.timeZone)}}const gi=/^(get|set)(?!UTC)/;function yi(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-fi(e.timeZone,e)))}function bi(e){const t=fi(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),o=new Date(+e);o.setUTCHours(o.getUTCHours()-1);const r=-new Date(+e).getTimezoneOffset(),a=r- -new Date(+o).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const s=r-n;s&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);const l=new Date(+e);l.setUTCSeconds(0);const c=r>0?l.getSeconds():(l.getSeconds()-60)%60,d=Math.round(-60*fi(e.timeZone,e))%60;(d||c)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+c));const u=fi(e.timeZone,e),p=u>0?Math.floor(u):Math.ceil(u),f=-new Date(+e).getTimezoneOffset()-p-s;if(p!==n&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);const t=fi(e.timeZone,e),n=p-(t>0?Math.floor(t):Math.ceil(t));n&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+n),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!gi.test(e))return;const t=e.replace(gi,"$1UTC");vi.prototype[t]&&(e.startsWith("get")?vi.prototype[e]=function(){return this.internal[t]()}:(vi.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bi(e),+this},vi.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),yi(this),+this}))});class xi extends vi{static tz(e,...t){return t.length?new xi(...t,e):new xi(Date.now(),e)}toISOString(){const[e,t,n]=this.tzComponents(),o=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,n,o]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${o}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,n,o]=this.tzComponents();return`${e} GMT${t}${n}${o} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new xi(+this,e)}[Symbol.for("constructDateFrom")](e){return new xi(+new Date(e),this.timeZone)}}function wi(e,t){const n=t.startOfMonth(e),o=n.getDay();return 1===o?n:0===o?t.addDays(n,-6):t.addDays(n,-1*(o-1))}const ki={...Ia,labels:{labelDayButton:(e,t,n,o)=>{let r;r=o&&"function"==typeof o.format?o.format.bind(o):(e,t)=>li(e,t,{locale:Ia,...n});let a=r(e,"PPPP");return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let o;return o=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>li(e,n,{locale:Ia,...t}),o(e,"LLLL yyyy")},labelGridcell:(e,t,n,o)=>{let r;r=o&&"function"==typeof o.format?o.format.bind(o):(e,t)=>li(e,t,{locale:Ia,...n});let a=r(e,"PPPP");return t?.today&&(a=`Today, ${a}`),a},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let o;return o=n&&"function"==typeof n.format?n.format.bind(n):(e,n)=>li(e,n,{locale:Ia,...t}),o(e,"cccc")}}};class Ni{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?xi.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new xi(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):ca(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):da(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,n){return ca(e,7*t,n)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,n){return da(e,12*t,n)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):ba(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):wa(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e){const{start:t,end:n}=Na(0,e);let o=+t>+n;const r=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0),a.setDate(1);const i=[];for(;+a<=r;)i.push(sa(t,a)),a.setMonth(a.getMonth()+1);return o?i.reverse():i}(e),this.eachYearOfInterval=e=>{const t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):function(e){const{start:t,end:n}=Na(0,e);let o=+t>+n;const r=o?+t:+n,a=o?n:t;a.setHours(0,0,0,0),a.setMonth(0,1);const i=[];for(;+a<=r;)i.push(sa(t,a)),a.setFullYear(a.getFullYear()+1);return o?i.reverse():i}(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;const o=[];return n.forEach(e=>{o.push(new Date(e,0,1))}),o},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):function(e,t){const n=wi(e,t),o=function(e,t){const n=t.startOfMonth(e),o=n.getDay()>0?n.getDay():7,r=t.addDays(e,1-o),a=t.addDays(r,34);return t.getMonth(e)===t.getMonth(a)?5:4}(e,t);return t.addDays(n,7*o-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return _a(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):function(e,t){const n=la(e,t?.in),o=n.getMonth();return n.setFullYear(n.getFullYear(),o+1,0),n.setHours(23,59,59,999),n}(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):_a(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const n=la(e,t?.in),o=n.getFullYear();return n.setFullYear(o+1,0,0),n.setHours(23,59,59,999),n}(e),this.format=(e,t,n)=>{const o=this.overrides?.format?this.overrides.format(e,t,this.options):li(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(o):o},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):Fa(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return la(e,t?.in).getMonth()}(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return la(e,t?.in).getFullYear()}(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):ja(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):function(e,t){return+la(e)>+la(t)}(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):function(e,t){return+la(e)<+la(t)}(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):xa(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t){const[n,o]=ga(0,e,t);return+ya(n)===+ya(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t){const[n,o]=ga(0,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t){const[n,o]=ga(0,e,t);return n.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let n,o=t?.in;return e.forEach(e=>{o||"object"!=typeof e||(o=sa.bind(null,e));const t=la(e,o);(!n||n<t||isNaN(+t))&&(n=t)}),sa(o,n||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let n,o=t?.in;return e.forEach(e=>{o||"object"!=typeof e||(o=sa.bind(null,e));const t=la(e,o);(!n||n>t||isNaN(+t))&&(n=t)}),sa(o,n||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):di(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,n){const o=la(e,n?.in);return isNaN(+o)?sa(e,NaN):(o.setFullYear(t),o)}(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):wi(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):ya(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):ma(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):function(e,t){const n=la(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):fa(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Ca(e),this.options={locale:ki,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&Ni.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:t,timeZone:n,numerals:o}=this.options,r=t?.code;if(r&&Ni.yearFirstLocales.has(r))try{const t=new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:n,numberingSystem:o});return t.format(e)}catch{}const a="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(e,a)}}Ni.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Ci=new Ni;class _i{constructor(e,t,n=Ci){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,"yyyy-MM-dd"),this.displayMonthId=n.format(t,"yyyy-MM"),this.dateMonthId=n.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class Di{constructor(e,t){this.date=e,this.weeks=t}}class Si{constructor(e,t){this.days=t,this.weekNumber=e}}var Ei,Mi,Oi,Ti;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(Ei||(Ei={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(Mi||(Mi={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(Oi||(Oi={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(Ti||(Ti={}));const Ri=a(void 0);function Pi(){const e=i(Ri);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var Ai=Object.freeze({__proto__:null,Button:function(e){return t.createElement("button",{...e})},CaptionLabel:function(e){return t.createElement("span",{...e})},Chevron:function(e){const{size:n=24,orientation:o="left",className:r}=e;return t.createElement("svg",{className:r,width:n,height:n,viewBox:"0 0 24 24"},"up"===o&&t.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===o&&t.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===o&&t.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===o&&t.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))},Day:function(e){const{day:n,modifiers:o,...r}=e;return t.createElement("td",{...r})},DayButton:function(e){const{day:n,modifiers:o,...r}=e,a=t.useRef(null);return t.useEffect(()=>{o.focused&&a.current?.focus()},[o.focused]),t.createElement("button",{ref:a,...r})},Dropdown:function(e){const{options:n,className:o,components:r,classNames:a,...i}=e,s=[a[Ei.Dropdown],o].join(" "),l=n?.find(({value:e})=>e===i.value);return t.createElement("span",{"data-disabled":i.disabled,className:a[Ei.DropdownRoot]},t.createElement(r.Select,{className:s,...i},n?.map(({value:e,label:n,disabled:o})=>t.createElement(r.Option,{key:e,value:e,disabled:o},n))),t.createElement("span",{className:a[Ei.CaptionLabel],"aria-hidden":!0},l?.label,t.createElement(r.Chevron,{orientation:"down",size:18,className:a[Ei.Chevron]})))},DropdownNav:function(e){return t.createElement("div",{...e})},Footer:function(e){return t.createElement("div",{...e})},Month:function(e){const{calendarMonth:n,displayIndex:o,...r}=e;return t.createElement("div",{...r},e.children)},MonthCaption:function(e){const{calendarMonth:n,displayIndex:o,...r}=e;return t.createElement("div",{...r})},MonthGrid:function(e){return t.createElement("table",{...e})},Months:function(e){return t.createElement("div",{...e})},MonthsDropdown:function(e){const{components:n}=Pi();return t.createElement(n.Dropdown,{...e})},Nav:function(e){const{onPreviousClick:n,onNextClick:o,previousMonth:r,nextMonth:a,...i}=e,{components:l,classNames:c,labels:{labelPrevious:d,labelNext:u}}=Pi(),p=s(e=>{a&&o?.(e)},[a,o]),f=s(e=>{r&&n?.(e)},[r,n]);return t.createElement("nav",{...i},t.createElement(l.PreviousMonthButton,{type:"button",className:c[Ei.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":d(r),onClick:f},t.createElement(l.Chevron,{disabled:!r||void 0,className:c[Ei.Chevron],orientation:"left"})),t.createElement(l.NextMonthButton,{type:"button",className:c[Ei.NextMonthButton],tabIndex:a?void 0:-1,"aria-disabled":!a||void 0,"aria-label":u(a),onClick:p},t.createElement(l.Chevron,{disabled:!a||void 0,orientation:"right",className:c[Ei.Chevron]})))},NextMonthButton:function(e){const{components:n}=Pi();return t.createElement(n.Button,{...e})},Option:function(e){return t.createElement("option",{...e})},PreviousMonthButton:function(e){const{components:n}=Pi();return t.createElement(n.Button,{...e})},Root:function(e){const{rootRef:n,...o}=e;return t.createElement("div",{...o,ref:n})},Select:function(e){return t.createElement("select",{...e})},Week:function(e){const{week:n,...o}=e;return t.createElement("tr",{...o})},WeekNumber:function(e){const{week:n,...o}=e;return t.createElement("th",{...o})},WeekNumberHeader:function(e){return t.createElement("th",{...e})},Weekday:function(e){return t.createElement("th",{...e})},Weekdays:function(e){return t.createElement("thead",{"aria-hidden":!0},t.createElement("tr",{...e}))},Weeks:function(e){return t.createElement("tbody",{...e})},YearsDropdown:function(e){const{components:n}=Pi();return t.createElement(n.Dropdown,{...e})}});function Ii(e,t,n=!1,o=Ci){let{from:r,to:a}=e;const{differenceInCalendarDays:i,isSameDay:s}=o;if(r&&a){i(a,r)<0&&([r,a]=[a,r]);return i(t,r)>=(n?1:0)&&i(a,t)>=(n?1:0)}return!n&&a?s(a,t):!(n||!r)&&s(r,t)}function Fi(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function zi(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function ji(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function Li(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function Wi(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function $i(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Bi(e,t,n=Ci){const o=Array.isArray(t)?t:[t],{isSameDay:r,differenceInCalendarDays:a,isAfter:i}=n;return o.some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return r(e,t);if($i(t,n))return t.some(t=>r(e,t));if(zi(t))return Ii(t,e,!1,n);if(Wi(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Fi(t)){const n=a(t.before,e)>0,o=a(t.after,e)<0;return i(t.before,t.after)?o&&n:n||o}return ji(t)?a(e,t.after)>0:Li(t)?a(t.before,e)>0:"function"==typeof t&&t(e)})}function Yi(e){return{...Ai,...e}}function qi(){const e={};for(const t in Ei)e[Ei[t]]=`rdp-${Ei[t]}`;for(const t in Mi)e[Mi[t]]=`rdp-${Mi[t]}`;for(const t in Oi)e[Oi[t]]=`rdp-${Oi[t]}`;for(const t in Ti)e[Ti[t]]=`rdp-${Ti[t]}`;return e}function Hi(e,t,n){return(n??new Ni(t)).formatMonthYear(e)}const Ui=Hi;function Vi(e,t=Ci){return t.format(e,"yyyy")}const Ki=Vi;var Gi=Object.freeze({__proto__:null,formatCaption:Hi,formatDay:function(e,t,n){return(n??new Ni(t)).format(e,"d")},formatMonthCaption:Ui,formatMonthDropdown:function(e,t=Ci){return t.format(e,"LLLL")},formatWeekNumber:function(e,t=Ci){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)},formatWeekNumberHeader:function(){return""},formatWeekdayName:function(e,t,n){return(n??new Ni(t)).format(e,"cccccc")},formatYearCaption:Ki,formatYearDropdown:Vi});function Zi(e,t,n,o){let r=(o??new Ni(n)).format(e,"PPPP");return t.today&&(r=`Today, ${r}`),t.selected&&(r=`${r}, selected`),r}const Xi=Zi;function Qi(e,t,n){return(n??new Ni(t)).formatMonthYear(e)}const Ji=Qi;function es(e,t,n,o){let r=(o??new Ni(n)).format(e,"PPPP");return t?.today&&(r=`Today, ${r}`),r}function ts(e){return"Choose the Month"}function ns(){return""}function os(e,t){return"Go to the Next Month"}function rs(e){return"Go to the Previous Month"}function as(e,t,n){return(n??new Ni(t)).format(e,"cccc")}function is(e,t){return`Week ${e}`}function ss(e){return"Week Number"}function ls(e){return"Choose the Year"}var cs=Object.freeze({__proto__:null,labelCaption:Ji,labelDay:Xi,labelDayButton:Zi,labelGrid:Qi,labelGridcell:es,labelMonthDropdown:ts,labelNav:ns,labelNext:os,labelPrevious:rs,labelWeekNumber:is,labelWeekNumberHeader:ss,labelWeekday:as,labelYearDropdown:ls});const ds=(e,t,n)=>t||(n?"function"==typeof n?n:(...e)=>n:e);function us(e,t){const n=t.locale?.labels??{};return{...cs,...e??{},labelDayButton:ds(Zi,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:ds(ts,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:ds(os,e?.labelNext,n.labelNext),labelPrevious:ds(rs,e?.labelPrevious,n.labelPrevious),labelWeekNumber:ds(is,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:ds(ls,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:ds(Qi,e?.labelGrid,n.labelGrid),labelGridcell:ds(es,e?.labelGridcell,n.labelGridcell),labelNav:ds(ns,e?.labelNav,n.labelNav),labelWeekNumberHeader:ds(ss,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:ds(as,e?.labelWeekday,n.labelWeekday)}}function ps(e,t,n,o,r){const{startOfMonth:a,startOfYear:i,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=r;return l({start:i(e),end:s(e)}).map(e=>{const i=o.formatMonthDropdown(e,r);return{value:c(e),label:i,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function fs(e,t,n,o,r=!1){if(!e)return;if(!t)return;const{startOfYear:a,endOfYear:i,eachYearOfInterval:s,getYear:l}=o,c=s({start:a(e),end:i(t)});return r&&c.reverse(),c.map(e=>{const t=n.formatYearDropdown(e,o);return{value:l(e),label:t,disabled:!1}})}const ms=e=>e instanceof HTMLElement?e:null,hs=e=>[...e.querySelectorAll("[data-animated-month]")??[]],vs=e=>ms(e.querySelector("[data-animated-caption]")),gs=e=>ms(e.querySelector("[data-animated-weeks]"));function ys(e,t,{classNames:n,months:o,focused:r,dateLib:a}){const i=l(null),s=l(o),d=l(!1);c(()=>{const l=s.current;if(s.current=o,!(t&&e.current&&e.current instanceof HTMLElement&&0!==o.length&&0!==l.length&&o.length===l.length))return;const c=a.isSameMonth(o[0].date,l[0].date),u=a.isAfter(o[0].date,l[0].date),p=u?n[Ti.caption_after_enter]:n[Ti.caption_before_enter],f=u?n[Ti.weeks_after_enter]:n[Ti.weeks_before_enter],m=i.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement){hs(h).forEach(e=>{if(!(e instanceof HTMLElement))return;const t=ms(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const n=vs(e);n&&n.classList.remove(p);const o=gs(e);o&&o.classList.remove(f)}),i.current=h}else i.current=null;if(d.current||c||r)return;const v=m instanceof HTMLElement?hs(m):[],g=hs(e.current);if(g?.every(e=>e instanceof HTMLElement)&&v&&v.every(e=>e instanceof HTMLElement)){d.current=!0,e.current.style.isolation="isolate";const t=(y=e.current,ms(y.querySelector("[data-animated-nav]")));t&&(t.style.zIndex="1"),g.forEach((o,r)=>{const a=v[r];if(!a)return;o.style.position="relative",o.style.overflow="hidden";const i=vs(o);i&&i.classList.add(p);const s=gs(o);s&&s.classList.add(f);const l=()=>{d.current=!1,e.current&&(e.current.style.isolation=""),t&&(t.style.zIndex=""),i&&i.classList.remove(p),s&&s.classList.remove(f),o.style.position="",o.style.overflow="",o.contains(a)&&o.removeChild(a)};a.style.pointerEvents="none",a.style.position="absolute",a.style.overflow="hidden",a.setAttribute("aria-hidden","true");const c=(e=>ms(e.querySelector("[data-animated-weekdays]")))(a);c&&(c.style.opacity="0");const m=vs(a);m&&(m.classList.add(u?n[Ti.caption_before_exit]:n[Ti.caption_after_exit]),m.addEventListener("animationend",l));const h=gs(a);h&&h.classList.add(u?n[Ti.weeks_before_exit]:n[Ti.weeks_after_exit]),o.insertBefore(a,o.firstChild)})}var y})}function bs(e,t,n,o){const{month:r,defaultMonth:a,today:i=o.today(),numberOfMonths:s=1}=e;let l=r||a||i;const{differenceInCalendarMonths:c,addMonths:d,startOfMonth:u}=o;if(n&&c(n,l)<s-1){l=d(n,-1*(s-1))}return t&&c(l,t)<0&&(l=t),u(l)}function xs(e,t){const[n,o]=r(e);return[void 0===t?n:t,o]}function ws(e,t){const[n,o]=function(e,t){let{startMonth:n,endMonth:o}=e;const{startOfYear:r,startOfDay:a,startOfMonth:i,endOfMonth:s,addYears:l,endOfYear:c,newDate:d,today:u}=t,{fromYear:p,toYear:f,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&p&&(n=t.newDate(p,0,1)),!o&&h&&(o=h),!o&&f&&(o=d(f,11,31));const v="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return n?n=i(n):p?n=d(p,0,1):!n&&v&&(n=r(l(e.today??u(),-100))),o?o=s(o):f?o=d(f,11,31):!o&&v&&(o=c(e.today??u())),[n?a(n):n,o?a(o):o]}(e,t),{startOfMonth:r,endOfMonth:a}=t,i=bs(e,n,o,t),[s,l]=xs(i,e.month?i:void 0);d(()=>{const r=bs(e,n,o,t);l(r)},[e.timeZone]);const{months:c,weeks:p,days:f,previousMonth:m,nextMonth:h}=u(()=>{const r=function(e,t,n,o){const{numberOfMonths:r=1}=n,a=[];for(let n=0;n<r;n++){const r=o.addMonths(e,n);if(t&&r>t)break;a.push(r)}return a}(s,o,{numberOfMonths:e.numberOfMonths},t),i=function(e,t,n,o){const r=e[0],a=e[e.length-1],{ISOWeek:i,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:d,differenceInCalendarMonths:u,endOfBroadcastWeek:p,endOfISOWeek:f,endOfMonth:m,endOfWeek:h,isAfter:v,startOfBroadcastWeek:g,startOfISOWeek:y,startOfWeek:b}=o,x=l?g(r,o):i?y(r):b(r),w=l?p(a):i?f(m(a)):h(m(a)),k=t&&(l?p(t):i?f(t):h(t)),N=d(k&&v(w,k)?k:w,x),C=u(a,r)+1,_=[];for(let e=0;e<=N;e++){const t=c(x,e);_.push(t)}const D=(l?35:42)*C;if(s&&_.length<D){const e=D-_.length;for(let t=0;t<e;t++){const e=c(_[_.length-1],1);_.push(e)}}return _}(r,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),l=function(e,t,n,o){const{addDays:r,endOfBroadcastWeek:a,endOfISOWeek:i,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:d,startOfBroadcastWeek:u,startOfISOWeek:p,startOfWeek:f}=o,m=e.reduce((e,m)=>{const h=n.broadcastCalendar?u(m,o):n.ISOWeek?p(m):f(m),v=n.broadcastCalendar?a(m):n.ISOWeek?i(s(m)):l(s(m)),g=t.filter(e=>e>=h&&e<=v),y=n.broadcastCalendar?35:42;if(n.fixedWeeks&&g.length<y){const e=t.filter(e=>{const t=y-g.length;return e>v&&e<=r(v,t)});g.push(...e)}const b=g.reduce((e,t)=>{const r=n.ISOWeek?c(t):d(t),a=e.find(e=>e.weekNumber===r),i=new _i(t,m,o);return a?a.days.push(i):e.push(new Si(r,[i])),e},[]),x=new Di(m,b);return e.push(x),e},[]);return n.reverseMonths?m.reverse():m}(r,i,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),c=function(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}(l),d=function(e){const t=[];return e.reduce((e,n)=>{const o=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(o.slice())},t.slice())}(l),u=function(e,t,n,o){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=o,c=r?a??1:1,d=i(e);return t&&l(d,t)<=0?void 0:s(d,-c)}(s,n,e,t),p=function(e,t,n,o){if(n.disableNavigation)return;const{pagedNavigation:r,numberOfMonths:a=1}=n,{startOfMonth:i,addMonths:s,differenceInCalendarMonths:l}=o,c=r?a:1,d=i(e);return t&&l(t,e)<a?void 0:s(d,c)}(s,o,e,t);return{months:l,weeks:c,days:d,previousMonth:u,nextMonth:p}},[t,s.getTime(),o?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:v,onMonthChange:g}=e,y=e=>{if(v)return;let t=r(e);n&&t<r(n)&&(t=r(n)),o&&t>r(o)&&(t=r(o)),l(t),g?.(t)};return{months:c,weeks:p,days:f,navStart:n,navEnd:o,previousMonth:m,nextMonth:h,goToMonth:y,goToDay:e=>{(e=>p.some(t=>t.days.some(t=>t.isEqualTo(e))))(e)||y(e.date)}}}var ks;function Ns(e){return!e[Mi.disabled]&&!e[Mi.hidden]&&!e[Mi.outside]}function Cs(e,t,n,o,r,a,i,s=0){if(s>365)return;const l=function(e,t,n,o,r,a,i){const{ISOWeek:s,broadcastCalendar:l}=a,{addDays:c,addMonths:d,addWeeks:u,addYears:p,endOfBroadcastWeek:f,endOfISOWeek:m,endOfWeek:h,max:v,min:g,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:x}=i;let w={day:c,week:u,month:d,year:p,startOfWeek:e=>l?y(e,i):s?b(e):x(e),endOfWeek:e=>l?f(e):s?m(e):h(e)}[e](n,"after"===t?1:-1);return"before"===t&&o?w=v([o,w]):"after"===t&&r&&(w=g([r,w])),w}(e,t,n.date,o,r,a,i),c=Boolean(a.disabled&&Bi(l,a.disabled,i)),d=Boolean(a.hidden&&Bi(l,a.hidden,i)),u=new _i(l,l,i);return c||d?Cs(e,t,u,o,r,a,i,s+1):u}function _s(e,t,n,o,a){const{autoFocus:i}=e,[s,l]=r(),c=function(e,t,n,o){let r,a=-1;for(const i of e){const e=t(i);Ns(e)&&(e[Mi.focused]&&a<ks.FocusedModifier?(r=i,a=ks.FocusedModifier):o?.isEqualTo(i)&&a<ks.LastFocused?(r=i,a=ks.LastFocused):n(i.date)&&a<ks.Selected?(r=i,a=ks.Selected):e[Mi.today]&&a<ks.Today&&(r=i,a=ks.Today))}return r||(r=e.find(e=>Ns(t(e)))),r}(t.days,n,o||(()=>!1),s),[d,u]=r(i?c:void 0);return{isFocusTarget:e=>Boolean(c?.isEqualTo(e)),setFocused:u,focused:d,blur:()=>{l(d),u(void 0)},moveFocus:(n,o)=>{if(!d)return;const r=Cs(n,o,d,t.navStart,t.navEnd,e,a);if(r){if(e.disableNavigation){if(!t.days.some(e=>e.isEqualTo(r)))return}t.goToDay(r),u(r)}}}}function Ds(e,t,n=Ci){return Ii(e,t.from,!1,n)||Ii(e,t.to,!1,n)||Ii(t,e.from,!1,n)||Ii(t,e.to,!1,n)}function Ss(e,t,n=Ci){const o=Array.isArray(t)?t:[t];if(o.filter(e=>"function"!=typeof e).some(t=>{if("boolean"==typeof t)return t;if(n.isDate(t))return Ii(e,t,!1,n);if($i(t,n))return t.some(t=>Ii(e,t,!1,n));if(zi(t))return!(!t.from||!t.to)&&Ds(e,{from:t.from,to:t.to},n);if(Wi(t))return function(e,t,n=Ci){const o=Array.isArray(t)?t:[t];let r=e.from;const a=n.differenceInCalendarDays(e.to,e.from),i=Math.min(a,6);for(let e=0;e<=i;e++){if(o.includes(r.getDay()))return!0;r=n.addDays(r,1)}return!1}(e,t.dayOfWeek,n);if(Fi(t)){return n.isAfter(t.before,t.after)?Ds(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):Bi(e.from,t,n)||Bi(e.to,t,n)}return!(!ji(t)&&!Li(t))&&(Bi(e.from,t,n)||Bi(e.to,t,n))}))return!0;const r=o.filter(e=>"function"==typeof e);if(r.length){let t=e.from;const o=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=o;e++){if(r.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function Es(e,t){const{disabled:n,excludeDisabled:o,selected:r,required:a,onSelect:i}=e,[s,l]=xs(r,i?r:void 0),c=i?r:s;return{selected:c,select:(r,s,d)=>{const{min:u,max:p}=e,f=r?function(e,t,n=0,o=0,r=!1,a=Ci){const{from:i,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:d}=a;let u;if(i||s){if(i&&!s)u=l(i,e)?0===n?{from:i,to:e}:r?{from:i,to:void 0}:void 0:d(e,i)?{from:e,to:i}:{from:i,to:e};else if(i&&s)if(l(i,e)&&l(s,e))u=r?{from:i,to:s}:void 0;else if(l(i,e))u={from:i,to:n>0?void 0:e};else if(l(s,e))u={from:e,to:n>0?void 0:e};else if(d(e,i))u={from:e,to:s};else if(c(e,i))u={from:i,to:e};else{if(!c(e,s))throw new Error("Invalid range");u={from:i,to:e}}}else u={from:e,to:n>0?void 0:e};if(u?.from&&u?.to){const t=a.differenceInCalendarDays(u.to,u.from);(o>0&&t>o||n>1&&t<n)&&(u={from:e,to:void 0})}return u}(r,c,u,p,a,t):void 0;return o&&n&&f?.from&&f.to&&Ss({from:f.from,to:f.to},n,t)&&(f.from=r,f.to=void 0),i||l(f),i?.(f,r,s,d),f},isSelected:e=>c&&Ii(c,e,!1,t)}}function Ms(e,t){const n=function(e,t){const{selected:n,required:o,onSelect:r}=e,[a,i]=xs(n,r?n:void 0),s=r?n:a,{isSameDay:l}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!o&&s&&s&&l(e,s)&&(a=void 0),r||i(a),r?.(a,e,t,n),a},isSelected:e=>!!s&&l(s,e)}}(e,t),o=function(e,t){const{selected:n,required:o,onSelect:r}=e,[a,i]=xs(n,r?n:void 0),s=r?n:a,{isSameDay:l}=t,c=e=>s?.some(t=>l(t,e))??!1,{min:d,max:u}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(c(e)){if(s?.length===d)return;if(o&&1===s?.length)return;a=s?.filter(t=>!l(t,e))}else a=s?.length===u?[e]:[...a,e];return r||i(a),r?.(a,e,t,n),a},isSelected:c}}(e,t),r=Es(e,t);switch(e.mode){case"single":return n;case"multiple":return o;case"range":return r;default:return}}function Os(e,t){return e instanceof xi&&e.timeZone===t?e:new xi(e,t)}function Ts(e,t,n){return Os(e,t)}function Rs(e,t,n){return"boolean"==typeof e||"function"==typeof e?e:e instanceof Date?Ts(e,t):Array.isArray(e)?e.map(e=>e instanceof Date?Ts(e,t):e):zi(e)?{...e,from:e.from?Os(e.from,t):e.from,to:e.to?Os(e.to,t):e.to}:Fi(e)?{before:Ts(e.before,t),after:Ts(e.after,t)}:ji(e)?{after:Ts(e.after,t)}:Li(e)?{before:Ts(e.before,t)}:e}function Ps(e,t,n){return e?Array.isArray(e)?e.map(e=>Rs(e,t)):Rs(e,t):e}function As(e){let n=e;const o=n.timeZone;if(o&&(n={...e,timeZone:o},n.today&&(n.today=Os(n.today,o)),n.month&&(n.month=Os(n.month,o)),n.defaultMonth&&(n.defaultMonth=Os(n.defaultMonth,o)),n.startMonth&&(n.startMonth=Os(n.startMonth,o)),n.endMonth&&(n.endMonth=Os(n.endMonth,o)),"single"===n.mode&&n.selected?n.selected=Os(n.selected,o):"multiple"===n.mode&&n.selected?n.selected=n.selected?.map(e=>Os(e,o)):"range"===n.mode&&n.selected&&(n.selected={from:n.selected.from?Os(n.selected.from,o):n.selected.from,to:n.selected.to?Os(n.selected.to,o):n.selected.to}),void 0!==n.disabled&&(n.disabled=Ps(n.disabled,o)),void 0!==n.hidden&&(n.hidden=Ps(n.hidden,o)),n.modifiers)){const e={};Object.keys(n.modifiers).forEach(t=>{e[t]=Ps(n.modifiers?.[t],o)}),n.modifiers=e}const{components:r,formatters:a,labels:i,dateLib:c,locale:d,classNames:p}=u(()=>{const e={...ki,...n.locale},t=n.broadcastCalendar?1:n.weekStartsOn,o=n.noonSafe&&n.timeZone?function(e,t={}){const{weekStartsOn:n,locale:o}=t,r=n??o?.options?.weekStartsOn??0,a=t=>{const n="number"==typeof t||"string"==typeof t?new Date(t):t;return new xi(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},i=e=>{const t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(xi.tz(e)),newDate:(t,n,o)=>new xi(t,n,o,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{const n=a(e),o=t?.weekStartsOn??r,i=(n.getDay()-o+7)%7;return n.setDate(n.getDate()-i),n},startOfISOWeek:e=>{const t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{const t=a(e);return t.setDate(1),t},startOfYear:e=>{const t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{const n=a(e),o=(((t?.weekStartsOn??r)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+o),n},endOfISOWeek:e=>{const t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{const t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{const t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{const n=a(t.start),o=a(t.end),r=[],i=new xi(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=12*o.getFullYear()+o.getMonth();for(;12*i.getFullYear()+i.getMonth()<=s;)r.push(new xi(i,e)),i.setMonth(i.getMonth()+1,1);return r},addDays:(e,t)=>{const n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{const n=a(e);return n.setDate(n.getDate()+7*t),n},addMonths:(e,t)=>{const n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{const n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{const n=a(t.start),o=a(t.end),r=[],i=new xi(n.getFullYear(),0,1,12,0,0,e);for(;i.getFullYear()<=o.getFullYear();)r.push(new xi(i,e)),i.setFullYear(i.getFullYear()+1,0,1);return r},getWeek:(e,t)=>ja(i(e),{weekStartsOn:t?.weekStartsOn??r,firstWeekContainsDate:t?.firstWeekContainsDate??o?.options?.firstWeekContainsDate??1}),getISOWeek:e=>Fa(i(e)),differenceInCalendarDays:(e,t)=>ba(i(e),i(t)),differenceInCalendarMonths:(e,t)=>wa(i(e),i(t))}}(n.timeZone,{weekStartsOn:t,locale:e}):void 0,r=n.dateLib&&o?{...o,...n.dateLib}:n.dateLib??o,a=new Ni({locale:e,weekStartsOn:t,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},r);return{dateLib:a,components:Yi(n.components),formatters:(i=n.formatters,i?.formatMonthCaption&&!i.formatCaption&&(i.formatCaption=i.formatMonthCaption),i?.formatYearCaption&&!i.formatYearDropdown&&(i.formatYearDropdown=i.formatYearCaption),{...Gi,...i}),labels:us(n.labels,a.options),locale:e,classNames:{...qi(),...n.classNames}};var i},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.noonSafe,n.components,n.formatters,n.labels,n.classNames]);n.today||(n={...n,today:c.today()});const{captionLayout:f,mode:m,navLayout:h,numberOfMonths:v=1,onDayBlur:g,onDayClick:y,onDayFocus:b,onDayKeyDown:x,onDayMouseEnter:w,onDayMouseLeave:k,onNextClick:N,onPrevClick:C,showWeekNumber:_,styles:D}=n,{formatCaption:S,formatDay:E,formatMonthDropdown:M,formatWeekNumber:O,formatWeekNumberHeader:T,formatWeekdayName:R,formatYearDropdown:P}=a,A=ws(n,c),{days:I,months:F,navStart:z,navEnd:j,previousMonth:L,nextMonth:W,goToMonth:$}=A,B=function(e,t,n,o,r){const{disabled:a,hidden:i,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:d=r.today()}=t,{isSameDay:u,isSameMonth:p,startOfMonth:f,isBefore:m,endOfMonth:h,isAfter:v}=r,g=n&&f(n),y=o&&h(o),b={[Mi.focused]:[],[Mi.outside]:[],[Mi.disabled]:[],[Mi.hidden]:[],[Mi.today]:[]},x={};for(const t of e){const{date:e,displayMonth:n}=t,o=Boolean(n&&!p(e,n)),f=Boolean(g&&m(e,g)),h=Boolean(y&&v(e,y)),w=Boolean(a&&Bi(e,a,r)),k=Boolean(i&&Bi(e,i,r))||f||h||!c&&!l&&o||c&&!1===l&&o,N=u(e,d);o&&b.outside.push(t),w&&b.disabled.push(t),k&&b.hidden.push(t),N&&b.today.push(t),s&&Object.keys(s).forEach(n=>{const o=s?.[n];o&&Bi(e,o,r)&&(x[n]?x[n].push(t):x[n]=[t])})}return e=>{const t={[Mi.focused]:!1,[Mi.disabled]:!1,[Mi.hidden]:!1,[Mi.outside]:!1,[Mi.today]:!1},n={};for(const n in b){const o=b[n];t[n]=o.some(t=>t===e)}for(const t in x)n[t]=x[t].some(t=>t===e);return{...t,...n}}}(I,n,z,j,c),{isSelected:Y,select:q,selected:H}=Ms(n,c)??{},{blur:U,focused:V,isFocusTarget:K,moveFocus:G,setFocused:Z}=_s(n,A,B,Y??(()=>!1),c),{labelDayButton:X,labelGridcell:Q,labelGrid:J,labelMonthDropdown:ee,labelNav:te,labelPrevious:ne,labelNext:oe,labelWeekday:re,labelWeekNumber:ae,labelWeekNumberHeader:ie,labelYearDropdown:se}=i,le=u(()=>function(e,t,n,o){const r=o??e.today(),a=n?e.startOfBroadcastWeek(r,e):t?e.startOfISOWeek(r):e.startOfWeek(r),i=[];for(let t=0;t<7;t++){const n=e.addDays(a,t);i.push(n)}return i}(c,n.ISOWeek,n.broadcastCalendar,n.today),[c,n.ISOWeek,n.broadcastCalendar,n.today]),ce=void 0!==m||void 0!==y,de=s(()=>{L&&($(L),C?.(L))},[L,$,C]),ue=s(()=>{W&&($(W),N?.(W))},[$,W,N]),pe=s((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),Z(e),t.disabled||(q?.(e.date,t,n),y?.(e.date,t,n))},[q,y,Z]),fe=s((e,t)=>n=>{Z(e),b?.(e.date,t,n)},[b,Z]),me=s((e,t)=>n=>{U(),g?.(e.date,t,n)},[U,g]),he=s((e,t)=>o=>{const r={ArrowLeft:[o.shiftKey?"month":"day","rtl"===n.dir?"after":"before"],ArrowRight:[o.shiftKey?"month":"day","rtl"===n.dir?"before":"after"],ArrowDown:[o.shiftKey?"year":"week","after"],ArrowUp:[o.shiftKey?"year":"week","before"],PageUp:[o.shiftKey?"year":"month","before"],PageDown:[o.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(r[o.key]){o.preventDefault(),o.stopPropagation();const[e,t]=r[o.key];G(e,t)}x?.(e.date,t,o)},[G,x,n.dir]),ve=s((e,t)=>n=>{w?.(e.date,t,n)},[w]),ge=s((e,t)=>n=>{k?.(e.date,t,n)},[k]),ye=s(e=>t=>{const n=Number(t.target.value),o=c.setMonth(c.startOfMonth(e),n);$(o)},[c,$]),be=s(e=>t=>{const n=Number(t.target.value),o=c.setYear(c.startOfMonth(e),n);$(o)},[c,$]),{className:xe,style:we}=u(()=>({className:[p[Ei.Root],n.className].filter(Boolean).join(" "),style:{...D?.[Ei.Root],...n.style}}),[p,n.className,n.style,D]),ke=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith("data-")&&(t[e]=n)}),t}(n),Ne=l(null);ys(Ne,Boolean(n.animate),{classNames:p,months:F,focused:V,dateLib:c});const Ce={dayPickerProps:n,selected:H,select:q,isSelected:Y,months:F,nextMonth:W,previousMonth:L,goToMonth:$,getModifiers:B,components:r,classNames:p,styles:D,labels:i,formatters:a};return t.createElement(Ri.Provider,{value:Ce},t.createElement(r.Root,{rootRef:n.animate?Ne:void 0,className:xe,style:we,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],...ke},t.createElement(r.Months,{className:p[Ei.Months],style:D?.[Ei.Months]},!n.hideNavigation&&!h&&t.createElement(r.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Ei.Nav],style:D?.[Ei.Nav],"aria-label":te(),onPreviousClick:de,onNextClick:ue,previousMonth:L,nextMonth:W}),F.map((e,o)=>t.createElement(r.Month,{"data-animated-month":n.animate?"true":void 0,className:p[Ei.Month],style:D?.[Ei.Month],key:o,displayIndex:o,calendarMonth:e},"around"===h&&!n.hideNavigation&&0===o&&t.createElement(r.PreviousMonthButton,{type:"button",className:p[Ei.PreviousMonthButton],tabIndex:L?void 0:-1,"aria-disabled":!L||void 0,"aria-label":ne(L),onClick:de,"data-animated-button":n.animate?"true":void 0},t.createElement(r.Chevron,{disabled:!L||void 0,className:p[Ei.Chevron],orientation:"rtl"===n.dir?"right":"left"})),t.createElement(r.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:p[Ei.MonthCaption],style:D?.[Ei.MonthCaption],calendarMonth:e,displayIndex:o},f?.startsWith("dropdown")?t.createElement(r.DropdownNav,{className:p[Ei.Dropdowns],style:D?.[Ei.Dropdowns]},(()=>{const o="dropdown"===f||"dropdown-months"===f?t.createElement(r.MonthsDropdown,{key:"month",className:p[Ei.MonthsDropdown],"aria-label":ee(),classNames:p,components:r,disabled:Boolean(n.disableNavigation),onChange:ye(e.date),options:ps(e.date,z,j,a,c),style:D?.[Ei.Dropdown],value:c.getMonth(e.date)}):t.createElement("span",{key:"month"},M(e.date,c)),i="dropdown"===f||"dropdown-years"===f?t.createElement(r.YearsDropdown,{key:"year",className:p[Ei.YearsDropdown],"aria-label":se(c.options),classNames:p,components:r,disabled:Boolean(n.disableNavigation),onChange:be(e.date),options:fs(z,j,a,c,Boolean(n.reverseYears)),style:D?.[Ei.Dropdown],value:c.getYear(e.date)}):t.createElement("span",{key:"year"},P(e.date,c));return"year-first"===c.getMonthYearOrder()?[i,o]:[o,i]})(),t.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},S(e.date,c.options,c))):t.createElement(r.CaptionLabel,{className:p[Ei.CaptionLabel],role:"status","aria-live":"polite"},S(e.date,c.options,c))),"around"===h&&!n.hideNavigation&&o===v-1&&t.createElement(r.NextMonthButton,{type:"button",className:p[Ei.NextMonthButton],tabIndex:W?void 0:-1,"aria-disabled":!W||void 0,"aria-label":oe(W),onClick:ue,"data-animated-button":n.animate?"true":void 0},t.createElement(r.Chevron,{disabled:!W||void 0,className:p[Ei.Chevron],orientation:"rtl"===n.dir?"left":"right"})),o===v-1&&"after"===h&&!n.hideNavigation&&t.createElement(r.Nav,{"data-animated-nav":n.animate?"true":void 0,className:p[Ei.Nav],style:D?.[Ei.Nav],"aria-label":te(),onPreviousClick:de,onNextClick:ue,previousMonth:L,nextMonth:W}),t.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===m||"range"===m,"aria-label":J(e.date,c.options,c)||void 0,className:p[Ei.MonthGrid],style:D?.[Ei.MonthGrid]},!n.hideWeekdays&&t.createElement(r.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:p[Ei.Weekdays],style:D?.[Ei.Weekdays]},_&&t.createElement(r.WeekNumberHeader,{"aria-label":ie(c.options),className:p[Ei.WeekNumberHeader],style:D?.[Ei.WeekNumberHeader],scope:"col"},T()),le.map(e=>t.createElement(r.Weekday,{"aria-label":re(e,c.options,c),className:p[Ei.Weekday],key:String(e),style:D?.[Ei.Weekday],scope:"col"},R(e,c.options,c)))),t.createElement(r.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:p[Ei.Weeks],style:D?.[Ei.Weeks]},e.weeks.map(e=>t.createElement(r.Week,{className:p[Ei.Week],key:e.weekNumber,style:D?.[Ei.Week],week:e},_&&t.createElement(r.WeekNumber,{week:e,style:D?.[Ei.WeekNumber],"aria-label":ae(e.weekNumber,{locale:d}),className:p[Ei.WeekNumber],scope:"row",role:"rowheader"},O(e.weekNumber,c)),e.days.map(e=>{const{date:o}=e,a=B(e);if(a[Mi.focused]=!a.hidden&&Boolean(V?.isEqualTo(e)),a[Oi.selected]=Y?.(o)||a.selected,zi(H)){const{from:e,to:t}=H;a[Oi.range_start]=Boolean(e&&t&&c.isSameDay(o,e)),a[Oi.range_end]=Boolean(e&&t&&c.isSameDay(o,t)),a[Oi.range_middle]=Ii(H,o,!0,c)}const i=function(e,t={},n={}){let o={...t?.[Ei.Day]};return Object.entries(e).filter(([,e])=>!0===e).forEach(([e])=>{o={...o,...n?.[e]}}),o}(a,D,n.modifiersStyles),s=function(e,t,n={}){return Object.entries(e).filter(([,e])=>!0===e).reduce((e,[o])=>(n[o]?e.push(n[o]):t[Mi[o]]?e.push(t[Mi[o]]):t[Oi[o]]&&e.push(t[Oi[o]]),e),[t[Ei.Day]])}(a,p,n.modifiersClassNames),l=ce||a.hidden?void 0:Q(o,a,c.options,c);return t.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:a,className:s.join(" "),style:i,role:"gridcell","aria-selected":a.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":a.selected||void 0,"data-disabled":a.disabled||void 0,"data-hidden":a.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":a.focused||void 0,"data-today":a.today||void 0},!a.hidden&&ce?t.createElement(r.DayButton,{className:p[Ei.DayButton],style:D?.[Ei.DayButton],type:"button",day:e,modifiers:a,disabled:!a.focused&&a.disabled||void 0,"aria-disabled":a.focused&&a.disabled||void 0,tabIndex:K(e)?0:-1,"aria-label":X(o,a,c.options,c),onClick:pe(e,a),onBlur:me(e,a),onFocus:fe(e,a),onKeyDown:he(e,a),onMouseEnter:ve(e,a),onMouseLeave:ge(e,a)},E(o,c.options,c)):!a.hidden&&E(e.date,c.options,c))})))))))),n.footer&&t.createElement(r.Footer,{className:p[Ei.Footer],style:D?.[Ei.Footer],role:"status","aria-live":"polite"},n.footer)))}function Is({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:o="label",buttonVariant:r="ghost",formatters:a,components:i,...s}){const l=qi();return g(As,{showOutsideDays:n,className:Ye("bg-background group/calendar p-3 [--cell-size:2rem]",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:o,formatters:{formatMonthDropdown:e=>e.toLocaleString("default",{month:"short"}),...a},classNames:{root:Ye("w-fit",l.root),months:Ye("relative flex flex-col gap-4 md:flex-row",l.months),month:Ye("flex w-full flex-col gap-4",l.month),nav:Ye("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",l.nav),button_previous:Ye(qr({variant:r}),"size-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_previous),button_next:Ye(qr({variant:r}),"size-[--cell-size] select-none p-0 aria-disabled:opacity-50",l.button_next),month_caption:Ye("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",l.month_caption),dropdowns:Ye("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",l.dropdowns),dropdown_root:Ye("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",l.dropdown_root),dropdown:Ye("bg-popover absolute inset-0 opacity-0",l.dropdown),caption_label:Ye("select-none font-medium","label"===o?"text-sm":"[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",l.caption_label),table:"w-full border-collapse",weekdays:Ye("flex",l.weekdays),weekday:Ye("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",l.weekday),week:Ye("mt-2 flex w-full",l.week),week_number_header:Ye("w-[--cell-size] select-none",l.week_number_header),week_number:Ye("text-muted-foreground select-none text-[0.8rem]",l.week_number),day:Ye("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",l.day),range_start:Ye("bg-accent rounded-l-md",l.range_start),range_middle:Ye("rounded-none",l.range_middle),range_end:Ye("bg-accent rounded-r-md",l.range_end),today:Ye("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",l.today),outside:Ye("text-muted-foreground aria-selected:text-muted-foreground",l.outside),disabled:Ye("text-muted-foreground opacity-50",l.disabled),hidden:Ye("invisible",l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>g("div",{"data-slot":"calendar",ref:t,className:Ye(e),...n}),Chevron:({className:e,orientation:t,...n})=>g("left"===t?vt:"right"===t?gt:ht,{className:Ye("size-4",e),...n}),DayButton:Fs,WeekNumber:({children:e,...t})=>g("td",{...t,children:g("div",{className:"flex size-[--cell-size] items-center justify-center text-center",children:e})}),...i},...s})}function Fs({className:t,day:n,modifiers:o,...r}){const a=qi(),i=e.useRef(null);return e.useEffect(()=>{o.focused&&i.current?.focus()},[o.focused]),g(Ur,{ref:i,variant:"ghost",size:"icon","data-day":n.date.toLocaleDateString(),"data-selected-single":o.selected&&!o.range_start&&!o.range_end&&!o.range_middle,"data-range-start":o.range_start,"data-range-end":o.range_end,"data-range-middle":o.range_middle,className:Ye("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",a.day,t),...r})}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(ks||(ks={}));const zs=["top","right","bottom","left"],js=Math.min,Ls=Math.max,Ws=Math.round,$s=Math.floor,Bs=e=>({x:e,y:e}),Ys={left:"right",right:"left",bottom:"top",top:"bottom"},qs={start:"end",end:"start"};function Hs(e,t,n){return Ls(e,js(t,n))}function Us(e,t){return"function"==typeof e?e(t):e}function Vs(e){return e.split("-")[0]}function Ks(e){return e.split("-")[1]}function Gs(e){return"x"===e?"y":"x"}function Zs(e){return"y"===e?"height":"width"}const Xs=new Set(["top","bottom"]);function Qs(e){return Xs.has(Vs(e))?"y":"x"}function Js(e){return Gs(Qs(e))}function el(e){return e.replace(/start|end/g,e=>qs[e])}const tl=["left","right"],nl=["right","left"],ol=["top","bottom"],rl=["bottom","top"];function al(e,t,n,o){const r=Ks(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?nl:tl:t?tl:nl;case"left":case"right":return t?ol:rl;default:return[]}}(Vs(e),"start"===n,o);return r&&(a=a.map(e=>e+"-"+r),t&&(a=a.concat(a.map(el)))),a}function il(e){return e.replace(/left|right|bottom|top/g,e=>Ys[e])}function sl(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ll(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function cl(e,t,n){let{reference:o,floating:r}=e;const a=Qs(t),i=Js(t),s=Zs(i),l=Vs(t),c="y"===a,d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,p=o[s]/2-r[s]/2;let f;switch(l){case"top":f={x:d,y:o.y-r.height};break;case"bottom":f={x:d,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:u};break;case"left":f={x:o.x-r.width,y:u};break;default:f={x:o.x,y:o.y}}switch(Ks(t)){case"start":f[i]-=p*(n&&c?-1:1);break;case"end":f[i]+=p*(n&&c?-1:1)}return f}async function dl(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Us(t,e),m=sl(f),h=s[p?"floating"===u?"reference":"floating":u],v=ll(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===u?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},x=ll(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-x.top+m.top)/b.y,bottom:(x.bottom-v.bottom+m.bottom)/b.y,left:(v.left-x.left+m.left)/b.x,right:(x.right-v.right+m.right)/b.x}}function ul(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pl(e){return zs.some(t=>e[t]>=0)}const fl=new Set(["left","top"]);function ml(){return"undefined"!=typeof window}function hl(e){return yl(e)?(e.nodeName||"").toLowerCase():"#document"}function vl(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gl(e){var t;return null==(t=(yl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yl(e){return!!ml()&&(e instanceof Node||e instanceof vl(e).Node)}function bl(e){return!!ml()&&(e instanceof Element||e instanceof vl(e).Element)}function xl(e){return!!ml()&&(e instanceof HTMLElement||e instanceof vl(e).HTMLElement)}function wl(e){return!(!ml()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof vl(e).ShadowRoot)}const kl=new Set(["inline","contents"]);function Nl(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Il(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!kl.has(r)}const Cl=new Set(["table","td","th"]);function _l(e){return Cl.has(hl(e))}const Dl=[":popover-open",":modal"];function Sl(e){return Dl.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const El=["transform","translate","scale","rotate","perspective"],Ml=["transform","translate","scale","rotate","perspective","filter"],Ol=["paint","layout","strict","content"];function Tl(e){const t=Rl(),n=bl(e)?Il(e):e;return El.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Ml.some(e=>(n.willChange||"").includes(e))||Ol.some(e=>(n.contain||"").includes(e))}function Rl(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Pl=new Set(["html","body","#document"]);function Al(e){return Pl.has(hl(e))}function Il(e){return vl(e).getComputedStyle(e)}function Fl(e){return bl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zl(e){if("html"===hl(e))return e;const t=e.assignedSlot||e.parentNode||wl(e)&&e.host||gl(e);return wl(t)?t.host:t}function jl(e){const t=zl(e);return Al(t)?e.ownerDocument?e.ownerDocument.body:e.body:xl(t)&&Nl(t)?t:jl(t)}function Ll(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=jl(e),a=r===(null==(o=e.ownerDocument)?void 0:o.body),i=vl(r);if(a){const e=Wl(i);return t.concat(i,i.visualViewport||[],Nl(r)?r:[],e&&n?Ll(e):[])}return t.concat(r,Ll(r,[],n))}function Wl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $l(e){const t=Il(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=xl(e),a=r?e.offsetWidth:n,i=r?e.offsetHeight:o,s=Ws(n)!==a||Ws(o)!==i;return s&&(n=a,o=i),{width:n,height:o,$:s}}function Bl(e){return bl(e)?e:e.contextElement}function Yl(e){const t=Bl(e);if(!xl(t))return Bs(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=$l(t);let i=(a?Ws(n.width):n.width)/o,s=(a?Ws(n.height):n.height)/r;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ql=Bs(0);function Hl(e){const t=vl(e);return Rl()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ql}function Ul(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),a=Bl(e);let i=Bs(1);t&&(o?bl(o)&&(i=Yl(o)):i=Yl(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==vl(e))&&t}(a,n,o)?Hl(a):Bs(0);let l=(r.left+s.x)/i.x,c=(r.top+s.y)/i.y,d=r.width/i.x,u=r.height/i.y;if(a){const e=vl(a),t=o&&bl(o)?vl(o):o;let n=e,r=Wl(n);for(;r&&o&&t!==n;){const e=Yl(r),t=r.getBoundingClientRect(),o=Il(r),a=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,i=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=a,c+=i,n=vl(r),r=Wl(n)}}return ll({width:d,height:u,x:l,y:c})}function Vl(e,t){const n=Fl(e).scrollLeft;return t?t.left+n:Ul(gl(e)).left+n}function Kl(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Vl(e,n),y:n.top+t.scrollTop}}const Gl=new Set(["absolute","fixed"]);function Zl(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=vl(e),o=gl(e),r=n.visualViewport;let a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;const e=Rl();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}const c=Vl(o);if(c<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)o=function(e){const t=gl(e),n=Fl(e),o=e.ownerDocument.body,r=Ls(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Ls(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Vl(e);const s=-n.scrollTop;return"rtl"===Il(o).direction&&(i+=Ls(t.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:s}}(gl(e));else if(bl(t))o=function(e,t){const n=Ul(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,a=xl(e)?Yl(e):Bs(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:r*a.x,y:o*a.y}}(t,n);else{const n=Hl(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ll(o)}function Xl(e,t){const n=zl(e);return!(n===t||!bl(n)||Al(n))&&("fixed"===Il(n).position||Xl(n,t))}function Ql(e,t,n){const o=xl(t),r=gl(t),a="fixed"===n,i=Ul(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Bs(0);function c(){l.x=Vl(r)}if(o||!o&&!a)if(("body"!==hl(t)||Nl(r))&&(s=Fl(t)),o){const e=Ul(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();a&&!o&&r&&c();const d=!r||o||a?Bs(0):Kl(r,s);return{x:i.left+s.scrollLeft-l.x-d.x,y:i.top+s.scrollTop-l.y-d.y,width:i.width,height:i.height}}function Jl(e){return"static"===Il(e).position}function ec(e,t){if(!xl(e)||"fixed"===Il(e).position)return null;if(t)return t(e);let n=e.offsetParent;return gl(e)===n&&(n=n.ownerDocument.body),n}function tc(e,t){const n=vl(e);if(Sl(e))return n;if(!xl(e)){let t=zl(e);for(;t&&!Al(t);){if(bl(t)&&!Jl(t))return t;t=zl(t)}return n}let o=ec(e,t);for(;o&&_l(o)&&Jl(o);)o=ec(o,t);return o&&Al(o)&&Jl(o)&&!Tl(o)?n:o||function(e){let t=zl(e);for(;xl(t)&&!Al(t);){if(Tl(t))return t;if(Sl(t))return null;t=zl(t)}return null}(e)||n}const nc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const a="fixed"===r,i=gl(o),s=!!t&&Sl(t.floating);if(o===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=Bs(1);const d=Bs(0),u=xl(o);if((u||!u&&!a)&&(("body"!==hl(o)||Nl(i))&&(l=Fl(o)),xl(o))){const e=Ul(o);c=Yl(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}const p=!i||u||a?Bs(0):Kl(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:gl,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[..."clippingAncestors"===n?Sl(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Ll(e,[],!1).filter(e=>bl(e)&&"body"!==hl(e)),r=null;const a="fixed"===Il(e).position;let i=a?zl(e):e;for(;bl(i)&&!Al(i);){const t=Il(i),n=Tl(i);n||"fixed"!==t.position||(r=null),(a?!n&&!r:!n&&"static"===t.position&&r&&Gl.has(r.position)||Nl(i)&&!n&&Xl(e,i))?o=o.filter(e=>e!==i):r=t,i=zl(i)}return t.set(e,o),o}(t,this._c):[].concat(n),o],i=a[0],s=a.reduce((e,n)=>{const o=Zl(t,n,r);return e.top=Ls(o.top,e.top),e.right=js(o.right,e.right),e.bottom=js(o.bottom,e.bottom),e.left=Ls(o.left,e.left),e},Zl(t,i,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:tc,getElementRects:async function(e){const t=this.getOffsetParent||tc,n=this.getDimensions,o=await n(e.floating);return{reference:Ql(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$l(e);return{width:t,height:n}},getScale:Yl,isElement:bl,isRTL:function(e){return"rtl"===Il(e).direction}};function oc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rc(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,c=Bl(e),d=r||a?[...c?Ll(c):[],...Ll(t)]:[];d.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const u=c&&s?function(e,t){let n,o=null;const r=gl(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:f}=c;if(s||t(),!p||!f)return;const m={rootMargin:-$s(u)+"px "+-$s(r.clientWidth-(d+p))+"px "+-$s(r.clientHeight-(u+f))+"px "+-$s(d)+"px",threshold:Ls(0,js(1,l))||1};let h=!0;function v(t){const o=t[0].intersectionRatio;if(o!==l){if(!h)return i();o?i(!1,o):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||oc(c,e.getBoundingClientRect())||i(),h=!1}try{o=new IntersectionObserver(v,{...m,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(v,m)}o.observe(e)}(!0),a}(c,n):null;let p,f=-1,m=null;i&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let h=l?Ul(e):null;return l&&function t(){const o=Ul(e);h&&!oc(h,o)&&n();h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}const ac=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:o,elements:r}=e,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Vs(n),s=Ks(n),l="y"===Qs(n),c=fl.has(i)?-1:1,d=a&&l?-1:1,u=Us(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:a+l.y,data:{...l,placement:i}}}}},ic=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Us(e,t),c={x:n,y:o},d=await dl(t,l),u=Qs(Vs(r)),p=Gs(u);let f=c[p],m=c[u];if(a){const e="y"===p?"bottom":"right";f=Hs(f+d["y"===p?"top":"left"],f,f-d[e])}if(i){const e="y"===u?"bottom":"right";m=Hs(m+d["y"===u?"top":"left"],m,m-d[e])}const h=s.fn({...t,[p]:f,[u]:m});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[p]:a,[u]:i}}}}}},sc=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=Us(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const g=Vs(r),y=Qs(s),b=Vs(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!h?[il(s)]:function(e){const t=il(e);return[el(e),t,el(t)]}(s)),k="none"!==m;!p&&k&&w.push(...al(s,h,m,x));const N=[s,...w],C=await dl(t,v),_=[];let D=(null==(o=a.flip)?void 0:o.overflows)||[];if(d&&_.push(C[g]),u){const e=function(e,t,n){void 0===n&&(n=!1);const o=Ks(e),r=Js(e),a=Zs(r);let i="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=il(i)),[i,il(i)]}(r,i,x);_.push(C[e[0]],C[e[1]])}if(D=[...D,{placement:r,overflows:_}],!_.every(e=>e<=0)){var S,E;const e=((null==(S=a.flip)?void 0:S.index)||0)+1,t=N[e];if(t){if(!("alignment"===u&&y!==Qs(t))||D.every(e=>Qs(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:D},reset:{placement:t}}}let n=null==(E=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(f){case"bestFit":{var M;const e=null==(M=D.filter(e=>{if(k){const t=Qs(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},lc=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=Us(e,t),d=await dl(t,c),u=Vs(r),p=Ks(r),f="y"===Qs(r),{width:m,height:h}=a.floating;let v,g;"top"===u||"bottom"===u?(v=u,g=p===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(g=u,v="end"===p?"top":"bottom");const y=h-d.top-d.bottom,b=m-d.left-d.right,x=js(h-d[v],y),w=js(m-d[g],b),k=!t.middlewareData.shift;let N=x,C=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=b),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(N=y),k&&!p){const e=Ls(d.left,0),t=Ls(d.right,0),n=Ls(d.top,0),o=Ls(d.bottom,0);f?C=m-2*(0!==e||0!==t?e+t:Ls(d.left,d.right)):N=h-2*(0!==n||0!==o?n+o:Ls(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:N});const _=await i.getDimensions(s.floating);return m!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}},cc=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=Us(e,t);switch(o){case"referenceHidden":{const e=ul(await dl(t,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:pl(e)}}}case"escaped":{const e=ul(await dl(t,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:pl(e)}}}default:return{}}}}},dc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=Us(e,t)||{};if(null==c)return{};const u=sl(d),p={x:n,y:o},f=Js(r),m=Zs(f),h=await i.getDimensions(c),v="y"===f,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[f]-p[f]-a.floating[m],w=p[f]-a.reference[f],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let N=k?k[b]:0;N&&await(null==i.isElement?void 0:i.isElement(k))||(N=s.floating[b]||a.floating[m]);const C=x/2-w/2,_=N/2-h[m]/2-1,D=js(u[g],_),S=js(u[y],_),E=D,M=N-h[m]-S,O=N/2-h[m]/2+C,T=Hs(E,O,M),R=!l.arrow&&null!=Ks(r)&&O!==T&&a.reference[m]/2-(O<E?D:S)-h[m]/2<0,P=R?O<E?O-E:O-M:0;return{[f]:p[f]+P,data:{[f]:T,centerOffset:O-T-P,...R&&{alignmentOffset:P}},reset:R}}}),uc=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Us(e,t),d={x:n,y:o},u=Qs(r),p=Gs(u);let f=d[p],m=d[u];const h=Us(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(c){var g,y;const e="y"===p?"width":"height",t=fl.has(Vs(r)),n=a.reference[u]-a.floating[e]+(t&&(null==(g=i.offset)?void 0:g[u])||0)+(t?0:v.crossAxis),o=a.reference[u]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[u])||0)-(t?v.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:f,[u]:m}}}},pc=(e,t,n)=>{const o=new Map,r={platform:nc,...n},a={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=n,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=cl(c,o,l),p=o,f={},m=0;for(let n=0;n<s.length;n++){const{name:a,fn:h}=s[n],{x:v,y:g,data:y,reset:b}=await h({x:d,y:u,initialPlacement:o,placement:p,strategy:r,middlewareData:f,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=g?g:u,f={...f,[a]:{...f[a],...y}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:d,y:u}=cl(c,p,l))),n=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:f}})(e,t,{...r,platform:a})};var fc="undefined"!=typeof document?c:function(){};function mc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!==o--;)if(!mc(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!==o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!mc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function hc(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vc(e,t){const n=hc(e);return Math.round(t*n)/n}function gc(t){const n=e.useRef(t);return fc(()=>{n.current=t}),n}function yc(t){void 0===t&&(t={});const{placement:n="bottom",strategy:o="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,p]=e.useState({x:0,y:0,strategy:o,placement:n,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(r);mc(f,r)||m(r);const[h,v]=e.useState(null),[g,y]=e.useState(null),b=e.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=e.useCallback(e=>{e!==_.current&&(_.current=e,y(e))},[]),k=i||h,N=s||g,C=e.useRef(null),_=e.useRef(null),D=e.useRef(u),S=null!=c,E=gc(c),M=gc(a),O=gc(d),T=e.useCallback(()=>{if(!C.current||!_.current)return;const e={placement:n,strategy:o,middleware:f};M.current&&(e.platform=M.current),pc(C.current,_.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};R.current&&!mc(D.current,t)&&(D.current=t,x.flushSync(()=>{p(t)}))})},[f,n,o,M,O]);fc(()=>{!1===d&&D.current.isPositioned&&(D.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const R=e.useRef(!1);fc(()=>(R.current=!0,()=>{R.current=!1}),[]),fc(()=>{if(k&&(C.current=k),N&&(_.current=N),k&&N){if(E.current)return E.current(k,N,T);T()}},[k,N,T,E,S]);const P=e.useMemo(()=>({reference:C,floating:_,setReference:b,setFloating:w}),[b,w]),A=e.useMemo(()=>({reference:k,floating:N}),[k,N]),I=e.useMemo(()=>{const e={position:o,left:0,top:0};if(!A.floating)return e;const t=vc(A.floating,u.x),n=vc(A.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...hc(A.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}},[o,l,A.floating,u.x,u.y]);return e.useMemo(()=>({...u,update:T,refs:P,elements:A,floatingStyles:I}),[u,T,P,A,I])}const bc=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"==typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?dc({element:n.current,padding:o}).fn(t):{}:n?dc({element:n,padding:o}).fn(t):{};var r}}),xc=(e,t)=>({...ac(e),options:[e,t]}),wc=(e,t)=>({...ic(e),options:[e,t]}),kc=(e,t)=>({...uc(e),options:[e,t]}),Nc=(e,t)=>({...sc(e),options:[e,t]}),Cc=(e,t)=>({...lc(e),options:[e,t]}),_c=(e,t)=>({...cc(e),options:[e,t]}),Dc=(e,t)=>({...bc(e),options:[e,t]});var Sc=e.forwardRef((e,t)=>{const{children:n,width:o=10,height:r=5,...a}=e;return g(Xt.svg,{...a,ref:t,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g("polygon",{points:"0,0 30,0 15,10"})})});Sc.displayName="Arrow";var Ec=Sc;var Mc="Popper",[Oc,Tc]=It(Mc),[Rc,Pc]=Oc(Mc),Ac=t=>{const{__scopePopper:n,children:o}=t,[r,a]=e.useState(null);return g(Rc,{scope:n,anchor:r,onAnchorChange:a,children:o})};Ac.displayName=Mc;var Ic="PopperAnchor",Fc=e.forwardRef((t,n)=>{const{__scopePopper:o,virtualRef:r,...a}=t,i=Pc(Ic,o),s=e.useRef(null),l=Lt(n,s),c=e.useRef(null);return e.useEffect(()=>{const e=c.current;c.current=r?.current||s.current,e!==c.current&&i.onAnchorChange(c.current)}),r?null:g(Xt.div,{...a,ref:l})});Fc.displayName=Ic;var zc="PopperContent",[jc,Lc]=Oc(zc),Wc=e.forwardRef((t,n)=>{const{__scopePopper:o,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:p="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...v}=t,y=Pc(zc,o),[b,x]=e.useState(null),w=Lt(n,e=>x(e)),[k,N]=e.useState(null),C=function(t){const[n,o]=e.useState(void 0);return $t(()=>{if(t){o({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let r,a;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,a=t.blockSize}else r=t.offsetWidth,a=t.offsetHeight;o({width:r,height:a})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}o(void 0)},[t]),n}(k),_=C?.width??0,D=C?.height??0,S=r+("center"!==i?"-"+i:""),E="number"==typeof u?u:{top:0,right:0,bottom:0,left:0,...u},M=Array.isArray(d)?d:[d],O=M.length>0,T={padding:E,boundary:M.filter(qc),altBoundary:O},{refs:R,floatingStyles:P,placement:A,isPositioned:I,middlewareData:F}=yc({strategy:"fixed",placement:S,whileElementsMounted:(...e)=>rc(...e,{animationFrame:"always"===m}),elements:{reference:y.anchor},middleware:[xc({mainAxis:a+D,alignmentAxis:s}),c&&wc({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?kc():void 0,...T}),c&&Nc({...T}),Cc({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${o}px`),i.setProperty("--radix-popper-anchor-width",`${r}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),k&&Dc({element:k,padding:l}),Hc({arrowWidth:_,arrowHeight:D}),f&&_c({strategy:"referenceHidden",...T})]}),[z,j]=Uc(A),L=Qt(h);$t(()=>{I&&L?.()},[I,L]);const W=F.arrow?.x,$=F.arrow?.y,B=0!==F.arrow?.centerOffset,[Y,q]=e.useState();return $t(()=>{b&&q(window.getComputedStyle(b).zIndex)},[b]),g("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...P,transform:I?P.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:g(jc,{scope:o,placedSide:z,onArrowChange:N,arrowX:W,arrowY:$,shouldHideArrow:B,children:g(Xt.div,{"data-side":z,"data-align":j,...v,ref:w,style:{...v.style,animation:I?void 0:"none"}})})})});Wc.displayName=zc;var $c="PopperArrow",Bc={top:"bottom",right:"left",bottom:"top",left:"right"},Yc=e.forwardRef(function(e,t){const{__scopePopper:n,...o}=e,r=Lc($c,n),a=Bc[r.placedSide];return g("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:g(Ec,{...o,ref:t,style:{...o.style,display:"block"}})})});function qc(e){return null!==e}Yc.displayName=$c;var Hc=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,a=0!==r.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=Uc(n),d={start:"0%",center:"50%",end:"100%"}[c],u=(r.arrow?.x??0)+i/2,p=(r.arrow?.y??0)+s/2;let f="",m="";return"bottom"===l?(f=a?d:`${u}px`,m=-s+"px"):"top"===l?(f=a?d:`${u}px`,m=`${o.floating.height+s}px`):"right"===l?(f=-s+"px",m=a?d:`${p}px`):"left"===l&&(f=`${o.floating.width+s}px`,m=a?d:`${p}px`),{data:{x:f,y:m}}}});function Uc(e){const[t,n="center"]=e.split("-");return[t,n]}var Vc=Ac,Kc=Fc,Gc=Wc,Zc=Yc,Xc="Popover",[Qc]=It(Xc,[Tc]),Jc=Tc(),[ed,td]=Qc(Xc),nd=t=>{const{__scopePopover:n,children:o,open:r,defaultOpen:a,onOpenChange:i,modal:s=!1}=t,l=Jc(n),c=e.useRef(null),[d,u]=e.useState(!1),[p,f]=Ut({prop:r,defaultProp:a??!1,onChange:i,caller:Xc});return g(Vc,{...l,children:g(ed,{scope:n,contentId:qt(),triggerRef:c,open:p,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:d,onCustomAnchorAdd:e.useCallback(()=>u(!0),[]),onCustomAnchorRemove:e.useCallback(()=>u(!1),[]),modal:s,children:o})})};nd.displayName=Xc;var od="PopoverAnchor";e.forwardRef((t,n)=>{const{__scopePopover:o,...r}=t,a=td(od,o),i=Jc(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=a;return e.useEffect(()=>(s(),()=>l()),[s,l]),g(Kc,{...i,...r,ref:n})}).displayName=od;var rd="PopoverTrigger",ad=e.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=td(rd,n),a=Jc(n),i=Lt(t,r.triggerRef),s=g(Xt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":gd(r.open),...o,ref:i,onClick:Wt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?s:g(Kc,{asChild:!0,...a,children:s})});ad.displayName=rd;var id="PopoverPortal",[sd,ld]=Qc(id,{forceMount:void 0}),cd=e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,a=td(id,t);return g(sd,{scope:t,forceMount:n,children:g(bn,{present:n||a.open,children:g(yn,{asChild:!0,container:r,children:o})})})};cd.displayName=id;var dd="PopoverContent",ud=e.forwardRef((e,t)=>{const n=ld(dd,e.__scopePopover),{forceMount:o=n.forceMount,...r}=e,a=td(dd,e.__scopePopover);return g(bn,{present:o||a.open,children:a.modal?g(fd,{...r,ref:t}):g(md,{...r,ref:t})})});ud.displayName=dd;var pd=Vt("PopoverContent.RemoveScroll"),fd=e.forwardRef((t,n)=>{const o=td(dd,t.__scopePopover),r=e.useRef(null),a=Lt(n,r),i=e.useRef(!1);return e.useEffect(()=>{const e=r.current;if(e)return bo(e)},[]),g(po,{as:pd,allowPinchZoom:!0,children:g(hd,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Wt(t.onCloseAutoFocus,e=>{e.preventDefault(),i.current||o.triggerRef.current?.focus()}),onPointerDownOutside:Wt(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,o=2===t.button||n;i.current=o},{checkForDefaultPrevented:!1}),onFocusOutside:Wt(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),md=e.forwardRef((t,n)=>{const o=td(dd,t.__scopePopover),r=e.useRef(!1),a=e.useRef(!1);return g(hd,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(r.current||o.triggerRef.current?.focus(),e.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(r.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target,i=o.triggerRef.current?.contains(n);i&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),hd=e.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:r,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...u}=e,p=td(dd,n),f=Jc(n);return kn(),g(un,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:r,onUnmountAutoFocus:a,children:g(rn,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:g(Gc,{"data-state":gd(p.open),role:"dialog",id:p.contentId,...f,...u,ref:t,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),vd="PopoverClose";e.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=td(vd,n);return g(Xt.button,{type:"button",...o,ref:t,onClick:Wt(e.onClick,()=>r.onOpenChange(!1))})}).displayName=vd;function gd(e){return e?"open":"closed"}e.forwardRef((e,t)=>{const{__scopePopover:n,...o}=e,r=Jc(n);return g(Zc,{...r,...o,ref:t})}).displayName="PopoverArrow";var yd=cd,bd=ud;const xd=nd,wd=ad,kd=e.forwardRef(({className:e,align:t="center",sideOffset:n=4,...o},r)=>g(yd,{children:g(bd,{ref:r,align:t,sideOffset:n,"data-slot":"popover-content",className:Ye("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...o})}));kd.displayName=bd.displayName;const Nd="flex h-10 w-full items-center rounded-md border border-input bg-background px-3 text-sm font-normal shadow-none hover:bg-[hsl(var(--hover-ring))] hover:border-[hsl(var(--focus-ring))] focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",Cd="text-muted-foreground",_d="size-4 shrink-0 text-muted-foreground opacity-50",Dd="data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground",Sd=e=>{if(!e)return;const t=new Date(e);return Number.isNaN(t.getTime())?void 0:t},Ed=({id:e,placeholder:t,value:n,onValueChange:o,className:r,boundary:a="start",dateFormat:i="dd/MM/yyyy"})=>{const s=Sd(n),l=((e,t)=>{const n=Sd(e);return n?li(n,t):null})(n,i);return g("div",{className:Ye("flex w-full min-w-0",r),children:y(xd,{children:[g(wd,{asChild:!0,children:y("button",{type:"button","data-testid":e,className:Ye(Nd,"justify-start text-left",!l&&Cd),children:[g(ft,{className:Ye("mr-2",_d)}),l??t]})}),g(kd,{className:"w-fit p-0",align:"start",children:g(Is,{mode:"single",selected:s,onSelect:e=>{if(!e)return void o?.("");const t="end"===a?ka(e):ya(e);o?.(t.toISOString())},initialFocus:!0})})]})})},Md=Jo,Od=er,Td=({className:e,...t})=>g(tr,{...t});Td.displayName=tr.displayName;const Rd=e.forwardRef(({className:e,...t},n)=>g(nr,{ref:n,className:Ye("fixed inset-0 z-50 overlay-dialog data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Rd.displayName=nr.displayName;const Pd=e.forwardRef(({className:e,children:t,showCloseButton:n=!0,...o},r)=>y(Td,{children:[g(Rd,{}),y(or,{ref:r,className:Ye("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-2xl md:w-full",e),...o,children:[t,n&&y(ir,{type:"button",className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[g(Rt,{className:"h-4 w-4"}),g("span",{className:"sr-only",children:"Close"})]})]})]}));Pd.displayName=or.displayName;const Ad=({className:e,...t})=>g("div",{className:Ye("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ad.displayName="DialogHeader";const Id=({className:e,...t})=>g("div",{className:Ye("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Id.displayName="DialogFooter";const Fd=e.forwardRef(({className:e,...t},n)=>g(rr,{ref:n,className:Ye("text-lg font-semibold leading-none tracking-tight",e),...t}));Fd.displayName=rr.displayName;const zd=e.forwardRef(({className:e,...t},n)=>g(ar,{ref:n,className:Ye("text-sm text-muted-foreground",e),...t}));zd.displayName=ar.displayName;const jd=({openDialog:e,setOpenDialog:t,handleDelete:n,count:o})=>{const r=void 0!==o&&o>1;return g(Pt,{direction:"row",children:g(Md,{open:e,onOpenChange:t,children:y(Pd,{className:"max-w-[513px] rounded-xl px-8 py-6 gap-4",children:[y(Ad,{children:[g(Fd,{className:"pb-0 border-none",children:r?`Deseja apagar ${o} registros selecionados?`:"Deseja apagar registro atual?"}),g(zd,{})]}),g("form",{onSubmit:e=>{e.preventDefault(),n()},children:y(Pt,{gap:2,children:[g("p",{className:"text-fontcolor-secondary font-medium text-sm",children:r?`Essa ação não poderá ser desfeita e os ${o} registros serão removidos permanentemente. Tem certeza de que deseja continuar?`:"Essa ação não poderá ser desfeita e o registro será removido permanentemente. Tem certeza de que deseja continuar?"}),y(Id,{className:"mt-4",children:[g(Uo,{asChild:!0,children:g(Ur,{variant:"ghost",type:"button",children:"Cancelar"})}),g(Ur,{type:"submit",variant:"default",children:r?`Deletar ${o}`:"Deletar"})]})]})})]})})})};!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var Ld=e=>"number"==typeof e&&!isNaN(e),Wd=e=>"string"==typeof e,$d=e=>"function"==typeof e,Bd=1,Yd=()=>""+Bd++,qd=new Map,Hd=[],Ud=new Set,Vd=()=>qd.size>0;function Kd(e){if(Vd()){if(null==e||(e=>Wd(e)||Ld(e))(e))qd.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=qd.get(e.containerId);t?t.removeToast(e.id):qd.forEach(t=>{t.removeToast(e.id)})}}else Hd=Hd.filter(t=>null!=e&&t.options.toastId!==e)}function Gd(e,t){(e=>p(e)||Wd(e)||$d(e)||Ld(e))(e)&&(Vd()||Hd.push({content:e,options:t}),qd.forEach(n=>{n.buildToast(e,t)}))}function Zd(e,t){qd.forEach(n=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===n.id)&&n.toggle(e,null==t?void 0:t.id)})}function Xd(e){return e&&(Wd(e.toastId)||Ld(e.toastId))?e.toastId:Yd()}function Qd(e,t){return Gd(e,t),t.toastId}function Jd(e,t){return{...t,type:t&&t.type||e,toastId:Xd(t)}}function eu(e){return(t,n)=>Qd(t,Jd(e,n))}function tu(e,t){return Qd(e,Jd("default",t))}tu.loading=(e,t)=>Qd(e,Jd("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),tu.promise=function(e,{pending:t,error:n,success:o},r){let a;t&&(a=Wd(t)?tu.loading(t,r):tu.loading(t.render,{...r,...t}));let i={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(e,t,n)=>{if(null==t)return void tu.dismiss(a);let o={type:e,...i,...r,data:n},s=Wd(t)?{render:t}:t;return a?tu.update(a,{...o,...s}):tu(s.render,{...o,...s}),n},l=$d(e)?e():e;return l.then(e=>s("success",o,e)).catch(e=>s("error",n,e)),l},tu.success=eu("success"),tu.info=eu("info"),tu.error=eu("error"),tu.warning=eu("warning"),tu.warn=tu.warning,tu.dark=(e,t)=>Qd(e,Jd("default",{theme:"dark",...t})),tu.dismiss=function(e){Kd(e)},tu.clearWaitingQueue=(e={})=>{qd.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},tu.isActive=function(e,t){var n;if(t)return!(null==(n=qd.get(t))||!n.isToastActive(e));let o=!1;return qd.forEach(t=>{t.isToastActive(e)&&(o=!0)}),o},tu.update=(e,t={})=>{let n=((e,{containerId:t})=>{var n;return null==(n=qd.get(t||1))?void 0:n.toasts.get(e)})(e,t);if(n){let{props:o,content:r}=n,a={delay:100,...o,...t,toastId:t.toastId||e,updateId:Yd()};a.toastId!==e&&(a.staleId=e);let i=a.render||r;delete a.render,Qd(i,a)}},tu.done=e=>{tu.update(e,{progress:1})},tu.onChange=function(e){return Ud.add(e),()=>{Ud.delete(e)}},tu.play=e=>Zd(!0,e),tu.pause=e=>Zd(!1,e);const nu=({item:e,modelClass:t,propertyName:n,retrieveFile:o})=>{const[a,i]=r(!1);return g(Ur,{variant:"outline",size:"icon",disabled:a||!o,onClick:async()=>{if(o){i(!0);try{const[r,a]=await o(t,Number(e[n]));if(a)return void tu.error(`Houve algum problema: ${a.message}`);if(!r)return void tu.error("Nenhum arquivo encontrado");const i=new Blob([new Uint8Array(r.data)],{type:r.contentType}),s=URL.createObjectURL(i),l=document.createElement("a");l.href=s,l.download=e.file.split(/[\\/]/).pop()??e.file,document.body.appendChild(l);try{l.click()}finally{document.body.removeChild(l),URL.revokeObjectURL(s)}tu.success("Arquivo baixado com sucesso!")}finally{i(!1)}}else tu.error("Função de download não configurada")},children:a?g(Dt,{className:"animate-spin"}):g(Nt,{})})};function ou(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ru,au={exports:{}},iu={exports:{}},su={};var lu,cu,du,uu,pu,fu,mu,hu,vu,gu,yu,bu,xu,wu,ku,Nu={};
27
27
  /** @license React v16.13.1
28
28
  * react-is.development.js
29
29
  *