@segmentify/ui 0.0.17 → 0.0.19

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.
@@ -1,20 +1,20 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),I=require("react"),gu=require("react-dom");function hS(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const v=hS(I),bu=hS(gu);function VP(t,e){const n=v.createContext(e),r=i=>{const{children:a,...s}=i,l=v.useMemo(()=>s,Object.values(s));return h.jsx(n.Provider,{value:l,children:a})};r.displayName=t+"Provider";function o(i){const a=v.useContext(n);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,o]}function At(t,e=[]){let n=[];function r(i,a){const s=v.createContext(a),l=n.length;n=[...n,a];const u=c=>{const{scope:f,children:p,...m}=c,g=f?.[t]?.[l]||s,b=v.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(c,f){const p=f?.[t]?.[l]||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=s?.[t]||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return o.scopeName=t,[r,WP(o,...e)]}function WP(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function Xv(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function dr(...t){return e=>{let n=!1;const r=t.map(o=>{const i=Xv(o,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Xv(t[o],null)}}}}function Se(...t){return v.useCallback(dr(...t),t)}function wo(t){const e=HP(t),n=v.forwardRef((r,o)=>{const{children:i,...a}=r,s=v.Children.toArray(i),l=s.find(zP);if(l){const u=l.props.children,d=s.map(c=>c===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:c);return h.jsx(e,{...a,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return h.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}function HP(t){const e=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const a=YP(o),s=XP(i,o.props);return o.type!==v.Fragment&&(s.ref=r?dr(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var pS=Symbol("radix.slottable");function qP(t){const e=({children:n})=>h.jsx(h.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=pS,e}function zP(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pS}function XP(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function YP(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function ns(t){const e=t+"CollectionProvider",[n,r]=At(e),[o,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:y}=g,w=I.useRef(null),C=I.useRef(new Map).current;return h.jsx(o,{scope:b,itemMap:C,collectionRef:w,children:y})};a.displayName=e;const s=t+"CollectionSlot",l=wo(s),u=I.forwardRef((g,b)=>{const{scope:y,children:w}=g,C=i(s,y),S=Se(b,C.collectionRef);return h.jsx(l,{ref:S,children:w})});u.displayName=s;const d=t+"CollectionItemSlot",c="data-radix-collection-item",f=wo(d),p=I.forwardRef((g,b)=>{const{scope:y,children:w,...C}=g,S=I.useRef(null),E=Se(b,S),T=i(d,y);return I.useEffect(()=>(T.itemMap.set(S,{ref:S,...C}),()=>{T.itemMap.delete(S)})),h.jsx(f,{[c]:"",ref:E,children:w})});p.displayName=d;function m(g){const b=i(t+"CollectionConsumer",g);return I.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((T,A)=>C.indexOf(T.ref.current)-C.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:p},m,r]}function se(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t?.(o),n===!1||!o.defaultPrevented)return e?.(o)}}var gt=globalThis?.document?v.useLayoutEffect:()=>{},UP=v[" useInsertionEffect ".trim().toString()]||gt;function jt({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[o,i,a]=ZP({defaultProp:e,onChange:n}),s=t!==void 0,l=s?t:o;{const d=v.useRef(t!==void 0);v.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. 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.`),d.current=s},[s,r])}const u=v.useCallback(d=>{if(s){const c=JP(d)?d(t):d;c!==t&&a.current?.(c)}else i(d)},[s,t,i,a]);return[l,u]}function ZP({defaultProp:t,onChange:e}){const[n,r]=v.useState(t),o=v.useRef(n),i=v.useRef(e);return UP(()=>{i.current=e},[e]),v.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function JP(t){return typeof t=="function"}var KP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=KP.reduce((t,e)=>{const n=wo(`Primitive.${e}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function mS(t,e){t&&bu.flushSync(()=>t.dispatchEvent(e))}function QP(t,e){return v.useReducer((n,r)=>e[n][r]??n,t)}var pt=t=>{const{present:e,children:n}=t,r=e2(e),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Se(r.ref,t2(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};pt.displayName="Presence";function e2(t){const[e,n]=v.useState(),r=v.useRef(null),o=v.useRef(t),i=v.useRef("none"),a=t?"mounted":"unmounted",[s,l]=QP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Vs(r.current);i.current=s==="mounted"?u:"none"},[s]),gt(()=>{const u=r.current,d=o.current;if(d!==t){const f=i.current,p=Vs(u);t?l("MOUNT"):p==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,l]),gt(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,c=p=>{const g=Vs(r.current).includes(CSS.escape(p.animationName));if(p.target===e&&g&&(l("ANIMATION_END"),!o.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=p=>{p.target===e&&(i.current=Vs(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Vs(t){return t?.animationName||"none"}function t2(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var n2=v[" useId ".trim().toString()]||(()=>{}),r2=0;function ft(t){const[e,n]=v.useState(n2());return gt(()=>{n(r=>r??String(r2++))},[t]),e?`radix-${e}`:""}var vu="Collapsible",[o2,gS]=At(vu),[i2,jg]=o2(vu),bS=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=t,[l,u]=jt({prop:r,defaultProp:o??!1,onChange:a,caller:vu});return h.jsx(i2,{scope:n,disabled:i,contentId:ft(),open:l,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),children:h.jsx(he.div,{"data-state":Gg(l),"data-disabled":i?"":void 0,...s,ref:e})})});bS.displayName=vu;var vS="CollapsibleTrigger",Lg=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,o=jg(vS,n);return h.jsx(he.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Gg(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:e,onClick:se(t.onClick,o.onOpenToggle)})});Lg.displayName=vS;var Bg="CollapsibleContent",Fg=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=jg(Bg,t.__scopeCollapsible);return h.jsx(pt,{present:n||o.open,children:({present:i})=>h.jsx(a2,{...r,ref:e,present:i})})});Fg.displayName=Bg;var a2=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=t,a=jg(Bg,n),[s,l]=v.useState(r),u=v.useRef(null),d=Se(e,u),c=v.useRef(0),f=c.current,p=v.useRef(0),m=p.current,g=a.open||s,b=v.useRef(g),y=v.useRef(void 0);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),gt(()=>{const w=u.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const C=w.getBoundingClientRect();c.current=C.height,p.current=C.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[a.open,r]),h.jsx(he.div,{"data-state":Gg(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style},children:g&&o})});function Gg(t){return t?"open":"closed"}var yS=bS,s2=Lg,l2=Fg,u2=v.createContext(void 0);function to(t){const e=v.useContext(u2);return t||e||"ltr"}var Hn="Accordion",c2=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$g,d2,f2]=ns(Hn),[yu]=At(Hn,[f2,gS]),Vg=gS(),xS=I.forwardRef((t,e)=>{const{type:n,...r}=t,o=r,i=r;return h.jsx($g.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?h.jsx(g2,{...i,ref:e}):h.jsx(m2,{...o,ref:e})})});xS.displayName=Hn;var[wS,h2]=yu(Hn),[CS,p2]=yu(Hn,{collapsible:!1}),m2=I.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=t,[s,l]=jt({prop:n,defaultProp:r??"",onChange:o,caller:Hn});return h.jsx(wS,{scope:t.__scopeAccordion,value:I.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:I.useCallback(()=>i&&l(""),[i,l]),children:h.jsx(CS,{scope:t.__scopeAccordion,collapsible:i,children:h.jsx(SS,{...a,ref:e})})})}),g2=I.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=t,[a,s]=jt({prop:n,defaultProp:r??[],onChange:o,caller:Hn}),l=I.useCallback(d=>s((c=[])=>[...c,d]),[s]),u=I.useCallback(d=>s((c=[])=>c.filter(f=>f!==d)),[s]);return h.jsx(wS,{scope:t.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:h.jsx(CS,{scope:t.__scopeAccordion,collapsible:!0,children:h.jsx(SS,{...i,ref:e})})})}),[b2,xu]=yu(Hn),SS=I.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=t,s=I.useRef(null),l=Se(s,e),u=d2(n),c=to(o)==="ltr",f=se(t.onKeyDown,p=>{if(!c2.includes(p.key))return;const m=p.target,g=u().filter(O=>!O.ref.current?.disabled),b=g.findIndex(O=>O.ref.current===m),y=g.length;if(b===-1)return;p.preventDefault();let w=b;const C=0,S=y-1,E=()=>{w=b+1,w>S&&(w=C)},T=()=>{w=b-1,w<C&&(w=S)};switch(p.key){case"Home":w=C;break;case"End":w=S;break;case"ArrowRight":i==="horizontal"&&(c?E():T());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(c?T():E());break;case"ArrowUp":i==="vertical"&&T();break}const A=w%y;g[A].ref.current?.focus()});return h.jsx(b2,{scope:n,disabled:r,direction:o,orientation:i,children:h.jsx($g.Slot,{scope:n,children:h.jsx(he.div,{...a,"data-orientation":i,ref:l,onKeyDown:r?void 0:f})})})}),Pl="AccordionItem",[v2,Wg]=yu(Pl),ES=I.forwardRef((t,e)=>{const{__scopeAccordion:n,value:r,...o}=t,i=xu(Pl,n),a=h2(Pl,n),s=Vg(n),l=ft(),u=r&&a.value.includes(r)||!1,d=i.disabled||t.disabled;return h.jsx(v2,{scope:n,open:u,disabled:d,triggerId:l,children:h.jsx(yS,{"data-orientation":i.orientation,"data-state":OS(u),...s,...o,ref:e,disabled:d,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})})});ES.displayName=Pl;var IS="AccordionHeader",AS=I.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=xu(Hn,n),i=Wg(IS,n);return h.jsx(he.h3,{"data-orientation":o.orientation,"data-state":OS(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:e})});AS.displayName=IS;var xm="AccordionTrigger",TS=I.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=xu(Hn,n),i=Wg(xm,n),a=p2(xm,n),s=Vg(n);return h.jsx($g.ItemSlot,{scope:n,children:h.jsx(s2,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:e})})});TS.displayName=xm;var NS="AccordionContent",_S=I.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=xu(Hn,n),i=Wg(NS,n),a=Vg(n);return h.jsx(l2,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});_S.displayName=NS;function OS(t){return t?"open":"closed"}var y2=xS,x2=ES,w2=AS,C2=TS,S2=_S;const E2=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I2=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),Yv=t=>{const e=I2(t);return e.charAt(0).toUpperCase()+e.slice(1)},RS=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),A2=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var T2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const N2=I.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>I.createElement("svg",{ref:l,...T2,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:RS("lucide",o),...!i&&!A2(s)&&{"aria-hidden":"true"},...s},[...a.map(([u,d])=>I.createElement(u,d)),...Array.isArray(i)?i:[i]]));const ot=(t,e)=>{const n=I.forwardRef(({className:r,...o},i)=>I.createElement(N2,{ref:i,iconNode:e,className:RS(`lucide-${E2(Yv(t))}`,`lucide-${t}`,r),...o}));return n.displayName=Yv(t),n};const _2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],O2=ot("arrow-left",_2);const R2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],P2=ot("arrow-right",R2);const M2=[["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"}]],PS=ot("calendar",M2);const k2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oa=ot("check",k2);const D2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mi=ot("chevron-down",D2);const j2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],MS=ot("chevron-left",j2);const L2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wu=ot("chevron-right",L2);const B2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],kS=ot("chevron-up",B2);const F2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],G2=ot("chevrons-up-down",F2);const $2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],V2=ot("circle-check",$2);const W2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],H2=ot("circle-plus",W2);const q2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],z2=ot("circle-x",q2);const X2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],DS=ot("circle",X2);const Y2=[["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"}]],jS=ot("ellipsis",Y2);const U2=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Z2=ot("eye-off",U2);const J2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],K2=ot("eye",J2);const Q2=[["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"}]],eM=ot("file-text",Q2);const tM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ki=ot("info",tM);const nM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Cu=ot("loader-circle",nM);const rM=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],oM=ot("octagon-x",rM);const iM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],aM=ot("panel-left",iM);const sM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lM=ot("search",sM);const uM=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],cM=ot("triangle-alert",uM);const dM=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],fM=ot("upload",dM);const hM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Su=ot("x",hM);function LS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=LS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Dr(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=LS(t))&&(r&&(r+=" "),r+=e);return r}const pM=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},mM=(t,e)=>({classGroupId:t,validator:e}),BS=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ml="-",Uv=[],gM="arbitrary..",bM=t=>{const e=yM(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return vM(a);const s=a.split(Ml),l=s[0]===""&&s.length>1?1:0;return FS(s,l,e)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],u=n[a];return l?u?pM(u,l):l:u||Uv}return n[a]||Uv}}},FS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],i=n.nextPart.get(o);if(i){const u=FS(t,e+1,i);if(u)return u}const a=n.validators;if(a===null)return;const s=e===0?t.join(Ml):t.slice(e).join(Ml),l=a.length;for(let u=0;u<l;u++){const d=a[u];if(d.validator(s))return d.classGroupId}},vM=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?gM+r:void 0})(),yM=t=>{const{theme:e,classGroups:n}=t;return xM(n,e)},xM=(t,e)=>{const n=BS();for(const r in t){const o=t[r];Hg(o,n,r,e)}return n},Hg=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const a=t[i];wM(a,e,n,r)}},wM=(t,e,n,r)=>{if(typeof t=="string"){CM(t,e,n);return}if(typeof t=="function"){SM(t,e,n,r);return}EM(t,e,n,r)},CM=(t,e,n)=>{const r=t===""?e:GS(e,t);r.classGroupId=n},SM=(t,e,n,r)=>{if(IM(t)){Hg(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(mM(n,t))},EM=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];Hg(l,GS(e,s),n,r)}},GS=(t,e)=>{let n=t;const r=e.split(Ml),o=r.length;for(let i=0;i<o;i++){const a=r[i];let s=n.nextPart.get(a);s||(s=BS(),n.nextPart.set(a,s)),n=s}return n},IM=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,AM=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},wm="!",Zv=":",TM=[],Jv=(t,e,n,r,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),NM=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=o=>{const i=[];let a=0,s=0,l=0,u;const d=o.length;for(let g=0;g<d;g++){const b=o[g];if(a===0&&s===0){if(b===Zv){i.push(o.slice(l,g)),l=g+1;continue}if(b==="/"){u=g;continue}}b==="["?a++:b==="]"?a--:b==="("?s++:b===")"&&s--}const c=i.length===0?o:o.slice(l);let f=c,p=!1;c.endsWith(wm)?(f=c.slice(0,-1),p=!0):c.startsWith(wm)&&(f=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return Jv(i,p,f,m)};if(e){const o=e+Zv,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):Jv(TM,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},_M=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],s=a[0]==="[",l=e.has(a);s||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},OM=t=>({cache:AM(t.cacheSize),parseClassName:NM(t),sortModifiers:_M(t),...bM(t)}),RM=/\s+/,PM=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=e,a=[],s=t.trim().split(RM);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:c,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let b=!!g,y=r(b?m.substring(0,g):m);if(!y){if(!b){l=d+(l.length>0?" "+l:l);continue}if(y=r(m),!y){l=d+(l.length>0?" "+l:l);continue}b=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),C=p?w+wm:w,S=C+y;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(y,b);for(let T=0;T<E.length;++T){const A=E[T];a.push(C+A)}l=d+(l.length>0?" "+l:l)}return l},MM=(...t)=>{let e=0,n,r,o="";for(;e<t.length;)(n=t[e++])&&(r=$S(n))&&(o&&(o+=" "),o+=r);return o},$S=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=$S(t[r]))&&(n&&(n+=" "),n+=e);return n},Kv=(t,...e)=>{let n,r,o,i;const a=l=>{const u=e.reduce((d,c)=>c(d),t());return n=OM(u),r=n.cache.get,o=n.cache.set,i=s,s(l)},s=l=>{const u=r(l);if(u)return u;const d=PM(l,n);return o(l,d),d};return i=a,(...l)=>i(MM(...l))},kM=[],St=t=>{const e=n=>n[t]||kM;return e.isThemeGetter=!0,e},VS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,WS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,DM=/^\d+\/\d+$/,jM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,FM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qo=t=>DM.test(t),Pe=t=>!!t&&!Number.isNaN(Number(t)),Wr=t=>!!t&&Number.isInteger(Number(t)),vd=t=>t.endsWith("%")&&Pe(t.slice(0,-1)),_r=t=>jM.test(t),$M=()=>!0,VM=t=>LM.test(t)&&!BM.test(t),HS=()=>!1,WM=t=>FM.test(t),HM=t=>GM.test(t),qM=t=>!pe(t)&&!me(t),zM=t=>Di(t,XS,HS),pe=t=>VS.test(t),mo=t=>Di(t,YS,VM),yd=t=>Di(t,JM,Pe),Qv=t=>Di(t,qS,HS),XM=t=>Di(t,zS,HM),Ws=t=>Di(t,US,WM),me=t=>WS.test(t),na=t=>ji(t,YS),YM=t=>ji(t,KM),ey=t=>ji(t,qS),UM=t=>ji(t,XS),ZM=t=>ji(t,zS),Hs=t=>ji(t,US,!0),Di=(t,e,n)=>{const r=VS.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},ji=(t,e,n=!1)=>{const r=WS.exec(t);return r?r[1]?e(r[1]):n:!1},qS=t=>t==="position"||t==="percentage",zS=t=>t==="image"||t==="url",XS=t=>t==="length"||t==="size"||t==="bg-size",YS=t=>t==="length",JM=t=>t==="number",KM=t=>t==="family-name",US=t=>t==="shadow",ty=()=>{const t=St("color"),e=St("font"),n=St("text"),r=St("font-weight"),o=St("tracking"),i=St("leading"),a=St("breakpoint"),s=St("container"),l=St("spacing"),u=St("radius"),d=St("shadow"),c=St("inset-shadow"),f=St("text-shadow"),p=St("drop-shadow"),m=St("blur"),g=St("perspective"),b=St("aspect"),y=St("ease"),w=St("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),me,pe],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],O=()=>[me,pe,l],M=()=>[Qo,"full","auto",...O()],V=()=>[Wr,"none","subgrid",me,pe],N=()=>["auto",{span:["full",Wr,me,pe]},Wr,me,pe],k=()=>[Wr,"auto",me,pe],_=()=>["auto","min","max","fr",me,pe],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...O()],G=()=>[Qo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],j=()=>[t,me,pe],H=()=>[...S(),ey,Qv,{position:[me,pe]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",UM,zM,{size:[me,pe]}],$=()=>[vd,na,mo],q=()=>["","none","full",u,me,pe],Z=()=>["",Pe,na,mo],X=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Pe,vd,ey,Qv],J=()=>["","none",m,me,pe],ie=()=>["none",Pe,me,pe],oe=()=>["none",Pe,me,pe],re=()=>[Pe,me,pe],z=()=>[Qo,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_r],breakpoint:[_r],color:[$M],container:[_r],"drop-shadow":[_r],ease:["in","out","in-out"],font:[qM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_r],shadow:[_r],spacing:["px",Pe],text:[_r],"text-shadow":[_r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qo,pe,me,b]}],container:["container"],columns:[{columns:[Pe,pe,me,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Wr,"auto",me,pe]}],basis:[{basis:[Qo,"full","auto",s,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Qo,"auto","initial","none",pe]}],grow:[{grow:["",Pe,me,pe]}],shrink:[{shrink:["",Pe,me,pe]}],order:[{order:[Wr,"first","last","none",me,pe]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[s,"screen",...G()]}],"min-w":[{"min-w":[s,"screen","none",...G()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,na,mo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,me,yd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vd,pe]}],"font-family":[{font:[YM,pe,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,pe]}],"line-clamp":[{"line-clamp":[Pe,"none",me,yd]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",me,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",me,mo]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Pe,"auto",me,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wr,me,pe],radial:["",me,pe],conic:[Wr,me,pe]},ZM,XM]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,me,pe]}],"outline-w":[{outline:["",Pe,na,mo]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",d,Hs,Ws]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",c,Hs,Ws]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Pe,mo]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,Hs,Ws]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Pe,me,pe]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[me,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,pe]}],filter:[{filter:["","none",me,pe]}],blur:[{blur:J()}],brightness:[{brightness:[Pe,me,pe]}],contrast:[{contrast:[Pe,me,pe]}],"drop-shadow":[{"drop-shadow":["","none",p,Hs,Ws]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Pe,me,pe]}],"hue-rotate":[{"hue-rotate":[Pe,me,pe]}],invert:[{invert:["",Pe,me,pe]}],saturate:[{saturate:[Pe,me,pe]}],sepia:[{sepia:["",Pe,me,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,pe]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,me,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,me,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,me,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,me,pe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,me,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,me,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,me,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,me,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",me,pe]}],ease:[{ease:["linear","initial",y,me,pe]}],delay:[{delay:[Pe,me,pe]}],animate:[{animate:["none",w,me,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,me,pe]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[me,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,pe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Pe,na,mo,yd]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QM=(t,{cacheSize:e,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(pa(t,"cacheSize",e),pa(t,"prefix",n),pa(t,"experimentalParseClassName",r),qs(t.theme,i.theme),qs(t.classGroups,i.classGroups),qs(t.conflictingClassGroups,i.conflictingClassGroups),qs(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),pa(t,"orderSensitiveModifiers",i.orderSensitiveModifiers),zs(t.theme,o.theme),zs(t.classGroups,o.classGroups),zs(t.conflictingClassGroups,o.conflictingClassGroups),zs(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ZS(t,o,"orderSensitiveModifiers"),t),pa=(t,e,n)=>{n!==void 0&&(t[e]=n)},qs=(t,e)=>{if(e)for(const n in e)pa(t,n,e[n])},zs=(t,e)=>{if(e)for(const n in e)ZS(t,e,n)},ZS=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},ek=(t,...e)=>typeof t=="function"?Kv(ty,t,...e):Kv(()=>QM(ty(),t),...e),JS=6048e5,tk=864e5,ny=Symbol.for("constructDateFrom");function wt(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&ny in t?t[ny](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ke(t,e){return wt(e||t,t)}function KS(t,e,n){const r=Ke(t,n?.in);return isNaN(e)?wt(t,NaN):(e&&r.setDate(r.getDate()+e),r)}function QS(t,e,n){const r=Ke(t,n?.in);if(isNaN(e))return wt(t,NaN);if(!e)return r;const o=r.getDate(),i=wt(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let nk={};function rs(){return nk}function wi(t,e){const n=rs(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Ke(t,e?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Ra(t,e){return wi(t,{...e,weekStartsOn:1})}function eE(t,e){const n=Ke(t,e?.in),r=n.getFullYear(),o=wt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=Ra(o),a=wt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Ra(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function ry(t){const e=Ke(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Li(t,...e){const n=wt.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function Pa(t,e){const n=Ke(t,e?.in);return n.setHours(0,0,0,0),n}function qg(t,e,n){const[r,o]=Li(n?.in,t,e),i=Pa(r),a=Pa(o),s=+i-ry(i),l=+a-ry(a);return Math.round((s-l)/tk)}function rk(t,e){const n=eE(t,e),r=wt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function ok(t,e,n){return KS(t,e*7,n)}function ik(t,e,n){return QS(t,e*12,n)}function ak(t,e){let n,r=e?.in;return t.forEach(o=>{!r&&typeof o=="object"&&(r=wt.bind(null,o));const i=Ke(o,r);(!n||n<i||isNaN(+i))&&(n=i)}),wt(r,n||NaN)}function sk(t,e){let n,r=e?.in;return t.forEach(o=>{!r&&typeof o=="object"&&(r=wt.bind(null,o));const i=Ke(o,r);(!n||n>i||isNaN(+i))&&(n=i)}),wt(r,n||NaN)}function lk(t,e,n){const[r,o]=Li(n?.in,t,e);return+Pa(r)==+Pa(o)}function tE(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function nE(t){return!(!tE(t)&&typeof t!="number"||isNaN(+Ke(t)))}function rE(t,e,n){const[r,o]=Li(n?.in,t,e),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function uk(t,e){const n=Ke(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function oE(t,e){const[n,r]=Li(t,e.start,e.end);return{start:n,end:r}}function ck(t,e){const{start:n,end:r}=oE(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=1;const l=[];for(;+a<=i;)l.push(wt(n,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}function dk(t,e){const n=Ke(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function fk(t,e){const n=Ke(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function iE(t,e){const n=Ke(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function hk(t,e){const{start:n,end:r}=oE(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let s=1;const l=[];for(;+a<=i;)l.push(wt(n,a)),a.setFullYear(a.getFullYear()+s);return o?l.reverse():l}function aE(t,e){const n=rs(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Ke(t,e?.in),i=o.getDay(),a=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function pk(t,e){return aE(t,{...e,weekStartsOn:1})}const mk={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"}},gk=(t,e,n)=>{let r;const o=mk[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xd(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const bk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xk={date:xd({formats:bk,defaultWidth:"full"}),time:xd({formats:vk,defaultWidth:"full"}),dateTime:xd({formats:yk,defaultWidth:"full"})},wk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ck=(t,e,n,r)=>wk[t];function ra(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,s=n?.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{const a=t.defaultWidth,s=n?.width?String(n.width):t.defaultWidth;o=t.values[s]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return o[i]}}const Sk={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ek={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ik={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"]},Ak={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"]},Tk={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"}},Nk={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"}},_k=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ok={ordinalNumber:_k,era:ra({values:Sk,defaultWidth:"wide"}),quarter:ra({values:Ek,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ra({values:Ik,defaultWidth:"wide"}),day:ra({values:Ak,defaultWidth:"wide"}),dayPeriod:ra({values:Tk,defaultWidth:"wide",formattingValues:Nk,defaultFormattingWidth:"wide"})};function oa(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;const a=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?Pk(s,c=>c.test(a)):Rk(s,c=>c.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(a.length);return{value:u,rest:d}}}function Rk(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Pk(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Mk(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=e.slice(o.length);return{value:a,rest:s}}}const kk=/^(\d+)(th|st|nd|rd)?/i,Dk=/\d+/i,jk={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},Lk={any:[/^b/i,/^(a|c)/i]},Bk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fk={any:[/1/i,/2/i,/3/i,/4/i]},Gk={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},$k={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]},Vk={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},Wk={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]},Hk={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},qk={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}},zk={ordinalNumber:Mk({matchPattern:kk,parsePattern:Dk,valueCallback:t=>parseInt(t,10)}),era:oa({matchPatterns:jk,defaultMatchWidth:"wide",parsePatterns:Lk,defaultParseWidth:"any"}),quarter:oa({matchPatterns:Bk,defaultMatchWidth:"wide",parsePatterns:Fk,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oa({matchPatterns:Gk,defaultMatchWidth:"wide",parsePatterns:$k,defaultParseWidth:"any"}),day:oa({matchPatterns:Vk,defaultMatchWidth:"wide",parsePatterns:Wk,defaultParseWidth:"any"}),dayPeriod:oa({matchPatterns:Hk,defaultMatchWidth:"any",parsePatterns:qk,defaultParseWidth:"any"})},ai={code:"en-US",formatDistance:gk,formatLong:xk,formatRelative:Ck,localize:Ok,match:zk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Xk(t,e){const n=Ke(t,e?.in);return qg(n,iE(n))+1}function zg(t,e){const n=Ke(t,e?.in),r=+Ra(n)-+rk(n);return Math.round(r/JS)+1}function sE(t,e){const n=Ke(t,e?.in),r=n.getFullYear(),o=rs(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=wt(e?.in||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=wi(a,e),l=wt(e?.in||t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=wi(l,e);return+n>=+s?r+1:+n>=+u?r:r-1}function Yk(t,e){const n=rs(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=sE(t,e),i=wt(e?.in||t,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),wi(i,e)}function Xg(t,e){const n=Ke(t,e?.in),r=+wi(n,e)-+Yk(n,e);return Math.round(r/JS)+1}function Je(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Hr={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Je(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Je(n+1,2)},d(t,e){return Je(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Je(t.getHours()%12||12,e.length)},H(t,e){return Je(t.getHours(),e.length)},m(t,e){return Je(t.getMinutes(),e.length)},s(t,e){return Je(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Je(o,e.length)}},ei={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oy={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Hr.y(t,e)},Y:function(t,e,n,r){const o=sE(t,r),i=o>0?o:1-o;if(e==="YY"){const a=i%100;return Je(a,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Je(i,e.length)},R:function(t,e){const n=eE(t);return Je(n,e.length)},u:function(t,e){const n=t.getFullYear();return Je(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Je(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Je(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Hr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Je(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=Xg(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):Je(o,e.length)},I:function(t,e,n){const r=zg(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Je(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Hr.d(t,e)},D:function(t,e,n){const r=Xk(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Je(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":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"})}},e:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Je(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});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"})}},c:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Je(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return Je(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,n){const r=t.getHours();let o;switch(r===12?o=ei.noon:r===0?o=ei.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=ei.evening:r>=12?o=ei.afternoon:r>=4?o=ei.morning:o=ei.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Hr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Hr.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Hr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Hr.s(t,e)},S:function(t,e){return Hr.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return ay(r);case"XXXX":case"XX":return vo(r);default:return vo(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return ay(r);case"xxxx":case"xx":return vo(r);default:return vo(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+iy(r,":");default:return"GMT"+vo(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+iy(r,":");default:return"GMT"+vo(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Je(r,e.length)},T:function(t,e,n){return Je(+t,e.length)}};function iy(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+e+Je(i,2)}function ay(t,e){return t%60===0?(t>0?"-":"+")+Je(Math.abs(t)/60,2):vo(t,e)}function vo(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Je(Math.trunc(r/60),2),i=Je(r%60,2);return n+o+e+i}const sy=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},lE=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Uk=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return sy(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",sy(r,e)).replace("{{time}}",lE(o,e))},Zk={p:lE,P:Uk},Jk=/^D+$/,Kk=/^Y+$/,Qk=["D","DD","YY","YYYY"];function eD(t){return Jk.test(t)}function tD(t){return Kk.test(t)}function nD(t,e,n){const r=rD(t,e,n);if(console.warn(r),Qk.includes(t))throw new RangeError(r)}function rD(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const oD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,iD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,aD=/^'([^]*?)'?$/,sD=/''/g,lD=/[a-zA-Z]/;function Ln(t,e,n){const r=rs(),o=n?.locale??r.locale??ai,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ke(t,n?.in);if(!nE(s))throw new RangeError("Invalid time value");let l=e.match(iD).map(d=>{const c=d[0];if(c==="p"||c==="P"){const f=Zk[c];return f(d,o.formatLong)}return d}).join("").match(oD).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const c=d[0];if(c==="'")return{isToken:!1,value:uD(d)};if(oy[c])return{isToken:!0,value:d};if(c.match(lD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(d=>{if(!d.isToken)return d.value;const c=d.value;(!n?.useAdditionalWeekYearTokens&&tD(c)||!n?.useAdditionalDayOfYearTokens&&eD(c))&&nD(c,e,String(t));const f=oy[c[0]];return f(s,c,o.localize,u)}).join("")}function uD(t){const e=t.match(aD);return e?e[1].replace(sD,"'"):t}function cD(t,e){const n=Ke(t,e?.in),r=n.getFullYear(),o=n.getMonth(),i=wt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function dD(t,e){return Ke(t,e?.in).getMonth()}function fD(t,e){return Ke(t,e?.in).getFullYear()}function hD(t,e){return+Ke(t)>+Ke(e)}function pD(t,e){return+Ke(t)<+Ke(e)}function mD(t,e,n){const[r,o]=Li(n?.in,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function gD(t,e,n){const[r,o]=Li(n?.in,t,e);return r.getFullYear()===o.getFullYear()}function bD(t,e,n){const r=Ke(t,n?.in),o=r.getFullYear(),i=r.getDate(),a=wt(t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);const s=cD(a);return r.setMonth(e,Math.min(i,s)),r}function vD(t,e,n){const r=Ke(t,n?.in);return isNaN(+r)?wt(t,NaN):(r.setFullYear(e),r)}const yD=ek({prefix:"ui"});function D(...t){return yD(Dr(t))}const xD=(t,e="yyyy-MM-dd")=>nE(t)?Ln(t,e):Ln(new Date,e);function wD({...t}){return h.jsx(y2,{"data-slot":"accordion",...t})}function CD({className:t,...e}){return h.jsx(x2,{"data-slot":"accordion-item",className:D("ui:border-b ui:last:border-b-0",t),...e})}function SD({className:t,children:e,...n}){return h.jsx(w2,{className:"ui:flex",children:h.jsxs(C2,{"data-slot":"accordion-trigger",className:D("ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:flex ui:flex-1 ui:items-start ui:justify-between ui:gap-4 ui:rounded-md ui:py-4 ui:text-left ui:text-sm ui:font-medium ui:transition-all ui:outline-none ui:hover:underline ui:focus-visible:ring-[3px] ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:[&[data-state=open]>svg]:rotate-180",t),...n,children:[e,h.jsx(Mi,{className:"ui:text-muted-foreground ui:pointer-events-none ui:size-4 ui:shrink-0 ui:translate-y-0.5 ui:transition-transform ui:duration-200"})]})})}function ED({className:t,children:e,...n}){return h.jsx(S2,{"data-slot":"accordion-content",className:"ui:data-[state=closed]:animate-accordion-up ui:data-[state=open]:animate-accordion-down ui:overflow-hidden ui:text-sm",...n,children:h.jsx("div",{className:D("ui:pt-0 ui:pb-4",t),children:e})})}var ID=Symbol.for("react.lazy"),kl=v[" use ".trim().toString()];function AD(t){return typeof t=="object"&&t!==null&&"then"in t}function uE(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===ID&&"_payload"in t&&AD(t._payload)}function cE(t){const e=TD(t),n=v.forwardRef((r,o)=>{let{children:i,...a}=r;uE(i)&&typeof kl=="function"&&(i=kl(i._payload));const s=v.Children.toArray(i),l=s.find(_D);if(l){const u=l.props.children,d=s.map(c=>c===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:c);return h.jsx(e,{...a,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return h.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}var gr=cE("Slot");function TD(t){const e=v.forwardRef((n,r)=>{let{children:o,...i}=n;if(uE(o)&&typeof kl=="function"&&(o=kl(o._payload)),v.isValidElement(o)){const a=RD(o),s=OD(i,o.props);return o.type!==v.Fragment&&(s.ref=r?dr(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ND=Symbol("radix.slottable");function _D(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ND}function OD(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function RD(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var PD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nn=PD.reduce((t,e)=>{const n=cE(`Primitive.${e}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),MD="AspectRatio",dE=v.forwardRef((t,e)=>{const{ratio:n=1/1,style:r,...o}=t;return h.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:h.jsx(nn.div,{...o,ref:e,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});dE.displayName=MD;var kD=dE;function DD({...t}){return h.jsx(kD,{"data-slot":"aspect-ratio",...t})}function jD(t,e=[]){let n=[];function r(i,a){const s=v.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const u=c=>{const{scope:f,children:p,...m}=c,g=f?.[t]?.[l]||s,b=v.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(c,f){const p=f?.[t]?.[l]||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=s?.[t]||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return o.scopeName=t,[r,LD(o,...e)]}function LD(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function It(t){const e=v.useRef(t);return v.useEffect(()=>{e.current=t}),v.useMemo(()=>(...n)=>e.current?.(...n),[])}var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function An(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xs={exports:{}},wd={};var ly;function BD(){if(ly)return wd;ly=1;var t=I;function e(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(c,f){var p=f(),m=r({inst:{value:p,getSnapshot:f}}),g=m[0].inst,b=m[1];return i(function(){g.value=p,g.getSnapshot=f,l(g)&&b({inst:g})},[c,p,f]),o(function(){return l(g)&&b({inst:g}),c(function(){l(g)&&b({inst:g})})},[c]),a(p),p}function l(c){var f=c.getSnapshot;c=c.value;try{var p=f();return!n(c,p)}catch{return!0}}function u(c,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return wd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,wd}var Cd={};var uy;function FD(){return uy||(uy=1,process.env.NODE_ENV!=="production"&&(function(){function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function e(p,m){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=m();if(!c){var b=m();i(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}b=a({inst:{value:g,getSnapshot:m}});var y=b[0].inst,w=b[1];return l(function(){y.value=g,y.getSnapshot=m,n(y)&&w({inst:y})},[p,g,m]),s(function(){return n(y)&&w({inst:y}),p(function(){n(y)&&w({inst:y})})},[p]),u(g),g}function n(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!i(p,g)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=I,i=typeof Object.is=="function"?Object.is:t,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,d=!1,c=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Cd.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cd}var cy;function GD(){return cy||(cy=1,process.env.NODE_ENV==="production"?Xs.exports=BD():Xs.exports=FD()),Xs.exports}var $D=GD();function VD(){return $D.useSyncExternalStore(WD,()=>!0,()=>!1)}function WD(){return()=>{}}var Yg="Avatar",[HD]=jD(Yg),[qD,fE]=HD(Yg),hE=v.forwardRef((t,e)=>{const{__scopeAvatar:n,...r}=t,[o,i]=v.useState("idle");return h.jsx(qD,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:h.jsx(nn.span,{...r,ref:e})})});hE.displayName=Yg;var pE="AvatarImage",mE=v.forwardRef((t,e)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=t,a=fE(pE,n),s=zD(r,i),l=It(u=>{o(u),a.onImageLoadingStatusChange(u)});return gt(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?h.jsx(nn.img,{...i,ref:e,src:r}):null});mE.displayName=pE;var gE="AvatarFallback",bE=v.forwardRef((t,e)=>{const{__scopeAvatar:n,delayMs:r,...o}=t,i=fE(gE,n),[a,s]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&i.imageLoadingStatus!=="loaded"?h.jsx(nn.span,{...o,ref:e}):null});bE.displayName=gE;function dy(t,e){return t?e?(t.src!==e&&(t.src=e),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function zD(t,{referrerPolicy:e,crossOrigin:n}){const r=VD(),o=v.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[a,s]=v.useState(()=>dy(i,t));return gt(()=>{s(dy(i,t))},[i,t]),gt(()=>{const l=c=>()=>{s(c)};if(!i)return;const u=l("loaded"),d=l("error");return i.addEventListener("load",u),i.addEventListener("error",d),e&&(i.referrerPolicy=e),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",u),i.removeEventListener("error",d)}},[i,n,e]),a}var XD=hE,YD=mE,UD=bE;function ZD({className:t,...e}){return h.jsx(XD,{"data-slot":"avatar",className:D("ui:relative ui:flex ui:size-8 ui:shrink-0 ui:overflow-hidden ui:rounded-full",t),...e})}function JD({className:t,...e}){return h.jsx(YD,{"data-slot":"avatar-image",className:D("ui:aspect-square ui:size-full",t),...e})}function KD({className:t,...e}){return h.jsx(UD,{"data-slot":"avatar-fallback",className:D("ui:bg-muted ui:flex ui:size-full ui:items-center ui:justify-center ui:rounded-full",t),...e})}const fy=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,hy=Dr,Bi=(t,e)=>n=>{var r;if(e?.variants==null)return hy(t,n?.class,n?.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(u=>{const d=n?.[u],c=i?.[u];if(d===null)return null;const f=fy(d)||fy(c);return o[u][f]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...p}=d;return Object.entries(p).every(m=>{let[g,b]=m;return Array.isArray(b)?b.includes({...i,...s}[g]):{...i,...s}[g]===b})?[...u,c,f]:u},[]);return hy(t,a,l,n?.class,n?.className)},Dl=Bi("ui:inline-flex ui:items-center ui:justify-center ui:gap-2 ui:whitespace-nowrap ui:rounded-md ui:text-sm ui:font-medium ui:transition-all ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg:not([class*='size-'])]:size-4 ui:shrink-0 ui:[&_svg]:shrink-0 ui:outline-none ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px] ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:disabled:cursor-not-allowed",{variants:{variant:{primary:"ui:bg-primary ui:text-white ui:hover:bg-primary/80 ui:hover:text-white ui:disabled:opacity-70 ui:disabled:bg-gray-400 ui:disabled:text-white",secondary:"ui:bg-secondary ui:text-secondary-foreground ui:hover:bg-gray-200 ui:focus-visible:ring-gray-300",tertiary:"ui:bg-kashmir-blue-500 ui:text-white ui:hover:bg-kashmir-blue-600 ui:hover:text-white ui:focus-visible:ring-kashmir-blue-200",success:"ui:bg-green-400 ui:text-white ui:focus-visible:ring-green-200 ui:hover:bg-green-400/80 ui:hover:text-white ui:disabled:opacity-70 ui:disabled:bg-gray-400 ui:disabled:text-white",destructive:"ui:bg-destructive ui:text-destructive-foreground ui:hover:bg-destructive/90",outline:"ui:border ui:border-input ui:border-solid ui:bg-background ui:hover:bg-accent ui:hover:text-accent-foreground ui:focus-visible:ring-gray-600 ui:focus-visible:border-gray-200",ghost:"ui:bg-transparent ui:text-segmentify-600 ui:hover:bg-segmentify-200 ui:hover:text-primary",link:"ui:text-segmentify-600 ui:underline-offset-4 ui:hover:underline",action:"ui:bg-neutral-700 ui:disabled:bg-neutral-700 ui:disabled:opacity-50 ui:rounded-md ui:text-white ui:hover:bg-neutral-800 ui:focus-visible:ring-neutral-500",paginationActive:"ui:bg-transparent ui:text-black-250",paginationInactive:"ui:bg-segmentify-300 ui:text-segmentify-600 ui:hover:text-segmentify-700 ui:pointer-events-none"},size:{default:"ui:h-9 ui:px-4 ui:py-2 ui:has-[>svg]:px-3",sm:"ui:h-8 ui:rounded-md ui:gap-1.5 ui:px-3 ui:has-[>svg]:px-2.5",lg:"ui:h-10 ui:rounded-md ui:px-6 ui:has-[>svg]:px-4",icon:"ui:size-9","icon-sm":"ui:size-8","icon-lg":"ui:size-10"}},defaultVariants:{variant:"primary",size:"default"}}),QD=Bi("ui:text-primary ui:text-base ui:font-medium ui:peer-disabled:cursor-not-allowed ui:peer-disabled:opacity-70",{variants:{variant:{default:"ui:text-black-950 ui:text-sm"}},defaultVariants:{variant:"default"}}),ej=Bi("ui:inline-flex ui:items-center ui:justify-center ui:rounded-full ui:border ui:px-2 ui:py-0.5 ui:text-xs ui:font-medium ui:w-fit ui:whitespace-nowrap ui:shrink-0 ui:[&>svg]:size-3 ui:gap-1 ui:[&>svg]:pointer-events-none ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px] ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:transition-[color,box-shadow] ui:overflow-hidden",{variants:{variant:{default:"ui:border ui:border-solid ui:border-primary ui:bg-segmentify-200 ui:text-primary",secondary:"ui:border-transparent ui:bg-secondary ui:text-secondary-foreground ui:hover:bg-secondary/80",success:"ui:border-transparent ui:bg-green-400 ui:text-white ui:hover:bg-green-400/80",destructive:"ui:border-transparent ui:bg-destructive ui:text-destructive-foreground ui:hover:bg-destructive/80",outline:"ui:text-foreground",subtle:"ui:border-0 ui:bg-segmentify-100 ui:text-primary"}},defaultVariants:{variant:"default"}}),go=Bi("ui:select-wrapper ui:border ui:rounded-md! ui:text-sm",{variants:{variant:{default:"ui:border ui:border-transparent",isFocused:"ui:bg-segmentify-200! ui:rounded-none!",multiSelected:"ui:bg-segmentify-200! ui:text-primary-foreground! ui:rounded-full! ui:px-2 ui:py-1 ui:mr-1! ui:border ui:border-primary!",isSelected:"ui:bg-segmentify-200! ui:px-2 ui:py-1 ui:border ui:border-primary! ui:text-black-950!",isControlFocused:"ui:bg-white ui:border-destructive! ui:shadow-none! ui:focus-visible:border-destructive! ui:ring-destructive/50! ui:ring-[3px]!",isDisabled:"ui:opacity-50 ui:cursor-not-allowed"}}});function vE({className:t,variant:e,asChild:n=!1,...r}){const o=n?gr:"span";return h.jsx(o,{"data-slot":"badge",className:D(ej({variant:e}),t),...r})}function en({className:t,variant:e="primary",size:n="default",asChild:r=!1,...o}){const i=r?gr:"button";return h.jsx(i,{"data-slot":"button","data-variant":e,"data-size":n,className:D(Dl({variant:e,size:n,className:t})),...o})}function Yt({children:t}){return t}Yt.displayName="Case";function Co({children:t}){return t}Co.displayName="Default";function tj(t){return v.isValidElement(t)}function fr({children:t}){let e=null,n=null;return v.Children.forEach(t,r=>{if(!tj(r))return;const o=r.type.displayName;if(!e&&o==="Case"){const{condition:i}=r.props;i&&(e=r)}else!n&&o==="Default"&&(n=r)}),e??n??null}const Ug=({icon:t,type:e="button",label:n="save",size:r="default",variant:o="primary",suffix:i,prefix:a,isLoading:s,onClick:l=()=>{},className:u,labelClassName:d,disabled:c,isIconOnly:f,form:p})=>h.jsx(en,{"data-test-id":`button-${n}`,type:e,variant:o,size:r,className:D(u),onClick:l,disabled:c,...p&&{form:p},children:h.jsxs(fr,{children:[h.jsxs(Yt,{condition:!!s,children:[h.jsx(Cu,{className:"ui:mr-2 ui:h-4 ui:w-4 ui:animate-spin"}),h.jsx("span",{className:d,children:n})]}),h.jsx(Yt,{condition:!!f,children:t}),h.jsx(Yt,{condition:!!a&&!!t,children:h.jsxs("div",{className:"ui:flex ui:gap-2 ui:items-center",children:[t,h.jsx("span",{className:d,children:n})]})}),h.jsx(Yt,{condition:!!i&&!!t,children:h.jsxs("div",{className:"ui:flex ui:gap-2 ui:items-center",children:[h.jsx("span",{className:d,children:n}),t]})}),h.jsx(Co,{children:n})]})});function nj({...t}){return h.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t})}function rj({className:t,...e}){return h.jsx("ol",{"data-slot":"breadcrumb-list",className:D("ui:text-muted-foreground ui:flex ui:flex-wrap ui:items-center ui:gap-1.5 ui:text-sm ui:wrap-break-word ui:sm:gap-2.5",t),...e})}function oj({className:t,...e}){return h.jsx("li",{"data-slot":"breadcrumb-item",className:D("ui:inline-flex ui:items-center ui:gap-1.5",t),...e})}function ij({asChild:t,className:e,...n}){const r=t?gr:"a";return h.jsx(r,{"data-slot":"breadcrumb-link",className:D("ui:hover:text-foreground ui:transition-colors",e),...n})}function aj({className:t,...e}){return h.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:D("ui:text-foreground ui:font-normal",t),...e})}function sj({children:t,className:e,...n}){return h.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:D("ui:[&>svg]:size-3.5",e),...n,children:t??h.jsx(wu,{})})}function lj({className:t,...e}){return h.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:D("ui:flex ui:size-9 ui:items-center ui:justify-center",t),...e,children:[h.jsx(jS,{className:"ui:size-4"}),h.jsx("span",{className:"ui:sr-only",children:"More"})]})}function uj(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}const cj={},ma={};function xo(t,e){try{const r=(cj[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return r in ma?ma[r]:py(r,r.split(":"))}catch{if(t in ma)return ma[t];const n=t?.match(dj);return n?py(t,n.slice(1)):NaN}}const dj=/([+-]\d\d):?(\d\d)?/;function py(t,e){const n=+(e[0]||0),r=+(e[1]||0),o=+(e[2]||0)/60;return ma[t]=n*60+r>0?n*60+r+o:n*60-r-o}class ar extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(xo(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),yE(this),Cm(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new ar(...n,e):new ar(Date.now(),e)}withTimeZone(e){return new ar(+this,e)}getTimezoneOffset(){const e=-xo(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Cm(this),+this}[Symbol.for("constructDateFrom")](e){return new ar(+new Date(e),this.timeZone)}}const my=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!my.test(t))return;const e=t.replace(my,"$1UTC");ar.prototype[e]&&(t.startsWith("get")?ar.prototype[t]=function(){return this.internal[e]()}:(ar.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),fj(this),+this},ar.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),Cm(this),+this}))});function Cm(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-xo(t.timeZone,t)*60))}function fj(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),yE(t)}function yE(t){const e=xo(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),r=new Date(+t);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+t).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),a=o-i,s=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();a&&s&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const u=new Date(+t);u.setUTCSeconds(0);const d=o>0?u.getSeconds():(u.getSeconds()-60)%60,c=Math.round(-(xo(t.timeZone,t)*60))%60;(c||d)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+c+d));const f=xo(t.timeZone,t),p=f>0?Math.floor(f):Math.ceil(f),g=-new Date(+t).getTimezoneOffset()-p,b=p!==n,y=g-l;if(b&&y){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+y);const w=xo(t.timeZone,t),C=w>0?Math.floor(w):Math.ceil(w),S=p-C;S&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+S))}}class $t extends ar{static tz(e,...n){return n.length?new $t(...n,e):new $t(Date.now(),e)}toISOString(){const[e,n,r]=this.tzComponents(),o=`${e}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,n,r,o]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${e} GMT${n}${r}${o} (${uj(this.timeZone,this)})`}toLocaleString(e,n){return Date.prototype.toLocaleString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(e,n){return Date.prototype.toLocaleDateString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(e,n){return Date.prototype.toLocaleTimeString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),n=e>0?"-":"+",r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),o=String(Math.abs(e)%60).padStart(2,"0");return[n,r,o]}withTimeZone(e){return new $t(+this,e)}[Symbol.for("constructDateFrom")](e){return new $t(+new Date(e),this.timeZone)}}const gy=5,hj=4;function pj(t,e){const n=e.startOfMonth(t),r=n.getDay()>0?n.getDay():7,o=e.addDays(t,-r+1),i=e.addDays(o,gy*7-1);return e.getMonth(t)===e.getMonth(i)?gy:hj}function xE(t,e){const n=e.startOfMonth(t),r=n.getDay();return r===1?n:r===0?e.addDays(n,-6):e.addDays(n,-1*(r-1))}function mj(t,e){const n=xE(t,e),r=pj(t,e);return e.addDays(n,r*7-1)}const wE={...ai,labels:{labelDayButton:(t,e,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>Ln(a,s,{locale:ai,...n});let i=o(t,"PPPP");return e.today&&(i=`Today, ${i}`),e.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>Ln(o,i,{locale:ai,...e}),r(t,"LLLL yyyy")},labelGridcell:(t,e,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>Ln(a,s,{locale:ai,...n});let i=o(t,"PPPP");return e?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>Ln(o,i,{locale:ai,...e}),r(t,"cccc")}}};class fn{constructor(e,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?$t.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,i)=>this.overrides?.newDate?this.overrides.newDate(r,o,i):this.options.timeZone?new $t(r,o,i,this.options.timeZone):new Date(r,o,i),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):KS(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):QS(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):ok(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):ik(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):qg(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):rE(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):ck(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):hk(r),i=new Set(o.map(s=>this.getYear(s)));if(i.size===o.length)return o;const a=[];return i.forEach(s=>{a.push(new Date(s,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):mj(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):pk(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):uk(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):aE(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):fk(r),this.format=(r,o,i)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):Ln(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):zg(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):dD(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):fD(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Xg(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):hD(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):pD(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):tE(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):lk(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):mD(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):gD(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):ak(r),this.min=r=>this.overrides?.min?this.overrides.min(r):sk(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):bD(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):vD(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):xE(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Pa(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Ra(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):dk(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):wi(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):iE(r),this.options={locale:wE,...e},this.overrides=n}getDigitMap(){const{numerals:e="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:e}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(e){const n=this.getDigitMap();return e.replace(/\d/g,r=>n[r]||r)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&fn.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:n,timeZone:r,numerals:o}=this.options,i=n?.code;if(i&&fn.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(e)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,a)}}fn.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 br=new fn;class CE{constructor(e,n,r=br){this.date=e,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(e,n)),this.dateLib=r,this.isoDate=r.format(e,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class gj{constructor(e,n){this.date=e,this.weeks=n}}class bj{constructor(e,n){this.days=n,this.weekNumber=e}}function vj(t){return I.createElement("button",{...t})}function yj(t){return I.createElement("span",{...t})}function xj(t){const{size:e=24,orientation:n="left",className:r}=t;return I.createElement("svg",{className:r,width:e,height:e,viewBox:"0 0 24 24"},n==="up"&&I.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&I.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&I.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&I.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function wj(t){const{day:e,modifiers:n,...r}=t;return I.createElement("td",{...r})}function Cj(t){const{day:e,modifiers:n,...r}=t,o=I.useRef(null);return I.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),I.createElement("button",{ref:o,...r})}var xe;(function(t){t.Root="root",t.Chevron="chevron",t.Day="day",t.DayButton="day_button",t.CaptionLabel="caption_label",t.Dropdowns="dropdowns",t.Dropdown="dropdown",t.DropdownRoot="dropdown_root",t.Footer="footer",t.MonthGrid="month_grid",t.MonthCaption="month_caption",t.MonthsDropdown="months_dropdown",t.Month="month",t.Months="months",t.Nav="nav",t.NextMonthButton="button_next",t.PreviousMonthButton="button_previous",t.Week="week",t.Weeks="weeks",t.Weekday="weekday",t.Weekdays="weekdays",t.WeekNumber="week_number",t.WeekNumberHeader="week_number_header",t.YearsDropdown="years_dropdown"})(xe||(xe={}));var ct;(function(t){t.disabled="disabled",t.hidden="hidden",t.outside="outside",t.focused="focused",t.today="today"})(ct||(ct={}));var Bn;(function(t){t.range_end="range_end",t.range_middle="range_middle",t.range_start="range_start",t.selected="selected"})(Bn||(Bn={}));var ln;(function(t){t.weeks_before_enter="weeks_before_enter",t.weeks_before_exit="weeks_before_exit",t.weeks_after_enter="weeks_after_enter",t.weeks_after_exit="weeks_after_exit",t.caption_after_enter="caption_after_enter",t.caption_after_exit="caption_after_exit",t.caption_before_enter="caption_before_enter",t.caption_before_exit="caption_before_exit"})(ln||(ln={}));function Sj(t){const{options:e,className:n,components:r,classNames:o,...i}=t,a=[o[xe.Dropdown],n].join(" "),s=e?.find(({value:l})=>l===i.value);return I.createElement("span",{"data-disabled":i.disabled,className:o[xe.DropdownRoot]},I.createElement(r.Select,{className:a,...i},e?.map(({value:l,label:u,disabled:d})=>I.createElement(r.Option,{key:l,value:l,disabled:d},u))),I.createElement("span",{className:o[xe.CaptionLabel],"aria-hidden":!0},s?.label,I.createElement(r.Chevron,{orientation:"down",size:18,className:o[xe.Chevron]})))}function Ej(t){return I.createElement("div",{...t})}function Ij(t){return I.createElement("div",{...t})}function Aj(t){const{calendarMonth:e,displayIndex:n,...r}=t;return I.createElement("div",{...r},t.children)}function Tj(t){const{calendarMonth:e,displayIndex:n,...r}=t;return I.createElement("div",{...r})}function Nj(t){return I.createElement("table",{...t})}function _j(t){return I.createElement("div",{...t})}const SE=I.createContext(void 0);function os(){const t=I.useContext(SE);if(t===void 0)throw new Error("useDayPicker() must be used within a custom component.");return t}function Oj(t){const{components:e}=os();return I.createElement(e.Dropdown,{...t})}function Rj(t){const{onPreviousClick:e,onNextClick:n,previousMonth:r,nextMonth:o,...i}=t,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:u}}=os(),d=I.useCallback(f=>{o&&n?.(f)},[o,n]),c=I.useCallback(f=>{r&&e?.(f)},[r,e]);return I.createElement("nav",{...i},I.createElement(a.PreviousMonthButton,{type:"button",className:s[xe.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:c},I.createElement(a.Chevron,{disabled:r?void 0:!0,className:s[xe.Chevron],orientation:"left"})),I.createElement(a.NextMonthButton,{type:"button",className:s[xe.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:d},I.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[xe.Chevron]})))}function Pj(t){const{components:e}=os();return I.createElement(e.Button,{...t})}function Mj(t){return I.createElement("option",{...t})}function kj(t){const{components:e}=os();return I.createElement(e.Button,{...t})}function Dj(t){const{rootRef:e,...n}=t;return I.createElement("div",{...n,ref:e})}function jj(t){return I.createElement("select",{...t})}function Lj(t){const{week:e,...n}=t;return I.createElement("tr",{...n})}function Bj(t){return I.createElement("th",{...t})}function Fj(t){return I.createElement("thead",{"aria-hidden":!0},I.createElement("tr",{...t}))}function Gj(t){const{week:e,...n}=t;return I.createElement("th",{...n})}function $j(t){return I.createElement("th",{...t})}function Vj(t){return I.createElement("tbody",{...t})}function Wj(t){const{components:e}=os();return I.createElement(e.Dropdown,{...t})}const Hj=Object.freeze(Object.defineProperty({__proto__:null,Button:vj,CaptionLabel:yj,Chevron:xj,Day:wj,DayButton:Cj,Dropdown:Sj,DropdownNav:Ej,Footer:Ij,Month:Aj,MonthCaption:Tj,MonthGrid:Nj,Months:_j,MonthsDropdown:Oj,Nav:Rj,NextMonthButton:Pj,Option:Mj,PreviousMonthButton:kj,Root:Dj,Select:jj,Week:Lj,WeekNumber:Gj,WeekNumberHeader:$j,Weekday:Bj,Weekdays:Fj,Weeks:Vj,YearsDropdown:Wj},Symbol.toStringTag,{value:"Module"}));function Pr(t,e,n=!1,r=br){let{from:o,to:i}=t;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(e,o)>=(n?1:0)&&a(i,e)>=(n?1:0)):!n&&i?s(i,e):!n&&o?s(o,e):!1}function Zg(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function Eu(t){return!!(t&&typeof t=="object"&&"from"in t)}function Jg(t){return!!(t&&typeof t=="object"&&"after"in t)}function Kg(t){return!!(t&&typeof t=="object"&&"before"in t)}function EE(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function IE(t,e){return Array.isArray(t)&&t.every(e.isDate)}function Mr(t,e,n=br){const r=Array.isArray(e)?e:[e],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(t,s);if(IE(s,n))return s.some(l=>o(t,l));if(Eu(s))return Pr(s,t,!1,n);if(EE(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(t.getDay()):s.dayOfWeek===t.getDay();if(Zg(s)){const l=i(s.before,t),u=i(s.after,t),d=l>0,c=u<0;return a(s.before,s.after)?c&&d:d||c}return Jg(s)?i(t,s.after)>0:Kg(s)?i(s.before,t)>0:typeof s=="function"?s(t):!1})}function qj(t,e,n,r,o){const{disabled:i,hidden:a,modifiers:s,showOutsideDays:l,broadcastCalendar:u,today:d=o.today()}=e,{isSameDay:c,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:g,isAfter:b}=o,y=n&&p(n),w=r&&g(r),C={[ct.focused]:[],[ct.outside]:[],[ct.disabled]:[],[ct.hidden]:[],[ct.today]:[]},S={};for(const E of t){const{date:T,displayMonth:A}=E,O=!!(A&&!f(T,A)),M=!!(y&&m(T,y)),V=!!(w&&b(T,w)),N=!!(i&&Mr(T,i,o)),k=!!(a&&Mr(T,a,o))||M||V||!u&&!l&&O||u&&l===!1&&O,_=c(T,d);O&&C.outside.push(E),N&&C.disabled.push(E),k&&C.hidden.push(E),_&&C.today.push(E),s&&Object.keys(s).forEach(B=>{const L=s?.[B];L&&Mr(T,L,o)&&(S[B]?S[B].push(E):S[B]=[E])})}return E=>{const T={[ct.focused]:!1,[ct.disabled]:!1,[ct.hidden]:!1,[ct.outside]:!1,[ct.today]:!1},A={};for(const O in C){const M=C[O];T[O]=M.some(V=>V===E)}for(const O in S)A[O]=S[O].some(M=>M===E);return{...T,...A}}}function zj(t,e,n={}){return Object.entries(t).filter(([,o])=>o===!0).reduce((o,[i])=>(n[i]?o.push(n[i]):e[ct[i]]?o.push(e[ct[i]]):e[Bn[i]]&&o.push(e[Bn[i]]),o),[e[xe.Day]])}function Xj(t){return{...Hj,...t}}function Yj(t){const e={"data-mode":t.mode??void 0,"data-required":"required"in t?t.required:void 0,"data-multiple-months":t.numberOfMonths&&t.numberOfMonths>1||void 0,"data-week-numbers":t.showWeekNumber||void 0,"data-broadcast-calendar":t.broadcastCalendar||void 0,"data-nav-layout":t.navLayout||void 0};return Object.entries(t).forEach(([n,r])=>{n.startsWith("data-")&&(e[n]=r)}),e}function Qg(){const t={};for(const e in xe)t[xe[e]]=`rdp-${xe[e]}`;for(const e in ct)t[ct[e]]=`rdp-${ct[e]}`;for(const e in Bn)t[Bn[e]]=`rdp-${Bn[e]}`;for(const e in ln)t[ln[e]]=`rdp-${ln[e]}`;return t}function AE(t,e,n){return(n??new fn(e)).formatMonthYear(t)}const Uj=AE;function Zj(t,e,n){return(n??new fn(e)).format(t,"d")}function Jj(t,e=br){return e.format(t,"LLLL")}function Kj(t,e,n){return(n??new fn(e)).format(t,"cccccc")}function Qj(t,e=br){return t<10?e.formatNumber(`0${t.toLocaleString()}`):e.formatNumber(`${t.toLocaleString()}`)}function eL(){return""}function TE(t,e=br){return e.format(t,"yyyy")}const tL=TE,nL=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:AE,formatDay:Zj,formatMonthCaption:Uj,formatMonthDropdown:Jj,formatWeekNumber:Qj,formatWeekNumberHeader:eL,formatWeekdayName:Kj,formatYearCaption:tL,formatYearDropdown:TE},Symbol.toStringTag,{value:"Module"}));function rL(t){return t?.formatMonthCaption&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),t?.formatYearCaption&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...nL,...t}}function eb(t,e,n,r){let o=(r??new fn(n)).format(t,"PPPP");return e.today&&(o=`Today, ${o}`),e.selected&&(o=`${o}, selected`),o}const oL=eb;function tb(t,e,n){return(n??new fn(e)).formatMonthYear(t)}const iL=tb;function NE(t,e,n,r){let o=(r??new fn(n)).format(t,"PPPP");return e?.today&&(o=`Today, ${o}`),o}function _E(t){return"Choose the Month"}function OE(){return""}const aL="Go to the Next Month";function RE(t,e){return aL}function PE(t){return"Go to the Previous Month"}function ME(t,e,n){return(n??new fn(e)).format(t,"cccc")}function kE(t,e){return`Week ${t}`}function DE(t){return"Week Number"}function jE(t){return"Choose the Year"}const sL=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:iL,labelDay:oL,labelDayButton:eb,labelGrid:tb,labelGridcell:NE,labelMonthDropdown:_E,labelNav:OE,labelNext:RE,labelPrevious:PE,labelWeekNumber:kE,labelWeekNumberHeader:DE,labelWeekday:ME,labelYearDropdown:jE},Symbol.toStringTag,{value:"Module"})),On=(t,e,n)=>e||(n?typeof n=="function"?n:(...r)=>n:t);function lL(t,e){const n=e.locale?.labels??{};return{...sL,...t??{},labelDayButton:On(eb,t?.labelDayButton,n.labelDayButton),labelMonthDropdown:On(_E,t?.labelMonthDropdown,n.labelMonthDropdown),labelNext:On(RE,t?.labelNext,n.labelNext),labelPrevious:On(PE,t?.labelPrevious,n.labelPrevious),labelWeekNumber:On(kE,t?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:On(jE,t?.labelYearDropdown,n.labelYearDropdown),labelGrid:On(tb,t?.labelGrid,n.labelGrid),labelGridcell:On(NE,t?.labelGridcell,n.labelGridcell),labelNav:On(OE,t?.labelNav,n.labelNav),labelWeekNumberHeader:On(DE,t?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:On(ME,t?.labelWeekday,n.labelWeekday)}}function uL(t,e,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(t),end:s(t)}).map(f=>{const p=r.formatMonthDropdown(f,o),m=u(f),g=e&&f<i(e)||n&&f>i(n)||!1;return{value:m,label:p,disabled:g}})}function cL(t,e={},n={}){let r={...e?.[xe.Day]};return Object.entries(t).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function dL(t,e,n,r){const o=r??t.today(),i=n?t.startOfBroadcastWeek(o,t):e?t.startOfISOWeek(o):t.startOfWeek(o),a=[];for(let s=0;s<7;s++){const l=t.addDays(i,s);a.push(l)}return a}function fL(t,e,n,r,o=!1){if(!t||!e)return;const{startOfYear:i,endOfYear:a,eachYearOfInterval:s,getYear:l}=r,u=i(t),d=a(e),c=s({start:u,end:d});return o&&c.reverse(),c.map(f=>{const p=n.formatYearDropdown(f,r);return{value:l(f),label:p,disabled:!1}})}function hL(t,e={}){const{weekStartsOn:n,locale:r}=e,o=n??r?.options?.weekStartsOn??0,i=s=>{const l=typeof s=="number"||typeof s=="string"?new Date(s):s;return new $t(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,t)},a=s=>{const l=i(s);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i($t.tz(t)),newDate:(s,l,u)=>new $t(s,l,u,12,0,0,t),startOfDay:s=>i(s),startOfWeek:(s,l)=>{const u=i(s),d=l?.weekStartsOn??o,c=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-c),u},startOfISOWeek:s=>{const l=i(s),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:s=>{const l=i(s);return l.setDate(1),l},startOfYear:s=>{const l=i(s);return l.setMonth(0,1),l},endOfWeek:(s,l)=>{const u=i(s),f=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+f),u},endOfISOWeek:s=>{const l=i(s),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:s=>{const l=i(s);return l.setMonth(l.getMonth()+1,0),l},endOfYear:s=>{const l=i(s);return l.setMonth(11,31),l},eachMonthOfInterval:s=>{const l=i(s.start),u=i(s.end),d=[],c=new $t(l.getFullYear(),l.getMonth(),1,12,0,0,t),f=u.getFullYear()*12+u.getMonth();for(;c.getFullYear()*12+c.getMonth()<=f;)d.push(new $t(c,t)),c.setMonth(c.getMonth()+1,1);return d},addDays:(s,l)=>{const u=i(s);return u.setDate(u.getDate()+l),u},addWeeks:(s,l)=>{const u=i(s);return u.setDate(u.getDate()+l*7),u},addMonths:(s,l)=>{const u=i(s);return u.setMonth(u.getMonth()+l),u},addYears:(s,l)=>{const u=i(s);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:s=>{const l=i(s.start),u=i(s.end),d=[],c=new $t(l.getFullYear(),0,1,12,0,0,t);for(;c.getFullYear()<=u.getFullYear();)d.push(new $t(c,t)),c.setFullYear(c.getFullYear()+1,0,1);return d},getWeek:(s,l)=>{const u=a(s);return Xg(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const l=a(s);return zg(l)},differenceInCalendarDays:(s,l)=>{const u=a(s),d=a(l);return qg(u,d)},differenceInCalendarMonths:(s,l)=>{const u=a(s),d=a(l);return rE(u,d)}}}const is=t=>t instanceof HTMLElement?t:null,Sd=t=>[...t.querySelectorAll("[data-animated-month]")??[]],pL=t=>is(t.querySelector("[data-animated-month]")),Ed=t=>is(t.querySelector("[data-animated-caption]")),Id=t=>is(t.querySelector("[data-animated-weeks]")),mL=t=>is(t.querySelector("[data-animated-nav]")),gL=t=>is(t.querySelector("[data-animated-weekdays]"));function bL(t,e,{classNames:n,months:r,focused:o,dateLib:i}){const a=I.useRef(null),s=I.useRef(r),l=I.useRef(!1);I.useLayoutEffect(()=>{const u=s.current;if(s.current=r,!e||!t.current||!(t.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const d=i.isSameMonth(r[0].date,u[0].date),c=i.isAfter(r[0].date,u[0].date),f=c?n[ln.caption_after_enter]:n[ln.caption_before_enter],p=c?n[ln.weeks_after_enter]:n[ln.weeks_before_enter],m=a.current,g=t.current.cloneNode(!0);if(g instanceof HTMLElement?(Sd(g).forEach(C=>{if(!(C instanceof HTMLElement))return;const S=pL(C);S&&C.contains(S)&&C.removeChild(S);const E=Ed(C);E&&E.classList.remove(f);const T=Id(C);T&&T.classList.remove(p)}),a.current=g):a.current=null,l.current||d||o)return;const b=m instanceof HTMLElement?Sd(m):[],y=Sd(t.current);if(y?.every(w=>w instanceof HTMLElement)&&b&&b.every(w=>w instanceof HTMLElement)){l.current=!0,t.current.style.isolation="isolate";const w=mL(t.current);w&&(w.style.zIndex="1"),y.forEach((C,S)=>{const E=b[S];if(!E)return;C.style.position="relative",C.style.overflow="hidden";const T=Ed(C);T&&T.classList.add(f);const A=Id(C);A&&A.classList.add(p);const O=()=>{l.current=!1,t.current&&(t.current.style.isolation=""),w&&(w.style.zIndex=""),T&&T.classList.remove(f),A&&A.classList.remove(p),C.style.position="",C.style.overflow="",C.contains(E)&&C.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const M=gL(E);M&&(M.style.opacity="0");const V=Ed(E);V&&(V.classList.add(c?n[ln.caption_before_exit]:n[ln.caption_after_exit]),V.addEventListener("animationend",O));const N=Id(E);N&&N.classList.add(c?n[ln.weeks_before_exit]:n[ln.weeks_after_exit]),C.insertBefore(E,C.firstChild)})}})}function vL(t,e,n,r){const o=t[0],i=t[t.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:d,differenceInCalendarMonths:c,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:g,isAfter:b,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:C}=r,S=l?y(o,r):a?w(o):C(o),E=l?f(i):a?p(m(i)):g(m(i)),T=e&&(l?f(e):a?p(e):g(e)),A=T&&b(E,T)?T:E,O=d(A,S),M=c(i,o)+1,V=[];for(let _=0;_<=O;_++){const B=u(S,_);V.push(B)}const k=(l?35:42)*M;if(s&&V.length<k){const _=k-V.length;for(let B=0;B<_;B++){const L=u(V[V.length-1],1);V.push(L)}}return V}function yL(t){const e=[];return t.reduce((n,r)=>{const o=r.weeks.reduce((i,a)=>i.concat(a.days.slice()),e.slice());return n.concat(o.slice())},e.slice())}function xL(t,e,n,r){const{numberOfMonths:o=1}=n,i=[];for(let a=0;a<o;a++){const s=r.addMonths(t,a);if(e&&s>e)break;i.push(s)}return i}function by(t,e,n,r){const{month:o,defaultMonth:i,today:a=r.today(),numberOfMonths:s=1}=t;let l=o||i||a;const{differenceInCalendarMonths:u,addMonths:d,startOfMonth:c}=r;if(n&&u(n,l)<s-1){const f=-1*(s-1);l=d(n,f)}return e&&u(l,e)<0&&(l=e),c(l)}function wL(t,e,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:d,startOfBroadcastWeek:c,startOfISOWeek:f,startOfWeek:p}=r,m=t.reduce((g,b)=>{const y=n.broadcastCalendar?c(b,r):n.ISOWeek?f(b):p(b),w=n.broadcastCalendar?i(b):n.ISOWeek?a(s(b)):l(s(b)),C=e.filter(A=>A>=y&&A<=w),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&C.length<S){const A=e.filter(O=>{const M=S-C.length;return O>w&&O<=o(w,M)});C.push(...A)}const E=C.reduce((A,O)=>{const M=n.ISOWeek?u(O):d(O),V=A.find(k=>k.weekNumber===M),N=new CE(O,b,r);return V?V.days.push(N):A.push(new bj(M,[N])),A},[]),T=new gj(b,E);return g.push(T),g},[]);return n.reverseMonths?m.reverse():m}function CL(t,e){let{startMonth:n,endMonth:r}=t;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:u,newDate:d,today:c}=e,{fromYear:f,toYear:p,fromMonth:m,toMonth:g}=t;!n&&m&&(n=m),!n&&f&&(n=e.newDate(f,0,1)),!r&&g&&(r=g),!r&&p&&(r=d(p,11,31));const b=t.captionLayout==="dropdown"||t.captionLayout==="dropdown-years";return n?n=a(n):f?n=d(f,0,1):!n&&b&&(n=o(l(t.today??c(),-100))),r?r=s(r):p?r=d(p,11,31):!r&&b&&(r=u(t.today??c())),[n&&i(n),r&&i(r)]}function SL(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,u=o?i:1,d=a(t);if(!e)return s(d,u);if(!(l(e,t)<i))return s(d,u)}function EL(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,u=o?i??1:1,d=a(t);if(!e)return s(d,-u);if(!(l(d,e)<=0))return s(d,-u)}function IL(t){const e=[];return t.reduce((n,r)=>n.concat(r.weeks.slice()),e.slice())}function Iu(t,e){const[n,r]=I.useState(t);return[e===void 0?n:e,r]}function AL(t,e){const[n,r]=CL(t,e),{startOfMonth:o,endOfMonth:i}=e,a=by(t,n,r,e),[s,l]=Iu(a,t.month?a:void 0);I.useEffect(()=>{const S=by(t,n,r,e);l(S)},[t.timeZone]);const{months:u,weeks:d,days:c,previousMonth:f,nextMonth:p}=I.useMemo(()=>{const S=xL(s,r,{numberOfMonths:t.numberOfMonths},e),E=vL(S,t.endMonth?i(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},e),T=wL(S,E,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},e),A=IL(T),O=yL(T),M=EL(s,n,t,e),V=SL(s,r,t,e);return{months:T,weeks:A,days:O,previousMonth:M,nextMonth:V}},[e,s.getTime(),r?.getTime(),n?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:m,onMonthChange:g}=t,b=S=>d.some(E=>E.days.some(T=>T.isEqualTo(S))),y=S=>{if(m)return;let E=o(S);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),g?.(E)};return{months:u,weeks:d,days:c,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:y,goToDay:S=>{b(S)||y(S.date)}}}var nr;(function(t){t[t.Today=0]="Today",t[t.Selected=1]="Selected",t[t.LastFocused=2]="LastFocused",t[t.FocusedModifier=3]="FocusedModifier"})(nr||(nr={}));function vy(t){return!t[ct.disabled]&&!t[ct.hidden]&&!t[ct.outside]}function TL(t,e,n,r){let o,i=-1;for(const a of t){const s=e(a);vy(s)&&(s[ct.focused]&&i<nr.FocusedModifier?(o=a,i=nr.FocusedModifier):r?.isEqualTo(a)&&i<nr.LastFocused?(o=a,i=nr.LastFocused):n(a.date)&&i<nr.Selected?(o=a,i=nr.Selected):s[ct.today]&&i<nr.Today&&(o=a,i=nr.Today))}return o||(o=t.find(a=>vy(e(a)))),o}function NL(t,e,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:u,addMonths:d,addWeeks:c,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:g,max:b,min:y,startOfBroadcastWeek:w,startOfISOWeek:C,startOfWeek:S}=a;let T={day:u,week:c,month:d,year:f,startOfWeek:A=>l?w(A,a):s?C(A):S(A),endOfWeek:A=>l?p(A):s?m(A):g(A)}[t](n,e==="after"?1:-1);return e==="before"&&r?T=b([r,T]):e==="after"&&o&&(T=y([o,T])),T}function LE(t,e,n,r,o,i,a,s=0){if(s>365)return;const l=NL(t,e,n.date,r,o,i,a),u=!!(i.disabled&&Mr(l,i.disabled,a)),d=!!(i.hidden&&Mr(l,i.hidden,a)),c=l,f=new CE(l,c,a);return!u&&!d?f:LE(t,e,f,r,o,i,a,s+1)}function _L(t,e,n,r,o){const{autoFocus:i}=t,[a,s]=I.useState(),l=TL(e.days,n,r||(()=>!1),a),[u,d]=I.useState(i?l:void 0);return{isFocusTarget:g=>!!l?.isEqualTo(g),setFocused:d,focused:u,blur:()=>{s(u),d(void 0)},moveFocus:(g,b)=>{if(!u)return;const y=LE(g,b,u,e.navStart,e.navEnd,t,o);y&&(t.disableNavigation&&!e.days.some(C=>C.isEqualTo(y))||(e.goToDay(y),d(y)))}}}function OL(t,e){const{selected:n,required:r,onSelect:o}=t,[i,a]=Iu(n,o?n:void 0),s=o?n:i,{isSameDay:l}=e,u=p=>s?.some(m=>l(m,p))??!1,{min:d,max:c}=t;return{selected:s,select:(p,m,g)=>{let b=[...s??[]];if(u(p)){if(s?.length===d||r&&s?.length===1)return;b=s?.filter(y=>!l(y,p))}else s?.length===c?b=[p]:b=[...b,p];return o||a(b),o?.(b,p,m,g),b},isSelected:u}}function RL(t,e,n=0,r=0,o=!1,i=br){const{from:a,to:s}=e||{},{isSameDay:l,isAfter:u,isBefore:d}=i;let c;if(!a&&!s)c={from:t,to:n>0?void 0:t};else if(a&&!s)l(a,t)?n===0?c={from:a,to:t}:o?c={from:a,to:void 0}:c=void 0:d(t,a)?c={from:t,to:a}:c={from:a,to:t};else if(a&&s)if(l(a,t)&&l(s,t))o?c={from:a,to:s}:c=void 0;else if(l(a,t))c={from:a,to:n>0?void 0:t};else if(l(s,t))c={from:t,to:n>0?void 0:t};else if(d(t,a))c={from:t,to:s};else if(u(t,a))c={from:a,to:t};else if(u(t,s))c={from:a,to:t};else throw new Error("Invalid range");if(c?.from&&c?.to){const f=i.differenceInCalendarDays(c.to,c.from);r>0&&f>r?c={from:t,to:void 0}:n>1&&f<n&&(c={from:t,to:void 0})}return c}function PL(t,e,n=br){const r=Array.isArray(e)?e:[e];let o=t.from;const i=n.differenceInCalendarDays(t.to,t.from),a=Math.min(i,6);for(let s=0;s<=a;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function yy(t,e,n=br){return Pr(t,e.from,!1,n)||Pr(t,e.to,!1,n)||Pr(e,t.from,!1,n)||Pr(e,t.to,!1,n)}function ML(t,e,n=br){const r=Array.isArray(e)?e:[e];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?Pr(t,s,!1,n):IE(s,n)?s.some(l=>Pr(t,l,!1,n)):Eu(s)?s.from&&s.to?yy(t,{from:s.from,to:s.to},n):!1:EE(s)?PL(t,s.dayOfWeek,n):Zg(s)?n.isAfter(s.before,s.after)?yy(t,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):Mr(t.from,s,n)||Mr(t.to,s,n):Jg(s)||Kg(s)?Mr(t.from,s,n)||Mr(t.to,s,n):!1))return!0;const a=r.filter(s=>typeof s=="function");if(a.length){let s=t.from;const l=n.differenceInCalendarDays(t.to,t.from);for(let u=0;u<=l;u++){if(a.some(d=>d(s)))return!0;s=n.addDays(s,1)}}return!1}function kL(t,e){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:a}=t,[s,l]=Iu(o,a?o:void 0),u=a?o:s;return{selected:u,select:(f,p,m)=>{const{min:g,max:b}=t,y=f?RL(f,u,g,b,i,e):void 0;return r&&n&&y?.from&&y.to&&ML({from:y.from,to:y.to},n,e)&&(y.from=f,y.to=void 0),a||l(y),a?.(y,f,p,m),y},isSelected:f=>u&&Pr(u,f,!1,e)}}function DL(t,e){const{selected:n,required:r,onSelect:o}=t,[i,a]=Iu(n,o?n:void 0),s=o?n:i,{isSameDay:l}=e;return{selected:s,select:(c,f,p)=>{let m=c;return!r&&s&&s&&l(c,s)&&(m=void 0),o||a(m),o?.(m,c,f,p),m},isSelected:c=>s?l(s,c):!1}}function jL(t,e){const n=DL(t,e),r=OL(t,e),o=kL(t,e);switch(t.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function vn(t,e){return t instanceof $t&&t.timeZone===e?t:new $t(t,e)}function ti(t,e,n){return vn(t,e)}function xy(t,e,n){return typeof t=="boolean"||typeof t=="function"?t:t instanceof Date?ti(t,e):Array.isArray(t)?t.map(r=>r instanceof Date?ti(r,e):r):Eu(t)?{...t,from:t.from?vn(t.from,e):t.from,to:t.to?vn(t.to,e):t.to}:Zg(t)?{before:ti(t.before,e),after:ti(t.after,e)}:Jg(t)?{after:ti(t.after,e)}:Kg(t)?{before:ti(t.before,e)}:t}function Ad(t,e,n){return t&&(Array.isArray(t)?t.map(r=>xy(r,e)):xy(t,e))}function LL(t){let e=t;const n=e.timeZone;if(n&&(e={...t,timeZone:n},e.today&&(e.today=vn(e.today,n)),e.month&&(e.month=vn(e.month,n)),e.defaultMonth&&(e.defaultMonth=vn(e.defaultMonth,n)),e.startMonth&&(e.startMonth=vn(e.startMonth,n)),e.endMonth&&(e.endMonth=vn(e.endMonth,n)),e.mode==="single"&&e.selected?e.selected=vn(e.selected,n):e.mode==="multiple"&&e.selected?e.selected=e.selected?.map(ne=>vn(ne,n)):e.mode==="range"&&e.selected&&(e.selected={from:e.selected.from?vn(e.selected.from,n):e.selected.from,to:e.selected.to?vn(e.selected.to,n):e.selected.to}),e.disabled!==void 0&&(e.disabled=Ad(e.disabled,n)),e.hidden!==void 0&&(e.hidden=Ad(e.hidden,n)),e.modifiers)){const ne={};Object.keys(e.modifiers).forEach(fe=>{ne[fe]=Ad(e.modifiers?.[fe],n)}),e.modifiers=ne}const{components:r,formatters:o,labels:i,dateLib:a,locale:s,classNames:l}=I.useMemo(()=>{const ne={...wE,...e.locale},fe=e.broadcastCalendar?1:e.weekStartsOn,ce=e.noonSafe&&e.timeZone?hL(e.timeZone,{weekStartsOn:fe,locale:ne}):void 0,de=e.dateLib&&ce?{...ce,...e.dateLib}:e.dateLib??ce,Te=new fn({locale:ne,weekStartsOn:fe,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},de);return{dateLib:Te,components:Xj(e.components),formatters:rL(e.formatters),labels:lL(e.labels,Te.options),locale:ne,classNames:{...Qg(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.noonSafe,e.components,e.formatters,e.labels,e.classNames]);e.today||(e={...e,today:a.today()});const{captionLayout:u,mode:d,navLayout:c,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:g,onDayKeyDown:b,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:C,onPrevClick:S,showWeekNumber:E,styles:T}=e,{formatCaption:A,formatDay:O,formatMonthDropdown:M,formatWeekNumber:V,formatWeekNumberHeader:N,formatWeekdayName:k,formatYearDropdown:_}=o,B=AL(e,a),{days:L,months:P,navStart:G,navEnd:j,previousMonth:H,nextMonth:U,goToMonth:Q}=B,$=qj(L,e,G,j,a),{isSelected:q,select:Z,selected:X}=jL(e,a)??{},{blur:te,focused:Y,isFocusTarget:J,moveFocus:ie,setFocused:oe}=_L(e,B,$,q??(()=>!1),a),{labelDayButton:re,labelGridcell:z,labelGrid:ue,labelMonthDropdown:W,labelNav:le,labelPrevious:Ae,labelNext:Ne,labelWeekday:Ve,labelWeekNumber:Ie,labelWeekNumberHeader:Re,labelYearDropdown:at}=i,Me=I.useMemo(()=>dL(a,e.ISOWeek,e.broadcastCalendar,e.today),[a,e.ISOWeek,e.broadcastCalendar,e.today]),Ge=d!==void 0||m!==void 0,We=I.useCallback(()=>{H&&(Q(H),S?.(H))},[H,Q,S]),Qe=I.useCallback(()=>{U&&(Q(U),C?.(U))},[Q,U,C]),st=I.useCallback((ne,fe)=>ce=>{ce.preventDefault(),ce.stopPropagation(),oe(ne),!fe.disabled&&(Z?.(ne.date,fe,ce),m?.(ne.date,fe,ce))},[Z,m,oe]),it=I.useCallback((ne,fe)=>ce=>{oe(ne),g?.(ne.date,fe,ce)},[g,oe]),mt=I.useCallback((ne,fe)=>ce=>{te(),p?.(ne.date,fe,ce)},[te,p]),bt=I.useCallback((ne,fe)=>ce=>{const de={ArrowLeft:[ce.shiftKey?"month":"day",e.dir==="rtl"?"after":"before"],ArrowRight:[ce.shiftKey?"month":"day",e.dir==="rtl"?"before":"after"],ArrowDown:[ce.shiftKey?"year":"week","after"],ArrowUp:[ce.shiftKey?"year":"week","before"],PageUp:[ce.shiftKey?"year":"month","before"],PageDown:[ce.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(de[ce.key]){ce.preventDefault(),ce.stopPropagation();const[Te,ae]=de[ce.key];ie(Te,ae)}b?.(ne.date,fe,ce)},[ie,b,e.dir]),Le=I.useCallback((ne,fe)=>ce=>{y?.(ne.date,fe,ce)},[y]),_t=I.useCallback((ne,fe)=>ce=>{w?.(ne.date,fe,ce)},[w]),tt=I.useCallback(ne=>fe=>{const ce=Number(fe.target.value),de=a.setMonth(a.startOfMonth(ne),ce);Q(de)},[a,Q]),lt=I.useCallback(ne=>fe=>{const ce=Number(fe.target.value),de=a.setYear(a.startOfMonth(ne),ce);Q(de)},[a,Q]),{className:Ot,style:Rt}=I.useMemo(()=>({className:[l[xe.Root],e.className].filter(Boolean).join(" "),style:{...T?.[xe.Root],...e.style}}),[l,e.className,e.style,T]),on=Yj(e),Ht=I.useRef(null);bL(Ht,!!e.animate,{classNames:l,months:P,focused:Y,dateLib:a});const Pt={dayPickerProps:e,selected:X,select:Z,isSelected:q,months:P,nextMonth:U,previousMonth:H,goToMonth:Q,getModifiers:$,components:r,classNames:l,styles:T,labels:i,formatters:o};return I.createElement(SE.Provider,{value:Pt},I.createElement(r.Root,{rootRef:e.animate?Ht:void 0,className:Ot,style:Rt,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],...on},I.createElement(r.Months,{className:l[xe.Months],style:T?.[xe.Months]},!e.hideNavigation&&!c&&I.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[xe.Nav],style:T?.[xe.Nav],"aria-label":le(),onPreviousClick:We,onNextClick:Qe,previousMonth:H,nextMonth:U}),P.map((ne,fe)=>I.createElement(r.Month,{"data-animated-month":e.animate?"true":void 0,className:l[xe.Month],style:T?.[xe.Month],key:fe,displayIndex:fe,calendarMonth:ne},c==="around"&&!e.hideNavigation&&fe===0&&I.createElement(r.PreviousMonthButton,{type:"button",className:l[xe.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":Ae(H),onClick:We,"data-animated-button":e.animate?"true":void 0},I.createElement(r.Chevron,{disabled:H?void 0:!0,className:l[xe.Chevron],orientation:e.dir==="rtl"?"right":"left"})),I.createElement(r.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:l[xe.MonthCaption],style:T?.[xe.MonthCaption],calendarMonth:ne,displayIndex:fe},u?.startsWith("dropdown")?I.createElement(r.DropdownNav,{className:l[xe.Dropdowns],style:T?.[xe.Dropdowns]},(()=>{const ce=u==="dropdown"||u==="dropdown-months"?I.createElement(r.MonthsDropdown,{key:"month",className:l[xe.MonthsDropdown],"aria-label":W(),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:tt(ne.date),options:uL(ne.date,G,j,o,a),style:T?.[xe.Dropdown],value:a.getMonth(ne.date)}):I.createElement("span",{key:"month"},M(ne.date,a)),de=u==="dropdown"||u==="dropdown-years"?I.createElement(r.YearsDropdown,{key:"year",className:l[xe.YearsDropdown],"aria-label":at(a.options),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:lt(ne.date),options:fL(G,j,o,a,!!e.reverseYears),style:T?.[xe.Dropdown],value:a.getYear(ne.date)}):I.createElement("span",{key:"year"},_(ne.date,a));return a.getMonthYearOrder()==="year-first"?[de,ce]:[ce,de]})(),I.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"}},A(ne.date,a.options,a))):I.createElement(r.CaptionLabel,{className:l[xe.CaptionLabel],role:"status","aria-live":"polite"},A(ne.date,a.options,a))),c==="around"&&!e.hideNavigation&&fe===f-1&&I.createElement(r.NextMonthButton,{type:"button",className:l[xe.NextMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":Ne(U),onClick:Qe,"data-animated-button":e.animate?"true":void 0},I.createElement(r.Chevron,{disabled:U?void 0:!0,className:l[xe.Chevron],orientation:e.dir==="rtl"?"left":"right"})),fe===f-1&&c==="after"&&!e.hideNavigation&&I.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[xe.Nav],style:T?.[xe.Nav],"aria-label":le(),onPreviousClick:We,onNextClick:Qe,previousMonth:H,nextMonth:U}),I.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":ue(ne.date,a.options,a)||void 0,className:l[xe.MonthGrid],style:T?.[xe.MonthGrid]},!e.hideWeekdays&&I.createElement(r.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:l[xe.Weekdays],style:T?.[xe.Weekdays]},E&&I.createElement(r.WeekNumberHeader,{"aria-label":Re(a.options),className:l[xe.WeekNumberHeader],style:T?.[xe.WeekNumberHeader],scope:"col"},N()),Me.map(ce=>I.createElement(r.Weekday,{"aria-label":Ve(ce,a.options,a),className:l[xe.Weekday],key:String(ce),style:T?.[xe.Weekday],scope:"col"},k(ce,a.options,a)))),I.createElement(r.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:l[xe.Weeks],style:T?.[xe.Weeks]},ne.weeks.map(ce=>I.createElement(r.Week,{className:l[xe.Week],key:ce.weekNumber,style:T?.[xe.Week],week:ce},E&&I.createElement(r.WeekNumber,{week:ce,style:T?.[xe.WeekNumber],"aria-label":Ie(ce.weekNumber,{locale:s}),className:l[xe.WeekNumber],scope:"row",role:"rowheader"},V(ce.weekNumber,a)),ce.days.map(de=>{const{date:Te}=de,ae=$(de);if(ae[ct.focused]=!ae.hidden&&!!Y?.isEqualTo(de),ae[Bn.selected]=q?.(Te)||ae.selected,Eu(X)){const{from:nt,to:je}=X;ae[Bn.range_start]=!!(nt&&je&&a.isSameDay(Te,nt)),ae[Bn.range_end]=!!(nt&&je&&a.isSameDay(Te,je)),ae[Bn.range_middle]=Pr(X,Te,!0,a)}const _e=cL(ae,T,e.modifiersStyles),ke=zj(ae,l,e.modifiersClassNames),De=!Ge&&!ae.hidden?z(Te,ae,a.options,a):void 0;return I.createElement(r.Day,{key:`${de.isoDate}_${de.displayMonthId}`,day:de,modifiers:ae,className:ke.join(" "),style:_e,role:"gridcell","aria-selected":ae.selected||void 0,"aria-label":De,"data-day":de.isoDate,"data-month":de.outside?de.dateMonthId:void 0,"data-selected":ae.selected||void 0,"data-disabled":ae.disabled||void 0,"data-hidden":ae.hidden||void 0,"data-outside":de.outside||void 0,"data-focused":ae.focused||void 0,"data-today":ae.today||void 0},!ae.hidden&&Ge?I.createElement(r.DayButton,{className:l[xe.DayButton],style:T?.[xe.DayButton],type:"button",day:de,modifiers:ae,disabled:!ae.focused&&ae.disabled||void 0,"aria-disabled":ae.focused&&ae.disabled||void 0,tabIndex:J(de)?0:-1,"aria-label":re(Te,ae,a.options,a),onClick:st(de,ae),onBlur:mt(de,ae),onFocus:it(de,ae),onKeyDown:bt(de,ae),onMouseEnter:Le(de,ae),onMouseLeave:_t(de,ae)},O(Te,a.options,a)):!ae.hidden&&O(de.date,a.options,a))})))))))),e.footer&&I.createElement(r.Footer,{className:l[xe.Footer],style:T?.[xe.Footer],role:"status","aria-live":"polite"},e.footer)))}function nb({className:t,classNames:e,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:i,components:a,...s}){const l=Qg();return h.jsx(LL,{showOutsideDays:n,className:D("ui:bg-background ui:group/calendar ui:p-3 ui:[--cell-size:--spacing(8)] ui:[[data-slot=card-content]_&]:bg-transparent ui:[[data-slot=popover-content]_&]:bg-transparent",String.raw`ui:rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`ui:rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...i},classNames:{root:D("ui:w-fit",l.root),months:D("ui:flex ui:gap-4 ui:flex-col md:ui:flex-row ui:relative",l.months),month:D("ui:flex ui:flex-col ui:w-full ui:gap-4",l.month),nav:D("ui:flex ui:items-center ui:gap-1 ui:w-full ui:absolute ui:top-0 ui:inset-x-0 ui:justify-between",l.nav),button_previous:D(Dl({variant:o}),"ui:size-(--cell-size) ui:aria-disabled:opacity-50 ui:p-0 ui:select-none",l.button_previous),button_next:D(Dl({variant:o}),"ui:size-(--cell-size) ui:aria-disabled:opacity-50 ui:p-0 ui:select-none",l.button_next),month_caption:D("ui:flex ui:items-center ui:justify-center ui:h-(--cell-size) ui:w-full ui:px-(--cell-size)",l.month_caption),dropdowns:D("ui:w-full ui:flex ui:items-center ui:text-sm ui:font-medium ui:justify-center ui:h-(--cell-size) ui:gap-1.5",l.dropdowns),dropdown_root:D("ui:relative ui:has-focus:border-ring ui:border ui:border-input ui:shadow-xs ui:has-focus:ring-ring/50 ui:has-focus:ring-[3px] ui:rounded-md",l.dropdown_root),dropdown:D("ui:absolute ui:bg-popover ui:inset-0 ui:opacity-0",l.dropdown),caption_label:D("ui:select-none ui:font-medium",r==="label"?"ui:text-sm":"ui:rounded-md ui:pl-2 ui:pr-1 ui:flex ui:items-center ui:gap-1 ui:text-sm ui:h-8 ui:[&>svg]:text-muted-foreground ui:[&>svg]:size-3.5",l.caption_label),table:"ui:w-full ui:border-collapse",weekdays:D("ui:flex",l.weekdays),weekday:D("ui:text-muted-foreground ui:rounded-md ui:flex-1 ui:font-normal ui:text-[0.8rem] ui:select-none",l.weekday),week:D("ui:flex ui:w-full ui:mt-2",l.week),week_number_header:D("ui:select-none ui:w-(--cell-size)",l.week_number_header),week_number:D("ui:text-[0.8rem] ui:select-none ui:text-muted-foreground",l.week_number),day:D("ui:relative ui:w-full ui:h-full ui:p-0 ui:text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square ui:select-none",s.showWeekNumber?"ui:[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"ui:[&:first-child[data-selected=true]_button]:rounded-l-md",l.day),range_start:D("ui:rounded-l-md ui:bg-accent",l.range_start),range_middle:D("ui:rounded-none",l.range_middle),range_end:D("ui:rounded-r-md ui:bg-accent",l.range_end),today:D("ui:bg-accent ui:text-accent-foreground ui:rounded-md data-[selected=true]:rounded-none",l.today),outside:D("ui:text-muted-foreground ui:aria-selected:text-muted-foreground",l.outside),disabled:D("ui:text-muted-foreground ui:opacity-50",l.disabled),hidden:D("ui:invisible",l.hidden),...e},components:{Root:({className:u,rootRef:d,...c})=>h.jsx("div",{"data-slot":"calendar",ref:d,className:D(u),...c}),Chevron:({className:u,orientation:d,...c})=>d==="left"?h.jsx(MS,{className:D("ui:size-4",u),...c}):d==="right"?h.jsx(wu,{className:D("ui:size-4",u),...c}):h.jsx(Mi,{className:D("ui:size-4",u),...c}),DayButton:BE,WeekNumber:({children:u,...d})=>h.jsx("td",{...d,children:h.jsx("div",{className:"ui:flex ui:size-(--cell-size) ui:items-center ui:justify-center ui:text-center",children:u})}),...a},...s})}function BE({className:t,day:e,modifiers:n,...r}){const o=Qg(),i=v.useRef(null);return v.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),h.jsx(en,{ref:i,variant:"ghost",size:"icon","data-day":e.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:D("ui:data-[selected-single=true]:bg-primary ui:text-black-950 ui:data-[selected-single=true]:text-primary-foreground ui:data-[range-middle=true]:bg-accent ui:data-[range-middle=true]:text-accent-foreground ui:data-[range-start=true]:bg-primary ui:data-[range-start=true]:text-primary-foreground ui:data-[range-end=true]:bg-primary ui:data-[range-end=true]:text-primary-foreground ui:group-data-[focused=true]/day:border-ring ui:group-data-[focused=true]/day:ring-ring/50 ui:dark:hover:text-accent-foreground ui:flex ui:aspect-square ui:size-auto ui:w-full ui:min-w-(--cell-size) ui:flex-col ui:gap-1 ui:leading-none ui:font-normal ui:group-data-[focused=true]/day:relative ui:group-data-[focused=true]/day:z-10 ui:group-data-[focused=true]/day:ring-[3px] ui:data-[range-end=true]:rounded-md ui:data-[range-end=true]:rounded-r-md ui:data-[range-middle=true]:rounded-none ui:data-[range-start=true]:rounded-md ui:data-[range-start=true]:rounded-l-md ui:[&>span]:text-xs ui:[&>span]:opacity-70",o.day,t),...r})}const BL=({label:t,editLabel:e,status:n,statusMap:r,campaignId:o})=>{const i=()=>window.navigator.clipboard.writeText(o);return h.jsx("h1",{className:"ui:font-semibold ui:text-xl ui:text-card-foreground ui:space-x-2",children:h.jsxs(fr,{children:[h.jsxs(Yt,{condition:!!e,children:[e,h.jsx(en,{type:"button",onClick:i,className:"ui:bg-transparent ui:hover:bg-transparent ui:hover:text-black-950 ui:p-0 ui:lg:ml-2 ui:text-black-950",children:o}),n&&h.jsx(vE,{className:D("ui:ml-2 ui:max-w-max ui:text-center ui:rounded-full ui:text-xs ui:px-2 ui:py-1 ui:text-white",r[n]),children:r[n]})]}),h.jsx(Co,{children:t})]})})};function FL({className:t,...e}){return h.jsx("div",{"data-slot":"card",className:D("ui:bg-card ui:text-card-foreground ui:flex ui:flex-col ui:gap-6 ui:rounded-xl ui:border ui:py-6 ui:shadow-sm",t),...e})}function GL({className:t,...e}){return h.jsx("div",{"data-slot":"card-header",className:D("ui:@container/card-header ui:grid ui:auto-rows-min ui:grid-rows-[auto_auto] ui:items-start ui:gap-2 ui:px-6 ui:has-data-[slot=card-action]:grid-cols-[1fr_auto] ui:[.border-b]:pb-6",t),...e})}function $L({className:t,...e}){return h.jsx("div",{"data-slot":"card-title",className:D("ui:leading-none ui:font-semibold",t),...e})}function VL({className:t,...e}){return h.jsx("div",{"data-slot":"card-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}function WL({className:t,...e}){return h.jsx("div",{"data-slot":"card-action",className:D("ui:col-start-2 ui:row-span-2 ui:row-start-1 ui:self-start ui:justify-self-end",t),...e})}function HL({className:t,...e}){return h.jsx("div",{"data-slot":"card-content",className:D("ui:px-6",t),...e})}function qL({className:t,...e}){return h.jsx("div",{"data-slot":"card-footer",className:D("ui:flex ui:items-center ui:px-6 ui:[.border-t]:pt-6",t),...e})}function zL(t){return Object.prototype.toString.call(t)==="[object Object]"}function wy(t){return zL(t)||Array.isArray(t)}function XL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rb(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(t.breakpoints||{})),i=JSON.stringify(Object.keys(e.breakpoints||{}));return o!==i?!1:n.every(a=>{const s=t[a],l=e[a];return typeof s=="function"?`${s}`==`${l}`:!wy(s)||!wy(l)?s===l:rb(s,l)})}function Cy(t){return t.concat().sort((e,n)=>e.name>n.name?1:-1).map(e=>e.options)}function YL(t,e){if(t.length!==e.length)return!1;const n=Cy(t),r=Cy(e);return n.every((o,i)=>{const a=r[i];return rb(o,a)})}function ob(t){return typeof t=="number"}function Sm(t){return typeof t=="string"}function Au(t){return typeof t=="boolean"}function Sy(t){return Object.prototype.toString.call(t)==="[object Object]"}function dt(t){return Math.abs(t)}function ib(t){return Math.sign(t)}function Ta(t,e){return dt(t-e)}function UL(t,e){if(t===0||e===0||dt(t)<=dt(e))return 0;const n=Ta(dt(t),dt(e));return dt(n/t)}function ZL(t){return Math.round(t*100)/100}function Ma(t){return ka(t).map(Number)}function Fn(t){return t[as(t)]}function as(t){return Math.max(0,t.length-1)}function ab(t,e){return e===as(t)}function Ey(t,e=0){return Array.from(Array(t),(n,r)=>e+r)}function ka(t){return Object.keys(t)}function FE(t,e){return[t,e].reduce((n,r)=>(ka(r).forEach(o=>{const i=n[o],a=r[o],s=Sy(i)&&Sy(a);n[o]=s?FE(i,a):a}),n),{})}function Em(t,e){return typeof e.MouseEvent<"u"&&t instanceof e.MouseEvent}function JL(t,e){const n={start:r,center:o,end:i};function r(){return 0}function o(l){return i(l)/2}function i(l){return e-l}function a(l,u){return Sm(t)?n[t](l):t(e,l,u)}return{measure:a}}function Da(){let t=[];function e(o,i,a,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(i,a,s),l=()=>o.removeEventListener(i,a,s);else{const u=o;u.addListener(a),l=()=>u.removeListener(a)}return t.push(l),r}function n(){t=t.filter(o=>o())}const r={add:e,clear:n};return r}function KL(t,e,n,r){const o=Da(),i=1e3/60;let a=null,s=0,l=0;function u(){o.add(t,"visibilitychange",()=>{t.hidden&&m()})}function d(){p(),o.clear()}function c(b){if(!l)return;a||(a=b,n(),n());const y=b-a;for(a=b,s+=y;s>=i;)n(),s-=i;const w=s/i;r(w),l&&(l=e.requestAnimationFrame(c))}function f(){l||(l=e.requestAnimationFrame(c))}function p(){e.cancelAnimationFrame(l),a=null,s=0,l=0}function m(){a=null,s=0}return{init:u,destroy:d,start:f,stop:p,update:n,render:r}}function QL(t,e){const n=e==="rtl",r=t==="y",o=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,s=d(),l=c();function u(m){const{height:g,width:b}=m;return r?g:b}function d(){return r?"top":n?"right":"left"}function c(){return r?"bottom":n?"left":"right"}function f(m){return m*a}return{scroll:o,cross:i,startEdge:s,endEdge:l,measureSize:u,direction:f}}function So(t=0,e=0){const n=dt(t-e);function r(u){return u<t}function o(u){return u>e}function i(u){return r(u)||o(u)}function a(u){return i(u)?r(u)?t:e:u}function s(u){return n?u-n*Math.ceil((u-e)/n):u}return{length:n,max:e,min:t,constrain:a,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:s}}function GE(t,e,n){const{constrain:r}=So(0,t),o=t+1;let i=a(e);function a(f){return n?dt((o+f)%o):r(f)}function s(){return i}function l(f){return i=a(f),c}function u(f){return d().set(s()+f)}function d(){return GE(t,s(),n)}const c={get:s,set:l,add:u,clone:d};return c}function e4(t,e,n,r,o,i,a,s,l,u,d,c,f,p,m,g,b,y,w){const{cross:C,direction:S}=t,E=["INPUT","SELECT","TEXTAREA"],T={passive:!1},A=Da(),O=Da(),M=So(50,225).constrain(p.measure(20)),V={mouse:300,touch:400},N={mouse:500,touch:600},k=m?43:25;let _=!1,B=0,L=0,P=!1,G=!1,j=!1,H=!1;function U(z){if(!w)return;function ue(le){(Au(w)||w(z,le))&&te(le)}const W=e;A.add(W,"dragstart",le=>le.preventDefault(),T).add(W,"touchmove",()=>{},T).add(W,"touchend",()=>{}).add(W,"touchstart",ue).add(W,"mousedown",ue).add(W,"touchcancel",J).add(W,"contextmenu",J).add(W,"click",ie,!0)}function Q(){A.clear(),O.clear()}function $(){const z=H?n:e;O.add(z,"touchmove",Y,T).add(z,"touchend",J).add(z,"mousemove",Y,T).add(z,"mouseup",J)}function q(z){const ue=z.nodeName||"";return E.includes(ue)}function Z(){return(m?N:V)[H?"mouse":"touch"]}function X(z,ue){const W=c.add(ib(z)*-1),le=d.byDistance(z,!m).distance;return m||dt(z)<M?le:b&&ue?le*.5:d.byIndex(W.get(),0).distance}function te(z){const ue=Em(z,r);H=ue,j=m&&ue&&!z.buttons&&_,_=Ta(o.get(),a.get())>=2,!(ue&&z.button!==0)&&(q(z.target)||(P=!0,i.pointerDown(z),u.useFriction(0).useDuration(0),o.set(a),$(),B=i.readPoint(z),L=i.readPoint(z,C),f.emit("pointerDown")))}function Y(z){if(!Em(z,r)&&z.touches.length>=2)return J(z);const W=i.readPoint(z),le=i.readPoint(z,C),Ae=Ta(W,B),Ne=Ta(le,L);if(!G&&!H&&(!z.cancelable||(G=Ae>Ne,!G)))return J(z);const Ve=i.pointerMove(z);Ae>g&&(j=!0),u.useFriction(.3).useDuration(.75),s.start(),o.add(S(Ve)),z.preventDefault()}function J(z){const W=d.byDistance(0,!1).index!==c.get(),le=i.pointerUp(z)*Z(),Ae=X(S(le),W),Ne=UL(le,Ae),Ve=k-10*Ne,Ie=y+Ne/50;G=!1,P=!1,O.clear(),u.useDuration(Ve).useFriction(Ie),l.distance(Ae,!m),H=!1,f.emit("pointerUp")}function ie(z){j&&(z.stopPropagation(),z.preventDefault(),j=!1)}function oe(){return P}return{init:U,destroy:Q,pointerDown:oe}}function t4(t,e){let r,o;function i(c){return c.timeStamp}function a(c,f){const m=`client${(f||t.scroll)==="x"?"X":"Y"}`;return(Em(c,e)?c:c.touches[0])[m]}function s(c){return r=c,o=c,a(c)}function l(c){const f=a(c)-a(o),p=i(c)-i(r)>170;return o=c,p&&(r=c),f}function u(c){if(!r||!o)return 0;const f=a(o)-a(r),p=i(c)-i(r),m=i(c)-i(o)>170,g=f/p;return p&&!m&&dt(g)>.1?g:0}return{pointerDown:s,pointerMove:l,pointerUp:u,readPoint:a}}function n4(){function t(n){const{offsetTop:r,offsetLeft:o,offsetWidth:i,offsetHeight:a}=n;return{top:r,right:o+i,bottom:r+a,left:o,width:i,height:a}}return{measure:t}}function r4(t){function e(r){return t*(r/100)}return{measure:e}}function o4(t,e,n,r,o,i,a){const s=[t].concat(r);let l,u,d=[],c=!1;function f(b){return o.measureSize(a.measure(b))}function p(b){if(!i)return;u=f(t),d=r.map(f);function y(w){for(const C of w){if(c)return;const S=C.target===t,E=r.indexOf(C.target),T=S?u:d[E],A=f(S?t:r[E]);if(dt(A-T)>=.5){b.reInit(),e.emit("resize");break}}}l=new ResizeObserver(w=>{(Au(i)||i(b,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function m(){c=!0,l&&l.disconnect()}return{init:p,destroy:m}}function i4(t,e,n,r,o,i){let a=0,s=0,l=o,u=i,d=t.get(),c=0;function f(){const T=r.get()-t.get(),A=!l;let O=0;return A?(a=0,n.set(r),t.set(r),O=T):(n.set(t),a+=T/l,a*=u,d+=a,t.add(a),O=d-c),s=ib(O),c=d,E}function p(){const T=r.get()-e.get();return dt(T)<.001}function m(){return l}function g(){return s}function b(){return a}function y(){return C(o)}function w(){return S(i)}function C(T){return l=T,E}function S(T){return u=T,E}const E={direction:g,duration:m,velocity:b,seek:f,settled:p,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:C};return E}function a4(t,e,n,r,o){const i=o.measure(10),a=o.measure(50),s=So(.1,.99);let l=!1;function u(){return!(l||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function d(p){if(!u())return;const m=t.reachedMin(e.get())?"min":"max",g=dt(t[m]-e.get()),b=n.get()-e.get(),y=s.constrain(g/a);n.subtract(b*y),!p&&dt(b)<i&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())}function c(p){l=!p}return{shouldConstrain:u,constrain:d,toggleActive:c}}function s4(t,e,n,r,o){const i=So(-e+t,0),a=c(),s=d(),l=f();function u(m,g){return Ta(m,g)<=1}function d(){const m=a[0],g=Fn(a),b=a.lastIndexOf(m),y=a.indexOf(g)+1;return So(b,y)}function c(){return n.map((m,g)=>{const{min:b,max:y}=i,w=i.constrain(m),C=!g,S=ab(n,g);return C?y:S||u(b,w)?b:u(y,w)?y:w}).map(m=>parseFloat(m.toFixed(3)))}function f(){if(e<=t+o)return[i.max];if(r==="keepSnaps")return a;const{min:m,max:g}=s;return a.slice(m,g)}return{snapsContained:l,scrollContainLimit:s}}function l4(t,e,n){const r=e[0],o=n?r-t:Fn(e);return{limit:So(o,r)}}function u4(t,e,n,r){const i=e.min+.1,a=e.max+.1,{reachedMin:s,reachedMax:l}=So(i,a);function u(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function d(f){if(!u(f))return;const p=t*(f*-1);r.forEach(m=>m.add(p))}return{loop:d}}function c4(t){const{max:e,length:n}=t;function r(i){const a=i-e;return n?a/-n:0}return{get:r}}function d4(t,e,n,r,o){const{startEdge:i,endEdge:a}=t,{groupSlides:s}=o,l=c().map(e.measure),u=f(),d=p();function c(){return s(r).map(g=>Fn(g)[a]-g[0][i]).map(dt)}function f(){return r.map(g=>n[i]-g[i]).map(g=>-dt(g))}function p(){return s(u).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:u,snapsAligned:d}}function f4(t,e,n,r,o,i){const{groupSlides:a}=o,{min:s,max:l}=r,u=d();function d(){const f=a(i),p=!t||e==="keepSnaps";return n.length===1?[i]:p?f:f.slice(s,l).map((m,g,b)=>{const y=!g,w=ab(b,g);if(y){const C=Fn(b[0])+1;return Ey(C)}if(w){const C=as(i)-Fn(b)[0]+1;return Ey(C,Fn(b)[0])}return m})}return{slideRegistry:u}}function h4(t,e,n,r,o){const{reachedAny:i,removeOffset:a,constrain:s}=r;function l(m){return m.concat().sort((g,b)=>dt(g)-dt(b))[0]}function u(m){const g=t?a(m):s(m),b=e.map((w,C)=>({diff:d(w-g,0),index:C})).sort((w,C)=>dt(w.diff)-dt(C.diff)),{index:y}=b[0];return{index:y,distance:g}}function d(m,g){const b=[m,m+n,m-n];if(!t)return m;if(!g)return l(b);const y=b.filter(w=>ib(w)===g);return y.length?l(y):Fn(b)-n}function c(m,g){const b=e[m]-o.get(),y=d(b,g);return{index:m,distance:y}}function f(m,g){const b=o.get()+m,{index:y,distance:w}=u(b),C=!t&&i(b);if(!g||C)return{index:y,distance:m};const S=e[y]-w,E=m+d(S,0);return{index:y,distance:E}}return{byDistance:f,byIndex:c,shortcut:d}}function p4(t,e,n,r,o,i,a){function s(c){const f=c.distance,p=c.index!==e.get();i.add(f),f&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),p&&(n.set(e.get()),e.set(c.index),a.emit("select"))}function l(c,f){const p=o.byDistance(c,f);s(p)}function u(c,f){const p=e.clone().set(c),m=o.byIndex(p.get(),f);s(m)}return{distance:l,index:u}}function m4(t,e,n,r,o,i,a,s){const l={passive:!0,capture:!0};let u=0;function d(p){if(!s)return;function m(g){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),t.scrollLeft=0;const w=n.findIndex(C=>C.includes(g));ob(w)&&(o.useDuration(0),r.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",c,!1),e.forEach((g,b)=>{i.add(g,"focus",y=>{(Au(s)||s(p,y))&&m(b)},l)})}function c(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function ga(t){let e=t;function n(){return e}function r(l){e=a(l)}function o(l){e+=a(l)}function i(l){e-=a(l)}function a(l){return ob(l)?l:l.get()}return{get:n,set:r,add:o,subtract:i}}function $E(t,e){const n=t.scroll==="x"?a:s,r=e.style;let o=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const p=ZL(t.direction(f));p!==o&&(r.transform=n(p),o=p)}function u(f){i=!f}function d(){i||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:d,to:l,toggleActive:u}}function g4(t,e,n,r,o,i,a,s,l){const d=Ma(o),c=Ma(o).reverse(),f=y().concat(w());function p(A,O){return A.reduce((M,V)=>M-o[V],O)}function m(A,O){return A.reduce((M,V)=>p(M,O)>0?M.concat([V]):M,[])}function g(A){return i.map((O,M)=>({start:O-r[M]+.5+A,end:O+e-.5+A}))}function b(A,O,M){const V=g(O);return A.map(N=>{const k=M?0:-n,_=M?n:0,B=M?"end":"start",L=V[N][B];return{index:N,loopPoint:L,slideLocation:ga(-1),translate:$E(t,l[N]),target:()=>s.get()>L?k:_}})}function y(){const A=a[0],O=m(c,A);return b(O,n,!1)}function w(){const A=e-a[0]-1,O=m(d,A);return b(O,-n,!0)}function C(){return f.every(({index:A})=>{const O=d.filter(M=>M!==A);return p(O,e)<=.1})}function S(){f.forEach(A=>{const{target:O,translate:M,slideLocation:V}=A,N=O();N!==V.get()&&(M.to(N),V.set(N))})}function E(){f.forEach(A=>A.translate.clear())}return{canLoop:C,clear:E,loop:S,loopPoints:f}}function b4(t,e,n){let r,o=!1;function i(l){if(!n)return;function u(d){for(const c of d)if(c.type==="childList"){l.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(Au(n)||n(l,d))&&u(d)}),r.observe(t,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:i,destroy:a}}function v4(t,e,n,r){const o={};let i=null,a=null,s,l=!1;function u(){s=new IntersectionObserver(m=>{l||(m.forEach(g=>{const b=e.indexOf(g.target);o[b]=g}),i=null,a=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(m=>s.observe(m))}function d(){s&&s.disconnect(),l=!0}function c(m){return ka(o).reduce((g,b)=>{const y=parseInt(b),{isIntersecting:w}=o[y];return(m&&w||!m&&!w)&&g.push(y),g},[])}function f(m=!0){if(m&&i)return i;if(!m&&a)return a;const g=c(m);return m&&(i=g),m||(a=g),g}return{init:u,destroy:d,get:f}}function y4(t,e,n,r,o,i){const{measureSize:a,startEdge:s,endEdge:l}=t,u=n[0]&&o,d=m(),c=g(),f=n.map(a),p=b();function m(){if(!u)return 0;const w=n[0];return dt(e[s]-w[s])}function g(){if(!u)return 0;const w=i.getComputedStyle(Fn(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function b(){return n.map((w,C,S)=>{const E=!C,T=ab(S,C);return E?f[C]+d:T?f[C]+c:S[C+1][s]-w[s]}).map(dt)}return{slideSizes:f,slideSizesWithGaps:p,startGap:d,endGap:c}}function x4(t,e,n,r,o,i,a,s,l){const{startEdge:u,endEdge:d,direction:c}=t,f=ob(n);function p(y,w){return Ma(y).filter(C=>C%w===0).map(C=>y.slice(C,C+w))}function m(y){return y.length?Ma(y).reduce((w,C,S)=>{const E=Fn(w)||0,T=E===0,A=C===as(y),O=o[u]-i[E][u],M=o[u]-i[C][d],V=!r&&T?c(a):0,N=!r&&A?c(s):0,k=dt(M-N-(O+V));return S&&k>e+l&&w.push(C),A&&w.push(y.length),w},[]).map((w,C,S)=>{const E=Math.max(S[C-1]||0);return y.slice(E,w)}):[]}function g(y){return f?p(y,n):m(y)}return{groupSlides:g}}function w4(t,e,n,r,o,i,a){const{align:s,axis:l,direction:u,startIndex:d,loop:c,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:g,slidesToScroll:b,skipSnaps:y,containScroll:w,watchResize:C,watchSlides:S,watchDrag:E,watchFocus:T}=i,A=2,O=n4(),M=O.measure(e),V=n.map(O.measure),N=QL(l,u),k=N.measureSize(M),_=r4(k),B=JL(s,k),L=!c&&!!w,P=c||!!w,{slideSizes:G,slideSizesWithGaps:j,startGap:H,endGap:U}=y4(N,M,V,n,P,o),Q=x4(N,k,b,c,M,V,H,U,A),{snaps:$,snapsAligned:q}=d4(N,B,M,V,Q),Z=-Fn($)+Fn(j),{snapsContained:X,scrollContainLimit:te}=s4(k,Z,q,w,A),Y=L?X:q,{limit:J}=l4(Z,Y,c),ie=GE(as(Y),d,c),oe=ie.clone(),re=Ma(n),z=({dragHandler:Le,scrollBody:_t,scrollBounds:tt,options:{loop:lt}})=>{lt||tt.constrain(Le.pointerDown()),_t.seek()},ue=({scrollBody:Le,translate:_t,location:tt,offsetLocation:lt,previousLocation:Ot,scrollLooper:Rt,slideLooper:on,dragHandler:Ht,animation:Pt,eventHandler:ne,scrollBounds:fe,options:{loop:ce}},de)=>{const Te=Le.settled(),ae=!fe.shouldConstrain(),_e=ce?Te:Te&&ae,ke=_e&&!Ht.pointerDown();ke&&Pt.stop();const De=tt.get()*de+Ot.get()*(1-de);lt.set(De),ce&&(Rt.loop(Le.direction()),on.loop()),_t.to(lt.get()),ke&&ne.emit("settle"),_e||ne.emit("scroll")},W=KL(r,o,()=>z(bt),Le=>ue(bt,Le)),le=.68,Ae=Y[ie.get()],Ne=ga(Ae),Ve=ga(Ae),Ie=ga(Ae),Re=ga(Ae),at=i4(Ne,Ie,Ve,Re,f,le),Me=h4(c,Y,Z,J,Re),Ge=p4(W,ie,oe,at,Me,Re,a),We=c4(J),Qe=Da(),st=v4(e,n,a,g),{slideRegistry:it}=f4(L,w,Y,te,Q,re),mt=m4(t,n,it,Ge,at,Qe,a,T),bt={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:M,slideRects:V,animation:W,axis:N,dragHandler:e4(N,t,r,o,Re,t4(N,o),Ne,W,Ge,at,Me,ie,a,_,p,m,y,le,E),eventStore:Qe,percentOfView:_,index:ie,indexPrevious:oe,limit:J,location:Ne,offsetLocation:Ie,previousLocation:Ve,options:i,resizeHandler:o4(e,a,o,n,N,C,O),scrollBody:at,scrollBounds:a4(J,Ie,Re,at,_),scrollLooper:u4(Z,J,Ie,[Ne,Ie,Ve,Re]),scrollProgress:We,scrollSnapList:Y.map(We.get),scrollSnaps:Y,scrollTarget:Me,scrollTo:Ge,slideLooper:g4(N,k,Z,G,j,$,Y,Ie,n),slideFocus:mt,slidesHandler:b4(e,a,S),slidesInView:st,slideIndexes:re,slideRegistry:it,slidesToScroll:Q,target:Re,translate:$E(N,e)};return bt}function C4(){let t={},e;function n(u){e=u}function r(u){return t[u]||[]}function o(u){return r(u).forEach(d=>d(e,u)),l}function i(u,d){return t[u]=r(u).concat([d]),l}function a(u,d){return t[u]=r(u).filter(c=>c!==d),l}function s(){t={}}const l={init:n,emit:o,off:a,on:i,clear:s};return l}const S4={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function E4(t){function e(i,a){return FE(i,a||{})}function n(i){const a=i.breakpoints||{},s=ka(a).filter(l=>t.matchMedia(l).matches).map(l=>a[l]).reduce((l,u)=>e(l,u),{});return e(i,s)}function r(i){return i.map(a=>ka(a.breakpoints||{})).reduce((a,s)=>a.concat(s),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:r}}function I4(t){let e=[];function n(i,a){return e=a.filter(({options:s})=>t.optionsAtMedia(s).active!==!1),e.forEach(s=>s.init(i,t)),a.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){e=e.filter(i=>i.destroy())}return{init:n,destroy:r}}function jl(t,e,n){const r=t.ownerDocument,o=r.defaultView,i=E4(o),a=I4(i),s=Da(),l=C4(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:c}=i,{on:f,off:p,emit:m}=l,g=N;let b=!1,y,w=u(S4,jl.globalOptions),C=u(w),S=[],E,T,A;function O(){const{container:re,slides:z}=C;T=(Sm(re)?t.querySelector(re):re)||t.children[0];const W=Sm(z)?T.querySelectorAll(z):z;A=[].slice.call(W||T.children)}function M(re){const z=w4(t,T,A,r,o,re,l);if(re.loop&&!z.slideLooper.canLoop()){const ue=Object.assign({},re,{loop:!1});return M(ue)}return z}function V(re,z){b||(w=u(w,re),C=d(w),S=z||S,O(),y=M(C),c([w,...S.map(({options:ue})=>ue)]).forEach(ue=>s.add(ue,"change",N)),C.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(oe),y.eventHandler.init(oe),y.resizeHandler.init(oe),y.slidesHandler.init(oe),y.options.loop&&y.slideLooper.loop(),T.offsetParent&&A.length&&y.dragHandler.init(oe),E=a.init(oe,S)))}function N(re,z){const ue=Q();k(),V(u({startIndex:ue},re),z),l.emit("reInit")}function k(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),s.clear()}function _(){b||(b=!0,s.clear(),k(),l.emit("destroy"),l.clear())}function B(re,z,ue){!C.active||b||(y.scrollBody.useBaseFriction().useDuration(z===!0?0:C.duration),y.scrollTo.index(re,ue||0))}function L(re){const z=y.index.add(1).get();B(z,re,-1)}function P(re){const z=y.index.add(-1).get();B(z,re,1)}function G(){return y.index.add(1).get()!==Q()}function j(){return y.index.add(-1).get()!==Q()}function H(){return y.scrollSnapList}function U(){return y.scrollProgress.get(y.offsetLocation.get())}function Q(){return y.index.get()}function $(){return y.indexPrevious.get()}function q(){return y.slidesInView.get()}function Z(){return y.slidesInView.get(!1)}function X(){return E}function te(){return y}function Y(){return t}function J(){return T}function ie(){return A}const oe={canScrollNext:G,canScrollPrev:j,containerNode:J,internalEngine:te,destroy:_,off:p,on:f,emit:m,plugins:X,previousScrollSnap:$,reInit:g,rootNode:Y,scrollNext:L,scrollPrev:P,scrollProgress:U,scrollSnapList:H,scrollTo:B,selectedScrollSnap:Q,slideNodes:ie,slidesInView:q,slidesNotInView:Z};return V(e,n),setTimeout(()=>l.emit("init"),0),oe}jl.globalOptions=void 0;function sb(t={},e=[]){const n=I.useRef(t),r=I.useRef(e),[o,i]=I.useState(),[a,s]=I.useState(),l=I.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return I.useEffect(()=>{rb(n.current,t)||(n.current=t,l())},[t,l]),I.useEffect(()=>{YL(r.current,e)||(r.current=e,l())},[e,l]),I.useEffect(()=>{if(XL()&&a){jl.globalOptions=sb.globalOptions;const u=jl(a,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[a,i]),[s,o]}sb.globalOptions=void 0;const VE=v.createContext(null);function Tu(){const t=v.useContext(VE);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function A4({orientation:t="horizontal",opts:e,setApi:n,plugins:r,className:o,children:i,...a}){const[s,l]=sb({...e,axis:t==="horizontal"?"x":"y"},r),[u,d]=v.useState(!1),[c,f]=v.useState(!1),p=v.useCallback(y=>{y&&(d(y.canScrollPrev()),f(y.canScrollNext()))},[]),m=v.useCallback(()=>{l?.scrollPrev()},[l]),g=v.useCallback(()=>{l?.scrollNext()},[l]),b=v.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),m()):y.key==="ArrowRight"&&(y.preventDefault(),g())},[m,g]);return v.useEffect(()=>{!l||!n||n(l)},[l,n]),v.useEffect(()=>{if(l)return p(l),l.on("reInit",p),l.on("select",p),()=>{l?.off("select",p)}},[l,p]),h.jsx(VE.Provider,{value:{carouselRef:s,api:l,opts:e,orientation:t||(e?.axis==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:g,canScrollPrev:u,canScrollNext:c},children:h.jsx("div",{onKeyDownCapture:b,className:D("ui:relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...a,children:i})})}function T4({className:t,...e}){const{carouselRef:n,orientation:r}=Tu();return h.jsx("div",{ref:n,className:"ui:overflow-hidden","data-slot":"carousel-content",children:h.jsx("div",{className:D("ui:flex",r==="horizontal"?"ui:-ml-4":"ui:-mt-4 ui:flex-col",t),...e})})}function N4({className:t,...e}){const{orientation:n}=Tu();return h.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:D("ui:min-w-0 ui:shrink-0 ui:grow-0 ui:basis-full",n==="horizontal"?"ui:pl-4":"ui:pt-4",t),...e})}function _4({className:t,variant:e="outline",size:n="icon",...r}){const{orientation:o,scrollPrev:i,canScrollPrev:a}=Tu();return h.jsxs(en,{"data-slot":"carousel-previous",variant:e,size:n,className:D("ui:absolute ui:size-8 ui:rounded-full",o==="horizontal"?"ui:top-1/2 ui:-left-12 ui:-translate-y-1/2":"ui:-top-12 ui:left-1/2 ui:-translate-x-1/2 ui:rotate-90",t),disabled:!a,onClick:i,...r,children:[h.jsx(O2,{}),h.jsx("span",{className:"ui:sr-only",children:"Previous slide"})]})}function O4({className:t,variant:e="outline",size:n="icon",...r}){const{orientation:o,scrollNext:i,canScrollNext:a}=Tu();return h.jsxs(en,{"data-slot":"carousel-next",variant:e,size:n,className:D("ui:absolute ui:size-8 ui:rounded-full",o==="horizontal"?"ui:top-1/2 ui:-right-12 ui:-translate-y-1/2":"ui:-bottom-12 ui:left-1/2 ui:-translate-x-1/2 ui:rotate-90",t),disabled:!a,onClick:i,...r,children:[h.jsx(P2,{}),h.jsx("span",{className:"ui:sr-only",children:"Next slide"})]})}var Td,Iy;function qn(){if(Iy)return Td;Iy=1;var t=Array.isArray;return Td=t,Td}var Nd,Ay;function WE(){if(Ay)return Nd;Ay=1;var t=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn;return Nd=t,Nd}var _d,Ty;function vr(){if(Ty)return _d;Ty=1;var t=WE(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return _d=n,_d}var Od,Ny;function ss(){if(Ny)return Od;Ny=1;var t=vr(),e=t.Symbol;return Od=e,Od}var Rd,_y;function R4(){if(_y)return Rd;_y=1;var t=ss(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var u=!0}catch{}var d=r.call(a);return u&&(s?a[o]=l:delete a[o]),d}return Rd=i,Rd}var Pd,Oy;function P4(){if(Oy)return Pd;Oy=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Pd=n,Pd}var Md,Ry;function Do(){if(Ry)return Md;Ry=1;var t=ss(),e=R4(),n=P4(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?e(s):n(s)}return Md=a,Md}var kd,Py;function jo(){if(Py)return kd;Py=1;function t(e){return e!=null&&typeof e=="object"}return kd=t,kd}var Dd,My;function ls(){if(My)return Dd;My=1;var t=Do(),e=jo(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return Dd=r,Dd}var jd,ky;function lb(){if(ky)return jd;ky=1;var t=qn(),e=ls(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(t(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||e(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return jd=o,jd}var Ld,Dy;function no(){if(Dy)return Ld;Dy=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Ld=t,Ld}var Bd,jy;function ub(){if(jy)return Bd;jy=1;var t=Do(),e=no(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!e(s))return!1;var l=t(s);return l==r||l==o||l==n||l==i}return Bd=a,Bd}var Fd,Ly;function M4(){if(Ly)return Fd;Ly=1;var t=vr(),e=t["__core-js_shared__"];return Fd=e,Fd}var Gd,By;function k4(){if(By)return Gd;By=1;var t=M4(),e=(function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Gd=n,Gd}var $d,Fy;function HE(){if(Fy)return $d;Fy=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return $d=n,$d}var Vd,Gy;function D4(){if(Gy)return Vd;Gy=1;var t=ub(),e=k4(),n=no(),r=HE(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,d=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(f){if(!n(f)||e(f))return!1;var p=t(f)?d:i;return p.test(r(f))}return Vd=c,Vd}var Wd,$y;function j4(){if($y)return Wd;$y=1;function t(e,n){return e?.[n]}return Wd=t,Wd}var Hd,Vy;function Lo(){if(Vy)return Hd;Vy=1;var t=D4(),e=j4();function n(r,o){var i=e(r,o);return t(i)?i:void 0}return Hd=n,Hd}var qd,Wy;function Nu(){if(Wy)return qd;Wy=1;var t=Lo(),e=t(Object,"create");return qd=e,qd}var zd,Hy;function L4(){if(Hy)return zd;Hy=1;var t=Nu();function e(){this.__data__=t?t(null):{},this.size=0}return zd=e,zd}var Xd,qy;function B4(){if(qy)return Xd;qy=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Xd=t,Xd}var Yd,zy;function F4(){if(zy)return Yd;zy=1;var t=Nu(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(t){var s=a[i];return s===e?void 0:s}return r.call(a,i)?a[i]:void 0}return Yd=o,Yd}var Ud,Xy;function G4(){if(Xy)return Ud;Xy=1;var t=Nu(),e=Object.prototype,n=e.hasOwnProperty;function r(o){var i=this.__data__;return t?i[o]!==void 0:n.call(i,o)}return Ud=r,Ud}var Zd,Yy;function $4(){if(Yy)return Zd;Yy=1;var t=Nu(),e="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=t&&o===void 0?e:o,this}return Zd=n,Zd}var Jd,Uy;function V4(){if(Uy)return Jd;Uy=1;var t=L4(),e=B4(),n=F4(),r=G4(),o=$4();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var u=a[s];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Jd=i,Jd}var Kd,Zy;function W4(){if(Zy)return Kd;Zy=1;function t(){this.__data__=[],this.size=0}return Kd=t,Kd}var Qd,Jy;function cb(){if(Jy)return Qd;Jy=1;function t(e,n){return e===n||e!==e&&n!==n}return Qd=t,Qd}var ef,Ky;function _u(){if(Ky)return ef;Ky=1;var t=cb();function e(n,r){for(var o=n.length;o--;)if(t(n[o][0],r))return o;return-1}return ef=e,ef}var tf,Qy;function H4(){if(Qy)return tf;Qy=1;var t=_u(),e=Array.prototype,n=e.splice;function r(o){var i=this.__data__,a=t(i,o);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():n.call(i,a,1),--this.size,!0}return tf=r,tf}var nf,e0;function q4(){if(e0)return nf;e0=1;var t=_u();function e(n){var r=this.__data__,o=t(r,n);return o<0?void 0:r[o][1]}return nf=e,nf}var rf,t0;function z4(){if(t0)return rf;t0=1;var t=_u();function e(n){return t(this.__data__,n)>-1}return rf=e,rf}var of,n0;function X4(){if(n0)return of;n0=1;var t=_u();function e(n,r){var o=this.__data__,i=t(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return of=e,of}var af,r0;function Ou(){if(r0)return af;r0=1;var t=W4(),e=H4(),n=q4(),r=z4(),o=X4();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var u=a[s];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,af=i,af}var sf,o0;function db(){if(o0)return sf;o0=1;var t=Lo(),e=vr(),n=t(e,"Map");return sf=n,sf}var lf,i0;function Y4(){if(i0)return lf;i0=1;var t=V4(),e=Ou(),n=db();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return lf=r,lf}var uf,a0;function U4(){if(a0)return uf;a0=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return uf=t,uf}var cf,s0;function Ru(){if(s0)return cf;s0=1;var t=U4();function e(n,r){var o=n.__data__;return t(r)?o[typeof r=="string"?"string":"hash"]:o.map}return cf=e,cf}var df,l0;function Z4(){if(l0)return df;l0=1;var t=Ru();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return df=e,df}var ff,u0;function J4(){if(u0)return ff;u0=1;var t=Ru();function e(n){return t(this,n).get(n)}return ff=e,ff}var hf,c0;function K4(){if(c0)return hf;c0=1;var t=Ru();function e(n){return t(this,n).has(n)}return hf=e,hf}var pf,d0;function Q4(){if(d0)return pf;d0=1;var t=Ru();function e(n,r){var o=t(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return pf=e,pf}var mf,f0;function fb(){if(f0)return mf;f0=1;var t=Y4(),e=Z4(),n=J4(),r=K4(),o=Q4();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var u=a[s];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,mf=i,mf}var gf,h0;function eB(){if(h0)return gf;h0=1;var t=fb(),e="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(e);var i=function(){var a=arguments,s=o?o.apply(this,a):a[0],l=i.cache;if(l.has(s))return l.get(s);var u=r.apply(this,a);return i.cache=l.set(s,u)||l,u};return i.cache=new(n.Cache||t),i}return n.Cache=t,gf=n,gf}var bf,p0;function tB(){if(p0)return bf;p0=1;var t=eB(),e=500;function n(r){var o=t(r,function(a){return i.size===e&&i.clear(),a}),i=o.cache;return o}return bf=n,bf}var vf,m0;function nB(){if(m0)return vf;m0=1;var t=tB(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(e,function(a,s,l,u){i.push(l?u.replace(n,"$1"):s||a)}),i});return vf=r,vf}var yf,g0;function qE(){if(g0)return yf;g0=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=n(e[r],r,e);return i}return yf=t,yf}var xf,b0;function rB(){if(b0)return xf;b0=1;var t=ss(),e=qE(),n=qn(),r=ls(),o=t?t.prototype:void 0,i=o?o.toString:void 0;function a(s){if(typeof s=="string")return s;if(n(s))return e(s,a)+"";if(r(s))return i?i.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return xf=a,xf}var wf,v0;function zE(){if(v0)return wf;v0=1;var t=rB();function e(n){return n==null?"":t(n)}return wf=e,wf}var Cf,y0;function XE(){if(y0)return Cf;y0=1;var t=qn(),e=lb(),n=nB(),r=zE();function o(i,a){return t(i)?i:e(i,a)?[i]:n(r(i))}return Cf=o,Cf}var Sf,x0;function Pu(){if(x0)return Sf;x0=1;var t=ls();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Sf=e,Sf}var Ef,w0;function hb(){if(w0)return Ef;w0=1;var t=XE(),e=Pu();function n(r,o){o=t(o,r);for(var i=0,a=o.length;r!=null&&i<a;)r=r[e(o[i++])];return i&&i==a?r:void 0}return Ef=n,Ef}var If,C0;function YE(){if(C0)return If;C0=1;var t=hb();function e(n,r,o){var i=n==null?void 0:t(n,r);return i===void 0?o:i}return If=e,If}YE();var Af,S0;function oB(){if(S0)return Af;S0=1;function t(e){return e==null}return Af=t,Af}var iB=oB();const aB=An(iB);var Tf,E0;function sB(){if(E0)return Tf;E0=1;var t=Do(),e=qn(),n=jo(),r="[object String]";function o(i){return typeof i=="string"||!e(i)&&n(i)&&t(i)==r}return Tf=o,Tf}var lB=sB();const UE=An(lB);var uB=ub();const Ll=An(uB);var cB=no();const ZE=An(cB);var Ys={exports:{}},Xe={};var I0;function dB(){if(I0)return Xe;I0=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function g(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case t:switch(b=b.type,b){case n:case o:case r:case u:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case a:case l:case f:case c:case i:return b;default:return y}}case e:return y}}}return Xe.ContextConsumer=a,Xe.ContextProvider=i,Xe.Element=t,Xe.ForwardRef=l,Xe.Fragment=n,Xe.Lazy=f,Xe.Memo=c,Xe.Portal=e,Xe.Profiler=o,Xe.StrictMode=r,Xe.Suspense=u,Xe.SuspenseList=d,Xe.isAsyncMode=function(){return!1},Xe.isConcurrentMode=function(){return!1},Xe.isContextConsumer=function(b){return g(b)===a},Xe.isContextProvider=function(b){return g(b)===i},Xe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Xe.isForwardRef=function(b){return g(b)===l},Xe.isFragment=function(b){return g(b)===n},Xe.isLazy=function(b){return g(b)===f},Xe.isMemo=function(b){return g(b)===c},Xe.isPortal=function(b){return g(b)===e},Xe.isProfiler=function(b){return g(b)===o},Xe.isStrictMode=function(b){return g(b)===r},Xe.isSuspense=function(b){return g(b)===u},Xe.isSuspenseList=function(b){return g(b)===d},Xe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===u||b===d||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===c||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===m||b.getModuleId!==void 0)},Xe.typeOf=g,Xe}var Ye={};var A0;function fB(){return A0||(A0=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,g=!1,b=!1,y=!1,w=!1,C;C=Symbol.for("react.module.reference");function S(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===o||w||W===r||W===u||W===d||y||W===p||m||g||b||typeof W=="object"&&W!==null&&(W.$$typeof===f||W.$$typeof===c||W.$$typeof===i||W.$$typeof===a||W.$$typeof===l||W.$$typeof===C||W.getModuleId!==void 0))}function E(W){if(typeof W=="object"&&W!==null){var le=W.$$typeof;switch(le){case t:var Ae=W.type;switch(Ae){case n:case o:case r:case u:case d:return Ae;default:var Ne=Ae&&Ae.$$typeof;switch(Ne){case s:case a:case l:case f:case c:case i:return Ne;default:return le}}case e:return le}}}var T=a,A=i,O=t,M=l,V=n,N=f,k=c,_=e,B=o,L=r,P=u,G=d,j=!1,H=!1;function U(W){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(W){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(W){return E(W)===a}function q(W){return E(W)===i}function Z(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function X(W){return E(W)===l}function te(W){return E(W)===n}function Y(W){return E(W)===f}function J(W){return E(W)===c}function ie(W){return E(W)===e}function oe(W){return E(W)===o}function re(W){return E(W)===r}function z(W){return E(W)===u}function ue(W){return E(W)===d}Ye.ContextConsumer=T,Ye.ContextProvider=A,Ye.Element=O,Ye.ForwardRef=M,Ye.Fragment=V,Ye.Lazy=N,Ye.Memo=k,Ye.Portal=_,Ye.Profiler=B,Ye.StrictMode=L,Ye.Suspense=P,Ye.SuspenseList=G,Ye.isAsyncMode=U,Ye.isConcurrentMode=Q,Ye.isContextConsumer=$,Ye.isContextProvider=q,Ye.isElement=Z,Ye.isForwardRef=X,Ye.isFragment=te,Ye.isLazy=Y,Ye.isMemo=J,Ye.isPortal=ie,Ye.isProfiler=oe,Ye.isStrictMode=re,Ye.isSuspense=z,Ye.isSuspenseList=ue,Ye.isValidElementType=S,Ye.typeOf=E})()),Ye}var T0;function hB(){return T0||(T0=1,process.env.NODE_ENV==="production"?Ys.exports=dB():Ys.exports=fB()),Ys.exports}hB();var Nf,N0;function JE(){if(N0)return Nf;N0=1;var t=Do(),e=jo(),n="[object Number]";function r(o){return typeof o=="number"||e(o)&&t(o)==n}return Nf=r,Nf}var _f,_0;function pB(){if(_0)return _f;_0=1;var t=JE();function e(n){return t(n)&&n!=+n}return _f=e,_f}var mB=pB();const gB=An(mB);var bB=JE();const vB=An(bB);var Us=function(e){return UE(e)&&e.indexOf("%")===e.length-1},Mn=function(e){return vB(e)&&!gB(e)},Bl=function(e){return Mn(e)||UE(e)};function Im(t){"@babel/helpers - typeof";return Im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Im(t)}var yB=["viewBox","children"],xB=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],O0=["points","pathLength"],Of={svg:yB,polygon:O0,polyline:O0},KE=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],wB=function(e,n,r){return function(o){return e(n,r,o),null}},CB=function(e,n,r){if(!ZE(e)||Im(e)!=="object")return null;var o=null;return Object.keys(e).forEach(function(i){var a=e[i];KE.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=wB(a,n,r))}),o},SB=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},EB=function(e,n,r,o){var i,a=(i=Of?.[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!Ll(e)&&(o&&a.includes(n)||xB.includes(n))||KE.includes(n)},QE=function(e,n,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var o=e;if(I.isValidElement(e)&&(o=e.props),!ZE(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;EB((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},IB=["children","width","height","viewBox","className","style","title","desc"];function Am(){return Am=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Am.apply(this,arguments)}function AB(t,e){if(t==null)return{};var n=TB(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function TB(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function NB(t){var e=t.children,n=t.width,r=t.height,o=t.viewBox,i=t.className,a=t.style,s=t.title,l=t.desc,u=AB(t,IB),d=o||{width:n,height:r,x:0,y:0},c=Dr("recharts-surface",i);return I.createElement("svg",Am({},QE(u,!0,"svg"),{className:c,width:n,height:r,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),I.createElement("title",null,s),I.createElement("desc",null,l),e)}var _B=process.env.NODE_ENV!=="production",Cl=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(_B&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!e))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,function(){return o[a++]}))}},Rf,R0;function OB(){if(R0)return Rf;R0=1;function t(e,n,r){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+n];return a}return Rf=t,Rf}var Pf,P0;function RB(){if(P0)return Pf;P0=1;var t=OB();function e(n,r,o){var i=n.length;return o=o===void 0?i:o,!r&&o>=i?n:t(n,r,o)}return Pf=e,Pf}var Mf,M0;function eI(){if(M0)return Mf;M0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+t+o+i+"]");function l(u){return s.test(u)}return Mf=l,Mf}var kf,k0;function PB(){if(k0)return kf;k0=1;function t(e){return e.split("")}return kf=t,kf}var Df,D0;function MB(){if(D0)return Df;D0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",a="["+t+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",d="[^"+t+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",m=u+"?",g="["+i+"]?",b="(?:"+p+"(?:"+[d,c,f].join("|")+")"+g+m+")*",y=g+m+b,w="(?:"+[d+s+"?",s,c,f,a].join("|")+")",C=RegExp(l+"(?="+l+")|"+w+y,"g");function S(E){return E.match(C)||[]}return Df=S,Df}var jf,j0;function kB(){if(j0)return jf;j0=1;var t=PB(),e=eI(),n=MB();function r(o){return e(o)?n(o):t(o)}return jf=r,jf}var Lf,L0;function DB(){if(L0)return Lf;L0=1;var t=RB(),e=eI(),n=kB(),r=zE();function o(i){return function(a){a=r(a);var s=e(a)?n(a):void 0,l=s?s[0]:a.charAt(0),u=s?t(s,1).join(""):a.slice(1);return l[i]()+u}}return Lf=o,Lf}var Bf,B0;function jB(){if(B0)return Bf;B0=1;var t=DB(),e=t("toUpperCase");return Bf=e,Bf}var LB=jB();const tI=An(LB);function Zs(t){return function(){return t}}const nI=Math.cos,Fl=Math.sin,zn=Math.sqrt,Gl=Math.PI,Mu=2*Gl,Tm=Math.PI,Nm=2*Tm,yo=1e-6,BB=Nm-yo;function rI(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function FB(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return rI;const n=10**e;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class GB{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?rI:FB(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,o){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(e,n,r,o,i,a){this._append`C${+e},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,r,o,i){if(e=+e,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-e,u=o-n,d=a-e,c=s-n,f=d*d+c*c;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>yo)if(!(Math.abs(c*l-u*d)>yo)||!i)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,m=o-s,g=l*l+u*u,b=p*p+m*m,y=Math.sqrt(g),w=Math.sqrt(f),C=i*Math.tan((Tm-Math.acos((g+f-b)/(2*y*w)))/2),S=C/w,E=C/y;Math.abs(S-1)>yo&&this._append`L${e+S*d},${n+S*c}`,this._append`A${i},${i},0,0,${+(c*p>d*m)},${this._x1=e+E*l},${this._y1=n+E*u}`}}arc(e,n,r,o,i,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=e+s,d=n+l,c=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>yo||Math.abs(this._y1-d)>yo)&&this._append`L${u},${d}`,r&&(f<0&&(f=f%Nm+Nm),f>BB?this._append`A${r},${r},0,1,${c},${e-s},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=d}`:f>yo&&this._append`A${r},${r},0,${+(f>=Tm)},${c},${this._x1=e+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(e,n,r,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function $B(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new GB(e)}const pb={draw(t,e){const n=zn(e/Gl);t.moveTo(n,0),t.arc(0,0,n,0,Mu)}},VB={draw(t,e){const n=zn(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},oI=zn(1/3),WB=oI*2,HB={draw(t,e){const n=zn(e/WB),r=n*oI;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},qB={draw(t,e){const n=zn(e),r=-n/2;t.rect(r,r,n,n)}},zB=.8908130915292852,iI=Fl(Gl/10)/Fl(7*Gl/10),XB=Fl(Mu/10)*iI,YB=-nI(Mu/10)*iI,UB={draw(t,e){const n=zn(e*zB),r=XB*n,o=YB*n;t.moveTo(0,-n),t.lineTo(r,o);for(let i=1;i<5;++i){const a=Mu*i/5,s=nI(a),l=Fl(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*o,l*r+s*o)}t.closePath()}},Ff=zn(3),ZB={draw(t,e){const n=-zn(e/(Ff*3));t.moveTo(0,n*2),t.lineTo(-Ff*n,-n),t.lineTo(Ff*n,-n),t.closePath()}},mn=-.5,gn=zn(3)/2,_m=1/zn(12),JB=(_m/2+1)*3,KB={draw(t,e){const n=zn(e/JB),r=n/2,o=n*_m,i=r,a=n*_m+n,s=-i,l=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(s,l),t.lineTo(mn*r-gn*o,gn*r+mn*o),t.lineTo(mn*i-gn*a,gn*i+mn*a),t.lineTo(mn*s-gn*l,gn*s+mn*l),t.lineTo(mn*r+gn*o,mn*o-gn*r),t.lineTo(mn*i+gn*a,mn*a-gn*i),t.lineTo(mn*s+gn*l,mn*l-gn*s),t.closePath()}};function QB(t,e){let n=null,r=$B(o);t=typeof t=="function"?t:Zs(t||pb),e=typeof e=="function"?e:Zs(e===void 0?64:+e);function o(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(t=typeof i=="function"?i:Zs(i),o):t},o.size=function(i){return arguments.length?(e=typeof i=="function"?i:Zs(+i),o):e},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function ja(t){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(t)}var e5=["type","size","sizeType"];function Om(){return Om=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Om.apply(this,arguments)}function F0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function G0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F0(Object(n),!0).forEach(function(r){t5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function t5(t,e,n){return e=n5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n5(t){var e=r5(t,"string");return ja(e)=="symbol"?e:e+""}function r5(t,e){if(ja(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function o5(t,e){if(t==null)return{};var n=i5(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function i5(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var aI={symbolCircle:pb,symbolCross:VB,symbolDiamond:HB,symbolSquare:qB,symbolStar:UB,symbolTriangle:ZB,symbolWye:KB},a5=Math.PI/180,s5=function(e){var n="symbol".concat(tI(e));return aI[n]||pb},l5=function(e,n,r){if(n==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var o=18*a5;return 1.25*e*e*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},u5=function(e,n){aI["symbol".concat(tI(e))]=n},sI=function(e){var n=e.type,r=n===void 0?"circle":n,o=e.size,i=o===void 0?64:o,a=e.sizeType,s=a===void 0?"area":a,l=o5(e,e5),u=G0(G0({},l),{},{type:r,size:i,sizeType:s}),d=function(){var b=s5(r),y=QB().type(b).size(l5(i,s,r));return y()},c=u.className,f=u.cx,p=u.cy,m=QE(u,!0);return f===+f&&p===+p&&i===+i?I.createElement("path",Om({},m,{className:Dr("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(p,")"),d:d()})):null};sI.registerSymbol=u5;function Ci(t){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(t)}function Rm(){return Rm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rm.apply(this,arguments)}function $0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function c5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$0(Object(n),!0).forEach(function(r){La(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function d5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uI(r.key),r)}}function h5(t,e,n){return e&&f5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function p5(t,e,n){return e=$l(e),m5(t,lI()?Reflect.construct(e,n||[],$l(t).constructor):e.apply(t,n))}function m5(t,e){if(e&&(Ci(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g5(t)}function g5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lI=function(){return!!t})()}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$l(t)}function b5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pm(t,e)}function Pm(t,e){return Pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Pm(t,e)}function La(t,e,n){return e=uI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uI(t){var e=v5(t,"string");return Ci(e)=="symbol"?e:e+""}function v5(t,e){if(Ci(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ci(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bn=32,mb=(function(t){function e(){return d5(this,e),p5(this,e,arguments)}return b5(e,t),h5(e,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=bn/2,a=bn/6,s=bn/3,l=r.inactive?o:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:bn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),I=require("react"),gu=require("react-dom");function hS(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const v=hS(I),bu=hS(gu);function $P(t,e){const n=v.createContext(e),r=i=>{const{children:a,...s}=i,l=v.useMemo(()=>s,Object.values(s));return h.jsx(n.Provider,{value:l,children:a})};r.displayName=t+"Provider";function o(i){const a=v.useContext(n);if(a)return a;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,o]}function At(t,e=[]){let n=[];function r(i,a){const s=v.createContext(a),l=n.length;n=[...n,a];const u=c=>{const{scope:f,children:p,...m}=c,g=f?.[t]?.[l]||s,b=v.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(c,f){const p=f?.[t]?.[l]||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=s?.[t]||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return o.scopeName=t,[r,VP(o,...e)]}function VP(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function Xv(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function dr(...t){return e=>{let n=!1;const r=t.map(o=>{const i=Xv(o,e);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Xv(t[o],null)}}}}function Se(...t){return v.useCallback(dr(...t),t)}function wo(t){const e=WP(t),n=v.forwardRef((r,o)=>{const{children:i,...a}=r,s=v.Children.toArray(i),l=s.find(qP);if(l){const u=l.props.children,d=s.map(c=>c===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:c);return h.jsx(e,{...a,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return h.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}function WP(t){const e=v.forwardRef((n,r)=>{const{children:o,...i}=n;if(v.isValidElement(o)){const a=XP(o),s=zP(i,o.props);return o.type!==v.Fragment&&(s.ref=r?dr(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var pS=Symbol("radix.slottable");function HP(t){const e=({children:n})=>h.jsx(h.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=pS,e}function qP(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pS}function zP(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function XP(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function ns(t){const e=t+"CollectionProvider",[n,r]=At(e),[o,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:y}=g,w=I.useRef(null),C=I.useRef(new Map).current;return h.jsx(o,{scope:b,itemMap:C,collectionRef:w,children:y})};a.displayName=e;const s=t+"CollectionSlot",l=wo(s),u=I.forwardRef((g,b)=>{const{scope:y,children:w}=g,C=i(s,y),S=Se(b,C.collectionRef);return h.jsx(l,{ref:S,children:w})});u.displayName=s;const d=t+"CollectionItemSlot",c="data-radix-collection-item",f=wo(d),p=I.forwardRef((g,b)=>{const{scope:y,children:w,...C}=g,S=I.useRef(null),E=Se(b,S),T=i(d,y);return I.useEffect(()=>(T.itemMap.set(S,{ref:S,...C}),()=>{T.itemMap.delete(S)})),h.jsx(f,{[c]:"",ref:E,children:w})});p.displayName=d;function m(g){const b=i(t+"CollectionConsumer",g);return I.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(b.itemMap.values()).sort((T,A)=>C.indexOf(T.ref.current)-C.indexOf(A.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:u,ItemSlot:p},m,r]}function se(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t?.(o),n===!1||!o.defaultPrevented)return e?.(o)}}var gt=globalThis?.document?v.useLayoutEffect:()=>{},YP=v[" useInsertionEffect ".trim().toString()]||gt;function jt({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[o,i,a]=UP({defaultProp:e,onChange:n}),s=t!==void 0,l=s?t:o;{const d=v.useRef(t!==void 0);v.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. 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.`),d.current=s},[s,r])}const u=v.useCallback(d=>{if(s){const c=ZP(d)?d(t):d;c!==t&&a.current?.(c)}else i(d)},[s,t,i,a]);return[l,u]}function UP({defaultProp:t,onChange:e}){const[n,r]=v.useState(t),o=v.useRef(n),i=v.useRef(e);return YP(()=>{i.current=e},[e]),v.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function ZP(t){return typeof t=="function"}var JP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],he=JP.reduce((t,e)=>{const n=wo(`Primitive.${e}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function mS(t,e){t&&bu.flushSync(()=>t.dispatchEvent(e))}function KP(t,e){return v.useReducer((n,r)=>e[n][r]??n,t)}var pt=t=>{const{present:e,children:n}=t,r=QP(e),o=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),i=Se(r.ref,e2(o));return typeof n=="function"||r.isPresent?v.cloneElement(o,{ref:i}):null};pt.displayName="Presence";function QP(t){const[e,n]=v.useState(),r=v.useRef(null),o=v.useRef(t),i=v.useRef("none"),a=t?"mounted":"unmounted",[s,l]=KP(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=Vs(r.current);i.current=s==="mounted"?u:"none"},[s]),gt(()=>{const u=r.current,d=o.current;if(d!==t){const f=i.current,p=Vs(u);t?l("MOUNT"):p==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,l]),gt(()=>{if(e){let u;const d=e.ownerDocument.defaultView??window,c=p=>{const g=Vs(r.current).includes(CSS.escape(p.animationName));if(p.target===e&&g&&(l("ANIMATION_END"),!o.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",u=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=p=>{p.target===e&&(i.current=Vs(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{d.clearTimeout(u),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Vs(t){return t?.animationName||"none"}function e2(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var t2=v[" useId ".trim().toString()]||(()=>{}),n2=0;function ft(t){const[e,n]=v.useState(t2());return gt(()=>{n(r=>r??String(n2++))},[t]),e?`radix-${e}`:""}var vu="Collapsible",[r2,gS]=At(vu),[o2,jg]=r2(vu),bS=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=t,[l,u]=jt({prop:r,defaultProp:o??!1,onChange:a,caller:vu});return h.jsx(o2,{scope:n,disabled:i,contentId:ft(),open:l,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),children:h.jsx(he.div,{"data-state":Gg(l),"data-disabled":i?"":void 0,...s,ref:e})})});bS.displayName=vu;var vS="CollapsibleTrigger",Lg=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,o=jg(vS,n);return h.jsx(he.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Gg(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:e,onClick:se(t.onClick,o.onOpenToggle)})});Lg.displayName=vS;var Bg="CollapsibleContent",Fg=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=jg(Bg,t.__scopeCollapsible);return h.jsx(pt,{present:n||o.open,children:({present:i})=>h.jsx(i2,{...r,ref:e,present:i})})});Fg.displayName=Bg;var i2=v.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=t,a=jg(Bg,n),[s,l]=v.useState(r),u=v.useRef(null),d=Se(e,u),c=v.useRef(0),f=c.current,p=v.useRef(0),m=p.current,g=a.open||s,b=v.useRef(g),y=v.useRef(void 0);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),gt(()=>{const w=u.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const C=w.getBoundingClientRect();c.current=C.height,p.current=C.width,b.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[a.open,r]),h.jsx(he.div,{"data-state":Gg(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style},children:g&&o})});function Gg(t){return t?"open":"closed"}var yS=bS,a2=Lg,s2=Fg,l2=v.createContext(void 0);function to(t){const e=v.useContext(l2);return t||e||"ltr"}var Hn="Accordion",u2=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[$g,c2,d2]=ns(Hn),[yu]=At(Hn,[d2,gS]),Vg=gS(),xS=I.forwardRef((t,e)=>{const{type:n,...r}=t,o=r,i=r;return h.jsx($g.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?h.jsx(m2,{...i,ref:e}):h.jsx(p2,{...o,ref:e})})});xS.displayName=Hn;var[wS,f2]=yu(Hn),[CS,h2]=yu(Hn,{collapsible:!1}),p2=I.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=t,[s,l]=jt({prop:n,defaultProp:r??"",onChange:o,caller:Hn});return h.jsx(wS,{scope:t.__scopeAccordion,value:I.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:I.useCallback(()=>i&&l(""),[i,l]),children:h.jsx(CS,{scope:t.__scopeAccordion,collapsible:i,children:h.jsx(SS,{...a,ref:e})})})}),m2=I.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=t,[a,s]=jt({prop:n,defaultProp:r??[],onChange:o,caller:Hn}),l=I.useCallback(d=>s((c=[])=>[...c,d]),[s]),u=I.useCallback(d=>s((c=[])=>c.filter(f=>f!==d)),[s]);return h.jsx(wS,{scope:t.__scopeAccordion,value:a,onItemOpen:l,onItemClose:u,children:h.jsx(CS,{scope:t.__scopeAccordion,collapsible:!0,children:h.jsx(SS,{...i,ref:e})})})}),[g2,xu]=yu(Hn),SS=I.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=t,s=I.useRef(null),l=Se(s,e),u=c2(n),c=to(o)==="ltr",f=se(t.onKeyDown,p=>{if(!u2.includes(p.key))return;const m=p.target,g=u().filter(O=>!O.ref.current?.disabled),b=g.findIndex(O=>O.ref.current===m),y=g.length;if(b===-1)return;p.preventDefault();let w=b;const C=0,S=y-1,E=()=>{w=b+1,w>S&&(w=C)},T=()=>{w=b-1,w<C&&(w=S)};switch(p.key){case"Home":w=C;break;case"End":w=S;break;case"ArrowRight":i==="horizontal"&&(c?E():T());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(c?T():E());break;case"ArrowUp":i==="vertical"&&T();break}const A=w%y;g[A].ref.current?.focus()});return h.jsx(g2,{scope:n,disabled:r,direction:o,orientation:i,children:h.jsx($g.Slot,{scope:n,children:h.jsx(he.div,{...a,"data-orientation":i,ref:l,onKeyDown:r?void 0:f})})})}),Pl="AccordionItem",[b2,Wg]=yu(Pl),ES=I.forwardRef((t,e)=>{const{__scopeAccordion:n,value:r,...o}=t,i=xu(Pl,n),a=f2(Pl,n),s=Vg(n),l=ft(),u=r&&a.value.includes(r)||!1,d=i.disabled||t.disabled;return h.jsx(b2,{scope:n,open:u,disabled:d,triggerId:l,children:h.jsx(yS,{"data-orientation":i.orientation,"data-state":OS(u),...s,...o,ref:e,disabled:d,open:u,onOpenChange:c=>{c?a.onItemOpen(r):a.onItemClose(r)}})})});ES.displayName=Pl;var IS="AccordionHeader",AS=I.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=xu(Hn,n),i=Wg(IS,n);return h.jsx(he.h3,{"data-orientation":o.orientation,"data-state":OS(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:e})});AS.displayName=IS;var xm="AccordionTrigger",TS=I.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=xu(Hn,n),i=Wg(xm,n),a=h2(xm,n),s=Vg(n);return h.jsx($g.ItemSlot,{scope:n,children:h.jsx(a2,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:e})})});TS.displayName=xm;var NS="AccordionContent",_S=I.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,o=xu(Hn,n),i=Wg(NS,n),a=Vg(n);return h.jsx(s2,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});_S.displayName=NS;function OS(t){return t?"open":"closed"}var v2=xS,y2=ES,x2=AS,w2=TS,C2=_S;const S2=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E2=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),Yv=t=>{const e=E2(t);return e.charAt(0).toUpperCase()+e.slice(1)},RS=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),I2=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var A2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const T2=I.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>I.createElement("svg",{ref:l,...A2,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:RS("lucide",o),...!i&&!I2(s)&&{"aria-hidden":"true"},...s},[...a.map(([u,d])=>I.createElement(u,d)),...Array.isArray(i)?i:[i]]));const ot=(t,e)=>{const n=I.forwardRef(({className:r,...o},i)=>I.createElement(T2,{ref:i,iconNode:e,className:RS(`lucide-${S2(Yv(t))}`,`lucide-${t}`,r),...o}));return n.displayName=Yv(t),n};const N2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],_2=ot("arrow-left",N2);const O2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],R2=ot("arrow-right",O2);const P2=[["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"}]],PS=ot("calendar",P2);const M2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Oa=ot("check",M2);const k2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mi=ot("chevron-down",k2);const D2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],MS=ot("chevron-left",D2);const j2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wu=ot("chevron-right",j2);const L2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],kS=ot("chevron-up",L2);const B2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],F2=ot("chevrons-up-down",B2);const G2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$2=ot("circle-check",G2);const V2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],W2=ot("circle-plus",V2);const H2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],q2=ot("circle-x",H2);const z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],DS=ot("circle",z2);const X2=[["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"}]],jS=ot("ellipsis",X2);const Y2=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],U2=ot("eye-off",Y2);const Z2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],J2=ot("eye",Z2);const K2=[["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"}]],Q2=ot("file-text",K2);const eM=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ki=ot("info",eM);const tM=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Cu=ot("loader-circle",tM);const nM=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],rM=ot("octagon-x",nM);const oM=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],iM=ot("panel-left",oM);const aM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],sM=ot("search",aM);const lM=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],uM=ot("triangle-alert",lM);const cM=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],dM=ot("upload",cM);const fM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Su=ot("x",fM);function LS(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=LS(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Dr(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=LS(t))&&(r&&(r+=" "),r+=e);return r}const hM=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},pM=(t,e)=>({classGroupId:t,validator:e}),BS=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Ml="-",Uv=[],mM="arbitrary..",gM=t=>{const e=vM(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return bM(a);const s=a.split(Ml),l=s[0]===""&&s.length>1?1:0;return FS(s,l,e)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],u=n[a];return l?u?hM(u,l):l:u||Uv}return n[a]||Uv}}},FS=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],i=n.nextPart.get(o);if(i){const u=FS(t,e+1,i);if(u)return u}const a=n.validators;if(a===null)return;const s=e===0?t.join(Ml):t.slice(e).join(Ml),l=a.length;for(let u=0;u<l;u++){const d=a[u];if(d.validator(s))return d.classGroupId}},bM=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?mM+r:void 0})(),vM=t=>{const{theme:e,classGroups:n}=t;return yM(n,e)},yM=(t,e)=>{const n=BS();for(const r in t){const o=t[r];Hg(o,n,r,e)}return n},Hg=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const a=t[i];xM(a,e,n,r)}},xM=(t,e,n,r)=>{if(typeof t=="string"){wM(t,e,n);return}if(typeof t=="function"){CM(t,e,n,r);return}SM(t,e,n,r)},wM=(t,e,n)=>{const r=t===""?e:GS(e,t);r.classGroupId=n},CM=(t,e,n,r)=>{if(EM(t)){Hg(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(pM(n,t))},SM=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];Hg(l,GS(e,s),n,r)}},GS=(t,e)=>{let n=t;const r=e.split(Ml),o=r.length;for(let i=0;i<o;i++){const a=r[i];let s=n.nextPart.get(a);s||(s=BS(),n.nextPart.set(a,s)),n=s}return n},EM=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,IM=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},wm="!",Zv=":",AM=[],Jv=(t,e,n,r,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),TM=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=o=>{const i=[];let a=0,s=0,l=0,u;const d=o.length;for(let g=0;g<d;g++){const b=o[g];if(a===0&&s===0){if(b===Zv){i.push(o.slice(l,g)),l=g+1;continue}if(b==="/"){u=g;continue}}b==="["?a++:b==="]"?a--:b==="("?s++:b===")"&&s--}const c=i.length===0?o:o.slice(l);let f=c,p=!1;c.endsWith(wm)?(f=c.slice(0,-1),p=!0):c.startsWith(wm)&&(f=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return Jv(i,p,f,m)};if(e){const o=e+Zv,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):Jv(AM,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},NM=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],s=a[0]==="[",l=e.has(a);s||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},_M=t=>({cache:IM(t.cacheSize),parseClassName:TM(t),sortModifiers:NM(t),...gM(t)}),OM=/\s+/,RM=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=e,a=[],s=t.trim().split(OM);let l="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:c,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(d);if(c){l=d+(l.length>0?" "+l:l);continue}let b=!!g,y=r(b?m.substring(0,g):m);if(!y){if(!b){l=d+(l.length>0?" "+l:l);continue}if(y=r(m),!y){l=d+(l.length>0?" "+l:l);continue}b=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),C=p?w+wm:w,S=C+y;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(y,b);for(let T=0;T<E.length;++T){const A=E[T];a.push(C+A)}l=d+(l.length>0?" "+l:l)}return l},PM=(...t)=>{let e=0,n,r,o="";for(;e<t.length;)(n=t[e++])&&(r=$S(n))&&(o&&(o+=" "),o+=r);return o},$S=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=$S(t[r]))&&(n&&(n+=" "),n+=e);return n},Kv=(t,...e)=>{let n,r,o,i;const a=l=>{const u=e.reduce((d,c)=>c(d),t());return n=_M(u),r=n.cache.get,o=n.cache.set,i=s,s(l)},s=l=>{const u=r(l);if(u)return u;const d=RM(l,n);return o(l,d),d};return i=a,(...l)=>i(PM(...l))},MM=[],St=t=>{const e=n=>n[t]||MM;return e.isThemeGetter=!0,e},VS=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,WS=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kM=/^\d+\/\d+$/,DM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,LM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qo=t=>kM.test(t),Pe=t=>!!t&&!Number.isNaN(Number(t)),Wr=t=>!!t&&Number.isInteger(Number(t)),vd=t=>t.endsWith("%")&&Pe(t.slice(0,-1)),_r=t=>DM.test(t),GM=()=>!0,$M=t=>jM.test(t)&&!LM.test(t),HS=()=>!1,VM=t=>BM.test(t),WM=t=>FM.test(t),HM=t=>!pe(t)&&!me(t),qM=t=>Di(t,XS,HS),pe=t=>VS.test(t),mo=t=>Di(t,YS,$M),yd=t=>Di(t,ZM,Pe),Qv=t=>Di(t,qS,HS),zM=t=>Di(t,zS,WM),Ws=t=>Di(t,US,VM),me=t=>WS.test(t),na=t=>ji(t,YS),XM=t=>ji(t,JM),ey=t=>ji(t,qS),YM=t=>ji(t,XS),UM=t=>ji(t,zS),Hs=t=>ji(t,US,!0),Di=(t,e,n)=>{const r=VS.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},ji=(t,e,n=!1)=>{const r=WS.exec(t);return r?r[1]?e(r[1]):n:!1},qS=t=>t==="position"||t==="percentage",zS=t=>t==="image"||t==="url",XS=t=>t==="length"||t==="size"||t==="bg-size",YS=t=>t==="length",ZM=t=>t==="number",JM=t=>t==="family-name",US=t=>t==="shadow",ty=()=>{const t=St("color"),e=St("font"),n=St("text"),r=St("font-weight"),o=St("tracking"),i=St("leading"),a=St("breakpoint"),s=St("container"),l=St("spacing"),u=St("radius"),d=St("shadow"),c=St("inset-shadow"),f=St("text-shadow"),p=St("drop-shadow"),m=St("blur"),g=St("perspective"),b=St("aspect"),y=St("ease"),w=St("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...S(),me,pe],T=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],O=()=>[me,pe,l],M=()=>[Qo,"full","auto",...O()],V=()=>[Wr,"none","subgrid",me,pe],N=()=>["auto",{span:["full",Wr,me,pe]},Wr,me,pe],k=()=>[Wr,"auto",me,pe],_=()=>["auto","min","max","fr",me,pe],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...O()],G=()=>[Qo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],j=()=>[t,me,pe],H=()=>[...S(),ey,Qv,{position:[me,pe]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",YM,qM,{size:[me,pe]}],$=()=>[vd,na,mo],q=()=>["","none","full",u,me,pe],Z=()=>["",Pe,na,mo],X=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>[Pe,vd,ey,Qv],J=()=>["","none",m,me,pe],ie=()=>["none",Pe,me,pe],oe=()=>["none",Pe,me,pe],re=()=>[Pe,me,pe],z=()=>[Qo,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_r],breakpoint:[_r],color:[GM],container:[_r],"drop-shadow":[_r],ease:["in","out","in-out"],font:[HM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_r],shadow:[_r],spacing:["px",Pe],text:[_r],"text-shadow":[_r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qo,pe,me,b]}],container:["container"],columns:[{columns:[Pe,pe,me,s]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Wr,"auto",me,pe]}],basis:[{basis:[Qo,"full","auto",s,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Qo,"auto","initial","none",pe]}],grow:[{grow:["",Pe,me,pe]}],shrink:[{shrink:["",Pe,me,pe]}],order:[{order:[Wr,"first","last","none",me,pe]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":_()}],"auto-rows":[{"auto-rows":_()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[s,"screen",...G()]}],"min-w":[{"min-w":[s,"screen","none",...G()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,na,mo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,me,yd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vd,pe]}],"font-family":[{font:[XM,pe,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,pe]}],"line-clamp":[{"line-clamp":[Pe,"none",me,yd]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",me,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",me,mo]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Pe,"auto",me,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wr,me,pe],radial:["",me,pe],conic:[Wr,me,pe]},UM,zM]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,me,pe]}],"outline-w":[{outline:["",Pe,na,mo]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",d,Hs,Ws]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",c,Hs,Ws]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Pe,mo]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,Hs,Ws]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Pe,me,pe]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":Y()}],"mask-image-linear-to-pos":[{"mask-linear-to":Y()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Y()}],"mask-image-t-to-pos":[{"mask-t-to":Y()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Y()}],"mask-image-r-to-pos":[{"mask-r-to":Y()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Y()}],"mask-image-b-to-pos":[{"mask-b-to":Y()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Y()}],"mask-image-l-to-pos":[{"mask-l-to":Y()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Y()}],"mask-image-x-to-pos":[{"mask-x-to":Y()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Y()}],"mask-image-y-to-pos":[{"mask-y-to":Y()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[me,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":Y()}],"mask-image-radial-to-pos":[{"mask-radial-to":Y()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":Y()}],"mask-image-conic-to-pos":[{"mask-conic-to":Y()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,pe]}],filter:[{filter:["","none",me,pe]}],blur:[{blur:J()}],brightness:[{brightness:[Pe,me,pe]}],contrast:[{contrast:[Pe,me,pe]}],"drop-shadow":[{"drop-shadow":["","none",p,Hs,Ws]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Pe,me,pe]}],"hue-rotate":[{"hue-rotate":[Pe,me,pe]}],invert:[{invert:["",Pe,me,pe]}],saturate:[{saturate:[Pe,me,pe]}],sepia:[{sepia:["",Pe,me,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,pe]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,me,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,me,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,me,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,me,pe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,me,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,me,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,me,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,me,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",me,pe]}],ease:[{ease:["linear","initial",y,me,pe]}],delay:[{delay:[Pe,me,pe]}],animate:[{animate:["none",w,me,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,me,pe]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[me,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,pe]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Pe,na,mo,yd]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},KM=(t,{cacheSize:e,prefix:n,experimentalParseClassName:r,extend:o={},override:i={}})=>(pa(t,"cacheSize",e),pa(t,"prefix",n),pa(t,"experimentalParseClassName",r),qs(t.theme,i.theme),qs(t.classGroups,i.classGroups),qs(t.conflictingClassGroups,i.conflictingClassGroups),qs(t.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),pa(t,"orderSensitiveModifiers",i.orderSensitiveModifiers),zs(t.theme,o.theme),zs(t.classGroups,o.classGroups),zs(t.conflictingClassGroups,o.conflictingClassGroups),zs(t.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ZS(t,o,"orderSensitiveModifiers"),t),pa=(t,e,n)=>{n!==void 0&&(t[e]=n)},qs=(t,e)=>{if(e)for(const n in e)pa(t,n,e[n])},zs=(t,e)=>{if(e)for(const n in e)ZS(t,e,n)},ZS=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},QM=(t,...e)=>typeof t=="function"?Kv(ty,t,...e):Kv(()=>KM(ty(),t),...e),JS=6048e5,ek=864e5,ny=Symbol.for("constructDateFrom");function wt(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&ny in t?t[ny](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ke(t,e){return wt(e||t,t)}function KS(t,e,n){const r=Ke(t,n?.in);return isNaN(e)?wt(t,NaN):(e&&r.setDate(r.getDate()+e),r)}function QS(t,e,n){const r=Ke(t,n?.in);if(isNaN(e))return wt(t,NaN);if(!e)return r;const o=r.getDate(),i=wt(t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let tk={};function rs(){return tk}function wi(t,e){const n=rs(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Ke(t,e?.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Ra(t,e){return wi(t,{...e,weekStartsOn:1})}function eE(t,e){const n=Ke(t,e?.in),r=n.getFullYear(),o=wt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=Ra(o),a=wt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Ra(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function ry(t){const e=Ke(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Li(t,...e){const n=wt.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function Pa(t,e){const n=Ke(t,e?.in);return n.setHours(0,0,0,0),n}function qg(t,e,n){const[r,o]=Li(n?.in,t,e),i=Pa(r),a=Pa(o),s=+i-ry(i),l=+a-ry(a);return Math.round((s-l)/ek)}function nk(t,e){const n=eE(t,e),r=wt(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ra(r)}function rk(t,e,n){return KS(t,e*7,n)}function ok(t,e,n){return QS(t,e*12,n)}function ik(t,e){let n,r=e?.in;return t.forEach(o=>{!r&&typeof o=="object"&&(r=wt.bind(null,o));const i=Ke(o,r);(!n||n<i||isNaN(+i))&&(n=i)}),wt(r,n||NaN)}function ak(t,e){let n,r=e?.in;return t.forEach(o=>{!r&&typeof o=="object"&&(r=wt.bind(null,o));const i=Ke(o,r);(!n||n>i||isNaN(+i))&&(n=i)}),wt(r,n||NaN)}function sk(t,e,n){const[r,o]=Li(n?.in,t,e);return+Pa(r)==+Pa(o)}function tE(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function nE(t){return!(!tE(t)&&typeof t!="number"||isNaN(+Ke(t)))}function rE(t,e,n){const[r,o]=Li(n?.in,t,e),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function lk(t,e){const n=Ke(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function oE(t,e){const[n,r]=Li(t,e.start,e.end);return{start:n,end:r}}function uk(t,e){const{start:n,end:r}=oE(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=1;const l=[];for(;+a<=i;)l.push(wt(n,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}function ck(t,e){const n=Ke(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function dk(t,e){const n=Ke(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function iE(t,e){const n=Ke(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function fk(t,e){const{start:n,end:r}=oE(e?.in,t);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let s=1;const l=[];for(;+a<=i;)l.push(wt(n,a)),a.setFullYear(a.getFullYear()+s);return o?l.reverse():l}function aE(t,e){const n=rs(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Ke(t,e?.in),i=o.getDay(),a=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function hk(t,e){return aE(t,{...e,weekStartsOn:1})}const pk={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"}},mk=(t,e,n)=>{let r;const o=pk[t];return typeof o=="string"?r=o:e===1?r=o.one:r=o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function xd(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const gk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},vk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yk={date:xd({formats:gk,defaultWidth:"full"}),time:xd({formats:bk,defaultWidth:"full"}),dateTime:xd({formats:vk,defaultWidth:"full"})},xk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wk=(t,e,n,r)=>xk[t];function ra(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,s=n?.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{const a=t.defaultWidth,s=n?.width?String(n.width):t.defaultWidth;o=t.values[s]||t.values[a]}const i=t.argumentCallback?t.argumentCallback(e):e;return o[i]}}const Ck={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ek={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"]},Ik={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"]},Ak={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"}},Tk={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"}},Nk=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_k={ordinalNumber:Nk,era:ra({values:Ck,defaultWidth:"wide"}),quarter:ra({values:Sk,defaultWidth:"wide",argumentCallback:t=>t-1}),month:ra({values:Ek,defaultWidth:"wide"}),day:ra({values:Ik,defaultWidth:"wide"}),dayPeriod:ra({values:Ak,defaultWidth:"wide",formattingValues:Tk,defaultFormattingWidth:"wide"})};function oa(t){return(e,n={})=>{const r=n.width,o=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(o);if(!i)return null;const a=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?Rk(s,c=>c.test(a)):Ok(s,c=>c.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const d=e.slice(a.length);return{value:u,rest:d}}}function Ok(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Rk(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Pk(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const o=r[0],i=e.match(t.parsePattern);if(!i)return null;let a=t.valueCallback?t.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=e.slice(o.length);return{value:a,rest:s}}}const Mk=/^(\d+)(th|st|nd|rd)?/i,kk=/\d+/i,Dk={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},jk={any:[/^b/i,/^(a|c)/i]},Lk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bk={any:[/1/i,/2/i,/3/i,/4/i]},Fk={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},Gk={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]},$k={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},Vk={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]},Wk={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},Hk={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}},qk={ordinalNumber:Pk({matchPattern:Mk,parsePattern:kk,valueCallback:t=>parseInt(t,10)}),era:oa({matchPatterns:Dk,defaultMatchWidth:"wide",parsePatterns:jk,defaultParseWidth:"any"}),quarter:oa({matchPatterns:Lk,defaultMatchWidth:"wide",parsePatterns:Bk,defaultParseWidth:"any",valueCallback:t=>t+1}),month:oa({matchPatterns:Fk,defaultMatchWidth:"wide",parsePatterns:Gk,defaultParseWidth:"any"}),day:oa({matchPatterns:$k,defaultMatchWidth:"wide",parsePatterns:Vk,defaultParseWidth:"any"}),dayPeriod:oa({matchPatterns:Wk,defaultMatchWidth:"any",parsePatterns:Hk,defaultParseWidth:"any"})},ai={code:"en-US",formatDistance:mk,formatLong:yk,formatRelative:wk,localize:_k,match:qk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function zk(t,e){const n=Ke(t,e?.in);return qg(n,iE(n))+1}function zg(t,e){const n=Ke(t,e?.in),r=+Ra(n)-+nk(n);return Math.round(r/JS)+1}function sE(t,e){const n=Ke(t,e?.in),r=n.getFullYear(),o=rs(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=wt(e?.in||t,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=wi(a,e),l=wt(e?.in||t,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const u=wi(l,e);return+n>=+s?r+1:+n>=+u?r:r-1}function Xk(t,e){const n=rs(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=sE(t,e),i=wt(e?.in||t,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),wi(i,e)}function Xg(t,e){const n=Ke(t,e?.in),r=+wi(n,e)-+Xk(n,e);return Math.round(r/JS)+1}function Je(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Hr={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return Je(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):Je(n+1,2)},d(t,e){return Je(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return Je(t.getHours()%12||12,e.length)},H(t,e){return Je(t.getHours(),e.length)},m(t,e){return Je(t.getMinutes(),e.length)},s(t,e){return Je(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Je(o,e.length)}},ei={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oy={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Hr.y(t,e)},Y:function(t,e,n,r){const o=sE(t,r),i=o>0?o:1-o;if(e==="YY"){const a=i%100;return Je(a,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):Je(i,e.length)},R:function(t,e){const n=eE(t);return Je(n,e.length)},u:function(t,e){const n=t.getFullYear();return Je(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Je(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Je(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Hr.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return Je(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const o=Xg(t,r);return e==="wo"?n.ordinalNumber(o,{unit:"week"}):Je(o,e.length)},I:function(t,e,n){const r=zg(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):Je(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Hr.d(t,e)},D:function(t,e,n){const r=zk(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Je(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":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"})}},e:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return Je(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});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"})}},c:function(t,e,n,r){const o=t.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return Je(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),o=r===0?7:r;switch(e){case"i":return String(o);case"ii":return Je(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const o=t.getHours()/12>=1?"pm":"am";switch(e){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(t,e,n){const r=t.getHours();let o;switch(r===12?o=ei.noon:r===0?o=ei.midnight:o=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let o;switch(r>=17?o=ei.evening:r>=12?o=ei.afternoon:r>=4?o=ei.morning:o=ei.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Hr.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Hr.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):Je(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Hr.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Hr.s(t,e)},S:function(t,e){return Hr.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return ay(r);case"XXXX":case"XX":return vo(r);default:return vo(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return ay(r);case"xxxx":case"xx":return vo(r);default:return vo(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+iy(r,":");default:return"GMT"+vo(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+iy(r,":");default:return"GMT"+vo(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return Je(r,e.length)},T:function(t,e,n){return Je(+t,e.length)}};function iy(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+e+Je(i,2)}function ay(t,e){return t%60===0?(t>0?"-":"+")+Je(Math.abs(t)/60,2):vo(t,e)}function vo(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),o=Je(Math.trunc(r/60),2),i=Je(r%60,2);return n+o+e+i}const sy=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},lE=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Yk=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return sy(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",sy(r,e)).replace("{{time}}",lE(o,e))},Uk={p:lE,P:Yk},Zk=/^D+$/,Jk=/^Y+$/,Kk=["D","DD","YY","YYYY"];function Qk(t){return Zk.test(t)}function eD(t){return Jk.test(t)}function tD(t,e,n){const r=nD(t,e,n);if(console.warn(r),Kk.includes(t))throw new RangeError(r)}function nD(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const rD=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,oD=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,iD=/^'([^]*?)'?$/,aD=/''/g,sD=/[a-zA-Z]/;function Ln(t,e,n){const r=rs(),o=n?.locale??r.locale??ai,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Ke(t,n?.in);if(!nE(s))throw new RangeError("Invalid time value");let l=e.match(oD).map(d=>{const c=d[0];if(c==="p"||c==="P"){const f=Uk[c];return f(d,o.formatLong)}return d}).join("").match(rD).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const c=d[0];if(c==="'")return{isToken:!1,value:lD(d)};if(oy[c])return{isToken:!0,value:d};if(c.match(sD))throw new RangeError("Format string contains an unescaped latin alphabet character `"+c+"`");return{isToken:!1,value:d}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(d=>{if(!d.isToken)return d.value;const c=d.value;(!n?.useAdditionalWeekYearTokens&&eD(c)||!n?.useAdditionalDayOfYearTokens&&Qk(c))&&tD(c,e,String(t));const f=oy[c[0]];return f(s,c,o.localize,u)}).join("")}function lD(t){const e=t.match(iD);return e?e[1].replace(aD,"'"):t}function uD(t,e){const n=Ke(t,e?.in),r=n.getFullYear(),o=n.getMonth(),i=wt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function cD(t,e){return Ke(t,e?.in).getMonth()}function dD(t,e){return Ke(t,e?.in).getFullYear()}function fD(t,e){return+Ke(t)>+Ke(e)}function hD(t,e){return+Ke(t)<+Ke(e)}function pD(t,e,n){const[r,o]=Li(n?.in,t,e);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function mD(t,e,n){const[r,o]=Li(n?.in,t,e);return r.getFullYear()===o.getFullYear()}function gD(t,e,n){const r=Ke(t,n?.in),o=r.getFullYear(),i=r.getDate(),a=wt(t,0);a.setFullYear(o,e,15),a.setHours(0,0,0,0);const s=uD(a);return r.setMonth(e,Math.min(i,s)),r}function bD(t,e,n){const r=Ke(t,n?.in);return isNaN(+r)?wt(t,NaN):(r.setFullYear(e),r)}const vD=QM({prefix:"ui"});function D(...t){return vD(Dr(t))}const yD=(t,e="yyyy-MM-dd")=>nE(t)?Ln(t,e):Ln(new Date,e);function xD({...t}){return h.jsx(v2,{"data-slot":"accordion",...t})}function wD({className:t,...e}){return h.jsx(y2,{"data-slot":"accordion-item",className:D("ui:border-b ui:last:border-b-0",t),...e})}function CD({className:t,children:e,...n}){return h.jsx(x2,{className:"ui:flex",children:h.jsxs(w2,{"data-slot":"accordion-trigger",className:D("ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:flex ui:flex-1 ui:items-start ui:justify-between ui:gap-4 ui:rounded-md ui:py-4 ui:text-left ui:text-sm ui:font-medium ui:transition-all ui:outline-none ui:hover:underline ui:focus-visible:ring-[3px] ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:[&[data-state=open]>svg]:rotate-180",t),...n,children:[e,h.jsx(Mi,{className:"ui:text-muted-foreground ui:pointer-events-none ui:size-4 ui:shrink-0 ui:translate-y-0.5 ui:transition-transform ui:duration-200"})]})})}function SD({className:t,children:e,...n}){return h.jsx(C2,{"data-slot":"accordion-content",className:"ui:data-[state=closed]:animate-accordion-up ui:data-[state=open]:animate-accordion-down ui:overflow-hidden ui:text-sm",...n,children:h.jsx("div",{className:D("ui:pt-0 ui:pb-4",t),children:e})})}var ED=Symbol.for("react.lazy"),kl=v[" use ".trim().toString()];function ID(t){return typeof t=="object"&&t!==null&&"then"in t}function uE(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===ED&&"_payload"in t&&ID(t._payload)}function cE(t){const e=AD(t),n=v.forwardRef((r,o)=>{let{children:i,...a}=r;uE(i)&&typeof kl=="function"&&(i=kl(i._payload));const s=v.Children.toArray(i),l=s.find(ND);if(l){const u=l.props.children,d=s.map(c=>c===l?v.Children.count(u)>1?v.Children.only(null):v.isValidElement(u)?u.props.children:null:c);return h.jsx(e,{...a,ref:o,children:v.isValidElement(u)?v.cloneElement(u,void 0,d):null})}return h.jsx(e,{...a,ref:o,children:i})});return n.displayName=`${t}.Slot`,n}var gr=cE("Slot");function AD(t){const e=v.forwardRef((n,r)=>{let{children:o,...i}=n;if(uE(o)&&typeof kl=="function"&&(o=kl(o._payload)),v.isValidElement(o)){const a=OD(o),s=_D(i,o.props);return o.type!==v.Fragment&&(s.ref=r?dr(r,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var TD=Symbol("radix.slottable");function ND(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===TD}function _D(t,e){const n={...e};for(const r in e){const o=t[r],i=e[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...t,...n}}function OD(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var RD=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],nn=RD.reduce((t,e)=>{const n=cE(`Primitive.${e}`),r=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),PD="AspectRatio",dE=v.forwardRef((t,e)=>{const{ratio:n=1/1,style:r,...o}=t;return h.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:h.jsx(nn.div,{...o,ref:e,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});dE.displayName=PD;var MD=dE;function kD({...t}){return h.jsx(MD,{"data-slot":"aspect-ratio",...t})}function DD(t,e=[]){let n=[];function r(i,a){const s=v.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const u=c=>{const{scope:f,children:p,...m}=c,g=f?.[t]?.[l]||s,b=v.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:b,children:p})};u.displayName=i+"Provider";function d(c,f){const p=f?.[t]?.[l]||s,m=v.useContext(p);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(a=>v.createContext(a));return function(s){const l=s?.[t]||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:l}}),[s,l])}};return o.scopeName=t,[r,jD(o,...e)]}function jD(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function It(t){const e=v.useRef(t);return v.useEffect(()=>{e.current=t}),v.useMemo(()=>(...n)=>e.current?.(...n),[])}var Cn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function An(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xs={exports:{}},wd={};var ly;function LD(){if(ly)return wd;ly=1;var t=I;function e(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,o=t.useEffect,i=t.useLayoutEffect,a=t.useDebugValue;function s(c,f){var p=f(),m=r({inst:{value:p,getSnapshot:f}}),g=m[0].inst,b=m[1];return i(function(){g.value=p,g.getSnapshot=f,l(g)&&b({inst:g})},[c,p,f]),o(function(){return l(g)&&b({inst:g}),c(function(){l(g)&&b({inst:g})})},[c]),a(p),p}function l(c){var f=c.getSnapshot;c=c.value;try{var p=f();return!n(c,p)}catch{return!0}}function u(c,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return wd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,wd}var Cd={};var uy;function BD(){return uy||(uy=1,process.env.NODE_ENV!=="production"&&(function(){function t(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function e(p,m){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=m();if(!c){var b=m();i(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}b=a({inst:{value:g,getSnapshot:m}});var y=b[0].inst,w=b[1];return l(function(){y.value=g,y.getSnapshot=m,n(y)&&w({inst:y})},[p,g,m]),s(function(){return n(y)&&w({inst:y}),p(function(){n(y)&&w({inst:y})})},[p]),u(g),g}function n(p){var m=p.getSnapshot;p=p.value;try{var g=m();return!i(p,g)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=I,i=typeof Object.is=="function"?Object.is:t,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,u=o.useDebugValue,d=!1,c=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;Cd.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cd}var cy;function FD(){return cy||(cy=1,process.env.NODE_ENV==="production"?Xs.exports=LD():Xs.exports=BD()),Xs.exports}var GD=FD();function $D(){return GD.useSyncExternalStore(VD,()=>!0,()=>!1)}function VD(){return()=>{}}var Yg="Avatar",[WD]=DD(Yg),[HD,fE]=WD(Yg),hE=v.forwardRef((t,e)=>{const{__scopeAvatar:n,...r}=t,[o,i]=v.useState("idle");return h.jsx(HD,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:h.jsx(nn.span,{...r,ref:e})})});hE.displayName=Yg;var pE="AvatarImage",mE=v.forwardRef((t,e)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=t,a=fE(pE,n),s=qD(r,i),l=It(u=>{o(u),a.onImageLoadingStatusChange(u)});return gt(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?h.jsx(nn.img,{...i,ref:e,src:r}):null});mE.displayName=pE;var gE="AvatarFallback",bE=v.forwardRef((t,e)=>{const{__scopeAvatar:n,delayMs:r,...o}=t,i=fE(gE,n),[a,s]=v.useState(r===void 0);return v.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&i.imageLoadingStatus!=="loaded"?h.jsx(nn.span,{...o,ref:e}):null});bE.displayName=gE;function dy(t,e){return t?e?(t.src!==e&&(t.src=e),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function qD(t,{referrerPolicy:e,crossOrigin:n}){const r=$D(),o=v.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[a,s]=v.useState(()=>dy(i,t));return gt(()=>{s(dy(i,t))},[i,t]),gt(()=>{const l=c=>()=>{s(c)};if(!i)return;const u=l("loaded"),d=l("error");return i.addEventListener("load",u),i.addEventListener("error",d),e&&(i.referrerPolicy=e),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",u),i.removeEventListener("error",d)}},[i,n,e]),a}var zD=hE,XD=mE,YD=bE;function UD({className:t,...e}){return h.jsx(zD,{"data-slot":"avatar",className:D("ui:relative ui:flex ui:size-8 ui:shrink-0 ui:overflow-hidden ui:rounded-full",t),...e})}function ZD({className:t,...e}){return h.jsx(XD,{"data-slot":"avatar-image",className:D("ui:aspect-square ui:size-full",t),...e})}function JD({className:t,...e}){return h.jsx(YD,{"data-slot":"avatar-fallback",className:D("ui:bg-muted ui:flex ui:size-full ui:items-center ui:justify-center ui:rounded-full",t),...e})}const fy=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,hy=Dr,Bi=(t,e)=>n=>{var r;if(e?.variants==null)return hy(t,n?.class,n?.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(u=>{const d=n?.[u],c=i?.[u];if(d===null)return null;const f=fy(d)||fy(c);return o[u][f]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...p}=d;return Object.entries(p).every(m=>{let[g,b]=m;return Array.isArray(b)?b.includes({...i,...s}[g]):{...i,...s}[g]===b})?[...u,c,f]:u},[]);return hy(t,a,l,n?.class,n?.className)},Dl=Bi("ui:inline-flex ui:items-center ui:justify-center ui:gap-2 ui:whitespace-nowrap ui:rounded-md ui:text-sm ui:font-medium ui:transition-all ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg:not([class*='size-'])]:size-4 ui:shrink-0 ui:[&_svg]:shrink-0 ui:outline-none ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px] ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:disabled:cursor-not-allowed",{variants:{variant:{primary:"ui:bg-primary ui:text-white ui:hover:bg-primary/80 ui:hover:text-white ui:disabled:opacity-70 ui:disabled:bg-gray-400 ui:disabled:text-white",secondary:"ui:bg-secondary ui:text-secondary-foreground ui:hover:bg-gray-200 ui:focus-visible:ring-gray-300",tertiary:"ui:bg-kashmir-blue-500 ui:text-white ui:hover:bg-kashmir-blue-600 ui:hover:text-white ui:focus-visible:ring-kashmir-blue-200",success:"ui:bg-green-400 ui:text-white ui:focus-visible:ring-green-200 ui:hover:bg-green-400/80 ui:hover:text-white ui:disabled:opacity-70 ui:disabled:bg-gray-400 ui:disabled:text-white",destructive:"ui:bg-destructive ui:text-destructive-foreground ui:hover:bg-destructive/90",outline:"ui:border ui:border-input ui:border-solid ui:bg-background ui:hover:bg-accent ui:hover:text-accent-foreground ui:focus-visible:ring-gray-600 ui:focus-visible:border-gray-200",ghost:"ui:bg-transparent ui:text-segmentify-600 ui:hover:bg-segmentify-200 ui:hover:text-primary",link:"ui:text-segmentify-600 ui:underline-offset-4 ui:hover:underline",action:"ui:bg-neutral-700 ui:disabled:bg-neutral-700 ui:disabled:opacity-50 ui:rounded-md ui:text-white ui:hover:bg-neutral-800 ui:focus-visible:ring-neutral-500",paginationActive:"ui:bg-transparent ui:text-black-250",paginationInactive:"ui:bg-segmentify-300 ui:text-segmentify-600 ui:hover:text-segmentify-700 ui:pointer-events-none"},size:{default:"ui:h-9 ui:px-4 ui:py-2 ui:has-[>svg]:px-3",sm:"ui:h-8 ui:rounded-md ui:gap-1.5 ui:px-3 ui:has-[>svg]:px-2.5",lg:"ui:h-10 ui:rounded-md ui:px-6 ui:has-[>svg]:px-4",icon:"ui:size-9","icon-sm":"ui:size-8","icon-lg":"ui:size-10"}},defaultVariants:{variant:"primary",size:"default"}}),KD=Bi("ui:text-primary ui:text-base ui:font-medium ui:peer-disabled:cursor-not-allowed ui:peer-disabled:opacity-70",{variants:{variant:{default:"ui:text-black-950 ui:text-sm"}},defaultVariants:{variant:"default"}}),QD=Bi("ui:inline-flex ui:items-center ui:justify-center ui:rounded-full ui:border ui:px-2 ui:py-0.5 ui:text-xs ui:font-medium ui:w-fit ui:whitespace-nowrap ui:shrink-0 ui:[&>svg]:size-3 ui:gap-1 ui:[&>svg]:pointer-events-none ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px] ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:transition-[color,box-shadow] ui:overflow-hidden",{variants:{variant:{default:"ui:border ui:border-solid ui:border-primary ui:bg-segmentify-200 ui:text-primary",secondary:"ui:border-transparent ui:bg-secondary ui:text-secondary-foreground ui:hover:bg-secondary/80",success:"ui:border-transparent ui:bg-green-400 ui:text-white ui:hover:bg-green-400/80",destructive:"ui:border-transparent ui:bg-destructive ui:text-destructive-foreground ui:hover:bg-destructive/80",outline:"ui:text-foreground",subtle:"ui:border-0 ui:bg-segmentify-100 ui:text-primary"}},defaultVariants:{variant:"default"}}),go=Bi("ui:select-wrapper ui:border ui:rounded-md! ui:text-sm",{variants:{variant:{default:"ui:border ui:border-transparent",isFocused:"ui:bg-segmentify-200! ui:rounded-none!",multiSelected:"ui:bg-segmentify-200! ui:text-primary-foreground! ui:rounded-full! ui:px-2 ui:py-1 ui:mr-1! ui:border ui:border-primary!",isSelected:"ui:bg-segmentify-200! ui:px-2 ui:py-1 ui:border ui:border-primary! ui:text-black-950!",isControlFocused:"ui:bg-white ui:border-destructive! ui:shadow-none! ui:focus-visible:border-destructive! ui:ring-destructive/50! ui:ring-[3px]!",isDisabled:"ui:opacity-50 ui:cursor-not-allowed"}}});function vE({className:t,variant:e,asChild:n=!1,...r}){const o=n?gr:"span";return h.jsx(o,{"data-slot":"badge",className:D(QD({variant:e}),t),...r})}function en({className:t,variant:e="primary",size:n="default",asChild:r=!1,...o}){const i=r?gr:"button";return h.jsx(i,{"data-slot":"button","data-variant":e,"data-size":n,className:D(Dl({variant:e,size:n,className:t})),...o})}function Yt({children:t}){return t}Yt.displayName="Case";function Co({children:t}){return t}Co.displayName="Default";function ej(t){return v.isValidElement(t)}function fr({children:t}){let e=null,n=null;return v.Children.forEach(t,r=>{if(!ej(r))return;const o=r.type.displayName;if(!e&&o==="Case"){const{condition:i}=r.props;i&&(e=r)}else!n&&o==="Default"&&(n=r)}),e??n??null}const Ug=({icon:t,type:e="button",label:n="save",size:r="default",variant:o="primary",suffix:i,prefix:a,isLoading:s,onClick:l=()=>{},className:u,labelClassName:d,disabled:c,isIconOnly:f,form:p})=>h.jsx(en,{"data-test-id":`button-${n}`,type:e,variant:o,size:r,className:D(u),onClick:l,disabled:c,...p&&{form:p},children:h.jsxs(fr,{children:[h.jsxs(Yt,{condition:!!s,children:[h.jsx(Cu,{className:"ui:mr-2 ui:h-4 ui:w-4 ui:animate-spin"}),h.jsx("span",{className:d,children:n})]}),h.jsx(Yt,{condition:!!f,children:t}),h.jsx(Yt,{condition:!!a&&!!t,children:h.jsxs("div",{className:"ui:flex ui:gap-2 ui:items-center",children:[t,h.jsx("span",{className:d,children:n})]})}),h.jsx(Yt,{condition:!!i&&!!t,children:h.jsxs("div",{className:"ui:flex ui:gap-2 ui:items-center",children:[h.jsx("span",{className:d,children:n}),t]})}),h.jsx(Co,{children:n})]})});function tj({...t}){return h.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...t})}function nj({className:t,...e}){return h.jsx("ol",{"data-slot":"breadcrumb-list",className:D("ui:text-muted-foreground ui:flex ui:flex-wrap ui:items-center ui:gap-1.5 ui:text-sm ui:wrap-break-word ui:sm:gap-2.5",t),...e})}function rj({className:t,...e}){return h.jsx("li",{"data-slot":"breadcrumb-item",className:D("ui:inline-flex ui:items-center ui:gap-1.5",t),...e})}function oj({asChild:t,className:e,...n}){const r=t?gr:"a";return h.jsx(r,{"data-slot":"breadcrumb-link",className:D("ui:hover:text-foreground ui:transition-colors",e),...n})}function ij({className:t,...e}){return h.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:D("ui:text-foreground ui:font-normal",t),...e})}function aj({children:t,className:e,...n}){return h.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:D("ui:[&>svg]:size-3.5",e),...n,children:t??h.jsx(wu,{})})}function sj({className:t,...e}){return h.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:D("ui:flex ui:size-9 ui:items-center ui:justify-center",t),...e,children:[h.jsx(jS,{className:"ui:size-4"}),h.jsx("span",{className:"ui:sr-only",children:"More"})]})}function lj(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}const uj={},ma={};function xo(t,e){try{const r=(uj[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return r in ma?ma[r]:py(r,r.split(":"))}catch{if(t in ma)return ma[t];const n=t?.match(cj);return n?py(t,n.slice(1)):NaN}}const cj=/([+-]\d\d):?(\d\d)?/;function py(t,e){const n=+(e[0]||0),r=+(e[1]||0),o=+(e[2]||0)/60;return ma[t]=n*60+r>0?n*60+r+o:n*60-r-o}class ar extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(xo(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),yE(this),Cm(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new ar(...n,e):new ar(Date.now(),e)}withTimeZone(e){return new ar(+this,e)}getTimezoneOffset(){const e=-xo(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Cm(this),+this}[Symbol.for("constructDateFrom")](e){return new ar(+new Date(e),this.timeZone)}}const my=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!my.test(t))return;const e=t.replace(my,"$1UTC");ar.prototype[e]&&(t.startsWith("get")?ar.prototype[t]=function(){return this.internal[e]()}:(ar.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),dj(this),+this},ar.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),Cm(this),+this}))});function Cm(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-xo(t.timeZone,t)*60))}function dj(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),yE(t)}function yE(t){const e=xo(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),r=new Date(+t);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+t).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),a=o-i,s=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();a&&s&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const u=new Date(+t);u.setUTCSeconds(0);const d=o>0?u.getSeconds():(u.getSeconds()-60)%60,c=Math.round(-(xo(t.timeZone,t)*60))%60;(c||d)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+c+d));const f=xo(t.timeZone,t),p=f>0?Math.floor(f):Math.ceil(f),g=-new Date(+t).getTimezoneOffset()-p,b=p!==n,y=g-l;if(b&&y){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+y);const w=xo(t.timeZone,t),C=w>0?Math.floor(w):Math.ceil(w),S=p-C;S&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+S))}}class $t extends ar{static tz(e,...n){return n.length?new $t(...n,e):new $t(Date.now(),e)}toISOString(){const[e,n,r]=this.tzComponents(),o=`${e}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,n,r,o]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${e} GMT${n}${r}${o} (${lj(this.timeZone,this)})`}toLocaleString(e,n){return Date.prototype.toLocaleString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(e,n){return Date.prototype.toLocaleDateString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(e,n){return Date.prototype.toLocaleTimeString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),n=e>0?"-":"+",r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),o=String(Math.abs(e)%60).padStart(2,"0");return[n,r,o]}withTimeZone(e){return new $t(+this,e)}[Symbol.for("constructDateFrom")](e){return new $t(+new Date(e),this.timeZone)}}const gy=5,fj=4;function hj(t,e){const n=e.startOfMonth(t),r=n.getDay()>0?n.getDay():7,o=e.addDays(t,-r+1),i=e.addDays(o,gy*7-1);return e.getMonth(t)===e.getMonth(i)?gy:fj}function xE(t,e){const n=e.startOfMonth(t),r=n.getDay();return r===1?n:r===0?e.addDays(n,-6):e.addDays(n,-1*(r-1))}function pj(t,e){const n=xE(t,e),r=hj(t,e);return e.addDays(n,r*7-1)}const wE={...ai,labels:{labelDayButton:(t,e,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>Ln(a,s,{locale:ai,...n});let i=o(t,"PPPP");return e.today&&(i=`Today, ${i}`),e.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>Ln(o,i,{locale:ai,...e}),r(t,"LLLL yyyy")},labelGridcell:(t,e,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>Ln(a,s,{locale:ai,...n});let i=o(t,"PPPP");return e?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>Ln(o,i,{locale:ai,...e}),r(t,"cccc")}}};class dn{constructor(e,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?$t.tz(this.options.timeZone):new this.Date,this.newDate=(r,o,i)=>this.overrides?.newDate?this.overrides.newDate(r,o,i):this.options.timeZone?new $t(r,o,i,this.options.timeZone):new Date(r,o,i),this.addDays=(r,o)=>this.overrides?.addDays?this.overrides.addDays(r,o):KS(r,o),this.addMonths=(r,o)=>this.overrides?.addMonths?this.overrides.addMonths(r,o):QS(r,o),this.addWeeks=(r,o)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,o):rk(r,o),this.addYears=(r,o)=>this.overrides?.addYears?this.overrides.addYears(r,o):ok(r,o),this.differenceInCalendarDays=(r,o)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):qg(r,o),this.differenceInCalendarMonths=(r,o)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):rE(r,o),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):uk(r),this.eachYearOfInterval=r=>{const o=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):fk(r),i=new Set(o.map(s=>this.getYear(s)));if(i.size===o.length)return o;const a=[];return i.forEach(s=>{a.push(new Date(s,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):pj(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):hk(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):lk(r),this.endOfWeek=(r,o)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,o):aE(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):dk(r),this.format=(r,o,i)=>{const a=this.overrides?.format?this.overrides.format(r,o,this.options):Ln(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):zg(r),this.getMonth=(r,o)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):cD(r,this.options),this.getYear=(r,o)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):dD(r,this.options),this.getWeek=(r,o)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):Xg(r,this.options),this.isAfter=(r,o)=>this.overrides?.isAfter?this.overrides.isAfter(r,o):fD(r,o),this.isBefore=(r,o)=>this.overrides?.isBefore?this.overrides.isBefore(r,o):hD(r,o),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):tE(r),this.isSameDay=(r,o)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,o):sk(r,o),this.isSameMonth=(r,o)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,o):pD(r,o),this.isSameYear=(r,o)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,o):mD(r,o),this.max=r=>this.overrides?.max?this.overrides.max(r):ik(r),this.min=r=>this.overrides?.min?this.overrides.min(r):ak(r),this.setMonth=(r,o)=>this.overrides?.setMonth?this.overrides.setMonth(r,o):gD(r,o),this.setYear=(r,o)=>this.overrides?.setYear?this.overrides.setYear(r,o):bD(r,o),this.startOfBroadcastWeek=(r,o)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):xE(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):Pa(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Ra(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):ck(r),this.startOfWeek=(r,o)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):wi(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):iE(r),this.options={locale:wE,...e},this.overrides=n}getDigitMap(){const{numerals:e="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:e}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(e){const n=this.getDigitMap();return e.replace(/\d/g,r=>n[r]||r)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&dn.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:n,timeZone:r,numerals:o}=this.options,i=n?.code;if(i&&dn.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(e)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,a)}}dn.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 br=new dn;class CE{constructor(e,n,r=br){this.date=e,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(e,n)),this.dateLib=r,this.isoDate=r.format(e,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class mj{constructor(e,n){this.date=e,this.weeks=n}}class gj{constructor(e,n){this.days=n,this.weekNumber=e}}function bj(t){return I.createElement("button",{...t})}function vj(t){return I.createElement("span",{...t})}function yj(t){const{size:e=24,orientation:n="left",className:r}=t;return I.createElement("svg",{className:r,width:e,height:e,viewBox:"0 0 24 24"},n==="up"&&I.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&I.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&I.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&I.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function xj(t){const{day:e,modifiers:n,...r}=t;return I.createElement("td",{...r})}function wj(t){const{day:e,modifiers:n,...r}=t,o=I.useRef(null);return I.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),I.createElement("button",{ref:o,...r})}var xe;(function(t){t.Root="root",t.Chevron="chevron",t.Day="day",t.DayButton="day_button",t.CaptionLabel="caption_label",t.Dropdowns="dropdowns",t.Dropdown="dropdown",t.DropdownRoot="dropdown_root",t.Footer="footer",t.MonthGrid="month_grid",t.MonthCaption="month_caption",t.MonthsDropdown="months_dropdown",t.Month="month",t.Months="months",t.Nav="nav",t.NextMonthButton="button_next",t.PreviousMonthButton="button_previous",t.Week="week",t.Weeks="weeks",t.Weekday="weekday",t.Weekdays="weekdays",t.WeekNumber="week_number",t.WeekNumberHeader="week_number_header",t.YearsDropdown="years_dropdown"})(xe||(xe={}));var ct;(function(t){t.disabled="disabled",t.hidden="hidden",t.outside="outside",t.focused="focused",t.today="today"})(ct||(ct={}));var Bn;(function(t){t.range_end="range_end",t.range_middle="range_middle",t.range_start="range_start",t.selected="selected"})(Bn||(Bn={}));var sn;(function(t){t.weeks_before_enter="weeks_before_enter",t.weeks_before_exit="weeks_before_exit",t.weeks_after_enter="weeks_after_enter",t.weeks_after_exit="weeks_after_exit",t.caption_after_enter="caption_after_enter",t.caption_after_exit="caption_after_exit",t.caption_before_enter="caption_before_enter",t.caption_before_exit="caption_before_exit"})(sn||(sn={}));function Cj(t){const{options:e,className:n,components:r,classNames:o,...i}=t,a=[o[xe.Dropdown],n].join(" "),s=e?.find(({value:l})=>l===i.value);return I.createElement("span",{"data-disabled":i.disabled,className:o[xe.DropdownRoot]},I.createElement(r.Select,{className:a,...i},e?.map(({value:l,label:u,disabled:d})=>I.createElement(r.Option,{key:l,value:l,disabled:d},u))),I.createElement("span",{className:o[xe.CaptionLabel],"aria-hidden":!0},s?.label,I.createElement(r.Chevron,{orientation:"down",size:18,className:o[xe.Chevron]})))}function Sj(t){return I.createElement("div",{...t})}function Ej(t){return I.createElement("div",{...t})}function Ij(t){const{calendarMonth:e,displayIndex:n,...r}=t;return I.createElement("div",{...r},t.children)}function Aj(t){const{calendarMonth:e,displayIndex:n,...r}=t;return I.createElement("div",{...r})}function Tj(t){return I.createElement("table",{...t})}function Nj(t){return I.createElement("div",{...t})}const SE=I.createContext(void 0);function os(){const t=I.useContext(SE);if(t===void 0)throw new Error("useDayPicker() must be used within a custom component.");return t}function _j(t){const{components:e}=os();return I.createElement(e.Dropdown,{...t})}function Oj(t){const{onPreviousClick:e,onNextClick:n,previousMonth:r,nextMonth:o,...i}=t,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:u}}=os(),d=I.useCallback(f=>{o&&n?.(f)},[o,n]),c=I.useCallback(f=>{r&&e?.(f)},[r,e]);return I.createElement("nav",{...i},I.createElement(a.PreviousMonthButton,{type:"button",className:s[xe.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:c},I.createElement(a.Chevron,{disabled:r?void 0:!0,className:s[xe.Chevron],orientation:"left"})),I.createElement(a.NextMonthButton,{type:"button",className:s[xe.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":u(o),onClick:d},I.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[xe.Chevron]})))}function Rj(t){const{components:e}=os();return I.createElement(e.Button,{...t})}function Pj(t){return I.createElement("option",{...t})}function Mj(t){const{components:e}=os();return I.createElement(e.Button,{...t})}function kj(t){const{rootRef:e,...n}=t;return I.createElement("div",{...n,ref:e})}function Dj(t){return I.createElement("select",{...t})}function jj(t){const{week:e,...n}=t;return I.createElement("tr",{...n})}function Lj(t){return I.createElement("th",{...t})}function Bj(t){return I.createElement("thead",{"aria-hidden":!0},I.createElement("tr",{...t}))}function Fj(t){const{week:e,...n}=t;return I.createElement("th",{...n})}function Gj(t){return I.createElement("th",{...t})}function $j(t){return I.createElement("tbody",{...t})}function Vj(t){const{components:e}=os();return I.createElement(e.Dropdown,{...t})}const Wj=Object.freeze(Object.defineProperty({__proto__:null,Button:bj,CaptionLabel:vj,Chevron:yj,Day:xj,DayButton:wj,Dropdown:Cj,DropdownNav:Sj,Footer:Ej,Month:Ij,MonthCaption:Aj,MonthGrid:Tj,Months:Nj,MonthsDropdown:_j,Nav:Oj,NextMonthButton:Rj,Option:Pj,PreviousMonthButton:Mj,Root:kj,Select:Dj,Week:jj,WeekNumber:Fj,WeekNumberHeader:Gj,Weekday:Lj,Weekdays:Bj,Weeks:$j,YearsDropdown:Vj},Symbol.toStringTag,{value:"Module"}));function Pr(t,e,n=!1,r=br){let{from:o,to:i}=t;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(e,o)>=(n?1:0)&&a(i,e)>=(n?1:0)):!n&&i?s(i,e):!n&&o?s(o,e):!1}function Zg(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function Eu(t){return!!(t&&typeof t=="object"&&"from"in t)}function Jg(t){return!!(t&&typeof t=="object"&&"after"in t)}function Kg(t){return!!(t&&typeof t=="object"&&"before"in t)}function EE(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function IE(t,e){return Array.isArray(t)&&t.every(e.isDate)}function Mr(t,e,n=br){const r=Array.isArray(e)?e:[e],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(t,s);if(IE(s,n))return s.some(l=>o(t,l));if(Eu(s))return Pr(s,t,!1,n);if(EE(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(t.getDay()):s.dayOfWeek===t.getDay();if(Zg(s)){const l=i(s.before,t),u=i(s.after,t),d=l>0,c=u<0;return a(s.before,s.after)?c&&d:d||c}return Jg(s)?i(t,s.after)>0:Kg(s)?i(s.before,t)>0:typeof s=="function"?s(t):!1})}function Hj(t,e,n,r,o){const{disabled:i,hidden:a,modifiers:s,showOutsideDays:l,broadcastCalendar:u,today:d=o.today()}=e,{isSameDay:c,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:g,isAfter:b}=o,y=n&&p(n),w=r&&g(r),C={[ct.focused]:[],[ct.outside]:[],[ct.disabled]:[],[ct.hidden]:[],[ct.today]:[]},S={};for(const E of t){const{date:T,displayMonth:A}=E,O=!!(A&&!f(T,A)),M=!!(y&&m(T,y)),V=!!(w&&b(T,w)),N=!!(i&&Mr(T,i,o)),k=!!(a&&Mr(T,a,o))||M||V||!u&&!l&&O||u&&l===!1&&O,_=c(T,d);O&&C.outside.push(E),N&&C.disabled.push(E),k&&C.hidden.push(E),_&&C.today.push(E),s&&Object.keys(s).forEach(B=>{const L=s?.[B];L&&Mr(T,L,o)&&(S[B]?S[B].push(E):S[B]=[E])})}return E=>{const T={[ct.focused]:!1,[ct.disabled]:!1,[ct.hidden]:!1,[ct.outside]:!1,[ct.today]:!1},A={};for(const O in C){const M=C[O];T[O]=M.some(V=>V===E)}for(const O in S)A[O]=S[O].some(M=>M===E);return{...T,...A}}}function qj(t,e,n={}){return Object.entries(t).filter(([,o])=>o===!0).reduce((o,[i])=>(n[i]?o.push(n[i]):e[ct[i]]?o.push(e[ct[i]]):e[Bn[i]]&&o.push(e[Bn[i]]),o),[e[xe.Day]])}function zj(t){return{...Wj,...t}}function Xj(t){const e={"data-mode":t.mode??void 0,"data-required":"required"in t?t.required:void 0,"data-multiple-months":t.numberOfMonths&&t.numberOfMonths>1||void 0,"data-week-numbers":t.showWeekNumber||void 0,"data-broadcast-calendar":t.broadcastCalendar||void 0,"data-nav-layout":t.navLayout||void 0};return Object.entries(t).forEach(([n,r])=>{n.startsWith("data-")&&(e[n]=r)}),e}function Qg(){const t={};for(const e in xe)t[xe[e]]=`rdp-${xe[e]}`;for(const e in ct)t[ct[e]]=`rdp-${ct[e]}`;for(const e in Bn)t[Bn[e]]=`rdp-${Bn[e]}`;for(const e in sn)t[sn[e]]=`rdp-${sn[e]}`;return t}function AE(t,e,n){return(n??new dn(e)).formatMonthYear(t)}const Yj=AE;function Uj(t,e,n){return(n??new dn(e)).format(t,"d")}function Zj(t,e=br){return e.format(t,"LLLL")}function Jj(t,e,n){return(n??new dn(e)).format(t,"cccccc")}function Kj(t,e=br){return t<10?e.formatNumber(`0${t.toLocaleString()}`):e.formatNumber(`${t.toLocaleString()}`)}function Qj(){return""}function TE(t,e=br){return e.format(t,"yyyy")}const eL=TE,tL=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:AE,formatDay:Uj,formatMonthCaption:Yj,formatMonthDropdown:Zj,formatWeekNumber:Kj,formatWeekNumberHeader:Qj,formatWeekdayName:Jj,formatYearCaption:eL,formatYearDropdown:TE},Symbol.toStringTag,{value:"Module"}));function nL(t){return t?.formatMonthCaption&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),t?.formatYearCaption&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...tL,...t}}function eb(t,e,n,r){let o=(r??new dn(n)).format(t,"PPPP");return e.today&&(o=`Today, ${o}`),e.selected&&(o=`${o}, selected`),o}const rL=eb;function tb(t,e,n){return(n??new dn(e)).formatMonthYear(t)}const oL=tb;function NE(t,e,n,r){let o=(r??new dn(n)).format(t,"PPPP");return e?.today&&(o=`Today, ${o}`),o}function _E(t){return"Choose the Month"}function OE(){return""}const iL="Go to the Next Month";function RE(t,e){return iL}function PE(t){return"Go to the Previous Month"}function ME(t,e,n){return(n??new dn(e)).format(t,"cccc")}function kE(t,e){return`Week ${t}`}function DE(t){return"Week Number"}function jE(t){return"Choose the Year"}const aL=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:oL,labelDay:rL,labelDayButton:eb,labelGrid:tb,labelGridcell:NE,labelMonthDropdown:_E,labelNav:OE,labelNext:RE,labelPrevious:PE,labelWeekNumber:kE,labelWeekNumberHeader:DE,labelWeekday:ME,labelYearDropdown:jE},Symbol.toStringTag,{value:"Module"})),On=(t,e,n)=>e||(n?typeof n=="function"?n:(...r)=>n:t);function sL(t,e){const n=e.locale?.labels??{};return{...aL,...t??{},labelDayButton:On(eb,t?.labelDayButton,n.labelDayButton),labelMonthDropdown:On(_E,t?.labelMonthDropdown,n.labelMonthDropdown),labelNext:On(RE,t?.labelNext,n.labelNext),labelPrevious:On(PE,t?.labelPrevious,n.labelPrevious),labelWeekNumber:On(kE,t?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:On(jE,t?.labelYearDropdown,n.labelYearDropdown),labelGrid:On(tb,t?.labelGrid,n.labelGrid),labelGridcell:On(NE,t?.labelGridcell,n.labelGridcell),labelNav:On(OE,t?.labelNav,n.labelNav),labelWeekNumberHeader:On(DE,t?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:On(ME,t?.labelWeekday,n.labelWeekday)}}function lL(t,e,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(t),end:s(t)}).map(f=>{const p=r.formatMonthDropdown(f,o),m=u(f),g=e&&f<i(e)||n&&f>i(n)||!1;return{value:m,label:p,disabled:g}})}function uL(t,e={},n={}){let r={...e?.[xe.Day]};return Object.entries(t).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n?.[o]}}),r}function cL(t,e,n,r){const o=r??t.today(),i=n?t.startOfBroadcastWeek(o,t):e?t.startOfISOWeek(o):t.startOfWeek(o),a=[];for(let s=0;s<7;s++){const l=t.addDays(i,s);a.push(l)}return a}function dL(t,e,n,r,o=!1){if(!t||!e)return;const{startOfYear:i,endOfYear:a,eachYearOfInterval:s,getYear:l}=r,u=i(t),d=a(e),c=s({start:u,end:d});return o&&c.reverse(),c.map(f=>{const p=n.formatYearDropdown(f,r);return{value:l(f),label:p,disabled:!1}})}function fL(t,e={}){const{weekStartsOn:n,locale:r}=e,o=n??r?.options?.weekStartsOn??0,i=s=>{const l=typeof s=="number"||typeof s=="string"?new Date(s):s;return new $t(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,t)},a=s=>{const l=i(s);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>i($t.tz(t)),newDate:(s,l,u)=>new $t(s,l,u,12,0,0,t),startOfDay:s=>i(s),startOfWeek:(s,l)=>{const u=i(s),d=l?.weekStartsOn??o,c=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-c),u},startOfISOWeek:s=>{const l=i(s),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:s=>{const l=i(s);return l.setDate(1),l},startOfYear:s=>{const l=i(s);return l.setMonth(0,1),l},endOfWeek:(s,l)=>{const u=i(s),f=(((l?.weekStartsOn??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+f),u},endOfISOWeek:s=>{const l=i(s),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:s=>{const l=i(s);return l.setMonth(l.getMonth()+1,0),l},endOfYear:s=>{const l=i(s);return l.setMonth(11,31),l},eachMonthOfInterval:s=>{const l=i(s.start),u=i(s.end),d=[],c=new $t(l.getFullYear(),l.getMonth(),1,12,0,0,t),f=u.getFullYear()*12+u.getMonth();for(;c.getFullYear()*12+c.getMonth()<=f;)d.push(new $t(c,t)),c.setMonth(c.getMonth()+1,1);return d},addDays:(s,l)=>{const u=i(s);return u.setDate(u.getDate()+l),u},addWeeks:(s,l)=>{const u=i(s);return u.setDate(u.getDate()+l*7),u},addMonths:(s,l)=>{const u=i(s);return u.setMonth(u.getMonth()+l),u},addYears:(s,l)=>{const u=i(s);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:s=>{const l=i(s.start),u=i(s.end),d=[],c=new $t(l.getFullYear(),0,1,12,0,0,t);for(;c.getFullYear()<=u.getFullYear();)d.push(new $t(c,t)),c.setFullYear(c.getFullYear()+1,0,1);return d},getWeek:(s,l)=>{const u=a(s);return Xg(u,{weekStartsOn:l?.weekStartsOn??o,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:s=>{const l=a(s);return zg(l)},differenceInCalendarDays:(s,l)=>{const u=a(s),d=a(l);return qg(u,d)},differenceInCalendarMonths:(s,l)=>{const u=a(s),d=a(l);return rE(u,d)}}}const is=t=>t instanceof HTMLElement?t:null,Sd=t=>[...t.querySelectorAll("[data-animated-month]")??[]],hL=t=>is(t.querySelector("[data-animated-month]")),Ed=t=>is(t.querySelector("[data-animated-caption]")),Id=t=>is(t.querySelector("[data-animated-weeks]")),pL=t=>is(t.querySelector("[data-animated-nav]")),mL=t=>is(t.querySelector("[data-animated-weekdays]"));function gL(t,e,{classNames:n,months:r,focused:o,dateLib:i}){const a=I.useRef(null),s=I.useRef(r),l=I.useRef(!1);I.useLayoutEffect(()=>{const u=s.current;if(s.current=r,!e||!t.current||!(t.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const d=i.isSameMonth(r[0].date,u[0].date),c=i.isAfter(r[0].date,u[0].date),f=c?n[sn.caption_after_enter]:n[sn.caption_before_enter],p=c?n[sn.weeks_after_enter]:n[sn.weeks_before_enter],m=a.current,g=t.current.cloneNode(!0);if(g instanceof HTMLElement?(Sd(g).forEach(C=>{if(!(C instanceof HTMLElement))return;const S=hL(C);S&&C.contains(S)&&C.removeChild(S);const E=Ed(C);E&&E.classList.remove(f);const T=Id(C);T&&T.classList.remove(p)}),a.current=g):a.current=null,l.current||d||o)return;const b=m instanceof HTMLElement?Sd(m):[],y=Sd(t.current);if(y?.every(w=>w instanceof HTMLElement)&&b&&b.every(w=>w instanceof HTMLElement)){l.current=!0,t.current.style.isolation="isolate";const w=pL(t.current);w&&(w.style.zIndex="1"),y.forEach((C,S)=>{const E=b[S];if(!E)return;C.style.position="relative",C.style.overflow="hidden";const T=Ed(C);T&&T.classList.add(f);const A=Id(C);A&&A.classList.add(p);const O=()=>{l.current=!1,t.current&&(t.current.style.isolation=""),w&&(w.style.zIndex=""),T&&T.classList.remove(f),A&&A.classList.remove(p),C.style.position="",C.style.overflow="",C.contains(E)&&C.removeChild(E)};E.style.pointerEvents="none",E.style.position="absolute",E.style.overflow="hidden",E.setAttribute("aria-hidden","true");const M=mL(E);M&&(M.style.opacity="0");const V=Ed(E);V&&(V.classList.add(c?n[sn.caption_before_exit]:n[sn.caption_after_exit]),V.addEventListener("animationend",O));const N=Id(E);N&&N.classList.add(c?n[sn.weeks_before_exit]:n[sn.weeks_after_exit]),C.insertBefore(E,C.firstChild)})}})}function bL(t,e,n,r){const o=t[0],i=t[t.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:d,differenceInCalendarMonths:c,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:g,isAfter:b,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:C}=r,S=l?y(o,r):a?w(o):C(o),E=l?f(i):a?p(m(i)):g(m(i)),T=e&&(l?f(e):a?p(e):g(e)),A=T&&b(E,T)?T:E,O=d(A,S),M=c(i,o)+1,V=[];for(let _=0;_<=O;_++){const B=u(S,_);V.push(B)}const k=(l?35:42)*M;if(s&&V.length<k){const _=k-V.length;for(let B=0;B<_;B++){const L=u(V[V.length-1],1);V.push(L)}}return V}function vL(t){const e=[];return t.reduce((n,r)=>{const o=r.weeks.reduce((i,a)=>i.concat(a.days.slice()),e.slice());return n.concat(o.slice())},e.slice())}function yL(t,e,n,r){const{numberOfMonths:o=1}=n,i=[];for(let a=0;a<o;a++){const s=r.addMonths(t,a);if(e&&s>e)break;i.push(s)}return i}function by(t,e,n,r){const{month:o,defaultMonth:i,today:a=r.today(),numberOfMonths:s=1}=t;let l=o||i||a;const{differenceInCalendarMonths:u,addMonths:d,startOfMonth:c}=r;if(n&&u(n,l)<s-1){const f=-1*(s-1);l=d(n,f)}return e&&u(l,e)<0&&(l=e),c(l)}function xL(t,e,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:d,startOfBroadcastWeek:c,startOfISOWeek:f,startOfWeek:p}=r,m=t.reduce((g,b)=>{const y=n.broadcastCalendar?c(b,r):n.ISOWeek?f(b):p(b),w=n.broadcastCalendar?i(b):n.ISOWeek?a(s(b)):l(s(b)),C=e.filter(A=>A>=y&&A<=w),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&C.length<S){const A=e.filter(O=>{const M=S-C.length;return O>w&&O<=o(w,M)});C.push(...A)}const E=C.reduce((A,O)=>{const M=n.ISOWeek?u(O):d(O),V=A.find(k=>k.weekNumber===M),N=new CE(O,b,r);return V?V.days.push(N):A.push(new gj(M,[N])),A},[]),T=new mj(b,E);return g.push(T),g},[]);return n.reverseMonths?m.reverse():m}function wL(t,e){let{startMonth:n,endMonth:r}=t;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:u,newDate:d,today:c}=e,{fromYear:f,toYear:p,fromMonth:m,toMonth:g}=t;!n&&m&&(n=m),!n&&f&&(n=e.newDate(f,0,1)),!r&&g&&(r=g),!r&&p&&(r=d(p,11,31));const b=t.captionLayout==="dropdown"||t.captionLayout==="dropdown-years";return n?n=a(n):f?n=d(f,0,1):!n&&b&&(n=o(l(t.today??c(),-100))),r?r=s(r):p?r=d(p,11,31):!r&&b&&(r=u(t.today??c())),[n&&i(n),r&&i(r)]}function CL(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,u=o?i:1,d=a(t);if(!e)return s(d,u);if(!(l(e,t)<i))return s(d,u)}function SL(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,u=o?i??1:1,d=a(t);if(!e)return s(d,-u);if(!(l(d,e)<=0))return s(d,-u)}function EL(t){const e=[];return t.reduce((n,r)=>n.concat(r.weeks.slice()),e.slice())}function Iu(t,e){const[n,r]=I.useState(t);return[e===void 0?n:e,r]}function IL(t,e){const[n,r]=wL(t,e),{startOfMonth:o,endOfMonth:i}=e,a=by(t,n,r,e),[s,l]=Iu(a,t.month?a:void 0);I.useEffect(()=>{const S=by(t,n,r,e);l(S)},[t.timeZone]);const{months:u,weeks:d,days:c,previousMonth:f,nextMonth:p}=I.useMemo(()=>{const S=yL(s,r,{numberOfMonths:t.numberOfMonths},e),E=bL(S,t.endMonth?i(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},e),T=xL(S,E,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},e),A=EL(T),O=vL(T),M=SL(s,n,t,e),V=CL(s,r,t,e);return{months:T,weeks:A,days:O,previousMonth:M,nextMonth:V}},[e,s.getTime(),r?.getTime(),n?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:m,onMonthChange:g}=t,b=S=>d.some(E=>E.days.some(T=>T.isEqualTo(S))),y=S=>{if(m)return;let E=o(S);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),g?.(E)};return{months:u,weeks:d,days:c,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:y,goToDay:S=>{b(S)||y(S.date)}}}var nr;(function(t){t[t.Today=0]="Today",t[t.Selected=1]="Selected",t[t.LastFocused=2]="LastFocused",t[t.FocusedModifier=3]="FocusedModifier"})(nr||(nr={}));function vy(t){return!t[ct.disabled]&&!t[ct.hidden]&&!t[ct.outside]}function AL(t,e,n,r){let o,i=-1;for(const a of t){const s=e(a);vy(s)&&(s[ct.focused]&&i<nr.FocusedModifier?(o=a,i=nr.FocusedModifier):r?.isEqualTo(a)&&i<nr.LastFocused?(o=a,i=nr.LastFocused):n(a.date)&&i<nr.Selected?(o=a,i=nr.Selected):s[ct.today]&&i<nr.Today&&(o=a,i=nr.Today))}return o||(o=t.find(a=>vy(e(a)))),o}function TL(t,e,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:u,addMonths:d,addWeeks:c,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:g,max:b,min:y,startOfBroadcastWeek:w,startOfISOWeek:C,startOfWeek:S}=a;let T={day:u,week:c,month:d,year:f,startOfWeek:A=>l?w(A,a):s?C(A):S(A),endOfWeek:A=>l?p(A):s?m(A):g(A)}[t](n,e==="after"?1:-1);return e==="before"&&r?T=b([r,T]):e==="after"&&o&&(T=y([o,T])),T}function LE(t,e,n,r,o,i,a,s=0){if(s>365)return;const l=TL(t,e,n.date,r,o,i,a),u=!!(i.disabled&&Mr(l,i.disabled,a)),d=!!(i.hidden&&Mr(l,i.hidden,a)),c=l,f=new CE(l,c,a);return!u&&!d?f:LE(t,e,f,r,o,i,a,s+1)}function NL(t,e,n,r,o){const{autoFocus:i}=t,[a,s]=I.useState(),l=AL(e.days,n,r||(()=>!1),a),[u,d]=I.useState(i?l:void 0);return{isFocusTarget:g=>!!l?.isEqualTo(g),setFocused:d,focused:u,blur:()=>{s(u),d(void 0)},moveFocus:(g,b)=>{if(!u)return;const y=LE(g,b,u,e.navStart,e.navEnd,t,o);y&&(t.disableNavigation&&!e.days.some(C=>C.isEqualTo(y))||(e.goToDay(y),d(y)))}}}function _L(t,e){const{selected:n,required:r,onSelect:o}=t,[i,a]=Iu(n,o?n:void 0),s=o?n:i,{isSameDay:l}=e,u=p=>s?.some(m=>l(m,p))??!1,{min:d,max:c}=t;return{selected:s,select:(p,m,g)=>{let b=[...s??[]];if(u(p)){if(s?.length===d||r&&s?.length===1)return;b=s?.filter(y=>!l(y,p))}else s?.length===c?b=[p]:b=[...b,p];return o||a(b),o?.(b,p,m,g),b},isSelected:u}}function OL(t,e,n=0,r=0,o=!1,i=br){const{from:a,to:s}=e||{},{isSameDay:l,isAfter:u,isBefore:d}=i;let c;if(!a&&!s)c={from:t,to:n>0?void 0:t};else if(a&&!s)l(a,t)?n===0?c={from:a,to:t}:o?c={from:a,to:void 0}:c=void 0:d(t,a)?c={from:t,to:a}:c={from:a,to:t};else if(a&&s)if(l(a,t)&&l(s,t))o?c={from:a,to:s}:c=void 0;else if(l(a,t))c={from:a,to:n>0?void 0:t};else if(l(s,t))c={from:t,to:n>0?void 0:t};else if(d(t,a))c={from:t,to:s};else if(u(t,a))c={from:a,to:t};else if(u(t,s))c={from:a,to:t};else throw new Error("Invalid range");if(c?.from&&c?.to){const f=i.differenceInCalendarDays(c.to,c.from);r>0&&f>r?c={from:t,to:void 0}:n>1&&f<n&&(c={from:t,to:void 0})}return c}function RL(t,e,n=br){const r=Array.isArray(e)?e:[e];let o=t.from;const i=n.differenceInCalendarDays(t.to,t.from),a=Math.min(i,6);for(let s=0;s<=a;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function yy(t,e,n=br){return Pr(t,e.from,!1,n)||Pr(t,e.to,!1,n)||Pr(e,t.from,!1,n)||Pr(e,t.to,!1,n)}function PL(t,e,n=br){const r=Array.isArray(e)?e:[e];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?Pr(t,s,!1,n):IE(s,n)?s.some(l=>Pr(t,l,!1,n)):Eu(s)?s.from&&s.to?yy(t,{from:s.from,to:s.to},n):!1:EE(s)?RL(t,s.dayOfWeek,n):Zg(s)?n.isAfter(s.before,s.after)?yy(t,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):Mr(t.from,s,n)||Mr(t.to,s,n):Jg(s)||Kg(s)?Mr(t.from,s,n)||Mr(t.to,s,n):!1))return!0;const a=r.filter(s=>typeof s=="function");if(a.length){let s=t.from;const l=n.differenceInCalendarDays(t.to,t.from);for(let u=0;u<=l;u++){if(a.some(d=>d(s)))return!0;s=n.addDays(s,1)}}return!1}function ML(t,e){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:a}=t,[s,l]=Iu(o,a?o:void 0),u=a?o:s;return{selected:u,select:(f,p,m)=>{const{min:g,max:b}=t,y=f?OL(f,u,g,b,i,e):void 0;return r&&n&&y?.from&&y.to&&PL({from:y.from,to:y.to},n,e)&&(y.from=f,y.to=void 0),a||l(y),a?.(y,f,p,m),y},isSelected:f=>u&&Pr(u,f,!1,e)}}function kL(t,e){const{selected:n,required:r,onSelect:o}=t,[i,a]=Iu(n,o?n:void 0),s=o?n:i,{isSameDay:l}=e;return{selected:s,select:(c,f,p)=>{let m=c;return!r&&s&&s&&l(c,s)&&(m=void 0),o||a(m),o?.(m,c,f,p),m},isSelected:c=>s?l(s,c):!1}}function DL(t,e){const n=kL(t,e),r=_L(t,e),o=ML(t,e);switch(t.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function vn(t,e){return t instanceof $t&&t.timeZone===e?t:new $t(t,e)}function ti(t,e,n){return vn(t,e)}function xy(t,e,n){return typeof t=="boolean"||typeof t=="function"?t:t instanceof Date?ti(t,e):Array.isArray(t)?t.map(r=>r instanceof Date?ti(r,e):r):Eu(t)?{...t,from:t.from?vn(t.from,e):t.from,to:t.to?vn(t.to,e):t.to}:Zg(t)?{before:ti(t.before,e),after:ti(t.after,e)}:Jg(t)?{after:ti(t.after,e)}:Kg(t)?{before:ti(t.before,e)}:t}function Ad(t,e,n){return t&&(Array.isArray(t)?t.map(r=>xy(r,e)):xy(t,e))}function jL(t){let e=t;const n=e.timeZone;if(n&&(e={...t,timeZone:n},e.today&&(e.today=vn(e.today,n)),e.month&&(e.month=vn(e.month,n)),e.defaultMonth&&(e.defaultMonth=vn(e.defaultMonth,n)),e.startMonth&&(e.startMonth=vn(e.startMonth,n)),e.endMonth&&(e.endMonth=vn(e.endMonth,n)),e.mode==="single"&&e.selected?e.selected=vn(e.selected,n):e.mode==="multiple"&&e.selected?e.selected=e.selected?.map(ne=>vn(ne,n)):e.mode==="range"&&e.selected&&(e.selected={from:e.selected.from?vn(e.selected.from,n):e.selected.from,to:e.selected.to?vn(e.selected.to,n):e.selected.to}),e.disabled!==void 0&&(e.disabled=Ad(e.disabled,n)),e.hidden!==void 0&&(e.hidden=Ad(e.hidden,n)),e.modifiers)){const ne={};Object.keys(e.modifiers).forEach(fe=>{ne[fe]=Ad(e.modifiers?.[fe],n)}),e.modifiers=ne}const{components:r,formatters:o,labels:i,dateLib:a,locale:s,classNames:l}=I.useMemo(()=>{const ne={...wE,...e.locale},fe=e.broadcastCalendar?1:e.weekStartsOn,ce=e.noonSafe&&e.timeZone?fL(e.timeZone,{weekStartsOn:fe,locale:ne}):void 0,de=e.dateLib&&ce?{...ce,...e.dateLib}:e.dateLib??ce,Te=new dn({locale:ne,weekStartsOn:fe,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},de);return{dateLib:Te,components:zj(e.components),formatters:nL(e.formatters),labels:sL(e.labels,Te.options),locale:ne,classNames:{...Qg(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.noonSafe,e.components,e.formatters,e.labels,e.classNames]);e.today||(e={...e,today:a.today()});const{captionLayout:u,mode:d,navLayout:c,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:g,onDayKeyDown:b,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:C,onPrevClick:S,showWeekNumber:E,styles:T}=e,{formatCaption:A,formatDay:O,formatMonthDropdown:M,formatWeekNumber:V,formatWeekNumberHeader:N,formatWeekdayName:k,formatYearDropdown:_}=o,B=IL(e,a),{days:L,months:P,navStart:G,navEnd:j,previousMonth:H,nextMonth:U,goToMonth:Q}=B,$=Hj(L,e,G,j,a),{isSelected:q,select:Z,selected:X}=DL(e,a)??{},{blur:te,focused:Y,isFocusTarget:J,moveFocus:ie,setFocused:oe}=NL(e,B,$,q??(()=>!1),a),{labelDayButton:re,labelGridcell:z,labelGrid:ue,labelMonthDropdown:W,labelNav:le,labelPrevious:Ae,labelNext:Ne,labelWeekday:Ve,labelWeekNumber:Ie,labelWeekNumberHeader:Re,labelYearDropdown:at}=i,Me=I.useMemo(()=>cL(a,e.ISOWeek,e.broadcastCalendar,e.today),[a,e.ISOWeek,e.broadcastCalendar,e.today]),Ge=d!==void 0||m!==void 0,We=I.useCallback(()=>{H&&(Q(H),S?.(H))},[H,Q,S]),Qe=I.useCallback(()=>{U&&(Q(U),C?.(U))},[Q,U,C]),st=I.useCallback((ne,fe)=>ce=>{ce.preventDefault(),ce.stopPropagation(),oe(ne),!fe.disabled&&(Z?.(ne.date,fe,ce),m?.(ne.date,fe,ce))},[Z,m,oe]),it=I.useCallback((ne,fe)=>ce=>{oe(ne),g?.(ne.date,fe,ce)},[g,oe]),mt=I.useCallback((ne,fe)=>ce=>{te(),p?.(ne.date,fe,ce)},[te,p]),bt=I.useCallback((ne,fe)=>ce=>{const de={ArrowLeft:[ce.shiftKey?"month":"day",e.dir==="rtl"?"after":"before"],ArrowRight:[ce.shiftKey?"month":"day",e.dir==="rtl"?"before":"after"],ArrowDown:[ce.shiftKey?"year":"week","after"],ArrowUp:[ce.shiftKey?"year":"week","before"],PageUp:[ce.shiftKey?"year":"month","before"],PageDown:[ce.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(de[ce.key]){ce.preventDefault(),ce.stopPropagation();const[Te,ae]=de[ce.key];ie(Te,ae)}b?.(ne.date,fe,ce)},[ie,b,e.dir]),Le=I.useCallback((ne,fe)=>ce=>{y?.(ne.date,fe,ce)},[y]),_t=I.useCallback((ne,fe)=>ce=>{w?.(ne.date,fe,ce)},[w]),tt=I.useCallback(ne=>fe=>{const ce=Number(fe.target.value),de=a.setMonth(a.startOfMonth(ne),ce);Q(de)},[a,Q]),lt=I.useCallback(ne=>fe=>{const ce=Number(fe.target.value),de=a.setYear(a.startOfMonth(ne),ce);Q(de)},[a,Q]),{className:Ot,style:Rt}=I.useMemo(()=>({className:[l[xe.Root],e.className].filter(Boolean).join(" "),style:{...T?.[xe.Root],...e.style}}),[l,e.className,e.style,T]),rn=Xj(e),Ht=I.useRef(null);gL(Ht,!!e.animate,{classNames:l,months:P,focused:Y,dateLib:a});const Pt={dayPickerProps:e,selected:X,select:Z,isSelected:q,months:P,nextMonth:U,previousMonth:H,goToMonth:Q,getModifiers:$,components:r,classNames:l,styles:T,labels:i,formatters:o};return I.createElement(SE.Provider,{value:Pt},I.createElement(r.Root,{rootRef:e.animate?Ht:void 0,className:Ot,style:Rt,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],...rn},I.createElement(r.Months,{className:l[xe.Months],style:T?.[xe.Months]},!e.hideNavigation&&!c&&I.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[xe.Nav],style:T?.[xe.Nav],"aria-label":le(),onPreviousClick:We,onNextClick:Qe,previousMonth:H,nextMonth:U}),P.map((ne,fe)=>I.createElement(r.Month,{"data-animated-month":e.animate?"true":void 0,className:l[xe.Month],style:T?.[xe.Month],key:fe,displayIndex:fe,calendarMonth:ne},c==="around"&&!e.hideNavigation&&fe===0&&I.createElement(r.PreviousMonthButton,{type:"button",className:l[xe.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":Ae(H),onClick:We,"data-animated-button":e.animate?"true":void 0},I.createElement(r.Chevron,{disabled:H?void 0:!0,className:l[xe.Chevron],orientation:e.dir==="rtl"?"right":"left"})),I.createElement(r.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:l[xe.MonthCaption],style:T?.[xe.MonthCaption],calendarMonth:ne,displayIndex:fe},u?.startsWith("dropdown")?I.createElement(r.DropdownNav,{className:l[xe.Dropdowns],style:T?.[xe.Dropdowns]},(()=>{const ce=u==="dropdown"||u==="dropdown-months"?I.createElement(r.MonthsDropdown,{key:"month",className:l[xe.MonthsDropdown],"aria-label":W(),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:tt(ne.date),options:lL(ne.date,G,j,o,a),style:T?.[xe.Dropdown],value:a.getMonth(ne.date)}):I.createElement("span",{key:"month"},M(ne.date,a)),de=u==="dropdown"||u==="dropdown-years"?I.createElement(r.YearsDropdown,{key:"year",className:l[xe.YearsDropdown],"aria-label":at(a.options),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:lt(ne.date),options:dL(G,j,o,a,!!e.reverseYears),style:T?.[xe.Dropdown],value:a.getYear(ne.date)}):I.createElement("span",{key:"year"},_(ne.date,a));return a.getMonthYearOrder()==="year-first"?[de,ce]:[ce,de]})(),I.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"}},A(ne.date,a.options,a))):I.createElement(r.CaptionLabel,{className:l[xe.CaptionLabel],role:"status","aria-live":"polite"},A(ne.date,a.options,a))),c==="around"&&!e.hideNavigation&&fe===f-1&&I.createElement(r.NextMonthButton,{type:"button",className:l[xe.NextMonthButton],tabIndex:U?void 0:-1,"aria-disabled":U?void 0:!0,"aria-label":Ne(U),onClick:Qe,"data-animated-button":e.animate?"true":void 0},I.createElement(r.Chevron,{disabled:U?void 0:!0,className:l[xe.Chevron],orientation:e.dir==="rtl"?"left":"right"})),fe===f-1&&c==="after"&&!e.hideNavigation&&I.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[xe.Nav],style:T?.[xe.Nav],"aria-label":le(),onPreviousClick:We,onNextClick:Qe,previousMonth:H,nextMonth:U}),I.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":d==="multiple"||d==="range","aria-label":ue(ne.date,a.options,a)||void 0,className:l[xe.MonthGrid],style:T?.[xe.MonthGrid]},!e.hideWeekdays&&I.createElement(r.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:l[xe.Weekdays],style:T?.[xe.Weekdays]},E&&I.createElement(r.WeekNumberHeader,{"aria-label":Re(a.options),className:l[xe.WeekNumberHeader],style:T?.[xe.WeekNumberHeader],scope:"col"},N()),Me.map(ce=>I.createElement(r.Weekday,{"aria-label":Ve(ce,a.options,a),className:l[xe.Weekday],key:String(ce),style:T?.[xe.Weekday],scope:"col"},k(ce,a.options,a)))),I.createElement(r.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:l[xe.Weeks],style:T?.[xe.Weeks]},ne.weeks.map(ce=>I.createElement(r.Week,{className:l[xe.Week],key:ce.weekNumber,style:T?.[xe.Week],week:ce},E&&I.createElement(r.WeekNumber,{week:ce,style:T?.[xe.WeekNumber],"aria-label":Ie(ce.weekNumber,{locale:s}),className:l[xe.WeekNumber],scope:"row",role:"rowheader"},V(ce.weekNumber,a)),ce.days.map(de=>{const{date:Te}=de,ae=$(de);if(ae[ct.focused]=!ae.hidden&&!!Y?.isEqualTo(de),ae[Bn.selected]=q?.(Te)||ae.selected,Eu(X)){const{from:nt,to:je}=X;ae[Bn.range_start]=!!(nt&&je&&a.isSameDay(Te,nt)),ae[Bn.range_end]=!!(nt&&je&&a.isSameDay(Te,je)),ae[Bn.range_middle]=Pr(X,Te,!0,a)}const _e=uL(ae,T,e.modifiersStyles),ke=qj(ae,l,e.modifiersClassNames),De=!Ge&&!ae.hidden?z(Te,ae,a.options,a):void 0;return I.createElement(r.Day,{key:`${de.isoDate}_${de.displayMonthId}`,day:de,modifiers:ae,className:ke.join(" "),style:_e,role:"gridcell","aria-selected":ae.selected||void 0,"aria-label":De,"data-day":de.isoDate,"data-month":de.outside?de.dateMonthId:void 0,"data-selected":ae.selected||void 0,"data-disabled":ae.disabled||void 0,"data-hidden":ae.hidden||void 0,"data-outside":de.outside||void 0,"data-focused":ae.focused||void 0,"data-today":ae.today||void 0},!ae.hidden&&Ge?I.createElement(r.DayButton,{className:l[xe.DayButton],style:T?.[xe.DayButton],type:"button",day:de,modifiers:ae,disabled:!ae.focused&&ae.disabled||void 0,"aria-disabled":ae.focused&&ae.disabled||void 0,tabIndex:J(de)?0:-1,"aria-label":re(Te,ae,a.options,a),onClick:st(de,ae),onBlur:mt(de,ae),onFocus:it(de,ae),onKeyDown:bt(de,ae),onMouseEnter:Le(de,ae),onMouseLeave:_t(de,ae)},O(Te,a.options,a)):!ae.hidden&&O(de.date,a.options,a))})))))))),e.footer&&I.createElement(r.Footer,{className:l[xe.Footer],style:T?.[xe.Footer],role:"status","aria-live":"polite"},e.footer)))}function nb({className:t,classNames:e,showOutsideDays:n=!0,captionLayout:r="label",buttonVariant:o="ghost",formatters:i,components:a,...s}){const l=Qg();return h.jsx(jL,{showOutsideDays:n,className:D("ui:bg-background ui:group/calendar ui:p-3 ui:[--cell-size:--spacing(8)] ui:[[data-slot=card-content]_&]:bg-transparent ui:[[data-slot=popover-content]_&]:bg-transparent",String.raw`ui:rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`ui:rtl:**:[.rdp-button\_previous>svg]:rotate-180`,t),captionLayout:r,formatters:{formatMonthDropdown:u=>u.toLocaleString("default",{month:"short"}),...i},classNames:{root:D("ui:w-fit",l.root),months:D("ui:flex ui:gap-4 ui:flex-col md:ui:flex-row ui:relative",l.months),month:D("ui:flex ui:flex-col ui:w-full ui:gap-4",l.month),nav:D("ui:flex ui:items-center ui:gap-1 ui:w-full ui:absolute ui:top-0 ui:inset-x-0 ui:justify-between",l.nav),button_previous:D(Dl({variant:o}),"ui:size-(--cell-size) ui:aria-disabled:opacity-50 ui:p-0 ui:select-none",l.button_previous),button_next:D(Dl({variant:o}),"ui:size-(--cell-size) ui:aria-disabled:opacity-50 ui:p-0 ui:select-none",l.button_next),month_caption:D("ui:flex ui:items-center ui:justify-center ui:h-(--cell-size) ui:w-full ui:px-(--cell-size)",l.month_caption),dropdowns:D("ui:w-full ui:flex ui:items-center ui:text-sm ui:font-medium ui:justify-center ui:h-(--cell-size) ui:gap-1.5",l.dropdowns),dropdown_root:D("ui:relative ui:has-focus:border-ring ui:border ui:border-input ui:shadow-xs ui:has-focus:ring-ring/50 ui:has-focus:ring-[3px] ui:rounded-md",l.dropdown_root),dropdown:D("ui:absolute ui:bg-popover ui:inset-0 ui:opacity-0",l.dropdown),caption_label:D("ui:select-none ui:font-medium",r==="label"?"ui:text-sm":"ui:rounded-md ui:pl-2 ui:pr-1 ui:flex ui:items-center ui:gap-1 ui:text-sm ui:h-8 ui:[&>svg]:text-muted-foreground ui:[&>svg]:size-3.5",l.caption_label),table:"ui:w-full ui:border-collapse",weekdays:D("ui:flex",l.weekdays),weekday:D("ui:text-muted-foreground ui:rounded-md ui:flex-1 ui:font-normal ui:text-[0.8rem] ui:select-none",l.weekday),week:D("ui:flex ui:w-full ui:mt-2",l.week),week_number_header:D("ui:select-none ui:w-(--cell-size)",l.week_number_header),week_number:D("ui:text-[0.8rem] ui:select-none ui:text-muted-foreground",l.week_number),day:D("ui:relative ui:w-full ui:h-full ui:p-0 ui:text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square ui:select-none",s.showWeekNumber?"ui:[&:nth-child(2)[data-selected=true]_button]:rounded-l-md":"ui:[&:first-child[data-selected=true]_button]:rounded-l-md",l.day),range_start:D("ui:rounded-l-md ui:bg-accent",l.range_start),range_middle:D("ui:rounded-none",l.range_middle),range_end:D("ui:rounded-r-md ui:bg-accent",l.range_end),today:D("ui:bg-accent ui:text-accent-foreground ui:rounded-md data-[selected=true]:rounded-none",l.today),outside:D("ui:text-muted-foreground ui:aria-selected:text-muted-foreground",l.outside),disabled:D("ui:text-muted-foreground ui:opacity-50",l.disabled),hidden:D("ui:invisible",l.hidden),...e},components:{Root:({className:u,rootRef:d,...c})=>h.jsx("div",{"data-slot":"calendar",ref:d,className:D(u),...c}),Chevron:({className:u,orientation:d,...c})=>d==="left"?h.jsx(MS,{className:D("ui:size-4",u),...c}):d==="right"?h.jsx(wu,{className:D("ui:size-4",u),...c}):h.jsx(Mi,{className:D("ui:size-4",u),...c}),DayButton:BE,WeekNumber:({children:u,...d})=>h.jsx("td",{...d,children:h.jsx("div",{className:"ui:flex ui:size-(--cell-size) ui:items-center ui:justify-center ui:text-center",children:u})}),...a},...s})}function BE({className:t,day:e,modifiers:n,...r}){const o=Qg(),i=v.useRef(null);return v.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),h.jsx(en,{ref:i,variant:"ghost",size:"icon","data-day":e.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:D("ui:data-[selected-single=true]:bg-primary ui:text-black-950 ui:data-[selected-single=true]:text-primary-foreground ui:data-[range-middle=true]:bg-accent ui:data-[range-middle=true]:text-accent-foreground ui:data-[range-start=true]:bg-primary ui:data-[range-start=true]:text-primary-foreground ui:data-[range-end=true]:bg-primary ui:data-[range-end=true]:text-primary-foreground ui:group-data-[focused=true]/day:border-ring ui:group-data-[focused=true]/day:ring-ring/50 ui:dark:hover:text-accent-foreground ui:flex ui:aspect-square ui:size-auto ui:w-full ui:min-w-(--cell-size) ui:flex-col ui:gap-1 ui:leading-none ui:font-normal ui:group-data-[focused=true]/day:relative ui:group-data-[focused=true]/day:z-10 ui:group-data-[focused=true]/day:ring-[3px] ui:data-[range-end=true]:rounded-md ui:data-[range-end=true]:rounded-r-md ui:data-[range-middle=true]:rounded-none ui:data-[range-start=true]:rounded-md ui:data-[range-start=true]:rounded-l-md ui:[&>span]:text-xs ui:[&>span]:opacity-70",o.day,t),...r})}const LL=({label:t,editLabel:e,status:n,statusMap:r,campaignId:o})=>{const i=()=>window.navigator.clipboard.writeText(o);return h.jsx("h1",{className:"ui:font-semibold ui:text-xl ui:text-card-foreground ui:space-x-2",children:h.jsxs(fr,{children:[h.jsxs(Yt,{condition:!!e,children:[e,h.jsx(en,{type:"button",onClick:i,className:"ui:bg-transparent ui:hover:bg-transparent ui:hover:text-black-950 ui:p-0 ui:lg:ml-2 ui:text-black-950",children:o}),n&&h.jsx(vE,{className:D("ui:ml-2 ui:max-w-max ui:text-center ui:rounded-full ui:text-xs ui:px-2 ui:py-1 ui:text-white",r[n]),children:r[n]})]}),h.jsx(Co,{children:t})]})})};function BL({className:t,...e}){return h.jsx("div",{"data-slot":"card",className:D("ui:bg-card ui:text-card-foreground ui:flex ui:flex-col ui:gap-6 ui:rounded-xl ui:border ui:py-6 ui:shadow-sm",t),...e})}function FL({className:t,...e}){return h.jsx("div",{"data-slot":"card-header",className:D("ui:@container/card-header ui:grid ui:auto-rows-min ui:grid-rows-[auto_auto] ui:items-start ui:gap-2 ui:px-6 ui:has-data-[slot=card-action]:grid-cols-[1fr_auto] ui:[.border-b]:pb-6",t),...e})}function GL({className:t,...e}){return h.jsx("div",{"data-slot":"card-title",className:D("ui:leading-none ui:font-semibold",t),...e})}function $L({className:t,...e}){return h.jsx("div",{"data-slot":"card-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}function VL({className:t,...e}){return h.jsx("div",{"data-slot":"card-action",className:D("ui:col-start-2 ui:row-span-2 ui:row-start-1 ui:self-start ui:justify-self-end",t),...e})}function WL({className:t,...e}){return h.jsx("div",{"data-slot":"card-content",className:D("ui:px-6",t),...e})}function HL({className:t,...e}){return h.jsx("div",{"data-slot":"card-footer",className:D("ui:flex ui:items-center ui:px-6 ui:[.border-t]:pt-6",t),...e})}function qL(t){return Object.prototype.toString.call(t)==="[object Object]"}function wy(t){return qL(t)||Array.isArray(t)}function zL(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rb(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(t.breakpoints||{})),i=JSON.stringify(Object.keys(e.breakpoints||{}));return o!==i?!1:n.every(a=>{const s=t[a],l=e[a];return typeof s=="function"?`${s}`==`${l}`:!wy(s)||!wy(l)?s===l:rb(s,l)})}function Cy(t){return t.concat().sort((e,n)=>e.name>n.name?1:-1).map(e=>e.options)}function XL(t,e){if(t.length!==e.length)return!1;const n=Cy(t),r=Cy(e);return n.every((o,i)=>{const a=r[i];return rb(o,a)})}function ob(t){return typeof t=="number"}function Sm(t){return typeof t=="string"}function Au(t){return typeof t=="boolean"}function Sy(t){return Object.prototype.toString.call(t)==="[object Object]"}function dt(t){return Math.abs(t)}function ib(t){return Math.sign(t)}function Ta(t,e){return dt(t-e)}function YL(t,e){if(t===0||e===0||dt(t)<=dt(e))return 0;const n=Ta(dt(t),dt(e));return dt(n/t)}function UL(t){return Math.round(t*100)/100}function Ma(t){return ka(t).map(Number)}function Fn(t){return t[as(t)]}function as(t){return Math.max(0,t.length-1)}function ab(t,e){return e===as(t)}function Ey(t,e=0){return Array.from(Array(t),(n,r)=>e+r)}function ka(t){return Object.keys(t)}function FE(t,e){return[t,e].reduce((n,r)=>(ka(r).forEach(o=>{const i=n[o],a=r[o],s=Sy(i)&&Sy(a);n[o]=s?FE(i,a):a}),n),{})}function Em(t,e){return typeof e.MouseEvent<"u"&&t instanceof e.MouseEvent}function ZL(t,e){const n={start:r,center:o,end:i};function r(){return 0}function o(l){return i(l)/2}function i(l){return e-l}function a(l,u){return Sm(t)?n[t](l):t(e,l,u)}return{measure:a}}function Da(){let t=[];function e(o,i,a,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(i,a,s),l=()=>o.removeEventListener(i,a,s);else{const u=o;u.addListener(a),l=()=>u.removeListener(a)}return t.push(l),r}function n(){t=t.filter(o=>o())}const r={add:e,clear:n};return r}function JL(t,e,n,r){const o=Da(),i=1e3/60;let a=null,s=0,l=0;function u(){o.add(t,"visibilitychange",()=>{t.hidden&&m()})}function d(){p(),o.clear()}function c(b){if(!l)return;a||(a=b,n(),n());const y=b-a;for(a=b,s+=y;s>=i;)n(),s-=i;const w=s/i;r(w),l&&(l=e.requestAnimationFrame(c))}function f(){l||(l=e.requestAnimationFrame(c))}function p(){e.cancelAnimationFrame(l),a=null,s=0,l=0}function m(){a=null,s=0}return{init:u,destroy:d,start:f,stop:p,update:n,render:r}}function KL(t,e){const n=e==="rtl",r=t==="y",o=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,s=d(),l=c();function u(m){const{height:g,width:b}=m;return r?g:b}function d(){return r?"top":n?"right":"left"}function c(){return r?"bottom":n?"left":"right"}function f(m){return m*a}return{scroll:o,cross:i,startEdge:s,endEdge:l,measureSize:u,direction:f}}function So(t=0,e=0){const n=dt(t-e);function r(u){return u<t}function o(u){return u>e}function i(u){return r(u)||o(u)}function a(u){return i(u)?r(u)?t:e:u}function s(u){return n?u-n*Math.ceil((u-e)/n):u}return{length:n,max:e,min:t,constrain:a,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:s}}function GE(t,e,n){const{constrain:r}=So(0,t),o=t+1;let i=a(e);function a(f){return n?dt((o+f)%o):r(f)}function s(){return i}function l(f){return i=a(f),c}function u(f){return d().set(s()+f)}function d(){return GE(t,s(),n)}const c={get:s,set:l,add:u,clone:d};return c}function QL(t,e,n,r,o,i,a,s,l,u,d,c,f,p,m,g,b,y,w){const{cross:C,direction:S}=t,E=["INPUT","SELECT","TEXTAREA"],T={passive:!1},A=Da(),O=Da(),M=So(50,225).constrain(p.measure(20)),V={mouse:300,touch:400},N={mouse:500,touch:600},k=m?43:25;let _=!1,B=0,L=0,P=!1,G=!1,j=!1,H=!1;function U(z){if(!w)return;function ue(le){(Au(w)||w(z,le))&&te(le)}const W=e;A.add(W,"dragstart",le=>le.preventDefault(),T).add(W,"touchmove",()=>{},T).add(W,"touchend",()=>{}).add(W,"touchstart",ue).add(W,"mousedown",ue).add(W,"touchcancel",J).add(W,"contextmenu",J).add(W,"click",ie,!0)}function Q(){A.clear(),O.clear()}function $(){const z=H?n:e;O.add(z,"touchmove",Y,T).add(z,"touchend",J).add(z,"mousemove",Y,T).add(z,"mouseup",J)}function q(z){const ue=z.nodeName||"";return E.includes(ue)}function Z(){return(m?N:V)[H?"mouse":"touch"]}function X(z,ue){const W=c.add(ib(z)*-1),le=d.byDistance(z,!m).distance;return m||dt(z)<M?le:b&&ue?le*.5:d.byIndex(W.get(),0).distance}function te(z){const ue=Em(z,r);H=ue,j=m&&ue&&!z.buttons&&_,_=Ta(o.get(),a.get())>=2,!(ue&&z.button!==0)&&(q(z.target)||(P=!0,i.pointerDown(z),u.useFriction(0).useDuration(0),o.set(a),$(),B=i.readPoint(z),L=i.readPoint(z,C),f.emit("pointerDown")))}function Y(z){if(!Em(z,r)&&z.touches.length>=2)return J(z);const W=i.readPoint(z),le=i.readPoint(z,C),Ae=Ta(W,B),Ne=Ta(le,L);if(!G&&!H&&(!z.cancelable||(G=Ae>Ne,!G)))return J(z);const Ve=i.pointerMove(z);Ae>g&&(j=!0),u.useFriction(.3).useDuration(.75),s.start(),o.add(S(Ve)),z.preventDefault()}function J(z){const W=d.byDistance(0,!1).index!==c.get(),le=i.pointerUp(z)*Z(),Ae=X(S(le),W),Ne=YL(le,Ae),Ve=k-10*Ne,Ie=y+Ne/50;G=!1,P=!1,O.clear(),u.useDuration(Ve).useFriction(Ie),l.distance(Ae,!m),H=!1,f.emit("pointerUp")}function ie(z){j&&(z.stopPropagation(),z.preventDefault(),j=!1)}function oe(){return P}return{init:U,destroy:Q,pointerDown:oe}}function e4(t,e){let r,o;function i(c){return c.timeStamp}function a(c,f){const m=`client${(f||t.scroll)==="x"?"X":"Y"}`;return(Em(c,e)?c:c.touches[0])[m]}function s(c){return r=c,o=c,a(c)}function l(c){const f=a(c)-a(o),p=i(c)-i(r)>170;return o=c,p&&(r=c),f}function u(c){if(!r||!o)return 0;const f=a(o)-a(r),p=i(c)-i(r),m=i(c)-i(o)>170,g=f/p;return p&&!m&&dt(g)>.1?g:0}return{pointerDown:s,pointerMove:l,pointerUp:u,readPoint:a}}function t4(){function t(n){const{offsetTop:r,offsetLeft:o,offsetWidth:i,offsetHeight:a}=n;return{top:r,right:o+i,bottom:r+a,left:o,width:i,height:a}}return{measure:t}}function n4(t){function e(r){return t*(r/100)}return{measure:e}}function r4(t,e,n,r,o,i,a){const s=[t].concat(r);let l,u,d=[],c=!1;function f(b){return o.measureSize(a.measure(b))}function p(b){if(!i)return;u=f(t),d=r.map(f);function y(w){for(const C of w){if(c)return;const S=C.target===t,E=r.indexOf(C.target),T=S?u:d[E],A=f(S?t:r[E]);if(dt(A-T)>=.5){b.reInit(),e.emit("resize");break}}}l=new ResizeObserver(w=>{(Au(i)||i(b,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function m(){c=!0,l&&l.disconnect()}return{init:p,destroy:m}}function o4(t,e,n,r,o,i){let a=0,s=0,l=o,u=i,d=t.get(),c=0;function f(){const T=r.get()-t.get(),A=!l;let O=0;return A?(a=0,n.set(r),t.set(r),O=T):(n.set(t),a+=T/l,a*=u,d+=a,t.add(a),O=d-c),s=ib(O),c=d,E}function p(){const T=r.get()-e.get();return dt(T)<.001}function m(){return l}function g(){return s}function b(){return a}function y(){return C(o)}function w(){return S(i)}function C(T){return l=T,E}function S(T){return u=T,E}const E={direction:g,duration:m,velocity:b,seek:f,settled:p,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:C};return E}function i4(t,e,n,r,o){const i=o.measure(10),a=o.measure(50),s=So(.1,.99);let l=!1;function u(){return!(l||!t.reachedAny(n.get())||!t.reachedAny(e.get()))}function d(p){if(!u())return;const m=t.reachedMin(e.get())?"min":"max",g=dt(t[m]-e.get()),b=n.get()-e.get(),y=s.constrain(g/a);n.subtract(b*y),!p&&dt(b)<i&&(n.set(t.constrain(n.get())),r.useDuration(25).useBaseFriction())}function c(p){l=!p}return{shouldConstrain:u,constrain:d,toggleActive:c}}function a4(t,e,n,r,o){const i=So(-e+t,0),a=c(),s=d(),l=f();function u(m,g){return Ta(m,g)<=1}function d(){const m=a[0],g=Fn(a),b=a.lastIndexOf(m),y=a.indexOf(g)+1;return So(b,y)}function c(){return n.map((m,g)=>{const{min:b,max:y}=i,w=i.constrain(m),C=!g,S=ab(n,g);return C?y:S||u(b,w)?b:u(y,w)?y:w}).map(m=>parseFloat(m.toFixed(3)))}function f(){if(e<=t+o)return[i.max];if(r==="keepSnaps")return a;const{min:m,max:g}=s;return a.slice(m,g)}return{snapsContained:l,scrollContainLimit:s}}function s4(t,e,n){const r=e[0],o=n?r-t:Fn(e);return{limit:So(o,r)}}function l4(t,e,n,r){const i=e.min+.1,a=e.max+.1,{reachedMin:s,reachedMax:l}=So(i,a);function u(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function d(f){if(!u(f))return;const p=t*(f*-1);r.forEach(m=>m.add(p))}return{loop:d}}function u4(t){const{max:e,length:n}=t;function r(i){const a=i-e;return n?a/-n:0}return{get:r}}function c4(t,e,n,r,o){const{startEdge:i,endEdge:a}=t,{groupSlides:s}=o,l=c().map(e.measure),u=f(),d=p();function c(){return s(r).map(g=>Fn(g)[a]-g[0][i]).map(dt)}function f(){return r.map(g=>n[i]-g[i]).map(g=>-dt(g))}function p(){return s(u).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:u,snapsAligned:d}}function d4(t,e,n,r,o,i){const{groupSlides:a}=o,{min:s,max:l}=r,u=d();function d(){const f=a(i),p=!t||e==="keepSnaps";return n.length===1?[i]:p?f:f.slice(s,l).map((m,g,b)=>{const y=!g,w=ab(b,g);if(y){const C=Fn(b[0])+1;return Ey(C)}if(w){const C=as(i)-Fn(b)[0]+1;return Ey(C,Fn(b)[0])}return m})}return{slideRegistry:u}}function f4(t,e,n,r,o){const{reachedAny:i,removeOffset:a,constrain:s}=r;function l(m){return m.concat().sort((g,b)=>dt(g)-dt(b))[0]}function u(m){const g=t?a(m):s(m),b=e.map((w,C)=>({diff:d(w-g,0),index:C})).sort((w,C)=>dt(w.diff)-dt(C.diff)),{index:y}=b[0];return{index:y,distance:g}}function d(m,g){const b=[m,m+n,m-n];if(!t)return m;if(!g)return l(b);const y=b.filter(w=>ib(w)===g);return y.length?l(y):Fn(b)-n}function c(m,g){const b=e[m]-o.get(),y=d(b,g);return{index:m,distance:y}}function f(m,g){const b=o.get()+m,{index:y,distance:w}=u(b),C=!t&&i(b);if(!g||C)return{index:y,distance:m};const S=e[y]-w,E=m+d(S,0);return{index:y,distance:E}}return{byDistance:f,byIndex:c,shortcut:d}}function h4(t,e,n,r,o,i,a){function s(c){const f=c.distance,p=c.index!==e.get();i.add(f),f&&(r.duration()?t.start():(t.update(),t.render(1),t.update())),p&&(n.set(e.get()),e.set(c.index),a.emit("select"))}function l(c,f){const p=o.byDistance(c,f);s(p)}function u(c,f){const p=e.clone().set(c),m=o.byIndex(p.get(),f);s(m)}return{distance:l,index:u}}function p4(t,e,n,r,o,i,a,s){const l={passive:!0,capture:!0};let u=0;function d(p){if(!s)return;function m(g){if(new Date().getTime()-u>10)return;a.emit("slideFocusStart"),t.scrollLeft=0;const w=n.findIndex(C=>C.includes(g));ob(w)&&(o.useDuration(0),r.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",c,!1),e.forEach((g,b)=>{i.add(g,"focus",y=>{(Au(s)||s(p,y))&&m(b)},l)})}function c(p){p.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function ga(t){let e=t;function n(){return e}function r(l){e=a(l)}function o(l){e+=a(l)}function i(l){e-=a(l)}function a(l){return ob(l)?l:l.get()}return{get:n,set:r,add:o,subtract:i}}function $E(t,e){const n=t.scroll==="x"?a:s,r=e.style;let o=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const p=UL(t.direction(f));p!==o&&(r.transform=n(p),o=p)}function u(f){i=!f}function d(){i||(r.transform="",e.getAttribute("style")||e.removeAttribute("style"))}return{clear:d,to:l,toggleActive:u}}function m4(t,e,n,r,o,i,a,s,l){const d=Ma(o),c=Ma(o).reverse(),f=y().concat(w());function p(A,O){return A.reduce((M,V)=>M-o[V],O)}function m(A,O){return A.reduce((M,V)=>p(M,O)>0?M.concat([V]):M,[])}function g(A){return i.map((O,M)=>({start:O-r[M]+.5+A,end:O+e-.5+A}))}function b(A,O,M){const V=g(O);return A.map(N=>{const k=M?0:-n,_=M?n:0,B=M?"end":"start",L=V[N][B];return{index:N,loopPoint:L,slideLocation:ga(-1),translate:$E(t,l[N]),target:()=>s.get()>L?k:_}})}function y(){const A=a[0],O=m(c,A);return b(O,n,!1)}function w(){const A=e-a[0]-1,O=m(d,A);return b(O,-n,!0)}function C(){return f.every(({index:A})=>{const O=d.filter(M=>M!==A);return p(O,e)<=.1})}function S(){f.forEach(A=>{const{target:O,translate:M,slideLocation:V}=A,N=O();N!==V.get()&&(M.to(N),V.set(N))})}function E(){f.forEach(A=>A.translate.clear())}return{canLoop:C,clear:E,loop:S,loopPoints:f}}function g4(t,e,n){let r,o=!1;function i(l){if(!n)return;function u(d){for(const c of d)if(c.type==="childList"){l.reInit(),e.emit("slidesChanged");break}}r=new MutationObserver(d=>{o||(Au(n)||n(l,d))&&u(d)}),r.observe(t,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:i,destroy:a}}function b4(t,e,n,r){const o={};let i=null,a=null,s,l=!1;function u(){s=new IntersectionObserver(m=>{l||(m.forEach(g=>{const b=e.indexOf(g.target);o[b]=g}),i=null,a=null,n.emit("slidesInView"))},{root:t.parentElement,threshold:r}),e.forEach(m=>s.observe(m))}function d(){s&&s.disconnect(),l=!0}function c(m){return ka(o).reduce((g,b)=>{const y=parseInt(b),{isIntersecting:w}=o[y];return(m&&w||!m&&!w)&&g.push(y),g},[])}function f(m=!0){if(m&&i)return i;if(!m&&a)return a;const g=c(m);return m&&(i=g),m||(a=g),g}return{init:u,destroy:d,get:f}}function v4(t,e,n,r,o,i){const{measureSize:a,startEdge:s,endEdge:l}=t,u=n[0]&&o,d=m(),c=g(),f=n.map(a),p=b();function m(){if(!u)return 0;const w=n[0];return dt(e[s]-w[s])}function g(){if(!u)return 0;const w=i.getComputedStyle(Fn(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function b(){return n.map((w,C,S)=>{const E=!C,T=ab(S,C);return E?f[C]+d:T?f[C]+c:S[C+1][s]-w[s]}).map(dt)}return{slideSizes:f,slideSizesWithGaps:p,startGap:d,endGap:c}}function y4(t,e,n,r,o,i,a,s,l){const{startEdge:u,endEdge:d,direction:c}=t,f=ob(n);function p(y,w){return Ma(y).filter(C=>C%w===0).map(C=>y.slice(C,C+w))}function m(y){return y.length?Ma(y).reduce((w,C,S)=>{const E=Fn(w)||0,T=E===0,A=C===as(y),O=o[u]-i[E][u],M=o[u]-i[C][d],V=!r&&T?c(a):0,N=!r&&A?c(s):0,k=dt(M-N-(O+V));return S&&k>e+l&&w.push(C),A&&w.push(y.length),w},[]).map((w,C,S)=>{const E=Math.max(S[C-1]||0);return y.slice(E,w)}):[]}function g(y){return f?p(y,n):m(y)}return{groupSlides:g}}function x4(t,e,n,r,o,i,a){const{align:s,axis:l,direction:u,startIndex:d,loop:c,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:g,slidesToScroll:b,skipSnaps:y,containScroll:w,watchResize:C,watchSlides:S,watchDrag:E,watchFocus:T}=i,A=2,O=t4(),M=O.measure(e),V=n.map(O.measure),N=KL(l,u),k=N.measureSize(M),_=n4(k),B=ZL(s,k),L=!c&&!!w,P=c||!!w,{slideSizes:G,slideSizesWithGaps:j,startGap:H,endGap:U}=v4(N,M,V,n,P,o),Q=y4(N,k,b,c,M,V,H,U,A),{snaps:$,snapsAligned:q}=c4(N,B,M,V,Q),Z=-Fn($)+Fn(j),{snapsContained:X,scrollContainLimit:te}=a4(k,Z,q,w,A),Y=L?X:q,{limit:J}=s4(Z,Y,c),ie=GE(as(Y),d,c),oe=ie.clone(),re=Ma(n),z=({dragHandler:Le,scrollBody:_t,scrollBounds:tt,options:{loop:lt}})=>{lt||tt.constrain(Le.pointerDown()),_t.seek()},ue=({scrollBody:Le,translate:_t,location:tt,offsetLocation:lt,previousLocation:Ot,scrollLooper:Rt,slideLooper:rn,dragHandler:Ht,animation:Pt,eventHandler:ne,scrollBounds:fe,options:{loop:ce}},de)=>{const Te=Le.settled(),ae=!fe.shouldConstrain(),_e=ce?Te:Te&&ae,ke=_e&&!Ht.pointerDown();ke&&Pt.stop();const De=tt.get()*de+Ot.get()*(1-de);lt.set(De),ce&&(Rt.loop(Le.direction()),rn.loop()),_t.to(lt.get()),ke&&ne.emit("settle"),_e||ne.emit("scroll")},W=JL(r,o,()=>z(bt),Le=>ue(bt,Le)),le=.68,Ae=Y[ie.get()],Ne=ga(Ae),Ve=ga(Ae),Ie=ga(Ae),Re=ga(Ae),at=o4(Ne,Ie,Ve,Re,f,le),Me=f4(c,Y,Z,J,Re),Ge=h4(W,ie,oe,at,Me,Re,a),We=u4(J),Qe=Da(),st=b4(e,n,a,g),{slideRegistry:it}=d4(L,w,Y,te,Q,re),mt=p4(t,n,it,Ge,at,Qe,a,T),bt={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:M,slideRects:V,animation:W,axis:N,dragHandler:QL(N,t,r,o,Re,e4(N,o),Ne,W,Ge,at,Me,ie,a,_,p,m,y,le,E),eventStore:Qe,percentOfView:_,index:ie,indexPrevious:oe,limit:J,location:Ne,offsetLocation:Ie,previousLocation:Ve,options:i,resizeHandler:r4(e,a,o,n,N,C,O),scrollBody:at,scrollBounds:i4(J,Ie,Re,at,_),scrollLooper:l4(Z,J,Ie,[Ne,Ie,Ve,Re]),scrollProgress:We,scrollSnapList:Y.map(We.get),scrollSnaps:Y,scrollTarget:Me,scrollTo:Ge,slideLooper:m4(N,k,Z,G,j,$,Y,Ie,n),slideFocus:mt,slidesHandler:g4(e,a,S),slidesInView:st,slideIndexes:re,slideRegistry:it,slidesToScroll:Q,target:Re,translate:$E(N,e)};return bt}function w4(){let t={},e;function n(u){e=u}function r(u){return t[u]||[]}function o(u){return r(u).forEach(d=>d(e,u)),l}function i(u,d){return t[u]=r(u).concat([d]),l}function a(u,d){return t[u]=r(u).filter(c=>c!==d),l}function s(){t={}}const l={init:n,emit:o,off:a,on:i,clear:s};return l}const C4={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function S4(t){function e(i,a){return FE(i,a||{})}function n(i){const a=i.breakpoints||{},s=ka(a).filter(l=>t.matchMedia(l).matches).map(l=>a[l]).reduce((l,u)=>e(l,u),{});return e(i,s)}function r(i){return i.map(a=>ka(a.breakpoints||{})).reduce((a,s)=>a.concat(s),[]).map(t.matchMedia)}return{mergeOptions:e,optionsAtMedia:n,optionsMediaQueries:r}}function E4(t){let e=[];function n(i,a){return e=a.filter(({options:s})=>t.optionsAtMedia(s).active!==!1),e.forEach(s=>s.init(i,t)),a.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){e=e.filter(i=>i.destroy())}return{init:n,destroy:r}}function jl(t,e,n){const r=t.ownerDocument,o=r.defaultView,i=S4(o),a=E4(i),s=Da(),l=w4(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:c}=i,{on:f,off:p,emit:m}=l,g=N;let b=!1,y,w=u(C4,jl.globalOptions),C=u(w),S=[],E,T,A;function O(){const{container:re,slides:z}=C;T=(Sm(re)?t.querySelector(re):re)||t.children[0];const W=Sm(z)?T.querySelectorAll(z):z;A=[].slice.call(W||T.children)}function M(re){const z=x4(t,T,A,r,o,re,l);if(re.loop&&!z.slideLooper.canLoop()){const ue=Object.assign({},re,{loop:!1});return M(ue)}return z}function V(re,z){b||(w=u(w,re),C=d(w),S=z||S,O(),y=M(C),c([w,...S.map(({options:ue})=>ue)]).forEach(ue=>s.add(ue,"change",N)),C.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(oe),y.eventHandler.init(oe),y.resizeHandler.init(oe),y.slidesHandler.init(oe),y.options.loop&&y.slideLooper.loop(),T.offsetParent&&A.length&&y.dragHandler.init(oe),E=a.init(oe,S)))}function N(re,z){const ue=Q();k(),V(u({startIndex:ue},re),z),l.emit("reInit")}function k(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),s.clear()}function _(){b||(b=!0,s.clear(),k(),l.emit("destroy"),l.clear())}function B(re,z,ue){!C.active||b||(y.scrollBody.useBaseFriction().useDuration(z===!0?0:C.duration),y.scrollTo.index(re,ue||0))}function L(re){const z=y.index.add(1).get();B(z,re,-1)}function P(re){const z=y.index.add(-1).get();B(z,re,1)}function G(){return y.index.add(1).get()!==Q()}function j(){return y.index.add(-1).get()!==Q()}function H(){return y.scrollSnapList}function U(){return y.scrollProgress.get(y.offsetLocation.get())}function Q(){return y.index.get()}function $(){return y.indexPrevious.get()}function q(){return y.slidesInView.get()}function Z(){return y.slidesInView.get(!1)}function X(){return E}function te(){return y}function Y(){return t}function J(){return T}function ie(){return A}const oe={canScrollNext:G,canScrollPrev:j,containerNode:J,internalEngine:te,destroy:_,off:p,on:f,emit:m,plugins:X,previousScrollSnap:$,reInit:g,rootNode:Y,scrollNext:L,scrollPrev:P,scrollProgress:U,scrollSnapList:H,scrollTo:B,selectedScrollSnap:Q,slideNodes:ie,slidesInView:q,slidesNotInView:Z};return V(e,n),setTimeout(()=>l.emit("init"),0),oe}jl.globalOptions=void 0;function sb(t={},e=[]){const n=I.useRef(t),r=I.useRef(e),[o,i]=I.useState(),[a,s]=I.useState(),l=I.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return I.useEffect(()=>{rb(n.current,t)||(n.current=t,l())},[t,l]),I.useEffect(()=>{XL(r.current,e)||(r.current=e,l())},[e,l]),I.useEffect(()=>{if(zL()&&a){jl.globalOptions=sb.globalOptions;const u=jl(a,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[a,i]),[s,o]}sb.globalOptions=void 0;const VE=v.createContext(null);function Tu(){const t=v.useContext(VE);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function I4({orientation:t="horizontal",opts:e,setApi:n,plugins:r,className:o,children:i,...a}){const[s,l]=sb({...e,axis:t==="horizontal"?"x":"y"},r),[u,d]=v.useState(!1),[c,f]=v.useState(!1),p=v.useCallback(y=>{y&&(d(y.canScrollPrev()),f(y.canScrollNext()))},[]),m=v.useCallback(()=>{l?.scrollPrev()},[l]),g=v.useCallback(()=>{l?.scrollNext()},[l]),b=v.useCallback(y=>{y.key==="ArrowLeft"?(y.preventDefault(),m()):y.key==="ArrowRight"&&(y.preventDefault(),g())},[m,g]);return v.useEffect(()=>{!l||!n||n(l)},[l,n]),v.useEffect(()=>{if(l)return p(l),l.on("reInit",p),l.on("select",p),()=>{l?.off("select",p)}},[l,p]),h.jsx(VE.Provider,{value:{carouselRef:s,api:l,opts:e,orientation:t||(e?.axis==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:g,canScrollPrev:u,canScrollNext:c},children:h.jsx("div",{onKeyDownCapture:b,className:D("ui:relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...a,children:i})})}function A4({className:t,...e}){const{carouselRef:n,orientation:r}=Tu();return h.jsx("div",{ref:n,className:"ui:overflow-hidden","data-slot":"carousel-content",children:h.jsx("div",{className:D("ui:flex",r==="horizontal"?"ui:-ml-4":"ui:-mt-4 ui:flex-col",t),...e})})}function T4({className:t,...e}){const{orientation:n}=Tu();return h.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:D("ui:min-w-0 ui:shrink-0 ui:grow-0 ui:basis-full",n==="horizontal"?"ui:pl-4":"ui:pt-4",t),...e})}function N4({className:t,variant:e="outline",size:n="icon",...r}){const{orientation:o,scrollPrev:i,canScrollPrev:a}=Tu();return h.jsxs(en,{"data-slot":"carousel-previous",variant:e,size:n,className:D("ui:absolute ui:size-8 ui:rounded-full",o==="horizontal"?"ui:top-1/2 ui:-left-12 ui:-translate-y-1/2":"ui:-top-12 ui:left-1/2 ui:-translate-x-1/2 ui:rotate-90",t),disabled:!a,onClick:i,...r,children:[h.jsx(_2,{}),h.jsx("span",{className:"ui:sr-only",children:"Previous slide"})]})}function _4({className:t,variant:e="outline",size:n="icon",...r}){const{orientation:o,scrollNext:i,canScrollNext:a}=Tu();return h.jsxs(en,{"data-slot":"carousel-next",variant:e,size:n,className:D("ui:absolute ui:size-8 ui:rounded-full",o==="horizontal"?"ui:top-1/2 ui:-right-12 ui:-translate-y-1/2":"ui:-bottom-12 ui:left-1/2 ui:-translate-x-1/2 ui:rotate-90",t),disabled:!a,onClick:i,...r,children:[h.jsx(R2,{}),h.jsx("span",{className:"ui:sr-only",children:"Next slide"})]})}var Td,Iy;function qn(){if(Iy)return Td;Iy=1;var t=Array.isArray;return Td=t,Td}var Nd,Ay;function WE(){if(Ay)return Nd;Ay=1;var t=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn;return Nd=t,Nd}var _d,Ty;function vr(){if(Ty)return _d;Ty=1;var t=WE(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return _d=n,_d}var Od,Ny;function ss(){if(Ny)return Od;Ny=1;var t=vr(),e=t.Symbol;return Od=e,Od}var Rd,_y;function O4(){if(_y)return Rd;_y=1;var t=ss(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,o=t?t.toStringTag:void 0;function i(a){var s=n.call(a,o),l=a[o];try{a[o]=void 0;var u=!0}catch{}var d=r.call(a);return u&&(s?a[o]=l:delete a[o]),d}return Rd=i,Rd}var Pd,Oy;function R4(){if(Oy)return Pd;Oy=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return Pd=n,Pd}var Md,Ry;function Do(){if(Ry)return Md;Ry=1;var t=ss(),e=O4(),n=R4(),r="[object Null]",o="[object Undefined]",i=t?t.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?e(s):n(s)}return Md=a,Md}var kd,Py;function jo(){if(Py)return kd;Py=1;function t(e){return e!=null&&typeof e=="object"}return kd=t,kd}var Dd,My;function ls(){if(My)return Dd;My=1;var t=Do(),e=jo(),n="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&t(o)==n}return Dd=r,Dd}var jd,ky;function lb(){if(ky)return jd;ky=1;var t=qn(),e=ls(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(t(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||e(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return jd=o,jd}var Ld,Dy;function no(){if(Dy)return Ld;Dy=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Ld=t,Ld}var Bd,jy;function ub(){if(jy)return Bd;jy=1;var t=Do(),e=no(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!e(s))return!1;var l=t(s);return l==r||l==o||l==n||l==i}return Bd=a,Bd}var Fd,Ly;function P4(){if(Ly)return Fd;Ly=1;var t=vr(),e=t["__core-js_shared__"];return Fd=e,Fd}var Gd,By;function M4(){if(By)return Gd;By=1;var t=P4(),e=(function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return Gd=n,Gd}var $d,Fy;function HE(){if(Fy)return $d;Fy=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return $d=n,$d}var Vd,Gy;function k4(){if(Gy)return Vd;Gy=1;var t=ub(),e=M4(),n=no(),r=HE(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,d=RegExp("^"+l.call(u).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(f){if(!n(f)||e(f))return!1;var p=t(f)?d:i;return p.test(r(f))}return Vd=c,Vd}var Wd,$y;function D4(){if($y)return Wd;$y=1;function t(e,n){return e?.[n]}return Wd=t,Wd}var Hd,Vy;function Lo(){if(Vy)return Hd;Vy=1;var t=k4(),e=D4();function n(r,o){var i=e(r,o);return t(i)?i:void 0}return Hd=n,Hd}var qd,Wy;function Nu(){if(Wy)return qd;Wy=1;var t=Lo(),e=t(Object,"create");return qd=e,qd}var zd,Hy;function j4(){if(Hy)return zd;Hy=1;var t=Nu();function e(){this.__data__=t?t(null):{},this.size=0}return zd=e,zd}var Xd,qy;function L4(){if(qy)return Xd;qy=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Xd=t,Xd}var Yd,zy;function B4(){if(zy)return Yd;zy=1;var t=Nu(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(t){var s=a[i];return s===e?void 0:s}return r.call(a,i)?a[i]:void 0}return Yd=o,Yd}var Ud,Xy;function F4(){if(Xy)return Ud;Xy=1;var t=Nu(),e=Object.prototype,n=e.hasOwnProperty;function r(o){var i=this.__data__;return t?i[o]!==void 0:n.call(i,o)}return Ud=r,Ud}var Zd,Yy;function G4(){if(Yy)return Zd;Yy=1;var t=Nu(),e="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=t&&o===void 0?e:o,this}return Zd=n,Zd}var Jd,Uy;function $4(){if(Uy)return Jd;Uy=1;var t=j4(),e=L4(),n=B4(),r=F4(),o=G4();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var u=a[s];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Jd=i,Jd}var Kd,Zy;function V4(){if(Zy)return Kd;Zy=1;function t(){this.__data__=[],this.size=0}return Kd=t,Kd}var Qd,Jy;function cb(){if(Jy)return Qd;Jy=1;function t(e,n){return e===n||e!==e&&n!==n}return Qd=t,Qd}var ef,Ky;function _u(){if(Ky)return ef;Ky=1;var t=cb();function e(n,r){for(var o=n.length;o--;)if(t(n[o][0],r))return o;return-1}return ef=e,ef}var tf,Qy;function W4(){if(Qy)return tf;Qy=1;var t=_u(),e=Array.prototype,n=e.splice;function r(o){var i=this.__data__,a=t(i,o);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():n.call(i,a,1),--this.size,!0}return tf=r,tf}var nf,e0;function H4(){if(e0)return nf;e0=1;var t=_u();function e(n){var r=this.__data__,o=t(r,n);return o<0?void 0:r[o][1]}return nf=e,nf}var rf,t0;function q4(){if(t0)return rf;t0=1;var t=_u();function e(n){return t(this.__data__,n)>-1}return rf=e,rf}var of,n0;function z4(){if(n0)return of;n0=1;var t=_u();function e(n,r){var o=this.__data__,i=t(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return of=e,of}var af,r0;function Ou(){if(r0)return af;r0=1;var t=V4(),e=W4(),n=H4(),r=q4(),o=z4();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var u=a[s];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,af=i,af}var sf,o0;function db(){if(o0)return sf;o0=1;var t=Lo(),e=vr(),n=t(e,"Map");return sf=n,sf}var lf,i0;function X4(){if(i0)return lf;i0=1;var t=$4(),e=Ou(),n=db();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return lf=r,lf}var uf,a0;function Y4(){if(a0)return uf;a0=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return uf=t,uf}var cf,s0;function Ru(){if(s0)return cf;s0=1;var t=Y4();function e(n,r){var o=n.__data__;return t(r)?o[typeof r=="string"?"string":"hash"]:o.map}return cf=e,cf}var df,l0;function U4(){if(l0)return df;l0=1;var t=Ru();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return df=e,df}var ff,u0;function Z4(){if(u0)return ff;u0=1;var t=Ru();function e(n){return t(this,n).get(n)}return ff=e,ff}var hf,c0;function J4(){if(c0)return hf;c0=1;var t=Ru();function e(n){return t(this,n).has(n)}return hf=e,hf}var pf,d0;function K4(){if(d0)return pf;d0=1;var t=Ru();function e(n,r){var o=t(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return pf=e,pf}var mf,f0;function fb(){if(f0)return mf;f0=1;var t=X4(),e=U4(),n=Z4(),r=J4(),o=K4();function i(a){var s=-1,l=a==null?0:a.length;for(this.clear();++s<l;){var u=a[s];this.set(u[0],u[1])}}return i.prototype.clear=t,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,mf=i,mf}var gf,h0;function Q4(){if(h0)return gf;h0=1;var t=fb(),e="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(e);var i=function(){var a=arguments,s=o?o.apply(this,a):a[0],l=i.cache;if(l.has(s))return l.get(s);var u=r.apply(this,a);return i.cache=l.set(s,u)||l,u};return i.cache=new(n.Cache||t),i}return n.Cache=t,gf=n,gf}var bf,p0;function eB(){if(p0)return bf;p0=1;var t=Q4(),e=500;function n(r){var o=t(r,function(a){return i.size===e&&i.clear(),a}),i=o.cache;return o}return bf=n,bf}var vf,m0;function tB(){if(m0)return vf;m0=1;var t=eB(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(e,function(a,s,l,u){i.push(l?u.replace(n,"$1"):s||a)}),i});return vf=r,vf}var yf,g0;function qE(){if(g0)return yf;g0=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=Array(o);++r<o;)i[r]=n(e[r],r,e);return i}return yf=t,yf}var xf,b0;function nB(){if(b0)return xf;b0=1;var t=ss(),e=qE(),n=qn(),r=ls(),o=t?t.prototype:void 0,i=o?o.toString:void 0;function a(s){if(typeof s=="string")return s;if(n(s))return e(s,a)+"";if(r(s))return i?i.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return xf=a,xf}var wf,v0;function zE(){if(v0)return wf;v0=1;var t=nB();function e(n){return n==null?"":t(n)}return wf=e,wf}var Cf,y0;function XE(){if(y0)return Cf;y0=1;var t=qn(),e=lb(),n=tB(),r=zE();function o(i,a){return t(i)?i:e(i,a)?[i]:n(r(i))}return Cf=o,Cf}var Sf,x0;function Pu(){if(x0)return Sf;x0=1;var t=ls();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Sf=e,Sf}var Ef,w0;function hb(){if(w0)return Ef;w0=1;var t=XE(),e=Pu();function n(r,o){o=t(o,r);for(var i=0,a=o.length;r!=null&&i<a;)r=r[e(o[i++])];return i&&i==a?r:void 0}return Ef=n,Ef}var If,C0;function YE(){if(C0)return If;C0=1;var t=hb();function e(n,r,o){var i=n==null?void 0:t(n,r);return i===void 0?o:i}return If=e,If}YE();var Af,S0;function rB(){if(S0)return Af;S0=1;function t(e){return e==null}return Af=t,Af}var oB=rB();const iB=An(oB);var Tf,E0;function aB(){if(E0)return Tf;E0=1;var t=Do(),e=qn(),n=jo(),r="[object String]";function o(i){return typeof i=="string"||!e(i)&&n(i)&&t(i)==r}return Tf=o,Tf}var sB=aB();const UE=An(sB);var lB=ub();const Ll=An(lB);var uB=no();const ZE=An(uB);var Ys={exports:{}},Xe={};var I0;function cB(){if(I0)return Xe;I0=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function g(b){if(typeof b=="object"&&b!==null){var y=b.$$typeof;switch(y){case t:switch(b=b.type,b){case n:case o:case r:case u:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case a:case l:case f:case c:case i:return b;default:return y}}case e:return y}}}return Xe.ContextConsumer=a,Xe.ContextProvider=i,Xe.Element=t,Xe.ForwardRef=l,Xe.Fragment=n,Xe.Lazy=f,Xe.Memo=c,Xe.Portal=e,Xe.Profiler=o,Xe.StrictMode=r,Xe.Suspense=u,Xe.SuspenseList=d,Xe.isAsyncMode=function(){return!1},Xe.isConcurrentMode=function(){return!1},Xe.isContextConsumer=function(b){return g(b)===a},Xe.isContextProvider=function(b){return g(b)===i},Xe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Xe.isForwardRef=function(b){return g(b)===l},Xe.isFragment=function(b){return g(b)===n},Xe.isLazy=function(b){return g(b)===f},Xe.isMemo=function(b){return g(b)===c},Xe.isPortal=function(b){return g(b)===e},Xe.isProfiler=function(b){return g(b)===o},Xe.isStrictMode=function(b){return g(b)===r},Xe.isSuspense=function(b){return g(b)===u},Xe.isSuspenseList=function(b){return g(b)===d},Xe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===u||b===d||b===p||typeof b=="object"&&b!==null&&(b.$$typeof===f||b.$$typeof===c||b.$$typeof===i||b.$$typeof===a||b.$$typeof===l||b.$$typeof===m||b.getModuleId!==void 0)},Xe.typeOf=g,Xe}var Ye={};var A0;function dB(){return A0||(A0=1,process.env.NODE_ENV!=="production"&&(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=!1,g=!1,b=!1,y=!1,w=!1,C;C=Symbol.for("react.module.reference");function S(W){return!!(typeof W=="string"||typeof W=="function"||W===n||W===o||w||W===r||W===u||W===d||y||W===p||m||g||b||typeof W=="object"&&W!==null&&(W.$$typeof===f||W.$$typeof===c||W.$$typeof===i||W.$$typeof===a||W.$$typeof===l||W.$$typeof===C||W.getModuleId!==void 0))}function E(W){if(typeof W=="object"&&W!==null){var le=W.$$typeof;switch(le){case t:var Ae=W.type;switch(Ae){case n:case o:case r:case u:case d:return Ae;default:var Ne=Ae&&Ae.$$typeof;switch(Ne){case s:case a:case l:case f:case c:case i:return Ne;default:return le}}case e:return le}}}var T=a,A=i,O=t,M=l,V=n,N=f,k=c,_=e,B=o,L=r,P=u,G=d,j=!1,H=!1;function U(W){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(W){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(W){return E(W)===a}function q(W){return E(W)===i}function Z(W){return typeof W=="object"&&W!==null&&W.$$typeof===t}function X(W){return E(W)===l}function te(W){return E(W)===n}function Y(W){return E(W)===f}function J(W){return E(W)===c}function ie(W){return E(W)===e}function oe(W){return E(W)===o}function re(W){return E(W)===r}function z(W){return E(W)===u}function ue(W){return E(W)===d}Ye.ContextConsumer=T,Ye.ContextProvider=A,Ye.Element=O,Ye.ForwardRef=M,Ye.Fragment=V,Ye.Lazy=N,Ye.Memo=k,Ye.Portal=_,Ye.Profiler=B,Ye.StrictMode=L,Ye.Suspense=P,Ye.SuspenseList=G,Ye.isAsyncMode=U,Ye.isConcurrentMode=Q,Ye.isContextConsumer=$,Ye.isContextProvider=q,Ye.isElement=Z,Ye.isForwardRef=X,Ye.isFragment=te,Ye.isLazy=Y,Ye.isMemo=J,Ye.isPortal=ie,Ye.isProfiler=oe,Ye.isStrictMode=re,Ye.isSuspense=z,Ye.isSuspenseList=ue,Ye.isValidElementType=S,Ye.typeOf=E})()),Ye}var T0;function fB(){return T0||(T0=1,process.env.NODE_ENV==="production"?Ys.exports=cB():Ys.exports=dB()),Ys.exports}fB();var Nf,N0;function JE(){if(N0)return Nf;N0=1;var t=Do(),e=jo(),n="[object Number]";function r(o){return typeof o=="number"||e(o)&&t(o)==n}return Nf=r,Nf}var _f,_0;function hB(){if(_0)return _f;_0=1;var t=JE();function e(n){return t(n)&&n!=+n}return _f=e,_f}var pB=hB();const mB=An(pB);var gB=JE();const bB=An(gB);var Us=function(e){return UE(e)&&e.indexOf("%")===e.length-1},Mn=function(e){return bB(e)&&!mB(e)},Bl=function(e){return Mn(e)||UE(e)};function Im(t){"@babel/helpers - typeof";return Im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Im(t)}var vB=["viewBox","children"],yB=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],O0=["points","pathLength"],Of={svg:vB,polygon:O0,polyline:O0},KE=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],xB=function(e,n,r){return function(o){return e(n,r,o),null}},wB=function(e,n,r){if(!ZE(e)||Im(e)!=="object")return null;var o=null;return Object.keys(e).forEach(function(i){var a=e[i];KE.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=xB(a,n,r))}),o},CB=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},SB=function(e,n,r,o){var i,a=(i=Of?.[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!Ll(e)&&(o&&a.includes(n)||yB.includes(n))||KE.includes(n)},QE=function(e,n,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var o=e;if(I.isValidElement(e)&&(o=e.props),!ZE(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;SB((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},EB=["children","width","height","viewBox","className","style","title","desc"];function Am(){return Am=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Am.apply(this,arguments)}function IB(t,e){if(t==null)return{};var n=AB(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AB(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function TB(t){var e=t.children,n=t.width,r=t.height,o=t.viewBox,i=t.className,a=t.style,s=t.title,l=t.desc,u=IB(t,EB),d=o||{width:n,height:r,x:0,y:0},c=Dr("recharts-surface",i);return I.createElement("svg",Am({},QE(u,!0,"svg"),{className:c,width:n,height:r,style:a,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),I.createElement("title",null,s),I.createElement("desc",null,l),e)}var NB=process.env.NODE_ENV!=="production",Cl=function(e,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(NB&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!e))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,function(){return o[a++]}))}},Rf,R0;function _B(){if(R0)return Rf;R0=1;function t(e,n,r){var o=-1,i=e.length;n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(i);++o<i;)a[o]=e[o+n];return a}return Rf=t,Rf}var Pf,P0;function OB(){if(P0)return Pf;P0=1;var t=_B();function e(n,r,o){var i=n.length;return o=o===void 0?i:o,!r&&o>=i?n:t(n,r,o)}return Pf=e,Pf}var Mf,M0;function eI(){if(M0)return Mf;M0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+t+o+i+"]");function l(u){return s.test(u)}return Mf=l,Mf}var kf,k0;function RB(){if(k0)return kf;k0=1;function t(e){return e.split("")}return kf=t,kf}var Df,D0;function PB(){if(D0)return Df;D0=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=e+n+r,i="\\ufe0e\\ufe0f",a="["+t+"]",s="["+o+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",d="[^"+t+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",m=u+"?",g="["+i+"]?",b="(?:"+p+"(?:"+[d,c,f].join("|")+")"+g+m+")*",y=g+m+b,w="(?:"+[d+s+"?",s,c,f,a].join("|")+")",C=RegExp(l+"(?="+l+")|"+w+y,"g");function S(E){return E.match(C)||[]}return Df=S,Df}var jf,j0;function MB(){if(j0)return jf;j0=1;var t=RB(),e=eI(),n=PB();function r(o){return e(o)?n(o):t(o)}return jf=r,jf}var Lf,L0;function kB(){if(L0)return Lf;L0=1;var t=OB(),e=eI(),n=MB(),r=zE();function o(i){return function(a){a=r(a);var s=e(a)?n(a):void 0,l=s?s[0]:a.charAt(0),u=s?t(s,1).join(""):a.slice(1);return l[i]()+u}}return Lf=o,Lf}var Bf,B0;function DB(){if(B0)return Bf;B0=1;var t=kB(),e=t("toUpperCase");return Bf=e,Bf}var jB=DB();const tI=An(jB);function Zs(t){return function(){return t}}const nI=Math.cos,Fl=Math.sin,zn=Math.sqrt,Gl=Math.PI,Mu=2*Gl,Tm=Math.PI,Nm=2*Tm,yo=1e-6,LB=Nm-yo;function rI(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function BB(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return rI;const n=10**e;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class FB{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?rI:BB(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,r,o){this._append`Q${+e},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(e,n,r,o,i,a){this._append`C${+e},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(e,n,r,o,i){if(e=+e,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-e,u=o-n,d=a-e,c=s-n,f=d*d+c*c;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>yo)if(!(Math.abs(c*l-u*d)>yo)||!i)this._append`L${this._x1=e},${this._y1=n}`;else{let p=r-a,m=o-s,g=l*l+u*u,b=p*p+m*m,y=Math.sqrt(g),w=Math.sqrt(f),C=i*Math.tan((Tm-Math.acos((g+f-b)/(2*y*w)))/2),S=C/w,E=C/y;Math.abs(S-1)>yo&&this._append`L${e+S*d},${n+S*c}`,this._append`A${i},${i},0,0,${+(c*p>d*m)},${this._x1=e+E*l},${this._y1=n+E*u}`}}arc(e,n,r,o,i,a){if(e=+e,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=e+s,d=n+l,c=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>yo||Math.abs(this._y1-d)>yo)&&this._append`L${u},${d}`,r&&(f<0&&(f=f%Nm+Nm),f>LB?this._append`A${r},${r},0,1,${c},${e-s},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=d}`:f>yo&&this._append`A${r},${r},0,${+(f>=Tm)},${c},${this._x1=e+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(e,n,r,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function GB(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new FB(e)}const pb={draw(t,e){const n=zn(e/Gl);t.moveTo(n,0),t.arc(0,0,n,0,Mu)}},$B={draw(t,e){const n=zn(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},oI=zn(1/3),VB=oI*2,WB={draw(t,e){const n=zn(e/VB),r=n*oI;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},HB={draw(t,e){const n=zn(e),r=-n/2;t.rect(r,r,n,n)}},qB=.8908130915292852,iI=Fl(Gl/10)/Fl(7*Gl/10),zB=Fl(Mu/10)*iI,XB=-nI(Mu/10)*iI,YB={draw(t,e){const n=zn(e*qB),r=zB*n,o=XB*n;t.moveTo(0,-n),t.lineTo(r,o);for(let i=1;i<5;++i){const a=Mu*i/5,s=nI(a),l=Fl(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*o,l*r+s*o)}t.closePath()}},Ff=zn(3),UB={draw(t,e){const n=-zn(e/(Ff*3));t.moveTo(0,n*2),t.lineTo(-Ff*n,-n),t.lineTo(Ff*n,-n),t.closePath()}},mn=-.5,gn=zn(3)/2,_m=1/zn(12),ZB=(_m/2+1)*3,JB={draw(t,e){const n=zn(e/ZB),r=n/2,o=n*_m,i=r,a=n*_m+n,s=-i,l=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(s,l),t.lineTo(mn*r-gn*o,gn*r+mn*o),t.lineTo(mn*i-gn*a,gn*i+mn*a),t.lineTo(mn*s-gn*l,gn*s+mn*l),t.lineTo(mn*r+gn*o,mn*o-gn*r),t.lineTo(mn*i+gn*a,mn*a-gn*i),t.lineTo(mn*s+gn*l,mn*l-gn*s),t.closePath()}};function KB(t,e){let n=null,r=GB(o);t=typeof t=="function"?t:Zs(t||pb),e=typeof e=="function"?e:Zs(e===void 0?64:+e);function o(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(t=typeof i=="function"?i:Zs(i),o):t},o.size=function(i){return arguments.length?(e=typeof i=="function"?i:Zs(+i),o):e},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function ja(t){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ja(t)}var QB=["type","size","sizeType"];function Om(){return Om=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Om.apply(this,arguments)}function F0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function G0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F0(Object(n),!0).forEach(function(r){e5(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function e5(t,e,n){return e=t5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t5(t){var e=n5(t,"string");return ja(e)=="symbol"?e:e+""}function n5(t,e){if(ja(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function r5(t,e){if(t==null)return{};var n=o5(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function o5(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}var aI={symbolCircle:pb,symbolCross:$B,symbolDiamond:WB,symbolSquare:HB,symbolStar:YB,symbolTriangle:UB,symbolWye:JB},i5=Math.PI/180,a5=function(e){var n="symbol".concat(tI(e));return aI[n]||pb},s5=function(e,n,r){if(n==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var o=18*i5;return 1.25*e*e*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},l5=function(e,n){aI["symbol".concat(tI(e))]=n},sI=function(e){var n=e.type,r=n===void 0?"circle":n,o=e.size,i=o===void 0?64:o,a=e.sizeType,s=a===void 0?"area":a,l=r5(e,QB),u=G0(G0({},l),{},{type:r,size:i,sizeType:s}),d=function(){var b=a5(r),y=KB().type(b).size(s5(i,s,r));return y()},c=u.className,f=u.cx,p=u.cy,m=QE(u,!0);return f===+f&&p===+p&&i===+i?I.createElement("path",Om({},m,{className:Dr("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(p,")"),d:d()})):null};sI.registerSymbol=l5;function Ci(t){"@babel/helpers - typeof";return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(t)}function Rm(){return Rm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rm.apply(this,arguments)}function $0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function u5(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$0(Object(n),!0).forEach(function(r){La(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function c5(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uI(r.key),r)}}function f5(t,e,n){return e&&d5(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function h5(t,e,n){return e=$l(e),p5(t,lI()?Reflect.construct(e,n||[],$l(t).constructor):e.apply(t,n))}function p5(t,e){if(e&&(Ci(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m5(t)}function m5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lI=function(){return!!t})()}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$l(t)}function g5(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pm(t,e)}function Pm(t,e){return Pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Pm(t,e)}function La(t,e,n){return e=uI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uI(t){var e=b5(t,"string");return Ci(e)=="symbol"?e:e+""}function b5(t,e){if(Ci(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ci(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var bn=32,mb=(function(t){function e(){return c5(this,e),h5(this,e,arguments)}return g5(e,t),f5(e,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=bn/2,a=bn/6,s=bn/3,l=r.inactive?o:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:bn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(s,`
2
2
  A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
3
3
  H`).concat(bn,"M").concat(2*s,",").concat(i,`
4
- A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(bn/8,"h").concat(bn,"v").concat(bn*3/4,"h").concat(-bn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var u=c5({},r);return delete u.legendIcon,I.cloneElement(r.legendIcon,u)}return I.createElement(sI,{fill:l,cx:i,cy:i,size:bn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,l=o.formatter,u=o.inactiveColor,d={x:0,y:0,width:bn,height:bn},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var g=p.formatter||l,b=Dr(La(La({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=Ll(p.value)?null:p.value;Cl(!Ll(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return I.createElement("li",Rm({className:b,style:c,key:"legend-item-".concat(m)},CB(r.props,p,m)),I.createElement(NB,{width:a,height:a,viewBox:d,style:f},r.renderIcon(p)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},g?g(y,p,m):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(I.PureComponent);La(mb,"displayName","Legend");La(mb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Gf,V0;function y5(){if(V0)return Gf;V0=1;var t=Ou();function e(){this.__data__=new t,this.size=0}return Gf=e,Gf}var $f,W0;function x5(){if(W0)return $f;W0=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return $f=t,$f}var Vf,H0;function w5(){if(H0)return Vf;H0=1;function t(e){return this.__data__.get(e)}return Vf=t,Vf}var Wf,q0;function C5(){if(q0)return Wf;q0=1;function t(e){return this.__data__.has(e)}return Wf=t,Wf}var Hf,z0;function S5(){if(z0)return Hf;z0=1;var t=Ou(),e=db(),n=fb(),r=200;function o(i,a){var s=this.__data__;if(s instanceof t){var l=s.__data__;if(!e||l.length<r-1)return l.push([i,a]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(i,a),this.size=s.size,this}return Hf=o,Hf}var qf,X0;function cI(){if(X0)return qf;X0=1;var t=Ou(),e=y5(),n=x5(),r=w5(),o=C5(),i=S5();function a(s){var l=this.__data__=new t(s);this.size=l.size}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,qf=a,qf}var zf,Y0;function E5(){if(Y0)return zf;Y0=1;var t="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,t),this}return zf=e,zf}var Xf,U0;function I5(){if(U0)return Xf;U0=1;function t(e){return this.__data__.has(e)}return Xf=t,Xf}var Yf,Z0;function dI(){if(Z0)return Yf;Z0=1;var t=fb(),e=E5(),n=I5();function r(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new t;++i<a;)this.add(o[i])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Yf=r,Yf}var Uf,J0;function A5(){if(J0)return Uf;J0=1;function t(e,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(e[r],r,e))return!0;return!1}return Uf=t,Uf}var Zf,K0;function fI(){if(K0)return Zf;K0=1;function t(e,n){return e.has(n)}return Zf=t,Zf}var Jf,Q0;function hI(){if(Q0)return Jf;Q0=1;var t=dI(),e=A5(),n=fI(),r=1,o=2;function i(a,s,l,u,d,c){var f=l&r,p=a.length,m=s.length;if(p!=m&&!(f&&m>p))return!1;var g=c.get(a),b=c.get(s);if(g&&b)return g==s&&b==a;var y=-1,w=!0,C=l&o?new t:void 0;for(c.set(a,s),c.set(s,a);++y<p;){var S=a[y],E=s[y];if(u)var T=f?u(E,S,y,s,a,c):u(S,E,y,a,s,c);if(T!==void 0){if(T)continue;w=!1;break}if(C){if(!e(s,function(A,O){if(!n(C,O)&&(S===A||d(S,A,l,u,c)))return C.push(O)})){w=!1;break}}else if(!(S===E||d(S,E,l,u,c))){w=!1;break}}return c.delete(a),c.delete(s),w}return Jf=i,Jf}var Kf,e1;function T5(){if(e1)return Kf;e1=1;var t=vr(),e=t.Uint8Array;return Kf=e,Kf}var Qf,t1;function N5(){if(t1)return Qf;t1=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(o,i){r[++n]=[i,o]}),r}return Qf=t,Qf}var eh,n1;function gb(){if(n1)return eh;n1=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(o){r[++n]=o}),r}return eh=t,eh}var th,r1;function _5(){if(r1)return th;r1=1;var t=ss(),e=T5(),n=cb(),r=hI(),o=N5(),i=gb(),a=1,s=2,l="[object Boolean]",u="[object Date]",d="[object Error]",c="[object Map]",f="[object Number]",p="[object RegExp]",m="[object Set]",g="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",C=t?t.prototype:void 0,S=C?C.valueOf:void 0;function E(T,A,O,M,V,N,k){switch(O){case w:if(T.byteLength!=A.byteLength||T.byteOffset!=A.byteOffset)return!1;T=T.buffer,A=A.buffer;case y:return!(T.byteLength!=A.byteLength||!N(new e(T),new e(A)));case l:case u:case f:return n(+T,+A);case d:return T.name==A.name&&T.message==A.message;case p:case g:return T==A+"";case c:var _=o;case m:var B=M&a;if(_||(_=i),T.size!=A.size&&!B)return!1;var L=k.get(T);if(L)return L==A;M|=s,k.set(T,A);var P=r(_(T),_(A),M,V,N,k);return k.delete(T),P;case b:if(S)return S.call(T)==S.call(A)}return!1}return th=E,th}var nh,o1;function pI(){if(o1)return nh;o1=1;function t(e,n){for(var r=-1,o=n.length,i=e.length;++r<o;)e[i+r]=n[r];return e}return nh=t,nh}var rh,i1;function O5(){if(i1)return rh;i1=1;var t=pI(),e=qn();function n(r,o,i){var a=o(r);return e(r)?a:t(a,i(r))}return rh=n,rh}var oh,a1;function R5(){if(a1)return oh;a1=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=0,a=[];++r<o;){var s=e[r];n(s,r,e)&&(a[i++]=s)}return a}return oh=t,oh}var ih,s1;function P5(){if(s1)return ih;s1=1;function t(){return[]}return ih=t,ih}var ah,l1;function M5(){if(l1)return ah;l1=1;var t=R5(),e=P5(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),t(o(a),function(s){return r.call(a,s)}))}:e;return ah=i,ah}var sh,u1;function k5(){if(u1)return sh;u1=1;function t(e,n){for(var r=-1,o=Array(e);++r<e;)o[r]=n(r);return o}return sh=t,sh}var lh,c1;function D5(){if(c1)return lh;c1=1;var t=Do(),e=jo(),n="[object Arguments]";function r(o){return e(o)&&t(o)==n}return lh=r,lh}var uh,d1;function bb(){if(d1)return uh;d1=1;var t=D5(),e=jo(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t((function(){return arguments})())?t:function(a){return e(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return uh=i,uh}var ba={exports:{}},ch,f1;function j5(){if(f1)return ch;f1=1;function t(){return!1}return ch=t,ch}ba.exports;var h1;function mI(){return h1||(h1=1,(function(t,e){var n=vr(),r=j5(),o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;t.exports=u})(ba,ba.exports)),ba.exports}var dh,p1;function vb(){if(p1)return dh;p1=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o??t,!!o&&(i=="number"||i!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<o}return dh=n,dh}var fh,m1;function yb(){if(m1)return fh;m1=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return fh=e,fh}var hh,g1;function L5(){if(g1)return hh;g1=1;var t=Do(),e=yb(),n=jo(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",d="[object Number]",c="[object Object]",f="[object RegExp]",p="[object Set]",m="[object String]",g="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",C="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",V="[object Uint32Array]",N={};N[w]=N[C]=N[S]=N[E]=N[T]=N[A]=N[O]=N[M]=N[V]=!0,N[r]=N[o]=N[b]=N[i]=N[y]=N[a]=N[s]=N[l]=N[u]=N[d]=N[c]=N[f]=N[p]=N[m]=N[g]=!1;function k(_){return n(_)&&e(_.length)&&!!N[t(_)]}return hh=k,hh}var ph,b1;function gI(){if(b1)return ph;b1=1;function t(e){return function(n){return e(n)}}return ph=t,ph}var va={exports:{}};va.exports;var v1;function B5(){return v1||(v1=1,(function(t,e){var n=WE(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,a=i&&n.process,s=(function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();t.exports=s})(va,va.exports)),va.exports}var mh,y1;function bI(){if(y1)return mh;y1=1;var t=L5(),e=gI(),n=B5(),r=n&&n.isTypedArray,o=r?e(r):t;return mh=o,mh}var gh,x1;function F5(){if(x1)return gh;x1=1;var t=k5(),e=bb(),n=qn(),r=mI(),o=vb(),i=bI(),a=Object.prototype,s=a.hasOwnProperty;function l(u,d){var c=n(u),f=!c&&e(u),p=!c&&!f&&r(u),m=!c&&!f&&!p&&i(u),g=c||f||p||m,b=g?t(u.length,String):[],y=b.length;for(var w in u)(d||s.call(u,w))&&!(g&&(w=="length"||p&&(w=="offset"||w=="parent")||m&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||o(w,y)))&&b.push(w);return b}return gh=l,gh}var bh,w1;function G5(){if(w1)return bh;w1=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||t;return n===o}return bh=e,bh}var vh,C1;function $5(){if(C1)return vh;C1=1;function t(e,n){return function(r){return e(n(r))}}return vh=t,vh}var yh,S1;function V5(){if(S1)return yh;S1=1;var t=$5(),e=t(Object.keys,Object);return yh=e,yh}var xh,E1;function W5(){if(E1)return xh;E1=1;var t=G5(),e=V5(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!t(i))return e(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return xh=o,xh}var wh,I1;function ku(){if(I1)return wh;I1=1;var t=ub(),e=yb();function n(r){return r!=null&&e(r.length)&&!t(r)}return wh=n,wh}var Ch,A1;function xb(){if(A1)return Ch;A1=1;var t=F5(),e=W5(),n=ku();function r(o){return n(o)?t(o):e(o)}return Ch=r,Ch}var Sh,T1;function H5(){if(T1)return Sh;T1=1;var t=O5(),e=M5(),n=xb();function r(o){return t(o,n,e)}return Sh=r,Sh}var Eh,N1;function q5(){if(N1)return Eh;N1=1;var t=H5(),e=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,l,u,d){var c=s&e,f=t(i),p=f.length,m=t(a),g=m.length;if(p!=g&&!c)return!1;for(var b=p;b--;){var y=f[b];if(!(c?y in a:r.call(a,y)))return!1}var w=d.get(i),C=d.get(a);if(w&&C)return w==a&&C==i;var S=!0;d.set(i,a),d.set(a,i);for(var E=c;++b<p;){y=f[b];var T=i[y],A=a[y];if(l)var O=c?l(A,T,y,a,i,d):l(T,A,y,i,a,d);if(!(O===void 0?T===A||u(T,A,s,l,d):O)){S=!1;break}E||(E=y=="constructor")}if(S&&!E){var M=i.constructor,V=a.constructor;M!=V&&"constructor"in i&&"constructor"in a&&!(typeof M=="function"&&M instanceof M&&typeof V=="function"&&V instanceof V)&&(S=!1)}return d.delete(i),d.delete(a),S}return Eh=o,Eh}var Ih,_1;function z5(){if(_1)return Ih;_1=1;var t=Lo(),e=vr(),n=t(e,"DataView");return Ih=n,Ih}var Ah,O1;function X5(){if(O1)return Ah;O1=1;var t=Lo(),e=vr(),n=t(e,"Promise");return Ah=n,Ah}var Th,R1;function vI(){if(R1)return Th;R1=1;var t=Lo(),e=vr(),n=t(e,"Set");return Th=n,Th}var Nh,P1;function Y5(){if(P1)return Nh;P1=1;var t=Lo(),e=vr(),n=t(e,"WeakMap");return Nh=n,Nh}var _h,M1;function U5(){if(M1)return _h;M1=1;var t=z5(),e=db(),n=X5(),r=vI(),o=Y5(),i=Do(),a=HE(),s="[object Map]",l="[object Object]",u="[object Promise]",d="[object Set]",c="[object WeakMap]",f="[object DataView]",p=a(t),m=a(e),g=a(n),b=a(r),y=a(o),w=i;return(t&&w(new t(new ArrayBuffer(1)))!=f||e&&w(new e)!=s||n&&w(n.resolve())!=u||r&&w(new r)!=d||o&&w(new o)!=c)&&(w=function(C){var S=i(C),E=S==l?C.constructor:void 0,T=E?a(E):"";if(T)switch(T){case p:return f;case m:return s;case g:return u;case b:return d;case y:return c}return S}),_h=w,_h}var Oh,k1;function Z5(){if(k1)return Oh;k1=1;var t=cI(),e=hI(),n=_5(),r=q5(),o=U5(),i=qn(),a=mI(),s=bI(),l=1,u="[object Arguments]",d="[object Array]",c="[object Object]",f=Object.prototype,p=f.hasOwnProperty;function m(g,b,y,w,C,S){var E=i(g),T=i(b),A=E?d:o(g),O=T?d:o(b);A=A==u?c:A,O=O==u?c:O;var M=A==c,V=O==c,N=A==O;if(N&&a(g)){if(!a(b))return!1;E=!0,M=!1}if(N&&!M)return S||(S=new t),E||s(g)?e(g,b,y,w,C,S):n(g,b,A,y,w,C,S);if(!(y&l)){var k=M&&p.call(g,"__wrapped__"),_=V&&p.call(b,"__wrapped__");if(k||_){var B=k?g.value():g,L=_?b.value():b;return S||(S=new t),C(B,L,y,w,S)}}return N?(S||(S=new t),r(g,b,y,w,C,S)):!1}return Oh=m,Oh}var Rh,D1;function yI(){if(D1)return Rh;D1=1;var t=Z5(),e=jo();function n(r,o,i,a,s){return r===o?!0:r==null||o==null||!e(r)&&!e(o)?r!==r&&o!==o:t(r,o,i,a,n,s)}return Rh=n,Rh}var Ph,j1;function J5(){if(j1)return Ph;j1=1;var t=cI(),e=yI(),n=1,r=2;function o(i,a,s,l){var u=s.length,d=u,c=!l;if(i==null)return!d;for(i=Object(i);u--;){var f=s[u];if(c&&f[2]?f[1]!==i[f[0]]:!(f[0]in i))return!1}for(;++u<d;){f=s[u];var p=f[0],m=i[p],g=f[1];if(c&&f[2]){if(m===void 0&&!(p in i))return!1}else{var b=new t;if(l)var y=l(m,g,p,i,a,b);if(!(y===void 0?e(g,m,n|r,l,b):y))return!1}}return!0}return Ph=o,Ph}var Mh,L1;function xI(){if(L1)return Mh;L1=1;var t=no();function e(n){return n===n&&!t(n)}return Mh=e,Mh}var kh,B1;function K5(){if(B1)return kh;B1=1;var t=xI(),e=xb();function n(r){for(var o=e(r),i=o.length;i--;){var a=o[i],s=r[a];o[i]=[a,s,t(s)]}return o}return kh=n,kh}var Dh,F1;function wI(){if(F1)return Dh;F1=1;function t(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}return Dh=t,Dh}var jh,G1;function Q5(){if(G1)return jh;G1=1;var t=J5(),e=K5(),n=wI();function r(o){var i=e(o);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(a){return a===o||t(a,o,i)}}return jh=r,jh}var Lh,$1;function eF(){if($1)return Lh;$1=1;function t(e,n){return e!=null&&n in Object(e)}return Lh=t,Lh}var Bh,V1;function tF(){if(V1)return Bh;V1=1;var t=XE(),e=bb(),n=qn(),r=vb(),o=yb(),i=Pu();function a(s,l,u){l=t(l,s);for(var d=-1,c=l.length,f=!1;++d<c;){var p=i(l[d]);if(!(f=s!=null&&u(s,p)))break;s=s[p]}return f||++d!=c?f:(c=s==null?0:s.length,!!c&&o(c)&&r(p,c)&&(n(s)||e(s)))}return Bh=a,Bh}var Fh,W1;function nF(){if(W1)return Fh;W1=1;var t=eF(),e=tF();function n(r,o){return r!=null&&e(r,o,t)}return Fh=n,Fh}var Gh,H1;function rF(){if(H1)return Gh;H1=1;var t=yI(),e=YE(),n=nF(),r=lb(),o=xI(),i=wI(),a=Pu(),s=1,l=2;function u(d,c){return r(d)&&o(c)?i(a(d),c):function(f){var p=e(f,d);return p===void 0&&p===c?n(f,d):t(c,p,s|l)}}return Gh=u,Gh}var $h,q1;function Du(){if(q1)return $h;q1=1;function t(e){return e}return $h=t,$h}var Vh,z1;function oF(){if(z1)return Vh;z1=1;function t(e){return function(n){return n?.[e]}}return Vh=t,Vh}var Wh,X1;function iF(){if(X1)return Wh;X1=1;var t=hb();function e(n){return function(r){return t(r,n)}}return Wh=e,Wh}var Hh,Y1;function aF(){if(Y1)return Hh;Y1=1;var t=oF(),e=iF(),n=lb(),r=Pu();function o(i){return n(i)?t(r(i)):e(i)}return Hh=o,Hh}var qh,U1;function CI(){if(U1)return qh;U1=1;var t=Q5(),e=rF(),n=Du(),r=qn(),o=aF();function i(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?e(a[0],a[1]):t(a):o(a)}return qh=i,qh}var zh,Z1;function sF(){if(Z1)return zh;Z1=1;function t(e,n,r,o){for(var i=e.length,a=r+(o?1:-1);o?a--:++a<i;)if(n(e[a],a,e))return a;return-1}return zh=t,zh}var Xh,J1;function lF(){if(J1)return Xh;J1=1;function t(e){return e!==e}return Xh=t,Xh}var Yh,K1;function uF(){if(K1)return Yh;K1=1;function t(e,n,r){for(var o=r-1,i=e.length;++o<i;)if(e[o]===n)return o;return-1}return Yh=t,Yh}var Uh,Q1;function cF(){if(Q1)return Uh;Q1=1;var t=sF(),e=lF(),n=uF();function r(o,i,a){return i===i?n(o,i,a):t(o,e,a)}return Uh=r,Uh}var Zh,ex;function dF(){if(ex)return Zh;ex=1;var t=cF();function e(n,r){var o=n==null?0:n.length;return!!o&&t(n,r,0)>-1}return Zh=e,Zh}var Jh,tx;function fF(){if(tx)return Jh;tx=1;function t(e,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;)if(r(n,e[o]))return!0;return!1}return Jh=t,Jh}var Kh,nx;function hF(){if(nx)return Kh;nx=1;function t(){}return Kh=t,Kh}var Qh,rx;function pF(){if(rx)return Qh;rx=1;var t=vI(),e=hF(),n=gb(),r=1/0,o=t&&1/n(new t([,-0]))[1]==r?function(i){return new t(i)}:e;return Qh=o,Qh}var ep,ox;function mF(){if(ox)return ep;ox=1;var t=dI(),e=dF(),n=fF(),r=fI(),o=pF(),i=gb(),a=200;function s(l,u,d){var c=-1,f=e,p=l.length,m=!0,g=[],b=g;if(d)m=!1,f=n;else if(p>=a){var y=u?null:o(l);if(y)return i(y);m=!1,f=r,b=new t}else b=u?[]:g;e:for(;++c<p;){var w=l[c],C=u?u(w):w;if(w=d||w!==0?w:0,m&&C===C){for(var S=b.length;S--;)if(b[S]===C)continue e;u&&b.push(C),g.push(w)}else f(b,C,d)||(b!==g&&b.push(C),g.push(w))}return g}return ep=s,ep}var tp,ix;function gF(){if(ix)return tp;ix=1;var t=CI(),e=mF();function n(r,o){return r&&r.length?e(r,t(o,2)):[]}return tp=n,tp}var bF=gF();const ax=An(bF);function SI(t,e,n){return e===!0?ax(t,n):Ll(e)?ax(t,e):t}function Si(t){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(t)}var vF=["ref"];function sx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sx(Object(n),!0).forEach(function(r){ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lx(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,II(r.key),r)}}function xF(t,e,n){return e&&lx(t.prototype,e),n&&lx(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function wF(t,e,n){return e=Vl(e),CF(t,EI()?Reflect.construct(e,n||[],Vl(t).constructor):e.apply(t,n))}function CF(t,e){if(e&&(Si(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SF(t)}function SF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EI=function(){return!!t})()}function Vl(t){return Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vl(t)}function EF(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mm(t,e)}function Mm(t,e){return Mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Mm(t,e)}function ju(t,e,n){return e=II(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function II(t){var e=IF(t,"string");return Si(e)=="symbol"?e:e+""}function IF(t,e){if(Si(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function AF(t,e){if(t==null)return{};var n=TF(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function TF(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function NF(t){return t.value}function _F(t,e){if(I.isValidElement(t))return I.cloneElement(t,e);if(typeof t=="function")return I.createElement(t,e);e.ref;var n=AF(e,vF);return I.createElement(mb,n)}var ux=1,wb=(function(t){function e(){var n;yF(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=wF(this,e,[].concat(o)),ju(n,"lastBoundingBox",{width:-1,height:-1}),n}return EF(e,t),xF(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>ux||Math.abs(o.height-this.lastBoundingBox.height)>ux)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Or({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,u=o.chartWidth,d=o.chartHeight,c,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();f={top:((d||0)-m.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Or(Or({},c),f)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,u=o.payloadUniqBy,d=o.payload,c=Or(Or({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return I.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},_F(i,Or(Or({},this.props),{},{payload:SI(d,u,NF)})))}}],[{key:"getWithHeight",value:function(r,o){var i=Or(Or({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&Mn(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])})(I.PureComponent);ju(wb,"displayName","Legend");ju(wb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var np,cx;function OF(){if(cx)return np;cx=1;var t=ss(),e=bb(),n=qn(),r=t?t.isConcatSpreadable:void 0;function o(i){return n(i)||e(i)||!!(r&&i&&i[r])}return np=o,np}var rp,dx;function RF(){if(dx)return rp;dx=1;var t=pI(),e=OF();function n(r,o,i,a,s){var l=-1,u=r.length;for(i||(i=e),s||(s=[]);++l<u;){var d=r[l];o>0&&i(d)?o>1?n(d,o-1,i,a,s):t(s,d):a||(s[s.length]=d)}return s}return rp=n,rp}var op,fx;function PF(){if(fx)return op;fx=1;function t(e){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),l=s.length;l--;){var u=s[e?l:++i];if(r(a[u],u,a)===!1)break}return n}}return op=t,op}var ip,hx;function MF(){if(hx)return ip;hx=1;var t=PF(),e=t();return ip=e,ip}var ap,px;function kF(){if(px)return ap;px=1;var t=MF(),e=xb();function n(r,o){return r&&t(r,o,e)}return ap=n,ap}var sp,mx;function DF(){if(mx)return sp;mx=1;var t=ku();function e(n,r){return function(o,i){if(o==null)return o;if(!t(o))return n(o,i);for(var a=o.length,s=r?a:-1,l=Object(o);(r?s--:++s<a)&&i(l[s],s,l)!==!1;);return o}}return sp=e,sp}var lp,gx;function jF(){if(gx)return lp;gx=1;var t=kF(),e=DF(),n=e(t);return lp=n,lp}var up,bx;function LF(){if(bx)return up;bx=1;var t=jF(),e=ku();function n(r,o){var i=-1,a=e(r)?Array(r.length):[];return t(r,function(s,l,u){a[++i]=o(s,l,u)}),a}return up=n,up}var cp,vx;function BF(){if(vx)return cp;vx=1;function t(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}return cp=t,cp}var dp,yx;function FF(){if(yx)return dp;yx=1;var t=ls();function e(n,r){if(n!==r){var o=n!==void 0,i=n===null,a=n===n,s=t(n),l=r!==void 0,u=r===null,d=r===r,c=t(r);if(!u&&!c&&!s&&n>r||s&&l&&d&&!u&&!c||i&&l&&d||!o&&d||!a)return 1;if(!i&&!s&&!c&&n<r||c&&o&&a&&!i&&!s||u&&o&&a||!l&&a||!d)return-1}return 0}return dp=e,dp}var fp,xx;function GF(){if(xx)return fp;xx=1;var t=FF();function e(n,r,o){for(var i=-1,a=n.criteria,s=r.criteria,l=a.length,u=o.length;++i<l;){var d=t(a[i],s[i]);if(d){if(i>=u)return d;var c=o[i];return d*(c=="desc"?-1:1)}}return n.index-r.index}return fp=e,fp}var hp,wx;function $F(){if(wx)return hp;wx=1;var t=qE(),e=hb(),n=CI(),r=LF(),o=BF(),i=gI(),a=GF(),s=Du(),l=qn();function u(d,c,f){c.length?c=t(c,function(g){return l(g)?function(b){return e(b,g.length===1?g[0]:g)}:g}):c=[s];var p=-1;c=t(c,i(n));var m=r(d,function(g,b,y){var w=t(c,function(C){return C(g)});return{criteria:w,index:++p,value:g}});return o(m,function(g,b){return a(g,b,f)})}return hp=u,hp}var pp,Cx;function VF(){if(Cx)return pp;Cx=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return pp=t,pp}var mp,Sx;function WF(){if(Sx)return mp;Sx=1;var t=VF(),e=Math.max;function n(r,o,i){return o=e(o===void 0?r.length-1:o,0),function(){for(var a=arguments,s=-1,l=e(a.length-o,0),u=Array(l);++s<l;)u[s]=a[o+s];s=-1;for(var d=Array(o+1);++s<o;)d[s]=a[s];return d[o]=i(u),t(r,this,d)}}return mp=n,mp}var gp,Ex;function HF(){if(Ex)return gp;Ex=1;function t(e){return function(){return e}}return gp=t,gp}var bp,Ix;function qF(){if(Ix)return bp;Ix=1;var t=Lo(),e=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return bp=e,bp}var vp,Ax;function zF(){if(Ax)return vp;Ax=1;var t=HF(),e=qF(),n=Du(),r=e?function(o,i){return e(o,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return vp=r,vp}var yp,Tx;function XF(){if(Tx)return yp;Tx=1;var t=800,e=16,n=Date.now;function r(o){var i=0,a=0;return function(){var s=n(),l=e-(s-a);if(a=s,l>0){if(++i>=t)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return yp=r,yp}var xp,Nx;function YF(){if(Nx)return xp;Nx=1;var t=zF(),e=XF(),n=e(t);return xp=n,xp}var wp,_x;function UF(){if(_x)return wp;_x=1;var t=Du(),e=WF(),n=YF();function r(o,i){return n(e(o,i,t),o+"")}return wp=r,wp}var Cp,Ox;function ZF(){if(Ox)return Cp;Ox=1;var t=cb(),e=ku(),n=vb(),r=no();function o(i,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?e(s)&&n(a,s.length):l=="string"&&a in s)?t(s[a],i):!1}return Cp=o,Cp}var Sp,Rx;function JF(){if(Rx)return Sp;Rx=1;var t=RF(),e=$F(),n=UF(),r=ZF(),o=n(function(i,a){if(i==null)return[];var s=a.length;return s>1&&r(i,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),e(i,t(a,1),[])});return Sp=o,Sp}var KF=JF();const QF=An(KF);function Ba(t){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(t)}function km(){return km=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},km.apply(this,arguments)}function e3(t,e){return o3(t)||r3(t,e)||n3(t,e)||t3()}function t3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n3(t,e){if(t){if(typeof t=="string")return Px(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Px(t,e)}}function Px(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function o3(t){if(Array.isArray(t))return t}function Mx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ep(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mx(Object(n),!0).forEach(function(r){i3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function i3(t,e,n){return e=a3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a3(t){var e=s3(t,"string");return Ba(e)=="symbol"?e:e+""}function s3(t,e){if(Ba(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ba(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function l3(t){return Array.isArray(t)&&Bl(t[0])&&Bl(t[1])?t.join(" ~ "):t}var u3=function(e){var n=e.separator,r=n===void 0?" : ":n,o=e.contentStyle,i=o===void 0?{}:o,a=e.itemStyle,s=a===void 0?{}:a,l=e.labelStyle,u=l===void 0?{}:l,d=e.payload,c=e.formatter,f=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,g=e.label,b=e.labelFormatter,y=e.accessibilityLayer,w=y===void 0?!1:y,C=function(){if(d&&d.length){var k={padding:0,margin:0},_=(f?QF(d,f):d).map(function(B,L){if(B.type==="none")return null;var P=Ep({display:"block",paddingTop:4,paddingBottom:4,color:B.color||"#000"},s),G=B.formatter||c||l3,j=B.value,H=B.name,U=j,Q=H;if(G&&U!=null&&Q!=null){var $=G(j,H,B,L,d);if(Array.isArray($)){var q=e3($,2);U=q[0],Q=q[1]}else U=$}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:P},Bl(Q)?I.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,Bl(Q)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},U),I.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:k},_)}return null},S=Ep({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),E=Ep({margin:0},u),T=!aB(g),A=T?g:"",O=Dr("recharts-default-tooltip",p),M=Dr("recharts-tooltip-label",m);T&&b&&d!==void 0&&d!==null&&(A=b(g,d));var V=w?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",km({className:O,style:S},V),I.createElement("p",{className:M,style:E},I.isValidElement(A)?A:"".concat(A)),C())};function Fa(t){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(t)}function Js(t,e,n){return e=c3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c3(t){var e=d3(t,"string");return Fa(e)=="symbol"?e:e+""}function d3(t,e){if(Fa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Fa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ia="recharts-tooltip-wrapper",f3={visibility:"hidden"};function h3(t){var e=t.coordinate,n=t.translateX,r=t.translateY;return Dr(ia,Js(Js(Js(Js({},"".concat(ia,"-right"),Mn(n)&&e&&Mn(e.x)&&n>=e.x),"".concat(ia,"-left"),Mn(n)&&e&&Mn(e.x)&&n<e.x),"".concat(ia,"-bottom"),Mn(r)&&e&&Mn(e.y)&&r>=e.y),"".concat(ia,"-top"),Mn(r)&&e&&Mn(e.y)&&r<e.y))}function kx(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,s=t.tooltipDimension,l=t.viewBox,u=t.viewBoxDimension;if(i&&Mn(i[r]))return i[r];var d=n[r]-s-o,c=n[r]+o;if(e[r])return a[r]?d:c;if(a[r]){var f=d,p=l[r];return f<p?Math.max(c,l[r]):Math.max(d,l[r])}var m=c+s,g=l[r]+u;return m>g?Math.max(d,l[r]):Math.max(c,l[r])}function p3(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return{transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}function m3(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.offsetTopLeft,o=t.position,i=t.reverseDirection,a=t.tooltipBox,s=t.useTranslate3d,l=t.viewBox,u,d,c;return a.height>0&&a.width>0&&n?(d=kx({allowEscapeViewBox:e,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),c=kx({allowEscapeViewBox:e,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=p3({translateX:d,translateY:c,useTranslate3d:s})):u=f3,{cssProperties:u,cssClasses:h3({translateX:d,translateY:c,coordinate:n})}}function Ei(t){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ei(t)}function Dx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function jx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dx(Object(n),!0).forEach(function(r){jm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function g3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,TI(r.key),r)}}function v3(t,e,n){return e&&b3(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function y3(t,e,n){return e=Wl(e),x3(t,AI()?Reflect.construct(e,n||[],Wl(t).constructor):e.apply(t,n))}function x3(t,e){if(e&&(Ei(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w3(t)}function w3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AI=function(){return!!t})()}function Wl(t){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wl(t)}function C3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dm(t,e)}function Dm(t,e){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Dm(t,e)}function jm(t,e,n){return e=TI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TI(t){var e=S3(t,"string");return Ei(e)=="symbol"?e:e+""}function S3(t,e){if(Ei(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ei(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Lx=1,E3=(function(t){function e(){var n;g3(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=y3(this,e,[].concat(o)),jm(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),jm(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return C3(e,t),v3(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Lx||Math.abs(r.height-this.state.lastBoundingBox.height)>Lx)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.children,d=o.coordinate,c=o.hasPayload,f=o.isAnimationActive,p=o.offset,m=o.position,g=o.reverseDirection,b=o.useTranslate3d,y=o.viewBox,w=o.wrapperStyle,C=m3({allowEscapeViewBox:a,coordinate:d,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),S=C.cssClasses,E=C.cssProperties,T=jx(jx({transition:f&&i?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},w);return I.createElement("div",{tabIndex:-1,className:S,style:T,ref:function(O){r.wrapperNode=O}},u)}}])})(I.PureComponent),I3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},A3={isSsr:I3()};function Ii(t){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(t)}function Bx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Fx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bx(Object(n),!0).forEach(function(r){Cb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function T3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_I(r.key),r)}}function _3(t,e,n){return e&&N3(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function O3(t,e,n){return e=Hl(e),R3(t,NI()?Reflect.construct(e,n||[],Hl(t).constructor):e.apply(t,n))}function R3(t,e){if(e&&(Ii(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P3(t)}function P3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NI=function(){return!!t})()}function Hl(t){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(t)}function M3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lm(t,e)}function Lm(t,e){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Lm(t,e)}function Cb(t,e,n){return e=_I(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _I(t){var e=k3(t,"string");return Ii(e)=="symbol"?e:e+""}function k3(t,e){if(Ii(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ii(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function D3(t){return t.dataKey}function j3(t,e){return I.isValidElement(t)?I.cloneElement(t,e):typeof t=="function"?I.createElement(t,e):I.createElement(u3,e)}var Sb=(function(t){function e(){return T3(this,e),O3(this,e,arguments)}return M3(e,t),_3(e,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.content,d=o.coordinate,c=o.filterNull,f=o.isAnimationActive,p=o.offset,m=o.payload,g=o.payloadUniqBy,b=o.position,y=o.reverseDirection,w=o.useTranslate3d,C=o.viewBox,S=o.wrapperStyle,E=m??[];c&&E.length&&(E=SI(m.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),g,D3));var T=E.length>0;return I.createElement(E3,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:d,hasPayload:T,offset:p,position:b,reverseDirection:y,useTranslate3d:w,viewBox:C,wrapperStyle:S},j3(u,Fx(Fx({},this.props),{},{payload:E})))}}])})(I.PureComponent);Cb(Sb,"displayName","Tooltip");Cb(Sb,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!A3.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Ip,Gx;function L3(){if(Gx)return Ip;Gx=1;var t=vr(),e=function(){return t.Date.now()};return Ip=e,Ip}var Ap,$x;function B3(){if($x)return Ap;$x=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return Ap=e,Ap}var Tp,Vx;function F3(){if(Vx)return Tp;Vx=1;var t=B3(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return Tp=n,Tp}var Np,Wx;function G3(){if(Wx)return Np;Wx=1;var t=F3(),e=no(),n=ls(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=e(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=t(u);var c=i.test(u);return c||a.test(u)?s(u.slice(2),c?2:8):o.test(u)?r:+u}return Np=l,Np}var _p,Hx;function $3(){if(Hx)return _p;Hx=1;var t=no(),e=L3(),n=G3(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,u){var d,c,f,p,m,g,b=0,y=!1,w=!1,C=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,t(u)&&(y=!!u.leading,w="maxWait"in u,f=w?o(n(u.maxWait)||0,l):f,C="trailing"in u?!!u.trailing:C);function S(_){var B=d,L=c;return d=c=void 0,b=_,p=s.apply(L,B),p}function E(_){return b=_,m=setTimeout(O,l),y?S(_):p}function T(_){var B=_-g,L=_-b,P=l-B;return w?i(P,f-L):P}function A(_){var B=_-g,L=_-b;return g===void 0||B>=l||B<0||w&&L>=f}function O(){var _=e();if(A(_))return M(_);m=setTimeout(O,T(_))}function M(_){return m=void 0,C&&d?S(_):(d=c=void 0,p)}function V(){m!==void 0&&clearTimeout(m),b=0,d=g=c=m=void 0}function N(){return m===void 0?p:M(e())}function k(){var _=e(),B=A(_);if(d=arguments,c=this,g=_,B){if(m===void 0)return E(g);if(w)return clearTimeout(m),m=setTimeout(O,l),S(g)}return m===void 0&&(m=setTimeout(O,l)),p}return k.cancel=V,k.flush=N,k}return _p=a,_p}var Op,qx;function V3(){if(qx)return Op;qx=1;var t=$3(),e=no(),n="Expected a function";function r(o,i,a){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(a)&&(s="leading"in a?!!a.leading:s,l="trailing"in a?!!a.trailing:l),t(o,i,{leading:s,maxWait:i,trailing:l})}return Op=r,Op}var W3=V3();const H3=An(W3);function Ga(t){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ga(t)}function zx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zx(Object(n),!0).forEach(function(r){q3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function q3(t,e,n){return e=z3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z3(t){var e=X3(t,"string");return Ga(e)=="symbol"?e:e+""}function X3(t,e){if(Ga(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Y3(t,e){return K3(t)||J3(t,e)||Z3(t,e)||U3()}function U3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z3(t,e){if(t){if(typeof t=="string")return Xx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xx(t,e)}}function Xx(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function J3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function K3(t){if(Array.isArray(t))return t}var Q3=I.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=t.width,a=i===void 0?"100%":i,s=t.height,l=s===void 0?"100%":s,u=t.minWidth,d=u===void 0?0:u,c=t.minHeight,f=t.maxHeight,p=t.children,m=t.debounce,g=m===void 0?0:m,b=t.id,y=t.className,w=t.onResize,C=t.style,S=C===void 0?{}:C,E=I.useRef(null),T=I.useRef();T.current=w,I.useImperativeHandle(e,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var A=I.useState({containerWidth:o.width,containerHeight:o.height}),O=Y3(A,2),M=O[0],V=O[1],N=I.useCallback(function(_,B){V(function(L){var P=Math.round(_),G=Math.round(B);return L.containerWidth===P&&L.containerHeight===G?L:{containerWidth:P,containerHeight:G}})},[]);I.useEffect(function(){var _=function(H){var U,Q=H[0].contentRect,$=Q.width,q=Q.height;N($,q),(U=T.current)===null||U===void 0||U.call(T,$,q)};g>0&&(_=H3(_,g,{trailing:!0,leading:!1}));var B=new ResizeObserver(_),L=E.current.getBoundingClientRect(),P=L.width,G=L.height;return N(P,G),B.observe(E.current),function(){B.disconnect()}},[N,g]);var k=I.useMemo(function(){var _=M.containerWidth,B=M.containerHeight;if(_<0||B<0)return null;Cl(Us(a)||Us(l),`The width(%s) and height(%s) are both fixed numbers,
4
+ A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(bn/8,"h").concat(bn,"v").concat(bn*3/4,"h").concat(-bn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var u=u5({},r);return delete u.legendIcon,I.cloneElement(r.legendIcon,u)}return I.createElement(sI,{fill:l,cx:i,cy:i,size:bn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,l=o.formatter,u=o.inactiveColor,d={x:0,y:0,width:bn,height:bn},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var g=p.formatter||l,b=Dr(La(La({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=Ll(p.value)?null:p.value;Cl(!Ll(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=p.inactive?u:p.color;return I.createElement("li",Rm({className:b,style:c,key:"legend-item-".concat(m)},wB(r.props,p,m)),I.createElement(TB,{width:a,height:a,viewBox:d,style:f},r.renderIcon(p)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},g?g(y,p,m):y))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(I.PureComponent);La(mb,"displayName","Legend");La(mb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Gf,V0;function v5(){if(V0)return Gf;V0=1;var t=Ou();function e(){this.__data__=new t,this.size=0}return Gf=e,Gf}var $f,W0;function y5(){if(W0)return $f;W0=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return $f=t,$f}var Vf,H0;function x5(){if(H0)return Vf;H0=1;function t(e){return this.__data__.get(e)}return Vf=t,Vf}var Wf,q0;function w5(){if(q0)return Wf;q0=1;function t(e){return this.__data__.has(e)}return Wf=t,Wf}var Hf,z0;function C5(){if(z0)return Hf;z0=1;var t=Ou(),e=db(),n=fb(),r=200;function o(i,a){var s=this.__data__;if(s instanceof t){var l=s.__data__;if(!e||l.length<r-1)return l.push([i,a]),this.size=++s.size,this;s=this.__data__=new n(l)}return s.set(i,a),this.size=s.size,this}return Hf=o,Hf}var qf,X0;function cI(){if(X0)return qf;X0=1;var t=Ou(),e=v5(),n=y5(),r=x5(),o=w5(),i=C5();function a(s){var l=this.__data__=new t(s);this.size=l.size}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,qf=a,qf}var zf,Y0;function S5(){if(Y0)return zf;Y0=1;var t="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,t),this}return zf=e,zf}var Xf,U0;function E5(){if(U0)return Xf;U0=1;function t(e){return this.__data__.has(e)}return Xf=t,Xf}var Yf,Z0;function dI(){if(Z0)return Yf;Z0=1;var t=fb(),e=S5(),n=E5();function r(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new t;++i<a;)this.add(o[i])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,Yf=r,Yf}var Uf,J0;function I5(){if(J0)return Uf;J0=1;function t(e,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(e[r],r,e))return!0;return!1}return Uf=t,Uf}var Zf,K0;function fI(){if(K0)return Zf;K0=1;function t(e,n){return e.has(n)}return Zf=t,Zf}var Jf,Q0;function hI(){if(Q0)return Jf;Q0=1;var t=dI(),e=I5(),n=fI(),r=1,o=2;function i(a,s,l,u,d,c){var f=l&r,p=a.length,m=s.length;if(p!=m&&!(f&&m>p))return!1;var g=c.get(a),b=c.get(s);if(g&&b)return g==s&&b==a;var y=-1,w=!0,C=l&o?new t:void 0;for(c.set(a,s),c.set(s,a);++y<p;){var S=a[y],E=s[y];if(u)var T=f?u(E,S,y,s,a,c):u(S,E,y,a,s,c);if(T!==void 0){if(T)continue;w=!1;break}if(C){if(!e(s,function(A,O){if(!n(C,O)&&(S===A||d(S,A,l,u,c)))return C.push(O)})){w=!1;break}}else if(!(S===E||d(S,E,l,u,c))){w=!1;break}}return c.delete(a),c.delete(s),w}return Jf=i,Jf}var Kf,e1;function A5(){if(e1)return Kf;e1=1;var t=vr(),e=t.Uint8Array;return Kf=e,Kf}var Qf,t1;function T5(){if(t1)return Qf;t1=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(o,i){r[++n]=[i,o]}),r}return Qf=t,Qf}var eh,n1;function gb(){if(n1)return eh;n1=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(o){r[++n]=o}),r}return eh=t,eh}var th,r1;function N5(){if(r1)return th;r1=1;var t=ss(),e=A5(),n=cb(),r=hI(),o=T5(),i=gb(),a=1,s=2,l="[object Boolean]",u="[object Date]",d="[object Error]",c="[object Map]",f="[object Number]",p="[object RegExp]",m="[object Set]",g="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",w="[object DataView]",C=t?t.prototype:void 0,S=C?C.valueOf:void 0;function E(T,A,O,M,V,N,k){switch(O){case w:if(T.byteLength!=A.byteLength||T.byteOffset!=A.byteOffset)return!1;T=T.buffer,A=A.buffer;case y:return!(T.byteLength!=A.byteLength||!N(new e(T),new e(A)));case l:case u:case f:return n(+T,+A);case d:return T.name==A.name&&T.message==A.message;case p:case g:return T==A+"";case c:var _=o;case m:var B=M&a;if(_||(_=i),T.size!=A.size&&!B)return!1;var L=k.get(T);if(L)return L==A;M|=s,k.set(T,A);var P=r(_(T),_(A),M,V,N,k);return k.delete(T),P;case b:if(S)return S.call(T)==S.call(A)}return!1}return th=E,th}var nh,o1;function pI(){if(o1)return nh;o1=1;function t(e,n){for(var r=-1,o=n.length,i=e.length;++r<o;)e[i+r]=n[r];return e}return nh=t,nh}var rh,i1;function _5(){if(i1)return rh;i1=1;var t=pI(),e=qn();function n(r,o,i){var a=o(r);return e(r)?a:t(a,i(r))}return rh=n,rh}var oh,a1;function O5(){if(a1)return oh;a1=1;function t(e,n){for(var r=-1,o=e==null?0:e.length,i=0,a=[];++r<o;){var s=e[r];n(s,r,e)&&(a[i++]=s)}return a}return oh=t,oh}var ih,s1;function R5(){if(s1)return ih;s1=1;function t(){return[]}return ih=t,ih}var ah,l1;function P5(){if(l1)return ah;l1=1;var t=O5(),e=R5(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),t(o(a),function(s){return r.call(a,s)}))}:e;return ah=i,ah}var sh,u1;function M5(){if(u1)return sh;u1=1;function t(e,n){for(var r=-1,o=Array(e);++r<e;)o[r]=n(r);return o}return sh=t,sh}var lh,c1;function k5(){if(c1)return lh;c1=1;var t=Do(),e=jo(),n="[object Arguments]";function r(o){return e(o)&&t(o)==n}return lh=r,lh}var uh,d1;function bb(){if(d1)return uh;d1=1;var t=k5(),e=jo(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=t((function(){return arguments})())?t:function(a){return e(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return uh=i,uh}var ba={exports:{}},ch,f1;function D5(){if(f1)return ch;f1=1;function t(){return!1}return ch=t,ch}ba.exports;var h1;function mI(){return h1||(h1=1,(function(t,e){var n=vr(),r=D5(),o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;t.exports=u})(ba,ba.exports)),ba.exports}var dh,p1;function vb(){if(p1)return dh;p1=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o??t,!!o&&(i=="number"||i!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<o}return dh=n,dh}var fh,m1;function yb(){if(m1)return fh;m1=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return fh=e,fh}var hh,g1;function j5(){if(g1)return hh;g1=1;var t=Do(),e=yb(),n=jo(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",d="[object Number]",c="[object Object]",f="[object RegExp]",p="[object Set]",m="[object String]",g="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",C="[object Float64Array]",S="[object Int8Array]",E="[object Int16Array]",T="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",M="[object Uint16Array]",V="[object Uint32Array]",N={};N[w]=N[C]=N[S]=N[E]=N[T]=N[A]=N[O]=N[M]=N[V]=!0,N[r]=N[o]=N[b]=N[i]=N[y]=N[a]=N[s]=N[l]=N[u]=N[d]=N[c]=N[f]=N[p]=N[m]=N[g]=!1;function k(_){return n(_)&&e(_.length)&&!!N[t(_)]}return hh=k,hh}var ph,b1;function gI(){if(b1)return ph;b1=1;function t(e){return function(n){return e(n)}}return ph=t,ph}var va={exports:{}};va.exports;var v1;function L5(){return v1||(v1=1,(function(t,e){var n=WE(),r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===r,a=i&&n.process,s=(function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();t.exports=s})(va,va.exports)),va.exports}var mh,y1;function bI(){if(y1)return mh;y1=1;var t=j5(),e=gI(),n=L5(),r=n&&n.isTypedArray,o=r?e(r):t;return mh=o,mh}var gh,x1;function B5(){if(x1)return gh;x1=1;var t=M5(),e=bb(),n=qn(),r=mI(),o=vb(),i=bI(),a=Object.prototype,s=a.hasOwnProperty;function l(u,d){var c=n(u),f=!c&&e(u),p=!c&&!f&&r(u),m=!c&&!f&&!p&&i(u),g=c||f||p||m,b=g?t(u.length,String):[],y=b.length;for(var w in u)(d||s.call(u,w))&&!(g&&(w=="length"||p&&(w=="offset"||w=="parent")||m&&(w=="buffer"||w=="byteLength"||w=="byteOffset")||o(w,y)))&&b.push(w);return b}return gh=l,gh}var bh,w1;function F5(){if(w1)return bh;w1=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||t;return n===o}return bh=e,bh}var vh,C1;function G5(){if(C1)return vh;C1=1;function t(e,n){return function(r){return e(n(r))}}return vh=t,vh}var yh,S1;function $5(){if(S1)return yh;S1=1;var t=G5(),e=t(Object.keys,Object);return yh=e,yh}var xh,E1;function V5(){if(E1)return xh;E1=1;var t=F5(),e=$5(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!t(i))return e(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return xh=o,xh}var wh,I1;function ku(){if(I1)return wh;I1=1;var t=ub(),e=yb();function n(r){return r!=null&&e(r.length)&&!t(r)}return wh=n,wh}var Ch,A1;function xb(){if(A1)return Ch;A1=1;var t=B5(),e=V5(),n=ku();function r(o){return n(o)?t(o):e(o)}return Ch=r,Ch}var Sh,T1;function W5(){if(T1)return Sh;T1=1;var t=_5(),e=P5(),n=xb();function r(o){return t(o,n,e)}return Sh=r,Sh}var Eh,N1;function H5(){if(N1)return Eh;N1=1;var t=W5(),e=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,l,u,d){var c=s&e,f=t(i),p=f.length,m=t(a),g=m.length;if(p!=g&&!c)return!1;for(var b=p;b--;){var y=f[b];if(!(c?y in a:r.call(a,y)))return!1}var w=d.get(i),C=d.get(a);if(w&&C)return w==a&&C==i;var S=!0;d.set(i,a),d.set(a,i);for(var E=c;++b<p;){y=f[b];var T=i[y],A=a[y];if(l)var O=c?l(A,T,y,a,i,d):l(T,A,y,i,a,d);if(!(O===void 0?T===A||u(T,A,s,l,d):O)){S=!1;break}E||(E=y=="constructor")}if(S&&!E){var M=i.constructor,V=a.constructor;M!=V&&"constructor"in i&&"constructor"in a&&!(typeof M=="function"&&M instanceof M&&typeof V=="function"&&V instanceof V)&&(S=!1)}return d.delete(i),d.delete(a),S}return Eh=o,Eh}var Ih,_1;function q5(){if(_1)return Ih;_1=1;var t=Lo(),e=vr(),n=t(e,"DataView");return Ih=n,Ih}var Ah,O1;function z5(){if(O1)return Ah;O1=1;var t=Lo(),e=vr(),n=t(e,"Promise");return Ah=n,Ah}var Th,R1;function vI(){if(R1)return Th;R1=1;var t=Lo(),e=vr(),n=t(e,"Set");return Th=n,Th}var Nh,P1;function X5(){if(P1)return Nh;P1=1;var t=Lo(),e=vr(),n=t(e,"WeakMap");return Nh=n,Nh}var _h,M1;function Y5(){if(M1)return _h;M1=1;var t=q5(),e=db(),n=z5(),r=vI(),o=X5(),i=Do(),a=HE(),s="[object Map]",l="[object Object]",u="[object Promise]",d="[object Set]",c="[object WeakMap]",f="[object DataView]",p=a(t),m=a(e),g=a(n),b=a(r),y=a(o),w=i;return(t&&w(new t(new ArrayBuffer(1)))!=f||e&&w(new e)!=s||n&&w(n.resolve())!=u||r&&w(new r)!=d||o&&w(new o)!=c)&&(w=function(C){var S=i(C),E=S==l?C.constructor:void 0,T=E?a(E):"";if(T)switch(T){case p:return f;case m:return s;case g:return u;case b:return d;case y:return c}return S}),_h=w,_h}var Oh,k1;function U5(){if(k1)return Oh;k1=1;var t=cI(),e=hI(),n=N5(),r=H5(),o=Y5(),i=qn(),a=mI(),s=bI(),l=1,u="[object Arguments]",d="[object Array]",c="[object Object]",f=Object.prototype,p=f.hasOwnProperty;function m(g,b,y,w,C,S){var E=i(g),T=i(b),A=E?d:o(g),O=T?d:o(b);A=A==u?c:A,O=O==u?c:O;var M=A==c,V=O==c,N=A==O;if(N&&a(g)){if(!a(b))return!1;E=!0,M=!1}if(N&&!M)return S||(S=new t),E||s(g)?e(g,b,y,w,C,S):n(g,b,A,y,w,C,S);if(!(y&l)){var k=M&&p.call(g,"__wrapped__"),_=V&&p.call(b,"__wrapped__");if(k||_){var B=k?g.value():g,L=_?b.value():b;return S||(S=new t),C(B,L,y,w,S)}}return N?(S||(S=new t),r(g,b,y,w,C,S)):!1}return Oh=m,Oh}var Rh,D1;function yI(){if(D1)return Rh;D1=1;var t=U5(),e=jo();function n(r,o,i,a,s){return r===o?!0:r==null||o==null||!e(r)&&!e(o)?r!==r&&o!==o:t(r,o,i,a,n,s)}return Rh=n,Rh}var Ph,j1;function Z5(){if(j1)return Ph;j1=1;var t=cI(),e=yI(),n=1,r=2;function o(i,a,s,l){var u=s.length,d=u,c=!l;if(i==null)return!d;for(i=Object(i);u--;){var f=s[u];if(c&&f[2]?f[1]!==i[f[0]]:!(f[0]in i))return!1}for(;++u<d;){f=s[u];var p=f[0],m=i[p],g=f[1];if(c&&f[2]){if(m===void 0&&!(p in i))return!1}else{var b=new t;if(l)var y=l(m,g,p,i,a,b);if(!(y===void 0?e(g,m,n|r,l,b):y))return!1}}return!0}return Ph=o,Ph}var Mh,L1;function xI(){if(L1)return Mh;L1=1;var t=no();function e(n){return n===n&&!t(n)}return Mh=e,Mh}var kh,B1;function J5(){if(B1)return kh;B1=1;var t=xI(),e=xb();function n(r){for(var o=e(r),i=o.length;i--;){var a=o[i],s=r[a];o[i]=[a,s,t(s)]}return o}return kh=n,kh}var Dh,F1;function wI(){if(F1)return Dh;F1=1;function t(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}return Dh=t,Dh}var jh,G1;function K5(){if(G1)return jh;G1=1;var t=Z5(),e=J5(),n=wI();function r(o){var i=e(o);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(a){return a===o||t(a,o,i)}}return jh=r,jh}var Lh,$1;function Q5(){if($1)return Lh;$1=1;function t(e,n){return e!=null&&n in Object(e)}return Lh=t,Lh}var Bh,V1;function eF(){if(V1)return Bh;V1=1;var t=XE(),e=bb(),n=qn(),r=vb(),o=yb(),i=Pu();function a(s,l,u){l=t(l,s);for(var d=-1,c=l.length,f=!1;++d<c;){var p=i(l[d]);if(!(f=s!=null&&u(s,p)))break;s=s[p]}return f||++d!=c?f:(c=s==null?0:s.length,!!c&&o(c)&&r(p,c)&&(n(s)||e(s)))}return Bh=a,Bh}var Fh,W1;function tF(){if(W1)return Fh;W1=1;var t=Q5(),e=eF();function n(r,o){return r!=null&&e(r,o,t)}return Fh=n,Fh}var Gh,H1;function nF(){if(H1)return Gh;H1=1;var t=yI(),e=YE(),n=tF(),r=lb(),o=xI(),i=wI(),a=Pu(),s=1,l=2;function u(d,c){return r(d)&&o(c)?i(a(d),c):function(f){var p=e(f,d);return p===void 0&&p===c?n(f,d):t(c,p,s|l)}}return Gh=u,Gh}var $h,q1;function Du(){if(q1)return $h;q1=1;function t(e){return e}return $h=t,$h}var Vh,z1;function rF(){if(z1)return Vh;z1=1;function t(e){return function(n){return n?.[e]}}return Vh=t,Vh}var Wh,X1;function oF(){if(X1)return Wh;X1=1;var t=hb();function e(n){return function(r){return t(r,n)}}return Wh=e,Wh}var Hh,Y1;function iF(){if(Y1)return Hh;Y1=1;var t=rF(),e=oF(),n=lb(),r=Pu();function o(i){return n(i)?t(r(i)):e(i)}return Hh=o,Hh}var qh,U1;function CI(){if(U1)return qh;U1=1;var t=K5(),e=nF(),n=Du(),r=qn(),o=iF();function i(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?e(a[0],a[1]):t(a):o(a)}return qh=i,qh}var zh,Z1;function aF(){if(Z1)return zh;Z1=1;function t(e,n,r,o){for(var i=e.length,a=r+(o?1:-1);o?a--:++a<i;)if(n(e[a],a,e))return a;return-1}return zh=t,zh}var Xh,J1;function sF(){if(J1)return Xh;J1=1;function t(e){return e!==e}return Xh=t,Xh}var Yh,K1;function lF(){if(K1)return Yh;K1=1;function t(e,n,r){for(var o=r-1,i=e.length;++o<i;)if(e[o]===n)return o;return-1}return Yh=t,Yh}var Uh,Q1;function uF(){if(Q1)return Uh;Q1=1;var t=aF(),e=sF(),n=lF();function r(o,i,a){return i===i?n(o,i,a):t(o,e,a)}return Uh=r,Uh}var Zh,ex;function cF(){if(ex)return Zh;ex=1;var t=uF();function e(n,r){var o=n==null?0:n.length;return!!o&&t(n,r,0)>-1}return Zh=e,Zh}var Jh,tx;function dF(){if(tx)return Jh;tx=1;function t(e,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;)if(r(n,e[o]))return!0;return!1}return Jh=t,Jh}var Kh,nx;function fF(){if(nx)return Kh;nx=1;function t(){}return Kh=t,Kh}var Qh,rx;function hF(){if(rx)return Qh;rx=1;var t=vI(),e=fF(),n=gb(),r=1/0,o=t&&1/n(new t([,-0]))[1]==r?function(i){return new t(i)}:e;return Qh=o,Qh}var ep,ox;function pF(){if(ox)return ep;ox=1;var t=dI(),e=cF(),n=dF(),r=fI(),o=hF(),i=gb(),a=200;function s(l,u,d){var c=-1,f=e,p=l.length,m=!0,g=[],b=g;if(d)m=!1,f=n;else if(p>=a){var y=u?null:o(l);if(y)return i(y);m=!1,f=r,b=new t}else b=u?[]:g;e:for(;++c<p;){var w=l[c],C=u?u(w):w;if(w=d||w!==0?w:0,m&&C===C){for(var S=b.length;S--;)if(b[S]===C)continue e;u&&b.push(C),g.push(w)}else f(b,C,d)||(b!==g&&b.push(C),g.push(w))}return g}return ep=s,ep}var tp,ix;function mF(){if(ix)return tp;ix=1;var t=CI(),e=pF();function n(r,o){return r&&r.length?e(r,t(o,2)):[]}return tp=n,tp}var gF=mF();const ax=An(gF);function SI(t,e,n){return e===!0?ax(t,n):Ll(e)?ax(t,e):t}function Si(t){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Si(t)}var bF=["ref"];function sx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sx(Object(n),!0).forEach(function(r){ju(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lx(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,II(r.key),r)}}function yF(t,e,n){return e&&lx(t.prototype,e),n&&lx(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function xF(t,e,n){return e=Vl(e),wF(t,EI()?Reflect.construct(e,n||[],Vl(t).constructor):e.apply(t,n))}function wF(t,e){if(e&&(Si(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CF(t)}function CF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EI=function(){return!!t})()}function Vl(t){return Vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vl(t)}function SF(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mm(t,e)}function Mm(t,e){return Mm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Mm(t,e)}function ju(t,e,n){return e=II(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function II(t){var e=EF(t,"string");return Si(e)=="symbol"?e:e+""}function EF(t,e){if(Si(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Si(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function IF(t,e){if(t==null)return{};var n=AF(t,e),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AF(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function TF(t){return t.value}function NF(t,e){if(I.isValidElement(t))return I.cloneElement(t,e);if(typeof t=="function")return I.createElement(t,e);e.ref;var n=IF(e,bF);return I.createElement(mb,n)}var ux=1,wb=(function(t){function e(){var n;vF(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=xF(this,e,[].concat(o)),ju(n,"lastBoundingBox",{width:-1,height:-1}),n}return SF(e,t),yF(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>ux||Math.abs(o.height-this.lastBoundingBox.height)>ux)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Or({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,l=o.margin,u=o.chartWidth,d=o.chartHeight,c,f;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=a==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();f={top:((d||0)-m.height)/2}}else f=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Or(Or({},c),f)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,l=o.wrapperStyle,u=o.payloadUniqBy,d=o.payload,c=Or(Or({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return I.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},NF(i,Or(Or({},this.props),{},{payload:SI(d,u,TF)})))}}],[{key:"getWithHeight",value:function(r,o){var i=Or(Or({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&Mn(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])})(I.PureComponent);ju(wb,"displayName","Legend");ju(wb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var np,cx;function _F(){if(cx)return np;cx=1;var t=ss(),e=bb(),n=qn(),r=t?t.isConcatSpreadable:void 0;function o(i){return n(i)||e(i)||!!(r&&i&&i[r])}return np=o,np}var rp,dx;function OF(){if(dx)return rp;dx=1;var t=pI(),e=_F();function n(r,o,i,a,s){var l=-1,u=r.length;for(i||(i=e),s||(s=[]);++l<u;){var d=r[l];o>0&&i(d)?o>1?n(d,o-1,i,a,s):t(s,d):a||(s[s.length]=d)}return s}return rp=n,rp}var op,fx;function RF(){if(fx)return op;fx=1;function t(e){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),l=s.length;l--;){var u=s[e?l:++i];if(r(a[u],u,a)===!1)break}return n}}return op=t,op}var ip,hx;function PF(){if(hx)return ip;hx=1;var t=RF(),e=t();return ip=e,ip}var ap,px;function MF(){if(px)return ap;px=1;var t=PF(),e=xb();function n(r,o){return r&&t(r,o,e)}return ap=n,ap}var sp,mx;function kF(){if(mx)return sp;mx=1;var t=ku();function e(n,r){return function(o,i){if(o==null)return o;if(!t(o))return n(o,i);for(var a=o.length,s=r?a:-1,l=Object(o);(r?s--:++s<a)&&i(l[s],s,l)!==!1;);return o}}return sp=e,sp}var lp,gx;function DF(){if(gx)return lp;gx=1;var t=MF(),e=kF(),n=e(t);return lp=n,lp}var up,bx;function jF(){if(bx)return up;bx=1;var t=DF(),e=ku();function n(r,o){var i=-1,a=e(r)?Array(r.length):[];return t(r,function(s,l,u){a[++i]=o(s,l,u)}),a}return up=n,up}var cp,vx;function LF(){if(vx)return cp;vx=1;function t(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}return cp=t,cp}var dp,yx;function BF(){if(yx)return dp;yx=1;var t=ls();function e(n,r){if(n!==r){var o=n!==void 0,i=n===null,a=n===n,s=t(n),l=r!==void 0,u=r===null,d=r===r,c=t(r);if(!u&&!c&&!s&&n>r||s&&l&&d&&!u&&!c||i&&l&&d||!o&&d||!a)return 1;if(!i&&!s&&!c&&n<r||c&&o&&a&&!i&&!s||u&&o&&a||!l&&a||!d)return-1}return 0}return dp=e,dp}var fp,xx;function FF(){if(xx)return fp;xx=1;var t=BF();function e(n,r,o){for(var i=-1,a=n.criteria,s=r.criteria,l=a.length,u=o.length;++i<l;){var d=t(a[i],s[i]);if(d){if(i>=u)return d;var c=o[i];return d*(c=="desc"?-1:1)}}return n.index-r.index}return fp=e,fp}var hp,wx;function GF(){if(wx)return hp;wx=1;var t=qE(),e=hb(),n=CI(),r=jF(),o=LF(),i=gI(),a=FF(),s=Du(),l=qn();function u(d,c,f){c.length?c=t(c,function(g){return l(g)?function(b){return e(b,g.length===1?g[0]:g)}:g}):c=[s];var p=-1;c=t(c,i(n));var m=r(d,function(g,b,y){var w=t(c,function(C){return C(g)});return{criteria:w,index:++p,value:g}});return o(m,function(g,b){return a(g,b,f)})}return hp=u,hp}var pp,Cx;function $F(){if(Cx)return pp;Cx=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return pp=t,pp}var mp,Sx;function VF(){if(Sx)return mp;Sx=1;var t=$F(),e=Math.max;function n(r,o,i){return o=e(o===void 0?r.length-1:o,0),function(){for(var a=arguments,s=-1,l=e(a.length-o,0),u=Array(l);++s<l;)u[s]=a[o+s];s=-1;for(var d=Array(o+1);++s<o;)d[s]=a[s];return d[o]=i(u),t(r,this,d)}}return mp=n,mp}var gp,Ex;function WF(){if(Ex)return gp;Ex=1;function t(e){return function(){return e}}return gp=t,gp}var bp,Ix;function HF(){if(Ix)return bp;Ix=1;var t=Lo(),e=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return bp=e,bp}var vp,Ax;function qF(){if(Ax)return vp;Ax=1;var t=WF(),e=HF(),n=Du(),r=e?function(o,i){return e(o,"toString",{configurable:!0,enumerable:!1,value:t(i),writable:!0})}:n;return vp=r,vp}var yp,Tx;function zF(){if(Tx)return yp;Tx=1;var t=800,e=16,n=Date.now;function r(o){var i=0,a=0;return function(){var s=n(),l=e-(s-a);if(a=s,l>0){if(++i>=t)return arguments[0]}else i=0;return o.apply(void 0,arguments)}}return yp=r,yp}var xp,Nx;function XF(){if(Nx)return xp;Nx=1;var t=qF(),e=zF(),n=e(t);return xp=n,xp}var wp,_x;function YF(){if(_x)return wp;_x=1;var t=Du(),e=VF(),n=XF();function r(o,i){return n(e(o,i,t),o+"")}return wp=r,wp}var Cp,Ox;function UF(){if(Ox)return Cp;Ox=1;var t=cb(),e=ku(),n=vb(),r=no();function o(i,a,s){if(!r(s))return!1;var l=typeof a;return(l=="number"?e(s)&&n(a,s.length):l=="string"&&a in s)?t(s[a],i):!1}return Cp=o,Cp}var Sp,Rx;function ZF(){if(Rx)return Sp;Rx=1;var t=OF(),e=GF(),n=YF(),r=UF(),o=n(function(i,a){if(i==null)return[];var s=a.length;return s>1&&r(i,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),e(i,t(a,1),[])});return Sp=o,Sp}var JF=ZF();const KF=An(JF);function Ba(t){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(t)}function km(){return km=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},km.apply(this,arguments)}function QF(t,e){return r3(t)||n3(t,e)||t3(t,e)||e3()}function e3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t3(t,e){if(t){if(typeof t=="string")return Px(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Px(t,e)}}function Px(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function r3(t){if(Array.isArray(t))return t}function Mx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ep(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mx(Object(n),!0).forEach(function(r){o3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function o3(t,e,n){return e=i3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(t){var e=a3(t,"string");return Ba(e)=="symbol"?e:e+""}function a3(t,e){if(Ba(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ba(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function s3(t){return Array.isArray(t)&&Bl(t[0])&&Bl(t[1])?t.join(" ~ "):t}var l3=function(e){var n=e.separator,r=n===void 0?" : ":n,o=e.contentStyle,i=o===void 0?{}:o,a=e.itemStyle,s=a===void 0?{}:a,l=e.labelStyle,u=l===void 0?{}:l,d=e.payload,c=e.formatter,f=e.itemSorter,p=e.wrapperClassName,m=e.labelClassName,g=e.label,b=e.labelFormatter,y=e.accessibilityLayer,w=y===void 0?!1:y,C=function(){if(d&&d.length){var k={padding:0,margin:0},_=(f?KF(d,f):d).map(function(B,L){if(B.type==="none")return null;var P=Ep({display:"block",paddingTop:4,paddingBottom:4,color:B.color||"#000"},s),G=B.formatter||c||s3,j=B.value,H=B.name,U=j,Q=H;if(G&&U!=null&&Q!=null){var $=G(j,H,B,L,d);if(Array.isArray($)){var q=QF($,2);U=q[0],Q=q[1]}else U=$}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(L),style:P},Bl(Q)?I.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,Bl(Q)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},U),I.createElement("span",{className:"recharts-tooltip-item-unit"},B.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:k},_)}return null},S=Ep({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),E=Ep({margin:0},u),T=!iB(g),A=T?g:"",O=Dr("recharts-default-tooltip",p),M=Dr("recharts-tooltip-label",m);T&&b&&d!==void 0&&d!==null&&(A=b(g,d));var V=w?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",km({className:O,style:S},V),I.createElement("p",{className:M,style:E},I.isValidElement(A)?A:"".concat(A)),C())};function Fa(t){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(t)}function Js(t,e,n){return e=u3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u3(t){var e=c3(t,"string");return Fa(e)=="symbol"?e:e+""}function c3(t,e){if(Fa(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Fa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ia="recharts-tooltip-wrapper",d3={visibility:"hidden"};function f3(t){var e=t.coordinate,n=t.translateX,r=t.translateY;return Dr(ia,Js(Js(Js(Js({},"".concat(ia,"-right"),Mn(n)&&e&&Mn(e.x)&&n>=e.x),"".concat(ia,"-left"),Mn(n)&&e&&Mn(e.x)&&n<e.x),"".concat(ia,"-bottom"),Mn(r)&&e&&Mn(e.y)&&r>=e.y),"".concat(ia,"-top"),Mn(r)&&e&&Mn(e.y)&&r<e.y))}function kx(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,o=t.offsetTopLeft,i=t.position,a=t.reverseDirection,s=t.tooltipDimension,l=t.viewBox,u=t.viewBoxDimension;if(i&&Mn(i[r]))return i[r];var d=n[r]-s-o,c=n[r]+o;if(e[r])return a[r]?d:c;if(a[r]){var f=d,p=l[r];return f<p?Math.max(c,l[r]):Math.max(d,l[r])}var m=c+s,g=l[r]+u;return m>g?Math.max(d,l[r]):Math.max(c,l[r])}function h3(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return{transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}function p3(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.offsetTopLeft,o=t.position,i=t.reverseDirection,a=t.tooltipBox,s=t.useTranslate3d,l=t.viewBox,u,d,c;return a.height>0&&a.width>0&&n?(d=kx({allowEscapeViewBox:e,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),c=kx({allowEscapeViewBox:e,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=h3({translateX:d,translateY:c,useTranslate3d:s})):u=d3,{cssProperties:u,cssClasses:f3({translateX:d,translateY:c,coordinate:n})}}function Ei(t){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ei(t)}function Dx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function jx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dx(Object(n),!0).forEach(function(r){jm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function m3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,TI(r.key),r)}}function b3(t,e,n){return e&&g3(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function v3(t,e,n){return e=Wl(e),y3(t,AI()?Reflect.construct(e,n||[],Wl(t).constructor):e.apply(t,n))}function y3(t,e){if(e&&(Ei(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x3(t)}function x3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AI=function(){return!!t})()}function Wl(t){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wl(t)}function w3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dm(t,e)}function Dm(t,e){return Dm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Dm(t,e)}function jm(t,e,n){return e=TI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TI(t){var e=C3(t,"string");return Ei(e)=="symbol"?e:e+""}function C3(t,e){if(Ei(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ei(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Lx=1,S3=(function(t){function e(){var n;m3(this,e);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=v3(this,e,[].concat(o)),jm(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),jm(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,l,u,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return w3(e,t),b3(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Lx||Math.abs(r.height-this.state.lastBoundingBox.height)>Lx)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.children,d=o.coordinate,c=o.hasPayload,f=o.isAnimationActive,p=o.offset,m=o.position,g=o.reverseDirection,b=o.useTranslate3d,y=o.viewBox,w=o.wrapperStyle,C=p3({allowEscapeViewBox:a,coordinate:d,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:y}),S=C.cssClasses,E=C.cssProperties,T=jx(jx({transition:f&&i?"transform ".concat(s,"ms ").concat(l):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},w);return I.createElement("div",{tabIndex:-1,className:S,style:T,ref:function(O){r.wrapperNode=O}},u)}}])})(I.PureComponent),E3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},I3={isSsr:E3()};function Ii(t){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(t)}function Bx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Fx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bx(Object(n),!0).forEach(function(r){Cb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function A3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_I(r.key),r)}}function N3(t,e,n){return e&&T3(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function _3(t,e,n){return e=Hl(e),O3(t,NI()?Reflect.construct(e,n||[],Hl(t).constructor):e.apply(t,n))}function O3(t,e){if(e&&(Ii(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R3(t)}function R3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NI(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NI=function(){return!!t})()}function Hl(t){return Hl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hl(t)}function P3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lm(t,e)}function Lm(t,e){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Lm(t,e)}function Cb(t,e,n){return e=_I(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _I(t){var e=M3(t,"string");return Ii(e)=="symbol"?e:e+""}function M3(t,e){if(Ii(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ii(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function k3(t){return t.dataKey}function D3(t,e){return I.isValidElement(t)?I.cloneElement(t,e):typeof t=="function"?I.createElement(t,e):I.createElement(l3,e)}var Sb=(function(t){function e(){return A3(this,e),_3(this,e,arguments)}return P3(e,t),N3(e,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,l=o.animationEasing,u=o.content,d=o.coordinate,c=o.filterNull,f=o.isAnimationActive,p=o.offset,m=o.payload,g=o.payloadUniqBy,b=o.position,y=o.reverseDirection,w=o.useTranslate3d,C=o.viewBox,S=o.wrapperStyle,E=m??[];c&&E.length&&(E=SI(m.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),g,k3));var T=E.length>0;return I.createElement(S3,{allowEscapeViewBox:a,animationDuration:s,animationEasing:l,isAnimationActive:f,active:i,coordinate:d,hasPayload:T,offset:p,position:b,reverseDirection:y,useTranslate3d:w,viewBox:C,wrapperStyle:S},D3(u,Fx(Fx({},this.props),{},{payload:E})))}}])})(I.PureComponent);Cb(Sb,"displayName","Tooltip");Cb(Sb,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!I3.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Ip,Gx;function j3(){if(Gx)return Ip;Gx=1;var t=vr(),e=function(){return t.Date.now()};return Ip=e,Ip}var Ap,$x;function L3(){if($x)return Ap;$x=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return Ap=e,Ap}var Tp,Vx;function B3(){if(Vx)return Tp;Vx=1;var t=L3(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return Tp=n,Tp}var Np,Wx;function F3(){if(Wx)return Np;Wx=1;var t=B3(),e=no(),n=ls(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=e(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=t(u);var c=i.test(u);return c||a.test(u)?s(u.slice(2),c?2:8):o.test(u)?r:+u}return Np=l,Np}var _p,Hx;function G3(){if(Hx)return _p;Hx=1;var t=no(),e=j3(),n=F3(),r="Expected a function",o=Math.max,i=Math.min;function a(s,l,u){var d,c,f,p,m,g,b=0,y=!1,w=!1,C=!0;if(typeof s!="function")throw new TypeError(r);l=n(l)||0,t(u)&&(y=!!u.leading,w="maxWait"in u,f=w?o(n(u.maxWait)||0,l):f,C="trailing"in u?!!u.trailing:C);function S(_){var B=d,L=c;return d=c=void 0,b=_,p=s.apply(L,B),p}function E(_){return b=_,m=setTimeout(O,l),y?S(_):p}function T(_){var B=_-g,L=_-b,P=l-B;return w?i(P,f-L):P}function A(_){var B=_-g,L=_-b;return g===void 0||B>=l||B<0||w&&L>=f}function O(){var _=e();if(A(_))return M(_);m=setTimeout(O,T(_))}function M(_){return m=void 0,C&&d?S(_):(d=c=void 0,p)}function V(){m!==void 0&&clearTimeout(m),b=0,d=g=c=m=void 0}function N(){return m===void 0?p:M(e())}function k(){var _=e(),B=A(_);if(d=arguments,c=this,g=_,B){if(m===void 0)return E(g);if(w)return clearTimeout(m),m=setTimeout(O,l),S(g)}return m===void 0&&(m=setTimeout(O,l)),p}return k.cancel=V,k.flush=N,k}return _p=a,_p}var Op,qx;function $3(){if(qx)return Op;qx=1;var t=G3(),e=no(),n="Expected a function";function r(o,i,a){var s=!0,l=!0;if(typeof o!="function")throw new TypeError(n);return e(a)&&(s="leading"in a?!!a.leading:s,l="trailing"in a?!!a.trailing:l),t(o,i,{leading:s,maxWait:i,trailing:l})}return Op=r,Op}var V3=$3();const W3=An(V3);function Ga(t){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ga(t)}function zx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ks(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zx(Object(n),!0).forEach(function(r){H3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zx(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function H3(t,e,n){return e=q3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q3(t){var e=z3(t,"string");return Ga(e)=="symbol"?e:e+""}function z3(t,e){if(Ga(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X3(t,e){return J3(t)||Z3(t,e)||U3(t,e)||Y3()}function Y3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U3(t,e){if(t){if(typeof t=="string")return Xx(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xx(t,e)}}function Xx(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Z3(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function J3(t){if(Array.isArray(t))return t}var K3=I.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=t.width,a=i===void 0?"100%":i,s=t.height,l=s===void 0?"100%":s,u=t.minWidth,d=u===void 0?0:u,c=t.minHeight,f=t.maxHeight,p=t.children,m=t.debounce,g=m===void 0?0:m,b=t.id,y=t.className,w=t.onResize,C=t.style,S=C===void 0?{}:C,E=I.useRef(null),T=I.useRef();T.current=w,I.useImperativeHandle(e,function(){return Object.defineProperty(E.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),E.current},configurable:!0})});var A=I.useState({containerWidth:o.width,containerHeight:o.height}),O=X3(A,2),M=O[0],V=O[1],N=I.useCallback(function(_,B){V(function(L){var P=Math.round(_),G=Math.round(B);return L.containerWidth===P&&L.containerHeight===G?L:{containerWidth:P,containerHeight:G}})},[]);I.useEffect(function(){var _=function(H){var U,Q=H[0].contentRect,$=Q.width,q=Q.height;N($,q),(U=T.current)===null||U===void 0||U.call(T,$,q)};g>0&&(_=W3(_,g,{trailing:!0,leading:!1}));var B=new ResizeObserver(_),L=E.current.getBoundingClientRect(),P=L.width,G=L.height;return N(P,G),B.observe(E.current),function(){B.disconnect()}},[N,g]);var k=I.useMemo(function(){var _=M.containerWidth,B=M.containerHeight;if(_<0||B<0)return null;Cl(Us(a)||Us(l),`The width(%s) and height(%s) are both fixed numbers,
7
7
  maybe you don't need to use a ResponsiveContainer.`,a,l),Cl(!n||n>0,"The aspect(%s) must be greater than zero.",n);var L=Us(a)?_:a,P=Us(l)?B:l;n&&n>0&&(L?P=L/n:P&&(L=P*n),f&&P>f&&(P=f)),Cl(L>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0,
8
8
  please check the style of container, or the props width(%s) and height(%s),
9
9
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10
- height and width.`,L,P,a,l,d,c,n);var G=!Array.isArray(p)&&SB(p.type).endsWith("Chart");return I.Children.map(p,function(j){return I.isValidElement(j)?I.cloneElement(j,Ks({width:L,height:P},G?{style:Ks({height:"100%",width:"100%",maxHeight:P,maxWidth:L},j.props.style)}:{})):j})},[n,p,l,f,c,d,M,a]);return I.createElement("div",{id:b?"".concat(b):void 0,className:Dr("recharts-responsive-container",y),style:Ks(Ks({},S),{},{width:a,height:l,minWidth:d,minHeight:c,maxHeight:f}),ref:E},k)}),Qs={exports:{}},Ue={};var Yx;function e9(){if(Yx)return Ue;Yx=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function C(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case l:case u:case r:case i:case o:case c:return E;default:switch(E=E&&E.$$typeof,E){case s:case d:case m:case p:case a:return E;default:return T}}case n:return T}}}function S(E){return C(E)===u}return Ue.AsyncMode=l,Ue.ConcurrentMode=u,Ue.ContextConsumer=s,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=d,Ue.Fragment=r,Ue.Lazy=m,Ue.Memo=p,Ue.Portal=n,Ue.Profiler=i,Ue.StrictMode=o,Ue.Suspense=c,Ue.isAsyncMode=function(E){return S(E)||C(E)===l},Ue.isConcurrentMode=S,Ue.isContextConsumer=function(E){return C(E)===s},Ue.isContextProvider=function(E){return C(E)===a},Ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Ue.isForwardRef=function(E){return C(E)===d},Ue.isFragment=function(E){return C(E)===r},Ue.isLazy=function(E){return C(E)===m},Ue.isMemo=function(E){return C(E)===p},Ue.isPortal=function(E){return C(E)===n},Ue.isProfiler=function(E){return C(E)===i},Ue.isStrictMode=function(E){return C(E)===o},Ue.isSuspense=function(E){return C(E)===c},Ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===u||E===i||E===o||E===c||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===p||E.$$typeof===a||E.$$typeof===s||E.$$typeof===d||E.$$typeof===b||E.$$typeof===y||E.$$typeof===w||E.$$typeof===g)},Ue.typeOf=C,Ue}var Ze={};var Ux;function t9(){return Ux||(Ux=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function C(z){return typeof z=="string"||typeof z=="function"||z===r||z===u||z===i||z===o||z===c||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===p||z.$$typeof===a||z.$$typeof===s||z.$$typeof===d||z.$$typeof===b||z.$$typeof===y||z.$$typeof===w||z.$$typeof===g)}function S(z){if(typeof z=="object"&&z!==null){var ue=z.$$typeof;switch(ue){case e:var W=z.type;switch(W){case l:case u:case r:case i:case o:case c:return W;default:var le=W&&W.$$typeof;switch(le){case s:case d:case m:case p:case a:return le;default:return ue}}case n:return ue}}}var E=l,T=u,A=s,O=a,M=e,V=d,N=r,k=m,_=p,B=n,L=i,P=o,G=c,j=!1;function H(z){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(z)||S(z)===l}function U(z){return S(z)===u}function Q(z){return S(z)===s}function $(z){return S(z)===a}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function Z(z){return S(z)===d}function X(z){return S(z)===r}function te(z){return S(z)===m}function Y(z){return S(z)===p}function J(z){return S(z)===n}function ie(z){return S(z)===i}function oe(z){return S(z)===o}function re(z){return S(z)===c}Ze.AsyncMode=E,Ze.ConcurrentMode=T,Ze.ContextConsumer=A,Ze.ContextProvider=O,Ze.Element=M,Ze.ForwardRef=V,Ze.Fragment=N,Ze.Lazy=k,Ze.Memo=_,Ze.Portal=B,Ze.Profiler=L,Ze.StrictMode=P,Ze.Suspense=G,Ze.isAsyncMode=H,Ze.isConcurrentMode=U,Ze.isContextConsumer=Q,Ze.isContextProvider=$,Ze.isElement=q,Ze.isForwardRef=Z,Ze.isFragment=X,Ze.isLazy=te,Ze.isMemo=Y,Ze.isPortal=J,Ze.isProfiler=ie,Ze.isStrictMode=oe,Ze.isSuspense=re,Ze.isValidElementType=C,Ze.typeOf=S})()),Ze}var Zx;function n9(){return Zx||(Zx=1,process.env.NODE_ENV==="production"?Qs.exports=e9():Qs.exports=t9()),Qs.exports}function Ee(){return Ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ee.apply(null,arguments)}function r9(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Bm(t,e){return Bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bm(t,e)}function o9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}const i9={light:"",dark:".dark"},OI=v.createContext(null);function RI(){const t=v.useContext(OI);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}function a9({id:t,className:e,children:n,config:r,...o}){const i=v.useId(),a=`chart-${t||i.replace(/:/g,"")}`;return h.jsx(OI.Provider,{value:{config:r},children:h.jsxs("div",{"data-slot":"chart","data-chart":a,className:D("ui:[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground ui:[&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 ui:[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border ui:[&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border ui:[&_.recharts-radial-bar-background-sector]:fill-muted ui:[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted ui:[&_.recharts-reference-line_[stroke='#ccc']]:stroke-border ui:flex ui:aspect-video ui:justify-center ui:text-xs ui:[&_.recharts-dot[stroke='#fff']]:stroke-transparent ui:[&_.recharts-layer]:outline-hidden ui:[&_.recharts-sector]:outline-hidden ui:[&_.recharts-sector[stroke='#fff']]:stroke-transparent ui:bg-amber-200 ui:[&_.recharts-surface]:outline-hidden",e),...o,children:[h.jsx(PI,{id:a,config:r}),h.jsx(Q3,{children:n})]})})}const PI=({id:t,config:e})=>{const n=Object.entries(e).filter(([,r])=>r.theme||r.color);return n.length?h.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(i9).map(([r,o])=>`
10
+ height and width.`,L,P,a,l,d,c,n);var G=!Array.isArray(p)&&CB(p.type).endsWith("Chart");return I.Children.map(p,function(j){return I.isValidElement(j)?I.cloneElement(j,Ks({width:L,height:P},G?{style:Ks({height:"100%",width:"100%",maxHeight:P,maxWidth:L},j.props.style)}:{})):j})},[n,p,l,f,c,d,M,a]);return I.createElement("div",{id:b?"".concat(b):void 0,className:Dr("recharts-responsive-container",y),style:Ks(Ks({},S),{},{width:a,height:l,minWidth:d,minHeight:c,maxHeight:f}),ref:E},k)}),Qs={exports:{}},Ue={};var Yx;function Q3(){if(Yx)return Ue;Yx=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function C(E){if(typeof E=="object"&&E!==null){var T=E.$$typeof;switch(T){case e:switch(E=E.type,E){case l:case u:case r:case i:case o:case c:return E;default:switch(E=E&&E.$$typeof,E){case s:case d:case m:case p:case a:return E;default:return T}}case n:return T}}}function S(E){return C(E)===u}return Ue.AsyncMode=l,Ue.ConcurrentMode=u,Ue.ContextConsumer=s,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=d,Ue.Fragment=r,Ue.Lazy=m,Ue.Memo=p,Ue.Portal=n,Ue.Profiler=i,Ue.StrictMode=o,Ue.Suspense=c,Ue.isAsyncMode=function(E){return S(E)||C(E)===l},Ue.isConcurrentMode=S,Ue.isContextConsumer=function(E){return C(E)===s},Ue.isContextProvider=function(E){return C(E)===a},Ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},Ue.isForwardRef=function(E){return C(E)===d},Ue.isFragment=function(E){return C(E)===r},Ue.isLazy=function(E){return C(E)===m},Ue.isMemo=function(E){return C(E)===p},Ue.isPortal=function(E){return C(E)===n},Ue.isProfiler=function(E){return C(E)===i},Ue.isStrictMode=function(E){return C(E)===o},Ue.isSuspense=function(E){return C(E)===c},Ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===r||E===u||E===i||E===o||E===c||E===f||typeof E=="object"&&E!==null&&(E.$$typeof===m||E.$$typeof===p||E.$$typeof===a||E.$$typeof===s||E.$$typeof===d||E.$$typeof===b||E.$$typeof===y||E.$$typeof===w||E.$$typeof===g)},Ue.typeOf=C,Ue}var Ze={};var Ux;function e9(){return Ux||(Ux=1,process.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function C(z){return typeof z=="string"||typeof z=="function"||z===r||z===u||z===i||z===o||z===c||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===m||z.$$typeof===p||z.$$typeof===a||z.$$typeof===s||z.$$typeof===d||z.$$typeof===b||z.$$typeof===y||z.$$typeof===w||z.$$typeof===g)}function S(z){if(typeof z=="object"&&z!==null){var ue=z.$$typeof;switch(ue){case e:var W=z.type;switch(W){case l:case u:case r:case i:case o:case c:return W;default:var le=W&&W.$$typeof;switch(le){case s:case d:case m:case p:case a:return le;default:return ue}}case n:return ue}}}var E=l,T=u,A=s,O=a,M=e,V=d,N=r,k=m,_=p,B=n,L=i,P=o,G=c,j=!1;function H(z){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),U(z)||S(z)===l}function U(z){return S(z)===u}function Q(z){return S(z)===s}function $(z){return S(z)===a}function q(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function Z(z){return S(z)===d}function X(z){return S(z)===r}function te(z){return S(z)===m}function Y(z){return S(z)===p}function J(z){return S(z)===n}function ie(z){return S(z)===i}function oe(z){return S(z)===o}function re(z){return S(z)===c}Ze.AsyncMode=E,Ze.ConcurrentMode=T,Ze.ContextConsumer=A,Ze.ContextProvider=O,Ze.Element=M,Ze.ForwardRef=V,Ze.Fragment=N,Ze.Lazy=k,Ze.Memo=_,Ze.Portal=B,Ze.Profiler=L,Ze.StrictMode=P,Ze.Suspense=G,Ze.isAsyncMode=H,Ze.isConcurrentMode=U,Ze.isContextConsumer=Q,Ze.isContextProvider=$,Ze.isElement=q,Ze.isForwardRef=Z,Ze.isFragment=X,Ze.isLazy=te,Ze.isMemo=Y,Ze.isPortal=J,Ze.isProfiler=ie,Ze.isStrictMode=oe,Ze.isSuspense=re,Ze.isValidElementType=C,Ze.typeOf=S})()),Ze}var Zx;function t9(){return Zx||(Zx=1,process.env.NODE_ENV==="production"?Qs.exports=Q3():Qs.exports=e9()),Qs.exports}function Ee(){return Ee=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ee.apply(null,arguments)}function n9(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Bm(t,e){return Bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bm(t,e)}function r9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}const o9={light:"",dark:".dark"},OI=v.createContext(null);function RI(){const t=v.useContext(OI);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}function i9({id:t,className:e,children:n,config:r,...o}){const i=v.useId(),a=`chart-${t||i.replace(/:/g,"")}`;return h.jsx(OI.Provider,{value:{config:r},children:h.jsxs("div",{"data-slot":"chart","data-chart":a,className:D("ui:[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground ui:[&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 ui:[&_.recharts-curve.recharts-tooltip-cursor]:stroke-border ui:[&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border ui:[&_.recharts-radial-bar-background-sector]:fill-muted ui:[&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted ui:[&_.recharts-reference-line_[stroke='#ccc']]:stroke-border ui:flex ui:aspect-video ui:justify-center ui:text-xs ui:[&_.recharts-dot[stroke='#fff']]:stroke-transparent ui:[&_.recharts-layer]:outline-hidden ui:[&_.recharts-sector]:outline-hidden ui:[&_.recharts-sector[stroke='#fff']]:stroke-transparent ui:bg-amber-200 ui:[&_.recharts-surface]:outline-hidden",e),...o,children:[h.jsx(PI,{id:a,config:r}),h.jsx(K3,{children:n})]})})}const PI=({id:t,config:e})=>{const n=Object.entries(e).filter(([,r])=>r.theme||r.color);return n.length?h.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(o9).map(([r,o])=>`
11
11
  ${o} [data-chart=${t}] {
12
12
  ${n.map(([i,a])=>{const s=a.theme?.[r]||a.color;return s?` --color-${i}: ${s};`:null}).join(`
13
13
  `)}
14
14
  }
15
15
  `).join(`
16
- `)}}):null},s9=Sb;function l9({active:t,payload:e,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:l,formatter:u,color:d,nameKey:c,labelKey:f}){const{config:p}=RI(),m=v.useMemo(()=>{if(o||!e?.length)return null;const[b]=e,y=`${f||b?.dataKey||b?.name||"value"}`,w=Fm(p,b,y),C=!f&&typeof a=="string"?p[a]?.label||a:w?.label;return s?h.jsx("div",{className:D("ui:font-medium",l),children:s(C,e)}):C?h.jsx("div",{className:D("ui:font-medium",l),children:C}):null},[a,s,e,o,l,p,f]);if(!t||!e?.length)return null;const g=e.length===1&&r!=="dot";return h.jsxs("div",{className:D("ui:border-border/50 ui:bg-background ui:grid ui:min-w-[8rem] ui:items-start ui:gap-1.5 ui:rounded-lg ui:border ui:px-2.5 ui:py-1.5 ui:text-xs ui:shadow-xl",n),children:[g?null:m,h.jsx("div",{className:"ui:grid ui:gap-1.5",children:e.filter(b=>b.type!=="none").map((b,y)=>{const w=`${c||b.name||b.dataKey||"value"}`,C=Fm(p,b,w),S=d||b.payload.fill||b.color;return h.jsx("div",{className:D("ui:[&>svg]:text-muted-foreground ui:flex ui:w-full ui:flex-wrap ui:items-stretch ui:gap-2 ui:[&>svg]:h-2.5 ui:[&>svg]:w-2.5",r==="dot"&&"ui:items-center"),children:u&&b?.value!==void 0&&b.name?u(b.value,b.name,b,y,b.payload):h.jsxs(h.Fragment,{children:[C?.icon?h.jsx(C.icon,{}):!i&&h.jsx("div",{className:D("ui:shrink-0 ui:rounded-[2px] ui:border-(--color-border) ui:bg-(--color-bg)",{"ui:h-2.5 ui:w-2.5":r==="dot","ui:w-1":r==="line","ui:w-0 ui:border-[1.5px] ui:border-dashed ui:bg-transparent":r==="dashed","ui:my-0.5":g&&r==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),h.jsxs("div",{className:D("ui:flex ui:flex-1 ui:justify-between ui:leading-none",g?"ui:items-end":"ui:items-center"),children:[h.jsxs("div",{className:"ui:grid ui:gap-1.5",children:[g?m:null,h.jsx("span",{className:"ui:text-muted-foreground",children:C?.label||b.name})]}),b.value&&h.jsx("span",{className:"ui:text-foreground ui:font-mono ui:font-medium ui:tabular-nums",children:b.value.toLocaleString()})]})]})},b.dataKey)})})]})}const u9=wb;function c9({className:t,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:o}){const{config:i}=RI();return n?.length?h.jsx("div",{className:D("ui:flex ui:items-center ui:justify-center ui:gap-4",r==="top"?"ui:pb-3":"ui:pt-3",t),children:n.filter(a=>a.type!=="none").map(a=>{const s=`${o||a.dataKey||"value"}`,l=Fm(i,a,s);return h.jsxs("div",{className:D("ui:[&>svg]:text-muted-foreground ui:flex ui:items-center ui:gap-1.5 ui:[&>svg]:h-3 ui:[&>svg]:w-3"),children:[l?.icon&&!e?h.jsx(l.icon,{}):h.jsx("div",{className:"ui:h-2 ui:w-2 ui:shrink-0 ui:rounded-[2px]",style:{backgroundColor:a.color}}),l?.label]},a.value)})}):null}function Fm(t,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let o=n;return n in e&&typeof e[n]=="string"?o=e[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in t?t[o]:t[n]}function us(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function cs(t){const[e,n]=v.useState(void 0);return gt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=t.offsetWidth,s=t.offsetHeight;n({width:a,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Lu="Checkbox",[d9]=At(Lu),[f9,Eb]=d9(Lu);function h9(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:c}=t,[f,p]=jt({prop:n,defaultProp:o??!1,onChange:l,caller:Lu}),[m,g]=v.useState(null),[b,y]=v.useState(null),w=v.useRef(!1),C=m?!!a||!!m.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:m,setControl:g,name:s,form:a,value:d,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:Yr(o)?!1:o,isFormControl:C,bubbleInput:b,setBubbleInput:y};return h.jsx(f9,{scope:e,...S,children:p9(c)?c(S):r})}var MI="CheckboxTrigger",kI=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Eb(MI,t),g=Se(o,d),b=v.useRef(l);return v.useEffect(()=>{const y=i?.form;if(y){const w=()=>c(b.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[i,c]),h.jsx(he.button,{type:"button",role:"checkbox","aria-checked":Yr(l)?"mixed":l,"aria-required":u,"data-state":GI(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:g,onKeyDown:se(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:se(n,y=>{c(w=>Yr(w)?!0:!w),m&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});kI.displayName=MI;var DI=v.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:u,form:d,...c}=t;return h.jsx(h9,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:f})=>h.jsxs(h.Fragment,{children:[h.jsx(kI,{...c,ref:e,__scopeCheckbox:n}),f&&h.jsx(FI,{__scopeCheckbox:n})]})})});DI.displayName=Lu;var jI="CheckboxIndicator",LI=v.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...o}=t,i=Eb(jI,n);return h.jsx(pt,{present:r||Yr(i.checked)||i.checked===!0,children:h.jsx(he.span,{"data-state":GI(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});LI.displayName=jI;var BI="CheckboxBubbleInput",FI=v.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:u,value:d,form:c,bubbleInput:f,setBubbleInput:p}=Eb(BI,t),m=Se(n,p),g=us(i),b=cs(r);v.useEffect(()=>{const w=f;if(!w)return;const C=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(C,"checked").set,T=!o.current;if(g!==i&&E){const A=new Event("click",{bubbles:T});w.indeterminate=Yr(i),E.call(w,Yr(i)?!1:i),w.dispatchEvent(A)}},[f,g,i,o]);const y=v.useRef(Yr(i)?!1:i);return h.jsx(he.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:u,value:d,form:c,...e,tabIndex:-1,ref:m,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});FI.displayName=BI;function p9(t){return typeof t=="function"}function Yr(t){return t==="indeterminate"}function GI(t){return Yr(t)?"indeterminate":t?"checked":"unchecked"}function $I({className:t,...e}){return h.jsx(DI,{"data-slot":"checkbox",className:D("ui:peer ui:border-input ui:dark:bg-input/30 ui:data-[state=checked]:bg-primary ui:data-[state=checked]:text-primary-foreground ui:dark:data-[state=checked]:bg-primary ui:data-[state=checked]:border-primary ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:size-4 ui:shrink-0 ui:rounded-[4px] ui:border ui:shadow-xs ui:transition-shadow ui:outline-none ui:focus-visible:ring-[3px] ui:disabled:cursor-not-allowed ui:disabled:opacity-50",t),...e,children:h.jsx(LI,{"data-slot":"checkbox-indicator",className:"ui:grid ui:place-content-center ui:text-current ui:transition-none",children:h.jsx(Oa,{className:"ui:size-3.5"})})})}function m9({...t}){return h.jsx(yS,{"data-slot":"collapsible",...t})}function g9({...t}){return h.jsx(Lg,{"data-slot":"collapsible-trigger",...t})}function b9({...t}){return h.jsx(Fg,{"data-slot":"collapsible-content",...t})}var Jx=1,v9=.9,y9=.8,x9=.17,Rp=.1,Pp=.999,w9=.9999,C9=.99,S9=/[\\\/_+.#"@\[\(\{&]/,E9=/[\\\/_+.#"@\[\(\{&]/g,I9=/[\s-]/,VI=/[\s-]/g;function Gm(t,e,n,r,o,i,a){if(i===e.length)return o===t.length?Jx:C9;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),u=n.indexOf(l,o),d=0,c,f,p,m;u>=0;)c=Gm(t,e,n,r,u+1,i+1,a),c>d&&(u===o?c*=Jx:S9.test(t.charAt(u-1))?(c*=y9,p=t.slice(o,u-1).match(E9),p&&o>0&&(c*=Math.pow(Pp,p.length))):I9.test(t.charAt(u-1))?(c*=v9,m=t.slice(o,u-1).match(VI),m&&o>0&&(c*=Math.pow(Pp,m.length))):(c*=x9,o>0&&(c*=Math.pow(Pp,u-o))),t.charAt(u)!==e.charAt(i)&&(c*=w9)),(c<Rp&&n.charAt(u-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(u-1)!==r.charAt(i))&&(f=Gm(t,e,n,r,u+1,i+2,a),f*Rp>c&&(c=f*Rp)),c>d&&(d=c),u=n.indexOf(l,u+1);return a[s]=d,d}function Kx(t){return t.toLowerCase().replace(VI," ")}function A9(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Gm(t,e,Kx(t),Kx(e),0,0,{})}function T9(t,e=globalThis?.document){const n=It(t);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var N9="DismissableLayer",$m="dismissableLayer.update",_9="dismissableLayer.pointerDownOutside",O9="dismissableLayer.focusOutside",Qx,WI=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bo=v.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=t,u=v.useContext(WI),[d,c]=v.useState(null),f=d?.ownerDocument??globalThis?.document,[,p]=v.useState({}),m=Se(e,A=>c(A)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,E=M9(A=>{const O=A.target,M=[...u.branches].some(V=>V.contains(O));!S||M||(o?.(A),a?.(A),A.defaultPrevented||s?.())},f),T=k9(A=>{const O=A.target;[...u.branches].some(V=>V.contains(O))||(i?.(A),a?.(A),A.defaultPrevented||s?.())},f);return T9(A=>{w===u.layers.size-1&&(r?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},f),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qx=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ew(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Qx)}},[d,f,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ew())},[d,u]),v.useEffect(()=>{const A=()=>p({});return document.addEventListener($m,A),()=>document.removeEventListener($m,A)},[]),h.jsx(he.div,{...l,ref:m,style:{pointerEvents:C?S?"auto":"none":void 0,...t.style},onFocusCapture:se(t.onFocusCapture,T.onFocusCapture),onBlurCapture:se(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:se(t.onPointerDownCapture,E.onPointerDownCapture)})});Bo.displayName=N9;var R9="DismissableLayerBranch",P9=v.forwardRef((t,e)=>{const n=v.useContext(WI),r=v.useRef(null),o=Se(e,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(he.div,{...t,ref:o})});P9.displayName=R9;function M9(t,e=globalThis?.document){const n=It(t),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){HI(_9,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=l,e.addEventListener("click",o.current,{once:!0})):l()}else e.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function k9(t,e=globalThis?.document){const n=It(t),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&HI(O9,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ew(){const t=new CustomEvent($m);document.dispatchEvent(t)}function HI(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?mS(o,i):o.dispatchEvent(i)}var Mp="focusScope.autoFocusOnMount",kp="focusScope.autoFocusOnUnmount",tw={bubbles:!1,cancelable:!0},D9="FocusScope",ds=v.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=t,[s,l]=v.useState(null),u=It(o),d=It(i),c=v.useRef(null),f=Se(e,g=>l(g)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(C){if(p.paused||!s)return;const S=C.target;s.contains(S)?c.current=S:qr(c.current,{select:!0})},b=function(C){if(p.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||qr(c.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&qr(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[r,s,p.paused]),v.useEffect(()=>{if(s){rw.add(p);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(Mp,tw);s.addEventListener(Mp,u),s.dispatchEvent(y),y.defaultPrevented||(j9($9(qI(s)),{select:!0}),document.activeElement===g&&qr(s))}return()=>{s.removeEventListener(Mp,u),setTimeout(()=>{const y=new CustomEvent(kp,tw);s.addEventListener(kp,d),s.dispatchEvent(y),y.defaultPrevented||qr(g??document.body,{select:!0}),s.removeEventListener(kp,d),rw.remove(p)},0)}}},[s,u,d,p]);const m=v.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const w=g.currentTarget,[C,S]=L9(w);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),n&&qr(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),n&&qr(S,{select:!0})):y===w&&g.preventDefault()}},[n,r,p.paused]);return h.jsx(he.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})});ds.displayName=D9;function j9(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(qr(r,{select:e}),document.activeElement!==n)return}function L9(t){const e=qI(t),n=nw(e,t),r=nw(e.reverse(),t);return[n,r]}function qI(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function nw(t,e){for(const n of t)if(!B9(n,{upTo:e}))return n}function B9(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function F9(t){return t instanceof HTMLInputElement&&"select"in t}function qr(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&F9(t)&&e&&t.select()}}var rw=G9();function G9(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=ow(t,e),t.unshift(e)},remove(e){t=ow(t,e),t[0]?.resume()}}}function ow(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function $9(t){return t.filter(e=>e.tagName!=="A")}var V9="Portal",Fo=v.forwardRef((t,e)=>{const{container:n,...r}=t,[o,i]=v.useState(!1);gt(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?gu.createPortal(h.jsx(he.div,{...r,ref:e}),a):null});Fo.displayName=V9;var Dp=0;function Bu(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??iw()),document.body.insertAdjacentElement("beforeend",t[1]??iw()),Dp++,()=>{Dp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Dp--}},[])}function iw(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var ir=function(){return ir=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ir.apply(this,arguments)};function zI(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function W9(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Sl="right-scroll-bar-position",El="width-before-scroll-bar",H9="with-scroll-bars-hidden",q9="--removed-body-scroll-bar-size";function jp(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function z9(t,e){var n=I.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var X9=typeof window<"u"?v.useLayoutEffect:v.useEffect,aw=new WeakMap;function Y9(t,e){var n=z9(null,function(r){return t.forEach(function(o){return jp(o,r)})});return X9(function(){var r=aw.get(n);if(r){var o=new Set(r),i=new Set(t),a=n.current;o.forEach(function(s){i.has(s)||jp(s,null)}),i.forEach(function(s){o.has(s)||jp(s,a)})}aw.set(n,t)},[t]),n}function U9(t){return t}function Z9(t,e){e===void 0&&(e=U9);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var a=e(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function J9(t){t===void 0&&(t={});var e=Z9(null);return e.options=ir({async:!0,ssr:!1},t),e}var XI=function(t){var e=t.sideCar,n=zI(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,ir({},n))};XI.isSideCarExport=!0;function K9(t,e){return t.useMedium(e),XI}var YI=J9(),Lp=function(){},Fu=v.forwardRef(function(t,e){var n=v.useRef(null),r=v.useState({onScrollCapture:Lp,onWheelCapture:Lp,onTouchMoveCapture:Lp}),o=r[0],i=r[1],a=t.forwardProps,s=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,c=t.shards,f=t.sideCar,p=t.noRelative,m=t.noIsolation,g=t.inert,b=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,C=t.gapMode,S=zI(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,T=Y9([n,e]),A=ir(ir({},S),o);return v.createElement(v.Fragment,null,d&&v.createElement(E,{sideCar:YI,removeScrollBar:u,shards:c,noRelative:p,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:C}),a?v.cloneElement(v.Children.only(s),ir(ir({},A),{ref:T})):v.createElement(w,ir({},A,{className:l,ref:T}),s))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:El,zeroRight:Sl};var Q9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eG(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Q9();return e&&t.setAttribute("nonce",e),t}function tG(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function nG(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var rG=function(){var t=0,e=null;return{add:function(n){t==0&&(e=eG())&&(tG(e,n),nG(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},oG=function(){var t=rG();return function(e,n){v.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},UI=function(){var t=oG(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},iG={left:0,top:0,right:0,gap:0},Bp=function(t){return parseInt(t||"",10)||0},aG=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Bp(n),Bp(r),Bp(o)]},sG=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return iG;var e=aG(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},lG=UI(),pi="data-scroll-locked",uG=function(t,e,n,r){var o=t.left,i=t.top,a=t.right,s=t.gap;return n===void 0&&(n="margin"),`
17
- .`.concat(H9,` {
16
+ `)}}):null},a9=Sb;function s9({active:t,payload:e,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:l,formatter:u,color:d,nameKey:c,labelKey:f}){const{config:p}=RI(),m=v.useMemo(()=>{if(o||!e?.length)return null;const[b]=e,y=`${f||b?.dataKey||b?.name||"value"}`,w=Fm(p,b,y),C=!f&&typeof a=="string"?p[a]?.label||a:w?.label;return s?h.jsx("div",{className:D("ui:font-medium",l),children:s(C,e)}):C?h.jsx("div",{className:D("ui:font-medium",l),children:C}):null},[a,s,e,o,l,p,f]);if(!t||!e?.length)return null;const g=e.length===1&&r!=="dot";return h.jsxs("div",{className:D("ui:border-border/50 ui:bg-background ui:grid ui:min-w-[8rem] ui:items-start ui:gap-1.5 ui:rounded-lg ui:border ui:px-2.5 ui:py-1.5 ui:text-xs ui:shadow-xl",n),children:[g?null:m,h.jsx("div",{className:"ui:grid ui:gap-1.5",children:e.filter(b=>b.type!=="none").map((b,y)=>{const w=`${c||b.name||b.dataKey||"value"}`,C=Fm(p,b,w),S=d||b.payload.fill||b.color;return h.jsx("div",{className:D("ui:[&>svg]:text-muted-foreground ui:flex ui:w-full ui:flex-wrap ui:items-stretch ui:gap-2 ui:[&>svg]:h-2.5 ui:[&>svg]:w-2.5",r==="dot"&&"ui:items-center"),children:u&&b?.value!==void 0&&b.name?u(b.value,b.name,b,y,b.payload):h.jsxs(h.Fragment,{children:[C?.icon?h.jsx(C.icon,{}):!i&&h.jsx("div",{className:D("ui:shrink-0 ui:rounded-[2px] ui:border-(--color-border) ui:bg-(--color-bg)",{"ui:h-2.5 ui:w-2.5":r==="dot","ui:w-1":r==="line","ui:w-0 ui:border-[1.5px] ui:border-dashed ui:bg-transparent":r==="dashed","ui:my-0.5":g&&r==="dashed"}),style:{"--color-bg":S,"--color-border":S}}),h.jsxs("div",{className:D("ui:flex ui:flex-1 ui:justify-between ui:leading-none",g?"ui:items-end":"ui:items-center"),children:[h.jsxs("div",{className:"ui:grid ui:gap-1.5",children:[g?m:null,h.jsx("span",{className:"ui:text-muted-foreground",children:C?.label||b.name})]}),b.value&&h.jsx("span",{className:"ui:text-foreground ui:font-mono ui:font-medium ui:tabular-nums",children:b.value.toLocaleString()})]})]})},b.dataKey)})})]})}const l9=wb;function u9({className:t,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:o}){const{config:i}=RI();return n?.length?h.jsx("div",{className:D("ui:flex ui:items-center ui:justify-center ui:gap-4",r==="top"?"ui:pb-3":"ui:pt-3",t),children:n.filter(a=>a.type!=="none").map(a=>{const s=`${o||a.dataKey||"value"}`,l=Fm(i,a,s);return h.jsxs("div",{className:D("ui:[&>svg]:text-muted-foreground ui:flex ui:items-center ui:gap-1.5 ui:[&>svg]:h-3 ui:[&>svg]:w-3"),children:[l?.icon&&!e?h.jsx(l.icon,{}):h.jsx("div",{className:"ui:h-2 ui:w-2 ui:shrink-0 ui:rounded-[2px]",style:{backgroundColor:a.color}}),l?.label]},a.value)})}):null}function Fm(t,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let o=n;return n in e&&typeof e[n]=="string"?o=e[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in t?t[o]:t[n]}function us(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function cs(t){const[e,n]=v.useState(void 0);return gt(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=t.offsetWidth,s=t.offsetHeight;n({width:a,height:s})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Lu="Checkbox",[c9]=At(Lu),[d9,Eb]=c9(Lu);function f9(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:c}=t,[f,p]=jt({prop:n,defaultProp:o??!1,onChange:l,caller:Lu}),[m,g]=v.useState(null),[b,y]=v.useState(null),w=v.useRef(!1),C=m?!!a||!!m.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:m,setControl:g,name:s,form:a,value:d,hasConsumerStoppedPropagationRef:w,required:u,defaultChecked:Yr(o)?!1:o,isFormControl:C,bubbleInput:b,setBubbleInput:y};return h.jsx(d9,{scope:e,...S,children:h9(c)?c(S):r})}var MI="CheckboxTrigger",kI=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Eb(MI,t),g=Se(o,d),b=v.useRef(l);return v.useEffect(()=>{const y=i?.form;if(y){const w=()=>c(b.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[i,c]),h.jsx(he.button,{type:"button",role:"checkbox","aria-checked":Yr(l)?"mixed":l,"aria-required":u,"data-state":GI(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:g,onKeyDown:se(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:se(n,y=>{c(w=>Yr(w)?!0:!w),m&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});kI.displayName=MI;var DI=v.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:u,form:d,...c}=t;return h.jsx(f9,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:f})=>h.jsxs(h.Fragment,{children:[h.jsx(kI,{...c,ref:e,__scopeCheckbox:n}),f&&h.jsx(FI,{__scopeCheckbox:n})]})})});DI.displayName=Lu;var jI="CheckboxIndicator",LI=v.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...o}=t,i=Eb(jI,n);return h.jsx(pt,{present:r||Yr(i.checked)||i.checked===!0,children:h.jsx(he.span,{"data-state":GI(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});LI.displayName=jI;var BI="CheckboxBubbleInput",FI=v.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:u,value:d,form:c,bubbleInput:f,setBubbleInput:p}=Eb(BI,t),m=Se(n,p),g=us(i),b=cs(r);v.useEffect(()=>{const w=f;if(!w)return;const C=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(C,"checked").set,T=!o.current;if(g!==i&&E){const A=new Event("click",{bubbles:T});w.indeterminate=Yr(i),E.call(w,Yr(i)?!1:i),w.dispatchEvent(A)}},[f,g,i,o]);const y=v.useRef(Yr(i)?!1:i);return h.jsx(he.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:u,value:d,form:c,...e,tabIndex:-1,ref:m,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});FI.displayName=BI;function h9(t){return typeof t=="function"}function Yr(t){return t==="indeterminate"}function GI(t){return Yr(t)?"indeterminate":t?"checked":"unchecked"}function $I({className:t,...e}){return h.jsx(DI,{"data-slot":"checkbox",className:D("ui:peer ui:border-input ui:dark:bg-input/30 ui:data-[state=checked]:bg-primary ui:data-[state=checked]:text-primary-foreground ui:dark:data-[state=checked]:bg-primary ui:data-[state=checked]:border-primary ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:size-4 ui:shrink-0 ui:rounded-[4px] ui:border ui:shadow-xs ui:transition-shadow ui:outline-none ui:focus-visible:ring-[3px] ui:disabled:cursor-not-allowed ui:disabled:opacity-50",t),...e,children:h.jsx(LI,{"data-slot":"checkbox-indicator",className:"ui:grid ui:place-content-center ui:text-current ui:transition-none",children:h.jsx(Oa,{className:"ui:size-3.5"})})})}function p9({...t}){return h.jsx(yS,{"data-slot":"collapsible",...t})}function m9({...t}){return h.jsx(Lg,{"data-slot":"collapsible-trigger",...t})}function g9({...t}){return h.jsx(Fg,{"data-slot":"collapsible-content",...t})}var Jx=1,b9=.9,v9=.8,y9=.17,Rp=.1,Pp=.999,x9=.9999,w9=.99,C9=/[\\\/_+.#"@\[\(\{&]/,S9=/[\\\/_+.#"@\[\(\{&]/g,E9=/[\s-]/,VI=/[\s-]/g;function Gm(t,e,n,r,o,i,a){if(i===e.length)return o===t.length?Jx:w9;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),u=n.indexOf(l,o),d=0,c,f,p,m;u>=0;)c=Gm(t,e,n,r,u+1,i+1,a),c>d&&(u===o?c*=Jx:C9.test(t.charAt(u-1))?(c*=v9,p=t.slice(o,u-1).match(S9),p&&o>0&&(c*=Math.pow(Pp,p.length))):E9.test(t.charAt(u-1))?(c*=b9,m=t.slice(o,u-1).match(VI),m&&o>0&&(c*=Math.pow(Pp,m.length))):(c*=y9,o>0&&(c*=Math.pow(Pp,u-o))),t.charAt(u)!==e.charAt(i)&&(c*=x9)),(c<Rp&&n.charAt(u-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(u-1)!==r.charAt(i))&&(f=Gm(t,e,n,r,u+1,i+2,a),f*Rp>c&&(c=f*Rp)),c>d&&(d=c),u=n.indexOf(l,u+1);return a[s]=d,d}function Kx(t){return t.toLowerCase().replace(VI," ")}function I9(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,Gm(t,e,Kx(t),Kx(e),0,0,{})}function A9(t,e=globalThis?.document){const n=It(t);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var T9="DismissableLayer",$m="dismissableLayer.update",N9="dismissableLayer.pointerDownOutside",_9="dismissableLayer.focusOutside",Qx,WI=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bo=v.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=t,u=v.useContext(WI),[d,c]=v.useState(null),f=d?.ownerDocument??globalThis?.document,[,p]=v.useState({}),m=Se(e,A=>c(A)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,C=u.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,E=P9(A=>{const O=A.target,M=[...u.branches].some(V=>V.contains(O));!S||M||(o?.(A),a?.(A),A.defaultPrevented||s?.())},f),T=M9(A=>{const O=A.target;[...u.branches].some(V=>V.contains(O))||(i?.(A),a?.(A),A.defaultPrevented||s?.())},f);return A9(A=>{w===u.layers.size-1&&(r?.(A),!A.defaultPrevented&&s&&(A.preventDefault(),s()))},f),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Qx=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ew(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Qx)}},[d,f,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ew())},[d,u]),v.useEffect(()=>{const A=()=>p({});return document.addEventListener($m,A),()=>document.removeEventListener($m,A)},[]),h.jsx(he.div,{...l,ref:m,style:{pointerEvents:C?S?"auto":"none":void 0,...t.style},onFocusCapture:se(t.onFocusCapture,T.onFocusCapture),onBlurCapture:se(t.onBlurCapture,T.onBlurCapture),onPointerDownCapture:se(t.onPointerDownCapture,E.onPointerDownCapture)})});Bo.displayName=T9;var O9="DismissableLayerBranch",R9=v.forwardRef((t,e)=>{const n=v.useContext(WI),r=v.useRef(null),o=Se(e,r);return v.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(he.div,{...t,ref:o})});R9.displayName=O9;function P9(t,e=globalThis?.document){const n=It(t),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){HI(N9,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=l,e.addEventListener("click",o.current,{once:!0})):l()}else e.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function M9(t,e=globalThis?.document){const n=It(t),r=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!r.current&&HI(_9,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ew(){const t=new CustomEvent($m);document.dispatchEvent(t)}function HI(t,e,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?mS(o,i):o.dispatchEvent(i)}var Mp="focusScope.autoFocusOnMount",kp="focusScope.autoFocusOnUnmount",tw={bubbles:!1,cancelable:!0},k9="FocusScope",ds=v.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=t,[s,l]=v.useState(null),u=It(o),d=It(i),c=v.useRef(null),f=Se(e,g=>l(g)),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let g=function(C){if(p.paused||!s)return;const S=C.target;s.contains(S)?c.current=S:qr(c.current,{select:!0})},b=function(C){if(p.paused||!s)return;const S=C.relatedTarget;S!==null&&(s.contains(S)||qr(c.current,{select:!0}))},y=function(C){if(document.activeElement===document.body)for(const E of C)E.removedNodes.length>0&&qr(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),w.disconnect()}}},[r,s,p.paused]),v.useEffect(()=>{if(s){rw.add(p);const g=document.activeElement;if(!s.contains(g)){const y=new CustomEvent(Mp,tw);s.addEventListener(Mp,u),s.dispatchEvent(y),y.defaultPrevented||(D9(G9(qI(s)),{select:!0}),document.activeElement===g&&qr(s))}return()=>{s.removeEventListener(Mp,u),setTimeout(()=>{const y=new CustomEvent(kp,tw);s.addEventListener(kp,d),s.dispatchEvent(y),y.defaultPrevented||qr(g??document.body,{select:!0}),s.removeEventListener(kp,d),rw.remove(p)},0)}}},[s,u,d,p]);const m=v.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const w=g.currentTarget,[C,S]=j9(w);C&&S?!g.shiftKey&&y===S?(g.preventDefault(),n&&qr(C,{select:!0})):g.shiftKey&&y===C&&(g.preventDefault(),n&&qr(S,{select:!0})):y===w&&g.preventDefault()}},[n,r,p.paused]);return h.jsx(he.div,{tabIndex:-1,...a,ref:f,onKeyDown:m})});ds.displayName=k9;function D9(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(qr(r,{select:e}),document.activeElement!==n)return}function j9(t){const e=qI(t),n=nw(e,t),r=nw(e.reverse(),t);return[n,r]}function qI(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function nw(t,e){for(const n of t)if(!L9(n,{upTo:e}))return n}function L9(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function B9(t){return t instanceof HTMLInputElement&&"select"in t}function qr(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&B9(t)&&e&&t.select()}}var rw=F9();function F9(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=ow(t,e),t.unshift(e)},remove(e){t=ow(t,e),t[0]?.resume()}}}function ow(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function G9(t){return t.filter(e=>e.tagName!=="A")}var $9="Portal",Fo=v.forwardRef((t,e)=>{const{container:n,...r}=t,[o,i]=v.useState(!1);gt(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?gu.createPortal(h.jsx(he.div,{...r,ref:e}),a):null});Fo.displayName=$9;var Dp=0;function Bu(){v.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??iw()),document.body.insertAdjacentElement("beforeend",t[1]??iw()),Dp++,()=>{Dp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Dp--}},[])}function iw(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var ir=function(){return ir=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ir.apply(this,arguments)};function zI(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function V9(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,i;r<o;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var Sl="right-scroll-bar-position",El="width-before-scroll-bar",W9="with-scroll-bars-hidden",H9="--removed-body-scroll-bar-size";function jp(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function q9(t,e){var n=I.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var z9=typeof window<"u"?v.useLayoutEffect:v.useEffect,aw=new WeakMap;function X9(t,e){var n=q9(null,function(r){return t.forEach(function(o){return jp(o,r)})});return z9(function(){var r=aw.get(n);if(r){var o=new Set(r),i=new Set(t),a=n.current;o.forEach(function(s){i.has(s)||jp(s,null)}),i.forEach(function(s){o.has(s)||jp(s,a)})}aw.set(n,t)},[t]),n}function Y9(t){return t}function U9(t,e){e===void 0&&(e=Y9);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var a=e(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),n}}}};return o}function Z9(t){t===void 0&&(t={});var e=U9(null);return e.options=ir({async:!0,ssr:!1},t),e}var XI=function(t){var e=t.sideCar,n=zI(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,ir({},n))};XI.isSideCarExport=!0;function J9(t,e){return t.useMedium(e),XI}var YI=Z9(),Lp=function(){},Fu=v.forwardRef(function(t,e){var n=v.useRef(null),r=v.useState({onScrollCapture:Lp,onWheelCapture:Lp,onTouchMoveCapture:Lp}),o=r[0],i=r[1],a=t.forwardProps,s=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,c=t.shards,f=t.sideCar,p=t.noRelative,m=t.noIsolation,g=t.inert,b=t.allowPinchZoom,y=t.as,w=y===void 0?"div":y,C=t.gapMode,S=zI(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,T=X9([n,e]),A=ir(ir({},S),o);return v.createElement(v.Fragment,null,d&&v.createElement(E,{sideCar:YI,removeScrollBar:u,shards:c,noRelative:p,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:C}),a?v.cloneElement(v.Children.only(s),ir(ir({},A),{ref:T})):v.createElement(w,ir({},A,{className:l,ref:T}),s))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:El,zeroRight:Sl};var K9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Q9(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=K9();return e&&t.setAttribute("nonce",e),t}function eG(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function tG(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var nG=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Q9())&&(eG(e,n),tG(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},rG=function(){var t=nG();return function(e,n){v.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},UI=function(){var t=rG(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},oG={left:0,top:0,right:0,gap:0},Bp=function(t){return parseInt(t||"",10)||0},iG=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Bp(n),Bp(r),Bp(o)]},aG=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return oG;var e=iG(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},sG=UI(),pi="data-scroll-locked",lG=function(t,e,n,r){var o=t.left,i=t.top,a=t.right,s=t.gap;return n===void 0&&(n="margin"),`
17
+ .`.concat(W9,` {
18
18
  overflow: hidden `).concat(r,`;
19
19
  padding-right: `).concat(s,"px ").concat(r,`;
20
20
  }
@@ -48,18 +48,18 @@ ${n.map(([i,a])=>{const s=a.theme?.[r]||a.color;return s?` --color-${i}: ${s};`
48
48
  }
49
49
 
50
50
  body[`).concat(pi,`] {
51
- `).concat(q9,": ").concat(s,`px;
51
+ `).concat(H9,": ").concat(s,`px;
52
52
  }
53
- `)},sw=function(){var t=parseInt(document.body.getAttribute(pi)||"0",10);return isFinite(t)?t:0},cG=function(){v.useEffect(function(){return document.body.setAttribute(pi,(sw()+1).toString()),function(){var t=sw()-1;t<=0?document.body.removeAttribute(pi):document.body.setAttribute(pi,t.toString())}},[])},dG=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;cG();var i=v.useMemo(function(){return sG(o)},[o]);return v.createElement(lG,{styles:uG(i,!e,o,n?"":"!important")})},Vm=!1;if(typeof window<"u")try{var el=Object.defineProperty({},"passive",{get:function(){return Vm=!0,!0}});window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{Vm=!1}var ni=Vm?{passive:!1}:!1,fG=function(t){return t.tagName==="TEXTAREA"},ZI=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!fG(t)&&n[e]==="visible")},hG=function(t){return ZI(t,"overflowY")},pG=function(t){return ZI(t,"overflowX")},lw=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=JI(t,r);if(o){var i=KI(t,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},mG=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},gG=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},JI=function(t,e){return t==="v"?hG(e):pG(e)},KI=function(t,e){return t==="v"?mG(e):gG(e)},bG=function(t,e){return t==="h"&&e==="rtl"?-1:1},vG=function(t,e,n,r,o){var i=bG(t,window.getComputedStyle(e).direction),a=i*r,s=n.target,l=e.contains(s),u=!1,d=a>0,c=0,f=0;do{if(!s)break;var p=KI(t,s),m=p[0],g=p[1],b=p[2],y=g-b-i*m;(m||y)&&JI(t,s)&&(c+=y,f+=m);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(d&&Math.abs(c)<1||!d&&Math.abs(f)<1)&&(u=!0),u},tl=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},uw=function(t){return[t.deltaX,t.deltaY]},cw=function(t){return t&&"current"in t?t.current:t},yG=function(t,e){return t[0]===e[0]&&t[1]===e[1]},xG=function(t){return`
53
+ `)},sw=function(){var t=parseInt(document.body.getAttribute(pi)||"0",10);return isFinite(t)?t:0},uG=function(){v.useEffect(function(){return document.body.setAttribute(pi,(sw()+1).toString()),function(){var t=sw()-1;t<=0?document.body.removeAttribute(pi):document.body.setAttribute(pi,t.toString())}},[])},cG=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;uG();var i=v.useMemo(function(){return aG(o)},[o]);return v.createElement(sG,{styles:lG(i,!e,o,n?"":"!important")})},Vm=!1;if(typeof window<"u")try{var el=Object.defineProperty({},"passive",{get:function(){return Vm=!0,!0}});window.addEventListener("test",el,el),window.removeEventListener("test",el,el)}catch{Vm=!1}var ni=Vm?{passive:!1}:!1,dG=function(t){return t.tagName==="TEXTAREA"},ZI=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!dG(t)&&n[e]==="visible")},fG=function(t){return ZI(t,"overflowY")},hG=function(t){return ZI(t,"overflowX")},lw=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=JI(t,r);if(o){var i=KI(t,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},pG=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},mG=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},JI=function(t,e){return t==="v"?fG(e):hG(e)},KI=function(t,e){return t==="v"?pG(e):mG(e)},gG=function(t,e){return t==="h"&&e==="rtl"?-1:1},bG=function(t,e,n,r,o){var i=gG(t,window.getComputedStyle(e).direction),a=i*r,s=n.target,l=e.contains(s),u=!1,d=a>0,c=0,f=0;do{if(!s)break;var p=KI(t,s),m=p[0],g=p[1],b=p[2],y=g-b-i*m;(m||y)&&JI(t,s)&&(c+=y,f+=m);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(e.contains(s)||e===s));return(d&&Math.abs(c)<1||!d&&Math.abs(f)<1)&&(u=!0),u},tl=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},uw=function(t){return[t.deltaX,t.deltaY]},cw=function(t){return t&&"current"in t?t.current:t},vG=function(t,e){return t[0]===e[0]&&t[1]===e[1]},yG=function(t){return`
54
54
  .block-interactivity-`.concat(t,` {pointer-events: none;}
55
55
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
56
- `)},wG=0,ri=[];function CG(t){var e=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(wG++)[0],i=v.useState(UI)[0],a=v.useRef(t);v.useEffect(function(){a.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var g=W9([t.lockRef.current],(t.shards||[]).map(cw),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var s=v.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=tl(g),w=n.current,C="deltaX"in g?g.deltaX:w[0]-y[0],S="deltaY"in g?g.deltaY:w[1]-y[1],E,T=g.target,A=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in g&&A==="h"&&T.type==="range")return!1;var O=window.getSelection(),M=O&&O.anchorNode,V=M?M===T||M.contains(T):!1;if(V)return!1;var N=lw(A,T);if(!N)return!0;if(N?E=A:(E=A==="v"?"h":"v",N=lw(A,T)),!N)return!1;if(!r.current&&"changedTouches"in g&&(C||S)&&(r.current=E),!E)return!0;var k=r.current||E;return vG(k,b,g,k==="h"?C:S)},[]),l=v.useCallback(function(g){var b=g;if(!(!ri.length||ri[ri.length-1]!==i)){var y="deltaY"in b?uw(b):tl(b),w=e.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&yG(E.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var C=(a.current.shards||[]).map(cw).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=C.length>0?s(b,C[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=v.useCallback(function(g,b,y,w){var C={name:g,delta:b,target:y,should:w,shadowParent:SG(y)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(S){return S!==C})},1)},[]),d=v.useCallback(function(g){n.current=tl(g),r.current=void 0},[]),c=v.useCallback(function(g){u(g.type,uw(g),g.target,s(g,t.lockRef.current))},[]),f=v.useCallback(function(g){u(g.type,tl(g),g.target,s(g,t.lockRef.current))},[]);v.useEffect(function(){return ri.push(i),t.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ni),document.addEventListener("touchmove",l,ni),document.addEventListener("touchstart",d,ni),function(){ri=ri.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,ni),document.removeEventListener("touchmove",l,ni),document.removeEventListener("touchstart",d,ni)}},[]);var p=t.removeScrollBar,m=t.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:xG(o)}):null,p?v.createElement(dG,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function SG(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const EG=K9(YI,CG);var fs=v.forwardRef(function(t,e){return v.createElement(Fu,ir({},t,{ref:e,sideCar:EG}))});fs.classNames=Fu.classNames;var IG=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},oi=new WeakMap,nl=new WeakMap,rl={},Fp=0,QI=function(t){return t&&(t.host||QI(t.parentNode))},AG=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=QI(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},TG=function(t,e,n,r){var o=AG(e,Array.isArray(t)?t:[t]);rl[n]||(rl[n]=new WeakMap);var i=rl[n],a=[],s=new Set,l=new Set(o),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(s.has(f))d(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",g=(oi.get(f)||0)+1,b=(i.get(f)||0)+1;oi.set(f,g),i.set(f,b),a.push(f),g===1&&m&&nl.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(e),s.clear(),Fp++,function(){a.forEach(function(c){var f=oi.get(c)-1,p=i.get(c)-1;oi.set(c,f),i.set(c,p),f||(nl.has(c)||c.removeAttribute(r),nl.delete(c)),p||c.removeAttribute(n)}),Fp--,Fp||(oi=new WeakMap,oi=new WeakMap,nl=new WeakMap,rl={})}},Gu=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=IG(t);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),TG(r,o,n,"aria-hidden")):function(){return null}},$u="Dialog",[eA]=At($u),[NG,Xn]=eA($u),tA=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=t,s=v.useRef(null),l=v.useRef(null),[u,d]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:$u});return h.jsx(NG,{scope:e,triggerRef:s,contentRef:l,contentId:ft(),titleId:ft(),descriptionId:ft(),open:u,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(c=>!c),[d]),modal:a,children:n})};tA.displayName=$u;var nA="DialogTrigger",rA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(nA,n),i=Se(e,o.triggerRef);return h.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tb(o.open),...r,ref:i,onClick:se(t.onClick,o.onOpenToggle)})});rA.displayName=nA;var Ib="DialogPortal",[_G,oA]=eA(Ib,{forceMount:void 0}),iA=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:o}=t,i=Xn(Ib,e);return h.jsx(_G,{scope:e,forceMount:n,children:v.Children.map(r,a=>h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:a})}))})};iA.displayName=Ib;var ql="DialogOverlay",aA=v.forwardRef((t,e)=>{const n=oA(ql,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=Xn(ql,t.__scopeDialog);return i.modal?h.jsx(pt,{present:r||i.open,children:h.jsx(RG,{...o,ref:e})}):null});aA.displayName=ql;var OG=wo("DialogOverlay.RemoveScroll"),RG=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(ql,n);return h.jsx(fs,{as:OG,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(he.div,{"data-state":Tb(o.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Eo="DialogContent",sA=v.forwardRef((t,e)=>{const n=oA(Eo,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=Xn(Eo,t.__scopeDialog);return h.jsx(pt,{present:r||i.open,children:i.modal?h.jsx(PG,{...o,ref:e}):h.jsx(MG,{...o,ref:e})})});sA.displayName=Eo;var PG=v.forwardRef((t,e)=>{const n=Xn(Eo,t.__scopeDialog),r=v.useRef(null),o=Se(e,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Gu(i)},[]),h.jsx(lA,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(t.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:se(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:se(t.onFocusOutside,i=>i.preventDefault())})}),MG=v.forwardRef((t,e)=>{const n=Xn(Eo,t.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return h.jsx(lA,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),lA=v.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=t,s=Xn(Eo,n),l=v.useRef(null),u=Se(e,l);return Bu(),h.jsxs(h.Fragment,{children:[h.jsx(ds,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(Bo,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tb(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(kG,{titleId:s.titleId}),h.jsx(jG,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Ab="DialogTitle",uA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(Ab,n);return h.jsx(he.h2,{id:o.titleId,...r,ref:e})});uA.displayName=Ab;var cA="DialogDescription",dA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(cA,n);return h.jsx(he.p,{id:o.descriptionId,...r,ref:e})});dA.displayName=cA;var fA="DialogClose",hA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(fA,n);return h.jsx(he.button,{type:"button",...r,ref:e,onClick:se(t.onClick,()=>o.onOpenChange(!1))})});hA.displayName=fA;function Tb(t){return t?"open":"closed"}var pA="DialogTitleWarning",[roe,mA]=VP(pA,{contentName:Eo,titleName:Ab,docsSlug:"dialog"}),kG=({titleId:t})=>{const e=mA(pA),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
56
+ `)},xG=0,ri=[];function wG(t){var e=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(xG++)[0],i=v.useState(UI)[0],a=v.useRef(t);v.useEffect(function(){a.current=t},[t]),v.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var g=V9([t.lockRef.current],(t.shards||[]).map(cw),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var s=v.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=tl(g),w=n.current,C="deltaX"in g?g.deltaX:w[0]-y[0],S="deltaY"in g?g.deltaY:w[1]-y[1],E,T=g.target,A=Math.abs(C)>Math.abs(S)?"h":"v";if("touches"in g&&A==="h"&&T.type==="range")return!1;var O=window.getSelection(),M=O&&O.anchorNode,V=M?M===T||M.contains(T):!1;if(V)return!1;var N=lw(A,T);if(!N)return!0;if(N?E=A:(E=A==="v"?"h":"v",N=lw(A,T)),!N)return!1;if(!r.current&&"changedTouches"in g&&(C||S)&&(r.current=E),!E)return!0;var k=r.current||E;return bG(k,b,g,k==="h"?C:S)},[]),l=v.useCallback(function(g){var b=g;if(!(!ri.length||ri[ri.length-1]!==i)){var y="deltaY"in b?uw(b):tl(b),w=e.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&vG(E.delta,y)})[0];if(w&&w.should){b.cancelable&&b.preventDefault();return}if(!w){var C=(a.current.shards||[]).map(cw).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=C.length>0?s(b,C[0]):!a.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=v.useCallback(function(g,b,y,w){var C={name:g,delta:b,target:y,should:w,shadowParent:CG(y)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(S){return S!==C})},1)},[]),d=v.useCallback(function(g){n.current=tl(g),r.current=void 0},[]),c=v.useCallback(function(g){u(g.type,uw(g),g.target,s(g,t.lockRef.current))},[]),f=v.useCallback(function(g){u(g.type,tl(g),g.target,s(g,t.lockRef.current))},[]);v.useEffect(function(){return ri.push(i),t.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ni),document.addEventListener("touchmove",l,ni),document.addEventListener("touchstart",d,ni),function(){ri=ri.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,ni),document.removeEventListener("touchmove",l,ni),document.removeEventListener("touchstart",d,ni)}},[]);var p=t.removeScrollBar,m=t.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:yG(o)}):null,p?v.createElement(cG,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function CG(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const SG=J9(YI,wG);var fs=v.forwardRef(function(t,e){return v.createElement(Fu,ir({},t,{ref:e,sideCar:SG}))});fs.classNames=Fu.classNames;var EG=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},oi=new WeakMap,nl=new WeakMap,rl={},Fp=0,QI=function(t){return t&&(t.host||QI(t.parentNode))},IG=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=QI(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},AG=function(t,e,n,r){var o=IG(e,Array.isArray(t)?t:[t]);rl[n]||(rl[n]=new WeakMap);var i=rl[n],a=[],s=new Set,l=new Set(o),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};o.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(s.has(f))d(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",g=(oi.get(f)||0)+1,b=(i.get(f)||0)+1;oi.set(f,g),i.set(f,b),a.push(f),g===1&&m&&nl.set(f,!0),b===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return d(e),s.clear(),Fp++,function(){a.forEach(function(c){var f=oi.get(c)-1,p=i.get(c)-1;oi.set(c,f),i.set(c,p),f||(nl.has(c)||c.removeAttribute(r),nl.delete(c)),p||c.removeAttribute(n)}),Fp--,Fp||(oi=new WeakMap,oi=new WeakMap,nl=new WeakMap,rl={})}},Gu=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=EG(t);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),AG(r,o,n,"aria-hidden")):function(){return null}},$u="Dialog",[eA]=At($u),[TG,Xn]=eA($u),tA=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=t,s=v.useRef(null),l=v.useRef(null),[u,d]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:$u});return h.jsx(TG,{scope:e,triggerRef:s,contentRef:l,contentId:ft(),titleId:ft(),descriptionId:ft(),open:u,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(c=>!c),[d]),modal:a,children:n})};tA.displayName=$u;var nA="DialogTrigger",rA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(nA,n),i=Se(e,o.triggerRef);return h.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Tb(o.open),...r,ref:i,onClick:se(t.onClick,o.onOpenToggle)})});rA.displayName=nA;var Ib="DialogPortal",[NG,oA]=eA(Ib,{forceMount:void 0}),iA=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:o}=t,i=Xn(Ib,e);return h.jsx(NG,{scope:e,forceMount:n,children:v.Children.map(r,a=>h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:a})}))})};iA.displayName=Ib;var ql="DialogOverlay",aA=v.forwardRef((t,e)=>{const n=oA(ql,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=Xn(ql,t.__scopeDialog);return i.modal?h.jsx(pt,{present:r||i.open,children:h.jsx(OG,{...o,ref:e})}):null});aA.displayName=ql;var _G=wo("DialogOverlay.RemoveScroll"),OG=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(ql,n);return h.jsx(fs,{as:_G,allowPinchZoom:!0,shards:[o.contentRef],children:h.jsx(he.div,{"data-state":Tb(o.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Eo="DialogContent",sA=v.forwardRef((t,e)=>{const n=oA(Eo,t.__scopeDialog),{forceMount:r=n.forceMount,...o}=t,i=Xn(Eo,t.__scopeDialog);return h.jsx(pt,{present:r||i.open,children:i.modal?h.jsx(RG,{...o,ref:e}):h.jsx(PG,{...o,ref:e})})});sA.displayName=Eo;var RG=v.forwardRef((t,e)=>{const n=Xn(Eo,t.__scopeDialog),r=v.useRef(null),o=Se(e,n.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Gu(i)},[]),h.jsx(lA,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(t.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:se(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:se(t.onFocusOutside,i=>i.preventDefault())})}),PG=v.forwardRef((t,e)=>{const n=Xn(Eo,t.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return h.jsx(lA,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),lA=v.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=t,s=Xn(Eo,n),l=v.useRef(null),u=Se(e,l);return Bu(),h.jsxs(h.Fragment,{children:[h.jsx(ds,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(Bo,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Tb(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(MG,{titleId:s.titleId}),h.jsx(DG,{contentRef:l,descriptionId:s.descriptionId})]})]})}),Ab="DialogTitle",uA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(Ab,n);return h.jsx(he.h2,{id:o.titleId,...r,ref:e})});uA.displayName=Ab;var cA="DialogDescription",dA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(cA,n);return h.jsx(he.p,{id:o.descriptionId,...r,ref:e})});dA.displayName=cA;var fA="DialogClose",hA=v.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,o=Xn(fA,n);return h.jsx(he.button,{type:"button",...r,ref:e,onClick:se(t.onClick,()=>o.onOpenChange(!1))})});hA.displayName=fA;function Tb(t){return t?"open":"closed"}var pA="DialogTitleWarning",[roe,mA]=$P(pA,{contentName:Eo,titleName:Ab,docsSlug:"dialog"}),MG=({titleId:t})=>{const e=mA(pA),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
57
57
 
58
58
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
59
59
 
60
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},DG="DialogDescriptionWarning",jG=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mA(DG).contentName}}.`;return v.useEffect(()=>{const o=t.current?.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},Vu=tA,Nb=rA,Wu=iA,Hu=aA,qu=sA,_b=uA,Ob=dA,hs=hA,aa='[cmdk-group=""]',Gp='[cmdk-group-items=""]',LG='[cmdk-group-heading=""]',gA='[cmdk-item=""]',dw=`${gA}:not([aria-disabled="true"])`,Wm="cmdk-item-select",si="data-value",BG=(t,e,n)=>A9(t,e,n),bA=v.createContext(void 0),ps=()=>v.useContext(bA),vA=v.createContext(void 0),Rb=()=>v.useContext(vA),yA=v.createContext(void 0),xA=v.forwardRef((t,e)=>{let n=li(()=>{var $,q;return{search:"",value:(q=($=t.value)!=null?$:t.defaultValue)!=null?q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=li(()=>new Set),o=li(()=>new Map),i=li(()=>new Map),a=li(()=>new Set),s=wA(t),{label:l,children:u,value:d,onValueChange:c,filter:f,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:b=!0,...y}=t,w=ft(),C=ft(),S=ft(),E=v.useRef(null),T=UG();Io(()=>{if(d!==void 0){let $=d.trim();n.current.value=$,A.emit()}},[d]),Io(()=>{T(6,_)},[]);let A=v.useMemo(()=>({subscribe:$=>(a.current.add($),()=>a.current.delete($)),snapshot:()=>n.current,setState:($,q,Z)=>{var X,te,Y,J;if(!Object.is(n.current[$],q)){if(n.current[$]=q,$==="search")k(),V(),T(1,N);else if($==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ie=document.getElementById(S);ie?ie.focus():(X=document.getElementById(w))==null||X.focus()}if(T(7,()=>{var ie;n.current.selectedItemId=(ie=B())==null?void 0:ie.id,A.emit()}),Z||T(5,_),((te=s.current)==null?void 0:te.value)!==void 0){let ie=q??"";(J=(Y=s.current).onValueChange)==null||J.call(Y,ie);return}}A.emit()}},emit:()=>{a.current.forEach($=>$())}}),[]),O=v.useMemo(()=>({value:($,q,Z)=>{var X;q!==((X=i.current.get($))==null?void 0:X.value)&&(i.current.set($,{value:q,keywords:Z}),n.current.filtered.items.set($,M(q,Z)),T(2,()=>{V(),A.emit()}))},item:($,q)=>(r.current.add($),q&&(o.current.has(q)?o.current.get(q).add($):o.current.set(q,new Set([$]))),T(3,()=>{k(),V(),n.current.value||N(),A.emit()}),()=>{i.current.delete($),r.current.delete($),n.current.filtered.items.delete($);let Z=B();T(4,()=>{k(),Z?.getAttribute("id")===$&&N(),A.emit()})}),group:$=>(o.current.has($)||o.current.set($,new Set),()=>{i.current.delete($),o.current.delete($)}),filter:()=>s.current.shouldFilter,label:l||t["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:S,labelId:C,listInnerRef:E}),[]);function M($,q){var Z,X;let te=(X=(Z=s.current)==null?void 0:Z.filter)!=null?X:BG;return $?te($,n.current.search,q):0}function V(){if(!n.current.search||s.current.shouldFilter===!1)return;let $=n.current.filtered.items,q=[];n.current.filtered.groups.forEach(X=>{let te=o.current.get(X),Y=0;te.forEach(J=>{let ie=$.get(J);Y=Math.max(ie,Y)}),q.push([X,Y])});let Z=E.current;L().sort((X,te)=>{var Y,J;let ie=X.getAttribute("id"),oe=te.getAttribute("id");return((Y=$.get(oe))!=null?Y:0)-((J=$.get(ie))!=null?J:0)}).forEach(X=>{let te=X.closest(Gp);te?te.appendChild(X.parentElement===te?X:X.closest(`${Gp} > *`)):Z.appendChild(X.parentElement===Z?X:X.closest(`${Gp} > *`))}),q.sort((X,te)=>te[1]-X[1]).forEach(X=>{var te;let Y=(te=E.current)==null?void 0:te.querySelector(`${aa}[${si}="${encodeURIComponent(X[0])}"]`);Y?.parentElement.appendChild(Y)})}function N(){let $=L().find(Z=>Z.getAttribute("aria-disabled")!=="true"),q=$?.getAttribute(si);A.setState("value",q||void 0)}function k(){var $,q,Z,X;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let te=0;for(let Y of r.current){let J=(q=($=i.current.get(Y))==null?void 0:$.value)!=null?q:"",ie=(X=(Z=i.current.get(Y))==null?void 0:Z.keywords)!=null?X:[],oe=M(J,ie);n.current.filtered.items.set(Y,oe),oe>0&&te++}for(let[Y,J]of o.current)for(let ie of J)if(n.current.filtered.items.get(ie)>0){n.current.filtered.groups.add(Y);break}n.current.filtered.count=te}function _(){var $,q,Z;let X=B();X&&((($=X.parentElement)==null?void 0:$.firstChild)===X&&((Z=(q=X.closest(aa))==null?void 0:q.querySelector(LG))==null||Z.scrollIntoView({block:"nearest"})),X.scrollIntoView({block:"nearest"}))}function B(){var $;return($=E.current)==null?void 0:$.querySelector(`${gA}[aria-selected="true"]`)}function L(){var $;return Array.from((($=E.current)==null?void 0:$.querySelectorAll(dw))||[])}function P($){let q=L()[$];q&&A.setState("value",q.getAttribute(si))}function G($){var q;let Z=B(),X=L(),te=X.findIndex(J=>J===Z),Y=X[te+$];(q=s.current)!=null&&q.loop&&(Y=te+$<0?X[X.length-1]:te+$===X.length?X[0]:X[te+$]),Y&&A.setState("value",Y.getAttribute(si))}function j($){let q=B(),Z=q?.closest(aa),X;for(;Z&&!X;)Z=$>0?XG(Z,aa):YG(Z,aa),X=Z?.querySelector(dw);X?A.setState("value",X.getAttribute(si)):G($)}let H=()=>P(L().length-1),U=$=>{$.preventDefault(),$.metaKey?H():$.altKey?j(1):G(1)},Q=$=>{$.preventDefault(),$.metaKey?P(0):$.altKey?j(-1):G(-1)};return v.createElement(nn.div,{ref:e,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:$=>{var q;(q=y.onKeyDown)==null||q.call(y,$);let Z=$.nativeEvent.isComposing||$.keyCode===229;if(!($.defaultPrevented||Z))switch($.key){case"n":case"j":{b&&$.ctrlKey&&U($);break}case"ArrowDown":{U($);break}case"p":case"k":{b&&$.ctrlKey&&Q($);break}case"ArrowUp":{Q($);break}case"Home":{$.preventDefault(),P(0);break}case"End":{$.preventDefault(),H();break}case"Enter":{$.preventDefault();let X=B();if(X){let te=new Event(Wm);X.dispatchEvent(te)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:JG},l),zu(t,$=>v.createElement(vA.Provider,{value:A},v.createElement(bA.Provider,{value:O},$))))}),FG=v.forwardRef((t,e)=>{var n,r;let o=ft(),i=v.useRef(null),a=v.useContext(yA),s=ps(),l=wA(t),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a?.forceMount;Io(()=>{if(!u)return s.item(o,a?.id)},[u]);let d=CA(o,i,[t.value,t.children,i],t.keywords),c=Rb(),f=Jr(T=>T.value&&T.value===d.current),p=Jr(T=>u||s.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);v.useEffect(()=>{let T=i.current;if(!(!T||t.disabled))return T.addEventListener(Wm,m),()=>T.removeEventListener(Wm,m)},[p,t.onSelect,t.disabled]);function m(){var T,A;g(),(A=(T=l.current).onSelect)==null||A.call(T,d.current)}function g(){c.setState("value",d.current,!0)}if(!p)return null;let{disabled:b,value:y,onSelect:w,forceMount:C,keywords:S,...E}=t;return v.createElement(nn.div,{ref:dr(i,e),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!f,"data-disabled":!!b,"data-selected":!!f,onPointerMove:b||s.getDisablePointerSelection()?void 0:g,onClick:b?void 0:m},t.children)}),GG=v.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:o,...i}=t,a=ft(),s=v.useRef(null),l=v.useRef(null),u=ft(),d=ps(),c=Jr(p=>o||d.filter()===!1?!0:p.search?p.filtered.groups.has(a):!0);Io(()=>d.group(a),[]),CA(a,s,[t.value,t.heading,l]);let f=v.useMemo(()=>({id:a,forceMount:o}),[o]);return v.createElement(nn.div,{ref:dr(s,e),...i,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&v.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),zu(t,p=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},v.createElement(yA.Provider,{value:f},p))))}),$G=v.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,o=v.useRef(null),i=Jr(a=>!a.search);return!n&&!i?null:v.createElement(nn.div,{ref:dr(o,e),...r,"cmdk-separator":"",role:"separator"})}),VG=v.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,o=t.value!=null,i=Rb(),a=Jr(u=>u.search),s=Jr(u=>u.selectedItemId),l=ps();return v.useEffect(()=>{t.value!=null&&i.setState("search",t.value)},[t.value]),v.createElement(nn.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?t.value:a,onChange:u=>{o||i.setState("search",u.target.value),n?.(u.target.value)}})}),WG=v.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...o}=t,i=v.useRef(null),a=v.useRef(null),s=Jr(u=>u.selectedItemId),l=ps();return v.useEffect(()=>{if(a.current&&i.current){let u=a.current,d=i.current,c,f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let p=u.offsetHeight;d.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(u),()=>{cancelAnimationFrame(c),f.unobserve(u)}}},[]),v.createElement(nn.div,{ref:dr(i,e),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},zu(t,u=>v.createElement("div",{ref:dr(a,l.listInnerRef),"cmdk-list-sizer":""},u)))}),HG=v.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=t;return v.createElement(Vu,{open:n,onOpenChange:r},v.createElement(Wu,{container:a},v.createElement(Hu,{"cmdk-overlay":"",className:o}),v.createElement(qu,{"aria-label":t.label,"cmdk-dialog":"",className:i},v.createElement(xA,{ref:e,...s}))))}),qG=v.forwardRef((t,e)=>Jr(n=>n.filtered.count===0)?v.createElement(nn.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),zG=v.forwardRef((t,e)=>{let{progress:n,children:r,label:o="Loading...",...i}=t;return v.createElement(nn.div,{ref:e,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},zu(t,a=>v.createElement("div",{"aria-hidden":!0},a)))}),Go=Object.assign(xA,{List:WG,Item:FG,Input:VG,Group:GG,Separator:$G,Dialog:HG,Empty:qG,Loading:zG});function XG(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function YG(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function wA(t){let e=v.useRef(t);return Io(()=>{e.current=t}),e}var Io=typeof window>"u"?v.useEffect:v.useLayoutEffect;function li(t){let e=v.useRef();return e.current===void 0&&(e.current=t()),e}function Jr(t){let e=Rb(),n=()=>t(e.snapshot());return v.useSyncExternalStore(e.subscribe,n,n)}function CA(t,e,n,r=[]){let o=v.useRef(),i=ps();return Io(()=>{var a;let s=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());i.value(t,s,l),(a=e.current)==null||a.setAttribute(si,s),o.current=s}),o}var UG=()=>{let[t,e]=v.useState(),n=li(()=>new Map);return Io(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,o)=>{n.current.set(r,o),e({})}};function ZG(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function zu({asChild:t,children:e},n){return t&&v.isValidElement(e)?v.cloneElement(ZG(e),{ref:e.ref},n(e.props.children)):n(e)}var JG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Xu({...t}){return h.jsx(Vu,{"data-slot":"dialog",...t})}function Pb({...t}){return h.jsx(Nb,{"data-slot":"dialog-trigger",...t})}function SA({...t}){return h.jsx(Wu,{"data-slot":"dialog-portal",...t})}function Hm({...t}){return h.jsx(hs,{"data-slot":"dialog-close",...t})}function EA({className:t,...e}){return h.jsx(Hu,{"data-slot":"dialog-overlay",className:D("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",t),...e})}function Yu({className:t,children:e,showCloseButton:n=!0,...r}){return h.jsxs(SA,{"data-slot":"dialog-portal",children:[h.jsx(EA,{}),h.jsxs(qu,{"data-slot":"dialog-content",className:D("ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:fixed ui:top-[50%] ui:left-[50%] ui:z-50 ui:grid ui:w-full ui:max-w-[calc(100%-2rem)] ui:translate-x-[-50%] ui:translate-y-[-50%] ui:gap-4 ui:rounded-lg ui:border ui:p-6 ui:shadow-lg ui:duration-200 ui:outline-none ui:sm:max-w-lg",t),...r,children:[e,n&&h.jsxs(hs,{"data-slot":"dialog-close",className:"ui:ring-offset-background ui:focus:ring-ring ui:data-[state=open]:bg-accent ui:data-[state=open]:text-muted-foreground ui:absolute ui:top-4 ui:right-4 ui:rounded-xs ui:opacity-70 ui:transition-opacity ui:hover:opacity-100 ui:focus:ring-2 ui:focus:ring-offset-2 ui:focus:outline-hidden ui:disabled:pointer-events-none ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",children:[h.jsx(Su,{}),h.jsx("span",{className:"ui:sr-only",children:"Close"})]})]})]})}function Uu({className:t,...e}){return h.jsx("div",{"data-slot":"dialog-header",className:D("ui:flex ui:flex-col ui:gap-2 ui:text-center ui:sm:text-left",t),...e})}function IA({className:t,...e}){return h.jsx("div",{"data-slot":"dialog-footer",className:D("ui:flex ui:flex-col-reverse ui:gap-2 ui:sm:flex-row ui:sm:justify-end",t),...e})}function Zu({className:t,...e}){return h.jsx(_b,{"data-slot":"dialog-title",className:D("ui:text-lg ui:leading-none ui:font-semibold",t),...e})}function Mb({className:t,...e}){return h.jsx(Ob,{"data-slot":"dialog-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}function kb({className:t,...e}){return h.jsx(Go,{"data-slot":"command",className:D("ui:bg-popover ui:text-popover-foreground ui:flex ui:h-full ui:w-full ui:flex-col ui:overflow-hidden ui:rounded-md",t),...e})}function KG({title:t="Command Palette",description:e="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...i}){return h.jsxs(Xu,{...i,children:[h.jsxs(Uu,{className:"ui:sr-only",children:[h.jsx(Zu,{children:t}),h.jsx(Mb,{children:e})]}),h.jsx(Yu,{className:D("ui:overflow-hidden ui:p-0",r),showCloseButton:o,children:h.jsx(kb,{className:"ui:[&_[cmdk-group-heading]]:text-muted-foreground ui:**:data-[slot=command-input-wrapper]:h-12 ui:[&_[cmdk-group-heading]]:px-2 ui:[&_[cmdk-group-heading]]:font-medium ui:[&_[cmdk-group]]:px-2 ui:[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 ui:[&_[cmdk-input-wrapper]_svg]:h-5 ui:[&_[cmdk-input-wrapper]_svg]:w-5 ui:[&_[cmdk-input]]:h-12 ui:[&_[cmdk-item]]:px-2 ui:[&_[cmdk-item]]:py-3 ui:[&_[cmdk-item]_svg]:h-5 ui:[&_[cmdk-item]_svg]:w-5",children:n})})]})}function AA({containerClassName:t,className:e,...n}){return h.jsxs("div",{"data-slot":"command-input-wrapper",className:D("ui:flex ui:h-9 ui:items-center ui:gap-2 ui:border-b ui:px-3",t),children:[h.jsx(lM,{className:"ui:size-4 ui:shrink-0 ui:opacity-50"}),h.jsx(Go.Input,{"data-slot":"command-input",className:D("ui:placeholder:text-muted-foreground ui:flex ui:h-10 ui:w-full ui:rounded-md ui:bg-transparent ui:py-3 ui:text-sm ui:outline-hidden ui:disabled:cursor-not-allowed ui:disabled:opacity-50",e),...n})]})}function TA({className:t,...e}){return h.jsx(Go.List,{"data-slot":"command-list",className:D("ui:max-h-[300px] ui:scroll-py-1 ui:overflow-x-hidden ui:overflow-y-auto",t),...e})}function NA({...t}){return h.jsx(Go.Empty,{"data-slot":"command-empty",className:"ui:py-6 ui:text-center ui:text-sm",...t})}function _A({className:t,...e}){return h.jsx(Go.Group,{"data-slot":"command-group",className:D("ui:text-foreground ui:[&_[cmdk-group-heading]]:text-muted-foreground ui:overflow-hidden ui:p-1 ui:[&_[cmdk-group-heading]]:px-2 ui:[&_[cmdk-group-heading]]:py-1.5 ui:[&_[cmdk-group-heading]]:text-xs ui:[&_[cmdk-group-heading]]:font-medium",t),...e})}function QG({className:t,...e}){return h.jsx(Go.Separator,{"data-slot":"command-separator",className:D("ui:bg-border ui:-mx-1 ui:h-px",t),...e})}function qm({className:t,...e}){return h.jsx(Go.Item,{"data-slot":"command-item",className:D("ui:data-[selected=true]:bg-accent ui:data-[selected=true]:text-accent-foreground ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:px-2 ui:py-1.5 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled=true]:pointer-events-none ui:data-[disabled=true]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...e})}function e$({className:t,...e}){return h.jsx("span",{"data-slot":"command-shortcut",className:D("ui:text-muted-foreground ui:ml-auto ui:text-xs ui:tracking-widest",t),...e})}const t$=({title:t,className:e,titleClassName:n,header:r="",children:o})=>h.jsxs("div",{className:D("ui:bg-white ui:border ui:border-gray-200 ui:rounded-lg ui:shadow",t?"ui:p-4 ui:mt-4":"ui:p-2 ui:items-center",e),children:[r,!r&&t&&h.jsx("h3",{className:D("ui:text-xl ui:text-black-900 ui:font-semibold",n),children:t}),o]}),n$=({onCreate:t,onDelete:e,showCreate:n=!0,className:r})=>h.jsxs("div",{className:D("ui:h-full ui:mt-6 ui:flex ui:gap-2",r),children:[h.jsxs(fr,{children:[h.jsx(Yt,{condition:n,children:h.jsx(H2,{color:"green",size:20,onClick:t,className:"ui:cursor-pointer ui:h-full"})}),h.jsx(Co,{children:h.jsx("div",{className:"ui:size-5"})})]}),h.jsx(z2,{color:"red",size:20,onClick:e,className:"ui:cursor-pointer ui:h-full"})]});var r$="Label",OA=v.forwardRef((t,e)=>h.jsx(nn.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));OA.displayName=r$;var o$=OA;function Tn({className:t,variant:e="default",...n}){return h.jsx(o$,{"data-slot":"label",className:D(QD({variant:e}),t),...n})}function Ju({description:t,className:e}){return h.jsx("p",{className:D("ui:text-gray-500 ui:text-xs ui:mt-1",e),children:t})}const RA=({label:t,name:e,description:n,onCheckedChange:r,...o})=>h.jsxs("article",{children:[h.jsxs("div",{className:"ui:flex ui:items-center ui:gap-2",children:[h.jsx($I,{...o,id:e,onCheckedChange:r}),h.jsx(Tn,{htmlFor:e,children:t})]}),n&&h.jsx(Ju,{description:n})]}),i$=({title:t,description:e,onAction:n,children:r,cancelLabel:o="Cancel",actionLabel:i="Confirm",actionVariant:a="success",open:s,setOpen:l,controlled:u=!1})=>h.jsxs(Xu,{...u&&{open:s,onOpenChange:l},children:[r&&h.jsx(Pb,{asChild:!0,children:r}),h.jsxs(Yu,{children:[h.jsxs(Uu,{children:[t&&h.jsx(Zu,{children:t}),e&&h.jsx(Mb,{children:e})]}),h.jsxs(IA,{children:[h.jsx(Hm,{asChild:!0,children:h.jsx(en,{variant:"secondary",children:o})}),h.jsx(Hm,{asChild:!0,children:h.jsx(en,{variant:a,onClick:n,children:i})})]})]})]}),a$=["top","right","bottom","left"],Kr=Math.min,un=Math.max,zl=Math.round,ol=Math.floor,lr=t=>({x:t,y:t}),s$={left:"right",right:"left",bottom:"top",top:"bottom"},l$={start:"end",end:"start"};function zm(t,e,n){return un(t,Kr(e,n))}function jr(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Fi(t){return t.split("-")[1]}function Db(t){return t==="x"?"y":"x"}function jb(t){return t==="y"?"height":"width"}const u$=new Set(["top","bottom"]);function sr(t){return u$.has(Lr(t))?"y":"x"}function Lb(t){return Db(sr(t))}function c$(t,e,n){n===void 0&&(n=!1);const r=Fi(t),o=Lb(t),i=jb(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Xl(a)),[a,Xl(a)]}function d$(t){const e=Xl(t);return[Xm(t),e,Xm(e)]}function Xm(t){return t.replace(/start|end/g,e=>l$[e])}const fw=["left","right"],hw=["right","left"],f$=["top","bottom"],h$=["bottom","top"];function p$(t,e,n){switch(t){case"top":case"bottom":return n?e?hw:fw:e?fw:hw;case"left":case"right":return e?f$:h$;default:return[]}}function m$(t,e,n,r){const o=Fi(t);let i=p$(Lr(t),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(Xm)))),i}function Xl(t){return t.replace(/left|right|bottom|top/g,e=>s$[e])}function g$(t){return{top:0,right:0,bottom:0,left:0,...t}}function PA(t){return typeof t!="number"?g$(t):{top:t,right:t,bottom:t,left:t}}function Yl(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function pw(t,e,n){let{reference:r,floating:o}=t;const i=sr(e),a=Lb(e),s=jb(a),l=Lr(e),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Fi(e)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const b$=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:c}=pw(u,r,l),f=r,p={},m=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x:w,y:C,data:S,reset:E}=await y({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:t,floating:e}});d=w??d,c=C??c,p={...p,[b]:{...p[b],...S}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(u=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):E.rects),{x:d,y:c}=pw(u,f,l)),g=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};async function $a(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=jr(e,t),m=PA(p),b=s[f?c==="floating"?"reference":"floating":c],y=Yl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),w=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},E=Yl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:l}):w);return{top:(y.top-E.top+m.top)/S.y,bottom:(E.bottom-y.bottom+m.bottom)/S.y,left:(y.left-E.left+m.left)/S.x,right:(E.right-y.right+m.right)/S.x}}const v$=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:d=0}=jr(t,e)||{};if(u==null)return{};const c=PA(d),f={x:n,y:r},p=Lb(o),m=jb(p),g=await a.getDimensions(u),b=p==="y",y=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[p]-f[p]-i.floating[m],E=f[p]-i.reference[p],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=T?T[C]:0;(!A||!await(a.isElement==null?void 0:a.isElement(T)))&&(A=s.floating[C]||i.floating[m]);const O=S/2-E/2,M=A/2-g[m]/2-1,V=Kr(c[y],M),N=Kr(c[w],M),k=V,_=A-g[m]-N,B=A/2-g[m]/2+O,L=zm(k,B,_),P=!l.arrow&&Fi(o)!=null&&B!==L&&i.reference[m]/2-(B<k?V:N)-g[m]/2<0,G=P?B<k?B-k:B-_:0;return{[p]:f[p]+G,data:{[p]:L,centerOffset:B-L-G,...P&&{alignmentOffset:G}},reset:P}}}),y$=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=jr(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Lr(o),w=sr(s),C=Lr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(C||!g?[Xl(s)]:d$(s)),T=m!=="none";!f&&T&&E.push(...m$(s,g,m,S));const A=[s,...E],O=await $a(e,b),M=[];let V=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(O[y]),c){const B=c$(o,a,S);M.push(O[B[0]],O[B[1]])}if(V=[...V,{placement:o,overflows:M}],!M.every(B=>B<=0)){var N,k;const B=(((N=i.flip)==null?void 0:N.index)||0)+1,L=A[B];if(L&&(!(c==="alignment"?w!==sr(L):!1)||V.every(j=>sr(j.placement)===w?j.overflows[0]>0:!0)))return{data:{index:B,overflows:V},reset:{placement:L}};let P=(k=V.filter(G=>G.overflows[0]<=0).sort((G,j)=>G.overflows[1]-j.overflows[1])[0])==null?void 0:k.placement;if(!P)switch(p){case"bestFit":{var _;const G=(_=V.filter(j=>{if(T){const H=sr(j.placement);return H===w||H==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((j,H)=>j[1]-H[1])[0])==null?void 0:_[0];G&&(P=G);break}case"initialPlacement":P=s;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function mw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function gw(t){return a$.some(e=>t[e]>=0)}const x$=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=jr(t,e);switch(r){case"referenceHidden":{const i=await $a(e,{...o,elementContext:"reference"}),a=mw(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:gw(a)}}}case"escaped":{const i=await $a(e,{...o,altBoundary:!0}),a=mw(i,n.floating);return{data:{escapedOffsets:a,escaped:gw(a)}}}default:return{}}}}},MA=new Set(["left","top"]);async function w$(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Lr(n),s=Fi(n),l=sr(n)==="y",u=MA.has(a)?-1:1,d=i&&l?-1:1,c=jr(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const C$=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=e,l=await w$(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},S$=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...l}=jr(t,e),u={x:n,y:r},d=await $a(e,l),c=sr(Lr(o)),f=Db(c);let p=u[f],m=u[c];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=p+d[b],C=p-d[y];p=zm(w,p,C)}if(a){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",w=m+d[b],C=m-d[y];m=zm(w,m,C)}const g=s.fn({...e,[f]:p,[c]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[c]:a}}}}}},E$=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=jr(t,e),d={x:n,y:r},c=sr(o),f=Db(c);let p=d[f],m=d[c];const g=jr(s,e),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const C=f==="y"?"height":"width",S=i.reference[f]-i.floating[C]+b.mainAxis,E=i.reference[f]+i.reference[C]-b.mainAxis;p<S?p=S:p>E&&(p=E)}if(u){var y,w;const C=f==="y"?"width":"height",S=MA.has(Lr(o)),E=i.reference[c]-i.floating[C]+(S&&((y=a.offset)==null?void 0:y[c])||0)+(S?0:b.crossAxis),T=i.reference[c]+i.reference[C]+(S?0:((w=a.offset)==null?void 0:w[c])||0)-(S?b.crossAxis:0);m<E?m=E:m>T&&(m=T)}return{[f]:p,[c]:m}}}},I$=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=jr(t,e),d=await $a(e,u),c=Lr(o),f=Fi(o),p=sr(o)==="y",{width:m,height:g}=i.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,b=f==="end"?"top":"bottom");const w=g-d.top-d.bottom,C=m-d.left-d.right,S=Kr(g-d[b],w),E=Kr(m-d[y],C),T=!e.middlewareData.shift;let A=S,O=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(A=w),T&&!f){const V=un(d.left,0),N=un(d.right,0),k=un(d.top,0),_=un(d.bottom,0);p?O=m-2*(V!==0||N!==0?V+N:un(d.left,d.right)):A=g-2*(k!==0||_!==0?k+_:un(d.top,d.bottom))}await l({...e,availableWidth:O,availableHeight:A});const M=await a.getDimensions(s.floating);return m!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ku(){return typeof window<"u"}function Gi(t){return kA(t)?(t.nodeName||"").toLowerCase():"#document"}function cn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yr(t){var e;return(e=(kA(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function kA(t){return Ku()?t instanceof Node||t instanceof cn(t).Node:!1}function $n(t){return Ku()?t instanceof Element||t instanceof cn(t).Element:!1}function hr(t){return Ku()?t instanceof HTMLElement||t instanceof cn(t).HTMLElement:!1}function bw(t){return!Ku()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof cn(t).ShadowRoot}const A$=new Set(["inline","contents"]);function ms(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Vn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!A$.has(o)}const T$=new Set(["table","td","th"]);function N$(t){return T$.has(Gi(t))}const _$=[":popover-open",":modal"];function Qu(t){return _$.some(e=>{try{return t.matches(e)}catch{return!1}})}const O$=["transform","translate","scale","rotate","perspective"],R$=["transform","translate","scale","rotate","perspective","filter"],P$=["paint","layout","strict","content"];function Bb(t){const e=Fb(),n=$n(t)?Vn(t):t;return O$.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||R$.some(r=>(n.willChange||"").includes(r))||P$.some(r=>(n.contain||"").includes(r))}function M$(t){let e=Qr(t);for(;hr(e)&&!Ai(e);){if(Bb(e))return e;if(Qu(e))return null;e=Qr(e)}return null}function Fb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const k$=new Set(["html","body","#document"]);function Ai(t){return k$.has(Gi(t))}function Vn(t){return cn(t).getComputedStyle(t)}function ec(t){return $n(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qr(t){if(Gi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bw(t)&&t.host||yr(t);return bw(e)?e.host:e}function DA(t){const e=Qr(t);return Ai(e)?t.ownerDocument?t.ownerDocument.body:t.body:hr(e)&&ms(e)?e:DA(e)}function Va(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=DA(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),a=cn(o);if(i){const s=Ym(a);return e.concat(a,a.visualViewport||[],ms(o)?o:[],s&&n?Va(s):[])}return e.concat(o,Va(o,[],n))}function Ym(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function jA(t){const e=Vn(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=hr(t),i=o?t.offsetWidth:n,a=o?t.offsetHeight:r,s=zl(n)!==i||zl(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Gb(t){return $n(t)?t:t.contextElement}function mi(t){const e=Gb(t);if(!hr(e))return lr(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=jA(e);let a=(i?zl(n.width):n.width)/r,s=(i?zl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const D$=lr(0);function LA(t){const e=cn(t);return!Fb()||!e.visualViewport?D$:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function j$(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==cn(t)?!1:e}function Ao(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Gb(t);let a=lr(1);e&&(r?$n(r)&&(a=mi(r)):a=mi(t));const s=j$(i,n,r)?LA(i):lr(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,c=o.height/a.y;if(i){const f=cn(i),p=r&&$n(r)?cn(r):r;let m=f,g=Ym(m);for(;g&&r&&p!==m;){const b=mi(g),y=g.getBoundingClientRect(),w=Vn(g),C=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,S=y.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,c*=b.y,l+=C,u+=S,m=cn(g),g=Ym(m)}}return Yl({width:d,height:c,x:l,y:u})}function tc(t,e){const n=ec(t).scrollLeft;return e?e.left+n:Ao(yr(t)).left+n}function BA(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-tc(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function L$(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",a=yr(r),s=e?Qu(e.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=lr(1);const d=lr(0),c=hr(r);if((c||!c&&!i)&&((Gi(r)!=="body"||ms(a))&&(l=ec(r)),hr(r))){const p=Ao(r);u=mi(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!c&&!i?BA(a,l):lr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function B$(t){return Array.from(t.getClientRects())}function F$(t){const e=yr(t),n=ec(t),r=t.ownerDocument.body,o=un(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=un(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tc(t);const s=-n.scrollTop;return Vn(r).direction==="rtl"&&(a+=un(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const vw=25;function G$(t,e){const n=cn(t),r=yr(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const d=Fb();(!d||d&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=tc(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-c.clientWidth-p);m<=vw&&(i-=m)}else u<=vw&&(i+=u);return{width:i,height:a,x:s,y:l}}const $$=new Set(["absolute","fixed"]);function V$(t,e){const n=Ao(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=hr(t)?mi(t):lr(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function yw(t,e,n){let r;if(e==="viewport")r=G$(t,n);else if(e==="document")r=F$(yr(t));else if($n(e))r=V$(e,n);else{const o=LA(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Yl(r)}function FA(t,e){const n=Qr(t);return n===e||!$n(n)||Ai(n)?!1:Vn(n).position==="fixed"||FA(n,e)}function W$(t,e){const n=e.get(t);if(n)return n;let r=Va(t,[],!1).filter(s=>$n(s)&&Gi(s)!=="body"),o=null;const i=Vn(t).position==="fixed";let a=i?Qr(t):t;for(;$n(a)&&!Ai(a);){const s=Vn(a),l=Bb(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&$$.has(o.position)||ms(a)&&!l&&FA(t,a))?r=r.filter(d=>d!==a):o=s,a=Qr(a)}return e.set(t,r),r}function H$(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const a=[...n==="clippingAncestors"?Qu(e)?[]:W$(e,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=yw(e,d,o);return u.top=un(c.top,u.top),u.right=Kr(c.right,u.right),u.bottom=Kr(c.bottom,u.bottom),u.left=un(c.left,u.left),u},yw(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function q$(t){const{width:e,height:n}=jA(t);return{width:e,height:n}}function z$(t,e,n){const r=hr(e),o=yr(e),i=n==="fixed",a=Ao(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=lr(0);function u(){l.x=tc(o)}if(r||!r&&!i)if((Gi(e)!=="body"||ms(o))&&(s=ec(e)),r){const p=Ao(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?BA(o,s):lr(0),c=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:a.width,height:a.height}}function $p(t){return Vn(t).position==="static"}function xw(t,e){if(!hr(t)||Vn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return yr(t)===n&&(n=n.ownerDocument.body),n}function GA(t,e){const n=cn(t);if(Qu(t))return n;if(!hr(t)){let o=Qr(t);for(;o&&!Ai(o);){if($n(o)&&!$p(o))return o;o=Qr(o)}return n}let r=xw(t,e);for(;r&&N$(r)&&$p(r);)r=xw(r,e);return r&&Ai(r)&&$p(r)&&!Bb(r)?n:r||M$(t)||n}const X$=async function(t){const e=this.getOffsetParent||GA,n=this.getDimensions,r=await n(t.floating);return{reference:z$(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Y$(t){return Vn(t).direction==="rtl"}const U$={convertOffsetParentRelativeRectToViewportRelativeRect:L$,getDocumentElement:yr,getClippingRect:H$,getOffsetParent:GA,getElementRects:X$,getClientRects:B$,getDimensions:q$,getScale:mi,isElement:$n,isRTL:Y$};function $A(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Z$(t,e){let n=null,r;const o=yr(t);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||e(),!f||!p)return;const m=ol(c),g=ol(o.clientWidth-(d+f)),b=ol(o.clientHeight-(c+p)),y=ol(d),C={rootMargin:-m+"px "+-g+"px "+-b+"px "+-y+"px",threshold:un(0,Kr(1,l))||1};let S=!0;function E(T){const A=T[0].intersectionRatio;if(A!==l){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!$A(u,t.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(t)}return a(!0),i}function VA(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Gb(t),d=o||i?[...u?Va(u):[],...Va(e)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const c=u&&s?Z$(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(e)})),n()}),u&&!l&&p.observe(u),p.observe(e));let m,g=l?Ao(t):null;l&&b();function b(){const y=Ao(t);g&&!$A(g,y)&&n(),g=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const J$=C$,K$=S$,Q$=y$,eV=I$,tV=x$,ww=v$,nV=E$,rV=(t,e,n)=>{const r=new Map,o={platform:U$,...n},i={...o.platform,_c:r};return b$(t,e,{...o,platform:i})};var oV=typeof document<"u",iV=function(){},Il=oV?I.useLayoutEffect:iV;function Ul(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ul(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!Ul(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function WA(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Cw(t,e){const n=WA(t);return Math.round(e*n)/n}function Vp(t){const e=v.useRef(t);return Il(()=>{e.current=t}),e}function aV(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=t,[d,c]=v.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Ul(f,r)||p(r);const[m,g]=v.useState(null),[b,y]=v.useState(null),w=v.useCallback(j=>{j!==T.current&&(T.current=j,g(j))},[]),C=v.useCallback(j=>{j!==A.current&&(A.current=j,y(j))},[]),S=i||m,E=a||b,T=v.useRef(null),A=v.useRef(null),O=v.useRef(d),M=l!=null,V=Vp(l),N=Vp(o),k=Vp(u),_=v.useCallback(()=>{if(!T.current||!A.current)return;const j={placement:e,strategy:n,middleware:f};N.current&&(j.platform=N.current),rV(T.current,A.current,j).then(H=>{const U={...H,isPositioned:k.current!==!1};B.current&&!Ul(O.current,U)&&(O.current=U,bu.flushSync(()=>{c(U)}))})},[f,e,n,N,k]);Il(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,c(j=>({...j,isPositioned:!1})))},[u]);const B=v.useRef(!1);Il(()=>(B.current=!0,()=>{B.current=!1}),[]),Il(()=>{if(S&&(T.current=S),E&&(A.current=E),S&&E){if(V.current)return V.current(S,E,_);_()}},[S,E,_,V,M]);const L=v.useMemo(()=>({reference:T,floating:A,setReference:w,setFloating:C}),[w,C]),P=v.useMemo(()=>({reference:S,floating:E}),[S,E]),G=v.useMemo(()=>{const j={position:n,left:0,top:0};if(!P.floating)return j;const H=Cw(P.floating,d.x),U=Cw(P.floating,d.y);return s?{...j,transform:"translate("+H+"px, "+U+"px)",...WA(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,P.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:_,refs:L,elements:P,floatingStyles:G}),[d,_,L,P,G])}const sV=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ww({element:r.current,padding:o}).fn(n):{}:r?ww({element:r,padding:o}).fn(n):{}}}},lV=(t,e)=>({...J$(t),options:[t,e]}),uV=(t,e)=>({...K$(t),options:[t,e]}),cV=(t,e)=>({...nV(t),options:[t,e]}),dV=(t,e)=>({...Q$(t),options:[t,e]}),fV=(t,e)=>({...eV(t),options:[t,e]}),hV=(t,e)=>({...tV(t),options:[t,e]}),pV=(t,e)=>({...sV(t),options:[t,e]});var mV="Arrow",HA=v.forwardRef((t,e)=>{const{children:n,width:r=10,height:o=5,...i}=t;return h.jsx(he.svg,{...i,ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});HA.displayName=mV;var gV=HA,$b="Popper",[qA,xr]=At($b),[bV,zA]=qA($b),XA=t=>{const{__scopePopper:e,children:n}=t,[r,o]=v.useState(null);return h.jsx(bV,{scope:e,anchor:r,onAnchorChange:o,children:n})};XA.displayName=$b;var YA="PopperAnchor",UA=v.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...o}=t,i=zA(YA,n),a=v.useRef(null),s=Se(e,a),l=v.useRef(null);return v.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:h.jsx(he.div,{...o,ref:s})});UA.displayName=YA;var Vb="PopperContent",[vV,yV]=qA(Vb),ZA=v.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=t,b=zA(Vb,n),[y,w]=v.useState(null),C=Se(e,Y=>w(Y)),[S,E]=v.useState(null),T=cs(S),A=T?.width??0,O=T?.height??0,M=r+(i!=="center"?"-"+i:""),V=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},N=Array.isArray(u)?u:[u],k=N.length>0,_={padding:V,boundary:N.filter(wV),altBoundary:k},{refs:B,floatingStyles:L,placement:P,isPositioned:G,middlewareData:j}=aV({strategy:"fixed",placement:M,whileElementsMounted:(...Y)=>VA(...Y,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[lV({mainAxis:o+O,alignmentAxis:a}),l&&uV({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?cV():void 0,..._}),l&&dV({..._}),fV({..._,apply:({elements:Y,rects:J,availableWidth:ie,availableHeight:oe})=>{const{width:re,height:z}=J.reference,ue=Y.floating.style;ue.setProperty("--radix-popper-available-width",`${ie}px`),ue.setProperty("--radix-popper-available-height",`${oe}px`),ue.setProperty("--radix-popper-anchor-width",`${re}px`),ue.setProperty("--radix-popper-anchor-height",`${z}px`)}}),S&&pV({element:S,padding:s}),CV({arrowWidth:A,arrowHeight:O}),f&&hV({strategy:"referenceHidden",..._})]}),[H,U]=QA(P),Q=It(m);gt(()=>{G&&Q?.()},[G,Q]);const $=j.arrow?.x,q=j.arrow?.y,Z=j.arrow?.centerOffset!==0,[X,te]=v.useState();return gt(()=>{y&&te(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:G?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(vV,{scope:n,placedSide:H,onArrowChange:E,arrowX:$,arrowY:q,shouldHideArrow:Z,children:h.jsx(he.div,{"data-side":H,"data-align":U,...g,ref:C,style:{...g.style,animation:G?void 0:"none"}})})})});ZA.displayName=Vb;var JA="PopperArrow",xV={top:"bottom",right:"left",bottom:"top",left:"right"},KA=v.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,i=yV(JA,r),a=xV[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(gV,{...o,ref:n,style:{...o.style,display:"block"}})})});KA.displayName=JA;function wV(t){return t!==null}var CV=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,a=o.arrow?.centerOffset!==0,s=a?0:t.arrowWidth,l=a?0:t.arrowHeight,[u,d]=QA(n),c={start:"0%",center:"50%",end:"100%"}[d],f=(o.arrow?.x??0)+s/2,p=(o.arrow?.y??0)+l/2;let m="",g="";return u==="bottom"?(m=a?c:`${f}px`,g=`${-l}px`):u==="top"?(m=a?c:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(m=`${-l}px`,g=a?c:`${p}px`):u==="left"&&(m=`${r.floating.width+l}px`,g=a?c:`${p}px`),{data:{x:m,y:g}}}});function QA(t){const[e,n="center"]=t.split("-");return[e,n]}var $i=XA,Vi=UA,gs=ZA,bs=KA,nc="Popover",[eT]=At(nc,[xr]),vs=xr(),[SV,ro]=eT(nc),tT=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=t,s=vs(e),l=v.useRef(null),[u,d]=v.useState(!1),[c,f]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:nc});return h.jsx($i,{...s,children:h.jsx(SV,{scope:e,contentId:ft(),triggerRef:l,open:c,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:u,onCustomAnchorAdd:v.useCallback(()=>d(!0),[]),onCustomAnchorRemove:v.useCallback(()=>d(!1),[]),modal:a,children:n})})};tT.displayName=nc;var nT="PopoverAnchor",rT=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ro(nT,n),i=vs(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return v.useEffect(()=>(a(),()=>s()),[a,s]),h.jsx(Vi,{...i,...r,ref:e})});rT.displayName=nT;var oT="PopoverTrigger",iT=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ro(oT,n),i=vs(n),a=Se(e,o.triggerRef),s=h.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cT(o.open),...r,ref:a,onClick:se(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:h.jsx(Vi,{asChild:!0,...i,children:s})});iT.displayName=oT;var Wb="PopoverPortal",[EV,IV]=eT(Wb,{forceMount:void 0}),aT=t=>{const{__scopePopover:e,forceMount:n,children:r,container:o}=t,i=ro(Wb,e);return h.jsx(EV,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};aT.displayName=Wb;var Ti="PopoverContent",sT=v.forwardRef((t,e)=>{const n=IV(Ti,t.__scopePopover),{forceMount:r=n.forceMount,...o}=t,i=ro(Ti,t.__scopePopover);return h.jsx(pt,{present:r||i.open,children:i.modal?h.jsx(TV,{...o,ref:e}):h.jsx(NV,{...o,ref:e})})});sT.displayName=Ti;var AV=wo("PopoverContent.RemoveScroll"),TV=v.forwardRef((t,e)=>{const n=ro(Ti,t.__scopePopover),r=v.useRef(null),o=Se(e,r),i=v.useRef(!1);return v.useEffect(()=>{const a=r.current;if(a)return Gu(a)},[]),h.jsx(fs,{as:AV,allowPinchZoom:!0,children:h.jsx(lT,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(t.onCloseAutoFocus,a=>{a.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:se(t.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:se(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),NV=v.forwardRef((t,e)=>{const n=ro(Ti,t.__scopePopover),r=v.useRef(!1),o=v.useRef(!1);return h.jsx(lT,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),lT=v.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...c}=t,f=ro(Ti,n),p=vs(n);return Bu(),h.jsx(ds,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:h.jsx(gs,{"data-state":cT(f.open),role:"dialog",id:f.contentId,...p,...c,ref:e,style:{...c.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)"}})})})}),uT="PopoverClose",_V=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ro(uT,n);return h.jsx(he.button,{type:"button",...r,ref:e,onClick:se(t.onClick,()=>o.onOpenChange(!1))})});_V.displayName=uT;var OV="PopoverArrow",RV=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=vs(n);return h.jsx(bs,{...o,...r,ref:e})});RV.displayName=OV;function cT(t){return t?"open":"closed"}var PV=tT,MV=rT,kV=iT,DV=aT,jV=sT;function rc({...t}){return h.jsx(PV,{"data-slot":"popover",...t})}function oc({...t}){return h.jsx(kV,{"data-slot":"popover-trigger",...t})}function ic({className:t,align:e="center",sideOffset:n=4,...r}){return h.jsx(DV,{children:h.jsx(jV,{"data-slot":"popover-content",align:e,sideOffset:n,className:D("ui:z-[102] ui:w-72 ui:rounded-md ui:border ui:bg-popover ui:p-4 ui:text-popover-foreground ui:shadow-md ui:outline-none ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2",t),...r})})}function LV({...t}){return h.jsx(MV,{"data-slot":"popover-anchor",...t})}var BV=t=>t.type==="checkbox",ya=t=>t instanceof Date,Hb=t=>t==null;const dT=t=>typeof t=="object";var To=t=>!Hb(t)&&!Array.isArray(t)&&dT(t)&&!ya(t),FV=t=>To(t)&&t.target?BV(t.target)?t.target.checked:t.target.value:t,GV=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,$V=(t,e)=>t.has(GV(e)),VV=t=>{const e=t.constructor&&t.constructor.prototype;return To(e)&&e.hasOwnProperty("isPrototypeOf")},WV=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function fT(t){if(t instanceof Date)return new Date(t);const e=typeof FileList<"u"&&t instanceof FileList;if(WV&&(t instanceof Blob||e))return t;const n=Array.isArray(t);if(!n&&!(To(t)&&VV(t)))return t;const r=n?[]:Object.create(Object.getPrototypeOf(t));for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=fT(t[o]));return r}var hT=t=>/^\w*$/.test(t),Um=t=>t===void 0,HV=t=>Array.isArray(t)?t.filter(Boolean):[],pT=t=>HV(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Kt=(t,e,n)=>{if(!e||!To(t))return n;const r=(hT(e)?[e]:pT(e)).reduce((o,i)=>Hb(o)?o:o[i],t);return Um(r)||r===t?Um(t[e])?n:t[e]:r},Wp=t=>typeof t=="boolean",il=t=>typeof t=="function",Sw=(t,e,n)=>{let r=-1;const o=hT(e)?[e]:pT(e),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let l=n;if(r!==a){const u=t[s];l=To(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;t[s]=l,t=t[s]}};const Ew={BLUR:"blur",CHANGE:"change"},Iw={all:"all"},qb=I.createContext(null);qb.displayName="HookFormContext";const rn=()=>I.useContext(qb),qV=t=>{const{children:e,...n}=t;return I.createElement(qb.Provider,{value:n},e)};var zV=(t,e,n,r=!0)=>{const o={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(o,i,{get:()=>{const a=i;return e._proxyFormState[a]!==Iw.all&&(e._proxyFormState[a]=!r||Iw.all),n&&(n[a]=!0),t[a]}});return o};const mT=typeof window<"u"?I.useLayoutEffect:I.useEffect;function gT(t){const e=rn(),{control:n=e.control,disabled:r,name:o,exact:i}=t||{},[a,s]=I.useState(n._formState),l=I.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return mT(()=>n._subscribe({name:o,formState:l.current,exact:i,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,i]),I.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),I.useMemo(()=>zV(a,n,l.current,!1),[a,n])}var XV=t=>typeof t=="string",Aw=(t,e,n,r,o)=>XV(t)?Kt(n,t,o):Array.isArray(t)?t.map(i=>Kt(n,i)):n,Tw=t=>Hb(t)||!dT(t);function Al(t,e,n=new WeakSet){if(Tw(t)||Tw(e))return Object.is(t,e);if(ya(t)&&ya(e))return t.getTime()===e.getTime();const r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);for(const i of r){const a=t[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=e[i];if(ya(a)&&ya(s)||To(a)&&To(s)||Array.isArray(a)&&Array.isArray(s)?!Al(a,s,n):!Object.is(a,s))return!1}}return!0}function bT(t){const e=rn(),{control:n=e.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=t||{},l=I.useRef(o),u=I.useRef(s),d=I.useRef(void 0),c=I.useRef(n),f=I.useRef(r);u.current=s;const[p,m]=I.useState(()=>{const S=n._getWatch(r,l.current);return u.current?u.current(S):S}),g=I.useCallback(S=>{const E=Aw(r,n._names,S||n._formValues,!1,l.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),b=I.useCallback(S=>{if(!i){const E=Aw(r,n._names,S||n._formValues,!1,l.current);if(u.current){const T=u.current(E);Al(T,d.current)||(m(T),d.current=T)}else m(E)}},[n._formValues,n._names,i,r]);mT(()=>((c.current!==n||!Al(f.current,r))&&(c.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:S=>{b(S.values)}})),[n,a,r,b]),I.useEffect(()=>n._removeUnmounted());const y=c.current!==n,w=f.current,C=I.useMemo(()=>{if(i)return null;const S=!y&&!Al(w,r);return y||S?g():null},[i,y,r,w,g]);return C!==null?C:p}function YV(t){const e=rn(),{name:n,disabled:r,control:o=e.control,shouldUnregister:i,defaultValue:a,exact:s=!0}=t,l=$V(o._names.array,n),u=I.useMemo(()=>Kt(o._formValues,n,Kt(o._defaultValues,n,a)),[o,n,a]),d=bT({control:o,name:n,defaultValue:u,exact:s}),c=gT({control:o,name:n,exact:s}),f=I.useRef(t),p=I.useRef(void 0),m=I.useRef(o.register(n,{...t.rules,value:d,...Wp(t.disabled)?{disabled:t.disabled}:{}}));f.current=t;const g=I.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Kt(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Kt(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Kt(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Kt(c.validatingFields,n)},error:{enumerable:!0,get:()=>Kt(c.errors,n)}}),[c,n]),b=I.useCallback(S=>m.current.onChange({target:{value:FV(S),name:n},type:Ew.CHANGE}),[n]),y=I.useCallback(()=>m.current.onBlur({target:{value:Kt(o._formValues,n),name:n},type:Ew.BLUR}),[n,o._formValues]),w=I.useCallback(S=>{const E=Kt(o._fields,n);E&&E._f&&S&&(E._f.ref={focus:()=>il(S.focus)&&S.focus(),select:()=>il(S.select)&&S.select(),setCustomValidity:T=>il(S.setCustomValidity)&&S.setCustomValidity(T),reportValidity:()=>il(S.reportValidity)&&S.reportValidity()})},[o._fields,n]),C=I.useMemo(()=>({name:n,value:d,...Wp(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:b,onBlur:y,ref:w}),[n,r,c.disabled,b,y,w,d]);return I.useEffect(()=>{const S=o._options.shouldUnregister||i,E=p.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...Wp(f.current.disabled)?{disabled:f.current.disabled}:{}});const T=(A,O)=>{const M=Kt(o._fields,A);M&&M._f&&(M._f.mount=O)};if(T(n,!0),S){const A=fT(Kt(o._options.defaultValues,n,f.current.defaultValue));Sw(o._defaultValues,n,A),Um(Kt(o._formValues,n))&&Sw(o._formValues,n,A)}return!l&&o.register(n),p.current=n,()=>{(l?S&&!o._state.action:S)?o.unregister(n):T(n,!1)}},[n,o,l,i]),I.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),I.useMemo(()=>({field:C,formState:c,fieldState:g}),[C,c,g])}const UV=t=>t.render(YV(t)),vT=v.createContext({}),yT=v.createContext({}),ac=()=>{const t=v.useContext(vT),e=v.useContext(yT),n=rn();if(!n)throw new Error("useFormField must be used within a FormProvider from react-hook-form");const{getFieldState:r}=n,o=gT({name:t.name}),i=r(t.name,o);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:a}=e;return{id:a,name:t.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},ZV=qV,Yn=({...t})=>h.jsx(vT.Provider,{value:{name:t.name},children:h.jsx(UV,{...t})});function In({className:t,...e}){const n=v.useId();return h.jsx(yT.Provider,{value:{id:n},children:h.jsx("div",{"data-slot":"form-item",className:D("ui:grid ui:gap-2",t),...e})})}function pr({className:t,required:e=!1,...n}){const{error:r,formItemId:o}=ac();return h.jsxs(Tn,{"data-slot":"form-label","data-error":!!r,className:D(r?"ui:text-destructive":"ui:text-black-950","ui:text-sm",t),htmlFor:o,...n,children:[n.children,e&&h.jsx("span",{className:"ui:text-destructive ml-1",children:"*"})]})}function hn({...t}){const{error:e,formItemId:n,formDescriptionId:r,formMessageId:o}=ac();return h.jsx(gr,{"data-slot":"form-control",id:n,"aria-describedby":e?`${r} ${o}`:`${r}`,"aria-invalid":!!e,...t})}function wr({className:t,...e}){const{formDescriptionId:n}=ac();return h.jsx("p",{"data-slot":"form-description",id:n,className:D("ui:text-muted-foreground ui:text-sm",t),...e})}function Un({className:t,showErrorPlaceholder:e,...n}){const{error:r,formMessageId:o}=ac(),i=r?String(r?.message??""):n.children;return i?h.jsx("p",{"data-slot":"form-message",id:o,className:D("ui:text-destructive ui:text-sm",t),...n,children:i}):e?h.jsx("p",{className:"ui:h-4"}):null}const JV=({hasFormControlWrapper:t=!1,children:e,...n})=>t?h.jsx(hn,{...n,children:e}):h.jsx(gr,{...n,children:e}),Zm=({value:t,isDisabled:e,hasAllOption:n,isMultiSelect:r,options:o,allOptionLabel:i,triggerPlaceholder:a,isFormControlWrapper:s,avoidCollisions:l,contentClassName:u,inputPlaceholder:d,emptyMessage:c,containerClassName:f,contentListClassName:p,closeOnSelect:m,label:g,handleSelectItem:b,handleSelectAll:y,onInputChange:w})=>{const[C,S]=I.useState(!1),E=T=>n&&r&&T?.length===o.length?i:r?T?.length&&Array.isArray(T)?T.map(A=>o.find(({value:O})=>O===A)?.label).filter(Boolean).join(", "):a:o.find(({value:A})=>A===T)?.label||a;return h.jsxs("article",{className:f,children:[g&&h.jsx(Tn,{className:"ui:mb-2 ui:block",children:g}),h.jsxs(rc,{open:C,onOpenChange:S,children:[h.jsx(oc,{asChild:!0,children:h.jsx(JV,{hasFormControlWrapper:!!s,children:h.jsxs(en,{variant:"outline",role:"combobox",type:"button",className:D("ui:w-full ui:justify-between",!t&&"ui:text-muted-foreground"),disabled:e,children:[h.jsx("span",{className:"ui:w-full ui:overflow-hidden ui:text-left",children:E(t)}),h.jsx(G2,{className:"ui:ml-2 ui:h-4 ui:w-4 ui:shrink-0 ui:opacity-50"})]})})}),h.jsx(ic,{avoidCollisions:l,className:D("ui:w-[200px] ui:p-0 ui:full-width-trigger",u),children:h.jsxs(kb,{children:[h.jsx(AA,{containerClassName:"ui:rounded-b-none",className:"ui:border-none! ui:border-b-0!",placeholder:d,onValueChange:w}),h.jsxs(TA,{children:[h.jsx(NA,{children:c}),h.jsxs(_A,{className:D(p),children:[n&&r&&h.jsxs(qm,{value:"all",onSelect:()=>{y(t,o),m&&S(!1)},children:[i,h.jsx(Oa,{className:D("ui:ml-auto",t?.length===o.length?"ui:opacity-100":"ui:opacity-0")})]},"all"),o.map(T=>h.jsxs(qm,{value:T.label,onSelect:()=>{b(t,T),m&&S(!1)},children:[T.label,h.jsx(Oa,{className:D("ui:ml-auto",r?t?.includes(T.value)?"ui:opacity-100":"ui:opacity-0":T.value===t?"ui:opacity-100":"ui:opacity-0")})]},T.value))]})]})]})})]})]})},KV="dd/MM/yyyy",QV=({date:t,format:e=KV})=>t?h.jsx(h.Fragment,{children:xD(t,e)}):null,eW=({start:t,end:e,onConfirm:n,className:r,triggerButtonClassName:o,label:i,placeholder:a,confirmLabel:s,disabledCondition:l})=>{const[u,d]=I.useState(!1),[c,f]=I.useState({from:t,to:e}),p=()=>{!c.from||!c.to||(n({from:c.from,to:c.to}),d(!1))};return h.jsxs("div",{className:D("ui:grid ui:gap-2",r),children:[h.jsx(Tn,{children:i}),h.jsxs(rc,{open:u,onOpenChange:d,children:[h.jsx(oc,{asChild:!0,children:h.jsxs(en,{id:"date",variant:"outline",className:D("ui:h-auto ui:text-muted-foreground ui:justify-start ui:text-left ui:font-normal",!c&&"ui:text-muted-foreground",o),children:[h.jsx(PS,{className:"ui:mr-2 ui:h-4 ui:w-4"}),c?.from?c.to?h.jsxs(h.Fragment,{children:[Ln(c.from,"LLL dd, y")," - ",Ln(c.to,"LLL dd, y")]}):Ln(c.from,"LLL dd, y"):h.jsx("span",{children:a})]})}),h.jsxs(ic,{className:"ui:w-auto ui:p-0",align:"start",children:[h.jsx(nb,{mode:"range",defaultMonth:c?.from,selected:c,onSelect:f,numberOfMonths:2,disabled:l,required:!0}),h.jsx("div",{className:"ui:px-3 ui:pb-4 ui:pt-2",children:h.jsx(en,{variant:"success",size:"sm",onClick:p,className:"ui:w-full",children:s})})]})]})]})};function sc({className:t,type:e,...n}){return h.jsx("input",{type:e,"data-slot":"input",className:D("ui:file:text-foreground ui:placeholder:text-muted-foreground ui:selection:bg-primary ui:selection:text-primary-foreground ui:dark:bg-input/30 ui:border-input ui:h-9 ui:w-full ui:min-w-0 ui:rounded-md ui:border ui:bg-transparent ui:px-3 ui:py-1 ui:text-base ui:shadow-xs ui:transition-[color,box-shadow] ui:outline-none ui:file:inline-flex ui:file:h-7 ui:file:border-0 ui:file:bg-transparent ui:file:text-sm ui:file:font-medium ui:disabled:pointer-events-none ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:md:text-sm","ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px]","ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive",t),...n})}function tW({value:t,onChange:e,className:n,inputClassName:r,name:o,placeholder:i,label:a}){const[s,l]=I.useState(t),u=I.useRef(null),d=I.useRef(e);I.useEffect(()=>{d.current=e},[e]);const c=I.useCallback(p=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{p.length>=3?d.current(p):d.current("")},300)},[]),f=p=>{const m=decodeURIComponent(p);l(m),c(m)};return h.jsxs("search",{className:D("ui:w-full",n),children:[a&&h.jsx(Tn,{htmlFor:o,className:"ui:leading-6 ui:w-full",children:a}),h.jsx(sc,{type:"search",name:o,id:o,"data-test-id":o,placeholder:i,value:s,onChange:({target:p})=>f(p.value),className:D("ui:max-h-9",r),autoFocus:!0})]})}const nW=({banner:t,campaignName:e,isControlled:n,open:r,setOpen:o,imageClassName:i})=>h.jsxs(Xu,{...n&&{open:r,onOpenChange:o},children:[!n&&h.jsx(Pb,{asChild:!0,children:h.jsx("div",{className:"ui:cursor-pointer",children:h.jsx("img",{className:D("ui:w-full ui:max-w-80 ui:mx-auto ui:mt-4! ui:scale-100 ui:hover:scale-110 ui:transition-all ui:duration-300 ui:aspect-video",i),src:t,alt:e})})}),h.jsxs(Yu,{className:"ui:max-w-2xl",children:[h.jsx(Uu,{children:h.jsx(Zu,{children:e})}),h.jsx("img",{className:D("ui:w-full ui:aspect-video",i),src:t,alt:e})]})]});function rW(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const xT=I.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),ys=()=>{const t=I.useContext(xT);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};rW(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
60
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},kG="DialogDescriptionWarning",DG=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${mA(kG).contentName}}.`;return v.useEffect(()=>{const o=t.current?.getAttribute("aria-describedby");e&&o&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},Vu=tA,Nb=rA,Wu=iA,Hu=aA,qu=sA,_b=uA,Ob=dA,hs=hA,aa='[cmdk-group=""]',Gp='[cmdk-group-items=""]',jG='[cmdk-group-heading=""]',gA='[cmdk-item=""]',dw=`${gA}:not([aria-disabled="true"])`,Wm="cmdk-item-select",si="data-value",LG=(t,e,n)=>I9(t,e,n),bA=v.createContext(void 0),ps=()=>v.useContext(bA),vA=v.createContext(void 0),Rb=()=>v.useContext(vA),yA=v.createContext(void 0),xA=v.forwardRef((t,e)=>{let n=li(()=>{var $,q;return{search:"",value:(q=($=t.value)!=null?$:t.defaultValue)!=null?q:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=li(()=>new Set),o=li(()=>new Map),i=li(()=>new Map),a=li(()=>new Set),s=wA(t),{label:l,children:u,value:d,onValueChange:c,filter:f,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:b=!0,...y}=t,w=ft(),C=ft(),S=ft(),E=v.useRef(null),T=YG();Io(()=>{if(d!==void 0){let $=d.trim();n.current.value=$,A.emit()}},[d]),Io(()=>{T(6,_)},[]);let A=v.useMemo(()=>({subscribe:$=>(a.current.add($),()=>a.current.delete($)),snapshot:()=>n.current,setState:($,q,Z)=>{var X,te,Y,J;if(!Object.is(n.current[$],q)){if(n.current[$]=q,$==="search")k(),V(),T(1,N);else if($==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ie=document.getElementById(S);ie?ie.focus():(X=document.getElementById(w))==null||X.focus()}if(T(7,()=>{var ie;n.current.selectedItemId=(ie=B())==null?void 0:ie.id,A.emit()}),Z||T(5,_),((te=s.current)==null?void 0:te.value)!==void 0){let ie=q??"";(J=(Y=s.current).onValueChange)==null||J.call(Y,ie);return}}A.emit()}},emit:()=>{a.current.forEach($=>$())}}),[]),O=v.useMemo(()=>({value:($,q,Z)=>{var X;q!==((X=i.current.get($))==null?void 0:X.value)&&(i.current.set($,{value:q,keywords:Z}),n.current.filtered.items.set($,M(q,Z)),T(2,()=>{V(),A.emit()}))},item:($,q)=>(r.current.add($),q&&(o.current.has(q)?o.current.get(q).add($):o.current.set(q,new Set([$]))),T(3,()=>{k(),V(),n.current.value||N(),A.emit()}),()=>{i.current.delete($),r.current.delete($),n.current.filtered.items.delete($);let Z=B();T(4,()=>{k(),Z?.getAttribute("id")===$&&N(),A.emit()})}),group:$=>(o.current.has($)||o.current.set($,new Set),()=>{i.current.delete($),o.current.delete($)}),filter:()=>s.current.shouldFilter,label:l||t["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:S,labelId:C,listInnerRef:E}),[]);function M($,q){var Z,X;let te=(X=(Z=s.current)==null?void 0:Z.filter)!=null?X:LG;return $?te($,n.current.search,q):0}function V(){if(!n.current.search||s.current.shouldFilter===!1)return;let $=n.current.filtered.items,q=[];n.current.filtered.groups.forEach(X=>{let te=o.current.get(X),Y=0;te.forEach(J=>{let ie=$.get(J);Y=Math.max(ie,Y)}),q.push([X,Y])});let Z=E.current;L().sort((X,te)=>{var Y,J;let ie=X.getAttribute("id"),oe=te.getAttribute("id");return((Y=$.get(oe))!=null?Y:0)-((J=$.get(ie))!=null?J:0)}).forEach(X=>{let te=X.closest(Gp);te?te.appendChild(X.parentElement===te?X:X.closest(`${Gp} > *`)):Z.appendChild(X.parentElement===Z?X:X.closest(`${Gp} > *`))}),q.sort((X,te)=>te[1]-X[1]).forEach(X=>{var te;let Y=(te=E.current)==null?void 0:te.querySelector(`${aa}[${si}="${encodeURIComponent(X[0])}"]`);Y?.parentElement.appendChild(Y)})}function N(){let $=L().find(Z=>Z.getAttribute("aria-disabled")!=="true"),q=$?.getAttribute(si);A.setState("value",q||void 0)}function k(){var $,q,Z,X;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let te=0;for(let Y of r.current){let J=(q=($=i.current.get(Y))==null?void 0:$.value)!=null?q:"",ie=(X=(Z=i.current.get(Y))==null?void 0:Z.keywords)!=null?X:[],oe=M(J,ie);n.current.filtered.items.set(Y,oe),oe>0&&te++}for(let[Y,J]of o.current)for(let ie of J)if(n.current.filtered.items.get(ie)>0){n.current.filtered.groups.add(Y);break}n.current.filtered.count=te}function _(){var $,q,Z;let X=B();X&&((($=X.parentElement)==null?void 0:$.firstChild)===X&&((Z=(q=X.closest(aa))==null?void 0:q.querySelector(jG))==null||Z.scrollIntoView({block:"nearest"})),X.scrollIntoView({block:"nearest"}))}function B(){var $;return($=E.current)==null?void 0:$.querySelector(`${gA}[aria-selected="true"]`)}function L(){var $;return Array.from((($=E.current)==null?void 0:$.querySelectorAll(dw))||[])}function P($){let q=L()[$];q&&A.setState("value",q.getAttribute(si))}function G($){var q;let Z=B(),X=L(),te=X.findIndex(J=>J===Z),Y=X[te+$];(q=s.current)!=null&&q.loop&&(Y=te+$<0?X[X.length-1]:te+$===X.length?X[0]:X[te+$]),Y&&A.setState("value",Y.getAttribute(si))}function j($){let q=B(),Z=q?.closest(aa),X;for(;Z&&!X;)Z=$>0?zG(Z,aa):XG(Z,aa),X=Z?.querySelector(dw);X?A.setState("value",X.getAttribute(si)):G($)}let H=()=>P(L().length-1),U=$=>{$.preventDefault(),$.metaKey?H():$.altKey?j(1):G(1)},Q=$=>{$.preventDefault(),$.metaKey?P(0):$.altKey?j(-1):G(-1)};return v.createElement(nn.div,{ref:e,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:$=>{var q;(q=y.onKeyDown)==null||q.call(y,$);let Z=$.nativeEvent.isComposing||$.keyCode===229;if(!($.defaultPrevented||Z))switch($.key){case"n":case"j":{b&&$.ctrlKey&&U($);break}case"ArrowDown":{U($);break}case"p":case"k":{b&&$.ctrlKey&&Q($);break}case"ArrowUp":{Q($);break}case"Home":{$.preventDefault(),P(0);break}case"End":{$.preventDefault(),H();break}case"Enter":{$.preventDefault();let X=B();if(X){let te=new Event(Wm);X.dispatchEvent(te)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:ZG},l),zu(t,$=>v.createElement(vA.Provider,{value:A},v.createElement(bA.Provider,{value:O},$))))}),BG=v.forwardRef((t,e)=>{var n,r;let o=ft(),i=v.useRef(null),a=v.useContext(yA),s=ps(),l=wA(t),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a?.forceMount;Io(()=>{if(!u)return s.item(o,a?.id)},[u]);let d=CA(o,i,[t.value,t.children,i],t.keywords),c=Rb(),f=Jr(T=>T.value&&T.value===d.current),p=Jr(T=>u||s.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);v.useEffect(()=>{let T=i.current;if(!(!T||t.disabled))return T.addEventListener(Wm,m),()=>T.removeEventListener(Wm,m)},[p,t.onSelect,t.disabled]);function m(){var T,A;g(),(A=(T=l.current).onSelect)==null||A.call(T,d.current)}function g(){c.setState("value",d.current,!0)}if(!p)return null;let{disabled:b,value:y,onSelect:w,forceMount:C,keywords:S,...E}=t;return v.createElement(nn.div,{ref:dr(i,e),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!f,"data-disabled":!!b,"data-selected":!!f,onPointerMove:b||s.getDisablePointerSelection()?void 0:g,onClick:b?void 0:m},t.children)}),FG=v.forwardRef((t,e)=>{let{heading:n,children:r,forceMount:o,...i}=t,a=ft(),s=v.useRef(null),l=v.useRef(null),u=ft(),d=ps(),c=Jr(p=>o||d.filter()===!1?!0:p.search?p.filtered.groups.has(a):!0);Io(()=>d.group(a),[]),CA(a,s,[t.value,t.heading,l]);let f=v.useMemo(()=>({id:a,forceMount:o}),[o]);return v.createElement(nn.div,{ref:dr(s,e),...i,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&v.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),zu(t,p=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},v.createElement(yA.Provider,{value:f},p))))}),GG=v.forwardRef((t,e)=>{let{alwaysRender:n,...r}=t,o=v.useRef(null),i=Jr(a=>!a.search);return!n&&!i?null:v.createElement(nn.div,{ref:dr(o,e),...r,"cmdk-separator":"",role:"separator"})}),$G=v.forwardRef((t,e)=>{let{onValueChange:n,...r}=t,o=t.value!=null,i=Rb(),a=Jr(u=>u.search),s=Jr(u=>u.selectedItemId),l=ps();return v.useEffect(()=>{t.value!=null&&i.setState("search",t.value)},[t.value]),v.createElement(nn.input,{ref:e,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?t.value:a,onChange:u=>{o||i.setState("search",u.target.value),n?.(u.target.value)}})}),VG=v.forwardRef((t,e)=>{let{children:n,label:r="Suggestions",...o}=t,i=v.useRef(null),a=v.useRef(null),s=Jr(u=>u.selectedItemId),l=ps();return v.useEffect(()=>{if(a.current&&i.current){let u=a.current,d=i.current,c,f=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let p=u.offsetHeight;d.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(u),()=>{cancelAnimationFrame(c),f.unobserve(u)}}},[]),v.createElement(nn.div,{ref:dr(i,e),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},zu(t,u=>v.createElement("div",{ref:dr(a,l.listInnerRef),"cmdk-list-sizer":""},u)))}),WG=v.forwardRef((t,e)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=t;return v.createElement(Vu,{open:n,onOpenChange:r},v.createElement(Wu,{container:a},v.createElement(Hu,{"cmdk-overlay":"",className:o}),v.createElement(qu,{"aria-label":t.label,"cmdk-dialog":"",className:i},v.createElement(xA,{ref:e,...s}))))}),HG=v.forwardRef((t,e)=>Jr(n=>n.filtered.count===0)?v.createElement(nn.div,{ref:e,...t,"cmdk-empty":"",role:"presentation"}):null),qG=v.forwardRef((t,e)=>{let{progress:n,children:r,label:o="Loading...",...i}=t;return v.createElement(nn.div,{ref:e,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},zu(t,a=>v.createElement("div",{"aria-hidden":!0},a)))}),Go=Object.assign(xA,{List:VG,Item:BG,Input:$G,Group:FG,Separator:GG,Dialog:WG,Empty:HG,Loading:qG});function zG(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function XG(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}function wA(t){let e=v.useRef(t);return Io(()=>{e.current=t}),e}var Io=typeof window>"u"?v.useEffect:v.useLayoutEffect;function li(t){let e=v.useRef();return e.current===void 0&&(e.current=t()),e}function Jr(t){let e=Rb(),n=()=>t(e.snapshot());return v.useSyncExternalStore(e.subscribe,n,n)}function CA(t,e,n,r=[]){let o=v.useRef(),i=ps();return Io(()=>{var a;let s=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():o.current}})(),l=r.map(u=>u.trim());i.value(t,s,l),(a=e.current)==null||a.setAttribute(si,s),o.current=s}),o}var YG=()=>{let[t,e]=v.useState(),n=li(()=>new Map);return Io(()=>{n.current.forEach(r=>r()),n.current=new Map},[t]),(r,o)=>{n.current.set(r,o),e({})}};function UG(t){let e=t.type;return typeof e=="function"?e(t.props):"render"in e?e.render(t.props):t}function zu({asChild:t,children:e},n){return t&&v.isValidElement(e)?v.cloneElement(UG(e),{ref:e.ref},n(e.props.children)):n(e)}var ZG={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function Xu({...t}){return h.jsx(Vu,{"data-slot":"dialog",...t})}function Pb({...t}){return h.jsx(Nb,{"data-slot":"dialog-trigger",...t})}function SA({...t}){return h.jsx(Wu,{"data-slot":"dialog-portal",...t})}function Hm({...t}){return h.jsx(hs,{"data-slot":"dialog-close",...t})}function EA({className:t,...e}){return h.jsx(Hu,{"data-slot":"dialog-overlay",className:D("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",t),...e})}function Yu({className:t,children:e,showCloseButton:n=!0,...r}){return h.jsxs(SA,{"data-slot":"dialog-portal",children:[h.jsx(EA,{}),h.jsxs(qu,{"data-slot":"dialog-content",className:D("ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:fixed ui:top-[50%] ui:left-[50%] ui:z-50 ui:grid ui:w-full ui:max-w-[calc(100%-2rem)] ui:translate-x-[-50%] ui:translate-y-[-50%] ui:gap-4 ui:rounded-lg ui:border ui:p-6 ui:shadow-lg ui:duration-200 ui:outline-none ui:sm:max-w-lg",t),...r,children:[e,n&&h.jsxs(hs,{"data-slot":"dialog-close",className:"ui:ring-offset-background ui:focus:ring-ring ui:data-[state=open]:bg-accent ui:data-[state=open]:text-muted-foreground ui:absolute ui:top-4 ui:right-4 ui:rounded-xs ui:opacity-70 ui:transition-opacity ui:hover:opacity-100 ui:focus:ring-2 ui:focus:ring-offset-2 ui:focus:outline-hidden ui:disabled:pointer-events-none ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",children:[h.jsx(Su,{}),h.jsx("span",{className:"ui:sr-only",children:"Close"})]})]})]})}function Uu({className:t,...e}){return h.jsx("div",{"data-slot":"dialog-header",className:D("ui:flex ui:flex-col ui:gap-2 ui:text-center ui:sm:text-left",t),...e})}function IA({className:t,...e}){return h.jsx("div",{"data-slot":"dialog-footer",className:D("ui:flex ui:flex-col-reverse ui:gap-2 ui:sm:flex-row ui:sm:justify-end",t),...e})}function Zu({className:t,...e}){return h.jsx(_b,{"data-slot":"dialog-title",className:D("ui:text-lg ui:leading-none ui:font-semibold",t),...e})}function Mb({className:t,...e}){return h.jsx(Ob,{"data-slot":"dialog-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}function kb({className:t,...e}){return h.jsx(Go,{"data-slot":"command",className:D("ui:bg-popover ui:text-popover-foreground ui:flex ui:h-full ui:w-full ui:flex-col ui:overflow-hidden ui:rounded-md",t),...e})}function JG({title:t="Command Palette",description:e="Search for a command to run...",children:n,className:r,showCloseButton:o=!0,...i}){return h.jsxs(Xu,{...i,children:[h.jsxs(Uu,{className:"ui:sr-only",children:[h.jsx(Zu,{children:t}),h.jsx(Mb,{children:e})]}),h.jsx(Yu,{className:D("ui:overflow-hidden ui:p-0",r),showCloseButton:o,children:h.jsx(kb,{className:"ui:[&_[cmdk-group-heading]]:text-muted-foreground ui:**:data-[slot=command-input-wrapper]:h-12 ui:[&_[cmdk-group-heading]]:px-2 ui:[&_[cmdk-group-heading]]:font-medium ui:[&_[cmdk-group]]:px-2 ui:[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 ui:[&_[cmdk-input-wrapper]_svg]:h-5 ui:[&_[cmdk-input-wrapper]_svg]:w-5 ui:[&_[cmdk-input]]:h-12 ui:[&_[cmdk-item]]:px-2 ui:[&_[cmdk-item]]:py-3 ui:[&_[cmdk-item]_svg]:h-5 ui:[&_[cmdk-item]_svg]:w-5",children:n})})]})}function AA({containerClassName:t,className:e,...n}){return h.jsxs("div",{"data-slot":"command-input-wrapper",className:D("ui:flex ui:h-9 ui:items-center ui:gap-2 ui:border-b ui:px-3",t),children:[h.jsx(sM,{className:"ui:size-4 ui:shrink-0 ui:opacity-50"}),h.jsx(Go.Input,{"data-slot":"command-input",className:D("ui:placeholder:text-muted-foreground ui:flex ui:h-10 ui:w-full ui:rounded-md ui:bg-transparent ui:py-3 ui:text-sm ui:outline-hidden ui:disabled:cursor-not-allowed ui:disabled:opacity-50",e),...n})]})}function TA({className:t,...e}){return h.jsx(Go.List,{"data-slot":"command-list",className:D("ui:max-h-[300px] ui:scroll-py-1 ui:overflow-x-hidden ui:overflow-y-auto",t),...e})}function NA({...t}){return h.jsx(Go.Empty,{"data-slot":"command-empty",className:"ui:py-6 ui:text-center ui:text-sm",...t})}function _A({className:t,...e}){return h.jsx(Go.Group,{"data-slot":"command-group",className:D("ui:text-foreground ui:[&_[cmdk-group-heading]]:text-muted-foreground ui:overflow-hidden ui:p-1 ui:[&_[cmdk-group-heading]]:px-2 ui:[&_[cmdk-group-heading]]:py-1.5 ui:[&_[cmdk-group-heading]]:text-xs ui:[&_[cmdk-group-heading]]:font-medium",t),...e})}function KG({className:t,...e}){return h.jsx(Go.Separator,{"data-slot":"command-separator",className:D("ui:bg-border ui:-mx-1 ui:h-px",t),...e})}function qm({className:t,...e}){return h.jsx(Go.Item,{"data-slot":"command-item",className:D("ui:data-[selected=true]:bg-accent ui:data-[selected=true]:text-accent-foreground ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:px-2 ui:py-1.5 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled=true]:pointer-events-none ui:data-[disabled=true]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...e})}function QG({className:t,...e}){return h.jsx("span",{"data-slot":"command-shortcut",className:D("ui:text-muted-foreground ui:ml-auto ui:text-xs ui:tracking-widest",t),...e})}const e$=({title:t,className:e,titleClassName:n,header:r="",children:o})=>h.jsxs("div",{className:D("ui:bg-white ui:border ui:border-gray-200 ui:rounded-lg ui:shadow",t?"ui:p-4 ui:mt-4":"ui:p-2 ui:items-center",e),children:[r,!r&&t&&h.jsx("h3",{className:D("ui:text-xl ui:text-black-900 ui:font-semibold",n),children:t}),o]}),t$=({onCreate:t,onDelete:e,showCreate:n=!0,className:r})=>h.jsxs("div",{className:D("ui:h-full ui:mt-6 ui:flex ui:gap-2",r),children:[h.jsxs(fr,{children:[h.jsx(Yt,{condition:n,children:h.jsx(W2,{color:"green",size:20,onClick:t,className:"ui:cursor-pointer ui:h-full"})}),h.jsx(Co,{children:h.jsx("div",{className:"ui:size-5"})})]}),h.jsx(q2,{color:"red",size:20,onClick:e,className:"ui:cursor-pointer ui:h-full"})]});var n$="Label",OA=v.forwardRef((t,e)=>h.jsx(nn.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));OA.displayName=n$;var r$=OA;function Tn({className:t,variant:e="default",...n}){return h.jsx(r$,{"data-slot":"label",className:D(KD({variant:e}),t),...n})}function Ju({description:t,className:e}){return h.jsx("p",{className:D("ui:text-gray-500 ui:text-xs ui:mt-1",e),children:t})}const RA=({label:t,name:e,description:n,onCheckedChange:r,...o})=>h.jsxs("article",{children:[h.jsxs("div",{className:"ui:flex ui:items-center ui:gap-2",children:[h.jsx($I,{...o,id:e,onCheckedChange:r}),h.jsx(Tn,{htmlFor:e,children:t})]}),n&&h.jsx(Ju,{description:n})]}),o$=({title:t,description:e,onAction:n,children:r,cancelLabel:o="Cancel",actionLabel:i="Confirm",actionVariant:a="success",open:s,setOpen:l,controlled:u=!1})=>h.jsxs(Xu,{...u&&{open:s,onOpenChange:l},children:[r&&h.jsx(Pb,{asChild:!0,children:r}),h.jsxs(Yu,{children:[h.jsxs(Uu,{children:[t&&h.jsx(Zu,{children:t}),e&&h.jsx(Mb,{children:e})]}),h.jsxs(IA,{children:[h.jsx(Hm,{asChild:!0,children:h.jsx(en,{variant:"secondary",children:o})}),h.jsx(Hm,{asChild:!0,children:h.jsx(en,{variant:a,onClick:n,children:i})})]})]})]}),i$=["top","right","bottom","left"],Kr=Math.min,ln=Math.max,zl=Math.round,ol=Math.floor,lr=t=>({x:t,y:t}),a$={left:"right",right:"left",bottom:"top",top:"bottom"},s$={start:"end",end:"start"};function zm(t,e,n){return ln(t,Kr(e,n))}function jr(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Fi(t){return t.split("-")[1]}function Db(t){return t==="x"?"y":"x"}function jb(t){return t==="y"?"height":"width"}const l$=new Set(["top","bottom"]);function sr(t){return l$.has(Lr(t))?"y":"x"}function Lb(t){return Db(sr(t))}function u$(t,e,n){n===void 0&&(n=!1);const r=Fi(t),o=Lb(t),i=jb(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Xl(a)),[a,Xl(a)]}function c$(t){const e=Xl(t);return[Xm(t),e,Xm(e)]}function Xm(t){return t.replace(/start|end/g,e=>s$[e])}const fw=["left","right"],hw=["right","left"],d$=["top","bottom"],f$=["bottom","top"];function h$(t,e,n){switch(t){case"top":case"bottom":return n?e?hw:fw:e?fw:hw;case"left":case"right":return e?d$:f$;default:return[]}}function p$(t,e,n,r){const o=Fi(t);let i=h$(Lr(t),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(Xm)))),i}function Xl(t){return t.replace(/left|right|bottom|top/g,e=>a$[e])}function m$(t){return{top:0,right:0,bottom:0,left:0,...t}}function PA(t){return typeof t!="number"?m$(t):{top:t,right:t,bottom:t,left:t}}function Yl(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function pw(t,e,n){let{reference:r,floating:o}=t;const i=sr(e),a=Lb(e),s=jb(a),l=Lr(e),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:c};break;case"left":p={x:r.x-o.width,y:c};break;default:p={x:r.x,y:r.y}}switch(Fi(e)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1);break}return p}const g$=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:c}=pw(u,r,l),f=r,p={},m=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x:w,y:C,data:S,reset:E}=await y({x:d,y:c,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:t,floating:e}});d=w??d,c=C??c,p={...p,[b]:{...p[b],...S}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(u=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):E.rects),{x:d,y:c}=pw(u,f,l)),g=-1)}return{x:d,y:c,placement:f,strategy:o,middlewareData:p}};async function $a(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:p=0}=jr(e,t),m=PA(p),b=s[f?c==="floating"?"reference":"floating":c],y=Yl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),w=c==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(C))?await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1}:{x:1,y:1},E=Yl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:C,strategy:l}):w);return{top:(y.top-E.top+m.top)/S.y,bottom:(E.bottom-y.bottom+m.bottom)/S.y,left:(y.left-E.left+m.left)/S.x,right:(E.right-y.right+m.right)/S.x}}const b$=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:u,padding:d=0}=jr(t,e)||{};if(u==null)return{};const c=PA(d),f={x:n,y:r},p=Lb(o),m=jb(p),g=await a.getDimensions(u),b=p==="y",y=b?"top":"left",w=b?"bottom":"right",C=b?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[p]-f[p]-i.floating[m],E=f[p]-i.reference[p],T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=T?T[C]:0;(!A||!await(a.isElement==null?void 0:a.isElement(T)))&&(A=s.floating[C]||i.floating[m]);const O=S/2-E/2,M=A/2-g[m]/2-1,V=Kr(c[y],M),N=Kr(c[w],M),k=V,_=A-g[m]-N,B=A/2-g[m]/2+O,L=zm(k,B,_),P=!l.arrow&&Fi(o)!=null&&B!==L&&i.reference[m]/2-(B<k?V:N)-g[m]/2<0,G=P?B<k?B-k:B-_:0;return{[p]:f[p]+G,data:{[p]:L,centerOffset:B-L-G,...P&&{alignmentOffset:G}},reset:P}}}),v$=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=jr(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Lr(o),w=sr(s),C=Lr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),E=f||(C||!g?[Xl(s)]:c$(s)),T=m!=="none";!f&&T&&E.push(...p$(s,g,m,S));const A=[s,...E],O=await $a(e,b),M=[];let V=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(O[y]),c){const B=u$(o,a,S);M.push(O[B[0]],O[B[1]])}if(V=[...V,{placement:o,overflows:M}],!M.every(B=>B<=0)){var N,k;const B=(((N=i.flip)==null?void 0:N.index)||0)+1,L=A[B];if(L&&(!(c==="alignment"?w!==sr(L):!1)||V.every(j=>sr(j.placement)===w?j.overflows[0]>0:!0)))return{data:{index:B,overflows:V},reset:{placement:L}};let P=(k=V.filter(G=>G.overflows[0]<=0).sort((G,j)=>G.overflows[1]-j.overflows[1])[0])==null?void 0:k.placement;if(!P)switch(p){case"bestFit":{var _;const G=(_=V.filter(j=>{if(T){const H=sr(j.placement);return H===w||H==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(H=>H>0).reduce((H,U)=>H+U,0)]).sort((j,H)=>j[1]-H[1])[0])==null?void 0:_[0];G&&(P=G);break}case"initialPlacement":P=s;break}if(o!==P)return{reset:{placement:P}}}return{}}}};function mw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function gw(t){return i$.some(e=>t[e]>=0)}const y$=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=jr(t,e);switch(r){case"referenceHidden":{const i=await $a(e,{...o,elementContext:"reference"}),a=mw(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:gw(a)}}}case"escaped":{const i=await $a(e,{...o,altBoundary:!0}),a=mw(i,n.floating);return{data:{escapedOffsets:a,escaped:gw(a)}}}default:return{}}}}},MA=new Set(["left","top"]);async function x$(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Lr(n),s=Fi(n),l=sr(n)==="y",u=MA.has(a)?-1:1,d=i&&l?-1:1,c=jr(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof m=="number"&&(p=s==="end"?m*-1:m),l?{x:p*d,y:f*u}:{x:f*u,y:p*d}}const w$=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=e,l=await x$(e,t);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},C$=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:w}=b;return{x:y,y:w}}},...l}=jr(t,e),u={x:n,y:r},d=await $a(e,l),c=sr(Lr(o)),f=Db(c);let p=u[f],m=u[c];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=p+d[b],C=p-d[y];p=zm(w,p,C)}if(a){const b=c==="y"?"top":"left",y=c==="y"?"bottom":"right",w=m+d[b],C=m-d[y];m=zm(w,m,C)}const g=s.fn({...e,[f]:p,[c]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[c]:a}}}}}},S$=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=jr(t,e),d={x:n,y:r},c=sr(o),f=Db(c);let p=d[f],m=d[c];const g=jr(s,e),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const C=f==="y"?"height":"width",S=i.reference[f]-i.floating[C]+b.mainAxis,E=i.reference[f]+i.reference[C]-b.mainAxis;p<S?p=S:p>E&&(p=E)}if(u){var y,w;const C=f==="y"?"width":"height",S=MA.has(Lr(o)),E=i.reference[c]-i.floating[C]+(S&&((y=a.offset)==null?void 0:y[c])||0)+(S?0:b.crossAxis),T=i.reference[c]+i.reference[C]+(S?0:((w=a.offset)==null?void 0:w[c])||0)-(S?b.crossAxis:0);m<E?m=E:m>T&&(m=T)}return{[f]:p,[c]:m}}}},E$=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...u}=jr(t,e),d=await $a(e,u),c=Lr(o),f=Fi(o),p=sr(o)==="y",{width:m,height:g}=i.floating;let b,y;c==="top"||c==="bottom"?(b=c,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,b=f==="end"?"top":"bottom");const w=g-d.top-d.bottom,C=m-d.left-d.right,S=Kr(g-d[b],w),E=Kr(m-d[y],C),T=!e.middlewareData.shift;let A=S,O=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(A=w),T&&!f){const V=ln(d.left,0),N=ln(d.right,0),k=ln(d.top,0),_=ln(d.bottom,0);p?O=m-2*(V!==0||N!==0?V+N:ln(d.left,d.right)):A=g-2*(k!==0||_!==0?k+_:ln(d.top,d.bottom))}await l({...e,availableWidth:O,availableHeight:A});const M=await a.getDimensions(s.floating);return m!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ku(){return typeof window<"u"}function Gi(t){return kA(t)?(t.nodeName||"").toLowerCase():"#document"}function un(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yr(t){var e;return(e=(kA(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function kA(t){return Ku()?t instanceof Node||t instanceof un(t).Node:!1}function $n(t){return Ku()?t instanceof Element||t instanceof un(t).Element:!1}function hr(t){return Ku()?t instanceof HTMLElement||t instanceof un(t).HTMLElement:!1}function bw(t){return!Ku()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof un(t).ShadowRoot}const I$=new Set(["inline","contents"]);function ms(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Vn(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!I$.has(o)}const A$=new Set(["table","td","th"]);function T$(t){return A$.has(Gi(t))}const N$=[":popover-open",":modal"];function Qu(t){return N$.some(e=>{try{return t.matches(e)}catch{return!1}})}const _$=["transform","translate","scale","rotate","perspective"],O$=["transform","translate","scale","rotate","perspective","filter"],R$=["paint","layout","strict","content"];function Bb(t){const e=Fb(),n=$n(t)?Vn(t):t;return _$.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||O$.some(r=>(n.willChange||"").includes(r))||R$.some(r=>(n.contain||"").includes(r))}function P$(t){let e=Qr(t);for(;hr(e)&&!Ai(e);){if(Bb(e))return e;if(Qu(e))return null;e=Qr(e)}return null}function Fb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const M$=new Set(["html","body","#document"]);function Ai(t){return M$.has(Gi(t))}function Vn(t){return un(t).getComputedStyle(t)}function ec(t){return $n(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Qr(t){if(Gi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bw(t)&&t.host||yr(t);return bw(e)?e.host:e}function DA(t){const e=Qr(t);return Ai(e)?t.ownerDocument?t.ownerDocument.body:t.body:hr(e)&&ms(e)?e:DA(e)}function Va(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=DA(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),a=un(o);if(i){const s=Ym(a);return e.concat(a,a.visualViewport||[],ms(o)?o:[],s&&n?Va(s):[])}return e.concat(o,Va(o,[],n))}function Ym(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function jA(t){const e=Vn(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=hr(t),i=o?t.offsetWidth:n,a=o?t.offsetHeight:r,s=zl(n)!==i||zl(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Gb(t){return $n(t)?t:t.contextElement}function mi(t){const e=Gb(t);if(!hr(e))return lr(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=jA(e);let a=(i?zl(n.width):n.width)/r,s=(i?zl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const k$=lr(0);function LA(t){const e=un(t);return!Fb()||!e.visualViewport?k$:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function D$(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==un(t)?!1:e}function Ao(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Gb(t);let a=lr(1);e&&(r?$n(r)&&(a=mi(r)):a=mi(t));const s=D$(i,n,r)?LA(i):lr(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,c=o.height/a.y;if(i){const f=un(i),p=r&&$n(r)?un(r):r;let m=f,g=Ym(m);for(;g&&r&&p!==m;){const b=mi(g),y=g.getBoundingClientRect(),w=Vn(g),C=y.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,S=y.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,c*=b.y,l+=C,u+=S,m=un(g),g=Ym(m)}}return Yl({width:d,height:c,x:l,y:u})}function tc(t,e){const n=ec(t).scrollLeft;return e?e.left+n:Ao(yr(t)).left+n}function BA(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-tc(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function j$(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",a=yr(r),s=e?Qu(e.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=lr(1);const d=lr(0),c=hr(r);if((c||!c&&!i)&&((Gi(r)!=="body"||ms(a))&&(l=ec(r)),hr(r))){const p=Ao(r);u=mi(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const f=a&&!c&&!i?BA(a,l):lr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function L$(t){return Array.from(t.getClientRects())}function B$(t){const e=yr(t),n=ec(t),r=t.ownerDocument.body,o=ln(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ln(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tc(t);const s=-n.scrollTop;return Vn(r).direction==="rtl"&&(a+=ln(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const vw=25;function F$(t,e){const n=un(t),r=yr(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const d=Fb();(!d||d&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const u=tc(r);if(u<=0){const d=r.ownerDocument,c=d.body,f=getComputedStyle(c),p=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-c.clientWidth-p);m<=vw&&(i-=m)}else u<=vw&&(i+=u);return{width:i,height:a,x:s,y:l}}const G$=new Set(["absolute","fixed"]);function $$(t,e){const n=Ao(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=hr(t)?mi(t):lr(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:a,height:s,x:l,y:u}}function yw(t,e,n){let r;if(e==="viewport")r=F$(t,n);else if(e==="document")r=B$(yr(t));else if($n(e))r=$$(e,n);else{const o=LA(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Yl(r)}function FA(t,e){const n=Qr(t);return n===e||!$n(n)||Ai(n)?!1:Vn(n).position==="fixed"||FA(n,e)}function V$(t,e){const n=e.get(t);if(n)return n;let r=Va(t,[],!1).filter(s=>$n(s)&&Gi(s)!=="body"),o=null;const i=Vn(t).position==="fixed";let a=i?Qr(t):t;for(;$n(a)&&!Ai(a);){const s=Vn(a),l=Bb(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&G$.has(o.position)||ms(a)&&!l&&FA(t,a))?r=r.filter(d=>d!==a):o=s,a=Qr(a)}return e.set(t,r),r}function W$(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const a=[...n==="clippingAncestors"?Qu(e)?[]:V$(e,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,d)=>{const c=yw(e,d,o);return u.top=ln(c.top,u.top),u.right=Kr(c.right,u.right),u.bottom=Kr(c.bottom,u.bottom),u.left=ln(c.left,u.left),u},yw(e,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function H$(t){const{width:e,height:n}=jA(t);return{width:e,height:n}}function q$(t,e,n){const r=hr(e),o=yr(e),i=n==="fixed",a=Ao(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=lr(0);function u(){l.x=tc(o)}if(r||!r&&!i)if((Gi(e)!=="body"||ms(o))&&(s=ec(e)),r){const p=Ao(e,!0,i,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?BA(o,s):lr(0),c=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:c,y:f,width:a.width,height:a.height}}function $p(t){return Vn(t).position==="static"}function xw(t,e){if(!hr(t)||Vn(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return yr(t)===n&&(n=n.ownerDocument.body),n}function GA(t,e){const n=un(t);if(Qu(t))return n;if(!hr(t)){let o=Qr(t);for(;o&&!Ai(o);){if($n(o)&&!$p(o))return o;o=Qr(o)}return n}let r=xw(t,e);for(;r&&T$(r)&&$p(r);)r=xw(r,e);return r&&Ai(r)&&$p(r)&&!Bb(r)?n:r||P$(t)||n}const z$=async function(t){const e=this.getOffsetParent||GA,n=this.getDimensions,r=await n(t.floating);return{reference:q$(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function X$(t){return Vn(t).direction==="rtl"}const Y$={convertOffsetParentRelativeRectToViewportRelativeRect:j$,getDocumentElement:yr,getClippingRect:W$,getOffsetParent:GA,getElementRects:z$,getClientRects:L$,getDimensions:H$,getScale:mi,isElement:$n,isRTL:X$};function $A(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function U$(t,e){let n=null,r;const o=yr(t);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const u=t.getBoundingClientRect(),{left:d,top:c,width:f,height:p}=u;if(s||e(),!f||!p)return;const m=ol(c),g=ol(o.clientWidth-(d+f)),b=ol(o.clientHeight-(c+p)),y=ol(d),C={rootMargin:-m+"px "+-g+"px "+-b+"px "+-y+"px",threshold:ln(0,Kr(1,l))||1};let S=!0;function E(T){const A=T[0].intersectionRatio;if(A!==l){if(!S)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!$A(u,t.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(E,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,C)}n.observe(t)}return a(!0),i}function VA(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Gb(t),d=o||i?[...u?Va(u):[],...Va(e)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const c=u&&s?U$(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===u&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(e)})),n()}),u&&!l&&p.observe(u),p.observe(e));let m,g=l?Ao(t):null;l&&b();function b(){const y=Ao(t);g&&!$A(g,y)&&n(),g=y,m=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),c?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const Z$=w$,J$=C$,K$=v$,Q$=E$,eV=y$,ww=b$,tV=S$,nV=(t,e,n)=>{const r=new Map,o={platform:Y$,...n},i={...o.platform,_c:r};return g$(t,e,{...o,platform:i})};var rV=typeof document<"u",oV=function(){},Il=rV?I.useLayoutEffect:oV;function Ul(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ul(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&t.$$typeof)&&!Ul(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function WA(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Cw(t,e){const n=WA(t);return Math.round(e*n)/n}function Vp(t){const e=v.useRef(t);return Il(()=>{e.current=t}),e}function iV(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=t,[d,c]=v.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);Ul(f,r)||p(r);const[m,g]=v.useState(null),[b,y]=v.useState(null),w=v.useCallback(j=>{j!==T.current&&(T.current=j,g(j))},[]),C=v.useCallback(j=>{j!==A.current&&(A.current=j,y(j))},[]),S=i||m,E=a||b,T=v.useRef(null),A=v.useRef(null),O=v.useRef(d),M=l!=null,V=Vp(l),N=Vp(o),k=Vp(u),_=v.useCallback(()=>{if(!T.current||!A.current)return;const j={placement:e,strategy:n,middleware:f};N.current&&(j.platform=N.current),nV(T.current,A.current,j).then(H=>{const U={...H,isPositioned:k.current!==!1};B.current&&!Ul(O.current,U)&&(O.current=U,bu.flushSync(()=>{c(U)}))})},[f,e,n,N,k]);Il(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,c(j=>({...j,isPositioned:!1})))},[u]);const B=v.useRef(!1);Il(()=>(B.current=!0,()=>{B.current=!1}),[]),Il(()=>{if(S&&(T.current=S),E&&(A.current=E),S&&E){if(V.current)return V.current(S,E,_);_()}},[S,E,_,V,M]);const L=v.useMemo(()=>({reference:T,floating:A,setReference:w,setFloating:C}),[w,C]),P=v.useMemo(()=>({reference:S,floating:E}),[S,E]),G=v.useMemo(()=>{const j={position:n,left:0,top:0};if(!P.floating)return j;const H=Cw(P.floating,d.x),U=Cw(P.floating,d.y);return s?{...j,transform:"translate("+H+"px, "+U+"px)",...WA(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,P.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:_,refs:L,elements:P,floatingStyles:G}),[d,_,L,P,G])}const aV=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?ww({element:r.current,padding:o}).fn(n):{}:r?ww({element:r,padding:o}).fn(n):{}}}},sV=(t,e)=>({...Z$(t),options:[t,e]}),lV=(t,e)=>({...J$(t),options:[t,e]}),uV=(t,e)=>({...tV(t),options:[t,e]}),cV=(t,e)=>({...K$(t),options:[t,e]}),dV=(t,e)=>({...Q$(t),options:[t,e]}),fV=(t,e)=>({...eV(t),options:[t,e]}),hV=(t,e)=>({...aV(t),options:[t,e]});var pV="Arrow",HA=v.forwardRef((t,e)=>{const{children:n,width:r=10,height:o=5,...i}=t;return h.jsx(he.svg,{...i,ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});HA.displayName=pV;var mV=HA,$b="Popper",[qA,xr]=At($b),[gV,zA]=qA($b),XA=t=>{const{__scopePopper:e,children:n}=t,[r,o]=v.useState(null);return h.jsx(gV,{scope:e,anchor:r,onAnchorChange:o,children:n})};XA.displayName=$b;var YA="PopperAnchor",UA=v.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...o}=t,i=zA(YA,n),a=v.useRef(null),s=Se(e,a),l=v.useRef(null);return v.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&i.onAnchorChange(l.current)}),r?null:h.jsx(he.div,{...o,ref:s})});UA.displayName=YA;var Vb="PopperContent",[bV,vV]=qA(Vb),ZA=v.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:m,...g}=t,b=zA(Vb,n),[y,w]=v.useState(null),C=Se(e,Y=>w(Y)),[S,E]=v.useState(null),T=cs(S),A=T?.width??0,O=T?.height??0,M=r+(i!=="center"?"-"+i:""),V=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},N=Array.isArray(u)?u:[u],k=N.length>0,_={padding:V,boundary:N.filter(xV),altBoundary:k},{refs:B,floatingStyles:L,placement:P,isPositioned:G,middlewareData:j}=iV({strategy:"fixed",placement:M,whileElementsMounted:(...Y)=>VA(...Y,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[sV({mainAxis:o+O,alignmentAxis:a}),l&&lV({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?uV():void 0,..._}),l&&cV({..._}),dV({..._,apply:({elements:Y,rects:J,availableWidth:ie,availableHeight:oe})=>{const{width:re,height:z}=J.reference,ue=Y.floating.style;ue.setProperty("--radix-popper-available-width",`${ie}px`),ue.setProperty("--radix-popper-available-height",`${oe}px`),ue.setProperty("--radix-popper-anchor-width",`${re}px`),ue.setProperty("--radix-popper-anchor-height",`${z}px`)}}),S&&hV({element:S,padding:s}),wV({arrowWidth:A,arrowHeight:O}),f&&fV({strategy:"referenceHidden",..._})]}),[H,U]=QA(P),Q=It(m);gt(()=>{G&&Q?.()},[G,Q]);const $=j.arrow?.x,q=j.arrow?.y,Z=j.arrow?.centerOffset!==0,[X,te]=v.useState();return gt(()=>{y&&te(window.getComputedStyle(y).zIndex)},[y]),h.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:G?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[j.transformOrigin?.x,j.transformOrigin?.y].join(" "),...j.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(bV,{scope:n,placedSide:H,onArrowChange:E,arrowX:$,arrowY:q,shouldHideArrow:Z,children:h.jsx(he.div,{"data-side":H,"data-align":U,...g,ref:C,style:{...g.style,animation:G?void 0:"none"}})})})});ZA.displayName=Vb;var JA="PopperArrow",yV={top:"bottom",right:"left",bottom:"top",left:"right"},KA=v.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,i=vV(JA,r),a=yV[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(mV,{...o,ref:n,style:{...o.style,display:"block"}})})});KA.displayName=JA;function xV(t){return t!==null}var wV=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,a=o.arrow?.centerOffset!==0,s=a?0:t.arrowWidth,l=a?0:t.arrowHeight,[u,d]=QA(n),c={start:"0%",center:"50%",end:"100%"}[d],f=(o.arrow?.x??0)+s/2,p=(o.arrow?.y??0)+l/2;let m="",g="";return u==="bottom"?(m=a?c:`${f}px`,g=`${-l}px`):u==="top"?(m=a?c:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(m=`${-l}px`,g=a?c:`${p}px`):u==="left"&&(m=`${r.floating.width+l}px`,g=a?c:`${p}px`),{data:{x:m,y:g}}}});function QA(t){const[e,n="center"]=t.split("-");return[e,n]}var $i=XA,Vi=UA,gs=ZA,bs=KA,nc="Popover",[eT]=At(nc,[xr]),vs=xr(),[CV,ro]=eT(nc),tT=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=t,s=vs(e),l=v.useRef(null),[u,d]=v.useState(!1),[c,f]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:nc});return h.jsx($i,{...s,children:h.jsx(CV,{scope:e,contentId:ft(),triggerRef:l,open:c,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:u,onCustomAnchorAdd:v.useCallback(()=>d(!0),[]),onCustomAnchorRemove:v.useCallback(()=>d(!1),[]),modal:a,children:n})})};tT.displayName=nc;var nT="PopoverAnchor",rT=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ro(nT,n),i=vs(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return v.useEffect(()=>(a(),()=>s()),[a,s]),h.jsx(Vi,{...i,...r,ref:e})});rT.displayName=nT;var oT="PopoverTrigger",iT=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ro(oT,n),i=vs(n),a=Se(e,o.triggerRef),s=h.jsx(he.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cT(o.open),...r,ref:a,onClick:se(t.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:h.jsx(Vi,{asChild:!0,...i,children:s})});iT.displayName=oT;var Wb="PopoverPortal",[SV,EV]=eT(Wb,{forceMount:void 0}),aT=t=>{const{__scopePopover:e,forceMount:n,children:r,container:o}=t,i=ro(Wb,e);return h.jsx(SV,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};aT.displayName=Wb;var Ti="PopoverContent",sT=v.forwardRef((t,e)=>{const n=EV(Ti,t.__scopePopover),{forceMount:r=n.forceMount,...o}=t,i=ro(Ti,t.__scopePopover);return h.jsx(pt,{present:r||i.open,children:i.modal?h.jsx(AV,{...o,ref:e}):h.jsx(TV,{...o,ref:e})})});sT.displayName=Ti;var IV=wo("PopoverContent.RemoveScroll"),AV=v.forwardRef((t,e)=>{const n=ro(Ti,t.__scopePopover),r=v.useRef(null),o=Se(e,r),i=v.useRef(!1);return v.useEffect(()=>{const a=r.current;if(a)return Gu(a)},[]),h.jsx(fs,{as:IV,allowPinchZoom:!0,children:h.jsx(lT,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:se(t.onCloseAutoFocus,a=>{a.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:se(t.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:se(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),TV=v.forwardRef((t,e)=>{const n=ro(Ti,t.__scopePopover),r=v.useRef(!1),o=v.useRef(!1);return h.jsx(lT,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;n.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),lT=v.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...c}=t,f=ro(Ti,n),p=vs(n);return Bu(),h.jsx(ds,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:h.jsx(gs,{"data-state":cT(f.open),role:"dialog",id:f.contentId,...p,...c,ref:e,style:{...c.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)"}})})})}),uT="PopoverClose",NV=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=ro(uT,n);return h.jsx(he.button,{type:"button",...r,ref:e,onClick:se(t.onClick,()=>o.onOpenChange(!1))})});NV.displayName=uT;var _V="PopoverArrow",OV=v.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,o=vs(n);return h.jsx(bs,{...o,...r,ref:e})});OV.displayName=_V;function cT(t){return t?"open":"closed"}var RV=tT,PV=rT,MV=iT,kV=aT,DV=sT;function rc({...t}){return h.jsx(RV,{"data-slot":"popover",...t})}function oc({...t}){return h.jsx(MV,{"data-slot":"popover-trigger",...t})}function ic({className:t,align:e="center",sideOffset:n=4,...r}){return h.jsx(kV,{children:h.jsx(DV,{"data-slot":"popover-content",align:e,sideOffset:n,className:D("ui:z-[102] ui:w-72 ui:rounded-md ui:border ui:bg-popover ui:p-4 ui:text-popover-foreground ui:shadow-md ui:outline-none ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2",t),...r})})}function jV({...t}){return h.jsx(PV,{"data-slot":"popover-anchor",...t})}var LV=t=>t.type==="checkbox",ya=t=>t instanceof Date,Hb=t=>t==null;const dT=t=>typeof t=="object";var To=t=>!Hb(t)&&!Array.isArray(t)&&dT(t)&&!ya(t),BV=t=>To(t)&&t.target?LV(t.target)?t.target.checked:t.target.value:t,FV=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,GV=(t,e)=>t.has(FV(e)),$V=t=>{const e=t.constructor&&t.constructor.prototype;return To(e)&&e.hasOwnProperty("isPrototypeOf")},VV=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function fT(t){if(t instanceof Date)return new Date(t);const e=typeof FileList<"u"&&t instanceof FileList;if(VV&&(t instanceof Blob||e))return t;const n=Array.isArray(t);if(!n&&!(To(t)&&$V(t)))return t;const r=n?[]:Object.create(Object.getPrototypeOf(t));for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=fT(t[o]));return r}var hT=t=>/^\w*$/.test(t),Um=t=>t===void 0,WV=t=>Array.isArray(t)?t.filter(Boolean):[],pT=t=>WV(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Kt=(t,e,n)=>{if(!e||!To(t))return n;const r=(hT(e)?[e]:pT(e)).reduce((o,i)=>Hb(o)?o:o[i],t);return Um(r)||r===t?Um(t[e])?n:t[e]:r},Wp=t=>typeof t=="boolean",il=t=>typeof t=="function",Sw=(t,e,n)=>{let r=-1;const o=hT(e)?[e]:pT(e),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let l=n;if(r!==a){const u=t[s];l=To(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;t[s]=l,t=t[s]}};const Ew={BLUR:"blur",CHANGE:"change"},Iw={all:"all"},qb=I.createContext(null);qb.displayName="HookFormContext";const hn=()=>I.useContext(qb),HV=t=>{const{children:e,...n}=t;return I.createElement(qb.Provider,{value:n},e)};var qV=(t,e,n,r=!0)=>{const o={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(o,i,{get:()=>{const a=i;return e._proxyFormState[a]!==Iw.all&&(e._proxyFormState[a]=!r||Iw.all),n&&(n[a]=!0),t[a]}});return o};const mT=typeof window<"u"?I.useLayoutEffect:I.useEffect;function zV(t){const e=hn(),{control:n=e.control,disabled:r,name:o,exact:i}=t||{},[a,s]=I.useState(n._formState),l=I.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return mT(()=>n._subscribe({name:o,formState:l.current,exact:i,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,i]),I.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),I.useMemo(()=>qV(a,n,l.current,!1),[a,n])}var XV=t=>typeof t=="string",Aw=(t,e,n,r,o)=>XV(t)?Kt(n,t,o):Array.isArray(t)?t.map(i=>Kt(n,i)):n,Tw=t=>Hb(t)||!dT(t);function Al(t,e,n=new WeakSet){if(Tw(t)||Tw(e))return Object.is(t,e);if(ya(t)&&ya(e))return t.getTime()===e.getTime();const r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);for(const i of r){const a=t[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=e[i];if(ya(a)&&ya(s)||To(a)&&To(s)||Array.isArray(a)&&Array.isArray(s)?!Al(a,s,n):!Object.is(a,s))return!1}}return!0}function gT(t){const e=hn(),{control:n=e.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=t||{},l=I.useRef(o),u=I.useRef(s),d=I.useRef(void 0),c=I.useRef(n),f=I.useRef(r);u.current=s;const[p,m]=I.useState(()=>{const S=n._getWatch(r,l.current);return u.current?u.current(S):S}),g=I.useCallback(S=>{const E=Aw(r,n._names,S||n._formValues,!1,l.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),b=I.useCallback(S=>{if(!i){const E=Aw(r,n._names,S||n._formValues,!1,l.current);if(u.current){const T=u.current(E);Al(T,d.current)||(m(T),d.current=T)}else m(E)}},[n._formValues,n._names,i,r]);mT(()=>((c.current!==n||!Al(f.current,r))&&(c.current=n,f.current=r,b()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:S=>{b(S.values)}})),[n,a,r,b]),I.useEffect(()=>n._removeUnmounted());const y=c.current!==n,w=f.current,C=I.useMemo(()=>{if(i)return null;const S=!y&&!Al(w,r);return y||S?g():null},[i,y,r,w,g]);return C!==null?C:p}function YV(t){const e=hn(),{name:n,disabled:r,control:o=e.control,shouldUnregister:i,defaultValue:a,exact:s=!0}=t,l=GV(o._names.array,n),u=I.useMemo(()=>Kt(o._formValues,n,Kt(o._defaultValues,n,a)),[o,n,a]),d=gT({control:o,name:n,defaultValue:u,exact:s}),c=zV({control:o,name:n,exact:s}),f=I.useRef(t),p=I.useRef(void 0),m=I.useRef(o.register(n,{...t.rules,value:d,...Wp(t.disabled)?{disabled:t.disabled}:{}}));f.current=t;const g=I.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Kt(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Kt(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Kt(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Kt(c.validatingFields,n)},error:{enumerable:!0,get:()=>Kt(c.errors,n)}}),[c,n]),b=I.useCallback(S=>m.current.onChange({target:{value:BV(S),name:n},type:Ew.CHANGE}),[n]),y=I.useCallback(()=>m.current.onBlur({target:{value:Kt(o._formValues,n),name:n},type:Ew.BLUR}),[n,o._formValues]),w=I.useCallback(S=>{const E=Kt(o._fields,n);E&&E._f&&S&&(E._f.ref={focus:()=>il(S.focus)&&S.focus(),select:()=>il(S.select)&&S.select(),setCustomValidity:T=>il(S.setCustomValidity)&&S.setCustomValidity(T),reportValidity:()=>il(S.reportValidity)&&S.reportValidity()})},[o._fields,n]),C=I.useMemo(()=>({name:n,value:d,...Wp(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:b,onBlur:y,ref:w}),[n,r,c.disabled,b,y,w,d]);return I.useEffect(()=>{const S=o._options.shouldUnregister||i,E=p.current;E&&E!==n&&!l&&o.unregister(E),o.register(n,{...f.current.rules,...Wp(f.current.disabled)?{disabled:f.current.disabled}:{}});const T=(A,O)=>{const M=Kt(o._fields,A);M&&M._f&&(M._f.mount=O)};if(T(n,!0),S){const A=fT(Kt(o._options.defaultValues,n,f.current.defaultValue));Sw(o._defaultValues,n,A),Um(Kt(o._formValues,n))&&Sw(o._formValues,n,A)}return!l&&o.register(n),p.current=n,()=>{(l?S&&!o._state.action:S)?o.unregister(n):T(n,!1)}},[n,o,l,i]),I.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),I.useMemo(()=>({field:C,formState:c,fieldState:g}),[C,c,g])}const UV=t=>t.render(YV(t)),bT=v.createContext(null),vT=v.createContext(null),ac=()=>{const t=v.useContext(bT),e=v.useContext(vT);if(!t)throw new Error("useFormField must be used within <FormField>");if(!e)throw new Error("useFormField must be used within <FormItem>");const{id:n}=e,{name:r,error:o}=t;return{name:r,error:o,formItemId:`${n}-form-item`,formDescriptionId:`${n}-form-item-description`,formMessageId:`${n}-form-item-message`}},ZV=HV,Yn=({...t})=>h.jsx(UV,{...t,render:e=>h.jsx(bT.Provider,{value:{name:t.name,error:e.fieldState.error},children:t.render?.(e)})});function In({className:t,...e}){const n=v.useId();return h.jsx(vT.Provider,{value:{id:n},children:h.jsx("div",{"data-slot":"form-item",className:D("ui:grid ui:gap-2",t),...e})})}function pr({className:t,required:e=!1,...n}){const{error:r,formItemId:o}=ac();return h.jsxs(Tn,{"data-slot":"form-label","data-error":!!r,className:D(r?"ui:text-destructive":"ui:text-black-950","ui:text-sm",t),htmlFor:o,...n,children:[n.children,e&&h.jsx("span",{className:"ui:text-destructive ml-1",children:"*"})]})}function fn({...t}){const{error:e,formItemId:n,formDescriptionId:r,formMessageId:o}=ac();return h.jsx(gr,{"data-slot":"form-control",id:n,"aria-describedby":e?`${r} ${o}`:`${r}`,"aria-invalid":!!e,...t})}function wr({className:t,...e}){const{formDescriptionId:n}=ac();return h.jsx("p",{"data-slot":"form-description",id:n,className:D("ui:text-muted-foreground ui:text-sm",t),...e})}function Un({className:t,showErrorPlaceholder:e,...n}){const{error:r,formMessageId:o}=ac(),i=r?String(r?.message??""):n.children;return i?h.jsx("p",{"data-slot":"form-message",id:o,className:D("ui:text-destructive ui:text-sm",t),...n,children:i}):e?h.jsx("p",{className:"ui:h-4"}):null}const JV=({hasFormControlWrapper:t=!1,children:e,...n})=>t?h.jsx(fn,{...n,children:e}):h.jsx(gr,{...n,children:e}),Zm=({value:t,isDisabled:e,hasAllOption:n,isMultiSelect:r,options:o,allOptionLabel:i,triggerPlaceholder:a,isFormControlWrapper:s,avoidCollisions:l,contentClassName:u,inputPlaceholder:d,emptyMessage:c,containerClassName:f,contentListClassName:p,closeOnSelect:m,label:g,handleSelectItem:b,handleSelectAll:y,onInputChange:w})=>{const[C,S]=I.useState(!1),E=T=>n&&r&&T?.length===o.length?i:r?T?.length&&Array.isArray(T)?T.map(A=>o.find(({value:O})=>O===A)?.label).filter(Boolean).join(", "):a:o.find(({value:A})=>A===T)?.label||a;return h.jsxs("article",{className:f,children:[g&&h.jsx(Tn,{className:"ui:mb-2 ui:block",children:g}),h.jsxs(rc,{open:C,onOpenChange:S,children:[h.jsx(oc,{asChild:!0,children:h.jsx(JV,{hasFormControlWrapper:!!s,children:h.jsxs(en,{variant:"outline",role:"combobox",type:"button",className:D("ui:w-full ui:justify-between",!t&&"ui:text-muted-foreground"),disabled:e,children:[h.jsx("span",{className:"ui:w-full ui:overflow-hidden ui:text-left",children:E(t)}),h.jsx(F2,{className:"ui:ml-2 ui:h-4 ui:w-4 ui:shrink-0 ui:opacity-50"})]})})}),h.jsx(ic,{avoidCollisions:l,className:D("ui:w-[200px] ui:p-0 ui:full-width-trigger",u),children:h.jsxs(kb,{children:[h.jsx(AA,{containerClassName:"ui:rounded-b-none",className:"ui:border-none! ui:border-b-0!",placeholder:d,onValueChange:w}),h.jsxs(TA,{children:[h.jsx(NA,{children:c}),h.jsxs(_A,{className:D(p),children:[n&&r&&h.jsxs(qm,{value:"all",onSelect:()=>{y(t,o),m&&S(!1)},children:[i,h.jsx(Oa,{className:D("ui:ml-auto",t?.length===o.length?"ui:opacity-100":"ui:opacity-0")})]},"all"),o.map(T=>h.jsxs(qm,{value:T.label,onSelect:()=>{b(t,T),m&&S(!1)},children:[T.label,h.jsx(Oa,{className:D("ui:ml-auto",r?t?.includes(T.value)?"ui:opacity-100":"ui:opacity-0":T.value===t?"ui:opacity-100":"ui:opacity-0")})]},T.value))]})]})]})})]})]})},KV="dd/MM/yyyy",QV=({date:t,format:e=KV})=>t?h.jsx(h.Fragment,{children:yD(t,e)}):null,eW=({start:t,end:e,onConfirm:n,className:r,triggerButtonClassName:o,label:i,placeholder:a,confirmLabel:s,disabledCondition:l})=>{const[u,d]=I.useState(!1),[c,f]=I.useState({from:t,to:e}),p=()=>{!c.from||!c.to||(n({from:c.from,to:c.to}),d(!1))};return h.jsxs("div",{className:D("ui:grid ui:gap-2",r),children:[h.jsx(Tn,{children:i}),h.jsxs(rc,{open:u,onOpenChange:d,children:[h.jsx(oc,{asChild:!0,children:h.jsxs(en,{id:"date",variant:"outline",className:D("ui:h-auto ui:text-muted-foreground ui:justify-start ui:text-left ui:font-normal",!c&&"ui:text-muted-foreground",o),children:[h.jsx(PS,{className:"ui:mr-2 ui:h-4 ui:w-4"}),c?.from?c.to?h.jsxs(h.Fragment,{children:[Ln(c.from,"LLL dd, y")," - ",Ln(c.to,"LLL dd, y")]}):Ln(c.from,"LLL dd, y"):h.jsx("span",{children:a})]})}),h.jsxs(ic,{className:"ui:w-auto ui:p-0",align:"start",children:[h.jsx(nb,{mode:"range",defaultMonth:c?.from,selected:c,onSelect:f,numberOfMonths:2,disabled:l,required:!0}),h.jsx("div",{className:"ui:px-3 ui:pb-4 ui:pt-2",children:h.jsx(en,{variant:"success",size:"sm",onClick:p,className:"ui:w-full",children:s})})]})]})]})};function sc({className:t,type:e,...n}){return h.jsx("input",{type:e,"data-slot":"input",className:D("ui:file:text-foreground ui:placeholder:text-muted-foreground ui:selection:bg-primary ui:selection:text-primary-foreground ui:dark:bg-input/30 ui:border-input ui:h-9 ui:w-full ui:min-w-0 ui:rounded-md ui:border ui:bg-transparent ui:px-3 ui:py-1 ui:text-base ui:shadow-xs ui:transition-[color,box-shadow] ui:outline-none ui:file:inline-flex ui:file:h-7 ui:file:border-0 ui:file:bg-transparent ui:file:text-sm ui:file:font-medium ui:disabled:pointer-events-none ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:md:text-sm","ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px]","ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive",t),...n})}function tW({value:t,onChange:e,className:n,inputClassName:r,name:o,placeholder:i,label:a}){const[s,l]=I.useState(t),u=I.useRef(null),d=I.useRef(e);I.useEffect(()=>{d.current=e},[e]);const c=I.useCallback(p=>{u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{p.length>=3?d.current(p):d.current("")},300)},[]),f=p=>{const m=decodeURIComponent(p);l(m),c(m)};return h.jsxs("search",{className:D("ui:w-full",n),children:[a&&h.jsx(Tn,{htmlFor:o,className:"ui:leading-6 ui:w-full",children:a}),h.jsx(sc,{type:"search",name:o,id:o,"data-test-id":o,placeholder:i,value:s,onChange:({target:p})=>f(p.value),className:D("ui:max-h-9",r),autoFocus:!0})]})}const nW=({banner:t,campaignName:e,isControlled:n,open:r,setOpen:o,imageClassName:i})=>h.jsxs(Xu,{...n&&{open:r,onOpenChange:o},children:[!n&&h.jsx(Pb,{asChild:!0,children:h.jsx("div",{className:"ui:cursor-pointer",children:h.jsx("img",{className:D("ui:w-full ui:max-w-80 ui:mx-auto ui:mt-4! ui:scale-100 ui:hover:scale-110 ui:transition-all ui:duration-300 ui:aspect-video",i),src:t,alt:e})})}),h.jsxs(Yu,{className:"ui:max-w-2xl",children:[h.jsx(Uu,{children:h.jsx(Zu,{children:e})}),h.jsx("img",{className:D("ui:w-full ui:aspect-video",i),src:t,alt:e})]})]});function rW(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const yT=I.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),ys=()=>{const t=I.useContext(yT);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};rW(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
61
61
  [data-state=closed]
62
- ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function oW(){const t=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}function iW(){return zb(/^Mac/)}function aW(){return zb(/^iPhone/)}function Nw(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function sW(){return zb(/^iPad/)||iW()&&navigator.maxTouchPoints>1}function wT(){return aW()||sW()}function zb(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const lW=24,uW=typeof window<"u"?I.useLayoutEffect:I.useEffect;function _w(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Hp=typeof document<"u"&&window.visualViewport;function Ow(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}function CT(t){for(Ow(t)&&(t=t.parentElement);t&&!Ow(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const cW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let al=0,qp;function dW(t={}){let{isDisabled:e}=t;uW(()=>{if(!e)return al++,al===1&&wT()&&(qp=fW()),()=>{al--,al===0&&qp?.()}},[e])}function fW(){let t,e=0,n=c=>{t=CT(c.target),!(t===document.documentElement&&t===document.body)&&(e=c.changedTouches[0].pageY)},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}let f=c.changedTouches[0].pageY,p=t.scrollTop,m=t.scrollHeight-t.clientHeight;m!==0&&((p<=0&&f>e||p>=m&&f<e)&&c.preventDefault(),e=f)},o=c=>{let f=c.target;Jm(f)&&f!==document.activeElement&&(c.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=c=>{let f=c.target;Jm(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Hp&&(Hp.height<window.innerHeight?requestAnimationFrame(()=>{Rw(f)}):Hp.addEventListener("resize",()=>Rw(f),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,u=_w(hW(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let d=_w(sa(document,"touchstart",n,{passive:!1,capture:!0}),sa(document,"touchmove",r,{passive:!1,capture:!0}),sa(document,"touchend",o,{passive:!1,capture:!0}),sa(document,"focus",i,!0),sa(window,"scroll",a));return()=>{u(),d(),window.scrollTo(s,l)}}function hW(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function sa(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Rw(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=CT(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let r=n.getBoundingClientRect().top,o=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+lW;i>a&&(n.scrollTop+=o-r)}t=n.parentElement}}function Jm(t){return t instanceof HTMLInputElement&&!cW.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function pW(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function mW(...t){return e=>t.forEach(n=>pW(n,e))}function ST(...t){return v.useCallback(mW(...t),t)}const ET=new WeakMap;function Et(t,e,n=!1){if(!t||!(t instanceof HTMLElement))return;let r={};Object.entries(e).forEach(([o,i])=>{if(o.startsWith("--")){t.style.setProperty(o,i);return}r[o]=t.style[o],t.style[o]=i}),!n&&ET.set(t,r)}function gW(t,e){if(!t||!(t instanceof HTMLElement))return;let n=ET.get(t);n&&(t.style[e]=n[e])}const yt=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function sl(t,e){if(!t)return null;const n=window.getComputedStyle(t),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[yt(e)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[yt(e)?5:4]):null)}function bW(t){return 8*(Math.log(t+1)-2)}function zp(t,e){if(!t)return()=>{};const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}function vW(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}const ut={DURATION:.5,EASE:[.32,.72,0,1]},IT=.4,yW=.25,xW=100,AT=8,bo=16,Km=26,Xp="vaul-dragging";function TT(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...n)=>e.current==null?void 0:e.current.call(e,...n),[])}function wW({defaultProp:t,onChange:e}){const n=I.useState(t),[r]=n,o=I.useRef(r),i=TT(e);return I.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function NT({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,o]=wW({defaultProp:e,onChange:n}),i=t!==void 0,a=i?t:r,s=TT(n),l=I.useCallback(u=>{if(i){const c=typeof u=="function"?u(t):u;c!==t&&s(c)}else o(u)},[i,t,o,s]);return[a,l]}function CW({activeSnapPointProp:t,setActiveSnapPointProp:e,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:s="bottom",container:l,snapToSequentialPoint:u}){const[d,c]=NT({prop:t,defaultProp:n?.[0],onChange:e}),[f,p]=I.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);I.useEffect(()=>{function A(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]);const m=I.useMemo(()=>d===n?.[n.length-1]||null,[n,d]),g=I.useMemo(()=>{var A;return(A=n?.findIndex(O=>O===d))!=null?A:null},[n,d]),b=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===d||!n,y=I.useMemo(()=>{const A=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var O;return(O=n?.map(M=>{const V=typeof M=="string";let N=0;if(V&&(N=parseInt(M,10)),yt(s)){const _=V?N:f?M*A.height:0;return f?s==="bottom"?A.height-_:-A.height+_:_}const k=V?N:f?M*A.width:0;return f?s==="right"?A.width-k:-A.width+k:k}))!=null?O:[]},[n,f,l]),w=I.useMemo(()=>g!==null?y?.[g]:null,[y,g]),C=I.useCallback(A=>{var O;const M=(O=y?.findIndex(V=>V===A))!=null?O:null;a(M),Et(r.current,{transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,transform:yt(s)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`}),y&&M!==y.length-1&&i!==void 0&&M!==i&&M<i?Et(o.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,opacity:"0"}):Et(o.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,opacity:"1"}),c(n?.[Math.max(M,0)])},[r.current,n,y,i,o,c]);I.useEffect(()=>{if(d||t){var A;const O=(A=n?.findIndex(M=>M===t||M===d))!=null?A:-1;y&&O!==-1&&typeof y[O]=="number"&&C(y[O])}},[d,t,n,y,C]);function S({draggedDistance:A,closeDrawer:O,velocity:M,dismissible:V}){if(i===void 0)return;const N=s==="bottom"||s==="right"?(w??0)-A:(w??0)+A,k=g===i-1,_=g===0,B=A>0;if(k&&Et(o.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`}),!u&&M>2&&!B){V?O():C(y[0]);return}if(!u&&M>2&&B&&y&&n){C(y[n.length-1]);return}const L=y?.reduce((G,j)=>typeof G!="number"||typeof j!="number"?G:Math.abs(j-N)<Math.abs(G-N)?j:G),P=yt(s)?window.innerHeight:window.innerWidth;if(M>IT&&Math.abs(A)<P*.4){const G=B?1:-1;if(G>0&&m&&n){C(y[n.length-1]);return}if(_&&G<0&&V&&O(),g===null)return;C(y[g+G]);return}C(L)}function E({draggedDistance:A}){if(w===null)return;const O=s==="bottom"||s==="right"?w-A:w+A;(s==="bottom"||s==="right")&&O<y[y.length-1]||(s==="top"||s==="left")&&O>y[y.length-1]||Et(r.current,{transform:yt(s)?`translate3d(0, ${O}px, 0)`:`translate3d(${O}px, 0, 0)`})}function T(A,O){if(!n||typeof g!="number"||!y||i===void 0)return null;const M=g===i-1;if(g>=i&&O)return 0;if(M&&!O)return 1;if(!b&&!M)return null;const N=M?g+1:g-1,k=M?y[N]-y[N-1]:y[N+1]-y[N],_=A/Math.abs(k);return M?1-_:_}return{isLastSnapPoint:m,activeSnapPoint:d,shouldFade:b,getPercentageDragged:T,setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:S,onDrag:E,snapPointsOffset:y}}const SW=()=>()=>{};function EW(){const{direction:t,isOpen:e,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=ys(),i=I.useRef(null),a=I.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-Km)/window.innerWidth}I.useEffect(()=>{if(e&&n){i.current&&clearTimeout(i.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;vW(r&&!o?zp(document.body,{background:"black"}):SW,zp(l,{transformOrigin:yt(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ut.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ut.EASE.join(",")})`}));const u=zp(l,{borderRadius:`${AT}px`,overflow:"hidden",...yt(t)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),i.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},ut.DURATION*1e3)}}},[e,n,a])}let la=null;function IW({isOpen:t,modal:e,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,s]=I.useState(()=>typeof window<"u"?window.location.href:""),l=I.useRef(0),u=I.useCallback(()=>{if(Nw()&&la===null&&t&&!i){la={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:c,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-c}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const p=f-window.innerHeight;p&&l.current>=f&&(document.body.style.top=`${-(l.current+p)}px`)}),300)}},[t]),d=I.useCallback(()=>{if(Nw()&&la!==null&&!i){const c=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,la),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){s(window.location.href);return}window.scrollTo(f,c)}),la=null}},[a]);return I.useEffect(()=>{function c(){l.current=window.scrollY}return c(),window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}},[]),I.useEffect(()=>{if(e)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||d()}},[e,d]),I.useEffect(()=>{n||!r||(t?(!window.matchMedia("(display-mode: standalone)").matches&&u(),e||window.setTimeout(()=>{d()},500)):d())},[t,r,a,e,n,u,d]),{restorePositionSetting:d}}function AW({open:t,onOpenChange:e,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=yW,scrollLockTimeout:u=xW,dismissible:d=!0,handleOnly:c=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:g,modal:b=!0,onClose:y,nested:w,noBodyStyles:C=!1,direction:S="bottom",defaultOpen:E=!1,disablePreventScroll:T=!0,snapToSequentialPoint:A=!1,preventScrollRestoration:O=!1,repositionInputs:M=!0,onAnimationEnd:V,container:N,autoFocus:k=!1}){var _,B;const[L=!1,P]=NT({defaultProp:E,prop:t,onChange:ne=>{e?.(ne),!ne&&!w&&it(),setTimeout(()=>{V?.(ne)},ut.DURATION*1e3),ne&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),ne||(document.body.style.pointerEvents="auto")}}),[G,j]=I.useState(!1),[H,U]=I.useState(!1),[Q,$]=I.useState(!1),q=I.useRef(null),Z=I.useRef(null),X=I.useRef(null),te=I.useRef(null),Y=I.useRef(null),J=I.useRef(!1),ie=I.useRef(null),oe=I.useRef(0),re=I.useRef(!1),z=I.useRef(!E),ue=I.useRef(0),W=I.useRef(null),le=I.useRef(((_=W.current)==null?void 0:_.getBoundingClientRect().height)||0),Ae=I.useRef(((B=W.current)==null?void 0:B.getBoundingClientRect().width)||0),Ne=I.useRef(0),Ve=I.useCallback(ne=>{i&&ne===Ge.length-1&&(Z.current=new Date)},[]),{activeSnapPoint:Ie,activeSnapPointIndex:Re,setActiveSnapPoint:at,onRelease:Me,snapPointsOffset:Ge,onDrag:We,shouldFade:Qe,getPercentageDragged:st}=CW({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:W,fadeFromIndex:f,overlayRef:q,onSnapPointChange:Ve,direction:S,container:N,snapToSequentialPoint:A});dW({isDisabled:!L||H||!b||Q||!G||!M||!T});const{restorePositionSetting:it}=IW({isOpen:L,modal:b,nested:w??!1,hasBeenOpened:G,preventScrollRestoration:O,noBodyStyles:C});function mt(){return(window.innerWidth-Km)/window.innerWidth}function bt(ne){var fe,ce;!d&&!i||W.current&&!W.current.contains(ne.target)||(le.current=((fe=W.current)==null?void 0:fe.getBoundingClientRect().height)||0,Ae.current=((ce=W.current)==null?void 0:ce.getBoundingClientRect().width)||0,U(!0),X.current=new Date,wT()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),ne.target.setPointerCapture(ne.pointerId),oe.current=yt(S)?ne.pageY:ne.pageX)}function Le(ne,fe){var ce;let de=ne;const Te=(ce=window.getSelection())==null?void 0:ce.toString(),ae=W.current?sl(W.current,S):null,_e=new Date;if(de.tagName==="SELECT"||de.hasAttribute("data-vaul-no-drag")||de.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(Z.current&&_e.getTime()-Z.current.getTime()<500)return!1;if(ae!==null&&(S==="bottom"?ae>0:ae<0))return!0;if(Te&&Te.length>0)return!1;if(Y.current&&_e.getTime()-Y.current.getTime()<u&&ae===0||fe)return Y.current=_e,!1;for(;de;){if(de.scrollHeight>de.clientHeight){if(de.scrollTop!==0)return Y.current=new Date,!1;if(de.getAttribute("role")==="dialog")return!0}de=de.parentNode}return!0}function _t(ne){if(W.current&&H){const fe=S==="bottom"||S==="right"?1:-1,ce=(oe.current-(yt(S)?ne.pageY:ne.pageX))*fe,de=ce>0,Te=i&&!d&&!de;if(Te&&Re===0)return;const ae=Math.abs(ce),_e=document.querySelector("[data-vaul-drawer-wrapper]"),ke=S==="bottom"||S==="top"?le.current:Ae.current;let De=ae/ke;const nt=st(ae,de);if(nt!==null&&(De=nt),Te&&De>=1||!J.current&&!Le(ne.target,de))return;if(W.current.classList.add(Xp),J.current=!0,Et(W.current,{transition:"none"}),Et(q.current,{transition:"none"}),i&&We({draggedDistance:ce}),de&&!i){const Be=bW(ce),an=Math.min(Be*-1,0)*fe;Et(W.current,{transform:yt(S)?`translate3d(0, ${an}px, 0)`:`translate3d(${an}px, 0, 0)`});return}const je=1-De;if((Qe||f&&Re===f-1)&&(r?.(ne,De),Et(q.current,{opacity:`${je}`,transition:"none"},!0)),_e&&q.current&&a){const Be=Math.min(mt()+De*(1-mt()),1),an=8-De*8,Tt=Math.max(0,14-De*14);Et(_e,{borderRadius:`${an}px`,transform:yt(S)?`scale(${Be}) translate3d(0, ${Tt}px, 0)`:`scale(${Be}) translate3d(${Tt}px, 0, 0)`,transition:"none"},!0)}if(!i){const Be=ae*fe;Et(W.current,{transform:yt(S)?`translate3d(0, ${Be}px, 0)`:`translate3d(${Be}px, 0, 0)`})}}}I.useEffect(()=>{window.requestAnimationFrame(()=>{z.current=!0})},[]),I.useEffect(()=>{var ne;function fe(){if(!W.current||!M)return;const ce=document.activeElement;if(Jm(ce)||re.current){var de;const Te=((de=window.visualViewport)==null?void 0:de.height)||0,ae=window.innerHeight;let _e=ae-Te;const ke=W.current.getBoundingClientRect().height||0,De=ke>ae*.8;Ne.current||(Ne.current=ke);const nt=W.current.getBoundingClientRect().top;if(Math.abs(ue.current-_e)>60&&(re.current=!re.current),i&&i.length>0&&Ge&&Re){const je=Ge[Re]||0;_e+=je}if(ue.current=_e,ke>Te||re.current){const je=W.current.getBoundingClientRect().height;let Be=je;je>Te&&(Be=Te-(De?nt:Km)),g?W.current.style.height=`${je-Math.max(_e,0)}px`:W.current.style.height=`${Math.max(Be,Te-nt)}px`}else oW()||(W.current.style.height=`${Ne.current}px`);i&&i.length>0&&!re.current?W.current.style.bottom="0px":W.current.style.bottom=`${Math.max(_e,0)}px`}}return(ne=window.visualViewport)==null||ne.addEventListener("resize",fe),()=>{var ce;return(ce=window.visualViewport)==null?void 0:ce.removeEventListener("resize",fe)}},[Re,i,Ge]);function tt(ne){Ot(),y?.(),ne||P(!1),setTimeout(()=>{i&&at(i[0])},ut.DURATION*1e3)}function lt(){if(!W.current)return;const ne=document.querySelector("[data-vaul-drawer-wrapper]"),fe=sl(W.current,S);Et(W.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`}),Et(q.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,opacity:"1"}),a&&fe&&fe>0&&L&&Et(ne,{borderRadius:`${AT}px`,overflow:"hidden",...yt(S)?{transform:`scale(${mt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${mt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ut.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ut.EASE.join(",")})`},!0)}function Ot(){!H||!W.current||(W.current.classList.remove(Xp),J.current=!1,U(!1),te.current=new Date)}function Rt(ne){if(!H||!W.current)return;W.current.classList.remove(Xp),J.current=!1,U(!1),te.current=new Date;const fe=sl(W.current,S);if(!ne||!Le(ne.target,!1)||!fe||Number.isNaN(fe)||X.current===null)return;const ce=te.current.getTime()-X.current.getTime(),de=oe.current-(yt(S)?ne.pageY:ne.pageX),Te=Math.abs(de)/ce;if(Te>.05&&($(!0),setTimeout(()=>{$(!1)},200)),i){Me({draggedDistance:de*(S==="bottom"||S==="right"?1:-1),closeDrawer:tt,velocity:Te,dismissible:d}),o?.(ne,!0);return}if(S==="bottom"||S==="right"?de>0:de<0){lt(),o?.(ne,!0);return}if(Te>IT){tt(),o?.(ne,!1);return}var ae;const _e=Math.min((ae=W.current.getBoundingClientRect().height)!=null?ae:0,window.innerHeight);var ke;const De=Math.min((ke=W.current.getBoundingClientRect().width)!=null?ke:0,window.innerWidth),nt=S==="left"||S==="right";if(Math.abs(fe)>=(nt?De:_e)*l){tt(),o?.(ne,!1);return}o?.(ne,!0),lt()}I.useEffect(()=>(L&&(Et(document.documentElement,{scrollBehavior:"auto"}),Z.current=new Date),()=>{gW(document.documentElement,"scrollBehavior")}),[L]);function on(ne){const fe=ne?(window.innerWidth-bo)/window.innerWidth:1,ce=ne?-bo:0;ie.current&&window.clearTimeout(ie.current),Et(W.current,{transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,transform:yt(S)?`scale(${fe}) translate3d(0, ${ce}px, 0)`:`scale(${fe}) translate3d(${ce}px, 0, 0)`}),!ne&&W.current&&(ie.current=setTimeout(()=>{const de=sl(W.current,S);Et(W.current,{transition:"none",transform:yt(S)?`translate3d(0, ${de}px, 0)`:`translate3d(${de}px, 0, 0)`})},500))}function Ht(ne,fe){if(fe<0)return;const ce=(window.innerWidth-bo)/window.innerWidth,de=ce+fe*(1-ce),Te=-bo+fe*bo;Et(W.current,{transform:yt(S)?`scale(${de}) translate3d(0, ${Te}px, 0)`:`scale(${de}) translate3d(${Te}px, 0, 0)`,transition:"none"})}function Pt(ne,fe){const ce=yt(S)?window.innerHeight:window.innerWidth,de=fe?(ce-bo)/ce:1,Te=fe?-bo:0;fe&&Et(W.current,{transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,transform:yt(S)?`scale(${de}) translate3d(0, ${Te}px, 0)`:`scale(${de}) translate3d(${Te}px, 0, 0)`})}return I.useEffect(()=>{b||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[b]),I.createElement(Vu,{defaultOpen:E,onOpenChange:ne=>{!d&&!ne||(ne?j(!0):tt(!0),P(ne))},open:L},I.createElement(xT.Provider,{value:{activeSnapPoint:Ie,snapPoints:i,setActiveSnapPoint:at,drawerRef:W,overlayRef:q,onOpenChange:e,onPress:bt,onRelease:Rt,onDrag:_t,dismissible:d,shouldAnimate:z,handleOnly:c,isOpen:L,isDragging:H,shouldFade:Qe,closeDrawer:tt,onNestedDrag:Ht,onNestedOpenChange:on,onNestedRelease:Pt,keyboardIsOpen:re,modal:b,snapPointsOffset:Ge,activeSnapPointIndex:Re,direction:S,shouldScaleBackground:a,setBackgroundColorOnScale:s,noBodyStyles:C,container:N,autoFocus:k}},n))}const _T=I.forwardRef(function({...t},e){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:s,shouldAnimate:l}=ys(),u=ST(e,n),d=r&&r.length>0;if(!s)return null;const c=I.useCallback(f=>o(f),[o]);return I.createElement(Hu,{onMouseUp:c,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":a&&d?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false","data-vaul-animate":l?.current?"true":"false",...t})});_T.displayName="Drawer.Overlay";const OT=I.forwardRef(function({onPointerDownOutside:t,style:e,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:s,onDrag:l,keyboardIsOpen:u,snapPointsOffset:d,activeSnapPointIndex:c,modal:f,isOpen:p,direction:m,snapPoints:g,container:b,handleOnly:y,shouldAnimate:w,autoFocus:C}=ys(),[S,E]=I.useState(!1),T=ST(o,i),A=I.useRef(null),O=I.useRef(null),M=I.useRef(!1),V=g&&g.length>0;EW();const N=(_,B,L=0)=>{if(M.current)return!0;const P=Math.abs(_.y),G=Math.abs(_.x),j=G>P,H=["bottom","right"].includes(B)?1:-1;if(B==="left"||B==="right"){if(!(_.x*H<0)&&G>=0&&G<=L)return j}else if(!(_.y*H<0)&&P>=0&&P<=L)return!j;return M.current=!0,!0};I.useEffect(()=>{V&&window.requestAnimationFrame(()=>{E(!0)})},[]);function k(_){A.current=null,M.current=!1,s(_)}return I.createElement(qu,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":p&&V?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":w?.current?"true":"false",...r,ref:T,style:d&&d.length>0?{"--snap-point-height":`${d[c??0]}px`,...e}:e,onPointerDown:_=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,_),A.current={x:_.pageX,y:_.pageY},a(_))},onOpenAutoFocus:_=>{n?.(_),C||_.preventDefault()},onPointerDownOutside:_=>{if(t?.(_),!f||_.defaultPrevented){_.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:_=>{if(!f){_.preventDefault();return}},onPointerMove:_=>{if(O.current=_,y||(r.onPointerMove==null||r.onPointerMove.call(r,_),!A.current))return;const B=_.pageY-A.current.y,L=_.pageX-A.current.x,P=_.pointerType==="touch"?10:2;N({x:L,y:B},m,P)?l(_):(Math.abs(L)>P||Math.abs(B)>P)&&(A.current=null)},onPointerUp:_=>{r.onPointerUp==null||r.onPointerUp.call(r,_),A.current=null,M.current=!1,s(_)},onPointerOut:_=>{r.onPointerOut==null||r.onPointerOut.call(r,_),k(O.current)},onContextMenu:_=>{r.onContextMenu==null||r.onContextMenu.call(r,_),O.current&&k(O.current)}})});OT.displayName="Drawer.Content";const TW=250,NW=120,_W=I.forwardRef(function({preventCycle:t=!1,children:e,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:u,handleOnly:d,isOpen:c,onPress:f,onDrag:p}=ys(),m=I.useRef(null),g=I.useRef(!1);function b(){if(g.current){C();return}window.setTimeout(()=>{y()},NW)}function y(){if(i||t||g.current){C();return}if(C(),!a||a.length===0){u||o();return}if(s===a[a.length-1]&&u){o();return}const E=a.findIndex(A=>A===s);if(E===-1)return;const T=a[E+1];l(T)}function w(){m.current=window.setTimeout(()=>{g.current=!0},TW)}function C(){m.current&&window.clearTimeout(m.current),g.current=!1}return I.createElement("div",{onClick:b,onPointerCancel:C,onPointerDown:S=>{d&&f(S),w()},onPointerMove:S=>{d&&p(S)},ref:r,"data-vaul-drawer-visible":c?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},I.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},e))});_W.displayName="Drawer.Handle";function OW(t){const e=ys(),{container:n=e.container,...r}=t;return I.createElement(Wu,{container:n,...r})}const oo={Root:AW,Content:OT,Overlay:_T,Trigger:Nb,Portal:OW,Close:hs,Title:_b,Description:Ob};function RW({...t}){return h.jsx(oo.Root,{"data-slot":"drawer",...t})}function PW({...t}){return h.jsx(oo.Trigger,{"data-slot":"drawer-trigger",...t})}function RT({...t}){return h.jsx(oo.Portal,{"data-slot":"drawer-portal",...t})}function MW({...t}){return h.jsx(oo.Close,{"data-slot":"drawer-close",...t})}function PT({className:t,...e}){return h.jsx(oo.Overlay,{"data-slot":"drawer-overlay",className:D("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",t),...e})}function kW({className:t,children:e,...n}){return h.jsxs(RT,{"data-slot":"drawer-portal",children:[h.jsx(PT,{}),h.jsxs(oo.Content,{"data-slot":"drawer-content",className:D("ui:group/drawer-content ui:bg-background ui:fixed ui:flex ui:h-auto ui:flex-col ui:rounded-t-[10px] ui:z-100 ui:mt-24","ui:data-[vaul-drawer-direction=top]:inset-x-0 ui:data-[vaul-drawer-direction=top]:top-0 ui:data-[vaul-drawer-direction=top]:mb-24 ui:data-[vaul-drawer-direction=top]:max-h-[80vh] ui:data-[vaul-drawer-direction=top]:rounded-b-lg ui:data-[vaul-drawer-direction=top]:border-b","ui:data-[vaul-drawer-direction=bottom]:inset-x-0 ui:data-[vaul-drawer-direction=bottom]:bottom-0 ui:data-[vaul-drawer-direction=bottom]:mt-24 ui:data-[vaul-drawer-direction=bottom]:max-h-[80vh] ui:data-[vaul-drawer-direction=bottom]:rounded-t-lg ui:data-[vaul-drawer-direction=bottom]:border-t","ui:data-[vaul-drawer-direction=right]:inset-y-0 ui:data-[vaul-drawer-direction=right]:right-0 ui:data-[vaul-drawer-direction=right]:w-3/4 ui:data-[vaul-drawer-direction=right]:border-l ui:data-[vaul-drawer-direction=right]:sm:max-w-sm","ui:data-[vaul-drawer-direction=left]:inset-y-0 ui:data-[vaul-drawer-direction=left]:left-0 ui:data-[vaul-drawer-direction=left]:w-3/4 ui:data-[vaul-drawer-direction=left]:border-r ui:data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...n,children:[h.jsx("div",{className:"ui:bg-muted ui:mx-auto ui:mt-4 ui:hidden ui:h-2 ui:w-[100px] ui:shrink-0 ui:rounded-full ui:group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function DW({className:t,...e}){return h.jsx("div",{"data-slot":"drawer-header",className:D("ui:flex ui:flex-col ui:gap-0.5 ui:p-4 ui:group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center ui:group-data-[vaul-drawer-direction=top]/drawer-content:text-center ui:md:gap-1.5 ui:md:text-left",t),...e})}function jW({className:t,...e}){return h.jsx("div",{"data-slot":"drawer-footer",className:D("ui:mt-auto ui:flex ui:flex-col ui:gap-2 ui:p-4",t),...e})}function LW({className:t,...e}){return h.jsx(oo.Title,{"data-slot":"drawer-title",className:D("ui:text-foreground ui:font-semibold",t),...e})}function BW({className:t,...e}){return h.jsx(oo.Description,{"data-slot":"drawer-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}var Yp="rovingFocusGroup.onEntryFocus",FW={bubbles:!1,cancelable:!0},xs="RovingFocusGroup",[Qm,MT,GW]=ns(xs),[$W,Wi]=At(xs,[GW]),[VW,WW]=$W(xs),kT=v.forwardRef((t,e)=>h.jsx(Qm.Provider,{scope:t.__scopeRovingFocusGroup,children:h.jsx(Qm.Slot,{scope:t.__scopeRovingFocusGroup,children:h.jsx(HW,{...t,ref:e})})}));kT.displayName=xs;var HW=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=t,f=v.useRef(null),p=Se(e,f),m=to(i),[g,b]=jt({prop:a,defaultProp:s??null,onChange:l,caller:xs}),[y,w]=v.useState(!1),C=It(u),S=MT(n),E=v.useRef(!1),[T,A]=v.useState(0);return v.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(Yp,C),()=>O.removeEventListener(Yp,C)},[C]),h.jsx(VW,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:g,onItemFocus:v.useCallback(O=>b(O),[b]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>A(O=>O+1),[]),onFocusableItemRemove:v.useCallback(()=>A(O=>O-1),[]),children:h.jsx(he.div,{tabIndex:y||T===0?-1:0,"data-orientation":r,...c,ref:p,style:{outline:"none",...t.style},onMouseDown:se(t.onMouseDown,()=>{E.current=!0}),onFocus:se(t.onFocus,O=>{const M=!E.current;if(O.target===O.currentTarget&&M&&!y){const V=new CustomEvent(Yp,FW);if(O.currentTarget.dispatchEvent(V),!V.defaultPrevented){const N=S().filter(P=>P.focusable),k=N.find(P=>P.active),_=N.find(P=>P.id===g),L=[k,_,...N].filter(Boolean).map(P=>P.ref.current);LT(L,d)}}E.current=!1}),onBlur:se(t.onBlur,()=>w(!1))})})}),DT="RovingFocusGroupItem",jT=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=t,l=ft(),u=i||l,d=WW(DT,n),c=d.currentTabStopId===u,f=MT(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:g}=d;return v.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),h.jsx(Qm.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:h.jsx(he.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...s,ref:e,onMouseDown:se(t.onMouseDown,b=>{r?d.onItemFocus(u):b.preventDefault()}),onFocus:se(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:se(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=XW(b,d.orientation,d.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const S=C.indexOf(b.currentTarget);C=d.loop?YW(C,S+1):C.slice(S+1)}setTimeout(()=>LT(C))}}),children:typeof a=="function"?a({isCurrentTabStop:c,hasTabStop:g!=null}):a})})});jT.displayName=DT;var qW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zW(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function XW(t,e,n){const r=zW(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return qW[r]}function LT(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function YW(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var Xb=kT,Yb=jT,eg=["Enter"," "],UW=["ArrowDown","PageUp","Home"],BT=["ArrowUp","PageDown","End"],ZW=[...UW,...BT],JW={ltr:[...eg,"ArrowRight"],rtl:[...eg,"ArrowLeft"]},KW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ws="Menu",[Wa,QW,eH]=ns(ws),[$o,FT]=At(ws,[eH,xr,Wi]),Cs=xr(),GT=Wi(),[$T,io]=$o(ws),[tH,Ss]=$o(ws),VT=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=t,s=Cs(e),[l,u]=v.useState(null),d=v.useRef(!1),c=It(i),f=to(o);return v.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),h.jsx($i,{...s,children:h.jsx($T,{scope:e,open:n,onOpenChange:c,content:l,onContentChange:u,children:h.jsx(tH,{scope:e,onClose:v.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:f,modal:a,children:r})})})};VT.displayName=ws;var nH="MenuAnchor",Ub=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,o=Cs(n);return h.jsx(Vi,{...o,...r,ref:e})});Ub.displayName=nH;var Zb="MenuPortal",[rH,WT]=$o(Zb,{forceMount:void 0}),HT=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:o}=t,i=io(Zb,e);return h.jsx(rH,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};HT.displayName=Zb;var En="MenuContent",[oH,Jb]=$o(En),qT=v.forwardRef((t,e)=>{const n=WT(En,t.__scopeMenu),{forceMount:r=n.forceMount,...o}=t,i=io(En,t.__scopeMenu),a=Ss(En,t.__scopeMenu);return h.jsx(Wa.Provider,{scope:t.__scopeMenu,children:h.jsx(pt,{present:r||i.open,children:h.jsx(Wa.Slot,{scope:t.__scopeMenu,children:a.modal?h.jsx(iH,{...o,ref:e}):h.jsx(aH,{...o,ref:e})})})})}),iH=v.forwardRef((t,e)=>{const n=io(En,t.__scopeMenu),r=v.useRef(null),o=Se(e,r);return v.useEffect(()=>{const i=r.current;if(i)return Gu(i)},[]),h.jsx(Kb,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:se(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),aH=v.forwardRef((t,e)=>{const n=io(En,t.__scopeMenu);return h.jsx(Kb,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),sH=wo("MenuContent.ScrollLock"),Kb=v.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...g}=t,b=io(En,n),y=Ss(En,n),w=Cs(n),C=GT(n),S=QW(n),[E,T]=v.useState(null),A=v.useRef(null),O=Se(e,A,b.onContentChange),M=v.useRef(0),V=v.useRef(""),N=v.useRef(0),k=v.useRef(null),_=v.useRef("right"),B=v.useRef(0),L=m?fs:v.Fragment,P=m?{as:sH,allowPinchZoom:!0}:void 0,G=H=>{const U=V.current+H,Q=S().filter(Y=>!Y.disabled),$=document.activeElement,q=Q.find(Y=>Y.ref.current===$)?.textValue,Z=Q.map(Y=>Y.textValue),X=yH(Z,U,q),te=Q.find(Y=>Y.textValue===X)?.ref.current;(function Y(J){V.current=J,window.clearTimeout(M.current),J!==""&&(M.current=window.setTimeout(()=>Y(""),1e3))})(U),te&&setTimeout(()=>te.focus())};v.useEffect(()=>()=>window.clearTimeout(M.current),[]),Bu();const j=v.useCallback(H=>_.current===k.current?.side&&wH(H,k.current?.area),[]);return h.jsx(oH,{scope:n,searchRef:V,onItemEnter:v.useCallback(H=>{j(H)&&H.preventDefault()},[j]),onItemLeave:v.useCallback(H=>{j(H)||(A.current?.focus(),T(null))},[j]),onTriggerLeave:v.useCallback(H=>{j(H)&&H.preventDefault()},[j]),pointerGraceTimerRef:N,onPointerGraceIntentChange:v.useCallback(H=>{k.current=H},[]),children:h.jsx(L,{...P,children:h.jsx(ds,{asChild:!0,trapped:o,onMountAutoFocus:se(i,H=>{H.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:p,children:h.jsx(Xb,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:T,onEntryFocus:se(l,H=>{y.isUsingKeyboardRef.current||H.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(gs,{role:"menu","aria-orientation":"vertical","data-state":lN(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:O,style:{outline:"none",...g.style},onKeyDown:se(g.onKeyDown,H=>{const Q=H.target.closest("[data-radix-menu-content]")===H.currentTarget,$=H.ctrlKey||H.altKey||H.metaKey,q=H.key.length===1;Q&&(H.key==="Tab"&&H.preventDefault(),!$&&q&&G(H.key));const Z=A.current;if(H.target!==Z||!ZW.includes(H.key))return;H.preventDefault();const te=S().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);BT.includes(H.key)&&te.reverse(),bH(te)}),onBlur:se(t.onBlur,H=>{H.currentTarget.contains(H.target)||(window.clearTimeout(M.current),V.current="")}),onPointerMove:se(t.onPointerMove,Ha(H=>{const U=H.target,Q=B.current!==H.clientX;if(H.currentTarget.contains(U)&&Q){const $=H.clientX>B.current?"right":"left";_.current=$,B.current=H.clientX}}))})})})})})})});qT.displayName=En;var lH="MenuGroup",Qb=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return h.jsx(he.div,{role:"group",...r,ref:e})});Qb.displayName=lH;var uH="MenuLabel",zT=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return h.jsx(he.div,{...r,ref:e})});zT.displayName=uH;var Zl="MenuItem",Pw="menu.itemSelect",lc=v.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...o}=t,i=v.useRef(null),a=Ss(Zl,t.__scopeMenu),s=Jb(Zl,t.__scopeMenu),l=Se(e,i),u=v.useRef(!1),d=()=>{const c=i.current;if(!n&&c){const f=new CustomEvent(Pw,{bubbles:!0,cancelable:!0});c.addEventListener(Pw,p=>r?.(p),{once:!0}),mS(c,f),f.defaultPrevented?u.current=!1:a.onClose()}};return h.jsx(XT,{...o,ref:l,disabled:n,onClick:se(t.onClick,d),onPointerDown:c=>{t.onPointerDown?.(c),u.current=!0},onPointerUp:se(t.onPointerUp,c=>{u.current||c.currentTarget?.click()}),onKeyDown:se(t.onKeyDown,c=>{const f=s.searchRef.current!=="";n||f&&c.key===" "||eg.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});lc.displayName=Zl;var XT=v.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=t,a=Jb(Zl,n),s=GT(n),l=v.useRef(null),u=Se(e,l),[d,c]=v.useState(!1),[f,p]=v.useState("");return v.useEffect(()=>{const m=l.current;m&&p((m.textContent??"").trim())},[i.children]),h.jsx(Wa.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:h.jsx(Yb,{asChild:!0,...s,focusable:!r,children:h.jsx(he.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:se(t.onPointerMove,Ha(m=>{r?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:se(t.onPointerLeave,Ha(m=>a.onItemLeave(m))),onFocus:se(t.onFocus,()=>c(!0)),onBlur:se(t.onBlur,()=>c(!1))})})})}),cH="MenuCheckboxItem",YT=v.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...o}=t;return h.jsx(QT,{scope:t.__scopeMenu,checked:n,children:h.jsx(lc,{role:"menuitemcheckbox","aria-checked":Jl(n)?"mixed":n,...o,ref:e,"data-state":nv(n),onSelect:se(o.onSelect,()=>r?.(Jl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});YT.displayName=cH;var UT="MenuRadioGroup",[dH,fH]=$o(UT,{value:void 0,onValueChange:()=>{}}),ZT=v.forwardRef((t,e)=>{const{value:n,onValueChange:r,...o}=t,i=It(r);return h.jsx(dH,{scope:t.__scopeMenu,value:n,onValueChange:i,children:h.jsx(Qb,{...o,ref:e})})});ZT.displayName=UT;var JT="MenuRadioItem",KT=v.forwardRef((t,e)=>{const{value:n,...r}=t,o=fH(JT,t.__scopeMenu),i=n===o.value;return h.jsx(QT,{scope:t.__scopeMenu,checked:i,children:h.jsx(lc,{role:"menuitemradio","aria-checked":i,...r,ref:e,"data-state":nv(i),onSelect:se(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});KT.displayName=JT;var ev="MenuItemIndicator",[QT,hH]=$o(ev,{checked:!1}),eN=v.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...o}=t,i=hH(ev,n);return h.jsx(pt,{present:r||Jl(i.checked)||i.checked===!0,children:h.jsx(he.span,{...o,ref:e,"data-state":nv(i.checked)})})});eN.displayName=ev;var pH="MenuSeparator",tN=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return h.jsx(he.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});tN.displayName=pH;var mH="MenuArrow",nN=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,o=Cs(n);return h.jsx(bs,{...o,...r,ref:e})});nN.displayName=mH;var tv="MenuSub",[gH,rN]=$o(tv),oN=t=>{const{__scopeMenu:e,children:n,open:r=!1,onOpenChange:o}=t,i=io(tv,e),a=Cs(e),[s,l]=v.useState(null),[u,d]=v.useState(null),c=It(o);return v.useEffect(()=>(i.open===!1&&c(!1),()=>c(!1)),[i.open,c]),h.jsx($i,{...a,children:h.jsx($T,{scope:e,open:r,onOpenChange:c,content:u,onContentChange:d,children:h.jsx(gH,{scope:e,contentId:ft(),triggerId:ft(),trigger:s,onTriggerChange:l,children:n})})})};oN.displayName=tv;var xa="MenuSubTrigger",iN=v.forwardRef((t,e)=>{const n=io(xa,t.__scopeMenu),r=Ss(xa,t.__scopeMenu),o=rN(xa,t.__scopeMenu),i=Jb(xa,t.__scopeMenu),a=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,u={__scopeMenu:t.__scopeMenu},d=v.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return v.useEffect(()=>d,[d]),v.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),l(null)}},[s,l]),h.jsx(Ub,{asChild:!0,...u,children:h.jsx(XT,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":lN(n.open),...t,ref:dr(e,o.onTriggerChange),onClick:c=>{t.onClick?.(c),!(t.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:se(t.onPointerMove,Ha(c=>{i.onItemEnter(c),!c.defaultPrevented&&!t.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:se(t.onPointerLeave,Ha(c=>{d();const f=n.content?.getBoundingClientRect();if(f){const p=n.content?.dataset.side,m=p==="right",g=m?-5:5,b=f[m?"left":"right"],y=f[m?"right":"left"];i.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:p}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(c),c.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:se(t.onKeyDown,c=>{const f=i.searchRef.current!=="";t.disabled||f&&c.key===" "||JW[r.dir].includes(c.key)&&(n.onOpenChange(!0),n.content?.focus(),c.preventDefault())})})})});iN.displayName=xa;var aN="MenuSubContent",sN=v.forwardRef((t,e)=>{const n=WT(En,t.__scopeMenu),{forceMount:r=n.forceMount,...o}=t,i=io(En,t.__scopeMenu),a=Ss(En,t.__scopeMenu),s=rN(aN,t.__scopeMenu),l=v.useRef(null),u=Se(e,l);return h.jsx(Wa.Provider,{scope:t.__scopeMenu,children:h.jsx(pt,{present:r||i.open,children:h.jsx(Wa.Slot,{scope:t.__scopeMenu,children:h.jsx(Kb,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{a.isUsingKeyboardRef.current&&l.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:se(t.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:se(t.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:se(t.onKeyDown,d=>{const c=d.currentTarget.contains(d.target),f=KW[a.dir].includes(d.key);c&&f&&(i.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});sN.displayName=aN;function lN(t){return t?"open":"closed"}function Jl(t){return t==="indeterminate"}function nv(t){return Jl(t)?"indeterminate":t?"checked":"unchecked"}function bH(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function vH(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function yH(t,e,n){const o=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=vH(t,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function xH(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],l=e[a],u=s.x,d=s.y,c=l.x,f=l.y;d>r!=f>r&&n<(c-u)*(r-d)/(f-d)+u&&(o=!o)}return o}function wH(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return xH(n,e)}function Ha(t){return e=>e.pointerType==="mouse"?t(e):void 0}var CH=VT,SH=Ub,EH=HT,IH=qT,AH=Qb,TH=zT,NH=lc,_H=YT,OH=ZT,RH=KT,PH=eN,MH=tN,kH=nN,DH=oN,jH=iN,LH=sN,uc="DropdownMenu",[BH]=At(uc,[FT]),Wt=FT(),[FH,uN]=BH(uc),cN=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,l=Wt(e),u=v.useRef(null),[d,c]=jt({prop:o,defaultProp:i??!1,onChange:a,caller:uc});return h.jsx(FH,{scope:e,triggerId:ft(),triggerRef:u,contentId:ft(),open:d,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(f=>!f),[c]),modal:s,children:h.jsx(CH,{...l,open:d,onOpenChange:c,dir:r,modal:s,children:n})})};cN.displayName=uc;var dN="DropdownMenuTrigger",fN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=t,i=uN(dN,n),a=Wt(n);return h.jsx(SH,{asChild:!0,...a,children:h.jsx(he.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:dr(e,i.triggerRef),onPointerDown:se(t.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:se(t.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});fN.displayName=dN;var GH="DropdownMenuPortal",hN=t=>{const{__scopeDropdownMenu:e,...n}=t,r=Wt(e);return h.jsx(EH,{...r,...n})};hN.displayName=GH;var pN="DropdownMenuContent",mN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=uN(pN,n),i=Wt(n),a=v.useRef(!1);return h.jsx(IH,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:e,onCloseAutoFocus:se(t.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:se(t.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!o.modal||d)&&(a.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mN.displayName=pN;var $H="DropdownMenuGroup",gN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(AH,{...o,...r,ref:e})});gN.displayName=$H;var VH="DropdownMenuLabel",bN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(TH,{...o,...r,ref:e})});bN.displayName=VH;var WH="DropdownMenuItem",vN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(NH,{...o,...r,ref:e})});vN.displayName=WH;var HH="DropdownMenuCheckboxItem",yN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(_H,{...o,...r,ref:e})});yN.displayName=HH;var qH="DropdownMenuRadioGroup",xN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(OH,{...o,...r,ref:e})});xN.displayName=qH;var zH="DropdownMenuRadioItem",wN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(RH,{...o,...r,ref:e})});wN.displayName=zH;var XH="DropdownMenuItemIndicator",CN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(PH,{...o,...r,ref:e})});CN.displayName=XH;var YH="DropdownMenuSeparator",SN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(MH,{...o,...r,ref:e})});SN.displayName=YH;var UH="DropdownMenuArrow",ZH=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(kH,{...o,...r,ref:e})});ZH.displayName=UH;var JH=t=>{const{__scopeDropdownMenu:e,children:n,open:r,onOpenChange:o,defaultOpen:i}=t,a=Wt(e),[s,l]=jt({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return h.jsx(DH,{...a,open:s,onOpenChange:l,children:n})},KH="DropdownMenuSubTrigger",EN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(jH,{...o,...r,ref:e})});EN.displayName=KH;var QH="DropdownMenuSubContent",IN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(LH,{...o,...r,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});IN.displayName=QH;var eq=cN,tq=fN,AN=hN,nq=mN,rq=gN,oq=bN,iq=vN,aq=yN,sq=xN,lq=wN,TN=CN,uq=SN,cq=JH,dq=EN,fq=IN;function NN({...t}){return h.jsx(eq,{"data-slot":"dropdown-menu",...t})}function hq({...t}){return h.jsx(AN,{"data-slot":"dropdown-menu-portal",...t})}function _N({...t}){return h.jsx(tq,{"data-slot":"dropdown-menu-trigger",...t})}function ON({className:t,sideOffset:e=4,...n}){return h.jsx(AN,{children:h.jsx(nq,{"data-slot":"dropdown-menu-content",sideOffset:e,className:D("ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:max-h-(--radix-dropdown-menu-content-available-height) ui:min-w-[8rem] ui:origin-(--radix-dropdown-menu-content-transform-origin) ui:overflow-x-hidden ui:overflow-y-auto ui:rounded-md ui:border ui:p-1 ui:shadow-md",t),...n})})}function pq({...t}){return h.jsx(rq,{"data-slot":"dropdown-menu-group",...t})}function mq({className:t,inset:e,variant:n="default",...r}){return h.jsx(iq,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":n,className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:data-[variant=destructive]:text-destructive ui:data-[variant=destructive]:focus:bg-destructive/10 ui:dark:data-[variant=destructive]:focus:bg-destructive/20 ui:data-[variant=destructive]:focus:text-destructive ui:data-[variant=destructive]:*:[svg]:!text-destructive ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:px-2 ui:py-1.5 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:data-[inset]:pl-8 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...r})}function tg({className:t,children:e,checked:n,...r}){return h.jsxs(aq,{"data-slot":"dropdown-menu-checkbox-item",className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-2 ui:pl-8 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),checked:n,...r,children:[h.jsx("span",{className:"ui:pointer-events-none ui:absolute ui:left-2 ui:flex size-3.5 ui:items-center ui:justify-center",children:h.jsx(TN,{children:h.jsx(Oa,{className:"ui:size-4"})})}),e]})}function gq({...t}){return h.jsx(sq,{"data-slot":"dropdown-menu-radio-group",...t})}function bq({className:t,children:e,...n}){return h.jsxs(lq,{"data-slot":"dropdown-menu-radio-item",className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-2 ui:pl-8 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...n,children:[h.jsx("span",{className:"ui:pointer-events-none ui:absolute ui:left-2 ui:flex size-3.5 ui:items-center ui:justify-center",children:h.jsx(TN,{children:h.jsx(DS,{className:"ui:size-2 ui:fill-current"})})}),e]})}function vq({className:t,inset:e,...n}){return h.jsx(oq,{"data-slot":"dropdown-menu-label","data-inset":e,className:D("ui:px-2 ui:py-1.5 ui:text-sm ui:font-medium ui:data-[inset]:pl-8",t),...n})}function yq({className:t,...e}){return h.jsx(uq,{"data-slot":"dropdown-menu-separator",className:D("ui:bg-border ui:-mx-1 ui:my-1 ui:h-px",t),...e})}function xq({className:t,...e}){return h.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:D("ui:text-muted-foreground ui:ml-auto ui:text-xs ui:tracking-widest",t),...e})}function wq({...t}){return h.jsx(cq,{"data-slot":"dropdown-menu-sub",...t})}function Cq({className:t,inset:e,children:n,...r}){return h.jsxs(dq,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:data-[state=open]:bg-accent ui:data-[state=open]:text-accent-foreground ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:px-2 ui:py-1.5 ui:text-sm ui:outline-hidden ui:select-none ui:data-[inset]:pl-8 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...r,children:[n,h.jsx(wu,{className:"ui:ml-auto ui:size-4"})]})}function Sq({className:t,...e}){return h.jsx(fq,{"data-slot":"dropdown-menu-sub-content",className:D("ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:min-w-[8rem] ui:origin-(--radix-dropdown-menu-content-transform-origin) ui:overflow-hidden ui:rounded-md ui:border ui:p-1 ui:shadow-lg",t),...e})}function Eq({className:t,...e}){return h.jsx("div",{"data-slot":"empty",className:D("ui:flex ui:min-w-0 ui:flex-1 ui:flex-col ui:items-center ui:justify-center ui:gap-6 ui:rounded-lg ui:border-dashed ui:p-6 ui:text-center ui:text-balance ui:md:p-12",t),...e})}function Iq({className:t,...e}){return h.jsx("div",{"data-slot":"empty-header",className:D("ui:flex ui:max-w-sm ui:flex-col ui:items-center ui:gap-2 ui:text-center",t),...e})}const Aq=Bi("ui:flex ui:shrink-0 ui:items-center ui:justify-center ui:mb-2 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0",{variants:{variant:{default:"ui:bg-transparent",icon:"ui:bg-muted ui:text-foreground ui:flex ui:size-10 ui:shrink-0 ui:items-center ui:justify-center ui:rounded-lg ui:[&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function Tq({className:t,variant:e="default",...n}){return h.jsx("div",{"data-slot":"empty-icon","data-variant":e,className:D(Aq({variant:e,className:t})),...n})}function Nq({className:t,...e}){return h.jsx("div",{"data-slot":"empty-title",className:D("ui:text-lg ui:font-medium ui:tracking-tight",t),...e})}function _q({className:t,...e}){return h.jsx("div",{"data-slot":"empty-description",className:D("ui:text-muted-foreground ui:[&>a:hover]:text-primary ui:text-sm/relaxed ui:[&>a]:underline ui:[&>a]:underline-offset-4",t),...e})}function Oq({className:t,...e}){return h.jsx("div",{"data-slot":"empty-content",className:D("ui:flex ui:w-full ui:max-w-sm ui:min-w-0 ui:flex-col ui:items-center ui:gap-4 ui:text-sm ui:text-balance",t),...e})}function RN({message:t,className:e}){return h.jsx("p",{className:D("ui:text-red-500 ui:text-xs ui:mt-2 ui:has-error",e),children:t})}const Rq=({name:t,formClassName:e,...n})=>{const r=rn();if(!r)throw new Error("FormCheckbox must be used within a FormProvider from react-hook-form");const{control:o}=r;return h.jsx(Yn,{control:o,name:t,render:({field:i})=>h.jsxs(In,{className:e,children:[h.jsx(hn,{children:h.jsx(RA,{...i,onCheckedChange:i.onChange,...n})}),h.jsx(Un,{})]})})};var PN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pq="VisuallyHidden",MN=v.forwardRef((t,e)=>h.jsx(he.span,{...t,ref:e,style:{...PN,...t.style}}));MN.displayName=Pq;var Mq=MN,[cc]=At("Tooltip",[xr]),dc=xr(),kN="TooltipProvider",kq=700,ng="tooltip.open",[Dq,rv]=cc(kN),DN=t=>{const{__scopeTooltip:e,delayDuration:n=kq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=t,a=v.useRef(!0),s=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),h.jsx(Dq,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:i})};DN.displayName=kN;var qa="Tooltip",[jq,Es]=cc(qa),jN=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=t,l=rv(qa,t.__scopeTooltip),u=dc(e),[d,c]=v.useState(null),f=ft(),p=v.useRef(0),m=a??l.disableHoverableContent,g=s??l.delayDuration,b=v.useRef(!1),[y,w]=jt({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(ng))):l.onClose(),i?.(A)},caller:qa}),C=v.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,w(!0)},[w]),E=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),T=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,w(!0),p.current=0},g)},[g,w]);return v.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx($i,{...u,children:h.jsx(jq,{scope:e,contentId:f,open:y,stateAttribute:C,trigger:d,onTriggerChange:c,onTriggerEnter:v.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:v.useCallback(()=>{m?E():(window.clearTimeout(p.current),p.current=0)},[E,m]),onOpen:S,onClose:E,disableHoverableContent:m,children:n})})};jN.displayName=qa;var rg="TooltipTrigger",LN=v.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,o=Es(rg,n),i=rv(rg,n),a=dc(n),s=v.useRef(null),l=Se(e,s,o.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),c=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),h.jsx(Vi,{asChild:!0,...a,children:h.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:se(t.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:se(t.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:se(t.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:se(t.onFocus,()=>{u.current||o.onOpen()}),onBlur:se(t.onBlur,o.onClose),onClick:se(t.onClick,o.onClose)})})});LN.displayName=rg;var ov="TooltipPortal",[Lq,Bq]=cc(ov,{forceMount:void 0}),BN=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:o}=t,i=Es(ov,e);return h.jsx(Lq,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};BN.displayName=ov;var Ni="TooltipContent",FN=v.forwardRef((t,e)=>{const n=Bq(Ni,t.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=t,a=Es(Ni,t.__scopeTooltip);return h.jsx(pt,{present:r||a.open,children:a.disableHoverableContent?h.jsx(GN,{side:o,...i,ref:e}):h.jsx(Fq,{side:o,...i,ref:e})})}),Fq=v.forwardRef((t,e)=>{const n=Es(Ni,t.__scopeTooltip),r=rv(Ni,t.__scopeTooltip),o=v.useRef(null),i=Se(e,o),[a,s]=v.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,f=v.useCallback(()=>{s(null),c(!1)},[c]),p=v.useCallback((m,g)=>{const b=m.currentTarget,y={x:m.clientX,y:m.clientY},w=Wq(y,b.getBoundingClientRect()),C=Hq(y,w),S=qq(g.getBoundingClientRect()),E=Xq([...C,...S]);s(E),c(!0)},[c]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&d){const m=b=>p(b,d),g=b=>p(b,l);return l.addEventListener("pointerleave",m),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",g)}}},[l,d,p,f]),v.useEffect(()=>{if(a){const m=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},w=l?.contains(b)||d?.contains(b),C=!zq(y,a);w?f():C&&(f(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,d,a,u,f]),h.jsx(GN,{...t,ref:i})}),[Gq,$q]=cc(qa,{isInside:!1}),Vq=qP("TooltipContent"),GN=v.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=t,l=Es(Ni,n),u=dc(n),{onClose:d}=l;return v.useEffect(()=>(document.addEventListener(ng,d),()=>document.removeEventListener(ng,d)),[d]),v.useEffect(()=>{if(l.trigger){const c=f=>{f.target?.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:h.jsxs(gs,{"data-state":l.stateAttribute,...u,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(Vq,{children:r}),h.jsx(Gq,{scope:n,isInside:!0,children:h.jsx(Mq,{id:l.contentId,role:"tooltip",children:o||r})})]})})});FN.displayName=Ni;var $N="TooltipArrow",VN=v.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,o=dc(n);return $q($N,n).isInside?null:h.jsx(bs,{...o,...r,ref:e})});VN.displayName=$N;function Wq(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Hq(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function qq(t){const{top:e,right:n,bottom:r,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:r},{x:o,y:r}]}function zq(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],l=e[a],u=s.x,d=s.y,c=l.x,f=l.y;d>r!=f>r&&n<(c-u)*(r-d)/(f-d)+u&&(o=!o)}return o}function Xq(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Yq(e)}function Yq(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const o=t[r];for(;e.length>=2;){const i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const o=t[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var Uq=DN,Zq=jN,Jq=LN,WN=BN,HN=FN,Kq=VN;function iv({delayDuration:t=0,...e}){return h.jsx(Uq,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function av({...t}){return h.jsx(iv,{children:h.jsx(Zq,{"data-slot":"tooltip",...t})})}function sv({...t}){return h.jsx(Jq,{"data-slot":"tooltip-trigger",...t})}function fc({className:t,sideOffset:e=0,children:n,...r}){return h.jsx(WN,{children:h.jsxs(HN,{"data-slot":"tooltip-content",sideOffset:e,className:D("ui:bg-foreground ui:ext-background ui:animate-in ui:fade-in-0 ui:zoom-in-95 ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=closed]:zoom-out-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:w-fit ui:origin-(--radix-tooltip-content-transform-origin) ui:rounded-md ui:px-3 ui:py-1.5 ui:text-xs ui:text-balance",t),...r,children:[n,h.jsx(Kq,{className:"ui:bg-foreground ui:fill-foreground ui:z-50 ui:size-2.5 ui:translate-y-[calc(-50%_-_2px)] ui:rotate-45 ui:rounded-[2px]"})]})})}const qN=v.forwardRef(({children:t,...e},n)=>h.jsx(WN,{children:h.jsx(fc,{ref:n,...e,children:t})}));qN.displayName=HN.displayName;const Hi=({trigger:t,content:e,asChild:n=!0,wrapTrigger:r=!0,triggerClassName:o="",contentClassName:i="ui:max-w-sm",disableContent:a=!1,isPortal:s=!1})=>a?t:h.jsxs(av,{children:[h.jsx(sv,{asChild:n,children:r?h.jsx("div",{className:D("ui:truncate",o),children:t}):t}),s?h.jsx(qN,{className:i,children:e}):h.jsx(fc,{className:i,children:e})]}),Qq=({name:t,label:e,triggerPlaceholder:n,inputPlaceholder:r,options:o=[],description:i,isMultiSelect:a=!1,emptyMessage:s,containerClassName:l,contentClassName:u,contentListClassName:d,avoidCollisions:c=!0,hasClearButton:f=!0,hasAllOption:p=!1,allOptionLabel:m="All",closeOnSelect:g=!1,onInputChange:b,isDisabled:y=!1,tooltipContent:w})=>{const C=rn();if(!C)throw new Error("FormCombobox must be used within a FormProvider from react-hook-form");const{control:S,setValue:E}=C,T=(O,M)=>{(Array.isArray(O)?O:[O])?.length===M.length?E(t,[],{shouldValidate:!0}):E(t,M.map(({value:N})=>N),{shouldValidate:!0})},A=(O,M)=>{if(a){const V=Array.isArray(O)?O:[O];V.includes(M.value)?E(t,V.filter(N=>N!==M.value),{shouldValidate:!0}):E(t,[...V,M.value],{shouldValidate:!0})}else E(t,M.value,{shouldValidate:!0})};return h.jsx(Yn,{control:S,name:t,render:({field:O})=>h.jsxs(In,{className:D("ui:flex ui:flex-col",l),children:[e&&h.jsxs(pr,{className:D({"ui:flex ui:items-center ui:gap-2":f&&O.value||!!w}),children:[e,f&&(Array.isArray(O.value)?O.value.length>0:O.value)&&h.jsx(Su,{className:"ui:cursor-pointer",onClick:M=>{M.preventDefault(),E(t,a?[]:"",{shouldValidate:!0})},size:"16",color:"red"}),w&&h.jsx(Hi,{triggerClassName:"ui:order-last",content:w,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:cursor-pointer ui:text-segmentify-gray-500"})})]}),a?h.jsx(Zm,{value:O.value,onInputChange:b,handleSelectItem:A,handleSelectAll:T,closeOnSelect:g,options:o,triggerPlaceholder:n,inputPlaceholder:r,emptyMessage:s,contentClassName:u,contentListClassName:d,isDisabled:y,isMultiSelect:!0,hasAllOption:p,allOptionLabel:m,avoidCollisions:c,isFormControlWrapper:!0}):h.jsx(Zm,{value:O.value,onInputChange:b,handleSelectItem:A,closeOnSelect:g,options:o,triggerPlaceholder:n,inputPlaceholder:r,emptyMessage:s,contentClassName:u,contentListClassName:d,isDisabled:y,avoidCollisions:c,isFormControlWrapper:!0}),i&&h.jsx(wr,{children:i}),h.jsx(Un,{})]})})},ez=({name:t,disabledCondition:e=!1,label:n,placeholder:r,description:o,containerClassName:i,triggerClassName:a,showErrorPlaceholder:s})=>{const l=rn();if(!l)throw new Error("FormDatePicker must be used within a FormProvider from react-hook-form");const{control:u}=l;return h.jsx(Yn,{control:u,name:t,render:({field:d})=>h.jsxs(In,{className:D("ui:flex ui:flex-col",i),children:[h.jsx(fr,{children:h.jsx(Yt,{condition:!!n,children:h.jsx(pr,{children:n})})}),h.jsxs(rc,{children:[h.jsx(oc,{asChild:!0,children:h.jsx(hn,{children:h.jsxs(en,{variant:"outline",className:D("ui:w-[240px] ui:pl-3 ui:text-left ui:font-normal",!d.value&&"ui:text-muted-foreground",a),children:[d.value?Ln(new Date(d.value),"dd/MM/yyyy"):h.jsx("span",{children:r}),h.jsx(PS,{className:"ui:ml-auto ui:h-4 ui:w-4 ui:opacity-50"})]})})}),h.jsx(ic,{className:"ui:w-auto ui:p-0",align:"start",children:h.jsx(nb,{mode:"single",selected:d.value?new Date(d.value):void 0,onSelect:c=>{c&&d.onChange(c)},disabled:e,initialFocus:!0})})]}),h.jsx(fr,{children:h.jsx(Yt,{condition:!!o,children:h.jsx(wr,{children:o})})}),h.jsx(Un,{showErrorPlaceholder:s})]})})};function tz(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const nz=t=>{switch(t){case"success":return iz;case"info":return sz;case"warning":return az;case"error":return lz;default:return null}},rz=Array(12).fill(0),oz=({visible:t,className:e})=>I.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},I.createElement("div",{className:"sonner-spinner"},rz.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),iz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),az=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),sz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),lz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),uz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),cz=()=>{const[t,e]=I.useState(document.hidden);return I.useEffect(()=>{const n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t};let og=1;class dz{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:r,...o}=e,i=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:og++,a=this.toasts.find(l=>l.id===i),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...e,id:i,title:r}),{...l,...e,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let i=r!==void 0,a;const s=o.then(async u=>{if(a=["resolve",u],I.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(hz(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,m=typeof c=="object"&&!I.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...m})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!I.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...m})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!I.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...m})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof d=="object"&&!I.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>a[0]==="reject"?d(a[1]):u(a[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,n)=>{const r=n?.id||og++;return this.create({jsx:e(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Qt=new dz,fz=(t,e)=>{const n=e?.id||og++;return Qt.addToast({title:t,...e,id:n}),n},hz=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",pz=fz,mz=()=>Qt.toasts,gz=()=>Qt.getActiveToasts(),bz=Object.assign(pz,{success:Qt.success,info:Qt.info,warning:Qt.warning,error:Qt.error,custom:Qt.custom,message:Qt.message,promise:Qt.promise,dismiss:Qt.dismiss,loading:Qt.loading},{getHistory:mz,getToasts:gz});tz("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ll(t){return t.label!==void 0}const vz=3,yz="24px",xz="16px",Mw=4e3,wz=356,Cz=14,Sz=45,Ez=200;function tr(...t){return t.filter(Boolean).join(" ")}function Iz(t){const[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}const Az=t=>{var e,n,r,o,i,a,s,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:m,visibleToasts:g,heights:b,index:y,toasts:w,expanded:C,removeToast:S,defaultRichColors:E,closeButton:T,style:A,cancelButtonStyle:O,actionButtonStyle:M,className:V="",descriptionClassName:N="",duration:k,position:_,gap:B,expandByDefault:L,classNames:P,icons:G,closeButtonAriaLabel:j="Close toast"}=t,[H,U]=I.useState(null),[Q,$]=I.useState(null),[q,Z]=I.useState(!1),[X,te]=I.useState(!1),[Y,J]=I.useState(!1),[ie,oe]=I.useState(!1),[re,z]=I.useState(!1),[ue,W]=I.useState(0),[le,Ae]=I.useState(0),Ne=I.useRef(c.duration||k||Mw),Ve=I.useRef(null),Ie=I.useRef(null),Re=y===0,at=y+1<=g,Me=c.type,Ge=c.dismissible!==!1,We=c.className||"",Qe=c.descriptionClassName||"",st=I.useMemo(()=>b.findIndex(ae=>ae.toastId===c.id)||0,[b,c.id]),it=I.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:T},[c.closeButton,T]),mt=I.useMemo(()=>c.duration||k||Mw,[c.duration,k]),bt=I.useRef(0),Le=I.useRef(0),_t=I.useRef(0),tt=I.useRef(null),[lt,Ot]=_.split("-"),Rt=I.useMemo(()=>b.reduce((ae,_e,ke)=>ke>=st?ae:ae+_e.height,0),[b,st]),on=cz(),Ht=c.invert||d,Pt=Me==="loading";Le.current=I.useMemo(()=>st*B+Rt,[st,Rt]),I.useEffect(()=>{Ne.current=mt},[mt]),I.useEffect(()=>{Z(!0)},[]),I.useEffect(()=>{const ae=Ie.current;if(ae){const _e=ae.getBoundingClientRect().height;return Ae(_e),m(ke=>[{toastId:c.id,height:_e,position:c.position},...ke]),()=>m(ke=>ke.filter(De=>De.toastId!==c.id))}},[m,c.id]),I.useLayoutEffect(()=>{if(!q)return;const ae=Ie.current,_e=ae.style.height;ae.style.height="auto";const ke=ae.getBoundingClientRect().height;ae.style.height=_e,Ae(ke),m(De=>De.find(je=>je.toastId===c.id)?De.map(je=>je.toastId===c.id?{...je,height:ke}:je):[{toastId:c.id,height:ke,position:c.position},...De])},[q,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const ne=I.useCallback(()=>{te(!0),W(Le.current),m(ae=>ae.filter(_e=>_e.toastId!==c.id)),setTimeout(()=>{S(c)},Ez)},[c,S,m,Le]);I.useEffect(()=>{if(c.promise&&Me==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return C||p||on?(()=>{if(_t.current<bt.current){const De=new Date().getTime()-bt.current;Ne.current=Ne.current-De}_t.current=new Date().getTime()})():Ne.current!==1/0&&(bt.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),ne()},Ne.current)),()=>clearTimeout(ae)},[C,p,c,Me,on,ne]),I.useEffect(()=>{c.delete&&(ne(),c.onDismiss==null||c.onDismiss.call(c,c))},[ne,c.delete]);function fe(){var ae;if(G?.loading){var _e;return I.createElement("div",{className:tr(P?.loader,c==null||(_e=c.classNames)==null?void 0:_e.loader,"sonner-loader"),"data-visible":Me==="loading"},G.loading)}return I.createElement(oz,{className:tr(P?.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Me==="loading"})}const ce=c.icon||G?.[Me]||nz(Me);var de,Te;return I.createElement("li",{tabIndex:0,ref:Ie,className:tr(V,We,P?.toast,c==null||(e=c.classNames)==null?void 0:e.toast,P?.default,P?.[Me],c==null||(n=c.classNames)==null?void 0:n[Me]),"data-sonner-toast":"","data-rich-colors":(de=c.richColors)!=null?de:E,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":q,"data-promise":!!c.promise,"data-swiped":re,"data-removed":X,"data-visible":at,"data-y-position":lt,"data-x-position":Ot,"data-index":y,"data-front":Re,"data-swiping":Y,"data-dismissible":Ge,"data-type":Me,"data-invert":Ht,"data-swipe-out":ie,"data-swipe-direction":Q,"data-expanded":!!(C||L&&q),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${X?ue:Le.current}px`,"--initial-height":L?"auto":`${le}px`,...A,...c.style},onDragEnd:()=>{J(!1),U(null),tt.current=null},onPointerDown:ae=>{ae.button!==2&&(Pt||!Ge||(Ve.current=new Date,W(Le.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(J(!0),tt.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,_e,ke;if(ie||!Ge)return;tt.current=null;const De=Number(((ae=Ie.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nt=Number(((_e=Ie.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((ke=Ve.current)==null?void 0:ke.getTime()),Be=H==="x"?De:nt,an=Math.abs(Be)/je;if(Math.abs(Be)>=Sz||an>.11){W(Le.current),c.onDismiss==null||c.onDismiss.call(c,c),$(H==="x"?De>0?"right":"left":nt>0?"down":"up"),ne(),oe(!0);return}else{var Tt,qt;(Tt=Ie.current)==null||Tt.style.setProperty("--swipe-amount-x","0px"),(qt=Ie.current)==null||qt.style.setProperty("--swipe-amount-y","0px")}z(!1),J(!1),U(null)},onPointerMove:ae=>{var _e,ke,De;if(!tt.current||!Ge||((_e=window.getSelection())==null?void 0:_e.toString().length)>0)return;const je=ae.clientY-tt.current.y,Be=ae.clientX-tt.current.x;var an;const Tt=(an=t.swipeDirections)!=null?an:Iz(_);!H&&(Math.abs(Be)>1||Math.abs(je)>1)&&U(Math.abs(Be)>Math.abs(je)?"x":"y");let qt={x:0,y:0};const co=sn=>1/(1.5+Math.abs(sn)/20);if(H==="y"){if(Tt.includes("top")||Tt.includes("bottom"))if(Tt.includes("top")&&je<0||Tt.includes("bottom")&&je>0)qt.y=je;else{const sn=je*co(je);qt.y=Math.abs(sn)<Math.abs(je)?sn:je}}else if(H==="x"&&(Tt.includes("left")||Tt.includes("right")))if(Tt.includes("left")&&Be<0||Tt.includes("right")&&Be>0)qt.x=Be;else{const sn=Be*co(Be);qt.x=Math.abs(sn)<Math.abs(Be)?sn:Be}(Math.abs(qt.x)>0||Math.abs(qt.y)>0)&&z(!0),(ke=Ie.current)==null||ke.style.setProperty("--swipe-amount-x",`${qt.x}px`),(De=Ie.current)==null||De.style.setProperty("--swipe-amount-y",`${qt.y}px`)}},it&&!c.jsx&&Me!=="loading"?I.createElement("button",{"aria-label":j,"data-disabled":Pt,"data-close-button":!0,onClick:Pt||!Ge?()=>{}:()=>{ne(),c.onDismiss==null||c.onDismiss.call(c,c)},className:tr(P?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Te=G?.close)!=null?Te:uz):null,(Me||c.icon||c.promise)&&c.icon!==null&&(G?.[Me]!==null||c.icon)?I.createElement("div",{"data-icon":"",className:tr(P?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||fe():null,c.type!=="loading"?ce:null):null,I.createElement("div",{"data-content":"",className:tr(P?.content,c==null||(i=c.classNames)==null?void 0:i.content)},I.createElement("div",{"data-title":"",className:tr(P?.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?I.createElement("div",{"data-description":"",className:tr(N,Qe,P?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),I.isValidElement(c.cancel)?c.cancel:c.cancel&&ll(c.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||O,onClick:ae=>{ll(c.cancel)&&Ge&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),ne())},className:tr(P?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,I.isValidElement(c.action)?c.action:c.action&&ll(c.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||M,onClick:ae=>{ll(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&ne())},className:tr(P?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function kw(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function Tz(t,e){const n={};return[t,e].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?xz:yz;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const Nz=I.forwardRef(function(e,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:p,duration:m,style:g,visibleToasts:b=vz,toastOptions:y,dir:w=kw(),gap:C=Cz,icons:S,containerAriaLabel:E="Notifications"}=e,[T,A]=I.useState([]),O=I.useMemo(()=>r?T.filter(q=>q.toasterId===r):T.filter(q=>!q.toasterId),[T,r]),M=I.useMemo(()=>Array.from(new Set([i].concat(O.filter(q=>q.position).map(q=>q.position)))),[O,i]),[V,N]=I.useState([]),[k,_]=I.useState(!1),[B,L]=I.useState(!1),[P,G]=I.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=I.useRef(null),H=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=I.useRef(null),Q=I.useRef(!1),$=I.useCallback(q=>{A(Z=>{var X;return(X=Z.find(te=>te.id===q.id))!=null&&X.delete||Qt.dismiss(q.id),Z.filter(({id:te})=>te!==q.id)})},[]);return I.useEffect(()=>Qt.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{A(Z=>Z.map(X=>X.id===q.id?{...X,delete:!0}:X))});return}setTimeout(()=>{gu.flushSync(()=>{A(Z=>{const X=Z.findIndex(te=>te.id===q.id);return X!==-1?[...Z.slice(0,X),{...Z[X],...q},...Z.slice(X+1)]:[q,...Z]})})})}),[T]),I.useEffect(()=>{if(f!=="system"){G(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:Z})=>{G(Z?"dark":"light")})}catch{q.addListener(({matches:X})=>{try{G(X?"dark":"light")}catch(te){console.error(te)}})}},[f]),I.useEffect(()=>{T.length<=1&&_(!1)},[T]),I.useEffect(()=>{const q=Z=>{var X;if(a.every(J=>Z[J]||Z.code===J)){var Y;_(!0),(Y=j.current)==null||Y.focus()}Z.code==="Escape"&&(document.activeElement===j.current||(X=j.current)!=null&&X.contains(document.activeElement))&&_(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[a]),I.useEffect(()=>{if(j.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,Q.current=!1)}},[j.current]),I.createElement("section",{ref:n,"aria-label":`${E} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((q,Z)=>{var X;const[te,Y]=q.split("-");return O.length?I.createElement("ol",{key:q,dir:w==="auto"?kw():w,tabIndex:-1,ref:j,className:u,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":te,"data-x-position":Y,style:{"--front-toast-height":`${((X=V[0])==null?void 0:X.height)||0}px`,"--width":`${wz}px`,"--gap":`${C}px`,...g,...Tz(d,c)},onBlur:J=>{Q.current&&!J.currentTarget.contains(J.relatedTarget)&&(Q.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||Q.current||(Q.current=!0,U.current=J.relatedTarget)},onMouseEnter:()=>_(!0),onMouseMove:()=>_(!0),onMouseLeave:()=>{B||_(!1)},onDragEnd:()=>_(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},O.filter(J=>!J.position&&Z===0||J.position===q).map((J,ie)=>{var oe,re;return I.createElement(Az,{key:J.id,icons:S,index:ie,toast:J,defaultRichColors:p,duration:(oe=y?.duration)!=null?oe:m,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:b,closeButton:(re=y?.closeButton)!=null?re:l,interacting:B,position:q,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:$,toasts:O.filter(z=>z.position==J.position),heights:V.filter(z=>z.position==J.position),setHeights:N,expandByDefault:s,gap:C,expanded:k,swipeDirections:e.swipeDirections})})):null}))}),_z=t=>{if(t===0)return"0 Bytes";const e=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,r)).toFixed(2))+" "+n[r]},Oz=t=>t.type.startsWith("image/"),Rz=({uploadedFile:t,onRemove:e})=>h.jsx("div",{className:"ui:p-3 ui:bg-muted/50 ui:border ui:border-border ui:rounded-lg",children:h.jsxs("div",{className:"ui:flex ui:items-center ui:justify-between ui:gap-3",children:[h.jsxs("div",{className:"ui:flex ui:items-center ui:gap-3 ui:min-w-0",children:[Oz(t.file)?h.jsx("img",{src:t.url,alt:t.file.name,className:"ui:shrink-0 ui:w-10 ui:h-10 ui:object-cover ui:rounded-md"}):h.jsx("div",{className:"ui:shrink-0 ui:p-2 ui:bg-primary/10 ui:rounded-md",children:h.jsx(eM,{size:20,className:"ui:text-primary"})}),h.jsxs("div",{className:"ui:min-w-0",children:[h.jsx("p",{className:"ui:text-sm ui:font-medium ui:text-foreground ui:truncate",children:t.file.name}),h.jsx("p",{className:"ui:text-xs ui:text-muted-foreground",children:_z(t.file.size)})]})]}),h.jsx(Ug,{variant:"ghost",size:"sm",isIconOnly:!0,prefix:!0,onClick:e,icon:h.jsx(Su,{size:16}),className:D("ui:shrink-0 ui:text-muted-foreground","ui:hover:text-destructive ui:hover:bg-destructive/10")})]})}),zN=({name:t,label:e,uploadButtonLabel:n="Upload File",description:r,accept:o="*",disabled:i=!1,multiple:a=!1,containerClassName:s,tooltipContent:l,hasRequiredIndicator:u=!1,onUpload:d})=>{const c=rn();if(!c)throw new Error("FormFileUpload must be used within a FormProvider from react-hook-form");const{control:f}=c,p=I.useRef(null),[m,g]=I.useState(!1),b=async(w,C,S)=>{const E=w.target.files;if(E?.length){g(!0);try{if(a){const T=Array.from(E),A=[];for(const M of T){const V=d?await d(M):URL.createObjectURL(M);A.push({file:M,url:V})}const O=Array.isArray(S)?S:[];C([...O,...A])}else{const T=E[0],A=d?await d(T):URL.createObjectURL(T);C({file:T,url:A})}}catch(T){const A=T instanceof Error?T.message:"Upload failed";bz.error(A)}finally{g(!1),p.current&&(p.current.value="")}}},y=(w,C,S)=>{if(a&&Array.isArray(C)&&S){const E=C.filter(T=>T!==S);w(E.length>0?E:null)}else w(null);p.current&&(p.current.value="")};return h.jsx(Yn,{control:f,name:t,render:({field:w})=>{const C=w.value,S=a?Array.isArray(C)?C:[]:C&&"file"in C?[C]:[];return h.jsxs(In,{className:D("ui:w-full",s),children:[e&&h.jsxs(pr,{className:D({"ui:flex ui:items-center ui:gap-2":!!l}),children:[e,u&&h.jsx("span",{children:"*"}),l&&h.jsx(Hi,{content:l,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:text-muted-foreground ui:cursor-pointer"})})]}),h.jsx(hn,{children:h.jsxs("div",{className:"ui:space-y-3",children:[h.jsxs("div",{className:"ui:relative ui:inline-block",children:[h.jsx("input",{ref:p,type:"file",accept:o,multiple:a,onChange:E=>b(E,w.onChange,C),disabled:i||m,className:D("ui:absolute ui:inset-0 ui:w-full ui:h-full ui:opacity-0 ui:cursor-pointer","ui:disabled:cursor-not-allowed")}),h.jsx(Ug,{variant:"outline",label:m?"Uploading...":n,prefix:!0,icon:m?h.jsx(Cu,{size:16,className:"ui:animate-spin"}):h.jsx(fM,{size:16}),disabled:i||m})]}),S.length>0&&h.jsx("div",{className:"ui:space-y-2",children:S.map((E,T)=>h.jsx(Rz,{uploadedFile:E,onRemove:()=>y(w.onChange,C,E)},`${E.file.name}-${E.file.size}-${T}`))})]})}),h.jsx(Un,{}),r&&h.jsx(wr,{children:r})]})}})};zN.displayName="FormFileUpload";const lv=I.forwardRef(({name:t,label:e,labelVariant:n,type:r,value:o,onChange:i,description:a="",placeholder:s,className:l,inputClassName:u,isReadOnly:d=!1,hasRequiredIndicator:c=!1,...f},p)=>h.jsxs("article",{className:l,children:[e&&h.jsxs(Tn,{variant:n,className:"ui:mb-2",children:[e,c&&h.jsx("span",{children:"*"})]}),h.jsx(sc,{ref:p,"data-test-id":t,placeholder:s,value:o,type:r,onChange:i,className:D({"ui:pointer-events-none ui:opacity-30":d},u),...f}),a&&h.jsx(Ju,{description:a})]})),Pz=({label:t,containerClassName:e,name:n,description:r,placeholder:o="",tooltipContent:i,hasRequiredIndicator:a=!1,control:s,...l})=>{const u=rn(),d=s||u?.control;if(!d)throw new Error("FormInput must be used within a FormProvider or receive a control prop");return h.jsx(Yn,{control:d,name:n,render:({field:c})=>h.jsxs(In,{className:D("ui:w-full",e),children:[h.jsxs(pr,{className:i?"ui:flex ui:items-center ui:gap-2":void 0,children:[t,a&&h.jsx("span",{children:"*"}),i&&h.jsx(Hi,{content:i,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:cursor-pointer ui:text-segmentify-gray-500"})})]}),h.jsx(hn,{children:h.jsx(lv,{...c,...l,placeholder:o})}),r&&h.jsx(wr,{children:r}),h.jsx(Un,{})]})})},Mz=({label:t,name:e,containerClassName:n,description:r,placeholder:o,tooltipContent:i,hasRequiredIndicator:a=!1,...s})=>{const l=rn();if(!l)throw new Error("FormPassword must be used within a FormProvider from react-hook-form");const{control:u}=l,[d,c]=I.useState(!1),f=()=>{c(p=>!p)};return h.jsx(Yn,{control:u,name:e,render:({field:p})=>h.jsxs(In,{className:D("ui:w-full",n),children:[t&&h.jsxs(pr,{className:D({"ui:flex ui:items-center ui:gap-2":!!i}),children:[t,a&&h.jsx("span",{children:"*"}),i&&h.jsx(Hi,{content:i,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:cursor-pointer ui:text-segmentify-gray-500"})})]}),h.jsx(hn,{children:h.jsxs("div",{className:"ui:relative",children:[h.jsx(lv,{...p,...s,type:d?"text":"password",placeholder:o,hasRequiredIndicator:a,inputClassName:"pr-8"}),h.jsx("button",{type:"button",onClick:f,className:"ui:absolute ui:right-3 ui:top-1/2 ui:-translate-y-1/2 ui:text-muted-foreground ui:hover:text-foreground ui:transition-colors",tabIndex:-1,children:d?h.jsx(Z2,{size:16,className:"ui:cursor-pointer"}):h.jsx(K2,{size:16,className:"ui:cursor-pointer"})})]})}),r&&h.jsx(wr,{children:r}),h.jsx(Un,{})]})})};var uv="Radio",[kz,XN]=At(uv),[Dz,jz]=kz(uv),YN=v.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:u,...d}=t,[c,f]=v.useState(null),p=Se(e,b=>f(b)),m=v.useRef(!1),g=c?u||!!c.closest("form"):!0;return h.jsxs(Dz,{scope:n,checked:o,disabled:a,children:[h.jsx(he.button,{type:"button",role:"radio","aria-checked":o,"data-state":KN(o),"data-disabled":a?"":void 0,disabled:a,value:s,...d,ref:p,onClick:se(t.onClick,b=>{o||l?.(),g&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})}),g&&h.jsx(JN,{control:c,bubbles:!m.current,name:r,value:s,checked:o,required:i,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});YN.displayName=uv;var UN="RadioIndicator",ZN=v.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=jz(UN,n);return h.jsx(pt,{present:r||i.checked,children:h.jsx(he.span,{"data-state":KN(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e})})});ZN.displayName=UN;var Lz="RadioBubbleInput",JN=v.forwardRef(({__scopeRadio:t,control:e,checked:n,bubbles:r=!0,...o},i)=>{const a=v.useRef(null),s=Se(a,i),l=us(n),u=cs(e);return v.useEffect(()=>{const d=a.current;if(!d)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[l,n,r]),h.jsx(he.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});JN.displayName=Lz;function KN(t){return t?"checked":"unchecked"}var Bz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],hc="RadioGroup",[Fz]=At(hc,[Wi,XN]),QN=Wi(),e_=XN(),[Gz,$z]=Fz(hc),t_=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:d=!0,onValueChange:c,...f}=t,p=QN(n),m=to(u),[g,b]=jt({prop:i,defaultProp:o??null,onChange:c,caller:hc});return h.jsx(Gz,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:b,children:h.jsx(Xb,{asChild:!0,...p,orientation:l,dir:m,loop:d,children:h.jsx(he.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m,...f,ref:e})})})});t_.displayName=hc;var n_="RadioGroupItem",r_=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...o}=t,i=$z(n_,n),a=i.disabled||r,s=QN(n),l=e_(n),u=v.useRef(null),d=Se(e,u),c=i.value===o.value,f=v.useRef(!1);return v.useEffect(()=>{const p=g=>{Bz.includes(g.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),h.jsx(Yb,{asChild:!0,...s,focusable:!a,active:c,children:h.jsx(YN,{disabled:a,required:i.required,checked:c,...l,...o,name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:se(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:se(o.onFocus,()=>{f.current&&u.current?.click()})})})});r_.displayName=n_;var Vz="RadioGroupIndicator",o_=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=e_(n);return h.jsx(ZN,{...o,...r,ref:e})});o_.displayName=Vz;var Wz=t_,Hz=r_,qz=o_;function i_({className:t,...e}){return h.jsx(Wz,{"data-slot":"radio-group",className:D("ui:grid ui:gap-3",t),...e})}function a_({className:t,...e}){return h.jsx(Hz,{"data-slot":"radio-group-item",className:D("ui:p-0! ui:aspect-square ui:h-4 ui:w-4 ui:rounded-full ui:border ui:border-solid ui:border-primary ui:text-primary ui:bg-transparent ui:hover:bg-transparent ui:ring-offset-background ui:focus:outline-none ui:focus-visible:ring-2 ui:focus-visible:ring-ring ui:focus-visible:ring-offset-2 ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:transition-none",t),...e,children:h.jsx(qz,{"data-slot":"radio-group-indicator",className:"ui:relative ui:flex ui:items-center ui:justify-center",children:h.jsx(DS,{className:"ui:fill-primary ui:absolute ui:top-1/2 ui:left-1/2 ui:size-2 ui:-translate-x-1/2 ui:-translate-y-1/2"})})})}const zz=({name:t,label:e,items:n,containerClassName:r,itemClassName:o,itemLabelClassName:i,selectedClassName:a,description:s})=>{const l=rn();if(!l)throw new Error("FormRadio must be used within a FormProvider from react-hook-form");const{control:u}=l;return h.jsx(Yn,{control:u,name:t,render:({field:d})=>h.jsxs(In,{className:D("ui:space-y-3",r),children:[e&&h.jsx(pr,{children:e}),h.jsx(hn,{children:h.jsx(i_,{onValueChange:d.onChange,defaultValue:d.value,className:"ui:flex ui:flex-col ui:space-y-1",children:n.map(c=>h.jsxs(In,{className:D("ui:flex ui:items-center ui:space-y-0",o,d.value===c.value&&a),children:[h.jsx(hn,{children:h.jsx(a_,{value:c.value})}),h.jsx(pr,{className:D("ui:font-normal",i),children:c.label})]},c.value))})}),h.jsx(Un,{}),s&&h.jsx(wr,{children:s})]})})};function za(t,[e,n]){return Math.min(n,Math.max(e,t))}var s_=["PageUp","PageDown"],l_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],u_={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},qi="Slider",[ig,Xz,Yz]=ns(qi),[c_]=At(qi,[Yz]),[Uz,pc]=c_(qi),d_=v.forwardRef((t,e)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:d,onValueChange:c=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...g}=t,b=v.useRef(new Set),y=v.useRef(0),C=a==="horizontal"?Zz:Jz,[S=[],E]=jt({prop:d,defaultProp:u,onChange:N=>{[...b.current][y.current]?.focus(),c(N)}}),T=v.useRef(S);function A(N){const k=n6(S,N);V(N,k)}function O(N){V(N,y.current)}function M(){const N=T.current[y.current];S[y.current]!==N&&f(S)}function V(N,k,{commit:_}={commit:!1}){const B=a6(i),L=s6(Math.round((N-r)/i)*i+r,B),P=za(L,[r,o]);E((G=[])=>{const j=e6(G,P,k);if(i6(j,l*i)){y.current=j.indexOf(P);const H=String(j)!==String(G);return H&&_&&f(j),H?j:G}else return G})}return h.jsx(Uz,{scope:t.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:S,orientation:a,form:m,children:h.jsx(ig.Provider,{scope:t.__scopeSlider,children:h.jsx(ig.Slot,{scope:t.__scopeSlider,children:h.jsx(C,{"aria-disabled":s,"data-disabled":s?"":void 0,...g,ref:e,onPointerDown:se(g.onPointerDown,()=>{s||(T.current=S)}),min:r,max:o,inverted:p,onSlideStart:s?void 0:A,onSlideMove:s?void 0:O,onSlideEnd:s?void 0:M,onHomeKeyDown:()=>!s&&V(r,0,{commit:!0}),onEndKeyDown:()=>!s&&V(o,S.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:k})=>{if(!s){const L=s_.includes(N.key)||N.shiftKey&&l_.includes(N.key)?10:1,P=y.current,G=S[P],j=i*L*k;V(G+j,P,{commit:!0})}}})})})})});d_.displayName=qi;var[f_,h_]=c_(qi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Zz=v.forwardRef((t,e)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...d}=t,[c,f]=v.useState(null),p=Se(e,C=>f(C)),m=v.useRef(void 0),g=to(o),b=g==="ltr",y=b&&!i||!b&&i;function w(C){const S=m.current||c.getBoundingClientRect(),E=[0,S.width],A=cv(E,y?[n,r]:[r,n]);return m.current=S,A(C-S.left)}return h.jsx(f_,{scope:t.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:h.jsx(p_,{dir:g,"data-orientation":"horizontal",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const S=w(C.clientX);a?.(S)},onSlideMove:C=>{const S=w(C.clientX);s?.(S)},onSlideEnd:()=>{m.current=void 0,l?.()},onStepKeyDown:C=>{const E=u_[y?"from-left":"from-right"].includes(C.key);u?.({event:C,direction:E?-1:1})}})})}),Jz=v.forwardRef((t,e)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...u}=t,d=v.useRef(null),c=Se(e,d),f=v.useRef(void 0),p=!o;function m(g){const b=f.current||d.current.getBoundingClientRect(),y=[0,b.height],C=cv(y,p?[r,n]:[n,r]);return f.current=b,C(g-b.top)}return h.jsx(f_,{scope:t.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:h.jsx(p_,{"data-orientation":"vertical",...u,ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=m(g.clientY);i?.(b)},onSlideMove:g=>{const b=m(g.clientY);a?.(b)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:g=>{const y=u_[p?"from-bottom":"from-top"].includes(g.key);l?.({event:g,direction:y?-1:1})}})})}),p_=v.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...u}=t,d=pc(qi,n);return h.jsx(he.span,{...u,ref:e,onKeyDown:se(t.onKeyDown,c=>{c.key==="Home"?(a(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):s_.concat(l_).includes(c.key)&&(l(c),c.preventDefault())}),onPointerDown:se(t.onPointerDown,c=>{const f=c.target;f.setPointerCapture(c.pointerId),c.preventDefault(),d.thumbs.has(f)?f.focus():r(c)}),onPointerMove:se(t.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:se(t.onPointerUp,c=>{const f=c.target;f.hasPointerCapture(c.pointerId)&&(f.releasePointerCapture(c.pointerId),i(c))})})}),m_="SliderTrack",g_=v.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,o=pc(m_,n);return h.jsx(he.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:e})});g_.displayName=m_;var ag="SliderRange",b_=v.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,o=pc(ag,n),i=h_(ag,n),a=v.useRef(null),s=Se(e,a),l=o.values.length,u=o.values.map(f=>x_(f,o.min,o.max)),d=l>1?Math.min(...u):0,c=100-Math.max(...u);return h.jsx(he.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...t.style,[i.startEdge]:d+"%",[i.endEdge]:c+"%"}})});b_.displayName=ag;var sg="SliderThumb",v_=v.forwardRef((t,e)=>{const n=Xz(t.__scopeSlider),[r,o]=v.useState(null),i=Se(e,s=>o(s)),a=v.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return h.jsx(Kz,{...t,ref:i,index:a})}),Kz=v.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,name:o,...i}=t,a=pc(sg,n),s=h_(sg,n),[l,u]=v.useState(null),d=Se(e,w=>u(w)),c=l?a.form||!!l.closest("form"):!0,f=cs(l),p=a.values[r],m=p===void 0?0:x_(p,a.min,a.max),g=t6(r,a.values.length),b=f?.[s.size],y=b?r6(b,m,s.direction):0;return v.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),h.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${m}% + ${y}px)`},children:[h.jsx(ig.ItemSlot,{scope:t.__scopeSlider,children:h.jsx(he.span,{role:"slider","aria-label":t["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":p,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:d,style:p===void 0?{display:"none"}:t.style,onFocus:se(t.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),c&&h.jsx(y_,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:p},r)]})});v_.displayName=sg;var Qz="RadioBubbleInput",y_=v.forwardRef(({__scopeSlider:t,value:e,...n},r)=>{const o=v.useRef(null),i=Se(o,r),a=us(e);return v.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&d){const c=new Event("input",{bubbles:!0});d.call(s,e),s.dispatchEvent(c)}},[a,e]),h.jsx(he.input,{style:{display:"none"},...n,ref:i,defaultValue:e})});y_.displayName=Qz;function e6(t=[],e,n){const r=[...t];return r[n]=e,r.sort((o,i)=>o-i)}function x_(t,e,n){const i=100/(n-e)*(t-e);return za(i,[0,100])}function t6(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function n6(t,e){if(t.length===1)return 0;const n=t.map(o=>Math.abs(o-e)),r=Math.min(...n);return n.indexOf(r)}function r6(t,e,n){const r=t/2,i=cv([0,50],[0,r]);return(r-i(e)*n)*n}function o6(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function i6(t,e){if(e>0){const n=o6(t);return Math.min(...n)>=e}return!0}function cv(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function a6(t){return(String(t).split(".")[1]||"").length}function s6(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var l6=d_,u6=g_,c6=b_,d6=v_;function w_({className:t,defaultValue:e,value:n,min:r=0,max:o=100,...i}){const a=v.useMemo(()=>Array.isArray(n)?n:Array.isArray(e)?e:[r,o],[n,e,r,o]);return h.jsxs(l6,{"data-slot":"slider",defaultValue:e,value:n,min:r,max:o,className:D("ui:relative ui:flex ui:w-full ui:touch-none ui:items-center ui:select-none ui:data-[disabled]:opacity-50 ui:data-[orientation=vertical]:h-full ui:data-[orientation=vertical]:min-h-44 ui:data-[orientation=vertical]:w-auto ui:data-[orientation=vertical]:flex-col",t),...i,children:[h.jsx(u6,{"data-slot":"slider-track",className:D("ui:bg-muted ui:relative ui:grow ui:overflow-hidden ui:rounded-full ui:data-[orientation=horizontal]:h-1.5 ui:data-[orientation=horizontal]:w-full ui:data-[orientation=vertical]:h-full ui:data-[orientation=vertical]:w-1.5"),children:h.jsx(c6,{"data-slot":"slider-range",className:D("ui:bg-primary ui:absolute ui:data-[orientation=horizontal]:h-full ui:data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(s,l)=>h.jsx(d6,{"data-slot":"slider-thumb",className:"ui:border-primary ui:ring-ring/50 ui:block ui:size-4 ui:shrink-0 ui:rounded-full ui:border ui:bg-white ui:shadow-sm ui:transition-[color,box-shadow] ui:hover:ring-4 ui:focus-visible:ring-4 ui:focus-visible:outline-hidden ui:disabled:pointer-events-none ui:disabled:opacity-50"},l))]})}const f6=({name:t,label:e,description:n,min:r=0,max:o=100,step:i=1,leftLabel:a,rightLabel:s,showLabels:l=!0,complementaryField:u,onValueChange:d,containerClassName:c,labelClassName:f,showErrorPlaceholder:p=!1,tooltipContent:m,...g})=>{const b=rn();if(!b)throw new Error("FormSlider must be used within a FormProvider from react-hook-form");const{control:y,setValue:w}=b,C=I.useRef(!1),S=bT({control:y,name:t}),E=A=>{if(C.current)return;const O=A[0];C.current=!0,w(t,String(O),{shouldValidate:!0}),u&&w(u,String(o-O),{shouldValidate:!0}),d&&d(O),setTimeout(()=>{C.current=!1},0)},T=Number(S)||r+(o-r)/2;return h.jsx(Yn,{control:y,name:t,render:()=>h.jsxs(In,{className:D("ui:w-full",c),children:[h.jsx(fr,{children:h.jsx(Yt,{condition:!!e,children:h.jsxs(pr,{className:D(f,{"ui:flex ui:items-center ui:gap-2":!!m}),children:[e,m&&h.jsx(Hi,{content:m,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,color:"#737373",className:"ui:cursor-pointer"})})]})})}),h.jsx(hn,{children:h.jsxs("div",{className:"ui:space-y-2",children:[h.jsx(w_,{value:[T],onValueChange:E,min:r,max:o,step:i,className:"ui:w-full",...g}),l&&h.jsxs("div",{className:"ui:flex ui:justify-between ui:text-sm ui:text-gray-600",children:[a&&h.jsxs("span",{children:[a,": ",T,o===100?"%":""]}),s&&h.jsxs("span",{children:[s,": ",u?o-T:T,o===100?"%":""]})]})]})}),h.jsx(fr,{children:h.jsx(Yt,{condition:!!n,children:h.jsx(wr,{className:"ui:text-xs",children:n})})}),h.jsx(Un,{showErrorPlaceholder:p})]})})};var mc="Switch",[h6]=At(mc),[p6,m6]=h6(mc),C_=v.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,form:d,...c}=t,[f,p]=v.useState(null),m=Se(e,C=>p(C)),g=v.useRef(!1),b=f?d||!!f.closest("form"):!0,[y,w]=jt({prop:o,defaultProp:i??!1,onChange:u,caller:mc});return h.jsxs(p6,{scope:n,checked:y,disabled:s,children:[h.jsx(he.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":A_(y),"data-disabled":s?"":void 0,disabled:s,value:l,...c,ref:m,onClick:se(t.onClick,C=>{w(S=>!S),b&&(g.current=C.isPropagationStopped(),g.current||C.stopPropagation())})}),b&&h.jsx(I_,{control:f,bubbles:!g.current,name:r,value:l,checked:y,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});C_.displayName=mc;var S_="SwitchThumb",E_=v.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,o=m6(S_,n);return h.jsx(he.span,{"data-state":A_(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:e})});E_.displayName=S_;var g6="SwitchBubbleInput",I_=v.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...o},i)=>{const a=v.useRef(null),s=Se(a,i),l=us(n),u=cs(e);return v.useEffect(()=>{const d=a.current;if(!d)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[l,n,r]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});I_.displayName=g6;function A_(t){return t?"checked":"unchecked"}var b6=C_,v6=E_;function T_({className:t,...e}){return h.jsx(b6,{"data-slot":"switch",className:D("ui:peer ui:data-[state=checked]:bg-primary ui:data-[state=unchecked]:bg-input ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:dark:data-[state=unchecked]:bg-input/80 ui:inline-flex ui:h-[1.15rem] ui:w-8 ui:shrink-0 ui:items-center ui:rounded-full ui:border ui:border-transparent ui:shadow-xs ui:transition-all ui:outline-none ui:focus-visible:ring-[3px] ui:disabled:cursor-not-allowed ui:disabled:opacity-50",t),...e,children:h.jsx(v6,{"data-slot":"switch-thumb",className:D("ui:bg-background ui:dark:data-[state=unchecked]:bg-foreground ui:dark:data-[state=checked]:bg-primary-foreground ui:pointer-events-none ui:block ui:size-4 ui:rounded-full ui:ring-0 ui:transition-transform ui:data-[state=checked]:translate-x-[calc(100%-2px)] ui:data-[state=unchecked]:translate-x-0")})})}const N_=({label:t,name:e,...n})=>h.jsxs("article",{className:"ui:flex ui:items-center ui:gap-2",children:[h.jsx(T_,{id:e,...n}),h.jsx(Tn,{htmlFor:e,children:t})]}),y6=({name:t,label:e,description:n,...r})=>{const o=rn();if(!o)throw new Error("FormSwitch must be used within a FormProvider from react-hook-form");const{control:i}=o;return h.jsx(Yn,{control:i,name:t,render:({field:a})=>h.jsxs(In,{children:[h.jsx(hn,{children:h.jsx(N_,{...a,...r,label:e})}),h.jsx(Un,{}),n&&h.jsx(wr,{children:n})]})})};function __({className:t,...e}){return h.jsx("textarea",{"data-slot":"textarea",className:D("ui:border-input ui:placeholder:text-muted-foreground ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:dark:bg-input/30 ui:flex ui:field-sizing-content ui:min-h-16 ui:w-full ui:rounded-md ui:border ui:bg-transparent ui:px-3 ui:py-2 ui:text-base ui:shadow-xs ui:transition-[color,box-shadow] ui:outline-none ui:focus-visible:ring-[3px] ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:md:text-sm",t),...e})}const O_=({textAreaClassName:t,value:e,onChange:n,label:r,...o})=>h.jsxs("article",{children:[r&&h.jsx(Tn,{className:"ui:mb-2 ui:block",children:r}),h.jsx(__,{className:D("ui:w-full",t),value:e,onChange:n,...o})]}),x6=({label:t,name:e,description:n,placeholder:r,containerClassName:o,...i})=>{const a=rn();if(!a)throw new Error("FormTextarea must be used within a FormProvider from react-hook-form");const{control:s}=a;return h.jsx(Yn,{control:s,name:e,render:({field:l})=>h.jsxs(In,{className:D("ui:w-full",o),children:[h.jsx(pr,{children:t}),h.jsx(hn,{children:h.jsx(O_,{placeholder:r,...l,...i})}),n&&h.jsx(wr,{children:n}),h.jsx(Un,{})]})})};var Up,gc="HoverCard",[R_]=At(gc,[xr]),bc=xr(),[w6,vc]=R_(gc),P_=t=>{const{__scopeHoverCard:e,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:s=300}=t,l=bc(e),u=v.useRef(0),d=v.useRef(0),c=v.useRef(!1),f=v.useRef(!1),[p,m]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:gc}),g=v.useCallback(()=>{clearTimeout(d.current),u.current=window.setTimeout(()=>m(!0),a)},[a,m]),b=v.useCallback(()=>{clearTimeout(u.current),!c.current&&!f.current&&(d.current=window.setTimeout(()=>m(!1),s))},[s,m]),y=v.useCallback(()=>m(!1),[m]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(d.current)},[]),h.jsx(w6,{scope:e,open:p,onOpenChange:m,onOpen:g,onClose:b,onDismiss:y,hasSelectionRef:c,isPointerDownOnContentRef:f,children:h.jsx($i,{...l,children:n})})};P_.displayName=gc;var M_="HoverCardTrigger",k_=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=vc(M_,n),i=bc(n);return h.jsx(Vi,{asChild:!0,...i,children:h.jsx(he.a,{"data-state":o.open?"open":"closed",...r,ref:e,onPointerEnter:se(t.onPointerEnter,Ql(o.onOpen)),onPointerLeave:se(t.onPointerLeave,Ql(o.onClose)),onFocus:se(t.onFocus,o.onOpen),onBlur:se(t.onBlur,o.onClose),onTouchStart:se(t.onTouchStart,a=>a.preventDefault())})})});k_.displayName=M_;var dv="HoverCardPortal",[C6,S6]=R_(dv,{forceMount:void 0}),D_=t=>{const{__scopeHoverCard:e,forceMount:n,children:r,container:o}=t,i=vc(dv,e);return h.jsx(C6,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};D_.displayName=dv;var Kl="HoverCardContent",j_=v.forwardRef((t,e)=>{const n=S6(Kl,t.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=t,i=vc(Kl,t.__scopeHoverCard);return h.jsx(pt,{present:r||i.open,children:h.jsx(E6,{"data-state":i.open?"open":"closed",...o,onPointerEnter:se(t.onPointerEnter,Ql(i.onOpen)),onPointerLeave:se(t.onPointerLeave,Ql(i.onClose)),ref:e})})});j_.displayName=Kl;var E6=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=t,l=vc(Kl,n),u=bc(n),d=v.useRef(null),c=Se(e,d),[f,p]=v.useState(!1);return v.useEffect(()=>{if(f){const m=document.body;return Up=m.style.userSelect||m.style.webkitUserSelect,m.style.userSelect="none",m.style.webkitUserSelect="none",()=>{m.style.userSelect=Up,m.style.webkitUserSelect=Up}}},[f]),v.useEffect(()=>{if(d.current){const m=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",m),()=>{document.removeEventListener("pointerup",m),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),v.useEffect(()=>{d.current&&T6(d.current).forEach(g=>g.setAttribute("tabindex","-1"))}),h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:se(i,m=>{m.preventDefault()}),onDismiss:l.onDismiss,children:h.jsx(gs,{...u,...s,onPointerDown:se(s.onPointerDown,m=>{m.currentTarget.contains(m.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:c,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),I6="HoverCardArrow",A6=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=bc(n);return h.jsx(bs,{...o,...r,ref:e})});A6.displayName=I6;function Ql(t){return e=>e.pointerType==="touch"?void 0:t()}function T6(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)e.push(n.currentNode);return e}var N6=P_,_6=k_,O6=D_,R6=j_;function P6({...t}){return h.jsx(N6,{"data-slot":"hover-card",...t})}function M6({...t}){return h.jsx(_6,{"data-slot":"hover-card-trigger",...t})}function k6({className:t,align:e="center",sideOffset:n=4,...r}){return h.jsx(O6,{"data-slot":"hover-card-portal",children:h.jsx(R6,{"data-slot":"hover-card-content",align:e,sideOffset:n,className:D("ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:w-64 ui:origin-(--radix-hover-card-content-transform-origin) ui:rounded-md ui:border ui:p-4 ui:shadow-md ui:outline-hidden",t),...r})})}function D6({name:t,className:e,...n}){return h.jsx("i",{className:D(`icon-${t}`,e),...n,children:h.jsxs("span",{className:"ui:for-screenreader-only",children:[t," icon"]})})}var j6=Object.defineProperty,L6=Object.defineProperties,B6=Object.getOwnPropertyDescriptors,eu=Object.getOwnPropertySymbols,L_=Object.prototype.hasOwnProperty,B_=Object.prototype.propertyIsEnumerable,Dw=(t,e,n)=>e in t?j6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F6=(t,e)=>{for(var n in e||(e={}))L_.call(e,n)&&Dw(t,n,e[n]);if(eu)for(var n of eu(e))B_.call(e,n)&&Dw(t,n,e[n]);return t},G6=(t,e)=>L6(t,B6(e)),$6=(t,e)=>{var n={};for(var r in t)L_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&eu)for(var r of eu(t))e.indexOf(r)<0&&B_.call(t,r)&&(n[r]=t[r]);return n};function V6(t){let e=setTimeout(t,0),n=setTimeout(t,10),r=setTimeout(t,50);return[e,n,r]}function W6(t){let e=v.useRef();return v.useEffect(()=>{e.current=t}),e.current}var H6=18,F_=40,q6=`${F_}px`,z6=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function X6({containerRef:t,inputRef:e,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=v.useState(!1),[a,s]=v.useState(!1),[l,u]=v.useState(!1),d=v.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&a,[o,a,n]),c=v.useCallback(()=>{let f=t.current,p=e.current;if(!f||!p||l||n==="none")return;let m=f,g=m.getBoundingClientRect().left+m.offsetWidth,b=m.getBoundingClientRect().top+m.offsetHeight/2,y=g-H6,w=b;document.querySelectorAll(z6).length===0&&document.elementFromPoint(y,w)===f||(i(!0),u(!0))},[t,e,l,n]);return v.useEffect(()=>{let f=t.current;if(!f||n==="none")return;function p(){let g=window.innerWidth-f.getBoundingClientRect().right;s(g>=F_)}p();let m=setInterval(p,1e3);return()=>{clearInterval(m)}},[t,n]),v.useEffect(()=>{let f=r||document.activeElement===e.current;if(n==="none"||!f)return;let p=setTimeout(c,0),m=setTimeout(c,2e3),g=setTimeout(c,5e3),b=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(m),clearTimeout(g),clearTimeout(b)}},[e,r,n,c]),{hasPWMBadge:o,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:q6}}var Y6=v.createContext({}),G_=v.forwardRef((t,e)=>{var n=t,{value:r,onChange:o,maxLength:i,textAlign:a="left",pattern:s,placeholder:l,inputMode:u="numeric",onComplete:d,pushPasswordManagerStrategy:c="increase-width",pasteTransformer:f,containerClassName:p,noScriptCSSFallback:m=U6,render:g,children:b}=n,y=$6(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,C,S,E,T;let[A,O]=v.useState(typeof y.defaultValue=="string"?y.defaultValue:""),M=r??A,V=W6(M),N=v.useCallback(W=>{o?.(W),O(W)},[o]),k=v.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),_=v.useRef(null),B=v.useRef(null),L=v.useRef({value:M,onChange:N,isIOS:typeof window<"u"&&((C=(w=window?.CSS)==null?void 0:w.supports)==null?void 0:C.call(w,"-webkit-touch-callout","none"))}),P=v.useRef({prev:[(S=_.current)==null?void 0:S.selectionStart,(E=_.current)==null?void 0:E.selectionEnd,(T=_.current)==null?void 0:T.selectionDirection]});v.useImperativeHandle(e,()=>_.current,[]),v.useEffect(()=>{let W=_.current,le=B.current;if(!W||!le)return;L.current.value!==W.value&&L.current.onChange(W.value),P.current.prev=[W.selectionStart,W.selectionEnd,W.selectionDirection];function Ae(){if(document.activeElement!==W){$(null),Z(null);return}let Ie=W.selectionStart,Re=W.selectionEnd,at=W.selectionDirection,Me=W.maxLength,Ge=W.value,We=P.current.prev,Qe=-1,st=-1,it;if(Ge.length!==0&&Ie!==null&&Re!==null){let _t=Ie===Re,tt=Ie===Ge.length&&Ge.length<Me;if(_t&&!tt){let lt=Ie;if(lt===0)Qe=0,st=1,it="forward";else if(lt===Me)Qe=lt-1,st=lt,it="backward";else if(Me>1&&Ge.length>1){let Ot=0;if(We[0]!==null&&We[1]!==null){it=lt<We[1]?"backward":"forward";let Rt=We[0]===We[1]&&We[0]<Me;it==="backward"&&!Rt&&(Ot=-1)}Qe=Ot+lt,st=Ot+lt+1}}Qe!==-1&&st!==-1&&Qe!==st&&_.current.setSelectionRange(Qe,st,it)}let mt=Qe!==-1?Qe:Ie,bt=st!==-1?st:Re,Le=it??at;$(mt),Z(bt),P.current.prev=[mt,bt,Le]}if(document.addEventListener("selectionchange",Ae,{capture:!0}),Ae(),document.activeElement===W&&U(!0),!document.getElementById("input-otp-style")){let Ie=document.createElement("style");if(Ie.id="input-otp-style",document.head.appendChild(Ie),Ie.sheet){let Re="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";ua(Ie.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),ua(Ie.sheet,`[data-input-otp]:autofill { ${Re} }`),ua(Ie.sheet,`[data-input-otp]:-webkit-autofill { ${Re} }`),ua(Ie.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),ua(Ie.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ne=()=>{le&&le.style.setProperty("--root-height",`${W.clientHeight}px`)};Ne();let Ve=new ResizeObserver(Ne);return Ve.observe(W),()=>{document.removeEventListener("selectionchange",Ae,{capture:!0}),Ve.disconnect()}},[]);let[G,j]=v.useState(!1),[H,U]=v.useState(!1),[Q,$]=v.useState(null),[q,Z]=v.useState(null);v.useEffect(()=>{V6(()=>{var W,le,Ae,Ne;(W=_.current)==null||W.dispatchEvent(new Event("input"));let Ve=(le=_.current)==null?void 0:le.selectionStart,Ie=(Ae=_.current)==null?void 0:Ae.selectionEnd,Re=(Ne=_.current)==null?void 0:Ne.selectionDirection;Ve!==null&&Ie!==null&&($(Ve),Z(Ie),P.current.prev=[Ve,Ie,Re])})},[M,H]),v.useEffect(()=>{V!==void 0&&M!==V&&V.length<i&&M.length===i&&d?.(M)},[i,d,V,M]);let X=X6({containerRef:B,inputRef:_,pushPasswordManagerStrategy:c,isFocused:H}),te=v.useCallback(W=>{let le=W.currentTarget.value.slice(0,i);if(le.length>0&&k&&!k.test(le)){W.preventDefault();return}typeof V=="string"&&le.length<V.length&&document.dispatchEvent(new Event("selectionchange")),N(le)},[i,N,V,k]),Y=v.useCallback(()=>{var W;if(_.current){let le=Math.min(_.current.value.length,i-1),Ae=_.current.value.length;(W=_.current)==null||W.setSelectionRange(le,Ae),$(le),Z(Ae)}U(!0)},[i]),J=v.useCallback(W=>{var le,Ae;let Ne=_.current;if(!f&&(!L.current.isIOS||!W.clipboardData||!Ne))return;let Ve=W.clipboardData.getData("text/plain"),Ie=f?f(Ve):Ve;W.preventDefault();let Re=(le=_.current)==null?void 0:le.selectionStart,at=(Ae=_.current)==null?void 0:Ae.selectionEnd,Me=(Re!==at?M.slice(0,Re)+Ie+M.slice(at):M.slice(0,Re)+Ie+M.slice(Re)).slice(0,i);if(Me.length>0&&k&&!k.test(Me))return;Ne.value=Me,N(Me);let Ge=Math.min(Me.length,i-1),We=Me.length;Ne.setSelectionRange(Ge,We),$(Ge),Z(We)},[i,N,k,M]),ie=v.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),oe=v.useMemo(()=>({position:"absolute",inset:0,width:X.willPushPWMBadge?`calc(100% + ${X.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:X.willPushPWMBadge?`inset(0 ${X.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[X.PWM_BADGE_SPACE_WIDTH,X.willPushPWMBadge,a]),re=v.useMemo(()=>v.createElement("input",G6(F6({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":M.length===0||void 0,"data-input-otp-mss":Q,"data-input-otp-mse":q,inputMode:u,pattern:k?.source,"aria-placeholder":l,style:oe,maxLength:i,value:M,ref:_,onPaste:W=>{var le;J(W),(le=y.onPaste)==null||le.call(y,W)},onChange:te,onMouseOver:W=>{var le;j(!0),(le=y.onMouseOver)==null||le.call(y,W)},onMouseLeave:W=>{var le;j(!1),(le=y.onMouseLeave)==null||le.call(y,W)},onFocus:W=>{var le;Y(),(le=y.onFocus)==null||le.call(y,W)},onBlur:W=>{var le;U(!1),(le=y.onBlur)==null||le.call(y,W)}})),[te,Y,J,u,oe,i,q,Q,y,k?.source,M]),z=v.useMemo(()=>({slots:Array.from({length:i}).map((W,le)=>{var Ae;let Ne=H&&Q!==null&&q!==null&&(Q===q&&le===Q||le>=Q&&le<q),Ve=M[le]!==void 0?M[le]:null,Ie=M[0]!==void 0?null:(Ae=l?.[le])!=null?Ae:null;return{char:Ve,placeholderChar:Ie,isActive:Ne,hasFakeCaret:Ne&&Ve===null}}),isFocused:H,isHovering:!y.disabled&&G}),[H,G,i,q,Q,y.disabled,M]),ue=v.useMemo(()=>g?g(z):v.createElement(Y6.Provider,{value:z},b),[b,z,g]);return v.createElement(v.Fragment,null,m!==null&&v.createElement("noscript",null,v.createElement("style",null,m)),v.createElement("div",{ref:B,"data-input-otp-container":!0,style:ie,className:p},ue,v.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},re)))});G_.displayName="Input";function ua(t,e){try{t.insertRule(e)}catch{console.error("input-otp could not insert CSS rule:",e)}}var U6=`
62
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function oW(){const t=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(t)&&/Mobile/.test(t)||/FxiOS/.test(t))}function iW(){return zb(/^Mac/)}function aW(){return zb(/^iPhone/)}function Nw(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function sW(){return zb(/^iPad/)||iW()&&navigator.maxTouchPoints>1}function xT(){return aW()||sW()}function zb(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const lW=24,uW=typeof window<"u"?I.useLayoutEffect:I.useEffect;function _w(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}const Hp=typeof document<"u"&&window.visualViewport;function Ow(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}function wT(t){for(Ow(t)&&(t=t.parentElement);t&&!Ow(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const cW=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let al=0,qp;function dW(t={}){let{isDisabled:e}=t;uW(()=>{if(!e)return al++,al===1&&xT()&&(qp=fW()),()=>{al--,al===0&&qp?.()}},[e])}function fW(){let t,e=0,n=c=>{t=wT(c.target),!(t===document.documentElement&&t===document.body)&&(e=c.changedTouches[0].pageY)},r=c=>{if(!t||t===document.documentElement||t===document.body){c.preventDefault();return}let f=c.changedTouches[0].pageY,p=t.scrollTop,m=t.scrollHeight-t.clientHeight;m!==0&&((p<=0&&f>e||p>=m&&f<e)&&c.preventDefault(),e=f)},o=c=>{let f=c.target;Jm(f)&&f!==document.activeElement&&(c.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=c=>{let f=c.target;Jm(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",Hp&&(Hp.height<window.innerHeight?requestAnimationFrame(()=>{Rw(f)}):Hp.addEventListener("resize",()=>Rw(f),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,u=_w(hW(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let d=_w(sa(document,"touchstart",n,{passive:!1,capture:!0}),sa(document,"touchmove",r,{passive:!1,capture:!0}),sa(document,"touchend",o,{passive:!1,capture:!0}),sa(document,"focus",i,!0),sa(window,"scroll",a));return()=>{u(),d(),window.scrollTo(s,l)}}function hW(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function sa(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function Rw(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=wT(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let r=n.getBoundingClientRect().top,o=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+lW;i>a&&(n.scrollTop+=o-r)}t=n.parentElement}}function Jm(t){return t instanceof HTMLInputElement&&!cW.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable}function pW(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function mW(...t){return e=>t.forEach(n=>pW(n,e))}function CT(...t){return v.useCallback(mW(...t),t)}const ST=new WeakMap;function Et(t,e,n=!1){if(!t||!(t instanceof HTMLElement))return;let r={};Object.entries(e).forEach(([o,i])=>{if(o.startsWith("--")){t.style.setProperty(o,i);return}r[o]=t.style[o],t.style[o]=i}),!n&&ST.set(t,r)}function gW(t,e){if(!t||!(t instanceof HTMLElement))return;let n=ST.get(t);n&&(t.style[e]=n[e])}const yt=t=>{switch(t){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return t}};function sl(t,e){if(!t)return null;const n=window.getComputedStyle(t),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[yt(e)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[yt(e)?5:4]):null)}function bW(t){return 8*(Math.log(t+1)-2)}function zp(t,e){if(!t)return()=>{};const n=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=n}}function vW(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}const ut={DURATION:.5,EASE:[.32,.72,0,1]},ET=.4,yW=.25,xW=100,IT=8,bo=16,Km=26,Xp="vaul-dragging";function AT(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t}),I.useMemo(()=>(...n)=>e.current==null?void 0:e.current.call(e,...n),[])}function wW({defaultProp:t,onChange:e}){const n=I.useState(t),[r]=n,o=I.useRef(r),i=AT(e);return I.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function TT({prop:t,defaultProp:e,onChange:n=()=>{}}){const[r,o]=wW({defaultProp:e,onChange:n}),i=t!==void 0,a=i?t:r,s=AT(n),l=I.useCallback(u=>{if(i){const c=typeof u=="function"?u(t):u;c!==t&&s(c)}else o(u)},[i,t,o,s]);return[a,l]}function CW({activeSnapPointProp:t,setActiveSnapPointProp:e,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:s="bottom",container:l,snapToSequentialPoint:u}){const[d,c]=TT({prop:t,defaultProp:n?.[0],onChange:e}),[f,p]=I.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);I.useEffect(()=>{function A(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)},[]);const m=I.useMemo(()=>d===n?.[n.length-1]||null,[n,d]),g=I.useMemo(()=>{var A;return(A=n?.findIndex(O=>O===d))!=null?A:null},[n,d]),b=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===d||!n,y=I.useMemo(()=>{const A=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var O;return(O=n?.map(M=>{const V=typeof M=="string";let N=0;if(V&&(N=parseInt(M,10)),yt(s)){const _=V?N:f?M*A.height:0;return f?s==="bottom"?A.height-_:-A.height+_:_}const k=V?N:f?M*A.width:0;return f?s==="right"?A.width-k:-A.width+k:k}))!=null?O:[]},[n,f,l]),w=I.useMemo(()=>g!==null?y?.[g]:null,[y,g]),C=I.useCallback(A=>{var O;const M=(O=y?.findIndex(V=>V===A))!=null?O:null;a(M),Et(r.current,{transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,transform:yt(s)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`}),y&&M!==y.length-1&&i!==void 0&&M!==i&&M<i?Et(o.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,opacity:"0"}):Et(o.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,opacity:"1"}),c(n?.[Math.max(M,0)])},[r.current,n,y,i,o,c]);I.useEffect(()=>{if(d||t){var A;const O=(A=n?.findIndex(M=>M===t||M===d))!=null?A:-1;y&&O!==-1&&typeof y[O]=="number"&&C(y[O])}},[d,t,n,y,C]);function S({draggedDistance:A,closeDrawer:O,velocity:M,dismissible:V}){if(i===void 0)return;const N=s==="bottom"||s==="right"?(w??0)-A:(w??0)+A,k=g===i-1,_=g===0,B=A>0;if(k&&Et(o.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`}),!u&&M>2&&!B){V?O():C(y[0]);return}if(!u&&M>2&&B&&y&&n){C(y[n.length-1]);return}const L=y?.reduce((G,j)=>typeof G!="number"||typeof j!="number"?G:Math.abs(j-N)<Math.abs(G-N)?j:G),P=yt(s)?window.innerHeight:window.innerWidth;if(M>ET&&Math.abs(A)<P*.4){const G=B?1:-1;if(G>0&&m&&n){C(y[n.length-1]);return}if(_&&G<0&&V&&O(),g===null)return;C(y[g+G]);return}C(L)}function E({draggedDistance:A}){if(w===null)return;const O=s==="bottom"||s==="right"?w-A:w+A;(s==="bottom"||s==="right")&&O<y[y.length-1]||(s==="top"||s==="left")&&O>y[y.length-1]||Et(r.current,{transform:yt(s)?`translate3d(0, ${O}px, 0)`:`translate3d(${O}px, 0, 0)`})}function T(A,O){if(!n||typeof g!="number"||!y||i===void 0)return null;const M=g===i-1;if(g>=i&&O)return 0;if(M&&!O)return 1;if(!b&&!M)return null;const N=M?g+1:g-1,k=M?y[N]-y[N-1]:y[N+1]-y[N],_=A/Math.abs(k);return M?1-_:_}return{isLastSnapPoint:m,activeSnapPoint:d,shouldFade:b,getPercentageDragged:T,setActiveSnapPoint:c,activeSnapPointIndex:g,onRelease:S,onDrag:E,snapPointsOffset:y}}const SW=()=>()=>{};function EW(){const{direction:t,isOpen:e,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=ys(),i=I.useRef(null),a=I.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-Km)/window.innerWidth}I.useEffect(()=>{if(e&&n){i.current&&clearTimeout(i.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;vW(r&&!o?zp(document.body,{background:"black"}):SW,zp(l,{transformOrigin:yt(t)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${ut.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ut.EASE.join(",")})`}));const u=zp(l,{borderRadius:`${IT}px`,overflow:"hidden",...yt(t)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{u(),i.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},ut.DURATION*1e3)}}},[e,n,a])}let la=null;function IW({isOpen:t,modal:e,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,s]=I.useState(()=>typeof window<"u"?window.location.href:""),l=I.useRef(0),u=I.useCallback(()=>{if(Nw()&&la===null&&t&&!i){la={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:c,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-c}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const p=f-window.innerHeight;p&&l.current>=f&&(document.body.style.top=`${-(l.current+p)}px`)}),300)}},[t]),d=I.useCallback(()=>{if(Nw()&&la!==null&&!i){const c=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,la),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){s(window.location.href);return}window.scrollTo(f,c)}),la=null}},[a]);return I.useEffect(()=>{function c(){l.current=window.scrollY}return c(),window.addEventListener("scroll",c),()=>{window.removeEventListener("scroll",c)}},[]),I.useEffect(()=>{if(e)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||d()}},[e,d]),I.useEffect(()=>{n||!r||(t?(!window.matchMedia("(display-mode: standalone)").matches&&u(),e||window.setTimeout(()=>{d()},500)):d())},[t,r,a,e,n,u,d]),{restorePositionSetting:d}}function AW({open:t,onOpenChange:e,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=yW,scrollLockTimeout:u=xW,dismissible:d=!0,handleOnly:c=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:g,modal:b=!0,onClose:y,nested:w,noBodyStyles:C=!1,direction:S="bottom",defaultOpen:E=!1,disablePreventScroll:T=!0,snapToSequentialPoint:A=!1,preventScrollRestoration:O=!1,repositionInputs:M=!0,onAnimationEnd:V,container:N,autoFocus:k=!1}){var _,B;const[L=!1,P]=TT({defaultProp:E,prop:t,onChange:ne=>{e?.(ne),!ne&&!w&&it(),setTimeout(()=>{V?.(ne)},ut.DURATION*1e3),ne&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),ne||(document.body.style.pointerEvents="auto")}}),[G,j]=I.useState(!1),[H,U]=I.useState(!1),[Q,$]=I.useState(!1),q=I.useRef(null),Z=I.useRef(null),X=I.useRef(null),te=I.useRef(null),Y=I.useRef(null),J=I.useRef(!1),ie=I.useRef(null),oe=I.useRef(0),re=I.useRef(!1),z=I.useRef(!E),ue=I.useRef(0),W=I.useRef(null),le=I.useRef(((_=W.current)==null?void 0:_.getBoundingClientRect().height)||0),Ae=I.useRef(((B=W.current)==null?void 0:B.getBoundingClientRect().width)||0),Ne=I.useRef(0),Ve=I.useCallback(ne=>{i&&ne===Ge.length-1&&(Z.current=new Date)},[]),{activeSnapPoint:Ie,activeSnapPointIndex:Re,setActiveSnapPoint:at,onRelease:Me,snapPointsOffset:Ge,onDrag:We,shouldFade:Qe,getPercentageDragged:st}=CW({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:W,fadeFromIndex:f,overlayRef:q,onSnapPointChange:Ve,direction:S,container:N,snapToSequentialPoint:A});dW({isDisabled:!L||H||!b||Q||!G||!M||!T});const{restorePositionSetting:it}=IW({isOpen:L,modal:b,nested:w??!1,hasBeenOpened:G,preventScrollRestoration:O,noBodyStyles:C});function mt(){return(window.innerWidth-Km)/window.innerWidth}function bt(ne){var fe,ce;!d&&!i||W.current&&!W.current.contains(ne.target)||(le.current=((fe=W.current)==null?void 0:fe.getBoundingClientRect().height)||0,Ae.current=((ce=W.current)==null?void 0:ce.getBoundingClientRect().width)||0,U(!0),X.current=new Date,xT()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),ne.target.setPointerCapture(ne.pointerId),oe.current=yt(S)?ne.pageY:ne.pageX)}function Le(ne,fe){var ce;let de=ne;const Te=(ce=window.getSelection())==null?void 0:ce.toString(),ae=W.current?sl(W.current,S):null,_e=new Date;if(de.tagName==="SELECT"||de.hasAttribute("data-vaul-no-drag")||de.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(Z.current&&_e.getTime()-Z.current.getTime()<500)return!1;if(ae!==null&&(S==="bottom"?ae>0:ae<0))return!0;if(Te&&Te.length>0)return!1;if(Y.current&&_e.getTime()-Y.current.getTime()<u&&ae===0||fe)return Y.current=_e,!1;for(;de;){if(de.scrollHeight>de.clientHeight){if(de.scrollTop!==0)return Y.current=new Date,!1;if(de.getAttribute("role")==="dialog")return!0}de=de.parentNode}return!0}function _t(ne){if(W.current&&H){const fe=S==="bottom"||S==="right"?1:-1,ce=(oe.current-(yt(S)?ne.pageY:ne.pageX))*fe,de=ce>0,Te=i&&!d&&!de;if(Te&&Re===0)return;const ae=Math.abs(ce),_e=document.querySelector("[data-vaul-drawer-wrapper]"),ke=S==="bottom"||S==="top"?le.current:Ae.current;let De=ae/ke;const nt=st(ae,de);if(nt!==null&&(De=nt),Te&&De>=1||!J.current&&!Le(ne.target,de))return;if(W.current.classList.add(Xp),J.current=!0,Et(W.current,{transition:"none"}),Et(q.current,{transition:"none"}),i&&We({draggedDistance:ce}),de&&!i){const Be=bW(ce),on=Math.min(Be*-1,0)*fe;Et(W.current,{transform:yt(S)?`translate3d(0, ${on}px, 0)`:`translate3d(${on}px, 0, 0)`});return}const je=1-De;if((Qe||f&&Re===f-1)&&(r?.(ne,De),Et(q.current,{opacity:`${je}`,transition:"none"},!0)),_e&&q.current&&a){const Be=Math.min(mt()+De*(1-mt()),1),on=8-De*8,Tt=Math.max(0,14-De*14);Et(_e,{borderRadius:`${on}px`,transform:yt(S)?`scale(${Be}) translate3d(0, ${Tt}px, 0)`:`scale(${Be}) translate3d(${Tt}px, 0, 0)`,transition:"none"},!0)}if(!i){const Be=ae*fe;Et(W.current,{transform:yt(S)?`translate3d(0, ${Be}px, 0)`:`translate3d(${Be}px, 0, 0)`})}}}I.useEffect(()=>{window.requestAnimationFrame(()=>{z.current=!0})},[]),I.useEffect(()=>{var ne;function fe(){if(!W.current||!M)return;const ce=document.activeElement;if(Jm(ce)||re.current){var de;const Te=((de=window.visualViewport)==null?void 0:de.height)||0,ae=window.innerHeight;let _e=ae-Te;const ke=W.current.getBoundingClientRect().height||0,De=ke>ae*.8;Ne.current||(Ne.current=ke);const nt=W.current.getBoundingClientRect().top;if(Math.abs(ue.current-_e)>60&&(re.current=!re.current),i&&i.length>0&&Ge&&Re){const je=Ge[Re]||0;_e+=je}if(ue.current=_e,ke>Te||re.current){const je=W.current.getBoundingClientRect().height;let Be=je;je>Te&&(Be=Te-(De?nt:Km)),g?W.current.style.height=`${je-Math.max(_e,0)}px`:W.current.style.height=`${Math.max(Be,Te-nt)}px`}else oW()||(W.current.style.height=`${Ne.current}px`);i&&i.length>0&&!re.current?W.current.style.bottom="0px":W.current.style.bottom=`${Math.max(_e,0)}px`}}return(ne=window.visualViewport)==null||ne.addEventListener("resize",fe),()=>{var ce;return(ce=window.visualViewport)==null?void 0:ce.removeEventListener("resize",fe)}},[Re,i,Ge]);function tt(ne){Ot(),y?.(),ne||P(!1),setTimeout(()=>{i&&at(i[0])},ut.DURATION*1e3)}function lt(){if(!W.current)return;const ne=document.querySelector("[data-vaul-drawer-wrapper]"),fe=sl(W.current,S);Et(W.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`}),Et(q.current,{transition:`opacity ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,opacity:"1"}),a&&fe&&fe>0&&L&&Et(ne,{borderRadius:`${IT}px`,overflow:"hidden",...yt(S)?{transform:`scale(${mt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${mt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${ut.DURATION}s`,transitionTimingFunction:`cubic-bezier(${ut.EASE.join(",")})`},!0)}function Ot(){!H||!W.current||(W.current.classList.remove(Xp),J.current=!1,U(!1),te.current=new Date)}function Rt(ne){if(!H||!W.current)return;W.current.classList.remove(Xp),J.current=!1,U(!1),te.current=new Date;const fe=sl(W.current,S);if(!ne||!Le(ne.target,!1)||!fe||Number.isNaN(fe)||X.current===null)return;const ce=te.current.getTime()-X.current.getTime(),de=oe.current-(yt(S)?ne.pageY:ne.pageX),Te=Math.abs(de)/ce;if(Te>.05&&($(!0),setTimeout(()=>{$(!1)},200)),i){Me({draggedDistance:de*(S==="bottom"||S==="right"?1:-1),closeDrawer:tt,velocity:Te,dismissible:d}),o?.(ne,!0);return}if(S==="bottom"||S==="right"?de>0:de<0){lt(),o?.(ne,!0);return}if(Te>ET){tt(),o?.(ne,!1);return}var ae;const _e=Math.min((ae=W.current.getBoundingClientRect().height)!=null?ae:0,window.innerHeight);var ke;const De=Math.min((ke=W.current.getBoundingClientRect().width)!=null?ke:0,window.innerWidth),nt=S==="left"||S==="right";if(Math.abs(fe)>=(nt?De:_e)*l){tt(),o?.(ne,!1);return}o?.(ne,!0),lt()}I.useEffect(()=>(L&&(Et(document.documentElement,{scrollBehavior:"auto"}),Z.current=new Date),()=>{gW(document.documentElement,"scrollBehavior")}),[L]);function rn(ne){const fe=ne?(window.innerWidth-bo)/window.innerWidth:1,ce=ne?-bo:0;ie.current&&window.clearTimeout(ie.current),Et(W.current,{transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,transform:yt(S)?`scale(${fe}) translate3d(0, ${ce}px, 0)`:`scale(${fe}) translate3d(${ce}px, 0, 0)`}),!ne&&W.current&&(ie.current=setTimeout(()=>{const de=sl(W.current,S);Et(W.current,{transition:"none",transform:yt(S)?`translate3d(0, ${de}px, 0)`:`translate3d(${de}px, 0, 0)`})},500))}function Ht(ne,fe){if(fe<0)return;const ce=(window.innerWidth-bo)/window.innerWidth,de=ce+fe*(1-ce),Te=-bo+fe*bo;Et(W.current,{transform:yt(S)?`scale(${de}) translate3d(0, ${Te}px, 0)`:`scale(${de}) translate3d(${Te}px, 0, 0)`,transition:"none"})}function Pt(ne,fe){const ce=yt(S)?window.innerHeight:window.innerWidth,de=fe?(ce-bo)/ce:1,Te=fe?-bo:0;fe&&Et(W.current,{transition:`transform ${ut.DURATION}s cubic-bezier(${ut.EASE.join(",")})`,transform:yt(S)?`scale(${de}) translate3d(0, ${Te}px, 0)`:`scale(${de}) translate3d(${Te}px, 0, 0)`})}return I.useEffect(()=>{b||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[b]),I.createElement(Vu,{defaultOpen:E,onOpenChange:ne=>{!d&&!ne||(ne?j(!0):tt(!0),P(ne))},open:L},I.createElement(yT.Provider,{value:{activeSnapPoint:Ie,snapPoints:i,setActiveSnapPoint:at,drawerRef:W,overlayRef:q,onOpenChange:e,onPress:bt,onRelease:Rt,onDrag:_t,dismissible:d,shouldAnimate:z,handleOnly:c,isOpen:L,isDragging:H,shouldFade:Qe,closeDrawer:tt,onNestedDrag:Ht,onNestedOpenChange:rn,onNestedRelease:Pt,keyboardIsOpen:re,modal:b,snapPointsOffset:Ge,activeSnapPointIndex:Re,direction:S,shouldScaleBackground:a,setBackgroundColorOnScale:s,noBodyStyles:C,container:N,autoFocus:k}},n))}const NT=I.forwardRef(function({...t},e){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:s,shouldAnimate:l}=ys(),u=CT(e,n),d=r&&r.length>0;if(!s)return null;const c=I.useCallback(f=>o(f),[o]);return I.createElement(Hu,{onMouseUp:c,ref:u,"data-vaul-overlay":"","data-vaul-snap-points":a&&d?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false","data-vaul-animate":l?.current?"true":"false",...t})});NT.displayName="Drawer.Overlay";const _T=I.forwardRef(function({onPointerDownOutside:t,style:e,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:s,onDrag:l,keyboardIsOpen:u,snapPointsOffset:d,activeSnapPointIndex:c,modal:f,isOpen:p,direction:m,snapPoints:g,container:b,handleOnly:y,shouldAnimate:w,autoFocus:C}=ys(),[S,E]=I.useState(!1),T=CT(o,i),A=I.useRef(null),O=I.useRef(null),M=I.useRef(!1),V=g&&g.length>0;EW();const N=(_,B,L=0)=>{if(M.current)return!0;const P=Math.abs(_.y),G=Math.abs(_.x),j=G>P,H=["bottom","right"].includes(B)?1:-1;if(B==="left"||B==="right"){if(!(_.x*H<0)&&G>=0&&G<=L)return j}else if(!(_.y*H<0)&&P>=0&&P<=L)return!j;return M.current=!0,!0};I.useEffect(()=>{V&&window.requestAnimationFrame(()=>{E(!0)})},[]);function k(_){A.current=null,M.current=!1,s(_)}return I.createElement(qu,{"data-vaul-drawer-direction":m,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":p&&V?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":w?.current?"true":"false",...r,ref:T,style:d&&d.length>0?{"--snap-point-height":`${d[c??0]}px`,...e}:e,onPointerDown:_=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,_),A.current={x:_.pageX,y:_.pageY},a(_))},onOpenAutoFocus:_=>{n?.(_),C||_.preventDefault()},onPointerDownOutside:_=>{if(t?.(_),!f||_.defaultPrevented){_.preventDefault();return}u.current&&(u.current=!1)},onFocusOutside:_=>{if(!f){_.preventDefault();return}},onPointerMove:_=>{if(O.current=_,y||(r.onPointerMove==null||r.onPointerMove.call(r,_),!A.current))return;const B=_.pageY-A.current.y,L=_.pageX-A.current.x,P=_.pointerType==="touch"?10:2;N({x:L,y:B},m,P)?l(_):(Math.abs(L)>P||Math.abs(B)>P)&&(A.current=null)},onPointerUp:_=>{r.onPointerUp==null||r.onPointerUp.call(r,_),A.current=null,M.current=!1,s(_)},onPointerOut:_=>{r.onPointerOut==null||r.onPointerOut.call(r,_),k(O.current)},onContextMenu:_=>{r.onContextMenu==null||r.onContextMenu.call(r,_),O.current&&k(O.current)}})});_T.displayName="Drawer.Content";const TW=250,NW=120,_W=I.forwardRef(function({preventCycle:t=!1,children:e,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:u,handleOnly:d,isOpen:c,onPress:f,onDrag:p}=ys(),m=I.useRef(null),g=I.useRef(!1);function b(){if(g.current){C();return}window.setTimeout(()=>{y()},NW)}function y(){if(i||t||g.current){C();return}if(C(),!a||a.length===0){u||o();return}if(s===a[a.length-1]&&u){o();return}const E=a.findIndex(A=>A===s);if(E===-1)return;const T=a[E+1];l(T)}function w(){m.current=window.setTimeout(()=>{g.current=!0},TW)}function C(){m.current&&window.clearTimeout(m.current),g.current=!1}return I.createElement("div",{onClick:b,onPointerCancel:C,onPointerDown:S=>{d&&f(S),w()},onPointerMove:S=>{d&&p(S)},ref:r,"data-vaul-drawer-visible":c?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},I.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},e))});_W.displayName="Drawer.Handle";function OW(t){const e=ys(),{container:n=e.container,...r}=t;return I.createElement(Wu,{container:n,...r})}const oo={Root:AW,Content:_T,Overlay:NT,Trigger:Nb,Portal:OW,Close:hs,Title:_b,Description:Ob};function RW({...t}){return h.jsx(oo.Root,{"data-slot":"drawer",...t})}function PW({...t}){return h.jsx(oo.Trigger,{"data-slot":"drawer-trigger",...t})}function OT({...t}){return h.jsx(oo.Portal,{"data-slot":"drawer-portal",...t})}function MW({...t}){return h.jsx(oo.Close,{"data-slot":"drawer-close",...t})}function RT({className:t,...e}){return h.jsx(oo.Overlay,{"data-slot":"drawer-overlay",className:D("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",t),...e})}function kW({className:t,children:e,...n}){return h.jsxs(OT,{"data-slot":"drawer-portal",children:[h.jsx(RT,{}),h.jsxs(oo.Content,{"data-slot":"drawer-content",className:D("ui:group/drawer-content ui:bg-background ui:fixed ui:flex ui:h-auto ui:flex-col ui:rounded-t-[10px] ui:z-100 ui:mt-24","ui:data-[vaul-drawer-direction=top]:inset-x-0 ui:data-[vaul-drawer-direction=top]:top-0 ui:data-[vaul-drawer-direction=top]:mb-24 ui:data-[vaul-drawer-direction=top]:max-h-[80vh] ui:data-[vaul-drawer-direction=top]:rounded-b-lg ui:data-[vaul-drawer-direction=top]:border-b","ui:data-[vaul-drawer-direction=bottom]:inset-x-0 ui:data-[vaul-drawer-direction=bottom]:bottom-0 ui:data-[vaul-drawer-direction=bottom]:mt-24 ui:data-[vaul-drawer-direction=bottom]:max-h-[80vh] ui:data-[vaul-drawer-direction=bottom]:rounded-t-lg ui:data-[vaul-drawer-direction=bottom]:border-t","ui:data-[vaul-drawer-direction=right]:inset-y-0 ui:data-[vaul-drawer-direction=right]:right-0 ui:data-[vaul-drawer-direction=right]:w-3/4 ui:data-[vaul-drawer-direction=right]:border-l ui:data-[vaul-drawer-direction=right]:sm:max-w-sm","ui:data-[vaul-drawer-direction=left]:inset-y-0 ui:data-[vaul-drawer-direction=left]:left-0 ui:data-[vaul-drawer-direction=left]:w-3/4 ui:data-[vaul-drawer-direction=left]:border-r ui:data-[vaul-drawer-direction=left]:sm:max-w-sm",t),...n,children:[h.jsx("div",{className:"ui:bg-muted ui:mx-auto ui:mt-4 ui:hidden ui:h-2 ui:w-[100px] ui:shrink-0 ui:rounded-full ui:group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function DW({className:t,...e}){return h.jsx("div",{"data-slot":"drawer-header",className:D("ui:flex ui:flex-col ui:gap-0.5 ui:p-4 ui:group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center ui:group-data-[vaul-drawer-direction=top]/drawer-content:text-center ui:md:gap-1.5 ui:md:text-left",t),...e})}function jW({className:t,...e}){return h.jsx("div",{"data-slot":"drawer-footer",className:D("ui:mt-auto ui:flex ui:flex-col ui:gap-2 ui:p-4",t),...e})}function LW({className:t,...e}){return h.jsx(oo.Title,{"data-slot":"drawer-title",className:D("ui:text-foreground ui:font-semibold",t),...e})}function BW({className:t,...e}){return h.jsx(oo.Description,{"data-slot":"drawer-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}var Yp="rovingFocusGroup.onEntryFocus",FW={bubbles:!1,cancelable:!0},xs="RovingFocusGroup",[Qm,PT,GW]=ns(xs),[$W,Wi]=At(xs,[GW]),[VW,WW]=$W(xs),MT=v.forwardRef((t,e)=>h.jsx(Qm.Provider,{scope:t.__scopeRovingFocusGroup,children:h.jsx(Qm.Slot,{scope:t.__scopeRovingFocusGroup,children:h.jsx(HW,{...t,ref:e})})}));MT.displayName=xs;var HW=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=t,f=v.useRef(null),p=Se(e,f),m=to(i),[g,b]=jt({prop:a,defaultProp:s??null,onChange:l,caller:xs}),[y,w]=v.useState(!1),C=It(u),S=PT(n),E=v.useRef(!1),[T,A]=v.useState(0);return v.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(Yp,C),()=>O.removeEventListener(Yp,C)},[C]),h.jsx(VW,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:g,onItemFocus:v.useCallback(O=>b(O),[b]),onItemShiftTab:v.useCallback(()=>w(!0),[]),onFocusableItemAdd:v.useCallback(()=>A(O=>O+1),[]),onFocusableItemRemove:v.useCallback(()=>A(O=>O-1),[]),children:h.jsx(he.div,{tabIndex:y||T===0?-1:0,"data-orientation":r,...c,ref:p,style:{outline:"none",...t.style},onMouseDown:se(t.onMouseDown,()=>{E.current=!0}),onFocus:se(t.onFocus,O=>{const M=!E.current;if(O.target===O.currentTarget&&M&&!y){const V=new CustomEvent(Yp,FW);if(O.currentTarget.dispatchEvent(V),!V.defaultPrevented){const N=S().filter(P=>P.focusable),k=N.find(P=>P.active),_=N.find(P=>P.id===g),L=[k,_,...N].filter(Boolean).map(P=>P.ref.current);jT(L,d)}}E.current=!1}),onBlur:se(t.onBlur,()=>w(!1))})})}),kT="RovingFocusGroupItem",DT=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=t,l=ft(),u=i||l,d=WW(kT,n),c=d.currentTabStopId===u,f=PT(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:g}=d;return v.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),h.jsx(Qm.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:h.jsx(he.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...s,ref:e,onMouseDown:se(t.onMouseDown,b=>{r?d.onItemFocus(u):b.preventDefault()}),onFocus:se(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:se(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=XW(b,d.orientation,d.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")C.reverse();else if(y==="prev"||y==="next"){y==="prev"&&C.reverse();const S=C.indexOf(b.currentTarget);C=d.loop?YW(C,S+1):C.slice(S+1)}setTimeout(()=>jT(C))}}),children:typeof a=="function"?a({isCurrentTabStop:c,hasTabStop:g!=null}):a})})});DT.displayName=kT;var qW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function zW(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function XW(t,e,n){const r=zW(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return qW[r]}function jT(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function YW(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var Xb=MT,Yb=DT,eg=["Enter"," "],UW=["ArrowDown","PageUp","Home"],LT=["ArrowUp","PageDown","End"],ZW=[...UW,...LT],JW={ltr:[...eg,"ArrowRight"],rtl:[...eg,"ArrowLeft"]},KW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ws="Menu",[Wa,QW,eH]=ns(ws),[$o,BT]=At(ws,[eH,xr,Wi]),Cs=xr(),FT=Wi(),[GT,io]=$o(ws),[tH,Ss]=$o(ws),$T=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=t,s=Cs(e),[l,u]=v.useState(null),d=v.useRef(!1),c=It(i),f=to(o);return v.useEffect(()=>{const p=()=>{d.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>d.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),h.jsx($i,{...s,children:h.jsx(GT,{scope:e,open:n,onOpenChange:c,content:l,onContentChange:u,children:h.jsx(tH,{scope:e,onClose:v.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:d,dir:f,modal:a,children:r})})})};$T.displayName=ws;var nH="MenuAnchor",Ub=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,o=Cs(n);return h.jsx(Vi,{...o,...r,ref:e})});Ub.displayName=nH;var Zb="MenuPortal",[rH,VT]=$o(Zb,{forceMount:void 0}),WT=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:o}=t,i=io(Zb,e);return h.jsx(rH,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};WT.displayName=Zb;var En="MenuContent",[oH,Jb]=$o(En),HT=v.forwardRef((t,e)=>{const n=VT(En,t.__scopeMenu),{forceMount:r=n.forceMount,...o}=t,i=io(En,t.__scopeMenu),a=Ss(En,t.__scopeMenu);return h.jsx(Wa.Provider,{scope:t.__scopeMenu,children:h.jsx(pt,{present:r||i.open,children:h.jsx(Wa.Slot,{scope:t.__scopeMenu,children:a.modal?h.jsx(iH,{...o,ref:e}):h.jsx(aH,{...o,ref:e})})})})}),iH=v.forwardRef((t,e)=>{const n=io(En,t.__scopeMenu),r=v.useRef(null),o=Se(e,r);return v.useEffect(()=>{const i=r.current;if(i)return Gu(i)},[]),h.jsx(Kb,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:se(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),aH=v.forwardRef((t,e)=>{const n=io(En,t.__scopeMenu);return h.jsx(Kb,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),sH=wo("MenuContent.ScrollLock"),Kb=v.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...g}=t,b=io(En,n),y=Ss(En,n),w=Cs(n),C=FT(n),S=QW(n),[E,T]=v.useState(null),A=v.useRef(null),O=Se(e,A,b.onContentChange),M=v.useRef(0),V=v.useRef(""),N=v.useRef(0),k=v.useRef(null),_=v.useRef("right"),B=v.useRef(0),L=m?fs:v.Fragment,P=m?{as:sH,allowPinchZoom:!0}:void 0,G=H=>{const U=V.current+H,Q=S().filter(Y=>!Y.disabled),$=document.activeElement,q=Q.find(Y=>Y.ref.current===$)?.textValue,Z=Q.map(Y=>Y.textValue),X=yH(Z,U,q),te=Q.find(Y=>Y.textValue===X)?.ref.current;(function Y(J){V.current=J,window.clearTimeout(M.current),J!==""&&(M.current=window.setTimeout(()=>Y(""),1e3))})(U),te&&setTimeout(()=>te.focus())};v.useEffect(()=>()=>window.clearTimeout(M.current),[]),Bu();const j=v.useCallback(H=>_.current===k.current?.side&&wH(H,k.current?.area),[]);return h.jsx(oH,{scope:n,searchRef:V,onItemEnter:v.useCallback(H=>{j(H)&&H.preventDefault()},[j]),onItemLeave:v.useCallback(H=>{j(H)||(A.current?.focus(),T(null))},[j]),onTriggerLeave:v.useCallback(H=>{j(H)&&H.preventDefault()},[j]),pointerGraceTimerRef:N,onPointerGraceIntentChange:v.useCallback(H=>{k.current=H},[]),children:h.jsx(L,{...P,children:h.jsx(ds,{asChild:!0,trapped:o,onMountAutoFocus:se(i,H=>{H.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:f,onDismiss:p,children:h.jsx(Xb,{asChild:!0,...C,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:T,onEntryFocus:se(l,H=>{y.isUsingKeyboardRef.current||H.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(gs,{role:"menu","aria-orientation":"vertical","data-state":sN(b.open),"data-radix-menu-content":"",dir:y.dir,...w,...g,ref:O,style:{outline:"none",...g.style},onKeyDown:se(g.onKeyDown,H=>{const Q=H.target.closest("[data-radix-menu-content]")===H.currentTarget,$=H.ctrlKey||H.altKey||H.metaKey,q=H.key.length===1;Q&&(H.key==="Tab"&&H.preventDefault(),!$&&q&&G(H.key));const Z=A.current;if(H.target!==Z||!ZW.includes(H.key))return;H.preventDefault();const te=S().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);LT.includes(H.key)&&te.reverse(),bH(te)}),onBlur:se(t.onBlur,H=>{H.currentTarget.contains(H.target)||(window.clearTimeout(M.current),V.current="")}),onPointerMove:se(t.onPointerMove,Ha(H=>{const U=H.target,Q=B.current!==H.clientX;if(H.currentTarget.contains(U)&&Q){const $=H.clientX>B.current?"right":"left";_.current=$,B.current=H.clientX}}))})})})})})})});HT.displayName=En;var lH="MenuGroup",Qb=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return h.jsx(he.div,{role:"group",...r,ref:e})});Qb.displayName=lH;var uH="MenuLabel",qT=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return h.jsx(he.div,{...r,ref:e})});qT.displayName=uH;var Zl="MenuItem",Pw="menu.itemSelect",lc=v.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...o}=t,i=v.useRef(null),a=Ss(Zl,t.__scopeMenu),s=Jb(Zl,t.__scopeMenu),l=Se(e,i),u=v.useRef(!1),d=()=>{const c=i.current;if(!n&&c){const f=new CustomEvent(Pw,{bubbles:!0,cancelable:!0});c.addEventListener(Pw,p=>r?.(p),{once:!0}),mS(c,f),f.defaultPrevented?u.current=!1:a.onClose()}};return h.jsx(zT,{...o,ref:l,disabled:n,onClick:se(t.onClick,d),onPointerDown:c=>{t.onPointerDown?.(c),u.current=!0},onPointerUp:se(t.onPointerUp,c=>{u.current||c.currentTarget?.click()}),onKeyDown:se(t.onKeyDown,c=>{const f=s.searchRef.current!=="";n||f&&c.key===" "||eg.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});lc.displayName=Zl;var zT=v.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=t,a=Jb(Zl,n),s=FT(n),l=v.useRef(null),u=Se(e,l),[d,c]=v.useState(!1),[f,p]=v.useState("");return v.useEffect(()=>{const m=l.current;m&&p((m.textContent??"").trim())},[i.children]),h.jsx(Wa.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:h.jsx(Yb,{asChild:!0,...s,focusable:!r,children:h.jsx(he.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:se(t.onPointerMove,Ha(m=>{r?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:se(t.onPointerLeave,Ha(m=>a.onItemLeave(m))),onFocus:se(t.onFocus,()=>c(!0)),onBlur:se(t.onBlur,()=>c(!1))})})})}),cH="MenuCheckboxItem",XT=v.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...o}=t;return h.jsx(KT,{scope:t.__scopeMenu,checked:n,children:h.jsx(lc,{role:"menuitemcheckbox","aria-checked":Jl(n)?"mixed":n,...o,ref:e,"data-state":nv(n),onSelect:se(o.onSelect,()=>r?.(Jl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});XT.displayName=cH;var YT="MenuRadioGroup",[dH,fH]=$o(YT,{value:void 0,onValueChange:()=>{}}),UT=v.forwardRef((t,e)=>{const{value:n,onValueChange:r,...o}=t,i=It(r);return h.jsx(dH,{scope:t.__scopeMenu,value:n,onValueChange:i,children:h.jsx(Qb,{...o,ref:e})})});UT.displayName=YT;var ZT="MenuRadioItem",JT=v.forwardRef((t,e)=>{const{value:n,...r}=t,o=fH(ZT,t.__scopeMenu),i=n===o.value;return h.jsx(KT,{scope:t.__scopeMenu,checked:i,children:h.jsx(lc,{role:"menuitemradio","aria-checked":i,...r,ref:e,"data-state":nv(i),onSelect:se(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});JT.displayName=ZT;var ev="MenuItemIndicator",[KT,hH]=$o(ev,{checked:!1}),QT=v.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...o}=t,i=hH(ev,n);return h.jsx(pt,{present:r||Jl(i.checked)||i.checked===!0,children:h.jsx(he.span,{...o,ref:e,"data-state":nv(i.checked)})})});QT.displayName=ev;var pH="MenuSeparator",eN=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return h.jsx(he.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});eN.displayName=pH;var mH="MenuArrow",tN=v.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,o=Cs(n);return h.jsx(bs,{...o,...r,ref:e})});tN.displayName=mH;var tv="MenuSub",[gH,nN]=$o(tv),rN=t=>{const{__scopeMenu:e,children:n,open:r=!1,onOpenChange:o}=t,i=io(tv,e),a=Cs(e),[s,l]=v.useState(null),[u,d]=v.useState(null),c=It(o);return v.useEffect(()=>(i.open===!1&&c(!1),()=>c(!1)),[i.open,c]),h.jsx($i,{...a,children:h.jsx(GT,{scope:e,open:r,onOpenChange:c,content:u,onContentChange:d,children:h.jsx(gH,{scope:e,contentId:ft(),triggerId:ft(),trigger:s,onTriggerChange:l,children:n})})})};rN.displayName=tv;var xa="MenuSubTrigger",oN=v.forwardRef((t,e)=>{const n=io(xa,t.__scopeMenu),r=Ss(xa,t.__scopeMenu),o=nN(xa,t.__scopeMenu),i=Jb(xa,t.__scopeMenu),a=v.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,u={__scopeMenu:t.__scopeMenu},d=v.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return v.useEffect(()=>d,[d]),v.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),l(null)}},[s,l]),h.jsx(Ub,{asChild:!0,...u,children:h.jsx(zT,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":sN(n.open),...t,ref:dr(e,o.onTriggerChange),onClick:c=>{t.onClick?.(c),!(t.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:se(t.onPointerMove,Ha(c=>{i.onItemEnter(c),!c.defaultPrevented&&!t.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:se(t.onPointerLeave,Ha(c=>{d();const f=n.content?.getBoundingClientRect();if(f){const p=n.content?.dataset.side,m=p==="right",g=m?-5:5,b=f[m?"left":"right"],y=f[m?"right":"left"];i.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:b,y:f.top},{x:y,y:f.top},{x:y,y:f.bottom},{x:b,y:f.bottom}],side:p}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(c),c.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:se(t.onKeyDown,c=>{const f=i.searchRef.current!=="";t.disabled||f&&c.key===" "||JW[r.dir].includes(c.key)&&(n.onOpenChange(!0),n.content?.focus(),c.preventDefault())})})})});oN.displayName=xa;var iN="MenuSubContent",aN=v.forwardRef((t,e)=>{const n=VT(En,t.__scopeMenu),{forceMount:r=n.forceMount,...o}=t,i=io(En,t.__scopeMenu),a=Ss(En,t.__scopeMenu),s=nN(iN,t.__scopeMenu),l=v.useRef(null),u=Se(e,l);return h.jsx(Wa.Provider,{scope:t.__scopeMenu,children:h.jsx(pt,{present:r||i.open,children:h.jsx(Wa.Slot,{scope:t.__scopeMenu,children:h.jsx(Kb,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{a.isUsingKeyboardRef.current&&l.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:se(t.onFocusOutside,d=>{d.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:se(t.onEscapeKeyDown,d=>{a.onClose(),d.preventDefault()}),onKeyDown:se(t.onKeyDown,d=>{const c=d.currentTarget.contains(d.target),f=KW[a.dir].includes(d.key);c&&f&&(i.onOpenChange(!1),s.trigger?.focus(),d.preventDefault())})})})})})});aN.displayName=iN;function sN(t){return t?"open":"closed"}function Jl(t){return t==="indeterminate"}function nv(t){return Jl(t)?"indeterminate":t?"checked":"unchecked"}function bH(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function vH(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function yH(t,e,n){const o=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=vH(t,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function xH(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],l=e[a],u=s.x,d=s.y,c=l.x,f=l.y;d>r!=f>r&&n<(c-u)*(r-d)/(f-d)+u&&(o=!o)}return o}function wH(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return xH(n,e)}function Ha(t){return e=>e.pointerType==="mouse"?t(e):void 0}var CH=$T,SH=Ub,EH=WT,IH=HT,AH=Qb,TH=qT,NH=lc,_H=XT,OH=UT,RH=JT,PH=QT,MH=eN,kH=tN,DH=rN,jH=oN,LH=aN,uc="DropdownMenu",[BH]=At(uc,[BT]),Wt=BT(),[FH,lN]=BH(uc),uN=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,l=Wt(e),u=v.useRef(null),[d,c]=jt({prop:o,defaultProp:i??!1,onChange:a,caller:uc});return h.jsx(FH,{scope:e,triggerId:ft(),triggerRef:u,contentId:ft(),open:d,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(f=>!f),[c]),modal:s,children:h.jsx(CH,{...l,open:d,onOpenChange:c,dir:r,modal:s,children:n})})};uN.displayName=uc;var cN="DropdownMenuTrigger",dN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=t,i=lN(cN,n),a=Wt(n);return h.jsx(SH,{asChild:!0,...a,children:h.jsx(he.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:dr(e,i.triggerRef),onPointerDown:se(t.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:se(t.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});dN.displayName=cN;var GH="DropdownMenuPortal",fN=t=>{const{__scopeDropdownMenu:e,...n}=t,r=Wt(e);return h.jsx(EH,{...r,...n})};fN.displayName=GH;var hN="DropdownMenuContent",pN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=lN(hN,n),i=Wt(n),a=v.useRef(!1);return h.jsx(IH,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:e,onCloseAutoFocus:se(t.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:se(t.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,d=l.button===2||u;(!o.modal||d)&&(a.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});pN.displayName=hN;var $H="DropdownMenuGroup",mN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(AH,{...o,...r,ref:e})});mN.displayName=$H;var VH="DropdownMenuLabel",gN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(TH,{...o,...r,ref:e})});gN.displayName=VH;var WH="DropdownMenuItem",bN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(NH,{...o,...r,ref:e})});bN.displayName=WH;var HH="DropdownMenuCheckboxItem",vN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(_H,{...o,...r,ref:e})});vN.displayName=HH;var qH="DropdownMenuRadioGroup",yN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(OH,{...o,...r,ref:e})});yN.displayName=qH;var zH="DropdownMenuRadioItem",xN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(RH,{...o,...r,ref:e})});xN.displayName=zH;var XH="DropdownMenuItemIndicator",wN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(PH,{...o,...r,ref:e})});wN.displayName=XH;var YH="DropdownMenuSeparator",CN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(MH,{...o,...r,ref:e})});CN.displayName=YH;var UH="DropdownMenuArrow",ZH=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(kH,{...o,...r,ref:e})});ZH.displayName=UH;var JH=t=>{const{__scopeDropdownMenu:e,children:n,open:r,onOpenChange:o,defaultOpen:i}=t,a=Wt(e),[s,l]=jt({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return h.jsx(DH,{...a,open:s,onOpenChange:l,children:n})},KH="DropdownMenuSubTrigger",SN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(jH,{...o,...r,ref:e})});SN.displayName=KH;var QH="DropdownMenuSubContent",EN=v.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,o=Wt(n);return h.jsx(LH,{...o,...r,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});EN.displayName=QH;var eq=uN,tq=dN,IN=fN,nq=pN,rq=mN,oq=gN,iq=bN,aq=vN,sq=yN,lq=xN,AN=wN,uq=CN,cq=JH,dq=SN,fq=EN;function TN({...t}){return h.jsx(eq,{"data-slot":"dropdown-menu",...t})}function hq({...t}){return h.jsx(IN,{"data-slot":"dropdown-menu-portal",...t})}function NN({...t}){return h.jsx(tq,{"data-slot":"dropdown-menu-trigger",...t})}function _N({className:t,sideOffset:e=4,...n}){return h.jsx(IN,{children:h.jsx(nq,{"data-slot":"dropdown-menu-content",sideOffset:e,className:D("ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:max-h-(--radix-dropdown-menu-content-available-height) ui:min-w-[8rem] ui:origin-(--radix-dropdown-menu-content-transform-origin) ui:overflow-x-hidden ui:overflow-y-auto ui:rounded-md ui:border ui:p-1 ui:shadow-md",t),...n})})}function pq({...t}){return h.jsx(rq,{"data-slot":"dropdown-menu-group",...t})}function mq({className:t,inset:e,variant:n="default",...r}){return h.jsx(iq,{"data-slot":"dropdown-menu-item","data-inset":e,"data-variant":n,className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:data-[variant=destructive]:text-destructive ui:data-[variant=destructive]:focus:bg-destructive/10 ui:dark:data-[variant=destructive]:focus:bg-destructive/20 ui:data-[variant=destructive]:focus:text-destructive ui:data-[variant=destructive]:*:[svg]:!text-destructive ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:px-2 ui:py-1.5 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:data-[inset]:pl-8 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...r})}function tg({className:t,children:e,checked:n,...r}){return h.jsxs(aq,{"data-slot":"dropdown-menu-checkbox-item",className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-2 ui:pl-8 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),checked:n,...r,children:[h.jsx("span",{className:"ui:pointer-events-none ui:absolute ui:left-2 ui:flex size-3.5 ui:items-center ui:justify-center",children:h.jsx(AN,{children:h.jsx(Oa,{className:"ui:size-4"})})}),e]})}function gq({...t}){return h.jsx(sq,{"data-slot":"dropdown-menu-radio-group",...t})}function bq({className:t,children:e,...n}){return h.jsxs(lq,{"data-slot":"dropdown-menu-radio-item",className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:relative ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-2 ui:pl-8 ui:text-sm ui:outline-hidden ui:select-none ui:data-[disabled]:pointer-events-none ui:data-[disabled]:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...n,children:[h.jsx("span",{className:"ui:pointer-events-none ui:absolute ui:left-2 ui:flex size-3.5 ui:items-center ui:justify-center",children:h.jsx(AN,{children:h.jsx(DS,{className:"ui:size-2 ui:fill-current"})})}),e]})}function vq({className:t,inset:e,...n}){return h.jsx(oq,{"data-slot":"dropdown-menu-label","data-inset":e,className:D("ui:px-2 ui:py-1.5 ui:text-sm ui:font-medium ui:data-[inset]:pl-8",t),...n})}function yq({className:t,...e}){return h.jsx(uq,{"data-slot":"dropdown-menu-separator",className:D("ui:bg-border ui:-mx-1 ui:my-1 ui:h-px",t),...e})}function xq({className:t,...e}){return h.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:D("ui:text-muted-foreground ui:ml-auto ui:text-xs ui:tracking-widest",t),...e})}function wq({...t}){return h.jsx(cq,{"data-slot":"dropdown-menu-sub",...t})}function Cq({className:t,inset:e,children:n,...r}){return h.jsxs(dq,{"data-slot":"dropdown-menu-sub-trigger","data-inset":e,className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:data-[state=open]:bg-accent ui:data-[state=open]:text-accent-foreground ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:flex ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:px-2 ui:py-1.5 ui:text-sm ui:outline-hidden ui:select-none ui:data-[inset]:pl-8 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...r,children:[n,h.jsx(wu,{className:"ui:ml-auto ui:size-4"})]})}function Sq({className:t,...e}){return h.jsx(fq,{"data-slot":"dropdown-menu-sub-content",className:D("ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:min-w-[8rem] ui:origin-(--radix-dropdown-menu-content-transform-origin) ui:overflow-hidden ui:rounded-md ui:border ui:p-1 ui:shadow-lg",t),...e})}function Eq({className:t,...e}){return h.jsx("div",{"data-slot":"empty",className:D("ui:flex ui:min-w-0 ui:flex-1 ui:flex-col ui:items-center ui:justify-center ui:gap-6 ui:rounded-lg ui:border-dashed ui:p-6 ui:text-center ui:text-balance ui:md:p-12",t),...e})}function Iq({className:t,...e}){return h.jsx("div",{"data-slot":"empty-header",className:D("ui:flex ui:max-w-sm ui:flex-col ui:items-center ui:gap-2 ui:text-center",t),...e})}const Aq=Bi("ui:flex ui:shrink-0 ui:items-center ui:justify-center ui:mb-2 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0",{variants:{variant:{default:"ui:bg-transparent",icon:"ui:bg-muted ui:text-foreground ui:flex ui:size-10 ui:shrink-0 ui:items-center ui:justify-center ui:rounded-lg ui:[&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});function Tq({className:t,variant:e="default",...n}){return h.jsx("div",{"data-slot":"empty-icon","data-variant":e,className:D(Aq({variant:e,className:t})),...n})}function Nq({className:t,...e}){return h.jsx("div",{"data-slot":"empty-title",className:D("ui:text-lg ui:font-medium ui:tracking-tight",t),...e})}function _q({className:t,...e}){return h.jsx("div",{"data-slot":"empty-description",className:D("ui:text-muted-foreground ui:[&>a:hover]:text-primary ui:text-sm/relaxed ui:[&>a]:underline ui:[&>a]:underline-offset-4",t),...e})}function Oq({className:t,...e}){return h.jsx("div",{"data-slot":"empty-content",className:D("ui:flex ui:w-full ui:max-w-sm ui:min-w-0 ui:flex-col ui:items-center ui:gap-4 ui:text-sm ui:text-balance",t),...e})}function ON({message:t,className:e}){return h.jsx("p",{className:D("ui:text-red-500 ui:text-xs ui:mt-2 ui:has-error",e),children:t})}const Rq=({name:t,formClassName:e,...n})=>{const r=hn();if(!r)throw new Error("FormCheckbox must be used within a FormProvider from react-hook-form");const{control:o}=r;return h.jsx(Yn,{control:o,name:t,render:({field:i})=>h.jsxs(In,{className:e,children:[h.jsx(fn,{children:h.jsx(RA,{...i,onCheckedChange:i.onChange,...n})}),h.jsx(Un,{})]})})};var RN=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pq="VisuallyHidden",PN=v.forwardRef((t,e)=>h.jsx(he.span,{...t,ref:e,style:{...RN,...t.style}}));PN.displayName=Pq;var Mq=PN,[cc]=At("Tooltip",[xr]),dc=xr(),MN="TooltipProvider",kq=700,ng="tooltip.open",[Dq,rv]=cc(MN),kN=t=>{const{__scopeTooltip:e,delayDuration:n=kq,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=t,a=v.useRef(!0),s=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),h.jsx(Dq,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(u=>{s.current=u},[]),disableHoverableContent:o,children:i})};kN.displayName=MN;var qa="Tooltip",[jq,Es]=cc(qa),DN=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=t,l=rv(qa,t.__scopeTooltip),u=dc(e),[d,c]=v.useState(null),f=ft(),p=v.useRef(0),m=a??l.disableHoverableContent,g=s??l.delayDuration,b=v.useRef(!1),[y,w]=jt({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(ng))):l.onClose(),i?.(A)},caller:qa}),C=v.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),S=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,b.current=!1,w(!0)},[w]),E=v.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),T=v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{b.current=!0,w(!0),p.current=0},g)},[g,w]);return v.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx($i,{...u,children:h.jsx(jq,{scope:e,contentId:f,open:y,stateAttribute:C,trigger:d,onTriggerChange:c,onTriggerEnter:v.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:v.useCallback(()=>{m?E():(window.clearTimeout(p.current),p.current=0)},[E,m]),onOpen:S,onClose:E,disableHoverableContent:m,children:n})})};DN.displayName=qa;var rg="TooltipTrigger",jN=v.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,o=Es(rg,n),i=rv(rg,n),a=dc(n),s=v.useRef(null),l=Se(e,s,o.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),c=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),h.jsx(Vi,{asChild:!0,...a,children:h.jsx(he.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:se(t.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:se(t.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:se(t.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:se(t.onFocus,()=>{u.current||o.onOpen()}),onBlur:se(t.onBlur,o.onClose),onClick:se(t.onClick,o.onClose)})})});jN.displayName=rg;var ov="TooltipPortal",[Lq,Bq]=cc(ov,{forceMount:void 0}),LN=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:o}=t,i=Es(ov,e);return h.jsx(Lq,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};LN.displayName=ov;var Ni="TooltipContent",BN=v.forwardRef((t,e)=>{const n=Bq(Ni,t.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=t,a=Es(Ni,t.__scopeTooltip);return h.jsx(pt,{present:r||a.open,children:a.disableHoverableContent?h.jsx(FN,{side:o,...i,ref:e}):h.jsx(Fq,{side:o,...i,ref:e})})}),Fq=v.forwardRef((t,e)=>{const n=Es(Ni,t.__scopeTooltip),r=rv(Ni,t.__scopeTooltip),o=v.useRef(null),i=Se(e,o),[a,s]=v.useState(null),{trigger:l,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,f=v.useCallback(()=>{s(null),c(!1)},[c]),p=v.useCallback((m,g)=>{const b=m.currentTarget,y={x:m.clientX,y:m.clientY},w=Wq(y,b.getBoundingClientRect()),C=Hq(y,w),S=qq(g.getBoundingClientRect()),E=Xq([...C,...S]);s(E),c(!0)},[c]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(l&&d){const m=b=>p(b,d),g=b=>p(b,l);return l.addEventListener("pointerleave",m),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",g)}}},[l,d,p,f]),v.useEffect(()=>{if(a){const m=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},w=l?.contains(b)||d?.contains(b),C=!zq(y,a);w?f():C&&(f(),u())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,d,a,u,f]),h.jsx(FN,{...t,ref:i})}),[Gq,$q]=cc(qa,{isInside:!1}),Vq=HP("TooltipContent"),FN=v.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=t,l=Es(Ni,n),u=dc(n),{onClose:d}=l;return v.useEffect(()=>(document.addEventListener(ng,d),()=>document.removeEventListener(ng,d)),[d]),v.useEffect(()=>{if(l.trigger){const c=f=>{f.target?.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:h.jsxs(gs,{"data-state":l.stateAttribute,...u,...s,ref:e,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(Vq,{children:r}),h.jsx(Gq,{scope:n,isInside:!0,children:h.jsx(Mq,{id:l.contentId,role:"tooltip",children:o||r})})]})})});BN.displayName=Ni;var GN="TooltipArrow",$N=v.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,o=dc(n);return $q(GN,n).isInside?null:h.jsx(bs,{...o,...r,ref:e})});$N.displayName=GN;function Wq(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Hq(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function qq(t){const{top:e,right:n,bottom:r,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:r},{x:o,y:r}]}function zq(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],l=e[a],u=s.x,d=s.y,c=l.x,f=l.y;d>r!=f>r&&n<(c-u)*(r-d)/(f-d)+u&&(o=!o)}return o}function Xq(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Yq(e)}function Yq(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const o=t[r];for(;e.length>=2;){const i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const o=t[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var Uq=kN,Zq=DN,Jq=jN,VN=LN,WN=BN,Kq=$N;function iv({delayDuration:t=0,...e}){return h.jsx(Uq,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function av({...t}){return h.jsx(iv,{children:h.jsx(Zq,{"data-slot":"tooltip",...t})})}function sv({...t}){return h.jsx(Jq,{"data-slot":"tooltip-trigger",...t})}function fc({className:t,sideOffset:e=0,children:n,...r}){return h.jsx(VN,{children:h.jsxs(WN,{"data-slot":"tooltip-content",sideOffset:e,className:D("ui:bg-foreground ui:ext-background ui:animate-in ui:fade-in-0 ui:zoom-in-95 ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=closed]:zoom-out-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:w-fit ui:origin-(--radix-tooltip-content-transform-origin) ui:rounded-md ui:px-3 ui:py-1.5 ui:text-xs ui:text-balance",t),...r,children:[n,h.jsx(Kq,{className:"ui:bg-foreground ui:fill-foreground ui:z-50 ui:size-2.5 ui:translate-y-[calc(-50%_-_2px)] ui:rotate-45 ui:rounded-[2px]"})]})})}const HN=v.forwardRef(({children:t,...e},n)=>h.jsx(VN,{children:h.jsx(fc,{ref:n,...e,children:t})}));HN.displayName=WN.displayName;const Hi=({trigger:t,content:e,asChild:n=!0,wrapTrigger:r=!0,triggerClassName:o="",contentClassName:i="ui:max-w-sm",disableContent:a=!1,isPortal:s=!1})=>a?t:h.jsxs(av,{children:[h.jsx(sv,{asChild:n,children:r?h.jsx("div",{className:D("ui:truncate",o),children:t}):t}),s?h.jsx(HN,{className:i,children:e}):h.jsx(fc,{className:i,children:e})]}),Qq=({name:t,label:e,triggerPlaceholder:n,inputPlaceholder:r,options:o=[],description:i,isMultiSelect:a=!1,emptyMessage:s,containerClassName:l,contentClassName:u,contentListClassName:d,avoidCollisions:c=!0,hasClearButton:f=!0,hasAllOption:p=!1,allOptionLabel:m="All",closeOnSelect:g=!1,onInputChange:b,isDisabled:y=!1,tooltipContent:w})=>{const C=hn();if(!C)throw new Error("FormCombobox must be used within a FormProvider from react-hook-form");const{control:S,setValue:E}=C,T=(O,M)=>{(Array.isArray(O)?O:[O])?.length===M.length?E(t,[],{shouldValidate:!0}):E(t,M.map(({value:N})=>N),{shouldValidate:!0})},A=(O,M)=>{if(a){const V=Array.isArray(O)?O:[O];V.includes(M.value)?E(t,V.filter(N=>N!==M.value),{shouldValidate:!0}):E(t,[...V,M.value],{shouldValidate:!0})}else E(t,M.value,{shouldValidate:!0})};return h.jsx(Yn,{control:S,name:t,render:({field:O})=>h.jsxs(In,{className:D("ui:flex ui:flex-col",l),children:[e&&h.jsxs(pr,{className:D({"ui:flex ui:items-center ui:gap-2":f&&O.value||!!w}),children:[e,f&&(Array.isArray(O.value)?O.value.length>0:O.value)&&h.jsx(Su,{className:"ui:cursor-pointer",onClick:M=>{M.preventDefault(),E(t,a?[]:"",{shouldValidate:!0})},size:"16",color:"red"}),w&&h.jsx(Hi,{triggerClassName:"ui:order-last",content:w,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:cursor-pointer ui:text-segmentify-gray-500"})})]}),a?h.jsx(Zm,{value:O.value,onInputChange:b,handleSelectItem:A,handleSelectAll:T,closeOnSelect:g,options:o,triggerPlaceholder:n,inputPlaceholder:r,emptyMessage:s,contentClassName:u,contentListClassName:d,isDisabled:y,isMultiSelect:!0,hasAllOption:p,allOptionLabel:m,avoidCollisions:c,isFormControlWrapper:!0}):h.jsx(Zm,{value:O.value,onInputChange:b,handleSelectItem:A,closeOnSelect:g,options:o,triggerPlaceholder:n,inputPlaceholder:r,emptyMessage:s,contentClassName:u,contentListClassName:d,isDisabled:y,avoidCollisions:c,isFormControlWrapper:!0}),i&&h.jsx(wr,{children:i}),h.jsx(Un,{})]})})},ez=({name:t,disabledCondition:e=!1,label:n,placeholder:r,description:o,containerClassName:i,triggerClassName:a,showErrorPlaceholder:s})=>{const l=hn();if(!l)throw new Error("FormDatePicker must be used within a FormProvider from react-hook-form");const{control:u}=l;return h.jsx(Yn,{control:u,name:t,render:({field:d})=>h.jsxs(In,{className:D("ui:flex ui:flex-col",i),children:[h.jsx(fr,{children:h.jsx(Yt,{condition:!!n,children:h.jsx(pr,{children:n})})}),h.jsxs(rc,{children:[h.jsx(oc,{asChild:!0,children:h.jsx(fn,{children:h.jsxs(en,{variant:"outline",className:D("ui:w-[240px] ui:pl-3 ui:text-left ui:font-normal",!d.value&&"ui:text-muted-foreground",a),children:[d.value?Ln(new Date(d.value),"dd/MM/yyyy"):h.jsx("span",{children:r}),h.jsx(PS,{className:"ui:ml-auto ui:h-4 ui:w-4 ui:opacity-50"})]})})}),h.jsx(ic,{className:"ui:w-auto ui:p-0",align:"start",children:h.jsx(nb,{mode:"single",selected:d.value?new Date(d.value):void 0,onSelect:c=>{c&&d.onChange(c)},disabled:e,initialFocus:!0})})]}),h.jsx(fr,{children:h.jsx(Yt,{condition:!!o,children:h.jsx(wr,{children:o})})}),h.jsx(Un,{showErrorPlaceholder:s})]})})};function tz(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const nz=t=>{switch(t){case"success":return iz;case"info":return sz;case"warning":return az;case"error":return lz;default:return null}},rz=Array(12).fill(0),oz=({visible:t,className:e})=>I.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},I.createElement("div",{className:"sonner-spinner"},rz.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),iz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),az=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),sz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),lz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),uz=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),cz=()=>{const[t,e]=I.useState(document.hidden);return I.useEffect(()=>{const n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t};let og=1;class dz{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:r,...o}=e,i=typeof e?.id=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:og++,a=this.toasts.find(l=>l.id===i),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...e,id:i,title:r}),{...l,...e,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(e instanceof Function?e():e);let i=r!==void 0,a;const s=o.then(async u=>{if(a=["resolve",u],I.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(hz(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,m=typeof c=="object"&&!I.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...m})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!I.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...m})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,m=typeof c=="object"&&!I.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...m})}}).catch(async u=>{if(a=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,p=typeof d=="object"&&!I.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...p})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>a[0]==="reject"?d(a[1]):u(a[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(e,n)=>{const r=n?.id||og++;return this.create({jsx:e(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Qt=new dz,fz=(t,e)=>{const n=e?.id||og++;return Qt.addToast({title:t,...e,id:n}),n},hz=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",pz=fz,mz=()=>Qt.toasts,gz=()=>Qt.getActiveToasts(),bz=Object.assign(pz,{success:Qt.success,info:Qt.info,warning:Qt.warning,error:Qt.error,custom:Qt.custom,message:Qt.message,promise:Qt.promise,dismiss:Qt.dismiss,loading:Qt.loading},{getHistory:mz,getToasts:gz});tz("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ll(t){return t.label!==void 0}const vz=3,yz="24px",xz="16px",Mw=4e3,wz=356,Cz=14,Sz=45,Ez=200;function tr(...t){return t.filter(Boolean).join(" ")}function Iz(t){const[e,n]=t.split("-"),r=[];return e&&r.push(e),n&&r.push(n),r}const Az=t=>{var e,n,r,o,i,a,s,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:m,visibleToasts:g,heights:b,index:y,toasts:w,expanded:C,removeToast:S,defaultRichColors:E,closeButton:T,style:A,cancelButtonStyle:O,actionButtonStyle:M,className:V="",descriptionClassName:N="",duration:k,position:_,gap:B,expandByDefault:L,classNames:P,icons:G,closeButtonAriaLabel:j="Close toast"}=t,[H,U]=I.useState(null),[Q,$]=I.useState(null),[q,Z]=I.useState(!1),[X,te]=I.useState(!1),[Y,J]=I.useState(!1),[ie,oe]=I.useState(!1),[re,z]=I.useState(!1),[ue,W]=I.useState(0),[le,Ae]=I.useState(0),Ne=I.useRef(c.duration||k||Mw),Ve=I.useRef(null),Ie=I.useRef(null),Re=y===0,at=y+1<=g,Me=c.type,Ge=c.dismissible!==!1,We=c.className||"",Qe=c.descriptionClassName||"",st=I.useMemo(()=>b.findIndex(ae=>ae.toastId===c.id)||0,[b,c.id]),it=I.useMemo(()=>{var ae;return(ae=c.closeButton)!=null?ae:T},[c.closeButton,T]),mt=I.useMemo(()=>c.duration||k||Mw,[c.duration,k]),bt=I.useRef(0),Le=I.useRef(0),_t=I.useRef(0),tt=I.useRef(null),[lt,Ot]=_.split("-"),Rt=I.useMemo(()=>b.reduce((ae,_e,ke)=>ke>=st?ae:ae+_e.height,0),[b,st]),rn=cz(),Ht=c.invert||d,Pt=Me==="loading";Le.current=I.useMemo(()=>st*B+Rt,[st,Rt]),I.useEffect(()=>{Ne.current=mt},[mt]),I.useEffect(()=>{Z(!0)},[]),I.useEffect(()=>{const ae=Ie.current;if(ae){const _e=ae.getBoundingClientRect().height;return Ae(_e),m(ke=>[{toastId:c.id,height:_e,position:c.position},...ke]),()=>m(ke=>ke.filter(De=>De.toastId!==c.id))}},[m,c.id]),I.useLayoutEffect(()=>{if(!q)return;const ae=Ie.current,_e=ae.style.height;ae.style.height="auto";const ke=ae.getBoundingClientRect().height;ae.style.height=_e,Ae(ke),m(De=>De.find(je=>je.toastId===c.id)?De.map(je=>je.toastId===c.id?{...je,height:ke}:je):[{toastId:c.id,height:ke,position:c.position},...De])},[q,c.title,c.description,m,c.id,c.jsx,c.action,c.cancel]);const ne=I.useCallback(()=>{te(!0),W(Le.current),m(ae=>ae.filter(_e=>_e.toastId!==c.id)),setTimeout(()=>{S(c)},Ez)},[c,S,m,Le]);I.useEffect(()=>{if(c.promise&&Me==="loading"||c.duration===1/0||c.type==="loading")return;let ae;return C||p||rn?(()=>{if(_t.current<bt.current){const De=new Date().getTime()-bt.current;Ne.current=Ne.current-De}_t.current=new Date().getTime()})():Ne.current!==1/0&&(bt.current=new Date().getTime(),ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),ne()},Ne.current)),()=>clearTimeout(ae)},[C,p,c,Me,rn,ne]),I.useEffect(()=>{c.delete&&(ne(),c.onDismiss==null||c.onDismiss.call(c,c))},[ne,c.delete]);function fe(){var ae;if(G?.loading){var _e;return I.createElement("div",{className:tr(P?.loader,c==null||(_e=c.classNames)==null?void 0:_e.loader,"sonner-loader"),"data-visible":Me==="loading"},G.loading)}return I.createElement(oz,{className:tr(P?.loader,c==null||(ae=c.classNames)==null?void 0:ae.loader),visible:Me==="loading"})}const ce=c.icon||G?.[Me]||nz(Me);var de,Te;return I.createElement("li",{tabIndex:0,ref:Ie,className:tr(V,We,P?.toast,c==null||(e=c.classNames)==null?void 0:e.toast,P?.default,P?.[Me],c==null||(n=c.classNames)==null?void 0:n[Me]),"data-sonner-toast":"","data-rich-colors":(de=c.richColors)!=null?de:E,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":q,"data-promise":!!c.promise,"data-swiped":re,"data-removed":X,"data-visible":at,"data-y-position":lt,"data-x-position":Ot,"data-index":y,"data-front":Re,"data-swiping":Y,"data-dismissible":Ge,"data-type":Me,"data-invert":Ht,"data-swipe-out":ie,"data-swipe-direction":Q,"data-expanded":!!(C||L&&q),"data-testid":c.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${X?ue:Le.current}px`,"--initial-height":L?"auto":`${le}px`,...A,...c.style},onDragEnd:()=>{J(!1),U(null),tt.current=null},onPointerDown:ae=>{ae.button!==2&&(Pt||!Ge||(Ve.current=new Date,W(Le.current),ae.target.setPointerCapture(ae.pointerId),ae.target.tagName!=="BUTTON"&&(J(!0),tt.current={x:ae.clientX,y:ae.clientY})))},onPointerUp:()=>{var ae,_e,ke;if(ie||!Ge)return;tt.current=null;const De=Number(((ae=Ie.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nt=Number(((_e=Ie.current)==null?void 0:_e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((ke=Ve.current)==null?void 0:ke.getTime()),Be=H==="x"?De:nt,on=Math.abs(Be)/je;if(Math.abs(Be)>=Sz||on>.11){W(Le.current),c.onDismiss==null||c.onDismiss.call(c,c),$(H==="x"?De>0?"right":"left":nt>0?"down":"up"),ne(),oe(!0);return}else{var Tt,qt;(Tt=Ie.current)==null||Tt.style.setProperty("--swipe-amount-x","0px"),(qt=Ie.current)==null||qt.style.setProperty("--swipe-amount-y","0px")}z(!1),J(!1),U(null)},onPointerMove:ae=>{var _e,ke,De;if(!tt.current||!Ge||((_e=window.getSelection())==null?void 0:_e.toString().length)>0)return;const je=ae.clientY-tt.current.y,Be=ae.clientX-tt.current.x;var on;const Tt=(on=t.swipeDirections)!=null?on:Iz(_);!H&&(Math.abs(Be)>1||Math.abs(je)>1)&&U(Math.abs(Be)>Math.abs(je)?"x":"y");let qt={x:0,y:0};const co=an=>1/(1.5+Math.abs(an)/20);if(H==="y"){if(Tt.includes("top")||Tt.includes("bottom"))if(Tt.includes("top")&&je<0||Tt.includes("bottom")&&je>0)qt.y=je;else{const an=je*co(je);qt.y=Math.abs(an)<Math.abs(je)?an:je}}else if(H==="x"&&(Tt.includes("left")||Tt.includes("right")))if(Tt.includes("left")&&Be<0||Tt.includes("right")&&Be>0)qt.x=Be;else{const an=Be*co(Be);qt.x=Math.abs(an)<Math.abs(Be)?an:Be}(Math.abs(qt.x)>0||Math.abs(qt.y)>0)&&z(!0),(ke=Ie.current)==null||ke.style.setProperty("--swipe-amount-x",`${qt.x}px`),(De=Ie.current)==null||De.style.setProperty("--swipe-amount-y",`${qt.y}px`)}},it&&!c.jsx&&Me!=="loading"?I.createElement("button",{"aria-label":j,"data-disabled":Pt,"data-close-button":!0,onClick:Pt||!Ge?()=>{}:()=>{ne(),c.onDismiss==null||c.onDismiss.call(c,c)},className:tr(P?.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(Te=G?.close)!=null?Te:uz):null,(Me||c.icon||c.promise)&&c.icon!==null&&(G?.[Me]!==null||c.icon)?I.createElement("div",{"data-icon":"",className:tr(P?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||fe():null,c.type!=="loading"?ce:null):null,I.createElement("div",{"data-content":"",className:tr(P?.content,c==null||(i=c.classNames)==null?void 0:i.content)},I.createElement("div",{"data-title":"",className:tr(P?.title,c==null||(a=c.classNames)==null?void 0:a.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?I.createElement("div",{"data-description":"",className:tr(N,Qe,P?.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),I.isValidElement(c.cancel)?c.cancel:c.cancel&&ll(c.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||O,onClick:ae=>{ll(c.cancel)&&Ge&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,ae),ne())},className:tr(P?.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,I.isValidElement(c.action)?c.action:c.action&&ll(c.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||M,onClick:ae=>{ll(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,ae),!ae.defaultPrevented&&ne())},className:tr(P?.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function kw(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function Tz(t,e){const n={};return[t,e].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?xz:yz;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${a}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const Nz=I.forwardRef(function(e,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:p,duration:m,style:g,visibleToasts:b=vz,toastOptions:y,dir:w=kw(),gap:C=Cz,icons:S,containerAriaLabel:E="Notifications"}=e,[T,A]=I.useState([]),O=I.useMemo(()=>r?T.filter(q=>q.toasterId===r):T.filter(q=>!q.toasterId),[T,r]),M=I.useMemo(()=>Array.from(new Set([i].concat(O.filter(q=>q.position).map(q=>q.position)))),[O,i]),[V,N]=I.useState([]),[k,_]=I.useState(!1),[B,L]=I.useState(!1),[P,G]=I.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=I.useRef(null),H=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=I.useRef(null),Q=I.useRef(!1),$=I.useCallback(q=>{A(Z=>{var X;return(X=Z.find(te=>te.id===q.id))!=null&&X.delete||Qt.dismiss(q.id),Z.filter(({id:te})=>te!==q.id)})},[]);return I.useEffect(()=>Qt.subscribe(q=>{if(q.dismiss){requestAnimationFrame(()=>{A(Z=>Z.map(X=>X.id===q.id?{...X,delete:!0}:X))});return}setTimeout(()=>{gu.flushSync(()=>{A(Z=>{const X=Z.findIndex(te=>te.id===q.id);return X!==-1?[...Z.slice(0,X),{...Z[X],...q},...Z.slice(X+1)]:[q,...Z]})})})}),[T]),I.useEffect(()=>{if(f!=="system"){G(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:Z})=>{G(Z?"dark":"light")})}catch{q.addListener(({matches:X})=>{try{G(X?"dark":"light")}catch(te){console.error(te)}})}},[f]),I.useEffect(()=>{T.length<=1&&_(!1)},[T]),I.useEffect(()=>{const q=Z=>{var X;if(a.every(J=>Z[J]||Z.code===J)){var Y;_(!0),(Y=j.current)==null||Y.focus()}Z.code==="Escape"&&(document.activeElement===j.current||(X=j.current)!=null&&X.contains(document.activeElement))&&_(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[a]),I.useEffect(()=>{if(j.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,Q.current=!1)}},[j.current]),I.createElement("section",{ref:n,"aria-label":`${E} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((q,Z)=>{var X;const[te,Y]=q.split("-");return O.length?I.createElement("ol",{key:q,dir:w==="auto"?kw():w,tabIndex:-1,ref:j,className:u,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":te,"data-x-position":Y,style:{"--front-toast-height":`${((X=V[0])==null?void 0:X.height)||0}px`,"--width":`${wz}px`,"--gap":`${C}px`,...g,...Tz(d,c)},onBlur:J=>{Q.current&&!J.currentTarget.contains(J.relatedTarget)&&(Q.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||Q.current||(Q.current=!0,U.current=J.relatedTarget)},onMouseEnter:()=>_(!0),onMouseMove:()=>_(!0),onMouseLeave:()=>{B||_(!1)},onDragEnd:()=>_(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},O.filter(J=>!J.position&&Z===0||J.position===q).map((J,ie)=>{var oe,re;return I.createElement(Az,{key:J.id,icons:S,index:ie,toast:J,defaultRichColors:p,duration:(oe=y?.duration)!=null?oe:m,className:y?.className,descriptionClassName:y?.descriptionClassName,invert:o,visibleToasts:b,closeButton:(re=y?.closeButton)!=null?re:l,interacting:B,position:q,style:y?.style,unstyled:y?.unstyled,classNames:y?.classNames,cancelButtonStyle:y?.cancelButtonStyle,actionButtonStyle:y?.actionButtonStyle,closeButtonAriaLabel:y?.closeButtonAriaLabel,removeToast:$,toasts:O.filter(z=>z.position==J.position),heights:V.filter(z=>z.position==J.position),setHeights:N,expandByDefault:s,gap:C,expanded:k,swipeDirections:e.swipeDirections})})):null}))}),_z=t=>{if(t===0)return"0 Bytes";const e=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(t)/Math.log(e));return parseFloat((t/Math.pow(e,r)).toFixed(2))+" "+n[r]},Oz=t=>t.type.startsWith("image/"),Rz=({uploadedFile:t,onRemove:e})=>h.jsx("div",{className:"ui:p-3 ui:bg-muted/50 ui:border ui:border-border ui:rounded-lg",children:h.jsxs("div",{className:"ui:flex ui:items-center ui:justify-between ui:gap-3",children:[h.jsxs("div",{className:"ui:flex ui:items-center ui:gap-3 ui:min-w-0",children:[Oz(t.file)?h.jsx("img",{src:t.url,alt:t.file.name,className:"ui:shrink-0 ui:w-10 ui:h-10 ui:object-cover ui:rounded-md"}):h.jsx("div",{className:"ui:shrink-0 ui:p-2 ui:bg-primary/10 ui:rounded-md",children:h.jsx(Q2,{size:20,className:"ui:text-primary"})}),h.jsxs("div",{className:"ui:min-w-0",children:[h.jsx("p",{className:"ui:text-sm ui:font-medium ui:text-foreground ui:truncate",children:t.file.name}),h.jsx("p",{className:"ui:text-xs ui:text-muted-foreground",children:_z(t.file.size)})]})]}),h.jsx(Ug,{variant:"ghost",size:"sm",isIconOnly:!0,prefix:!0,onClick:e,icon:h.jsx(Su,{size:16}),className:D("ui:shrink-0 ui:text-muted-foreground","ui:hover:text-destructive ui:hover:bg-destructive/10")})]})}),qN=({name:t,label:e,uploadButtonLabel:n="Upload File",description:r,accept:o="*",disabled:i=!1,multiple:a=!1,containerClassName:s,tooltipContent:l,hasRequiredIndicator:u=!1,onUpload:d})=>{const c=hn();if(!c)throw new Error("FormFileUpload must be used within a FormProvider from react-hook-form");const{control:f}=c,p=I.useRef(null),[m,g]=I.useState(!1),b=async(w,C,S)=>{const E=w.target.files;if(E?.length){g(!0);try{if(a){const T=Array.from(E),A=[];for(const M of T){const V=d?await d(M):URL.createObjectURL(M);A.push({file:M,url:V})}const O=Array.isArray(S)?S:[];C([...O,...A])}else{const T=E[0],A=d?await d(T):URL.createObjectURL(T);C({file:T,url:A})}}catch(T){const A=T instanceof Error?T.message:"Upload failed";bz.error(A)}finally{g(!1),p.current&&(p.current.value="")}}},y=(w,C,S)=>{if(a&&Array.isArray(C)&&S){const E=C.filter(T=>T!==S);w(E.length>0?E:null)}else w(null);p.current&&(p.current.value="")};return h.jsx(Yn,{control:f,name:t,render:({field:w})=>{const C=w.value,S=a?Array.isArray(C)?C:[]:C&&"file"in C?[C]:[];return h.jsxs(In,{className:D("ui:w-full",s),children:[e&&h.jsxs(pr,{className:D({"ui:flex ui:items-center ui:gap-2":!!l}),children:[e,u&&h.jsx("span",{children:"*"}),l&&h.jsx(Hi,{content:l,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:text-muted-foreground ui:cursor-pointer"})})]}),h.jsx(fn,{children:h.jsxs("div",{className:"ui:space-y-3",children:[h.jsxs("div",{className:"ui:relative ui:inline-block",children:[h.jsx("input",{ref:p,type:"file",accept:o,multiple:a,onChange:E=>b(E,w.onChange,C),disabled:i||m,className:D("ui:absolute ui:inset-0 ui:w-full ui:h-full ui:opacity-0 ui:cursor-pointer","ui:disabled:cursor-not-allowed")}),h.jsx(Ug,{variant:"outline",label:m?"Uploading...":n,prefix:!0,icon:m?h.jsx(Cu,{size:16,className:"ui:animate-spin"}):h.jsx(dM,{size:16}),disabled:i||m})]}),S.length>0&&h.jsx("div",{className:"ui:space-y-2",children:S.map((E,T)=>h.jsx(Rz,{uploadedFile:E,onRemove:()=>y(w.onChange,C,E)},`${E.file.name}-${E.file.size}-${T}`))})]})}),h.jsx(Un,{}),r&&h.jsx(wr,{children:r})]})}})};qN.displayName="FormFileUpload";const lv=I.forwardRef(({name:t,label:e,labelVariant:n,type:r,value:o,onChange:i,description:a="",placeholder:s,className:l,inputClassName:u,isReadOnly:d=!1,hasRequiredIndicator:c=!1,...f},p)=>h.jsxs("article",{className:l,children:[e&&h.jsxs(Tn,{variant:n,className:"ui:mb-2",children:[e,c&&h.jsx("span",{children:"*"})]}),h.jsx(sc,{ref:p,"data-test-id":t,placeholder:s,value:o,type:r,onChange:i,className:D({"ui:pointer-events-none ui:opacity-30":d},u),...f}),a&&h.jsx(Ju,{description:a})]})),Pz=({label:t,containerClassName:e,name:n,description:r,placeholder:o="",tooltipContent:i,hasRequiredIndicator:a=!1,control:s,...l})=>{const u=hn(),d=s||u?.control;if(!d)throw new Error("FormInput must be used within a FormProvider or receive a control prop");return h.jsx(Yn,{control:d,name:n,render:({field:c})=>h.jsxs(In,{className:D("ui:w-full",e),children:[h.jsxs(pr,{className:i?"ui:flex ui:items-center ui:gap-2":void 0,children:[t,a&&h.jsx("span",{children:"*"}),i&&h.jsx(Hi,{content:i,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:cursor-pointer ui:text-segmentify-gray-500"})})]}),h.jsx(fn,{children:h.jsx(lv,{...c,...l,placeholder:o})}),r&&h.jsx(wr,{children:r}),h.jsx(Un,{})]})})},Mz=({label:t,name:e,containerClassName:n,description:r,placeholder:o,tooltipContent:i,hasRequiredIndicator:a=!1,...s})=>{const l=hn();if(!l)throw new Error("FormPassword must be used within a FormProvider from react-hook-form");const{control:u}=l,[d,c]=I.useState(!1),f=()=>{c(p=>!p)};return h.jsx(Yn,{control:u,name:e,render:({field:p})=>h.jsxs(In,{className:D("ui:w-full",n),children:[t&&h.jsxs(pr,{className:D({"ui:flex ui:items-center ui:gap-2":!!i}),children:[t,a&&h.jsx("span",{children:"*"}),i&&h.jsx(Hi,{content:i,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,className:"ui:cursor-pointer ui:text-segmentify-gray-500"})})]}),h.jsx(fn,{children:h.jsxs("div",{className:"ui:relative",children:[h.jsx(lv,{...p,...s,type:d?"text":"password",placeholder:o,hasRequiredIndicator:a,inputClassName:"pr-8"}),h.jsx("button",{type:"button",onClick:f,className:"ui:absolute ui:right-3 ui:top-1/2 ui:-translate-y-1/2 ui:text-muted-foreground ui:hover:text-foreground ui:transition-colors",tabIndex:-1,children:d?h.jsx(U2,{size:16,className:"ui:cursor-pointer"}):h.jsx(J2,{size:16,className:"ui:cursor-pointer"})})]})}),r&&h.jsx(wr,{children:r}),h.jsx(Un,{})]})})};var uv="Radio",[kz,zN]=At(uv),[Dz,jz]=kz(uv),XN=v.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:u,...d}=t,[c,f]=v.useState(null),p=Se(e,b=>f(b)),m=v.useRef(!1),g=c?u||!!c.closest("form"):!0;return h.jsxs(Dz,{scope:n,checked:o,disabled:a,children:[h.jsx(he.button,{type:"button",role:"radio","aria-checked":o,"data-state":JN(o),"data-disabled":a?"":void 0,disabled:a,value:s,...d,ref:p,onClick:se(t.onClick,b=>{o||l?.(),g&&(m.current=b.isPropagationStopped(),m.current||b.stopPropagation())})}),g&&h.jsx(ZN,{control:c,bubbles:!m.current,name:r,value:s,checked:o,required:i,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});XN.displayName=uv;var YN="RadioIndicator",UN=v.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...o}=t,i=jz(YN,n);return h.jsx(pt,{present:r||i.checked,children:h.jsx(he.span,{"data-state":JN(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e})})});UN.displayName=YN;var Lz="RadioBubbleInput",ZN=v.forwardRef(({__scopeRadio:t,control:e,checked:n,bubbles:r=!0,...o},i)=>{const a=v.useRef(null),s=Se(a,i),l=us(n),u=cs(e);return v.useEffect(()=>{const d=a.current;if(!d)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[l,n,r]),h.jsx(he.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ZN.displayName=Lz;function JN(t){return t?"checked":"unchecked"}var Bz=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],hc="RadioGroup",[Fz]=At(hc,[Wi,zN]),KN=Wi(),QN=zN(),[Gz,$z]=Fz(hc),e_=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:d=!0,onValueChange:c,...f}=t,p=KN(n),m=to(u),[g,b]=jt({prop:i,defaultProp:o??null,onChange:c,caller:hc});return h.jsx(Gz,{scope:n,name:r,required:a,disabled:s,value:g,onValueChange:b,children:h.jsx(Xb,{asChild:!0,...p,orientation:l,dir:m,loop:d,children:h.jsx(he.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m,...f,ref:e})})})});e_.displayName=hc;var t_="RadioGroupItem",n_=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...o}=t,i=$z(t_,n),a=i.disabled||r,s=KN(n),l=QN(n),u=v.useRef(null),d=Se(e,u),c=i.value===o.value,f=v.useRef(!1);return v.useEffect(()=>{const p=g=>{Bz.includes(g.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),h.jsx(Yb,{asChild:!0,...s,focusable:!a,active:c,children:h.jsx(XN,{disabled:a,required:i.required,checked:c,...l,...o,name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:se(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:se(o.onFocus,()=>{f.current&&u.current?.click()})})})});n_.displayName=t_;var Vz="RadioGroupIndicator",r_=v.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,o=QN(n);return h.jsx(UN,{...o,...r,ref:e})});r_.displayName=Vz;var Wz=e_,Hz=n_,qz=r_;function o_({className:t,...e}){return h.jsx(Wz,{"data-slot":"radio-group",className:D("ui:grid ui:gap-3",t),...e})}function i_({className:t,...e}){return h.jsx(Hz,{"data-slot":"radio-group-item",className:D("ui:p-0! ui:aspect-square ui:h-4 ui:w-4 ui:rounded-full ui:border ui:border-solid ui:border-primary ui:text-primary ui:bg-transparent ui:hover:bg-transparent ui:ring-offset-background ui:focus:outline-none ui:focus-visible:ring-2 ui:focus-visible:ring-ring ui:focus-visible:ring-offset-2 ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:transition-none",t),...e,children:h.jsx(qz,{"data-slot":"radio-group-indicator",className:"ui:relative ui:flex ui:items-center ui:justify-center",children:h.jsx(DS,{className:"ui:fill-primary ui:absolute ui:top-1/2 ui:left-1/2 ui:size-2 ui:-translate-x-1/2 ui:-translate-y-1/2"})})})}const zz=({name:t,label:e,items:n,containerClassName:r,itemClassName:o,itemLabelClassName:i,selectedClassName:a,description:s})=>{const l=hn();if(!l)throw new Error("FormRadio must be used within a FormProvider from react-hook-form");const{control:u}=l;return h.jsx(Yn,{control:u,name:t,render:({field:d})=>h.jsxs(In,{className:D("ui:space-y-3",r),children:[e&&h.jsx(pr,{children:e}),h.jsx(fn,{children:h.jsx(o_,{onValueChange:d.onChange,defaultValue:d.value,className:"ui:flex ui:flex-col ui:space-y-1",children:n.map(c=>h.jsxs(In,{className:D("ui:flex ui:items-center ui:space-y-0",o,d.value===c.value&&a),children:[h.jsx(fn,{children:h.jsx(i_,{value:c.value})}),h.jsx(pr,{className:D("ui:font-normal",i),children:c.label})]},c.value))})}),h.jsx(Un,{}),s&&h.jsx(wr,{children:s})]})})};function za(t,[e,n]){return Math.min(n,Math.max(e,t))}var a_=["PageUp","PageDown"],s_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],l_={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},qi="Slider",[ig,Xz,Yz]=ns(qi),[u_]=At(qi,[Yz]),[Uz,pc]=u_(qi),c_=v.forwardRef((t,e)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[r],value:d,onValueChange:c=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...g}=t,b=v.useRef(new Set),y=v.useRef(0),C=a==="horizontal"?Zz:Jz,[S=[],E]=jt({prop:d,defaultProp:u,onChange:N=>{[...b.current][y.current]?.focus(),c(N)}}),T=v.useRef(S);function A(N){const k=n6(S,N);V(N,k)}function O(N){V(N,y.current)}function M(){const N=T.current[y.current];S[y.current]!==N&&f(S)}function V(N,k,{commit:_}={commit:!1}){const B=a6(i),L=s6(Math.round((N-r)/i)*i+r,B),P=za(L,[r,o]);E((G=[])=>{const j=e6(G,P,k);if(i6(j,l*i)){y.current=j.indexOf(P);const H=String(j)!==String(G);return H&&_&&f(j),H?j:G}else return G})}return h.jsx(Uz,{scope:t.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:b.current,values:S,orientation:a,form:m,children:h.jsx(ig.Provider,{scope:t.__scopeSlider,children:h.jsx(ig.Slot,{scope:t.__scopeSlider,children:h.jsx(C,{"aria-disabled":s,"data-disabled":s?"":void 0,...g,ref:e,onPointerDown:se(g.onPointerDown,()=>{s||(T.current=S)}),min:r,max:o,inverted:p,onSlideStart:s?void 0:A,onSlideMove:s?void 0:O,onSlideEnd:s?void 0:M,onHomeKeyDown:()=>!s&&V(r,0,{commit:!0}),onEndKeyDown:()=>!s&&V(o,S.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:k})=>{if(!s){const L=a_.includes(N.key)||N.shiftKey&&s_.includes(N.key)?10:1,P=y.current,G=S[P],j=i*L*k;V(G+j,P,{commit:!0})}}})})})})});c_.displayName=qi;var[d_,f_]=u_(qi,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Zz=v.forwardRef((t,e)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:u,...d}=t,[c,f]=v.useState(null),p=Se(e,C=>f(C)),m=v.useRef(void 0),g=to(o),b=g==="ltr",y=b&&!i||!b&&i;function w(C){const S=m.current||c.getBoundingClientRect(),E=[0,S.width],A=cv(E,y?[n,r]:[r,n]);return m.current=S,A(C-S.left)}return h.jsx(d_,{scope:t.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:h.jsx(h_,{dir:g,"data-orientation":"horizontal",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:C=>{const S=w(C.clientX);a?.(S)},onSlideMove:C=>{const S=w(C.clientX);s?.(S)},onSlideEnd:()=>{m.current=void 0,l?.()},onStepKeyDown:C=>{const E=l_[y?"from-left":"from-right"].includes(C.key);u?.({event:C,direction:E?-1:1})}})})}),Jz=v.forwardRef((t,e)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...u}=t,d=v.useRef(null),c=Se(e,d),f=v.useRef(void 0),p=!o;function m(g){const b=f.current||d.current.getBoundingClientRect(),y=[0,b.height],C=cv(y,p?[r,n]:[n,r]);return f.current=b,C(g-b.top)}return h.jsx(d_,{scope:t.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:h.jsx(h_,{"data-orientation":"vertical",...u,ref:c,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const b=m(g.clientY);i?.(b)},onSlideMove:g=>{const b=m(g.clientY);a?.(b)},onSlideEnd:()=>{f.current=void 0,s?.()},onStepKeyDown:g=>{const y=l_[p?"from-bottom":"from-top"].includes(g.key);l?.({event:g,direction:y?-1:1})}})})}),h_=v.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...u}=t,d=pc(qi,n);return h.jsx(he.span,{...u,ref:e,onKeyDown:se(t.onKeyDown,c=>{c.key==="Home"?(a(c),c.preventDefault()):c.key==="End"?(s(c),c.preventDefault()):a_.concat(s_).includes(c.key)&&(l(c),c.preventDefault())}),onPointerDown:se(t.onPointerDown,c=>{const f=c.target;f.setPointerCapture(c.pointerId),c.preventDefault(),d.thumbs.has(f)?f.focus():r(c)}),onPointerMove:se(t.onPointerMove,c=>{c.target.hasPointerCapture(c.pointerId)&&o(c)}),onPointerUp:se(t.onPointerUp,c=>{const f=c.target;f.hasPointerCapture(c.pointerId)&&(f.releasePointerCapture(c.pointerId),i(c))})})}),p_="SliderTrack",m_=v.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,o=pc(p_,n);return h.jsx(he.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:e})});m_.displayName=p_;var ag="SliderRange",g_=v.forwardRef((t,e)=>{const{__scopeSlider:n,...r}=t,o=pc(ag,n),i=f_(ag,n),a=v.useRef(null),s=Se(e,a),l=o.values.length,u=o.values.map(f=>y_(f,o.min,o.max)),d=l>1?Math.min(...u):0,c=100-Math.max(...u);return h.jsx(he.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...t.style,[i.startEdge]:d+"%",[i.endEdge]:c+"%"}})});g_.displayName=ag;var sg="SliderThumb",b_=v.forwardRef((t,e)=>{const n=Xz(t.__scopeSlider),[r,o]=v.useState(null),i=Se(e,s=>o(s)),a=v.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return h.jsx(Kz,{...t,ref:i,index:a})}),Kz=v.forwardRef((t,e)=>{const{__scopeSlider:n,index:r,name:o,...i}=t,a=pc(sg,n),s=f_(sg,n),[l,u]=v.useState(null),d=Se(e,w=>u(w)),c=l?a.form||!!l.closest("form"):!0,f=cs(l),p=a.values[r],m=p===void 0?0:y_(p,a.min,a.max),g=t6(r,a.values.length),b=f?.[s.size],y=b?r6(b,m,s.direction):0;return v.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),h.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${m}% + ${y}px)`},children:[h.jsx(ig.ItemSlot,{scope:t.__scopeSlider,children:h.jsx(he.span,{role:"slider","aria-label":t["aria-label"]||g,"aria-valuemin":a.min,"aria-valuenow":p,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:d,style:p===void 0?{display:"none"}:t.style,onFocus:se(t.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),c&&h.jsx(v_,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:p},r)]})});b_.displayName=sg;var Qz="RadioBubbleInput",v_=v.forwardRef(({__scopeSlider:t,value:e,...n},r)=>{const o=v.useRef(null),i=Se(o,r),a=us(e);return v.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&d){const c=new Event("input",{bubbles:!0});d.call(s,e),s.dispatchEvent(c)}},[a,e]),h.jsx(he.input,{style:{display:"none"},...n,ref:i,defaultValue:e})});v_.displayName=Qz;function e6(t=[],e,n){const r=[...t];return r[n]=e,r.sort((o,i)=>o-i)}function y_(t,e,n){const i=100/(n-e)*(t-e);return za(i,[0,100])}function t6(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function n6(t,e){if(t.length===1)return 0;const n=t.map(o=>Math.abs(o-e)),r=Math.min(...n);return n.indexOf(r)}function r6(t,e,n){const r=t/2,i=cv([0,50],[0,r]);return(r-i(e)*n)*n}function o6(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function i6(t,e){if(e>0){const n=o6(t);return Math.min(...n)>=e}return!0}function cv(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function a6(t){return(String(t).split(".")[1]||"").length}function s6(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var l6=c_,u6=m_,c6=g_,d6=b_;function x_({className:t,defaultValue:e,value:n,min:r=0,max:o=100,...i}){const a=v.useMemo(()=>Array.isArray(n)?n:Array.isArray(e)?e:[r,o],[n,e,r,o]);return h.jsxs(l6,{"data-slot":"slider",defaultValue:e,value:n,min:r,max:o,className:D("ui:relative ui:flex ui:w-full ui:touch-none ui:items-center ui:select-none ui:data-[disabled]:opacity-50 ui:data-[orientation=vertical]:h-full ui:data-[orientation=vertical]:min-h-44 ui:data-[orientation=vertical]:w-auto ui:data-[orientation=vertical]:flex-col",t),...i,children:[h.jsx(u6,{"data-slot":"slider-track",className:D("ui:bg-muted ui:relative ui:grow ui:overflow-hidden ui:rounded-full ui:data-[orientation=horizontal]:h-1.5 ui:data-[orientation=horizontal]:w-full ui:data-[orientation=vertical]:h-full ui:data-[orientation=vertical]:w-1.5"),children:h.jsx(c6,{"data-slot":"slider-range",className:D("ui:bg-primary ui:absolute ui:data-[orientation=horizontal]:h-full ui:data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(s,l)=>h.jsx(d6,{"data-slot":"slider-thumb",className:"ui:border-primary ui:ring-ring/50 ui:block ui:size-4 ui:shrink-0 ui:rounded-full ui:border ui:bg-white ui:shadow-sm ui:transition-[color,box-shadow] ui:hover:ring-4 ui:focus-visible:ring-4 ui:focus-visible:outline-hidden ui:disabled:pointer-events-none ui:disabled:opacity-50"},l))]})}const f6=({name:t,label:e,description:n,min:r=0,max:o=100,step:i=1,leftLabel:a,rightLabel:s,showLabels:l=!0,complementaryField:u,onValueChange:d,containerClassName:c,labelClassName:f,showErrorPlaceholder:p=!1,tooltipContent:m,...g})=>{const b=hn();if(!b)throw new Error("FormSlider must be used within a FormProvider from react-hook-form");const{control:y,setValue:w}=b,C=I.useRef(!1),S=gT({control:y,name:t}),E=A=>{if(C.current)return;const O=A[0];C.current=!0,w(t,String(O),{shouldValidate:!0}),u&&w(u,String(o-O),{shouldValidate:!0}),d&&d(O),setTimeout(()=>{C.current=!1},0)},T=Number(S)||r+(o-r)/2;return h.jsx(Yn,{control:y,name:t,render:()=>h.jsxs(In,{className:D("ui:w-full",c),children:[h.jsx(fr,{children:h.jsx(Yt,{condition:!!e,children:h.jsxs(pr,{className:D(f,{"ui:flex ui:items-center ui:gap-2":!!m}),children:[e,m&&h.jsx(Hi,{content:m,contentClassName:"ui:max-w-96",trigger:h.jsx(ki,{size:16,color:"#737373",className:"ui:cursor-pointer"})})]})})}),h.jsx(fn,{children:h.jsxs("div",{className:"ui:space-y-2",children:[h.jsx(x_,{value:[T],onValueChange:E,min:r,max:o,step:i,className:"ui:w-full",...g}),l&&h.jsxs("div",{className:"ui:flex ui:justify-between ui:text-sm ui:text-gray-600",children:[a&&h.jsxs("span",{children:[a,": ",T,o===100?"%":""]}),s&&h.jsxs("span",{children:[s,": ",u?o-T:T,o===100?"%":""]})]})]})}),h.jsx(fr,{children:h.jsx(Yt,{condition:!!n,children:h.jsx(wr,{className:"ui:text-xs",children:n})})}),h.jsx(Un,{showErrorPlaceholder:p})]})})};var mc="Switch",[h6]=At(mc),[p6,m6]=h6(mc),w_=v.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,form:d,...c}=t,[f,p]=v.useState(null),m=Se(e,C=>p(C)),g=v.useRef(!1),b=f?d||!!f.closest("form"):!0,[y,w]=jt({prop:o,defaultProp:i??!1,onChange:u,caller:mc});return h.jsxs(p6,{scope:n,checked:y,disabled:s,children:[h.jsx(he.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":I_(y),"data-disabled":s?"":void 0,disabled:s,value:l,...c,ref:m,onClick:se(t.onClick,C=>{w(S=>!S),b&&(g.current=C.isPropagationStopped(),g.current||C.stopPropagation())})}),b&&h.jsx(E_,{control:f,bubbles:!g.current,name:r,value:l,checked:y,required:a,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});w_.displayName=mc;var C_="SwitchThumb",S_=v.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,o=m6(C_,n);return h.jsx(he.span,{"data-state":I_(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:e})});S_.displayName=C_;var g6="SwitchBubbleInput",E_=v.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...o},i)=>{const a=v.useRef(null),s=Se(a,i),l=us(n),u=cs(e);return v.useEffect(()=>{const d=a.current;if(!d)return;const c=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(c,"checked").set;if(l!==n&&p){const m=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent(m)}},[l,n,r]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});E_.displayName=g6;function I_(t){return t?"checked":"unchecked"}var b6=w_,v6=S_;function A_({className:t,...e}){return h.jsx(b6,{"data-slot":"switch",className:D("ui:peer ui:data-[state=checked]:bg-primary ui:data-[state=unchecked]:bg-input ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:dark:data-[state=unchecked]:bg-input/80 ui:inline-flex ui:h-[1.15rem] ui:w-8 ui:shrink-0 ui:items-center ui:rounded-full ui:border ui:border-transparent ui:shadow-xs ui:transition-all ui:outline-none ui:focus-visible:ring-[3px] ui:disabled:cursor-not-allowed ui:disabled:opacity-50",t),...e,children:h.jsx(v6,{"data-slot":"switch-thumb",className:D("ui:bg-background ui:dark:data-[state=unchecked]:bg-foreground ui:dark:data-[state=checked]:bg-primary-foreground ui:pointer-events-none ui:block ui:size-4 ui:rounded-full ui:ring-0 ui:transition-transform ui:data-[state=checked]:translate-x-[calc(100%-2px)] ui:data-[state=unchecked]:translate-x-0")})})}const T_=({label:t,name:e,...n})=>h.jsxs("article",{className:"ui:flex ui:items-center ui:gap-2",children:[h.jsx(A_,{id:e,...n}),h.jsx(Tn,{htmlFor:e,children:t})]}),y6=({name:t,label:e,description:n,...r})=>{const o=hn();if(!o)throw new Error("FormSwitch must be used within a FormProvider from react-hook-form");const{control:i}=o;return h.jsx(Yn,{control:i,name:t,render:({field:a})=>h.jsxs(In,{children:[h.jsx(fn,{children:h.jsx(T_,{...a,...r,label:e})}),h.jsx(Un,{}),n&&h.jsx(wr,{children:n})]})})};function N_({className:t,...e}){return h.jsx("textarea",{"data-slot":"textarea",className:D("ui:border-input ui:placeholder:text-muted-foreground ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive ui:dark:bg-input/30 ui:flex ui:field-sizing-content ui:min-h-16 ui:w-full ui:rounded-md ui:border ui:bg-transparent ui:px-3 ui:py-2 ui:text-base ui:shadow-xs ui:transition-[color,box-shadow] ui:outline-none ui:focus-visible:ring-[3px] ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:md:text-sm",t),...e})}const __=({textAreaClassName:t,value:e,onChange:n,label:r,...o})=>h.jsxs("article",{children:[r&&h.jsx(Tn,{className:"ui:mb-2 ui:block",children:r}),h.jsx(N_,{className:D("ui:w-full",t),value:e,onChange:n,...o})]}),x6=({label:t,name:e,description:n,placeholder:r,containerClassName:o,...i})=>{const a=hn();if(!a)throw new Error("FormTextarea must be used within a FormProvider from react-hook-form");const{control:s}=a;return h.jsx(Yn,{control:s,name:e,render:({field:l})=>h.jsxs(In,{className:D("ui:w-full",o),children:[h.jsx(pr,{children:t}),h.jsx(fn,{children:h.jsx(__,{placeholder:r,...l,...i})}),n&&h.jsx(wr,{children:n}),h.jsx(Un,{})]})})};var Up,gc="HoverCard",[O_]=At(gc,[xr]),bc=xr(),[w6,vc]=O_(gc),R_=t=>{const{__scopeHoverCard:e,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:s=300}=t,l=bc(e),u=v.useRef(0),d=v.useRef(0),c=v.useRef(!1),f=v.useRef(!1),[p,m]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:gc}),g=v.useCallback(()=>{clearTimeout(d.current),u.current=window.setTimeout(()=>m(!0),a)},[a,m]),b=v.useCallback(()=>{clearTimeout(u.current),!c.current&&!f.current&&(d.current=window.setTimeout(()=>m(!1),s))},[s,m]),y=v.useCallback(()=>m(!1),[m]);return v.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(d.current)},[]),h.jsx(w6,{scope:e,open:p,onOpenChange:m,onOpen:g,onClose:b,onDismiss:y,hasSelectionRef:c,isPointerDownOnContentRef:f,children:h.jsx($i,{...l,children:n})})};R_.displayName=gc;var P_="HoverCardTrigger",M_=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=vc(P_,n),i=bc(n);return h.jsx(Vi,{asChild:!0,...i,children:h.jsx(he.a,{"data-state":o.open?"open":"closed",...r,ref:e,onPointerEnter:se(t.onPointerEnter,Ql(o.onOpen)),onPointerLeave:se(t.onPointerLeave,Ql(o.onClose)),onFocus:se(t.onFocus,o.onOpen),onBlur:se(t.onBlur,o.onClose),onTouchStart:se(t.onTouchStart,a=>a.preventDefault())})})});M_.displayName=P_;var dv="HoverCardPortal",[C6,S6]=O_(dv,{forceMount:void 0}),k_=t=>{const{__scopeHoverCard:e,forceMount:n,children:r,container:o}=t,i=vc(dv,e);return h.jsx(C6,{scope:e,forceMount:n,children:h.jsx(pt,{present:n||i.open,children:h.jsx(Fo,{asChild:!0,container:o,children:r})})})};k_.displayName=dv;var Kl="HoverCardContent",D_=v.forwardRef((t,e)=>{const n=S6(Kl,t.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=t,i=vc(Kl,t.__scopeHoverCard);return h.jsx(pt,{present:r||i.open,children:h.jsx(E6,{"data-state":i.open?"open":"closed",...o,onPointerEnter:se(t.onPointerEnter,Ql(i.onOpen)),onPointerLeave:se(t.onPointerLeave,Ql(i.onClose)),ref:e})})});D_.displayName=Kl;var E6=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=t,l=vc(Kl,n),u=bc(n),d=v.useRef(null),c=Se(e,d),[f,p]=v.useState(!1);return v.useEffect(()=>{if(f){const m=document.body;return Up=m.style.userSelect||m.style.webkitUserSelect,m.style.userSelect="none",m.style.webkitUserSelect="none",()=>{m.style.userSelect=Up,m.style.webkitUserSelect=Up}}},[f]),v.useEffect(()=>{if(d.current){const m=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",m),()=>{document.removeEventListener("pointerup",m),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),v.useEffect(()=>{d.current&&T6(d.current).forEach(g=>g.setAttribute("tabindex","-1"))}),h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:se(i,m=>{m.preventDefault()}),onDismiss:l.onDismiss,children:h.jsx(gs,{...u,...s,onPointerDown:se(s.onPointerDown,m=>{m.currentTarget.contains(m.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:c,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),I6="HoverCardArrow",A6=v.forwardRef((t,e)=>{const{__scopeHoverCard:n,...r}=t,o=bc(n);return h.jsx(bs,{...o,...r,ref:e})});A6.displayName=I6;function Ql(t){return e=>e.pointerType==="touch"?void 0:t()}function T6(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)e.push(n.currentNode);return e}var N6=R_,_6=M_,O6=k_,R6=D_;function P6({...t}){return h.jsx(N6,{"data-slot":"hover-card",...t})}function M6({...t}){return h.jsx(_6,{"data-slot":"hover-card-trigger",...t})}function k6({className:t,align:e="center",sideOffset:n=4,...r}){return h.jsx(O6,{"data-slot":"hover-card-portal",children:h.jsx(R6,{"data-slot":"hover-card-content",align:e,sideOffset:n,className:D("ui:bg-popover ui:text-popover-foreground ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2 ui:z-50 ui:w-64 ui:origin-(--radix-hover-card-content-transform-origin) ui:rounded-md ui:border ui:p-4 ui:shadow-md ui:outline-hidden",t),...r})})}function D6({name:t,className:e,...n}){return h.jsx("i",{className:D(`icon-${t}`,e),...n,children:h.jsxs("span",{className:"ui:for-screenreader-only",children:[t," icon"]})})}var j6=Object.defineProperty,L6=Object.defineProperties,B6=Object.getOwnPropertyDescriptors,eu=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,Dw=(t,e,n)=>e in t?j6(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F6=(t,e)=>{for(var n in e||(e={}))j_.call(e,n)&&Dw(t,n,e[n]);if(eu)for(var n of eu(e))L_.call(e,n)&&Dw(t,n,e[n]);return t},G6=(t,e)=>L6(t,B6(e)),$6=(t,e)=>{var n={};for(var r in t)j_.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&eu)for(var r of eu(t))e.indexOf(r)<0&&L_.call(t,r)&&(n[r]=t[r]);return n};function V6(t){let e=setTimeout(t,0),n=setTimeout(t,10),r=setTimeout(t,50);return[e,n,r]}function W6(t){let e=v.useRef();return v.useEffect(()=>{e.current=t}),e.current}var H6=18,B_=40,q6=`${B_}px`,z6=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function X6({containerRef:t,inputRef:e,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=v.useState(!1),[a,s]=v.useState(!1),[l,u]=v.useState(!1),d=v.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&a,[o,a,n]),c=v.useCallback(()=>{let f=t.current,p=e.current;if(!f||!p||l||n==="none")return;let m=f,g=m.getBoundingClientRect().left+m.offsetWidth,b=m.getBoundingClientRect().top+m.offsetHeight/2,y=g-H6,w=b;document.querySelectorAll(z6).length===0&&document.elementFromPoint(y,w)===f||(i(!0),u(!0))},[t,e,l,n]);return v.useEffect(()=>{let f=t.current;if(!f||n==="none")return;function p(){let g=window.innerWidth-f.getBoundingClientRect().right;s(g>=B_)}p();let m=setInterval(p,1e3);return()=>{clearInterval(m)}},[t,n]),v.useEffect(()=>{let f=r||document.activeElement===e.current;if(n==="none"||!f)return;let p=setTimeout(c,0),m=setTimeout(c,2e3),g=setTimeout(c,5e3),b=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(m),clearTimeout(g),clearTimeout(b)}},[e,r,n,c]),{hasPWMBadge:o,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:q6}}var Y6=v.createContext({}),F_=v.forwardRef((t,e)=>{var n=t,{value:r,onChange:o,maxLength:i,textAlign:a="left",pattern:s,placeholder:l,inputMode:u="numeric",onComplete:d,pushPasswordManagerStrategy:c="increase-width",pasteTransformer:f,containerClassName:p,noScriptCSSFallback:m=U6,render:g,children:b}=n,y=$6(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,C,S,E,T;let[A,O]=v.useState(typeof y.defaultValue=="string"?y.defaultValue:""),M=r??A,V=W6(M),N=v.useCallback(W=>{o?.(W),O(W)},[o]),k=v.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),_=v.useRef(null),B=v.useRef(null),L=v.useRef({value:M,onChange:N,isIOS:typeof window<"u"&&((C=(w=window?.CSS)==null?void 0:w.supports)==null?void 0:C.call(w,"-webkit-touch-callout","none"))}),P=v.useRef({prev:[(S=_.current)==null?void 0:S.selectionStart,(E=_.current)==null?void 0:E.selectionEnd,(T=_.current)==null?void 0:T.selectionDirection]});v.useImperativeHandle(e,()=>_.current,[]),v.useEffect(()=>{let W=_.current,le=B.current;if(!W||!le)return;L.current.value!==W.value&&L.current.onChange(W.value),P.current.prev=[W.selectionStart,W.selectionEnd,W.selectionDirection];function Ae(){if(document.activeElement!==W){$(null),Z(null);return}let Ie=W.selectionStart,Re=W.selectionEnd,at=W.selectionDirection,Me=W.maxLength,Ge=W.value,We=P.current.prev,Qe=-1,st=-1,it;if(Ge.length!==0&&Ie!==null&&Re!==null){let _t=Ie===Re,tt=Ie===Ge.length&&Ge.length<Me;if(_t&&!tt){let lt=Ie;if(lt===0)Qe=0,st=1,it="forward";else if(lt===Me)Qe=lt-1,st=lt,it="backward";else if(Me>1&&Ge.length>1){let Ot=0;if(We[0]!==null&&We[1]!==null){it=lt<We[1]?"backward":"forward";let Rt=We[0]===We[1]&&We[0]<Me;it==="backward"&&!Rt&&(Ot=-1)}Qe=Ot+lt,st=Ot+lt+1}}Qe!==-1&&st!==-1&&Qe!==st&&_.current.setSelectionRange(Qe,st,it)}let mt=Qe!==-1?Qe:Ie,bt=st!==-1?st:Re,Le=it??at;$(mt),Z(bt),P.current.prev=[mt,bt,Le]}if(document.addEventListener("selectionchange",Ae,{capture:!0}),Ae(),document.activeElement===W&&U(!0),!document.getElementById("input-otp-style")){let Ie=document.createElement("style");if(Ie.id="input-otp-style",document.head.appendChild(Ie),Ie.sheet){let Re="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";ua(Ie.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),ua(Ie.sheet,`[data-input-otp]:autofill { ${Re} }`),ua(Ie.sheet,`[data-input-otp]:-webkit-autofill { ${Re} }`),ua(Ie.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),ua(Ie.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ne=()=>{le&&le.style.setProperty("--root-height",`${W.clientHeight}px`)};Ne();let Ve=new ResizeObserver(Ne);return Ve.observe(W),()=>{document.removeEventListener("selectionchange",Ae,{capture:!0}),Ve.disconnect()}},[]);let[G,j]=v.useState(!1),[H,U]=v.useState(!1),[Q,$]=v.useState(null),[q,Z]=v.useState(null);v.useEffect(()=>{V6(()=>{var W,le,Ae,Ne;(W=_.current)==null||W.dispatchEvent(new Event("input"));let Ve=(le=_.current)==null?void 0:le.selectionStart,Ie=(Ae=_.current)==null?void 0:Ae.selectionEnd,Re=(Ne=_.current)==null?void 0:Ne.selectionDirection;Ve!==null&&Ie!==null&&($(Ve),Z(Ie),P.current.prev=[Ve,Ie,Re])})},[M,H]),v.useEffect(()=>{V!==void 0&&M!==V&&V.length<i&&M.length===i&&d?.(M)},[i,d,V,M]);let X=X6({containerRef:B,inputRef:_,pushPasswordManagerStrategy:c,isFocused:H}),te=v.useCallback(W=>{let le=W.currentTarget.value.slice(0,i);if(le.length>0&&k&&!k.test(le)){W.preventDefault();return}typeof V=="string"&&le.length<V.length&&document.dispatchEvent(new Event("selectionchange")),N(le)},[i,N,V,k]),Y=v.useCallback(()=>{var W;if(_.current){let le=Math.min(_.current.value.length,i-1),Ae=_.current.value.length;(W=_.current)==null||W.setSelectionRange(le,Ae),$(le),Z(Ae)}U(!0)},[i]),J=v.useCallback(W=>{var le,Ae;let Ne=_.current;if(!f&&(!L.current.isIOS||!W.clipboardData||!Ne))return;let Ve=W.clipboardData.getData("text/plain"),Ie=f?f(Ve):Ve;W.preventDefault();let Re=(le=_.current)==null?void 0:le.selectionStart,at=(Ae=_.current)==null?void 0:Ae.selectionEnd,Me=(Re!==at?M.slice(0,Re)+Ie+M.slice(at):M.slice(0,Re)+Ie+M.slice(Re)).slice(0,i);if(Me.length>0&&k&&!k.test(Me))return;Ne.value=Me,N(Me);let Ge=Math.min(Me.length,i-1),We=Me.length;Ne.setSelectionRange(Ge,We),$(Ge),Z(We)},[i,N,k,M]),ie=v.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),oe=v.useMemo(()=>({position:"absolute",inset:0,width:X.willPushPWMBadge?`calc(100% + ${X.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:X.willPushPWMBadge?`inset(0 ${X.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[X.PWM_BADGE_SPACE_WIDTH,X.willPushPWMBadge,a]),re=v.useMemo(()=>v.createElement("input",G6(F6({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":M.length===0||void 0,"data-input-otp-mss":Q,"data-input-otp-mse":q,inputMode:u,pattern:k?.source,"aria-placeholder":l,style:oe,maxLength:i,value:M,ref:_,onPaste:W=>{var le;J(W),(le=y.onPaste)==null||le.call(y,W)},onChange:te,onMouseOver:W=>{var le;j(!0),(le=y.onMouseOver)==null||le.call(y,W)},onMouseLeave:W=>{var le;j(!1),(le=y.onMouseLeave)==null||le.call(y,W)},onFocus:W=>{var le;Y(),(le=y.onFocus)==null||le.call(y,W)},onBlur:W=>{var le;U(!1),(le=y.onBlur)==null||le.call(y,W)}})),[te,Y,J,u,oe,i,q,Q,y,k?.source,M]),z=v.useMemo(()=>({slots:Array.from({length:i}).map((W,le)=>{var Ae;let Ne=H&&Q!==null&&q!==null&&(Q===q&&le===Q||le>=Q&&le<q),Ve=M[le]!==void 0?M[le]:null,Ie=M[0]!==void 0?null:(Ae=l?.[le])!=null?Ae:null;return{char:Ve,placeholderChar:Ie,isActive:Ne,hasFakeCaret:Ne&&Ve===null}}),isFocused:H,isHovering:!y.disabled&&G}),[H,G,i,q,Q,y.disabled,M]),ue=v.useMemo(()=>g?g(z):v.createElement(Y6.Provider,{value:z},b),[b,z,g]);return v.createElement(v.Fragment,null,m!==null&&v.createElement("noscript",null,v.createElement("style",null,m)),v.createElement("div",{ref:B,"data-input-otp-container":!0,style:ie,className:p},ue,v.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},re)))});F_.displayName="Input";function ua(t,e){try{t.insertRule(e)}catch{console.error("input-otp could not insert CSS rule:",e)}}var U6=`
63
63
  [data-input-otp] {
64
64
  --nojs-bg: white !important;
65
65
  --nojs-fg: black !important;
@@ -78,16 +78,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
78
78
  --nojs-bg: black !important;
79
79
  --nojs-fg: white !important;
80
80
  }
81
- }`;function Z6({ref:t,className:e,containerClassName:n,...r}){return h.jsx(G_,{ref:t,"data-slot":"input-otp",containerClassName:D("ui:flex ui:items-center ui:gap-2 ui:has-disabled:opacity-50",n),className:D("ui:disabled:cursor-not-allowed",e),...r})}function J6({className:t,...e}){return h.jsx("kbd",{"data-slot":"kbd",className:D("ui:bg-muted ui:text-muted-foreground ui:pointer-events-none ui:inline-flex ui:h-5 ui:w-fit ui:min-w-5 ui:items-center ui:justify-center ui:gap-1 ui:rounded-sm ui:px-1 ui:font-sans ui:text-xs ui:font-medium ui:select-none","ui:[&_svg:not([class*='size-'])]:size-3","ui:[[data-slot=tooltip-content]_&]:bg-background/20 ui:[[data-slot=tooltip-content]_&]:text-background ui:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t),...e})}function K6({className:t,...e}){return h.jsx("kbd",{"data-slot":"kbd-group",className:D("ui:inline-flex ui:items-center ui:gap-1",t),...e})}function Q6({label:t,options:e=[],value:n=[],onChange:r,toggleAllLabel:o="all",optionSuffix:i="options",translateOptions:a=!0,containerClassName:s,contentClassName:l,triggerClassName:u,showSelectedItemLabels:d=!0,showErrorPlaceholder:c=!1,error:f=""}){const[p,m]=I.useState(!1),[g,b]=I.useState(n),y=I.useRef(null),w=T=>{typeof r=="function"&&r(T)},C=T=>{let A=[...g||[]];g?.includes(T)?A=A.filter(O=>O!==T):A.push(T),b(A),w(A)},S=()=>{let T=[];g?.length!==e?.length&&(T=e?.map(A=>A.value)||[]),b(T),w(T)};I.useEffect(()=>{b(n)},[n]);const E=()=>{const T=e?.filter(A=>g?.includes(A.value));return T?.map((A,O)=>h.jsxs(I.Fragment,{children:[A.label,O<T.length-1&&", "]},A.value))};return h.jsxs("article",{className:D("ui:flex ui:flex-col ui:w-full",s),children:[h.jsx(Tn,{variant:"default",className:D("ui:mb-2 ui:truncate ui:w-full ui:text-left",c?"ui:text-red-500":"ui:text-black-950"),children:t}),h.jsxs(NN,{open:p,onOpenChange:T=>{!T&&y.current&&y.current.blur()},children:[h.jsx(_N,{asChild:!0,children:h.jsxs(en,{className:D("ui:min-w-44 ui:w-full ui:lg:w-auto ui:capitalize ui:h-10 ui:justify-between",u),variant:"outline",size:"sm",onClick:()=>m(T=>!T),children:[h.jsxs(fr,{children:[h.jsx(Yt,{condition:d&&g?.length>0,children:h.jsx("p",{className:"ui:truncate ui:w-full ui:text-left",children:E()})}),h.jsx(Yt,{condition:g?.length===e?.length,children:h.jsx("p",{className:"ui:truncate ui:w-full ui:text-left",children:i})}),h.jsx(Co,{children:h.jsx("p",{className:"ui:truncate ui:w-full ui:text-left",children:`counted.${i}`})})]}),p?h.jsx(kS,{size:"16"}):h.jsx(Mi,{size:"16"})]})}),h.jsxs(ON,{className:D("new-design-multi-select-dropdown",l),onPointerDownOutside:()=>m(!1),children:[h.jsx(tg,{checked:g?.length===e?.length,onCheckedChange:S,children:o}),e.map(T=>h.jsx(tg,{checked:g?.includes(T.value),onCheckedChange:()=>C(T.value),children:h.jsxs(fr,{children:[h.jsx(Yt,{condition:a,children:T.label}),h.jsx(Co,{children:T.label})]})},T.value))]})]}),f&&h.jsx(RN,{message:f})]})}function e8({className:t,size:e="default",...n}){return h.jsxs("div",{className:"ui:group/native-select ui:relative ui:w-fit ui:has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[h.jsx("select",{"data-slot":"native-select","data-size":e,className:D("ui:border-input ui:placeholder:text-muted-foreground ui:selection:bg-primary ui:selection:text-primary-foreground ui:dark:bg-input/30 ui:dark:hover:bg-input/50 ui:h-9 ui:w-full ui:min-w-0 ui:appearance-none ui:rounded-md ui:border ui:bg-transparent ui:px-3 ui:py-2 ui:pr-9 ui:text-sm ui:shadow-xs ui:transition-[color,box-shadow] ui:outline-none ui:disabled:pointer-events-none ui:disabled:cursor-not-allowed ui:data-[size=sm]:h-8 ui:data-[size=sm]:py-1","ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px]","ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive",t),...n}),h.jsx(Mi,{className:"ui:text-muted-foreground ui:pointer-events-none ui:absolute ui:top-1/2 right-3.5 ui:size-4 ui:-translate-y-1/2 ui:opacity-50 ui:select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function t8({...t}){return h.jsx("option",{"data-slot":"native-select-option",...t})}function n8({className:t,...e}){return h.jsx("optgroup",{"data-slot":"native-select-optgroup",className:D(t),...e})}function r8({className:t,...e}){return h.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:D("ui:mx-auto ui:flex ui:w-full ui:justify-center",t),...e})}function o8({className:t,...e}){return h.jsx("ul",{"data-slot":"pagination-content",className:D("ui:flex ui:flex-row ui:items-center ui:gap-1",t),...e})}function i8({...t}){return h.jsx("li",{"data-slot":"pagination-item",...t})}function fv({className:t,isActive:e,size:n="icon",...r}){return h.jsx("a",{"aria-current":e?"page":void 0,"data-slot":"pagination-link","data-active":e,className:D(Dl({variant:e?"paginationInactive":"paginationActive",size:n}),t),...r})}function a8({className:t,...e}){return h.jsxs(fv,{"aria-label":"Go to previous page",className:D("ui:gap-1 ui:px-2.5 ui:sm:pl-2.5",t),...e,size:"default",children:[h.jsx(MS,{}),h.jsx("span",{className:"ui:hidden ui:sm:block",children:"Previous"})]})}function s8({className:t,...e}){return h.jsxs(fv,{"aria-label":"Go to next page",className:D("ui:gap-1 ui:px-2.5 ui:sm:pr-2.5",t),...e,size:"default",children:[h.jsx("span",{className:"ui:hidden ui:sm:block",children:"Next"}),h.jsx(wu,{})]})}function l8({className:t,...e}){return h.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:D("ui:flex ui:size-9 ui:items-center ui:justify-center",t),...e,children:[h.jsx(jS,{className:"ui:size-4"}),h.jsx("span",{className:"ui:sr-only",children:"More pages"})]})}function u8(t,e){return v.useReducer((n,r)=>e[n][r]??n,t)}var hv="ScrollArea",[$_]=At(hv),[c8,Nn]=$_(hv),V_=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=t,[s,l]=v.useState(null),[u,d]=v.useState(null),[c,f]=v.useState(null),[p,m]=v.useState(null),[g,b]=v.useState(null),[y,w]=v.useState(0),[C,S]=v.useState(0),[E,T]=v.useState(!1),[A,O]=v.useState(!1),M=Se(e,N=>l(N)),V=to(o);return h.jsx(c8,{scope:n,type:r,dir:V,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:d,content:c,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:A,onScrollbarYEnabledChange:O,onCornerWidthChange:w,onCornerHeightChange:S,children:h.jsx(he.div,{dir:V,...a,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":C+"px",...t.style}})})});V_.displayName=hv;var W_="ScrollAreaViewport",H_=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=t,a=Nn(W_,n),s=v.useRef(null),l=Se(e,s,a.onViewportChange);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),h.jsx(he.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style},children:h.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});H_.displayName=W_;var Cr="ScrollAreaScrollbar",q_=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=Nn(Cr,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=t.orientation==="horizontal";return v.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?h.jsx(d8,{...r,ref:e,forceMount:n}):o.type==="scroll"?h.jsx(f8,{...r,ref:e,forceMount:n}):o.type==="auto"?h.jsx(z_,{...r,ref:e,forceMount:n}):o.type==="always"?h.jsx(pv,{...r,ref:e}):null});q_.displayName=Cr;var d8=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=Nn(Cr,t.__scopeScrollArea),[i,a]=v.useState(!1);return v.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const u=()=>{window.clearTimeout(l),a(!0)},d=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),h.jsx(pt,{present:n||i,children:h.jsx(z_,{"data-state":i?"visible":"hidden",...r,ref:e})})}),f8=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=Nn(Cr,t.__scopeScrollArea),i=t.orientation==="horizontal",a=xc(()=>l("SCROLL_END"),100),[s,l]=u8("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,l]),v.useEffect(()=>{const u=o.viewport,d=i?"scrollLeft":"scrollTop";if(u){let c=u[d];const f=()=>{const p=u[d];c!==p&&(l("SCROLL"),a()),c=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,l,a]),h.jsx(pt,{present:n||s!=="hidden",children:h.jsx(pv,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:se(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:se(t.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),z_=v.forwardRef((t,e)=>{const n=Nn(Cr,t.__scopeScrollArea),{forceMount:r,...o}=t,[i,a]=v.useState(!1),s=t.orientation==="horizontal",l=xc(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?u:d)}},10);return _i(n.viewport,l),_i(n.content,l),h.jsx(pt,{present:r||i,children:h.jsx(pv,{"data-state":i?"visible":"hidden",...o,ref:e})})}),pv=v.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,o=Nn(Cr,t.__scopeScrollArea),i=v.useRef(null),a=v.useRef(0),[s,l]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=J_(s.viewport,s.content),d={...r,sizes:s,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function c(f,p){return v8(f,a.current,s,p)}return n==="horizontal"?h.jsx(h8,{...d,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,p=jw(f,s,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=c(f,o.dir))}}):n==="vertical"?h.jsx(p8,{...d,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,p=jw(f,s);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=c(f))}}):null}),h8=v.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...o}=t,i=Nn(Cr,t.__scopeScrollArea),[a,s]=v.useState(),l=v.useRef(null),u=Se(e,l,i.onScrollbarXChange);return v.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),h.jsx(Y_,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yc(n)+"px",...t.style},onThumbPointerDown:d=>t.onThumbPointerDown(d.x),onDragScroll:d=>t.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(i.viewport){const f=i.viewport.scrollLeft+d.deltaX;t.onWheelScroll(f),Q_(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:nu(a.paddingLeft),paddingEnd:nu(a.paddingRight)}})}})}),p8=v.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...o}=t,i=Nn(Cr,t.__scopeScrollArea),[a,s]=v.useState(),l=v.useRef(null),u=Se(e,l,i.onScrollbarYChange);return v.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),h.jsx(Y_,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yc(n)+"px",...t.style},onThumbPointerDown:d=>t.onThumbPointerDown(d.y),onDragScroll:d=>t.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(i.viewport){const f=i.viewport.scrollTop+d.deltaY;t.onWheelScroll(f),Q_(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:nu(a.paddingTop),paddingEnd:nu(a.paddingBottom)}})}})}),[m8,X_]=$_(Cr),Y_=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:c,...f}=t,p=Nn(Cr,n),[m,g]=v.useState(null),b=Se(e,M=>g(M)),y=v.useRef(null),w=v.useRef(""),C=p.viewport,S=r.content-r.viewport,E=It(d),T=It(l),A=xc(c,10);function O(M){if(y.current){const V=M.clientX-y.current.left,N=M.clientY-y.current.top;u({x:V,y:N})}}return v.useEffect(()=>{const M=V=>{const N=V.target;m?.contains(N)&&E(V,S)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[C,m,S,E]),v.useEffect(T,[r,T]),_i(m,A),_i(p.content,A),h.jsx(m8,{scope:n,scrollbar:m,hasThumb:o,onThumbChange:It(i),onThumbPointerUp:It(a),onThumbPositionChange:T,onThumbPointerDown:It(s),children:h.jsx(he.div,{...f,ref:b,style:{position:"absolute",...f.style},onPointerDown:se(t.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),y.current=m.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),O(M))}),onPointerMove:se(t.onPointerMove,O),onPointerUp:se(t.onPointerUp,M=>{const V=M.target;V.hasPointerCapture(M.pointerId)&&V.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=w.current,p.viewport&&(p.viewport.style.scrollBehavior=""),y.current=null})})})}),tu="ScrollAreaThumb",U_=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=X_(tu,t.__scopeScrollArea);return h.jsx(pt,{present:n||o.hasThumb,children:h.jsx(g8,{ref:e,...r})})}),g8=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:r,...o}=t,i=Nn(tu,n),a=X_(tu,n),{onThumbPositionChange:s}=a,l=Se(e,c=>a.onThumbChange(c)),u=v.useRef(void 0),d=xc(()=>{u.current&&(u.current(),u.current=void 0)},100);return v.useEffect(()=>{const c=i.viewport;if(c){const f=()=>{if(d(),!u.current){const p=y8(c,s);u.current=p,s()}};return s(),c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[i.viewport,d,s]),h.jsx(he.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:se(t.onPointerDownCapture,c=>{const p=c.target.getBoundingClientRect(),m=c.clientX-p.left,g=c.clientY-p.top;a.onThumbPointerDown({x:m,y:g})}),onPointerUp:se(t.onPointerUp,a.onThumbPointerUp)})});U_.displayName=tu;var mv="ScrollAreaCorner",Z_=v.forwardRef((t,e)=>{const n=Nn(mv,t.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?h.jsx(b8,{...t,ref:e}):null});Z_.displayName=mv;var b8=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,...r}=t,o=Nn(mv,n),[i,a]=v.useState(0),[s,l]=v.useState(0),u=!!(i&&s);return _i(o.scrollbarX,()=>{const d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),_i(o.scrollbarY,()=>{const d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),a(d)}),u?h.jsx(he.div,{...r,ref:e,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function nu(t){return t?parseInt(t,10):0}function J_(t,e){const n=t/e;return isNaN(n)?0:n}function yc(t){const e=J_(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function v8(t,e,n,r="ltr"){const o=yc(n),i=o/2,a=e||i,s=o-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return K_([l,u],c)(t)}function jw(t,e,n="ltr"){const r=yc(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-o,a=e.content-e.viewport,s=i-r,l=n==="ltr"?[0,a]:[a*-1,0],u=za(t,l);return K_([0,a],[0,s])(u)}function K_(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function Q_(t,e){return t>0&&t<e}var y8=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function o(){const i={left:t.scrollLeft,top:t.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&e(),n=i,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function xc(t,e){const n=It(t),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,e)},[n,e])}function _i(t,e){const n=It(e);gt(()=>{let r=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(t),()=>{window.cancelAnimationFrame(r),o.unobserve(t)}}},[t,n])}var x8=V_,w8=H_,C8=Z_;function S8({className:t,children:e,...n}){return h.jsxs(x8,{"data-slot":"scroll-area",className:D("ui:relative",t),...n,children:[h.jsx(w8,{"data-slot":"scroll-area-viewport",className:"ui:focus-visible:ring-ring/50 ui:size-full ui:rounded-[inherit] ui:transition-[color,box-shadow] ui:outline-none ui:focus-visible:ring-[3px] ui:focus-visible:outline-1",children:e}),h.jsx(eO,{}),h.jsx(C8,{})]})}function eO({className:t,orientation:e="vertical",...n}){return h.jsx(q_,{"data-slot":"scroll-area-scrollbar",orientation:e,className:D("ui:flex ui:touch-none ui:p-px ui:transition-colors ui:select-none",e==="vertical"&&"ui:h-full ui:w-2.5 ui:border-l ui:border-l-transparent",e==="horizontal"&&"ui:h-2.5 ui:flex-col ui:border-t ui:border-t-transparent",t),...n,children:h.jsx(U_,{"data-slot":"scroll-area-thumb",className:"ui:bg-border ui:relative ui:flex-1 ui:rounded-full"})})}var E8=[" ","Enter","ArrowUp","ArrowDown"],I8=[" ","Enter"],No="Select",[wc,Cc,A8]=ns(No),[zi]=At(No,[A8,xr]),Sc=xr(),[T8,ao]=zi(No),[N8,_8]=zi(No),tO=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:c,disabled:f,required:p,form:m}=t,g=Sc(e),[b,y]=v.useState(null),[w,C]=v.useState(null),[S,E]=v.useState(!1),T=to(u),[A,O]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:No}),[M,V]=jt({prop:a,defaultProp:s,onChange:l,caller:No}),N=v.useRef(null),k=b?m||!!b.closest("form"):!0,[_,B]=v.useState(new Set),L=Array.from(_).map(P=>P.props.value).join(";");return h.jsx($i,{...g,children:h.jsxs(T8,{required:p,scope:e,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:ft(),value:M,onValueChange:V,open:A,onOpenChange:O,dir:T,triggerPointerDownPosRef:N,disabled:f,children:[h.jsx(wc.Provider,{scope:e,children:h.jsx(N8,{scope:t.__scopeSelect,onNativeOptionAdd:v.useCallback(P=>{B(G=>new Set(G).add(P))},[]),onNativeOptionRemove:v.useCallback(P=>{B(G=>{const j=new Set(G);return j.delete(P),j})},[]),children:n})}),k?h.jsxs(AO,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:c,value:M,onChange:P=>V(P.target.value),disabled:f,form:m,children:[M===void 0?h.jsx("option",{value:""}):null,Array.from(_)]},L):null]})})};tO.displayName=No;var nO="SelectTrigger",rO=v.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...o}=t,i=Sc(n),a=ao(nO,n),s=a.disabled||r,l=Se(e,a.onTriggerChange),u=Cc(n),d=v.useRef("touch"),[c,f,p]=NO(g=>{const b=u().filter(C=>!C.disabled),y=b.find(C=>C.value===a.value),w=_O(b,g,y);w!==void 0&&a.onValueChange(w.value)}),m=g=>{s||(a.onOpenChange(!0),p()),g&&(a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return h.jsx(Vi,{asChild:!0,...i,children:h.jsx(he.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":TO(a.value)?"":void 0,...o,ref:l,onClick:se(o.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&m(g)}),onPointerDown:se(o.onPointerDown,g=>{d.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(m(g),g.preventDefault())}),onKeyDown:se(o.onKeyDown,g=>{const b=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&f(g.key),!(b&&g.key===" ")&&E8.includes(g.key)&&(m(),g.preventDefault())})})})});rO.displayName=nO;var oO="SelectValue",iO=v.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=t,l=ao(oO,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,c=Se(e,l.onValueNodeChange);return gt(()=>{u(d)},[u,d]),h.jsx(he.span,{...s,ref:c,style:{pointerEvents:"none"},children:TO(l.value)?h.jsx(h.Fragment,{children:a}):i})});iO.displayName=oO;var O8="SelectIcon",aO=v.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...o}=t;return h.jsx(he.span,{"aria-hidden":!0,...o,ref:e,children:r||"▼"})});aO.displayName=O8;var R8="SelectPortal",sO=t=>h.jsx(Fo,{asChild:!0,...t});sO.displayName=R8;var _o="SelectContent",lO=v.forwardRef((t,e)=>{const n=ao(_o,t.__scopeSelect),[r,o]=v.useState();if(gt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?bu.createPortal(h.jsx(uO,{scope:t.__scopeSelect,children:h.jsx(wc.Slot,{scope:t.__scopeSelect,children:h.jsx("div",{children:t.children})})}),i):null}return h.jsx(cO,{...t,ref:e})});lO.displayName=_o;var Pn=10,[uO,so]=zi(_o),P8="SelectContentImpl",M8=wo("SelectContent.RemoveScroll"),cO=v.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:b,...y}=t,w=ao(_o,n),[C,S]=v.useState(null),[E,T]=v.useState(null),A=Se(e,Y=>S(Y)),[O,M]=v.useState(null),[V,N]=v.useState(null),k=Cc(n),[_,B]=v.useState(!1),L=v.useRef(!1);v.useEffect(()=>{if(C)return Gu(C)},[C]),Bu();const P=v.useCallback(Y=>{const[J,...ie]=k().map(z=>z.ref.current),[oe]=ie.slice(-1),re=document.activeElement;for(const z of Y)if(z===re||(z?.scrollIntoView({block:"nearest"}),z===J&&E&&(E.scrollTop=0),z===oe&&E&&(E.scrollTop=E.scrollHeight),z?.focus(),document.activeElement!==re))return},[k,E]),G=v.useCallback(()=>P([O,C]),[P,O,C]);v.useEffect(()=>{_&&G()},[_,G]);const{onOpenChange:j,triggerPointerDownPosRef:H}=w;v.useEffect(()=>{if(C){let Y={x:0,y:0};const J=oe=>{Y={x:Math.abs(Math.round(oe.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(oe.pageY)-(H.current?.y??0))}},ie=oe=>{Y.x<=10&&Y.y<=10?oe.preventDefault():C.contains(oe.target)||j(!1),document.removeEventListener("pointermove",J),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",ie,{capture:!0})}}},[C,j,H]),v.useEffect(()=>{const Y=()=>j(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[j]);const[U,Q]=NO(Y=>{const J=k().filter(re=>!re.disabled),ie=J.find(re=>re.ref.current===document.activeElement),oe=_O(J,Y,ie);oe&&setTimeout(()=>oe.ref.current.focus())}),$=v.useCallback((Y,J,ie)=>{const oe=!L.current&&!ie;(w.value!==void 0&&w.value===J||oe)&&(M(Y),oe&&(L.current=!0))},[w.value]),q=v.useCallback(()=>C?.focus(),[C]),Z=v.useCallback((Y,J,ie)=>{const oe=!L.current&&!ie;(w.value!==void 0&&w.value===J||oe)&&N(Y)},[w.value]),X=r==="popper"?lg:dO,te=X===lg?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:b}:{};return h.jsx(uO,{scope:n,content:C,viewport:E,onViewportChange:T,itemRefCallback:$,selectedItem:O,onItemLeave:q,itemTextRefCallback:Z,focusSelectedItem:G,selectedItemText:V,position:r,isPositioned:_,searchRef:U,children:h.jsx(fs,{as:M8,allowPinchZoom:!0,children:h.jsx(ds,{asChild:!0,trapped:w.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:se(o,Y=>{w.trigger?.focus({preventScroll:!0}),Y.preventDefault()}),children:h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:h.jsx(X,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Y=>Y.preventDefault(),...y,...te,onPlaced:()=>B(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:se(y.onKeyDown,Y=>{const J=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!J&&Y.key.length===1&&Q(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let oe=k().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const re=Y.target,z=oe.indexOf(re);oe=oe.slice(z+1)}setTimeout(()=>P(oe)),Y.preventDefault()}})})})})})})});cO.displayName=P8;var k8="SelectItemAlignedPosition",dO=v.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...o}=t,i=ao(_o,n),a=so(_o,n),[s,l]=v.useState(null),[u,d]=v.useState(null),c=Se(e,A=>d(A)),f=Cc(n),p=v.useRef(!1),m=v.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=a,C=v.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&g&&b&&y){const A=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),M=i.valueNode.getBoundingClientRect(),V=y.getBoundingClientRect();if(i.dir!=="rtl"){const re=V.left-O.left,z=M.left-re,ue=A.left-z,W=A.width+ue,le=Math.max(W,O.width),Ae=window.innerWidth-Pn,Ne=za(z,[Pn,Math.max(Pn,Ae-le)]);s.style.minWidth=W+"px",s.style.left=Ne+"px"}else{const re=O.right-V.right,z=window.innerWidth-M.right-re,ue=window.innerWidth-A.right-z,W=A.width+ue,le=Math.max(W,O.width),Ae=window.innerWidth-Pn,Ne=za(z,[Pn,Math.max(Pn,Ae-le)]);s.style.minWidth=W+"px",s.style.right=Ne+"px"}const N=f(),k=window.innerHeight-Pn*2,_=g.scrollHeight,B=window.getComputedStyle(u),L=parseInt(B.borderTopWidth,10),P=parseInt(B.paddingTop,10),G=parseInt(B.borderBottomWidth,10),j=parseInt(B.paddingBottom,10),H=L+P+_+j+G,U=Math.min(b.offsetHeight*5,H),Q=window.getComputedStyle(g),$=parseInt(Q.paddingTop,10),q=parseInt(Q.paddingBottom,10),Z=A.top+A.height/2-Pn,X=k-Z,te=b.offsetHeight/2,Y=b.offsetTop+te,J=L+P+Y,ie=H-J;if(J<=Z){const re=N.length>0&&b===N[N.length-1].ref.current;s.style.bottom="0px";const z=u.clientHeight-g.offsetTop-g.offsetHeight,ue=Math.max(X,te+(re?q:0)+z+G),W=J+ue;s.style.height=W+"px"}else{const re=N.length>0&&b===N[0].ref.current;s.style.top="0px";const ue=Math.max(Z,L+g.offsetTop+(re?$:0)+te)+ie;s.style.height=ue+"px",g.scrollTop=J-Z+g.offsetTop}s.style.margin=`${Pn}px 0`,s.style.minHeight=U+"px",s.style.maxHeight=k+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,s,u,g,b,y,i.dir,r]);gt(()=>C(),[C]);const[S,E]=v.useState();gt(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const T=v.useCallback(A=>{A&&m.current===!0&&(C(),w?.(),m.current=!1)},[C,w]);return h.jsx(j8,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:T,children:h.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:h.jsx(he.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});dO.displayName=k8;var D8="SelectPopperPosition",lg=v.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Pn,...i}=t,a=Sc(n);return h.jsx(gs,{...a,...i,ref:e,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});lg.displayName=D8;var[j8,gv]=zi(_o,{}),ug="SelectViewport",fO=v.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...o}=t,i=so(ug,n),a=gv(ug,n),s=Se(e,i.onViewportChange),l=v.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),h.jsx(wc.Slot,{scope:n,children:h.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:se(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=a;if(f?.current&&c){const p=Math.abs(l.current-d.scrollTop);if(p>0){const m=window.innerHeight-Pn*2,g=parseFloat(c.style.minHeight),b=parseFloat(c.style.height),y=Math.max(g,b);if(y<m){const w=y+p,C=Math.min(m,w),S=w-C;c.style.height=C+"px",c.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,c.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});fO.displayName=ug;var hO="SelectGroup",[L8,B8]=zi(hO),pO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=ft();return h.jsx(L8,{scope:n,id:o,children:h.jsx(he.div,{role:"group","aria-labelledby":o,...r,ref:e})})});pO.displayName=hO;var mO="SelectLabel",gO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=B8(mO,n);return h.jsx(he.div,{id:o.id,...r,ref:e})});gO.displayName=mO;var ru="SelectItem",[F8,bO]=zi(ru),vO=v.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=t,s=ao(ru,n),l=so(ru,n),u=s.value===r,[d,c]=v.useState(i??""),[f,p]=v.useState(!1),m=Se(e,w=>l.itemRefCallback?.(w,r,o)),g=ft(),b=v.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(F8,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:v.useCallback(w=>{c(C=>C||(w?.textContent??"").trim())},[]),children:h.jsx(wc.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:h.jsx(he.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:m,onFocus:se(a.onFocus,()=>p(!0)),onBlur:se(a.onBlur,()=>p(!1)),onClick:se(a.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:se(a.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:se(a.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:se(a.onPointerMove,w=>{b.current=w.pointerType,o?l.onItemLeave?.():b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:se(a.onPointerLeave,w=>{w.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:se(a.onKeyDown,w=>{l.searchRef?.current!==""&&w.key===" "||(I8.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});vO.displayName=ru;var wa="SelectItemText",yO=v.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,...i}=t,a=ao(wa,n),s=so(wa,n),l=bO(wa,n),u=_8(wa,n),[d,c]=v.useState(null),f=Se(e,y=>c(y),l.onItemTextChange,y=>s.itemTextRefCallback?.(y,l.value,l.disabled)),p=d?.textContent,m=v.useMemo(()=>h.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return gt(()=>(g(m),()=>b(m)),[g,b,m]),h.jsxs(h.Fragment,{children:[h.jsx(he.span,{id:l.textId,...i,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?bu.createPortal(i.children,a.valueNode):null]})});yO.displayName=wa;var xO="SelectItemIndicator",wO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return bO(xO,n).isSelected?h.jsx(he.span,{"aria-hidden":!0,...r,ref:e}):null});wO.displayName=xO;var cg="SelectScrollUpButton",CO=v.forwardRef((t,e)=>{const n=so(cg,t.__scopeSelect),r=gv(cg,t.__scopeSelect),[o,i]=v.useState(!1),a=Se(e,r.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?h.jsx(EO,{...t,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});CO.displayName=cg;var dg="SelectScrollDownButton",SO=v.forwardRef((t,e)=>{const n=so(dg,t.__scopeSelect),r=gv(dg,t.__scopeSelect),[o,i]=v.useState(!1),a=Se(e,r.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?h.jsx(EO,{...t,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});SO.displayName=dg;var EO=v.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=t,i=so("SelectScrollButton",n),a=v.useRef(null),s=Cc(n),l=v.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),gt(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),h.jsx(he.div,{"aria-hidden":!0,...o,ref:e,style:{flexShrink:0,...o.style},onPointerDown:se(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:se(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:se(o.onPointerLeave,()=>{l()})})}),G8="SelectSeparator",IO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return h.jsx(he.div,{"aria-hidden":!0,...r,ref:e})});IO.displayName=G8;var fg="SelectArrow",$8=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=Sc(n),i=ao(fg,n),a=so(fg,n);return i.open&&a.position==="popper"?h.jsx(bs,{...o,...r,ref:e}):null});$8.displayName=fg;var V8="SelectBubbleInput",AO=v.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const o=v.useRef(null),i=Se(r,o),a=us(e);return v.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&d){const c=new Event("change",{bubbles:!0});d.call(s,e),s.dispatchEvent(c)}},[a,e]),h.jsx(he.select,{...n,style:{...PN,...n.style},ref:i,defaultValue:e})});AO.displayName=V8;function TO(t){return t===""||t===void 0}function NO(t){const e=It(t),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(a=>{const s=n.current+a;e(s),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[e]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function _O(t,e,n){const o=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=W8(t,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function W8(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var H8=tO,q8=rO,z8=iO,X8=aO,Y8=sO,U8=lO,Z8=fO,J8=pO,K8=gO,Q8=vO,e7=yO,t7=wO,n7=CO,r7=SO,o7=IO;function OO({...t}){return h.jsx(H8,{"data-slot":"select",...t})}function i7({...t}){return h.jsx(J8,{"data-slot":"select-group",...t})}function RO({...t}){return h.jsx(z8,{"data-slot":"select-value",...t})}function PO({className:t,size:e="default",children:n,...r}){return h.jsxs(q8,{"data-slot":"select-trigger","data-size":e,className:D("ui:flex ui:h-10 ui:w-full ui:items-center ui:justify-between ui:rounded-md ui:border-solid ui:border ui:border-input ui:bg-background ui:px-3 ui:py-2 ui:text-sm ui:placeholder:text-muted-foreground ui:hover:bg-background ui:focus:outline-none ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:[&>span]:line-clamp-1",t),...r,children:[n,h.jsx(X8,{asChild:!0,children:h.jsx(Mi,{className:"ui:size-4 ui:opacity-50"})})]})}function MO({className:t,children:e,position:n="item-aligned",isPortal:r=!1,align:o="center",...i}){const a=h.jsxs(U8,{"data-slot":"select-content",className:D("ui:relative ui:z-50 ui:max-h-96 ui:min-w-32 ui:overflow-hidden ui:rounded-md ui:border ui:bg-popover ui:text-popover-foreground ui:shadow-md ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"ui:data-[side=bottom]:translate-y-1 ui:data-[side=left]:-translate-x-1 ui:data-[side=right]:translate-x-1 ui:data-[side=top]:-translate-y-1",t),position:n,align:o,...i,children:[h.jsx(DO,{}),h.jsx(Z8,{className:D("ui:p-1",n==="popper"&&"ui:h-(--radix-select-trigger-height) ui:w-full ui:min-w-(--radix-select-trigger-width) ui:scroll-my-1"),children:e}),h.jsx(jO,{})]});return r?h.jsx(Y8,{children:a}):a}function a7({className:t,...e}){return h.jsx(K8,{"data-slot":"select-label",className:D("ui:text-muted-foreground ui:px-2 ui:py-1.5 ui:text-xs",t),...e})}function kO({className:t,children:e,...n}){return h.jsxs(Q8,{"data-slot":"select-item",className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:relative ui:flex ui:w-full ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-8 ui:pl-2 ui:text-sm ui:outline-hidden ui:select-none ui:data-disabled:pointer-events-none ui:data-disabled:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4 ui:*:[span]:last:flex ui:*:[span]:last:items-center ui:*:[span]:last:gap-2",t),...n,children:[h.jsx("span",{"data-slot":"select-item-indicator",className:"ui:absolute ui:right-2 ui:flex ui:size-3.5 ui:items-center ui:justify-center",children:h.jsx(t7,{children:h.jsx(Oa,{className:"ui:size-4"})})}),h.jsx(e7,{children:e})]})}function s7({className:t,...e}){return h.jsx(o7,{"data-slot":"select-separator",className:D("ui:bg-border ui:pointer-events-none ui:-mx-1 ui:my-1 ui:h-px",t),...e})}function DO({className:t,...e}){return h.jsx(n7,{"data-slot":"select-scroll-up-button",className:D("ui:flex ui:cursor-default ui:items-center ui:justify-center ui:py-1",t),...e,children:h.jsx(kS,{className:"ui:size-4"})})}function jO({className:t,...e}){return h.jsx(r7,{"data-slot":"select-scroll-down-button",className:D("ui:flex ui:cursor-default ui:items-center ui:justify-center ui:py-1",t),...e,children:h.jsx(Mi,{className:"ui:size-4"})})}const l7=({hasFormControlWrapper:t=!1,children:e})=>t?h.jsx(hn,{children:e}):e,u7=({options:t,placeholder:e,hasFormControlWrapper:n=!1,selectContentClassName:r,onChange:o,value:i,label:a,triggerClassName:s,containerClassName:l,isPortal:u=!1,...d})=>h.jsxs("article",{className:l,children:[h.jsx(Tn,{className:"ui:mb-2 ui:block",children:a}),h.jsxs(OO,{onValueChange:o,value:i,...d,children:[h.jsx(l7,{hasFormControlWrapper:n,children:h.jsx(PO,{className:s,children:h.jsx(RO,{placeholder:e})})}),h.jsx(MO,{className:r,isPortal:u,children:t.map(c=>h.jsx(kO,{value:c.value,children:c.label},c.value))})]})]});var c7="Separator",Lw="horizontal",d7=["horizontal","vertical"],LO=v.forwardRef((t,e)=>{const{decorative:n,orientation:r=Lw,...o}=t,i=f7(r)?r:Lw,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return h.jsx(nn.div,{"data-orientation":i,...s,...o,ref:e})});LO.displayName=c7;function f7(t){return d7.includes(t)}var h7=LO;function BO({className:t,orientation:e="horizontal",decorative:n=!0,...r}){return h.jsx(h7,{"data-slot":"separator",decorative:n,orientation:e,className:D("ui:bg-border ui:shrink-0 ui:data-[orientation=horizontal]:h-px ui:data-[orientation=horizontal]:w-full ui:data-[orientation=vertical]:h-full ui:data-[orientation=vertical]:w-px",t),...r})}function Oo(t){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oo(t)}function p7(t,e){if(Oo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function FO(t){var e=p7(t,"string");return Oo(e)=="symbol"?e:e+""}function Ca(t,e,n){return(e=FO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bw(Object(n),!0).forEach(function(r){Ca(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function m7(t){if(Array.isArray(t))return t}function g7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function hg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function GO(t,e){if(t){if(typeof t=="string")return hg(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hg(t,e):void 0}}function b7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kr(t,e){return m7(t)||g7(t,e)||GO(t,e)||b7()}function Sr(t,e){if(t==null)return{};var n,r,o=r9(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var v7=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function $O(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,o=r===void 0?!1:r,i=t.defaultValue,a=i===void 0?null:i,s=t.inputValue,l=t.menuIsOpen,u=t.onChange,d=t.onInputChange,c=t.onMenuClose,f=t.onMenuOpen,p=t.value,m=Sr(t,v7),g=I.useState(s!==void 0?s:n),b=kr(g,2),y=b[0],w=b[1],C=I.useState(l!==void 0?l:o),S=kr(C,2),E=S[0],T=S[1],A=I.useState(p!==void 0?p:a),O=kr(A,2),M=O[0],V=O[1],N=I.useCallback(function(j,H){typeof u=="function"&&u(j,H),V(j)},[u]),k=I.useCallback(function(j,H){var U;typeof d=="function"&&(U=d(j,H)),w(U!==void 0?U:j)},[d]),_=I.useCallback(function(){typeof f=="function"&&f(),T(!0)},[f]),B=I.useCallback(function(){typeof c=="function"&&c(),T(!1)},[c]),L=s!==void 0?s:y,P=l!==void 0?l:E,G=p!==void 0?p:M;return Ce(Ce({},m),{},{inputValue:L,menuIsOpen:P,onChange:N,onInputChange:k,onMenuClose:B,onMenuOpen:_,value:G})}function y7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,FO(r.key),r)}}function x7(t,e,n){return e&&Fw(t.prototype,e),n&&Fw(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function w7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bm(t,e)}function ou(t){return ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ou(t)}function VO(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VO=function(){return!!t})()}function C7(t,e){if(e&&(Oo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o9(t)}function S7(t){var e=VO();return function(){var n,r=ou(t);if(e){var o=ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C7(this,n)}}function E7(t){if(Array.isArray(t))return hg(t)}function I7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function A7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(t){return E7(t)||I7(t)||GO(t)||A7()}function T7(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function N7(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var _7=(function(){function t(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(N7(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=T7(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},t})(),Gt="-ms-",iu="-moz-",He="-webkit-",WO="comm",bv="rule",vv="decl",O7="@import",HO="@keyframes",R7="@layer",P7=Math.abs,Ec=String.fromCharCode,M7=Object.assign;function k7(t,e){return kt(t,0)^45?(((e<<2^kt(t,0))<<2^kt(t,1))<<2^kt(t,2))<<2^kt(t,3):0}function qO(t){return t.trim()}function D7(t,e){return(t=e.exec(t))?t[0]:t}function qe(t,e,n){return t.replace(e,n)}function pg(t,e){return t.indexOf(e)}function kt(t,e){return t.charCodeAt(e)|0}function Xa(t,e,n){return t.slice(e,n)}function rr(t){return t.length}function yv(t){return t.length}function ul(t,e){return e.push(t),t}function j7(t,e){return t.map(e).join("")}var Ic=1,Oi=1,zO=0,tn=0,xt=0,Xi="";function Ac(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:Ic,column:Oi,length:a,return:""}}function ca(t,e){return M7(Ac("",null,null,"",null,null,0),t,{length:-t.length},e)}function L7(){return xt}function B7(){return xt=tn>0?kt(Xi,--tn):0,Oi--,xt===10&&(Oi=1,Ic--),xt}function dn(){return xt=tn<zO?kt(Xi,tn++):0,Oi++,xt===10&&(Oi=1,Ic++),xt}function ur(){return kt(Xi,tn)}function Tl(){return tn}function Is(t,e){return Xa(Xi,t,e)}function Ya(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function XO(t){return Ic=Oi=1,zO=rr(Xi=t),tn=0,[]}function YO(t){return Xi="",t}function Nl(t){return qO(Is(tn-1,mg(t===91?t+2:t===40?t+1:t)))}function F7(t){for(;(xt=ur())&&xt<33;)dn();return Ya(t)>2||Ya(xt)>3?"":" "}function G7(t,e){for(;--e&&dn()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return Is(t,Tl()+(e<6&&ur()==32&&dn()==32))}function mg(t){for(;dn();)switch(xt){case t:return tn;case 34:case 39:t!==34&&t!==39&&mg(xt);break;case 40:t===41&&mg(t);break;case 92:dn();break}return tn}function $7(t,e){for(;dn()&&t+xt!==57;)if(t+xt===84&&ur()===47)break;return"/*"+Is(e,tn-1)+"*"+Ec(t===47?t:dn())}function V7(t){for(;!Ya(ur());)dn();return Is(t,tn)}function W7(t){return YO(_l("",null,null,null,[""],t=XO(t),0,[0],t))}function _l(t,e,n,r,o,i,a,s,l){for(var u=0,d=0,c=a,f=0,p=0,m=0,g=1,b=1,y=1,w=0,C="",S=o,E=i,T=r,A=C;b;)switch(m=w,w=dn()){case 40:if(m!=108&&kt(A,c-1)==58){pg(A+=qe(Nl(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Nl(w);break;case 9:case 10:case 13:case 32:A+=F7(m);break;case 92:A+=G7(Tl()-1,7);continue;case 47:switch(ur()){case 42:case 47:ul(H7($7(dn(),Tl()),e,n),l);break;default:A+="/"}break;case 123*g:s[u++]=rr(A)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=qe(A,/\f/g,"")),p>0&&rr(A)-c&&ul(p>32?$w(A+";",r,n,c-1):$w(qe(A," ","")+";",r,n,c-2),l);break;case 59:A+=";";default:if(ul(T=Gw(A,e,n,u,d,o,s,C,S=[],E=[],c),i),w===123)if(d===0)_l(A,e,T,T,S,i,c,s,E);else switch(f===99&&kt(A,3)===110?100:f){case 100:case 108:case 109:case 115:_l(t,T,T,r&&ul(Gw(t,T,T,0,0,o,s,C,o,S=[],c),E),o,E,c,s,r?S:E);break;default:_l(A,T,T,T,[""],E,0,s,E)}}u=d=p=0,g=y=1,C=A="",c=a;break;case 58:c=1+rr(A),p=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&B7()==125)continue}switch(A+=Ec(w),w*g){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[u++]=(rr(A)-1)*y,y=1;break;case 64:ur()===45&&(A+=Nl(dn())),f=ur(),d=c=rr(C=A+=V7(Tl())),w++;break;case 45:m===45&&rr(A)==2&&(g=0)}}return i}function Gw(t,e,n,r,o,i,a,s,l,u,d){for(var c=o-1,f=o===0?i:[""],p=yv(f),m=0,g=0,b=0;m<r;++m)for(var y=0,w=Xa(t,c+1,c=P7(g=a[m])),C=t;y<p;++y)(C=qO(g>0?f[y]+" "+w:qe(w,/&\f/g,f[y])))&&(l[b++]=C);return Ac(t,e,n,o===0?bv:s,l,u,d)}function H7(t,e,n){return Ac(t,e,n,WO,Ec(L7()),Xa(t,2,-2),0)}function $w(t,e,n,r){return Ac(t,e,n,vv,Xa(t,0,r),Xa(t,r+1,-1),r)}function bi(t,e){for(var n="",r=yv(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function q7(t,e,n,r){switch(t.type){case R7:if(t.children.length)break;case O7:case vv:return t.return=t.return||t.value;case WO:return"";case HO:return t.return=t.value+"{"+bi(t.children,r)+"}";case bv:t.value=t.props.join(",")}return rr(n=bi(t.children,r))?t.return=t.value+"{"+n+"}":""}function z7(t){var e=yv(t);return function(n,r,o,i){for(var a="",s=0;s<e;s++)a+=t[s](n,r,o,i)||"";return a}}function X7(t){return function(e){e.root||(e=e.return)&&t(e)}}function Y7(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var U7=function(e,n,r){for(var o=0,i=0;o=i,i=ur(),o===38&&i===12&&(n[r]=1),!Ya(i);)dn();return Is(e,tn)},Z7=function(e,n){var r=-1,o=44;do switch(Ya(o)){case 0:o===38&&ur()===12&&(n[r]=1),e[r]+=U7(tn-1,n,r);break;case 2:e[r]+=Nl(o);break;case 4:if(o===44){e[++r]=ur()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ec(o)}while(o=dn());return e},J7=function(e,n){return YO(Z7(XO(e),n))},Vw=new WeakMap,K7=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Vw.get(r))&&!o){Vw.set(e,!0);for(var i=[],a=J7(n,i),s=r.props,l=0,u=0;l<a.length;l++)for(var d=0;d<s.length;d++,u++)e.props[u]=i[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},Q7=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function UO(t,e){switch(k7(t,e)){case 5103:return He+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return He+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return He+t+iu+t+Gt+t+t;case 6828:case 4268:return He+t+Gt+t+t;case 6165:return He+t+Gt+"flex-"+t+t;case 5187:return He+t+qe(t,/(\w+).+(:[^]+)/,He+"box-$1$2"+Gt+"flex-$1$2")+t;case 5443:return He+t+Gt+"flex-item-"+qe(t,/flex-|-self/,"")+t;case 4675:return He+t+Gt+"flex-line-pack"+qe(t,/align-content|flex-|-self/,"")+t;case 5548:return He+t+Gt+qe(t,"shrink","negative")+t;case 5292:return He+t+Gt+qe(t,"basis","preferred-size")+t;case 6060:return He+"box-"+qe(t,"-grow","")+He+t+Gt+qe(t,"grow","positive")+t;case 4554:return He+qe(t,/([^-])(transform)/g,"$1"+He+"$2")+t;case 6187:return qe(qe(qe(t,/(zoom-|grab)/,He+"$1"),/(image-set)/,He+"$1"),t,"")+t;case 5495:case 3959:return qe(t,/(image-set\([^]*)/,He+"$1$`$1");case 4968:return qe(qe(t,/(.+:)(flex-)?(.*)/,He+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+He+t+t;case 4095:case 3583:case 4068:case 2532:return qe(t,/(.+)-inline(.+)/,He+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rr(t)-1-e>6)switch(kt(t,e+1)){case 109:if(kt(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+He+"$2-$3$1"+iu+(kt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~pg(t,"stretch")?UO(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(kt(t,e+1)!==115)break;case 6444:switch(kt(t,rr(t)-3-(~pg(t,"!important")&&10))){case 107:return qe(t,":",":"+He)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+He+(kt(t,14)===45?"inline-":"")+"box$3$1"+He+"$2$3$1"+Gt+"$2box$3")+t}break;case 5936:switch(kt(t,e+11)){case 114:return He+t+Gt+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return He+t+Gt+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return He+t+Gt+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return He+t+Gt+t+t}return t}var eX=function(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case vv:e.return=UO(e.value,e.length);break;case HO:return bi([ca(e,{value:qe(e.value,"@","@"+He)})],o);case bv:if(e.length)return j7(e.props,function(i){switch(D7(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([ca(e,{props:[qe(i,/:(read-\w+)/,":"+iu+"$1")]})],o);case"::placeholder":return bi([ca(e,{props:[qe(i,/:(plac\w+)/,":"+He+"input-$1")]}),ca(e,{props:[qe(i,/:(plac\w+)/,":"+iu+"$1")]}),ca(e,{props:[qe(i,/:(plac\w+)/,Gt+"input-$1")]})],o)}return""})}},tX=[eX],nX=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=e.stylisPlugins||tX,i={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(g)});var l,u=[K7,Q7];{var d,c=[q7,X7(function(g){d.insert(g)})],f=z7(u.concat(o,c)),p=function(b){return bi(W7(b),f)};l=function(b,y,w,C){d=w,p(b?b+"{"+y.styles+"}":y.styles),C&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new _7({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(s),m},Zp,Ww;function rX(){if(Ww)return Zp;Ww=1;var t=n9(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[t.ForwardRef]=r,i[t.Memo]=o;function a(m){return t.isMemo(m)?o:i[m.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,f=Object.prototype;function p(m,g,b){if(typeof g!="string"){if(f){var y=c(g);y&&y!==f&&p(m,y,b)}var w=l(g);u&&(w=w.concat(u(g)));for(var C=a(m),S=a(g),E=0;E<w.length;++E){var T=w[E];if(!n[T]&&!(b&&b[T])&&!(S&&S[T])&&!(C&&C[T])){var A=d(g,T);try{s(m,T,A)}catch{}}}}return m}return Zp=p,Zp}rX();var oX=!0;function iX(t,e,n){var r="";return n.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(r+=o+" ")}),r}var ZO=function(e,n,r){var o=e.key+"-"+n.name;(r===!1||oX===!1)&&e.registered[o]===void 0&&(e.registered[o]=n.styles)},aX=function(e,n,r){ZO(e,n,r);var o=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+o:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function sX(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var lX={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uX=/[A-Z]|^ms/g,cX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,JO=function(e){return e.charCodeAt(1)===45},Hw=function(e){return e!=null&&typeof e!="boolean"},Jp=Y7(function(t){return JO(t)?t:t.replace(uX,"-$&").toLowerCase()}),qw=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(cX,function(r,o,i){return or={name:o,styles:i,next:or},o})}return lX[e]!==1&&!JO(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ua(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return or={name:o.name,styles:o.styles,next:or},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)or={name:a.name,styles:a.styles,next:or},a=a.next;var s=i.styles+";";return s}return dX(t,e,n)}case"function":{if(t!==void 0){var l=or,u=n(t);return or=l,Ua(t,e,u)}break}}var d=n;return d}function dX(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ua(t,e,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;Hw(s)&&(r+=Jp(i)+":"+qw(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var l=0;l<a.length;l++)Hw(a[l])&&(r+=Jp(i)+":"+qw(i,a[l])+";");else{var u=Ua(t,e,a);switch(i){case"animation":case"animationName":{r+=Jp(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var zw=/label:\s*([^\s;{]+)\s*(;|$)/g,or;function KO(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";or=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=Ua(n,e,i);else{var a=i;o+=a[0]}for(var s=1;s<t.length;s++)if(o+=Ua(n,e,t[s]),r){var l=i;o+=l[s]}zw.lastIndex=0;for(var u="",d;(d=zw.exec(o))!==null;)u+="-"+d[1];var c=sX(o)+u;return{name:c,styles:o,next:or}}var fX=function(e){return e()},hX=v.useInsertionEffect?v.useInsertionEffect:!1,pX=hX||fX,QO=v.createContext(typeof HTMLElement<"u"?nX({key:"css"}):null);QO.Provider;var mX=function(e){return I.forwardRef(function(n,r){var o=I.useContext(QO);return e(n,o,r)})},gX=v.createContext({}),xv={}.hasOwnProperty,gg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bX=function(e,n){var r={};for(var o in n)xv.call(n,o)&&(r[o]=n[o]);return r[gg]=e,r},vX=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;return ZO(n,r,o),pX(function(){return aX(n,r,o)}),null},yX=mX(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var o=t[gg],i=[r],a="";typeof t.className=="string"?a=iX(e.registered,i,t.className):t.className!=null&&(a=t.className+" ");var s=KO(i,void 0,v.useContext(gX));a+=e.key+"-"+s.name;var l={};for(var u in t)xv.call(t,u)&&u!=="css"&&u!==gg&&(l[u]=t[u]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(vX,{cache:e,serialized:s,isStringTag:typeof o=="string"}),v.createElement(o,l))}),xX=yX,we=function(e,n){var r=arguments;if(n==null||!xv.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=xX,i[1]=bX(e,n);for(var a=2;a<o;a++)i[a]=r[a];return v.createElement.apply(null,i)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(we||(we={}));function wv(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return KO(e)}function wX(){var t=wv.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function CX(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var bg=I.useLayoutEffect,SX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],au=function(){};function EX(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function IX(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(e&&t)for(var a in e)e.hasOwnProperty(a)&&e[a]&&i.push("".concat(EX(t,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var su=function(e){return kX(e)?e.filter(Boolean):Oo(e)==="object"&&e!==null?[e]:[]},eR=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=Sr(e,SX);return Ce({},n)},ht=function(e,n,r){var o=e.cx,i=e.getStyles,a=e.getClassNames,s=e.className;return{css:i(n,e),className:o(r??{},a(n,e),s)}};function Tc(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function AX(t){return Tc(t)?window.innerHeight:t.clientHeight}function tR(t){return Tc(t)?window.pageYOffset:t.scrollTop}function lu(t,e){if(Tc(t)){window.scrollTo(0,e);return}t.scrollTop=e}function TX(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}function NX(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function cl(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:au,o=tR(t),i=e-o,a=10,s=0;function l(){s+=a;var u=NX(s,o,i,n);lu(t,u),s<n?window.requestAnimationFrame(l):r(t)}l()}function Xw(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=e.offsetHeight/3;r.bottom+o>n.bottom?lu(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<n.top&&lu(t,Math.max(e.offsetTop-o,0))}function _X(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Yw(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function OX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var nR=!1,RX={get passive(){return nR=!0}},dl=typeof window<"u"?window:{};dl.addEventListener&&dl.removeEventListener&&(dl.addEventListener("p",au,RX),dl.removeEventListener("p",au,!1));var PX=nR;function MX(t){return t!=null}function kX(t){return Array.isArray(t)}function Sa(t,e,n){return t?e:n}var DX=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(e).filter(function(a){var s=kr(a,1),l=s[0];return!r.includes(l)});return i.reduce(function(a,s){var l=kr(s,2),u=l[0],d=l[1];return a[u]=d,a},{})},jX=["children","innerProps"],LX=["children","innerProps"];function BX(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.controlHeight,l=TX(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var d=l.getBoundingClientRect(),c=d.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,g=f.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,w=a?window.innerHeight:AX(l),C=tR(l),S=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),T=y-E,A=w-g,O=T+C,M=c-C-g,V=p-w+C+S,N=C+g-E,k=160;switch(o){case"auto":case"bottom":if(A>=m)return{placement:"bottom",maxHeight:e};if(M>=m&&!a)return i&&cl(l,V,k),{placement:"bottom",maxHeight:e};if(!a&&M>=r||a&&A>=r){i&&cl(l,V,k);var _=a?A-S:M-S;return{placement:"bottom",maxHeight:_}}if(o==="auto"||a){var B=e,L=a?T:O;return L>=r&&(B=Math.min(L-S-s,e)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&lu(l,V),{placement:"bottom",maxHeight:e};break;case"top":if(T>=m)return{placement:"top",maxHeight:e};if(O>=m&&!a)return i&&cl(l,N,k),{placement:"top",maxHeight:e};if(!a&&O>=r||a&&T>=r){var P=e;return(!a&&O>=r||a&&T>=r)&&(P=a?T-E:O-E),i&&cl(l,N,k),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function FX(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var rR=function(e){return e==="auto"?"bottom":e},GX=function(e,n){var r,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return Ce((r={label:"menu"},Ca(r,FX(o),"100%"),Ca(r,"position","absolute"),Ca(r,"width","100%"),Ca(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},oR=I.createContext(null),$X=function(e){var n=e.children,r=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=I.useContext(oR)||{},d=u.setPortalPlacement,c=I.useRef(null),f=I.useState(o),p=kr(f,2),m=p[0],g=p[1],b=I.useState(null),y=kr(b,2),w=y[0],C=y[1],S=l.spacing.controlHeight;return bg(function(){var E=c.current;if(E){var T=a==="fixed",A=s&&!T,O=BX({maxHeight:o,menuEl:E,minHeight:r,placement:i,shouldScroll:A,isFixedPosition:T,controlHeight:S});g(O.maxHeight),C(O.placement),d?.(O.placement)}},[o,i,a,s,r,d,S]),n({ref:c,placerProps:Ce(Ce({},e),{},{placement:w||rR(i),maxHeight:m})})},VX=function(e){var n=e.children,r=e.innerRef,o=e.innerProps;return we("div",Ee({},ht(e,"menu",{menu:!0}),{ref:r},o),n)},WX=VX,HX=function(e,n){var r=e.maxHeight,o=e.theme.spacing.baseUnit;return Ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},qX=function(e){var n=e.children,r=e.innerProps,o=e.innerRef,i=e.isMulti;return we("div",Ee({},ht(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},iR=function(e,n){var r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ce({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},zX=iR,XX=iR,YX=function(e){var n=e.children,r=n===void 0?"No options":n,o=e.innerProps,i=Sr(e,jX);return we("div",Ee({},ht(Ce(Ce({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},UX=function(e){var n=e.children,r=n===void 0?"Loading...":n,o=e.innerProps,i=Sr(e,LX);return we("div",Ee({},ht(Ce(Ce({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},ZX=function(e){var n=e.rect,r=e.offset,o=e.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},JX=function(e){var n=e.appendTo,r=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=I.useRef(null),u=I.useRef(null),d=I.useState(rR(a)),c=kr(d,2),f=c[0],p=c[1],m=I.useMemo(function(){return{setPortalPlacement:p}},[]),g=I.useState(null),b=kr(g,2),y=b[0],w=b[1],C=I.useCallback(function(){if(o){var A=_X(o),O=s==="fixed"?0:window.pageYOffset,M=A[f]+O;(M!==y?.offset||A.left!==y?.rect.left||A.width!==y?.rect.width)&&w({offset:M,rect:A})}},[o,s,f,y?.offset,y?.rect.left,y?.rect.width]);bg(function(){C()},[C]);var S=I.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=VA(o,l.current,C,{elementResize:"ResizeObserver"in window}))},[o,C]);bg(function(){S()},[S]);var E=I.useCallback(function(A){l.current=A,S()},[S]);if(!n&&s!=="fixed"||!y)return null;var T=we("div",Ee({ref:E},ht(Ce(Ce({},e),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),r);return we(oR.Provider,{value:m},n?gu.createPortal(T,n):T)},KX=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},QX=function(e){var n=e.children,r=e.innerProps,o=e.isDisabled,i=e.isRtl;return we("div",Ee({},ht(e,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},eY=function(e,n){var r=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Ce({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},tY=function(e){var n=e.children,r=e.innerProps,o=e.isMulti,i=e.hasValue;return we("div",Ee({},ht(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},nY=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},rY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"indicatorsContainer",{indicators:!0}),r),n)},Uw,oY=["size"],iY=["innerProps","isRtl","size"];function aY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sY=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:aY},aR=function(e){var n=e.size,r=Sr(e,oY);return we("svg",Ee({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sY},r))},Cv=function(e){return we(aR,Ee({size:20},e),we("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sR=function(e){return we(aR,Ee({size:20},e),we("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},lR=function(e,n){var r=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return Ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},lY=lR,uY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||we(sR,null))},cY=lR,dY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||we(Cv,null))},fY=function(e,n){var r=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return Ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},hY=function(e){var n=e.innerProps;return we("span",Ee({},n,ht(e,"indicatorSeparator",{"indicator-separator":!0})))},pY=wX(Uw||(Uw=CX([`
81
+ }`;function Z6({ref:t,className:e,containerClassName:n,...r}){return h.jsx(F_,{ref:t,"data-slot":"input-otp",containerClassName:D("ui:flex ui:items-center ui:gap-2 ui:has-disabled:opacity-50",n),className:D("ui:disabled:cursor-not-allowed",e),...r})}function J6({className:t,...e}){return h.jsx("kbd",{"data-slot":"kbd",className:D("ui:bg-muted ui:text-muted-foreground ui:pointer-events-none ui:inline-flex ui:h-5 ui:w-fit ui:min-w-5 ui:items-center ui:justify-center ui:gap-1 ui:rounded-sm ui:px-1 ui:font-sans ui:text-xs ui:font-medium ui:select-none","ui:[&_svg:not([class*='size-'])]:size-3","ui:[[data-slot=tooltip-content]_&]:bg-background/20 ui:[[data-slot=tooltip-content]_&]:text-background ui:dark:[[data-slot=tooltip-content]_&]:bg-background/10",t),...e})}function K6({className:t,...e}){return h.jsx("kbd",{"data-slot":"kbd-group",className:D("ui:inline-flex ui:items-center ui:gap-1",t),...e})}function Q6({label:t,options:e=[],value:n=[],onChange:r,toggleAllLabel:o="all",optionSuffix:i="options",translateOptions:a=!0,containerClassName:s,contentClassName:l,triggerClassName:u,showSelectedItemLabels:d=!0,showErrorPlaceholder:c=!1,error:f=""}){const[p,m]=I.useState(!1),[g,b]=I.useState(n),y=I.useRef(null),w=T=>{typeof r=="function"&&r(T)},C=T=>{let A=[...g||[]];g?.includes(T)?A=A.filter(O=>O!==T):A.push(T),b(A),w(A)},S=()=>{let T=[];g?.length!==e?.length&&(T=e?.map(A=>A.value)||[]),b(T),w(T)};I.useEffect(()=>{b(n)},[n]);const E=()=>{const T=e?.filter(A=>g?.includes(A.value));return T?.map((A,O)=>h.jsxs(I.Fragment,{children:[A.label,O<T.length-1&&", "]},A.value))};return h.jsxs("article",{className:D("ui:flex ui:flex-col ui:w-full",s),children:[h.jsx(Tn,{variant:"default",className:D("ui:mb-2 ui:truncate ui:w-full ui:text-left",c?"ui:text-red-500":"ui:text-black-950"),children:t}),h.jsxs(TN,{open:p,onOpenChange:T=>{!T&&y.current&&y.current.blur()},children:[h.jsx(NN,{asChild:!0,children:h.jsxs(en,{className:D("ui:min-w-44 ui:w-full ui:lg:w-auto ui:capitalize ui:h-10 ui:justify-between",u),variant:"outline",size:"sm",onClick:()=>m(T=>!T),children:[h.jsxs(fr,{children:[h.jsx(Yt,{condition:d&&g?.length>0,children:h.jsx("p",{className:"ui:truncate ui:w-full ui:text-left",children:E()})}),h.jsx(Yt,{condition:g?.length===e?.length,children:h.jsx("p",{className:"ui:truncate ui:w-full ui:text-left",children:i})}),h.jsx(Co,{children:h.jsx("p",{className:"ui:truncate ui:w-full ui:text-left",children:`counted.${i}`})})]}),p?h.jsx(kS,{size:"16"}):h.jsx(Mi,{size:"16"})]})}),h.jsxs(_N,{className:D("new-design-multi-select-dropdown",l),onPointerDownOutside:()=>m(!1),children:[h.jsx(tg,{checked:g?.length===e?.length,onCheckedChange:S,children:o}),e.map(T=>h.jsx(tg,{checked:g?.includes(T.value),onCheckedChange:()=>C(T.value),children:h.jsxs(fr,{children:[h.jsx(Yt,{condition:a,children:T.label}),h.jsx(Co,{children:T.label})]})},T.value))]})]}),f&&h.jsx(ON,{message:f})]})}function e8({className:t,size:e="default",...n}){return h.jsxs("div",{className:"ui:group/native-select ui:relative ui:w-fit ui:has-[select:disabled]:opacity-50","data-slot":"native-select-wrapper",children:[h.jsx("select",{"data-slot":"native-select","data-size":e,className:D("ui:border-input ui:placeholder:text-muted-foreground ui:selection:bg-primary ui:selection:text-primary-foreground ui:dark:bg-input/30 ui:dark:hover:bg-input/50 ui:h-9 ui:w-full ui:min-w-0 ui:appearance-none ui:rounded-md ui:border ui:bg-transparent ui:px-3 ui:py-2 ui:pr-9 ui:text-sm ui:shadow-xs ui:transition-[color,box-shadow] ui:outline-none ui:disabled:pointer-events-none ui:disabled:cursor-not-allowed ui:data-[size=sm]:h-8 ui:data-[size=sm]:py-1","ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:ring-[3px]","ui:aria-invalid:ring-destructive/20 ui:dark:aria-invalid:ring-destructive/40 ui:aria-invalid:border-destructive",t),...n}),h.jsx(Mi,{className:"ui:text-muted-foreground ui:pointer-events-none ui:absolute ui:top-1/2 right-3.5 ui:size-4 ui:-translate-y-1/2 ui:opacity-50 ui:select-none","aria-hidden":"true","data-slot":"native-select-icon"})]})}function t8({...t}){return h.jsx("option",{"data-slot":"native-select-option",...t})}function n8({className:t,...e}){return h.jsx("optgroup",{"data-slot":"native-select-optgroup",className:D(t),...e})}function r8({className:t,...e}){return h.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:D("ui:mx-auto ui:flex ui:w-full ui:justify-center",t),...e})}function o8({className:t,...e}){return h.jsx("ul",{"data-slot":"pagination-content",className:D("ui:flex ui:flex-row ui:items-center ui:gap-1",t),...e})}function i8({...t}){return h.jsx("li",{"data-slot":"pagination-item",...t})}function fv({className:t,isActive:e,size:n="icon",...r}){return h.jsx("a",{"aria-current":e?"page":void 0,"data-slot":"pagination-link","data-active":e,className:D(Dl({variant:e?"paginationInactive":"paginationActive",size:n}),t),...r})}function a8({className:t,...e}){return h.jsxs(fv,{"aria-label":"Go to previous page",className:D("ui:gap-1 ui:px-2.5 ui:sm:pl-2.5",t),...e,size:"default",children:[h.jsx(MS,{}),h.jsx("span",{className:"ui:hidden ui:sm:block",children:"Previous"})]})}function s8({className:t,...e}){return h.jsxs(fv,{"aria-label":"Go to next page",className:D("ui:gap-1 ui:px-2.5 ui:sm:pr-2.5",t),...e,size:"default",children:[h.jsx("span",{className:"ui:hidden ui:sm:block",children:"Next"}),h.jsx(wu,{})]})}function l8({className:t,...e}){return h.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:D("ui:flex ui:size-9 ui:items-center ui:justify-center",t),...e,children:[h.jsx(jS,{className:"ui:size-4"}),h.jsx("span",{className:"ui:sr-only",children:"More pages"})]})}function u8(t,e){return v.useReducer((n,r)=>e[n][r]??n,t)}var hv="ScrollArea",[G_]=At(hv),[c8,Nn]=G_(hv),$_=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=t,[s,l]=v.useState(null),[u,d]=v.useState(null),[c,f]=v.useState(null),[p,m]=v.useState(null),[g,b]=v.useState(null),[y,w]=v.useState(0),[C,S]=v.useState(0),[E,T]=v.useState(!1),[A,O]=v.useState(!1),M=Se(e,N=>l(N)),V=to(o);return h.jsx(c8,{scope:n,type:r,dir:V,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:d,content:c,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:E,onScrollbarXEnabledChange:T,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:A,onScrollbarYEnabledChange:O,onCornerWidthChange:w,onCornerHeightChange:S,children:h.jsx(he.div,{dir:V,...a,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":C+"px",...t.style}})})});$_.displayName=hv;var V_="ScrollAreaViewport",W_=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=t,a=Nn(V_,n),s=v.useRef(null),l=Se(e,s,a.onViewportChange);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),h.jsx(he.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style},children:h.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});W_.displayName=V_;var Cr="ScrollAreaScrollbar",H_=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=Nn(Cr,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=t.orientation==="horizontal";return v.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?h.jsx(d8,{...r,ref:e,forceMount:n}):o.type==="scroll"?h.jsx(f8,{...r,ref:e,forceMount:n}):o.type==="auto"?h.jsx(q_,{...r,ref:e,forceMount:n}):o.type==="always"?h.jsx(pv,{...r,ref:e}):null});H_.displayName=Cr;var d8=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=Nn(Cr,t.__scopeScrollArea),[i,a]=v.useState(!1);return v.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const u=()=>{window.clearTimeout(l),a(!0)},d=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),h.jsx(pt,{present:n||i,children:h.jsx(q_,{"data-state":i?"visible":"hidden",...r,ref:e})})}),f8=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=Nn(Cr,t.__scopeScrollArea),i=t.orientation==="horizontal",a=xc(()=>l("SCROLL_END"),100),[s,l]=u8("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay,l]),v.useEffect(()=>{const u=o.viewport,d=i?"scrollLeft":"scrollTop";if(u){let c=u[d];const f=()=>{const p=u[d];c!==p&&(l("SCROLL"),a()),c=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,l,a]),h.jsx(pt,{present:n||s!=="hidden",children:h.jsx(pv,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:se(t.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:se(t.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),q_=v.forwardRef((t,e)=>{const n=Nn(Cr,t.__scopeScrollArea),{forceMount:r,...o}=t,[i,a]=v.useState(!1),s=t.orientation==="horizontal",l=xc(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?u:d)}},10);return _i(n.viewport,l),_i(n.content,l),h.jsx(pt,{present:r||i,children:h.jsx(pv,{"data-state":i?"visible":"hidden",...o,ref:e})})}),pv=v.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,o=Nn(Cr,t.__scopeScrollArea),i=v.useRef(null),a=v.useRef(0),[s,l]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Z_(s.viewport,s.content),d={...r,sizes:s,onSizesChange:l,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function c(f,p){return v8(f,a.current,s,p)}return n==="horizontal"?h.jsx(h8,{...d,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,p=jw(f,s,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=c(f,o.dir))}}):n==="vertical"?h.jsx(p8,{...d,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,p=jw(f,s);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=c(f))}}):null}),h8=v.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...o}=t,i=Nn(Cr,t.__scopeScrollArea),[a,s]=v.useState(),l=v.useRef(null),u=Se(e,l,i.onScrollbarXChange);return v.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),h.jsx(X_,{"data-orientation":"horizontal",...o,ref:u,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yc(n)+"px",...t.style},onThumbPointerDown:d=>t.onThumbPointerDown(d.x),onDragScroll:d=>t.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(i.viewport){const f=i.viewport.scrollLeft+d.deltaX;t.onWheelScroll(f),K_(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:nu(a.paddingLeft),paddingEnd:nu(a.paddingRight)}})}})}),p8=v.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...o}=t,i=Nn(Cr,t.__scopeScrollArea),[a,s]=v.useState(),l=v.useRef(null),u=Se(e,l,i.onScrollbarYChange);return v.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),h.jsx(X_,{"data-orientation":"vertical",...o,ref:u,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yc(n)+"px",...t.style},onThumbPointerDown:d=>t.onThumbPointerDown(d.y),onDragScroll:d=>t.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(i.viewport){const f=i.viewport.scrollTop+d.deltaY;t.onWheelScroll(f),K_(f,c)&&d.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:nu(a.paddingTop),paddingEnd:nu(a.paddingBottom)}})}})}),[m8,z_]=G_(Cr),X_=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:u,onWheelScroll:d,onResize:c,...f}=t,p=Nn(Cr,n),[m,g]=v.useState(null),b=Se(e,M=>g(M)),y=v.useRef(null),w=v.useRef(""),C=p.viewport,S=r.content-r.viewport,E=It(d),T=It(l),A=xc(c,10);function O(M){if(y.current){const V=M.clientX-y.current.left,N=M.clientY-y.current.top;u({x:V,y:N})}}return v.useEffect(()=>{const M=V=>{const N=V.target;m?.contains(N)&&E(V,S)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[C,m,S,E]),v.useEffect(T,[r,T]),_i(m,A),_i(p.content,A),h.jsx(m8,{scope:n,scrollbar:m,hasThumb:o,onThumbChange:It(i),onThumbPointerUp:It(a),onThumbPositionChange:T,onThumbPointerDown:It(s),children:h.jsx(he.div,{...f,ref:b,style:{position:"absolute",...f.style},onPointerDown:se(t.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),y.current=m.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),O(M))}),onPointerMove:se(t.onPointerMove,O),onPointerUp:se(t.onPointerUp,M=>{const V=M.target;V.hasPointerCapture(M.pointerId)&&V.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=w.current,p.viewport&&(p.viewport.style.scrollBehavior=""),y.current=null})})})}),tu="ScrollAreaThumb",Y_=v.forwardRef((t,e)=>{const{forceMount:n,...r}=t,o=z_(tu,t.__scopeScrollArea);return h.jsx(pt,{present:n||o.hasThumb,children:h.jsx(g8,{ref:e,...r})})}),g8=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:r,...o}=t,i=Nn(tu,n),a=z_(tu,n),{onThumbPositionChange:s}=a,l=Se(e,c=>a.onThumbChange(c)),u=v.useRef(void 0),d=xc(()=>{u.current&&(u.current(),u.current=void 0)},100);return v.useEffect(()=>{const c=i.viewport;if(c){const f=()=>{if(d(),!u.current){const p=y8(c,s);u.current=p,s()}};return s(),c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[i.viewport,d,s]),h.jsx(he.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:se(t.onPointerDownCapture,c=>{const p=c.target.getBoundingClientRect(),m=c.clientX-p.left,g=c.clientY-p.top;a.onThumbPointerDown({x:m,y:g})}),onPointerUp:se(t.onPointerUp,a.onThumbPointerUp)})});Y_.displayName=tu;var mv="ScrollAreaCorner",U_=v.forwardRef((t,e)=>{const n=Nn(mv,t.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?h.jsx(b8,{...t,ref:e}):null});U_.displayName=mv;var b8=v.forwardRef((t,e)=>{const{__scopeScrollArea:n,...r}=t,o=Nn(mv,n),[i,a]=v.useState(0),[s,l]=v.useState(0),u=!!(i&&s);return _i(o.scrollbarX,()=>{const d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),l(d)}),_i(o.scrollbarY,()=>{const d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),a(d)}),u?h.jsx(he.div,{...r,ref:e,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function nu(t){return t?parseInt(t,10):0}function Z_(t,e){const n=t/e;return isNaN(n)?0:n}function yc(t){const e=Z_(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function v8(t,e,n,r="ltr"){const o=yc(n),i=o/2,a=e||i,s=o-a,l=n.scrollbar.paddingStart+a,u=n.scrollbar.size-n.scrollbar.paddingEnd-s,d=n.content-n.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return J_([l,u],c)(t)}function jw(t,e,n="ltr"){const r=yc(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-o,a=e.content-e.viewport,s=i-r,l=n==="ltr"?[0,a]:[a*-1,0],u=za(t,l);return J_([0,a],[0,s])(u)}function J_(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function K_(t,e){return t>0&&t<e}var y8=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},r=0;return(function o(){const i={left:t.scrollLeft,top:t.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&e(),n=i,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function xc(t,e){const n=It(t),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,e)},[n,e])}function _i(t,e){const n=It(e);gt(()=>{let r=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(t),()=>{window.cancelAnimationFrame(r),o.unobserve(t)}}},[t,n])}var x8=$_,w8=W_,C8=U_;function S8({className:t,children:e,...n}){return h.jsxs(x8,{"data-slot":"scroll-area",className:D("ui:relative",t),...n,children:[h.jsx(w8,{"data-slot":"scroll-area-viewport",className:"ui:focus-visible:ring-ring/50 ui:size-full ui:rounded-[inherit] ui:transition-[color,box-shadow] ui:outline-none ui:focus-visible:ring-[3px] ui:focus-visible:outline-1",children:e}),h.jsx(Q_,{}),h.jsx(C8,{})]})}function Q_({className:t,orientation:e="vertical",...n}){return h.jsx(H_,{"data-slot":"scroll-area-scrollbar",orientation:e,className:D("ui:flex ui:touch-none ui:p-px ui:transition-colors ui:select-none",e==="vertical"&&"ui:h-full ui:w-2.5 ui:border-l ui:border-l-transparent",e==="horizontal"&&"ui:h-2.5 ui:flex-col ui:border-t ui:border-t-transparent",t),...n,children:h.jsx(Y_,{"data-slot":"scroll-area-thumb",className:"ui:bg-border ui:relative ui:flex-1 ui:rounded-full"})})}var E8=[" ","Enter","ArrowUp","ArrowDown"],I8=[" ","Enter"],No="Select",[wc,Cc,A8]=ns(No),[zi]=At(No,[A8,xr]),Sc=xr(),[T8,ao]=zi(No),[N8,_8]=zi(No),eO=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:c,disabled:f,required:p,form:m}=t,g=Sc(e),[b,y]=v.useState(null),[w,C]=v.useState(null),[S,E]=v.useState(!1),T=to(u),[A,O]=jt({prop:r,defaultProp:o??!1,onChange:i,caller:No}),[M,V]=jt({prop:a,defaultProp:s,onChange:l,caller:No}),N=v.useRef(null),k=b?m||!!b.closest("form"):!0,[_,B]=v.useState(new Set),L=Array.from(_).map(P=>P.props.value).join(";");return h.jsx($i,{...g,children:h.jsxs(T8,{required:p,scope:e,trigger:b,onTriggerChange:y,valueNode:w,onValueNodeChange:C,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:ft(),value:M,onValueChange:V,open:A,onOpenChange:O,dir:T,triggerPointerDownPosRef:N,disabled:f,children:[h.jsx(wc.Provider,{scope:e,children:h.jsx(N8,{scope:t.__scopeSelect,onNativeOptionAdd:v.useCallback(P=>{B(G=>new Set(G).add(P))},[]),onNativeOptionRemove:v.useCallback(P=>{B(G=>{const j=new Set(G);return j.delete(P),j})},[]),children:n})}),k?h.jsxs(IO,{"aria-hidden":!0,required:p,tabIndex:-1,name:d,autoComplete:c,value:M,onChange:P=>V(P.target.value),disabled:f,form:m,children:[M===void 0?h.jsx("option",{value:""}):null,Array.from(_)]},L):null]})})};eO.displayName=No;var tO="SelectTrigger",nO=v.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...o}=t,i=Sc(n),a=ao(tO,n),s=a.disabled||r,l=Se(e,a.onTriggerChange),u=Cc(n),d=v.useRef("touch"),[c,f,p]=TO(g=>{const b=u().filter(C=>!C.disabled),y=b.find(C=>C.value===a.value),w=NO(b,g,y);w!==void 0&&a.onValueChange(w.value)}),m=g=>{s||(a.onOpenChange(!0),p()),g&&(a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return h.jsx(Vi,{asChild:!0,...i,children:h.jsx(he.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":AO(a.value)?"":void 0,...o,ref:l,onClick:se(o.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&m(g)}),onPointerDown:se(o.onPointerDown,g=>{d.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(m(g),g.preventDefault())}),onKeyDown:se(o.onKeyDown,g=>{const b=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&f(g.key),!(b&&g.key===" ")&&E8.includes(g.key)&&(m(),g.preventDefault())})})})});nO.displayName=tO;var rO="SelectValue",oO=v.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=t,l=ao(rO,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,c=Se(e,l.onValueNodeChange);return gt(()=>{u(d)},[u,d]),h.jsx(he.span,{...s,ref:c,style:{pointerEvents:"none"},children:AO(l.value)?h.jsx(h.Fragment,{children:a}):i})});oO.displayName=rO;var O8="SelectIcon",iO=v.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...o}=t;return h.jsx(he.span,{"aria-hidden":!0,...o,ref:e,children:r||"▼"})});iO.displayName=O8;var R8="SelectPortal",aO=t=>h.jsx(Fo,{asChild:!0,...t});aO.displayName=R8;var _o="SelectContent",sO=v.forwardRef((t,e)=>{const n=ao(_o,t.__scopeSelect),[r,o]=v.useState();if(gt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?bu.createPortal(h.jsx(lO,{scope:t.__scopeSelect,children:h.jsx(wc.Slot,{scope:t.__scopeSelect,children:h.jsx("div",{children:t.children})})}),i):null}return h.jsx(uO,{...t,ref:e})});sO.displayName=_o;var Pn=10,[lO,so]=zi(_o),P8="SelectContentImpl",M8=wo("SelectContent.RemoveScroll"),uO=v.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:b,...y}=t,w=ao(_o,n),[C,S]=v.useState(null),[E,T]=v.useState(null),A=Se(e,Y=>S(Y)),[O,M]=v.useState(null),[V,N]=v.useState(null),k=Cc(n),[_,B]=v.useState(!1),L=v.useRef(!1);v.useEffect(()=>{if(C)return Gu(C)},[C]),Bu();const P=v.useCallback(Y=>{const[J,...ie]=k().map(z=>z.ref.current),[oe]=ie.slice(-1),re=document.activeElement;for(const z of Y)if(z===re||(z?.scrollIntoView({block:"nearest"}),z===J&&E&&(E.scrollTop=0),z===oe&&E&&(E.scrollTop=E.scrollHeight),z?.focus(),document.activeElement!==re))return},[k,E]),G=v.useCallback(()=>P([O,C]),[P,O,C]);v.useEffect(()=>{_&&G()},[_,G]);const{onOpenChange:j,triggerPointerDownPosRef:H}=w;v.useEffect(()=>{if(C){let Y={x:0,y:0};const J=oe=>{Y={x:Math.abs(Math.round(oe.pageX)-(H.current?.x??0)),y:Math.abs(Math.round(oe.pageY)-(H.current?.y??0))}},ie=oe=>{Y.x<=10&&Y.y<=10?oe.preventDefault():C.contains(oe.target)||j(!1),document.removeEventListener("pointermove",J),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",ie,{capture:!0})}}},[C,j,H]),v.useEffect(()=>{const Y=()=>j(!1);return window.addEventListener("blur",Y),window.addEventListener("resize",Y),()=>{window.removeEventListener("blur",Y),window.removeEventListener("resize",Y)}},[j]);const[U,Q]=TO(Y=>{const J=k().filter(re=>!re.disabled),ie=J.find(re=>re.ref.current===document.activeElement),oe=NO(J,Y,ie);oe&&setTimeout(()=>oe.ref.current.focus())}),$=v.useCallback((Y,J,ie)=>{const oe=!L.current&&!ie;(w.value!==void 0&&w.value===J||oe)&&(M(Y),oe&&(L.current=!0))},[w.value]),q=v.useCallback(()=>C?.focus(),[C]),Z=v.useCallback((Y,J,ie)=>{const oe=!L.current&&!ie;(w.value!==void 0&&w.value===J||oe)&&N(Y)},[w.value]),X=r==="popper"?lg:cO,te=X===lg?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:g,avoidCollisions:b}:{};return h.jsx(lO,{scope:n,content:C,viewport:E,onViewportChange:T,itemRefCallback:$,selectedItem:O,onItemLeave:q,itemTextRefCallback:Z,focusSelectedItem:G,selectedItemText:V,position:r,isPositioned:_,searchRef:U,children:h.jsx(fs,{as:M8,allowPinchZoom:!0,children:h.jsx(ds,{asChild:!0,trapped:w.open,onMountAutoFocus:Y=>{Y.preventDefault()},onUnmountAutoFocus:se(o,Y=>{w.trigger?.focus({preventScroll:!0}),Y.preventDefault()}),children:h.jsx(Bo,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:Y=>Y.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:h.jsx(X,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Y=>Y.preventDefault(),...y,...te,onPlaced:()=>B(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:se(y.onKeyDown,Y=>{const J=Y.ctrlKey||Y.altKey||Y.metaKey;if(Y.key==="Tab"&&Y.preventDefault(),!J&&Y.key.length===1&&Q(Y.key),["ArrowUp","ArrowDown","Home","End"].includes(Y.key)){let oe=k().filter(re=>!re.disabled).map(re=>re.ref.current);if(["ArrowUp","End"].includes(Y.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Y.key)){const re=Y.target,z=oe.indexOf(re);oe=oe.slice(z+1)}setTimeout(()=>P(oe)),Y.preventDefault()}})})})})})})});uO.displayName=P8;var k8="SelectItemAlignedPosition",cO=v.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...o}=t,i=ao(_o,n),a=so(_o,n),[s,l]=v.useState(null),[u,d]=v.useState(null),c=Se(e,A=>d(A)),f=Cc(n),p=v.useRef(!1),m=v.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:y,focusSelectedItem:w}=a,C=v.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&g&&b&&y){const A=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),M=i.valueNode.getBoundingClientRect(),V=y.getBoundingClientRect();if(i.dir!=="rtl"){const re=V.left-O.left,z=M.left-re,ue=A.left-z,W=A.width+ue,le=Math.max(W,O.width),Ae=window.innerWidth-Pn,Ne=za(z,[Pn,Math.max(Pn,Ae-le)]);s.style.minWidth=W+"px",s.style.left=Ne+"px"}else{const re=O.right-V.right,z=window.innerWidth-M.right-re,ue=window.innerWidth-A.right-z,W=A.width+ue,le=Math.max(W,O.width),Ae=window.innerWidth-Pn,Ne=za(z,[Pn,Math.max(Pn,Ae-le)]);s.style.minWidth=W+"px",s.style.right=Ne+"px"}const N=f(),k=window.innerHeight-Pn*2,_=g.scrollHeight,B=window.getComputedStyle(u),L=parseInt(B.borderTopWidth,10),P=parseInt(B.paddingTop,10),G=parseInt(B.borderBottomWidth,10),j=parseInt(B.paddingBottom,10),H=L+P+_+j+G,U=Math.min(b.offsetHeight*5,H),Q=window.getComputedStyle(g),$=parseInt(Q.paddingTop,10),q=parseInt(Q.paddingBottom,10),Z=A.top+A.height/2-Pn,X=k-Z,te=b.offsetHeight/2,Y=b.offsetTop+te,J=L+P+Y,ie=H-J;if(J<=Z){const re=N.length>0&&b===N[N.length-1].ref.current;s.style.bottom="0px";const z=u.clientHeight-g.offsetTop-g.offsetHeight,ue=Math.max(X,te+(re?q:0)+z+G),W=J+ue;s.style.height=W+"px"}else{const re=N.length>0&&b===N[0].ref.current;s.style.top="0px";const ue=Math.max(Z,L+g.offsetTop+(re?$:0)+te)+ie;s.style.height=ue+"px",g.scrollTop=J-Z+g.offsetTop}s.style.margin=`${Pn}px 0`,s.style.minHeight=U+"px",s.style.maxHeight=k+"px",r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,s,u,g,b,y,i.dir,r]);gt(()=>C(),[C]);const[S,E]=v.useState();gt(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const T=v.useCallback(A=>{A&&m.current===!0&&(C(),w?.(),m.current=!1)},[C,w]);return h.jsx(j8,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:T,children:h.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:h.jsx(he.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});cO.displayName=k8;var D8="SelectPopperPosition",lg=v.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Pn,...i}=t,a=Sc(n);return h.jsx(gs,{...a,...i,ref:e,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});lg.displayName=D8;var[j8,gv]=zi(_o,{}),ug="SelectViewport",dO=v.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...o}=t,i=so(ug,n),a=gv(ug,n),s=Se(e,i.onViewportChange),l=v.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),h.jsx(wc.Slot,{scope:n,children:h.jsx(he.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:se(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=a;if(f?.current&&c){const p=Math.abs(l.current-d.scrollTop);if(p>0){const m=window.innerHeight-Pn*2,g=parseFloat(c.style.minHeight),b=parseFloat(c.style.height),y=Math.max(g,b);if(y<m){const w=y+p,C=Math.min(m,w),S=w-C;c.style.height=C+"px",c.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,c.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});dO.displayName=ug;var fO="SelectGroup",[L8,B8]=zi(fO),hO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=ft();return h.jsx(L8,{scope:n,id:o,children:h.jsx(he.div,{role:"group","aria-labelledby":o,...r,ref:e})})});hO.displayName=fO;var pO="SelectLabel",mO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=B8(pO,n);return h.jsx(he.div,{id:o.id,...r,ref:e})});mO.displayName=pO;var ru="SelectItem",[F8,gO]=zi(ru),bO=v.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=t,s=ao(ru,n),l=so(ru,n),u=s.value===r,[d,c]=v.useState(i??""),[f,p]=v.useState(!1),m=Se(e,w=>l.itemRefCallback?.(w,r,o)),g=ft(),b=v.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(F8,{scope:n,value:r,disabled:o,textId:g,isSelected:u,onItemTextChange:v.useCallback(w=>{c(C=>C||(w?.textContent??"").trim())},[]),children:h.jsx(wc.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:h.jsx(he.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:m,onFocus:se(a.onFocus,()=>p(!0)),onBlur:se(a.onBlur,()=>p(!1)),onClick:se(a.onClick,()=>{b.current!=="mouse"&&y()}),onPointerUp:se(a.onPointerUp,()=>{b.current==="mouse"&&y()}),onPointerDown:se(a.onPointerDown,w=>{b.current=w.pointerType}),onPointerMove:se(a.onPointerMove,w=>{b.current=w.pointerType,o?l.onItemLeave?.():b.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:se(a.onPointerLeave,w=>{w.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:se(a.onKeyDown,w=>{l.searchRef?.current!==""&&w.key===" "||(I8.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});bO.displayName=ru;var wa="SelectItemText",vO=v.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,...i}=t,a=ao(wa,n),s=so(wa,n),l=gO(wa,n),u=_8(wa,n),[d,c]=v.useState(null),f=Se(e,y=>c(y),l.onItemTextChange,y=>s.itemTextRefCallback?.(y,l.value,l.disabled)),p=d?.textContent,m=v.useMemo(()=>h.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return gt(()=>(g(m),()=>b(m)),[g,b,m]),h.jsxs(h.Fragment,{children:[h.jsx(he.span,{id:l.textId,...i,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?bu.createPortal(i.children,a.valueNode):null]})});vO.displayName=wa;var yO="SelectItemIndicator",xO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return gO(yO,n).isSelected?h.jsx(he.span,{"aria-hidden":!0,...r,ref:e}):null});xO.displayName=yO;var cg="SelectScrollUpButton",wO=v.forwardRef((t,e)=>{const n=so(cg,t.__scopeSelect),r=gv(cg,t.__scopeSelect),[o,i]=v.useState(!1),a=Se(e,r.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?h.jsx(SO,{...t,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});wO.displayName=cg;var dg="SelectScrollDownButton",CO=v.forwardRef((t,e)=>{const n=so(dg,t.__scopeSelect),r=gv(dg,t.__scopeSelect),[o,i]=v.useState(!1),a=Se(e,r.onScrollButtonChange);return gt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?h.jsx(SO,{...t,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});CO.displayName=dg;var SO=v.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=t,i=so("SelectScrollButton",n),a=v.useRef(null),s=Cc(n),l=v.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),gt(()=>{s().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),h.jsx(he.div,{"aria-hidden":!0,...o,ref:e,style:{flexShrink:0,...o.style},onPointerDown:se(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:se(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:se(o.onPointerLeave,()=>{l()})})}),G8="SelectSeparator",EO=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return h.jsx(he.div,{"aria-hidden":!0,...r,ref:e})});EO.displayName=G8;var fg="SelectArrow",$8=v.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=Sc(n),i=ao(fg,n),a=so(fg,n);return i.open&&a.position==="popper"?h.jsx(bs,{...o,...r,ref:e}):null});$8.displayName=fg;var V8="SelectBubbleInput",IO=v.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const o=v.useRef(null),i=Se(r,o),a=us(e);return v.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&d){const c=new Event("change",{bubbles:!0});d.call(s,e),s.dispatchEvent(c)}},[a,e]),h.jsx(he.select,{...n,style:{...RN,...n.style},ref:i,defaultValue:e})});IO.displayName=V8;function AO(t){return t===""||t===void 0}function TO(t){const e=It(t),n=v.useRef(""),r=v.useRef(0),o=v.useCallback(a=>{const s=n.current+a;e(s),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[e]),i=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function NO(t,e,n){const o=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let a=W8(t,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function W8(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var H8=eO,q8=nO,z8=oO,X8=iO,Y8=aO,U8=sO,Z8=dO,J8=hO,K8=mO,Q8=bO,e7=vO,t7=xO,n7=wO,r7=CO,o7=EO;function _O({...t}){return h.jsx(H8,{"data-slot":"select",...t})}function i7({...t}){return h.jsx(J8,{"data-slot":"select-group",...t})}function OO({...t}){return h.jsx(z8,{"data-slot":"select-value",...t})}function RO({className:t,size:e="default",children:n,...r}){return h.jsxs(q8,{"data-slot":"select-trigger","data-size":e,className:D("ui:flex ui:h-10 ui:w-full ui:items-center ui:justify-between ui:rounded-md ui:border-solid ui:border ui:border-input ui:bg-background ui:px-3 ui:py-2 ui:text-sm ui:placeholder:text-muted-foreground ui:hover:bg-background ui:focus:outline-none ui:disabled:cursor-not-allowed ui:disabled:opacity-50 ui:[&>span]:line-clamp-1",t),...r,children:[n,h.jsx(X8,{asChild:!0,children:h.jsx(Mi,{className:"ui:size-4 ui:opacity-50"})})]})}function PO({className:t,children:e,position:n="item-aligned",isPortal:r=!1,align:o="center",...i}){const a=h.jsxs(U8,{"data-slot":"select-content",className:D("ui:relative ui:z-50 ui:max-h-96 ui:min-w-32 ui:overflow-hidden ui:rounded-md ui:border ui:bg-popover ui:text-popover-foreground ui:shadow-md ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:data-[state=closed]:zoom-out-95 ui:data-[state=open]:zoom-in-95 ui:data-[side=bottom]:slide-in-from-top-2 ui:data-[side=left]:slide-in-from-right-2 ui:data-[side=right]:slide-in-from-left-2 ui:data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"ui:data-[side=bottom]:translate-y-1 ui:data-[side=left]:-translate-x-1 ui:data-[side=right]:translate-x-1 ui:data-[side=top]:-translate-y-1",t),position:n,align:o,...i,children:[h.jsx(kO,{}),h.jsx(Z8,{className:D("ui:p-1",n==="popper"&&"ui:h-(--radix-select-trigger-height) ui:w-full ui:min-w-(--radix-select-trigger-width) ui:scroll-my-1"),children:e}),h.jsx(DO,{})]});return r?h.jsx(Y8,{children:a}):a}function a7({className:t,...e}){return h.jsx(K8,{"data-slot":"select-label",className:D("ui:text-muted-foreground ui:px-2 ui:py-1.5 ui:text-xs",t),...e})}function MO({className:t,children:e,...n}){return h.jsxs(Q8,{"data-slot":"select-item",className:D("ui:focus:bg-accent ui:focus:text-accent-foreground ui:[&_svg:not([class*='text-'])]:text-muted-foreground ui:relative ui:flex ui:w-full ui:cursor-default ui:items-center ui:gap-2 ui:rounded-sm ui:py-1.5 ui:pr-8 ui:pl-2 ui:text-sm ui:outline-hidden ui:select-none ui:data-disabled:pointer-events-none ui:data-disabled:opacity-50 ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4 ui:*:[span]:last:flex ui:*:[span]:last:items-center ui:*:[span]:last:gap-2",t),...n,children:[h.jsx("span",{"data-slot":"select-item-indicator",className:"ui:absolute ui:right-2 ui:flex ui:size-3.5 ui:items-center ui:justify-center",children:h.jsx(t7,{children:h.jsx(Oa,{className:"ui:size-4"})})}),h.jsx(e7,{children:e})]})}function s7({className:t,...e}){return h.jsx(o7,{"data-slot":"select-separator",className:D("ui:bg-border ui:pointer-events-none ui:-mx-1 ui:my-1 ui:h-px",t),...e})}function kO({className:t,...e}){return h.jsx(n7,{"data-slot":"select-scroll-up-button",className:D("ui:flex ui:cursor-default ui:items-center ui:justify-center ui:py-1",t),...e,children:h.jsx(kS,{className:"ui:size-4"})})}function DO({className:t,...e}){return h.jsx(r7,{"data-slot":"select-scroll-down-button",className:D("ui:flex ui:cursor-default ui:items-center ui:justify-center ui:py-1",t),...e,children:h.jsx(Mi,{className:"ui:size-4"})})}const l7=({hasFormControlWrapper:t=!1,children:e})=>t?h.jsx(fn,{children:e}):e,u7=({options:t,placeholder:e,hasFormControlWrapper:n=!1,selectContentClassName:r,onChange:o,value:i,label:a,triggerClassName:s,containerClassName:l,isPortal:u=!1,...d})=>h.jsxs("article",{className:l,children:[h.jsx(Tn,{className:"ui:mb-2 ui:block",children:a}),h.jsxs(_O,{onValueChange:o,value:i,...d,children:[h.jsx(l7,{hasFormControlWrapper:n,children:h.jsx(RO,{className:s,children:h.jsx(OO,{placeholder:e})})}),h.jsx(PO,{className:r,isPortal:u,children:t.map(c=>h.jsx(MO,{value:c.value,children:c.label},c.value))})]})]});var c7="Separator",Lw="horizontal",d7=["horizontal","vertical"],jO=v.forwardRef((t,e)=>{const{decorative:n,orientation:r=Lw,...o}=t,i=f7(r)?r:Lw,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return h.jsx(nn.div,{"data-orientation":i,...s,...o,ref:e})});jO.displayName=c7;function f7(t){return d7.includes(t)}var h7=jO;function LO({className:t,orientation:e="horizontal",decorative:n=!0,...r}){return h.jsx(h7,{"data-slot":"separator",decorative:n,orientation:e,className:D("ui:bg-border ui:shrink-0 ui:data-[orientation=horizontal]:h-px ui:data-[orientation=horizontal]:w-full ui:data-[orientation=vertical]:h-full ui:data-[orientation=vertical]:w-px",t),...r})}function Oo(t){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oo(t)}function p7(t,e){if(Oo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function BO(t){var e=p7(t,"string");return Oo(e)=="symbol"?e:e+""}function Ca(t,e,n){return(e=BO(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ce(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bw(Object(n),!0).forEach(function(r){Ca(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function m7(t){if(Array.isArray(t))return t}function g7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function hg(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function FO(t,e){if(t){if(typeof t=="string")return hg(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hg(t,e):void 0}}function b7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kr(t,e){return m7(t)||g7(t,e)||FO(t,e)||b7()}function Sr(t,e){if(t==null)return{};var n,r,o=n9(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var v7=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function GO(t){var e=t.defaultInputValue,n=e===void 0?"":e,r=t.defaultMenuIsOpen,o=r===void 0?!1:r,i=t.defaultValue,a=i===void 0?null:i,s=t.inputValue,l=t.menuIsOpen,u=t.onChange,d=t.onInputChange,c=t.onMenuClose,f=t.onMenuOpen,p=t.value,m=Sr(t,v7),g=I.useState(s!==void 0?s:n),b=kr(g,2),y=b[0],w=b[1],C=I.useState(l!==void 0?l:o),S=kr(C,2),E=S[0],T=S[1],A=I.useState(p!==void 0?p:a),O=kr(A,2),M=O[0],V=O[1],N=I.useCallback(function(j,H){typeof u=="function"&&u(j,H),V(j)},[u]),k=I.useCallback(function(j,H){var U;typeof d=="function"&&(U=d(j,H)),w(U!==void 0?U:j)},[d]),_=I.useCallback(function(){typeof f=="function"&&f(),T(!0)},[f]),B=I.useCallback(function(){typeof c=="function"&&c(),T(!1)},[c]),L=s!==void 0?s:y,P=l!==void 0?l:E,G=p!==void 0?p:M;return Ce(Ce({},m),{},{inputValue:L,menuIsOpen:P,onChange:N,onInputChange:k,onMenuClose:B,onMenuOpen:_,value:G})}function y7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,BO(r.key),r)}}function x7(t,e,n){return e&&Fw(t.prototype,e),n&&Fw(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function w7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bm(t,e)}function ou(t){return ou=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ou(t)}function $O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($O=function(){return!!t})()}function C7(t,e){if(e&&(Oo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r9(t)}function S7(t){var e=$O();return function(){var n,r=ou(t);if(e){var o=ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C7(this,n)}}function E7(t){if(Array.isArray(t))return hg(t)}function I7(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function A7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gi(t){return E7(t)||I7(t)||FO(t)||A7()}function T7(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function N7(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var _7=(function(){function t(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(N7(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=T7(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},t})(),Gt="-ms-",iu="-moz-",He="-webkit-",VO="comm",bv="rule",vv="decl",O7="@import",WO="@keyframes",R7="@layer",P7=Math.abs,Ec=String.fromCharCode,M7=Object.assign;function k7(t,e){return kt(t,0)^45?(((e<<2^kt(t,0))<<2^kt(t,1))<<2^kt(t,2))<<2^kt(t,3):0}function HO(t){return t.trim()}function D7(t,e){return(t=e.exec(t))?t[0]:t}function qe(t,e,n){return t.replace(e,n)}function pg(t,e){return t.indexOf(e)}function kt(t,e){return t.charCodeAt(e)|0}function Xa(t,e,n){return t.slice(e,n)}function rr(t){return t.length}function yv(t){return t.length}function ul(t,e){return e.push(t),t}function j7(t,e){return t.map(e).join("")}var Ic=1,Oi=1,qO=0,tn=0,xt=0,Xi="";function Ac(t,e,n,r,o,i,a){return{value:t,root:e,parent:n,type:r,props:o,children:i,line:Ic,column:Oi,length:a,return:""}}function ca(t,e){return M7(Ac("",null,null,"",null,null,0),t,{length:-t.length},e)}function L7(){return xt}function B7(){return xt=tn>0?kt(Xi,--tn):0,Oi--,xt===10&&(Oi=1,Ic--),xt}function cn(){return xt=tn<qO?kt(Xi,tn++):0,Oi++,xt===10&&(Oi=1,Ic++),xt}function ur(){return kt(Xi,tn)}function Tl(){return tn}function Is(t,e){return Xa(Xi,t,e)}function Ya(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zO(t){return Ic=Oi=1,qO=rr(Xi=t),tn=0,[]}function XO(t){return Xi="",t}function Nl(t){return HO(Is(tn-1,mg(t===91?t+2:t===40?t+1:t)))}function F7(t){for(;(xt=ur())&&xt<33;)cn();return Ya(t)>2||Ya(xt)>3?"":" "}function G7(t,e){for(;--e&&cn()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return Is(t,Tl()+(e<6&&ur()==32&&cn()==32))}function mg(t){for(;cn();)switch(xt){case t:return tn;case 34:case 39:t!==34&&t!==39&&mg(xt);break;case 40:t===41&&mg(t);break;case 92:cn();break}return tn}function $7(t,e){for(;cn()&&t+xt!==57;)if(t+xt===84&&ur()===47)break;return"/*"+Is(e,tn-1)+"*"+Ec(t===47?t:cn())}function V7(t){for(;!Ya(ur());)cn();return Is(t,tn)}function W7(t){return XO(_l("",null,null,null,[""],t=zO(t),0,[0],t))}function _l(t,e,n,r,o,i,a,s,l){for(var u=0,d=0,c=a,f=0,p=0,m=0,g=1,b=1,y=1,w=0,C="",S=o,E=i,T=r,A=C;b;)switch(m=w,w=cn()){case 40:if(m!=108&&kt(A,c-1)==58){pg(A+=qe(Nl(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:A+=Nl(w);break;case 9:case 10:case 13:case 32:A+=F7(m);break;case 92:A+=G7(Tl()-1,7);continue;case 47:switch(ur()){case 42:case 47:ul(H7($7(cn(),Tl()),e,n),l);break;default:A+="/"}break;case 123*g:s[u++]=rr(A)*y;case 125*g:case 59:case 0:switch(w){case 0:case 125:b=0;case 59+d:y==-1&&(A=qe(A,/\f/g,"")),p>0&&rr(A)-c&&ul(p>32?$w(A+";",r,n,c-1):$w(qe(A," ","")+";",r,n,c-2),l);break;case 59:A+=";";default:if(ul(T=Gw(A,e,n,u,d,o,s,C,S=[],E=[],c),i),w===123)if(d===0)_l(A,e,T,T,S,i,c,s,E);else switch(f===99&&kt(A,3)===110?100:f){case 100:case 108:case 109:case 115:_l(t,T,T,r&&ul(Gw(t,T,T,0,0,o,s,C,o,S=[],c),E),o,E,c,s,r?S:E);break;default:_l(A,T,T,T,[""],E,0,s,E)}}u=d=p=0,g=y=1,C=A="",c=a;break;case 58:c=1+rr(A),p=m;default:if(g<1){if(w==123)--g;else if(w==125&&g++==0&&B7()==125)continue}switch(A+=Ec(w),w*g){case 38:y=d>0?1:(A+="\f",-1);break;case 44:s[u++]=(rr(A)-1)*y,y=1;break;case 64:ur()===45&&(A+=Nl(cn())),f=ur(),d=c=rr(C=A+=V7(Tl())),w++;break;case 45:m===45&&rr(A)==2&&(g=0)}}return i}function Gw(t,e,n,r,o,i,a,s,l,u,d){for(var c=o-1,f=o===0?i:[""],p=yv(f),m=0,g=0,b=0;m<r;++m)for(var y=0,w=Xa(t,c+1,c=P7(g=a[m])),C=t;y<p;++y)(C=HO(g>0?f[y]+" "+w:qe(w,/&\f/g,f[y])))&&(l[b++]=C);return Ac(t,e,n,o===0?bv:s,l,u,d)}function H7(t,e,n){return Ac(t,e,n,VO,Ec(L7()),Xa(t,2,-2),0)}function $w(t,e,n,r){return Ac(t,e,n,vv,Xa(t,0,r),Xa(t,r+1,-1),r)}function bi(t,e){for(var n="",r=yv(t),o=0;o<r;o++)n+=e(t[o],o,t,e)||"";return n}function q7(t,e,n,r){switch(t.type){case R7:if(t.children.length)break;case O7:case vv:return t.return=t.return||t.value;case VO:return"";case WO:return t.return=t.value+"{"+bi(t.children,r)+"}";case bv:t.value=t.props.join(",")}return rr(n=bi(t.children,r))?t.return=t.value+"{"+n+"}":""}function z7(t){var e=yv(t);return function(n,r,o,i){for(var a="",s=0;s<e;s++)a+=t[s](n,r,o,i)||"";return a}}function X7(t){return function(e){e.root||(e=e.return)&&t(e)}}function Y7(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var U7=function(e,n,r){for(var o=0,i=0;o=i,i=ur(),o===38&&i===12&&(n[r]=1),!Ya(i);)cn();return Is(e,tn)},Z7=function(e,n){var r=-1,o=44;do switch(Ya(o)){case 0:o===38&&ur()===12&&(n[r]=1),e[r]+=U7(tn-1,n,r);break;case 2:e[r]+=Nl(o);break;case 4:if(o===44){e[++r]=ur()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=Ec(o)}while(o=cn());return e},J7=function(e,n){return XO(Z7(zO(e),n))},Vw=new WeakMap,K7=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,o=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!Vw.get(r))&&!o){Vw.set(e,!0);for(var i=[],a=J7(n,i),s=r.props,l=0,u=0;l<a.length;l++)for(var d=0;d<s.length;d++,u++)e.props[u]=i[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},Q7=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function YO(t,e){switch(k7(t,e)){case 5103:return He+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return He+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return He+t+iu+t+Gt+t+t;case 6828:case 4268:return He+t+Gt+t+t;case 6165:return He+t+Gt+"flex-"+t+t;case 5187:return He+t+qe(t,/(\w+).+(:[^]+)/,He+"box-$1$2"+Gt+"flex-$1$2")+t;case 5443:return He+t+Gt+"flex-item-"+qe(t,/flex-|-self/,"")+t;case 4675:return He+t+Gt+"flex-line-pack"+qe(t,/align-content|flex-|-self/,"")+t;case 5548:return He+t+Gt+qe(t,"shrink","negative")+t;case 5292:return He+t+Gt+qe(t,"basis","preferred-size")+t;case 6060:return He+"box-"+qe(t,"-grow","")+He+t+Gt+qe(t,"grow","positive")+t;case 4554:return He+qe(t,/([^-])(transform)/g,"$1"+He+"$2")+t;case 6187:return qe(qe(qe(t,/(zoom-|grab)/,He+"$1"),/(image-set)/,He+"$1"),t,"")+t;case 5495:case 3959:return qe(t,/(image-set\([^]*)/,He+"$1$`$1");case 4968:return qe(qe(t,/(.+:)(flex-)?(.*)/,He+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+He+t+t;case 4095:case 3583:case 4068:case 2532:return qe(t,/(.+)-inline(.+)/,He+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(rr(t)-1-e>6)switch(kt(t,e+1)){case 109:if(kt(t,e+4)!==45)break;case 102:return qe(t,/(.+:)(.+)-([^]+)/,"$1"+He+"$2-$3$1"+iu+(kt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~pg(t,"stretch")?YO(qe(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(kt(t,e+1)!==115)break;case 6444:switch(kt(t,rr(t)-3-(~pg(t,"!important")&&10))){case 107:return qe(t,":",":"+He)+t;case 101:return qe(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+He+(kt(t,14)===45?"inline-":"")+"box$3$1"+He+"$2$3$1"+Gt+"$2box$3")+t}break;case 5936:switch(kt(t,e+11)){case 114:return He+t+Gt+qe(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return He+t+Gt+qe(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return He+t+Gt+qe(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return He+t+Gt+t+t}return t}var eX=function(e,n,r,o){if(e.length>-1&&!e.return)switch(e.type){case vv:e.return=YO(e.value,e.length);break;case WO:return bi([ca(e,{value:qe(e.value,"@","@"+He)})],o);case bv:if(e.length)return j7(e.props,function(i){switch(D7(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bi([ca(e,{props:[qe(i,/:(read-\w+)/,":"+iu+"$1")]})],o);case"::placeholder":return bi([ca(e,{props:[qe(i,/:(plac\w+)/,":"+He+"input-$1")]}),ca(e,{props:[qe(i,/:(plac\w+)/,":"+iu+"$1")]}),ca(e,{props:[qe(i,/:(plac\w+)/,Gt+"input-$1")]})],o)}return""})}},tX=[eX],nX=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=e.stylisPlugins||tX,i={},a,s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),y=1;y<b.length;y++)i[b[y]]=!0;s.push(g)});var l,u=[K7,Q7];{var d,c=[q7,X7(function(g){d.insert(g)})],f=z7(u.concat(o,c)),p=function(b){return bi(W7(b),f)};l=function(b,y,w,C){d=w,p(b?b+"{"+y.styles+"}":y.styles),C&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new _7({key:n,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return m.sheet.hydrate(s),m},Zp,Ww;function rX(){if(Ww)return Zp;Ww=1;var t=t9(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[t.ForwardRef]=r,i[t.Memo]=o;function a(m){return t.isMemo(m)?o:i[m.$$typeof]||e}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,f=Object.prototype;function p(m,g,b){if(typeof g!="string"){if(f){var y=c(g);y&&y!==f&&p(m,y,b)}var w=l(g);u&&(w=w.concat(u(g)));for(var C=a(m),S=a(g),E=0;E<w.length;++E){var T=w[E];if(!n[T]&&!(b&&b[T])&&!(S&&S[T])&&!(C&&C[T])){var A=d(g,T);try{s(m,T,A)}catch{}}}}return m}return Zp=p,Zp}rX();var oX=!0;function iX(t,e,n){var r="";return n.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(r+=o+" ")}),r}var UO=function(e,n,r){var o=e.key+"-"+n.name;(r===!1||oX===!1)&&e.registered[o]===void 0&&(e.registered[o]=n.styles)},aX=function(e,n,r){UO(e,n,r);var o=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var i=n;do e.insert(n===i?"."+o:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};function sX(t){for(var e=0,n,r=0,o=t.length;o>=4;++r,o-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var lX={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uX=/[A-Z]|^ms/g,cX=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZO=function(e){return e.charCodeAt(1)===45},Hw=function(e){return e!=null&&typeof e!="boolean"},Jp=Y7(function(t){return ZO(t)?t:t.replace(uX,"-$&").toLowerCase()}),qw=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(cX,function(r,o,i){return or={name:o,styles:i,next:or},o})}return lX[e]!==1&&!ZO(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ua(t,e,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return or={name:o.name,styles:o.styles,next:or},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)or={name:a.name,styles:a.styles,next:or},a=a.next;var s=i.styles+";";return s}return dX(t,e,n)}case"function":{if(t!==void 0){var l=or,u=n(t);return or=l,Ua(t,e,u)}break}}var d=n;return d}function dX(t,e,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ua(t,e,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var s=a;Hw(s)&&(r+=Jp(i)+":"+qw(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var l=0;l<a.length;l++)Hw(a[l])&&(r+=Jp(i)+":"+qw(i,a[l])+";");else{var u=Ua(t,e,a);switch(i){case"animation":case"animationName":{r+=Jp(i)+":"+u+";";break}default:r+=i+"{"+u+"}"}}}return r}var zw=/label:\s*([^\s;{]+)\s*(;|$)/g,or;function JO(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,o="";or=void 0;var i=t[0];if(i==null||i.raw===void 0)r=!1,o+=Ua(n,e,i);else{var a=i;o+=a[0]}for(var s=1;s<t.length;s++)if(o+=Ua(n,e,t[s]),r){var l=i;o+=l[s]}zw.lastIndex=0;for(var u="",d;(d=zw.exec(o))!==null;)u+="-"+d[1];var c=sX(o)+u;return{name:c,styles:o,next:or}}var fX=function(e){return e()},hX=v.useInsertionEffect?v.useInsertionEffect:!1,pX=hX||fX,KO=v.createContext(typeof HTMLElement<"u"?nX({key:"css"}):null);KO.Provider;var mX=function(e){return I.forwardRef(function(n,r){var o=I.useContext(KO);return e(n,o,r)})},gX=v.createContext({}),xv={}.hasOwnProperty,gg="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bX=function(e,n){var r={};for(var o in n)xv.call(n,o)&&(r[o]=n[o]);return r[gg]=e,r},vX=function(e){var n=e.cache,r=e.serialized,o=e.isStringTag;return UO(n,r,o),pX(function(){return aX(n,r,o)}),null},yX=mX(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var o=t[gg],i=[r],a="";typeof t.className=="string"?a=iX(e.registered,i,t.className):t.className!=null&&(a=t.className+" ");var s=JO(i,void 0,v.useContext(gX));a+=e.key+"-"+s.name;var l={};for(var u in t)xv.call(t,u)&&u!=="css"&&u!==gg&&(l[u]=t[u]);return l.className=a,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(vX,{cache:e,serialized:s,isStringTag:typeof o=="string"}),v.createElement(o,l))}),xX=yX,we=function(e,n){var r=arguments;if(n==null||!xv.call(n,"css"))return v.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=xX,i[1]=bX(e,n);for(var a=2;a<o;a++)i[a]=r[a];return v.createElement.apply(null,i)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(we||(we={}));function wv(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return JO(e)}function wX(){var t=wv.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function CX(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var bg=I.useLayoutEffect,SX=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],au=function(){};function EX(t,e){return e?e[0]==="-"?t+e:t+"__"+e:t}function IX(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(e&&t)for(var a in e)e.hasOwnProperty(a)&&e[a]&&i.push("".concat(EX(t,a)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var su=function(e){return kX(e)?e.filter(Boolean):Oo(e)==="object"&&e!==null?[e]:[]},QO=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var n=Sr(e,SX);return Ce({},n)},ht=function(e,n,r){var o=e.cx,i=e.getStyles,a=e.getClassNames,s=e.className;return{css:i(n,e),className:o(r??{},a(n,e),s)}};function Tc(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function AX(t){return Tc(t)?window.innerHeight:t.clientHeight}function eR(t){return Tc(t)?window.pageYOffset:t.scrollTop}function lu(t,e){if(Tc(t)){window.scrollTo(0,e);return}t.scrollTop=e}function TX(t){var e=getComputedStyle(t),n=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var o=t;o=o.parentElement;)if(e=getComputedStyle(o),!(n&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return o;return document.documentElement}function NX(t,e,n,r){return n*((t=t/r-1)*t*t+1)+e}function cl(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:au,o=eR(t),i=e-o,a=10,s=0;function l(){s+=a;var u=NX(s,o,i,n);lu(t,u),s<n?window.requestAnimationFrame(l):r(t)}l()}function Xw(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),o=e.offsetHeight/3;r.bottom+o>n.bottom?lu(t,Math.min(e.offsetTop+e.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<n.top&&lu(t,Math.max(e.offsetTop-o,0))}function _X(t){var e=t.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function Yw(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function OX(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var tR=!1,RX={get passive(){return tR=!0}},dl=typeof window<"u"?window:{};dl.addEventListener&&dl.removeEventListener&&(dl.addEventListener("p",au,RX),dl.removeEventListener("p",au,!1));var PX=tR;function MX(t){return t!=null}function kX(t){return Array.isArray(t)}function Sa(t,e,n){return t?e:n}var DX=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(e).filter(function(a){var s=kr(a,1),l=s[0];return!r.includes(l)});return i.reduce(function(a,s){var l=kr(s,2),u=l[0],d=l[1];return a[u]=d,a},{})},jX=["children","innerProps"],LX=["children","innerProps"];function BX(t){var e=t.maxHeight,n=t.menuEl,r=t.minHeight,o=t.placement,i=t.shouldScroll,a=t.isFixedPosition,s=t.controlHeight,l=TX(n),u={placement:"bottom",maxHeight:e};if(!n||!n.offsetParent)return u;var d=l.getBoundingClientRect(),c=d.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,g=f.top,b=n.offsetParent.getBoundingClientRect(),y=b.top,w=a?window.innerHeight:AX(l),C=eR(l),S=parseInt(getComputedStyle(n).marginBottom,10),E=parseInt(getComputedStyle(n).marginTop,10),T=y-E,A=w-g,O=T+C,M=c-C-g,V=p-w+C+S,N=C+g-E,k=160;switch(o){case"auto":case"bottom":if(A>=m)return{placement:"bottom",maxHeight:e};if(M>=m&&!a)return i&&cl(l,V,k),{placement:"bottom",maxHeight:e};if(!a&&M>=r||a&&A>=r){i&&cl(l,V,k);var _=a?A-S:M-S;return{placement:"bottom",maxHeight:_}}if(o==="auto"||a){var B=e,L=a?T:O;return L>=r&&(B=Math.min(L-S-s,e)),{placement:"top",maxHeight:B}}if(o==="bottom")return i&&lu(l,V),{placement:"bottom",maxHeight:e};break;case"top":if(T>=m)return{placement:"top",maxHeight:e};if(O>=m&&!a)return i&&cl(l,N,k),{placement:"top",maxHeight:e};if(!a&&O>=r||a&&T>=r){var P=e;return(!a&&O>=r||a&&T>=r)&&(P=a?T-E:O-E),i&&cl(l,N,k),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function FX(t){var e={bottom:"top",top:"bottom"};return t?e[t]:"bottom"}var nR=function(e){return e==="auto"?"bottom":e},GX=function(e,n){var r,o=e.placement,i=e.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return Ce((r={label:"menu"},Ca(r,FX(o),"100%"),Ca(r,"position","absolute"),Ca(r,"width","100%"),Ca(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},rR=I.createContext(null),$X=function(e){var n=e.children,r=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,s=e.menuShouldScrollIntoView,l=e.theme,u=I.useContext(rR)||{},d=u.setPortalPlacement,c=I.useRef(null),f=I.useState(o),p=kr(f,2),m=p[0],g=p[1],b=I.useState(null),y=kr(b,2),w=y[0],C=y[1],S=l.spacing.controlHeight;return bg(function(){var E=c.current;if(E){var T=a==="fixed",A=s&&!T,O=BX({maxHeight:o,menuEl:E,minHeight:r,placement:i,shouldScroll:A,isFixedPosition:T,controlHeight:S});g(O.maxHeight),C(O.placement),d?.(O.placement)}},[o,i,a,s,r,d,S]),n({ref:c,placerProps:Ce(Ce({},e),{},{placement:w||nR(i),maxHeight:m})})},VX=function(e){var n=e.children,r=e.innerRef,o=e.innerProps;return we("div",Ee({},ht(e,"menu",{menu:!0}),{ref:r},o),n)},WX=VX,HX=function(e,n){var r=e.maxHeight,o=e.theme.spacing.baseUnit;return Ce({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},qX=function(e){var n=e.children,r=e.innerProps,o=e.innerRef,i=e.isMulti;return we("div",Ee({},ht(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},oR=function(e,n){var r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Ce({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},zX=oR,XX=oR,YX=function(e){var n=e.children,r=n===void 0?"No options":n,o=e.innerProps,i=Sr(e,jX);return we("div",Ee({},ht(Ce(Ce({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},UX=function(e){var n=e.children,r=n===void 0?"Loading...":n,o=e.innerProps,i=Sr(e,LX);return we("div",Ee({},ht(Ce(Ce({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},ZX=function(e){var n=e.rect,r=e.offset,o=e.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},JX=function(e){var n=e.appendTo,r=e.children,o=e.controlElement,i=e.innerProps,a=e.menuPlacement,s=e.menuPosition,l=I.useRef(null),u=I.useRef(null),d=I.useState(nR(a)),c=kr(d,2),f=c[0],p=c[1],m=I.useMemo(function(){return{setPortalPlacement:p}},[]),g=I.useState(null),b=kr(g,2),y=b[0],w=b[1],C=I.useCallback(function(){if(o){var A=_X(o),O=s==="fixed"?0:window.pageYOffset,M=A[f]+O;(M!==y?.offset||A.left!==y?.rect.left||A.width!==y?.rect.width)&&w({offset:M,rect:A})}},[o,s,f,y?.offset,y?.rect.left,y?.rect.width]);bg(function(){C()},[C]);var S=I.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=VA(o,l.current,C,{elementResize:"ResizeObserver"in window}))},[o,C]);bg(function(){S()},[S]);var E=I.useCallback(function(A){l.current=A,S()},[S]);if(!n&&s!=="fixed"||!y)return null;var T=we("div",Ee({ref:E},ht(Ce(Ce({},e),{},{offset:y.offset,position:s,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),r);return we(rR.Provider,{value:m},n?gu.createPortal(T,n):T)},KX=function(e){var n=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},QX=function(e){var n=e.children,r=e.innerProps,o=e.isDisabled,i=e.isRtl;return we("div",Ee({},ht(e,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},eY=function(e,n){var r=e.theme.spacing,o=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Ce({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},tY=function(e){var n=e.children,r=e.innerProps,o=e.isMulti,i=e.hasValue;return we("div",Ee({},ht(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},nY=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},rY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"indicatorsContainer",{indicators:!0}),r),n)},Uw,oY=["size"],iY=["innerProps","isRtl","size"];function aY(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sY=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:aY},iR=function(e){var n=e.size,r=Sr(e,oY);return we("svg",Ee({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sY},r))},Cv=function(e){return we(iR,Ee({size:20},e),we("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},aR=function(e){return we(iR,Ee({size:20},e),we("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},sR=function(e,n){var r=e.isFocused,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return Ce({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},lY=sR,uY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||we(aR,null))},cY=sR,dY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||we(Cv,null))},fY=function(e,n){var r=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,a=o.colors;return Ce({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},hY=function(e){var n=e.innerProps;return we("span",Ee({},n,ht(e,"indicatorSeparator",{"indicator-separator":!0})))},pY=wX(Uw||(Uw=CX([`
84
84
  0%, 80%, 100% { opacity: 0; }
85
85
  40% { opacity: 1; }
86
- `]))),mY=function(e,n){var r=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return Ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},Kp=function(e){var n=e.delay,r=e.offset;return we("span",{css:wv({animation:"".concat(pY," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},gY=function(e){var n=e.innerProps,r=e.isRtl,o=e.size,i=o===void 0?4:o,a=Sr(e,iY);return we("div",Ee({},ht(Ce(Ce({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),we(Kp,{delay:0,offset:r}),we(Kp,{delay:160,offset:!0}),we(Kp,{delay:320,offset:!r}))},bY=function(e,n){var r=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return Ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},vY=function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return we("div",Ee({ref:i},ht(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},yY=vY,xY=["data"],wY=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},CY=function(e){var n=e.children,r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,c=e.selectProps;return we("div",Ee({},ht(e,"group",{group:!0}),l),we(a,Ee({},s,{selectProps:c,theme:d,getStyles:o,getClassNames:i,cx:r}),u),we("div",null,n))},SY=function(e,n){var r=e.theme,o=r.colors,i=r.spacing;return Ce({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},EY=function(e){var n=eR(e);n.data;var r=Sr(n,xY);return we("div",Ee({},ht(e,"groupHeading",{"group-heading":!0}),r))},IY=CY,AY=["innerRef","isDisabled","isHidden","inputClassName"],TY=function(e,n){var r=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return Ce(Ce({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},NY),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},uR={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},uR)},_Y=function(e){return Ce({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},uR)},OY=function(e){var n=e.cx,r=e.value,o=eR(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,u=Sr(o,AY);return we("div",Ee({},ht(e,"input",{"input-container":!0}),{"data-value":r||""}),we("input",Ee({className:n({input:!0},l),ref:i,style:_Y(s),disabled:a},u)))},RY=OY,PY=function(e,n){var r=e.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},MY=function(e,n){var r=e.theme,o=r.borderRadius,i=r.colors,a=e.cropWithEllipsis;return Ce({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},kY=function(e,n){var r=e.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=e.isFocused;return Ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},cR=function(e){var n=e.children,r=e.innerProps;return we("div",r,n)},DY=cR,jY=cR;function LY(t){var e=t.children,n=t.innerProps;return we("div",Ee({role:"button"},n),e||we(Cv,{size:14}))}var BY=function(e){var n=e.children,r=e.components,o=e.data,i=e.innerProps,a=e.isDisabled,s=e.removeProps,l=e.selectProps,u=r.Container,d=r.Label,c=r.Remove;return we(u,{data:o,innerProps:Ce(Ce({},ht(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},we(d,{data:o,innerProps:Ce({},ht(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),we(c,{data:o,innerProps:Ce(Ce({},ht(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},FY=BY,GY=function(e,n){var r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return Ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},$Y=function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return we("div",Ee({},ht(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},VY=$Y,WY=function(e,n){var r=e.theme,o=r.spacing,i=r.colors;return Ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},HY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"placeholder",{placeholder:!0}),r),n)},qY=HY,zY=function(e,n){var r=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return Ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},XY=function(e){var n=e.children,r=e.isDisabled,o=e.innerProps;return we("div",Ee({},ht(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},YY=XY,UY={ClearIndicator:dY,Control:yY,DropdownIndicator:uY,DownChevron:sR,CrossIcon:Cv,Group:IY,GroupHeading:EY,IndicatorsContainer:rY,IndicatorSeparator:hY,Input:RY,LoadingIndicator:gY,Menu:WX,MenuList:qX,MenuPortal:JX,LoadingMessage:UX,NoOptionsMessage:YX,MultiValue:FY,MultiValueContainer:DY,MultiValueLabel:jY,MultiValueRemove:LY,Option:VY,Placeholder:qY,SelectContainer:QX,SingleValue:YY,ValueContainer:tY},ZY=function(e){return Ce(Ce({},UY),e.components)},Zw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function JY(t,e){return!!(t===e||Zw(t)&&Zw(e))}function KY(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!JY(t[n],e[n]))return!1;return!0}function QY(t,e){e===void 0&&(e=KY);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&e(o,n.lastArgs))return n.lastResult;var a=t.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}function eU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var tU=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:eU},nU=function(e){return we("span",Ee({css:tU},e))},Jw=nU,rU={guidance:function(e){var n=e.isSearchable,r=e.isMulti,o=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.action,r=e.label,o=r===void 0?"":r,i=e.labels,a=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,o=e.options,i=e.label,a=i===void 0?"":i,s=e.selectValue,l=e.isDisabled,u=e.isSelected,d=e.isAppleDevice,c=function(g,b){return g&&g.length?"".concat(g.indexOf(b)+1," of ").concat(g.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if(n==="menu"&&d){var f=l?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(a).concat(p,", ").concat(c(o,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},oU=function(e){var n=e.ariaSelection,r=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,d=e.isAppleDevice,c=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,m=l.isMulti,g=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,w=l.options,C=l.screenReaderStatus,S=l.tabSelectsValue,E=l.isLoading,T=l["aria-label"],A=l["aria-live"],O=I.useMemo(function(){return Ce(Ce({},rU),c||{})},[c]),M=I.useMemo(function(){var L="";if(n&&O.onChange){var P=n.option,G=n.options,j=n.removedValue,H=n.removedValues,U=n.value,Q=function(J){return Array.isArray(J)?null:J},$=j||P||Q(U),q=$?f($):"",Z=G||H||void 0,X=Z?Z.map(f):[],te=Ce({isDisabled:$&&g($,s),label:q,labels:X},n);L=O.onChange(te)}return L},[n,O,g,s,f]),V=I.useMemo(function(){var L="",P=r||o,G=!!(r&&s&&s.includes(r));if(P&&O.onFocus){var j={focused:P,label:f(P),isDisabled:g(P,s),isSelected:G,options:i,context:P===r?"menu":"value",selectValue:s,isAppleDevice:d};L=O.onFocus(j)}return L},[r,o,f,g,O,i,s,d]),N=I.useMemo(function(){var L="";if(y&&w.length&&!E&&O.onFilter){var P=C({count:i.length});L=O.onFilter({inputValue:p,resultsMessage:P})}return L},[i,p,y,O,w,C,E]),k=n?.action==="initial-input-focus",_=I.useMemo(function(){var L="";if(O.guidance){var P=o?"value":y?"menu":"input";L=O.guidance({"aria-label":T,context:P,isDisabled:r&&g(r,s),isMulti:m,isSearchable:b,tabSelectsValue:S,isInitialFocus:k})}return L},[T,r,o,m,g,b,y,O,s,S,k]),B=we(I.Fragment,null,we("span",{id:"aria-selection"},M),we("span",{id:"aria-focused"},V),we("span",{id:"aria-results"},N),we("span",{id:"aria-guidance"},_));return we(I.Fragment,null,we(Jw,{id:u},k&&B),we(Jw,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!k&&B))},iU=oU,vg=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],aU=new RegExp("["+vg.map(function(t){return t.letters}).join("")+"]","g"),dR={};for(var Qp=0;Qp<vg.length;Qp++)for(var em=vg[Qp],tm=0;tm<em.letters.length;tm++)dR[em.letters[tm]]=em.base;var fR=function(e){return e.replace(aU,function(n){return dR[n]})},sU=QY(fR),Kw=function(e){return e.replace(/^\s+|\s+$/g,"")},lU=function(e){return"".concat(e.label," ").concat(e.value)},uU=function(e){return function(n,r){if(n.data.__isNew__)return!0;var o=Ce({ignoreCase:!0,ignoreAccents:!0,stringify:lU,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,u=o.matchFrom,d=l?Kw(r):r,c=l?Kw(s(n)):s(n);return i&&(d=d.toLowerCase(),c=c.toLowerCase()),a&&(d=sU(d),c=fR(c)),u==="start"?c.substr(0,d.length)===d:c.indexOf(d)>-1}},cU=["innerRef"];function dU(t){var e=t.innerRef,n=Sr(t,cU),r=DX(n,"onExited","in","enter","exit","appear");return we("input",Ee({ref:e},r,{css:wv({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fU=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function hU(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,a=I.useRef(!1),s=I.useRef(!1),l=I.useRef(0),u=I.useRef(null),d=I.useCallback(function(b,y){if(u.current!==null){var w=u.current,C=w.scrollTop,S=w.scrollHeight,E=w.clientHeight,T=u.current,A=y>0,O=S-E-C,M=!1;O>y&&a.current&&(r&&r(b),a.current=!1),A&&s.current&&(i&&i(b),s.current=!1),A&&y>O?(n&&!a.current&&n(b),T.scrollTop=S,M=!0,a.current=!0):!A&&-y>C&&(o&&!s.current&&o(b),T.scrollTop=0,M=!0,s.current=!0),M&&fU(b)}},[n,r,o,i]),c=I.useCallback(function(b){d(b,b.deltaY)},[d]),f=I.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),p=I.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;d(b,y)},[d]),m=I.useCallback(function(b){if(b){var y=PX?{passive:!1}:!1;b.addEventListener("wheel",c,y),b.addEventListener("touchstart",f,y),b.addEventListener("touchmove",p,y)}},[p,f,c]),g=I.useCallback(function(b){b&&(b.removeEventListener("wheel",c,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",p,!1))},[p,f,c]);return I.useEffect(function(){if(e){var b=u.current;return m(b),function(){g(b)}}},[e,m,g]),function(b){u.current=b}}var Qw=["boxSizing","height","overflow","paddingRight","position"],eC={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function tC(t){t.cancelable&&t.preventDefault()}function nC(t){t.stopPropagation()}function rC(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function oC(){return"ontouchstart"in window||navigator.maxTouchPoints}var iC=!!(typeof window<"u"&&window.document&&window.document.createElement),da=0,ii={capture:!1,passive:!1};function pU(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,o=I.useRef({}),i=I.useRef(null),a=I.useCallback(function(l){if(iC){var u=document.body,d=u&&u.style;if(r&&Qw.forEach(function(m){var g=d&&d[m];o.current[m]=g}),r&&da<1){var c=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+c||0;Object.keys(eC).forEach(function(m){var g=eC[m];d&&(d[m]=g)}),d&&(d.paddingRight="".concat(p,"px"))}u&&oC()&&(u.addEventListener("touchmove",tC,ii),l&&(l.addEventListener("touchstart",rC,ii),l.addEventListener("touchmove",nC,ii))),da+=1}},[r]),s=I.useCallback(function(l){if(iC){var u=document.body,d=u&&u.style;da=Math.max(da-1,0),r&&da<1&&Qw.forEach(function(c){var f=o.current[c];d&&(d[c]=f)}),u&&oC()&&(u.removeEventListener("touchmove",tC,ii),l&&(l.removeEventListener("touchstart",rC,ii),l.removeEventListener("touchmove",nC,ii)))}},[r]);return I.useEffect(function(){if(e){var l=i.current;return a(l),function(){s(l)}}},[e,a,s]),function(l){i.current=l}}function mU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gU=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},bU=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:mU};function vU(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,o=r===void 0?!0:r,i=t.onBottomArrive,a=t.onBottomLeave,s=t.onTopArrive,l=t.onTopLeave,u=hU({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),d=pU({isEnabled:n}),c=function(p){u(p),d(p)};return we(I.Fragment,null,n&&we("div",{onClick:gU,css:bU}),e(c))}function yU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var xU=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:yU},wU=function(e){var n=e.name,r=e.onFocus;return we("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:xU,value:"",onChange:function(){}})},CU=wU;function Sv(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function SU(){return Sv(/^iPhone/i)}function hR(){return Sv(/^Mac/i)}function EU(){return Sv(/^iPad/i)||hR()&&navigator.maxTouchPoints>1}function IU(){return SU()||EU()}function AU(){return hR()||IU()}var TU=function(e){return e.label},pR=function(e){return e.label},mR=function(e){return e.value},NU=function(e){return!!e.isDisabled},_U={clearIndicator:cY,container:KX,control:bY,dropdownIndicator:lY,group:wY,groupHeading:SY,indicatorsContainer:nY,indicatorSeparator:fY,input:TY,loadingIndicator:mY,loadingMessage:XX,menu:GX,menuList:HX,menuPortal:ZX,multiValue:PY,multiValueLabel:MY,multiValueRemove:kY,noOptionsMessage:zX,option:GY,placeholder:WY,singleValue:zY,valueContainer:eY},OU={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},RU=4,gR=4,PU=38,MU=gR*2,kU={baseUnit:gR,controlHeight:PU,menuGutter:MU},nm={borderRadius:RU,colors:OU,spacing:kU},DU={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Yw(),captureMenuScroll:!Yw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:uU(),formatGroupLabel:TU,getOptionLabel:pR,getOptionValue:mR,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:NU,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!OX(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function aC(t,e,n,r){var o=yR(t,e,n),i=xR(t,e,n),a=vR(t,e),s=uu(t,e);return{type:"option",data:e,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function Ol(t,e){return t.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return aC(t,a,e,s)}).filter(function(a){return lC(t,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=aC(t,n,e,r);return lC(t,i)?i:void 0}).filter(MX)}function bR(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,gi(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function sC(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,gi(r.options.map(function(o){return{data:o.data,id:"".concat(e,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function jU(t,e){return bR(Ol(t,e))}function lC(t,e){var n=t.inputValue,r=n===void 0?"":n,o=e.data,i=e.isSelected,a=e.label,s=e.value;return(!CR(t)||!i)&&wR(t,{label:a,value:s,data:o},r)}function LU(t,e){var n=t.focusedValue,r=t.selectValue,o=r.indexOf(n);if(o>-1){var i=e.indexOf(n);if(i>-1)return n;if(o<e.length)return e[o]}return null}function BU(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var rm=function(e,n){var r,o=(r=e.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},vR=function(e,n){return e.getOptionLabel(n)},uu=function(e,n){return e.getOptionValue(n)};function yR(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function xR(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=uu(t,e);return n.some(function(o){return uu(t,o)===r})}function wR(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var CR=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},FU=1,Ev=(function(t){w7(n,t);var e=S7(n);function n(r){var o;if(y7(this,n),o=e.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var d=o.props,c=d.onChange,f=d.name;u.name=f,o.ariaOnChange(l,u),c(l,u)},o.setValue=function(l,u,d){var c=o.props,f=c.closeMenuOnSelect,p=c.isMulti,m=c.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:d})},o.selectOption=function(l){var u=o.props,d=u.blurInputOnSelect,c=u.isMulti,f=u.name,p=o.state.selectValue,m=c&&o.isOptionSelected(l,p),g=o.isOptionDisabled(l,p);if(m){var b=o.getOptionValue(l);o.setValue(p.filter(function(y){return o.getOptionValue(y)!==b}),"deselect-option",l)}else if(!g)c?o.setValue([].concat(gi(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}d&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,d=o.state.selectValue,c=o.getOptionValue(l),f=d.filter(function(m){return o.getOptionValue(m)!==c}),p=Sa(u,f,f[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(Sa(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,d=u[u.length-1],c=u.slice(0,u.length-1),f=Sa(l,c,c[0]||null);d&&o.onChange(f,{action:"pop-value",removedValue:d})},o.getFocusedOptionId=function(l){return rm(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return sC(Ol(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return IX.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(l){return vR(o.props,l)},o.getOptionValue=function(l){return uu(o.props,l)},o.getStyles=function(l,u){var d=o.props.unstyled,c=_U[l](u,d);c.boxSizing="border-box";var f=o.props.styles[l];return f?f(c,u):c},o.getClassNames=function(l,u){var d,c;return(d=(c=o.props.classNames)[l])===null||d===void 0?void 0:d.call(c,u)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return ZY(o.props)},o.buildCategorizedOptions=function(){return Ol(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return bR(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,u){o.setState({ariaSelection:Ce({value:l},u)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var u=o.props,d=u.isMulti,c=u.menuIsOpen;o.focusInput(),c?(o.setState({inputIsHiddenAfterUpdate:!d}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Tc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var u=l.touches,d=u&&u.item(0);d&&(o.initialTouchX=d.clientX,o.initialTouchY=d.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var u=l.touches,d=u&&u.item(0);if(d){var c=Math.abs(d.clientX-o.initialTouchX),f=Math.abs(d.clientY-o.initialTouchY),p=5;o.userIsDragging=c>p||f>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,d=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(d,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),d=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:d>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return CR(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,d=u.isMulti,c=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,m=u.isClearable,g=u.isDisabled,b=u.menuIsOpen,y=u.onKeyDown,w=u.tabSelectsValue,C=u.openMenuOnFocus,S=o.state,E=S.focusedOption,T=S.focusedValue,A=S.selectValue;if(!g&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||p)return;o.focusValue("previous");break;case"ArrowRight":if(!d||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(T)o.removeValue(T);else{if(!c)return;d?o.popValue():m&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!b||!w||!E||C&&o.isOptionSelected(E,A))return;o.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(b){if(!E||o.isComposing)return;o.selectOption(E);break}return;case"Escape":b?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):m&&f&&o.clearValue();break;case" ":if(p)return;if(!b){o.openMenu("first");break}if(!E)return;o.selectOption(E);break;case"ArrowUp":b?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":b?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!b)return;o.focusOption("pageup");break;case"PageDown":if(!b)return;o.focusOption("pagedown");break;case"Home":if(!b)return;o.focusOption("first");break;case"End":if(!b)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++FU),o.state.selectValue=su(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=rm(i,a[s])}return o}return x7(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xw(this.menuListRef,this.focusedOptionRef),AU()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),d=o==="first"?0:u.length-1;if(!this.props.isMulti){var c=u.indexOf(s[0]);c>-1&&(d=c)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,d=-1;if(a.length){switch(o){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),o==="up"?l=u>0?u-1:s.length-1:o==="down"?l=(u+1)%s.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(nm):Ce(Ce({},nm),this.props.theme):nm}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,c=this.props,f=c.isMulti,p=c.isRtl,m=c.options,g=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:g,isMulti:f,isRtl:p,options:m,selectOption:u,selectProps:c,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return yR(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return xR(this.props,o,i)}},{key:"filterOption",value:function(o,i){return wR(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,u=o.tabIndex,d=o.form,c=o.menuIsOpen,f=o.required,p=this.getComponents(),m=p.Input,g=this.state,b=g.inputIsHidden,y=g.ariaSelection,w=this.commonProps,C=s||this.getElementId("input"),S=Ce(Ce(Ce({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?y?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?v.createElement(m,Ee({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:i,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},S)):v.createElement(dU,Ee({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:au,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:d,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,d=i.SingleValue,c=i.Placeholder,f=this.commonProps,p=this.props,m=p.controlShouldRenderValue,g=p.isDisabled,b=p.isMulti,y=p.inputValue,w=p.placeholder,C=this.state,S=C.selectValue,E=C.focusedValue,T=C.isFocused;if(!this.hasValue()||!m)return y?null:v.createElement(c,Ee({},f,{key:"placeholder",isDisabled:g,isFocused:T,innerProps:{id:this.getElementId("placeholder")}}),w);if(b)return S.map(function(O,M){var V=O===E,N="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return v.createElement(a,Ee({},f,{components:{Container:s,Label:l,Remove:u},isFocused:V,isDisabled:g,key:N,index:M,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(_){_.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(y)return null;var A=S[0];return v.createElement(d,Ee({},f,{data:A,isDisabled:g}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:c,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!i||!u)return null;var c={"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:c,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return v.createElement(a,Ee({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,u=i.MenuList,d=i.MenuPortal,c=i.LoadingMessage,f=i.NoOptionsMessage,p=i.Option,m=this.commonProps,g=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,w=b.inputValue,C=b.isLoading,S=b.loadingMessage,E=b.minMenuHeight,T=b.maxMenuHeight,A=b.menuIsOpen,O=b.menuPlacement,M=b.menuPosition,V=b.menuPortalTarget,N=b.menuShouldBlockScroll,k=b.menuShouldScrollIntoView,_=b.noOptionsMessage,B=b.onMenuScrollToTop,L=b.onMenuScrollToBottom;if(!A)return null;var P=function(q,Z){var X=q.type,te=q.data,Y=q.isDisabled,J=q.isSelected,ie=q.label,oe=q.value,re=g===te,z=Y?void 0:function(){return o.onOptionHover(te)},ue=Y?void 0:function(){return o.selectOption(te)},W="".concat(o.getElementId("option"),"-").concat(Z),le={id:W,onClick:ue,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:J};return v.createElement(p,Ee({},m,{innerProps:le,data:te,isDisabled:Y,isSelected:J,key:W,label:ie,type:X,value:oe,isFocused:re,innerRef:re?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(q.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function($){if($.type==="group"){var q=$.data,Z=$.options,X=$.index,te="".concat(o.getElementId("group"),"-").concat(X),Y="".concat(te,"-heading");return v.createElement(a,Ee({},m,{key:te,data:q,options:Z,Heading:s,headingProps:{id:Y,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(J){return P(J,"".concat(X,"-").concat(J.index))}))}else if($.type==="option")return P($,"".concat($.index))});else if(C){var j=S({inputValue:w});if(j===null)return null;G=v.createElement(c,m,j)}else{var H=_({inputValue:w});if(H===null)return null;G=v.createElement(f,m,H)}var U={minMenuHeight:E,maxMenuHeight:T,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:k},Q=v.createElement($X,Ee({},m,U),function($){var q=$.ref,Z=$.placerProps,X=Z.placement,te=Z.maxHeight;return v.createElement(l,Ee({},m,U,{innerRef:q,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:C,placement:X}),v.createElement(vU,{captureEnabled:y,onTopArrive:B,onBottomArrive:L,lockEnabled:N},function(Y){return v.createElement(u,Ee({},m,{innerRef:function(ie){o.getMenuListRef(ie),Y(ie)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:o.getElementId("listbox")},isLoading:C,maxHeight:te,focusedOption:g}),G)}))});return V||M==="fixed"?v.createElement(d,Ee({},m,{appendTo:V,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),Q):Q}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,u=i.name,d=i.required,c=this.state.selectValue;if(d&&!this.hasValue()&&!s)return v.createElement(CU,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var f=c.map(function(g){return o.getOptionValue(g)}).join(a);return v.createElement("input",{name:u,type:"hidden",value:f})}else{var p=c.length>0?c.map(function(g,b){return v.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:o.getOptionValue(g)})}):v.createElement("input",{name:u,type:"hidden",value:""});return v.createElement("div",null,p)}else{var m=c[0]?this.getOptionValue(c[0]):"";return v.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,u=i.isFocused,d=i.selectValue,c=this.getFocusableOptions();return v.createElement(iU,Ee({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,u=this.props,d=u.className,c=u.id,f=u.isDisabled,p=u.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return v.createElement(s,Ee({},g,{className:d,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),v.createElement(i,Ee({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:p}),v.createElement(l,Ee({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(a,Ee({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,d=i.isFocused,c=i.prevWasFocused,f=i.instancePrefix,p=o.options,m=o.value,g=o.menuIsOpen,b=o.inputValue,y=o.isMulti,w=su(m),C={};if(a&&(m!==a.value||p!==a.options||g!==a.menuIsOpen||b!==a.inputValue)){var S=g?jU(o,w):[],E=g?sC(Ol(o,w),"".concat(f,"-option")):[],T=s?LU(i,w):null,A=BU(i,S),O=rm(E,A);C={selectValue:w,focusedOption:A,focusedOptionId:O,focusableOptionsWithIds:E,focusedValue:T,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},V=u,N=d&&c;return d&&!N&&(V={value:Sa(y,w,w[0]||null),options:w,action:"initial-input-focus"},N=!c),u?.action==="initial-input-focus"&&(V=null),Ce(Ce(Ce({},C),M),{},{prevProps:o,ariaSelection:V,prevWasFocused:N})}}]),n})(I.Component);Ev.defaultProps=DU;var GU=I.forwardRef(function(t,e){var n=$O(t);return v.createElement(Ev,Ee({ref:e},n))}),$U=GU,VU=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],uC=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=String(e).toLowerCase(),i=String(r.getOptionValue(n)).toLowerCase(),a=String(r.getOptionLabel(n)).toLowerCase();return i===o||a===o},om={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,n,r,o){return!(!e||n.some(function(i){return uC(e,i,o)})||r.some(function(i){return uC(e,i,o)}))},getNewOptionData:function(e,n){return{label:n,value:e,__isNew__:!0}}};function WU(t){var e=t.allowCreateWhileLoading,n=e===void 0?!1:e,r=t.createOptionPosition,o=r===void 0?"last":r,i=t.formatCreateLabel,a=i===void 0?om.formatCreateLabel:i,s=t.isValidNewOption,l=s===void 0?om.isValidNewOption:s,u=t.getNewOptionData,d=u===void 0?om.getNewOptionData:u,c=t.onCreateOption,f=t.options,p=f===void 0?[]:f,m=t.onChange,g=Sr(t,VU),b=g.getOptionValue,y=b===void 0?mR:b,w=g.getOptionLabel,C=w===void 0?pR:w,S=g.inputValue,E=g.isLoading,T=g.isMulti,A=g.value,O=g.name,M=I.useMemo(function(){return l(S,su(A),p,{getOptionValue:y,getOptionLabel:C})?d(S,a(S)):void 0},[a,d,C,y,S,l,p,A]),V=I.useMemo(function(){return(n||!E)&&M?o==="first"?[M].concat(gi(p)):[].concat(gi(p),[M]):p},[n,o,E,M,p]),N=I.useCallback(function(k,_){if(_.action!=="select-option")return m(k,_);var B=Array.isArray(k)?k:[k];if(B[B.length-1]===M){if(c)c(S);else{var L=d(S,S),P={action:"create-option",name:O,option:L};m(Sa(T,[].concat(gi(su(A)),[L]),L),P)}return}m(k,_)},[d,S,T,O,M,c,m,A]);return Ce(Ce({},g),{},{options:V,onChange:N})}var HU=I.forwardRef(function(t,e){var n=$O(t),r=WU(n);return v.createElement(Ev,Ee({ref:e},r))}),qU=HU;const zU={control:({isFocused:t,isDisabled:e})=>D("ui:min-h-10! ui:w-full ui:rounded-md! ui:bg-segmentify-200 ui:px-0! ui:text-sm ui:border ui:border-border!",t&&!e&&go({variant:"isControlFocused"}),e&&go({variant:"isDisabled"})),option:({isFocused:t,isSelected:e,isDisabled:n})=>D(go({variant:"default"}),e&&go({variant:"isSelected"}),!e&&t&&go({variant:"isFocused"}),n&&go({variant:"isDisabled"})),multiValue:()=>D(go({variant:"multiSelected"})),multiValueLabel:()=>"ui:text-primary!",multiValueRemove:()=>"ui:text-primary!",placeholder:()=>"ui:text-segmentify-600"};function XU({label:t,name:e,options:n,value:r,onChange:o,onInputChange:i,placeholder:a,isClearable:s=!0,isSearchable:l=!0,isMulti:u=!0,isDisabled:d,description:c,className:f,isCreatable:p}){const m={"data-test-id":e,name:e,options:n,value:r,onChange:o,onInputChange:i,isClearable:s,isSearchable:l,isMulti:u,isDisabled:d,placeholder:a,classNames:zU};return h.jsxs("article",{children:[t&&h.jsx(Tn,{className:"ui:mb-2 ui:block",children:t}),h.jsx("div",{className:D("field-select ui:w-full select-wrapper ui:rounded-md! ui:text-sm",f),children:p?h.jsx(qU,{...m}):h.jsx($U,{...m})}),c&&h.jsx(Ju,{description:c})]})}function SR({...t}){return h.jsx(Vu,{"data-slot":"sheet",...t})}function YU({...t}){return h.jsx(Nb,{"data-slot":"sheet-trigger",...t})}function UU({...t}){return h.jsx(hs,{"data-slot":"sheet-close",...t})}function ZU({...t}){return h.jsx(Wu,{"data-slot":"sheet-portal",...t})}function JU({className:t,...e}){return h.jsx(Hu,{"data-slot":"sheet-overlay",className:D("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",t),...e})}function ER({className:t,children:e,side:n="right",...r}){return h.jsxs(ZU,{children:[h.jsx(JU,{}),h.jsxs(qu,{"data-slot":"sheet-content",className:D("ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:fixed ui:z-50 ui:flex ui:flex-col ui:gap-4 ui:shadow-lg ui:transition ui:ease-in-out ui:data-[state=closed]:duration-300 ui:data-[state=open]:duration-500",n==="right"&&"ui:data-[state=closed]:slide-out-to-right ui:data-[state=open]:slide-in-from-right ui:inset-y-0 ui:right-0 ui:h-full ui:w-3/4 ui:border-l ui:sm:max-w-sm",n==="left"&&"ui:data-[state=closed]:slide-out-to-left ui:data-[state=open]:slide-in-from-left ui:inset-y-0 ui:left-0 ui:h-full ui:w-3/4 ui:border-r ui:sm:max-w-sm",n==="top"&&"ui:data-[state=closed]:slide-out-to-top ui:data-[state=open]:slide-in-from-top ui:inset-x-0 ui:top-0 ui:h-auto ui:border-b",n==="bottom"&&"ui:data-[state=closed]:slide-out-to-bottom ui:data-[state=open]:slide-in-from-bottom ui:inset-x-0 ui:bottom-0 ui:h-auto ui:border-t",t),...r,children:[e,h.jsxs(hs,{"data-testid":"sheet-close-icon",className:"ui:ring-offset-background ui:focus:ring-ring ui:data-[state=open]:bg-secondary ui:absolute ui:top-4 ui:right-4 ui:rounded-xs ui:opacity-70 ui:transition-opacity ui:hover:opacity-100 ui:focus:ring-2 ui:focus:ring-offset-2 ui:focus:outline-hidden ui:disabled:pointer-events-none",children:[h.jsx(Su,{className:"ui:size-4"}),h.jsx("span",{className:"ui:sr-only",children:"Close"})]})]})]})}function IR({className:t,...e}){return h.jsx("div",{"data-slot":"sheet-header",className:D("ui:flex ui:flex-col ui:gap-1.5 ui:p-4",t),...e})}function KU({className:t,...e}){return h.jsx("div",{"data-slot":"sheet-footer",className:D("ui:mt-auto ui:flex ui:flex-col ui:gap-2 ui:p-4",t),...e})}function AR({className:t,...e}){return h.jsx(_b,{"data-slot":"sheet-title",className:D("ui:text-foreground ui:font-semibold",t),...e})}function TR({className:t,...e}){return h.jsx(Ob,{"data-slot":"sheet-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}const im=768;function QU(){const[t,e]=v.useState();return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${im-1}px)`),r=()=>{e(window.innerWidth<im)};return n.addEventListener("change",r),e(window.innerWidth<im),()=>n.removeEventListener("change",r)},[]),!!t}function yg({className:t,...e}){return h.jsx("div",{"data-slot":"skeleton",className:D("ui:bg-accent ui:animate-pulse ui:rounded-md ui:shrink-0",t),...e})}const NR=v.createContext(null);function Nc(){const t=v.useContext(NR);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}const eZ="sidebar_state",tZ=3600*24*7,nZ="16rem",rZ="18rem",oZ="3rem",iZ="b";function aZ({defaultOpen:t=!0,open:e,onOpenChange:n,className:r,style:o,children:i,...a}){const s=QU(),[l,u]=v.useState(!1),[d,c]=v.useState(t),f=e??d,p=v.useCallback(y=>{const w=typeof y=="function"?y(f):y;n?n(w):c(w),document.cookie=`${eZ}=${w}; path=/; max-age=${tZ}`},[n,f]),m=v.useCallback(()=>s?u(y=>!y):p(y=>!y),[s,p,u]);v.useEffect(()=>{const y=w=>{w.key===iZ&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),m())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[m]);const g=f?"expanded":"collapsed",b=v.useMemo(()=>({state:g,open:f,setOpen:p,isMobile:s,openMobile:l,setOpenMobile:u,toggleSidebar:m}),[g,f,p,s,l,u,m]);return h.jsx(NR.Provider,{value:b,children:h.jsx(iv,{delayDuration:0,children:h.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nZ,"--sidebar-width-icon":oZ,...o},className:D("ui:group/sidebar-wrapper ui:has-data-[variant=inset]:bg-sidebar ui:flex ui:min-h-svh ui:w-full",r),...a,children:i})})})}function sZ({side:t="left",variant:e="sidebar",collapsible:n="offcanvas",className:r,children:o,...i}){const{isMobile:a,state:s,openMobile:l,setOpenMobile:u}=Nc();return n==="none"?h.jsx("div",{"data-slot":"sidebar",className:D("ui:bg-sidebar ui:text-sidebar-foreground ui:flex ui:h-full ui:w-(--sidebar-width) ui:flex-col",r),...i,children:o}):a?h.jsx(SR,{open:l,onOpenChange:u,...i,children:h.jsxs(ER,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"ui:bg-sidebar ui:text-sidebar-foreground ui:w-(--sidebar-width) ui:p-0 ui:[&>button]:hidden",style:{"--sidebar-width":rZ},side:t,children:[h.jsxs(IR,{className:"ui:sr-only",children:[h.jsx(AR,{children:"Sidebar"}),h.jsx(TR,{children:"Displays the mobile sidebar."})]}),h.jsx("div",{className:"ui:flex ui:h-full ui:w-full ui:flex-col",children:o})]})}):h.jsxs("div",{className:"ui:group ui:peer ui:text-sidebar-foreground ui:hidden ui:md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[h.jsx("div",{"data-slot":"sidebar-gap",className:D("ui:relative ui:w-(--sidebar-width) ui:bg-transparent ui:transition-[width] ui:duration-200 ui:ease-linear","ui:group-data-[collapsible=offcanvas]:w-0","ui:group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),h.jsx("div",{"data-slot":"sidebar-container",className:D("ui:fixed ui:inset-y-0 ui:z-10 ui:hidden ui:h-svh ui:w-(--sidebar-width) ui:transition-[left,right,width] ui:duration-200 ui:ease-linear ui:md:flex",t==="left"?"ui:left-0 ui:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"ui:right-0 ui:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"ui:p-2 ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon) ui:group-data-[side=left]:border-r ui:group-data-[side=right]:border-l",r),...i,children:h.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"ui:bg-sidebar ui:group-data-[variant=floating]:border-sidebar-border ui:flex ui:h-full ui:w-full ui:flex-col ui:group-data-[variant=floating]:rounded-lg ui:group-data-[variant=floating]:border ui:group-data-[variant=floating]:shadow-sm",children:o})})]})}function lZ({className:t,onClick:e,...n}){const{toggleSidebar:r}=Nc();return h.jsxs(en,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("ui:size-7",t),onClick:o=>{e?.(o),r()},...n,children:[h.jsx(aM,{}),h.jsx("span",{className:"ui:sr-only",children:"Toggle Sidebar"})]})}function uZ({className:t,...e}){const{toggleSidebar:n}=Nc();return h.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("ui:hover:after:bg-sidebar-border ui:absolute ui:inset-y-0 ui:z-20 ui:hidden ui:w-4 ui:-translate-x-1/2 ui:transition-all ui:ease-linear ui:group-data-[side=left]:-right-4 ui:group-data-[side=right]:left-0 ui:after:absolute ui:after:inset-y-0 ui:after:left-1/2 ui:after:w-[2px] ui:sm:flex","ui:in-data-[side=left]:cursor-w-resize ui:in-data-[side=right]:cursor-e-resize","ui:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize ui:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize","ui:hover:group-data-[collapsible=offcanvas]:bg-sidebar ui:group-data-[collapsible=offcanvas]:translate-x-0 ui:group-data-[collapsible=offcanvas]:after:left-full","ui:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","ui:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...e})}function cZ({className:t,...e}){return h.jsx("main",{"data-slot":"sidebar-inset",className:D("ui:bg-background ui:relative ui:flex ui:w-full ui:flex-1 ui:flex-col","ui:md:peer-data-[variant=inset]:m-2 ui:md:peer-data-[variant=inset]:ml-0 ui:md:peer-data-[variant=inset]:rounded-xl ui:md:peer-data-[variant=inset]:shadow-sm ui:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),...e})}function dZ({className:t,...e}){return h.jsx(sc,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("ui:bg-background ui:h-8 ui:w-full ui:shadow-none",t),...e})}function fZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("ui:flex ui:flex-col ui:gap-2 ui:p-2",t),...e})}function hZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("ui:flex ui:flex-col ui:gap-2 ui:p-2",t),...e})}function pZ({className:t,...e}){return h.jsx(BO,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("ui:bg-sidebar-border ui:mx-2 ui:w-auto",t),...e})}function mZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("ui:flex ui:min-h-0 ui:flex-1 ui:flex-col ui:gap-2 ui:overflow-auto ui:group-data-[collapsible=icon]:overflow-hidden",t),...e})}function gZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("ui:relative ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:p-2",t),...e})}function bZ({className:t,asChild:e=!1,...n}){const r=e?gr:"div";return h.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("ui:text-sidebar-foreground/70 ui:ring-sidebar-ring ui:flex ui:h-8 ui:shrink-0 ui:items-center ui:rounded-md ui:px-2 ui:text-xs ui:font-medium ui:outline-hidden ui:transition-[margin,opacity] ui:duration-200 ui:ease-linear ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:group-data-[collapsible=icon]:-mt-8 ui:group-data-[collapsible=icon]:opacity-0",t),...n})}function vZ({className:t,asChild:e=!1,...n}){const r=e?gr:"button";return h.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:absolute ui:top-3.5 ui:right-3 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:group-data-[collapsible=icon]:hidden",t),...n})}function yZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("ui:w-full ui:text-sm",t),...e})}function xZ({className:t,...e}){return h.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:gap-1",t),...e})}function wZ({className:t,...e}){return h.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("ui:group/menu-item ui:relative",t),...e})}const CZ=Bi("ui:peer/menu-button ui:flex ui:w-full ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:p-2 ui:text-left ui:text-sm ui:outline-hidden ui:ring-sidebar-ring ui:transition-[width,height,padding] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:focus-visible:ring-2 ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:group-has-data-[sidebar=menu-action]/menu-item:pr-8 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:font-medium ui:data-[active=true]:text-sidebar-accent-foreground ui:data-[state=open]:hover:bg-sidebar-accent ui:data-[state=open]:hover:text-sidebar-accent-foreground ui:group-data-[collapsible=icon]:size-8! ui:group-data-[collapsible=icon]:p-2! ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0",{variants:{variant:{default:"ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground",outline:"ui:bg-background ui:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"ui:h-8 ui:text-sm",sm:"ui:h-7 ui:text-xs",lg:"ui:h-12 ui:text-sm ui:group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function SZ({asChild:t=!1,isActive:e=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a}){const s=t?gr:"button",{isMobile:l,state:u}=Nc(),d=h.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":e,className:D(CZ({variant:n,size:r}),i),...a});return o?(typeof o=="string"&&(o={children:o}),h.jsxs(av,{children:[h.jsx(sv,{asChild:!0,children:d}),h.jsx(fc,{side:"right",align:"center",hidden:u!=="collapsed"||l,...o})]})):d}function EZ({className:t,asChild:e=!1,showOnHover:n=!1,...r}){const o=e?gr:"button";return h.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:absolute ui:top-1.5 ui:right-1 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",n&&"ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground ui:group-focus-within/menu-item:opacity-100 ui:group-hover/menu-item:opacity-100 ui:data-[state=open]:opacity-100 ui:md:opacity-0",t),...r})}function IZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("ui:text-sidebar-foreground ui:pointer-events-none ui:absolute ui:right-1 ui:flex ui:h-5 ui:min-w-5 ui:items-center ui:justify-center ui:rounded-md ui:px-1 ui:text-xs ui:font-medium ui:tabular-nums ui:select-none","ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",t),...e})}function AZ({className:t,showIcon:e=!1,...n}){const[r,o]=v.useState("80%");return v.useEffect(()=>{o(`${Math.floor(Math.random()*40)+50}%`)},[]),h.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("ui:flex ui:h-8 ui:items-center ui:gap-2 ui:rounded-md ui:px-2",t),...n,children:[e&&h.jsx(yg,{className:"ui:size-4 ui:rounded-md","data-sidebar":"menu-skeleton-icon"}),h.jsx(yg,{className:"ui:h-4 ui:max-w-(--skeleton-width) ui:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function TZ({className:t,...e}){return h.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("ui:border-sidebar-border ui:mx-3.5 ui:flex ui:min-w-0 ui:translate-x-px ui:flex-col ui:gap-1 ui:border-l ui:px-2.5 ui:py-0.5","ui:group-data-[collapsible=icon]:hidden",t),...e})}function NZ({className:t,...e}){return h.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("ui:group/menu-sub-item ui:relative",t),...e})}function _Z({asChild:t=!1,size:e="md",isActive:n=!1,className:r,...o}){const i=t?gr:"a";return h.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":e,"data-active":n,className:D("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:[&>svg]:text-sidebar-accent-foreground ui:flex ui:h-7 ui:min-w-0 ui:-translate-x-px ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:px-2 ui:outline-hidden ui:focus-visible:ring-2 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"ui:text-xs",e==="md"&&"ui:text-sm","ui:group-data-[collapsible=icon]:hidden",r),...o})}var OZ=(t,e,n,r,o,i,a,s)=>{let l=document.documentElement,u=["light","dark"];function d(p){(Array.isArray(t)?t:[t]).forEach(m=>{let g=m==="class",b=g&&i?o.map(y=>i[y]||y):o;g?(l.classList.remove(...b),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(m,p)}),c(p)}function c(p){s&&u.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let p=localStorage.getItem(e)||n,m=a&&p==="system"?f():p;d(m)}catch{}},RZ=v.createContext(void 0),PZ={setTheme:t=>{},themes:[]},MZ=()=>{var t;return(t=v.useContext(RZ))!=null?t:PZ};v.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([n,e,i,t,s,a,r,o]).slice(1,-1);return v.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${OZ.toString()})(${d})`}})});const kZ=({...t})=>{const{theme:e="system"}=MZ();return h.jsx(Nz,{theme:e,className:"ui:toaster ui:group",icons:{success:h.jsx(V2,{className:"ui:size-4"}),info:h.jsx(ki,{className:"ui:size-4"}),warning:h.jsx(cM,{className:"ui:size-4"}),error:h.jsx(oM,{className:"ui:size-4"}),loading:h.jsx(Cu,{className:"ui:size-4 ui:animate-spin"})},style:{"--normal-bg":"var(--ui-popover)","--normal-text":"var(--ui-popover-foreground)","--normal-border":"var(--ui-border)","--border-radius":"var(--ui-radius)"},...t})};function DZ({title:t,containerClassName:e,className:n,...r}){return h.jsx("section",{className:D(e),children:h.jsxs("div",{className:"ui:flex ui:gap-1 ui:items-center",children:[h.jsx(Cu,{role:"status","aria-label":"Loading",className:D("ui:size-4 ui:animate-spin",n),...r}),t&&h.jsx("span",{children:t})]})})}var _c="Tabs",[jZ]=At(_c,[Wi]),_R=Wi(),[LZ,Iv]=jZ(_c),OR=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=t,d=to(s),[c,f]=jt({prop:r,onChange:o,defaultProp:i??"",caller:_c});return h.jsx(LZ,{scope:n,baseId:ft(),value:c,onValueChange:f,orientation:a,dir:d,activationMode:l,children:h.jsx(he.div,{dir:d,"data-orientation":a,...u,ref:e})})});OR.displayName=_c;var RR="TabsList",PR=v.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...o}=t,i=Iv(RR,n),a=_R(n);return h.jsx(Xb,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(he.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:e})})});PR.displayName=RR;var MR="TabsTrigger",kR=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=t,a=Iv(MR,n),s=_R(n),l=LR(a.baseId,r),u=BR(a.baseId,r),d=r===a.value;return h.jsx(Yb,{asChild:!0,...s,focusable:!o,active:d,children:h.jsx(he.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:e,onMouseDown:se(t.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:se(t.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:se(t.onFocus,()=>{const c=a.activationMode!=="manual";!d&&!o&&c&&a.onValueChange(r)})})})});kR.displayName=MR;var DR="TabsContent",jR=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=t,s=Iv(DR,n),l=LR(s.baseId,r),u=BR(s.baseId,r),d=r===s.value,c=v.useRef(d);return v.useEffect(()=>{const f=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(f)},[]),h.jsx(pt,{present:o||d,children:({present:f})=>h.jsx(he.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:u,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:c.current?"0s":void 0},children:f&&i})})});jR.displayName=DR;function LR(t,e){return`${t}-trigger-${e}`}function BR(t,e){return`${t}-content-${e}`}var BZ=OR,FZ=PR,GZ=kR,$Z=jR;function VZ({className:t,...e}){return h.jsx(BZ,{"data-slot":"tabs",className:D("ui:flex ui:flex-col ui:gap-2",t),...e})}function WZ({className:t,...e}){return h.jsx(FZ,{"data-slot":"tabs-list",className:D("ui:bg-muted ui:text-muted-foreground ui:inline-flex ui:h-9 ui:w-fit ui:items-center ui:justify-center ui:rounded-lg ui:p-[3px]",t),...e})}function HZ({className:t,...e}){return h.jsx(GZ,{"data-slot":"tabs-trigger",className:D("ui:data-[state=active]:bg-background ui:dark:data-[state=active]:text-foreground ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:outline-ring ui:dark:data-[state=active]:border-input ui:dark:data-[state=active]:bg-input/30 ui:text-foreground ui:dark:text-muted-foreground ui:inline-flex ui:h-[calc(100%-1px)] ui:flex-1 ui:items-center ui:justify-center ui:gap-1.5 ui:rounded-md ui:border ui:border-transparent ui:px-2 ui:py-1 ui:text-sm ui:font-medium ui:whitespace-nowrap ui:transition-[color,box-shadow] ui:focus-visible:ring-[3px] ui:focus-visible:outline-1 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:data-[state=active]:shadow-sm ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...e})}function qZ({className:t,...e}){return h.jsx($Z,{"data-slot":"tabs-content",className:D("ui:flex-1 ui:outline-none",t),...e})}function zZ({className:t,...e}){return h.jsx("div",{"data-slot":"table-container",className:"ui:overflow-x-auto",children:h.jsx("table",{"data-slot":"table",className:D("ui:data-grid ui:min-w-full ui:text-left ui:text-sm ui:font-light ui:text-surface ui:dark:text-white",t),...e})})}function XZ({className:t,disableHover:e=!1,...n}){return h.jsx("thead",{"data-slot":"table-header",className:D("ui:border-b ui:border-neutral-200 ui:font-medium ui:bg-zinc-700 ui:text-white",!e&&"ui:hover:bg-zinc-700 ui:hover:text-white",t),...n})}function YZ({className:t,...e}){return h.jsx("th",{"data-slot":"table-head",className:D("ui:p-2 ui:whitespace-nowrap",t),...e})}function UZ({className:t,...e}){return h.jsx("tbody",{"data-slot":"table-body",className:D("ui:border-b ui:bg-white ui:[&_tr:last-child]:border-0",t),...e})}function ZZ({className:t,...e}){return h.jsx("tr",{className:D("ui:border-b ui:border-neutral-200",t),...e})}function JZ({className:t,disableHover:e=!1,...n}){return h.jsx("tr",{"data-slot":"table-row",className:D("ui:border-b ui:border-neutral-200",!e&&"ui:hover:bg-neutral-300",t),...n})}function KZ({className:t,...e}){return h.jsx("td",{"data-slot":"table-cell",className:D("ui:whitespace-nowrap ui:p-2",t),...e})}function QZ({className:t,...e}){return h.jsx("caption",{"data-slot":"table-caption",className:D("ui:mt-4 ui:text-sm ui:text-muted-foreground",t),...e})}function eJ({className:t,...e}){return h.jsx("tfoot",{"data-slot":"table-footer",className:D("ui:border-t ui:bg-muted/50 ui:font-medium ui:[&>tr]:last:border-b-0",t),...e})}var FR=typeof global=="object"&&global&&global.Object===Object&&global,tJ=typeof self=="object"&&self&&self.Object===Object&&self,Er=FR||tJ||Function("return this")(),eo=Er.Symbol,GR=Object.prototype,nJ=GR.hasOwnProperty,rJ=GR.toString,fa=eo?eo.toStringTag:void 0;function oJ(t){var e=nJ.call(t,fa),n=t[fa];try{t[fa]=void 0;var r=!0}catch{}var o=rJ.call(t);return r&&(e?t[fa]=n:delete t[fa]),o}var iJ=Object.prototype,aJ=iJ.toString;function sJ(t){return aJ.call(t)}var lJ="[object Null]",uJ="[object Undefined]",cC=eo?eo.toStringTag:void 0;function Yi(t){return t==null?t===void 0?uJ:lJ:cC&&cC in Object(t)?oJ(t):sJ(t)}function Br(t){return t!=null&&typeof t=="object"}var Ro=Array.isArray;function lo(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function $R(t){return t}var cJ="[object AsyncFunction]",dJ="[object Function]",fJ="[object GeneratorFunction]",hJ="[object Proxy]";function Av(t){if(!lo(t))return!1;var e=Yi(t);return e==dJ||e==fJ||e==cJ||e==hJ}var am=Er["__core-js_shared__"],dC=(function(){var t=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function pJ(t){return!!dC&&dC in t}var mJ=Function.prototype,gJ=mJ.toString;function Vo(t){if(t!=null){try{return gJ.call(t)}catch{}try{return t+""}catch{}}return""}var bJ=/[\\^$.*+?()[\]{}|]/g,vJ=/^\[object .+?Constructor\]$/,yJ=Function.prototype,xJ=Object.prototype,wJ=yJ.toString,CJ=xJ.hasOwnProperty,SJ=RegExp("^"+wJ.call(CJ).replace(bJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EJ(t){if(!lo(t)||pJ(t))return!1;var e=Av(t)?SJ:vJ;return e.test(Vo(t))}function IJ(t,e){return t?.[e]}function Wo(t,e){var n=IJ(t,e);return EJ(n)?n:void 0}var xg=Wo(Er,"WeakMap"),fC=Object.create,AJ=(function(){function t(){}return function(e){if(!lo(e))return{};if(fC)return fC(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function TJ(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function NJ(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var _J=800,OJ=16,RJ=Date.now;function PJ(t){var e=0,n=0;return function(){var r=RJ(),o=OJ-(r-n);if(n=r,o>0){if(++e>=_J)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function MJ(t){return function(){return t}}var cu=(function(){try{var t=Wo(Object,"defineProperty");return t({},"",{}),t}catch{}})(),kJ=cu?function(t,e){return cu(t,"toString",{configurable:!0,enumerable:!1,value:MJ(e),writable:!0})}:$R,DJ=PJ(kJ);function jJ(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var LJ=9007199254740991,BJ=/^(?:0|[1-9]\d*)$/;function VR(t,e){var n=typeof t;return e=e??LJ,!!e&&(n=="number"||n!="symbol"&&BJ.test(t))&&t>-1&&t%1==0&&t<e}function Tv(t,e,n){e=="__proto__"&&cu?cu(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function As(t,e){return t===e||t!==t&&e!==e}var FJ=Object.prototype,GJ=FJ.hasOwnProperty;function WR(t,e,n){var r=t[e];(!(GJ.call(t,e)&&As(r,n))||n===void 0&&!(e in t))&&Tv(t,e,n)}function $J(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=void 0;l===void 0&&(l=t[s]),o?Tv(n,s,l):WR(n,s,l)}return n}var hC=Math.max;function VJ(t,e,n){return e=hC(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=hC(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),TJ(t,this,s)}}function WJ(t,e){return DJ(VJ(t,e,$R),t+"")}var HJ=9007199254740991;function HR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=HJ}function Oc(t){return t!=null&&HR(t.length)&&!Av(t)}function qJ(t,e,n){if(!lo(n))return!1;var r=typeof e;return(r=="number"?Oc(n)&&VR(e,n.length):r=="string"&&e in n)?As(n[e],t):!1}function zJ(t){return WJ(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,a&&qJ(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var s=n[r];s&&t(e,s,r,i)}return e})}var XJ=Object.prototype;function Nv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||XJ;return t===n}function YJ(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var UJ="[object Arguments]";function pC(t){return Br(t)&&Yi(t)==UJ}var qR=Object.prototype,ZJ=qR.hasOwnProperty,JJ=qR.propertyIsEnumerable,wg=pC((function(){return arguments})())?pC:function(t){return Br(t)&&ZJ.call(t,"callee")&&!JJ.call(t,"callee")};function KJ(){return!1}var zR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mC=zR&&typeof module=="object"&&module&&!module.nodeType&&module,QJ=mC&&mC.exports===zR,gC=QJ?Er.Buffer:void 0,eK=gC?gC.isBuffer:void 0,Za=eK||KJ,tK="[object Arguments]",nK="[object Array]",rK="[object Boolean]",oK="[object Date]",iK="[object Error]",aK="[object Function]",sK="[object Map]",lK="[object Number]",uK="[object Object]",cK="[object RegExp]",dK="[object Set]",fK="[object String]",hK="[object WeakMap]",pK="[object ArrayBuffer]",mK="[object DataView]",gK="[object Float32Array]",bK="[object Float64Array]",vK="[object Int8Array]",yK="[object Int16Array]",xK="[object Int32Array]",wK="[object Uint8Array]",CK="[object Uint8ClampedArray]",SK="[object Uint16Array]",EK="[object Uint32Array]",rt={};rt[gK]=rt[bK]=rt[vK]=rt[yK]=rt[xK]=rt[wK]=rt[CK]=rt[SK]=rt[EK]=!0;rt[tK]=rt[nK]=rt[pK]=rt[rK]=rt[mK]=rt[oK]=rt[iK]=rt[aK]=rt[sK]=rt[lK]=rt[uK]=rt[cK]=rt[dK]=rt[fK]=rt[hK]=!1;function IK(t){return Br(t)&&HR(t.length)&&!!rt[Yi(t)]}function _v(t){return function(e){return t(e)}}var XR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Na=XR&&typeof module=="object"&&module&&!module.nodeType&&module,AK=Na&&Na.exports===XR,sm=AK&&FR.process,Ri=(function(){try{var t=Na&&Na.require&&Na.require("util").types;return t||sm&&sm.binding&&sm.binding("util")}catch{}})(),bC=Ri&&Ri.isTypedArray,Ov=bC?_v(bC):IK,TK=Object.prototype,NK=TK.hasOwnProperty;function YR(t,e){var n=Ro(t),r=!n&&wg(t),o=!n&&!r&&Za(t),i=!n&&!r&&!o&&Ov(t),a=n||r||o||i,s=a?YJ(t.length,String):[],l=s.length;for(var u in t)(e||NK.call(t,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||VR(u,l)))&&s.push(u);return s}function UR(t,e){return function(n){return t(e(n))}}var _K=UR(Object.keys,Object),OK=Object.prototype,RK=OK.hasOwnProperty;function PK(t){if(!Nv(t))return _K(t);var e=[];for(var n in Object(t))RK.call(t,n)&&n!="constructor"&&e.push(n);return e}function MK(t){return Oc(t)?YR(t):PK(t)}function kK(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var DK=Object.prototype,jK=DK.hasOwnProperty;function LK(t){if(!lo(t))return kK(t);var e=Nv(t),n=[];for(var r in t)r=="constructor"&&(e||!jK.call(t,r))||n.push(r);return n}function ZR(t){return Oc(t)?YR(t,!0):LK(t)}var Ja=Wo(Object,"create");function BK(){this.__data__=Ja?Ja(null):{},this.size=0}function FK(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var GK="__lodash_hash_undefined__",$K=Object.prototype,VK=$K.hasOwnProperty;function WK(t){var e=this.__data__;if(Ja){var n=e[t];return n===GK?void 0:n}return VK.call(e,t)?e[t]:void 0}var HK=Object.prototype,qK=HK.hasOwnProperty;function zK(t){var e=this.__data__;return Ja?e[t]!==void 0:qK.call(e,t)}var XK="__lodash_hash_undefined__";function YK(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ja&&e===void 0?XK:e,this}function Po(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Po.prototype.clear=BK;Po.prototype.delete=FK;Po.prototype.get=WK;Po.prototype.has=zK;Po.prototype.set=YK;function UK(){this.__data__=[],this.size=0}function Rc(t,e){for(var n=t.length;n--;)if(As(t[n][0],e))return n;return-1}var ZK=Array.prototype,JK=ZK.splice;function KK(t){var e=this.__data__,n=Rc(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():JK.call(e,n,1),--this.size,!0}function QK(t){var e=this.__data__,n=Rc(e,t);return n<0?void 0:e[n][1]}function eQ(t){return Rc(this.__data__,t)>-1}function tQ(t,e){var n=this.__data__,r=Rc(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Gr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Gr.prototype.clear=UK;Gr.prototype.delete=KK;Gr.prototype.get=QK;Gr.prototype.has=eQ;Gr.prototype.set=tQ;var Ka=Wo(Er,"Map");function nQ(){this.size=0,this.__data__={hash:new Po,map:new(Ka||Gr),string:new Po}}function rQ(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Pc(t,e){var n=t.__data__;return rQ(e)?n[typeof e=="string"?"string":"hash"]:n.map}function oQ(t){var e=Pc(this,t).delete(t);return this.size-=e?1:0,e}function iQ(t){return Pc(this,t).get(t)}function aQ(t){return Pc(this,t).has(t)}function sQ(t,e){var n=Pc(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ho(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ho.prototype.clear=nQ;Ho.prototype.delete=oQ;Ho.prototype.get=iQ;Ho.prototype.has=aQ;Ho.prototype.set=sQ;function lQ(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var JR=UR(Object.getPrototypeOf,Object),uQ="[object Object]",cQ=Function.prototype,dQ=Object.prototype,KR=cQ.toString,fQ=dQ.hasOwnProperty,hQ=KR.call(Object);function pQ(t){if(!Br(t)||Yi(t)!=uQ)return!1;var e=JR(t);if(e===null)return!0;var n=fQ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&KR.call(n)==hQ}function mQ(){this.__data__=new Gr,this.size=0}function gQ(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function bQ(t){return this.__data__.get(t)}function vQ(t){return this.__data__.has(t)}var yQ=200;function xQ(t,e){var n=this.__data__;if(n instanceof Gr){var r=n.__data__;if(!Ka||r.length<yQ-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ho(r)}return n.set(t,e),this.size=n.size,this}function cr(t){var e=this.__data__=new Gr(t);this.size=e.size}cr.prototype.clear=mQ;cr.prototype.delete=gQ;cr.prototype.get=bQ;cr.prototype.has=vQ;cr.prototype.set=xQ;var QR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vC=QR&&typeof module=="object"&&module&&!module.nodeType&&module,wQ=vC&&vC.exports===QR,yC=wQ?Er.Buffer:void 0,xC=yC?yC.allocUnsafe:void 0;function eP(t,e){if(e)return t.slice();var n=t.length,r=xC?xC(n):new t.constructor(n);return t.copy(r),r}function CQ(t,e){for(var n=-1,r=t==null?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function SQ(){return[]}var EQ=Object.prototype,IQ=EQ.propertyIsEnumerable,wC=Object.getOwnPropertySymbols,AQ=wC?function(t){return t==null?[]:(t=Object(t),CQ(wC(t),function(e){return IQ.call(t,e)}))}:SQ;function TQ(t,e,n){var r=e(t);return Ro(t)?r:lQ(r,n(t))}function Cg(t){return TQ(t,MK,AQ)}var Sg=Wo(Er,"DataView"),Eg=Wo(Er,"Promise"),Ig=Wo(Er,"Set"),CC="[object Map]",NQ="[object Object]",SC="[object Promise]",EC="[object Set]",IC="[object WeakMap]",AC="[object DataView]",_Q=Vo(Sg),OQ=Vo(Ka),RQ=Vo(Eg),PQ=Vo(Ig),MQ=Vo(xg),kn=Yi;(Sg&&kn(new Sg(new ArrayBuffer(1)))!=AC||Ka&&kn(new Ka)!=CC||Eg&&kn(Eg.resolve())!=SC||Ig&&kn(new Ig)!=EC||xg&&kn(new xg)!=IC)&&(kn=function(t){var e=Yi(t),n=e==NQ?t.constructor:void 0,r=n?Vo(n):"";if(r)switch(r){case _Q:return AC;case OQ:return CC;case RQ:return SC;case PQ:return EC;case MQ:return IC}return e});var kQ=Object.prototype,DQ=kQ.hasOwnProperty;function jQ(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&DQ.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var du=Er.Uint8Array;function Rv(t){var e=new t.constructor(t.byteLength);return new du(e).set(new du(t)),e}function LQ(t,e){var n=Rv(t.buffer);return new t.constructor(n,t.byteOffset,t.byteLength)}var BQ=/\w*$/;function FQ(t){var e=new t.constructor(t.source,BQ.exec(t));return e.lastIndex=t.lastIndex,e}var TC=eo?eo.prototype:void 0,NC=TC?TC.valueOf:void 0;function GQ(t){return NC?Object(NC.call(t)):{}}function tP(t,e){var n=e?Rv(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var $Q="[object Boolean]",VQ="[object Date]",WQ="[object Map]",HQ="[object Number]",qQ="[object RegExp]",zQ="[object Set]",XQ="[object String]",YQ="[object Symbol]",UQ="[object ArrayBuffer]",ZQ="[object DataView]",JQ="[object Float32Array]",KQ="[object Float64Array]",QQ="[object Int8Array]",eee="[object Int16Array]",tee="[object Int32Array]",nee="[object Uint8Array]",ree="[object Uint8ClampedArray]",oee="[object Uint16Array]",iee="[object Uint32Array]";function aee(t,e,n){var r=t.constructor;switch(e){case UQ:return Rv(t);case $Q:case VQ:return new r(+t);case ZQ:return LQ(t);case JQ:case KQ:case QQ:case eee:case tee:case nee:case ree:case oee:case iee:return tP(t,n);case WQ:return new r;case HQ:case XQ:return new r(t);case qQ:return FQ(t);case zQ:return new r;case YQ:return GQ(t)}}function nP(t){return typeof t.constructor=="function"&&!Nv(t)?AJ(JR(t)):{}}var see="[object Map]";function lee(t){return Br(t)&&kn(t)==see}var _C=Ri&&Ri.isMap,uee=_C?_v(_C):lee,cee="[object Set]";function dee(t){return Br(t)&&kn(t)==cee}var OC=Ri&&Ri.isSet,fee=OC?_v(OC):dee,hee=1,rP="[object Arguments]",pee="[object Array]",mee="[object Boolean]",gee="[object Date]",bee="[object Error]",oP="[object Function]",vee="[object GeneratorFunction]",yee="[object Map]",xee="[object Number]",iP="[object Object]",wee="[object RegExp]",Cee="[object Set]",See="[object String]",Eee="[object Symbol]",Iee="[object WeakMap]",Aee="[object ArrayBuffer]",Tee="[object DataView]",Nee="[object Float32Array]",_ee="[object Float64Array]",Oee="[object Int8Array]",Ree="[object Int16Array]",Pee="[object Int32Array]",Mee="[object Uint8Array]",kee="[object Uint8ClampedArray]",Dee="[object Uint16Array]",jee="[object Uint32Array]",et={};et[rP]=et[pee]=et[Aee]=et[Tee]=et[mee]=et[gee]=et[Nee]=et[_ee]=et[Oee]=et[Ree]=et[Pee]=et[yee]=et[xee]=et[iP]=et[wee]=et[Cee]=et[See]=et[Eee]=et[Mee]=et[kee]=et[Dee]=et[jee]=!0;et[bee]=et[oP]=et[Iee]=!1;function Rl(t,e,n,r,o,i){var a,s=e&hee;if(a!==void 0)return a;if(!lo(t))return t;var l=Ro(t);if(l)a=jQ(t);else{var u=kn(t),d=u==oP||u==vee;if(Za(t))return eP(t,s);if(u==iP||u==rP||d&&!o)a=d?{}:nP(t);else{if(!et[u])return o?t:{};a=aee(t,u,s)}}i||(i=new cr);var c=i.get(t);if(c)return c;i.set(t,a),fee(t)?t.forEach(function(m){a.add(Rl(m,e,n,m,t,i))}):uee(t)&&t.forEach(function(m,g){a.set(g,Rl(m,e,n,g,t,i))});var f=Cg,p=l?void 0:f(t);return jJ(p||t,function(m,g){p&&(g=m,m=t[g]),WR(a,g,Rl(m,e,n,g,t,i))}),a}var Lee=1,Bee=4;function vi(t){return Rl(t,Lee|Bee)}var Fee="__lodash_hash_undefined__";function Gee(t){return this.__data__.set(t,Fee),this}function $ee(t){return this.__data__.has(t)}function fu(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ho;++e<n;)this.add(t[e])}fu.prototype.add=fu.prototype.push=Gee;fu.prototype.has=$ee;function Vee(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Wee(t,e){return t.has(e)}var Hee=1,qee=2;function aP(t,e,n,r,o,i){var a=n&Hee,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var c=-1,f=!0,p=n&qee?new fu:void 0;for(i.set(t,e),i.set(e,t);++c<s;){var m=t[c],g=e[c];if(r)var b=a?r(g,m,c,e,t,i):r(m,g,c,t,e,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Vee(e,function(y,w){if(!Wee(p,w)&&(m===y||o(m,y,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(m===g||o(m,g,n,r,i))){f=!1;break}}return i.delete(t),i.delete(e),f}function zee(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function Xee(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Yee=1,Uee=2,Zee="[object Boolean]",Jee="[object Date]",Kee="[object Error]",Qee="[object Map]",ete="[object Number]",tte="[object RegExp]",nte="[object Set]",rte="[object String]",ote="[object Symbol]",ite="[object ArrayBuffer]",ate="[object DataView]",RC=eo?eo.prototype:void 0,lm=RC?RC.valueOf:void 0;function ste(t,e,n,r,o,i,a){switch(n){case ate:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ite:return!(t.byteLength!=e.byteLength||!i(new du(t),new du(e)));case Zee:case Jee:case ete:return As(+t,+e);case Kee:return t.name==e.name&&t.message==e.message;case tte:case rte:return t==e+"";case Qee:var s=zee;case nte:var l=r&Yee;if(s||(s=Xee),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=Uee,a.set(t,e);var d=aP(s(t),s(e),r,o,i,a);return a.delete(t),d;case ote:if(lm)return lm.call(t)==lm.call(e)}return!1}var lte=1,ute=Object.prototype,cte=ute.hasOwnProperty;function dte(t,e,n,r,o,i){var a=n&lte,s=Cg(t),l=s.length,u=Cg(e),d=u.length;if(l!=d&&!a)return!1;for(var c=l;c--;){var f=s[c];if(!(a?f in e:cte.call(e,f)))return!1}var p=i.get(t),m=i.get(e);if(p&&m)return p==e&&m==t;var g=!0;i.set(t,e),i.set(e,t);for(var b=a;++c<l;){f=s[c];var y=t[f],w=e[f];if(r)var C=a?r(w,y,f,e,t,i):r(y,w,f,t,e,i);if(!(C===void 0?y===w||o(y,w,n,r,i):C)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var S=t.constructor,E=e.constructor;S!=E&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof E=="function"&&E instanceof E)&&(g=!1)}return i.delete(t),i.delete(e),g}var fte=1,PC="[object Arguments]",MC="[object Array]",fl="[object Object]",hte=Object.prototype,kC=hte.hasOwnProperty;function pte(t,e,n,r,o,i){var a=Ro(t),s=Ro(e),l=a?MC:kn(t),u=s?MC:kn(e);l=l==PC?fl:l,u=u==PC?fl:u;var d=l==fl,c=u==fl,f=l==u;if(f&&Za(t)){if(!Za(e))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new cr),a||Ov(t)?aP(t,e,n,r,o,i):ste(t,e,l,n,r,o,i);if(!(n&fte)){var p=d&&kC.call(t,"__wrapped__"),m=c&&kC.call(e,"__wrapped__");if(p||m){var g=p?t.value():t,b=m?e.value():e;return i||(i=new cr),o(g,b,n,r,i)}}return f?(i||(i=new cr),dte(t,e,n,r,o,i)):!1}function sP(t,e,n,r,o){return t===e?!0:t==null||e==null||!Br(t)&&!Br(e)?t!==t&&e!==e:pte(t,e,n,r,sP,o)}function mte(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return e}}var gte=mte();function Ag(t,e,n){(n!==void 0&&!As(t[e],n)||n===void 0&&!(e in t))&&Tv(t,e,n)}function bte(t){return Br(t)&&Oc(t)}function Tg(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function vte(t){return $J(t,ZR(t))}function yte(t,e,n,r,o,i,a){var s=Tg(t,n),l=Tg(e,n),u=a.get(l);if(u){Ag(t,n,u);return}var d=i?i(s,l,n+"",t,e,a):void 0,c=d===void 0;if(c){var f=Ro(l),p=!f&&Za(l),m=!f&&!p&&Ov(l);d=l,f||p||m?Ro(s)?d=s:bte(s)?d=NJ(s):p?(c=!1,d=eP(l,!0)):m?(c=!1,d=tP(l,!0)):d=[]:pQ(l)||wg(l)?(d=s,wg(s)?d=vte(s):(!lo(s)||Av(s))&&(d=nP(l))):c=!1}c&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),Ag(t,n,d)}function lP(t,e,n,r,o){t!==e&&gte(e,function(i,a){if(o||(o=new cr),lo(i))yte(t,e,a,n,lP,r,o);else{var s=r?r(Tg(t,a),i,a+"",t,e,o):void 0;s===void 0&&(s=i),Ag(t,a,s)}},ZR)}function Pv(t,e){return sP(t,e)}var Ur=zJ(function(t,e,n){lP(t,e,n)}),ve=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ve||{});class mr{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const o=ve.TYPE&ve.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ve.LEVEL|o:ve.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class yi extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const uP=class Ng{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const o=this.query(n);if(o==null)throw new yi(`Unable to create ${n} blot`);const i=o,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(r),s=new i(e,a,r);return Ng.blots.set(s.domNode,s),s}find(e,n=!1){return Ng.find(e,n)}query(e,n=ve.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ve.LEVEL&ve.BLOCK?r=this.types.block:e&ve.LEVEL&ve.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(o=>(r=this.classes[o],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&ve.LEVEL&r.scope&&n&ve.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,o="attrName"in n;if(!r&&!o)throw new yi("Invalid definition");if(r&&n.blotName==="abstract")throw new yi("Cannot register abstract class");const i=r?n.blotName:o?n.attrName:void 0;return this.types[i]=n,o?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(a=>a.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(a=>{(this.tags[a]==null||n.className==null)&&(this.tags[a]=n)}))),n})}};uP.blots=new WeakMap;let Pi=uP;function DC(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class xte extends mr{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){DC(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(DC(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const Zn=xte;function um(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class wte extends mr{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[um(this.keyName)]=n,!0):!1}remove(e){e.style[um(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[um(this.keyName)];return this.canAdd(e,n)?n:""}}const uo=wte;class Cte{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Pi.find(this.domNode);if(e==null)return;const n=mr.keys(this.domNode),r=Zn.keys(this.domNode),o=uo.keys(this.domNode);n.concat(r).concat(o).forEach(i=>{const a=e.scroll.query(i,ve.ATTRIBUTE);a instanceof mr&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const Mc=Cte,cP=class{constructor(e,n){this.scroll=e,this.domNode=n,Pi.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new yi("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Pi.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,o){const i=this.isolate(e,n);if(this.scroll.query(r,ve.BLOT)!=null&&o)i.wrap(r,o);else if(this.scroll.query(r,ve.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(r,o)}}insertAt(e,n,r){const o=r==null?this.scroll.create("text",n):this.scroll.create(n,r),i=this.split(e);this.parent.insertBefore(o,i||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new yi(`Cannot wrap ${e}`);return r.appendChild(this),r}};cP.blotName="abstract";let dP=cP;const fP=class extends dP{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};fP.scope=ve.INLINE_BLOT;let Ste=fP;const Vt=Ste;class Ete{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),o=0;for(;r;){if(r===e)return o;o+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let o=r();for(;o;){const i=o.length();if(e<i||n&&e===i&&(o.next==null||o.next.length()!==0))return[o,e];e-=i,o=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[o,i]=this.find(e);let a=e-i;const s=this.iterator(o);let l=s();for(;l&&a<e+n;){const u=l.length();e>a?r(l,e-a,Math.min(n,a+u-e)):r(l,0,Math.min(u,e+n-a)),a+=u,l=s()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let o=r();for(;o;)n=e(n,o),o=r();return n}}function jC(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(ve.INLINE);return Array.from(t.childNodes).forEach(o=>{r.domNode.appendChild(o)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const hP=class zr extends dP{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,zr.uiClass&&this.uiNode.classList.add(zr.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ete,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=jC(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof yi)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,o,i)=>{r.deleteAt(o,i)})}descendant(e,n=0){const[r,o]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,o]:r instanceof zr?r.descendant(e,o):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let o=[],i=r;return this.children.forEachAt(n,r,(a,s,l)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&o.push(a),a instanceof zr&&(o=o.concat(a.descendants(e,s,i))),i-=l}),o}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ve.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof zr?n.unwrap():n.remove())})}formatAt(e,n,r,o){this.children.forEachAt(e,n,(i,a,s)=>{i.formatAt(a,s,r,o)})}insertAt(e,n,r){const[o,i]=this.children.find(e);if(o)o.insertAt(i,n,r);else{const a=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(a)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,o]=this.children.find(e,n),i=[[this,e]];return r instanceof zr?i.concat(r.path(o,n)):(r!=null&&i.push([r,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof zr&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(o,i,a)=>{const s=o.split(i,n);s!=null&&r.appendChild(s)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],o=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(r.push(...i.addedNodes),o.push(...i.removedNodes))}),o.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const s=jC(i,this.scroll);(s.next!==a||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,a||void 0))}),this.enforceAllowedChildren()}};hP.uiClass="";let Ite=hP;const Gn=Ite;function Ate(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const ui=class ci extends Gn{static create(e){return super.create(e)}static formats(e,n){const r=n.query(ci.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new Mc(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof ci||(r=r.wrap(ci.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ve.INLINE);if(r==null)return;r instanceof mr?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,o){this.formats()[r]!=null||this.scroll.query(r,ve.ATTRIBUTE)?this.isolate(e,n).format(r,o):super.formatAt(e,n,r,o)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof ci&&r.prev===this&&Ate(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof ci&&this.attributes.move(r),r}};ui.allowedChildren=[ui,Vt],ui.blotName="inline",ui.scope=ve.INLINE_BLOT,ui.tagName="SPAN";let Tte=ui;const Mv=Tte,di=class _g extends Gn{static create(e){return super.create(e)}static formats(e,n){const r=n.query(_g.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new Mc(this.domNode)}format(e,n){const r=this.scroll.query(e,ve.BLOCK);r!=null&&(r instanceof mr?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(_g.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,o){this.scroll.query(r,ve.BLOCK)!=null?this.format(r,o):super.formatAt(e,n,r,o)}insertAt(e,n,r){if(r==null||this.scroll.query(n,ve.INLINE)!=null)super.insertAt(e,n,r);else{const o=this.split(e);if(o!=null){const i=this.scroll.create(n,r);o.parent.insertBefore(i,o)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};di.blotName="block",di.scope=ve.BLOCK_BLOT,di.tagName="P",di.allowedChildren=[Mv,di,Vt];let Nte=di;const Qa=Nte,Og=class extends Gn{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,o){super.formatAt(e,n,r,o),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Og.blotName="container",Og.scope=ve.BLOCK_BLOT;let _te=Og;const kc=_te;class Ote extends Vt{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,o){e===0&&n===this.length()?this.format(r,o):super.formatAt(e,n,r,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const pn=Ote,Rte={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Pte=100,fi=class extends Gn{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,Rte),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=ve.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,o){this.update(),super.formatAt(e,n,r,o)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)e.push(o.pop());const i=(l,u=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),u&&i(l.parent))},a=l=>{r.has(l.domNode)&&(l instanceof Gn&&l.children.forEach(a),r.delete(l.domNode),l.optimize(n))};let s=e;for(let l=0;s.length>0;l+=1){if(l>=Pte)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(c=>{const f=this.find(c,!1);i(f,!1),f instanceof Gn&&f.children.forEach(p=>{i(p,!1)})})):u.type==="attributes"&&i(d.prev)),i(d))}),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),o=s.slice();o.length>0;)e.push(o.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(o=>{const i=this.find(o.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(o),null):(r.set(i.domNode,[o]),i)}).forEach(o=>{o!=null&&o!==this&&r.has(o.domNode)&&o.update(r.get(o.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};fi.blotName="scroll",fi.defaultChild=Qa,fi.allowedChildren=[Qa,kc],fi.scope=ve.BLOCK_BLOT,fi.tagName="DIV";let Mte=fi;const kv=Mte,Rg=class pP extends Vt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof pP&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Rg.blotName="text",Rg.scope=ve.INLINE_BLOT;let kte=Rg;const hu=kte,Dte=Object.freeze(Object.defineProperty({__proto__:null,Attributor:mr,AttributorStore:Mc,BlockBlot:Qa,ClassAttributor:Zn,ContainerBlot:kc,EmbedBlot:pn,InlineBlot:Mv,LeafBlot:Vt,ParentBlot:Gn,Registry:Pi,Scope:ve,ScrollBlot:kv,StyleAttributor:uo,TextBlot:hu},Symbol.toStringTag,{value:"Module"}));var hl={exports:{}},cm,LC;function jte(){if(LC)return cm;LC=1;var t=-1,e=1,n=0;function r(N,k,_,B,L){if(N===k)return N?[[n,N]]:[];if(_!=null){var P=M(N,k,_);if(P)return P}var G=s(N,k),j=N.substring(0,G);N=N.substring(G),k=k.substring(G),G=u(N,k);var H=N.substring(N.length-G);N=N.substring(0,N.length-G),k=k.substring(0,k.length-G);var U=o(N,k);return j&&U.unshift([n,j]),H&&U.push([n,H]),w(U,L),B&&c(U),U}function o(N,k){var _;if(!N)return[[e,k]];if(!k)return[[t,N]];var B=N.length>k.length?N:k,L=N.length>k.length?k:N,P=B.indexOf(L);if(P!==-1)return _=[[e,B.substring(0,P)],[n,L],[e,B.substring(P+L.length)]],N.length>k.length&&(_[0][0]=_[2][0]=t),_;if(L.length===1)return[[t,N],[e,k]];var G=d(N,k);if(G){var j=G[0],H=G[1],U=G[2],Q=G[3],$=G[4],q=r(j,U),Z=r(H,Q);return q.concat([[n,$]],Z)}return i(N,k)}function i(N,k){for(var _=N.length,B=k.length,L=Math.ceil((_+B)/2),P=L,G=2*L,j=new Array(G),H=new Array(G),U=0;U<G;U++)j[U]=-1,H[U]=-1;j[P+1]=0,H[P+1]=0;for(var Q=_-B,$=Q%2!==0,q=0,Z=0,X=0,te=0,Y=0;Y<L;Y++){for(var J=-Y+q;J<=Y-Z;J+=2){var ie=P+J,oe;J===-Y||J!==Y&&j[ie-1]<j[ie+1]?oe=j[ie+1]:oe=j[ie-1]+1;for(var re=oe-J;oe<_&&re<B&&N.charAt(oe)===k.charAt(re);)oe++,re++;if(j[ie]=oe,oe>_)Z+=2;else if(re>B)q+=2;else if($){var z=P+Q-J;if(z>=0&&z<G&&H[z]!==-1){var ue=_-H[z];if(oe>=ue)return a(N,k,oe,re)}}}for(var W=-Y+X;W<=Y-te;W+=2){var z=P+W,ue;W===-Y||W!==Y&&H[z-1]<H[z+1]?ue=H[z+1]:ue=H[z-1]+1;for(var le=ue-W;ue<_&&le<B&&N.charAt(_-ue-1)===k.charAt(B-le-1);)ue++,le++;if(H[z]=ue,ue>_)te+=2;else if(le>B)X+=2;else if(!$){var ie=P+Q-W;if(ie>=0&&ie<G&&j[ie]!==-1){var oe=j[ie],re=P+oe-ie;if(ue=_-ue,oe>=ue)return a(N,k,oe,re)}}}}return[[t,N],[e,k]]}function a(N,k,_,B){var L=N.substring(0,_),P=k.substring(0,B),G=N.substring(_),j=k.substring(B),H=r(L,P),U=r(G,j);return H.concat(U)}function s(N,k){if(!N||!k||N.charAt(0)!==k.charAt(0))return 0;for(var _=0,B=Math.min(N.length,k.length),L=B,P=0;_<L;)N.substring(P,L)==k.substring(P,L)?(_=L,P=_):B=L,L=Math.floor((B-_)/2+_);return C(N.charCodeAt(L-1))&&L--,L}function l(N,k){var _=N.length,B=k.length;if(_==0||B==0)return 0;_>B?N=N.substring(_-B):_<B&&(k=k.substring(0,_));var L=Math.min(_,B);if(N==k)return L;for(var P=0,G=1;;){var j=N.substring(L-G),H=k.indexOf(j);if(H==-1)return P;G+=H,(H==0||N.substring(L-G)==k.substring(0,G))&&(P=G,G++)}}function u(N,k){if(!N||!k||N.slice(-1)!==k.slice(-1))return 0;for(var _=0,B=Math.min(N.length,k.length),L=B,P=0;_<L;)N.substring(N.length-L,N.length-P)==k.substring(k.length-L,k.length-P)?(_=L,P=_):B=L,L=Math.floor((B-_)/2+_);return S(N.charCodeAt(N.length-L))&&L--,L}function d(N,k){var _=N.length>k.length?N:k,B=N.length>k.length?k:N;if(_.length<4||B.length*2<_.length)return null;function L(Z,X,te){for(var Y=Z.substring(te,te+Math.floor(Z.length/4)),J=-1,ie="",oe,re,z,ue;(J=X.indexOf(Y,J+1))!==-1;){var W=s(Z.substring(te),X.substring(J)),le=u(Z.substring(0,te),X.substring(0,J));ie.length<le+W&&(ie=X.substring(J-le,J)+X.substring(J,J+W),oe=Z.substring(0,te-le),re=Z.substring(te+W),z=X.substring(0,J-le),ue=X.substring(J+W))}return ie.length*2>=Z.length?[oe,re,z,ue,ie]:null}var P=L(_,B,Math.ceil(_.length/4)),G=L(_,B,Math.ceil(_.length/2)),j;if(!P&&!G)return null;G?P?j=P[4].length>G[4].length?P:G:j=G:j=P;var H,U,Q,$;N.length>k.length?(H=j[0],U=j[1],Q=j[2],$=j[3]):(Q=j[0],$=j[1],H=j[2],U=j[3]);var q=j[4];return[H,U,Q,$,q]}function c(N){for(var k=!1,_=[],B=0,L=null,P=0,G=0,j=0,H=0,U=0;P<N.length;)N[P][0]==n?(_[B++]=P,G=H,j=U,H=0,U=0,L=N[P][1]):(N[P][0]==e?H+=N[P][1].length:U+=N[P][1].length,L&&L.length<=Math.max(G,j)&&L.length<=Math.max(H,U)&&(N.splice(_[B-1],0,[t,L]),N[_[B-1]+1][0]=e,B--,B--,P=B>0?_[B-1]:-1,G=0,j=0,H=0,U=0,L=null,k=!0)),P++;for(k&&w(N),y(N),P=1;P<N.length;){if(N[P-1][0]==t&&N[P][0]==e){var Q=N[P-1][1],$=N[P][1],q=l(Q,$),Z=l($,Q);q>=Z?(q>=Q.length/2||q>=$.length/2)&&(N.splice(P,0,[n,$.substring(0,q)]),N[P-1][1]=Q.substring(0,Q.length-q),N[P+1][1]=$.substring(q),P++):(Z>=Q.length/2||Z>=$.length/2)&&(N.splice(P,0,[n,Q.substring(0,Z)]),N[P-1][0]=e,N[P-1][1]=$.substring(0,$.length-Z),N[P+1][0]=t,N[P+1][1]=Q.substring(Z),P++),P++}P++}}var f=/[^a-zA-Z0-9]/,p=/\s/,m=/[\r\n]/,g=/\n\r?\n$/,b=/^\r?\n\r?\n/;function y(N){function k(Z,X){if(!Z||!X)return 6;var te=Z.charAt(Z.length-1),Y=X.charAt(0),J=te.match(f),ie=Y.match(f),oe=J&&te.match(p),re=ie&&Y.match(p),z=oe&&te.match(m),ue=re&&Y.match(m),W=z&&Z.match(g),le=ue&&X.match(b);return W||le?5:z||ue?4:J&&!oe&&re?3:oe||re?2:J||ie?1:0}for(var _=1;_<N.length-1;){if(N[_-1][0]==n&&N[_+1][0]==n){var B=N[_-1][1],L=N[_][1],P=N[_+1][1],G=u(B,L);if(G){var j=L.substring(L.length-G);B=B.substring(0,B.length-G),L=j+L.substring(0,L.length-G),P=j+P}for(var H=B,U=L,Q=P,$=k(B,L)+k(L,P);L.charAt(0)===P.charAt(0);){B+=L.charAt(0),L=L.substring(1)+P.charAt(0),P=P.substring(1);var q=k(B,L)+k(L,P);q>=$&&($=q,H=B,U=L,Q=P)}N[_-1][1]!=H&&(H?N[_-1][1]=H:(N.splice(_-1,1),_--),N[_][1]=U,Q?N[_+1][1]=Q:(N.splice(_+1,1),_--))}_++}}function w(N,k){N.push([n,""]);for(var _=0,B=0,L=0,P="",G="",j;_<N.length;){if(_<N.length-1&&!N[_][1]){N.splice(_,1);continue}switch(N[_][0]){case e:L++,G+=N[_][1],_++;break;case t:B++,P+=N[_][1],_++;break;case n:var H=_-L-B-1;if(k){if(H>=0&&T(N[H][1])){var U=N[H][1].slice(-1);if(N[H][1]=N[H][1].slice(0,-1),P=U+P,G=U+G,!N[H][1]){N.splice(H,1),_--;var Q=H-1;N[Q]&&N[Q][0]===e&&(L++,G=N[Q][1]+G,Q--),N[Q]&&N[Q][0]===t&&(B++,P=N[Q][1]+P,Q--),H=Q}}if(E(N[_][1])){var U=N[_][1].charAt(0);N[_][1]=N[_][1].slice(1),P+=U,G+=U}}if(_<N.length-1&&!N[_][1]){N.splice(_,1);break}if(P.length>0||G.length>0){P.length>0&&G.length>0&&(j=s(G,P),j!==0&&(H>=0?N[H][1]+=G.substring(0,j):(N.splice(0,0,[n,G.substring(0,j)]),_++),G=G.substring(j),P=P.substring(j)),j=u(G,P),j!==0&&(N[_][1]=G.substring(G.length-j)+N[_][1],G=G.substring(0,G.length-j),P=P.substring(0,P.length-j)));var $=L+B;P.length===0&&G.length===0?(N.splice(_-$,$),_=_-$):P.length===0?(N.splice(_-$,$,[e,G]),_=_-$+1):G.length===0?(N.splice(_-$,$,[t,P]),_=_-$+1):(N.splice(_-$,$,[t,P],[e,G]),_=_-$+2)}_!==0&&N[_-1][0]===n?(N[_-1][1]+=N[_][1],N.splice(_,1)):_++,L=0,B=0,P="",G="";break}}N[N.length-1][1]===""&&N.pop();var q=!1;for(_=1;_<N.length-1;)N[_-1][0]===n&&N[_+1][0]===n&&(N[_][1].substring(N[_][1].length-N[_-1][1].length)===N[_-1][1]?(N[_][1]=N[_-1][1]+N[_][1].substring(0,N[_][1].length-N[_-1][1].length),N[_+1][1]=N[_-1][1]+N[_+1][1],N.splice(_-1,1),q=!0):N[_][1].substring(0,N[_+1][1].length)==N[_+1][1]&&(N[_-1][1]+=N[_+1][1],N[_][1]=N[_][1].substring(N[_+1][1].length)+N[_+1][1],N.splice(_+1,1),q=!0)),_++;q&&w(N,k)}function C(N){return N>=55296&&N<=56319}function S(N){return N>=56320&&N<=57343}function E(N){return S(N.charCodeAt(0))}function T(N){return C(N.charCodeAt(N.length-1))}function A(N){for(var k=[],_=0;_<N.length;_++)N[_][1].length>0&&k.push(N[_]);return k}function O(N,k,_,B){return T(N)||E(B)?null:A([[n,N],[t,k],[e,_],[n,B]])}function M(N,k,_){var B=typeof _=="number"?{index:_,length:0}:_.oldRange,L=typeof _=="number"?null:_.newRange,P=N.length,G=k.length;if(B.length===0&&(L===null||L.length===0)){var j=B.index,H=N.slice(0,j),U=N.slice(j),Q=L?L.index:null;e:{var $=j+G-P;if(Q!==null&&Q!==$||$<0||$>G)break e;var q=k.slice(0,$),Z=k.slice($);if(Z!==U)break e;var X=Math.min(j,$),te=H.slice(0,X),Y=q.slice(0,X);if(te!==Y)break e;var J=H.slice(X),ie=q.slice(X);return O(te,J,ie,U)}e:{if(Q!==null&&Q!==j)break e;var oe=j,q=k.slice(0,oe),Z=k.slice(oe);if(q!==H)break e;var re=Math.min(P-oe,G-oe),z=U.slice(U.length-re),ue=Z.slice(Z.length-re);if(z!==ue)break e;var J=U.slice(0,U.length-re),ie=Z.slice(0,Z.length-re);return O(H,J,ie,z)}}if(B.length>0&&L&&L.length===0)e:{var te=N.slice(0,B.index),z=N.slice(B.index+B.length),X=te.length,re=z.length;if(G<X+re)break e;var Y=k.slice(0,X),ue=k.slice(G-re);if(te!==Y||z!==ue)break e;var J=N.slice(X,P-re),ie=k.slice(X,G-re);return O(te,J,ie,z)}return null}function V(N,k,_,B){return r(N,k,_,B,!0)}return V.INSERT=e,V.DELETE=t,V.EQUAL=n,cm=V,cm}var Ea={exports:{}};Ea.exports;var BC;function mP(){return BC||(BC=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",c="[object GeneratorFunction]",f="[object Map]",p="[object Number]",m="[object Object]",g="[object Promise]",b="[object RegExp]",y="[object Set]",w="[object String]",C="[object Symbol]",S="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",O="[object Float64Array]",M="[object Int8Array]",V="[object Int16Array]",N="[object Int32Array]",k="[object Uint8Array]",_="[object Uint8ClampedArray]",B="[object Uint16Array]",L="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[i]=U[a]=U[E]=U[T]=U[s]=U[l]=U[A]=U[O]=U[M]=U[V]=U[N]=U[f]=U[p]=U[m]=U[b]=U[y]=U[w]=U[C]=U[k]=U[_]=U[B]=U[L]=!0,U[u]=U[d]=U[S]=!1;var Q=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,$=typeof self=="object"&&self&&self.Object===Object&&self,q=Q||$||Function("return this")(),Z=e&&!e.nodeType&&e,X=Z&&!0&&t&&!t.nodeType&&t,te=X&&X.exports===Z;function Y(x,R){return x.set(R[0],R[1]),x}function J(x,R){return x.add(R),x}function ie(x,R){for(var F=-1,K=x?x.length:0;++F<K&&R(x[F],F,x)!==!1;);return x}function oe(x,R){for(var F=-1,K=R.length,Oe=x.length;++F<K;)x[Oe+F]=R[F];return x}function re(x,R,F,K){for(var Oe=-1,ye=x?x.length:0;++Oe<ye;)F=R(F,x[Oe],Oe,x);return F}function z(x,R){for(var F=-1,K=Array(x);++F<x;)K[F]=R(F);return K}function ue(x,R){return x?.[R]}function W(x){var R=!1;if(x!=null&&typeof x.toString!="function")try{R=!!(x+"")}catch{}return R}function le(x){var R=-1,F=Array(x.size);return x.forEach(function(K,Oe){F[++R]=[Oe,K]}),F}function Ae(x,R){return function(F){return x(R(F))}}function Ne(x){var R=-1,F=Array(x.size);return x.forEach(function(K){F[++R]=K}),F}var Ve=Array.prototype,Ie=Function.prototype,Re=Object.prototype,at=q["__core-js_shared__"],Me=(function(){var x=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""})(),Ge=Ie.toString,We=Re.hasOwnProperty,Qe=Re.toString,st=RegExp("^"+Ge.call(We).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=te?q.Buffer:void 0,mt=q.Symbol,bt=q.Uint8Array,Le=Ae(Object.getPrototypeOf,Object),_t=Object.create,tt=Re.propertyIsEnumerable,lt=Ve.splice,Ot=Object.getOwnPropertySymbols,Rt=it?it.isBuffer:void 0,on=Ae(Object.keys,Object),Ht=_n(q,"DataView"),Pt=_n(q,"Map"),ne=_n(q,"Promise"),fe=_n(q,"Set"),ce=_n(q,"WeakMap"),de=_n(Object,"create"),Te=zt(Ht),ae=zt(Pt),_e=zt(ne),ke=zt(fe),De=zt(ce),nt=mt?mt.prototype:void 0,je=nt?nt.valueOf:void 0;function Be(x){var R=-1,F=x?x.length:0;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function an(){this.__data__=de?de(null):{}}function Tt(x){return this.has(x)&&delete this.__data__[x]}function qt(x){var R=this.__data__;if(de){var F=R[x];return F===r?void 0:F}return We.call(R,x)?R[x]:void 0}function co(x){var R=this.__data__;return de?R[x]!==void 0:We.call(R,x)}function sn(x,R){var F=this.__data__;return F[x]=de&&R===void 0?r:R,this}Be.prototype.clear=an,Be.prototype.delete=Tt,Be.prototype.get=qt,Be.prototype.has=co,Be.prototype.set=sn;function Nt(x){var R=-1,F=x?x.length:0;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Bc(){this.__data__=[]}function Fc(x){var R=this.__data__,F=Uo(R,x);if(F<0)return!1;var K=R.length-1;return F==K?R.pop():lt.call(R,F,1),!0}function Gc(x){var R=this.__data__,F=Uo(R,x);return F<0?void 0:R[F][1]}function $c(x){return Uo(this.__data__,x)>-1}function Vc(x,R){var F=this.__data__,K=Uo(F,x);return K<0?F.push([x,R]):F[K][1]=R,this}Nt.prototype.clear=Bc,Nt.prototype.delete=Fc,Nt.prototype.get=Gc,Nt.prototype.has=$c,Nt.prototype.set=Vc;function Lt(x){var R=-1,F=x?x.length:0;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Wc(){this.__data__={hash:new Be,map:new(Pt||Nt),string:new Be}}function Hc(x){return ho(this,x).delete(x)}function qc(x){return ho(this,x).get(x)}function zc(x){return ho(this,x).has(x)}function Xc(x,R){return ho(this,x).set(x,R),this}Lt.prototype.clear=Wc,Lt.prototype.delete=Hc,Lt.prototype.get=qc,Lt.prototype.has=zc,Lt.prototype.set=Xc;function Zt(x){this.__data__=new Nt(x)}function Yc(){this.__data__=new Nt}function Uc(x){return this.__data__.delete(x)}function Zc(x){return this.__data__.get(x)}function Jc(x){return this.__data__.has(x)}function Kc(x,R){var F=this.__data__;if(F instanceof Nt){var K=F.__data__;if(!Pt||K.length<n-1)return K.push([x,R]),this;F=this.__data__=new Lt(K)}return F.set(x,R),this}Zt.prototype.clear=Yc,Zt.prototype.delete=Uc,Zt.prototype.get=Zc,Zt.prototype.has=Jc,Zt.prototype.set=Kc;function Yo(x,R){var F=Qi(x)||Jo(x)?z(x.length,String):[],K=F.length,Oe=!!K;for(var ye in x)We.call(x,ye)&&!(Oe&&(ye=="length"||fd(ye,K)))&&F.push(ye);return F}function Rs(x,R,F){var K=x[R];(!(We.call(x,R)&&js(K,F))||F===void 0&&!(R in x))&&(x[R]=F)}function Uo(x,R){for(var F=x.length;F--;)if(js(x[F][0],R))return F;return-1}function Kn(x,R){return x&&Ki(R,ta(R),x)}function Zi(x,R,F,K,Oe,ye,$e){var Fe;if(K&&(Fe=ye?K(x,Oe,ye,$e):K(x)),Fe!==void 0)return Fe;if(!er(x))return x;var vt=Qi(x);if(vt){if(Fe=cd(x),!R)return sd(x,Fe)}else{var ze=Tr(x),Bt=ze==d||ze==c;if(Ls(x))return Zo(x,R);if(ze==m||ze==i||Bt&&!ye){if(W(x))return ye?x:{};if(Fe=Qn(Bt?{}:x),!R)return ld(x,Kn(Fe,x))}else{if(!U[ze])return ye?x:{};Fe=dd(x,ze,Zi,R)}}$e||($e=new Zt);var Jt=$e.get(x);if(Jt)return Jt;if($e.set(x,Fe),!vt)var Ct=F?ud(x):ta(x);return ie(Ct||x,function(Ft,Mt){Ct&&(Mt=Ft,Ft=x[Mt]),Rs(Fe,Mt,Zi(Ft,R,F,K,Mt,x,$e))}),Fe}function Qc(x){return er(x)?_t(x):{}}function ed(x,R,F){var K=R(x);return Qi(x)?K:oe(K,F(x))}function td(x){return Qe.call(x)}function nd(x){if(!er(x)||pd(x))return!1;var R=ea(x)||W(x)?st:j;return R.test(zt(x))}function rd(x){if(!ks(x))return on(x);var R=[];for(var F in Object(x))We.call(x,F)&&F!="constructor"&&R.push(F);return R}function Zo(x,R){if(R)return x.slice();var F=new x.constructor(x.length);return x.copy(F),F}function Ji(x){var R=new x.constructor(x.byteLength);return new bt(R).set(new bt(x)),R}function fo(x,R){var F=R?Ji(x.buffer):x.buffer;return new x.constructor(F,x.byteOffset,x.byteLength)}function Ps(x,R,F){var K=R?F(le(x),!0):le(x);return re(K,Y,new x.constructor)}function Ms(x){var R=new x.constructor(x.source,G.exec(x));return R.lastIndex=x.lastIndex,R}function od(x,R,F){var K=R?F(Ne(x),!0):Ne(x);return re(K,J,new x.constructor)}function id(x){return je?Object(je.call(x)):{}}function ad(x,R){var F=R?Ji(x.buffer):x.buffer;return new x.constructor(F,x.byteOffset,x.length)}function sd(x,R){var F=-1,K=x.length;for(R||(R=Array(K));++F<K;)R[F]=x[F];return R}function Ki(x,R,F,K){F||(F={});for(var Oe=-1,ye=R.length;++Oe<ye;){var $e=R[Oe],Fe=void 0;Rs(F,$e,Fe===void 0?x[$e]:Fe)}return F}function ld(x,R){return Ki(x,Ar(x),R)}function ud(x){return ed(x,ta,Ar)}function ho(x,R){var F=x.__data__;return hd(R)?F[typeof R=="string"?"string":"hash"]:F.map}function _n(x,R){var F=ue(x,R);return nd(F)?F:void 0}var Ar=Ot?Ae(Ot,Object):gd,Tr=td;(Ht&&Tr(new Ht(new ArrayBuffer(1)))!=T||Pt&&Tr(new Pt)!=f||ne&&Tr(ne.resolve())!=g||fe&&Tr(new fe)!=y||ce&&Tr(new ce)!=S)&&(Tr=function(x){var R=Qe.call(x),F=R==m?x.constructor:void 0,K=F?zt(F):void 0;if(K)switch(K){case Te:return T;case ae:return f;case _e:return g;case ke:return y;case De:return S}return R});function cd(x){var R=x.length,F=x.constructor(R);return R&&typeof x[0]=="string"&&We.call(x,"index")&&(F.index=x.index,F.input=x.input),F}function Qn(x){return typeof x.constructor=="function"&&!ks(x)?Qc(Le(x)):{}}function dd(x,R,F,K){var Oe=x.constructor;switch(R){case E:return Ji(x);case s:case l:return new Oe(+x);case T:return fo(x,K);case A:case O:case M:case V:case N:case k:case _:case B:case L:return ad(x,K);case f:return Ps(x,K,F);case p:case w:return new Oe(x);case b:return Ms(x);case y:return od(x,K,F);case C:return id(x)}}function fd(x,R){return R=R??o,!!R&&(typeof x=="number"||H.test(x))&&x>-1&&x%1==0&&x<R}function hd(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}function pd(x){return!!Me&&Me in x}function ks(x){var R=x&&x.constructor,F=typeof R=="function"&&R.prototype||Re;return x===F}function zt(x){if(x!=null){try{return Ge.call(x)}catch{}try{return x+""}catch{}}return""}function Ds(x){return Zi(x,!0,!0)}function js(x,R){return x===R||x!==x&&R!==R}function Jo(x){return md(x)&&We.call(x,"callee")&&(!tt.call(x,"callee")||Qe.call(x)==i)}var Qi=Array.isArray;function Ko(x){return x!=null&&Bs(x.length)&&!ea(x)}function md(x){return Fs(x)&&Ko(x)}var Ls=Rt||bd;function ea(x){var R=er(x)?Qe.call(x):"";return R==d||R==c}function Bs(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=o}function er(x){var R=typeof x;return!!x&&(R=="object"||R=="function")}function Fs(x){return!!x&&typeof x=="object"}function ta(x){return Ko(x)?Yo(x):rd(x)}function gd(){return[]}function bd(){return!1}t.exports=Ds})(Ea,Ea.exports)),Ea.exports}var Ia={exports:{}};Ia.exports;var FC;function gP(){return FC||(FC=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",y="[object Null]",w="[object Object]",C="[object Promise]",S="[object Proxy]",E="[object RegExp]",T="[object Set]",A="[object String]",O="[object Symbol]",M="[object Undefined]",V="[object WeakMap]",N="[object ArrayBuffer]",k="[object DataView]",_="[object Float32Array]",B="[object Float64Array]",L="[object Int8Array]",P="[object Int16Array]",G="[object Int32Array]",j="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",Q="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,X={};X[_]=X[B]=X[L]=X[P]=X[G]=X[j]=X[H]=X[U]=X[Q]=!0,X[s]=X[l]=X[N]=X[d]=X[k]=X[c]=X[f]=X[p]=X[g]=X[b]=X[w]=X[E]=X[T]=X[A]=X[V]=!1;var te=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,Y=typeof self=="object"&&self&&self.Object===Object&&self,J=te||Y||Function("return this")(),ie=e&&!e.nodeType&&e,oe=ie&&!0&&t&&!t.nodeType&&t,re=oe&&oe.exports===ie,z=re&&te.process,ue=(function(){try{return z&&z.binding&&z.binding("util")}catch{}})(),W=ue&&ue.isTypedArray;function le(x,R){for(var F=-1,K=x==null?0:x.length,Oe=0,ye=[];++F<K;){var $e=x[F];R($e,F,x)&&(ye[Oe++]=$e)}return ye}function Ae(x,R){for(var F=-1,K=R.length,Oe=x.length;++F<K;)x[Oe+F]=R[F];return x}function Ne(x,R){for(var F=-1,K=x==null?0:x.length;++F<K;)if(R(x[F],F,x))return!0;return!1}function Ve(x,R){for(var F=-1,K=Array(x);++F<x;)K[F]=R(F);return K}function Ie(x){return function(R){return x(R)}}function Re(x,R){return x.has(R)}function at(x,R){return x?.[R]}function Me(x){var R=-1,F=Array(x.size);return x.forEach(function(K,Oe){F[++R]=[Oe,K]}),F}function Ge(x,R){return function(F){return x(R(F))}}function We(x){var R=-1,F=Array(x.size);return x.forEach(function(K){F[++R]=K}),F}var Qe=Array.prototype,st=Function.prototype,it=Object.prototype,mt=J["__core-js_shared__"],bt=st.toString,Le=it.hasOwnProperty,_t=(function(){var x=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""})(),tt=it.toString,lt=RegExp("^"+bt.call(Le).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=re?J.Buffer:void 0,Rt=J.Symbol,on=J.Uint8Array,Ht=it.propertyIsEnumerable,Pt=Qe.splice,ne=Rt?Rt.toStringTag:void 0,fe=Object.getOwnPropertySymbols,ce=Ot?Ot.isBuffer:void 0,de=Ge(Object.keys,Object),Te=Ar(J,"DataView"),ae=Ar(J,"Map"),_e=Ar(J,"Promise"),ke=Ar(J,"Set"),De=Ar(J,"WeakMap"),nt=Ar(Object,"create"),je=zt(Te),Be=zt(ae),an=zt(_e),Tt=zt(ke),qt=zt(De),co=Rt?Rt.prototype:void 0,sn=co?co.valueOf:void 0;function Nt(x){var R=-1,F=x==null?0:x.length;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Bc(){this.__data__=nt?nt(null):{},this.size=0}function Fc(x){var R=this.has(x)&&delete this.__data__[x];return this.size-=R?1:0,R}function Gc(x){var R=this.__data__;if(nt){var F=R[x];return F===r?void 0:F}return Le.call(R,x)?R[x]:void 0}function $c(x){var R=this.__data__;return nt?R[x]!==void 0:Le.call(R,x)}function Vc(x,R){var F=this.__data__;return this.size+=this.has(x)?0:1,F[x]=nt&&R===void 0?r:R,this}Nt.prototype.clear=Bc,Nt.prototype.delete=Fc,Nt.prototype.get=Gc,Nt.prototype.has=$c,Nt.prototype.set=Vc;function Lt(x){var R=-1,F=x==null?0:x.length;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Wc(){this.__data__=[],this.size=0}function Hc(x){var R=this.__data__,F=Zo(R,x);if(F<0)return!1;var K=R.length-1;return F==K?R.pop():Pt.call(R,F,1),--this.size,!0}function qc(x){var R=this.__data__,F=Zo(R,x);return F<0?void 0:R[F][1]}function zc(x){return Zo(this.__data__,x)>-1}function Xc(x,R){var F=this.__data__,K=Zo(F,x);return K<0?(++this.size,F.push([x,R])):F[K][1]=R,this}Lt.prototype.clear=Wc,Lt.prototype.delete=Hc,Lt.prototype.get=qc,Lt.prototype.has=zc,Lt.prototype.set=Xc;function Zt(x){var R=-1,F=x==null?0:x.length;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Yc(){this.size=0,this.__data__={hash:new Nt,map:new(ae||Lt),string:new Nt}}function Uc(x){var R=_n(this,x).delete(x);return this.size-=R?1:0,R}function Zc(x){return _n(this,x).get(x)}function Jc(x){return _n(this,x).has(x)}function Kc(x,R){var F=_n(this,x),K=F.size;return F.set(x,R),this.size+=F.size==K?0:1,this}Zt.prototype.clear=Yc,Zt.prototype.delete=Uc,Zt.prototype.get=Zc,Zt.prototype.has=Jc,Zt.prototype.set=Kc;function Yo(x){var R=-1,F=x==null?0:x.length;for(this.__data__=new Zt;++R<F;)this.add(x[R])}function Rs(x){return this.__data__.set(x,r),this}function Uo(x){return this.__data__.has(x)}Yo.prototype.add=Yo.prototype.push=Rs,Yo.prototype.has=Uo;function Kn(x){var R=this.__data__=new Lt(x);this.size=R.size}function Zi(){this.__data__=new Lt,this.size=0}function Qc(x){var R=this.__data__,F=R.delete(x);return this.size=R.size,F}function ed(x){return this.__data__.get(x)}function td(x){return this.__data__.has(x)}function nd(x,R){var F=this.__data__;if(F instanceof Lt){var K=F.__data__;if(!ae||K.length<n-1)return K.push([x,R]),this.size=++F.size,this;F=this.__data__=new Zt(K)}return F.set(x,R),this.size=F.size,this}Kn.prototype.clear=Zi,Kn.prototype.delete=Qc,Kn.prototype.get=ed,Kn.prototype.has=td,Kn.prototype.set=nd;function rd(x,R){var F=Jo(x),K=!F&&js(x),Oe=!F&&!K&&Ko(x),ye=!F&&!K&&!Oe&&Fs(x),$e=F||K||Oe||ye,Fe=$e?Ve(x.length,String):[],vt=Fe.length;for(var ze in x)Le.call(x,ze)&&!($e&&(ze=="length"||Oe&&(ze=="offset"||ze=="parent")||ye&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||dd(ze,vt)))&&Fe.push(ze);return Fe}function Zo(x,R){for(var F=x.length;F--;)if(Ds(x[F][0],R))return F;return-1}function Ji(x,R,F){var K=R(x);return Jo(x)?K:Ae(K,F(x))}function fo(x){return x==null?x===void 0?M:y:ne&&ne in Object(x)?Tr(x):ks(x)}function Ps(x){return er(x)&&fo(x)==s}function Ms(x,R,F,K,Oe){return x===R?!0:x==null||R==null||!er(x)&&!er(R)?x!==x&&R!==R:od(x,R,F,K,Ms,Oe)}function od(x,R,F,K,Oe,ye){var $e=Jo(x),Fe=Jo(R),vt=$e?l:Qn(x),ze=Fe?l:Qn(R);vt=vt==s?w:vt,ze=ze==s?w:ze;var Bt=vt==w,Jt=ze==w,Ct=vt==ze;if(Ct&&Ko(x)){if(!Ko(R))return!1;$e=!0,Bt=!1}if(Ct&&!Bt)return ye||(ye=new Kn),$e||Fs(x)?Ki(x,R,F,K,Oe,ye):ld(x,R,vt,F,K,Oe,ye);if(!(F&o)){var Ft=Bt&&Le.call(x,"__wrapped__"),Mt=Jt&&Le.call(R,"__wrapped__");if(Ft||Mt){var Vr=Ft?x.value():x,Nr=Mt?R.value():R;return ye||(ye=new Kn),Oe(Vr,Nr,F,K,ye)}}return Ct?(ye||(ye=new Kn),ud(x,R,F,K,Oe,ye)):!1}function id(x){if(!Bs(x)||hd(x))return!1;var R=Ls(x)?lt:q;return R.test(zt(x))}function ad(x){return er(x)&&ea(x.length)&&!!X[fo(x)]}function sd(x){if(!pd(x))return de(x);var R=[];for(var F in Object(x))Le.call(x,F)&&F!="constructor"&&R.push(F);return R}function Ki(x,R,F,K,Oe,ye){var $e=F&o,Fe=x.length,vt=R.length;if(Fe!=vt&&!($e&&vt>Fe))return!1;var ze=ye.get(x);if(ze&&ye.get(R))return ze==R;var Bt=-1,Jt=!0,Ct=F&i?new Yo:void 0;for(ye.set(x,R),ye.set(R,x);++Bt<Fe;){var Ft=x[Bt],Mt=R[Bt];if(K)var Vr=$e?K(Mt,Ft,Bt,R,x,ye):K(Ft,Mt,Bt,x,R,ye);if(Vr!==void 0){if(Vr)continue;Jt=!1;break}if(Ct){if(!Ne(R,function(Nr,po){if(!Re(Ct,po)&&(Ft===Nr||Oe(Ft,Nr,F,K,ye)))return Ct.push(po)})){Jt=!1;break}}else if(!(Ft===Mt||Oe(Ft,Mt,F,K,ye))){Jt=!1;break}}return ye.delete(x),ye.delete(R),Jt}function ld(x,R,F,K,Oe,ye,$e){switch(F){case k:if(x.byteLength!=R.byteLength||x.byteOffset!=R.byteOffset)return!1;x=x.buffer,R=R.buffer;case N:return!(x.byteLength!=R.byteLength||!ye(new on(x),new on(R)));case d:case c:case b:return Ds(+x,+R);case f:return x.name==R.name&&x.message==R.message;case E:case A:return x==R+"";case g:var Fe=Me;case T:var vt=K&o;if(Fe||(Fe=We),x.size!=R.size&&!vt)return!1;var ze=$e.get(x);if(ze)return ze==R;K|=i,$e.set(x,R);var Bt=Ki(Fe(x),Fe(R),K,Oe,ye,$e);return $e.delete(x),Bt;case O:if(sn)return sn.call(x)==sn.call(R)}return!1}function ud(x,R,F,K,Oe,ye){var $e=F&o,Fe=ho(x),vt=Fe.length,ze=ho(R),Bt=ze.length;if(vt!=Bt&&!$e)return!1;for(var Jt=vt;Jt--;){var Ct=Fe[Jt];if(!($e?Ct in R:Le.call(R,Ct)))return!1}var Ft=ye.get(x);if(Ft&&ye.get(R))return Ft==R;var Mt=!0;ye.set(x,R),ye.set(R,x);for(var Vr=$e;++Jt<vt;){Ct=Fe[Jt];var Nr=x[Ct],po=R[Ct];if(K)var zv=$e?K(po,Nr,Ct,R,x,ye):K(Nr,po,Ct,x,R,ye);if(!(zv===void 0?Nr===po||Oe(Nr,po,F,K,ye):zv)){Mt=!1;break}Vr||(Vr=Ct=="constructor")}if(Mt&&!Vr){var Gs=x.constructor,$s=R.constructor;Gs!=$s&&"constructor"in x&&"constructor"in R&&!(typeof Gs=="function"&&Gs instanceof Gs&&typeof $s=="function"&&$s instanceof $s)&&(Mt=!1)}return ye.delete(x),ye.delete(R),Mt}function ho(x){return Ji(x,ta,cd)}function _n(x,R){var F=x.__data__;return fd(R)?F[typeof R=="string"?"string":"hash"]:F.map}function Ar(x,R){var F=at(x,R);return id(F)?F:void 0}function Tr(x){var R=Le.call(x,ne),F=x[ne];try{x[ne]=void 0;var K=!0}catch{}var Oe=tt.call(x);return K&&(R?x[ne]=F:delete x[ne]),Oe}var cd=fe?function(x){return x==null?[]:(x=Object(x),le(fe(x),function(R){return Ht.call(x,R)}))}:gd,Qn=fo;(Te&&Qn(new Te(new ArrayBuffer(1)))!=k||ae&&Qn(new ae)!=g||_e&&Qn(_e.resolve())!=C||ke&&Qn(new ke)!=T||De&&Qn(new De)!=V)&&(Qn=function(x){var R=fo(x),F=R==w?x.constructor:void 0,K=F?zt(F):"";if(K)switch(K){case je:return k;case Be:return g;case an:return C;case Tt:return T;case qt:return V}return R});function dd(x,R){return R=R??a,!!R&&(typeof x=="number"||Z.test(x))&&x>-1&&x%1==0&&x<R}function fd(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}function hd(x){return!!_t&&_t in x}function pd(x){var R=x&&x.constructor,F=typeof R=="function"&&R.prototype||it;return x===F}function ks(x){return tt.call(x)}function zt(x){if(x!=null){try{return bt.call(x)}catch{}try{return x+""}catch{}}return""}function Ds(x,R){return x===R||x!==x&&R!==R}var js=Ps((function(){return arguments})())?Ps:function(x){return er(x)&&Le.call(x,"callee")&&!Ht.call(x,"callee")},Jo=Array.isArray;function Qi(x){return x!=null&&ea(x.length)&&!Ls(x)}var Ko=ce||bd;function md(x,R){return Ms(x,R)}function Ls(x){if(!Bs(x))return!1;var R=fo(x);return R==p||R==m||R==u||R==S}function ea(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function Bs(x){var R=typeof x;return x!=null&&(R=="object"||R=="function")}function er(x){return x!=null&&typeof x=="object"}var Fs=W?Ie(W):ad;function ta(x){return Qi(x)?rd(x):sd(x)}function gd(){return[]}function bd(){return!1}t.exports=md})(Ia,Ia.exports)),Ia.exports}var pl={},GC;function Lte(){if(GC)return pl;GC=1,Object.defineProperty(pl,"__esModule",{value:!0});const t=mP(),e=gP();var n;return(function(r){function o(l={},u={},d=!1){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});let c=t(u);d||(c=Object.keys(c).reduce((f,p)=>(c[p]!=null&&(f[p]=c[p]),f),{}));for(const f in l)l[f]!==void 0&&u[f]===void 0&&(c[f]=l[f]);return Object.keys(c).length>0?c:void 0}r.compose=o;function i(l={},u={}){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});const d=Object.keys(l).concat(Object.keys(u)).reduce((c,f)=>(e(l[f],u[f])||(c[f]=u[f]===void 0?null:u[f]),c),{});return Object.keys(d).length>0?d:void 0}r.diff=i;function a(l={},u={}){l=l||{};const d=Object.keys(u).reduce((c,f)=>(u[f]!==l[f]&&l[f]!==void 0&&(c[f]=u[f]),c),{});return Object.keys(l).reduce((c,f)=>(l[f]!==u[f]&&u[f]===void 0&&(c[f]=null),c),d)}r.invert=a;function s(l,u,d=!1){if(typeof l!="object")return u;if(typeof u!="object")return;if(!d)return u;const c=Object.keys(u).reduce((f,p)=>(l[p]===void 0&&(f[p]=u[p]),f),{});return Object.keys(c).length>0?c:void 0}r.transform=s})(n||(n={})),pl.default=n,pl}var ml={},$C;function bP(){if($C)return ml;$C=1,Object.defineProperty(ml,"__esModule",{value:!0});var t;return(function(e){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=n})(t||(t={})),ml.default=t,ml}var gl={},VC;function Bte(){if(VC)return gl;VC=1,Object.defineProperty(gl,"__esModule",{value:!0});const t=bP();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=t.default.length(o);if(r>=a-i?(r=a-i,this.index+=1,this.offset=0):this.offset+=r,typeof o.delete=="number")return{delete:r};{const s={};return o.attributes&&(s.attributes=o.attributes),typeof o.retain=="number"?s.retain=r:typeof o.retain=="object"&&o.retain!==null?s.retain=o.retain:typeof o.insert=="string"?s.insert=o.insert.substr(i,r):s.insert=o.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=o,[i].concat(a)}}else return[]}}return gl.default=e,gl}var WC;function Fte(){return WC||(WC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=jte(),r=mP(),o=gP(),i=Lte();e.AttributeMap=i.default;const a=bP();e.Op=a.default;const s=Bte();e.OpIterator=s.default;const l="\0",u=(c,f)=>{if(typeof c!="object"||c===null)throw new Error(`cannot retain a ${typeof c}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const p=Object.keys(c)[0];if(!p||p!==Object.keys(f)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(f)[0]}`);return[p,c[p],f[p]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,p){this.handlers[f]=p}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const p=this.handlers[f];if(!p)throw new Error(`no handlers for embed type "${f}"`);return p}insert(f,p){const m={};return typeof f=="string"&&f.length===0?this:(m.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,p){if(typeof f=="number"&&f<=0)return this;const m={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m)}push(f){let p=this.ops.length,m=this.ops[p-1];if(f=r(f),typeof m=="object"){if(typeof f.delete=="number"&&typeof m.delete=="number")return this.ops[p-1]={delete:m.delete+f.delete},this;if(typeof m.delete=="number"&&f.insert!=null&&(p-=1,m=this.ops[p-1],typeof m!="object"))return this.ops.unshift(f),this;if(o(f.attributes,m.attributes)){if(typeof f.insert=="string"&&typeof m.insert=="string")return this.ops[p-1]={insert:m.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof m.retain=="number")return this.ops[p-1]={retain:m.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const p=[],m=[];return this.forEach(g=>{(f(g)?p:m).push(g)}),[p,m]}reduce(f,p){return this.ops.reduce(f,p)}changeLength(){return this.reduce((f,p)=>p.insert?f+a.default.length(p):p.delete?f-p.delete:f,0)}length(){return this.reduce((f,p)=>f+a.default.length(p),0)}slice(f=0,p=1/0){const m=[],g=new s.default(this.ops);let b=0;for(;b<p&&g.hasNext();){let y;b<f?y=g.next(f-b):(y=g.next(p-b),m.push(y)),b+=a.default.length(y)}return new d(m)}compose(f){const p=new s.default(this.ops),m=new s.default(f.ops),g=[],b=m.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let w=b.retain;for(;p.peekType()==="insert"&&p.peekLength()<=w;)w-=p.peekLength(),g.push(p.next());b.retain-w>0&&m.next(b.retain-w)}const y=new d(g);for(;p.hasNext()||m.hasNext();)if(m.peekType()==="insert")y.push(m.next());else if(p.peekType()==="delete")y.push(p.next());else{const w=Math.min(p.peekLength(),m.peekLength()),C=p.next(w),S=m.next(w);if(S.retain){const E={};if(typeof C.retain=="number")E.retain=typeof S.retain=="number"?w:S.retain;else if(typeof S.retain=="number")C.retain==null?E.insert=C.insert:E.retain=C.retain;else{const A=C.retain==null?"insert":"retain",[O,M,V]=u(C[A],S.retain),N=d.getHandler(O);E[A]={[O]:N.compose(M,V,A==="retain")}}const T=i.default.compose(C.attributes,S.attributes,typeof C.retain=="number");if(T&&(E.attributes=T),y.push(E),!m.hasNext()&&o(y.ops[y.ops.length-1],E)){const A=new d(p.rest());return y.concat(A).chop()}}else typeof S.delete=="number"&&(typeof C.retain=="number"||typeof C.retain=="object"&&C.retain!==null)&&y.push(S)}return y.chop()}concat(f){const p=new d(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p}diff(f,p){if(this.ops===f.ops)return new d;const m=[this,f].map(C=>C.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:l;const E=C===f?"on":"with";throw new Error("diff() called "+E+" non-document")}).join("")),g=new d,b=n(m[0],m[1],p,!0),y=new s.default(this.ops),w=new s.default(f.ops);return b.forEach(C=>{let S=C[1].length;for(;S>0;){let E=0;switch(C[0]){case n.INSERT:E=Math.min(w.peekLength(),S),g.push(w.next(E));break;case n.DELETE:E=Math.min(S,y.peekLength()),y.next(E),g.delete(E);break;case n.EQUAL:E=Math.min(y.peekLength(),w.peekLength(),S);const T=y.next(E),A=w.next(E);o(T.insert,A.insert)?g.retain(E,i.default.diff(T.attributes,A.attributes)):g.push(A).delete(E);break}S-=E}}),g.chop()}eachLine(f,p=`
87
- `){const m=new s.default(this.ops);let g=new d,b=0;for(;m.hasNext();){if(m.peekType()!=="insert")return;const y=m.peek(),w=a.default.length(y)-m.peekLength(),C=typeof y.insert=="string"?y.insert.indexOf(p,w)-w:-1;if(C<0)g.push(m.next());else if(C>0)g.push(m.next(C));else{if(f(g,m.next(1).attributes||{},b)===!1)return;b+=1,g=new d}}g.length()>0&&f(g,{},b)}invert(f){const p=new d;return this.reduce((m,g)=>{if(g.insert)p.delete(a.default.length(g));else{if(typeof g.retain=="number"&&g.attributes==null)return p.retain(g.retain),m+g.retain;if(g.delete||typeof g.retain=="number"){const b=g.delete||g.retain;return f.slice(m,m+b).forEach(w=>{g.delete?p.push(w):g.retain&&g.attributes&&p.retain(a.default.length(w),i.default.invert(g.attributes,w.attributes))}),m+b}else if(typeof g.retain=="object"&&g.retain!==null){const b=f.slice(m,m+1),y=new s.default(b.ops).next(),[w,C,S]=u(g.retain,y.insert),E=d.getHandler(w);return p.retain({[w]:E.invert(C,S)},i.default.invert(g.attributes,y.attributes)),m+1}}return m},0),p.chop()}transform(f,p=!1){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);const m=f,g=new s.default(this.ops),b=new s.default(m.ops),y=new d;for(;g.hasNext()||b.hasNext();)if(g.peekType()==="insert"&&(p||b.peekType()!=="insert"))y.retain(a.default.length(g.next()));else if(b.peekType()==="insert")y.push(b.next());else{const w=Math.min(g.peekLength(),b.peekLength()),C=g.next(w),S=b.next(w);if(C.delete)continue;if(S.delete)y.push(S);else{const E=C.retain,T=S.retain;let A=typeof T=="object"&&T!==null?T:w;if(typeof E=="object"&&E!==null&&typeof T=="object"&&T!==null){const O=Object.keys(E)[0];if(O===Object.keys(T)[0]){const M=d.getHandler(O);M&&(A={[O]:M.transform(E[O],T[O],p)})}}y.retain(A,i.default.transform(C.attributes,S.attributes,p))}}return y.chop()}transformPosition(f,p=!1){p=!!p;const m=new s.default(this.ops);let g=0;for(;m.hasNext()&&g<=f;){const b=m.peekLength(),y=m.peekType();if(m.next(),y==="delete"){f-=Math.min(b,f-g);continue}else y==="insert"&&(g<f||!p)&&(f+=b);g+=b}return f}}d.Op=a.default,d.OpIterator=s.default,d.AttributeMap=i.default,d.handlers={},e.default=d,t.exports=d,t.exports.default=d})(hl,hl.exports)),hl.exports}var Sn=Fte();const be=An(Sn);class Jn extends pn{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Jn.blotName="break";Jn.tagName="BR";let Wn=class extends hu{};const Gte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Dc(t){return t.replace(/[&<>"']/g,e=>Gte[e])}class Xt extends Mv{static allowedChildren=[Xt,Jn,pn,Wn];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,n){const r=Xt.order.indexOf(e),o=Xt.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}formatAt(e,n,r,o){if(Xt.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ve.BLOT)){const i=this.isolate(e,n);o&&i.wrap(r,o)}else super.formatAt(e,n,r,o)}optimize(e){if(super.optimize(e),this.parent instanceof Xt&&Xt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}const HC=1;class Dt extends Qa{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=vP(this)),this.cache.delta}deleteAt(e,n){super.deleteAt(e,n),this.cache={}}formatAt(e,n,r,o){n<=0||(this.scroll.query(r,ve.BLOCK)?e+n===this.length()&&this.format(r,o):super.formatAt(e,Math.min(n,this.length()-e-1),r,o),this.cache={})}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r),this.cache={};return}if(n.length===0)return;const o=n.split(`
86
+ `]))),mY=function(e,n){var r=e.isFocused,o=e.size,i=e.theme,a=i.colors,s=i.spacing.baseUnit;return Ce({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},Kp=function(e){var n=e.delay,r=e.offset;return we("span",{css:wv({animation:"".concat(pY," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},gY=function(e){var n=e.innerProps,r=e.isRtl,o=e.size,i=o===void 0?4:o,a=Sr(e,iY);return we("div",Ee({},ht(Ce(Ce({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),we(Kp,{delay:0,offset:r}),we(Kp,{delay:160,offset:!0}),we(Kp,{delay:320,offset:!r}))},bY=function(e,n){var r=e.isDisabled,o=e.isFocused,i=e.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return Ce({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},vY=function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return we("div",Ee({ref:i},ht(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},yY=vY,xY=["data"],wY=function(e,n){var r=e.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},CY=function(e){var n=e.children,r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.Heading,s=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,c=e.selectProps;return we("div",Ee({},ht(e,"group",{group:!0}),l),we(a,Ee({},s,{selectProps:c,theme:d,getStyles:o,getClassNames:i,cx:r}),u),we("div",null,n))},SY=function(e,n){var r=e.theme,o=r.colors,i=r.spacing;return Ce({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},EY=function(e){var n=QO(e);n.data;var r=Sr(n,xY);return we("div",Ee({},ht(e,"groupHeading",{"group-heading":!0}),r))},IY=CY,AY=["innerRef","isDisabled","isHidden","inputClassName"],TY=function(e,n){var r=e.isDisabled,o=e.value,i=e.theme,a=i.spacing,s=i.colors;return Ce(Ce({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},NY),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},lR={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NY={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ce({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lR)},_Y=function(e){return Ce({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},lR)},OY=function(e){var n=e.cx,r=e.value,o=QO(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,u=Sr(o,AY);return we("div",Ee({},ht(e,"input",{"input-container":!0}),{"data-value":r||""}),we("input",Ee({className:n({input:!0},l),ref:i,style:_Y(s),disabled:a},u)))},RY=OY,PY=function(e,n){var r=e.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Ce({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},MY=function(e,n){var r=e.theme,o=r.borderRadius,i=r.colors,a=e.cropWithEllipsis;return Ce({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},kY=function(e,n){var r=e.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=e.isFocused;return Ce({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},uR=function(e){var n=e.children,r=e.innerProps;return we("div",r,n)},DY=uR,jY=uR;function LY(t){var e=t.children,n=t.innerProps;return we("div",Ee({role:"button"},n),e||we(Cv,{size:14}))}var BY=function(e){var n=e.children,r=e.components,o=e.data,i=e.innerProps,a=e.isDisabled,s=e.removeProps,l=e.selectProps,u=r.Container,d=r.Label,c=r.Remove;return we(u,{data:o,innerProps:Ce(Ce({},ht(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},we(d,{data:o,innerProps:Ce({},ht(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),we(c,{data:o,innerProps:Ce(Ce({},ht(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},FY=BY,GY=function(e,n){var r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.theme,s=a.spacing,l=a.colors;return Ce({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},$Y=function(e){var n=e.children,r=e.isDisabled,o=e.isFocused,i=e.isSelected,a=e.innerRef,s=e.innerProps;return we("div",Ee({},ht(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},VY=$Y,WY=function(e,n){var r=e.theme,o=r.spacing,i=r.colors;return Ce({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},HY=function(e){var n=e.children,r=e.innerProps;return we("div",Ee({},ht(e,"placeholder",{placeholder:!0}),r),n)},qY=HY,zY=function(e,n){var r=e.isDisabled,o=e.theme,i=o.spacing,a=o.colors;return Ce({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},XY=function(e){var n=e.children,r=e.isDisabled,o=e.innerProps;return we("div",Ee({},ht(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},YY=XY,UY={ClearIndicator:dY,Control:yY,DropdownIndicator:uY,DownChevron:aR,CrossIcon:Cv,Group:IY,GroupHeading:EY,IndicatorsContainer:rY,IndicatorSeparator:hY,Input:RY,LoadingIndicator:gY,Menu:WX,MenuList:qX,MenuPortal:JX,LoadingMessage:UX,NoOptionsMessage:YX,MultiValue:FY,MultiValueContainer:DY,MultiValueLabel:jY,MultiValueRemove:LY,Option:VY,Placeholder:qY,SelectContainer:QX,SingleValue:YY,ValueContainer:tY},ZY=function(e){return Ce(Ce({},UY),e.components)},Zw=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function JY(t,e){return!!(t===e||Zw(t)&&Zw(e))}function KY(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!JY(t[n],e[n]))return!1;return!0}function QY(t,e){e===void 0&&(e=KY);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&e(o,n.lastArgs))return n.lastResult;var a=t.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return r.clear=function(){n=null},r}function eU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var tU=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:eU},nU=function(e){return we("span",Ee({css:tU},e))},Jw=nU,rU={guidance:function(e){var n=e.isSearchable,r=e.isMulti,o=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var n=e.action,r=e.label,o=r===void 0?"":r,i=e.labels,a=e.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var n=e.context,r=e.focused,o=e.options,i=e.label,a=i===void 0?"":i,s=e.selectValue,l=e.isDisabled,u=e.isSelected,d=e.isAppleDevice,c=function(g,b){return g&&g.length?"".concat(g.indexOf(b)+1," of ").concat(g.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if(n==="menu"&&d){var f=l?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(a).concat(p,", ").concat(c(o,r),".")}return""},onFilter:function(e){var n=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},oU=function(e){var n=e.ariaSelection,r=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,a=e.isFocused,s=e.selectValue,l=e.selectProps,u=e.id,d=e.isAppleDevice,c=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,m=l.isMulti,g=l.isOptionDisabled,b=l.isSearchable,y=l.menuIsOpen,w=l.options,C=l.screenReaderStatus,S=l.tabSelectsValue,E=l.isLoading,T=l["aria-label"],A=l["aria-live"],O=I.useMemo(function(){return Ce(Ce({},rU),c||{})},[c]),M=I.useMemo(function(){var L="";if(n&&O.onChange){var P=n.option,G=n.options,j=n.removedValue,H=n.removedValues,U=n.value,Q=function(J){return Array.isArray(J)?null:J},$=j||P||Q(U),q=$?f($):"",Z=G||H||void 0,X=Z?Z.map(f):[],te=Ce({isDisabled:$&&g($,s),label:q,labels:X},n);L=O.onChange(te)}return L},[n,O,g,s,f]),V=I.useMemo(function(){var L="",P=r||o,G=!!(r&&s&&s.includes(r));if(P&&O.onFocus){var j={focused:P,label:f(P),isDisabled:g(P,s),isSelected:G,options:i,context:P===r?"menu":"value",selectValue:s,isAppleDevice:d};L=O.onFocus(j)}return L},[r,o,f,g,O,i,s,d]),N=I.useMemo(function(){var L="";if(y&&w.length&&!E&&O.onFilter){var P=C({count:i.length});L=O.onFilter({inputValue:p,resultsMessage:P})}return L},[i,p,y,O,w,C,E]),k=n?.action==="initial-input-focus",_=I.useMemo(function(){var L="";if(O.guidance){var P=o?"value":y?"menu":"input";L=O.guidance({"aria-label":T,context:P,isDisabled:r&&g(r,s),isMulti:m,isSearchable:b,tabSelectsValue:S,isInitialFocus:k})}return L},[T,r,o,m,g,b,y,O,s,S,k]),B=we(I.Fragment,null,we("span",{id:"aria-selection"},M),we("span",{id:"aria-focused"},V),we("span",{id:"aria-results"},N),we("span",{id:"aria-guidance"},_));return we(I.Fragment,null,we(Jw,{id:u},k&&B),we(Jw,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!k&&B))},iU=oU,vg=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],aU=new RegExp("["+vg.map(function(t){return t.letters}).join("")+"]","g"),cR={};for(var Qp=0;Qp<vg.length;Qp++)for(var em=vg[Qp],tm=0;tm<em.letters.length;tm++)cR[em.letters[tm]]=em.base;var dR=function(e){return e.replace(aU,function(n){return cR[n]})},sU=QY(dR),Kw=function(e){return e.replace(/^\s+|\s+$/g,"")},lU=function(e){return"".concat(e.label," ").concat(e.value)},uU=function(e){return function(n,r){if(n.data.__isNew__)return!0;var o=Ce({ignoreCase:!0,ignoreAccents:!0,stringify:lU,trim:!0,matchFrom:"any"},e),i=o.ignoreCase,a=o.ignoreAccents,s=o.stringify,l=o.trim,u=o.matchFrom,d=l?Kw(r):r,c=l?Kw(s(n)):s(n);return i&&(d=d.toLowerCase(),c=c.toLowerCase()),a&&(d=sU(d),c=dR(c)),u==="start"?c.substr(0,d.length)===d:c.indexOf(d)>-1}},cU=["innerRef"];function dU(t){var e=t.innerRef,n=Sr(t,cU),r=DX(n,"onExited","in","enter","exit","appear");return we("input",Ee({ref:e},r,{css:wv({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fU=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function hU(t){var e=t.isEnabled,n=t.onBottomArrive,r=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,a=I.useRef(!1),s=I.useRef(!1),l=I.useRef(0),u=I.useRef(null),d=I.useCallback(function(b,y){if(u.current!==null){var w=u.current,C=w.scrollTop,S=w.scrollHeight,E=w.clientHeight,T=u.current,A=y>0,O=S-E-C,M=!1;O>y&&a.current&&(r&&r(b),a.current=!1),A&&s.current&&(i&&i(b),s.current=!1),A&&y>O?(n&&!a.current&&n(b),T.scrollTop=S,M=!0,a.current=!0):!A&&-y>C&&(o&&!s.current&&o(b),T.scrollTop=0,M=!0,s.current=!0),M&&fU(b)}},[n,r,o,i]),c=I.useCallback(function(b){d(b,b.deltaY)},[d]),f=I.useCallback(function(b){l.current=b.changedTouches[0].clientY},[]),p=I.useCallback(function(b){var y=l.current-b.changedTouches[0].clientY;d(b,y)},[d]),m=I.useCallback(function(b){if(b){var y=PX?{passive:!1}:!1;b.addEventListener("wheel",c,y),b.addEventListener("touchstart",f,y),b.addEventListener("touchmove",p,y)}},[p,f,c]),g=I.useCallback(function(b){b&&(b.removeEventListener("wheel",c,!1),b.removeEventListener("touchstart",f,!1),b.removeEventListener("touchmove",p,!1))},[p,f,c]);return I.useEffect(function(){if(e){var b=u.current;return m(b),function(){g(b)}}},[e,m,g]),function(b){u.current=b}}var Qw=["boxSizing","height","overflow","paddingRight","position"],eC={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function tC(t){t.cancelable&&t.preventDefault()}function nC(t){t.stopPropagation()}function rC(){var t=this.scrollTop,e=this.scrollHeight,n=t+this.offsetHeight;t===0?this.scrollTop=1:n===e&&(this.scrollTop=t-1)}function oC(){return"ontouchstart"in window||navigator.maxTouchPoints}var iC=!!(typeof window<"u"&&window.document&&window.document.createElement),da=0,ii={capture:!1,passive:!1};function pU(t){var e=t.isEnabled,n=t.accountForScrollbars,r=n===void 0?!0:n,o=I.useRef({}),i=I.useRef(null),a=I.useCallback(function(l){if(iC){var u=document.body,d=u&&u.style;if(r&&Qw.forEach(function(m){var g=d&&d[m];o.current[m]=g}),r&&da<1){var c=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+c||0;Object.keys(eC).forEach(function(m){var g=eC[m];d&&(d[m]=g)}),d&&(d.paddingRight="".concat(p,"px"))}u&&oC()&&(u.addEventListener("touchmove",tC,ii),l&&(l.addEventListener("touchstart",rC,ii),l.addEventListener("touchmove",nC,ii))),da+=1}},[r]),s=I.useCallback(function(l){if(iC){var u=document.body,d=u&&u.style;da=Math.max(da-1,0),r&&da<1&&Qw.forEach(function(c){var f=o.current[c];d&&(d[c]=f)}),u&&oC()&&(u.removeEventListener("touchmove",tC,ii),l&&(l.removeEventListener("touchstart",rC,ii),l.removeEventListener("touchmove",nC,ii)))}},[r]);return I.useEffect(function(){if(e){var l=i.current;return a(l),function(){s(l)}}},[e,a,s]),function(l){i.current=l}}function mU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gU=function(e){var n=e.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},bU=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:mU};function vU(t){var e=t.children,n=t.lockEnabled,r=t.captureEnabled,o=r===void 0?!0:r,i=t.onBottomArrive,a=t.onBottomLeave,s=t.onTopArrive,l=t.onTopLeave,u=hU({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),d=pU({isEnabled:n}),c=function(p){u(p),d(p)};return we(I.Fragment,null,n&&we("div",{onClick:gU,css:bU}),e(c))}function yU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var xU=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:yU},wU=function(e){var n=e.name,r=e.onFocus;return we("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:xU,value:"",onChange:function(){}})},CU=wU;function Sv(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function SU(){return Sv(/^iPhone/i)}function fR(){return Sv(/^Mac/i)}function EU(){return Sv(/^iPad/i)||fR()&&navigator.maxTouchPoints>1}function IU(){return SU()||EU()}function AU(){return fR()||IU()}var TU=function(e){return e.label},hR=function(e){return e.label},pR=function(e){return e.value},NU=function(e){return!!e.isDisabled},_U={clearIndicator:cY,container:KX,control:bY,dropdownIndicator:lY,group:wY,groupHeading:SY,indicatorsContainer:nY,indicatorSeparator:fY,input:TY,loadingIndicator:mY,loadingMessage:XX,menu:GX,menuList:HX,menuPortal:ZX,multiValue:PY,multiValueLabel:MY,multiValueRemove:kY,noOptionsMessage:zX,option:GY,placeholder:WY,singleValue:zY,valueContainer:eY},OU={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},RU=4,mR=4,PU=38,MU=mR*2,kU={baseUnit:mR,controlHeight:PU,menuGutter:MU},nm={borderRadius:RU,colors:OU,spacing:kU},DU={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Yw(),captureMenuScroll:!Yw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:uU(),formatGroupLabel:TU,getOptionLabel:hR,getOptionValue:pR,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:NU,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!OX(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var n=e.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function aC(t,e,n,r){var o=vR(t,e,n),i=yR(t,e,n),a=bR(t,e),s=uu(t,e);return{type:"option",data:e,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function Ol(t,e){return t.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return aC(t,a,e,s)}).filter(function(a){return lC(t,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=aC(t,n,e,r);return lC(t,i)?i:void 0}).filter(MX)}function gR(t){return t.reduce(function(e,n){return n.type==="group"?e.push.apply(e,gi(n.options.map(function(r){return r.data}))):e.push(n.data),e},[])}function sC(t,e){return t.reduce(function(n,r){return r.type==="group"?n.push.apply(n,gi(r.options.map(function(o){return{data:o.data,id:"".concat(e,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),n},[])}function jU(t,e){return gR(Ol(t,e))}function lC(t,e){var n=t.inputValue,r=n===void 0?"":n,o=e.data,i=e.isSelected,a=e.label,s=e.value;return(!wR(t)||!i)&&xR(t,{label:a,value:s,data:o},r)}function LU(t,e){var n=t.focusedValue,r=t.selectValue,o=r.indexOf(n);if(o>-1){var i=e.indexOf(n);if(i>-1)return n;if(o<e.length)return e[o]}return null}function BU(t,e){var n=t.focusedOption;return n&&e.indexOf(n)>-1?n:e[0]}var rm=function(e,n){var r,o=(r=e.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},bR=function(e,n){return e.getOptionLabel(n)},uu=function(e,n){return e.getOptionValue(n)};function vR(t,e,n){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,n):!1}function yR(t,e,n){if(n.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,n);var r=uu(t,e);return n.some(function(o){return uu(t,o)===r})}function xR(t,e,n){return t.filterOption?t.filterOption(e,n):!0}var wR=function(e){var n=e.hideSelectedOptions,r=e.isMulti;return n===void 0?r:n},FU=1,Ev=(function(t){w7(n,t);var e=S7(n);function n(r){var o;if(y7(this,n),o=e.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var d=o.props,c=d.onChange,f=d.name;u.name=f,o.ariaOnChange(l,u),c(l,u)},o.setValue=function(l,u,d){var c=o.props,f=c.closeMenuOnSelect,p=c.isMulti,m=c.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:d})},o.selectOption=function(l){var u=o.props,d=u.blurInputOnSelect,c=u.isMulti,f=u.name,p=o.state.selectValue,m=c&&o.isOptionSelected(l,p),g=o.isOptionDisabled(l,p);if(m){var b=o.getOptionValue(l);o.setValue(p.filter(function(y){return o.getOptionValue(y)!==b}),"deselect-option",l)}else if(!g)c?o.setValue([].concat(gi(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:f});return}d&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,d=o.state.selectValue,c=o.getOptionValue(l),f=d.filter(function(m){return o.getOptionValue(m)!==c}),p=Sa(u,f,f[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(Sa(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,d=u[u.length-1],c=u.slice(0,u.length-1),f=Sa(l,c,c[0]||null);d&&o.onChange(f,{action:"pop-value",removedValue:d})},o.getFocusedOptionId=function(l){return rm(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return sC(Ol(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return IX.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(l){return bR(o.props,l)},o.getOptionValue=function(l){return uu(o.props,l)},o.getStyles=function(l,u){var d=o.props.unstyled,c=_U[l](u,d);c.boxSizing="border-box";var f=o.props.styles[l];return f?f(c,u):c},o.getClassNames=function(l,u){var d,c;return(d=(c=o.props.classNames)[l])===null||d===void 0?void 0:d.call(c,u)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return ZY(o.props)},o.buildCategorizedOptions=function(){return Ol(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return gR(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,u){o.setState({ariaSelection:Ce({value:l},u)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var u=o.props,d=u.isMulti,c=u.menuIsOpen;o.focusInput(),c?(o.setState({inputIsHiddenAfterUpdate:!d}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Tc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var u=l.touches,d=u&&u.item(0);d&&(o.initialTouchX=d.clientX,o.initialTouchY=d.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var u=l.touches,d=u&&u.item(0);if(d){var c=Math.abs(d.clientX-o.initialTouchX),f=Math.abs(d.clientY-o.initialTouchY),p=5;o.userIsDragging=c>p||f>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,d=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(d,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),d=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:d>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return wR(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,d=u.isMulti,c=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,m=u.isClearable,g=u.isDisabled,b=u.menuIsOpen,y=u.onKeyDown,w=u.tabSelectsValue,C=u.openMenuOnFocus,S=o.state,E=S.focusedOption,T=S.focusedValue,A=S.selectValue;if(!g&&!(typeof y=="function"&&(y(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||p)return;o.focusValue("previous");break;case"ArrowRight":if(!d||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(T)o.removeValue(T);else{if(!c)return;d?o.popValue():m&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!b||!w||!E||C&&o.isOptionSelected(E,A))return;o.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(b){if(!E||o.isComposing)return;o.selectOption(E);break}return;case"Escape":b?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):m&&f&&o.clearValue();break;case" ":if(p)return;if(!b){o.openMenu("first");break}if(!E)return;o.selectOption(E);break;case"ArrowUp":b?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":b?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!b)return;o.focusOption("pageup");break;case"PageDown":if(!b)return;o.focusOption("pagedown");break;case"Home":if(!b)return;o.focusOption("first");break;case"End":if(!b)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++FU),o.state.selectValue=su(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=rm(i,a[s])}return o}return x7(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Xw(this.menuListRef,this.focusedOptionRef),AU()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Xw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),d=o==="first"?0:u.length-1;if(!this.props.isMulti){var c=u.indexOf(s[0]);c>-1&&(d=c)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,d=-1;if(a.length){switch(o){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),o==="up"?l=u>0?u-1:s.length-1:o==="down"?l=(u+1)%s.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(nm):Ce(Ce({},nm),this.props.theme):nm}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,c=this.props,f=c.isMulti,p=c.isRtl,m=c.options,g=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:g,isMulti:f,isRtl:p,options:m,selectOption:u,selectProps:c,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return vR(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return yR(this.props,o,i)}},{key:"filterOption",value:function(o,i){return xR(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,u=o.tabIndex,d=o.form,c=o.menuIsOpen,f=o.required,p=this.getComponents(),m=p.Input,g=this.state,b=g.inputIsHidden,y=g.ariaSelection,w=this.commonProps,C=s||this.getElementId("input"),S=Ce(Ce(Ce({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},c&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?y?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?v.createElement(m,Ee({},w,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:i,isHidden:b,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},S)):v.createElement(dU,Ee({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:au,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:d,value:""},S))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,d=i.SingleValue,c=i.Placeholder,f=this.commonProps,p=this.props,m=p.controlShouldRenderValue,g=p.isDisabled,b=p.isMulti,y=p.inputValue,w=p.placeholder,C=this.state,S=C.selectValue,E=C.focusedValue,T=C.isFocused;if(!this.hasValue()||!m)return y?null:v.createElement(c,Ee({},f,{key:"placeholder",isDisabled:g,isFocused:T,innerProps:{id:this.getElementId("placeholder")}}),w);if(b)return S.map(function(O,M){var V=O===E,N="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return v.createElement(a,Ee({},f,{components:{Container:s,Label:l,Remove:u},isFocused:V,isDisabled:g,key:N,index:M,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(_){_.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(y)return null;var A=S[0];return v.createElement(d,Ee({},f,{data:A,isDisabled:g}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:c,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,d=this.state.isFocused;if(!i||!u)return null;var c={"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:c,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return v.createElement(a,Ee({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(i,Ee({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,u=i.MenuList,d=i.MenuPortal,c=i.LoadingMessage,f=i.NoOptionsMessage,p=i.Option,m=this.commonProps,g=this.state.focusedOption,b=this.props,y=b.captureMenuScroll,w=b.inputValue,C=b.isLoading,S=b.loadingMessage,E=b.minMenuHeight,T=b.maxMenuHeight,A=b.menuIsOpen,O=b.menuPlacement,M=b.menuPosition,V=b.menuPortalTarget,N=b.menuShouldBlockScroll,k=b.menuShouldScrollIntoView,_=b.noOptionsMessage,B=b.onMenuScrollToTop,L=b.onMenuScrollToBottom;if(!A)return null;var P=function(q,Z){var X=q.type,te=q.data,Y=q.isDisabled,J=q.isSelected,ie=q.label,oe=q.value,re=g===te,z=Y?void 0:function(){return o.onOptionHover(te)},ue=Y?void 0:function(){return o.selectOption(te)},W="".concat(o.getElementId("option"),"-").concat(Z),le={id:W,onClick:ue,onMouseMove:z,onMouseOver:z,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:J};return v.createElement(p,Ee({},m,{innerProps:le,data:te,isDisabled:Y,isSelected:J,key:W,label:ie,type:X,value:oe,isFocused:re,innerRef:re?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(q.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function($){if($.type==="group"){var q=$.data,Z=$.options,X=$.index,te="".concat(o.getElementId("group"),"-").concat(X),Y="".concat(te,"-heading");return v.createElement(a,Ee({},m,{key:te,data:q,options:Z,Heading:s,headingProps:{id:Y,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(J){return P(J,"".concat(X,"-").concat(J.index))}))}else if($.type==="option")return P($,"".concat($.index))});else if(C){var j=S({inputValue:w});if(j===null)return null;G=v.createElement(c,m,j)}else{var H=_({inputValue:w});if(H===null)return null;G=v.createElement(f,m,H)}var U={minMenuHeight:E,maxMenuHeight:T,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:k},Q=v.createElement($X,Ee({},m,U),function($){var q=$.ref,Z=$.placerProps,X=Z.placement,te=Z.maxHeight;return v.createElement(l,Ee({},m,U,{innerRef:q,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:C,placement:X}),v.createElement(vU,{captureEnabled:y,onTopArrive:B,onBottomArrive:L,lockEnabled:N},function(Y){return v.createElement(u,Ee({},m,{innerRef:function(ie){o.getMenuListRef(ie),Y(ie)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:o.getElementId("listbox")},isLoading:C,maxHeight:te,focusedOption:g}),G)}))});return V||M==="fixed"?v.createElement(d,Ee({},m,{appendTo:V,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),Q):Q}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,u=i.name,d=i.required,c=this.state.selectValue;if(d&&!this.hasValue()&&!s)return v.createElement(CU,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var f=c.map(function(g){return o.getOptionValue(g)}).join(a);return v.createElement("input",{name:u,type:"hidden",value:f})}else{var p=c.length>0?c.map(function(g,b){return v.createElement("input",{key:"i-".concat(b),name:u,type:"hidden",value:o.getOptionValue(g)})}):v.createElement("input",{name:u,type:"hidden",value:""});return v.createElement("div",null,p)}else{var m=c[0]?this.getOptionValue(c[0]):"";return v.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,u=i.isFocused,d=i.selectValue,c=this.getFocusableOptions();return v.createElement(iU,Ee({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:c,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,u=this.props,d=u.className,c=u.id,f=u.isDisabled,p=u.menuIsOpen,m=this.state.isFocused,g=this.commonProps=this.getCommonProps();return v.createElement(s,Ee({},g,{className:d,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),v.createElement(i,Ee({},g,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:p}),v.createElement(l,Ee({},g,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(a,Ee({},g,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,d=i.isFocused,c=i.prevWasFocused,f=i.instancePrefix,p=o.options,m=o.value,g=o.menuIsOpen,b=o.inputValue,y=o.isMulti,w=su(m),C={};if(a&&(m!==a.value||p!==a.options||g!==a.menuIsOpen||b!==a.inputValue)){var S=g?jU(o,w):[],E=g?sC(Ol(o,w),"".concat(f,"-option")):[],T=s?LU(i,w):null,A=BU(i,S),O=rm(E,A);C={selectValue:w,focusedOption:A,focusedOptionId:O,focusableOptionsWithIds:E,focusedValue:T,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},V=u,N=d&&c;return d&&!N&&(V={value:Sa(y,w,w[0]||null),options:w,action:"initial-input-focus"},N=!c),u?.action==="initial-input-focus"&&(V=null),Ce(Ce(Ce({},C),M),{},{prevProps:o,ariaSelection:V,prevWasFocused:N})}}]),n})(I.Component);Ev.defaultProps=DU;var GU=I.forwardRef(function(t,e){var n=GO(t);return v.createElement(Ev,Ee({ref:e},n))}),$U=GU,VU=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],uC=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=String(e).toLowerCase(),i=String(r.getOptionValue(n)).toLowerCase(),a=String(r.getOptionLabel(n)).toLowerCase();return i===o||a===o},om={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,n,r,o){return!(!e||n.some(function(i){return uC(e,i,o)})||r.some(function(i){return uC(e,i,o)}))},getNewOptionData:function(e,n){return{label:n,value:e,__isNew__:!0}}};function WU(t){var e=t.allowCreateWhileLoading,n=e===void 0?!1:e,r=t.createOptionPosition,o=r===void 0?"last":r,i=t.formatCreateLabel,a=i===void 0?om.formatCreateLabel:i,s=t.isValidNewOption,l=s===void 0?om.isValidNewOption:s,u=t.getNewOptionData,d=u===void 0?om.getNewOptionData:u,c=t.onCreateOption,f=t.options,p=f===void 0?[]:f,m=t.onChange,g=Sr(t,VU),b=g.getOptionValue,y=b===void 0?pR:b,w=g.getOptionLabel,C=w===void 0?hR:w,S=g.inputValue,E=g.isLoading,T=g.isMulti,A=g.value,O=g.name,M=I.useMemo(function(){return l(S,su(A),p,{getOptionValue:y,getOptionLabel:C})?d(S,a(S)):void 0},[a,d,C,y,S,l,p,A]),V=I.useMemo(function(){return(n||!E)&&M?o==="first"?[M].concat(gi(p)):[].concat(gi(p),[M]):p},[n,o,E,M,p]),N=I.useCallback(function(k,_){if(_.action!=="select-option")return m(k,_);var B=Array.isArray(k)?k:[k];if(B[B.length-1]===M){if(c)c(S);else{var L=d(S,S),P={action:"create-option",name:O,option:L};m(Sa(T,[].concat(gi(su(A)),[L]),L),P)}return}m(k,_)},[d,S,T,O,M,c,m,A]);return Ce(Ce({},g),{},{options:V,onChange:N})}var HU=I.forwardRef(function(t,e){var n=GO(t),r=WU(n);return v.createElement(Ev,Ee({ref:e},r))}),qU=HU;const zU={control:({isFocused:t,isDisabled:e})=>D("ui:min-h-10! ui:w-full ui:rounded-md! ui:bg-segmentify-200 ui:px-0! ui:text-sm ui:border ui:border-border!",t&&!e&&go({variant:"isControlFocused"}),e&&go({variant:"isDisabled"})),option:({isFocused:t,isSelected:e,isDisabled:n})=>D(go({variant:"default"}),e&&go({variant:"isSelected"}),!e&&t&&go({variant:"isFocused"}),n&&go({variant:"isDisabled"})),multiValue:()=>D(go({variant:"multiSelected"})),multiValueLabel:()=>"ui:text-primary!",multiValueRemove:()=>"ui:text-primary!",placeholder:()=>"ui:text-segmentify-600"};function XU({label:t,name:e,options:n,value:r,onChange:o,onInputChange:i,placeholder:a,isClearable:s=!0,isSearchable:l=!0,isMulti:u=!0,isDisabled:d,description:c,className:f,isCreatable:p}){const m={"data-test-id":e,name:e,options:n,value:r,onChange:o,onInputChange:i,isClearable:s,isSearchable:l,isMulti:u,isDisabled:d,placeholder:a,classNames:zU};return h.jsxs("article",{children:[t&&h.jsx(Tn,{className:"ui:mb-2 ui:block",children:t}),h.jsx("div",{className:D("field-select ui:w-full select-wrapper ui:rounded-md! ui:text-sm",f),children:p?h.jsx(qU,{...m}):h.jsx($U,{...m})}),c&&h.jsx(Ju,{description:c})]})}function CR({...t}){return h.jsx(Vu,{"data-slot":"sheet",...t})}function YU({...t}){return h.jsx(Nb,{"data-slot":"sheet-trigger",...t})}function UU({...t}){return h.jsx(hs,{"data-slot":"sheet-close",...t})}function ZU({...t}){return h.jsx(Wu,{"data-slot":"sheet-portal",...t})}function JU({className:t,...e}){return h.jsx(Hu,{"data-slot":"sheet-overlay",className:D("ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:data-[state=closed]:fade-out-0 ui:data-[state=open]:fade-in-0 ui:fixed ui:inset-0 ui:z-50 ui:bg-black/50",t),...e})}function SR({className:t,children:e,side:n="right",...r}){return h.jsxs(ZU,{children:[h.jsx(JU,{}),h.jsxs(qu,{"data-slot":"sheet-content",className:D("ui:bg-background ui:data-[state=open]:animate-in ui:data-[state=closed]:animate-out ui:fixed ui:z-50 ui:flex ui:flex-col ui:gap-4 ui:shadow-lg ui:transition ui:ease-in-out ui:data-[state=closed]:duration-300 ui:data-[state=open]:duration-500",n==="right"&&"ui:data-[state=closed]:slide-out-to-right ui:data-[state=open]:slide-in-from-right ui:inset-y-0 ui:right-0 ui:h-full ui:w-3/4 ui:border-l ui:sm:max-w-sm",n==="left"&&"ui:data-[state=closed]:slide-out-to-left ui:data-[state=open]:slide-in-from-left ui:inset-y-0 ui:left-0 ui:h-full ui:w-3/4 ui:border-r ui:sm:max-w-sm",n==="top"&&"ui:data-[state=closed]:slide-out-to-top ui:data-[state=open]:slide-in-from-top ui:inset-x-0 ui:top-0 ui:h-auto ui:border-b",n==="bottom"&&"ui:data-[state=closed]:slide-out-to-bottom ui:data-[state=open]:slide-in-from-bottom ui:inset-x-0 ui:bottom-0 ui:h-auto ui:border-t",t),...r,children:[e,h.jsxs(hs,{"data-testid":"sheet-close-icon",className:"ui:ring-offset-background ui:focus:ring-ring ui:data-[state=open]:bg-secondary ui:absolute ui:top-4 ui:right-4 ui:rounded-xs ui:opacity-70 ui:transition-opacity ui:hover:opacity-100 ui:focus:ring-2 ui:focus:ring-offset-2 ui:focus:outline-hidden ui:disabled:pointer-events-none",children:[h.jsx(Su,{className:"ui:size-4"}),h.jsx("span",{className:"ui:sr-only",children:"Close"})]})]})]})}function ER({className:t,...e}){return h.jsx("div",{"data-slot":"sheet-header",className:D("ui:flex ui:flex-col ui:gap-1.5 ui:p-4",t),...e})}function KU({className:t,...e}){return h.jsx("div",{"data-slot":"sheet-footer",className:D("ui:mt-auto ui:flex ui:flex-col ui:gap-2 ui:p-4",t),...e})}function IR({className:t,...e}){return h.jsx(_b,{"data-slot":"sheet-title",className:D("ui:text-foreground ui:font-semibold",t),...e})}function AR({className:t,...e}){return h.jsx(Ob,{"data-slot":"sheet-description",className:D("ui:text-muted-foreground ui:text-sm",t),...e})}const im=768;function QU(){const[t,e]=v.useState();return v.useEffect(()=>{const n=window.matchMedia(`(max-width: ${im-1}px)`),r=()=>{e(window.innerWidth<im)};return n.addEventListener("change",r),e(window.innerWidth<im),()=>n.removeEventListener("change",r)},[]),!!t}function yg({className:t,...e}){return h.jsx("div",{"data-slot":"skeleton",className:D("ui:bg-accent ui:animate-pulse ui:rounded-md ui:shrink-0",t),...e})}const TR=v.createContext(null);function Nc(){const t=v.useContext(TR);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}const eZ="sidebar_state",tZ=3600*24*7,nZ="16rem",rZ="18rem",oZ="3rem",iZ="b";function aZ({defaultOpen:t=!0,open:e,onOpenChange:n,className:r,style:o,children:i,...a}){const s=QU(),[l,u]=v.useState(!1),[d,c]=v.useState(t),f=e??d,p=v.useCallback(y=>{const w=typeof y=="function"?y(f):y;n?n(w):c(w),document.cookie=`${eZ}=${w}; path=/; max-age=${tZ}`},[n,f]),m=v.useCallback(()=>s?u(y=>!y):p(y=>!y),[s,p,u]);v.useEffect(()=>{const y=w=>{w.key===iZ&&(w.metaKey||w.ctrlKey)&&(w.preventDefault(),m())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[m]);const g=f?"expanded":"collapsed",b=v.useMemo(()=>({state:g,open:f,setOpen:p,isMobile:s,openMobile:l,setOpenMobile:u,toggleSidebar:m}),[g,f,p,s,l,u,m]);return h.jsx(TR.Provider,{value:b,children:h.jsx(iv,{delayDuration:0,children:h.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":nZ,"--sidebar-width-icon":oZ,...o},className:D("ui:group/sidebar-wrapper ui:has-data-[variant=inset]:bg-sidebar ui:flex ui:min-h-svh ui:w-full",r),...a,children:i})})})}function sZ({side:t="left",variant:e="sidebar",collapsible:n="offcanvas",className:r,children:o,...i}){const{isMobile:a,state:s,openMobile:l,setOpenMobile:u}=Nc();return n==="none"?h.jsx("div",{"data-slot":"sidebar",className:D("ui:bg-sidebar ui:text-sidebar-foreground ui:flex ui:h-full ui:w-(--sidebar-width) ui:flex-col",r),...i,children:o}):a?h.jsx(CR,{open:l,onOpenChange:u,...i,children:h.jsxs(SR,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"ui:bg-sidebar ui:text-sidebar-foreground ui:w-(--sidebar-width) ui:p-0 ui:[&>button]:hidden",style:{"--sidebar-width":rZ},side:t,children:[h.jsxs(ER,{className:"ui:sr-only",children:[h.jsx(IR,{children:"Sidebar"}),h.jsx(AR,{children:"Displays the mobile sidebar."})]}),h.jsx("div",{className:"ui:flex ui:h-full ui:w-full ui:flex-col",children:o})]})}):h.jsxs("div",{className:"ui:group ui:peer ui:text-sidebar-foreground ui:hidden ui:md:block","data-state":s,"data-collapsible":s==="collapsed"?n:"","data-variant":e,"data-side":t,"data-slot":"sidebar",children:[h.jsx("div",{"data-slot":"sidebar-gap",className:D("ui:relative ui:w-(--sidebar-width) ui:bg-transparent ui:transition-[width] ui:duration-200 ui:ease-linear","ui:group-data-[collapsible=offcanvas]:w-0","ui:group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),h.jsx("div",{"data-slot":"sidebar-container",className:D("ui:fixed ui:inset-y-0 ui:z-10 ui:hidden ui:h-svh ui:w-(--sidebar-width) ui:transition-[left,right,width] ui:duration-200 ui:ease-linear ui:md:flex",t==="left"?"ui:left-0 ui:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"ui:right-0 ui:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"ui:p-2 ui:group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"ui:group-data-[collapsible=icon]:w-(--sidebar-width-icon) ui:group-data-[side=left]:border-r ui:group-data-[side=right]:border-l",r),...i,children:h.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"ui:bg-sidebar ui:group-data-[variant=floating]:border-sidebar-border ui:flex ui:h-full ui:w-full ui:flex-col ui:group-data-[variant=floating]:rounded-lg ui:group-data-[variant=floating]:border ui:group-data-[variant=floating]:shadow-sm",children:o})})]})}function lZ({className:t,onClick:e,...n}){const{toggleSidebar:r}=Nc();return h.jsxs(en,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:D("ui:size-7",t),onClick:o=>{e?.(o),r()},...n,children:[h.jsx(iM,{}),h.jsx("span",{className:"ui:sr-only",children:"Toggle Sidebar"})]})}function uZ({className:t,...e}){const{toggleSidebar:n}=Nc();return h.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:D("ui:hover:after:bg-sidebar-border ui:absolute ui:inset-y-0 ui:z-20 ui:hidden ui:w-4 ui:-translate-x-1/2 ui:transition-all ui:ease-linear ui:group-data-[side=left]:-right-4 ui:group-data-[side=right]:left-0 ui:after:absolute ui:after:inset-y-0 ui:after:left-1/2 ui:after:w-[2px] ui:sm:flex","ui:in-data-[side=left]:cursor-w-resize ui:in-data-[side=right]:cursor-e-resize","ui:[[data-side=left][data-state=collapsed]_&]:cursor-e-resize ui:[[data-side=right][data-state=collapsed]_&]:cursor-w-resize","ui:hover:group-data-[collapsible=offcanvas]:bg-sidebar ui:group-data-[collapsible=offcanvas]:translate-x-0 ui:group-data-[collapsible=offcanvas]:after:left-full","ui:[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","ui:[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t),...e})}function cZ({className:t,...e}){return h.jsx("main",{"data-slot":"sidebar-inset",className:D("ui:bg-background ui:relative ui:flex ui:w-full ui:flex-1 ui:flex-col","ui:md:peer-data-[variant=inset]:m-2 ui:md:peer-data-[variant=inset]:ml-0 ui:md:peer-data-[variant=inset]:rounded-xl ui:md:peer-data-[variant=inset]:shadow-sm ui:md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),...e})}function dZ({className:t,...e}){return h.jsx(sc,{"data-slot":"sidebar-input","data-sidebar":"input",className:D("ui:bg-background ui:h-8 ui:w-full ui:shadow-none",t),...e})}function fZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:D("ui:flex ui:flex-col ui:gap-2 ui:p-2",t),...e})}function hZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:D("ui:flex ui:flex-col ui:gap-2 ui:p-2",t),...e})}function pZ({className:t,...e}){return h.jsx(LO,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:D("ui:bg-sidebar-border ui:mx-2 ui:w-auto",t),...e})}function mZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:D("ui:flex ui:min-h-0 ui:flex-1 ui:flex-col ui:gap-2 ui:overflow-auto ui:group-data-[collapsible=icon]:overflow-hidden",t),...e})}function gZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:D("ui:relative ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:p-2",t),...e})}function bZ({className:t,asChild:e=!1,...n}){const r=e?gr:"div";return h.jsx(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:D("ui:text-sidebar-foreground/70 ui:ring-sidebar-ring ui:flex ui:h-8 ui:shrink-0 ui:items-center ui:rounded-md ui:px-2 ui:text-xs ui:font-medium ui:outline-hidden ui:transition-[margin,opacity] ui:duration-200 ui:ease-linear ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:group-data-[collapsible=icon]:-mt-8 ui:group-data-[collapsible=icon]:opacity-0",t),...n})}function vZ({className:t,asChild:e=!1,...n}){const r=e?gr:"button";return h.jsx(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:D("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:absolute ui:top-3.5 ui:right-3 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:group-data-[collapsible=icon]:hidden",t),...n})}function yZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:D("ui:w-full ui:text-sm",t),...e})}function xZ({className:t,...e}){return h.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:D("ui:flex ui:w-full ui:min-w-0 ui:flex-col ui:gap-1",t),...e})}function wZ({className:t,...e}){return h.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:D("ui:group/menu-item ui:relative",t),...e})}const CZ=Bi("ui:peer/menu-button ui:flex ui:w-full ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:p-2 ui:text-left ui:text-sm ui:outline-hidden ui:ring-sidebar-ring ui:transition-[width,height,padding] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:focus-visible:ring-2 ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:group-has-data-[sidebar=menu-action]/menu-item:pr-8 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:font-medium ui:data-[active=true]:text-sidebar-accent-foreground ui:data-[state=open]:hover:bg-sidebar-accent ui:data-[state=open]:hover:text-sidebar-accent-foreground ui:group-data-[collapsible=icon]:size-8! ui:group-data-[collapsible=icon]:p-2! ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0",{variants:{variant:{default:"ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground",outline:"ui:bg-background ui:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"ui:h-8 ui:text-sm",sm:"ui:h-7 ui:text-xs",lg:"ui:h-12 ui:text-sm ui:group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function SZ({asChild:t=!1,isActive:e=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a}){const s=t?gr:"button",{isMobile:l,state:u}=Nc(),d=h.jsx(s,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":e,className:D(CZ({variant:n,size:r}),i),...a});return o?(typeof o=="string"&&(o={children:o}),h.jsxs(av,{children:[h.jsx(sv,{asChild:!0,children:d}),h.jsx(fc,{side:"right",align:"center",hidden:u!=="collapsed"||l,...o})]})):d}function EZ({className:t,asChild:e=!1,showOnHover:n=!1,...r}){const o=e?gr:"button";return h.jsx(o,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:D("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:absolute ui:top-1.5 ui:right-1 ui:flex ui:aspect-square ui:w-5 ui:items-center ui:justify-center ui:rounded-md ui:p-0 ui:outline-hidden ui:transition-transform ui:focus-visible:ring-2 ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:after:absolute ui:after:-inset-2 ui:md:after:hidden","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",n&&"ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground ui:group-focus-within/menu-item:opacity-100 ui:group-hover/menu-item:opacity-100 ui:data-[state=open]:opacity-100 ui:md:opacity-0",t),...r})}function IZ({className:t,...e}){return h.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:D("ui:text-sidebar-foreground ui:pointer-events-none ui:absolute ui:right-1 ui:flex ui:h-5 ui:min-w-5 ui:items-center ui:justify-center ui:rounded-md ui:px-1 ui:text-xs ui:font-medium ui:tabular-nums ui:select-none","ui:peer-hover/menu-button:text-sidebar-accent-foreground ui:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","ui:peer-data-[size=sm]/menu-button:top-1","ui:peer-data-[size=default]/menu-button:top-1.5","ui:peer-data-[size=lg]/menu-button:top-2.5","ui:group-data-[collapsible=icon]:hidden",t),...e})}function AZ({className:t,showIcon:e=!1,...n}){const[r,o]=v.useState("80%");return v.useEffect(()=>{o(`${Math.floor(Math.random()*40)+50}%`)},[]),h.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:D("ui:flex ui:h-8 ui:items-center ui:gap-2 ui:rounded-md ui:px-2",t),...n,children:[e&&h.jsx(yg,{className:"ui:size-4 ui:rounded-md","data-sidebar":"menu-skeleton-icon"}),h.jsx(yg,{className:"ui:h-4 ui:max-w-(--skeleton-width) ui:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})}function TZ({className:t,...e}){return h.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:D("ui:border-sidebar-border ui:mx-3.5 ui:flex ui:min-w-0 ui:translate-x-px ui:flex-col ui:gap-1 ui:border-l ui:px-2.5 ui:py-0.5","ui:group-data-[collapsible=icon]:hidden",t),...e})}function NZ({className:t,...e}){return h.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:D("ui:group/menu-sub-item ui:relative",t),...e})}function _Z({asChild:t=!1,size:e="md",isActive:n=!1,className:r,...o}){const i=t?gr:"a";return h.jsx(i,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":e,"data-active":n,className:D("ui:text-sidebar-foreground ui:ring-sidebar-ring ui:hover:bg-sidebar-accent ui:hover:text-sidebar-accent-foreground ui:active:bg-sidebar-accent ui:active:text-sidebar-accent-foreground ui:[&>svg]:text-sidebar-accent-foreground ui:flex ui:h-7 ui:min-w-0 ui:-translate-x-px ui:items-center ui:gap-2 ui:overflow-hidden ui:rounded-md ui:px-2 ui:outline-hidden ui:focus-visible:ring-2 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:aria-disabled:pointer-events-none ui:aria-disabled:opacity-50 ui:[&>span:last-child]:truncate ui:[&>svg]:size-4 ui:[&>svg]:shrink-0","ui:data-[active=true]:bg-sidebar-accent ui:data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"ui:text-xs",e==="md"&&"ui:text-sm","ui:group-data-[collapsible=icon]:hidden",r),...o})}var OZ=(t,e,n,r,o,i,a,s)=>{let l=document.documentElement,u=["light","dark"];function d(p){(Array.isArray(t)?t:[t]).forEach(m=>{let g=m==="class",b=g&&i?o.map(y=>i[y]||y):o;g?(l.classList.remove(...b),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(m,p)}),c(p)}function c(p){s&&u.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let p=localStorage.getItem(e)||n,m=a&&p==="system"?f():p;d(m)}catch{}},RZ=v.createContext(void 0),PZ={setTheme:t=>{},themes:[]},MZ=()=>{var t;return(t=v.useContext(RZ))!=null?t:PZ};v.memo(({forcedTheme:t,storageKey:e,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([n,e,i,t,s,a,r,o]).slice(1,-1);return v.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${OZ.toString()})(${d})`}})});const kZ=({...t})=>{const{theme:e="system"}=MZ();return h.jsx(Nz,{theme:e,className:"ui:toaster ui:group",icons:{success:h.jsx($2,{className:"ui:size-4"}),info:h.jsx(ki,{className:"ui:size-4"}),warning:h.jsx(uM,{className:"ui:size-4"}),error:h.jsx(rM,{className:"ui:size-4"}),loading:h.jsx(Cu,{className:"ui:size-4 ui:animate-spin"})},style:{"--normal-bg":"var(--ui-popover)","--normal-text":"var(--ui-popover-foreground)","--normal-border":"var(--ui-border)","--border-radius":"var(--ui-radius)"},...t})};function DZ({title:t,containerClassName:e,className:n,...r}){return h.jsx("section",{className:D(e),children:h.jsxs("div",{className:"ui:flex ui:gap-1 ui:items-center",children:[h.jsx(Cu,{role:"status","aria-label":"Loading",className:D("ui:size-4 ui:animate-spin",n),...r}),t&&h.jsx("span",{children:t})]})})}var _c="Tabs",[jZ]=At(_c,[Wi]),NR=Wi(),[LZ,Iv]=jZ(_c),_R=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=t,d=to(s),[c,f]=jt({prop:r,onChange:o,defaultProp:i??"",caller:_c});return h.jsx(LZ,{scope:n,baseId:ft(),value:c,onValueChange:f,orientation:a,dir:d,activationMode:l,children:h.jsx(he.div,{dir:d,"data-orientation":a,...u,ref:e})})});_R.displayName=_c;var OR="TabsList",RR=v.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...o}=t,i=Iv(OR,n),a=NR(n);return h.jsx(Xb,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(he.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:e})})});RR.displayName=OR;var PR="TabsTrigger",MR=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=t,a=Iv(PR,n),s=NR(n),l=jR(a.baseId,r),u=LR(a.baseId,r),d=r===a.value;return h.jsx(Yb,{asChild:!0,...s,focusable:!o,active:d,children:h.jsx(he.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:e,onMouseDown:se(t.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?a.onValueChange(r):c.preventDefault()}),onKeyDown:se(t.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&a.onValueChange(r)}),onFocus:se(t.onFocus,()=>{const c=a.activationMode!=="manual";!d&&!o&&c&&a.onValueChange(r)})})})});MR.displayName=PR;var kR="TabsContent",DR=v.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=t,s=Iv(kR,n),l=jR(s.baseId,r),u=LR(s.baseId,r),d=r===s.value,c=v.useRef(d);return v.useEffect(()=>{const f=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(f)},[]),h.jsx(pt,{present:o||d,children:({present:f})=>h.jsx(he.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:u,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:c.current?"0s":void 0},children:f&&i})})});DR.displayName=kR;function jR(t,e){return`${t}-trigger-${e}`}function LR(t,e){return`${t}-content-${e}`}var BZ=_R,FZ=RR,GZ=MR,$Z=DR;function VZ({className:t,...e}){return h.jsx(BZ,{"data-slot":"tabs",className:D("ui:flex ui:flex-col ui:gap-2",t),...e})}function WZ({className:t,...e}){return h.jsx(FZ,{"data-slot":"tabs-list",className:D("ui:bg-muted ui:text-muted-foreground ui:inline-flex ui:h-9 ui:w-fit ui:items-center ui:justify-center ui:rounded-lg ui:p-[3px]",t),...e})}function HZ({className:t,...e}){return h.jsx(GZ,{"data-slot":"tabs-trigger",className:D("ui:data-[state=active]:bg-background ui:dark:data-[state=active]:text-foreground ui:focus-visible:border-ring ui:focus-visible:ring-ring/50 ui:focus-visible:outline-ring ui:dark:data-[state=active]:border-input ui:dark:data-[state=active]:bg-input/30 ui:text-foreground ui:dark:text-muted-foreground ui:inline-flex ui:h-[calc(100%-1px)] ui:flex-1 ui:items-center ui:justify-center ui:gap-1.5 ui:rounded-md ui:border ui:border-transparent ui:px-2 ui:py-1 ui:text-sm ui:font-medium ui:whitespace-nowrap ui:transition-[color,box-shadow] ui:focus-visible:ring-[3px] ui:focus-visible:outline-1 ui:disabled:pointer-events-none ui:disabled:opacity-50 ui:data-[state=active]:shadow-sm ui:[&_svg]:pointer-events-none ui:[&_svg]:shrink-0 ui:[&_svg:not([class*='size-'])]:size-4",t),...e})}function qZ({className:t,...e}){return h.jsx($Z,{"data-slot":"tabs-content",className:D("ui:flex-1 ui:outline-none",t),...e})}function zZ({className:t,...e}){return h.jsx("div",{"data-slot":"table-container",className:"ui:overflow-x-auto",children:h.jsx("table",{"data-slot":"table",className:D("ui:data-grid ui:min-w-full ui:text-left ui:text-sm ui:font-light ui:text-surface ui:dark:text-white",t),...e})})}function XZ({className:t,disableHover:e=!1,...n}){return h.jsx("thead",{"data-slot":"table-header",className:D("ui:border-b ui:border-neutral-200 ui:font-medium ui:bg-zinc-700 ui:text-white",!e&&"ui:hover:bg-zinc-700 ui:hover:text-white",t),...n})}function YZ({className:t,...e}){return h.jsx("th",{"data-slot":"table-head",className:D("ui:p-2 ui:whitespace-nowrap",t),...e})}function UZ({className:t,...e}){return h.jsx("tbody",{"data-slot":"table-body",className:D("ui:border-b ui:bg-white ui:[&_tr:last-child]:border-0",t),...e})}function ZZ({className:t,...e}){return h.jsx("tr",{className:D("ui:border-b ui:border-neutral-200",t),...e})}function JZ({className:t,disableHover:e=!1,...n}){return h.jsx("tr",{"data-slot":"table-row",className:D("ui:border-b ui:border-neutral-200",!e&&"ui:hover:bg-neutral-300",t),...n})}function KZ({className:t,...e}){return h.jsx("td",{"data-slot":"table-cell",className:D("ui:whitespace-nowrap ui:p-2",t),...e})}function QZ({className:t,...e}){return h.jsx("caption",{"data-slot":"table-caption",className:D("ui:mt-4 ui:text-sm ui:text-muted-foreground",t),...e})}function eJ({className:t,...e}){return h.jsx("tfoot",{"data-slot":"table-footer",className:D("ui:border-t ui:bg-muted/50 ui:font-medium ui:[&>tr]:last:border-b-0",t),...e})}var BR=typeof global=="object"&&global&&global.Object===Object&&global,tJ=typeof self=="object"&&self&&self.Object===Object&&self,Er=BR||tJ||Function("return this")(),eo=Er.Symbol,FR=Object.prototype,nJ=FR.hasOwnProperty,rJ=FR.toString,fa=eo?eo.toStringTag:void 0;function oJ(t){var e=nJ.call(t,fa),n=t[fa];try{t[fa]=void 0;var r=!0}catch{}var o=rJ.call(t);return r&&(e?t[fa]=n:delete t[fa]),o}var iJ=Object.prototype,aJ=iJ.toString;function sJ(t){return aJ.call(t)}var lJ="[object Null]",uJ="[object Undefined]",cC=eo?eo.toStringTag:void 0;function Yi(t){return t==null?t===void 0?uJ:lJ:cC&&cC in Object(t)?oJ(t):sJ(t)}function Br(t){return t!=null&&typeof t=="object"}var Ro=Array.isArray;function lo(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function GR(t){return t}var cJ="[object AsyncFunction]",dJ="[object Function]",fJ="[object GeneratorFunction]",hJ="[object Proxy]";function Av(t){if(!lo(t))return!1;var e=Yi(t);return e==dJ||e==fJ||e==cJ||e==hJ}var am=Er["__core-js_shared__"],dC=(function(){var t=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function pJ(t){return!!dC&&dC in t}var mJ=Function.prototype,gJ=mJ.toString;function Vo(t){if(t!=null){try{return gJ.call(t)}catch{}try{return t+""}catch{}}return""}var bJ=/[\\^$.*+?()[\]{}|]/g,vJ=/^\[object .+?Constructor\]$/,yJ=Function.prototype,xJ=Object.prototype,wJ=yJ.toString,CJ=xJ.hasOwnProperty,SJ=RegExp("^"+wJ.call(CJ).replace(bJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function EJ(t){if(!lo(t)||pJ(t))return!1;var e=Av(t)?SJ:vJ;return e.test(Vo(t))}function IJ(t,e){return t?.[e]}function Wo(t,e){var n=IJ(t,e);return EJ(n)?n:void 0}var xg=Wo(Er,"WeakMap"),fC=Object.create,AJ=(function(){function t(){}return function(e){if(!lo(e))return{};if(fC)return fC(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function TJ(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function NJ(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var _J=800,OJ=16,RJ=Date.now;function PJ(t){var e=0,n=0;return function(){var r=RJ(),o=OJ-(r-n);if(n=r,o>0){if(++e>=_J)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function MJ(t){return function(){return t}}var cu=(function(){try{var t=Wo(Object,"defineProperty");return t({},"",{}),t}catch{}})(),kJ=cu?function(t,e){return cu(t,"toString",{configurable:!0,enumerable:!1,value:MJ(e),writable:!0})}:GR,DJ=PJ(kJ);function jJ(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var LJ=9007199254740991,BJ=/^(?:0|[1-9]\d*)$/;function $R(t,e){var n=typeof t;return e=e??LJ,!!e&&(n=="number"||n!="symbol"&&BJ.test(t))&&t>-1&&t%1==0&&t<e}function Tv(t,e,n){e=="__proto__"&&cu?cu(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function As(t,e){return t===e||t!==t&&e!==e}var FJ=Object.prototype,GJ=FJ.hasOwnProperty;function VR(t,e,n){var r=t[e];(!(GJ.call(t,e)&&As(r,n))||n===void 0&&!(e in t))&&Tv(t,e,n)}function $J(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],l=void 0;l===void 0&&(l=t[s]),o?Tv(n,s,l):VR(n,s,l)}return n}var hC=Math.max;function VJ(t,e,n){return e=hC(e===void 0?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=hC(r.length-e,0),a=Array(i);++o<i;)a[o]=r[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=r[o];return s[e]=n(a),TJ(t,this,s)}}function WJ(t,e){return DJ(VJ(t,e,GR),t+"")}var HJ=9007199254740991;function WR(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=HJ}function Oc(t){return t!=null&&WR(t.length)&&!Av(t)}function qJ(t,e,n){if(!lo(n))return!1;var r=typeof e;return(r=="number"?Oc(n)&&$R(e,n.length):r=="string"&&e in n)?As(n[e],t):!1}function zJ(t){return WJ(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(o--,i):void 0,a&&qJ(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r<o;){var s=n[r];s&&t(e,s,r,i)}return e})}var XJ=Object.prototype;function Nv(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||XJ;return t===n}function YJ(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var UJ="[object Arguments]";function pC(t){return Br(t)&&Yi(t)==UJ}var HR=Object.prototype,ZJ=HR.hasOwnProperty,JJ=HR.propertyIsEnumerable,wg=pC((function(){return arguments})())?pC:function(t){return Br(t)&&ZJ.call(t,"callee")&&!JJ.call(t,"callee")};function KJ(){return!1}var qR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,mC=qR&&typeof module=="object"&&module&&!module.nodeType&&module,QJ=mC&&mC.exports===qR,gC=QJ?Er.Buffer:void 0,eK=gC?gC.isBuffer:void 0,Za=eK||KJ,tK="[object Arguments]",nK="[object Array]",rK="[object Boolean]",oK="[object Date]",iK="[object Error]",aK="[object Function]",sK="[object Map]",lK="[object Number]",uK="[object Object]",cK="[object RegExp]",dK="[object Set]",fK="[object String]",hK="[object WeakMap]",pK="[object ArrayBuffer]",mK="[object DataView]",gK="[object Float32Array]",bK="[object Float64Array]",vK="[object Int8Array]",yK="[object Int16Array]",xK="[object Int32Array]",wK="[object Uint8Array]",CK="[object Uint8ClampedArray]",SK="[object Uint16Array]",EK="[object Uint32Array]",rt={};rt[gK]=rt[bK]=rt[vK]=rt[yK]=rt[xK]=rt[wK]=rt[CK]=rt[SK]=rt[EK]=!0;rt[tK]=rt[nK]=rt[pK]=rt[rK]=rt[mK]=rt[oK]=rt[iK]=rt[aK]=rt[sK]=rt[lK]=rt[uK]=rt[cK]=rt[dK]=rt[fK]=rt[hK]=!1;function IK(t){return Br(t)&&WR(t.length)&&!!rt[Yi(t)]}function _v(t){return function(e){return t(e)}}var zR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Na=zR&&typeof module=="object"&&module&&!module.nodeType&&module,AK=Na&&Na.exports===zR,sm=AK&&BR.process,Ri=(function(){try{var t=Na&&Na.require&&Na.require("util").types;return t||sm&&sm.binding&&sm.binding("util")}catch{}})(),bC=Ri&&Ri.isTypedArray,Ov=bC?_v(bC):IK,TK=Object.prototype,NK=TK.hasOwnProperty;function XR(t,e){var n=Ro(t),r=!n&&wg(t),o=!n&&!r&&Za(t),i=!n&&!r&&!o&&Ov(t),a=n||r||o||i,s=a?YJ(t.length,String):[],l=s.length;for(var u in t)(e||NK.call(t,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||$R(u,l)))&&s.push(u);return s}function YR(t,e){return function(n){return t(e(n))}}var _K=YR(Object.keys,Object),OK=Object.prototype,RK=OK.hasOwnProperty;function PK(t){if(!Nv(t))return _K(t);var e=[];for(var n in Object(t))RK.call(t,n)&&n!="constructor"&&e.push(n);return e}function MK(t){return Oc(t)?XR(t):PK(t)}function kK(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var DK=Object.prototype,jK=DK.hasOwnProperty;function LK(t){if(!lo(t))return kK(t);var e=Nv(t),n=[];for(var r in t)r=="constructor"&&(e||!jK.call(t,r))||n.push(r);return n}function UR(t){return Oc(t)?XR(t,!0):LK(t)}var Ja=Wo(Object,"create");function BK(){this.__data__=Ja?Ja(null):{},this.size=0}function FK(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var GK="__lodash_hash_undefined__",$K=Object.prototype,VK=$K.hasOwnProperty;function WK(t){var e=this.__data__;if(Ja){var n=e[t];return n===GK?void 0:n}return VK.call(e,t)?e[t]:void 0}var HK=Object.prototype,qK=HK.hasOwnProperty;function zK(t){var e=this.__data__;return Ja?e[t]!==void 0:qK.call(e,t)}var XK="__lodash_hash_undefined__";function YK(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ja&&e===void 0?XK:e,this}function Po(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Po.prototype.clear=BK;Po.prototype.delete=FK;Po.prototype.get=WK;Po.prototype.has=zK;Po.prototype.set=YK;function UK(){this.__data__=[],this.size=0}function Rc(t,e){for(var n=t.length;n--;)if(As(t[n][0],e))return n;return-1}var ZK=Array.prototype,JK=ZK.splice;function KK(t){var e=this.__data__,n=Rc(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():JK.call(e,n,1),--this.size,!0}function QK(t){var e=this.__data__,n=Rc(e,t);return n<0?void 0:e[n][1]}function eQ(t){return Rc(this.__data__,t)>-1}function tQ(t,e){var n=this.__data__,r=Rc(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Gr(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Gr.prototype.clear=UK;Gr.prototype.delete=KK;Gr.prototype.get=QK;Gr.prototype.has=eQ;Gr.prototype.set=tQ;var Ka=Wo(Er,"Map");function nQ(){this.size=0,this.__data__={hash:new Po,map:new(Ka||Gr),string:new Po}}function rQ(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Pc(t,e){var n=t.__data__;return rQ(e)?n[typeof e=="string"?"string":"hash"]:n.map}function oQ(t){var e=Pc(this,t).delete(t);return this.size-=e?1:0,e}function iQ(t){return Pc(this,t).get(t)}function aQ(t){return Pc(this,t).has(t)}function sQ(t,e){var n=Pc(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ho(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ho.prototype.clear=nQ;Ho.prototype.delete=oQ;Ho.prototype.get=iQ;Ho.prototype.has=aQ;Ho.prototype.set=sQ;function lQ(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}var ZR=YR(Object.getPrototypeOf,Object),uQ="[object Object]",cQ=Function.prototype,dQ=Object.prototype,JR=cQ.toString,fQ=dQ.hasOwnProperty,hQ=JR.call(Object);function pQ(t){if(!Br(t)||Yi(t)!=uQ)return!1;var e=ZR(t);if(e===null)return!0;var n=fQ.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&JR.call(n)==hQ}function mQ(){this.__data__=new Gr,this.size=0}function gQ(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function bQ(t){return this.__data__.get(t)}function vQ(t){return this.__data__.has(t)}var yQ=200;function xQ(t,e){var n=this.__data__;if(n instanceof Gr){var r=n.__data__;if(!Ka||r.length<yQ-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ho(r)}return n.set(t,e),this.size=n.size,this}function cr(t){var e=this.__data__=new Gr(t);this.size=e.size}cr.prototype.clear=mQ;cr.prototype.delete=gQ;cr.prototype.get=bQ;cr.prototype.has=vQ;cr.prototype.set=xQ;var KR=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vC=KR&&typeof module=="object"&&module&&!module.nodeType&&module,wQ=vC&&vC.exports===KR,yC=wQ?Er.Buffer:void 0,xC=yC?yC.allocUnsafe:void 0;function QR(t,e){if(e)return t.slice();var n=t.length,r=xC?xC(n):new t.constructor(n);return t.copy(r),r}function CQ(t,e){for(var n=-1,r=t==null?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function SQ(){return[]}var EQ=Object.prototype,IQ=EQ.propertyIsEnumerable,wC=Object.getOwnPropertySymbols,AQ=wC?function(t){return t==null?[]:(t=Object(t),CQ(wC(t),function(e){return IQ.call(t,e)}))}:SQ;function TQ(t,e,n){var r=e(t);return Ro(t)?r:lQ(r,n(t))}function Cg(t){return TQ(t,MK,AQ)}var Sg=Wo(Er,"DataView"),Eg=Wo(Er,"Promise"),Ig=Wo(Er,"Set"),CC="[object Map]",NQ="[object Object]",SC="[object Promise]",EC="[object Set]",IC="[object WeakMap]",AC="[object DataView]",_Q=Vo(Sg),OQ=Vo(Ka),RQ=Vo(Eg),PQ=Vo(Ig),MQ=Vo(xg),kn=Yi;(Sg&&kn(new Sg(new ArrayBuffer(1)))!=AC||Ka&&kn(new Ka)!=CC||Eg&&kn(Eg.resolve())!=SC||Ig&&kn(new Ig)!=EC||xg&&kn(new xg)!=IC)&&(kn=function(t){var e=Yi(t),n=e==NQ?t.constructor:void 0,r=n?Vo(n):"";if(r)switch(r){case _Q:return AC;case OQ:return CC;case RQ:return SC;case PQ:return EC;case MQ:return IC}return e});var kQ=Object.prototype,DQ=kQ.hasOwnProperty;function jQ(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&DQ.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var du=Er.Uint8Array;function Rv(t){var e=new t.constructor(t.byteLength);return new du(e).set(new du(t)),e}function LQ(t,e){var n=Rv(t.buffer);return new t.constructor(n,t.byteOffset,t.byteLength)}var BQ=/\w*$/;function FQ(t){var e=new t.constructor(t.source,BQ.exec(t));return e.lastIndex=t.lastIndex,e}var TC=eo?eo.prototype:void 0,NC=TC?TC.valueOf:void 0;function GQ(t){return NC?Object(NC.call(t)):{}}function eP(t,e){var n=e?Rv(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var $Q="[object Boolean]",VQ="[object Date]",WQ="[object Map]",HQ="[object Number]",qQ="[object RegExp]",zQ="[object Set]",XQ="[object String]",YQ="[object Symbol]",UQ="[object ArrayBuffer]",ZQ="[object DataView]",JQ="[object Float32Array]",KQ="[object Float64Array]",QQ="[object Int8Array]",eee="[object Int16Array]",tee="[object Int32Array]",nee="[object Uint8Array]",ree="[object Uint8ClampedArray]",oee="[object Uint16Array]",iee="[object Uint32Array]";function aee(t,e,n){var r=t.constructor;switch(e){case UQ:return Rv(t);case $Q:case VQ:return new r(+t);case ZQ:return LQ(t);case JQ:case KQ:case QQ:case eee:case tee:case nee:case ree:case oee:case iee:return eP(t,n);case WQ:return new r;case HQ:case XQ:return new r(t);case qQ:return FQ(t);case zQ:return new r;case YQ:return GQ(t)}}function tP(t){return typeof t.constructor=="function"&&!Nv(t)?AJ(ZR(t)):{}}var see="[object Map]";function lee(t){return Br(t)&&kn(t)==see}var _C=Ri&&Ri.isMap,uee=_C?_v(_C):lee,cee="[object Set]";function dee(t){return Br(t)&&kn(t)==cee}var OC=Ri&&Ri.isSet,fee=OC?_v(OC):dee,hee=1,nP="[object Arguments]",pee="[object Array]",mee="[object Boolean]",gee="[object Date]",bee="[object Error]",rP="[object Function]",vee="[object GeneratorFunction]",yee="[object Map]",xee="[object Number]",oP="[object Object]",wee="[object RegExp]",Cee="[object Set]",See="[object String]",Eee="[object Symbol]",Iee="[object WeakMap]",Aee="[object ArrayBuffer]",Tee="[object DataView]",Nee="[object Float32Array]",_ee="[object Float64Array]",Oee="[object Int8Array]",Ree="[object Int16Array]",Pee="[object Int32Array]",Mee="[object Uint8Array]",kee="[object Uint8ClampedArray]",Dee="[object Uint16Array]",jee="[object Uint32Array]",et={};et[nP]=et[pee]=et[Aee]=et[Tee]=et[mee]=et[gee]=et[Nee]=et[_ee]=et[Oee]=et[Ree]=et[Pee]=et[yee]=et[xee]=et[oP]=et[wee]=et[Cee]=et[See]=et[Eee]=et[Mee]=et[kee]=et[Dee]=et[jee]=!0;et[bee]=et[rP]=et[Iee]=!1;function Rl(t,e,n,r,o,i){var a,s=e&hee;if(a!==void 0)return a;if(!lo(t))return t;var l=Ro(t);if(l)a=jQ(t);else{var u=kn(t),d=u==rP||u==vee;if(Za(t))return QR(t,s);if(u==oP||u==nP||d&&!o)a=d?{}:tP(t);else{if(!et[u])return o?t:{};a=aee(t,u,s)}}i||(i=new cr);var c=i.get(t);if(c)return c;i.set(t,a),fee(t)?t.forEach(function(m){a.add(Rl(m,e,n,m,t,i))}):uee(t)&&t.forEach(function(m,g){a.set(g,Rl(m,e,n,g,t,i))});var f=Cg,p=l?void 0:f(t);return jJ(p||t,function(m,g){p&&(g=m,m=t[g]),VR(a,g,Rl(m,e,n,g,t,i))}),a}var Lee=1,Bee=4;function vi(t){return Rl(t,Lee|Bee)}var Fee="__lodash_hash_undefined__";function Gee(t){return this.__data__.set(t,Fee),this}function $ee(t){return this.__data__.has(t)}function fu(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ho;++e<n;)this.add(t[e])}fu.prototype.add=fu.prototype.push=Gee;fu.prototype.has=$ee;function Vee(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Wee(t,e){return t.has(e)}var Hee=1,qee=2;function iP(t,e,n,r,o,i){var a=n&Hee,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(t),d=i.get(e);if(u&&d)return u==e&&d==t;var c=-1,f=!0,p=n&qee?new fu:void 0;for(i.set(t,e),i.set(e,t);++c<s;){var m=t[c],g=e[c];if(r)var b=a?r(g,m,c,e,t,i):r(m,g,c,t,e,i);if(b!==void 0){if(b)continue;f=!1;break}if(p){if(!Vee(e,function(y,w){if(!Wee(p,w)&&(m===y||o(m,y,n,r,i)))return p.push(w)})){f=!1;break}}else if(!(m===g||o(m,g,n,r,i))){f=!1;break}}return i.delete(t),i.delete(e),f}function zee(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function Xee(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Yee=1,Uee=2,Zee="[object Boolean]",Jee="[object Date]",Kee="[object Error]",Qee="[object Map]",ete="[object Number]",tte="[object RegExp]",nte="[object Set]",rte="[object String]",ote="[object Symbol]",ite="[object ArrayBuffer]",ate="[object DataView]",RC=eo?eo.prototype:void 0,lm=RC?RC.valueOf:void 0;function ste(t,e,n,r,o,i,a){switch(n){case ate:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ite:return!(t.byteLength!=e.byteLength||!i(new du(t),new du(e)));case Zee:case Jee:case ete:return As(+t,+e);case Kee:return t.name==e.name&&t.message==e.message;case tte:case rte:return t==e+"";case Qee:var s=zee;case nte:var l=r&Yee;if(s||(s=Xee),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=Uee,a.set(t,e);var d=iP(s(t),s(e),r,o,i,a);return a.delete(t),d;case ote:if(lm)return lm.call(t)==lm.call(e)}return!1}var lte=1,ute=Object.prototype,cte=ute.hasOwnProperty;function dte(t,e,n,r,o,i){var a=n&lte,s=Cg(t),l=s.length,u=Cg(e),d=u.length;if(l!=d&&!a)return!1;for(var c=l;c--;){var f=s[c];if(!(a?f in e:cte.call(e,f)))return!1}var p=i.get(t),m=i.get(e);if(p&&m)return p==e&&m==t;var g=!0;i.set(t,e),i.set(e,t);for(var b=a;++c<l;){f=s[c];var y=t[f],w=e[f];if(r)var C=a?r(w,y,f,e,t,i):r(y,w,f,t,e,i);if(!(C===void 0?y===w||o(y,w,n,r,i):C)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var S=t.constructor,E=e.constructor;S!=E&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof E=="function"&&E instanceof E)&&(g=!1)}return i.delete(t),i.delete(e),g}var fte=1,PC="[object Arguments]",MC="[object Array]",fl="[object Object]",hte=Object.prototype,kC=hte.hasOwnProperty;function pte(t,e,n,r,o,i){var a=Ro(t),s=Ro(e),l=a?MC:kn(t),u=s?MC:kn(e);l=l==PC?fl:l,u=u==PC?fl:u;var d=l==fl,c=u==fl,f=l==u;if(f&&Za(t)){if(!Za(e))return!1;a=!0,d=!1}if(f&&!d)return i||(i=new cr),a||Ov(t)?iP(t,e,n,r,o,i):ste(t,e,l,n,r,o,i);if(!(n&fte)){var p=d&&kC.call(t,"__wrapped__"),m=c&&kC.call(e,"__wrapped__");if(p||m){var g=p?t.value():t,b=m?e.value():e;return i||(i=new cr),o(g,b,n,r,i)}}return f?(i||(i=new cr),dte(t,e,n,r,o,i)):!1}function aP(t,e,n,r,o){return t===e?!0:t==null||e==null||!Br(t)&&!Br(e)?t!==t&&e!==e:pte(t,e,n,r,aP,o)}function mte(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[++o];if(n(i[l],l,i)===!1)break}return e}}var gte=mte();function Ag(t,e,n){(n!==void 0&&!As(t[e],n)||n===void 0&&!(e in t))&&Tv(t,e,n)}function bte(t){return Br(t)&&Oc(t)}function Tg(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function vte(t){return $J(t,UR(t))}function yte(t,e,n,r,o,i,a){var s=Tg(t,n),l=Tg(e,n),u=a.get(l);if(u){Ag(t,n,u);return}var d=i?i(s,l,n+"",t,e,a):void 0,c=d===void 0;if(c){var f=Ro(l),p=!f&&Za(l),m=!f&&!p&&Ov(l);d=l,f||p||m?Ro(s)?d=s:bte(s)?d=NJ(s):p?(c=!1,d=QR(l,!0)):m?(c=!1,d=eP(l,!0)):d=[]:pQ(l)||wg(l)?(d=s,wg(s)?d=vte(s):(!lo(s)||Av(s))&&(d=tP(l))):c=!1}c&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),Ag(t,n,d)}function sP(t,e,n,r,o){t!==e&&gte(e,function(i,a){if(o||(o=new cr),lo(i))yte(t,e,a,n,sP,r,o);else{var s=r?r(Tg(t,a),i,a+"",t,e,o):void 0;s===void 0&&(s=i),Ag(t,a,s)}},UR)}function Pv(t,e){return aP(t,e)}var Ur=zJ(function(t,e,n){sP(t,e,n)}),ve=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ve||{});class mr{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const o=ve.TYPE&ve.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ve.LEVEL|o:ve.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class yi extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const lP=class Ng{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const o=this.query(n);if(o==null)throw new yi(`Unable to create ${n} blot`);const i=o,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(r),s=new i(e,a,r);return Ng.blots.set(s.domNode,s),s}find(e,n=!1){return Ng.find(e,n)}query(e,n=ve.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ve.LEVEL&ve.BLOCK?r=this.types.block:e&ve.LEVEL&ve.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(o=>(r=this.classes[o],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&ve.LEVEL&r.scope&&n&ve.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,o="attrName"in n;if(!r&&!o)throw new yi("Invalid definition");if(r&&n.blotName==="abstract")throw new yi("Cannot register abstract class");const i=r?n.blotName:o?n.attrName:void 0;return this.types[i]=n,o?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(a=>a.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(a=>{(this.tags[a]==null||n.className==null)&&(this.tags[a]=n)}))),n})}};lP.blots=new WeakMap;let Pi=lP;function DC(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class xte extends mr{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){DC(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(DC(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const Zn=xte;function um(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class wte extends mr{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[um(this.keyName)]=n,!0):!1}remove(e){e.style[um(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[um(this.keyName)];return this.canAdd(e,n)?n:""}}const uo=wte;class Cte{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Pi.find(this.domNode);if(e==null)return;const n=mr.keys(this.domNode),r=Zn.keys(this.domNode),o=uo.keys(this.domNode);n.concat(r).concat(o).forEach(i=>{const a=e.scroll.query(i,ve.ATTRIBUTE);a instanceof mr&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const Mc=Cte,uP=class{constructor(e,n){this.scroll=e,this.domNode=n,Pi.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new yi("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Pi.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,o){const i=this.isolate(e,n);if(this.scroll.query(r,ve.BLOT)!=null&&o)i.wrap(r,o);else if(this.scroll.query(r,ve.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);i.wrap(a),a.format(r,o)}}insertAt(e,n,r){const o=r==null?this.scroll.create("text",n):this.scroll.create(n,r),i=this.split(e);this.parent.insertBefore(o,i||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new yi(`Cannot wrap ${e}`);return r.appendChild(this),r}};uP.blotName="abstract";let cP=uP;const dP=class extends cP{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};dP.scope=ve.INLINE_BLOT;let Ste=dP;const Vt=Ste;class Ete{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),o=0;for(;r;){if(r===e)return o;o+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let o=r();for(;o;){const i=o.length();if(e<i||n&&e===i&&(o.next==null||o.next.length()!==0))return[o,e];e-=i,o=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[o,i]=this.find(e);let a=e-i;const s=this.iterator(o);let l=s();for(;l&&a<e+n;){const u=l.length();e>a?r(l,e-a,Math.min(n,a+u-e)):r(l,0,Math.min(u,e+n-a)),a+=u,l=s()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let o=r();for(;o;)n=e(n,o),o=r();return n}}function jC(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(ve.INLINE);return Array.from(t.childNodes).forEach(o=>{r.domNode.appendChild(o)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const fP=class zr extends cP{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,zr.uiClass&&this.uiNode.classList.add(zr.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Ete,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=jC(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof yi)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,o,i)=>{r.deleteAt(o,i)})}descendant(e,n=0){const[r,o]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,o]:r instanceof zr?r.descendant(e,o):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let o=[],i=r;return this.children.forEachAt(n,r,(a,s,l)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&o.push(a),a instanceof zr&&(o=o.concat(a.descendants(e,s,i))),i-=l}),o}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ve.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof zr?n.unwrap():n.remove())})}formatAt(e,n,r,o){this.children.forEachAt(e,n,(i,a,s)=>{i.formatAt(a,s,r,o)})}insertAt(e,n,r){const[o,i]=this.children.find(e);if(o)o.insertAt(i,n,r);else{const a=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(a)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,o]=this.children.find(e,n),i=[[this,e]];return r instanceof zr?i.concat(r.path(o,n)):(r!=null&&i.push([r,o]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof zr&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(o,i,a)=>{const s=o.split(i,n);s!=null&&r.appendChild(s)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],o=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(r.push(...i.addedNodes),o.push(...i.removedNodes))}),o.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(i);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,a)=>i===a?0:i.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let a=null;i.nextSibling!=null&&(a=this.scroll.find(i.nextSibling));const s=jC(i,this.scroll);(s.next!==a||s.next==null)&&(s.parent!=null&&s.parent.removeChild(this),this.insertBefore(s,a||void 0))}),this.enforceAllowedChildren()}};fP.uiClass="";let Ite=fP;const Gn=Ite;function Ate(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const ui=class ci extends Gn{static create(e){return super.create(e)}static formats(e,n){const r=n.query(ci.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new Mc(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof ci||(r=r.wrap(ci.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ve.INLINE);if(r==null)return;r instanceof mr?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,o){this.formats()[r]!=null||this.scroll.query(r,ve.ATTRIBUTE)?this.isolate(e,n).format(r,o):super.formatAt(e,n,r,o)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof ci&&r.prev===this&&Ate(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof ci&&this.attributes.move(r),r}};ui.allowedChildren=[ui,Vt],ui.blotName="inline",ui.scope=ve.INLINE_BLOT,ui.tagName="SPAN";let Tte=ui;const Mv=Tte,di=class _g extends Gn{static create(e){return super.create(e)}static formats(e,n){const r=n.query(_g.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new Mc(this.domNode)}format(e,n){const r=this.scroll.query(e,ve.BLOCK);r!=null&&(r instanceof mr?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(_g.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,o){this.scroll.query(r,ve.BLOCK)!=null?this.format(r,o):super.formatAt(e,n,r,o)}insertAt(e,n,r){if(r==null||this.scroll.query(n,ve.INLINE)!=null)super.insertAt(e,n,r);else{const o=this.split(e);if(o!=null){const i=this.scroll.create(n,r);o.parent.insertBefore(i,o)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};di.blotName="block",di.scope=ve.BLOCK_BLOT,di.tagName="P",di.allowedChildren=[Mv,di,Vt];let Nte=di;const Qa=Nte,Og=class extends Gn{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,o){super.formatAt(e,n,r,o),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Og.blotName="container",Og.scope=ve.BLOCK_BLOT;let _te=Og;const kc=_te;class Ote extends Vt{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,o){e===0&&n===this.length()?this.format(r,o):super.formatAt(e,n,r,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const pn=Ote,Rte={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Pte=100,fi=class extends Gn{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,Rte),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=ve.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,o){this.update(),super.formatAt(e,n,r,o)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)e.push(o.pop());const i=(l,u=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),u&&i(l.parent))},a=l=>{r.has(l.domNode)&&(l instanceof Gn&&l.children.forEach(a),r.delete(l.domNode),l.optimize(n))};let s=e;for(let l=0;s.length>0;l+=1){if(l>=Pte)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(c=>{const f=this.find(c,!1);i(f,!1),f instanceof Gn&&f.children.forEach(p=>{i(p,!1)})})):u.type==="attributes"&&i(d.prev)),i(d))}),this.children.forEach(a),s=Array.from(this.observer.takeRecords()),o=s.slice();o.length>0;)e.push(o.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(o=>{const i=this.find(o.target,!0);return i==null?null:r.has(i.domNode)?(r.get(i.domNode).push(o),null):(r.set(i.domNode,[o]),i)}).forEach(o=>{o!=null&&o!==this&&r.has(o.domNode)&&o.update(r.get(o.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};fi.blotName="scroll",fi.defaultChild=Qa,fi.allowedChildren=[Qa,kc],fi.scope=ve.BLOCK_BLOT,fi.tagName="DIV";let Mte=fi;const kv=Mte,Rg=class hP extends Vt{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof hP&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Rg.blotName="text",Rg.scope=ve.INLINE_BLOT;let kte=Rg;const hu=kte,Dte=Object.freeze(Object.defineProperty({__proto__:null,Attributor:mr,AttributorStore:Mc,BlockBlot:Qa,ClassAttributor:Zn,ContainerBlot:kc,EmbedBlot:pn,InlineBlot:Mv,LeafBlot:Vt,ParentBlot:Gn,Registry:Pi,Scope:ve,ScrollBlot:kv,StyleAttributor:uo,TextBlot:hu},Symbol.toStringTag,{value:"Module"}));var hl={exports:{}},cm,LC;function jte(){if(LC)return cm;LC=1;var t=-1,e=1,n=0;function r(N,k,_,B,L){if(N===k)return N?[[n,N]]:[];if(_!=null){var P=M(N,k,_);if(P)return P}var G=s(N,k),j=N.substring(0,G);N=N.substring(G),k=k.substring(G),G=u(N,k);var H=N.substring(N.length-G);N=N.substring(0,N.length-G),k=k.substring(0,k.length-G);var U=o(N,k);return j&&U.unshift([n,j]),H&&U.push([n,H]),w(U,L),B&&c(U),U}function o(N,k){var _;if(!N)return[[e,k]];if(!k)return[[t,N]];var B=N.length>k.length?N:k,L=N.length>k.length?k:N,P=B.indexOf(L);if(P!==-1)return _=[[e,B.substring(0,P)],[n,L],[e,B.substring(P+L.length)]],N.length>k.length&&(_[0][0]=_[2][0]=t),_;if(L.length===1)return[[t,N],[e,k]];var G=d(N,k);if(G){var j=G[0],H=G[1],U=G[2],Q=G[3],$=G[4],q=r(j,U),Z=r(H,Q);return q.concat([[n,$]],Z)}return i(N,k)}function i(N,k){for(var _=N.length,B=k.length,L=Math.ceil((_+B)/2),P=L,G=2*L,j=new Array(G),H=new Array(G),U=0;U<G;U++)j[U]=-1,H[U]=-1;j[P+1]=0,H[P+1]=0;for(var Q=_-B,$=Q%2!==0,q=0,Z=0,X=0,te=0,Y=0;Y<L;Y++){for(var J=-Y+q;J<=Y-Z;J+=2){var ie=P+J,oe;J===-Y||J!==Y&&j[ie-1]<j[ie+1]?oe=j[ie+1]:oe=j[ie-1]+1;for(var re=oe-J;oe<_&&re<B&&N.charAt(oe)===k.charAt(re);)oe++,re++;if(j[ie]=oe,oe>_)Z+=2;else if(re>B)q+=2;else if($){var z=P+Q-J;if(z>=0&&z<G&&H[z]!==-1){var ue=_-H[z];if(oe>=ue)return a(N,k,oe,re)}}}for(var W=-Y+X;W<=Y-te;W+=2){var z=P+W,ue;W===-Y||W!==Y&&H[z-1]<H[z+1]?ue=H[z+1]:ue=H[z-1]+1;for(var le=ue-W;ue<_&&le<B&&N.charAt(_-ue-1)===k.charAt(B-le-1);)ue++,le++;if(H[z]=ue,ue>_)te+=2;else if(le>B)X+=2;else if(!$){var ie=P+Q-W;if(ie>=0&&ie<G&&j[ie]!==-1){var oe=j[ie],re=P+oe-ie;if(ue=_-ue,oe>=ue)return a(N,k,oe,re)}}}}return[[t,N],[e,k]]}function a(N,k,_,B){var L=N.substring(0,_),P=k.substring(0,B),G=N.substring(_),j=k.substring(B),H=r(L,P),U=r(G,j);return H.concat(U)}function s(N,k){if(!N||!k||N.charAt(0)!==k.charAt(0))return 0;for(var _=0,B=Math.min(N.length,k.length),L=B,P=0;_<L;)N.substring(P,L)==k.substring(P,L)?(_=L,P=_):B=L,L=Math.floor((B-_)/2+_);return C(N.charCodeAt(L-1))&&L--,L}function l(N,k){var _=N.length,B=k.length;if(_==0||B==0)return 0;_>B?N=N.substring(_-B):_<B&&(k=k.substring(0,_));var L=Math.min(_,B);if(N==k)return L;for(var P=0,G=1;;){var j=N.substring(L-G),H=k.indexOf(j);if(H==-1)return P;G+=H,(H==0||N.substring(L-G)==k.substring(0,G))&&(P=G,G++)}}function u(N,k){if(!N||!k||N.slice(-1)!==k.slice(-1))return 0;for(var _=0,B=Math.min(N.length,k.length),L=B,P=0;_<L;)N.substring(N.length-L,N.length-P)==k.substring(k.length-L,k.length-P)?(_=L,P=_):B=L,L=Math.floor((B-_)/2+_);return S(N.charCodeAt(N.length-L))&&L--,L}function d(N,k){var _=N.length>k.length?N:k,B=N.length>k.length?k:N;if(_.length<4||B.length*2<_.length)return null;function L(Z,X,te){for(var Y=Z.substring(te,te+Math.floor(Z.length/4)),J=-1,ie="",oe,re,z,ue;(J=X.indexOf(Y,J+1))!==-1;){var W=s(Z.substring(te),X.substring(J)),le=u(Z.substring(0,te),X.substring(0,J));ie.length<le+W&&(ie=X.substring(J-le,J)+X.substring(J,J+W),oe=Z.substring(0,te-le),re=Z.substring(te+W),z=X.substring(0,J-le),ue=X.substring(J+W))}return ie.length*2>=Z.length?[oe,re,z,ue,ie]:null}var P=L(_,B,Math.ceil(_.length/4)),G=L(_,B,Math.ceil(_.length/2)),j;if(!P&&!G)return null;G?P?j=P[4].length>G[4].length?P:G:j=G:j=P;var H,U,Q,$;N.length>k.length?(H=j[0],U=j[1],Q=j[2],$=j[3]):(Q=j[0],$=j[1],H=j[2],U=j[3]);var q=j[4];return[H,U,Q,$,q]}function c(N){for(var k=!1,_=[],B=0,L=null,P=0,G=0,j=0,H=0,U=0;P<N.length;)N[P][0]==n?(_[B++]=P,G=H,j=U,H=0,U=0,L=N[P][1]):(N[P][0]==e?H+=N[P][1].length:U+=N[P][1].length,L&&L.length<=Math.max(G,j)&&L.length<=Math.max(H,U)&&(N.splice(_[B-1],0,[t,L]),N[_[B-1]+1][0]=e,B--,B--,P=B>0?_[B-1]:-1,G=0,j=0,H=0,U=0,L=null,k=!0)),P++;for(k&&w(N),y(N),P=1;P<N.length;){if(N[P-1][0]==t&&N[P][0]==e){var Q=N[P-1][1],$=N[P][1],q=l(Q,$),Z=l($,Q);q>=Z?(q>=Q.length/2||q>=$.length/2)&&(N.splice(P,0,[n,$.substring(0,q)]),N[P-1][1]=Q.substring(0,Q.length-q),N[P+1][1]=$.substring(q),P++):(Z>=Q.length/2||Z>=$.length/2)&&(N.splice(P,0,[n,Q.substring(0,Z)]),N[P-1][0]=e,N[P-1][1]=$.substring(0,$.length-Z),N[P+1][0]=t,N[P+1][1]=Q.substring(Z),P++),P++}P++}}var f=/[^a-zA-Z0-9]/,p=/\s/,m=/[\r\n]/,g=/\n\r?\n$/,b=/^\r?\n\r?\n/;function y(N){function k(Z,X){if(!Z||!X)return 6;var te=Z.charAt(Z.length-1),Y=X.charAt(0),J=te.match(f),ie=Y.match(f),oe=J&&te.match(p),re=ie&&Y.match(p),z=oe&&te.match(m),ue=re&&Y.match(m),W=z&&Z.match(g),le=ue&&X.match(b);return W||le?5:z||ue?4:J&&!oe&&re?3:oe||re?2:J||ie?1:0}for(var _=1;_<N.length-1;){if(N[_-1][0]==n&&N[_+1][0]==n){var B=N[_-1][1],L=N[_][1],P=N[_+1][1],G=u(B,L);if(G){var j=L.substring(L.length-G);B=B.substring(0,B.length-G),L=j+L.substring(0,L.length-G),P=j+P}for(var H=B,U=L,Q=P,$=k(B,L)+k(L,P);L.charAt(0)===P.charAt(0);){B+=L.charAt(0),L=L.substring(1)+P.charAt(0),P=P.substring(1);var q=k(B,L)+k(L,P);q>=$&&($=q,H=B,U=L,Q=P)}N[_-1][1]!=H&&(H?N[_-1][1]=H:(N.splice(_-1,1),_--),N[_][1]=U,Q?N[_+1][1]=Q:(N.splice(_+1,1),_--))}_++}}function w(N,k){N.push([n,""]);for(var _=0,B=0,L=0,P="",G="",j;_<N.length;){if(_<N.length-1&&!N[_][1]){N.splice(_,1);continue}switch(N[_][0]){case e:L++,G+=N[_][1],_++;break;case t:B++,P+=N[_][1],_++;break;case n:var H=_-L-B-1;if(k){if(H>=0&&T(N[H][1])){var U=N[H][1].slice(-1);if(N[H][1]=N[H][1].slice(0,-1),P=U+P,G=U+G,!N[H][1]){N.splice(H,1),_--;var Q=H-1;N[Q]&&N[Q][0]===e&&(L++,G=N[Q][1]+G,Q--),N[Q]&&N[Q][0]===t&&(B++,P=N[Q][1]+P,Q--),H=Q}}if(E(N[_][1])){var U=N[_][1].charAt(0);N[_][1]=N[_][1].slice(1),P+=U,G+=U}}if(_<N.length-1&&!N[_][1]){N.splice(_,1);break}if(P.length>0||G.length>0){P.length>0&&G.length>0&&(j=s(G,P),j!==0&&(H>=0?N[H][1]+=G.substring(0,j):(N.splice(0,0,[n,G.substring(0,j)]),_++),G=G.substring(j),P=P.substring(j)),j=u(G,P),j!==0&&(N[_][1]=G.substring(G.length-j)+N[_][1],G=G.substring(0,G.length-j),P=P.substring(0,P.length-j)));var $=L+B;P.length===0&&G.length===0?(N.splice(_-$,$),_=_-$):P.length===0?(N.splice(_-$,$,[e,G]),_=_-$+1):G.length===0?(N.splice(_-$,$,[t,P]),_=_-$+1):(N.splice(_-$,$,[t,P],[e,G]),_=_-$+2)}_!==0&&N[_-1][0]===n?(N[_-1][1]+=N[_][1],N.splice(_,1)):_++,L=0,B=0,P="",G="";break}}N[N.length-1][1]===""&&N.pop();var q=!1;for(_=1;_<N.length-1;)N[_-1][0]===n&&N[_+1][0]===n&&(N[_][1].substring(N[_][1].length-N[_-1][1].length)===N[_-1][1]?(N[_][1]=N[_-1][1]+N[_][1].substring(0,N[_][1].length-N[_-1][1].length),N[_+1][1]=N[_-1][1]+N[_+1][1],N.splice(_-1,1),q=!0):N[_][1].substring(0,N[_+1][1].length)==N[_+1][1]&&(N[_-1][1]+=N[_+1][1],N[_][1]=N[_][1].substring(N[_+1][1].length)+N[_+1][1],N.splice(_+1,1),q=!0)),_++;q&&w(N,k)}function C(N){return N>=55296&&N<=56319}function S(N){return N>=56320&&N<=57343}function E(N){return S(N.charCodeAt(0))}function T(N){return C(N.charCodeAt(N.length-1))}function A(N){for(var k=[],_=0;_<N.length;_++)N[_][1].length>0&&k.push(N[_]);return k}function O(N,k,_,B){return T(N)||E(B)?null:A([[n,N],[t,k],[e,_],[n,B]])}function M(N,k,_){var B=typeof _=="number"?{index:_,length:0}:_.oldRange,L=typeof _=="number"?null:_.newRange,P=N.length,G=k.length;if(B.length===0&&(L===null||L.length===0)){var j=B.index,H=N.slice(0,j),U=N.slice(j),Q=L?L.index:null;e:{var $=j+G-P;if(Q!==null&&Q!==$||$<0||$>G)break e;var q=k.slice(0,$),Z=k.slice($);if(Z!==U)break e;var X=Math.min(j,$),te=H.slice(0,X),Y=q.slice(0,X);if(te!==Y)break e;var J=H.slice(X),ie=q.slice(X);return O(te,J,ie,U)}e:{if(Q!==null&&Q!==j)break e;var oe=j,q=k.slice(0,oe),Z=k.slice(oe);if(q!==H)break e;var re=Math.min(P-oe,G-oe),z=U.slice(U.length-re),ue=Z.slice(Z.length-re);if(z!==ue)break e;var J=U.slice(0,U.length-re),ie=Z.slice(0,Z.length-re);return O(H,J,ie,z)}}if(B.length>0&&L&&L.length===0)e:{var te=N.slice(0,B.index),z=N.slice(B.index+B.length),X=te.length,re=z.length;if(G<X+re)break e;var Y=k.slice(0,X),ue=k.slice(G-re);if(te!==Y||z!==ue)break e;var J=N.slice(X,P-re),ie=k.slice(X,G-re);return O(te,J,ie,z)}return null}function V(N,k,_,B){return r(N,k,_,B,!0)}return V.INSERT=e,V.DELETE=t,V.EQUAL=n,cm=V,cm}var Ea={exports:{}};Ea.exports;var BC;function pP(){return BC||(BC=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",c="[object GeneratorFunction]",f="[object Map]",p="[object Number]",m="[object Object]",g="[object Promise]",b="[object RegExp]",y="[object Set]",w="[object String]",C="[object Symbol]",S="[object WeakMap]",E="[object ArrayBuffer]",T="[object DataView]",A="[object Float32Array]",O="[object Float64Array]",M="[object Int8Array]",V="[object Int16Array]",N="[object Int32Array]",k="[object Uint8Array]",_="[object Uint8ClampedArray]",B="[object Uint16Array]",L="[object Uint32Array]",P=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,j=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,U={};U[i]=U[a]=U[E]=U[T]=U[s]=U[l]=U[A]=U[O]=U[M]=U[V]=U[N]=U[f]=U[p]=U[m]=U[b]=U[y]=U[w]=U[C]=U[k]=U[_]=U[B]=U[L]=!0,U[u]=U[d]=U[S]=!1;var Q=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,$=typeof self=="object"&&self&&self.Object===Object&&self,q=Q||$||Function("return this")(),Z=e&&!e.nodeType&&e,X=Z&&!0&&t&&!t.nodeType&&t,te=X&&X.exports===Z;function Y(x,R){return x.set(R[0],R[1]),x}function J(x,R){return x.add(R),x}function ie(x,R){for(var F=-1,K=x?x.length:0;++F<K&&R(x[F],F,x)!==!1;);return x}function oe(x,R){for(var F=-1,K=R.length,Oe=x.length;++F<K;)x[Oe+F]=R[F];return x}function re(x,R,F,K){for(var Oe=-1,ye=x?x.length:0;++Oe<ye;)F=R(F,x[Oe],Oe,x);return F}function z(x,R){for(var F=-1,K=Array(x);++F<x;)K[F]=R(F);return K}function ue(x,R){return x?.[R]}function W(x){var R=!1;if(x!=null&&typeof x.toString!="function")try{R=!!(x+"")}catch{}return R}function le(x){var R=-1,F=Array(x.size);return x.forEach(function(K,Oe){F[++R]=[Oe,K]}),F}function Ae(x,R){return function(F){return x(R(F))}}function Ne(x){var R=-1,F=Array(x.size);return x.forEach(function(K){F[++R]=K}),F}var Ve=Array.prototype,Ie=Function.prototype,Re=Object.prototype,at=q["__core-js_shared__"],Me=(function(){var x=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""})(),Ge=Ie.toString,We=Re.hasOwnProperty,Qe=Re.toString,st=RegExp("^"+Ge.call(We).replace(P,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=te?q.Buffer:void 0,mt=q.Symbol,bt=q.Uint8Array,Le=Ae(Object.getPrototypeOf,Object),_t=Object.create,tt=Re.propertyIsEnumerable,lt=Ve.splice,Ot=Object.getOwnPropertySymbols,Rt=it?it.isBuffer:void 0,rn=Ae(Object.keys,Object),Ht=_n(q,"DataView"),Pt=_n(q,"Map"),ne=_n(q,"Promise"),fe=_n(q,"Set"),ce=_n(q,"WeakMap"),de=_n(Object,"create"),Te=zt(Ht),ae=zt(Pt),_e=zt(ne),ke=zt(fe),De=zt(ce),nt=mt?mt.prototype:void 0,je=nt?nt.valueOf:void 0;function Be(x){var R=-1,F=x?x.length:0;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function on(){this.__data__=de?de(null):{}}function Tt(x){return this.has(x)&&delete this.__data__[x]}function qt(x){var R=this.__data__;if(de){var F=R[x];return F===r?void 0:F}return We.call(R,x)?R[x]:void 0}function co(x){var R=this.__data__;return de?R[x]!==void 0:We.call(R,x)}function an(x,R){var F=this.__data__;return F[x]=de&&R===void 0?r:R,this}Be.prototype.clear=on,Be.prototype.delete=Tt,Be.prototype.get=qt,Be.prototype.has=co,Be.prototype.set=an;function Nt(x){var R=-1,F=x?x.length:0;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Bc(){this.__data__=[]}function Fc(x){var R=this.__data__,F=Uo(R,x);if(F<0)return!1;var K=R.length-1;return F==K?R.pop():lt.call(R,F,1),!0}function Gc(x){var R=this.__data__,F=Uo(R,x);return F<0?void 0:R[F][1]}function $c(x){return Uo(this.__data__,x)>-1}function Vc(x,R){var F=this.__data__,K=Uo(F,x);return K<0?F.push([x,R]):F[K][1]=R,this}Nt.prototype.clear=Bc,Nt.prototype.delete=Fc,Nt.prototype.get=Gc,Nt.prototype.has=$c,Nt.prototype.set=Vc;function Lt(x){var R=-1,F=x?x.length:0;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Wc(){this.__data__={hash:new Be,map:new(Pt||Nt),string:new Be}}function Hc(x){return ho(this,x).delete(x)}function qc(x){return ho(this,x).get(x)}function zc(x){return ho(this,x).has(x)}function Xc(x,R){return ho(this,x).set(x,R),this}Lt.prototype.clear=Wc,Lt.prototype.delete=Hc,Lt.prototype.get=qc,Lt.prototype.has=zc,Lt.prototype.set=Xc;function Zt(x){this.__data__=new Nt(x)}function Yc(){this.__data__=new Nt}function Uc(x){return this.__data__.delete(x)}function Zc(x){return this.__data__.get(x)}function Jc(x){return this.__data__.has(x)}function Kc(x,R){var F=this.__data__;if(F instanceof Nt){var K=F.__data__;if(!Pt||K.length<n-1)return K.push([x,R]),this;F=this.__data__=new Lt(K)}return F.set(x,R),this}Zt.prototype.clear=Yc,Zt.prototype.delete=Uc,Zt.prototype.get=Zc,Zt.prototype.has=Jc,Zt.prototype.set=Kc;function Yo(x,R){var F=Qi(x)||Jo(x)?z(x.length,String):[],K=F.length,Oe=!!K;for(var ye in x)We.call(x,ye)&&!(Oe&&(ye=="length"||fd(ye,K)))&&F.push(ye);return F}function Rs(x,R,F){var K=x[R];(!(We.call(x,R)&&js(K,F))||F===void 0&&!(R in x))&&(x[R]=F)}function Uo(x,R){for(var F=x.length;F--;)if(js(x[F][0],R))return F;return-1}function Kn(x,R){return x&&Ki(R,ta(R),x)}function Zi(x,R,F,K,Oe,ye,$e){var Fe;if(K&&(Fe=ye?K(x,Oe,ye,$e):K(x)),Fe!==void 0)return Fe;if(!er(x))return x;var vt=Qi(x);if(vt){if(Fe=cd(x),!R)return sd(x,Fe)}else{var ze=Tr(x),Bt=ze==d||ze==c;if(Ls(x))return Zo(x,R);if(ze==m||ze==i||Bt&&!ye){if(W(x))return ye?x:{};if(Fe=Qn(Bt?{}:x),!R)return ld(x,Kn(Fe,x))}else{if(!U[ze])return ye?x:{};Fe=dd(x,ze,Zi,R)}}$e||($e=new Zt);var Jt=$e.get(x);if(Jt)return Jt;if($e.set(x,Fe),!vt)var Ct=F?ud(x):ta(x);return ie(Ct||x,function(Ft,Mt){Ct&&(Mt=Ft,Ft=x[Mt]),Rs(Fe,Mt,Zi(Ft,R,F,K,Mt,x,$e))}),Fe}function Qc(x){return er(x)?_t(x):{}}function ed(x,R,F){var K=R(x);return Qi(x)?K:oe(K,F(x))}function td(x){return Qe.call(x)}function nd(x){if(!er(x)||pd(x))return!1;var R=ea(x)||W(x)?st:j;return R.test(zt(x))}function rd(x){if(!ks(x))return rn(x);var R=[];for(var F in Object(x))We.call(x,F)&&F!="constructor"&&R.push(F);return R}function Zo(x,R){if(R)return x.slice();var F=new x.constructor(x.length);return x.copy(F),F}function Ji(x){var R=new x.constructor(x.byteLength);return new bt(R).set(new bt(x)),R}function fo(x,R){var F=R?Ji(x.buffer):x.buffer;return new x.constructor(F,x.byteOffset,x.byteLength)}function Ps(x,R,F){var K=R?F(le(x),!0):le(x);return re(K,Y,new x.constructor)}function Ms(x){var R=new x.constructor(x.source,G.exec(x));return R.lastIndex=x.lastIndex,R}function od(x,R,F){var K=R?F(Ne(x),!0):Ne(x);return re(K,J,new x.constructor)}function id(x){return je?Object(je.call(x)):{}}function ad(x,R){var F=R?Ji(x.buffer):x.buffer;return new x.constructor(F,x.byteOffset,x.length)}function sd(x,R){var F=-1,K=x.length;for(R||(R=Array(K));++F<K;)R[F]=x[F];return R}function Ki(x,R,F,K){F||(F={});for(var Oe=-1,ye=R.length;++Oe<ye;){var $e=R[Oe],Fe=void 0;Rs(F,$e,Fe===void 0?x[$e]:Fe)}return F}function ld(x,R){return Ki(x,Ar(x),R)}function ud(x){return ed(x,ta,Ar)}function ho(x,R){var F=x.__data__;return hd(R)?F[typeof R=="string"?"string":"hash"]:F.map}function _n(x,R){var F=ue(x,R);return nd(F)?F:void 0}var Ar=Ot?Ae(Ot,Object):gd,Tr=td;(Ht&&Tr(new Ht(new ArrayBuffer(1)))!=T||Pt&&Tr(new Pt)!=f||ne&&Tr(ne.resolve())!=g||fe&&Tr(new fe)!=y||ce&&Tr(new ce)!=S)&&(Tr=function(x){var R=Qe.call(x),F=R==m?x.constructor:void 0,K=F?zt(F):void 0;if(K)switch(K){case Te:return T;case ae:return f;case _e:return g;case ke:return y;case De:return S}return R});function cd(x){var R=x.length,F=x.constructor(R);return R&&typeof x[0]=="string"&&We.call(x,"index")&&(F.index=x.index,F.input=x.input),F}function Qn(x){return typeof x.constructor=="function"&&!ks(x)?Qc(Le(x)):{}}function dd(x,R,F,K){var Oe=x.constructor;switch(R){case E:return Ji(x);case s:case l:return new Oe(+x);case T:return fo(x,K);case A:case O:case M:case V:case N:case k:case _:case B:case L:return ad(x,K);case f:return Ps(x,K,F);case p:case w:return new Oe(x);case b:return Ms(x);case y:return od(x,K,F);case C:return id(x)}}function fd(x,R){return R=R??o,!!R&&(typeof x=="number"||H.test(x))&&x>-1&&x%1==0&&x<R}function hd(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}function pd(x){return!!Me&&Me in x}function ks(x){var R=x&&x.constructor,F=typeof R=="function"&&R.prototype||Re;return x===F}function zt(x){if(x!=null){try{return Ge.call(x)}catch{}try{return x+""}catch{}}return""}function Ds(x){return Zi(x,!0,!0)}function js(x,R){return x===R||x!==x&&R!==R}function Jo(x){return md(x)&&We.call(x,"callee")&&(!tt.call(x,"callee")||Qe.call(x)==i)}var Qi=Array.isArray;function Ko(x){return x!=null&&Bs(x.length)&&!ea(x)}function md(x){return Fs(x)&&Ko(x)}var Ls=Rt||bd;function ea(x){var R=er(x)?Qe.call(x):"";return R==d||R==c}function Bs(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=o}function er(x){var R=typeof x;return!!x&&(R=="object"||R=="function")}function Fs(x){return!!x&&typeof x=="object"}function ta(x){return Ko(x)?Yo(x):rd(x)}function gd(){return[]}function bd(){return!1}t.exports=Ds})(Ea,Ea.exports)),Ea.exports}var Ia={exports:{}};Ia.exports;var FC;function mP(){return FC||(FC=1,(function(t,e){var n=200,r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",c="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",b="[object Number]",y="[object Null]",w="[object Object]",C="[object Promise]",S="[object Proxy]",E="[object RegExp]",T="[object Set]",A="[object String]",O="[object Symbol]",M="[object Undefined]",V="[object WeakMap]",N="[object ArrayBuffer]",k="[object DataView]",_="[object Float32Array]",B="[object Float64Array]",L="[object Int8Array]",P="[object Int16Array]",G="[object Int32Array]",j="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",Q="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,X={};X[_]=X[B]=X[L]=X[P]=X[G]=X[j]=X[H]=X[U]=X[Q]=!0,X[s]=X[l]=X[N]=X[d]=X[k]=X[c]=X[f]=X[p]=X[g]=X[b]=X[w]=X[E]=X[T]=X[A]=X[V]=!1;var te=typeof Cn=="object"&&Cn&&Cn.Object===Object&&Cn,Y=typeof self=="object"&&self&&self.Object===Object&&self,J=te||Y||Function("return this")(),ie=e&&!e.nodeType&&e,oe=ie&&!0&&t&&!t.nodeType&&t,re=oe&&oe.exports===ie,z=re&&te.process,ue=(function(){try{return z&&z.binding&&z.binding("util")}catch{}})(),W=ue&&ue.isTypedArray;function le(x,R){for(var F=-1,K=x==null?0:x.length,Oe=0,ye=[];++F<K;){var $e=x[F];R($e,F,x)&&(ye[Oe++]=$e)}return ye}function Ae(x,R){for(var F=-1,K=R.length,Oe=x.length;++F<K;)x[Oe+F]=R[F];return x}function Ne(x,R){for(var F=-1,K=x==null?0:x.length;++F<K;)if(R(x[F],F,x))return!0;return!1}function Ve(x,R){for(var F=-1,K=Array(x);++F<x;)K[F]=R(F);return K}function Ie(x){return function(R){return x(R)}}function Re(x,R){return x.has(R)}function at(x,R){return x?.[R]}function Me(x){var R=-1,F=Array(x.size);return x.forEach(function(K,Oe){F[++R]=[Oe,K]}),F}function Ge(x,R){return function(F){return x(R(F))}}function We(x){var R=-1,F=Array(x.size);return x.forEach(function(K){F[++R]=K}),F}var Qe=Array.prototype,st=Function.prototype,it=Object.prototype,mt=J["__core-js_shared__"],bt=st.toString,Le=it.hasOwnProperty,_t=(function(){var x=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""})(),tt=it.toString,lt=RegExp("^"+bt.call(Le).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ot=re?J.Buffer:void 0,Rt=J.Symbol,rn=J.Uint8Array,Ht=it.propertyIsEnumerable,Pt=Qe.splice,ne=Rt?Rt.toStringTag:void 0,fe=Object.getOwnPropertySymbols,ce=Ot?Ot.isBuffer:void 0,de=Ge(Object.keys,Object),Te=Ar(J,"DataView"),ae=Ar(J,"Map"),_e=Ar(J,"Promise"),ke=Ar(J,"Set"),De=Ar(J,"WeakMap"),nt=Ar(Object,"create"),je=zt(Te),Be=zt(ae),on=zt(_e),Tt=zt(ke),qt=zt(De),co=Rt?Rt.prototype:void 0,an=co?co.valueOf:void 0;function Nt(x){var R=-1,F=x==null?0:x.length;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Bc(){this.__data__=nt?nt(null):{},this.size=0}function Fc(x){var R=this.has(x)&&delete this.__data__[x];return this.size-=R?1:0,R}function Gc(x){var R=this.__data__;if(nt){var F=R[x];return F===r?void 0:F}return Le.call(R,x)?R[x]:void 0}function $c(x){var R=this.__data__;return nt?R[x]!==void 0:Le.call(R,x)}function Vc(x,R){var F=this.__data__;return this.size+=this.has(x)?0:1,F[x]=nt&&R===void 0?r:R,this}Nt.prototype.clear=Bc,Nt.prototype.delete=Fc,Nt.prototype.get=Gc,Nt.prototype.has=$c,Nt.prototype.set=Vc;function Lt(x){var R=-1,F=x==null?0:x.length;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Wc(){this.__data__=[],this.size=0}function Hc(x){var R=this.__data__,F=Zo(R,x);if(F<0)return!1;var K=R.length-1;return F==K?R.pop():Pt.call(R,F,1),--this.size,!0}function qc(x){var R=this.__data__,F=Zo(R,x);return F<0?void 0:R[F][1]}function zc(x){return Zo(this.__data__,x)>-1}function Xc(x,R){var F=this.__data__,K=Zo(F,x);return K<0?(++this.size,F.push([x,R])):F[K][1]=R,this}Lt.prototype.clear=Wc,Lt.prototype.delete=Hc,Lt.prototype.get=qc,Lt.prototype.has=zc,Lt.prototype.set=Xc;function Zt(x){var R=-1,F=x==null?0:x.length;for(this.clear();++R<F;){var K=x[R];this.set(K[0],K[1])}}function Yc(){this.size=0,this.__data__={hash:new Nt,map:new(ae||Lt),string:new Nt}}function Uc(x){var R=_n(this,x).delete(x);return this.size-=R?1:0,R}function Zc(x){return _n(this,x).get(x)}function Jc(x){return _n(this,x).has(x)}function Kc(x,R){var F=_n(this,x),K=F.size;return F.set(x,R),this.size+=F.size==K?0:1,this}Zt.prototype.clear=Yc,Zt.prototype.delete=Uc,Zt.prototype.get=Zc,Zt.prototype.has=Jc,Zt.prototype.set=Kc;function Yo(x){var R=-1,F=x==null?0:x.length;for(this.__data__=new Zt;++R<F;)this.add(x[R])}function Rs(x){return this.__data__.set(x,r),this}function Uo(x){return this.__data__.has(x)}Yo.prototype.add=Yo.prototype.push=Rs,Yo.prototype.has=Uo;function Kn(x){var R=this.__data__=new Lt(x);this.size=R.size}function Zi(){this.__data__=new Lt,this.size=0}function Qc(x){var R=this.__data__,F=R.delete(x);return this.size=R.size,F}function ed(x){return this.__data__.get(x)}function td(x){return this.__data__.has(x)}function nd(x,R){var F=this.__data__;if(F instanceof Lt){var K=F.__data__;if(!ae||K.length<n-1)return K.push([x,R]),this.size=++F.size,this;F=this.__data__=new Zt(K)}return F.set(x,R),this.size=F.size,this}Kn.prototype.clear=Zi,Kn.prototype.delete=Qc,Kn.prototype.get=ed,Kn.prototype.has=td,Kn.prototype.set=nd;function rd(x,R){var F=Jo(x),K=!F&&js(x),Oe=!F&&!K&&Ko(x),ye=!F&&!K&&!Oe&&Fs(x),$e=F||K||Oe||ye,Fe=$e?Ve(x.length,String):[],vt=Fe.length;for(var ze in x)Le.call(x,ze)&&!($e&&(ze=="length"||Oe&&(ze=="offset"||ze=="parent")||ye&&(ze=="buffer"||ze=="byteLength"||ze=="byteOffset")||dd(ze,vt)))&&Fe.push(ze);return Fe}function Zo(x,R){for(var F=x.length;F--;)if(Ds(x[F][0],R))return F;return-1}function Ji(x,R,F){var K=R(x);return Jo(x)?K:Ae(K,F(x))}function fo(x){return x==null?x===void 0?M:y:ne&&ne in Object(x)?Tr(x):ks(x)}function Ps(x){return er(x)&&fo(x)==s}function Ms(x,R,F,K,Oe){return x===R?!0:x==null||R==null||!er(x)&&!er(R)?x!==x&&R!==R:od(x,R,F,K,Ms,Oe)}function od(x,R,F,K,Oe,ye){var $e=Jo(x),Fe=Jo(R),vt=$e?l:Qn(x),ze=Fe?l:Qn(R);vt=vt==s?w:vt,ze=ze==s?w:ze;var Bt=vt==w,Jt=ze==w,Ct=vt==ze;if(Ct&&Ko(x)){if(!Ko(R))return!1;$e=!0,Bt=!1}if(Ct&&!Bt)return ye||(ye=new Kn),$e||Fs(x)?Ki(x,R,F,K,Oe,ye):ld(x,R,vt,F,K,Oe,ye);if(!(F&o)){var Ft=Bt&&Le.call(x,"__wrapped__"),Mt=Jt&&Le.call(R,"__wrapped__");if(Ft||Mt){var Vr=Ft?x.value():x,Nr=Mt?R.value():R;return ye||(ye=new Kn),Oe(Vr,Nr,F,K,ye)}}return Ct?(ye||(ye=new Kn),ud(x,R,F,K,Oe,ye)):!1}function id(x){if(!Bs(x)||hd(x))return!1;var R=Ls(x)?lt:q;return R.test(zt(x))}function ad(x){return er(x)&&ea(x.length)&&!!X[fo(x)]}function sd(x){if(!pd(x))return de(x);var R=[];for(var F in Object(x))Le.call(x,F)&&F!="constructor"&&R.push(F);return R}function Ki(x,R,F,K,Oe,ye){var $e=F&o,Fe=x.length,vt=R.length;if(Fe!=vt&&!($e&&vt>Fe))return!1;var ze=ye.get(x);if(ze&&ye.get(R))return ze==R;var Bt=-1,Jt=!0,Ct=F&i?new Yo:void 0;for(ye.set(x,R),ye.set(R,x);++Bt<Fe;){var Ft=x[Bt],Mt=R[Bt];if(K)var Vr=$e?K(Mt,Ft,Bt,R,x,ye):K(Ft,Mt,Bt,x,R,ye);if(Vr!==void 0){if(Vr)continue;Jt=!1;break}if(Ct){if(!Ne(R,function(Nr,po){if(!Re(Ct,po)&&(Ft===Nr||Oe(Ft,Nr,F,K,ye)))return Ct.push(po)})){Jt=!1;break}}else if(!(Ft===Mt||Oe(Ft,Mt,F,K,ye))){Jt=!1;break}}return ye.delete(x),ye.delete(R),Jt}function ld(x,R,F,K,Oe,ye,$e){switch(F){case k:if(x.byteLength!=R.byteLength||x.byteOffset!=R.byteOffset)return!1;x=x.buffer,R=R.buffer;case N:return!(x.byteLength!=R.byteLength||!ye(new rn(x),new rn(R)));case d:case c:case b:return Ds(+x,+R);case f:return x.name==R.name&&x.message==R.message;case E:case A:return x==R+"";case g:var Fe=Me;case T:var vt=K&o;if(Fe||(Fe=We),x.size!=R.size&&!vt)return!1;var ze=$e.get(x);if(ze)return ze==R;K|=i,$e.set(x,R);var Bt=Ki(Fe(x),Fe(R),K,Oe,ye,$e);return $e.delete(x),Bt;case O:if(an)return an.call(x)==an.call(R)}return!1}function ud(x,R,F,K,Oe,ye){var $e=F&o,Fe=ho(x),vt=Fe.length,ze=ho(R),Bt=ze.length;if(vt!=Bt&&!$e)return!1;for(var Jt=vt;Jt--;){var Ct=Fe[Jt];if(!($e?Ct in R:Le.call(R,Ct)))return!1}var Ft=ye.get(x);if(Ft&&ye.get(R))return Ft==R;var Mt=!0;ye.set(x,R),ye.set(R,x);for(var Vr=$e;++Jt<vt;){Ct=Fe[Jt];var Nr=x[Ct],po=R[Ct];if(K)var zv=$e?K(po,Nr,Ct,R,x,ye):K(Nr,po,Ct,x,R,ye);if(!(zv===void 0?Nr===po||Oe(Nr,po,F,K,ye):zv)){Mt=!1;break}Vr||(Vr=Ct=="constructor")}if(Mt&&!Vr){var Gs=x.constructor,$s=R.constructor;Gs!=$s&&"constructor"in x&&"constructor"in R&&!(typeof Gs=="function"&&Gs instanceof Gs&&typeof $s=="function"&&$s instanceof $s)&&(Mt=!1)}return ye.delete(x),ye.delete(R),Mt}function ho(x){return Ji(x,ta,cd)}function _n(x,R){var F=x.__data__;return fd(R)?F[typeof R=="string"?"string":"hash"]:F.map}function Ar(x,R){var F=at(x,R);return id(F)?F:void 0}function Tr(x){var R=Le.call(x,ne),F=x[ne];try{x[ne]=void 0;var K=!0}catch{}var Oe=tt.call(x);return K&&(R?x[ne]=F:delete x[ne]),Oe}var cd=fe?function(x){return x==null?[]:(x=Object(x),le(fe(x),function(R){return Ht.call(x,R)}))}:gd,Qn=fo;(Te&&Qn(new Te(new ArrayBuffer(1)))!=k||ae&&Qn(new ae)!=g||_e&&Qn(_e.resolve())!=C||ke&&Qn(new ke)!=T||De&&Qn(new De)!=V)&&(Qn=function(x){var R=fo(x),F=R==w?x.constructor:void 0,K=F?zt(F):"";if(K)switch(K){case je:return k;case Be:return g;case on:return C;case Tt:return T;case qt:return V}return R});function dd(x,R){return R=R??a,!!R&&(typeof x=="number"||Z.test(x))&&x>-1&&x%1==0&&x<R}function fd(x){var R=typeof x;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?x!=="__proto__":x===null}function hd(x){return!!_t&&_t in x}function pd(x){var R=x&&x.constructor,F=typeof R=="function"&&R.prototype||it;return x===F}function ks(x){return tt.call(x)}function zt(x){if(x!=null){try{return bt.call(x)}catch{}try{return x+""}catch{}}return""}function Ds(x,R){return x===R||x!==x&&R!==R}var js=Ps((function(){return arguments})())?Ps:function(x){return er(x)&&Le.call(x,"callee")&&!Ht.call(x,"callee")},Jo=Array.isArray;function Qi(x){return x!=null&&ea(x.length)&&!Ls(x)}var Ko=ce||bd;function md(x,R){return Ms(x,R)}function Ls(x){if(!Bs(x))return!1;var R=fo(x);return R==p||R==m||R==u||R==S}function ea(x){return typeof x=="number"&&x>-1&&x%1==0&&x<=a}function Bs(x){var R=typeof x;return x!=null&&(R=="object"||R=="function")}function er(x){return x!=null&&typeof x=="object"}var Fs=W?Ie(W):ad;function ta(x){return Qi(x)?rd(x):sd(x)}function gd(){return[]}function bd(){return!1}t.exports=md})(Ia,Ia.exports)),Ia.exports}var pl={},GC;function Lte(){if(GC)return pl;GC=1,Object.defineProperty(pl,"__esModule",{value:!0});const t=pP(),e=mP();var n;return(function(r){function o(l={},u={},d=!1){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});let c=t(u);d||(c=Object.keys(c).reduce((f,p)=>(c[p]!=null&&(f[p]=c[p]),f),{}));for(const f in l)l[f]!==void 0&&u[f]===void 0&&(c[f]=l[f]);return Object.keys(c).length>0?c:void 0}r.compose=o;function i(l={},u={}){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});const d=Object.keys(l).concat(Object.keys(u)).reduce((c,f)=>(e(l[f],u[f])||(c[f]=u[f]===void 0?null:u[f]),c),{});return Object.keys(d).length>0?d:void 0}r.diff=i;function a(l={},u={}){l=l||{};const d=Object.keys(u).reduce((c,f)=>(u[f]!==l[f]&&l[f]!==void 0&&(c[f]=u[f]),c),{});return Object.keys(l).reduce((c,f)=>(l[f]!==u[f]&&u[f]===void 0&&(c[f]=null),c),d)}r.invert=a;function s(l,u,d=!1){if(typeof l!="object")return u;if(typeof u!="object")return;if(!d)return u;const c=Object.keys(u).reduce((f,p)=>(l[p]===void 0&&(f[p]=u[p]),f),{});return Object.keys(c).length>0?c:void 0}r.transform=s})(n||(n={})),pl.default=n,pl}var ml={},$C;function gP(){if($C)return ml;$C=1,Object.defineProperty(ml,"__esModule",{value:!0});var t;return(function(e){function n(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=n})(t||(t={})),ml.default=t,ml}var gl={},VC;function Bte(){if(VC)return gl;VC=1,Object.defineProperty(gl,"__esModule",{value:!0});const t=gP();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=t.default.length(o);if(r>=a-i?(r=a-i,this.index+=1,this.offset=0):this.offset+=r,typeof o.delete=="number")return{delete:r};{const s={};return o.attributes&&(s.attributes=o.attributes),typeof o.retain=="number"?s.retain=r:typeof o.retain=="object"&&o.retain!==null?s.retain=o.retain:typeof o.insert=="string"?s.insert=o.insert.substr(i,r):s.insert=o.insert,s}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?t.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=o,[i].concat(a)}}else return[]}}return gl.default=e,gl}var WC;function Fte(){return WC||(WC=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=jte(),r=pP(),o=mP(),i=Lte();e.AttributeMap=i.default;const a=gP();e.Op=a.default;const s=Bte();e.OpIterator=s.default;const l="\0",u=(c,f)=>{if(typeof c!="object"||c===null)throw new Error(`cannot retain a ${typeof c}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const p=Object.keys(c)[0];if(!p||p!==Object.keys(f)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(f)[0]}`);return[p,c[p],f[p]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,p){this.handlers[f]=p}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const p=this.handlers[f];if(!p)throw new Error(`no handlers for embed type "${f}"`);return p}insert(f,p){const m={};return typeof f=="string"&&f.length===0?this:(m.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,p){if(typeof f=="number"&&f<=0)return this;const m={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m)}push(f){let p=this.ops.length,m=this.ops[p-1];if(f=r(f),typeof m=="object"){if(typeof f.delete=="number"&&typeof m.delete=="number")return this.ops[p-1]={delete:m.delete+f.delete},this;if(typeof m.delete=="number"&&f.insert!=null&&(p-=1,m=this.ops[p-1],typeof m!="object"))return this.ops.unshift(f),this;if(o(f.attributes,m.attributes)){if(typeof f.insert=="string"&&typeof m.insert=="string")return this.ops[p-1]={insert:m.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof m.retain=="number")return this.ops[p-1]={retain:m.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const p=[],m=[];return this.forEach(g=>{(f(g)?p:m).push(g)}),[p,m]}reduce(f,p){return this.ops.reduce(f,p)}changeLength(){return this.reduce((f,p)=>p.insert?f+a.default.length(p):p.delete?f-p.delete:f,0)}length(){return this.reduce((f,p)=>f+a.default.length(p),0)}slice(f=0,p=1/0){const m=[],g=new s.default(this.ops);let b=0;for(;b<p&&g.hasNext();){let y;b<f?y=g.next(f-b):(y=g.next(p-b),m.push(y)),b+=a.default.length(y)}return new d(m)}compose(f){const p=new s.default(this.ops),m=new s.default(f.ops),g=[],b=m.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let w=b.retain;for(;p.peekType()==="insert"&&p.peekLength()<=w;)w-=p.peekLength(),g.push(p.next());b.retain-w>0&&m.next(b.retain-w)}const y=new d(g);for(;p.hasNext()||m.hasNext();)if(m.peekType()==="insert")y.push(m.next());else if(p.peekType()==="delete")y.push(p.next());else{const w=Math.min(p.peekLength(),m.peekLength()),C=p.next(w),S=m.next(w);if(S.retain){const E={};if(typeof C.retain=="number")E.retain=typeof S.retain=="number"?w:S.retain;else if(typeof S.retain=="number")C.retain==null?E.insert=C.insert:E.retain=C.retain;else{const A=C.retain==null?"insert":"retain",[O,M,V]=u(C[A],S.retain),N=d.getHandler(O);E[A]={[O]:N.compose(M,V,A==="retain")}}const T=i.default.compose(C.attributes,S.attributes,typeof C.retain=="number");if(T&&(E.attributes=T),y.push(E),!m.hasNext()&&o(y.ops[y.ops.length-1],E)){const A=new d(p.rest());return y.concat(A).chop()}}else typeof S.delete=="number"&&(typeof C.retain=="number"||typeof C.retain=="object"&&C.retain!==null)&&y.push(S)}return y.chop()}concat(f){const p=new d(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p}diff(f,p){if(this.ops===f.ops)return new d;const m=[this,f].map(C=>C.map(S=>{if(S.insert!=null)return typeof S.insert=="string"?S.insert:l;const E=C===f?"on":"with";throw new Error("diff() called "+E+" non-document")}).join("")),g=new d,b=n(m[0],m[1],p,!0),y=new s.default(this.ops),w=new s.default(f.ops);return b.forEach(C=>{let S=C[1].length;for(;S>0;){let E=0;switch(C[0]){case n.INSERT:E=Math.min(w.peekLength(),S),g.push(w.next(E));break;case n.DELETE:E=Math.min(S,y.peekLength()),y.next(E),g.delete(E);break;case n.EQUAL:E=Math.min(y.peekLength(),w.peekLength(),S);const T=y.next(E),A=w.next(E);o(T.insert,A.insert)?g.retain(E,i.default.diff(T.attributes,A.attributes)):g.push(A).delete(E);break}S-=E}}),g.chop()}eachLine(f,p=`
87
+ `){const m=new s.default(this.ops);let g=new d,b=0;for(;m.hasNext();){if(m.peekType()!=="insert")return;const y=m.peek(),w=a.default.length(y)-m.peekLength(),C=typeof y.insert=="string"?y.insert.indexOf(p,w)-w:-1;if(C<0)g.push(m.next());else if(C>0)g.push(m.next(C));else{if(f(g,m.next(1).attributes||{},b)===!1)return;b+=1,g=new d}}g.length()>0&&f(g,{},b)}invert(f){const p=new d;return this.reduce((m,g)=>{if(g.insert)p.delete(a.default.length(g));else{if(typeof g.retain=="number"&&g.attributes==null)return p.retain(g.retain),m+g.retain;if(g.delete||typeof g.retain=="number"){const b=g.delete||g.retain;return f.slice(m,m+b).forEach(w=>{g.delete?p.push(w):g.retain&&g.attributes&&p.retain(a.default.length(w),i.default.invert(g.attributes,w.attributes))}),m+b}else if(typeof g.retain=="object"&&g.retain!==null){const b=f.slice(m,m+1),y=new s.default(b.ops).next(),[w,C,S]=u(g.retain,y.insert),E=d.getHandler(w);return p.retain({[w]:E.invert(C,S)},i.default.invert(g.attributes,y.attributes)),m+1}}return m},0),p.chop()}transform(f,p=!1){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);const m=f,g=new s.default(this.ops),b=new s.default(m.ops),y=new d;for(;g.hasNext()||b.hasNext();)if(g.peekType()==="insert"&&(p||b.peekType()!=="insert"))y.retain(a.default.length(g.next()));else if(b.peekType()==="insert")y.push(b.next());else{const w=Math.min(g.peekLength(),b.peekLength()),C=g.next(w),S=b.next(w);if(C.delete)continue;if(S.delete)y.push(S);else{const E=C.retain,T=S.retain;let A=typeof T=="object"&&T!==null?T:w;if(typeof E=="object"&&E!==null&&typeof T=="object"&&T!==null){const O=Object.keys(E)[0];if(O===Object.keys(T)[0]){const M=d.getHandler(O);M&&(A={[O]:M.transform(E[O],T[O],p)})}}y.retain(A,i.default.transform(C.attributes,S.attributes,p))}}return y.chop()}transformPosition(f,p=!1){p=!!p;const m=new s.default(this.ops);let g=0;for(;m.hasNext()&&g<=f;){const b=m.peekLength(),y=m.peekType();if(m.next(),y==="delete"){f-=Math.min(b,f-g);continue}else y==="insert"&&(g<f||!p)&&(f+=b);g+=b}return f}}d.Op=a.default,d.OpIterator=s.default,d.AttributeMap=i.default,d.handlers={},e.default=d,t.exports=d,t.exports.default=d})(hl,hl.exports)),hl.exports}var Sn=Fte();const be=An(Sn);class Jn extends pn{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Jn.blotName="break";Jn.tagName="BR";let Wn=class extends hu{};const Gte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Dc(t){return t.replace(/[&<>"']/g,e=>Gte[e])}class Xt extends Mv{static allowedChildren=[Xt,Jn,pn,Wn];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(e,n){const r=Xt.order.indexOf(e),o=Xt.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e<n?-1:1}formatAt(e,n,r,o){if(Xt.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ve.BLOT)){const i=this.isolate(e,n);o&&i.wrap(r,o)}else super.formatAt(e,n,r,o)}optimize(e){if(super.optimize(e),this.parent instanceof Xt&&Xt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}const HC=1;class Dt extends Qa{cache={};delta(){return this.cache.delta==null&&(this.cache.delta=bP(this)),this.cache.delta}deleteAt(e,n){super.deleteAt(e,n),this.cache={}}formatAt(e,n,r,o){n<=0||(this.scroll.query(r,ve.BLOCK)?e+n===this.length()&&this.format(r,o):super.formatAt(e,Math.min(n,this.length()-e-1),r,o),this.cache={})}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r),this.cache={};return}if(n.length===0)return;const o=n.split(`
88
88
  `),i=o.shift();i.length>0&&(e<this.length()-1||this.children.tail==null?super.insertAt(Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});let a=this;o.reduce((s,l)=>(a=a.split(s,!0),a.insertAt(0,l),l.length),e+i.length)}insertBefore(e,n){const{head:r}=this.children;super.insertBefore(e,n),r instanceof Jn&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+HC),this.cache.length}moveChildren(e,n){super.moveChildren(e,n),this.cache={}}optimize(e){super.optimize(e),this.cache={}}path(e){return super.path(e,!0)}removeChild(e){super.removeChild(e),this.cache={}}split(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(e===0||e>=this.length()-HC)){const o=this.clone();return e===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const r=super.split(e,n);return this.cache={},r}}Dt.blotName="block";Dt.tagName="P";Dt.defaultChild=Jn;Dt.allowedChildren=[Jn,Xt,pn,Wn];class wn extends pn{attach(){super.attach(),this.attributes=new Mc(this.domNode)}delta(){return new be().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,n){const r=this.scroll.query(e,ve.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(e,n,r,o){this.format(r,o)}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r);return}const o=n.split(`
89
- `),i=o.pop(),a=o.map(l=>{const u=this.scroll.create(Dt.blotName);return u.insertAt(0,l),u}),s=this.split(e);a.forEach(l=>{this.parent.insertBefore(l,s)}),i&&this.parent.insertBefore(this.scroll.create("text",i),s)}}wn.scope=ve.BLOCK_BLOT;function vP(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.descendants(Vt).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),yn(r,{},e)),new be).insert(`
90
- `,yn(t))}function yn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return t==null||("formats"in t&&typeof t.formats=="function"&&(e={...e,...t.formats()},n&&delete e["code-token"]),t.parent==null||t.parent.statics.blotName==="scroll"||t.parent.statics.scope!==t.statics.scope)?e:yn(t.parent,e,n)}class Dn extends pn{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(e,n,r){super(e,n),this.selection=r,this.textNode=document.createTextNode(Dn.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,n){if(this.savedLength!==0){super.format(e,n);return}let r=this,o=0;for(;r!=null&&r.statics.scope!==ve.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Dn.CONTENTS.length,r.optimize(),r.formatAt(o,Dn.CONTENTS.length,e,n),this.savedLength=0)}index(e,n){return e===this.textNode?0:super.index(e,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof Wn?this.prev:null,r=n?n.length():0,o=this.next instanceof Wn?this.next:null,i=o?o.text:"",{textNode:a}=this,s=a.data.split(Dn.CONTENTS).join("");a.data=Dn.CONTENTS;let l;if(n)l=n,(s||o)&&(n.insertAt(n.length(),s+i),o&&o.remove());else if(o)l=o,o.insertAt(0,s);else{const u=document.createTextNode(s);l=this.scroll.create(u),this.parent.insertBefore(l,this)}if(this.remove(),e){const u=(f,p)=>n&&f===n.domNode?p:f===a?r+p-1:o&&f===o.domNode?r+s.length+p:null,d=u(e.start.node,e.start.offset),c=u(e.end.node,e.end.offset);if(d!==null&&c!==null)return{startNode:l.domNode,startOffset:d,endNode:l.domNode,endOffset:c}}return null}update(e,n){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(n.range=r)}}optimize(e){super.optimize(e);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=Dn.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}}var dm={exports:{}},qC;function $te(){return qC||(qC=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function i(l,u,d,c,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new o(d,c||l,f),m=n?n+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],d,c;if(this._eventsCount===0)return u;for(c in d=this._events)e.call(d,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},s.prototype.listeners=function(u){var d=n?n+u:u,c=this._events[d];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,p=c.length,m=new Array(p);f<p;f++)m[f]=c[f].fn;return m},s.prototype.listenerCount=function(u){var d=n?n+u:u,c=this._events[d];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,d,c,f,p,m){var g=n?n+u:u;if(!this._events[g])return!1;var b=this._events[g],y=arguments.length,w,C;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,c),!0;case 4:return b.fn.call(b.context,d,c,f),!0;case 5:return b.fn.call(b.context,d,c,f,p),!0;case 6:return b.fn.call(b.context,d,c,f,p,m),!0}for(C=1,w=new Array(y-1);C<y;C++)w[C-1]=arguments[C];b.fn.apply(b.context,w)}else{var S=b.length,E;for(C=0;C<S;C++)switch(b[C].once&&this.removeListener(u,b[C].fn,void 0,!0),y){case 1:b[C].fn.call(b[C].context);break;case 2:b[C].fn.call(b[C].context,d);break;case 3:b[C].fn.call(b[C].context,d,c);break;case 4:b[C].fn.call(b[C].context,d,c,f);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];b[C].fn.apply(b[C].context,w)}}return!0},s.prototype.on=function(u,d,c){return i(this,u,d,c,!1)},s.prototype.once=function(u,d,c){return i(this,u,d,c,!0)},s.prototype.removeListener=function(u,d,c,f){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!f||m.once)&&(!c||m.context===c)&&a(this,p);else{for(var g=0,b=[],y=m.length;g<y;g++)(m[g].fn!==d||f&&!m[g].once||c&&m[g].context!==c)&&b.push(m[g]);b.length?this._events[p]=b.length===1?b[0]:b:a(this,p)}return this},s.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s})(dm)),dm.exports}var Vte=$te();const Wte=An(Vte),Pg=new WeakMap,Mg=["error","warn","log","info"];let kg="warn";function yP(t){if(kg&&Mg.indexOf(t)<=Mg.indexOf(kg)){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t](...n)}}function $r(t){return Mg.reduce((e,n)=>(e[n]=yP.bind(console,n,t),e),{})}$r.level=t=>{kg=t};yP.level=$r.level;const fm=$r("quill:events"),Hte=["selectionchange","mousedown","mouseup","click"];Hte.forEach(t=>{document.addEventListener(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(o=>{const i=Pg.get(o);i&&i.emitter&&i.emitter.handleDOM(...n)})})});class ge extends Wte{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",fm.error)}emit(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fm.log.call(fm,...n),super.emit(...n)}handleDOM(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(this.domListeners[e.type]||[]).forEach(i=>{let{node:a,handler:s}=i;(e.target===a||a.contains(e.target))&&s(e,...r)})}listenDOM(e,n,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:n,handler:r})}}const hm=$r("quill:selection");class Mo{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=n}}class qte{constructor(e,n){this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Mo(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,ge.sources.USER),1)}),this.emitter.on(ge.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(ge.events.SCROLL_UPDATE,(o,i)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=i.some(s=>s.type==="characterData"||s.type==="childList"||s.type==="attributes"&&s.target===this.root);this.update(a?ge.sources.SILENT:o)}catch{}})}),this.emitter.on(ge.events.SCROLL_OPTIMIZE,(r,o)=>{if(o.range){const{startNode:i,startOffset:a,endNode:s,endOffset:l}=o.range;this.setNativeRange(i,a,s,l),this.update(ge.sources.SILENT)}}),this.update(ge.sources.SILENT)}handleComposition(){this.emitter.on(ge.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(ge.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(ge.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,n){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,ve.BLOCK))){if(r.start.node!==this.cursor.textNode){const o=this.scroll.find(r.start.node,!1);if(o==null)return;if(o instanceof Vt){const i=o.split(r.start.offset);o.parent.insertBefore(this.cursor,i)}else o.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),n=Math.min(e+n,r-1)-e;let o,[i,a]=this.scroll.leaf(e);if(i==null)return null;if(n>0&&a===i.length()){const[d]=this.scroll.leaf(e+1);if(d){const[c]=this.scroll.line(e),[f]=this.scroll.line(e+1);c===f&&(i=d,a=0)}}[o,a]=i.position(a,!0);const s=document.createRange();if(n>0)return s.setStart(o,a),[i,a]=this.scroll.leaf(e+n),i==null?null:([o,a]=i.position(a,!0),s.setEnd(o,a),s.getBoundingClientRect());let l="left",u;if(o instanceof Text){if(!o.data.length)return null;a<o.data.length?(s.setStart(o,a),s.setEnd(o,a+1)):(s.setStart(o,a-1),s.setEnd(o,a),l="right"),u=s.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;u=i.domNode.getBoundingClientRect(),a>0&&(l="right")}return{bottom:u.top+u.height,height:u.height,left:u[l],right:u[l],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const n=e.getRangeAt(0);if(n==null)return null;const r=this.normalizeNative(n);return hm.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const n=this.getNativeRange();return n==null?[null,null]:[this.normalizedToRange(n),n]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&pm(this.root,document.activeElement)}normalizedToRange(e){const n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);const r=n.map(a=>{const[s,l]=a,u=this.scroll.find(s,!0),d=u.offset(this.scroll);return l===0?d:u instanceof Vt?d+u.index(s,l):d+u.length()}),o=Math.min(Math.max(...r),this.scroll.length()-1),i=Math.min(o,...r);return new Mo(i,o-i)}normalizeNative(e){if(!pm(this.root,e.startContainer)||!e.collapsed&&!pm(this.root,e.endContainer))return null;const n={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[n.start,n.end].forEach(r=>{let{node:o,offset:i}=r;for(;!(o instanceof Text)&&o.childNodes.length>0;)if(o.childNodes.length>i)o=o.childNodes[i],i=0;else if(o.childNodes.length===i)o=o.lastChild,o instanceof Text?i=o.data.length:o.childNodes.length>0?i=o.childNodes.length:i=o.childNodes.length+1;else break;r.node=o,r.offset=i}),n}rangeToNative(e){const n=this.scroll.length(),r=(o,i)=>{o=Math.min(n-1,o);const[a,s]=this.scroll.leaf(o);return a?a.position(s,i):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(hm.info("setNativeRange",e,n,r,o),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:s}=this.getNativeRange()||{};if(s==null||i||e!==s.startContainer||n!==s.startOffset||r!==s.endContainer||o!==s.endOffset){e instanceof Element&&e.tagName==="BR"&&(n=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(o=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const l=document.createRange();l.setStart(e,n),l.setEnd(r,o),a.removeAllRanges(),a.addRange(l)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge.sources.API;if(typeof n=="string"&&(r=n,n=!1),hm.info("setRange",e),e!=null){const o=this.rangeToNative(e);this.setNativeRange(...o,n)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge.sources.USER;const n=this.lastRange,[r,o]=this.getRange();if(this.lastRange=r,this.lastNative=o,this.lastRange!=null&&(this.savedRange=this.lastRange),!Pv(n,this.lastRange)){if(!this.composing&&o!=null&&o.native.collapsed&&o.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const i=[ge.events.SELECTION_CHANGE,vi(this.lastRange),vi(n),e];this.emitter.emit(ge.events.EDITOR_CHANGE,...i),e!==ge.sources.SILENT&&this.emitter.emit(...i)}}}function pm(t,e){try{e.parentNode}catch{return!1}return t.contains(e)}const zte=/^[ -~]*$/;class Xte{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let n=this.scroll.length();this.scroll.batchStart();const r=zC(e),o=new be;return Ute(r.ops.slice()).reduce((a,s)=>{const l=Sn.Op.length(s);let u=s.attributes||{},d=!1,c=!1;if(s.insert!=null){if(o.retain(l),typeof s.insert=="string"){const m=s.insert;c=!m.endsWith(`
89
+ `),i=o.pop(),a=o.map(l=>{const u=this.scroll.create(Dt.blotName);return u.insertAt(0,l),u}),s=this.split(e);a.forEach(l=>{this.parent.insertBefore(l,s)}),i&&this.parent.insertBefore(this.scroll.create("text",i),s)}}wn.scope=ve.BLOCK_BLOT;function bP(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.descendants(Vt).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),yn(r,{},e)),new be).insert(`
90
+ `,yn(t))}function yn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return t==null||("formats"in t&&typeof t.formats=="function"&&(e={...e,...t.formats()},n&&delete e["code-token"]),t.parent==null||t.parent.statics.blotName==="scroll"||t.parent.statics.scope!==t.statics.scope)?e:yn(t.parent,e,n)}class Dn extends pn{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\uFEFF";static value(){}constructor(e,n,r){super(e,n),this.selection=r,this.textNode=document.createTextNode(Dn.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,n){if(this.savedLength!==0){super.format(e,n);return}let r=this,o=0;for(;r!=null&&r.statics.scope!==ve.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=Dn.CONTENTS.length,r.optimize(),r.formatAt(o,Dn.CONTENTS.length,e,n),this.savedLength=0)}index(e,n){return e===this.textNode?0:super.index(e,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof Wn?this.prev:null,r=n?n.length():0,o=this.next instanceof Wn?this.next:null,i=o?o.text:"",{textNode:a}=this,s=a.data.split(Dn.CONTENTS).join("");a.data=Dn.CONTENTS;let l;if(n)l=n,(s||o)&&(n.insertAt(n.length(),s+i),o&&o.remove());else if(o)l=o,o.insertAt(0,s);else{const u=document.createTextNode(s);l=this.scroll.create(u),this.parent.insertBefore(l,this)}if(this.remove(),e){const u=(f,p)=>n&&f===n.domNode?p:f===a?r+p-1:o&&f===o.domNode?r+s.length+p:null,d=u(e.start.node,e.start.offset),c=u(e.end.node,e.end.offset);if(d!==null&&c!==null)return{startNode:l.domNode,startOffset:d,endNode:l.domNode,endOffset:c}}return null}update(e,n){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(n.range=r)}}optimize(e){super.optimize(e);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=Dn.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}}var dm={exports:{}},qC;function $te(){return qC||(qC=1,(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function i(l,u,d,c,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new o(d,c||l,f),m=n?n+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],d,c;if(this._eventsCount===0)return u;for(c in d=this._events)e.call(d,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},s.prototype.listeners=function(u){var d=n?n+u:u,c=this._events[d];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,p=c.length,m=new Array(p);f<p;f++)m[f]=c[f].fn;return m},s.prototype.listenerCount=function(u){var d=n?n+u:u,c=this._events[d];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,d,c,f,p,m){var g=n?n+u:u;if(!this._events[g])return!1;var b=this._events[g],y=arguments.length,w,C;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,c),!0;case 4:return b.fn.call(b.context,d,c,f),!0;case 5:return b.fn.call(b.context,d,c,f,p),!0;case 6:return b.fn.call(b.context,d,c,f,p,m),!0}for(C=1,w=new Array(y-1);C<y;C++)w[C-1]=arguments[C];b.fn.apply(b.context,w)}else{var S=b.length,E;for(C=0;C<S;C++)switch(b[C].once&&this.removeListener(u,b[C].fn,void 0,!0),y){case 1:b[C].fn.call(b[C].context);break;case 2:b[C].fn.call(b[C].context,d);break;case 3:b[C].fn.call(b[C].context,d,c);break;case 4:b[C].fn.call(b[C].context,d,c,f);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];b[C].fn.apply(b[C].context,w)}}return!0},s.prototype.on=function(u,d,c){return i(this,u,d,c,!1)},s.prototype.once=function(u,d,c){return i(this,u,d,c,!0)},s.prototype.removeListener=function(u,d,c,f){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!f||m.once)&&(!c||m.context===c)&&a(this,p);else{for(var g=0,b=[],y=m.length;g<y;g++)(m[g].fn!==d||f&&!m[g].once||c&&m[g].context!==c)&&b.push(m[g]);b.length?this._events[p]=b.length===1?b[0]:b:a(this,p)}return this},s.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exports=s})(dm)),dm.exports}var Vte=$te();const Wte=An(Vte),Pg=new WeakMap,Mg=["error","warn","log","info"];let kg="warn";function vP(t){if(kg&&Mg.indexOf(t)<=Mg.indexOf(kg)){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t](...n)}}function $r(t){return Mg.reduce((e,n)=>(e[n]=vP.bind(console,n,t),e),{})}$r.level=t=>{kg=t};vP.level=$r.level;const fm=$r("quill:events"),Hte=["selectionchange","mousedown","mouseup","click"];Hte.forEach(t=>{document.addEventListener(t,function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(o=>{const i=Pg.get(o);i&&i.emitter&&i.emitter.handleDOM(...n)})})});class ge extends Wte{static events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super(),this.domListeners={},this.on("error",fm.error)}emit(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return fm.log.call(fm,...n),super.emit(...n)}handleDOM(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(this.domListeners[e.type]||[]).forEach(i=>{let{node:a,handler:s}=i;(e.target===a||a.contains(e.target))&&s(e,...r)})}listenDOM(e,n,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:n,handler:r})}}const hm=$r("quill:selection");class Mo{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=n}}class qte{constructor(e,n){this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Mo(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,ge.sources.USER),1)}),this.emitter.on(ge.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(ge.events.SCROLL_UPDATE,(o,i)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=i.some(s=>s.type==="characterData"||s.type==="childList"||s.type==="attributes"&&s.target===this.root);this.update(a?ge.sources.SILENT:o)}catch{}})}),this.emitter.on(ge.events.SCROLL_OPTIMIZE,(r,o)=>{if(o.range){const{startNode:i,startOffset:a,endNode:s,endOffset:l}=o.range;this.setNativeRange(i,a,s,l),this.update(ge.sources.SILENT)}}),this.update(ge.sources.SILENT)}handleComposition(){this.emitter.on(ge.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(ge.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(ge.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,n){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,ve.BLOCK))){if(r.start.node!==this.cursor.textNode){const o=this.scroll.find(r.start.node,!1);if(o==null)return;if(o instanceof Vt){const i=o.split(r.start.offset);o.parent.insertBefore(this.cursor,i)}else o.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),n=Math.min(e+n,r-1)-e;let o,[i,a]=this.scroll.leaf(e);if(i==null)return null;if(n>0&&a===i.length()){const[d]=this.scroll.leaf(e+1);if(d){const[c]=this.scroll.line(e),[f]=this.scroll.line(e+1);c===f&&(i=d,a=0)}}[o,a]=i.position(a,!0);const s=document.createRange();if(n>0)return s.setStart(o,a),[i,a]=this.scroll.leaf(e+n),i==null?null:([o,a]=i.position(a,!0),s.setEnd(o,a),s.getBoundingClientRect());let l="left",u;if(o instanceof Text){if(!o.data.length)return null;a<o.data.length?(s.setStart(o,a),s.setEnd(o,a+1)):(s.setStart(o,a-1),s.setEnd(o,a),l="right"),u=s.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;u=i.domNode.getBoundingClientRect(),a>0&&(l="right")}return{bottom:u.top+u.height,height:u.height,left:u[l],right:u[l],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const n=e.getRangeAt(0);if(n==null)return null;const r=this.normalizeNative(n);return hm.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const n=this.getNativeRange();return n==null?[null,null]:[this.normalizedToRange(n),n]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&pm(this.root,document.activeElement)}normalizedToRange(e){const n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);const r=n.map(a=>{const[s,l]=a,u=this.scroll.find(s,!0),d=u.offset(this.scroll);return l===0?d:u instanceof Vt?d+u.index(s,l):d+u.length()}),o=Math.min(Math.max(...r),this.scroll.length()-1),i=Math.min(o,...r);return new Mo(i,o-i)}normalizeNative(e){if(!pm(this.root,e.startContainer)||!e.collapsed&&!pm(this.root,e.endContainer))return null;const n={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[n.start,n.end].forEach(r=>{let{node:o,offset:i}=r;for(;!(o instanceof Text)&&o.childNodes.length>0;)if(o.childNodes.length>i)o=o.childNodes[i],i=0;else if(o.childNodes.length===i)o=o.lastChild,o instanceof Text?i=o.data.length:o.childNodes.length>0?i=o.childNodes.length:i=o.childNodes.length+1;else break;r.node=o,r.offset=i}),n}rangeToNative(e){const n=this.scroll.length(),r=(o,i)=>{o=Math.min(n-1,o);const[a,s]=this.scroll.leaf(o);return a?a.position(s,i):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(hm.info("setNativeRange",e,n,r,o),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:s}=this.getNativeRange()||{};if(s==null||i||e!==s.startContainer||n!==s.startOffset||r!==s.endContainer||o!==s.endOffset){e instanceof Element&&e.tagName==="BR"&&(n=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(o=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const l=document.createRange();l.setStart(e,n),l.setEnd(r,o),a.removeAllRanges(),a.addRange(l)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ge.sources.API;if(typeof n=="string"&&(r=n,n=!1),hm.info("setRange",e),e!=null){const o=this.rangeToNative(e);this.setNativeRange(...o,n)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ge.sources.USER;const n=this.lastRange,[r,o]=this.getRange();if(this.lastRange=r,this.lastNative=o,this.lastRange!=null&&(this.savedRange=this.lastRange),!Pv(n,this.lastRange)){if(!this.composing&&o!=null&&o.native.collapsed&&o.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const i=[ge.events.SELECTION_CHANGE,vi(this.lastRange),vi(n),e];this.emitter.emit(ge.events.EDITOR_CHANGE,...i),e!==ge.sources.SILENT&&this.emitter.emit(...i)}}}function pm(t,e){try{e.parentNode}catch{return!1}return t.contains(e)}const zte=/^[ -~]*$/;class Xte{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let n=this.scroll.length();this.scroll.batchStart();const r=zC(e),o=new be;return Ute(r.ops.slice()).reduce((a,s)=>{const l=Sn.Op.length(s);let u=s.attributes||{},d=!1,c=!1;if(s.insert!=null){if(o.retain(l),typeof s.insert=="string"){const m=s.insert;c=!m.endsWith(`
91
91
  `)&&(n<=a||!!this.scroll.descendant(wn,a)[0]),this.scroll.insertAt(a,m);const[g,b]=this.scroll.line(a);let y=Ur({},yn(g));if(g instanceof Dt){const[w]=g.descendant(Vt,b);w&&(y=Ur(y,yn(w)))}u=Sn.AttributeMap.diff(y,u)||{}}else if(typeof s.insert=="object"){const m=Object.keys(s.insert)[0];if(m==null)return a;const g=this.scroll.query(m,ve.INLINE)!=null;if(g)(n<=a||this.scroll.descendant(wn,a)[0])&&(c=!0);else if(a>0){const[b,y]=this.scroll.descendant(Vt,a-1);b instanceof Wn?b.value()[y]!==`
92
92
  `&&(d=!0):b instanceof pn&&b.statics.scope===ve.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(a,m,s.insert[m]),g){const[b]=this.scroll.descendant(Vt,a);if(b){const y=Ur({},yn(b));u=Sn.AttributeMap.diff(y,u)||{}}}}n+=l}else if(o.push(s),s.retain!==null&&typeof s.retain=="object"){const m=Object.keys(s.retain)[0];if(m==null)return a;this.scroll.updateEmbedAt(a,m,s.retain[m])}Object.keys(u).forEach(m=>{this.scroll.formatAt(a,l,m,u[m])});const f=d?1:0,p=c?1:0;return n+=f+p,o.retain(f),o.delete(p),a+l+f+p},0),o.reduce((a,s)=>typeof s.delete=="number"?(this.scroll.deleteAt(a,s.delete),a):a+Sn.Op.length(s),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,n){return this.scroll.deleteAt(e,n),this.update(new be().retain(e).delete(n))}formatLine(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(i=>{this.scroll.lines(e,Math.max(n,1)).forEach(a=>{a.format(i,r[i])})}),this.scroll.optimize();const o=new be().retain(e).retain(n,vi(r));return this.update(o)}formatText(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(i=>{this.scroll.formatAt(e,n,i,r[i])});const o=new be().retain(e).retain(n,vi(r));return this.update(o)}getContents(e,n){return this.delta.slice(e,e+n)}getDelta(){return this.scroll.lines().reduce((e,n)=>e.concat(n.delta()),new be)}getFormat(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],o=[];n===0?this.scroll.path(e).forEach(s=>{const[l]=s;l instanceof Dt?r.push(l):l instanceof Vt&&o.push(l)}):(r=this.scroll.lines(e,n),o=this.scroll.descendants(Vt,e,n));const[i,a]=[r,o].map(s=>{const l=s.shift();if(l==null)return{};let u=yn(l);for(;Object.keys(u).length>0;){const d=s.shift();if(d==null)return u;u=Yte(yn(d),u)}return u});return{...i,...a}}getHTML(e,n){const[r,o]=this.scroll.line(e);if(r){const i=r.length();return r.length()>=o+n&&!(o===0&&n===i)?es(r,o,n,!0):es(this.scroll,e,n,!0)}return""}getText(e,n){return this.getContents(e,n).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,n){const r=zC(n),o=new be().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(o)}insertEmbed(e,n,r){return this.scroll.insertAt(e,n,r),this.update(new be().retain(e).insert({[n]:r}))}insertText(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n=n.replace(/\r\n/g,`
93
93
  `).replace(/\r/g,`
@@ -101,17 +101,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
101
101
  `)?o.insertAt(0,n.slice(0,-1),r):o.insertAt(0,n,r)}else{const o=this.scroll.create(n,r);this.appendChild(o)}else super.insertAt(e,n,r);this.optimize()}insertBefore(e,n){if(e.statics.scope===ve.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,n)}else super.insertBefore(e,n)}insertContents(e,n){const r=this.deltaToRenderBlocks(n.concat(new be().insert(`
102
102
  `))),o=r.pop();if(o==null)return;this.batchStart();const i=r.shift();if(i){const l=i.type==="block"&&(i.delta.length()===0||!this.descendant(wn,e)[0]&&e<this.length()),u=i.type==="block"?i.delta:new be().insert({[i.key]:i.value});bm(this,e,u);const d=i.type==="block"?1:0,c=e+u.length()+d;l&&this.insertAt(c-1,`
103
103
  `);const f=yn(this.line(e)[0]),p=Sn.AttributeMap.diff(f,i.attributes)||{};Object.keys(p).forEach(m=>{this.formatAt(c-1,1,m,p[m])}),e=c}let[a,s]=this.children.find(e);if(r.length&&(a&&(a=a.split(s),s=0),r.forEach(l=>{if(l.type==="block"){const u=this.createBlock(l.attributes,a||void 0);bm(u,0,l.delta)}else{const u=this.create(l.key,l.value);this.insertBefore(u,a||void 0),Object.keys(l.attributes).forEach(d=>{u.format(d,l.attributes[d])})}})),o.type==="block"&&o.delta.length()){const l=a?a.offset(a.scroll)+s:this.length();bm(this,l,o.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const n=this.path(e).pop();if(!n)return[null,-1];const[r,o]=n;return r instanceof Vt?[r,o]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(KC,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(o,i,a)=>{let s=[],l=a;return o.children.forEachAt(i,a,(u,d,c)=>{KC(u)?s.push(u):u instanceof kc&&(s=s.concat(r(u,d,l))),l-=c}),s};return r(this,e,n)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,n),e.length>0&&this.emitter.emit(ge.events.SCROLL_OPTIMIZE,e,n))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let n=ge.sources.USER;typeof e=="string"&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:o}=r;const i=this.find(o,!0);return i&&!QC(i)}),e.length>0&&this.emitter.emit(ge.events.SCROLL_BEFORE_UPDATE,n,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(ge.events.SCROLL_UPDATE,n,e)}updateEmbedAt(e,n,r){const[o]=this.descendant(i=>i instanceof wn,e);o&&o.statics.blotName===n&&QC(o)&&o.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const n=[];let r=new be;return e.forEach(o=>{const i=o?.insert;if(i)if(typeof i=="string"){const a=i.split(`
104
- `);a.slice(0,-1).forEach(l=>{r.insert(l,o.attributes),n.push({type:"block",delta:r,attributes:o.attributes??{}}),r=new be});const s=a[a.length-1];s&&r.insert(s,o.attributes)}else{const a=Object.keys(i)[0];if(!a)return;this.query(a,ve.INLINE)?r.push(o):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new be,n.push({type:"blockEmbed",key:a,value:i[a],attributes:o.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(e,n){let r;const o={};Object.entries(e).forEach(s=>{let[l,u]=s;this.query(l,ve.BLOCK&ve.BLOT)!=null?r=l:o[l]=u});const i=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(i,n||void 0);const a=i.length();return Object.entries(o).forEach(s=>{let[l,u]=s;i.formatAt(0,a,l,u)}),i}}function bm(t,e,n){n.reduce((r,o)=>{const i=Sn.Op.length(o);let a=o.attributes||{};if(o.insert!=null){if(typeof o.insert=="string"){const s=o.insert;t.insertAt(r,s);const[l]=t.descendant(Vt,r),u=yn(l);a=Sn.AttributeMap.diff(u,a)||{}}else if(typeof o.insert=="object"){const s=Object.keys(o.insert)[0];if(s==null)return r;if(t.insertAt(r,s,o.insert[s]),t.scroll.query(s,ve.INLINE)!=null){const[u]=t.descendant(Vt,r),d=yn(u);a=Sn.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(s=>{t.formatAt(r,i,s,a[s])}),r+i},e)}const jv={scope:ve.BLOCK,whitelist:["right","center","justify"]},ine=new mr("align","align",jv),xP=new Zn("align","ql-align",jv),wP=new uo("align","text-align",jv);class CP extends uo{value(e){let n=super.value(e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(o=>`00${parseInt(o,10).toString(16)}`.slice(-2)).join("")}`):n}}const ane=new Zn("color","ql-color",{scope:ve.INLINE}),Lv=new CP("color","color",{scope:ve.INLINE}),sne=new Zn("background","ql-bg",{scope:ve.INLINE}),Bv=new CP("background","background-color",{scope:ve.INLINE});class zo extends qo{static create(e){const n=super.create(e);return n.setAttribute("spellcheck","false"),n}code(e,n){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
104
+ `);a.slice(0,-1).forEach(l=>{r.insert(l,o.attributes),n.push({type:"block",delta:r,attributes:o.attributes??{}}),r=new be});const s=a[a.length-1];s&&r.insert(s,o.attributes)}else{const a=Object.keys(i)[0];if(!a)return;this.query(a,ve.INLINE)?r.push(o):(r.length()&&n.push({type:"block",delta:r,attributes:{}}),r=new be,n.push({type:"blockEmbed",key:a,value:i[a],attributes:o.attributes??{}}))}}),r.length()&&n.push({type:"block",delta:r,attributes:{}}),n}createBlock(e,n){let r;const o={};Object.entries(e).forEach(s=>{let[l,u]=s;this.query(l,ve.BLOCK&ve.BLOT)!=null?r=l:o[l]=u});const i=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(i,n||void 0);const a=i.length();return Object.entries(o).forEach(s=>{let[l,u]=s;i.formatAt(0,a,l,u)}),i}}function bm(t,e,n){n.reduce((r,o)=>{const i=Sn.Op.length(o);let a=o.attributes||{};if(o.insert!=null){if(typeof o.insert=="string"){const s=o.insert;t.insertAt(r,s);const[l]=t.descendant(Vt,r),u=yn(l);a=Sn.AttributeMap.diff(u,a)||{}}else if(typeof o.insert=="object"){const s=Object.keys(o.insert)[0];if(s==null)return r;if(t.insertAt(r,s,o.insert[s]),t.scroll.query(s,ve.INLINE)!=null){const[u]=t.descendant(Vt,r),d=yn(u);a=Sn.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(s=>{t.formatAt(r,i,s,a[s])}),r+i},e)}const jv={scope:ve.BLOCK,whitelist:["right","center","justify"]},ine=new mr("align","align",jv),yP=new Zn("align","ql-align",jv),xP=new uo("align","text-align",jv);class wP extends uo{value(e){let n=super.value(e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(o=>`00${parseInt(o,10).toString(16)}`.slice(-2)).join("")}`):n}}const ane=new Zn("color","ql-color",{scope:ve.INLINE}),Lv=new wP("color","color",{scope:ve.INLINE}),sne=new Zn("background","ql-bg",{scope:ve.INLINE}),Bv=new wP("background","background-color",{scope:ve.INLINE});class zo extends qo{static create(e){const n=super.create(e);return n.setAttribute("spellcheck","false"),n}code(e,n){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
105
105
  `).slice(e,e+n)}html(e,n){return`<pre>
106
106
  ${Dc(this.code(e,n))}
107
- </pre>`}}class Ut extends Dt{static TAB=" ";static register(){ee.register(zo)}}class Fv extends Xt{}Fv.blotName="code";Fv.tagName="CODE";Ut.blotName="code-block";Ut.className="ql-code-block";Ut.tagName="DIV";zo.blotName="code-block-container";zo.className="ql-code-block-container";zo.tagName="DIV";zo.allowedChildren=[Ut];Ut.allowedChildren=[Wn,Jn,Dn];Ut.requiredContainer=zo;const Gv={scope:ve.BLOCK,whitelist:["rtl"]},SP=new mr("direction","dir",Gv),EP=new Zn("direction","ql-direction",Gv),IP=new uo("direction","direction",Gv),AP={scope:ve.INLINE,whitelist:["serif","monospace"]},TP=new Zn("font","ql-font",AP);class lne extends uo{value(e){return super.value(e).replace(/["']/g,"")}}const NP=new lne("font","font-family",AP),_P=new Zn("size","ql-size",{scope:ve.INLINE,whitelist:["small","large","huge"]}),OP=new uo("size","font-size",{scope:ve.INLINE,whitelist:["10px","18px","32px"]}),une=$r("quill:keyboard"),cne=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class jc extends Ir{static match(e,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!n[r]!==e[r]&&n[r]!==null)?!1:n.key===e.key||n.key===e.which}constructor(e,n){super(e,n),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=fne(e);if(o==null){une.warn("Attempted to add invalid keyboard binding",o);return}typeof n=="function"&&(n={handler:n}),typeof r=="function"&&(r={handler:r}),(Array.isArray(o.key)?o.key:[o.key]).forEach(a=>{const s={...o,key:a,...n,...r};this.bindings[s.key]=this.bindings[s.key]||[],this.bindings[s.key].push(s)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const o=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(y=>jc.match(e,y));if(o.length===0)return;const i=ee.find(e.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[s,l]=this.quill.getLine(a.index),[u,d]=this.quill.getLeaf(a.index),[c,f]=a.length===0?[u,d]:this.quill.getLeaf(a.index+a.length),p=u instanceof hu?u.value().slice(0,d):"",m=c instanceof hu?c.value().slice(f):"",g={collapsed:a.length===0,empty:a.length===0&&s.length()<=1,format:this.quill.getFormat(a),line:s,offset:l,prefix:p,suffix:m,event:e};o.some(y=>{if(y.collapsed!=null&&y.collapsed!==g.collapsed||y.empty!=null&&y.empty!==g.empty||y.offset!=null&&y.offset!==g.offset)return!1;if(Array.isArray(y.format)){if(y.format.every(w=>g.format[w]==null))return!1}else if(typeof y.format=="object"&&!Object.keys(y.format).every(w=>y.format[w]===!0?g.format[w]!=null:y.format[w]===!1?g.format[w]==null:Pv(y.format[w],g.format[w])))return!1;return y.prefix!=null&&!y.prefix.test(g.prefix)||y.suffix!=null&&!y.suffix.test(g.suffix)?!1:y.handler.call(this,a,g,y)!==!0})&&e.preventDefault()})}handleBackspace(e,n){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let o={};const[i]=this.quill.getLine(e.index);let a=new be().retain(e.index-r).delete(r);if(n.offset===0){const[s]=this.quill.getLine(e.index-1);if(s&&!(s.statics.blotName==="block"&&s.length()<=1)){const u=i.formats(),d=this.quill.getFormat(e.index-1,1);if(o=Sn.AttributeMap.diff(u,d)||{},Object.keys(o).length>0){const c=new be().retain(e.index+i.length()-2).retain(1,o);a=a.compose(c)}}}this.quill.updateContents(a,ee.sources.USER),this.quill.focus()}handleDelete(e,n){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let o={};const[i]=this.quill.getLine(e.index);let a=new be().retain(e.index).delete(r);if(n.offset>=i.length()-1){const[s]=this.quill.getLine(e.index+1);if(s){const l=i.formats(),u=this.quill.getFormat(e.index,1);o=Sn.AttributeMap.diff(l,u)||{},Object.keys(o).length>0&&(a=a.retain(s.length()-1).retain(1,o))}}this.quill.updateContents(a,ee.sources.USER),this.quill.focus()}handleDeleteRange(e){$v({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,n){const r=Object.keys(n.format).reduce((i,a)=>(this.quill.scroll.query(a,ve.BLOCK)&&!Array.isArray(n.format[a])&&(i[a]=n.format[a]),i),{}),o=new be().retain(e.index).delete(e.length).insert(`
107
+ </pre>`}}class Ut extends Dt{static TAB=" ";static register(){ee.register(zo)}}class Fv extends Xt{}Fv.blotName="code";Fv.tagName="CODE";Ut.blotName="code-block";Ut.className="ql-code-block";Ut.tagName="DIV";zo.blotName="code-block-container";zo.className="ql-code-block-container";zo.tagName="DIV";zo.allowedChildren=[Ut];Ut.allowedChildren=[Wn,Jn,Dn];Ut.requiredContainer=zo;const Gv={scope:ve.BLOCK,whitelist:["rtl"]},CP=new mr("direction","dir",Gv),SP=new Zn("direction","ql-direction",Gv),EP=new uo("direction","direction",Gv),IP={scope:ve.INLINE,whitelist:["serif","monospace"]},AP=new Zn("font","ql-font",IP);class lne extends uo{value(e){return super.value(e).replace(/["']/g,"")}}const TP=new lne("font","font-family",IP),NP=new Zn("size","ql-size",{scope:ve.INLINE,whitelist:["small","large","huge"]}),_P=new uo("size","font-size",{scope:ve.INLINE,whitelist:["10px","18px","32px"]}),une=$r("quill:keyboard"),cne=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class jc extends Ir{static match(e,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!n[r]!==e[r]&&n[r]!==null)?!1:n.key===e.key||n.key===e.which}constructor(e,n){super(e,n),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=fne(e);if(o==null){une.warn("Attempted to add invalid keyboard binding",o);return}typeof n=="function"&&(n={handler:n}),typeof r=="function"&&(r={handler:r}),(Array.isArray(o.key)?o.key:[o.key]).forEach(a=>{const s={...o,key:a,...n,...r};this.bindings[s.key]=this.bindings[s.key]||[],this.bindings[s.key].push(s)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const o=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(y=>jc.match(e,y));if(o.length===0)return;const i=ee.find(e.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[s,l]=this.quill.getLine(a.index),[u,d]=this.quill.getLeaf(a.index),[c,f]=a.length===0?[u,d]:this.quill.getLeaf(a.index+a.length),p=u instanceof hu?u.value().slice(0,d):"",m=c instanceof hu?c.value().slice(f):"",g={collapsed:a.length===0,empty:a.length===0&&s.length()<=1,format:this.quill.getFormat(a),line:s,offset:l,prefix:p,suffix:m,event:e};o.some(y=>{if(y.collapsed!=null&&y.collapsed!==g.collapsed||y.empty!=null&&y.empty!==g.empty||y.offset!=null&&y.offset!==g.offset)return!1;if(Array.isArray(y.format)){if(y.format.every(w=>g.format[w]==null))return!1}else if(typeof y.format=="object"&&!Object.keys(y.format).every(w=>y.format[w]===!0?g.format[w]!=null:y.format[w]===!1?g.format[w]==null:Pv(y.format[w],g.format[w])))return!1;return y.prefix!=null&&!y.prefix.test(g.prefix)||y.suffix!=null&&!y.suffix.test(g.suffix)?!1:y.handler.call(this,a,g,y)!==!0})&&e.preventDefault()})}handleBackspace(e,n){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let o={};const[i]=this.quill.getLine(e.index);let a=new be().retain(e.index-r).delete(r);if(n.offset===0){const[s]=this.quill.getLine(e.index-1);if(s&&!(s.statics.blotName==="block"&&s.length()<=1)){const u=i.formats(),d=this.quill.getFormat(e.index-1,1);if(o=Sn.AttributeMap.diff(u,d)||{},Object.keys(o).length>0){const c=new be().retain(e.index+i.length()-2).retain(1,o);a=a.compose(c)}}}this.quill.updateContents(a,ee.sources.USER),this.quill.focus()}handleDelete(e,n){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let o={};const[i]=this.quill.getLine(e.index);let a=new be().retain(e.index).delete(r);if(n.offset>=i.length()-1){const[s]=this.quill.getLine(e.index+1);if(s){const l=i.formats(),u=this.quill.getFormat(e.index,1);o=Sn.AttributeMap.diff(l,u)||{},Object.keys(o).length>0&&(a=a.retain(s.length()-1).retain(1,o))}}this.quill.updateContents(a,ee.sources.USER),this.quill.focus()}handleDeleteRange(e){$v({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,n){const r=Object.keys(n.format).reduce((i,a)=>(this.quill.scroll.query(a,ve.BLOCK)&&!Array.isArray(n.format[a])&&(i[a]=n.format[a]),i),{}),o=new be().retain(e.index).delete(e.length).insert(`
108
108
  `,r);this.quill.updateContents(o,ee.sources.USER),this.quill.setSelection(e.index+1,ee.sources.SILENT),this.quill.focus()}}const dne={bindings:{bold:vm("bold"),italic:vm("italic"),underline:vm("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",ee.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",ee.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){e.format.indent!=null?this.quill.format("indent","-1",ee.sources.USER):e.format.list!=null&&this.quill.format("list",!1,ee.sources.USER)}},"indent code-block":eS(!0),"outdent code-block":eS(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,ee.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const n=new be().retain(t.index).delete(t.length).insert(" ");return this.quill.updateContents(n,ee.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,ee.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,ee.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const n={list:!1};e.format.indent&&(n.indent=!1),this.quill.formatLine(t.index,t.length,n,ee.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,n]=this.quill.getLine(t.index),r={...e.formats(),list:"checked"},o=new be().retain(t.index).insert(`
109
109
  `,r).retain(e.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(o,ee.sources.USER),this.quill.setSelection(t.index+1,ee.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[n,r]=this.quill.getLine(t.index),o=new be().retain(t.index).insert(`
110
110
  `,e.format).retain(n.length()-r-1).retain(1,{header:null});this.quill.updateContents(o,ee.sources.USER),this.quill.setSelection(t.index+1,ee.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[n,r,o,i]=e.getTable(t),a=hne(n,r,o,i);if(a==null)return;let s=n.offset();if(a<0){const l=new be().retain(s).insert(`
111
111
  `);this.quill.updateContents(l,ee.sources.USER),this.quill.setSelection(t.index+1,t.length,ee.sources.SILENT)}else if(a>0){s+=n.length();const l=new be().retain(s).insert(`
112
- `);this.quill.updateContents(l,ee.sources.USER),this.quill.setSelection(s,ee.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:n,line:r}=e,o=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,ee.sources.USER):this.quill.setSelection(o+r.length(),ee.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=e.prefix,[r,o]=this.quill.getLine(t.index);if(o>n)return!0;let i;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(t.index," ",ee.sources.USER),this.quill.history.cutoff();const a=new be().retain(t.index-o).delete(n+1).retain(r.length()-2-o).retain(1,{list:i});return this.quill.updateContents(a,ee.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,ee.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,n]=this.quill.getLine(t.index);let r=2,o=e;for(;o!=null&&o.length()<=1&&o.formats()["code-block"];)if(o=o.prev,r-=1,r<=0){const i=new be().retain(t.index+e.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,ee.sources.USER),this.quill.setSelection(t.index-1,ee.sources.SILENT),!1}return!0}},"embed left":xl("ArrowLeft",!1),"embed left shift":xl("ArrowLeft",!0),"embed right":xl("ArrowRight",!1),"embed right shift":xl("ArrowRight",!0),"table down":tS(!1),"table up":tS(!0)}};jc.DEFAULTS=dne;function eS(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,n){let{event:r}=n;const o=this.quill.scroll.query("code-block"),{TAB:i}=o;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,i,ee.sources.USER),this.quill.setSelection(e.index+i.length,ee.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:l}=e;a.forEach((u,d)=>{t?(u.insertAt(0,i),d===0?s+=i.length:l+=i.length):u.domNode.textContent.startsWith(i)&&(u.deleteAt(0,i.length),d===0?s-=i.length:l-=i.length)}),this.quill.update(ee.sources.USER),this.quill.setSelection(s,l,ee.sources.SILENT)}}}function xl(t,e){return{key:t,shiftKey:e,altKey:null,[t==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:o}=r;t==="ArrowRight"&&(o+=r.length+1);const[i]=this.quill.getLeaf(o);return i instanceof pn?(t==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,ee.sources.USER):this.quill.setSelection(r.index-1,ee.sources.USER):e?this.quill.setSelection(r.index,r.length+1,ee.sources.USER):this.quill.setSelection(r.index+r.length+1,ee.sources.USER),!1):!0}}}function vm(t){return{key:t[0],shortKey:!0,handler(e,n){this.quill.format(t,!n.format[t],ee.sources.USER)}}}function tS(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,n){const r=t?"prev":"next",o=n.line,i=o.parent[r];if(i!=null){if(i.statics.blotName==="table-row"){let a=i.children.head,s=o;for(;s.prev!=null;)s=s.prev,a=a.next;const l=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(l,0,ee.sources.USER)}}else{const a=o.table()[r];a!=null&&(t?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,ee.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,ee.sources.USER))}return!1}}}function fne(t){if(typeof t=="string"||typeof t=="number")t={key:t};else if(typeof t=="object")t=vi(t);else return null;return t.shortKey&&(t[cne]=t.shortKey,delete t.shortKey),t}function $v(t){let{quill:e,range:n}=t;const r=e.getLines(n);let o={};if(r.length>1){const i=r[0].formats(),a=r[r.length-1].formats();o=Sn.AttributeMap.diff(a,i)||{}}e.deleteText(n,ee.sources.USER),Object.keys(o).length>0&&e.formatLine(n.index,1,o,ee.sources.USER),e.setSelection(n.index,ee.sources.SILENT)}function hne(t,e,n,r){return e.prev==null&&e.next==null?n.prev==null&&n.next==null?r===0?-1:1:n.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const pne=/font-weight:\s*normal/,mne=["P","OL","UL"],nS=t=>t&&mne.includes(t.tagName),gne=t=>{Array.from(t.querySelectorAll("br")).filter(e=>nS(e.previousElementSibling)&&nS(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})},bne=t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(pne)).forEach(e=>{const n=t.createDocumentFragment();n.append(...e.childNodes),e.parentNode?.replaceChild(n,e)})};function vne(t){t.querySelector('[id^="docs-internal-guid-"]')&&(bne(t),gne(t))}const yne=/\bmso-list:[^;]*ignore/i,xne=/\bmso-list:[^;]*\bl(\d+)/i,wne=/\bmso-list:[^;]*\blevel(\d+)/i,Cne=(t,e)=>{const n=t.getAttribute("style"),r=n?.match(xne);if(!r)return null;const o=Number(r[1]),i=n?.match(wne),a=i?Number(i[1]):1,s=new RegExp(`@list l${o}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=e.match(s),u=l&&l[1]==="bullet"?"bullet":"ordered";return{id:o,indent:a,type:u,element:t}},Sne=t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]")),n=[],r=[];e.forEach(a=>{(a.getAttribute("style")||"").match(yne)?n.push(a):r.push(a)}),n.forEach(a=>a.parentNode?.removeChild(a));const o=t.documentElement.innerHTML,i=r.map(a=>Cne(a,o)).filter(a=>a);for(;i.length;){const a=[];let s=i.shift();for(;s;)a.push(s),s=i.length&&i[0]?.element===s.element.nextElementSibling&&i[0].id===s.id?i.shift():null;const l=document.createElement("ul");a.forEach(c=>{const f=document.createElement("li");f.setAttribute("data-list",c.type),c.indent>1&&f.setAttribute("class",`ql-indent-${c.indent-1}`),f.innerHTML=c.element.innerHTML,l.appendChild(f)});const u=a[0]?.element,{parentNode:d}=u??{};u&&d?.replaceChild(l,u),a.slice(1).forEach(c=>{let{element:f}=c;d?.removeChild(f)})}};function Ene(t){t.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Sne(t)}const Ine=[Ene,vne],Ane=t=>{t.documentElement&&Ine.forEach(e=>{e(t)})},Tne=$r("quill:clipboard"),Nne=[[Node.TEXT_NODE,$ne],[Node.TEXT_NODE,oS],["br",kne],[Node.ELEMENT_NODE,oS],[Node.ELEMENT_NODE,Mne],[Node.ELEMENT_NODE,Pne],[Node.ELEMENT_NODE,Fne],["li",Lne],["ol, ul",Bne],["pre",Dne],["tr",Gne],["b",ym("bold")],["i",ym("italic")],["strike",ym("strike")],["style",jne]],_ne=[ine,SP].reduce((t,e)=>(t[e.keyName]=e,t),{}),rS=[wP,Bv,Lv,IP,NP,OP].reduce((t,e)=>(t[e.keyName]=e,t),{});class One extends Ir{static DEFAULTS={matchers:[]};constructor(e,n){super(e,n),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Nne.concat(this.options.matchers??[]).forEach(r=>{let[o,i]=r;this.addMatcher(o,i)})}addMatcher(e,n){this.matchers.push([e,n])}convert(e){let{html:n,text:r}=e,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o[Ut.blotName])return new be().insert(r||"",{[Ut.blotName]:o[Ut.blotName]});if(!n)return new be().insert(r||"",o);const i=this.convertHTML(n);return Ts(i,`
112
+ `);this.quill.updateContents(l,ee.sources.USER),this.quill.setSelection(s,ee.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:n,line:r}=e,o=r.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(o-1,ee.sources.USER):this.quill.setSelection(o+r.length(),ee.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=e.prefix,[r,o]=this.quill.getLine(t.index);if(o>n)return!0;let i;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(t.index," ",ee.sources.USER),this.quill.history.cutoff();const a=new be().retain(t.index-o).delete(n+1).retain(r.length()-2-o).retain(1,{list:i});return this.quill.updateContents(a,ee.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,ee.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,n]=this.quill.getLine(t.index);let r=2,o=e;for(;o!=null&&o.length()<=1&&o.formats()["code-block"];)if(o=o.prev,r-=1,r<=0){const i=new be().retain(t.index+e.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,ee.sources.USER),this.quill.setSelection(t.index-1,ee.sources.SILENT),!1}return!0}},"embed left":xl("ArrowLeft",!1),"embed left shift":xl("ArrowLeft",!0),"embed right":xl("ArrowRight",!1),"embed right shift":xl("ArrowRight",!0),"table down":tS(!1),"table up":tS(!0)}};jc.DEFAULTS=dne;function eS(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e,n){let{event:r}=n;const o=this.quill.scroll.query("code-block"),{TAB:i}=o;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,i,ee.sources.USER),this.quill.setSelection(e.index+i.length,ee.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:s,length:l}=e;a.forEach((u,d)=>{t?(u.insertAt(0,i),d===0?s+=i.length:l+=i.length):u.domNode.textContent.startsWith(i)&&(u.deleteAt(0,i.length),d===0?s-=i.length:l-=i.length)}),this.quill.update(ee.sources.USER),this.quill.setSelection(s,l,ee.sources.SILENT)}}}function xl(t,e){return{key:t,shiftKey:e,altKey:null,[t==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:o}=r;t==="ArrowRight"&&(o+=r.length+1);const[i]=this.quill.getLeaf(o);return i instanceof pn?(t==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,ee.sources.USER):this.quill.setSelection(r.index-1,ee.sources.USER):e?this.quill.setSelection(r.index,r.length+1,ee.sources.USER):this.quill.setSelection(r.index+r.length+1,ee.sources.USER),!1):!0}}}function vm(t){return{key:t[0],shortKey:!0,handler(e,n){this.quill.format(t,!n.format[t],ee.sources.USER)}}}function tS(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,n){const r=t?"prev":"next",o=n.line,i=o.parent[r];if(i!=null){if(i.statics.blotName==="table-row"){let a=i.children.head,s=o;for(;s.prev!=null;)s=s.prev,a=a.next;const l=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(l,0,ee.sources.USER)}}else{const a=o.table()[r];a!=null&&(t?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,ee.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,ee.sources.USER))}return!1}}}function fne(t){if(typeof t=="string"||typeof t=="number")t={key:t};else if(typeof t=="object")t=vi(t);else return null;return t.shortKey&&(t[cne]=t.shortKey,delete t.shortKey),t}function $v(t){let{quill:e,range:n}=t;const r=e.getLines(n);let o={};if(r.length>1){const i=r[0].formats(),a=r[r.length-1].formats();o=Sn.AttributeMap.diff(a,i)||{}}e.deleteText(n,ee.sources.USER),Object.keys(o).length>0&&e.formatLine(n.index,1,o,ee.sources.USER),e.setSelection(n.index,ee.sources.SILENT)}function hne(t,e,n,r){return e.prev==null&&e.next==null?n.prev==null&&n.next==null?r===0?-1:1:n.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const pne=/font-weight:\s*normal/,mne=["P","OL","UL"],nS=t=>t&&mne.includes(t.tagName),gne=t=>{Array.from(t.querySelectorAll("br")).filter(e=>nS(e.previousElementSibling)&&nS(e.nextElementSibling)).forEach(e=>{e.parentNode?.removeChild(e)})},bne=t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter(e=>e.getAttribute("style")?.match(pne)).forEach(e=>{const n=t.createDocumentFragment();n.append(...e.childNodes),e.parentNode?.replaceChild(n,e)})};function vne(t){t.querySelector('[id^="docs-internal-guid-"]')&&(bne(t),gne(t))}const yne=/\bmso-list:[^;]*ignore/i,xne=/\bmso-list:[^;]*\bl(\d+)/i,wne=/\bmso-list:[^;]*\blevel(\d+)/i,Cne=(t,e)=>{const n=t.getAttribute("style"),r=n?.match(xne);if(!r)return null;const o=Number(r[1]),i=n?.match(wne),a=i?Number(i[1]):1,s=new RegExp(`@list l${o}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=e.match(s),u=l&&l[1]==="bullet"?"bullet":"ordered";return{id:o,indent:a,type:u,element:t}},Sne=t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]")),n=[],r=[];e.forEach(a=>{(a.getAttribute("style")||"").match(yne)?n.push(a):r.push(a)}),n.forEach(a=>a.parentNode?.removeChild(a));const o=t.documentElement.innerHTML,i=r.map(a=>Cne(a,o)).filter(a=>a);for(;i.length;){const a=[];let s=i.shift();for(;s;)a.push(s),s=i.length&&i[0]?.element===s.element.nextElementSibling&&i[0].id===s.id?i.shift():null;const l=document.createElement("ul");a.forEach(c=>{const f=document.createElement("li");f.setAttribute("data-list",c.type),c.indent>1&&f.setAttribute("class",`ql-indent-${c.indent-1}`),f.innerHTML=c.element.innerHTML,l.appendChild(f)});const u=a[0]?.element,{parentNode:d}=u??{};u&&d?.replaceChild(l,u),a.slice(1).forEach(c=>{let{element:f}=c;d?.removeChild(f)})}};function Ene(t){t.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Sne(t)}const Ine=[Ene,vne],Ane=t=>{t.documentElement&&Ine.forEach(e=>{e(t)})},Tne=$r("quill:clipboard"),Nne=[[Node.TEXT_NODE,$ne],[Node.TEXT_NODE,oS],["br",kne],[Node.ELEMENT_NODE,oS],[Node.ELEMENT_NODE,Mne],[Node.ELEMENT_NODE,Pne],[Node.ELEMENT_NODE,Fne],["li",Lne],["ol, ul",Bne],["pre",Dne],["tr",Gne],["b",ym("bold")],["i",ym("italic")],["strike",ym("strike")],["style",jne]],_ne=[ine,CP].reduce((t,e)=>(t[e.keyName]=e,t),{}),rS=[xP,Bv,Lv,EP,TP,_P].reduce((t,e)=>(t[e.keyName]=e,t),{});class One extends Ir{static DEFAULTS={matchers:[]};constructor(e,n){super(e,n),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],Nne.concat(this.options.matchers??[]).forEach(r=>{let[o,i]=r;this.addMatcher(o,i)})}addMatcher(e,n){this.matchers.push([e,n])}convert(e){let{html:n,text:r}=e,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o[Ut.blotName])return new be().insert(r||"",{[Ut.blotName]:o[Ut.blotName]});if(!n)return new be().insert(r||"",o);const i=this.convertHTML(n);return Ts(i,`
113
113
  `)&&(i.ops[i.ops.length-1].attributes==null||o.table)?i.compose(new be().retain(i.length()-1).delete(1)):i}normalizeHTML(e){Ane(e)}convertHTML(e){const n=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(n);const r=n.body,o=new WeakMap,[i,a]=this.prepareMatching(r,o);return Vv(this.quill.scroll,r,i,a,o)}dangerouslyPasteHTML(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ee.sources.API;if(typeof e=="string"){const o=this.convert({html:e,text:""});this.quill.setContents(o,n),this.quill.setSelection(0,ee.sources.SILENT)}else{const o=this.convert({html:n,text:""});this.quill.updateContents(new be().retain(e).concat(o),r),this.quill.setSelection(e+o.length(),ee.sources.SILENT)}}onCaptureCopy(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:o,text:i}=this.onCopy(r,n);e.clipboardData?.setData("text/plain",i),e.clipboardData?.setData("text/html",o),n&&$v({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(n=>n[0]!=="#").join(`
114
- `)}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=e.clipboardData?.getData("text/html");let o=e.clipboardData?.getData("text/plain");if(!r&&!o){const a=e.clipboardData?.getData("text/uri-list");a&&(o=this.normalizeURIList(a))}const i=Array.from(e.clipboardData?.files||[]);if(!r&&i.length>0){this.quill.uploader.upload(n,i);return}if(r&&i.length>0){const a=new DOMParser().parseFromString(r,"text/html");if(a.body.childElementCount===1&&a.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(n,i);return}}this.onPaste(n,{html:r,text:o})}onCopy(e){const n=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:n}}onPaste(e,n){let{text:r,html:o}=n;const i=this.quill.getFormat(e.index),a=this.convert({text:r,html:o},i);Tne.log("onPaste",a,{text:r,html:o});const s=new be().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(s,ee.sources.USER),this.quill.setSelection(s.length()-e.length,ee.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,n){const r=[],o=[];return this.matchers.forEach(i=>{const[a,s]=i;switch(a){case Node.TEXT_NODE:o.push(s);break;case Node.ELEMENT_NODE:r.push(s);break;default:Array.from(e.querySelectorAll(a)).forEach(l=>{n.has(l)?n.get(l)?.push(s):n.set(l,[s])});break}}),[r,o]}}function Xo(t,e,n,r){return r.query(e)?t.reduce((o,i)=>{if(!i.insert)return o;if(i.attributes&&i.attributes[e])return o.push(i);const a=n?{[e]:n}:{};return o.insert(i.insert,{...a,...i.attributes})},new be):t}function Ts(t,e){let n="";for(let r=t.ops.length-1;r>=0&&n.length<e.length;--r){const o=t.ops[r];if(typeof o.insert!="string")break;n=o.insert+n}return n.slice(-1*e.length)===e}function Xr(t,e){if(!(t instanceof Element))return!1;const n=e.query(t);return n&&n.prototype instanceof pn?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}function Rne(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Xr(t.previousElementSibling,e)&&!Xr(t.nextElementSibling,e)}const wl=new WeakMap;function RP(t){return t==null?!1:(wl.has(t)||(t.tagName==="PRE"?wl.set(t,!0):wl.set(t,RP(t.parentNode))),wl.get(t))}function Vv(t,e,n,r,o){return e.nodeType===e.TEXT_NODE?r.reduce((i,a)=>a(e,i,t),new be):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((i,a)=>{let s=Vv(t,a,n,r,o);return a.nodeType===e.ELEMENT_NODE&&(s=n.reduce((l,u)=>u(a,l,t),s),s=(o.get(a)||[]).reduce((l,u)=>u(a,l,t),s)),i.concat(s)},new be):new be}function ym(t){return(e,n,r)=>Xo(n,t,!0,r)}function Pne(t,e,n){const r=mr.keys(t),o=Zn.keys(t),i=uo.keys(t),a={};return r.concat(o).concat(i).forEach(s=>{let l=n.query(s,ve.ATTRIBUTE);l!=null&&(a[l.attrName]=l.value(t),a[l.attrName])||(l=_ne[s],l!=null&&(l.attrName===s||l.keyName===s)&&(a[l.attrName]=l.value(t)||void 0),l=rS[s],l!=null&&(l.attrName===s||l.keyName===s)&&(l=rS[s],a[l.attrName]=l.value(t)||void 0))}),Object.entries(a).reduce((s,l)=>{let[u,d]=l;return Xo(s,u,d,n)},e)}function Mne(t,e,n){const r=n.query(t);if(r==null)return e;if(r.prototype instanceof pn){const o={},i=r.value(t);if(i!=null)return o[r.blotName]=i,new be().insert(o,r.formats(t,n))}else if(r.prototype instanceof Qa&&!Ts(e,`
114
+ `)}onCapturePaste(e){if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const r=e.clipboardData?.getData("text/html");let o=e.clipboardData?.getData("text/plain");if(!r&&!o){const a=e.clipboardData?.getData("text/uri-list");a&&(o=this.normalizeURIList(a))}const i=Array.from(e.clipboardData?.files||[]);if(!r&&i.length>0){this.quill.uploader.upload(n,i);return}if(r&&i.length>0){const a=new DOMParser().parseFromString(r,"text/html");if(a.body.childElementCount===1&&a.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(n,i);return}}this.onPaste(n,{html:r,text:o})}onCopy(e){const n=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:n}}onPaste(e,n){let{text:r,html:o}=n;const i=this.quill.getFormat(e.index),a=this.convert({text:r,html:o},i);Tne.log("onPaste",a,{text:r,html:o});const s=new be().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(s,ee.sources.USER),this.quill.setSelection(s.length()-e.length,ee.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,n){const r=[],o=[];return this.matchers.forEach(i=>{const[a,s]=i;switch(a){case Node.TEXT_NODE:o.push(s);break;case Node.ELEMENT_NODE:r.push(s);break;default:Array.from(e.querySelectorAll(a)).forEach(l=>{n.has(l)?n.get(l)?.push(s):n.set(l,[s])});break}}),[r,o]}}function Xo(t,e,n,r){return r.query(e)?t.reduce((o,i)=>{if(!i.insert)return o;if(i.attributes&&i.attributes[e])return o.push(i);const a=n?{[e]:n}:{};return o.insert(i.insert,{...a,...i.attributes})},new be):t}function Ts(t,e){let n="";for(let r=t.ops.length-1;r>=0&&n.length<e.length;--r){const o=t.ops[r];if(typeof o.insert!="string")break;n=o.insert+n}return n.slice(-1*e.length)===e}function Xr(t,e){if(!(t instanceof Element))return!1;const n=e.query(t);return n&&n.prototype instanceof pn?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(t.tagName.toLowerCase())}function Rne(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Xr(t.previousElementSibling,e)&&!Xr(t.nextElementSibling,e)}const wl=new WeakMap;function OP(t){return t==null?!1:(wl.has(t)||(t.tagName==="PRE"?wl.set(t,!0):wl.set(t,OP(t.parentNode))),wl.get(t))}function Vv(t,e,n,r,o){return e.nodeType===e.TEXT_NODE?r.reduce((i,a)=>a(e,i,t),new be):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((i,a)=>{let s=Vv(t,a,n,r,o);return a.nodeType===e.ELEMENT_NODE&&(s=n.reduce((l,u)=>u(a,l,t),s),s=(o.get(a)||[]).reduce((l,u)=>u(a,l,t),s)),i.concat(s)},new be):new be}function ym(t){return(e,n,r)=>Xo(n,t,!0,r)}function Pne(t,e,n){const r=mr.keys(t),o=Zn.keys(t),i=uo.keys(t),a={};return r.concat(o).concat(i).forEach(s=>{let l=n.query(s,ve.ATTRIBUTE);l!=null&&(a[l.attrName]=l.value(t),a[l.attrName])||(l=_ne[s],l!=null&&(l.attrName===s||l.keyName===s)&&(a[l.attrName]=l.value(t)||void 0),l=rS[s],l!=null&&(l.attrName===s||l.keyName===s)&&(l=rS[s],a[l.attrName]=l.value(t)||void 0))}),Object.entries(a).reduce((s,l)=>{let[u,d]=l;return Xo(s,u,d,n)},e)}function Mne(t,e,n){const r=n.query(t);if(r==null)return e;if(r.prototype instanceof pn){const o={},i=r.value(t);if(i!=null)return o[r.blotName]=i,new be().insert(o,r.formats(t,n))}else if(r.prototype instanceof Qa&&!Ts(e,`
115
115
  `)&&e.insert(`
116
116
  `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Xo(e,r.blotName,r.formats(t,n),n);return e}function kne(t,e){return Ts(e,`
117
117
  `)||e.insert(`
@@ -120,15 +120,15 @@ ${Dc(this.code(e,n))}
120
120
  `)){if(Xr(t,n)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement))return e.insert(`
121
121
  `);if(e.length()>0&&t.nextSibling){let r=t.nextSibling;for(;r!=null;){if(Xr(r,n))return e.insert(`
122
122
  `);const o=n.query(r);if(o&&o.prototype instanceof wn)return e.insert(`
123
- `);r=r.firstChild}}}return e}function Fne(t,e,n){const r={},o=t.style||{};return o.fontStyle==="italic"&&(r.italic=!0),o.textDecoration==="underline"&&(r.underline=!0),o.textDecoration==="line-through"&&(r.strike=!0),(o.fontWeight?.startsWith("bold")||parseInt(o.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((i,a)=>{let[s,l]=a;return Xo(i,s,l,n)},e),parseFloat(o.textIndent||0)>0?new be().insert(" ").concat(e):e}function Gne(t,e,n){const r=t.parentElement?.tagName==="TABLE"?t.parentElement:t.parentElement?.parentElement;if(r!=null){const i=Array.from(r.querySelectorAll("tr")).indexOf(t)+1;return Xo(e,"table",i,n)}return e}function $ne(t,e,n){let r=t.data;if(t.parentElement?.tagName==="O:P")return e.insert(r.trim());if(!RP(t)){if(r.trim().length===0&&r.includes(`
123
+ `);r=r.firstChild}}}return e}function Fne(t,e,n){const r={},o=t.style||{};return o.fontStyle==="italic"&&(r.italic=!0),o.textDecoration==="underline"&&(r.underline=!0),o.textDecoration==="line-through"&&(r.strike=!0),(o.fontWeight?.startsWith("bold")||parseInt(o.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((i,a)=>{let[s,l]=a;return Xo(i,s,l,n)},e),parseFloat(o.textIndent||0)>0?new be().insert(" ").concat(e):e}function Gne(t,e,n){const r=t.parentElement?.tagName==="TABLE"?t.parentElement:t.parentElement?.parentElement;if(r!=null){const i=Array.from(r.querySelectorAll("tr")).indexOf(t)+1;return Xo(e,"table",i,n)}return e}function $ne(t,e,n){let r=t.data;if(t.parentElement?.tagName==="O:P")return e.insert(r.trim());if(!OP(t)){if(r.trim().length===0&&r.includes(`
124
124
  `)&&!Rne(t,n))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(t.previousSibling==null&&t.parentElement!=null&&Xr(t.parentElement,n)||t.previousSibling instanceof Element&&Xr(t.previousSibling,n))&&(r=r.replace(/^ /,"")),(t.nextSibling==null&&t.parentElement!=null&&Xr(t.parentElement,n)||t.nextSibling instanceof Element&&Xr(t.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class Vne extends Ir{static DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};lastRecorded=0;ignoreChange=!1;stack={undo:[],redo:[]};currentRange=null;constructor(e,n){super(e,n),this.quill.on(ee.events.EDITOR_CHANGE,(r,o,i,a)=>{r===ee.events.SELECTION_CHANGE?o&&a!==ee.sources.SILENT&&(this.currentRange=o):r===ee.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||a===ee.sources.USER?this.record(o,i):this.transform(o)),this.currentRange=Dg(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(e,n){if(this.stack[e].length===0)return;const r=this.stack[e].pop();if(!r)return;const o=this.quill.getContents(),i=r.delta.invert(o);this.stack[n].push({delta:i,range:Dg(r.range,i)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,ee.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(e,n){if(e.ops.length===0)return;this.stack.redo=[];let r=e.invert(n),o=this.currentRange;const i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(r=r.compose(a.delta),o=a.range)}else this.lastRecorded=i;r.length()!==0&&(this.stack.undo.push({delta:r,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(e){iS(this.stack.undo,e),iS(this.stack.redo,e)}undo(){this.change("undo","redo")}restoreSelection(e){if(e.range)this.quill.setSelection(e.range,ee.sources.USER);else{const n=Hne(this.quill.scroll,e.delta);this.quill.setSelection(n,ee.sources.USER)}}}function iS(t,e){let n=e;for(let r=t.length-1;r>=0;r-=1){const o=t[r];t[r]={delta:n.transform(o.delta,!0),range:o.range&&Dg(o.range,n)},n=o.delta.transform(n),t[r].delta.length()===0&&t.splice(r,1)}}function Wne(t,e){const n=e.ops[e.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
125
- `):n.attributes!=null?Object.keys(n.attributes).some(r=>t.query(r,ve.BLOCK)!=null):!1}function Hne(t,e){const n=e.reduce((o,i)=>o+(i.delete||0),0);let r=e.length()-n;return Wne(t,e)&&(r-=1),r}function Dg(t,e){if(!t)return t;const n=e.transformPosition(t.index),r=e.transformPosition(t.index+t.length);return{index:n,length:r-n}}class PP extends Ir{constructor(e,n){super(e,n),e.root.addEventListener("drop",r=>{r.preventDefault();let o=null;if(document.caretRangeFromPoint)o=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);o=document.createRange(),o.setStart(a.offsetNode,a.offset),o.setEnd(a.offsetNode,a.offset)}const i=o&&e.selection.normalizeNative(o);if(i){const a=e.selection.normalizedToRange(i);r.dataTransfer?.files&&this.upload(a,r.dataTransfer.files)}})}upload(e,n){const r=[];Array.from(n).forEach(o=>{o&&this.options.mimetypes?.includes(o.type)&&r.push(o)}),r.length>0&&this.options.handler.call(this,e,r)}}PP.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return;const n=e.map(r=>new Promise(o=>{const i=new FileReader;i.onload=()=>{o(i.result)},i.readAsDataURL(r)}));Promise.all(n).then(r=>{const o=r.reduce((i,a)=>i.insert({image:a}),new be().retain(t.index).delete(t.length));this.quill.updateContents(o,ge.sources.USER),this.quill.setSelection(t.index+r.length,ge.sources.SILENT)})}};const qne=["insertText","insertReplacementText"];class zne extends Ir{constructor(e,n){super(e,n),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(ee.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){$v({range:e,quill:this.quill})}replaceText(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(n){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new be().retain(e.index).insert(n,r),ee.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+n.length,0,ee.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!qne.includes(e.inputType))return;const n=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=Xne(e);if(r==null)return;const o=this.quill.selection.normalizeNative(n),i=o?this.quill.selection.normalizedToRange(o):null;i&&this.replaceText(i,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function Xne(t){return typeof t.data=="string"?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}const Yne=/Mac/i.test(navigator.platform),Une=100,Zne=t=>!!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||Yne&&t.key==="a"&&t.ctrlKey===!0);class Jne extends Ir{isListening=!1;selectionChangeDeadline=0;constructor(e,n){super(e,n),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,n){let{line:r,event:o}=n;if(!(r instanceof Gn)||!r.uiNode)return!0;const i=getComputedStyle(r.domNode).direction==="rtl";return i&&o.key!=="ArrowRight"||!i&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(o.shiftKey?1:0),ee.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&Zne(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Une,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const n=e.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const r=this.quill.scroll.find(n.startContainer);if(!(r instanceof Gn)||!r.uiNode)return;const o=document.createRange();o.setStartAfter(r.uiNode),o.setEndAfter(r.uiNode),e.removeAllRanges(),e.addRange(o)}}ee.register({"blots/block":Dt,"blots/block/embed":wn,"blots/break":Jn,"blots/container":qo,"blots/cursor":Dn,"blots/embed":Dv,"blots/inline":Xt,"blots/scroll":one,"blots/text":Wn,"modules/clipboard":One,"modules/history":Vne,"modules/keyboard":jc,"modules/uploader":PP,"modules/input":zne,"modules/uiNode":Jne});class Kne extends Zn{add(e,n){let r=0;if(n==="+1"||n==="-1"){const o=this.value(e)||0;r=n==="+1"?o+1:o-1}else typeof n=="number"&&(r=n);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,n){return super.canAdd(e,n)||super.canAdd(e,parseInt(n,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Qne=new Kne("indent","ql-indent",{scope:ve.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class ere extends Dt{static blotName="blockquote";static tagName="blockquote"}class tre extends Dt{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}}class Ns extends qo{}Ns.blotName="list-container";Ns.tagName="OL";class _s extends Dt{static create(e){const n=super.create();return n.setAttribute("data-list",e),n}static formats(e){return e.getAttribute("data-list")||void 0}static register(){ee.register(Ns)}constructor(e,n){super(e,n);const r=n.ownerDocument.createElement("span"),o=i=>{if(!e.isEnabled())return;const a=this.statics.formats(n,e);a==="checked"?(this.format("list","unchecked"),i.preventDefault()):a==="unchecked"&&(this.format("list","checked"),i.preventDefault())};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),this.attachUI(r)}format(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(e,n)}}_s.blotName="list";_s.tagName="LI";Ns.allowedChildren=[_s];_s.requiredContainer=Ns;class Wv extends Xt{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}class nre extends Wv{static blotName="italic";static tagName=["EM","I"]}class pu extends Xt{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){const n=super.create(e);return n.setAttribute("href",this.sanitize(e)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(e){return e.getAttribute("href")}static sanitize(e){return MP(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,n){e!==this.statics.blotName||!n?super.format(e,n):this.domNode.setAttribute("href",this.constructor.sanitize(n))}}function MP(t,e){const n=document.createElement("a");n.href=t;const r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}class rre extends Xt{static blotName="script";static tagName=["SUB","SUP"];static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}class ore extends Wv{static blotName="strike";static tagName=["S","STRIKE"]}class ire extends Xt{static blotName="underline";static tagName="U"}class are extends Dv{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const n=super.create(e);return typeof e=="string"&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}const aS=["alt","height","width"];class sre extends pn{static blotName="image";static tagName="IMG";static create(e){const n=super.create(e);return typeof e=="string"&&n.setAttribute("src",this.sanitize(e)),n}static formats(e){return aS.reduce((n,r)=>(e.hasAttribute(r)&&(n[r]=e.getAttribute(r)),n),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return MP(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,n){aS.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):super.format(e,n)}}const sS=["height","width"];class lre extends wn{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){const n=super.create(e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(e)),n}static formats(e){return sS.reduce((n,r)=>(e.hasAttribute(r)&&(n[r]=e.getAttribute(r)),n),{})}static sanitize(e){return pu.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,n){sS.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):super.format(e,n)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}const Aa=new Zn("code-token","hljs",{scope:ve.INLINE});class Fr extends Xt{static formats(e,n){for(;e!=null&&e!==n.domNode;){if(e.classList&&e.classList.contains(Ut.className))return super.formats(e,n);e=e.parentNode}}constructor(e,n,r){super(e,n,r),Aa.add(this.domNode,r)}format(e,n){e!==Fr.blotName?super.format(e,n):n?Aa.add(this.domNode,n):(Aa.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Aa.value(this.domNode)||this.unwrap()}}Fr.blotName="code-token";Fr.className="ql-token";class xn extends Ut{static create(e){const n=super.create(e);return typeof e=="string"&&n.setAttribute("data-language",e),n}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):super.format(e,n)}replaceWith(e,n){return this.formatAt(0,this.length(),Fr.blotName,!1),super.replaceWith(e,n)}}class _a extends zo{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,n){e===xn.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,n)}))}formatAt(e,n,r,o){r===xn.blotName&&(this.forceNext=!0),super.formatAt(e,n,r,o)}highlight(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const o=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
125
+ `):n.attributes!=null?Object.keys(n.attributes).some(r=>t.query(r,ve.BLOCK)!=null):!1}function Hne(t,e){const n=e.reduce((o,i)=>o+(i.delete||0),0);let r=e.length()-n;return Wne(t,e)&&(r-=1),r}function Dg(t,e){if(!t)return t;const n=e.transformPosition(t.index),r=e.transformPosition(t.index+t.length);return{index:n,length:r-n}}class RP extends Ir{constructor(e,n){super(e,n),e.root.addEventListener("drop",r=>{r.preventDefault();let o=null;if(document.caretRangeFromPoint)o=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);o=document.createRange(),o.setStart(a.offsetNode,a.offset),o.setEnd(a.offsetNode,a.offset)}const i=o&&e.selection.normalizeNative(o);if(i){const a=e.selection.normalizedToRange(i);r.dataTransfer?.files&&this.upload(a,r.dataTransfer.files)}})}upload(e,n){const r=[];Array.from(n).forEach(o=>{o&&this.options.mimetypes?.includes(o.type)&&r.push(o)}),r.length>0&&this.options.handler.call(this,e,r)}}RP.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image"))return;const n=e.map(r=>new Promise(o=>{const i=new FileReader;i.onload=()=>{o(i.result)},i.readAsDataURL(r)}));Promise.all(n).then(r=>{const o=r.reduce((i,a)=>i.insert({image:a}),new be().retain(t.index).delete(t.length));this.quill.updateContents(o,ge.sources.USER),this.quill.setSelection(t.index+r.length,ge.sources.SILENT)})}};const qne=["insertText","insertReplacementText"];class zne extends Ir{constructor(e,n){super(e,n),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(ee.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){$v({range:e,quill:this.quill})}replaceText(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(n){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new be().retain(e.index).insert(n,r),ee.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+n.length,0,ee.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!qne.includes(e.inputType))return;const n=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const r=Xne(e);if(r==null)return;const o=this.quill.selection.normalizeNative(n),i=o?this.quill.selection.normalizedToRange(o):null;i&&this.replaceText(i,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function Xne(t){return typeof t.data=="string"?t.data:t.dataTransfer?.types.includes("text/plain")?t.dataTransfer.getData("text/plain"):null}const Yne=/Mac/i.test(navigator.platform),Une=100,Zne=t=>!!(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"||Yne&&t.key==="a"&&t.ctrlKey===!0);class Jne extends Ir{isListening=!1;selectionChangeDeadline=0;constructor(e,n){super(e,n),this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(e,n){let{line:r,event:o}=n;if(!(r instanceof Gn)||!r.uiNode)return!0;const i=getComputedStyle(r.domNode).direction==="rtl";return i&&o.key!=="ArrowRight"||!i&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(e.index-1,e.length+(o.shiftKey?1:0),ee.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",e=>{!e.defaultPrevented&&Zne(e)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Une,this.isListening)return;this.isListening=!0;const e=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",e,{once:!0})}handleSelectionChange(){const e=document.getSelection();if(!e)return;const n=e.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const r=this.quill.scroll.find(n.startContainer);if(!(r instanceof Gn)||!r.uiNode)return;const o=document.createRange();o.setStartAfter(r.uiNode),o.setEndAfter(r.uiNode),e.removeAllRanges(),e.addRange(o)}}ee.register({"blots/block":Dt,"blots/block/embed":wn,"blots/break":Jn,"blots/container":qo,"blots/cursor":Dn,"blots/embed":Dv,"blots/inline":Xt,"blots/scroll":one,"blots/text":Wn,"modules/clipboard":One,"modules/history":Vne,"modules/keyboard":jc,"modules/uploader":RP,"modules/input":zne,"modules/uiNode":Jne});class Kne extends Zn{add(e,n){let r=0;if(n==="+1"||n==="-1"){const o=this.value(e)||0;r=n==="+1"?o+1:o-1}else typeof n=="number"&&(r=n);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,n){return super.canAdd(e,n)||super.canAdd(e,parseInt(n,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Qne=new Kne("indent","ql-indent",{scope:ve.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class ere extends Dt{static blotName="blockquote";static tagName="blockquote"}class tre extends Dt{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(e){return this.tagName.indexOf(e.tagName)+1}}class Ns extends qo{}Ns.blotName="list-container";Ns.tagName="OL";class _s extends Dt{static create(e){const n=super.create();return n.setAttribute("data-list",e),n}static formats(e){return e.getAttribute("data-list")||void 0}static register(){ee.register(Ns)}constructor(e,n){super(e,n);const r=n.ownerDocument.createElement("span"),o=i=>{if(!e.isEnabled())return;const a=this.statics.formats(n,e);a==="checked"?(this.format("list","unchecked"),i.preventDefault()):a==="unchecked"&&(this.format("list","checked"),i.preventDefault())};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),this.attachUI(r)}format(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(e,n)}}_s.blotName="list";_s.tagName="LI";Ns.allowedChildren=[_s];_s.requiredContainer=Ns;class Wv extends Xt{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}class nre extends Wv{static blotName="italic";static tagName=["EM","I"]}class pu extends Xt{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(e){const n=super.create(e);return n.setAttribute("href",this.sanitize(e)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(e){return e.getAttribute("href")}static sanitize(e){return PP(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,n){e!==this.statics.blotName||!n?super.format(e,n):this.domNode.setAttribute("href",this.constructor.sanitize(n))}}function PP(t,e){const n=document.createElement("a");n.href=t;const r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}class rre extends Xt{static blotName="script";static tagName=["SUB","SUP"];static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}class ore extends Wv{static blotName="strike";static tagName=["S","STRIKE"]}class ire extends Xt{static blotName="underline";static tagName="U"}class are extends Dv{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const n=super.create(e);return typeof e=="string"&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}const aS=["alt","height","width"];class sre extends pn{static blotName="image";static tagName="IMG";static create(e){const n=super.create(e);return typeof e=="string"&&n.setAttribute("src",this.sanitize(e)),n}static formats(e){return aS.reduce((n,r)=>(e.hasAttribute(r)&&(n[r]=e.getAttribute(r)),n),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return PP(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,n){aS.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):super.format(e,n)}}const sS=["height","width"];class lre extends wn{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(e){const n=super.create(e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(e)),n}static formats(e){return sS.reduce((n,r)=>(e.hasAttribute(r)&&(n[r]=e.getAttribute(r)),n),{})}static sanitize(e){return pu.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,n){sS.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):super.format(e,n)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}const Aa=new Zn("code-token","hljs",{scope:ve.INLINE});class Fr extends Xt{static formats(e,n){for(;e!=null&&e!==n.domNode;){if(e.classList&&e.classList.contains(Ut.className))return super.formats(e,n);e=e.parentNode}}constructor(e,n,r){super(e,n,r),Aa.add(this.domNode,r)}format(e,n){e!==Fr.blotName?super.format(e,n):n?Aa.add(this.domNode,n):(Aa.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Aa.value(this.domNode)||this.unwrap()}}Fr.blotName="code-token";Fr.className="ql-token";class xn extends Ut{static create(e){const n=super.create(e);return typeof e=="string"&&n.setAttribute("data-language",e),n}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):super.format(e,n)}replaceWith(e,n){return this.formatAt(0,this.length(),Fr.blotName,!1),super.replaceWith(e,n)}}class _a extends zo{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,n){e===xn.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,n)}))}formatAt(e,n,r,o){r===xn.blotName&&(this.forceNext=!0),super.formatAt(e,n,r,o)}highlight(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const o=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
126
126
  `)}
127
- `,i=xn.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==o){if(o.trim().length>0||this.cachedText==null){const a=this.children.reduce((l,u)=>l.concat(vP(u,!1)),new be),s=e(o,i);a.diff(s).reduce((l,u)=>{let{retain:d,attributes:c}=u;return d?(c&&Object.keys(c).forEach(f=>{[xn.blotName,Fr.blotName].includes(f)&&this.formatAt(l,d,f,c[f])}),l+d):l},0)}this.cachedText=o,this.forceNext=!1}}html(e,n){const[r]=this.children.find(e);return`<pre data-language="${r?xn.formats(r.domNode):"plain"}">
127
+ `,i=xn.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==o){if(o.trim().length>0||this.cachedText==null){const a=this.children.reduce((l,u)=>l.concat(bP(u,!1)),new be),s=e(o,i);a.diff(s).reduce((l,u)=>{let{retain:d,attributes:c}=u;return d?(c&&Object.keys(c).forEach(f=>{[xn.blotName,Fr.blotName].includes(f)&&this.formatAt(l,d,f,c[f])}),l+d):l},0)}this.cachedText=o,this.forceNext=!1}}html(e,n){const[r]=this.children.find(e);return`<pre data-language="${r?xn.formats(r.domNode):"plain"}">
128
128
  ${Dc(this.code(e,n))}
129
- </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=xn.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}_a.allowedChildren=[xn];xn.requiredContainer=_a;xn.allowedChildren=[Fr,Dn,Wn,Jn];const ure=(t,e,n)=>{if(typeof t.versionString=="string"){const r=t.versionString.split(".")[0];if(parseInt(r,10)>=11)return t.highlight(n,{language:e}).value}return t.highlight(e,n).value};class kP extends Ir{static register(){ee.register(Fr,!0),ee.register(xn,!0),ee.register(_a,!0)}constructor(e,n){if(super(e,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,o)=>{let{key:i}=o;return r[i]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(ee.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof _a))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:o,label:i}=r;const a=n.ownerDocument.createElement("option");a.textContent=i,a.setAttribute("value",o),n.appendChild(a)}),n.addEventListener("change",()=>{e.format(xn.blotName,n.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(n),e.children.head&&(n.value=xn.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(ee.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(ee.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(_a):[e]).forEach(i=>{i.highlight(this.highlightBlot,n)}),this.quill.update(ee.sources.SILENT),r!=null&&this.quill.setSelection(r,ee.sources.SILENT)}highlightBlot(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return Dc(e).split(`
129
+ </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=xn.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}_a.allowedChildren=[xn];xn.requiredContainer=_a;xn.allowedChildren=[Fr,Dn,Wn,Jn];const ure=(t,e,n)=>{if(typeof t.versionString=="string"){const r=t.versionString.split(".")[0];if(parseInt(r,10)>=11)return t.highlight(n,{language:e}).value}return t.highlight(e,n).value};class MP extends Ir{static register(){ee.register(Fr,!0),ee.register(xn,!0),ee.register(_a,!0)}constructor(e,n){if(super(e,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,o)=>{let{key:i}=o;return r[i]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(ee.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof _a))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:o,label:i}=r;const a=n.ownerDocument.createElement("option");a.textContent=i,a.setAttribute("value",o),n.appendChild(a)}),n.addEventListener("change",()=>{e.format(xn.blotName,n.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(n),e.children.head&&(n.value=xn.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(ee.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(ee.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(_a):[e]).forEach(i=>{i.highlight(this.highlightBlot,n)}),this.quill.update(ee.sources.SILENT),r!=null&&this.quill.setSelection(r,ee.sources.SILENT)}highlightBlot(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return Dc(e).split(`
130
130
  `).reduce((o,i,a)=>(a!==0&&o.insert(`
131
131
  `,{[Ut.blotName]:n}),o.insert(i)),new be);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(Ut.className),r.innerHTML=ure(this.options.hljs,n,e),Vv(this.quill.scroll,r,[(o,i)=>{const a=Aa.value(o);return a?i.compose(new be().retain(i.length(),{[Fr.blotName]:a})):i}],[(o,i)=>o.data.split(`
132
132
  `).reduce((a,s,l)=>(l!==0&&a.insert(`
133
- `,{[Ut.blotName]:n}),a.insert(s)),i)],new WeakMap)}}kP.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class jn extends Dt{static blotName="table";static tagName="TD";static create(e){const n=super.create();return e?n.setAttribute("data-row",e):n.setAttribute("data-row",Hv()),n}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,n){e===jn.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(e,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class ko extends qo{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),o=this.next.children.tail.formats();return e.table===n.table&&e.table===r.table&&e.table===o.table}return!1}optimize(e){super.optimize(e),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),o=n.next.formats();if(r.table!==o.table){const i=this.splitAfter(n);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class Zr extends qo{static blotName="table-body";static tagName="TBODY"}class mu extends qo{static blotName="table-container";static tagName="TABLE";balanceCells(){const e=this.descendants(ko),n=e.reduce((r,o)=>Math.max(o.children.length,r),0);e.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let o;r.children.head!=null&&(o=jn.formats(r.children.head.domNode));const i=this.scroll.create(jn.blotName,o);r.appendChild(i),i.optimize()})})}cells(e){return this.rows().map(n=>n.children.at(e))}deleteColumn(e){const[n]=this.descendant(Zr);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(e);o?.remove()})}insertColumn(e){const[n]=this.descendant(Zr);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(e),i=jn.formats(r.children.head.domNode),a=this.scroll.create(jn.blotName,i);r.insertBefore(a,o)})}insertRow(e){const[n]=this.descendant(Zr);if(n==null||n.children.head==null)return;const r=Hv(),o=this.scroll.create(ko.blotName);n.children.head.children.forEach(()=>{const a=this.scroll.create(jn.blotName,r);o.appendChild(a)});const i=n.children.at(e);n.insertBefore(o,i)}rows(){const e=this.children.head;return e==null?[]:e.children.map(n=>n)}}mu.allowedChildren=[Zr];Zr.requiredContainer=mu;Zr.allowedChildren=[ko];ko.requiredContainer=Zr;ko.allowedChildren=[jn];jn.requiredContainer=ko;function Hv(){return`row-${Math.random().toString(36).slice(2,6)}`}class cre extends Ir{static register(){ee.register(jn),ee.register(ko),ee.register(Zr),ee.register(mu)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(mu).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,n]=this.getTable();n!=null&&(e.deleteColumn(n.cellOffset()),this.quill.update(ee.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(ee.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const n=e.offset();e.remove(),this.quill.update(ee.sources.USER),this.quill.setSelection(n,ee.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(e.index);if(n==null||n.statics.blotName!==jn.blotName)return[null,null,null,-1];const o=n.parent;return[o.parent.parent,o,n,r]}insertColumn(e){const n=this.quill.getSelection();if(!n)return;const[r,o,i]=this.getTable(n);if(i==null)return;const a=i.cellOffset();r.insertColumn(a+e),this.quill.update(ee.sources.USER);let s=o.rowOffset();e===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,ee.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const n=this.quill.getSelection();if(!n)return;const[r,o,i]=this.getTable(n);if(i==null)return;const a=o.rowOffset();r.insertRow(a+e),this.quill.update(ee.sources.USER),e>0?this.quill.setSelection(n,ee.sources.SILENT):this.quill.setSelection(n.index+o.children.length,n.length,ee.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,n){const r=this.quill.getSelection();if(r==null)return;const o=new Array(e).fill(0).reduce(i=>{const a=new Array(n).fill(`
134
- `).join("");return i.insert(a,{table:Hv()})},new be().retain(r.index));this.quill.updateContents(o,ee.sources.USER),this.quill.setSelection(r.index,ee.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ee.events.SCROLL_OPTIMIZE,e=>{e.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(ee.events.TEXT_CHANGE,(r,o,i)=>{i===ee.sources.USER&&this.balanceTables()}),!0):!1)})}}const lS=$r("quill:toolbar");class qv extends Ir{constructor(e,n){if(super(e,n),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),dre(r,this.options.container),e.container?.parentNode?.insertBefore(r,e.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){lS.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{const o=this.options.handlers?.[r];o&&this.addHandler(r,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(r=>{this.attach(r)}),this.quill.on(ee.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})}addHandler(e,n){this.handlers[e]=n}attach(e){let n=Array.from(e.classList).find(o=>o.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){lS.warn("ignoring attaching to nonexistent format",n,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,o=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const s=e.options[e.selectedIndex];s.hasAttribute("selected")?i=!1:i=s.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),o.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,i);else if(this.quill.scroll.query(n).prototype instanceof pn){if(i=prompt(`Enter ${n}`),!i)return;this.quill.updateContents(new be().retain(a.index).delete(a.length).insert({[n]:i}),ee.sources.USER)}else this.quill.format(n,i,ee.sources.USER);this.update(a)}),this.controls.push([n,e])}update(e){const n=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[o,i]=r;if(i.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(n[o]==null)a=i.querySelector("option[selected]");else if(!Array.isArray(n[o])){let s=n[o];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),a=i.querySelector(`option[value="${s}"]`)}a==null?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const a=n[o],s=a===i.getAttribute("value")||a!=null&&a.toString()===i.getAttribute("value")||a==null&&!i.getAttribute("value");i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}else{const a=n[o]!=null;i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}})}}qv.DEFAULTS={};function uS(t,e,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${e}: ${n}`)):r.setAttribute("aria-label",e),t.appendChild(r)}function dre(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(o=>{if(typeof o=="string")uS(r,o);else{const i=Object.keys(o)[0],a=o[i];Array.isArray(a)?fre(r,i,a):uS(r,i,a)}}),t.appendChild(r)})}function fre(t,e,n){const r=document.createElement("select");r.classList.add(`ql-${e}`),n.forEach(o=>{const i=document.createElement("option");o!==!1?i.setAttribute("value",String(o)):i.setAttribute("selected","selected"),r.appendChild(i)}),t.appendChild(r)}qv.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(t!=null)if(t.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(n=>{this.quill.scroll.query(n,ve.INLINE)!=null&&this.quill.format(n,!1,ee.sources.USER)})}else this.quill.removeFormat(t.index,t.length,ee.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();t==="rtl"&&e==null?this.quill.format("align","right",ee.sources.USER):!t&&e==="right"&&this.quill.format("align",!1,ee.sources.USER),this.quill.format("direction",t,ee.sources.USER)},indent(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0,10);if(t==="+1"||t==="-1"){let o=t==="+1"?1:-1;n.direction==="rtl"&&(o*=-1),this.quill.format("indent",r+o,ee.sources.USER)}},link(t){t===!0&&(t=prompt("Enter link URL:")),this.quill.format("link",t,ee.sources.USER)},list(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e);t==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,ee.sources.USER):this.quill.format("list","unchecked",ee.sources.USER):this.quill.format("list",t,ee.sources.USER)}}};const hre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',pre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',mre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',gre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',bre='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',vre='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',yre='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',xre='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',cS='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',wre='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',Cre='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',Sre='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',Ere='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',Ire='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',Are='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',Tre='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',Nre='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',_re='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',Ore='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',Rre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',Pre='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',Mre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',kre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',Dre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',jre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',Lre='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',Bre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',Fre='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',Gre='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',$re='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',Vre='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',Wre='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',Hre='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',ts={align:{"":hre,center:pre,right:mre,justify:gre},background:bre,blockquote:vre,bold:yre,clean:xre,code:cS,"code-block":cS,color:wre,direction:{"":Cre,rtl:Sre},formula:Ere,header:{1:Ire,2:Are,3:Tre,4:Nre,5:_re,6:Ore},italic:Rre,image:Pre,indent:{"+1":Mre,"-1":kre},link:Dre,list:{bullet:jre,check:Lre,ordered:Bre},script:{sub:Fre,super:Gre},strike:$re,table:Vre,underline:Wre,video:Hre},qre='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let dS=0;function fS(t,e){t.setAttribute(e,`${t.getAttribute(e)!=="true"}`)}class Lc{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),fS(this.label,"aria-expanded"),fS(this.options,"aria-hidden")}buildItem(e){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&n.setAttribute("data-value",r),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",o=>{switch(o.key){case"Enter":this.selectItem(n,!0),o.preventDefault();break;case"Escape":this.escape(),o.preventDefault();break}}),n}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=qre,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${dS}`,dS+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);e.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r?.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class DP extends Lc{constructor(e,n){super(e),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const n=super.buildItem(e);return n.style.backgroundColor=e.getAttribute("value")||"",n}selectItem(e,n){super.selectItem(e,n);const r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=o:r.style.fill=o)}}class jP extends Lc{constructor(e,n){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,n){super.selectItem(e,n);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const zre=t=>{const{overflowY:e}=getComputedStyle(t,null);return e!=="visible"&&e!=="clip"};class LP{constructor(e,n){this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,zre(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const n=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const o=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>o.right&&(a=o.right-i.right,this.root.style.left=`${n+a}px`),i.left<o.left&&(a=o.left-i.left,this.root.style.left=`${n+a}px`),i.bottom>o.bottom){const s=i.bottom-i.top,l=e.bottom-e.top+s;this.root.style.top=`${r-l}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Xre=[!1,"center","right","justify"],Yre=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ure=[!1,"serif","monospace"],Zre=["1","2","3",!1],Jre=["small",!1,"large","huge"];class Os extends Ui{constructor(e,n){super(e,n);const r=o=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(o.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(o.target)||i.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const n=super.addModule(e);return e==="toolbar"&&this.extendToolbar(n),n}buildButtons(e,n){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),n[i]!=null))if(i==="direction")r.innerHTML=n[i][""]+n[i].rtl;else if(typeof n[i]=="string")r.innerHTML=n[i];else{const a=r.value||"";a!=null&&n[i][a]&&(r.innerHTML=n[i][a])}})})}buildPickers(e,n){this.pickers=Array.from(e).map(o=>{if(o.classList.contains("ql-align")&&(o.querySelector("option")==null&&ha(o,Xre),typeof n.align=="object"))return new jP(o,n.align);if(o.classList.contains("ql-background")||o.classList.contains("ql-color")){const i=o.classList.contains("ql-background")?"background":"color";return o.querySelector("option")==null&&ha(o,Yre,i==="background"?"#ffffff":"#000000"),new DP(o,n[i])}return o.querySelector("option")==null&&(o.classList.contains("ql-font")?ha(o,Ure):o.classList.contains("ql-header")?ha(o,Zre):o.classList.contains("ql-size")&&ha(o,Jre)),new Lc(o)});const r=()=>{this.pickers.forEach(o=>{o.update()})};this.quill.on(ge.events.EDITOR_CHANGE,r)}}Os.DEFAULTS=Ur({},Ui.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");t==null&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class BP extends LP{constructor(e,n){super(e,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ge.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,ge.sources.USER)),this.quill.root.scrollTop=n;break}case"video":e=Kre(e);case"formula":{if(!e)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,ge.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",ge.sources.USER),this.quill.setSelection(r+2,ge.sources.USER)}break}}this.textbox.value="",this.hide()}}function Kre(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:t}function ha(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const o=document.createElement("option");r===n?o.setAttribute("selected","selected"):o.setAttribute("value",String(r)),t.appendChild(o)})}const Qre=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class eoe extends BP{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,n){super(e,n),this.quill.on(ge.events.EDITOR_CHANGE,(r,o,i,a)=>{if(r===ge.events.SELECTION_CHANGE)if(o!=null&&o.length>0&&a===ge.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(o.index,o.length);if(s.length===1){const l=this.quill.getBounds(o);l!=null&&this.position(l)}else{const l=s[s.length-1],u=this.quill.getIndex(l),d=Math.min(l.length()-1,o.index+o.length-u),c=this.quill.getBounds(new Mo(u,d));c!=null&&this.position(c)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ge.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const n=this.quill.getBounds(e);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(e){const n=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}class FP extends Os{constructor(e,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Qre),super(e,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new eoe(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),ts),this.buildPickers(e.container.querySelectorAll("select"),ts))}}FP.DEFAULTS=Ur({},Os.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,ee.sources.USER)}}}}});const toe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class noe extends BP{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,ge.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(ge.events.SELECTION_CHANGE,(e,n,r)=>{if(e!=null){if(e.length===0&&r===ge.sources.USER){const[o,i]=this.quill.scroll.descendant(pu,e.index);if(o!=null){this.linkRange=new Mo(e.index-i,o.length());const a=pu.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const s=this.quill.getBounds(this.linkRange);s!=null&&this.position(s);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class GP extends Os{constructor(e,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=toe),super(e,n),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),ts),this.buildPickers(e.container.querySelectorAll("select"),ts),this.tooltip=new noe(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{e.handlers.link.call(e,!r.format.link)}))}}GP.DEFAULTS=Ur({},Os.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const e=this.quill.getSelection();if(e==null||e.length===0)return;let n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,ee.sources.USER)}}}}});ee.register({"attributors/attribute/direction":SP,"attributors/class/align":xP,"attributors/class/background":sne,"attributors/class/color":ane,"attributors/class/direction":EP,"attributors/class/font":TP,"attributors/class/size":_P,"attributors/style/align":wP,"attributors/style/background":Bv,"attributors/style/color":Lv,"attributors/style/direction":IP,"attributors/style/font":NP,"attributors/style/size":OP},!0);ee.register({"formats/align":xP,"formats/direction":EP,"formats/indent":Qne,"formats/background":Bv,"formats/color":Lv,"formats/font":TP,"formats/size":_P,"formats/blockquote":ere,"formats/code-block":Ut,"formats/header":tre,"formats/list":_s,"formats/bold":Wv,"formats/code":Fv,"formats/italic":nre,"formats/link":pu,"formats/script":rre,"formats/strike":ore,"formats/underline":ire,"formats/formula":are,"formats/image":sre,"formats/video":lre,"modules/syntax":kP,"modules/table":cre,"modules/toolbar":qv,"themes/bubble":FP,"themes/snow":GP,"ui/icons":ts,"ui/picker":Lc,"ui/icon-picker":jP,"ui/color-picker":DP,"ui/tooltip":LP},!0);const $P=I.forwardRef(({readOnly:t,defaultValue:e,onTextChange:n,onSelectionChange:r,theme:o="snow"},i)=>{const a=I.useRef(null),s=I.useRef(e),l=I.useRef(n),u=I.useRef(r),d=I.useRef(null);return I.useLayoutEffect(()=>{l.current=n,u.current=r}),I.useEffect(()=>{i&&typeof i=="object"&&i.current&&i.current.enable(!t)},[i,t]),I.useEffect(()=>{const c=a.current;if(!c)return;const f=c.appendChild(c.ownerDocument.createElement("div")),p=new ee(f,{theme:o});return d.current=p,i&&typeof i=="object"&&(i.current=p),s.current&&p.setContents(s.current),p.on(ee.events.TEXT_CHANGE,()=>{const m=p.getSemanticHTML();l.current?.(m)}),p.on(ee.events.SELECTION_CHANGE,(m,g,b)=>{u.current?.(m,g,b)}),()=>{d.current=null,i&&typeof i=="object"&&(i.current=null),c.innerHTML=""}},[i,o]),h.jsx("div",{ref:a})});$P.displayName="QuillEditor";exports.Accordion=wD;exports.AccordionContent=ED;exports.AccordionItem=CD;exports.AccordionTrigger=SD;exports.AspectRatio=DD;exports.Avatar=ZD;exports.AvatarFallback=KD;exports.AvatarImage=JD;exports.Badge=vE;exports.BaseButton=Ug;exports.Breadcrumb=nj;exports.BreadcrumbEllipsis=lj;exports.BreadcrumbItem=oj;exports.BreadcrumbLink=ij;exports.BreadcrumbList=rj;exports.BreadcrumbPage=aj;exports.BreadcrumbSeparator=sj;exports.Button=en;exports.Calendar=nb;exports.CalendarDayButton=BE;exports.CampaignTitle=BL;exports.Card=FL;exports.CardAction=WL;exports.CardContent=HL;exports.CardDescription=VL;exports.CardFooter=qL;exports.CardHeader=GL;exports.CardTitle=$L;exports.Carousel=A4;exports.CarouselContent=T4;exports.CarouselItem=N4;exports.CarouselNext=O4;exports.CarouselPrevious=_4;exports.Case=Yt;exports.ChartContainer=a9;exports.ChartLegend=u9;exports.ChartLegendContent=c9;exports.ChartStyle=PI;exports.ChartTooltip=s9;exports.ChartTooltipContent=l9;exports.Checkbox=$I;exports.CheckboxField=RA;exports.Collapsible=m9;exports.CollapsibleContent=b9;exports.CollapsibleTrigger=g9;exports.ComboboxField=Zm;exports.Command=kb;exports.CommandDialog=KG;exports.CommandEmpty=NA;exports.CommandGroup=_A;exports.CommandInput=AA;exports.CommandItem=qm;exports.CommandList=TA;exports.CommandSeparator=QG;exports.CommandShortcut=e$;exports.ComponentSwitch=fr;exports.ConfirmationDialog=i$;exports.ContentWrapper=t$;exports.CreatableActionIcons=n$;exports.DateRangePicker=eW;exports.DebouncedInput=tW;exports.Default=Co;exports.DetailedImageModal=nW;exports.Dialog=Xu;exports.DialogClose=Hm;exports.DialogContent=Yu;exports.DialogDescription=Mb;exports.DialogFooter=IA;exports.DialogHeader=Uu;exports.DialogOverlay=EA;exports.DialogPortal=SA;exports.DialogTitle=Zu;exports.DialogTrigger=Pb;exports.Drawer=RW;exports.DrawerClose=MW;exports.DrawerContent=kW;exports.DrawerDescription=BW;exports.DrawerFooter=jW;exports.DrawerHeader=DW;exports.DrawerOverlay=PT;exports.DrawerPortal=RT;exports.DrawerTitle=LW;exports.DrawerTrigger=PW;exports.DropdownMenu=NN;exports.DropdownMenuCheckboxItem=tg;exports.DropdownMenuContent=ON;exports.DropdownMenuGroup=pq;exports.DropdownMenuItem=mq;exports.DropdownMenuLabel=vq;exports.DropdownMenuPortal=hq;exports.DropdownMenuRadioGroup=gq;exports.DropdownMenuRadioItem=bq;exports.DropdownMenuSeparator=yq;exports.DropdownMenuShortcut=xq;exports.DropdownMenuSub=wq;exports.DropdownMenuSubContent=Sq;exports.DropdownMenuSubTrigger=Cq;exports.DropdownMenuTrigger=_N;exports.Empty=Eq;exports.EmptyContent=Oq;exports.EmptyDescription=_q;exports.EmptyHeader=Iq;exports.EmptyMedia=Tq;exports.EmptyTitle=Nq;exports.ErrorMessage=RN;exports.FieldDescription=Ju;exports.Form=ZV;exports.FormCheckbox=Rq;exports.FormCombobox=Qq;exports.FormControl=hn;exports.FormDatePicker=ez;exports.FormDescription=wr;exports.FormField=Yn;exports.FormFileUpload=zN;exports.FormInput=Pz;exports.FormItem=In;exports.FormLabel=pr;exports.FormMessage=Un;exports.FormPassword=Mz;exports.FormRadio=zz;exports.FormSlider=f6;exports.FormSwitch=y6;exports.FormTextarea=x6;exports.FormattedDate=QV;exports.HoverCard=P6;exports.HoverCardContent=k6;exports.HoverCardTrigger=M6;exports.Icon=D6;exports.Input=sc;exports.InputField=lv;exports.InputOTP=Z6;exports.Kbd=J6;exports.KbdGroup=K6;exports.Label=Tn;exports.MultiSelectDropdown=Q6;exports.NativeSelect=e8;exports.NativeSelectOptGroup=n8;exports.NativeSelectOption=t8;exports.Pagination=r8;exports.PaginationContent=o8;exports.PaginationEllipsis=l8;exports.PaginationItem=i8;exports.PaginationLink=fv;exports.PaginationNext=s8;exports.PaginationPrevious=a8;exports.Popover=rc;exports.PopoverAnchor=LV;exports.PopoverContent=ic;exports.PopoverTrigger=oc;exports.QuillEditor=$P;exports.RadioGroup=i_;exports.RadioGroupItem=a_;exports.ScrollArea=S8;exports.ScrollBar=eO;exports.Select=OO;exports.SelectContent=MO;exports.SelectField=u7;exports.SelectGroup=i7;exports.SelectItem=kO;exports.SelectLabel=a7;exports.SelectMultiField=XU;exports.SelectScrollDownButton=jO;exports.SelectScrollUpButton=DO;exports.SelectSeparator=s7;exports.SelectTrigger=PO;exports.SelectValue=RO;exports.Separator=BO;exports.Sheet=SR;exports.SheetClose=UU;exports.SheetContent=ER;exports.SheetDescription=TR;exports.SheetFooter=KU;exports.SheetHeader=IR;exports.SheetTitle=AR;exports.SheetTrigger=YU;exports.Sidebar=sZ;exports.SidebarContent=mZ;exports.SidebarFooter=hZ;exports.SidebarGroup=gZ;exports.SidebarGroupAction=vZ;exports.SidebarGroupContent=yZ;exports.SidebarGroupLabel=bZ;exports.SidebarHeader=fZ;exports.SidebarInput=dZ;exports.SidebarInset=cZ;exports.SidebarMenu=xZ;exports.SidebarMenuAction=EZ;exports.SidebarMenuBadge=IZ;exports.SidebarMenuButton=SZ;exports.SidebarMenuItem=wZ;exports.SidebarMenuSkeleton=AZ;exports.SidebarMenuSub=TZ;exports.SidebarMenuSubButton=_Z;exports.SidebarMenuSubItem=NZ;exports.SidebarProvider=aZ;exports.SidebarRail=uZ;exports.SidebarSeparator=pZ;exports.SidebarTrigger=lZ;exports.Skeleton=yg;exports.Slider=w_;exports.Spinner=DZ;exports.Switch=T_;exports.SwitchField=N_;exports.Table=zZ;exports.TableBody=UZ;exports.TableCaption=QZ;exports.TableCell=KZ;exports.TableFooter=eJ;exports.TableHead=YZ;exports.TableHeadRow=ZZ;exports.TableHeader=XZ;exports.TableRow=JZ;exports.Tabs=VZ;exports.TabsContent=qZ;exports.TabsList=WZ;exports.TabsTrigger=HZ;exports.TextAreaField=O_;exports.Textarea=__;exports.Toaster=kZ;exports.Tooltip=av;exports.TooltipContent=fc;exports.TooltipField=Hi;exports.TooltipProvider=iv;exports.TooltipTrigger=sv;exports.cn=D;
133
+ `,{[Ut.blotName]:n}),a.insert(s)),i)],new WeakMap)}}MP.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class jn extends Dt{static blotName="table";static tagName="TD";static create(e){const n=super.create();return e?n.setAttribute("data-row",e):n.setAttribute("data-row",Hv()),n}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,n){e===jn.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(e,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}class ko extends qo{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),o=this.next.children.tail.formats();return e.table===n.table&&e.table===r.table&&e.table===o.table}return!1}optimize(e){super.optimize(e),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),o=n.next.formats();if(r.table!==o.table){const i=this.splitAfter(n);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}class Zr extends qo{static blotName="table-body";static tagName="TBODY"}class mu extends qo{static blotName="table-container";static tagName="TABLE";balanceCells(){const e=this.descendants(ko),n=e.reduce((r,o)=>Math.max(o.children.length,r),0);e.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let o;r.children.head!=null&&(o=jn.formats(r.children.head.domNode));const i=this.scroll.create(jn.blotName,o);r.appendChild(i),i.optimize()})})}cells(e){return this.rows().map(n=>n.children.at(e))}deleteColumn(e){const[n]=this.descendant(Zr);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(e);o?.remove()})}insertColumn(e){const[n]=this.descendant(Zr);n==null||n.children.head==null||n.children.forEach(r=>{const o=r.children.at(e),i=jn.formats(r.children.head.domNode),a=this.scroll.create(jn.blotName,i);r.insertBefore(a,o)})}insertRow(e){const[n]=this.descendant(Zr);if(n==null||n.children.head==null)return;const r=Hv(),o=this.scroll.create(ko.blotName);n.children.head.children.forEach(()=>{const a=this.scroll.create(jn.blotName,r);o.appendChild(a)});const i=n.children.at(e);n.insertBefore(o,i)}rows(){const e=this.children.head;return e==null?[]:e.children.map(n=>n)}}mu.allowedChildren=[Zr];Zr.requiredContainer=mu;Zr.allowedChildren=[ko];ko.requiredContainer=Zr;ko.allowedChildren=[jn];jn.requiredContainer=ko;function Hv(){return`row-${Math.random().toString(36).slice(2,6)}`}class cre extends Ir{static register(){ee.register(jn),ee.register(ko),ee.register(Zr),ee.register(mu)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(mu).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,n]=this.getTable();n!=null&&(e.deleteColumn(n.cellOffset()),this.quill.update(ee.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(ee.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const n=e.offset();e.remove(),this.quill.update(ee.sources.USER),this.quill.setSelection(n,ee.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(e.index);if(n==null||n.statics.blotName!==jn.blotName)return[null,null,null,-1];const o=n.parent;return[o.parent.parent,o,n,r]}insertColumn(e){const n=this.quill.getSelection();if(!n)return;const[r,o,i]=this.getTable(n);if(i==null)return;const a=i.cellOffset();r.insertColumn(a+e),this.quill.update(ee.sources.USER);let s=o.rowOffset();e===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,ee.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const n=this.quill.getSelection();if(!n)return;const[r,o,i]=this.getTable(n);if(i==null)return;const a=o.rowOffset();r.insertRow(a+e),this.quill.update(ee.sources.USER),e>0?this.quill.setSelection(n,ee.sources.SILENT):this.quill.setSelection(n.index+o.children.length,n.length,ee.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,n){const r=this.quill.getSelection();if(r==null)return;const o=new Array(e).fill(0).reduce(i=>{const a=new Array(n).fill(`
134
+ `).join("");return i.insert(a,{table:Hv()})},new be().retain(r.index));this.quill.updateContents(o,ee.sources.USER),this.quill.setSelection(r.index,ee.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(ee.events.SCROLL_OPTIMIZE,e=>{e.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(ee.events.TEXT_CHANGE,(r,o,i)=>{i===ee.sources.USER&&this.balanceTables()}),!0):!1)})}}const lS=$r("quill:toolbar");class qv extends Ir{constructor(e,n){if(super(e,n),Array.isArray(this.options.container)){const r=document.createElement("div");r.setAttribute("role","toolbar"),dre(r,this.options.container),e.container?.parentNode?.insertBefore(r,e.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){lS.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{const o=this.options.handlers?.[r];o&&this.addHandler(r,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(r=>{this.attach(r)}),this.quill.on(ee.events.EDITOR_CHANGE,()=>{const[r]=this.quill.selection.getRange();this.update(r)})}addHandler(e,n){this.handlers[e]=n}attach(e){let n=Array.from(e.classList).find(o=>o.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){lS.warn("ignoring attaching to nonexistent format",n,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,o=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const s=e.options[e.selectedIndex];s.hasAttribute("selected")?i=!1:i=s.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),o.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,i);else if(this.quill.scroll.query(n).prototype instanceof pn){if(i=prompt(`Enter ${n}`),!i)return;this.quill.updateContents(new be().retain(a.index).delete(a.length).insert({[n]:i}),ee.sources.USER)}else this.quill.format(n,i,ee.sources.USER);this.update(a)}),this.controls.push([n,e])}update(e){const n=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[o,i]=r;if(i.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(n[o]==null)a=i.querySelector("option[selected]");else if(!Array.isArray(n[o])){let s=n[o];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),a=i.querySelector(`option[value="${s}"]`)}a==null?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const a=n[o],s=a===i.getAttribute("value")||a!=null&&a.toString()===i.getAttribute("value")||a==null&&!i.getAttribute("value");i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}else{const a=n[o]!=null;i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}})}}qv.DEFAULTS={};function uS(t,e,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${e}: ${n}`)):r.setAttribute("aria-label",e),t.appendChild(r)}function dre(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(o=>{if(typeof o=="string")uS(r,o);else{const i=Object.keys(o)[0],a=o[i];Array.isArray(a)?fre(r,i,a):uS(r,i,a)}}),t.appendChild(r)})}function fre(t,e,n){const r=document.createElement("select");r.classList.add(`ql-${e}`),n.forEach(o=>{const i=document.createElement("option");o!==!1?i.setAttribute("value",String(o)):i.setAttribute("selected","selected"),r.appendChild(i)}),t.appendChild(r)}qv.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(t!=null)if(t.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(n=>{this.quill.scroll.query(n,ve.INLINE)!=null&&this.quill.format(n,!1,ee.sources.USER)})}else this.quill.removeFormat(t.index,t.length,ee.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();t==="rtl"&&e==null?this.quill.format("align","right",ee.sources.USER):!t&&e==="right"&&this.quill.format("align",!1,ee.sources.USER),this.quill.format("direction",t,ee.sources.USER)},indent(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0,10);if(t==="+1"||t==="-1"){let o=t==="+1"?1:-1;n.direction==="rtl"&&(o*=-1),this.quill.format("indent",r+o,ee.sources.USER)}},link(t){t===!0&&(t=prompt("Enter link URL:")),this.quill.format("link",t,ee.sources.USER)},list(t){const e=this.quill.getSelection(),n=this.quill.getFormat(e);t==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,ee.sources.USER):this.quill.format("list","unchecked",ee.sources.USER):this.quill.format("list",t,ee.sources.USER)}}};const hre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',pre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',mre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',gre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',bre='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',vre='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',yre='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',xre='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',cS='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',wre='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',Cre='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',Sre='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',Ere='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',Ire='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',Are='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',Tre='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',Nre='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',_re='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',Ore='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',Rre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',Pre='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',Mre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',kre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',Dre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',jre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',Lre='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',Bre='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',Fre='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',Gre='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',$re='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',Vre='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',Wre='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',Hre='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',ts={align:{"":hre,center:pre,right:mre,justify:gre},background:bre,blockquote:vre,bold:yre,clean:xre,code:cS,"code-block":cS,color:wre,direction:{"":Cre,rtl:Sre},formula:Ere,header:{1:Ire,2:Are,3:Tre,4:Nre,5:_re,6:Ore},italic:Rre,image:Pre,indent:{"+1":Mre,"-1":kre},link:Dre,list:{bullet:jre,check:Lre,ordered:Bre},script:{sub:Fre,super:Gre},strike:$re,table:Vre,underline:Wre,video:Hre},qre='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let dS=0;function fS(t,e){t.setAttribute(e,`${t.getAttribute(e)!=="true"}`)}class Lc{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),fS(this.label,"aria-expanded"),fS(this.options,"aria-hidden")}buildItem(e){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&n.setAttribute("data-value",r),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",o=>{switch(o.key){case"Enter":this.selectItem(n,!0),o.preventDefault();break;case"Escape":this.escape(),o.preventDefault();break}}),n}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=qre,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${dS}`,dS+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);e.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r?.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class kP extends Lc{constructor(e,n){super(e),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const n=super.buildItem(e);return n.style.backgroundColor=e.getAttribute("value")||"",n}selectItem(e,n){super.selectItem(e,n);const r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=o:r.style.fill=o)}}class DP extends Lc{constructor(e,n){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,n){super.selectItem(e,n);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const zre=t=>{const{overflowY:e}=getComputedStyle(t,null);return e!=="visible"&&e!=="clip"};class jP{constructor(e,n){this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,zre(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const n=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const o=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let a=0;if(i.right>o.right&&(a=o.right-i.right,this.root.style.left=`${n+a}px`),i.left<o.left&&(a=o.left-i.left,this.root.style.left=`${n+a}px`),i.bottom>o.bottom){const s=i.bottom-i.top,l=e.bottom-e.top+s;this.root.style.top=`${r-l}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Xre=[!1,"center","right","justify"],Yre=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ure=[!1,"serif","monospace"],Zre=["1","2","3",!1],Jre=["small",!1,"large","huge"];class Os extends Ui{constructor(e,n){super(e,n);const r=o=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(o.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(o.target)||i.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const n=super.addModule(e);return e==="toolbar"&&this.extendToolbar(n),n}buildButtons(e,n){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),n[i]!=null))if(i==="direction")r.innerHTML=n[i][""]+n[i].rtl;else if(typeof n[i]=="string")r.innerHTML=n[i];else{const a=r.value||"";a!=null&&n[i][a]&&(r.innerHTML=n[i][a])}})})}buildPickers(e,n){this.pickers=Array.from(e).map(o=>{if(o.classList.contains("ql-align")&&(o.querySelector("option")==null&&ha(o,Xre),typeof n.align=="object"))return new DP(o,n.align);if(o.classList.contains("ql-background")||o.classList.contains("ql-color")){const i=o.classList.contains("ql-background")?"background":"color";return o.querySelector("option")==null&&ha(o,Yre,i==="background"?"#ffffff":"#000000"),new kP(o,n[i])}return o.querySelector("option")==null&&(o.classList.contains("ql-font")?ha(o,Ure):o.classList.contains("ql-header")?ha(o,Zre):o.classList.contains("ql-size")&&ha(o,Jre)),new Lc(o)});const r=()=>{this.pickers.forEach(o=>{o.update()})};this.quill.on(ge.events.EDITOR_CHANGE,r)}}Os.DEFAULTS=Ur({},Ui.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");t==null&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class LP extends jP{constructor(e,n){super(e,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ge.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,ge.sources.USER)),this.quill.root.scrollTop=n;break}case"video":e=Kre(e);case"formula":{if(!e)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,ge.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",ge.sources.USER),this.quill.setSelection(r+2,ge.sources.USER)}break}}this.textbox.value="",this.hide()}}function Kre(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:t}function ha(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const o=document.createElement("option");r===n?o.setAttribute("selected","selected"):o.setAttribute("value",String(r)),t.appendChild(o)})}const Qre=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class eoe extends LP{static TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join("");constructor(e,n){super(e,n),this.quill.on(ge.events.EDITOR_CHANGE,(r,o,i,a)=>{if(r===ge.events.SELECTION_CHANGE)if(o!=null&&o.length>0&&a===ge.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(o.index,o.length);if(s.length===1){const l=this.quill.getBounds(o);l!=null&&this.position(l)}else{const l=s[s.length-1],u=this.quill.getIndex(l),d=Math.min(l.length()-1,o.index+o.length-u),c=this.quill.getBounds(new Mo(u,d));c!=null&&this.position(c)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ge.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const n=this.quill.getBounds(e);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(e){const n=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}class BP extends Os{constructor(e,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Qre),super(e,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new eoe(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),ts),this.buildPickers(e.container.querySelectorAll("select"),ts))}}BP.DEFAULTS=Ur({},Os.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1,ee.sources.USER)}}}}});const toe=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class noe extends LP{static TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",e=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",e=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,ge.sources.USER),delete this.linkRange}e.preventDefault(),this.hide()}),this.quill.on(ge.events.SELECTION_CHANGE,(e,n,r)=>{if(e!=null){if(e.length===0&&r===ge.sources.USER){const[o,i]=this.quill.scroll.descendant(pu,e.index);if(o!=null){this.linkRange=new Mo(e.index-i,o.length());const a=pu.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const s=this.quill.getBounds(this.linkRange);s!=null&&this.position(s);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}class FP extends Os{constructor(e,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=toe),super(e,n),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),ts),this.buildPickers(e.container.querySelectorAll("select"),ts),this.tooltip=new noe(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{e.handlers.link.call(e,!r.format.link)}))}}FP.DEFAULTS=Ur({},Os.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const e=this.quill.getSelection();if(e==null||e.length===0)return;let n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,ee.sources.USER)}}}}});ee.register({"attributors/attribute/direction":CP,"attributors/class/align":yP,"attributors/class/background":sne,"attributors/class/color":ane,"attributors/class/direction":SP,"attributors/class/font":AP,"attributors/class/size":NP,"attributors/style/align":xP,"attributors/style/background":Bv,"attributors/style/color":Lv,"attributors/style/direction":EP,"attributors/style/font":TP,"attributors/style/size":_P},!0);ee.register({"formats/align":yP,"formats/direction":SP,"formats/indent":Qne,"formats/background":Bv,"formats/color":Lv,"formats/font":AP,"formats/size":NP,"formats/blockquote":ere,"formats/code-block":Ut,"formats/header":tre,"formats/list":_s,"formats/bold":Wv,"formats/code":Fv,"formats/italic":nre,"formats/link":pu,"formats/script":rre,"formats/strike":ore,"formats/underline":ire,"formats/formula":are,"formats/image":sre,"formats/video":lre,"modules/syntax":MP,"modules/table":cre,"modules/toolbar":qv,"themes/bubble":BP,"themes/snow":FP,"ui/icons":ts,"ui/picker":Lc,"ui/icon-picker":DP,"ui/color-picker":kP,"ui/tooltip":jP},!0);const GP=I.forwardRef(({readOnly:t,defaultValue:e,onTextChange:n,onSelectionChange:r,theme:o="snow"},i)=>{const a=I.useRef(null),s=I.useRef(e),l=I.useRef(n),u=I.useRef(r),d=I.useRef(null);return I.useLayoutEffect(()=>{l.current=n,u.current=r}),I.useEffect(()=>{i&&typeof i=="object"&&i.current&&i.current.enable(!t)},[i,t]),I.useEffect(()=>{const c=a.current;if(!c)return;const f=c.appendChild(c.ownerDocument.createElement("div")),p=new ee(f,{theme:o});return d.current=p,i&&typeof i=="object"&&(i.current=p),s.current&&p.setContents(s.current),p.on(ee.events.TEXT_CHANGE,()=>{const m=p.getSemanticHTML();l.current?.(m)}),p.on(ee.events.SELECTION_CHANGE,(m,g,b)=>{u.current?.(m,g,b)}),()=>{d.current=null,i&&typeof i=="object"&&(i.current=null),c.innerHTML=""}},[i,o]),h.jsx("div",{ref:a})});GP.displayName="QuillEditor";exports.Accordion=xD;exports.AccordionContent=SD;exports.AccordionItem=wD;exports.AccordionTrigger=CD;exports.AspectRatio=kD;exports.Avatar=UD;exports.AvatarFallback=JD;exports.AvatarImage=ZD;exports.Badge=vE;exports.BaseButton=Ug;exports.Breadcrumb=tj;exports.BreadcrumbEllipsis=sj;exports.BreadcrumbItem=rj;exports.BreadcrumbLink=oj;exports.BreadcrumbList=nj;exports.BreadcrumbPage=ij;exports.BreadcrumbSeparator=aj;exports.Button=en;exports.Calendar=nb;exports.CalendarDayButton=BE;exports.CampaignTitle=LL;exports.Card=BL;exports.CardAction=VL;exports.CardContent=WL;exports.CardDescription=$L;exports.CardFooter=HL;exports.CardHeader=FL;exports.CardTitle=GL;exports.Carousel=I4;exports.CarouselContent=A4;exports.CarouselItem=T4;exports.CarouselNext=_4;exports.CarouselPrevious=N4;exports.Case=Yt;exports.ChartContainer=i9;exports.ChartLegend=l9;exports.ChartLegendContent=u9;exports.ChartStyle=PI;exports.ChartTooltip=a9;exports.ChartTooltipContent=s9;exports.Checkbox=$I;exports.CheckboxField=RA;exports.Collapsible=p9;exports.CollapsibleContent=g9;exports.CollapsibleTrigger=m9;exports.ComboboxField=Zm;exports.Command=kb;exports.CommandDialog=JG;exports.CommandEmpty=NA;exports.CommandGroup=_A;exports.CommandInput=AA;exports.CommandItem=qm;exports.CommandList=TA;exports.CommandSeparator=KG;exports.CommandShortcut=QG;exports.ComponentSwitch=fr;exports.ConfirmationDialog=o$;exports.ContentWrapper=e$;exports.CreatableActionIcons=t$;exports.DateRangePicker=eW;exports.DebouncedInput=tW;exports.Default=Co;exports.DetailedImageModal=nW;exports.Dialog=Xu;exports.DialogClose=Hm;exports.DialogContent=Yu;exports.DialogDescription=Mb;exports.DialogFooter=IA;exports.DialogHeader=Uu;exports.DialogOverlay=EA;exports.DialogPortal=SA;exports.DialogTitle=Zu;exports.DialogTrigger=Pb;exports.Drawer=RW;exports.DrawerClose=MW;exports.DrawerContent=kW;exports.DrawerDescription=BW;exports.DrawerFooter=jW;exports.DrawerHeader=DW;exports.DrawerOverlay=RT;exports.DrawerPortal=OT;exports.DrawerTitle=LW;exports.DrawerTrigger=PW;exports.DropdownMenu=TN;exports.DropdownMenuCheckboxItem=tg;exports.DropdownMenuContent=_N;exports.DropdownMenuGroup=pq;exports.DropdownMenuItem=mq;exports.DropdownMenuLabel=vq;exports.DropdownMenuPortal=hq;exports.DropdownMenuRadioGroup=gq;exports.DropdownMenuRadioItem=bq;exports.DropdownMenuSeparator=yq;exports.DropdownMenuShortcut=xq;exports.DropdownMenuSub=wq;exports.DropdownMenuSubContent=Sq;exports.DropdownMenuSubTrigger=Cq;exports.DropdownMenuTrigger=NN;exports.Empty=Eq;exports.EmptyContent=Oq;exports.EmptyDescription=_q;exports.EmptyHeader=Iq;exports.EmptyMedia=Tq;exports.EmptyTitle=Nq;exports.ErrorMessage=ON;exports.FieldDescription=Ju;exports.Form=ZV;exports.FormCheckbox=Rq;exports.FormCombobox=Qq;exports.FormControl=fn;exports.FormDatePicker=ez;exports.FormDescription=wr;exports.FormField=Yn;exports.FormFileUpload=qN;exports.FormInput=Pz;exports.FormItem=In;exports.FormLabel=pr;exports.FormMessage=Un;exports.FormPassword=Mz;exports.FormRadio=zz;exports.FormSlider=f6;exports.FormSwitch=y6;exports.FormTextarea=x6;exports.FormattedDate=QV;exports.HoverCard=P6;exports.HoverCardContent=k6;exports.HoverCardTrigger=M6;exports.Icon=D6;exports.Input=sc;exports.InputField=lv;exports.InputOTP=Z6;exports.Kbd=J6;exports.KbdGroup=K6;exports.Label=Tn;exports.MultiSelectDropdown=Q6;exports.NativeSelect=e8;exports.NativeSelectOptGroup=n8;exports.NativeSelectOption=t8;exports.Pagination=r8;exports.PaginationContent=o8;exports.PaginationEllipsis=l8;exports.PaginationItem=i8;exports.PaginationLink=fv;exports.PaginationNext=s8;exports.PaginationPrevious=a8;exports.Popover=rc;exports.PopoverAnchor=jV;exports.PopoverContent=ic;exports.PopoverTrigger=oc;exports.QuillEditor=GP;exports.RadioGroup=o_;exports.RadioGroupItem=i_;exports.ScrollArea=S8;exports.ScrollBar=Q_;exports.Select=_O;exports.SelectContent=PO;exports.SelectField=u7;exports.SelectGroup=i7;exports.SelectItem=MO;exports.SelectLabel=a7;exports.SelectMultiField=XU;exports.SelectScrollDownButton=DO;exports.SelectScrollUpButton=kO;exports.SelectSeparator=s7;exports.SelectTrigger=RO;exports.SelectValue=OO;exports.Separator=LO;exports.Sheet=CR;exports.SheetClose=UU;exports.SheetContent=SR;exports.SheetDescription=AR;exports.SheetFooter=KU;exports.SheetHeader=ER;exports.SheetTitle=IR;exports.SheetTrigger=YU;exports.Sidebar=sZ;exports.SidebarContent=mZ;exports.SidebarFooter=hZ;exports.SidebarGroup=gZ;exports.SidebarGroupAction=vZ;exports.SidebarGroupContent=yZ;exports.SidebarGroupLabel=bZ;exports.SidebarHeader=fZ;exports.SidebarInput=dZ;exports.SidebarInset=cZ;exports.SidebarMenu=xZ;exports.SidebarMenuAction=EZ;exports.SidebarMenuBadge=IZ;exports.SidebarMenuButton=SZ;exports.SidebarMenuItem=wZ;exports.SidebarMenuSkeleton=AZ;exports.SidebarMenuSub=TZ;exports.SidebarMenuSubButton=_Z;exports.SidebarMenuSubItem=NZ;exports.SidebarProvider=aZ;exports.SidebarRail=uZ;exports.SidebarSeparator=pZ;exports.SidebarTrigger=lZ;exports.Skeleton=yg;exports.Slider=x_;exports.Spinner=DZ;exports.Switch=A_;exports.SwitchField=T_;exports.Table=zZ;exports.TableBody=UZ;exports.TableCaption=QZ;exports.TableCell=KZ;exports.TableFooter=eJ;exports.TableHead=YZ;exports.TableHeadRow=ZZ;exports.TableHeader=XZ;exports.TableRow=JZ;exports.Tabs=VZ;exports.TabsContent=qZ;exports.TabsList=WZ;exports.TabsTrigger=HZ;exports.TextAreaField=__;exports.Textarea=N_;exports.Toaster=kZ;exports.Tooltip=av;exports.TooltipContent=fc;exports.TooltipField=Hi;exports.TooltipProvider=iv;exports.TooltipTrigger=sv;exports.cn=D;