@engrate/components 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/PaginationDots/PaginationDots.d.ts +40 -0
- package/dist/components/ui/PaginationDots/index.d.ts +2 -0
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/index.cjs.js +25 -25
- package/dist/index.es.js +3334 -3237
- package/dist/skills/engrate-component-user.md +9 -8
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),xi=require("react-dom");function qw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=qw(A),wi=qw(xi);function MI(e,t){const r=f.createContext(t),n=i=>{const{children:a,...s}=i,l=f.useMemo(()=>s,Object.values(s));return y.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(i){const a=f.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Be(e,t=[]){let r=[];function n(i,a){const s=f.createContext(a),l=r.length;r=[...r,a];const c=d=>{const{scope:p,children:v,...g}=d,m=p?.[e]?.[l]||s,h=f.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:h,children:v})};c.displayName=i+"Provider";function u(d,p){const v=p?.[e]?.[l]||s,g=f.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=r.map(a=>f.createContext(a));return function(s){const l=s?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,NI(o,...t)]}function NI(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cr(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Zm(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Zm(e[o],null)}}}}function re(...e){return f.useCallback(cr(...e),e)}function Jm(e){const t=II(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(RI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function II(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=$I(o),s=DI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kI=Symbol("radix.slottable");function RI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kI}function DI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function $I(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function bo(e){const t=e+"CollectionProvider",[r,n]=Be(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:h,children:b}=m,x=A.useRef(null),w=A.useRef(new Map).current;return y.jsx(o,{scope:h,itemMap:w,collectionRef:x,children:b})};a.displayName=t;const s=e+"CollectionSlot",l=Jm(s),c=A.forwardRef((m,h)=>{const{scope:b,children:x}=m,w=i(s,b),S=re(h,w.collectionRef);return y.jsx(l,{ref:S,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Jm(u),v=A.forwardRef((m,h)=>{const{scope:b,children:x,...w}=m,S=A.useRef(null),E=re(h,S),P=i(u,b);return A.useEffect(()=>(P.itemMap.set(S,{ref:S,...w}),()=>{P.itemMap.delete(S)})),y.jsx(p,{[d]:"",ref:E,children:x})});v.displayName=u;function g(m){const h=i(e+"CollectionConsumer",m);return A.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((P,O)=>w.indexOf(P.ref.current)-w.indexOf(O.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:c,ItemSlot:v},g,n]}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var Ye=globalThis?.document?f.useLayoutEffect:()=>{},LI=f[" useInsertionEffect ".trim().toString()]||Ye;function nt({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=FI({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${n} is changing from ${d?"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.`),u.current=s},[s,n])}const c=f.useCallback(u=>{if(s){const d=zI(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function FI({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return LI(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function zI(e){return typeof e=="function"}function BI(e){const t=VI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(KI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function VI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=HI(o),s=UI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WI=Symbol("radix.slottable");function KI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WI}function UI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function HI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var GI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=GI.reduce((e,t)=>{const r=BI(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Zf(e,t){e&&wi.flushSync(()=>e.dispatchEvent(t))}function qI(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var lt=e=>{const{present:t,children:r}=e,n=YI(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=re(n.ref,XI(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};lt.displayName="Presence";function YI(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[s,l]=qI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=aa(n.current);i.current=s==="mounted"?c:"none"},[s]),Ye(()=>{const c=n.current,u=o.current;if(u!==e){const p=i.current,v=aa(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ye(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=v=>{const m=aa(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(l("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=v=>{v.target===t&&(i.current=aa(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function aa(e){return e?.animationName||"none"}function XI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ZI=f[" useId ".trim().toString()]||(()=>{}),JI=0;function vt(e){const[t,r]=f.useState(ZI());return Ye(()=>{r(n=>n??String(JI++))},[e]),e||(t?`radix-${t}`:"")}var il="Collapsible",[QI,Yw]=Be(il),[ek,Jf]=QI(il),Xw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=nt({prop:n,defaultProp:o??!1,onChange:a,caller:il});return y.jsx(ek,{scope:r,disabled:i,contentId:vt(),open:l,onOpenToggle:f.useCallback(()=>c(u=>!u),[c]),children:y.jsx(Q.div,{"data-state":ep(l),"data-disabled":i?"":void 0,...s,ref:t})})});Xw.displayName=il;var Zw="CollapsibleTrigger",Jw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Jf(Zw,r);return y.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ep(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Jw.displayName=Zw;var Qf="CollapsibleContent",Qw=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Jf(Qf,e.__scopeCollapsible);return y.jsx(lt,{present:r||o.open,children:({present:i})=>y.jsx(tk,{...n,ref:t,present:i})})});Qw.displayName=Qf;var tk=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=Jf(Qf,r),[s,l]=f.useState(n),c=f.useRef(null),u=re(t,c),d=f.useRef(0),p=d.current,v=f.useRef(0),g=v.current,m=a.open||s,h=f.useRef(m),b=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),Ye(()=>{const x=c.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,v.current=w.width,h.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(n)}},[a.open,n]),y.jsx(Q.div,{"data-state":ep(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:m&&o})});function ep(e){return e?"open":"closed"}var rk=Xw,nk=Jw,ok=Qw,ik=f.createContext(void 0);function xo(e){const t=f.useContext(ik);return e||t||"ltr"}var Ut="Accordion",ak=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[tp,sk,lk]=bo(Ut),[al]=Be(Ut,[lk,Yw]),rp=Yw(),e0=A.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return y.jsx(tp.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?y.jsx(fk,{...i,ref:t}):y.jsx(dk,{...o,ref:t})})});e0.displayName=Ut;var[t0,ck]=al(Ut),[r0,uk]=al(Ut,{collapsible:!1}),dk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=nt({prop:r,defaultProp:n??"",onChange:o,caller:Ut});return y.jsx(t0,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:A.useCallback(()=>i&&l(""),[i,l]),children:y.jsx(r0,{scope:e.__scopeAccordion,collapsible:i,children:y.jsx(n0,{...a,ref:t})})})}),fk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=nt({prop:r,defaultProp:n??[],onChange:o,caller:Ut}),l=A.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=A.useCallback(u=>s((d=[])=>d.filter(p=>p!==u)),[s]);return y.jsx(t0,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:y.jsx(r0,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(n0,{...i,ref:t})})})}),[pk,sl]=al(Ut),n0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=A.useRef(null),l=re(s,t),c=sk(r),d=xo(o)==="ltr",p=U(e.onKeyDown,v=>{if(!ak.includes(v.key))return;const g=v.target,m=c().filter(C=>!C.ref.current?.disabled),h=m.findIndex(C=>C.ref.current===g),b=m.length;if(h===-1)return;v.preventDefault();let x=h;const w=0,S=b-1,E=()=>{x=h+1,x>S&&(x=w)},P=()=>{x=h-1,x<w&&(x=S)};switch(v.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?E():P());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?P():E());break;case"ArrowUp":i==="vertical"&&P();break}const O=x%b;m[O].ref.current?.focus()});return y.jsx(pk,{scope:r,disabled:n,direction:o,orientation:i,children:y.jsx(tp.Slot,{scope:r,children:y.jsx(Q.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:p})})})}),Za="AccordionItem",[vk,np]=al(Za),o0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=sl(Za,r),a=ck(Za,r),s=rp(r),l=vt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return y.jsx(vk,{scope:r,open:c,disabled:u,triggerId:l,children:y.jsx(rk,{"data-orientation":i.orientation,"data-state":u0(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});o0.displayName=Za;var i0="AccordionHeader",a0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(i0,r);return y.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":u0(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});a0.displayName=i0;var Ed="AccordionTrigger",s0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(Ed,r),a=uk(Ed,r),s=rp(r);return y.jsx(tp.ItemSlot,{scope:r,children:y.jsx(nk,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});s0.displayName=Ed;var l0="AccordionContent",c0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(l0,r),a=rp(r);return y.jsx(ok,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});c0.displayName=l0;function u0(e){return e?"open":"closed"}var mk=e0,hk=o0,gk=a0,yk=s0,bk=c0;function d0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=d0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=d0(e))&&(n&&(n+=" "),n+=t);return n}const Qm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eh=de,te=(e,t)=>r=>{var n;if(t?.variants==null)return eh(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const u=r?.[c],d=i?.[c];if(u===null)return null;const p=Qm(u)||Qm(d);return o[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:p,...v}=u;return Object.entries(v).every(g=>{let[m,h]=g;return Array.isArray(h)?h.includes({...i,...s}[m]):{...i,...s}[m]===h})?[...c,d,p]:c},[]);return eh(e,a,l,r?.class,r?.className)};const f0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const xk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const wk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const th=e=>{const t=wk(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Sk={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 Pk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Ek=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>A.createElement("svg",{ref:l,...Sk,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:f0("lucide",o),...!i&&!Pk(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>A.createElement(c,u)),...Array.isArray(i)?i:[i]]));const Dn=(e,t)=>{const r=A.forwardRef(({className:n,...o},i)=>A.createElement(Ek,{ref:i,iconNode:t,className:f0(`lucide-${xk(th(e))}`,`lucide-${e}`,n),...o}));return r.displayName=th(e),r};const Ok=[["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"}]],p0=Dn("calendar",Ok);const Ck=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ak=Dn("chevron-down",Ck);const _k=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ll=Dn("chevron-left",_k);const Tk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cl=Dn("chevron-right",Tk);const jk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Mk=Dn("clock",jk);const Nk=[["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"}]],v0=Dn("ellipsis",Nk);const Ik=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],m0=Dn("x",Ik),kk=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Rk=(e,t)=>({classGroupId:e,validator:t}),h0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ja="-",rh=[],Dk="arbitrary..",$k=e=>{const t=Fk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Lk(a);const s=a.split(Ja),l=s[0]===""&&s.length>1?1:0;return g0(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?kk(c,l):l:c||rh}return r[a]||rh}}},g0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=g0(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(Ja):e.slice(t).join(Ja),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},Lk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Dk+n:void 0})(),Fk=e=>{const{theme:t,classGroups:r}=e;return zk(r,t)},zk=(e,t)=>{const r=h0();for(const n in e){const o=e[n];op(o,r,n,t)}return r},op=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];Bk(a,t,r,n)}},Bk=(e,t,r,n)=>{if(typeof e=="string"){Vk(e,t,r);return}if(typeof e=="function"){Wk(e,t,r,n);return}Kk(e,t,r,n)},Vk=(e,t,r)=>{const n=e===""?t:y0(t,e);n.classGroupId=r},Wk=(e,t,r,n)=>{if(Uk(e)){op(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Rk(r,e))},Kk=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];op(l,y0(t,s),r,n)}},y0=(e,t)=>{let r=e;const n=t.split(Ja),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=h0(),r.nextPart.set(a,s)),r=s}return r},Uk=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Hk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Od="!",nh=":",Gk=[],oh=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),qk=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const h=o[m];if(a===0&&s===0){if(h===nh){i.push(o.slice(l,m)),l=m+1;continue}if(h==="/"){c=m;continue}}h==="["?a++:h==="]"?a--:h==="("?s++:h===")"&&s--}const d=i.length===0?o:o.slice(l);let p=d,v=!1;d.endsWith(Od)?(p=d.slice(0,-1),v=!0):d.startsWith(Od)&&(p=d.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return oh(i,v,p,g)};if(t){const o=t+nh,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):oh(Gk,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},Yk=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},Xk=e=>({cache:Hk(e.cacheSize),parseClassName:qk(e),sortModifiers:Yk(e),...$k(e)}),Zk=/\s+/,Jk=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(Zk);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!m,b=n(h?g.substring(0,m):g);if(!b){if(!h){l=u+(l.length>0?" "+l:l);continue}if(b=n(g),!b){l=u+(l.length>0?" "+l:l);continue}h=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=v?x+Od:x,S=w+b;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(b,h);for(let P=0;P<E.length;++P){const O=E[P];a.push(w+O)}l=u+(l.length>0?" "+l:l)}return l},Qk=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=b0(r))&&(o&&(o+=" "),o+=n);return o},b0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=b0(e[n]))&&(r&&(r+=" "),r+=t);return r},ih=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=Xk(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{const c=n(l);if(c)return c;const u=Jk(l,r);return o(l,u),u};return i=a,(...l)=>i(Qk(...l))},eR=[],Fe=e=>{const t=r=>r[e]||eR;return t.isThemeGetter=!0,t},x0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tR=/^\d+\/\d+$/,rR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nR=/\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$/,oR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hn=e=>tR.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>!!e&&Number.isInteger(Number(e)),Mc=e=>e.endsWith("%")&&ae(e.slice(0,-1)),dr=e=>rR.test(e),sR=()=>!0,lR=e=>nR.test(e)&&!oR.test(e),S0=()=>!1,cR=e=>iR.test(e),uR=e=>aR.test(e),dR=e=>!X(e)&&!Z(e),fR=e=>wo(e,O0,S0),X=e=>x0.test(e),ln=e=>wo(e,C0,lR),Nc=e=>wo(e,gR,ae),ah=e=>wo(e,P0,S0),pR=e=>wo(e,E0,uR),sa=e=>wo(e,A0,cR),Z=e=>w0.test(e),$o=e=>So(e,C0),vR=e=>So(e,yR),sh=e=>So(e,P0),mR=e=>So(e,O0),hR=e=>So(e,E0),la=e=>So(e,A0,!0),wo=(e,t,r)=>{const n=x0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},So=(e,t,r=!1)=>{const n=w0.exec(e);return n?n[1]?t(n[1]):r:!1},P0=e=>e==="position"||e==="percentage",E0=e=>e==="image"||e==="url",O0=e=>e==="length"||e==="size"||e==="bg-size",C0=e=>e==="length",gR=e=>e==="number",yR=e=>e==="family-name",A0=e=>e==="shadow",lh=()=>{const e=Fe("color"),t=Fe("font"),r=Fe("text"),n=Fe("font-weight"),o=Fe("tracking"),i=Fe("leading"),a=Fe("breakpoint"),s=Fe("container"),l=Fe("spacing"),c=Fe("radius"),u=Fe("shadow"),d=Fe("inset-shadow"),p=Fe("text-shadow"),v=Fe("drop-shadow"),g=Fe("blur"),m=Fe("perspective"),h=Fe("aspect"),b=Fe("ease"),x=Fe("animate"),w=()=>["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(),Z,X],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],C=()=>[Z,X,l],M=()=>[Hn,"full","auto",...C()],$=()=>[Dr,"none","subgrid",Z,X],I=()=>["auto",{span:["full",Dr,Z,X]},Dr,Z,X],_=()=>[Dr,"auto",Z,X],j=()=>["auto","min","max","fr",Z,X],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...C()],W=()=>[Hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[e,Z,X],k=()=>[...S(),sh,ah,{position:[Z,X]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",mR,fR,{size:[Z,X]}],ne=()=>[Mc,$o,ln],ie=()=>["","none","full",c,Z,X],oe=()=>["",ae,$o,ln],le=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ae,Mc,sh,ah],ue=()=>["","none",g,Z,X],L=()=>["none",ae,Z,X],H=()=>["none",ae,Z,X],B=()=>[ae,Z,X],F=()=>[Hn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[sR],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[dR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dr],shadow:[dr],spacing:["px",ae],text:[dr],"text-shadow":[dr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hn,X,Z,h]}],container:["container"],columns:[{columns:[ae,X,Z,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],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:[Dr,"auto",Z,X]}],basis:[{basis:[Hn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Hn,"auto","initial","none",X]}],grow:[{grow:["",ae,Z,X]}],shrink:[{shrink:["",ae,Z,X]}],order:[{order:[Dr,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[s,"screen",...W()]}],"min-w":[{"min-w":[s,"screen","none",...W()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,$o,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Nc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mc,X]}],"font-family":[{font:[vR,X,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Z,X]}],"line-clamp":[{"line-clamp":[ae,"none",Z,Nc]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",Z,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Z,ln]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ae,"auto",Z,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],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",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dr,Z,X],radial:["",Z,X],conic:[Dr,Z,X]},hR,pR]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Z,X]}],"outline-w":[{outline:["",ae,$o,ln]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,la,sa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,la,sa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ae,ln]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,la,sa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Z,X]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:ue()}],brightness:[{brightness:[ae,Z,X]}],contrast:[{contrast:[ae,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",v,la,sa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ae,Z,X]}],"hue-rotate":[{"hue-rotate":[ae,Z,X]}],invert:[{invert:["",ae,Z,X]}],saturate:[{saturate:[ae,Z,X]}],sepia:[{sepia:["",ae,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",ae,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Z,X]}],ease:[{ease:["linear","initial",b,Z,X]}],delay:[{delay:[ae,Z,X]}],animate:[{animate:["none",x,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,X]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[Z,X,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:F()}],"translate-x":[{"translate-x":F()}],"translate-y":[{"translate-y":F()}],"translate-z":[{"translate-z":F()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",Z,X]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Z,X]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ae,$o,ln,Nc]}],stroke:[{stroke:["none",...T()]}],"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"]}},bR=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Go(e,"cacheSize",t),Go(e,"prefix",r),Go(e,"experimentalParseClassName",n),ca(e.theme,i.theme),ca(e.classGroups,i.classGroups),ca(e.conflictingClassGroups,i.conflictingClassGroups),ca(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Go(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ua(e.theme,o.theme),ua(e.classGroups,o.classGroups),ua(e.conflictingClassGroups,o.conflictingClassGroups),ua(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),_0(e,o,"orderSensitiveModifiers"),e),Go=(e,t,r)=>{r!==void 0&&(e[t]=r)},ca=(e,t)=>{if(t)for(const r in t)Go(e,r,t[r])},ua=(e,t)=>{if(t)for(const r in t)_0(e,t,r)},_0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},xR=(e,...t)=>typeof e=="function"?ih(lh,e,...t):ih(()=>bR(lh(),e),...t),wR=xR({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","descriptive","small","label","label-sm"]}]}}});function D(...e){return wR(de(e))}const T0=te("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),j0=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(mk,{ref:n,className:D(T0({variant:t}),e),...r}));j0.displayName="Accordion";const M0=f.forwardRef(({className:e,...t},r)=>y.jsx(hk,{ref:r,className:D("border-border border-b last:border-b-0",e),...t}));M0.displayName="AccordionItem";const N0=te(["flex flex-1 items-center justify-between py-4 text-left font-sans font-normal transition-all","text-primary hover:underline","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","[&[data-state=open]>svg]:rotate-180"],{variants:{size:{sm:"text-small py-3",default:"text-body py-4",lg:"text-lead py-5"}},defaultVariants:{size:"default"}}),I0=f.forwardRef(({className:e,children:t,size:r,...n},o)=>y.jsx(gk,{className:"flex",children:y.jsxs(yk,{ref:o,className:D(N0({size:r}),e),...n,children:[t,y.jsx(Ak,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));I0.displayName="AccordionTrigger";const k0=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx(bk,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:y.jsx("div",{className:D("text-secondary pt-0 pb-4",e),children:t})}));k0.displayName="AccordionContent";function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function SR(e,t=globalThis?.document){const r=st(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var PR="DismissableLayer",Cd="dismissableLayer.update",ER="dismissableLayer.pointerDownOutside",OR="dismissableLayer.focusOutside",ch,R0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$n=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=f.useContext(R0),[u,d]=f.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=re(t,O=>d(O)),m=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(h),x=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,E=AR(O=>{const C=O.target,M=[...c.branches].some($=>$.contains(C));!S||M||(o?.(O),a?.(O),O.defaultPrevented||s?.())},p),P=_R(O=>{const C=O.target;[...c.branches].some($=>$.contains(C))||(i?.(O),a?.(O),O.defaultPrevented||s?.())},p);return SR(O=>{x===c.layers.size-1&&(n?.(O),!O.defaultPrevented&&s&&(O.preventDefault(),s()))},p),f.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ch=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),uh(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ch)}},[u,p,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),uh())},[u,c]),f.useEffect(()=>{const O=()=>v({});return document.addEventListener(Cd,O),()=>document.removeEventListener(Cd,O)},[]),y.jsx(Q.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,P.onFocusCapture),onBlurCapture:U(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});$n.displayName=PR;var CR="DismissableLayerBranch",D0=f.forwardRef((e,t)=>{const r=f.useContext(R0),n=f.useRef(null),o=re(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),y.jsx(Q.div,{...e,ref:o})});D0.displayName=CR;function AR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){$0(ER,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function _R(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&$0(OR,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function uh(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function $0(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zf(o,i):o.dispatchEvent(i)}var TR=$n,jR=D0,Ic="focusScope.autoFocusOnMount",kc="focusScope.autoFocusOnUnmount",dh={bubbles:!1,cancelable:!0},MR="FocusScope",Si=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=f.useState(null),c=st(o),u=st(i),d=f.useRef(null),p=re(t,m=>l(m)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let m=function(w){if(v.paused||!s)return;const S=w.target;s.contains(S)?d.current=S:$r(d.current,{select:!0})},h=function(w){if(v.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||$r(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&$r(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const x=new MutationObserver(b);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),x.disconnect()}}},[n,s,v.paused]),f.useEffect(()=>{if(s){ph.add(v);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Ic,dh);s.addEventListener(Ic,c),s.dispatchEvent(b),b.defaultPrevented||(NR($R(L0(s)),{select:!0}),document.activeElement===m&&$r(s))}return()=>{s.removeEventListener(Ic,c),setTimeout(()=>{const b=new CustomEvent(kc,dh);s.addEventListener(kc,u),s.dispatchEvent(b),b.defaultPrevented||$r(m??document.body,{select:!0}),s.removeEventListener(kc,u),ph.remove(v)},0)}}},[s,c,u,v]);const g=f.useCallback(m=>{if(!r&&!n||v.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(h&&b){const x=m.currentTarget,[w,S]=IR(x);w&&S?!m.shiftKey&&b===S?(m.preventDefault(),r&&$r(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&$r(S,{select:!0})):b===x&&m.preventDefault()}},[r,n,v.paused]);return y.jsx(Q.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});Si.displayName=MR;function NR(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($r(n,{select:t}),document.activeElement!==r)return}function IR(e){const t=L0(e),r=fh(t,e),n=fh(t.reverse(),e);return[r,n]}function L0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function fh(e,t){for(const r of e)if(!kR(r,{upTo:t}))return r}function kR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function RR(e){return e instanceof HTMLInputElement&&"select"in e}function $r(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&RR(e)&&t&&e.select()}}var ph=DR();function DR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=vh(e,t),e.unshift(t)},remove(t){e=vh(e,t),e[0]?.resume()}}}function vh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function $R(e){return e.filter(t=>t.tagName!=="A")}var LR="Portal",Ln=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);Ye(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?xi.createPortal(y.jsx(Q.div,{...n,ref:t}),a):null});Ln.displayName=LR;var Rc=0;function ul(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mh()),document.body.insertAdjacentElement("beforeend",e[1]??mh()),Rc++,()=>{Rc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rc--}},[])}function mh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jt=function(){return Jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jt.apply(this,arguments)};function F0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function FR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Va="right-scroll-bar-position",Wa="width-before-scroll-bar",zR="with-scroll-bars-hidden",BR="--removed-body-scroll-bar-size";function Dc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function VR(e,t){var r=A.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var WR=typeof window<"u"?f.useLayoutEffect:f.useEffect,hh=new WeakMap;function KR(e,t){var r=VR(null,function(n){return e.forEach(function(o){return Dc(o,n)})});return WR(function(){var n=hh.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||Dc(s,null)}),i.forEach(function(s){o.has(s)||Dc(s,a)})}hh.set(r,e)},[e]),r}function UR(e){return e}function HR(e,t){t===void 0&&(t=UR);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),r}}}};return o}function GR(e){e===void 0&&(e={});var t=HR(null);return t.options=Jt({async:!0,ssr:!1},e),t}var z0=function(e){var t=e.sideCar,r=F0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,Jt({},r))};z0.isSideCarExport=!0;function qR(e,t){return e.useMedium(t),z0}var B0=GR(),$c=function(){},dl=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:$c,onWheelCapture:$c,onTouchMoveCapture:$c}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,h=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,S=F0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,P=KR([r,t]),O=Jt(Jt({},S),o);return f.createElement(f.Fragment,null,u&&f.createElement(E,{sideCar:B0,removeScrollBar:c,shards:d,noRelative:v,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:w}),a?f.cloneElement(f.Children.only(s),Jt(Jt({},O),{ref:P})):f.createElement(x,Jt({},O,{className:l,ref:P}),s))});dl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dl.classNames={fullWidth:Wa,zeroRight:Va};var YR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YR();return t&&e.setAttribute("nonce",t),e}function ZR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=XR())&&(ZR(t,r),JR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eD=function(){var e=QR();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},V0=function(){var e=eD(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},tD={left:0,top:0,right:0,gap:0},Lc=function(e){return parseInt(e||"",10)||0},rD=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Lc(r),Lc(n),Lc(o)]},nD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tD;var t=rD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},oD=V0(),no="data-scroll-locked",iD=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
2
|
-
.`.concat(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),A=require("react"),xi=require("react-dom");function qw(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=qw(A),wi=qw(xi);function DI(e,t){const r=f.createContext(t),n=i=>{const{children:a,...s}=i,l=f.useMemo(()=>s,Object.values(s));return y.jsx(r.Provider,{value:l,children:a})};n.displayName=e+"Provider";function o(i){const a=f.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,o]}function Be(e,t=[]){let r=[];function n(i,a){const s=f.createContext(a),l=r.length;r=[...r,a];const c=d=>{const{scope:p,children:v,...g}=d,m=p?.[e]?.[l]||s,h=f.useMemo(()=>g,Object.values(g));return y.jsx(m.Provider,{value:h,children:v})};c.displayName=i+"Provider";function u(d,p){const v=p?.[e]?.[l]||s,g=f.useContext(v);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=r.map(a=>f.createContext(a));return function(s){const l=s?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[n,$I(o,...t)]}function $I(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Zm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cr(...e){return t=>{let r=!1;const n=e.map(o=>{const i=Zm(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():Zm(e[o],null)}}}}function re(...e){return f.useCallback(cr(...e),e)}function Jm(e){const t=LI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(FI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function LI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=VI(o),s=BI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zI=Symbol("radix.slottable");function FI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zI}function BI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function VI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function bo(e){const t=e+"CollectionProvider",[r,n]=Be(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:h,children:b}=m,x=A.useRef(null),w=A.useRef(new Map).current;return y.jsx(o,{scope:h,itemMap:w,collectionRef:x,children:b})};a.displayName=t;const s=e+"CollectionSlot",l=Jm(s),c=A.forwardRef((m,h)=>{const{scope:b,children:x}=m,w=i(s,b),S=re(h,w.collectionRef);return y.jsx(l,{ref:S,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=Jm(u),v=A.forwardRef((m,h)=>{const{scope:b,children:x,...w}=m,S=A.useRef(null),E=re(h,S),P=i(u,b);return A.useEffect(()=>(P.itemMap.set(S,{ref:S,...w}),()=>{P.itemMap.delete(S)})),y.jsx(p,{[d]:"",ref:E,children:x})});v.displayName=u;function g(m){const h=i(e+"CollectionConsumer",m);return A.useCallback(()=>{const x=h.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((P,O)=>w.indexOf(P.ref.current)-w.indexOf(O.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:c,ItemSlot:v},g,n]}function U(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}var Ye=globalThis?.document?f.useLayoutEffect:()=>{},WI=f[" useInsertionEffect ".trim().toString()]||Ye;function nt({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,a]=KI({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:o;{const u=f.useRef(e!==void 0);f.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${n} is changing from ${d?"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.`),u.current=s},[s,n])}const c=f.useCallback(u=>{if(s){const d=UI(u)?u(e):u;d!==e&&a.current?.(d)}else i(u)},[s,e,i,a]);return[l,c]}function KI({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),i=f.useRef(t);return WI(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}function UI(e){return typeof e=="function"}function HI(e){const t=GI(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(YI);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function GI(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=ZI(o),s=XI(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var qI=Symbol("radix.slottable");function YI(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qI}function XI(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function ZI(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var JI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Q=JI.reduce((e,t)=>{const r=HI(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Zf(e,t){e&&wi.flushSync(()=>e.dispatchEvent(t))}function QI(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var lt=e=>{const{present:t,children:r}=e,n=ek(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),i=re(n.ref,tk(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:i}):null};lt.displayName="Presence";function ek(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),a=e?"mounted":"unmounted",[s,l]=QI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=aa(n.current);i.current=s==="mounted"?c:"none"},[s]),Ye(()=>{const c=n.current,u=o.current;if(u!==e){const p=i.current,v=aa(c);e?l("MOUNT"):v==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ye(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=v=>{const m=aa(n.current).includes(CSS.escape(v.animationName));if(v.target===t&&m&&(l("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=v=>{v.target===t&&(i.current=aa(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function aa(e){return e?.animationName||"none"}function tk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var rk=f[" useId ".trim().toString()]||(()=>{}),nk=0;function vt(e){const[t,r]=f.useState(rk());return Ye(()=>{r(n=>n??String(nk++))},[e]),e||(t?`radix-${t}`:"")}var il="Collapsible",[ok,Yw]=Be(il),[ik,Jf]=ok(il),Xw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=nt({prop:n,defaultProp:o??!1,onChange:a,caller:il});return y.jsx(ik,{scope:r,disabled:i,contentId:vt(),open:l,onOpenToggle:f.useCallback(()=>c(u=>!u),[c]),children:y.jsx(Q.div,{"data-state":ep(l),"data-disabled":i?"":void 0,...s,ref:t})})});Xw.displayName=il;var Zw="CollapsibleTrigger",Jw=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Jf(Zw,r);return y.jsx(Q.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":ep(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:U(e.onClick,o.onOpenToggle)})});Jw.displayName=Zw;var Qf="CollapsibleContent",Qw=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Jf(Qf,e.__scopeCollapsible);return y.jsx(lt,{present:r||o.open,children:({present:i})=>y.jsx(ak,{...n,ref:t,present:i})})});Qw.displayName=Qf;var ak=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...i}=e,a=Jf(Qf,r),[s,l]=f.useState(n),c=f.useRef(null),u=re(t,c),d=f.useRef(0),p=d.current,v=f.useRef(0),g=v.current,m=a.open||s,h=f.useRef(m),b=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(x)},[]),Ye(()=>{const x=c.current;if(x){b.current=b.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();d.current=w.height,v.current=w.width,h.current||(x.style.transitionDuration=b.current.transitionDuration,x.style.animationName=b.current.animationName),l(n)}},[a.open,n]),y.jsx(Q.div,{"data-state":ep(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:m&&o})});function ep(e){return e?"open":"closed"}var sk=Xw,lk=Jw,ck=Qw,uk=f.createContext(void 0);function xo(e){const t=f.useContext(uk);return e||t||"ltr"}var Ut="Accordion",dk=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[tp,fk,pk]=bo(Ut),[al]=Be(Ut,[pk,Yw]),rp=Yw(),e0=A.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,i=n;return y.jsx(tp.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?y.jsx(gk,{...i,ref:t}):y.jsx(hk,{...o,ref:t})})});e0.displayName=Ut;var[t0,vk]=al(Ut),[r0,mk]=al(Ut,{collapsible:!1}),hk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=nt({prop:r,defaultProp:n??"",onChange:o,caller:Ut});return y.jsx(t0,{scope:e.__scopeAccordion,value:A.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:A.useCallback(()=>i&&l(""),[i,l]),children:y.jsx(r0,{scope:e.__scopeAccordion,collapsible:i,children:y.jsx(n0,{...a,ref:t})})})}),gk=A.forwardRef((e,t)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=e,[a,s]=nt({prop:r,defaultProp:n??[],onChange:o,caller:Ut}),l=A.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=A.useCallback(u=>s((d=[])=>d.filter(p=>p!==u)),[s]);return y.jsx(t0,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:y.jsx(r0,{scope:e.__scopeAccordion,collapsible:!0,children:y.jsx(n0,{...i,ref:t})})})}),[yk,sl]=al(Ut),n0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,disabled:n,dir:o,orientation:i="vertical",...a}=e,s=A.useRef(null),l=re(s,t),c=fk(r),d=xo(o)==="ltr",p=U(e.onKeyDown,v=>{if(!dk.includes(v.key))return;const g=v.target,m=c().filter(C=>!C.ref.current?.disabled),h=m.findIndex(C=>C.ref.current===g),b=m.length;if(h===-1)return;v.preventDefault();let x=h;const w=0,S=b-1,E=()=>{x=h+1,x>S&&(x=w)},P=()=>{x=h-1,x<w&&(x=S)};switch(v.key){case"Home":x=w;break;case"End":x=S;break;case"ArrowRight":i==="horizontal"&&(d?E():P());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(d?P():E());break;case"ArrowUp":i==="vertical"&&P();break}const O=x%b;m[O].ref.current?.focus()});return y.jsx(yk,{scope:r,disabled:n,direction:o,orientation:i,children:y.jsx(tp.Slot,{scope:r,children:y.jsx(Q.div,{...a,"data-orientation":i,ref:l,onKeyDown:n?void 0:p})})})}),Za="AccordionItem",[bk,np]=al(Za),o0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,i=sl(Za,r),a=vk(Za,r),s=rp(r),l=vt(),c=n&&a.value.includes(n)||!1,u=i.disabled||e.disabled;return y.jsx(bk,{scope:r,open:c,disabled:u,triggerId:l,children:y.jsx(sk,{"data-orientation":i.orientation,"data-state":u0(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(n):a.onItemClose(n)}})})});o0.displayName=Za;var i0="AccordionHeader",a0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(i0,r);return y.jsx(Q.h3,{"data-orientation":o.orientation,"data-state":u0(i.open),"data-disabled":i.disabled?"":void 0,...n,ref:t})});a0.displayName=i0;var Ed="AccordionTrigger",s0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(Ed,r),a=mk(Ed,r),s=rp(r);return y.jsx(tp.ItemSlot,{scope:r,children:y.jsx(lk,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...n,ref:t})})});s0.displayName=Ed;var l0="AccordionContent",c0=A.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=sl(Ut,r),i=np(l0,r),a=rp(r);return y.jsx(ck,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});c0.displayName=l0;function u0(e){return e?"open":"closed"}var xk=e0,wk=o0,Sk=a0,Pk=s0,Ek=c0;function d0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=d0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function de(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=d0(e))&&(n&&(n+=" "),n+=t);return n}const Qm=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eh=de,te=(e,t)=>r=>{var n;if(t?.variants==null)return eh(e,r?.class,r?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const u=r?.[c],d=i?.[c];if(u===null)return null;const p=Qm(u)||Qm(d);return o[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:d,className:p,...v}=u;return Object.entries(v).every(g=>{let[m,h]=g;return Array.isArray(h)?h.includes({...i,...s}[m]):{...i,...s}[m]===h})?[...c,d,p]:c},[]);return eh(e,a,l,r?.class,r?.className)};const f0=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();const Ok=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Ck=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());const th=e=>{const t=Ck(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Ak={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 _k=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const Tk=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>A.createElement("svg",{ref:l,...Ak,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:f0("lucide",o),...!i&&!_k(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>A.createElement(c,u)),...Array.isArray(i)?i:[i]]));const Dn=(e,t)=>{const r=A.forwardRef(({className:n,...o},i)=>A.createElement(Tk,{ref:i,iconNode:t,className:f0(`lucide-${Ok(th(e))}`,`lucide-${e}`,n),...o}));return r.displayName=th(e),r};const jk=[["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"}]],p0=Dn("calendar",jk);const Nk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Mk=Dn("chevron-down",Nk);const Ik=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ll=Dn("chevron-left",Ik);const kk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cl=Dn("chevron-right",kk);const Rk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Dk=Dn("clock",Rk);const $k=[["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"}]],v0=Dn("ellipsis",$k);const Lk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],m0=Dn("x",Lk),zk=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Fk=(e,t)=>({classGroupId:e,validator:t}),h0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ja="-",rh=[],Bk="arbitrary..",Vk=e=>{const t=Kk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Wk(a);const s=a.split(Ja),l=s[0]===""&&s.length>1?1:0;return g0(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?zk(c,l):l:c||rh}return r[a]||rh}}},g0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=g0(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(Ja):e.slice(t).join(Ja),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},Wk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Bk+n:void 0})(),Kk=e=>{const{theme:t,classGroups:r}=e;return Uk(r,t)},Uk=(e,t)=>{const r=h0();for(const n in e){const o=e[n];op(o,r,n,t)}return r},op=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];Hk(a,t,r,n)}},Hk=(e,t,r,n)=>{if(typeof e=="string"){Gk(e,t,r);return}if(typeof e=="function"){qk(e,t,r,n);return}Yk(e,t,r,n)},Gk=(e,t,r)=>{const n=e===""?t:y0(t,e);n.classGroupId=r},qk=(e,t,r,n)=>{if(Xk(e)){op(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Fk(r,e))},Yk=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];op(l,y0(t,s),r,n)}},y0=(e,t)=>{let r=e;const n=t.split(Ja),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=h0(),r.nextPart.set(a,s)),r=s}return r},Xk=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Zk=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Od="!",nh=":",Jk=[],oh=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Qk=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const h=o[m];if(a===0&&s===0){if(h===nh){i.push(o.slice(l,m)),l=m+1;continue}if(h==="/"){c=m;continue}}h==="["?a++:h==="]"?a--:h==="("?s++:h===")"&&s--}const d=i.length===0?o:o.slice(l);let p=d,v=!1;d.endsWith(Od)?(p=d.slice(0,-1),v=!0):d.startsWith(Od)&&(p=d.slice(1),v=!0);const g=c&&c>l?c-l:void 0;return oh(i,v,p,g)};if(t){const o=t+nh,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):oh(Jk,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},eR=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},tR=e=>({cache:Zk(e.cacheSize),parseClassName:Qk(e),sortModifiers:eR(e),...Vk(e)}),rR=/\s+/,nR=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(rR);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!m,b=n(h?g.substring(0,m):g);if(!b){if(!h){l=u+(l.length>0?" "+l:l);continue}if(b=n(g),!b){l=u+(l.length>0?" "+l:l);continue}h=!1}const x=p.length===0?"":p.length===1?p[0]:i(p).join(":"),w=v?x+Od:x,S=w+b;if(a.indexOf(S)>-1)continue;a.push(S);const E=o(b,h);for(let P=0;P<E.length;++P){const O=E[P];a.push(w+O)}l=u+(l.length>0?" "+l:l)}return l},oR=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=b0(r))&&(o&&(o+=" "),o+=n);return o},b0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=b0(e[n]))&&(r&&(r+=" "),r+=t);return r},ih=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return r=tR(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{const c=n(l);if(c)return c;const u=nR(l,r);return o(l,u),u};return i=a,(...l)=>i(oR(...l))},iR=[],ze=e=>{const t=r=>r[e]||iR;return t.isThemeGetter=!0,t},x0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,aR=/^\d+\/\d+$/,sR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lR=/\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$/,cR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Hn=e=>aR.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),Dr=e=>!!e&&Number.isInteger(Number(e)),Nc=e=>e.endsWith("%")&&ae(e.slice(0,-1)),dr=e=>sR.test(e),fR=()=>!0,pR=e=>lR.test(e)&&!cR.test(e),S0=()=>!1,vR=e=>uR.test(e),mR=e=>dR.test(e),hR=e=>!X(e)&&!Z(e),gR=e=>wo(e,O0,S0),X=e=>x0.test(e),ln=e=>wo(e,C0,pR),Mc=e=>wo(e,SR,ae),ah=e=>wo(e,P0,S0),yR=e=>wo(e,E0,mR),sa=e=>wo(e,A0,vR),Z=e=>w0.test(e),$o=e=>So(e,C0),bR=e=>So(e,PR),sh=e=>So(e,P0),xR=e=>So(e,O0),wR=e=>So(e,E0),la=e=>So(e,A0,!0),wo=(e,t,r)=>{const n=x0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},So=(e,t,r=!1)=>{const n=w0.exec(e);return n?n[1]?t(n[1]):r:!1},P0=e=>e==="position"||e==="percentage",E0=e=>e==="image"||e==="url",O0=e=>e==="length"||e==="size"||e==="bg-size",C0=e=>e==="length",SR=e=>e==="number",PR=e=>e==="family-name",A0=e=>e==="shadow",lh=()=>{const e=ze("color"),t=ze("font"),r=ze("text"),n=ze("font-weight"),o=ze("tracking"),i=ze("leading"),a=ze("breakpoint"),s=ze("container"),l=ze("spacing"),c=ze("radius"),u=ze("shadow"),d=ze("inset-shadow"),p=ze("text-shadow"),v=ze("drop-shadow"),g=ze("blur"),m=ze("perspective"),h=ze("aspect"),b=ze("ease"),x=ze("animate"),w=()=>["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(),Z,X],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],C=()=>[Z,X,l],N=()=>[Hn,"full","auto",...C()],$=()=>[Dr,"none","subgrid",Z,X],I=()=>["auto",{span:["full",Dr,Z,X]},Dr,Z,X],_=()=>[Dr,"auto",Z,X],j=()=>["auto","min","max","fr",Z,X],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...C()],W=()=>[Hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],T=()=>[e,Z,X],k=()=>[...S(),sh,ah,{position:[Z,X]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ee=()=>["auto","cover","contain",xR,gR,{size:[Z,X]}],ne=()=>[Nc,$o,ln],ie=()=>["","none","full",c,Z,X],oe=()=>["",ae,$o,ln],le=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[ae,Nc,sh,ah],ue=()=>["","none",g,Z,X],L=()=>["none",ae,Z,X],H=()=>["none",ae,Z,X],B=()=>[ae,Z,X],z=()=>[Hn,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[dr],breakpoint:[dr],color:[fR],container:[dr],"drop-shadow":[dr],ease:["in","out","in-out"],font:[hR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[dr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[dr],shadow:[dr],spacing:["px",ae],text:[dr],"text-shadow":[dr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Hn,X,Z,h]}],container:["container"],columns:[{columns:[ae,X,Z,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{start:N()}],end:[{end:N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[Dr,"auto",Z,X]}],basis:[{basis:[Hn,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Hn,"auto","initial","none",X]}],grow:[{grow:["",ae,Z,X]}],shrink:[{shrink:["",ae,Z,X]}],order:[{order:[Dr,"first","last","none",Z,X]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[s,"screen",...W()]}],"min-w":[{"min-w":[s,"screen","none",...W()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,$o,ln]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Z,Mc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nc,X]}],"font-family":[{font:[bR,X,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Z,X]}],"line-clamp":[{"line-clamp":[ae,"none",Z,Mc]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",Z,X]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,X]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Z,ln]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ae,"auto",Z,X]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,X]}],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",Z,X]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:k()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dr,Z,X],radial:["",Z,X],conic:[Dr,Z,X]},wR,yR]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Z,X]}],"outline-w":[{outline:["",ae,$o,ln]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",u,la,sa]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",d,la,sa]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ae,ln]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,la,sa]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Z,X]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"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":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Z,X]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"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":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:k()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,X]}],filter:[{filter:["","none",Z,X]}],blur:[{blur:ue()}],brightness:[{brightness:[ae,Z,X]}],contrast:[{contrast:[ae,Z,X]}],"drop-shadow":[{"drop-shadow":["","none",v,la,sa]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ae,Z,X]}],"hue-rotate":[{"hue-rotate":[ae,Z,X]}],invert:[{invert:["",ae,Z,X]}],saturate:[{saturate:[ae,Z,X]}],sepia:[{sepia:["",ae,Z,X]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,X]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Z,X]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Z,X]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Z,X]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Z,X]}],"backdrop-invert":[{"backdrop-invert":["",ae,Z,X]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Z,X]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Z,X]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Z,X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,X]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Z,X]}],ease:[{ease:["linear","initial",b,Z,X]}],delay:[{delay:[ae,Z,X]}],animate:[{animate:["none",x,Z,X]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Z,X]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:H()}],"scale-x":[{"scale-x":H()}],"scale-y":[{"scale-y":H()}],"scale-z":[{"scale-z":H()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[Z,X,"","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:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"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",Z,X]}],"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":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Z,X]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ae,$o,ln,Mc]}],stroke:[{stroke:["none",...T()]}],"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"]}},ER=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(Go(e,"cacheSize",t),Go(e,"prefix",r),Go(e,"experimentalParseClassName",n),ca(e.theme,i.theme),ca(e.classGroups,i.classGroups),ca(e.conflictingClassGroups,i.conflictingClassGroups),ca(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Go(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),ua(e.theme,o.theme),ua(e.classGroups,o.classGroups),ua(e.conflictingClassGroups,o.conflictingClassGroups),ua(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),_0(e,o,"orderSensitiveModifiers"),e),Go=(e,t,r)=>{r!==void 0&&(e[t]=r)},ca=(e,t)=>{if(t)for(const r in t)Go(e,r,t[r])},ua=(e,t)=>{if(t)for(const r in t)_0(e,t,r)},_0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},OR=(e,...t)=>typeof e=="function"?ih(lh,e,...t):ih(()=>ER(lh(),e),...t),CR=OR({extend:{classGroups:{"font-size":[{text:["hero","h1","h2","h3","h4","lead","semi-lead","body-lg","body","descriptive","small","label","label-sm"]}]}}});function D(...e){return CR(de(e))}const T0=te("w-full",{variants:{variant:{default:"",bordered:"border-border rounded-lg border"}},defaultVariants:{variant:"default"}}),j0=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(xk,{ref:n,className:D(T0({variant:t}),e),...r}));j0.displayName="Accordion";const N0=f.forwardRef(({className:e,...t},r)=>y.jsx(wk,{ref:r,className:D("border-border border-b last:border-b-0",e),...t}));N0.displayName="AccordionItem";const M0=te(["flex flex-1 items-center justify-between py-4 text-left font-sans font-normal transition-all","text-primary hover:underline","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","[&[data-state=open]>svg]:rotate-180"],{variants:{size:{sm:"text-small py-3",default:"text-body py-4",lg:"text-lead py-5"}},defaultVariants:{size:"default"}}),I0=f.forwardRef(({className:e,children:t,size:r,...n},o)=>y.jsx(Sk,{className:"flex",children:y.jsxs(Pk,{ref:o,className:D(M0({size:r}),e),...n,children:[t,y.jsx(Mk,{className:"text-secondary h-4 w-4 shrink-0 transition-transform duration-200"})]})}));I0.displayName="AccordionTrigger";const k0=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx(Ek,{ref:n,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...r,children:y.jsx("div",{className:D("text-secondary pt-0 pb-4",e),children:t})}));k0.displayName="AccordionContent";function st(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}function AR(e,t=globalThis?.document){const r=st(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var _R="DismissableLayer",Cd="dismissableLayer.update",TR="dismissableLayer.pointerDownOutside",jR="dismissableLayer.focusOutside",ch,R0=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$n=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=f.useContext(R0),[u,d]=f.useState(null),p=u?.ownerDocument??globalThis?.document,[,v]=f.useState({}),g=re(t,O=>d(O)),m=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=m.indexOf(h),x=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=b,E=MR(O=>{const C=O.target,N=[...c.branches].some($=>$.contains(C));!S||N||(o?.(O),a?.(O),O.defaultPrevented||s?.())},p),P=IR(O=>{const C=O.target;[...c.branches].some($=>$.contains(C))||(i?.(O),a?.(O),O.defaultPrevented||s?.())},p);return AR(O=>{x===c.layers.size-1&&(n?.(O),!O.defaultPrevented&&s&&(O.preventDefault(),s()))},p),f.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(ch=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),uh(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=ch)}},[u,p,r,c]),f.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),uh())},[u,c]),f.useEffect(()=>{const O=()=>v({});return document.addEventListener(Cd,O),()=>document.removeEventListener(Cd,O)},[]),y.jsx(Q.div,{...l,ref:g,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:U(e.onFocusCapture,P.onFocusCapture),onBlurCapture:U(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:U(e.onPointerDownCapture,E.onPointerDownCapture)})});$n.displayName=_R;var NR="DismissableLayerBranch",D0=f.forwardRef((e,t)=>{const r=f.useContext(R0),n=f.useRef(null),o=re(t,n);return f.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),y.jsx(Q.div,{...e,ref:o})});D0.displayName=NR;function MR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let l=function(){$0(TR,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function IR(e,t=globalThis?.document){const r=st(e),n=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!n.current&&$0(jR,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function uh(){const e=new CustomEvent(Cd);document.dispatchEvent(e)}function $0(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zf(o,i):o.dispatchEvent(i)}var kR=$n,RR=D0,Ic="focusScope.autoFocusOnMount",kc="focusScope.autoFocusOnUnmount",dh={bubbles:!1,cancelable:!0},DR="FocusScope",Si=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=f.useState(null),c=st(o),u=st(i),d=f.useRef(null),p=re(t,m=>l(m)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let m=function(w){if(v.paused||!s)return;const S=w.target;s.contains(S)?d.current=S:$r(d.current,{select:!0})},h=function(w){if(v.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||$r(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(const E of w)E.removedNodes.length>0&&$r(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",h);const x=new MutationObserver(b);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",h),x.disconnect()}}},[n,s,v.paused]),f.useEffect(()=>{if(s){ph.add(v);const m=document.activeElement;if(!s.contains(m)){const b=new CustomEvent(Ic,dh);s.addEventListener(Ic,c),s.dispatchEvent(b),b.defaultPrevented||($R(VR(L0(s)),{select:!0}),document.activeElement===m&&$r(s))}return()=>{s.removeEventListener(Ic,c),setTimeout(()=>{const b=new CustomEvent(kc,dh);s.addEventListener(kc,u),s.dispatchEvent(b),b.defaultPrevented||$r(m??document.body,{select:!0}),s.removeEventListener(kc,u),ph.remove(v)},0)}}},[s,c,u,v]);const g=f.useCallback(m=>{if(!r&&!n||v.paused)return;const h=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(h&&b){const x=m.currentTarget,[w,S]=LR(x);w&&S?!m.shiftKey&&b===S?(m.preventDefault(),r&&$r(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&$r(S,{select:!0})):b===x&&m.preventDefault()}},[r,n,v.paused]);return y.jsx(Q.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});Si.displayName=DR;function $R(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if($r(n,{select:t}),document.activeElement!==r)return}function LR(e){const t=L0(e),r=fh(t,e),n=fh(t.reverse(),e);return[r,n]}function L0(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function fh(e,t){for(const r of e)if(!zR(r,{upTo:t}))return r}function zR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function FR(e){return e instanceof HTMLInputElement&&"select"in e}function $r(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&FR(e)&&t&&e.select()}}var ph=BR();function BR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=vh(e,t),e.unshift(t)},remove(t){e=vh(e,t),e[0]?.resume()}}}function vh(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function VR(e){return e.filter(t=>t.tagName!=="A")}var WR="Portal",Ln=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=f.useState(!1);Ye(()=>i(!0),[]);const a=r||o&&globalThis?.document?.body;return a?xi.createPortal(y.jsx(Q.div,{...n,ref:t}),a):null});Ln.displayName=WR;var Rc=0;function ul(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mh()),document.body.insertAdjacentElement("beforeend",e[1]??mh()),Rc++,()=>{Rc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Rc--}},[])}function mh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jt=function(){return Jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jt.apply(this,arguments)};function z0(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function KR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var Va="right-scroll-bar-position",Wa="width-before-scroll-bar",UR="with-scroll-bars-hidden",HR="--removed-body-scroll-bar-size";function Dc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function GR(e,t){var r=A.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var qR=typeof window<"u"?f.useLayoutEffect:f.useEffect,hh=new WeakMap;function YR(e,t){var r=GR(null,function(n){return e.forEach(function(o){return Dc(o,n)})});return qR(function(){var n=hh.get(r);if(n){var o=new Set(n),i=new Set(e),a=r.current;o.forEach(function(s){i.has(s)||Dc(s,null)}),i.forEach(function(s){o.has(s)||Dc(s,a)})}hh.set(r,e)},[e]),r}function XR(e){return e}function ZR(e,t){t===void 0&&(t=XR);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),r}}}};return o}function JR(e){e===void 0&&(e={});var t=ZR(null);return t.options=Jt({async:!0,ssr:!1},e),t}var F0=function(e){var t=e.sideCar,r=z0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,Jt({},r))};F0.isSideCarExport=!0;function QR(e,t){return e.useMedium(t),F0}var B0=JR(),$c=function(){},dl=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:$c,onWheelCapture:$c,onTouchMoveCapture:$c}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,g=e.noIsolation,m=e.inert,h=e.allowPinchZoom,b=e.as,x=b===void 0?"div":b,w=e.gapMode,S=z0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,P=YR([r,t]),O=Jt(Jt({},S),o);return f.createElement(f.Fragment,null,u&&f.createElement(E,{sideCar:B0,removeScrollBar:c,shards:d,noRelative:v,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:r,gapMode:w}),a?f.cloneElement(f.Children.only(s),Jt(Jt({},O),{ref:P})):f.createElement(x,Jt({},O,{className:l,ref:P}),s))});dl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dl.classNames={fullWidth:Wa,zeroRight:Va};var eD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eD();return t&&e.setAttribute("nonce",t),e}function rD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function nD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var oD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=tD())&&(rD(t,r),nD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},iD=function(){var e=oD();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},V0=function(){var e=iD(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},aD={left:0,top:0,right:0,gap:0},Lc=function(e){return parseInt(e||"",10)||0},sD=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Lc(r),Lc(n),Lc(o)]},lD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aD;var t=sD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},cD=V0(),no="data-scroll-locked",uD=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
2
|
+
.`.concat(UR,` {
|
|
3
3
|
overflow: hidden `).concat(n,`;
|
|
4
4
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
5
5
|
}
|
|
@@ -33,68 +33,68 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(no,`] {
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat(HR,": ").concat(s,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},gh=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},
|
|
38
|
+
`)},gh=function(){var e=parseInt(document.body.getAttribute(no)||"0",10);return isFinite(e)?e:0},dD=function(){f.useEffect(function(){return document.body.setAttribute(no,(gh()+1).toString()),function(){var e=gh()-1;e<=0?document.body.removeAttribute(no):document.body.setAttribute(no,e.toString())}},[])},fD=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;dD();var i=f.useMemo(function(){return lD(o)},[o]);return f.createElement(cD,{styles:uD(i,!t,o,r?"":"!important")})},Ad=!1;if(typeof window<"u")try{var da=Object.defineProperty({},"passive",{get:function(){return Ad=!0,!0}});window.addEventListener("test",da,da),window.removeEventListener("test",da,da)}catch{Ad=!1}var Gn=Ad?{passive:!1}:!1,pD=function(e){return e.tagName==="TEXTAREA"},W0=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!pD(e)&&r[t]==="visible")},vD=function(e){return W0(e,"overflowY")},mD=function(e){return W0(e,"overflowX")},yh=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=K0(e,n);if(o){var i=U0(e,n),a=i[1],s=i[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},hD=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gD=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},K0=function(e,t){return e==="v"?vD(t):mD(t)},U0=function(e,t){return e==="v"?hD(t):gD(t)},yD=function(e,t){return e==="h"&&t==="rtl"?-1:1},bD=function(e,t,r,n,o){var i=yD(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,l=t.contains(s),c=!1,u=a>0,d=0,p=0;do{if(!s)break;var v=U0(e,s),g=v[0],m=v[1],h=v[2],b=m-h-i*g;(g||b)&&K0(e,s)&&(d+=b,p+=g);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(p)<1)&&(c=!0),c},fa=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bh=function(e){return[e.deltaX,e.deltaY]},xh=function(e){return e&&"current"in e?e.current:e},xD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wD=function(e){return`
|
|
39
39
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
41
|
-
`)},gD=0,qn=[];function yD(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(gD++)[0],i=f.useState(V0)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=FR([e.lockRef.current],(e.shards||[]).map(xh),!0).filter(Boolean);return m.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(m,h){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=fa(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],S="deltaY"in m?m.deltaY:x[1]-b[1],E,P=m.target,O=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&O==="h"&&P.type==="range")return!1;var C=window.getSelection(),M=C&&C.anchorNode,$=M?M===P||M.contains(P):!1;if($)return!1;var I=yh(O,P);if(!I)return!0;if(I?E=O:(E=O==="v"?"h":"v",I=yh(O,P)),!I)return!1;if(!n.current&&"changedTouches"in m&&(w||S)&&(n.current=E),!E)return!0;var _=n.current||E;return vD(_,h,m,_==="h"?w:S)},[]),l=f.useCallback(function(m){var h=m;if(!(!qn.length||qn[qn.length-1]!==i)){var b="deltaY"in h?bh(h):fa(h),x=t.current.filter(function(E){return E.name===h.type&&(E.target===h.target||h.target===E.shadowParent)&&mD(E.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(xh).filter(Boolean).filter(function(E){return E.contains(h.target)}),S=w.length>0?s(h,w[0]):!a.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),c=f.useCallback(function(m,h,b,x){var w={name:m,delta:h,target:b,should:x,shadowParent:bD(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=f.useCallback(function(m){r.current=fa(m),n.current=void 0},[]),d=f.useCallback(function(m){c(m.type,bh(m),m.target,s(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,fa(m),m.target,s(m,e.lockRef.current))},[]);f.useEffect(function(){return qn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Gn),document.addEventListener("touchmove",l,Gn),document.addEventListener("touchstart",u,Gn),function(){qn=qn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Gn),document.removeEventListener("touchmove",l,Gn),document.removeEventListener("touchstart",u,Gn)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(i,{styles:hD(o)}):null,v?f.createElement(sD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xD=qR(B0,yD);var Pi=f.forwardRef(function(e,t){return f.createElement(dl,Jt({},e,{ref:t,sideCar:xD}))});Pi.classNames=dl.classNames;var wD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,pa=new WeakMap,va={},Fc=0,H0=function(e){return e&&(e.host||H0(e.parentNode))},SD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=H0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},PD=function(e,t,r,n){var o=SD(t,Array.isArray(e)?e:[e]);va[r]||(va[r]=new WeakMap);var i=va[r],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))u(p);else try{var v=p.getAttribute(n),g=v!==null&&v!=="false",m=(Yn.get(p)||0)+1,h=(i.get(p)||0)+1;Yn.set(p,m),i.set(p,h),a.push(p),m===1&&g&&pa.set(p,!0),h===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return u(t),s.clear(),Fc++,function(){a.forEach(function(d){var p=Yn.get(d)-1,v=i.get(d)-1;Yn.set(d,p),i.set(d,v),p||(pa.has(d)||d.removeAttribute(n),pa.delete(d)),v||d.removeAttribute(r)}),Fc--,Fc||(Yn=new WeakMap,Yn=new WeakMap,pa=new WeakMap,va={})}},fl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=wD(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),PD(n,o,r,"aria-hidden")):function(){return null}};function ED(e){const t=OD(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(AD);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function OD(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=TD(o),s=_D(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var CD=Symbol("radix.slottable");function AD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===CD}function _D(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function TD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pl="Dialog",[G0,q0]=Be(pl),[jD,Ht]=G0(pl),Y0=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=f.useRef(null),l=f.useRef(null),[c,u]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:pl});return y.jsx(jD,{scope:t,triggerRef:s,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:c,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};Y0.displayName=pl;var X0="DialogTrigger",Z0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(X0,r),i=re(t,o.triggerRef);return y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sp(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});Z0.displayName=X0;var ip="DialogPortal",[MD,J0]=G0(ip,{forceMount:void 0}),Q0=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ht(ip,t);return y.jsx(MD,{scope:t,forceMount:r,children:f.Children.map(n,a=>y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:a})}))})};Q0.displayName=ip;var Qa="DialogOverlay",eS=f.forwardRef((e,t)=>{const r=J0(Qa,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Qa,e.__scopeDialog);return i.modal?y.jsx(lt,{present:n||i.open,children:y.jsx(ID,{...o,ref:t})}):null});eS.displayName=Qa;var ND=ED("DialogOverlay.RemoveScroll"),ID=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Qa,r);return y.jsx(Pi,{as:ND,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Q.div,{"data-state":sp(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Pn="DialogContent",tS=f.forwardRef((e,t)=>{const r=J0(Pn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Pn,e.__scopeDialog);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(kD,{...o,ref:t}):y.jsx(RD,{...o,ref:t})})});tS.displayName=Pn;var kD=f.forwardRef((e,t)=>{const r=Ht(Pn,e.__scopeDialog),n=f.useRef(null),o=re(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return fl(i)},[]),y.jsx(rS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault())})}),RD=f.forwardRef((e,t)=>{const r=Ht(Pn,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(rS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),rS=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ht(Pn,r),l=f.useRef(null),c=re(t,l);return ul(),y.jsxs(y.Fragment,{children:[y.jsx(Si,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx($D,{titleId:s.titleId}),y.jsx(FD,{contentRef:l,descriptionId:s.descriptionId})]})]})}),ap="DialogTitle",nS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(ap,r);return y.jsx(Q.h2,{id:o.titleId,...n,ref:t})});nS.displayName=ap;var oS="DialogDescription",iS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(oS,r);return y.jsx(Q.p,{id:o.descriptionId,...n,ref:t})});iS.displayName=oS;var aS="DialogClose",sS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(aS,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});sS.displayName=aS;function sp(e){return e?"open":"closed"}var lS="DialogTitleWarning",[DD,cS]=MI(lS,{contentName:Pn,titleName:ap,docsSlug:"dialog"}),$D=({titleId:e})=>{const t=cS(lS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
41
|
+
`)},SD=0,qn=[];function PD(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(SD++)[0],i=f.useState(V0)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=KR([e.lockRef.current],(e.shards||[]).map(xh),!0).filter(Boolean);return m.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(m,h){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var b=fa(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],S="deltaY"in m?m.deltaY:x[1]-b[1],E,P=m.target,O=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in m&&O==="h"&&P.type==="range")return!1;var C=window.getSelection(),N=C&&C.anchorNode,$=N?N===P||N.contains(P):!1;if($)return!1;var I=yh(O,P);if(!I)return!0;if(I?E=O:(E=O==="v"?"h":"v",I=yh(O,P)),!I)return!1;if(!n.current&&"changedTouches"in m&&(w||S)&&(n.current=E),!E)return!0;var _=n.current||E;return bD(_,h,m,_==="h"?w:S)},[]),l=f.useCallback(function(m){var h=m;if(!(!qn.length||qn[qn.length-1]!==i)){var b="deltaY"in h?bh(h):fa(h),x=t.current.filter(function(E){return E.name===h.type&&(E.target===h.target||h.target===E.shadowParent)&&xD(E.delta,b)})[0];if(x&&x.should){h.cancelable&&h.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(xh).filter(Boolean).filter(function(E){return E.contains(h.target)}),S=w.length>0?s(h,w[0]):!a.current.noIsolation;S&&h.cancelable&&h.preventDefault()}}},[]),c=f.useCallback(function(m,h,b,x){var w={name:m,delta:h,target:b,should:x,shadowParent:ED(b)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=f.useCallback(function(m){r.current=fa(m),n.current=void 0},[]),d=f.useCallback(function(m){c(m.type,bh(m),m.target,s(m,e.lockRef.current))},[]),p=f.useCallback(function(m){c(m.type,fa(m),m.target,s(m,e.lockRef.current))},[]);f.useEffect(function(){return qn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Gn),document.addEventListener("touchmove",l,Gn),document.addEventListener("touchstart",u,Gn),function(){qn=qn.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Gn),document.removeEventListener("touchmove",l,Gn),document.removeEventListener("touchstart",u,Gn)}},[]);var v=e.removeScrollBar,g=e.inert;return f.createElement(f.Fragment,null,g?f.createElement(i,{styles:wD(o)}):null,v?f.createElement(fD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ED(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const OD=QR(B0,PD);var Pi=f.forwardRef(function(e,t){return f.createElement(dl,Jt({},e,{ref:t,sideCar:OD}))});Pi.classNames=dl.classNames;var CD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Yn=new WeakMap,pa=new WeakMap,va={},zc=0,H0=function(e){return e&&(e.host||H0(e.parentNode))},AD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=H0(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},_D=function(e,t,r,n){var o=AD(t,Array.isArray(e)?e:[e]);va[r]||(va[r]=new WeakMap);var i=va[r],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))u(p);else try{var v=p.getAttribute(n),g=v!==null&&v!=="false",m=(Yn.get(p)||0)+1,h=(i.get(p)||0)+1;Yn.set(p,m),i.set(p,h),a.push(p),m===1&&g&&pa.set(p,!0),h===1&&p.setAttribute(r,"true"),g||p.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",p,b)}})};return u(t),s.clear(),zc++,function(){a.forEach(function(d){var p=Yn.get(d)-1,v=i.get(d)-1;Yn.set(d,p),i.set(d,v),p||(pa.has(d)||d.removeAttribute(n),pa.delete(d)),v||d.removeAttribute(r)}),zc--,zc||(Yn=new WeakMap,Yn=new WeakMap,pa=new WeakMap,va={})}},fl=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=CD(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),_D(n,o,r,"aria-hidden")):function(){return null}};function TD(e){const t=jD(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(MD);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function jD(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=kD(o),s=ID(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ND=Symbol("radix.slottable");function MD(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ND}function ID(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function kD(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var pl="Dialog",[G0,q0]=Be(pl),[RD,Ht]=G0(pl),Y0=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=f.useRef(null),l=f.useRef(null),[c,u]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:pl});return y.jsx(RD,{scope:t,triggerRef:s,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:c,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(d=>!d),[u]),modal:a,children:r})};Y0.displayName=pl;var X0="DialogTrigger",Z0=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(X0,r),i=re(t,o.triggerRef);return y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":sp(o.open),...n,ref:i,onClick:U(e.onClick,o.onOpenToggle)})});Z0.displayName=X0;var ip="DialogPortal",[DD,J0]=G0(ip,{forceMount:void 0}),Q0=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ht(ip,t);return y.jsx(DD,{scope:t,forceMount:r,children:f.Children.map(n,a=>y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:a})}))})};Q0.displayName=ip;var Qa="DialogOverlay",eS=f.forwardRef((e,t)=>{const r=J0(Qa,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Qa,e.__scopeDialog);return i.modal?y.jsx(lt,{present:n||i.open,children:y.jsx(LD,{...o,ref:t})}):null});eS.displayName=Qa;var $D=TD("DialogOverlay.RemoveScroll"),LD=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(Qa,r);return y.jsx(Pi,{as:$D,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Q.div,{"data-state":sp(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Pn="DialogContent",tS=f.forwardRef((e,t)=>{const r=J0(Pn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ht(Pn,e.__scopeDialog);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(zD,{...o,ref:t}):y.jsx(FD,{...o,ref:t})})});tS.displayName=Pn;var zD=f.forwardRef((e,t)=>{const r=Ht(Pn,e.__scopeDialog),n=f.useRef(null),o=re(t,r.contentRef,n);return f.useEffect(()=>{const i=n.current;if(i)return fl(i)},[]),y.jsx(rS,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault())})}),FD=f.forwardRef((e,t)=>{const r=Ht(Pn,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(rS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),rS=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ht(Pn,r),l=f.useRef(null),c=re(t,l);return ul(),y.jsxs(y.Fragment,{children:[y.jsx(Si,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":sp(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(VD,{titleId:s.titleId}),y.jsx(KD,{contentRef:l,descriptionId:s.descriptionId})]})]})}),ap="DialogTitle",nS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(ap,r);return y.jsx(Q.h2,{id:o.titleId,...n,ref:t})});nS.displayName=ap;var oS="DialogDescription",iS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(oS,r);return y.jsx(Q.p,{id:o.descriptionId,...n,ref:t})});iS.displayName=oS;var aS="DialogClose",sS=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ht(aS,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});sS.displayName=aS;function sp(e){return e?"open":"closed"}var lS="DialogTitleWarning",[BD,cS]=DI(lS,{contentName:Pn,titleName:ap,docsSlug:"dialog"}),VD=({titleId:e})=>{const t=cS(lS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},WD="DialogDescriptionWarning",KD=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cS(WD).contentName}}.`;return f.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},uS=Y0,dS=Z0,fS=Q0,pS=eS,vS=tS,mS=nS,hS=iS,vl=sS,UD=Symbol("radix.slottable");function HD(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=UD,t}var gS="AlertDialog",[GD]=Be(gS,[q0]),Ar=q0(),yS=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(uS,{...n,...r,modal:!0})};yS.displayName=gS;var qD="AlertDialogTrigger",bS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(dS,{...o,...n,ref:t})});bS.displayName=qD;var YD="AlertDialogPortal",xS=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ar(t);return y.jsx(fS,{...n,...r})};xS.displayName=YD;var XD="AlertDialogOverlay",wS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(pS,{...o,...n,ref:t})});wS.displayName=XD;var oo="AlertDialogContent",[ZD,JD]=GD(oo),QD=HD("AlertDialogContent"),SS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ar(r),a=f.useRef(null),s=re(t,a),l=f.useRef(null);return y.jsx(BD,{contentName:oo,titleName:PS,docsSlug:"alert-dialog",children:y.jsx(ZD,{scope:r,cancelRef:l,children:y.jsxs(vS,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:U(o.onOpenAutoFocus,c=>{c.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[y.jsx(QD,{children:n}),y.jsx(t2,{contentRef:a})]})})})});SS.displayName=oo;var PS="AlertDialogTitle",ES=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(mS,{...o,...n,ref:t})});ES.displayName=PS;var OS="AlertDialogDescription",CS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(hS,{...o,...n,ref:t})});CS.displayName=OS;var e2="AlertDialogAction",AS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ar(r);return y.jsx(vl,{...o,...n,ref:t})});AS.displayName=e2;var _S="AlertDialogCancel",TS=f.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=JD(_S,r),i=Ar(r),a=re(t,o);return y.jsx(vl,{...i,...n,ref:a})});TS.displayName=_S;var t2=({contentRef:e})=>{const t=`\`${oo}\` requires a description for the component to be accessible for screen reader users.
|
|
46
46
|
|
|
47
47
|
You can add a description to the \`${oo}\` by passing a \`${OS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
48
48
|
|
|
49
49
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${oo}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
50
50
|
|
|
51
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},ZD=yS,JD=bS,QD=xS,e2=wS,t2=SS,r2=AS,n2=TS,o2=ES,i2=CS,a2=Symbol.for("react.lazy"),es=f[" use ".trim().toString()];function s2(e){return typeof e=="object"&&e!==null&&"then"in e}function jS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===a2&&"_payload"in e&&s2(e._payload)}function MS(e){const t=l2(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;jS(i)&&typeof es=="function"&&(i=es(i._payload));const s=f.Children.toArray(i),l=s.find(u2);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Ee=MS("Slot");function l2(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(jS(o)&&typeof es=="function"&&(o=es(o._payload)),f.isValidElement(o)){const a=f2(o),s=d2(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c2=Symbol("radix.slottable");function u2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===c2}function d2(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function f2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const ml=te("text-body focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-sunflower text-primary hover:bg-sunflower-hover active:bg-sunflower-hover",secondary:"border-border bg-border text-primary active:bg-alt border hover:bg-white",ghost:"text-primary hover:bg-alt active:bg-contrast"},size:{sm:"rounded-pill text-small px-5 py-1",default:"rounded-pill text-small px-8 py-1.5",lg:"rounded-pill text-body px-12 py-2",icon:"h-10 w-10 rounded-full"}},defaultVariants:{variant:"primary",size:"default"}}),NS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"button";return y.jsx(a,{className:D(ml({variant:t,size:r,className:e})),ref:i,...o})});NS.displayName="Button";const p2=ZD,v2=JD,IS=QD,lp=f.forwardRef(({className:e,...t},r)=>y.jsx(e2,{ref:r,className:D("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));lp.displayName="AlertDialogOverlay";const kS=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]"}},defaultVariants:{size:"default"}}),RS=f.forwardRef(({className:e,size:t,...r},n)=>y.jsxs(IS,{children:[y.jsx(lp,{}),y.jsx(t2,{ref:n,className:D(kS({size:t}),e),...r})]}));RS.displayName="AlertDialogContent";const DS=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t}));DS.displayName="AlertDialogHeader";const $S=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));$S.displayName="AlertDialogFooter";const LS=f.forwardRef(({className:e,...t},r)=>y.jsx(o2,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));LS.displayName="AlertDialogTitle";const FS=f.forwardRef(({className:e,...t},r)=>y.jsx(i2,{ref:r,className:D("text-secondary text-sm",e),...t}));FS.displayName="AlertDialogDescription";const zS=f.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>y.jsx(r2,{ref:o,className:D(ml({variant:t,size:r}),e),...n}));zS.displayName="AlertDialogAction";const BS=f.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>y.jsx(n2,{ref:o,className:D(ml({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));BS.displayName="AlertDialogCancel";const VS=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{sunflower:"bg-sunflower text-primary","lemon-meringue":"bg-lemon-meringue text-primary border-tertiary border",vanilla:"bg-vanilla text-primary border-tertiary border",eggshell:"bg-eggshell text-primary border-tertiary border","warm-purple":"bg-warm-purple text-white","cool-purple":"bg-cool-purple text-white","electric-blue":"bg-electric-blue text-white","deep-blue":"bg-deep-blue text-white",error:"bg-error text-white",secondary:"border-border bg-alt text-secondary border"},size:{sm:"rounded-pill px-2 py-0.5 text-xs",md:"rounded-pill px-2.5 py-1 text-xs",lg:"rounded-pill text-body px-3.5 py-1 text-sm",xl:"rounded-pill text-body px-4 py-1.5 text-xl"}},defaultVariants:{variant:"sunflower",size:"md"}}),WS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(VS({variant:t,size:r,className:e})),ref:i,...o})});WS.displayName="Badge";const KS=te("text-small relative flex w-full items-center gap-3 px-4 py-3 font-sans transition-colors",{variants:{variant:{info:"bg-electric-blue text-white",success:"bg-sunflower text-primary",warning:"bg-lemon-meringue text-primary",error:"bg-error text-white",neutral:"bg-alt text-primary border-border border"},align:{left:"justify-start text-left",center:"justify-center text-center"}},defaultVariants:{variant:"info",align:"center"}}),US=f.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Ee:"div";return y.jsxs(u,{role:"alert",className:D(KS({variant:t,align:r,className:e})),ref:c,...l,children:[o&&y.jsx("span",{className:"shrink-0",children:o}),y.jsx("span",{className:"flex-1",children:s}),i&&y.jsx("span",{className:"shrink-0",children:i}),a&&y.jsx("button",{type:"button",onClick:a,className:"hover:bg-primary/10 focus-visible:ring-sunflower -mr-1 shrink-0 rounded p-1 transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","aria-label":"Dismiss banner",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[y.jsx("path",{d:"M18 6 6 18"}),y.jsx("path",{d:"m6 6 12 12"})]})})]})});US.displayName="Banner";var m2=["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"];function cp(e){if(typeof e!="string")return!1;var t=m2;return t.includes(e)}var h2=["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"],g2=new Set(h2);function HS(e){return typeof e!="string"?!1:g2.has(e)}function GS(e){return typeof e=="string"&&e.startsWith("data-")}function At(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(HS(r)||GS(r))&&(t[r]=e[r]);return t}function En(e){if(e==null)return null;if(A.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return At(t)}return typeof e=="object"&&!Array.isArray(e)?At(e):null}function mt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(HS(r)||GS(r)||cp(r))&&(t[r]=e[r]);return t}function y2(e){return e==null?null:A.isValidElement(e)?mt(e.props):typeof e=="object"&&!Array.isArray(e)?mt(e):null}var b2=["children","width","height","viewBox","className","style","title","desc"];function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_d.apply(null,arguments)}function x2(e,t){if(e==null)return{};var r,n,o=w2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function w2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var up=A.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=x2(e,b2),d=i||{width:n,height:o,x:0,y:0},p=de("recharts-surface",a);return f.createElement("svg",_d({},mt(u),{className:p,width:n,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),f.createElement("title",null,l),f.createElement("desc",null,c),r)}),S2=["children","className"];function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Td.apply(null,arguments)}function P2(e,t){if(e==null)return{};var r,n,o=E2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function E2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Xe=f.forwardRef((e,t)=>{var{children:r,className:n}=e,o=P2(e,S2),i=de("recharts-layer",n);return f.createElement("g",Td({className:i},mt(o),{ref:t}),r)}),qS=A.createContext(null),O2=()=>A.useContext(qS);function we(e){return function(){return e}}const YS=Math.cos,ts=Math.sin,Gt=Math.sqrt,rs=Math.PI,hl=2*rs,jd=Math.PI,Md=2*jd,un=1e-6,C2=Md-un;function XS(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function A2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XS;const r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;o<i;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class _2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XS:A2(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,i,a){this._append`C${+t},${+r},${+n},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,n,o,i){if(t=+t,r=+r,n=+n,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=n-t,c=o-r,u=a-t,d=s-r,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>un)if(!(Math.abs(d*l-c*u)>un)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-a,g=o-s,m=l*l+c*c,h=v*v+g*g,b=Math.sqrt(m),x=Math.sqrt(p),w=i*Math.tan((jd-Math.acos((m+p-h)/(2*b*x)))/2),S=w/x,E=w/b;Math.abs(S-1)>un&&this._append`L${t+S*u},${r+S*d}`,this._append`A${i},${i},0,0,${+(d*v>u*g)},${this._x1=t+E*l},${this._y1=r+E*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,d=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>un||Math.abs(this._y1-u)>un)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%Md+Md),p>C2?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:p>un&&this._append`A${n},${n},0,${+(p>=jd)},${d},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function dp(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new _2(t)}function fp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZS(e){this._context=e}ZS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gl(e){return new ZS(e)}function JS(e){return e[0]}function QS(e){return e[1]}function eP(e,t){var r=we(!0),n=null,o=gl,i=null,a=dp(s);e=typeof e=="function"?e:e===void 0?JS:we(e),t=typeof t=="function"?t:t===void 0?QS:we(t);function s(l){var c,u=(l=fp(l)).length,d,p=!1,v;for(n==null&&(i=o(v=a())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,c,l),+t(d,c,l));if(v)return i=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:we(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:we(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:we(!!l),s):r},s.curve=function(l){return arguments.length?(o=l,n!=null&&(i=o(n)),s):o},s.context=function(l){return arguments.length?(l==null?n=i=null:i=o(n=l),s):n},s}function ma(e,t,r){var n=null,o=we(!0),i=null,a=gl,s=null,l=dp(c);e=typeof e=="function"?e:e===void 0?JS:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?QS:we(+r);function c(d){var p,v,g,m=(d=fp(d)).length,h,b=!1,x,w=new Array(m),S=new Array(m);for(i==null&&(s=a(x=l())),p=0;p<=m;++p){if(!(p<m&&o(h=d[p],p,d))===b)if(b=!b)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=v;--g)s.point(w[g],S[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(h,p,d),S[p]=+t(h,p,d),s.point(n?+n(h,p,d):w[p],r?+r(h,p,d):S[p]))}if(x)return s=null,x+""||null}function u(){return eP().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:we(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:we(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:we(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class tP{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function T2(e){return new tP(e,!0)}function j2(e){return new tP(e,!1)}const pp={draw(e,t){const r=Gt(t/rs);e.moveTo(r,0),e.arc(0,0,r,0,hl)}},M2={draw(e,t){const r=Gt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},rP=Gt(1/3),N2=rP*2,I2={draw(e,t){const r=Gt(t/N2),n=r*rP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},k2={draw(e,t){const r=Gt(t),n=-r/2;e.rect(n,n,r,r)}},R2=.8908130915292852,nP=ts(rs/10)/ts(7*rs/10),D2=ts(hl/10)*nP,$2=-YS(hl/10)*nP,L2={draw(e,t){const r=Gt(t*R2),n=D2*r,o=$2*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=hl*i/5,s=YS(a),l=ts(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},zc=Gt(3),F2={draw(e,t){const r=-Gt(t/(zc*3));e.moveTo(0,r*2),e.lineTo(-zc*r,-r),e.lineTo(zc*r,-r),e.closePath()}},Tt=-.5,jt=Gt(3)/2,Nd=1/Gt(12),z2=(Nd/2+1)*3,B2={draw(e,t){const r=Gt(t/z2),n=r/2,o=r*Nd,i=n,a=r*Nd+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Tt*n-jt*o,jt*n+Tt*o),e.lineTo(Tt*i-jt*a,jt*i+Tt*a),e.lineTo(Tt*s-jt*l,jt*s+Tt*l),e.lineTo(Tt*n+jt*o,Tt*o-jt*n),e.lineTo(Tt*i+jt*a,Tt*a-jt*i),e.lineTo(Tt*s+jt*l,Tt*l-jt*s),e.closePath()}};function V2(e,t){let r=null,n=dp(o);e=typeof e=="function"?e:we(e||pp),t=typeof t=="function"?t:we(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:we(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:we(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function ns(){}function os(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function oP(e){this._context=e}oP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:os(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function W2(e){return new oP(e)}function iP(e){this._context=e}iP.prototype={areaStart:ns,areaEnd:ns,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function K2(e){return new iP(e)}function aP(e){this._context=e}aP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function U2(e){return new aP(e)}function sP(e){this._context=e}sP.prototype={areaStart:ns,areaEnd:ns,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function H2(e){return new sP(e)}function wh(e){return e<0?-1:1}function Sh(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(wh(i)+wh(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Ph(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Bc(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function is(e){this._context=e}is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Bc(this,this._t0,Ph(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Bc(this,Ph(this,r=Sh(this,e,t)),r);break;default:Bc(this,this._t0,r=Sh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lP(e){this._context=new cP(e)}(lP.prototype=Object.create(is.prototype)).point=function(e,t){is.prototype.point.call(this,t,e)};function cP(e){this._context=e}cP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function G2(e){return new is(e)}function q2(e){return new lP(e)}function uP(e){this._context=e}uP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Eh(e),o=Eh(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Eh(e){var t,r=e.length-1,n,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Y2(e){return new uP(e)}function yl(e,t){this._context=e,this._t=t}yl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function X2(e){return new yl(e,.5)}function Z2(e){return new yl(e,0)}function J2(e){return new yl(e,1)}function On(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r<a;++r)for(o=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function Id(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Q2(e,t){return e[t]}function e$(e){const t=[];return t.key=e,t}function t$(){var e=we([]),t=Id,r=On,n=Q2;function o(i){var a=Array.from(e.apply(this,arguments),e$),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+n(d,a[s].key,c,i)]).data=d;for(s=0,u=fp(t(a));s<l;++s)a[u[s]].index=s;return r(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:we(Array.from(i)),o):e},o.value=function(i){return arguments.length?(n=typeof i=="function"?i:we(+i),o):n},o.order=function(i){return arguments.length?(t=i==null?Id:typeof i=="function"?i:we(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??On,o):r},o}function r$(e,t){if((n=e.length)>0){for(var r,n,o=0,i=e[0].length,a;o<i;++o){for(a=r=0;r<n;++r)a+=e[r][o][1]||0;if(a)for(r=0;r<n;++r)e[r][o][1]/=a}On(e,t)}}function n$(e,t){if((o=e.length)>0){for(var r=0,n=e[t[0]],o,i=n.length;r<i;++r){for(var a=0,s=0;a<o;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}On(e,t)}}function o$(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n<i;++n){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[n][1]||0,p=u[n-1][1]||0,v=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],h=m[n][1]||0,b=m[n-1][1]||0;v+=h-b}l+=d,c+=v*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,On(e,t)}}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc={},Wc={},Oh;function i$(){return Oh||(Oh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Wc)),Wc}var Kc={},Ch;function dP(){return Ch||(Ch=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Kc)),Kc}var Uc={},Ah;function vp(){return Ah||(Ah=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Uc)),Uc}var Hc={},Gc={},_h;function a$(){return _h||(_h=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(Gc)),Gc}var Th;function mp(){return Th||(Th=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a$(),r=vp();function n(o){if(Array.isArray(o))return o.map(r.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const i=[],a=o.length;if(a===0)return i;let s=0,l="",c="",u=!1;for(o.charCodeAt(0)===46&&(i.push(""),s++);s<a;){const d=o[s];c?d==="\\"&&s+1<a?(s++,l+=o[s]):d===c?c="":l+=d:u?d==='"'||d==="'"?c=d:d==="]"?(u=!1,i.push(l),l=""):l+=d:d==="["?(u=!0,l&&(i.push(l),l="")):d==="."?l&&(i.push(l),l=""):l+=d,s++}return l&&i.push(l),i}e.toPath=n})(Hc)),Hc}var jh;function hp(){return jh||(jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=i$(),r=dP(),n=vp(),o=mp();function i(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?r.isDeepKey(l)?i(s,o.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=i})(Vc)),Vc}var qc,Mh;function s$(){return Mh||(Mh=1,qc=hp().get),qc}var l$=s$();const Cn=Jr(l$);var c$=4;function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c$,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((o,i,a)=>{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Vr(s)+i:o+i},"")}var qe=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,An=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!or(e),ir=e=>q(e)||typeof e=="string",u$=0,ei=e=>{var t=++u$;return"".concat(e||"").concat(t)},at=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(An(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return or(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},fP=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Ae(e,t,r){return q(e)&&q(t)?Vr(e+r*(t-e)):t}function pP(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Cn(n,t))===r)}var Te=e=>e===null||typeof e>"u",Ei=e=>Te(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function yt(e){return e!=null}function Fn(){}var d$=["type","size","sizeType"];function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(null,arguments)}function Nh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ih(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){f$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f$(e,t,r){return(t=p$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p$(e){var t=v$(e,"string");return typeof t=="symbol"?t:t+""}function v$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m$(e,t){if(e==null)return{};var r,n,o=h$(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var vP={symbolCircle:pp,symbolCross:M2,symbolDiamond:I2,symbolSquare:k2,symbolStar:L2,symbolTriangle:F2,symbolWye:B2},g$=Math.PI/180,y$=e=>{var t="symbol".concat(Ei(e));return vP[t]||pp},b$=(e,t,r)=>{if(t==="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 n=18*g$;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**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}},x$=(e,t)=>{vP["symbol".concat(Ei(e))]=t},gp=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=m$(e,d$),i=Ih(Ih({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=y$(a),v=V2().type(p).size(b$(r,n,a)),g=v();if(g!==null)return g},{className:l,cx:c,cy:u}=i,d=mt(i);return q(c)&&q(u)&&q(r)?f.createElement("path",kd({},d,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};gp.registerSymbol=x$;var mP=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,yp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(A.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{cp(o)&&(n[o]=(i=>r[o](r,i)))}),n},w$=(e,t,r)=>n=>(e(t,r,n),null),Oi=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];cp(o)&&typeof i=="function"&&(n||(n={}),n[o]=w$(i,t,r))}),n};function kh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function S$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kh(Object(r),!0).forEach(function(n){P$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P$(e,t,r){return(t=E$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E$(e){var t=O$(e,"string");return typeof t=="symbol"?t:t+""}function O$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e,t){var r=S$({},e),n=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},as.apply(null,arguments)}function Rh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function C$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){A$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A$(e,t,r){return(t=_$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _$(e){var t=T$(e,"string");return typeof t=="symbol"?t:t+""}function T$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nt=32,j$={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function M$(e){var{data:t,iconType:r,inactiveColor:n}=e,o=Nt/2,i=Nt/6,a=Nt/3,s=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline"){var c;return f.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:(c=t.payload)===null||c===void 0?void 0:c.strokeDasharray,x1:0,y1:o,x2:Nt,y2:o,className:"recharts-legend-icon"})}if(l==="line")return f.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
|
|
51
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},r2=yS,n2=bS,o2=xS,i2=wS,a2=SS,s2=AS,l2=TS,c2=ES,u2=CS,d2=Symbol.for("react.lazy"),es=f[" use ".trim().toString()];function f2(e){return typeof e=="object"&&e!==null&&"then"in e}function jS(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===d2&&"_payload"in e&&f2(e._payload)}function NS(e){const t=p2(e),r=f.forwardRef((n,o)=>{let{children:i,...a}=n;jS(i)&&typeof es=="function"&&(i=es(i._payload));const s=f.Children.toArray(i),l=s.find(m2);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var Ee=NS("Slot");function p2(e){const t=f.forwardRef((r,n)=>{let{children:o,...i}=r;if(jS(o)&&typeof es=="function"&&(o=es(o._payload)),f.isValidElement(o)){const a=g2(o),s=h2(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var v2=Symbol("radix.slottable");function m2(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===v2}function h2(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function g2(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const ml=te("text-body focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-sunflower text-primary hover:bg-sunflower-hover active:bg-sunflower-hover",secondary:"border-border bg-border text-primary active:bg-alt border hover:bg-white",ghost:"text-primary hover:bg-alt active:bg-contrast"},size:{sm:"rounded-pill text-small px-5 py-1",default:"rounded-pill text-small px-8 py-1.5",lg:"rounded-pill text-body px-12 py-2",icon:"h-10 w-10 rounded-full"}},defaultVariants:{variant:"primary",size:"default"}}),MS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"button";return y.jsx(a,{className:D(ml({variant:t,size:r,className:e})),ref:i,...o})});MS.displayName="Button";const y2=r2,b2=n2,IS=o2,lp=f.forwardRef(({className:e,...t},r)=>y.jsx(i2,{ref:r,className:D("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));lp.displayName="AlertDialogOverlay";const kS=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]"}},defaultVariants:{size:"default"}}),RS=f.forwardRef(({className:e,size:t,...r},n)=>y.jsxs(IS,{children:[y.jsx(lp,{}),y.jsx(a2,{ref:n,className:D(kS({size:t}),e),...r})]}));RS.displayName="AlertDialogContent";const DS=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-2 text-center sm:text-left",e),...t}));DS.displayName="AlertDialogHeader";const $S=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));$S.displayName="AlertDialogFooter";const LS=f.forwardRef(({className:e,...t},r)=>y.jsx(c2,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));LS.displayName="AlertDialogTitle";const zS=f.forwardRef(({className:e,...t},r)=>y.jsx(u2,{ref:r,className:D("text-secondary text-sm",e),...t}));zS.displayName="AlertDialogDescription";const FS=f.forwardRef(({className:e,variant:t="primary",size:r="default",...n},o)=>y.jsx(s2,{ref:o,className:D(ml({variant:t,size:r}),e),...n}));FS.displayName="AlertDialogAction";const BS=f.forwardRef(({className:e,variant:t="secondary",size:r="default",...n},o)=>y.jsx(l2,{ref:o,className:D(ml({variant:t,size:r}),"mt-2 sm:mt-0",e),...n}));BS.displayName="AlertDialogCancel";const VS=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{sunflower:"bg-sunflower text-primary","lemon-meringue":"bg-lemon-meringue text-primary border-tertiary border",vanilla:"bg-vanilla text-primary border-tertiary border",eggshell:"bg-eggshell text-primary border-tertiary border","warm-purple":"bg-warm-purple text-white","cool-purple":"bg-cool-purple text-white","electric-blue":"bg-electric-blue text-white","deep-blue":"bg-deep-blue text-white",error:"bg-error text-white",secondary:"border-border bg-alt text-secondary border"},size:{sm:"rounded-pill px-2 py-0.5 text-xs",md:"rounded-pill px-2.5 py-1 text-xs",lg:"rounded-pill text-body px-3.5 py-1 text-sm",xl:"rounded-pill text-body px-4 py-1.5 text-xl"}},defaultVariants:{variant:"sunflower",size:"md"}}),WS=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(VS({variant:t,size:r,className:e})),ref:i,...o})});WS.displayName="Badge";const KS=te("text-small relative flex w-full items-center gap-3 px-4 py-3 font-sans transition-colors",{variants:{variant:{info:"bg-electric-blue text-white",success:"bg-sunflower text-primary",warning:"bg-lemon-meringue text-primary",error:"bg-error text-white",neutral:"bg-alt text-primary border-border border"},align:{left:"justify-start text-left",center:"justify-center text-center"}},defaultVariants:{variant:"info",align:"center"}}),US=f.forwardRef(({className:e,variant:t,align:r,asChild:n=!1,icon:o,action:i,onDismiss:a,children:s,...l},c)=>{const u=n?Ee:"div";return y.jsxs(u,{role:"alert",className:D(KS({variant:t,align:r,className:e})),ref:c,...l,children:[o&&y.jsx("span",{className:"shrink-0",children:o}),y.jsx("span",{className:"flex-1",children:s}),i&&y.jsx("span",{className:"shrink-0",children:i}),a&&y.jsx("button",{type:"button",onClick:a,className:"hover:bg-primary/10 focus-visible:ring-sunflower -mr-1 shrink-0 rounded p-1 transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","aria-label":"Dismiss banner",children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[y.jsx("path",{d:"M18 6 6 18"}),y.jsx("path",{d:"m6 6 12 12"})]})})]})});US.displayName="Banner";var x2=["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"];function cp(e){if(typeof e!="string")return!1;var t=x2;return t.includes(e)}var w2=["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"],S2=new Set(w2);function HS(e){return typeof e!="string"?!1:S2.has(e)}function GS(e){return typeof e=="string"&&e.startsWith("data-")}function At(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(HS(r)||GS(r))&&(t[r]=e[r]);return t}function En(e){if(e==null)return null;if(A.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return At(t)}return typeof e=="object"&&!Array.isArray(e)?At(e):null}function mt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(HS(r)||GS(r)||cp(r))&&(t[r]=e[r]);return t}function P2(e){return e==null?null:A.isValidElement(e)?mt(e.props):typeof e=="object"&&!Array.isArray(e)?mt(e):null}var E2=["children","width","height","viewBox","className","style","title","desc"];function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_d.apply(null,arguments)}function O2(e,t){if(e==null)return{};var r,n,o=C2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function C2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var up=A.forwardRef((e,t)=>{var{children:r,width:n,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=O2(e,E2),d=i||{width:n,height:o,x:0,y:0},p=de("recharts-surface",a);return f.createElement("svg",_d({},mt(u),{className:p,width:n,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),f.createElement("title",null,l),f.createElement("desc",null,c),r)}),A2=["children","className"];function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Td.apply(null,arguments)}function _2(e,t){if(e==null)return{};var r,n,o=T2(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function T2(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Xe=f.forwardRef((e,t)=>{var{children:r,className:n}=e,o=_2(e,A2),i=de("recharts-layer",n);return f.createElement("g",Td({className:i},mt(o),{ref:t}),r)}),qS=A.createContext(null),j2=()=>A.useContext(qS);function we(e){return function(){return e}}const YS=Math.cos,ts=Math.sin,Gt=Math.sqrt,rs=Math.PI,hl=2*rs,jd=Math.PI,Nd=2*jd,un=1e-6,N2=Nd-un;function XS(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function M2(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XS;const r=10**t;return function(n){this._+=n[0];for(let o=1,i=n.length;o<i;++o)this._+=Math.round(arguments[o]*r)/r+n[o]}}class I2{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XS:M2(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,o){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+o}`}bezierCurveTo(t,r,n,o,i,a){this._append`C${+t},${+r},${+n},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,r,n,o,i){if(t=+t,r=+r,n=+n,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=n-t,c=o-r,u=a-t,d=s-r,p=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>un)if(!(Math.abs(d*l-c*u)>un)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-a,g=o-s,m=l*l+c*c,h=v*v+g*g,b=Math.sqrt(m),x=Math.sqrt(p),w=i*Math.tan((jd-Math.acos((m+p-h)/(2*b*x)))/2),S=w/x,E=w/b;Math.abs(S-1)>un&&this._append`L${t+S*u},${r+S*d}`,this._append`A${i},${i},0,0,${+(d*v>u*g)},${this._x1=t+E*l},${this._y1=r+E*c}`}}arc(t,r,n,o,i,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(o),l=n*Math.sin(o),c=t+s,u=r+l,d=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>un||Math.abs(this._y1-u)>un)&&this._append`L${c},${u}`,n&&(p<0&&(p=p%Nd+Nd),p>N2?this._append`A${n},${n},0,1,${d},${t-s},${r-l}A${n},${n},0,1,${d},${this._x1=c},${this._y1=u}`:p>un&&this._append`A${n},${n},0,${+(p>=jd)},${d},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+o}h${-n}Z`}toString(){return this._}}function dp(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new I2(t)}function fp(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ZS(e){this._context=e}ZS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function gl(e){return new ZS(e)}function JS(e){return e[0]}function QS(e){return e[1]}function eP(e,t){var r=we(!0),n=null,o=gl,i=null,a=dp(s);e=typeof e=="function"?e:e===void 0?JS:we(e),t=typeof t=="function"?t:t===void 0?QS:we(t);function s(l){var c,u=(l=fp(l)).length,d,p=!1,v;for(n==null&&(i=o(v=a())),c=0;c<=u;++c)!(c<u&&r(d=l[c],c,l))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,c,l),+t(d,c,l));if(v)return i=null,v+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:we(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:we(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:we(!!l),s):r},s.curve=function(l){return arguments.length?(o=l,n!=null&&(i=o(n)),s):o},s.context=function(l){return arguments.length?(l==null?n=i=null:i=o(n=l),s):n},s}function ma(e,t,r){var n=null,o=we(!0),i=null,a=gl,s=null,l=dp(c);e=typeof e=="function"?e:e===void 0?JS:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?QS:we(+r);function c(d){var p,v,g,m=(d=fp(d)).length,h,b=!1,x,w=new Array(m),S=new Array(m);for(i==null&&(s=a(x=l())),p=0;p<=m;++p){if(!(p<m&&o(h=d[p],p,d))===b)if(b=!b)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=p-1;g>=v;--g)s.point(w[g],S[g]);s.lineEnd(),s.areaEnd()}b&&(w[p]=+e(h,p,d),S[p]=+t(h,p,d),s.point(n?+n(h,p,d):w[p],r?+r(h,p,d):S[p]))}if(x)return s=null,x+""||null}function u(){return eP().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),n=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:we(+d),c):e},c.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:we(+d),c):n},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),r=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:we(+d),c):t},c.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:we(+d),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:we(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class tP{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function k2(e){return new tP(e,!0)}function R2(e){return new tP(e,!1)}const pp={draw(e,t){const r=Gt(t/rs);e.moveTo(r,0),e.arc(0,0,r,0,hl)}},D2={draw(e,t){const r=Gt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},rP=Gt(1/3),$2=rP*2,L2={draw(e,t){const r=Gt(t/$2),n=r*rP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},z2={draw(e,t){const r=Gt(t),n=-r/2;e.rect(n,n,r,r)}},F2=.8908130915292852,nP=ts(rs/10)/ts(7*rs/10),B2=ts(hl/10)*nP,V2=-YS(hl/10)*nP,W2={draw(e,t){const r=Gt(t*F2),n=B2*r,o=V2*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const a=hl*i/5,s=YS(a),l=ts(a);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*o,l*n+s*o)}e.closePath()}},Fc=Gt(3),K2={draw(e,t){const r=-Gt(t/(Fc*3));e.moveTo(0,r*2),e.lineTo(-Fc*r,-r),e.lineTo(Fc*r,-r),e.closePath()}},Tt=-.5,jt=Gt(3)/2,Md=1/Gt(12),U2=(Md/2+1)*3,H2={draw(e,t){const r=Gt(t/U2),n=r/2,o=r*Md,i=n,a=r*Md+r,s=-i,l=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Tt*n-jt*o,jt*n+Tt*o),e.lineTo(Tt*i-jt*a,jt*i+Tt*a),e.lineTo(Tt*s-jt*l,jt*s+Tt*l),e.lineTo(Tt*n+jt*o,Tt*o-jt*n),e.lineTo(Tt*i+jt*a,Tt*a-jt*i),e.lineTo(Tt*s+jt*l,Tt*l-jt*s),e.closePath()}};function G2(e,t){let r=null,n=dp(o);e=typeof e=="function"?e:we(e||pp),t=typeof t=="function"?t:we(t===void 0?64:+t);function o(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:we(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:we(+i),o):t},o.context=function(i){return arguments.length?(r=i??null,o):r},o}function ns(){}function os(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function oP(e){this._context=e}oP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:os(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function q2(e){return new oP(e)}function iP(e){this._context=e}iP.prototype={areaStart:ns,areaEnd:ns,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Y2(e){return new iP(e)}function aP(e){this._context=e}aP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:os(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X2(e){return new aP(e)}function sP(e){this._context=e}sP.prototype={areaStart:ns,areaEnd:ns,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Z2(e){return new sP(e)}function wh(e){return e<0?-1:1}function Sh(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),s=(i*o+a*n)/(n+o);return(wh(i)+wh(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Ph(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Bc(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,o+s*t,i-s,a-s*r,i,a)}function is(e){this._context=e}is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Bc(this,this._t0,Ph(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Bc(this,Ph(this,r=Sh(this,e,t)),r);break;default:Bc(this,this._t0,r=Sh(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function lP(e){this._context=new cP(e)}(lP.prototype=Object.create(is.prototype)).point=function(e,t){is.prototype.point.call(this,t,e)};function cP(e){this._context=e}cP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}};function J2(e){return new is(e)}function Q2(e){return new lP(e)}function uP(e){this._context=e}uP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Eh(e),o=Eh(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Eh(e){var t,r=e.length-1,n,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function e$(e){return new uP(e)}function yl(e,t){this._context=e,this._t=t}yl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function t$(e){return new yl(e,.5)}function r$(e){return new yl(e,0)}function n$(e){return new yl(e,1)}function On(e,t){if((a=e.length)>1)for(var r=1,n,o,i=e[t[0]],a,s=i.length;r<a;++r)for(o=i,i=e[t[r]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(o[n][1])?o[n][0]:o[n][1]}function Id(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function o$(e,t){return e[t]}function i$(e){const t=[];return t.key=e,t}function a$(){var e=we([]),t=Id,r=On,n=o$;function o(i){var a=Array.from(e.apply(this,arguments),i$),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+n(d,a[s].key,c,i)]).data=d;for(s=0,u=fp(t(a));s<l;++s)a[u[s]].index=s;return r(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:we(Array.from(i)),o):e},o.value=function(i){return arguments.length?(n=typeof i=="function"?i:we(+i),o):n},o.order=function(i){return arguments.length?(t=i==null?Id:typeof i=="function"?i:we(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(r=i??On,o):r},o}function s$(e,t){if((n=e.length)>0){for(var r,n,o=0,i=e[0].length,a;o<i;++o){for(a=r=0;r<n;++r)a+=e[r][o][1]||0;if(a)for(r=0;r<n;++r)e[r][o][1]/=a}On(e,t)}}function l$(e,t){if((o=e.length)>0){for(var r=0,n=e[t[0]],o,i=n.length;r<i;++r){for(var a=0,s=0;a<o;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}On(e,t)}}function c$(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var r=0,n=1,o,i,a;n<i;++n){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[n][1]||0,p=u[n-1][1]||0,v=(d-p)/2,g=0;g<s;++g){var m=e[t[g]],h=m[n][1]||0,b=m[n-1][1]||0;v+=h-b}l+=d,c+=v*d}o[n-1][1]+=o[n-1][0]=r,l&&(r-=c/l)}o[n-1][1]+=o[n-1][0]=r,On(e,t)}}function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc={},Wc={},Oh;function u$(){return Oh||(Oh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Wc)),Wc}var Kc={},Ch;function dP(){return Ch||(Ch=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Kc)),Kc}var Uc={},Ah;function vp(){return Ah||(Ah=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(Uc)),Uc}var Hc={},Gc={},_h;function d$(){return _h||(_h=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(Gc)),Gc}var Th;function mp(){return Th||(Th=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=d$(),r=vp();function n(o){if(Array.isArray(o))return o.map(r.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const i=[],a=o.length;if(a===0)return i;let s=0,l="",c="",u=!1;for(o.charCodeAt(0)===46&&(i.push(""),s++);s<a;){const d=o[s];c?d==="\\"&&s+1<a?(s++,l+=o[s]):d===c?c="":l+=d:u?d==='"'||d==="'"?c=d:d==="]"?(u=!1,i.push(l),l=""):l+=d:d==="["?(u=!0,l&&(i.push(l),l="")):d==="."?l&&(i.push(l),l=""):l+=d,s++}return l&&i.push(l),i}e.toPath=n})(Hc)),Hc}var jh;function hp(){return jh||(jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=u$(),r=dP(),n=vp(),o=mp();function i(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?r.isDeepKey(l)?i(s,o.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=i})(Vc)),Vc}var qc,Nh;function f$(){return Nh||(Nh=1,qc=hp().get),qc}var p$=f$();const Cn=Jr(p$);var v$=4;function Vr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v$,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Me(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((o,i,a)=>{var s=r[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Vr(s)+i:o+i},"")}var qe=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,An=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,q=e=>(typeof e=="number"||e instanceof Number)&&!or(e),ir=e=>q(e)||typeof e=="string",m$=0,ei=e=>{var t=++m$;return"".concat(e||"").concat(t)},at=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&typeof t!="string")return n;var i;if(An(t)){if(r==null)return n;var a=t.indexOf("%");i=r*parseFloat(t.slice(0,a))/100}else i=+t;return or(i)&&(i=n),o&&r!=null&&i>r&&(i=r),i},fP=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function Ae(e,t,r){return q(e)&&q(t)?Vr(e+r*(t-e)):t}function pP(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Cn(n,t))===r)}var Te=e=>e===null||typeof e>"u",Ei=e=>Te(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function yt(e){return e!=null}function zn(){}var h$=["type","size","sizeType"];function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(null,arguments)}function Mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ih(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mh(Object(r),!0).forEach(function(n){g$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g$(e,t,r){return(t=y$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y$(e){var t=b$(e,"string");return typeof t=="symbol"?t:t+""}function b$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x$(e,t){if(e==null)return{};var r,n,o=w$(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function w$(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var vP={symbolCircle:pp,symbolCross:D2,symbolDiamond:L2,symbolSquare:z2,symbolStar:W2,symbolTriangle:K2,symbolWye:H2},S$=Math.PI/180,P$=e=>{var t="symbol".concat(Ei(e));return vP[t]||pp},E$=(e,t,r)=>{if(t==="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 n=18*S$;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**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}},O$=(e,t)=>{vP["symbol".concat(Ei(e))]=t},gp=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,o=x$(e,h$),i=Ih(Ih({},o),{},{type:t,size:r,sizeType:n}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var p=P$(a),v=G2().type(p).size(E$(r,n,a)),g=v();if(g!==null)return g},{className:l,cx:c,cy:u}=i,d=mt(i);return q(c)&&q(u)&&q(r)?f.createElement("path",kd({},d,{className:de("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};gp.registerSymbol=O$;var mP=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,yp=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(A.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(o=>{cp(o)&&(n[o]=(i=>r[o](r,i)))}),n},C$=(e,t,r)=>n=>(e(t,r,n),null),Oi=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(o=>{var i=e[o];cp(o)&&typeof i=="function"&&(n||(n={}),n[o]=C$(i,t,r))}),n};function kh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function A$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kh(Object(r),!0).forEach(function(n){_$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _$(e,t,r){return(t=T$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T$(e){var t=j$(e,"string");return typeof t=="symbol"?t:t+""}function j$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Le(e,t){var r=A$({},e),n=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&n[s]!==void 0&&(a[s]=n[s]),a),r);return i}function as(){return as=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},as.apply(null,arguments)}function Rh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rh(Object(r),!0).forEach(function(n){M$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M$(e,t,r){return(t=I$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I$(e){var t=k$(e,"string");return typeof t=="symbol"?t:t+""}function k$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mt=32,R$={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function D$(e){var{data:t,iconType:r,inactiveColor:n}=e,o=Mt/2,i=Mt/6,a=Mt/3,s=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline"){var c;return f.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:(c=t.payload)===null||c===void 0?void 0:c.strokeDasharray,x1:0,y1:o,x2:Mt,y2:o,className:"recharts-legend-icon"})}if(l==="line")return f.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
|
|
52
52
|
A`).concat(i,",").concat(i,",0,1,1,").concat(2*a,",").concat(o,`
|
|
53
|
-
H`).concat(
|
|
54
|
-
A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return f.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Nt/8,"h").concat(Nt,"v").concat(Nt*3/4,"h").concat(-Nt,"z"),className:"recharts-legend-icon"});if(f.isValidElement(t.legendIcon)){var u=C$({},t);return delete u.legendIcon,f.cloneElement(t.legendIcon,u)}return f.createElement(gp,{fill:s,cx:o,cy:o,size:Nt,sizeType:"diameter",type:l})}function N$(e){var{payload:t,iconSize:r,layout:n,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:Nt,height:Nt},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var p=u.formatter||o,v=de({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var g=u.inactive?i:u.color,m=p?p(u.value,u,d):u.value;return f.createElement("li",as({className:v,style:l,key:"legend-item-".concat(d)},Oi(e,u,d)),f.createElement(up,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},f.createElement(M$,{data:u,iconType:a,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m))})}var I$=e=>{var t=Le(e,j$),{payload:r,layout:n,align:o}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?o:"left"};return f.createElement("ul",{className:"recharts-default-legend",style:i},f.createElement(N$,as({},t,{payload:r})))},Yc={},Xc={},Dh;function k$(){return Dh||(Dh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const o=new Map;for(let i=0;i<r.length;i++){const a=r[i],s=n(a,i,r);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t})(Xc)),Xc}var Zc={},$h;function R$(){return $h||($h=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...o){return r.apply(this,o.slice(0,n))}}e.ary=t})(Zc)),Zc}var Jc={},Lh;function hP(){return Lh||(Lh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Jc)),Jc}var Qc={},eu={},tu={},Fh;function D$(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(tu)),tu}var zh;function bp(){return zh||(zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=D$();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(eu)),eu}var ru={},Bh;function $$(){return Bh||(Bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(ru)),ru}var Vh;function L$(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bp(),r=$$();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(Qc)),Qc}var nu={},ou={},Wh;function F$(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hp();function r(n){return function(o){return t.get(o,n)}}e.property=r})(ou)),ou}var iu={},au={},su={},lu={},Kh;function gP(){return Kh||(Kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(lu)),lu}var cu={},Uh;function yP(){return Uh||(Uh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(cu)),cu}var uu={},Hh;function bP(){return Hh||(Hh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(uu)),uu}var Gh;function z$(){return Gh||(Gh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gP(),r=yP(),n=bP();function o(u,d,p){return typeof p!="function"?o(u,d,()=>{}):i(u,d,function v(g,m,h,b,x,w){const S=p(g,m,h,b,x,w);return S!==void 0?!!S:i(g,m,v,w)},new Map)}function i(u,d,p,v){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,p,v);case"function":return Object.keys(d).length>0?i(u,{...d},p,v):n.isEqualsSameValueZero(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:n.isEqualsSameValueZero(u,d)}}function a(u,d,p,v){if(d==null)return!0;if(Array.isArray(d))return l(u,d,p,v);if(d instanceof Map)return s(u,d,p,v);if(d instanceof Set)return c(u,d,p,v);const g=Object.keys(d);if(u==null||r.isPrimitive(u))return g.length===0;if(g.length===0)return!0;if(v?.has(d))return v.get(d)===u;v?.set(d,u);try{for(let m=0;m<g.length;m++){const h=g[m];if(!r.isPrimitive(u)&&!(h in u)||d[h]===void 0&&u[h]!==void 0||d[h]===null&&u[h]!==null||!p(u[h],d[h],h,u,d,v))return!1}return!0}finally{v?.delete(d)}}function s(u,d,p,v){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[g,m]of d.entries()){const h=u.get(g);if(p(h,m,g,u,d,v)===!1)return!1}return!0}function l(u,d,p,v){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const g=new Set;for(let m=0;m<d.length;m++){const h=d[m];let b=!1;for(let x=0;x<u.length;x++){if(g.has(x))continue;const w=u[x];let S=!1;if(p(w,h,m,u,d,v)&&(S=!0),S){g.add(x),b=!0;break}}if(!b)return!1}return!0}function c(u,d,p,v){return d.size===0?!0:u instanceof Set?l([...u],[...d],p,v):!1}e.isMatchWith=o,e.isSetMatch=c})(su)),su}var qh;function xP(){return qh||(qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z$();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(au)),au}var du={},fu={},pu={},Yh;function B$(){return Yh||(Yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(pu)),pu}var vu={},Xh;function xp(){return Xh||(Xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(vu)),vu}var mu={},Zh;function wP(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",v="[object Object]",g="[object Error]",m="[object DataView]",h="[object Uint8Array]",b="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",S="[object BigUint64Array]",E="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",C="[object BigInt64Array]",M="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=M,e.float64ArrayTag=$,e.functionTag=d,e.int16ArrayTag=P,e.int32ArrayTag=O,e.int8ArrayTag=E,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=x,e.uint32ArrayTag=w,e.uint8ArrayTag=h,e.uint8ClampedArrayTag=b})(mu)),mu}var hu={},Jh;function V$(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(hu)),hu}var Qh;function SP(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=B$(),r=xp(),n=wP(),o=yP(),i=V$();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,v=new Map,g=void 0){const m=g?.(u,d,p,v);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(v.has(u))return v.get(u);if(Array.isArray(u)){const h=new Array(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return Object.hasOwn(u,"index")&&(h.index=u.index),Object.hasOwn(u,"input")&&(h.input=u.input),h}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const h=new RegExp(u.source,u.flags);return h.lastIndex=u.lastIndex,h}if(u instanceof Map){const h=new Map;v.set(u,h);for(const[b,x]of u)h.set(b,s(x,b,p,v,g));return h}if(u instanceof Set){const h=new Set;v.set(u,h);for(const b of u)h.add(s(b,void 0,p,v,g));return h}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const h=new(Object.getPrototypeOf(u)).constructor(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return h}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const h=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return v.set(u,h),l(h,u,p,v,g),h}if(typeof File<"u"&&u instanceof File){const h=new File([u],u.name,{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(typeof Blob<"u"&&u instanceof Blob){const h=new Blob([u],{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Error){const h=new u.constructor;return v.set(u,h),h.message=u.message,h.name=u.name,h.stack=u.stack,h.cause=u.cause,l(h,u,p,v,g),h}if(u instanceof Boolean){const h=new Boolean(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Number){const h=new Number(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof String){const h=new String(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(typeof u=="object"&&c(u)){const h=Object.create(Object.getPrototypeOf(u));return v.set(u,h),l(h,u,p,v,g),h}return u}function l(u,d,p=u,v,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let h=0;h<m.length;h++){const b=m[h],x=Object.getOwnPropertyDescriptor(u,b);(x==null||x.writable)&&(u[b]=s(d[b],b,p,v,g))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(fu)),fu}var eg;function W$(){return eg||(eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SP();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(du)),du}var tg;function K$(){return tg||(tg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP(),r=W$();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(iu)),iu}var gu={},yu={},bu={},rg;function U$(){return rg||(rg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SP(),r=xp(),n=wP();function o(i,a){return t.cloneDeepWith(i,(s,l,c,u)=>{const d=a?.(s,l,c,u);if(d!==void 0)return d;if(typeof i=="object"){if(r.getTag(i)===n.objectTag&&typeof i.constructor!="function"){const p={};return u.set(i,p),t.copyProperties(p,i,c,u),p}switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}}})}e.cloneDeepWith=o})(bu)),bu}var ng;function H$(){return ng||(ng=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U$();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(yu)),yu}var xu={},wu={},og;function PP(){return og||(og=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,o=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<o;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(wu)),wu}var Su={},ig;function G$(){return ig||(ig=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xp();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(Su)),Su}var ag;function q$(){return ag||(ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dP(),r=PP(),n=G$(),o=mp();function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=o.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=i})(xu)),xu}var sg;function Y$(){return sg||(sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP(),r=vp(),n=H$(),o=hp(),i=q$();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=r.toKey(s);break}}return l=n.cloneDeep(l),function(c){const u=o.get(c,s);return u===void 0?i.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(gu)),gu}var lg;function X$(){return lg||(lg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hP(),r=F$(),n=K$(),o=Y$();function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):n.matches(a);case"string":case"symbol":case"number":return r.property(a)}}e.iteratee=i})(nu)),nu}var cg;function Z$(){return cg||(cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k$(),r=R$(),n=hP(),o=L$(),i=X$();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Yc)),Yc}var Pu,ug;function J$(){return ug||(ug=1,Pu=Z$().uniqBy),Pu}var Q$=J$();const dg=Jr(Q$);function EP(e,t,r){return t===!0?dg(e,r):typeof t=="function"?dg(e,t):e}var ha={exports:{}},Eu={},ga={exports:{}},Ou={};var fg;function eL(){if(fg)return Ou;fg=1;var e=A;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var v=p(),g=n({inst:{value:v,getSnapshot:p}}),m=g[0].inst,h=g[1];return i(function(){m.value=v,m.getSnapshot=p,l(m)&&h({inst:m})},[d,v,p]),o(function(){return l(m)&&h({inst:m}),d(function(){l(m)&&h({inst:m})})},[d]),a(v),v}function l(d){var p=d.getSnapshot;d=d.value;try{var v=p();return!r(d,v)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Ou.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Ou}var Cu={};var pg;function tL(){return pg||(pg=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){u||o.startTransition===void 0||(u=!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 m=g();if(!d){var h=g();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=a({inst:{value:m,getSnapshot:g}});var b=h[0].inst,x=h[1];return l(function(){b.value=m,b.getSnapshot=g,r(b)&&x({inst:b})},[v,m,g]),s(function(){return r(b)&&x({inst:b}),v(function(){r(b)&&x({inst:b})})},[v]),c(m),m}function r(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!i(v,m)}catch{return!0}}function n(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=A,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Cu.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cu}var vg;function OP(){return vg||(vg=1,process.env.NODE_ENV==="production"?ga.exports=eL():ga.exports=tL()),ga.exports}var mg;function rL(){if(mg)return Eu;mg=1;var e=A,t=OP();function r(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Eu.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},Eu}var Au={};var hg;function nL(){return hg||(hg=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=OP(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Au.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Au}var gg;function oL(){return gg||(gg=1,process.env.NODE_ENV==="production"?ha.exports=rL():ha.exports=nL()),ha.exports}var iL=oL(),wp=A.createContext(null),aL=e=>e,Se=()=>{var e=A.useContext(wp);return e?e.store.dispatch:aL},Ka=()=>{},sL=()=>Ka,lL=(e,t)=>e===t;function J(e){var t=A.useContext(wp),r=A.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ka,[t,e]);return iL.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:sL,t?t.store.getState:Ka,t?t.store.getState:Ka,r,lL)}var cL=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
53
|
+
H`).concat(Mt,"M").concat(2*a,",").concat(o,`
|
|
54
|
+
A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return f.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Mt/8,"h").concat(Mt,"v").concat(Mt*3/4,"h").concat(-Mt,"z"),className:"recharts-legend-icon"});if(f.isValidElement(t.legendIcon)){var u=N$({},t);return delete u.legendIcon,f.cloneElement(t.legendIcon,u)}return f.createElement(gp,{fill:s,cx:o,cy:o,size:Mt,sizeType:"diameter",type:l})}function $$(e){var{payload:t,iconSize:r,layout:n,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:Mt,height:Mt},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var p=u.formatter||o,v=de({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var g=u.inactive?i:u.color,m=p?p(u.value,u,d):u.value;return f.createElement("li",as({className:v,style:l,key:"legend-item-".concat(d)},Oi(e,u,d)),f.createElement(up,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},f.createElement(D$,{data:u,iconType:a,inactiveColor:i})),f.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m))})}var L$=e=>{var t=Le(e,R$),{payload:r,layout:n,align:o}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?o:"left"};return f.createElement("ul",{className:"recharts-default-legend",style:i},f.createElement($$,as({},t,{payload:r})))},Yc={},Xc={},Dh;function z$(){return Dh||(Dh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const o=new Map;for(let i=0;i<r.length;i++){const a=r[i],s=n(a,i,r);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t})(Xc)),Xc}var Zc={},$h;function F$(){return $h||($h=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return function(...o){return r.apply(this,o.slice(0,n))}}e.ary=t})(Zc)),Zc}var Jc={},Lh;function hP(){return Lh||(Lh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(Jc)),Jc}var Qc={},eu={},tu={},zh;function B$(){return zh||(zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(tu)),tu}var Fh;function bp(){return Fh||(Fh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=B$();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(eu)),eu}var ru={},Bh;function V$(){return Bh||(Bh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(ru)),ru}var Vh;function W$(){return Vh||(Vh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bp(),r=V$();function n(o){return r.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=n})(Qc)),Qc}var nu={},ou={},Wh;function K$(){return Wh||(Wh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hp();function r(n){return function(o){return t.get(o,n)}}e.property=r})(ou)),ou}var iu={},au={},su={},lu={},Kh;function gP(){return Kh||(Kh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(lu)),lu}var cu={},Uh;function yP(){return Uh||(Uh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(cu)),cu}var uu={},Hh;function bP(){return Hh||(Hh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.isEqualsSameValueZero=t})(uu)),uu}var Gh;function U$(){return Gh||(Gh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gP(),r=yP(),n=bP();function o(u,d,p){return typeof p!="function"?o(u,d,()=>{}):i(u,d,function v(g,m,h,b,x,w){const S=p(g,m,h,b,x,w);return S!==void 0?!!S:i(g,m,v,w)},new Map)}function i(u,d,p,v){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,p,v);case"function":return Object.keys(d).length>0?i(u,{...d},p,v):n.isEqualsSameValueZero(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:n.isEqualsSameValueZero(u,d)}}function a(u,d,p,v){if(d==null)return!0;if(Array.isArray(d))return l(u,d,p,v);if(d instanceof Map)return s(u,d,p,v);if(d instanceof Set)return c(u,d,p,v);const g=Object.keys(d);if(u==null||r.isPrimitive(u))return g.length===0;if(g.length===0)return!0;if(v?.has(d))return v.get(d)===u;v?.set(d,u);try{for(let m=0;m<g.length;m++){const h=g[m];if(!r.isPrimitive(u)&&!(h in u)||d[h]===void 0&&u[h]!==void 0||d[h]===null&&u[h]!==null||!p(u[h],d[h],h,u,d,v))return!1}return!0}finally{v?.delete(d)}}function s(u,d,p,v){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[g,m]of d.entries()){const h=u.get(g);if(p(h,m,g,u,d,v)===!1)return!1}return!0}function l(u,d,p,v){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const g=new Set;for(let m=0;m<d.length;m++){const h=d[m];let b=!1;for(let x=0;x<u.length;x++){if(g.has(x))continue;const w=u[x];let S=!1;if(p(w,h,m,u,d,v)&&(S=!0),S){g.add(x),b=!0;break}}if(!b)return!1}return!0}function c(u,d,p,v){return d.size===0?!0:u instanceof Set?l([...u],[...d],p,v):!1}e.isMatchWith=o,e.isSetMatch=c})(su)),su}var qh;function xP(){return qh||(qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U$();function r(n,o){return t.isMatchWith(n,o,()=>{})}e.isMatch=r})(au)),au}var du={},fu={},pu={},Yh;function H$(){return Yh||(Yh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(pu)),pu}var vu={},Xh;function xp(){return Xh||(Xh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(vu)),vu}var mu={},Zh;function wP(){return Zh||(Zh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",p="[object ArrayBuffer]",v="[object Object]",g="[object Error]",m="[object DataView]",h="[object Uint8Array]",b="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",S="[object BigUint64Array]",E="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",C="[object BigInt64Array]",N="[object Float32Array]",$="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=p,e.arrayTag=u,e.bigInt64ArrayTag=C,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=g,e.float32ArrayTag=N,e.float64ArrayTag=$,e.functionTag=d,e.int16ArrayTag=P,e.int32ArrayTag=O,e.int8ArrayTag=E,e.mapTag=l,e.numberTag=n,e.objectTag=v,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=a,e.uint16ArrayTag=x,e.uint32ArrayTag=w,e.uint8ArrayTag=h,e.uint8ClampedArrayTag=b})(mu)),mu}var hu={},Jh;function G$(){return Jh||(Jh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(hu)),hu}var Qh;function SP(){return Qh||(Qh=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H$(),r=xp(),n=wP(),o=yP(),i=G$();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,p,v=new Map,g=void 0){const m=g?.(u,d,p,v);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(v.has(u))return v.get(u);if(Array.isArray(u)){const h=new Array(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return Object.hasOwn(u,"index")&&(h.index=u.index),Object.hasOwn(u,"input")&&(h.input=u.input),h}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const h=new RegExp(u.source,u.flags);return h.lastIndex=u.lastIndex,h}if(u instanceof Map){const h=new Map;v.set(u,h);for(const[b,x]of u)h.set(b,s(x,b,p,v,g));return h}if(u instanceof Set){const h=new Set;v.set(u,h);for(const b of u)h.add(s(b,void 0,p,v,g));return h}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const h=new(Object.getPrototypeOf(u)).constructor(u.length);v.set(u,h);for(let b=0;b<u.length;b++)h[b]=s(u[b],b,p,v,g);return h}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const h=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return v.set(u,h),l(h,u,p,v,g),h}if(typeof File<"u"&&u instanceof File){const h=new File([u],u.name,{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(typeof Blob<"u"&&u instanceof Blob){const h=new Blob([u],{type:u.type});return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Error){const h=new u.constructor;return v.set(u,h),h.message=u.message,h.name=u.name,h.stack=u.stack,h.cause=u.cause,l(h,u,p,v,g),h}if(u instanceof Boolean){const h=new Boolean(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof Number){const h=new Number(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(u instanceof String){const h=new String(u.valueOf());return v.set(u,h),l(h,u,p,v,g),h}if(typeof u=="object"&&c(u)){const h=Object.create(Object.getPrototypeOf(u));return v.set(u,h),l(h,u,p,v,g),h}return u}function l(u,d,p=u,v,g){const m=[...Object.keys(d),...t.getSymbols(d)];for(let h=0;h<m.length;h++){const b=m[h],x=Object.getOwnPropertyDescriptor(u,b);(x==null||x.writable)&&(u[b]=s(d[b],b,p,v,g))}}function c(u){switch(r.getTag(u)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(fu)),fu}var eg;function q$(){return eg||(eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SP();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(du)),du}var tg;function Y$(){return tg||(tg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP(),r=q$();function n(o){return o=r.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=n})(iu)),iu}var gu={},yu={},bu={},rg;function X$(){return rg||(rg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SP(),r=xp(),n=wP();function o(i,a){return t.cloneDeepWith(i,(s,l,c,u)=>{const d=a?.(s,l,c,u);if(d!==void 0)return d;if(typeof i=="object"){if(r.getTag(i)===n.objectTag&&typeof i.constructor!="function"){const p={};return u.set(i,p),t.copyProperties(p,i,c,u),p}switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}}})}e.cloneDeepWith=o})(bu)),bu}var ng;function Z$(){return ng||(ng=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=X$();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(yu)),yu}var xu={},wu={},og;function PP(){return og||(og=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,o=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<o;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(wu)),wu}var Su={},ig;function J$(){return ig||(ig=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xp();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(Su)),Su}var ag;function Q$(){return ag||(ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dP(),r=PP(),n=J$(),o=mp();function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&a?.[s]==null?l=o.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=i})(xu)),xu}var sg;function eL(){return sg||(sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xP(),r=vp(),n=Z$(),o=hp(),i=Q$();function a(s,l){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=r.toKey(s);break}}return l=n.cloneDeep(l),function(c){const u=o.get(c,s);return u===void 0?i.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(gu)),gu}var lg;function tL(){return lg||(lg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hP(),r=K$(),n=Y$(),o=eL();function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):n.matches(a);case"string":case"symbol":case"number":return r.property(a)}}e.iteratee=i})(nu)),nu}var cg;function rL(){return cg||(cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=z$(),r=F$(),n=hP(),o=W$(),i=tL();function a(s,l=n.identity){return o.isArrayLikeObject(s)?t.uniqBy(Array.from(s),r.ary(i.iteratee(l),1)):[]}e.uniqBy=a})(Yc)),Yc}var Pu,ug;function nL(){return ug||(ug=1,Pu=rL().uniqBy),Pu}var oL=nL();const dg=Jr(oL);function EP(e,t,r){return t===!0?dg(e,r):typeof t=="function"?dg(e,t):e}var ha={exports:{}},Eu={},ga={exports:{}},Ou={};var fg;function iL(){if(fg)return Ou;fg=1;var e=A;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var v=p(),g=n({inst:{value:v,getSnapshot:p}}),m=g[0].inst,h=g[1];return i(function(){m.value=v,m.getSnapshot=p,l(m)&&h({inst:m})},[d,v,p]),o(function(){return l(m)&&h({inst:m}),d(function(){l(m)&&h({inst:m})})},[d]),a(v),v}function l(d){var p=d.getSnapshot;d=d.value;try{var v=p();return!r(d,v)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return Ou.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Ou}var Cu={};var pg;function aL(){return pg||(pg=1,process.env.NODE_ENV!=="production"&&(function(){function e(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}function t(v,g){u||o.startTransition===void 0||(u=!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 m=g();if(!d){var h=g();i(m,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}h=a({inst:{value:m,getSnapshot:g}});var b=h[0].inst,x=h[1];return l(function(){b.value=m,b.getSnapshot=g,r(b)&&x({inst:b})},[v,m,g]),s(function(){return r(b)&&x({inst:b}),v(function(){r(b)&&x({inst:b})})},[v]),c(m),m}function r(v){var g=v.getSnapshot;v=v.value;try{var m=g();return!i(v,m)}catch{return!0}}function n(v,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=A,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Cu.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Cu}var vg;function OP(){return vg||(vg=1,process.env.NODE_ENV==="production"?ga.exports=iL():ga.exports=aL()),ga.exports}var mg;function sL(){if(mg)return Eu;mg=1;var e=A,t=OP();function r(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:r,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Eu.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},Eu}var Au={};var hg;function lL(){return hg||(hg=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=OP(),n=typeof Object.is=="function"?Object.is:e,o=r.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;Au.useSyncExternalStoreWithSelector=function(c,u,d,p,v){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=s(function(){function b(P){if(!x){if(x=!0,w=P,P=p(P),v!==void 0&&m.hasValue){var O=m.value;if(v(O,P))return S=O}return S=P}if(O=S,n(w,P))return O;var C=p(P);return v!==void 0&&v(O,C)?(w=P,O):(w=P,S=C)}var x=!1,w,S,E=d===void 0?null:d;return[function(){return b(u())},E===null?void 0:function(){return b(E())}]},[u,d,p,v]);var h=o(c,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=h},[h]),l(h),h},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Au}var gg;function cL(){return gg||(gg=1,process.env.NODE_ENV==="production"?ha.exports=sL():ha.exports=lL()),ha.exports}var uL=cL(),wp=A.createContext(null),dL=e=>e,Se=()=>{var e=A.useContext(wp);return e?e.store.dispatch:dL},Ka=()=>{},fL=()=>Ka,pL=(e,t)=>e===t;function J(e){var t=A.useContext(wp),r=A.useMemo(()=>t?n=>{if(n!=null)return e(n)}:Ka,[t,e]);return uL.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:fL,t?t.store.getState:Ka,t?t.store.getState:Ka,r,pL)}var vL=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
55
55
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
56
56
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
57
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},
|
|
57
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},mL=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,s=n(()=>({}),...o);if(!(s.apply(null,i)===s.apply(null,a))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
58
58
|
This means your output selector will likely run more frequently than intended.
|
|
59
59
|
Avoid returning a new reference inside your input selector, e.g.
|
|
60
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:i,secondInputs:a,stack:c})}},dL={inputStabilityCheck:"once",identityFunctionCheck:"once"};function fL(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function pL(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function vL(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var yg=e=>Array.isArray(e)?e:[e];function mL(e){const t=Array.isArray(e[0])?e[0]:e;return vL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function bg(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var hL=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...dL,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:cL},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:uL}}},gL=class{constructor(e){this.value=e}deref(){return this.value}},yL=typeof WeakRef<"u"?WeakRef:gL,bL=0,xg=1;function ya(){return{s:bL,v:void 0,o:null,p:null}}function CP(e,t={}){let r=ya();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let s=r;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(v);m===void 0?(s=ya(),g.set(v,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(v);m===void 0?(s=ya(),g.set(v,s)):s=m}}const c=s;let u;if(s.s===xg)u=s.v;else if(u=e.apply(null,arguments),i++,n){const d=o?.deref?.()??o;d!=null&&n(d,u)&&(u=d,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new yL(u):u}return c.s=xg,c.v=u,u}return a.clearCache=()=>{r=ya(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function xL(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),fL(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=CP,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,h=yg(p),b=yg(g),x=mL(o),w=d(function(){return i++,c.apply(null,arguments)},...h);let S=!0;const E=v(function(){a++;const O=bg(x,arguments);if(s=w.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:M}=hL(S,m);if(C.shouldRun&&C.run(c,O,s),M.shouldRun){const $=bg(x,arguments);M.run({inputSelectorResults:O,inputSelectorResultsCopy:$},{memoize:d,memoizeOptions:h},arguments)}S&&(S=!1)}return s},...b);return Object.assign(E,{resultFunc:c,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var N=xL(CP),wL=Object.assign((e,t=N)=>{pL(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>wL}),_u={},Tu={},ju={},wg;function SL(){return wg||(wg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,o,i)=>{if(n!==o){const a=t(n),s=t(o);if(a===s&&a===0){if(n<o)return i==="desc"?1:-1;if(n>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=r})(ju)),ju}var Mu={},Nu={},Sg;function AP(){return Sg||(Sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Nu)),Nu}var Pg;function PL(){return Pg||(Pg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AP(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(n.test(i)||!r.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o})(Mu)),Mu}var Eg;function EL(){return Eg||(Eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SL(),r=PL(),n=mp();function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(v=>String(v));const c=(v,g)=>{let m=v;for(let h=0;h<g.length&&m!=null;++h)m=m[g[h]];return m},u=(v,g)=>g==null||v==null?g:typeof v=="object"&&"key"in v?Object.hasOwn(g,v.key)?g[v.key]:c(g,v.path):typeof v=="function"?v(g):Array.isArray(v)?c(g,v):typeof g=="object"?g[v]:g,d=a.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return i.map(v=>({original:v,criteria:d.map(g=>u(g,v))})).slice().sort((v,g)=>{for(let m=0;m<d.length;m++){const h=t.compareValues(v.criteria[m],g.criteria[m],s[m]);if(h!==0)return h}return 0}).map(v=>v.original)}e.orderBy=o})(Tu)),Tu}var Iu={},Og;function OL(){return Og||(Og=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const o=[],i=Math.floor(n),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<i?a(u,l+1):o.push(u)}};return a(r,0),o}e.flatten=t})(Iu)),Iu}var ku={},Cg;function _P(){return Cg||(Cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PP(),r=bp(),n=gP(),o=bP();function i(a,s,l){return n.isObject(l)&&(typeof s=="number"&&r.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.isEqualsSameValueZero(l[s],a):!1}e.isIterateeCall=i})(ku)),ku}var Ag;function CL(){return Ag||(Ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EL(),r=OL(),n=_P();function o(i,...a){const s=a.length;return s>1&&n.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&n.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,r.flatten(a),["asc"])}e.sortBy=o})(_u)),_u}var Ru,_g;function AL(){return _g||(_g=1,Ru=CL().sortBy),Ru}var _L=AL();const bl=Jr(_L);var TP=e=>e.legend.settings,TL=e=>e.legend.size,jL=e=>e.legend.payload,ML=N([jL,TP],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?bl(n,r):n});function NL(){return J(ML)}var ba=1;function jP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=A.useState({height:0,left:0,top:0,width:0}),n=A.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>ba||Math.abs(a.left-t.left)>ba||Math.abs(a.top-t.top)>ba||Math.abs(a.width-t.width)>ba)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function tt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var IL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tg=IL,Du=()=>Math.random().toString(36).substring(7).split("").join("."),kL={INIT:`@@redux/INIT${Du()}`,REPLACE:`@@redux/REPLACE${Du()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Du()}`},bn=kL;function Ci(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function RL(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(LL(e))return"date";if($L(e))return"error";const r=DL(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function DL(e){return typeof e.constructor=="function"?e.constructor.name:null}function $L(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function LL(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Lr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=RL(e)),t}function MP(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?tt(2):`Expected the root reducer to be a function. Instead, received: '${Lr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?tt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?tt(1):`Expected the enhancer to be a function. Instead, received: '${Lr(r)}'`);return r(MP)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((h,b)=>{a.set(b,h)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(4):`Expected the listener to be a function. Instead, received: '${Lr(h)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;c();const x=s++;return a.set(x,h),function(){if(b){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,c(),a.delete(x),i=null}}}function p(h){if(!Ci(h))throw new Error(process.env.NODE_ENV==="production"?tt(7):`Actions must be plain objects. Instead, the actual type was: '${Lr(h)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?tt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof h.type!="string")throw new Error(process.env.NODE_ENV==="production"?tt(17):`Action "type" property must be a string. Instead, the actual type was: '${Lr(h.type)}'. Value was: '${h.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(9):"Reducers may not dispatch actions.");try{l=!0,o=n(o,h)}finally{l=!1}return(i=a).forEach(x=>{x()}),h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(10):`Expected the nextReducer to be a function. Instead, received: '${Lr(h)}`);n=h,p({type:bn.REPLACE})}function g(){const h=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?tt(11):`Expected the observer to be an object. Instead, received: '${Lr(b)}'`);function x(){const S=b;S.next&&S.next(u())}return x(),{unsubscribe:h(x)}},[Tg](){return this}}}return p({type:bn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:v,[Tg]:g}}function jg(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function FL(e,t,r,n){const o=Object.keys(t),i=r&&r.type===bn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ci(e))return`The ${i} has unexpected type of "${Lr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===bn.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function zL(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${bn.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function NP(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&jg(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{zL(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=FL(s,r,l,o);d&&jg(d)}let c=!1;const u={};for(let d=0;d<n.length;d++){const p=n[d],v=r[p],g=s[p],m=v(g,l);if(typeof m>"u"){const h=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?tt(14):`When called with an action of type ${h?`"${String(h)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[p]=m,c=c||m!==g}return c=c||n.length!==Object.keys(s).length,c?u:s}}function ss(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function BL(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?tt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=ss(...s)(o.dispatch),{...o,dispatch:i}}}function Sp(e){return Ci(e)&&"type"in e&&typeof e.type=="string"}var IP=Symbol.for("immer-nothing"),Mg=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),VL=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Pt(e,...t){if(process.env.NODE_ENV!=="production"){const r=VL[e],n=pn(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ot=Object,lo=Ot.getPrototypeOf,ls="constructor",xl="prototype",Rd="configurable",cs="enumerable",Ua="writable",ti="value",yr=e=>!!e&&!!e[ht];function Vt(e){return e?kP(e)||Sl(e)||!!e[Mg]||!!e[ls]?.[Mg]||Pl(e)||El(e):!1}var WL=Ot[xl][ls].toString(),Ng=new WeakMap;function kP(e){if(!e||!Pp(e))return!1;const t=lo(e);if(t===null||t===Ot[xl])return!0;const r=Ot.hasOwnProperty.call(t,ls)&&t[ls];if(r===Object)return!0;if(!pn(r))return!1;let n=Ng.get(r);return n===void 0&&(n=Function.toString.call(r),Ng.set(r,n)),n===WL}function wl(e,t,r=!0){Ai(e)===0?(r?Reflect.ownKeys(e):Ot.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Ai(e){const t=e[ht];return t?t.type_:Sl(e)?1:Pl(e)?2:El(e)?3:0}var Ig=(e,t,r=Ai(e))=>r===2?e.has(t):Ot[xl].hasOwnProperty.call(e,t),Dd=(e,t,r=Ai(e))=>r===2?e.get(t):e[t],us=(e,t,r,n=Ai(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function KL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Sl=Array.isArray,Pl=e=>e instanceof Map,El=e=>e instanceof Set,Pp=e=>typeof e=="object",pn=e=>typeof e=="function",$u=e=>typeof e=="boolean";function UL(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_,Ep=e=>e.modified_?e.copy_:e.base_;function $d(e,t){if(Pl(e))return new Map(e);if(El(e))return new Set(e);if(Sl(e))return Array[xl].slice.call(e);const r=kP(e);if(t===!0||t==="class_only"&&!r){const n=Ot.getOwnPropertyDescriptors(e);delete n[ht];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s[Ua]===!1&&(s[Ua]=!0,s[Rd]=!0),(s.get||s.set)&&(n[a]={[Rd]:!0,[Ua]:!0,[cs]:s[cs],[ti]:e[a]})}return Ot.create(lo(e),n)}else{const n=lo(e);if(n!==null&&r)return{...e};const o=Ot.create(n);return Ot.assign(o,e)}}function Op(e,t=!1){return Ol(e)||yr(e)||!Vt(e)||(Ai(e)>1&&Ot.defineProperties(e,{set:xa,add:xa,clear:xa,delete:xa}),Ot.freeze(e),t&&wl(e,(r,n)=>{Op(n,!0)},!1)),e}function HL(){Pt(2)}var xa={[ti]:HL};function Ol(e){return e===null||!Pp(e)?!0:Ot.isFrozen(e)}var ds="MapSet",Ld="Patches",kg="ArrayMethods",RP={};function _n(e){const t=RP[e];return t||Pt(0,e),t}var Rg=e=>!!RP[e],ri,DP=()=>ri,GL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Rg(ds)?_n(ds):void 0,arrayMethodsPlugin_:Rg(kg)?_n(kg):void 0});function Dg(e,t){t&&(e.patchPlugin_=_n(Ld),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fd(e){zd(e),e.drafts_.forEach(qL),e.drafts_=null}function zd(e){e===ri&&(ri=e.parent_)}var $g=e=>ri=GL(ri,e);function qL(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lg(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ht].modified_&&(Fd(t),Pt(4)),Vt(e)&&(e=Fg(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ht].base_,e,t)}else e=Fg(t,r);return YL(t,e,!0),Fd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==IP?e:void 0}function Fg(e,t){if(Ol(t))return t;const r=t[ht];if(!r)return fs(t,e.handledSet_,e);if(!Cl(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);FP(r,e)}return r.copy_}function YL(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Op(t,r)}function $P(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Cl=(e,t)=>e.scope_===t,XL=[];function LP(e,t,r,n){const o=fr(e),i=e.type_;if(n!==void 0&&Dd(o,n,i)===t){us(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;wl(o,(l,c)=>{if(yr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??XL;for(const s of a)us(o,s,r,i)}function ZL(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Cl(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Ep(i);LP(e,i.draft_??i,a,r),FP(i,o)})}function FP(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}$P(e)}}function JL(e,t,r){const{scope_:n}=e;if(yr(r)){const o=r[ht];Cl(o,n)&&o.callbacks_.push(function(){Ha(e);const a=Ep(o);LP(e,r,a,t)})}else Vt(r)&&e.callbacks_.push(function(){const i=fr(e);e.type_===3?i.has(r)&&fs(r,n.handledSet_,n):Dd(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&fs(Dd(e.copy_,t,e.type_),n.handledSet_,n)})}function fs(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||yr(e)||t.has(e)||!Vt(e)||Ol(e)||(t.add(e),wl(e,(n,o)=>{if(yr(o)){const i=o[ht];if(Cl(i,r)){const a=Ep(i);us(e,n,a,e.type_),$P(i)}}else Vt(o)&&fs(o,t,r)})),e}function QL(e,t){const r=Sl(e),n={type_:r?1:0,scope_:t?t.scope_:DP(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,i=ps;r&&(o=[n],i=ni);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var ps={get(e,t){if(t===ht)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const o=fr(e);if(!Ig(o,t,e.type_))return eF(e,o,t);const i=o[t];if(e.finalized_||!Vt(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&UL(t))return i;if(i===Lu(e.base_,t)){Ha(e);const a=e.type_===1?+t:t,s=Vd(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in fr(e)},ownKeys(e){return Reflect.ownKeys(fr(e))},set(e,t,r){const n=zP(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Lu(fr(e),t),i=o?.[ht];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(KL(r,o)&&(r!==void 0||Ig(e.base_,t,e.type_)))return!0;Ha(e),Bd(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),JL(e,t,r)),!0},deleteProperty(e,t){return Ha(e),Lu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Bd(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ua]:!0,[Rd]:e.type_!==1||t!=="length",[cs]:n[cs],[ti]:r[t]}},defineProperty(){Pt(11)},getPrototypeOf(e){return lo(e.base_)},setPrototypeOf(){Pt(12)}},ni={};for(let e in ps){let t=ps[e];ni[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ni.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Pt(13),ni.set.call(this,e,t,void 0)};ni.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Pt(14),ps.set.call(this,e[0],t,r,e[0])};function Lu(e,t){const r=e[ht];return(r?fr(r):e)[t]}function eF(e,t,r){const n=zP(t,r);return n?ti in n?n[ti]:n.get?.call(e.draft_):void 0}function zP(e,t){if(!(t in e))return;let r=lo(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=lo(r)}}function Bd(e){e.modified_||(e.modified_=!0,e.parent_&&Bd(e.parent_))}function Ha(e){e.copy_||(e.assigned_=new Map,e.copy_=$d(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var tF=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(pn(r)&&!pn(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}pn(n)||Pt(6),o!==void 0&&!pn(o)&&Pt(7);let i;if(Vt(r)){const a=$g(this),s=Vd(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?Fd(a):zd(a)}return Dg(a,o),Lg(i,a)}else if(!r||!Pp(r)){if(i=n(r),i===void 0&&(i=r),i===IP&&(i=void 0),this.autoFreeze_&&Op(i,!0),o){const a=[],s=[];_n(Ld).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Pt(1,r)},this.produceWithPatches=(r,n)=>{if(pn(r))return(s,...l)=>this.produceWithPatches(s,c=>r(c,...l));let o,i;return[this.produce(r,n,(s,l)=>{o=s,i=l}),o,i]},$u(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),$u(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),$u(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Vt(t)||Pt(8),yr(t)&&(t=Bt(t));const r=$g(this),n=Vd(r,t,void 0);return n[ht].isManual_=!0,zd(r),n}finishDraft(t,r){const n=t&&t[ht];(!n||!n.isManual_)&&Pt(9);const{scope_:o}=n;return Dg(o,r),Lg(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const i=r[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(r=r.slice(n+1));const o=_n(Ld).applyPatches_;return yr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Vd(e,t,r,n){const[o,i]=Pl(t)?_n(ds).proxyMap_(t,r):El(t)?_n(ds).proxySet_(t,r):QL(t,r);return(r?.scope_??DP()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?ZL(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Bt(e){return yr(e)||Pt(10,e),BP(e)}function BP(e){if(!Vt(e)||Ol(e))return e;const t=e[ht];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$d(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$d(e,!0);return wl(r,(o,i)=>{us(r,o,BP(i))},n),t&&(t.finalized_=!1),r}var rF=new tF,VP=rF.produce;function WP(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var nF=WP(),oF=WP,iF=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ss:ss.apply(null,arguments)},aF=e=>e&&typeof e.match=="function";function Rt(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?me(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Sp(n)&&n.type===e,r}function sF(e){return typeof e=="function"&&"type"in e&&aF(e)}function lF(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
61
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function
|
|
60
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:i,secondInputs:a,stack:c})}},hL={inputStabilityCheck:"once",identityFunctionCheck:"once"};function gL(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function yL(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function bL(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var yg=e=>Array.isArray(e)?e:[e];function xL(e){const t=Array.isArray(e[0])?e[0]:e;return bL(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function bg(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var wL=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...hL,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:vL},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:mL}}},SL=class{constructor(e){this.value=e}deref(){return this.value}},PL=typeof WeakRef<"u"?WeakRef:SL,EL=0,xg=1;function ya(){return{s:EL,v:void 0,o:null,p:null}}function CP(e,t={}){let r=ya();const{resultEqualityCheck:n}=t;let o,i=0;function a(){let s=r;const{length:l}=arguments;for(let d=0,p=l;d<p;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const m=g.get(v);m===void 0?(s=ya(),g.set(v,s)):s=m}else{let g=s.p;g===null&&(s.p=g=new Map);const m=g.get(v);m===void 0?(s=ya(),g.set(v,s)):s=m}}const c=s;let u;if(s.s===xg)u=s.v;else if(u=e.apply(null,arguments),i++,n){const d=o?.deref?.()??o;d!=null&&n(d,u)&&(u=d,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new PL(u):u}return c.s=xg,c.v=u,u}return a.clearCache=()=>{r=ya(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function OL(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),gL(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:d,memoizeOptions:p=[],argsMemoize:v=CP,argsMemoizeOptions:g=[],devModeChecks:m={}}=u,h=yg(p),b=yg(g),x=xL(o),w=d(function(){return i++,c.apply(null,arguments)},...h);let S=!0;const E=v(function(){a++;const O=bg(x,arguments);if(s=w.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:C,inputStabilityCheck:N}=wL(S,m);if(C.shouldRun&&C.run(c,O,s),N.shouldRun){const $=bg(x,arguments);N.run({inputSelectorResults:O,inputSelectorResultsCopy:$},{memoize:d,memoizeOptions:h},arguments)}S&&(S=!1)}return s},...b);return Object.assign(E,{resultFunc:c,memoizedResultFunc:w,dependencies:x,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:v})};return Object.assign(n,{withTypes:()=>n}),n}var M=OL(CP),CL=Object.assign((e,t=M)=>{yL(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>CL}),_u={},Tu={},ju={},wg;function AL(){return wg||(wg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,o,i)=>{if(n!==o){const a=t(n),s=t(o);if(a===s&&a===0){if(n<o)return i==="desc"?1:-1;if(n>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=r})(ju)),ju}var Nu={},Mu={},Sg;function AP(){return Sg||(Sg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(Mu)),Mu}var Pg;function _L(){return Pg||(Pg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AP(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(n.test(i)||!r.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o})(Nu)),Nu}var Eg;function TL(){return Eg||(Eg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AL(),r=_L(),n=mp();function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(v=>String(v));const c=(v,g)=>{let m=v;for(let h=0;h<g.length&&m!=null;++h)m=m[g[h]];return m},u=(v,g)=>g==null||v==null?g:typeof v=="object"&&"key"in v?Object.hasOwn(g,v.key)?g[v.key]:c(g,v.path):typeof v=="function"?v(g):Array.isArray(v)?c(g,v):typeof g=="object"?g[v]:g,d=a.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||r.isKey(v)?v:{key:v,path:n.toPath(v)}));return i.map(v=>({original:v,criteria:d.map(g=>u(g,v))})).slice().sort((v,g)=>{for(let m=0;m<d.length;m++){const h=t.compareValues(v.criteria[m],g.criteria[m],s[m]);if(h!==0)return h}return 0}).map(v=>v.original)}e.orderBy=o})(Tu)),Tu}var Iu={},Og;function jL(){return Og||(Og=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const o=[],i=Math.floor(n),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<i?a(u,l+1):o.push(u)}};return a(r,0),o}e.flatten=t})(Iu)),Iu}var ku={},Cg;function _P(){return Cg||(Cg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=PP(),r=bp(),n=gP(),o=bP();function i(a,s,l){return n.isObject(l)&&(typeof s=="number"&&r.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.isEqualsSameValueZero(l[s],a):!1}e.isIterateeCall=i})(ku)),ku}var Ag;function NL(){return Ag||(Ag=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TL(),r=jL(),n=_P();function o(i,...a){const s=a.length;return s>1&&n.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&n.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,r.flatten(a),["asc"])}e.sortBy=o})(_u)),_u}var Ru,_g;function ML(){return _g||(_g=1,Ru=NL().sortBy),Ru}var IL=ML();const bl=Jr(IL);var TP=e=>e.legend.settings,kL=e=>e.legend.size,RL=e=>e.legend.payload,DL=M([RL,TP],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?bl(n,r):n});function $L(){return J(DL)}var ba=1;function jP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=A.useState({height:0,left:0,top:0,width:0}),n=A.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>ba||Math.abs(a.left-t.left)>ba||Math.abs(a.top-t.top)>ba||Math.abs(a.width-t.width)>ba)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function tt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var LL=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tg=LL,Du=()=>Math.random().toString(36).substring(7).split("").join("."),zL={INIT:`@@redux/INIT${Du()}`,REPLACE:`@@redux/REPLACE${Du()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Du()}`},bn=zL;function Ci(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function FL(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(WL(e))return"date";if(VL(e))return"error";const r=BL(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function BL(e){return typeof e.constructor=="function"?e.constructor.name:null}function VL(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function WL(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Lr(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=FL(e)),t}function NP(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?tt(2):`Expected the root reducer to be a function. Instead, received: '${Lr(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?tt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?tt(1):`Expected the enhancer to be a function. Instead, received: '${Lr(r)}'`);return r(NP)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((h,b)=>{a.set(b,h)}))}function u(){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(4):`Expected the listener to be a function. Instead, received: '${Lr(h)}'`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let b=!0;c();const x=s++;return a.set(x,h),function(){if(b){if(l)throw new Error(process.env.NODE_ENV==="production"?tt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");b=!1,c(),a.delete(x),i=null}}}function p(h){if(!Ci(h))throw new Error(process.env.NODE_ENV==="production"?tt(7):`Actions must be plain objects. Instead, the actual type was: '${Lr(h)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof h.type>"u")throw new Error(process.env.NODE_ENV==="production"?tt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof h.type!="string")throw new Error(process.env.NODE_ENV==="production"?tt(17):`Action "type" property must be a string. Instead, the actual type was: '${Lr(h.type)}'. Value was: '${h.type}' (stringified)`);if(l)throw new Error(process.env.NODE_ENV==="production"?tt(9):"Reducers may not dispatch actions.");try{l=!0,o=n(o,h)}finally{l=!1}return(i=a).forEach(x=>{x()}),h}function v(h){if(typeof h!="function")throw new Error(process.env.NODE_ENV==="production"?tt(10):`Expected the nextReducer to be a function. Instead, received: '${Lr(h)}`);n=h,p({type:bn.REPLACE})}function g(){const h=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?tt(11):`Expected the observer to be an object. Instead, received: '${Lr(b)}'`);function x(){const S=b;S.next&&S.next(u())}return x(),{unsubscribe:h(x)}},[Tg](){return this}}}return p({type:bn.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:v,[Tg]:g}}function jg(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function KL(e,t,r,n){const o=Object.keys(t),i=r&&r.type===bn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Ci(e))return`The ${i} has unexpected type of "${Lr(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!n[s]);if(a.forEach(s=>{n[s]=!0}),!(r&&r.type===bn.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function UL(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:bn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?tt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${bn.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function MP(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const s=t[a];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&jg(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{UL(r)}catch(a){i=a}return function(s={},l){if(i)throw i;if(process.env.NODE_ENV!=="production"){const d=KL(s,r,l,o);d&&jg(d)}let c=!1;const u={};for(let d=0;d<n.length;d++){const p=n[d],v=r[p],g=s[p],m=v(g,l);if(typeof m>"u"){const h=l&&l.type;throw new Error(process.env.NODE_ENV==="production"?tt(14):`When called with an action of type ${h?`"${String(h)}"`:"(unknown type)"}, the slice reducer for key "${p}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[p]=m,c=c||m!==g}return c=c||n.length!==Object.keys(s).length,c?u:s}}function ss(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function HL(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?tt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(a));return i=ss(...s)(o.dispatch),{...o,dispatch:i}}}function Sp(e){return Ci(e)&&"type"in e&&typeof e.type=="string"}var IP=Symbol.for("immer-nothing"),Ng=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),GL=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Pt(e,...t){if(process.env.NODE_ENV!=="production"){const r=GL[e],n=pn(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ot=Object,lo=Ot.getPrototypeOf,ls="constructor",xl="prototype",Rd="configurable",cs="enumerable",Ua="writable",ti="value",yr=e=>!!e&&!!e[ht];function Vt(e){return e?kP(e)||Sl(e)||!!e[Ng]||!!e[ls]?.[Ng]||Pl(e)||El(e):!1}var qL=Ot[xl][ls].toString(),Mg=new WeakMap;function kP(e){if(!e||!Pp(e))return!1;const t=lo(e);if(t===null||t===Ot[xl])return!0;const r=Ot.hasOwnProperty.call(t,ls)&&t[ls];if(r===Object)return!0;if(!pn(r))return!1;let n=Mg.get(r);return n===void 0&&(n=Function.toString.call(r),Mg.set(r,n)),n===qL}function wl(e,t,r=!0){Ai(e)===0?(r?Reflect.ownKeys(e):Ot.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Ai(e){const t=e[ht];return t?t.type_:Sl(e)?1:Pl(e)?2:El(e)?3:0}var Ig=(e,t,r=Ai(e))=>r===2?e.has(t):Ot[xl].hasOwnProperty.call(e,t),Dd=(e,t,r=Ai(e))=>r===2?e.get(t):e[t],us=(e,t,r,n=Ai(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function YL(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Sl=Array.isArray,Pl=e=>e instanceof Map,El=e=>e instanceof Set,Pp=e=>typeof e=="object",pn=e=>typeof e=="function",$u=e=>typeof e=="boolean";function XL(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var fr=e=>e.copy_||e.base_,Ep=e=>e.modified_?e.copy_:e.base_;function $d(e,t){if(Pl(e))return new Map(e);if(El(e))return new Set(e);if(Sl(e))return Array[xl].slice.call(e);const r=kP(e);if(t===!0||t==="class_only"&&!r){const n=Ot.getOwnPropertyDescriptors(e);delete n[ht];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s[Ua]===!1&&(s[Ua]=!0,s[Rd]=!0),(s.get||s.set)&&(n[a]={[Rd]:!0,[Ua]:!0,[cs]:s[cs],[ti]:e[a]})}return Ot.create(lo(e),n)}else{const n=lo(e);if(n!==null&&r)return{...e};const o=Ot.create(n);return Ot.assign(o,e)}}function Op(e,t=!1){return Ol(e)||yr(e)||!Vt(e)||(Ai(e)>1&&Ot.defineProperties(e,{set:xa,add:xa,clear:xa,delete:xa}),Ot.freeze(e),t&&wl(e,(r,n)=>{Op(n,!0)},!1)),e}function ZL(){Pt(2)}var xa={[ti]:ZL};function Ol(e){return e===null||!Pp(e)?!0:Ot.isFrozen(e)}var ds="MapSet",Ld="Patches",kg="ArrayMethods",RP={};function _n(e){const t=RP[e];return t||Pt(0,e),t}var Rg=e=>!!RP[e],ri,DP=()=>ri,JL=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Rg(ds)?_n(ds):void 0,arrayMethodsPlugin_:Rg(kg)?_n(kg):void 0});function Dg(e,t){t&&(e.patchPlugin_=_n(Ld),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zd(e){Fd(e),e.drafts_.forEach(QL),e.drafts_=null}function Fd(e){e===ri&&(ri=e.parent_)}var $g=e=>ri=JL(ri,e);function QL(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lg(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[ht].modified_&&(zd(t),Pt(4)),Vt(e)&&(e=zg(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[ht].base_,e,t)}else e=zg(t,r);return ez(t,e,!0),zd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==IP?e:void 0}function zg(e,t){if(Ol(t))return t;const r=t[ht];if(!r)return fs(t,e.handledSet_,e);if(!Cl(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);zP(r,e)}return r.copy_}function ez(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Op(t,r)}function $P(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Cl=(e,t)=>e.scope_===t,tz=[];function LP(e,t,r,n){const o=fr(e),i=e.type_;if(n!==void 0&&Dd(o,n,i)===t){us(o,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;wl(o,(l,c)=>{if(yr(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??tz;for(const s of a)us(o,s,r,i)}function rz(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!Cl(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const a=Ep(i);LP(e,i.draft_??i,a,r),zP(i,o)})}function zP(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}$P(e)}}function nz(e,t,r){const{scope_:n}=e;if(yr(r)){const o=r[ht];Cl(o,n)&&o.callbacks_.push(function(){Ha(e);const a=Ep(o);LP(e,r,a,t)})}else Vt(r)&&e.callbacks_.push(function(){const i=fr(e);e.type_===3?i.has(r)&&fs(r,n.handledSet_,n):Dd(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&fs(Dd(e.copy_,t,e.type_),n.handledSet_,n)})}function fs(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||yr(e)||t.has(e)||!Vt(e)||Ol(e)||(t.add(e),wl(e,(n,o)=>{if(yr(o)){const i=o[ht];if(Cl(i,r)){const a=Ep(i);us(e,n,a,e.type_),$P(i)}}else Vt(o)&&fs(o,t,r)})),e}function oz(e,t){const r=Sl(e),n={type_:r?1:0,scope_:t?t.scope_:DP(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,i=ps;r&&(o=[n],i=ni);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,[s,n]}var ps={get(e,t){if(t===ht)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const o=fr(e);if(!Ig(o,t,e.type_))return iz(e,o,t);const i=o[t];if(e.finalized_||!Vt(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&XL(t))return i;if(i===Lu(e.base_,t)){Ha(e);const a=e.type_===1?+t:t,s=Vd(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in fr(e)},ownKeys(e){return Reflect.ownKeys(fr(e))},set(e,t,r){const n=FP(fr(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Lu(fr(e),t),i=o?.[ht];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(YL(r,o)&&(r!==void 0||Ig(e.base_,t,e.type_)))return!0;Ha(e),Bd(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),nz(e,t,r)),!0},deleteProperty(e,t){return Ha(e),Lu(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Bd(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=fr(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ua]:!0,[Rd]:e.type_!==1||t!=="length",[cs]:n[cs],[ti]:r[t]}},defineProperty(){Pt(11)},getPrototypeOf(e){return lo(e.base_)},setPrototypeOf(){Pt(12)}},ni={};for(let e in ps){let t=ps[e];ni[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}ni.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Pt(13),ni.set.call(this,e,t,void 0)};ni.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Pt(14),ps.set.call(this,e[0],t,r,e[0])};function Lu(e,t){const r=e[ht];return(r?fr(r):e)[t]}function iz(e,t,r){const n=FP(t,r);return n?ti in n?n[ti]:n.get?.call(e.draft_):void 0}function FP(e,t){if(!(t in e))return;let r=lo(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=lo(r)}}function Bd(e){e.modified_||(e.modified_=!0,e.parent_&&Bd(e.parent_))}function Ha(e){e.copy_||(e.assigned_=new Map,e.copy_=$d(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var az=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,o)=>{if(pn(r)&&!pn(n)){const a=n;n=r;const s=this;return function(c=a,...u){return s.produce(c,d=>n.call(this,d,...u))}}pn(n)||Pt(6),o!==void 0&&!pn(o)&&Pt(7);let i;if(Vt(r)){const a=$g(this),s=Vd(a,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?zd(a):Fd(a)}return Dg(a,o),Lg(i,a)}else if(!r||!Pp(r)){if(i=n(r),i===void 0&&(i=r),i===IP&&(i=void 0),this.autoFreeze_&&Op(i,!0),o){const a=[],s=[];_n(Ld).generateReplacementPatches_(r,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Pt(1,r)},this.produceWithPatches=(r,n)=>{if(pn(r))return(s,...l)=>this.produceWithPatches(s,c=>r(c,...l));let o,i;return[this.produce(r,n,(s,l)=>{o=s,i=l}),o,i]},$u(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),$u(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),$u(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Vt(t)||Pt(8),yr(t)&&(t=Bt(t));const r=$g(this),n=Vd(r,t,void 0);return n[ht].isManual_=!0,Fd(r),n}finishDraft(t,r){const n=t&&t[ht];(!n||!n.isManual_)&&Pt(9);const{scope_:o}=n;return Dg(o,r),Lg(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const i=r[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(r=r.slice(n+1));const o=_n(Ld).applyPatches_;return yr(t)?o(t,r):this.produce(t,i=>o(i,r))}};function Vd(e,t,r,n){const[o,i]=Pl(t)?_n(ds).proxyMap_(t,r):El(t)?_n(ds).proxySet_(t,r):oz(t,r);return(r?.scope_??DP()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?rz(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function Bt(e){return yr(e)||Pt(10,e),BP(e)}function BP(e){if(!Vt(e)||Ol(e))return e;const t=e[ht];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$d(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=$d(e,!0);return wl(r,(o,i)=>{us(r,o,BP(i))},n),t&&(t.finalized_=!1),r}var sz=new az,VP=sz.produce;function WP(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var lz=WP(),cz=WP,uz=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ss:ss.apply(null,arguments)},dz=e=>e&&typeof e.match=="function";function Rt(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?me(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Sp(n)&&n.type===e,r}function fz(e){return typeof e=="function"&&"type"in e&&dz(e)}function pz(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
61
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function vz(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=fz}=e;return()=>r=>n=>(t(n)&&console.warn(pz(n.type)),r(n))}function KP(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const i=Date.now();r+=i-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
|
|
62
62
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
63
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var UP=class qo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qo.prototype)}static get[Symbol.species](){return qo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qo(...t[0].concat(this)):new qo(...t.concat(this))}};function
|
|
63
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var UP=class qo extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qo.prototype)}static get[Symbol.species](){return qo}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qo(...t[0].concat(this)):new qo(...t.concat(this))}};function Fg(e){return Vt(e)?VP(e,()=>{}):e}function wa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function mz(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function hz(e,t,r){const n=HP(e,t,r);return{detectMutations(){return GP(e,t,n,r)}}}function HP(e,t=[],r,n="",o=new Set){const i={value:r};if(!e(r)&&!o.has(r)){o.add(r),i.children={};const a=t.length>0;for(const s in r){const l=n?n+"."+s:s;a&&t.some(u=>u instanceof RegExp?u.test(l):l===u)||(i.children[s]=HP(e,t,r[s],l))}}return i}function GP(e,t=[],r,n,o=!1,i=""){const a=r?r.value:void 0,s=a===n;if(o&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(a)||e(n))return{wasMutated:!1};const l={};for(let u in r.children)l[u]=!0;for(let u in n)l[u]=!0;const c=t.length>0;for(let u in l){const d=i?i+"."+u:u;if(c&&t.some(g=>g instanceof RegExp?g.test(d):d===g))continue;const p=GP(e,t,r.children[u],n[u],s,d);if(p.wasMutated)return p}return{wasMutated:!1}}function gz(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(s,l,c,u){return JSON.stringify(s,r(l,u),c)},r=function(s,l){let c=[],u=[];return l||(l=function(d,p){return c[0]===p?"[Circular ~]":"[Circular ~."+u.slice(0,c.indexOf(p)).join(".")+"]"}),function(d,p){if(c.length>0){var v=c.indexOf(this);~v?c.splice(v+1):c.push(this),~v?u.splice(v,1/0,d):u.push(d),~c.indexOf(p)&&(p=l.call(this,d,p))}else c.push(p);return s==null?p:s.call(this,d,p)}},{isImmutable:n=mz,ignoredPaths:o,warnAfter:i=32}=e;const a=hz.bind(null,n,o);return({getState:s})=>{let l=s(),c=a(l),u;return d=>p=>{const v=KP(i,"ImmutableStateInvariantMiddleware");v.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?me(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=d(p);return v.measureTime(()=>{if(l=s(),u=c.detectMutations(),c=a(l),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?me(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),v.warnIfExceeded(),g}}}}function qP(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Ci(e)}function Wd(e,t="",r=qP,n,o=[],i){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;const s=n!=null?n(e):Object.entries(e),l=o.length>0;for(const[c,u]of s){const d=t?t+"."+c:c;if(!(l&&o.some(v=>v instanceof RegExp?v.test(d):d===v))){if(!r(u))return{keyPath:d,value:u};if(typeof u=="object"&&(a=Wd(u,d,r,n,o,i),a))return a}}return i&&YP(e)&&i.add(e),!1}function YP(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!YP(t))return!1;return!0}function yz(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=qP,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:a=32,ignoreState:s=!1,ignoreActions:l=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return d=>p=>v=>{if(!Sp(v))return p(v);const g=p(v),m=KP(a,"SerializableStateInvariantMiddleware");return!l&&!(n.length&&n.indexOf(v.type)!==-1)&&m.measureTime(()=>{const h=Wd(v,"",t,r,o,u);if(h){const{keyPath:b,value:x}=h;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,x,`
|
|
64
64
|
Take a look at the logic that dispatched this action: `,v,`
|
|
65
65
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
66
66
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(m.measureTime(()=>{const h=d.getState(),b=Wd(h,"",t,r,i,u);if(b){const{keyPath:x,value:w}=b;console.error(`A non-serializable value was detected in the state, in the path: \`${x}\`. Value:`,w,`
|
|
67
67
|
Take a look at the reducer(s) handling this action type: ${v.type}.
|
|
68
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function Sa(e){return typeof e=="boolean"}var vF=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new UP;if(r&&(Sa(r)?a.push(nF):a.push(oF(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};Sa(n)||(s=n),a.unshift(fF(s))}if(o){let s={};Sa(o)||(s=o),a.push(pF(s))}if(i){let s={};Sa(i)||(s=i),a.unshift(cF(s))}}return a},XP="RTK_autoBatch",Ce=()=>e=>({payload:e,meta:{[XP]:!0}}),Bg=e=>t=>{setTimeout(t,e)},ZP=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Bg(10):e.type==="callback"?e.queueNotification:Bg(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const d=()=>o&&u(),p=n.subscribe(d);return s.add(u),()=>{p(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[XP],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},mF=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new UP(e);return n&&o.push(ZP(typeof n=="object"?n:void 0)),o};function hF(e){const t=vF(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Ci(r))l=NP(r);else throw new Error(process.env.NODE_ENV==="production"?me(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?me(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?me(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let m=new Set;c.forEach(h=>{if(m.has(h))throw new Error(process.env.NODE_ENV==="production"?me(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(h)})}let u=ss;o&&(u=iF({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=BL(...c),p=mF(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?me(5):"`enhancers` field must be a callback");let v=typeof s=="function"?s(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?me(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!v.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...v);return MP(l,a,g)}function JP(e){const t={},r=[];let n;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?me(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?me(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?me(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?me(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,o},addAsyncThunk(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function gF(e){return typeof e=="function"}function yF(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?me(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=JP(t),i;if(gF(e))i=()=>zg(e());else{const s=zg(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(yr(u)){const v=d(u,l);return v===void 0?u:v}else{if(Vt(u))return VP(u,p=>d(p,l));{const p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},s)}return a.getInitialState=i,a}var bF="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xF=(e=21)=>{let t="",r=e;for(;r--;)t+=bF[Math.random()*64|0];return t},wF=Symbol.for("rtk-slice-createasyncthunk");function SF(e,t){return`${e}/${t}`}function PF({creators:e}={}){const t=e?.asyncThunk?.[wF];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?me(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof n.reducers=="function"?n.reducers(OF()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,S){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?me(12):"`context.addCase` cannot be called with an empty action type");if(E in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?me(13):"`context.addCase` cannot be called with two reducers for the same action type: "+E);return l.sliceCaseReducersByType[E]=S,c},addMatcher(w,S){return l.sliceMatchers.push({matcher:w,reducer:S}),c},exposeAction(w,S){return l.actionCreators[w]=S,c},exposeCaseReducer(w,S){return l.sliceCaseReducersByName[w]=S,c}};s.forEach(w=>{const S=a[w],E={reducerName:w,type:SF(o,w),createNotation:typeof n.reducers=="function"};AF(S)?TF(E,S,c,t):CF(E,S,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?me(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},S=[],E=void 0]=typeof n.extraReducers=="function"?JP(n.extraReducers):[n.extraReducers],P={...w,...l.sliceCaseReducersByType};return yF(n.initialState,O=>{for(let C in P)O.addCase(C,P[C]);for(let C of l.sliceMatchers)O.addMatcher(C.matcher,C.reducer);for(let C of S)O.addMatcher(C.matcher,C.reducer);E&&O.addDefaultCase(E)})}const d=w=>w,p=new Map,v=new WeakMap;let g;function m(w,S){return g||(g=u()),g(w,S)}function h(){return g||(g=u()),g.getInitialState()}function b(w,S=!1){function E(O){let C=O[w];if(typeof C>"u"){if(S)C=wa(v,E,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function P(O=d){const C=wa(p,S,()=>new WeakMap);return wa(C,O,()=>{const M={};for(const[$,I]of Object.entries(n.selectors??{}))M[$]=EF(I,O,()=>wa(v,O,h),S);return M})}return{reducerPath:w,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...b(i),injectInto(w,{reducerPath:S,...E}={}){const P=S??i;return w.inject({reducerPath:P,reducer:m},E),{...x,...b(P,!0)}}};return x}}function EF(e,t,r,n){function o(i,...a){let s=t(i);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var xt=PF();function OF(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function CF({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!_F(n))throw new Error(process.env.NODE_ENV==="production"?me(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Rt(e,a):Rt(e))}function AF(e){return e._reducerDefinitionType==="asyncThunk"}function _F(e){return e._reducerDefinitionType==="reducerWithPrepare"}function TF({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?me(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,d=o(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:a||Pa,pending:s||Pa,rejected:l||Pa,settled:c||Pa})}function Pa(){}var jF="task",QP="listener",e1="completed",Cp="cancelled",MF=`task-${Cp}`,NF=`task-${e1}`,Kd=`${QP}-${Cp}`,IF=`${QP}-${e1}`,Al=class{constructor(e){this.code=e,this.message=`${jF} ${Cp} (reason: ${e})`}name="TaskAbortError";message},Ap=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?me(32):`${t} is not a function`)},vs=()=>{},t1=(e,t=vs)=>(e.catch(t),e),r1=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),xn=e=>{if(e.aborted)throw new Al(e.reason)};function n1(e,t){let r=vs;return new Promise((n,o)=>{const i=()=>o(new Al(e.reason));if(e.aborted){i();return}r=r1(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=vs})}var kF=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Al?"cancelled":"rejected",error:r}}finally{t?.()}},ms=e=>t=>t1(n1(e,t).then(r=>(xn(e),r))),o1=e=>{const t=ms(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:io}=Object,Vg={},_i="listenerMiddleware",RF=(e,t)=>{const r=n=>r1(e,()=>n.abort(e.reason));return(n,o)=>{Ap(n,"taskExecutor");const i=new AbortController;r(i);const a=kF(async()=>{xn(e),xn(i.signal);const s=await n({pause:ms(i.signal),delay:o1(i.signal),signal:i.signal});return xn(i.signal),s},()=>i.abort(NF));return o?.autoJoin&&t.push(a.catch(vs)),{result:ms(e)(a),cancel(){i.abort(MF)}}}},DF=(e,t)=>{const r=async(n,o)=>{xn(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(d,p)=>{p.unsubscribe(),l([d,p.getState(),p.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await n1(t,Promise.race(s));return xn(t),l}finally{i()}};return(n,o)=>t1(r(n,o))},i1=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Rt(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(process.env.NODE_ENV==="production"?me(21):"Creating or removing a listener requires one of the known fields for matching an action");return Ap(i,"options.listener"),{predicate:o,type:t,effect:i}},a1=io(e=>{const{type:t,predicate:r,effect:n}=i1(e);return{id:xF(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?me(22):"Unsubscribe not initialized")}}},{withTypes:()=>a1}),Wg=(e,t)=>{const{type:r,effect:n,predicate:o}=i1(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Ud=e=>{e.pending.forEach(t=>{t.abort(Kd)})},$F=(e,t)=>()=>{for(const r of t.keys())Ud(r);e.clear()},Kg=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},s1=io(Rt(`${_i}/add`),{withTypes:()=>s1}),LF=Rt(`${_i}/removeAll`),l1=io(Rt(`${_i}/remove`),{withTypes:()=>l1}),FF=(...e)=>{console.error(`${_i}/error`,...e)},Ti=(e={})=>{const t=new Map,r=new Map,n=v=>{const g=r.get(v)??0;r.set(v,g+1)},o=v=>{const g=r.get(v)??1;g===1?r.delete(v):r.set(v,g-1)},{extra:i,onError:a=FF}=e;Ap(a,"onError");const s=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g?.cancelActive&&Ud(v)}),l=v=>{const g=Wg(t,v)??a1(v);return s(g)};io(l,{withTypes:()=>l});const c=v=>{const g=Wg(t,v);return g&&(g.unsubscribe(),v.cancelActive&&Ud(g)),!!g};io(c,{withTypes:()=>c});const u=async(v,g,m,h)=>{const b=new AbortController,x=DF(l,b.signal),w=[];try{v.pending.add(b),n(v),await Promise.resolve(v.effect(g,io({},m,{getOriginalState:h,condition:(S,E)=>x(S,E).then(Boolean),take:x,delay:o1(b.signal),pause:ms(b.signal),extra:i,signal:b.signal,fork:RF(b.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((S,E,P)=>{S!==b&&(S.abort(Kd),P.delete(S))})},cancel:()=>{b.abort(Kd),v.pending.delete(b)},throwIfCancelled:()=>{xn(b.signal)}})))}catch(S){S instanceof Al||Kg(a,S,{raisedBy:"effect"})}finally{await Promise.all(w),b.abort(IF),o(v),v.pending.delete(b)}},d=$F(t,r);return{middleware:v=>g=>m=>{if(!Sp(m))return g(m);if(s1.match(m))return l(m.payload);if(LF.match(m)){d();return}if(l1.match(m))return c(m.payload);let h=v.getState();const b=()=>{if(h===Vg)throw new Error(process.env.NODE_ENV==="production"?me(23):`${_i}: getOriginalState can only be called synchronously`);return h};let x;try{if(x=g(m),t.size>0){const w=v.getState(),S=Array.from(t.values());for(const E of S){let P=!1;try{P=E.predicate(m,w,h)}catch(O){P=!1,Kg(a,O,{raisedBy:"predicate"})}P&&u(E,m,v,b)}}}finally{h=Vg}return x},startListening:l,stopListening:c,clearListeners:d}};function me(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zF={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},c1=xt({name:"chartLayout",initialState:zF,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:BF,setLayout:VF,setChartSize:WF,setScale:KF}=c1.actions,UF=c1.reducer;function u1(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ce(e){return Number.isFinite(e)}function ar(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(r),!0).forEach(function(n){HF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HF(e,t,r){return(t=GF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GF(e){var t=qF(e,"string");return typeof t=="symbol"?t:t+""}function qF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function be(e,t,r){return Te(e)||Te(t)?r:ir(t)?Cn(e,t,r):typeof t=="function"?t(e):r}var YF=(e,t,r)=>{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return eo(eo({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return eo(eo({},e),{},{[a]:e[a]+(o||0)})}return e},_r=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",d1=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===r&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(r),a},f1=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:v}=e;if(!a)return null;var g=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=o==="category"&&a.bandwidth?a.bandwidth()/g:0;if(m=v==="angleAxis"&&i&&i.length>=2?qe(i[0]-i[1])*2*m:m,d||p){var h=(d||p||[]).map((b,x)=>{var w=n?n.indexOf(b):b,S=a.map(w);return ce(S)?{coordinate:S+m,value:b,offset:m,index:x}:null}).filter(yt);return h}return l&&c?c.map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.ticks&&u!=null?a.ticks(u).map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.domain().map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:n?n[b]:b,index:x,offset:m}:null}).filter(yt)},XF=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]<r)&&(o[0]=r),(!q(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},ZF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0,s=0;s<r;++s){var l=e[s],c=l?.[o];if(c!=null){var u=c[1],d=c[0],p=or(u)?d:u;p>=0?(c[0]=i,i+=p,c[1]=i):(c[0]=a,a+=p,c[1]=a)}}}},JF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0;a<r;++a){var s=e[a],l=s?.[o];if(l!=null){var c=or(l[1])?l[0]:l[1];c>=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},QF={sign:ZF,expand:r$,none:On,silhouette:n$,wiggle:o$,positive:JF},ez=(e,t,r)=>{var n,o=(n=QF[r])!==null&&n!==void 0?n:On,i=t$().keys(t).value((s,l)=>Number(be(s,l,0))).order(Id).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=be(e[u],t[l],0);Array.isArray(d)&&d.length===2&&q(d[0])&&q(d[1])&&(c[0]=d[0],c[1]=d[1])})}),a};function tz(e){return e==null?void 0:String(e)}function Hg(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Te(o[t.dataKey])){var s=pP(r,"value",o[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[i]?r[i].coordinate+n/2:null}var l=be(o,Te(a)?t.dataKey:a),c=t.scale.map(l);return q(c)?c:null}var Gg=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=be(i,t.dataKey,t.scale.domain()[a]);if(Te(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},rz=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},nz=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},oz=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],iz=(e,t,r)=>{if(e!=null)return oz(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=u1(c,t,r),d=nz(u);return!ce(d[0])||!ce(d[1])?l:[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},qg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,co=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=bl(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l?.coordinate||0)-(c?.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0};function Xg(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return eo(eo({},t),{},{dataKey:r,payload:n,value:o,name:i})}function Po(e,t){if(e)return String(e);if(typeof t=="string")return t}var az=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},sz=(e,t)=>t==="centric"?e.angle:e.radius,Tr=e=>e.layout.width,jr=e=>e.layout.height,lz=e=>e.layout.scale,p1=e=>e.layout.margin,_l=N(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Tl=N(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),v1="data-recharts-item-index",m1="data-recharts-item-id",ji=60;function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){cz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=dz(e,"string");return typeof t=="symbol"?t:t+""}function dz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fz=e=>e.brush.height;function pz(e){var t=Tl(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ji;return r+o}return r},0)}function vz(e){var t=Tl(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ji;return r+o}return r},0)}function mz(e){var t=_l(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function hz(e){var t=_l(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Ve=N([Tr,jr,p1,fz,pz,vz,mz,hz,TP,TL],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},d={top:(r.top||0)+a,bottom:(r.bottom||0)+s},p=Ea(Ea({},d),u),v=p.bottom;p.bottom+=n,p=YF(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return Ea(Ea({brushBottom:v},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),gz=N(Ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),_p=N(Tr,jr,(e,t)=>({x:0,y:0,width:e,height:t})),yz=A.createContext(null),ct=()=>A.useContext(yz)!=null,jl=e=>e.brush,Ml=N([jl,Ve,p1],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width})),Fu={},zu={},Bu={},Jg;function bz(){return Jg||(Jg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(r.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let p=null;const v=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},n)},g=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{g(),a=void 0,s=null},h=()=>{u()},b=function(...x){if(o?.aborted)return;a=this,s=x;const w=p==null;v(),l&&w&&u()};return b.schedule=v,b.cancel=m,b.flush=h,o?.addEventListener("abort",m,{once:!0}),b}e.debounce=t})(Bu)),Bu}var Qg;function xz(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bz();function r(n,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const p=t.debounce(function(...m){u=n.apply(this,m),d=null},o,{edges:c}),v=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=n.apply(this,m),d=Date.now(),p.cancel(),p.schedule(),u):(p.apply(this,m),u)},g=()=>(p.flush(),u);return v.cancel=p.cancel,v.flush=g,v}e.debounce=r})(zu)),zu}var ey;function wz(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xz();function r(n,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(n,o,{leading:a,maxWait:o,trailing:s})}e.throttle=r})(Fu)),Fu}var Vu,ty;function Sz(){return ty||(ty=1,Vu=wz().throttle),Vu}var Pz=Sz();const Ez=Jr(Pz);var hs=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===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(r.replace(/%s/g,()=>o[a++]))}},Qt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},h1=(e,t,r)=>{var{width:n=Qt.width,height:o=Qt.height,aspect:i,maxHeight:a}=r,s=An(n)?e:Number(n),l=An(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},Oz={width:0,height:0,overflow:"visible"},Cz={width:0,overflowX:"visible"},Az={height:0,overflowY:"visible"},_z={},Tz=e=>{var{width:t,height:r}=e,n=An(t),o=An(r);return n&&o?Oz:n?Cz:o?Az:_z};function jz(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Qt.width,i=Qt.height):o===void 0?o=n&&n>0?void 0:Qt.width:i===void 0&&(i=n&&n>0?void 0:Qt.height),{width:o,height:i}}function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hd.apply(null,arguments)}function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){Mz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mz(e,t,r){return(t=Nz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nz(e){var t=Iz(e,"string");return typeof t=="symbol"?t:t+""}function Iz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g1=A.createContext(Qt.initialDimension);function kz(e){return ar(e.width)&&ar(e.height)}function y1(e){var{children:t,width:r,height:n}=e,o=A.useMemo(()=>({width:r,height:n}),[r,n]);return kz(o)?f.createElement(g1.Provider,{value:o},t):null}var Tp=()=>A.useContext(g1),Rz=A.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Qt.initialDimension,width:o,height:i,minWidth:a=Qt.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Qt.debounce,id:d,className:p,onResize:v,style:g={}}=e,m=A.useRef(null),h=A.useRef();h.current=v,A.useImperativeHandle(t,()=>m.current);var[b,x]=A.useState({containerWidth:n.width,containerHeight:n.height}),w=A.useCallback((C,M)=>{x($=>{var I=Math.round(C),_=Math.round(M);return $.containerWidth===I&&$.containerHeight===_?$:{containerWidth:I,containerHeight:_}})},[]);A.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return Fn;var C=_=>{var j,R=_[0];if(R!=null){var{width:V,height:z}=R.contentRect;w(V,z),(j=h.current)===null||j===void 0||j.call(h,V,z)}};u>0&&(C=Ez(C,u,{trailing:!0,leading:!1}));var M=new ResizeObserver(C),{width:$,height:I}=m.current.getBoundingClientRect();return w($,I),M.observe(m.current),()=>{M.disconnect()}},[w,u]);var{containerWidth:S,containerHeight:E}=b;hs(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:P,calculatedHeight:O}=h1(S,E,{width:o,height:i,aspect:r,maxHeight:l});return hs(P!=null&&P>0||O!=null&&O>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
68
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),m.warnIfExceeded()),g}}}function Sa(e){return typeof e=="boolean"}var bz=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new UP;if(r&&(Sa(r)?a.push(lz):a.push(cz(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let s={};Sa(n)||(s=n),a.unshift(gz(s))}if(o){let s={};Sa(o)||(s=o),a.push(yz(s))}if(i){let s={};Sa(i)||(s=i),a.unshift(vz(s))}}return a},XP="RTK_autoBatch",Ce=()=>e=>({payload:e,meta:{[XP]:!0}}),Bg=e=>t=>{setTimeout(t,e)},ZP=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Bg(10):e.type==="callback"?e.queueNotification:Bg(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const d=()=>o&&u(),p=n.subscribe(d);return s.add(u),()=>{p(),s.delete(u)}},dispatch(u){try{return o=!u?.meta?.[XP],i=!o,i&&(a||(a=!0,l(c))),n.dispatch(u)}finally{o=!0}}})},xz=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new UP(e);return n&&o.push(ZP(typeof n=="object"?n:void 0)),o};function wz(e){const t=bz(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(Ci(r))l=MP(r);else throw new Error(process.env.NODE_ENV==="production"?me(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?me(2):"`middleware` field must be a callback");let c;if(typeof n=="function"){if(c=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?me(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if(process.env.NODE_ENV!=="production"&&c.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let m=new Set;c.forEach(h=>{if(m.has(h))throw new Error(process.env.NODE_ENV==="production"?me(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");m.add(h)})}let u=ss;o&&(u=uz({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const d=HL(...c),p=xz(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?me(5):"`enhancers` field must be a callback");let v=typeof s=="function"?s(p):p();if(process.env.NODE_ENV!=="production"&&!Array.isArray(v))throw new Error(process.env.NODE_ENV==="production"?me(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&v.some(m=>typeof m!="function"))throw new Error(process.env.NODE_ENV==="production"?me(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!v.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...v);return NP(l,a,g)}function JP(e){const t={},r=[];let n;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?me(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?me(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?me(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?me(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,o},addAsyncThunk(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?me(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function Sz(e){return typeof e=="function"}function Pz(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?me(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=JP(t),i;if(Sz(e))i=()=>Fg(e());else{const s=Fg(e);i=()=>s}function a(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(yr(u)){const v=d(u,l);return v===void 0?u:v}else{if(Vt(u))return VP(u,p=>d(p,l));{const p=d(u,l);if(p===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return u},s)}return a.getInitialState=i,a}var Ez="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Oz=(e=21)=>{let t="",r=e;for(;r--;)t+=Ez[Math.random()*64|0];return t},Cz=Symbol.for("rtk-slice-createasyncthunk");function Az(e,t){return`${e}/${t}`}function _z({creators:e}={}){const t=e?.asyncThunk?.[Cz];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?me(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof n.reducers=="function"?n.reducers(jz()):n.reducers)||{},s=Object.keys(a),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(w,S){const E=typeof w=="string"?w:w.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?me(12):"`context.addCase` cannot be called with an empty action type");if(E in l.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?me(13):"`context.addCase` cannot be called with two reducers for the same action type: "+E);return l.sliceCaseReducersByType[E]=S,c},addMatcher(w,S){return l.sliceMatchers.push({matcher:w,reducer:S}),c},exposeAction(w,S){return l.actionCreators[w]=S,c},exposeCaseReducer(w,S){return l.sliceCaseReducersByName[w]=S,c}};s.forEach(w=>{const S=a[w],E={reducerName:w,type:Az(o,w),createNotation:typeof n.reducers=="function"};Mz(S)?kz(E,S,c,t):Nz(E,S,c)});function u(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?me(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[w={},S=[],E=void 0]=typeof n.extraReducers=="function"?JP(n.extraReducers):[n.extraReducers],P={...w,...l.sliceCaseReducersByType};return Pz(n.initialState,O=>{for(let C in P)O.addCase(C,P[C]);for(let C of l.sliceMatchers)O.addMatcher(C.matcher,C.reducer);for(let C of S)O.addMatcher(C.matcher,C.reducer);E&&O.addDefaultCase(E)})}const d=w=>w,p=new Map,v=new WeakMap;let g;function m(w,S){return g||(g=u()),g(w,S)}function h(){return g||(g=u()),g.getInitialState()}function b(w,S=!1){function E(O){let C=O[w];if(typeof C>"u"){if(S)C=wa(v,E,h);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(15):"selectSlice returned undefined for an uninjected slice reducer")}return C}function P(O=d){const C=wa(p,S,()=>new WeakMap);return wa(C,O,()=>{const N={};for(const[$,I]of Object.entries(n.selectors??{}))N[$]=Tz(I,O,()=>wa(v,O,h),S);return N})}return{reducerPath:w,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const x={name:o,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:h,...b(i),injectInto(w,{reducerPath:S,...E}={}){const P=S??i;return w.inject({reducerPath:P,reducer:m},E),{...x,...b(P,!0)}}};return x}}function Tz(e,t,r,n){function o(i,...a){let s=t(i);if(typeof s>"u"){if(n)s=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?me(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var xt=_z();function jz(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Nz({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!Iz(n))throw new Error(process.env.NODE_ENV==="production"?me(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Rt(e,a):Rt(e))}function Mz(e){return e._reducerDefinitionType==="asyncThunk"}function Iz(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kz({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?me(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,d=o(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),c&&n.addMatcher(d.settled,c),n.exposeCaseReducer(t,{fulfilled:a||Pa,pending:s||Pa,rejected:l||Pa,settled:c||Pa})}function Pa(){}var Rz="task",QP="listener",e1="completed",Cp="cancelled",Dz=`task-${Cp}`,$z=`task-${e1}`,Kd=`${QP}-${Cp}`,Lz=`${QP}-${e1}`,Al=class{constructor(e){this.code=e,this.message=`${Rz} ${Cp} (reason: ${e})`}name="TaskAbortError";message},Ap=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?me(32):`${t} is not a function`)},vs=()=>{},t1=(e,t=vs)=>(e.catch(t),e),r1=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),xn=e=>{if(e.aborted)throw new Al(e.reason)};function n1(e,t){let r=vs;return new Promise((n,o)=>{const i=()=>o(new Al(e.reason));if(e.aborted){i();return}r=r1(e,i),t.finally(()=>r()).then(n,o)}).finally(()=>{r=vs})}var zz=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Al?"cancelled":"rejected",error:r}}finally{t?.()}},ms=e=>t=>t1(n1(e,t).then(r=>(xn(e),r))),o1=e=>{const t=ms(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:io}=Object,Vg={},_i="listenerMiddleware",Fz=(e,t)=>{const r=n=>r1(e,()=>n.abort(e.reason));return(n,o)=>{Ap(n,"taskExecutor");const i=new AbortController;r(i);const a=zz(async()=>{xn(e),xn(i.signal);const s=await n({pause:ms(i.signal),delay:o1(i.signal),signal:i.signal});return xn(i.signal),s},()=>i.abort($z));return o?.autoJoin&&t.push(a.catch(vs)),{result:ms(e)(a),cancel(){i.abort(Dz)}}}},Bz=(e,t)=>{const r=async(n,o)=>{xn(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(d,p)=>{p.unsubscribe(),l([d,p.getState(),p.getOriginalState()])}});i=()=>{u(),c()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await n1(t,Promise.race(s));return xn(t),l}finally{i()}};return(n,o)=>t1(r(n,o))},i1=e=>{let{type:t,actionCreator:r,matcher:n,predicate:o,effect:i}=e;if(t)o=Rt(t).match;else if(r)t=r.type,o=r.match;else if(n)o=n;else if(!o)throw new Error(process.env.NODE_ENV==="production"?me(21):"Creating or removing a listener requires one of the known fields for matching an action");return Ap(i,"options.listener"),{predicate:o,type:t,effect:i}},a1=io(e=>{const{type:t,predicate:r,effect:n}=i1(e);return{id:Oz(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?me(22):"Unsubscribe not initialized")}}},{withTypes:()=>a1}),Wg=(e,t)=>{const{type:r,effect:n,predicate:o}=i1(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===o)&&i.effect===n)},Ud=e=>{e.pending.forEach(t=>{t.abort(Kd)})},Vz=(e,t)=>()=>{for(const r of t.keys())Ud(r);e.clear()},Kg=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},s1=io(Rt(`${_i}/add`),{withTypes:()=>s1}),Wz=Rt(`${_i}/removeAll`),l1=io(Rt(`${_i}/remove`),{withTypes:()=>l1}),Kz=(...e)=>{console.error(`${_i}/error`,...e)},Ti=(e={})=>{const t=new Map,r=new Map,n=v=>{const g=r.get(v)??0;r.set(v,g+1)},o=v=>{const g=r.get(v)??1;g===1?r.delete(v):r.set(v,g-1)},{extra:i,onError:a=Kz}=e;Ap(a,"onError");const s=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),g=>{v.unsubscribe(),g?.cancelActive&&Ud(v)}),l=v=>{const g=Wg(t,v)??a1(v);return s(g)};io(l,{withTypes:()=>l});const c=v=>{const g=Wg(t,v);return g&&(g.unsubscribe(),v.cancelActive&&Ud(g)),!!g};io(c,{withTypes:()=>c});const u=async(v,g,m,h)=>{const b=new AbortController,x=Bz(l,b.signal),w=[];try{v.pending.add(b),n(v),await Promise.resolve(v.effect(g,io({},m,{getOriginalState:h,condition:(S,E)=>x(S,E).then(Boolean),take:x,delay:o1(b.signal),pause:ms(b.signal),extra:i,signal:b.signal,fork:Fz(b.signal,w),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((S,E,P)=>{S!==b&&(S.abort(Kd),P.delete(S))})},cancel:()=>{b.abort(Kd),v.pending.delete(b)},throwIfCancelled:()=>{xn(b.signal)}})))}catch(S){S instanceof Al||Kg(a,S,{raisedBy:"effect"})}finally{await Promise.all(w),b.abort(Lz),o(v),v.pending.delete(b)}},d=Vz(t,r);return{middleware:v=>g=>m=>{if(!Sp(m))return g(m);if(s1.match(m))return l(m.payload);if(Wz.match(m)){d();return}if(l1.match(m))return c(m.payload);let h=v.getState();const b=()=>{if(h===Vg)throw new Error(process.env.NODE_ENV==="production"?me(23):`${_i}: getOriginalState can only be called synchronously`);return h};let x;try{if(x=g(m),t.size>0){const w=v.getState(),S=Array.from(t.values());for(const E of S){let P=!1;try{P=E.predicate(m,w,h)}catch(O){P=!1,Kg(a,O,{raisedBy:"predicate"})}P&&u(E,m,v,b)}}}finally{h=Vg}return x},startListening:l,stopListening:c,clearListeners:d}};function me(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Uz={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},c1=xt({name:"chartLayout",initialState:Uz,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,o,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Hz,setLayout:Gz,setChartSize:qz,setScale:Yz}=c1.actions,Xz=c1.reducer;function u1(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ce(e){return Number.isFinite(e)}function ar(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ug(Object(r),!0).forEach(function(n){Zz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zz(e,t,r){return(t=Jz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jz(e){var t=Qz(e,"string");return typeof t=="symbol"?t:t+""}function Qz(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function be(e,t,r){return Te(e)||Te(t)?r:ir(t)?Cn(e,t,r):typeof t=="function"?t(e):r}var eF=(e,t,r)=>{if(t&&r){var{width:n,height:o}=r,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&q(e[i]))return eo(eo({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&q(e[a]))return eo(eo({},e),{},{[a]:e[a]+(o||0)})}return e},_r=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",d1=(e,t,r,n)=>{if(n)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===r&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(r),a},f1=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:p,axisType:v}=e;if(!a)return null;var g=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,m=o==="category"&&a.bandwidth?a.bandwidth()/g:0;if(m=v==="angleAxis"&&i&&i.length>=2?qe(i[0]-i[1])*2*m:m,d||p){var h=(d||p||[]).map((b,x)=>{var w=n?n.indexOf(b):b,S=a.map(w);return ce(S)?{coordinate:S+m,value:b,offset:m,index:x}:null}).filter(yt);return h}return l&&c?c.map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.ticks&&u!=null?a.ticks(u).map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:b,index:x,offset:m}:null}).filter(yt):a.domain().map((b,x)=>{var w=a.map(b);return ce(w)?{coordinate:w+m,value:n?n[b]:b,index:x,offset:m}:null}).filter(yt)},tF=(e,t)=>{if(!t||t.length!==2||!q(t[0])||!q(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!q(e[0])||e[0]<r)&&(o[0]=r),(!q(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},rF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0,s=0;s<r;++s){var l=e[s],c=l?.[o];if(c!=null){var u=c[1],d=c[0],p=or(u)?d:u;p>=0?(c[0]=i,i+=p,c[1]=i):(c[0]=a,a+=p,c[1]=a)}}}},nF=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var o=0;o<n;++o)for(var i=0,a=0;a<r;++a){var s=e[a],l=s?.[o];if(l!=null){var c=or(l[1])?l[0]:l[1];c>=0?(l[0]=i,i+=c,l[1]=i):(l[0]=0,l[1]=0)}}}},oF={sign:rF,expand:s$,none:On,silhouette:l$,wiggle:c$,positive:nF},iF=(e,t,r)=>{var n,o=(n=oF[r])!==null&&n!==void 0?n:On,i=a$().keys(t).value((s,l)=>Number(be(s,l,0))).order(Id).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=be(e[u],t[l],0);Array.isArray(d)&&d.length===2&&q(d[0])&&q(d[1])&&(c[0]=d[0],c[1]=d[1])})}),a};function aF(e){return e==null?void 0:String(e)}function Hg(e){var{axis:t,ticks:r,bandSize:n,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Te(o[t.dataKey])){var s=pP(r,"value",o[t.dataKey]);if(s)return s.coordinate+n/2}return r!=null&&r[i]?r[i].coordinate+n/2:null}var l=be(o,Te(a)?t.dataKey:a),c=t.scale.map(l);return q(c)?c:null}var Gg=e=>{var{axis:t,ticks:r,offset:n,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return r[a]?r[a].coordinate+n:null;var s=be(i,t.dataKey,t.scale.domain()[a]);if(Te(s))return null;var l=t.scale.map(s);return q(l)?l-o/2+n:null},sF=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},lF=e=>{var t=e.flat(2).filter(q);return[Math.min(...t),Math.max(...t)]},cF=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],uF=(e,t,r)=>{if(e!=null)return cF(Object.keys(e).reduce((n,o)=>{var i=e[o];if(!i)return n;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=u1(c,t,r),d=lF(u);return!ce(d[0])||!ce(d[1])?l:[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},qg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,co=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=bl(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min((l?.coordinate||0)-(c?.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0};function Xg(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:o,name:i}=e;return eo(eo({},t),{},{dataKey:r,payload:n,value:o,name:i})}function Po(e,t){if(e)return String(e);if(typeof t=="string")return t}var dF=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},fF=(e,t)=>t==="centric"?e.angle:e.radius,Tr=e=>e.layout.width,jr=e=>e.layout.height,pF=e=>e.layout.scale,p1=e=>e.layout.margin,_l=M(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Tl=M(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),v1="data-recharts-item-index",m1="data-recharts-item-id",ji=60;function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){vF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vF(e,t,r){return(t=mF(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mF(e){var t=hF(e,"string");return typeof t=="symbol"?t:t+""}function hF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gF=e=>e.brush.height;function yF(e){var t=Tl(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ji;return r+o}return r},0)}function bF(e){var t=Tl(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var o=typeof n.width=="number"?n.width:ji;return r+o}return r},0)}function xF(e){var t=_l(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function wF(e){var t=_l(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Ve=M([Tr,jr,p1,gF,yF,bF,xF,wF,TP,kL],(e,t,r,n,o,i,a,s,l,c)=>{var u={left:(r.left||0)+o,right:(r.right||0)+i},d={top:(r.top||0)+a,bottom:(r.bottom||0)+s},p=Ea(Ea({},d),u),v=p.bottom;p.bottom+=n,p=eF(p,l,c);var g=e-p.left-p.right,m=t-p.top-p.bottom;return Ea(Ea({brushBottom:v},p),{},{width:Math.max(g,0),height:Math.max(m,0)})}),SF=M(Ve,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),_p=M(Tr,jr,(e,t)=>({x:0,y:0,width:e,height:t})),PF=A.createContext(null),ct=()=>A.useContext(PF)!=null,jl=e=>e.brush,Nl=M([jl,Ve,p1],(e,t,r)=>({height:e.height,x:q(e.x)?e.x:t.left,y:q(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:q(e.width)?e.width:t.width})),zu={},Fu={},Bu={},Jg;function EF(){return Jg||(Jg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(r.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let p=null;const v=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,d()},n)},g=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{g(),a=void 0,s=null},h=()=>{u()},b=function(...x){if(o?.aborted)return;a=this,s=x;const w=p==null;v(),l&&w&&u()};return b.schedule=v,b.cancel=m,b.flush=h,o?.addEventListener("abort",m,{once:!0}),b}e.debounce=t})(Bu)),Bu}var Qg;function OF(){return Qg||(Qg=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EF();function r(n,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const p=t.debounce(function(...m){u=n.apply(this,m),d=null},o,{edges:c}),v=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=n.apply(this,m),d=Date.now(),p.cancel(),p.schedule(),u):(p.apply(this,m),u)},g=()=>(p.flush(),u);return v.cancel=p.cancel,v.flush=g,v}e.debounce=r})(Fu)),Fu}var ey;function CF(){return ey||(ey=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OF();function r(n,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(n,o,{leading:a,maxWait:o,trailing:s})}e.throttle=r})(zu)),zu}var Vu,ty;function AF(){return ty||(ty=1,Vu=CF().throttle),Vu}var _F=AF();const TF=Jr(_F);var hs=function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===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(r.replace(/%s/g,()=>o[a++]))}},Qt={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},h1=(e,t,r)=>{var{width:n=Qt.width,height:o=Qt.height,aspect:i,maxHeight:a}=r,s=An(n)?e:Number(n),l=An(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},jF={width:0,height:0,overflow:"visible"},NF={width:0,overflowX:"visible"},MF={height:0,overflowY:"visible"},IF={},kF=e=>{var{width:t,height:r}=e,n=An(t),o=An(r);return n&&o?jF:n?NF:o?MF:IF};function RF(e){var{width:t,height:r,aspect:n}=e,o=t,i=r;return o===void 0&&i===void 0?(o=Qt.width,i=Qt.height):o===void 0?o=n&&n>0?void 0:Qt.width:i===void 0&&(i=n&&n>0?void 0:Qt.height),{width:o,height:i}}function Hd(){return Hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hd.apply(null,arguments)}function ry(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ny(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ry(Object(r),!0).forEach(function(n){DF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DF(e,t,r){return(t=$F(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $F(e){var t=LF(e,"string");return typeof t=="symbol"?t:t+""}function LF(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g1=A.createContext(Qt.initialDimension);function zF(e){return ar(e.width)&&ar(e.height)}function y1(e){var{children:t,width:r,height:n}=e,o=A.useMemo(()=>({width:r,height:n}),[r,n]);return zF(o)?f.createElement(g1.Provider,{value:o},t):null}var Tp=()=>A.useContext(g1),FF=A.forwardRef((e,t)=>{var{aspect:r,initialDimension:n=Qt.initialDimension,width:o,height:i,minWidth:a=Qt.minWidth,minHeight:s,maxHeight:l,children:c,debounce:u=Qt.debounce,id:d,className:p,onResize:v,style:g={}}=e,m=A.useRef(null),h=A.useRef();h.current=v,A.useImperativeHandle(t,()=>m.current);var[b,x]=A.useState({containerWidth:n.width,containerHeight:n.height}),w=A.useCallback((C,N)=>{x($=>{var I=Math.round(C),_=Math.round(N);return $.containerWidth===I&&$.containerHeight===_?$:{containerWidth:I,containerHeight:_}})},[]);A.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return zn;var C=_=>{var j,R=_[0];if(R!=null){var{width:V,height:F}=R.contentRect;w(V,F),(j=h.current)===null||j===void 0||j.call(h,V,F)}};u>0&&(C=TF(C,u,{trailing:!0,leading:!1}));var N=new ResizeObserver(C),{width:$,height:I}=m.current.getBoundingClientRect();return w($,I),N.observe(m.current),()=>{N.disconnect()}},[w,u]);var{containerWidth:S,containerHeight:E}=b;hs(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:P,calculatedHeight:O}=h1(S,E,{width:o,height:i,aspect:r,maxHeight:l});return hs(P!=null&&P>0||O!=null&&O>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
69
69
|
please check the style of container, or the props width(%s) and height(%s),
|
|
70
70
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
71
|
-
height and width.`,P,O,o,i,a,s,r),f.createElement("div",{id:d?"".concat(d):void 0,className:de("recharts-responsive-container",p),style:ny(ny({},g),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},f.createElement("div",{style:Tz({width:o,height:i})},f.createElement(y1,{width:P,height:O},c)))}),jp=A.forwardRef((e,t)=>{var r=Tp();if(ar(r.width)&&ar(r.height))return e.children;var{width:n,height:o}=jz({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=h1(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?f.createElement(y1,{width:i,height:a},e.children):f.createElement(Rz,Hd({},e,{width:n,height:o,ref:t}))});function Mp(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Nl=()=>{var e,t=ct(),r=J(gz),n=J(Ml),o=(e=J(jl))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},Dz={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},b1=()=>{var e;return(e=J(Ve))!==null&&e!==void 0?e:Dz},Np=()=>J(Tr),Ip=()=>J(jr),$z=()=>J(e=>e.layout.margin),ve=e=>e.layout.layoutType,zn=()=>J(ve),x1=()=>{var e=zn();if(e==="horizontal"||e==="vertical")return e},w1=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},Lz=()=>{var e=zn();return e!==void 0},Mi=e=>{var t=Se(),r=ct(),{width:n,height:o}=e,i=Tp(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),A.useEffect(()=>{!r&&ar(a)&&ar(s)&&t(WF({width:a,height:s}))},[t,r,a,s]),null},S1=Symbol.for("immer-nothing"),oy=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state"),Fz=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function gt(e,...t){if(process.env.NODE_ENV!=="production"){const r=Fz[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var oi=Object.getPrototypeOf;function uo(e){return!!e&&!!e[_t]}function Tn(e){return e?P1(e)||Array.isArray(e)||!!e[oy]||!!e.constructor?.[oy]||Ni(e)||kl(e):!1}var zz=Object.prototype.constructor.toString(),iy=new WeakMap;function P1(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=iy.get(r);return n===void 0&&(n=Function.toString.call(r),iy.set(r,n)),n===zz}function gs(e,t,r=!0){Il(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Il(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Ni(e)?2:kl(e)?3:0}function Gd(e,t){return Il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E1(e,t,r){const n=Il(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Bz(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ni(e){return e instanceof Map}function kl(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function qd(e,t){if(Ni(e))return new Map(e);if(kl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=P1(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[_t];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(oi(e),n)}else{const n=oi(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function kp(e,t=!1){return Rl(e)||uo(e)||!Tn(e)||(Il(e)>1&&Object.defineProperties(e,{set:Oa,add:Oa,clear:Oa,delete:Oa}),Object.freeze(e),t&&Object.values(e).forEach(r=>kp(r,!0))),e}function Vz(){gt(2)}var Oa={value:Vz};function Rl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Wz={};function jn(e){const t=Wz[e];return t||gt(0,e),t}var ii;function O1(){return ii}function Kz(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ay(e,t){t&&(jn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yd(e){Xd(e),e.drafts_.forEach(Uz),e.drafts_=null}function Xd(e){e===ii&&(ii=e.parent_)}function sy(e){return ii=Kz(ii,e)}function Uz(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ly(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Yd(t),gt(4)),Tn(e)&&(e=ys(t,e),t.parent_||bs(t,e)),t.patches_&&jn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=ys(t,r,[]),Yd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==S1?e:void 0}function ys(e,t,r){if(Rl(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[_t];if(!o)return gs(t,(i,a)=>cy(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return bs(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),gs(a,(l,c)=>cy(e,o,i,l,c,r,s),n),bs(e,i,!1),r&&e.patches_&&jn("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function cy(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Rl(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&>(5),uo(o)){const l=i&&t&&t.type_!==3&&!Gd(t.assigned_,n)?i.concat(n):void 0,c=ys(e,o,l);if(E1(r,n,c),uo(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(Tn(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;ys(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Ni(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&bs(e,o)}}}function bs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kp(t,r)}function Hz(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:O1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Rp;r&&(o=[n],i=ai);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Rp={get(e,t){if(t===_t)return e;const r=dn(e);if(!Gd(r,t))return Gz(e,r,t);const n=r[t];return e.finalized_||!Tn(n)?n:n===Wu(e.base_,t)?(Ku(e),e.copy_[t]=Jd(n,e)):n},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,r){const n=C1(dn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Wu(dn(e),t),i=o?.[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Bz(r,o)&&(r!==void 0||Gd(e.base_,t)))return!0;Ku(e),Zd(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Wu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ku(e),Zd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=dn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){gt(11)},getPrototypeOf(e){return oi(e.base_)},setPrototypeOf(){gt(12)}},ai={};gs(Rp,(e,t)=>{ai[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ai.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&>(13),ai.set.call(this,e,t,void 0)};ai.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&>(14),Rp.set.call(this,e[0],t,r,e[0])};function Wu(e,t){const r=e[_t];return(r?dn(r):e)[t]}function Gz(e,t,r){const n=C1(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function C1(e,t){if(!(t in e))return;let r=oi(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=oi(r)}}function Zd(e){e.modified_||(e.modified_=!0,e.parent_&&Zd(e.parent_))}function Ku(e){e.copy_||(e.copy_=qd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qz=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&>(6),n!==void 0&&typeof n!="function"&>(7);let o;if(Tn(t)){const i=sy(this),a=Jd(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Yd(i):Xd(i)}return ay(i,n),ly(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===S1&&(o=void 0),this.autoFreeze_&&kp(o,!0),n){const i=[],a=[];jn("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else gt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Tn(e)||gt(8),uo(e)&&(e=Yz(e));const t=sy(this),r=Jd(e,void 0);return r[_t].isManual_=!0,Xd(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&>(9);const{scope_:n}=r;return ay(n,t),ly(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=jn("Patches").applyPatches_;return uo(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Jd(e,t){const r=Ni(e)?jn("MapSet").proxyMap_(e,t):kl(e)?jn("MapSet").proxySet_(e,t):Hz(e,t);return(t?t.scope_:O1()).drafts_.push(r),r}function Yz(e){return uo(e)||gt(10,e),A1(e)}function A1(e){if(!Tn(e)||Rl(e))return e;const t=e[_t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=qd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=qd(e,!0);return gs(r,(o,i)=>{E1(r,o,A1(i))},n),t&&(t.finalized_=!1),r}var Xz=new qz;Xz.produce;var Zz={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},_1=xt({name:"legend",initialState:Zz,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ce()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:Ce()},removeLegendPayload:{reducer(e,t){var r=Bt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ce()}}}),{setLegendSize:uy,setLegendSettings:Jz,addLegendPayload:T1,replaceLegendPayload:j1,removeLegendPayload:M1}=_1.actions,Qz=_1.reducer,eB=["contextPayload"];function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qd.apply(null,arguments)}function dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(r),!0).forEach(function(n){tB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tB(e,t,r){return(t=rB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rB(e){var t=nB(e,"string");return typeof t=="symbol"?t:t+""}function nB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oB(e,t){if(e==null)return{};var r,n,o=iB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function iB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function aB(e){return e.value}function sB(e){var{contextPayload:t}=e,r=oB(e,eB),n=EP(t,e.payloadUniqBy,aB),o=fo(fo({},r),{},{payload:n});return f.isValidElement(e.content)?f.cloneElement(e.content,o):typeof e.content=="function"?f.createElement(e.content,o):f.createElement(I$,o)}function lB(e,t,r,n,o,i){var{layout:a,align:s,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?c={left:((n||0)-i.width)/2}:c=s==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((o||0)-i.height)/2}:u=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),fo(fo({},c),u)}function cB(e){var t=Se();return A.useEffect(()=>{t(Jz(e))},[t,e]),null}function uB(e){var t=Se();return A.useEffect(()=>(t(uy(e)),()=>{t(uy({width:0,height:0}))}),[t,e]),null}function dB(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var fB={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Dl(e){var t=Le(e,fB),r=NL(),n=O2(),o=$z(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=jP([r]),d=Np(),p=Ip();if(d==null||p==null)return null;var v=d-(o?.left||0)-(o?.right||0),g=dB(t.layout,a,i,v),m=l?s:fo(fo({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},lB(s,t,o,d,p,c)),s),h=l??n;if(h==null||r==null)return null;var b=f.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},f.createElement(cB,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&f.createElement(uB,{width:c.width,height:c.height}),f.createElement(sB,Qd({},t,g,{margin:o,chartWidth:d,chartHeight:p,contextPayload:r})));return xi.createPortal(b,h)}Dl.displayName="Legend";function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(null,arguments)}function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){pB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pB(e,t,r){return(t=vB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vB(e){var t=mB(e,"string");return typeof t=="symbol"?t:t+""}function mB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hB(e){return Array.isArray(e)&&ir(e[0])&&ir(e[1])?e.join(" ~ "):e}var Xn={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},gB=e=>{var{separator:t=Xn.separator,contentStyle:r,itemStyle:n,labelStyle:o=Xn.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=Xn.accessibilityLayer}=e,v=()=>{if(i&&i.length){var E={padding:0,margin:0},P=(s?bl(i,s):i).map((O,C)=>{if(O.type==="none")return null;var M=O.formatter||a||hB,{value:$,name:I}=O,_=$,j=I;if(M){var R=M($,I,O,C,i);if(Array.isArray(R))[_,j]=R;else if(R!=null)_=R;else return null}var V=Lo(Lo({},Xn.itemStyle),{},{color:O.color||Xn.itemStyle.color},n);return f.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:V},ir(j)?f.createElement("span",{className:"recharts-tooltip-item-name"},j):null,ir(j)?f.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,f.createElement("span",{className:"recharts-tooltip-item-value"},_),f.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return f.createElement("ul",{className:"recharts-tooltip-item-list",style:E},P)}return null},g=Lo(Lo({},Xn.contentStyle),r),m=Lo({margin:0},o),h=!Te(u),b=h?u:"",x=de("recharts-default-tooltip",l),w=de("recharts-tooltip-label",c);h&&d&&i!==void 0&&i!==null&&(b=d(u,i));var S=p?{role:"status","aria-live":"assertive"}:{};return f.createElement("div",ef({className:x,style:g},S),f.createElement("p",{className:w,style:m},f.isValidElement(b)?b:"".concat(b)),v())},Fo="recharts-tooltip-wrapper",yB={visibility:"hidden"};function bB(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(Fo,{["".concat(Fo,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(Fo,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(Fo,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(Fo,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function py(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&q(i[n]))return i[n];var u=r[n]-s-(o>0?o:0),d=r[n]+o;if(t[n])return a[n]?u:d;var p=l[n];if(p==null)return 0;if(a[n]){var v=u,g=p;return v<g?Math.max(d,p):Math.max(u,p)}if(c==null)return 0;var m=d+s,h=p+c;return m>h?Math.max(u,p):Math.max(d,p)}function xB(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function wB(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,d,p;return s.height>0&&s.width>0&&r?(d=py({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=py({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=xB({translateX:d,translateY:p,useTranslate3d:l})):u=yB,{cssProperties:u,cssClasses:bB({translateX:d,translateY:p,coordinate:r})}}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vy(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tf(e,t,r){return(t=SB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SB(e){var t=PB(e,"string");return typeof t=="symbol"?t:t+""}function PB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class EB extends A.PureComponent{constructor(){super(...arguments),tf(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),tf(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:p,viewBox:v,wrapperStyle:g,lastBoundingBox:m,innerRef:h,hasPortalFromProps:b}=this.props,x=typeof c=="number"?c:c.x,w=typeof c=="number"?c:c.y,{cssClasses:S,cssProperties:E}=wB({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:v}),P=b?{}:Ca(Ca({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=Ca(Ca({},P),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return f.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:O,ref:h},i)}}var N1=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(null,arguments)}function my(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function hy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(n){OB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OB(e,t,r){return(t=CB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CB(e){var t=AB(e,"string");return typeof t=="symbol"?t:t+""}function AB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gy={curveBasisClosed:K2,curveBasisOpen:U2,curveBasis:W2,curveBumpX:T2,curveBumpY:j2,curveLinearClosed:H2,curveLinear:gl,curveMonotoneX:G2,curveMonotoneY:q2,curveNatural:Y2,curveStep:X2,curveStepAfter:J2,curveStepBefore:Z2},xs=e=>ce(e.x)&&ce(e.y),yy=e=>e.base!=null&&xs(e.base)&&xs(e),zo=e=>e.x,Bo=e=>e.y,_B=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Ei(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=gy["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return gy[r]||gl},by={connectNulls:!1,type:"linear"},TB=e=>{var{type:t=by.type,points:r=[],baseLine:n,layout:o,connectNulls:i=by.connectNulls}=e,a=_B(t,o),s=i?r.filter(xs):r;if(Array.isArray(n)){var l,c=r.map((g,m)=>hy(hy({},g),{},{base:n[m]}));o==="vertical"?l=ma().y(Bo).x1(zo).x0(g=>g.base.x):l=ma().x(zo).y1(Bo).y0(g=>g.base.y);var u=l.defined(yy).curve(a),d=i?c.filter(yy):c;return u(d)}var p;o==="vertical"&&q(n)?p=ma().y(Bo).x1(zo).x0(n):q(n)?p=ma().x(zo).y1(Bo).y0(n):p=eP().x(zo).y(Bo);var v=p.defined(xs).curve(a);return v(s)},Dp=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=zn();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?TB(a):n;return f.createElement("path",rf({},At(e),yp(e),{className:de("recharts-curve",t),d:s===null?void 0:s,ref:o}))},jB=["x","y","top","left","width","height","className"];function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(null,arguments)}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function MB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(r),!0).forEach(function(n){NB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NB(e,t,r){return(t=IB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IB(e){var t=kB(e,"string");return typeof t=="symbol"?t:t+""}function kB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RB(e,t){if(e==null)return{};var r,n,o=DB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function DB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var $B=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),LB=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=RB(e,jB),c=MB({x:t,y:r,top:n,left:o,width:i,height:a},l);return!q(t)||!q(r)||!q(i)||!q(a)||!q(n)||!q(o)?null:f.createElement("path",nf({},mt(c),{className:de("recharts-cross",s),d:$B(t,r,i,a,n,o)}))};function FB(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){zB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zB(e,t,r){return(t=BB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BB(e){var t=VB(e,"string");return typeof t=="symbol"?t:t+""}function VB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),I1=(e,t,r)=>e.map(n=>"".concat(WB(n)," ").concat(t,"ms ").concat(r)).join(","),KB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),si=(e,t)=>Object.keys(t).reduce((r,n)=>Sy(Sy({},r),{},{[n]:e(n,t[n])}),{});function Py(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Py(Object(r),!0).forEach(function(n){UB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UB(e,t,r){return(t=HB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HB(e){var t=GB(e,"string");return typeof t=="symbol"?t:t+""}function GB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ws=(e,t,r)=>e+(t-e)*r,of=e=>{var{from:t,to:r}=e;return t!==r},k1=(e,t,r)=>{var n=si((o,i)=>{if(of(i)){var[a,s]=e(i.from,i.to,i.velocity);return ze(ze({},i),{},{from:a,velocity:s})}return i},t);return r<1?si((o,i)=>of(i)&&n[o]!=null?ze(ze({},i),{},{velocity:ws(i.velocity,n[o].velocity,r),from:ws(i.from,n[o].from,r)}):i,t):k1(e,n,r-1)};function qB(e,t,r,n,o,i){var a,s=n.reduce((p,v)=>ze(ze({},p),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>si((p,v)=>v.from,s),c=()=>!Object.values(s).filter(of).length,u=null,d=p=>{a||(a=p);var v=p-a,g=v/r.dt;s=k1(r,s,g),o(ze(ze(ze({},e),t),l())),a=p,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var p;(p=u)===null||p===void 0||p()})}function YB(e,t,r,n,o,i,a){var s=null,l=o.reduce((d,p)=>{var v=e[p],g=t[p];return v==null||g==null?d:ze(ze({},d),{},{[p]:[v,g]})},{}),c,u=d=>{c||(c=d);var p=(d-c)/n,v=si((m,h)=>ws(...h,r(p)),l);if(i(ze(ze(ze({},e),t),v)),p<1)s=a.setTimeout(u);else{var g=si((m,h)=>ws(...h,r(1)),l);i(ze(ze(ze({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const XB=(e,t,r,n,o,i)=>{var a=KB(e,t);return r==null?()=>(o(ze(ze({},e),t)),()=>{}):r.isStepper===!0?qB(e,t,r,a,o,i):YB(e,t,r,n,a,o,i)};var Ss=1e-4,R1=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],D1=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Ey=(e,t)=>r=>{var n=R1(e,t);return D1(n,r)},ZB=(e,t)=>r=>{var n=R1(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return D1(o,r)},JB=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},QB=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var o=JB(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},e3=(e,t,r,n)=>{var o=Ey(e,r),i=Ey(t,n),a=ZB(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,p=0;p<8;++p){var v=o(d)-u,g=a(d);if(Math.abs(v-u)<Ss||g<Ss)return i(d);d=s(d-v/g)}return i(d)};return l.isStepper=!1,l},Oy=function(){return e3(...QB(...arguments))},t3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,d=l+(c-u)*o/1e3,p=l*o/1e3+a;return Math.abs(p-s)<Ss&&Math.abs(d)<Ss?[s,0]:[p,d]};return i.isStepper=!0,i.dt=o,i},r3=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Oy(e);case"spring":return t3();default:if(e.split("(")[0]==="cubic-bezier")return Oy(e)}return typeof e=="function"?e:null};function n3(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}class o3{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}}function i3(){return n3(new o3)}var a3=A.createContext(i3);function s3(e,t){var r=A.useContext(a3);return A.useMemo(()=>t??r(e),[e,t,r])}var l3=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),$l={isSsr:l3()},c3={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Cy={t:0},Uu={t:1};function Ii(e){var t=Le(e,c3),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!$l.isSsr:r,d=s3(t.animationId,t.animationManager),[p,v]=A.useState(u?Cy:Uu),g=A.useRef(null);return A.useEffect(()=>{u||v(Uu)},[u]),A.useEffect(()=>{if(!u||!n)return Fn;var m=XB(Cy,Uu,r3(i),o,v,d.getTimeoutController()),h=()=>{g.current=m()};return d.start([l,a,h,o,s]),()=>{d.stop(),g.current&&g.current(),s()}},[u,n,o,i,a,l,s,d]),c(p.t)}function ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(ei(t)),n=A.useRef(e);return n.current!==e&&(r.current=ei(t),n.current=e),r.current}var u3=["radius"],d3=["radius"],Ay,_y,Ty,jy,My,Ny,Iy,ky,Ry,Dy;function $y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(r),!0).forEach(function(n){f3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f3(e,t,r){return(t=p3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p3(e){var t=v3(e,"string");return typeof t=="symbol"?t:t+""}function v3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(null,arguments)}function Fy(e,t){if(e==null)return{};var r,n,o=m3(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zy=(e,t,r,n,o)=>{var i=Vr(r),a=Vr(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,d;if(s>0&&Array.isArray(o)){for(var p=[0,0,0,0],v=0,g=4;v<g;v++){var m,h=(m=o[v])!==null&&m!==void 0?m:0;p[v]=h>s?s:h}d=Ne(Ay||(Ay=qt(["M",",",""])),e,t+l*p[0]),p[0]>0&&(d+=Ne(_y||(_y=qt(["A ",",",",0,0,",",",",",""])),p[0],p[0],u,e+c*p[0],t)),d+=Ne(Ty||(Ty=qt(["L ",",",""])),e+r-c*p[1],t),p[1]>0&&(d+=Ne(jy||(jy=qt(["A ",",",",0,0,",`,
|
|
72
|
-
`,",",""])),p[1],p[1],u,e+r,t+l*p[1])),d+=
|
|
73
|
-
`,",",""])),p[2],p[2],u,e+r-c*p[2],t+n)),d+=
|
|
74
|
-
`,",",""])),p[3],p[3],u,e,t+n-l*p[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);d=
|
|
71
|
+
height and width.`,P,O,o,i,a,s,r),f.createElement("div",{id:d?"".concat(d):void 0,className:de("recharts-responsive-container",p),style:ny(ny({},g),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},f.createElement("div",{style:kF({width:o,height:i})},f.createElement(y1,{width:P,height:O},c)))}),jp=A.forwardRef((e,t)=>{var r=Tp();if(ar(r.width)&&ar(r.height))return e.children;var{width:n,height:o}=RF({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=h1(void 0,void 0,{width:n,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return q(i)&&q(a)?f.createElement(y1,{width:i,height:a},e.children):f.createElement(FF,Hd({},e,{width:n,height:o,ref:t}))});function Np(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Ml=()=>{var e,t=ct(),r=J(SF),n=J(Nl),o=(e=J(jl))===null||e===void 0?void 0:e.padding;return!t||!n||!o?r:{width:n.width-o.left-o.right,height:n.height-o.top-o.bottom,x:o.left,y:o.top}},BF={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},b1=()=>{var e;return(e=J(Ve))!==null&&e!==void 0?e:BF},Mp=()=>J(Tr),Ip=()=>J(jr),VF=()=>J(e=>e.layout.margin),ve=e=>e.layout.layoutType,Fn=()=>J(ve),x1=()=>{var e=Fn();if(e==="horizontal"||e==="vertical")return e},w1=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},WF=()=>{var e=Fn();return e!==void 0},Ni=e=>{var t=Se(),r=ct(),{width:n,height:o}=e,i=Tp(),a=n,s=o;return i&&(a=i.width>0?i.width:n,s=i.height>0?i.height:o),A.useEffect(()=>{!r&&ar(a)&&ar(s)&&t(qz({width:a,height:s}))},[t,r,a,s]),null},S1=Symbol.for("immer-nothing"),oy=Symbol.for("immer-draftable"),_t=Symbol.for("immer-state"),KF=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function gt(e,...t){if(process.env.NODE_ENV!=="production"){const r=KF[e],n=typeof r=="function"?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var oi=Object.getPrototypeOf;function uo(e){return!!e&&!!e[_t]}function Tn(e){return e?P1(e)||Array.isArray(e)||!!e[oy]||!!e.constructor?.[oy]||Mi(e)||kl(e):!1}var UF=Object.prototype.constructor.toString(),iy=new WeakMap;function P1(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=iy.get(r);return n===void 0&&(n=Function.toString.call(r),iy.set(r,n)),n===UF}function gs(e,t,r=!0){Il(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Il(e){const t=e[_t];return t?t.type_:Array.isArray(e)?1:Mi(e)?2:kl(e)?3:0}function Gd(e,t){return Il(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E1(e,t,r){const n=Il(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function HF(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Mi(e){return e instanceof Map}function kl(e){return e instanceof Set}function dn(e){return e.copy_||e.base_}function qd(e,t){if(Mi(e))return new Map(e);if(kl(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=P1(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[_t];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const a=o[i],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(oi(e),n)}else{const n=oi(e);if(n!==null&&r)return{...e};const o=Object.create(n);return Object.assign(o,e)}}function kp(e,t=!1){return Rl(e)||uo(e)||!Tn(e)||(Il(e)>1&&Object.defineProperties(e,{set:Oa,add:Oa,clear:Oa,delete:Oa}),Object.freeze(e),t&&Object.values(e).forEach(r=>kp(r,!0))),e}function GF(){gt(2)}var Oa={value:GF};function Rl(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var qF={};function jn(e){const t=qF[e];return t||gt(0,e),t}var ii;function O1(){return ii}function YF(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ay(e,t){t&&(jn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yd(e){Xd(e),e.drafts_.forEach(XF),e.drafts_=null}function Xd(e){e===ii&&(ii=e.parent_)}function sy(e){return ii=YF(ii,e)}function XF(e){const t=e[_t];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ly(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[_t].modified_&&(Yd(t),gt(4)),Tn(e)&&(e=ys(t,e),t.parent_||bs(t,e)),t.patches_&&jn("Patches").generateReplacementPatches_(r[_t].base_,e,t.patches_,t.inversePatches_)):e=ys(t,r,[]),Yd(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==S1?e:void 0}function ys(e,t,r){if(Rl(t))return t;const n=e.immer_.shouldUseStrictIteration(),o=t[_t];if(!o)return gs(t,(i,a)=>cy(e,o,t,i,a,r),n),t;if(o.scope_!==e)return t;if(!o.modified_)return bs(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),gs(a,(l,c)=>cy(e,o,i,l,c,r,s),n),bs(e,i,!1),r&&e.patches_&&jn("Patches").generatePatches_(o,r,e.patches_,e.inversePatches_)}return o.copy_}function cy(e,t,r,n,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=Rl(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===r&>(5),uo(o)){const l=i&&t&&t.type_!==3&&!Gd(t.assigned_,n)?i.concat(n):void 0,c=ys(e,o,l);if(E1(r,n,c),uo(c))e.canAutoFreeze_=!1;else return}else a&&r.add(o);if(Tn(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===o&&s)return;ys(e,o),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Mi(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&bs(e,o)}}}function bs(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kp(t,r)}function ZF(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:O1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Rp;r&&(o=[n],i=ai);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}var Rp={get(e,t){if(t===_t)return e;const r=dn(e);if(!Gd(r,t))return JF(e,r,t);const n=r[t];return e.finalized_||!Tn(n)?n:n===Wu(e.base_,t)?(Ku(e),e.copy_[t]=Jd(n,e)):n},has(e,t){return t in dn(e)},ownKeys(e){return Reflect.ownKeys(dn(e))},set(e,t,r){const n=C1(dn(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Wu(dn(e),t),i=o?.[_t];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(HF(r,o)&&(r!==void 0||Gd(e.base_,t)))return!0;Ku(e),Zd(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Wu(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ku(e),Zd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=dn(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){gt(11)},getPrototypeOf(e){return oi(e.base_)},setPrototypeOf(){gt(12)}},ai={};gs(Rp,(e,t)=>{ai[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});ai.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&>(13),ai.set.call(this,e,t,void 0)};ai.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&>(14),Rp.set.call(this,e[0],t,r,e[0])};function Wu(e,t){const r=e[_t];return(r?dn(r):e)[t]}function JF(e,t,r){const n=C1(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function C1(e,t){if(!(t in e))return;let r=oi(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=oi(r)}}function Zd(e){e.modified_||(e.modified_=!0,e.parent_&&Zd(e.parent_))}function Ku(e){e.copy_||(e.copy_=qd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var QF=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const a=this;return function(l=i,...c){return a.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&>(6),n!==void 0&&typeof n!="function"&>(7);let o;if(Tn(t)){const i=sy(this),a=Jd(t,void 0);let s=!0;try{o=r(a),s=!1}finally{s?Yd(i):Xd(i)}return ay(i,n),ly(o,i)}else if(!t||typeof t!="object"){if(o=r(t),o===void 0&&(o=t),o===S1&&(o=void 0),this.autoFreeze_&&kp(o,!0),n){const i=[],a=[];jn("Patches").generateReplacementPatches_(t,o,i,a),n(i,a)}return o}else gt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,o;return[this.produce(t,r,(a,s)=>{n=a,o=s}),n,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Tn(e)||gt(8),uo(e)&&(e=eB(e));const t=sy(this),r=Jd(e,void 0);return r[_t].isManual_=!0,Xd(t),r}finishDraft(e,t){const r=e&&e[_t];(!r||!r.isManual_)&>(9);const{scope_:n}=r;return ay(n,t),ly(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=jn("Patches").applyPatches_;return uo(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Jd(e,t){const r=Mi(e)?jn("MapSet").proxyMap_(e,t):kl(e)?jn("MapSet").proxySet_(e,t):ZF(e,t);return(t?t.scope_:O1()).drafts_.push(r),r}function eB(e){return uo(e)||gt(10,e),A1(e)}function A1(e){if(!Tn(e)||Rl(e))return e;const t=e[_t];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=qd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=qd(e,!0);return gs(r,(o,i)=>{E1(r,o,A1(i))},n),t&&(t.finalized_=!1),r}var tB=new QF;tB.produce;var rB={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},_1=xt({name:"legend",initialState:rB,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ce()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).payload.indexOf(r);o>-1&&(e.payload[o]=n)},prepare:Ce()},removeLegendPayload:{reducer(e,t){var r=Bt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ce()}}}),{setLegendSize:uy,setLegendSettings:nB,addLegendPayload:T1,replaceLegendPayload:j1,removeLegendPayload:N1}=_1.actions,oB=_1.reducer,iB=["contextPayload"];function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qd.apply(null,arguments)}function dy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dy(Object(r),!0).forEach(function(n){aB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aB(e,t,r){return(t=sB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sB(e){var t=lB(e,"string");return typeof t=="symbol"?t:t+""}function lB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cB(e,t){if(e==null)return{};var r,n,o=uB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function uB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function dB(e){return e.value}function fB(e){var{contextPayload:t}=e,r=cB(e,iB),n=EP(t,e.payloadUniqBy,dB),o=fo(fo({},r),{},{payload:n});return f.isValidElement(e.content)?f.cloneElement(e.content,o):typeof e.content=="function"?f.createElement(e.content,o):f.createElement(L$,o)}function pB(e,t,r,n,o,i){var{layout:a,align:s,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?c={left:((n||0)-i.width)/2}:c=s==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((o||0)-i.height)/2}:u=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),fo(fo({},c),u)}function vB(e){var t=Se();return A.useEffect(()=>{t(nB(e))},[t,e]),null}function mB(e){var t=Se();return A.useEffect(()=>(t(uy(e)),()=>{t(uy({width:0,height:0}))}),[t,e]),null}function hB(e,t,r,n){return e==="vertical"&&t!=null?{height:t}:e==="horizontal"?{width:r||n}:null}var gB={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function Dl(e){var t=Le(e,gB),r=$L(),n=j2(),o=VF(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=jP([r]),d=Mp(),p=Ip();if(d==null||p==null)return null;var v=d-(o?.left||0)-(o?.right||0),g=hB(t.layout,a,i,v),m=l?s:fo(fo({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},pB(s,t,o,d,p,c)),s),h=l??n;if(h==null||r==null)return null;var b=f.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},f.createElement(vB,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&f.createElement(mB,{width:c.width,height:c.height}),f.createElement(fB,Qd({},t,g,{margin:o,chartWidth:d,chartHeight:p,contextPayload:r})));return xi.createPortal(b,h)}Dl.displayName="Legend";function ef(){return ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ef.apply(null,arguments)}function fy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Lo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fy(Object(r),!0).forEach(function(n){yB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yB(e,t,r){return(t=bB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bB(e){var t=xB(e,"string");return typeof t=="symbol"?t:t+""}function xB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wB(e){return Array.isArray(e)&&ir(e[0])&&ir(e[1])?e.join(" ~ "):e}var Xn={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},SB=e=>{var{separator:t=Xn.separator,contentStyle:r,itemStyle:n,labelStyle:o=Xn.labelStyle,payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:p=Xn.accessibilityLayer}=e,v=()=>{if(i&&i.length){var E={padding:0,margin:0},P=(s?bl(i,s):i).map((O,C)=>{if(O.type==="none")return null;var N=O.formatter||a||wB,{value:$,name:I}=O,_=$,j=I;if(N){var R=N($,I,O,C,i);if(Array.isArray(R))[_,j]=R;else if(R!=null)_=R;else return null}var V=Lo(Lo({},Xn.itemStyle),{},{color:O.color||Xn.itemStyle.color},n);return f.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:V},ir(j)?f.createElement("span",{className:"recharts-tooltip-item-name"},j):null,ir(j)?f.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,f.createElement("span",{className:"recharts-tooltip-item-value"},_),f.createElement("span",{className:"recharts-tooltip-item-unit"},O.unit||""))});return f.createElement("ul",{className:"recharts-tooltip-item-list",style:E},P)}return null},g=Lo(Lo({},Xn.contentStyle),r),m=Lo({margin:0},o),h=!Te(u),b=h?u:"",x=de("recharts-default-tooltip",l),w=de("recharts-tooltip-label",c);h&&d&&i!==void 0&&i!==null&&(b=d(u,i));var S=p?{role:"status","aria-live":"assertive"}:{};return f.createElement("div",ef({className:x,style:g},S),f.createElement("p",{className:w,style:m},f.isValidElement(b)?b:"".concat(b)),v())},zo="recharts-tooltip-wrapper",PB={visibility:"hidden"};function EB(e){var{coordinate:t,translateX:r,translateY:n}=e;return de(zo,{["".concat(zo,"-right")]:q(r)&&t&&q(t.x)&&r>=t.x,["".concat(zo,"-left")]:q(r)&&t&&q(t.x)&&r<t.x,["".concat(zo,"-bottom")]:q(n)&&t&&q(t.y)&&n>=t.y,["".concat(zo,"-top")]:q(n)&&t&&q(t.y)&&n<t.y})}function py(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&q(i[n]))return i[n];var u=r[n]-s-(o>0?o:0),d=r[n]+o;if(t[n])return a[n]?u:d;var p=l[n];if(p==null)return 0;if(a[n]){var v=u,g=p;return v<g?Math.max(d,p):Math.max(u,p)}if(c==null)return 0;var m=d+s,h=p+c;return m>h?Math.max(u,p):Math.max(d,p)}function OB(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function CB(e){var{allowEscapeViewBox:t,coordinate:r,offsetTop:n,offsetLeft:o,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:l,viewBox:c}=e,u,d,p;return s.height>0&&s.width>0&&r?(d=py({allowEscapeViewBox:t,coordinate:r,key:"x",offset:o,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:c,viewBoxDimension:c.width}),p=py({allowEscapeViewBox:t,coordinate:r,key:"y",offset:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:c,viewBoxDimension:c.height}),u=OB({translateX:d,translateY:p,useTranslate3d:l})):u=PB,{cssProperties:u,cssClasses:EB({translateX:d,translateY:p,coordinate:r})}}function vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vy(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tf(e,t,r){return(t=AB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AB(e){var t=_B(e,"string");return typeof t=="symbol"?t:t+""}function _B(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class TB extends A.PureComponent{constructor(){super(...arguments),tf(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),tf(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:p,viewBox:v,wrapperStyle:g,lastBoundingBox:m,innerRef:h,hasPortalFromProps:b}=this.props,x=typeof c=="number"?c:c.x,w=typeof c=="number"?c:c.y,{cssClasses:S,cssProperties:E}=CB({allowEscapeViewBox:r,coordinate:a,offsetLeft:x,offsetTop:w,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:v}),P=b?{}:Ca(Ca({transition:l&&t?"transform ".concat(n,"ms ").concat(o):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),O=Ca(Ca({},P),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},g);return f.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:S,style:O,ref:h},i)}}var M1=()=>{var e;return(e=J(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(null,arguments)}function my(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function hy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?my(Object(r),!0).forEach(function(n){jB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jB(e,t,r){return(t=NB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NB(e){var t=MB(e,"string");return typeof t=="symbol"?t:t+""}function MB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gy={curveBasisClosed:Y2,curveBasisOpen:X2,curveBasis:q2,curveBumpX:k2,curveBumpY:R2,curveLinearClosed:Z2,curveLinear:gl,curveMonotoneX:J2,curveMonotoneY:Q2,curveNatural:e$,curveStep:t$,curveStepAfter:n$,curveStepBefore:r$},xs=e=>ce(e.x)&&ce(e.y),yy=e=>e.base!=null&&xs(e.base)&&xs(e),Fo=e=>e.x,Bo=e=>e.y,IB=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Ei(e));if((r==="curveMonotone"||r==="curveBump")&&t){var n=gy["".concat(r).concat(t==="vertical"?"Y":"X")];if(n)return n}return gy[r]||gl},by={connectNulls:!1,type:"linear"},kB=e=>{var{type:t=by.type,points:r=[],baseLine:n,layout:o,connectNulls:i=by.connectNulls}=e,a=IB(t,o),s=i?r.filter(xs):r;if(Array.isArray(n)){var l,c=r.map((g,m)=>hy(hy({},g),{},{base:n[m]}));o==="vertical"?l=ma().y(Bo).x1(Fo).x0(g=>g.base.x):l=ma().x(Fo).y1(Bo).y0(g=>g.base.y);var u=l.defined(yy).curve(a),d=i?c.filter(yy):c;return u(d)}var p;o==="vertical"&&q(n)?p=ma().y(Bo).x1(Fo).x0(n):q(n)?p=ma().x(Fo).y1(Bo).y0(n):p=eP().x(Fo).y(Bo);var v=p.defined(xs).curve(a);return v(s)},Dp=e=>{var{className:t,points:r,path:n,pathRef:o}=e,i=Fn();if((!r||!r.length)&&!n)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?kB(a):n;return f.createElement("path",rf({},At(e),yp(e),{className:de("recharts-curve",t),d:s===null?void 0:s,ref:o}))},RB=["x","y","top","left","width","height","className"];function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(null,arguments)}function xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function DB(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xy(Object(r),!0).forEach(function(n){$B(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $B(e,t,r){return(t=LB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LB(e){var t=zB(e,"string");return typeof t=="symbol"?t:t+""}function zB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FB(e,t){if(e==null)return{};var r,n,o=BB(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function BB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var VB=(e,t,r,n,o,i)=>"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),WB=e=>{var{x:t=0,y:r=0,top:n=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=FB(e,RB),c=DB({x:t,y:r,top:n,left:o,width:i,height:a},l);return!q(t)||!q(r)||!q(i)||!q(a)||!q(n)||!q(o)?null:f.createElement("path",nf({},mt(c),{className:de("recharts-cross",s),d:VB(t,r,i,a,n,o)}))};function KB(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-o,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function wy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wy(Object(r),!0).forEach(function(n){UB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UB(e,t,r){return(t=HB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HB(e){var t=GB(e,"string");return typeof t=="symbol"?t:t+""}function GB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),I1=(e,t,r)=>e.map(n=>"".concat(qB(n)," ").concat(t,"ms ").concat(r)).join(","),YB=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(o=>n.includes(o))),si=(e,t)=>Object.keys(t).reduce((r,n)=>Sy(Sy({},r),{},{[n]:e(n,t[n])}),{});function Py(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Py(Object(r),!0).forEach(function(n){XB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Py(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XB(e,t,r){return(t=ZB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZB(e){var t=JB(e,"string");return typeof t=="symbol"?t:t+""}function JB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ws=(e,t,r)=>e+(t-e)*r,of=e=>{var{from:t,to:r}=e;return t!==r},k1=(e,t,r)=>{var n=si((o,i)=>{if(of(i)){var[a,s]=e(i.from,i.to,i.velocity);return Fe(Fe({},i),{},{from:a,velocity:s})}return i},t);return r<1?si((o,i)=>of(i)&&n[o]!=null?Fe(Fe({},i),{},{velocity:ws(i.velocity,n[o].velocity,r),from:ws(i.from,n[o].from,r)}):i,t):k1(e,n,r-1)};function QB(e,t,r,n,o,i){var a,s=n.reduce((p,v)=>Fe(Fe({},p),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),l=()=>si((p,v)=>v.from,s),c=()=>!Object.values(s).filter(of).length,u=null,d=p=>{a||(a=p);var v=p-a,g=v/r.dt;s=k1(r,s,g),o(Fe(Fe(Fe({},e),t),l())),a=p,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var p;(p=u)===null||p===void 0||p()})}function e3(e,t,r,n,o,i,a){var s=null,l=o.reduce((d,p)=>{var v=e[p],g=t[p];return v==null||g==null?d:Fe(Fe({},d),{},{[p]:[v,g]})},{}),c,u=d=>{c||(c=d);var p=(d-c)/n,v=si((m,h)=>ws(...h,r(p)),l);if(i(Fe(Fe(Fe({},e),t),v)),p<1)s=a.setTimeout(u);else{var g=si((m,h)=>ws(...h,r(1)),l);i(Fe(Fe(Fe({},e),t),g))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const t3=(e,t,r,n,o,i)=>{var a=YB(e,t);return r==null?()=>(o(Fe(Fe({},e),t)),()=>{}):r.isStepper===!0?QB(e,t,r,a,o,i):e3(e,t,r,n,a,o,i)};var Ss=1e-4,R1=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],D1=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Ey=(e,t)=>r=>{var n=R1(e,t);return D1(n,r)},r3=(e,t)=>r=>{var n=R1(e,t),o=[...n.map((i,a)=>i*a).slice(1),0];return D1(o,r)},n3=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var o=n.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},o3=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===1)switch(r[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var o=n3(r[0]);if(o)return o}}return r.length===4?r:[0,0,1,1]},i3=(e,t,r,n)=>{var o=Ey(e,r),i=Ey(t,n),a=r3(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,p=0;p<8;++p){var v=o(d)-u,g=a(d);if(Math.abs(v-u)<Ss||g<Ss)return i(d);d=s(d-v/g)}return i(d)};return l.isStepper=!1,l},Oy=function(){return i3(...o3(...arguments))},a3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*r,u=l*n,d=l+(c-u)*o/1e3,p=l*o/1e3+a;return Math.abs(p-s)<Ss&&Math.abs(d)<Ss?[s,0]:[p,d]};return i.isStepper=!0,i.dt=o,i},s3=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Oy(e);case"spring":return a3();default:if(e.split("(")[0]==="cubic-bezier")return Oy(e)}return typeof e=="function"?e:null};function l3(e){var t,r=()=>null,n=!1,o=null,i=a=>{if(!n){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,r(t)),typeof a=="object"&&(t=a,r(t)),typeof a=="function"&&a()}};return{stop:()=>{n=!0},start:a=>{n=!1,o&&(o(),o=null),i(a)},subscribe:a=>(r=a,()=>{r=()=>null}),getTimeoutController:()=>e}}class c3{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),o=null,i=a=>{a-n>=r?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}}function u3(){return l3(new c3)}var d3=A.createContext(u3);function f3(e,t){var r=A.useContext(d3);return A.useMemo(()=>t??r(e),[e,t,r])}var p3=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),$l={isSsr:p3()},v3={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Cy={t:0},Uu={t:1};function Ii(e){var t=Le(e,v3),{isActive:r,canBegin:n,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!$l.isSsr:r,d=f3(t.animationId,t.animationManager),[p,v]=A.useState(u?Cy:Uu),g=A.useRef(null);return A.useEffect(()=>{u||v(Uu)},[u]),A.useEffect(()=>{if(!u||!n)return zn;var m=t3(Cy,Uu,s3(i),o,v,d.getTimeoutController()),h=()=>{g.current=m()};return d.start([l,a,h,o,s]),()=>{d.stop(),g.current&&g.current(),s()}},[u,n,o,i,a,l,s,d]),c(p.t)}function ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=A.useRef(ei(t)),n=A.useRef(e);return n.current!==e&&(r.current=ei(t),n.current=e),r.current}var m3=["radius"],h3=["radius"],Ay,_y,Ty,jy,Ny,My,Iy,ky,Ry,Dy;function $y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ly(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$y(Object(r),!0).forEach(function(n){g3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g3(e,t,r){return(t=y3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y3(e){var t=b3(e,"string");return typeof t=="symbol"?t:t+""}function b3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(null,arguments)}function zy(e,t){if(e==null)return{};var r,n,o=x3(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x3(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Fy=(e,t,r,n,o)=>{var i=Vr(r),a=Vr(n),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,d;if(s>0&&Array.isArray(o)){for(var p=[0,0,0,0],v=0,g=4;v<g;v++){var m,h=(m=o[v])!==null&&m!==void 0?m:0;p[v]=h>s?s:h}d=Me(Ay||(Ay=qt(["M",",",""])),e,t+l*p[0]),p[0]>0&&(d+=Me(_y||(_y=qt(["A ",",",",0,0,",",",",",""])),p[0],p[0],u,e+c*p[0],t)),d+=Me(Ty||(Ty=qt(["L ",",",""])),e+r-c*p[1],t),p[1]>0&&(d+=Me(jy||(jy=qt(["A ",",",",0,0,",`,
|
|
72
|
+
`,",",""])),p[1],p[1],u,e+r,t+l*p[1])),d+=Me(Ny||(Ny=qt(["L ",",",""])),e+r,t+n-l*p[2]),p[2]>0&&(d+=Me(My||(My=qt(["A ",",",",0,0,",`,
|
|
73
|
+
`,",",""])),p[2],p[2],u,e+r-c*p[2],t+n)),d+=Me(Iy||(Iy=qt(["L ",",",""])),e+c*p[3],t+n),p[3]>0&&(d+=Me(ky||(ky=qt(["A ",",",",0,0,",`,
|
|
74
|
+
`,",",""])),p[3],p[3],u,e,t+n-l*p[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);d=Me(Ry||(Ry=qt(["M ",",",`
|
|
75
75
|
A `,",",",0,0,",",",",",`
|
|
76
76
|
L `,",",`
|
|
77
77
|
A `,",",",0,0,",",",",",`
|
|
78
78
|
L `,",",`
|
|
79
79
|
A `,",",",0,0,",",",",",`
|
|
80
80
|
L `,",",`
|
|
81
|
-
A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,u,e+c*b,t,e+r-c*b,t,b,b,u,e+r,t+l*b,e+r,t+n-l*b,b,b,u,e+r-c*b,t+n,e+c*b,t+n,b,b,u,e,t+n-l*b)}else d=
|
|
81
|
+
A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,u,e+c*b,t,e+r-c*b,t,b,b,u,e+r,t+l*b,e+r,t+n-l*b,b,b,u,e+r-c*b,t+n,e+c*b,t+n,b,b,u,e,t+n-l*b)}else d=Me(Dy||(Dy=qt(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return d},By={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$1=e=>{var t=Le(e,By),r=A.useRef(null),[n,o]=A.useState(-1);A.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var W=r.current.getTotalLength();W&&o(W)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:p,animationBegin:v,isAnimationActive:g,isUpdateAnimationActive:m}=t,h=A.useRef(s),b=A.useRef(l),x=A.useRef(i),w=A.useRef(a),S=A.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),E=ki(S,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var P=de("recharts-rectangle",u);if(!m){var O=mt(t),{radius:C}=O,N=zy(O,m3);return f.createElement("path",Ps({},N,{x:Vr(i),y:Vr(a),width:Vr(s),height:Vr(l),radius:typeof c=="number"?c:void 0,className:P,d:Fy(i,a,s,l,c)}))}var $=h.current,I=b.current,_=x.current,j=w.current,R="0px ".concat(n===-1?1:n,"px"),V="".concat(n,"px 0px"),F=I1(["strokeDasharray"],p,typeof d=="string"?d:By.animationEasing);return f.createElement(Ii,{animationId:E,key:E,canBegin:n>0,duration:p,easing:d,isActive:m,begin:v},W=>{var T=Ae($,s,W),k=Ae(I,l,W),G=Ae(_,i,W),ee=Ae(j,a,W);r.current&&(h.current=T,b.current=k,x.current=G,w.current=ee);var ne;g?W>0?ne={transition:F,strokeDasharray:V}:ne={strokeDasharray:R}:ne={strokeDasharray:V};var ie=mt(t),{radius:oe}=ie,le=zy(ie,h3);return f.createElement("path",Ps({},le,{radius:typeof c=="number"?c:void 0,className:P,d:Fy(G,ee,T,k,c),ref:r,style:Ly(Ly({},ne),t.style)}))})};function Vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Wy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vy(Object(r),!0).forEach(function(n){w3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w3(e,t,r){return(t=S3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S3(e){var t=P3(e,"string");return typeof t=="symbol"?t:t+""}function P3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Es=Math.PI/180,E3=e=>e*180/Math.PI,Re=(e,t,r,n)=>({x:e+Math.cos(-Es*n)*r,y:t+Math.sin(-Es*n)*r}),L1=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},O3=(e,t)=>{var{x:r,y:n}=e,{x:o,y:i}=t;return Math.sqrt((r-o)**2+(n-i)**2)},C3=(e,t)=>{var{x:r,y:n}=e,{cx:o,cy:i}=t,a=O3({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(r-o)/a,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:a,angle:E3(l),angleInRadian:l}},A3=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-i*360,endAngle:r-i*360}},_3=(e,t)=>{var{startAngle:r,endAngle:n}=t,o=Math.floor(r/360),i=Math.floor(n/360),a=Math.min(o,i);return e+a*360},T3=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:o,angle:i}=C3({x:r,y:n},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:c}=A3(t),u=i,d;if(l<=c){for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}else{for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}return d?Wy(Wy({},t),{},{radius:o,angle:_3(u,t)}):null};function z1(e){var{cx:t,cy:r,radius:n,startAngle:o,endAngle:i}=e,a=Re(t,r,n,o),s=Re(t,r,n,i);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var Ky,Uy,Hy,Gy,qy,Yy,Xy;function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},af.apply(null,arguments)}function vn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var j3=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Aa=e=>{var{cx:t,cy:r,radius:n,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+n,u=Math.asin(s/c)/Es,d=l?o:o+i*u,p=Re(t,r,c,d),v=Re(t,r,n,d),g=l?o-i*u:o,m=Re(t,r,c*Math.cos(u*Es),g);return{center:p,circleTangency:v,lineTangency:m,theta:u}},F1=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:i,endAngle:a}=e,s=j3(i,a),l=i+s,c=Re(t,r,o,i),u=Re(t,r,o,l),d=Me(Ky||(Ky=vn(["M ",",",`
|
|
82
82
|
A `,",",`,0,
|
|
83
83
|
`,",",`,
|
|
84
84
|
`,",",`
|
|
85
|
-
`])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var p=Re(t,r,n,i),v=Re(t,r,n,l);d+=
|
|
85
|
+
`])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var p=Re(t,r,n,i),v=Re(t,r,n,l);d+=Me(Uy||(Uy=vn(["L ",",",`
|
|
86
86
|
A `,",",`,0,
|
|
87
87
|
`,",",`,
|
|
88
|
-
`,","," Z"])),v.x,v.y,n,n,+(Math.abs(s)>180),+(i<=l),p.x,p.y)}else d+=
|
|
88
|
+
`,","," Z"])),v.x,v.y,n,n,+(Math.abs(s)>180),+(i<=l),p.x,p.y)}else d+=Me(Hy||(Hy=vn(["L ",","," Z"])),t,r);return d},N3=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=qe(c-l),{circleTangency:d,lineTangency:p,theta:v}=Aa({cx:t,cy:r,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:g,lineTangency:m,theta:h}=Aa({cx:t,cy:r,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),b=s?Math.abs(l-c):Math.abs(l-c)-v-h;if(b<0)return a?Me(Gy||(Gy=vn(["M ",",",`
|
|
89
89
|
a`,",",",0,0,1,",`,0
|
|
90
90
|
a`,",",",0,0,1,",`,0
|
|
91
|
-
`])),p.x,p.y,i,i,i*2,i,i,-i*2):
|
|
91
|
+
`])),p.x,p.y,i,i,i*2,i,i,-i*2):F1({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:l,endAngle:c});var x=Me(qy||(qy=vn(["M ",",",`
|
|
92
92
|
A`,",",",0,0,",",",",",`
|
|
93
93
|
A`,",",",0,",",",",",",",`
|
|
94
94
|
A`,",",",0,0,",",",",",`
|
|
95
|
-
`])),p.x,p.y,i,i,+(u<0),d.x,d.y,o,o,+(b>180),+(u<0),g.x,g.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:w,lineTangency:S,theta:E}=Aa({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:P,lineTangency:O,theta:C}=Aa({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),
|
|
95
|
+
`])),p.x,p.y,i,i,+(u<0),d.x,d.y,o,o,+(b>180),+(u<0),g.x,g.y,i,i,+(u<0),m.x,m.y);if(n>0){var{circleTangency:w,lineTangency:S,theta:E}=Aa({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:P,lineTangency:O,theta:C}=Aa({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),N=s?Math.abs(l-c):Math.abs(l-c)-E-C;if(N<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=Me(Yy||(Yy=vn(["L",",",`
|
|
96
96
|
A`,",",",0,0,",",",",",`
|
|
97
97
|
A`,",",",0,",",",",",",",`
|
|
98
|
-
A`,",",",0,0,",",",",","Z"])),O.x,O.y,i,i,+(u<0),P.x,P.y,n,n,+(M>180),+(u>0),w.x,w.y,i,i,+(u<0),S.x,S.y)}else x+=Ne(Xy||(Xy=vn(["L",",","Z"])),t,r);return x},A3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},B1=e=>{var t=Le(e,A3),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(i<o||c===u)return null;var p=de("recharts-sector",d),v=i-o,g=at(a,v,0,!0),m;return g>0&&Math.abs(c-u)<360?m=C3({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,v/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=z1({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),f.createElement("path",af({},mt(t),{className:p,d:m}))};function _3(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(mP(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Re(n,o,i,s),c=Re(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return F1(t)}}var Hu={},Gu={},qu={},Zy;function T3(){return Zy||(Zy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AP();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(qu)),qu}var Jy;function j3(){return Jy||(Jy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=T3();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(Gu)),Gu}var Qy;function M3(){return Qy||(Qy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_P(),r=j3();function n(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=r.toFinite(o),i===void 0?(i=o,o=0):i=r.toFinite(i),a=a===void 0?o<i?1:-1:r.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=o,o+=a;return l}e.range=n})(Hu)),Hu}var Yu,eb;function N3(){return eb||(eb=1,Yu=M3().range),Yu}var I3=N3();const V1=Jr(I3);function Wr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function k3(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $p(e){let t,r,n;e.length!==2?(t=Wr,r=(s,l)=>Wr(e(s),l),n=(s,l)=>e(s)-l):(t=e===Wr||e===k3?e:R3,r=e,n=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function R3(){return 0}function W1(e){return e===null?NaN:+e}function*D3(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const $3=$p(Wr),Ri=$3.right;$p(W1).center;class tb extends Map{constructor(t,r=z3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(rb(this,t))}has(t){return super.has(rb(this,t))}set(t,r){return super.set(L3(this,t),r)}delete(t){return super.delete(F3(this,t))}}function rb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function L3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function F3({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function z3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function B3(e=Wr){if(e===Wr)return K1;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function K1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const V3=Math.sqrt(50),W3=Math.sqrt(10),K3=Math.sqrt(2);function Os(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=V3?10:i>=W3?5:i>=K3?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?Os(e,t,r*2):[s,l,c]}function sf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[o,i,a]=n?Os(t,e,r):Os(e,t,r);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function lf(e,t,r){return t=+t,e=+e,r=+r,Os(e,t,r)[2]}function cf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?lf(t,e,r):lf(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function nb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ob(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function U1(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?K1:B3(o);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),v=Math.max(r,Math.floor(t-c*d/l+p)),g=Math.min(n,Math.floor(t+(l-c)*d/l+p));U1(e,t,v,g,o)}const i=e[t];let a=r,s=n;for(Vo(e,r,t),o(e[n],i)>0&&Vo(e,r,n);a<s;){for(Vo(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Vo(e,r,s):(++s,Vo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Vo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function U3(e,t,r){if(e=Float64Array.from(D3(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ob(e);if(t>=1)return nb(e);var n,o=(n-1)*t,i=Math.floor(o),a=nb(U1(e,i).subarray(0,i+1)),s=ob(e.subarray(i+1));return a+(s-a)*(o-i)}}function H3(e,t,r=W1){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function G3(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n<o;)i[n]=e+n*r;return i}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Mr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const uf=Symbol("implicit");function Lp(){var e=new tb,t=[],r=[],n=uf;function o(i){let a=e.get(i);if(a===void 0){if(n!==uf)return n;e.set(i,a=t.push(i)-1)}return r[a%r.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new tb;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(r=Array.from(i),o):r.slice()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Lp(t,r).unknown(n)},$t.apply(o,arguments),o}function Fp(){var e=Lp().unknown(void 0),t=e.domain,r=e.range,n=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,v=o<n,g=v?o:n,m=v?n:o;i=(m-g)/Math.max(1,p-l+c*2),s&&(i=Math.floor(i)),g+=(m-g-i*(p-l))*u,a=i*(1-l),s&&(g=Math.round(g),a=Math.round(a));var h=G3(p).map(function(b){return g+i*b});return r(v?h.reverse():h)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([n,o]=p,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(p){return[n,o]=p,n=+n,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return Fp(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$t.apply(d(),arguments)}function H1(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return H1(t())},e}function q3(){return H1(Fp.apply(null,arguments).paddingInner(1))}function zp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function G1(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Di(){}var li=.7,Cs=1/li,ao="\\s*([+-]?\\d+)\\s*",ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Y3=/^#([0-9a-f]{3,8})$/,X3=new RegExp(`^rgb\\(${ao},${ao},${ao}\\)$`),Z3=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),J3=new RegExp(`^rgba\\(${ao},${ao},${ao},${ci}\\)$`),Q3=new RegExp(`^rgba\\(${rr},${rr},${rr},${ci}\\)$`),eV=new RegExp(`^hsl\\(${ci},${rr},${rr}\\)$`),tV=new RegExp(`^hsla\\(${ci},${rr},${rr},${ci}\\)$`),ib={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};zp(Di,ui,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ab,formatHex:ab,formatHex8:rV,formatHsl:nV,formatRgb:sb,toString:sb});function ab(){return this.rgb().formatHex()}function rV(){return this.rgb().formatHex8()}function nV(){return q1(this).formatHsl()}function sb(){return this.rgb().formatRgb()}function ui(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Y3.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lb(t):r===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_a(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_a(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=X3.exec(e))?new bt(t[1],t[2],t[3],1):(t=Z3.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=J3.exec(e))?_a(t[1],t[2],t[3],t[4]):(t=Q3.exec(e))?_a(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=eV.exec(e))?db(t[1],t[2]/100,t[3]/100,1):(t=tV.exec(e))?db(t[1],t[2]/100,t[3]/100,t[4]):ib.hasOwnProperty(e)?lb(ib[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function lb(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function _a(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function oV(e){return e instanceof Di||(e=ui(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function df(e,t,r,n){return arguments.length===1?oV(e):new bt(e,t,r,n??1)}function bt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}zp(bt,df,G1(Di,{brighter(e){return e=e==null?Cs:Math.pow(Cs,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(wn(this.r),wn(this.g),wn(this.b),As(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cb,formatHex:cb,formatHex8:iV,formatRgb:ub,toString:ub}));function cb(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function iV(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function ub(){const e=As(this.opacity);return`${e===1?"rgb(":"rgba("}${wn(this.r)}, ${wn(this.g)}, ${wn(this.b)}${e===1?")":`, ${e})`}`}function As(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mn(e){return e=wn(e),(e<16?"0":"")+e.toString(16)}function db(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new zt(e,t,r,n)}function q1(e){if(e instanceof zt)return new zt(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=ui(e)),!e)return new zt;if(e instanceof zt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r<n)*6:r===i?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new zt(a,s,l,e.opacity)}function aV(e,t,r,n){return arguments.length===1?q1(e):new zt(e,t,r,n??1)}function zt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}zp(zt,aV,G1(Di,{brighter(e){return e=e==null?Cs:Math.pow(Cs,e),new zt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new zt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new bt(Xu(e>=240?e-240:e+120,o,n),Xu(e,o,n),Xu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new zt(fb(this.h),Ta(this.s),Ta(this.l),As(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=As(this.opacity);return`${e===1?"hsl(":"hsla("}${fb(this.h)}, ${Ta(this.s)*100}%, ${Ta(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fb(e){return e=(e||0)%360,e<0?e+360:e}function Ta(e){return Math.max(0,Math.min(1,e||0))}function Xu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Bp=e=>()=>e;function sV(e,t){return function(r){return e+r*t}}function lV(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function cV(e){return(e=+e)==1?Y1:function(t,r){return r-t?lV(t,r,e):Bp(isNaN(t)?r:t)}}function Y1(e,t){var r=t-e;return r?sV(e,r):Bp(isNaN(e)?t:e)}const pb=(function e(t){var r=cV(t);function n(o,i){var a=r((o=df(o)).r,(i=df(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=Y1(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n})(1);function uV(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(i){for(o=0;o<r;++o)n[o]=e[o]*(1-i)+t[o]*i;return n}}function dV(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function fV(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,o=new Array(n),i=new Array(r),a;for(a=0;a<n;++a)o[a]=Eo(e[a],t[a]);for(;a<r;++a)i[a]=t[a];return function(s){for(a=0;a<n;++a)i[a]=o[a](s);return i}}function pV(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _s(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vV(e,t){var r={},n={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=Eo(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zu=new RegExp(ff.source,"g");function mV(e){return function(){return e}}function hV(e){return function(t){return e(t)+""}}function gV(e,t){var r=ff.lastIndex=Zu.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=ff.exec(e))&&(o=Zu.exec(t));)(i=o.index)>r&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:_s(n,o)})),r=Zu.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?hV(l[0].x):mV(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Eo(e,t){var r=typeof t,n;return t==null||r==="boolean"?Bp(t):(r==="number"?_s:r==="string"?(n=ui(t))?(t=n,pb):gV:t instanceof ui?pb:t instanceof Date?pV:dV(t)?uV:Array.isArray(t)?fV:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?vV:_s)(e,t)}function Vp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function yV(e,t){t===void 0&&(t=e,e=Eo);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return i[s](a-s)}}function bV(e){return function(){return e}}function Ts(e){return+e}var vb=[0,1];function pt(e){return e}function pf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:bV(isNaN(t)?NaN:.5)}function xV(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function wV(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=pf(o,n),i=r(a,i)):(n=pf(n,o),i=r(i,a)),function(s){return i(n(s))}}function SV(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=pf(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=Ri(e,s,1,n)-1;return i[l](o[l](s))}}function $i(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ll(){var e=vb,t=vb,r=Eo,n,o,i,a=pt,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==pt&&(a=xV(e[0],e[p-1])),s=p>2?SV:wV,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(n),t,r)))(n(a(p)))}return d.invert=function(p){return a(o((c||(c=s(t,e.map(n),_s)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Ts),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),r=Vp,u()},d.clamp=function(p){return arguments.length?(a=p?!0:pt,u()):a!==pt},d.interpolate=function(p){return arguments.length?(r=p,u()):r},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,v){return n=p,o=v,u()}}function Wp(){return Ll()(pt,pt)}function PV(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function js(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function po(e){return e=js(Math.abs(e)),e?e[1]:NaN}function EV(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function OV(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var CV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function di(e){if(!(t=CV.exec(e)))throw new Error("invalid format: "+e);var t;return new Kp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}di.prototype=Kp.prototype;function Kp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Kp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function AV(e){e:for(var t=e.length,r=1,n=-1,o;r<t;++r)switch(e[r]){case".":n=o=r;break;case"0":n===0&&(n=r),o=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var Ms;function _V(e,t){var r=js(e,t);if(!r)return Ms=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(Ms=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+js(e,Math.max(0,t+i-1))[0]}function mb(e,t){var r=js(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:PV,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mb(e*100,t),r:mb,s:_V,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gb(e){return e}var yb=Array.prototype.map,bb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function TV(e){var t=e.grouping===void 0||e.thousands===void 0?gb:EV(yb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?gb:OV(yb.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d,p){d=di(d);var v=d.fill,g=d.align,m=d.sign,h=d.symbol,b=d.zero,x=d.width,w=d.comma,S=d.precision,E=d.trim,P=d.type;P==="n"?(w=!0,P="g"):hb[P]||(S===void 0&&(S=12),E=!0,P="g"),(b||v==="0"&&g==="=")&&(b=!0,v="0",g="=");var O=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),C=(h==="$"?n:/[%p]/.test(P)?a:"")+(p&&p.suffix!==void 0?p.suffix:""),M=hb[P],$=/[defgprs%]/.test(P);S=S===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(_){var j=O,R=C,V,z,W;if(P==="c")R=M(_)+R,_="";else{_=+_;var T=_<0||1/_<0;if(_=isNaN(_)?l:M(Math.abs(_),S),E&&(_=AV(_)),T&&+_==0&&m!=="+"&&(T=!1),j=(T?m==="("?m:s:m==="-"||m==="("?"":m)+j,R=(P==="s"&&!isNaN(_)&&Ms!==void 0?bb[8+Ms/3]:"")+R+(T&&m==="("?")":""),$){for(V=-1,z=_.length;++V<z;)if(W=_.charCodeAt(V),48>W||W>57){R=(W===46?o+_.slice(V+1):_.slice(V))+R,_=_.slice(0,V);break}}}w&&!b&&(_=t(_,1/0));var k=j.length+_.length+R.length,G=k<x?new Array(x-k+1).join(v):"";switch(w&&b&&(_=t(G+_,G.length?x-R.length:1/0),G=""),g){case"<":_=j+_+R+G;break;case"=":_=j+G+_+R;break;case"^":_=G.slice(0,k=G.length>>1)+j+_+R+G.slice(k);break;default:_=G+j+_+R;break}return i(_)}return I.toString=function(){return d+""},I}function u(d,p){var v=Math.max(-8,Math.min(8,Math.floor(po(p)/3)))*3,g=Math.pow(10,-v),m=c((d=di(d),d.type="f",d),{suffix:bb[8+v/3]});return function(h){return m(g*h)}}return{format:c,formatPrefix:u}}var ja,Up,X1;jV({thousands:",",grouping:[3],currency:["$",""]});function jV(e){return ja=TV(e),Up=ja.format,X1=ja.formatPrefix,ja}function MV(e){return Math.max(0,-po(Math.abs(e)))}function NV(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(po(t)/3)))*3-po(Math.abs(e)))}function IV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,po(t)-po(e))+1}function Z1(e,t,r,n){var o=cf(e,t,r),i;switch(n=di(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=NV(o,a))&&(n.precision=i),X1(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=IV(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=MV(o))&&(n.precision=i-(n.type==="%")*2);break}}return Up(n)}function Qr(e){var t=e.domain;return e.ticks=function(r){var n=t();return sf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return Z1(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=lf(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function J1(){var e=Wp();return e.copy=function(){return $i(e,J1())},$t.apply(e,arguments),Qr(e)}function Q1(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ts),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Q1(e).unknown(t)},e=arguments.length?Array.from(e,Ts):[0,1],Qr(r)}function eE(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return i<o&&(a=r,r=n,n=a,a=o,o=i,i=a),e[r]=t.floor(o),e[n]=t.ceil(i),e}function xb(e){return Math.log(e)}function wb(e){return Math.exp(e)}function kV(e){return-Math.log(-e)}function RV(e){return-Math.exp(-e)}function DV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function $V(e){return e===10?DV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function LV(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Sb(e){return(t,r)=>-e(-t,r)}function Hp(e){const t=e(xb,wb),r=t.domain;let n=10,o,i;function a(){return o=LV(n),i=$V(n),r()[0]<0?(o=Sb(o),i=Sb(i),e(kV,RV)):e(xb,wb),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let p=o(c),v=o(u),g,m;const h=s==null?10:+s;let b=[];if(!(n%1)&&v-p<h){if(p=Math.floor(p),v=Math.ceil(v),c>0){for(;p<=v;++p)for(g=1;g<n;++g)if(m=p<0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}}else for(;p<=v;++p)for(g=n-1;g>=1;--g)if(m=p>0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}b.length*2<h&&(b=sf(c,u,h))}else b=sf(p,v,Math.min(v-p,h)).map(i);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=di(l)).precision==null&&(l.trim=!0),l=Up(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*n<n-.5&&(d*=n),d<=c?l(u):""}},t.nice=()=>r(eE(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function tE(){const e=Hp(Ll()).domain([1,10]);return e.copy=()=>$i(e,tE()).base(e.base()),$t.apply(e,arguments),e}function Pb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Eb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gp(e){var t=1,r=e(Pb(t),Eb(t));return r.constant=function(n){return arguments.length?e(Pb(t=+n),Eb(t)):t},Qr(r)}function rE(){var e=Gp(Ll());return e.copy=function(){return $i(e,rE()).constant(e.constant())},$t.apply(e,arguments)}function Ob(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function FV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function zV(e){return e<0?-e*e:e*e}function qp(e){var t=e(pt,pt),r=1;function n(){return r===1?e(pt,pt):r===.5?e(FV,zV):e(Ob(r),Ob(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Qr(t)}function Yp(){var e=qp(Ll());return e.copy=function(){return $i(e,Yp()).exponent(e.exponent())},$t.apply(e,arguments),e}function BV(){return Yp.apply(null,arguments).exponent(.5)}function Cb(e){return Math.sign(e)*e*e}function VV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nE(){var e=Wp(),t=[0,1],r=!1,n;function o(i){var a=VV(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(Cb(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Ts)).map(Cb)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return nE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$t.apply(o,arguments),Qr(o)}function oE(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=H3(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[Ri(r,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Wr),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return oE().domain(e).range(t).unknown(n)},$t.apply(i,arguments)}function iE(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Ri(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return iE().domain([e,t]).range(o).unknown(i)},$t.apply(Qr(a),arguments)}function aE(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Ri(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return aE().domain(e).range(t).unknown(r)},$t.apply(o,arguments)}const Ju=new Date,Qu=new Date;function We(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>We(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(Ju.setTime(+i),Qu.setTime(+a),e(Ju),e(Qu),Math.floor(r(Ju,Qu))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Ns=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ns.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ns);Ns.range;const vr=1e3,It=vr*60,mr=It*60,br=mr*24,Xp=br*7,Ab=br*30,ed=br*365,hn=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());hn.range;const Zp=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getMinutes());Zp.range;const Jp=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCMinutes());Jp.range;const Qp=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr-e.getMinutes()*It)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getHours());Qp.range;const ev=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());ev.range;const Li=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*It)/br,e=>e.getDate()-1);Li.range;const Fl=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);Fl.range;const sE=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));sE.range;function Bn(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*It)/Xp)}const zl=Bn(0),Is=Bn(1),WV=Bn(2),KV=Bn(3),vo=Bn(4),UV=Bn(5),HV=Bn(6);zl.range;Is.range;WV.range;KV.range;vo.range;UV.range;HV.range;function Vn(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Xp)}const Bl=Vn(0),ks=Vn(1),GV=Vn(2),qV=Vn(3),mo=Vn(4),YV=Vn(5),XV=Vn(6);Bl.range;ks.range;GV.range;qV.range;mo.range;YV.range;XV.range;const tv=We(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tv.range;const rv=We(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());rv.range;const xr=We(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xr.range;const wr=We(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});wr.range;function lE(e,t,r,n,o,i){const a=[[hn,1,vr],[hn,5,5*vr],[hn,15,15*vr],[hn,30,30*vr],[i,1,It],[i,5,5*It],[i,15,15*It],[i,30,30*It],[o,1,mr],[o,3,3*mr],[o,6,6*mr],[o,12,12*mr],[n,1,br],[n,2,2*br],[r,1,Xp],[t,1,Ab],[t,3,3*Ab],[e,1,ed]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const v=d&&typeof d.range=="function"?d:l(c,u,d),g=v?v.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,v=$p(([,,h])=>h).right(a,p);if(v===a.length)return e.every(cf(c/ed,u/ed,d));if(v===0)return Ns.every(Math.max(cf(c,u,d),1));const[g,m]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return g.every(m)}return[s,l]}const[ZV,JV]=lE(wr,rv,Bl,sE,ev,Jp),[QV,e5]=lE(xr,tv,zl,Li,Qp,Zp);function td(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function t5(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ko(o),u=Uo(o),d=Ko(i),p=Uo(i),v=Ko(a),g=Uo(a),m=Ko(s),h=Uo(s),b=Ko(l),x=Uo(l),w={a:W,A:T,b:k,B:G,c:null,d:Ib,e:Ib,f:E5,g:k5,G:D5,H:w5,I:S5,j:P5,L:cE,m:O5,M:C5,p:ee,q:ne,Q:Db,s:$b,S:A5,u:_5,U:T5,V:j5,w:M5,W:N5,x:null,X:null,y:I5,Y:R5,Z:$5,"%":Rb},S={a:ie,A:oe,b:le,B:Oe,c:null,d:kb,e:kb,f:B5,g:Z5,G:Q5,H:L5,I:F5,j:z5,L:dE,m:V5,M:W5,p:K,q:ue,Q:Db,s:$b,S:K5,u:U5,U:H5,V:G5,w:q5,W:Y5,x:null,X:null,y:X5,Y:J5,Z:e4,"%":Rb},E={a:$,A:I,b:_,B:j,c:R,d:Mb,e:Mb,f:g5,g:jb,G:Tb,H:Nb,I:Nb,j:p5,L:h5,m:f5,M:v5,p:M,q:d5,Q:b5,s:x5,S:m5,u:a5,U:s5,V:l5,w:i5,W:c5,x:V,X:z,y:jb,Y:Tb,Z:u5,"%":y5};w.x=P(r,w),w.X=P(n,w),w.c=P(t,w),S.x=P(r,S),S.X=P(n,S),S.c=P(t,S);function P(L,H){return function(B){var F=[],fe=-1,se=0,Qe=L.length,et,Lt,Xm;for(B instanceof Date||(B=new Date(+B));++fe<Qe;)L.charCodeAt(fe)===37&&(F.push(L.slice(se,fe)),(Lt=_b[et=L.charAt(++fe)])!=null?et=L.charAt(++fe):Lt=et==="e"?" ":"0",(Xm=H[et])&&(et=Xm(B,Lt)),F.push(et),se=fe+1);return F.push(L.slice(se,fe)),F.join("")}}function O(L,H){return function(B){var F=Wo(1900,void 0,1),fe=C(F,L,B+="",0),se,Qe;if(fe!=B.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(H&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(se=rd(Wo(F.y,0,1)),Qe=se.getUTCDay(),se=Qe>4||Qe===0?ks.ceil(se):ks(se),se=Fl.offset(se,(F.V-1)*7),F.y=se.getUTCFullYear(),F.m=se.getUTCMonth(),F.d=se.getUTCDate()+(F.w+6)%7):(se=td(Wo(F.y,0,1)),Qe=se.getDay(),se=Qe>4||Qe===0?Is.ceil(se):Is(se),se=Li.offset(se,(F.V-1)*7),F.y=se.getFullYear(),F.m=se.getMonth(),F.d=se.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Qe="Z"in F?rd(Wo(F.y,0,1)).getUTCDay():td(Wo(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Qe+5)%7:F.w+F.U*7-(Qe+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,rd(F)):td(F)}}function C(L,H,B,F){for(var fe=0,se=H.length,Qe=B.length,et,Lt;fe<se;){if(F>=Qe)return-1;if(et=H.charCodeAt(fe++),et===37){if(et=H.charAt(fe++),Lt=E[et in _b?H.charAt(fe++):et],!Lt||(F=Lt(L,B,F))<0)return-1}else if(et!=B.charCodeAt(F++))return-1}return F}function M(L,H,B){var F=c.exec(H.slice(B));return F?(L.p=u.get(F[0].toLowerCase()),B+F[0].length):-1}function $(L,H,B){var F=v.exec(H.slice(B));return F?(L.w=g.get(F[0].toLowerCase()),B+F[0].length):-1}function I(L,H,B){var F=d.exec(H.slice(B));return F?(L.w=p.get(F[0].toLowerCase()),B+F[0].length):-1}function _(L,H,B){var F=b.exec(H.slice(B));return F?(L.m=x.get(F[0].toLowerCase()),B+F[0].length):-1}function j(L,H,B){var F=m.exec(H.slice(B));return F?(L.m=h.get(F[0].toLowerCase()),B+F[0].length):-1}function R(L,H,B){return C(L,t,H,B)}function V(L,H,B){return C(L,r,H,B)}function z(L,H,B){return C(L,n,H,B)}function W(L){return a[L.getDay()]}function T(L){return i[L.getDay()]}function k(L){return l[L.getMonth()]}function G(L){return s[L.getMonth()]}function ee(L){return o[+(L.getHours()>=12)]}function ne(L){return 1+~~(L.getMonth()/3)}function ie(L){return a[L.getUTCDay()]}function oe(L){return i[L.getUTCDay()]}function le(L){return l[L.getUTCMonth()]}function Oe(L){return s[L.getUTCMonth()]}function K(L){return o[+(L.getUTCHours()>=12)]}function ue(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=P(L+="",w);return H.toString=function(){return L},H},parse:function(L){var H=O(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=P(L+="",S);return H.toString=function(){return L},H},utcParse:function(L){var H=O(L+="",!0);return H.toString=function(){return L},H}}}var _b={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,r5=/^%/,n5=/[\\^$*+?|[\]().{}]/g;function pe(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function o5(e){return e.replace(n5,"\\$&")}function Ko(e){return new RegExp("^(?:"+e.map(o5).join("|")+")","i")}function Uo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function i5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function a5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function s5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function l5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function c5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function jb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function u5(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function d5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function f5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Mb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function p5(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Nb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function m5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function h5(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function g5(e,t,r){var n=Ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function y5(e,t,r){var n=r5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function b5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function x5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ib(e,t){return pe(e.getDate(),t,2)}function w5(e,t){return pe(e.getHours(),t,2)}function S5(e,t){return pe(e.getHours()%12||12,t,2)}function P5(e,t){return pe(1+Li.count(xr(e),e),t,3)}function cE(e,t){return pe(e.getMilliseconds(),t,3)}function E5(e,t){return cE(e,t)+"000"}function O5(e,t){return pe(e.getMonth()+1,t,2)}function C5(e,t){return pe(e.getMinutes(),t,2)}function A5(e,t){return pe(e.getSeconds(),t,2)}function _5(e){var t=e.getDay();return t===0?7:t}function T5(e,t){return pe(zl.count(xr(e)-1,e),t,2)}function uE(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function j5(e,t){return e=uE(e),pe(vo.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function M5(e){return e.getDay()}function N5(e,t){return pe(Is.count(xr(e)-1,e),t,2)}function I5(e,t){return pe(e.getFullYear()%100,t,2)}function k5(e,t){return e=uE(e),pe(e.getFullYear()%100,t,2)}function R5(e,t){return pe(e.getFullYear()%1e4,t,4)}function D5(e,t){var r=e.getDay();return e=r>=4||r===0?vo(e):vo.ceil(e),pe(e.getFullYear()%1e4,t,4)}function $5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function kb(e,t){return pe(e.getUTCDate(),t,2)}function L5(e,t){return pe(e.getUTCHours(),t,2)}function F5(e,t){return pe(e.getUTCHours()%12||12,t,2)}function z5(e,t){return pe(1+Fl.count(wr(e),e),t,3)}function dE(e,t){return pe(e.getUTCMilliseconds(),t,3)}function B5(e,t){return dE(e,t)+"000"}function V5(e,t){return pe(e.getUTCMonth()+1,t,2)}function W5(e,t){return pe(e.getUTCMinutes(),t,2)}function K5(e,t){return pe(e.getUTCSeconds(),t,2)}function U5(e){var t=e.getUTCDay();return t===0?7:t}function H5(e,t){return pe(Bl.count(wr(e)-1,e),t,2)}function fE(e){var t=e.getUTCDay();return t>=4||t===0?mo(e):mo.ceil(e)}function G5(e,t){return e=fE(e),pe(mo.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function q5(e){return e.getUTCDay()}function Y5(e,t){return pe(ks.count(wr(e)-1,e),t,2)}function X5(e,t){return pe(e.getUTCFullYear()%100,t,2)}function Z5(e,t){return e=fE(e),pe(e.getUTCFullYear()%100,t,2)}function J5(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function Q5(e,t){var r=e.getUTCDay();return e=r>=4||r===0?mo(e):mo.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function e4(){return"+0000"}function Rb(){return"%"}function Db(e){return+e}function $b(e){return Math.floor(+e/1e3)}var Zn,pE,vE;t4({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function t4(e){return Zn=t5(e),pE=Zn.format,Zn.parse,vE=Zn.utcFormat,Zn.utcParse,Zn}function r4(e){return new Date(e)}function n4(e){return e instanceof Date?+e:+new Date(+e)}function nv(e,t,r,n,o,i,a,s,l,c){var u=Wp(),d=u.invert,p=u.domain,v=c(".%L"),g=c(":%S"),m=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),S=c("%Y");function E(P){return(l(P)<P?v:s(P)<P?g:a(P)<P?m:i(P)<P?h:n(P)<P?o(P)<P?b:x:r(P)<P?w:S)(P)}return u.invert=function(P){return new Date(d(P))},u.domain=function(P){return arguments.length?p(Array.from(P,n4)):p().map(r4)},u.ticks=function(P){var O=p();return e(O[0],O[O.length-1],P??10)},u.tickFormat=function(P,O){return O==null?E:c(O)},u.nice=function(P){var O=p();return(!P||typeof P.range!="function")&&(P=t(O[0],O[O.length-1],P??10)),P?p(eE(O,P)):u},u.copy=function(){return $i(u,nv(e,t,r,n,o,i,a,s,l,c))},u}function o4(){return $t.apply(nv(QV,e5,xr,tv,zl,Li,Qp,Zp,hn,pE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function i4(){return $t.apply(nv(ZV,JV,wr,rv,Bl,Fl,ev,Jp,hn,vE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vl(){var e=0,t=1,r,n,o,i,a=pt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-r)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),o=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(p){var v,g;return arguments.length?([v,g]=p,a=d(v,g),c):[a(0),a(1)]}}return c.range=u(Eo),c.rangeRound=u(Vp),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,r=d(e),n=d(t),o=r===n?0:1/(n-r),c}}function en(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function mE(){var e=Qr(Vl()(pt));return e.copy=function(){return en(e,mE())},Mr.apply(e,arguments)}function hE(){var e=Hp(Vl()).domain([1,10]);return e.copy=function(){return en(e,hE()).base(e.base())},Mr.apply(e,arguments)}function gE(){var e=Gp(Vl());return e.copy=function(){return en(e,gE()).constant(e.constant())},Mr.apply(e,arguments)}function ov(){var e=qp(Vl());return e.copy=function(){return en(e,ov()).exponent(e.exponent())},Mr.apply(e,arguments)}function a4(){return ov.apply(null,arguments).exponent(.5)}function yE(){var e=[],t=pt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ri(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Wr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,o)=>t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>U3(e,i/n))},r.copy=function(){return yE(t).domain(e)},Mr.apply(r,arguments)}function Wl(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=pt,u,d=!1,p;function v(m){return isNaN(m=+m)?p:(m=.5+((m=+u(m))-i)*(n*m<n*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,o=u(e=+e),i=u(t=+t),a=u(r=+r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(d=!!m,v):d},v.interpolator=function(m){return arguments.length?(c=m,v):c};function g(m){return function(h){var b,x,w;return arguments.length?([b,x,w]=h,c=yV(m,[b,x,w]),v):[c(0),c(.5),c(1)]}}return v.range=g(Eo),v.rangeRound=g(Vp),v.unknown=function(m){return arguments.length?(p=m,v):p},function(m){return u=m,o=m(e),i=m(t),a=m(r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v}}function bE(){var e=Qr(Wl()(pt));return e.copy=function(){return en(e,bE())},Mr.apply(e,arguments)}function xE(){var e=Hp(Wl()).domain([.1,1,10]);return e.copy=function(){return en(e,xE()).base(e.base())},Mr.apply(e,arguments)}function wE(){var e=Gp(Wl());return e.copy=function(){return en(e,wE()).constant(e.constant())},Mr.apply(e,arguments)}function iv(){var e=qp(Wl());return e.copy=function(){return en(e,iv()).exponent(e.exponent())},Mr.apply(e,arguments)}function s4(){return iv.apply(null,arguments).exponent(.5)}const Yo=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Fp,scaleDiverging:bE,scaleDivergingLog:xE,scaleDivergingPow:iv,scaleDivergingSqrt:s4,scaleDivergingSymlog:wE,scaleIdentity:Q1,scaleImplicit:uf,scaleLinear:J1,scaleLog:tE,scaleOrdinal:Lp,scalePoint:q3,scalePow:Yp,scaleQuantile:oE,scaleQuantize:iE,scaleRadial:nE,scaleSequential:mE,scaleSequentialLog:hE,scaleSequentialPow:ov,scaleSequentialQuantile:yE,scaleSequentialSqrt:a4,scaleSequentialSymlog:gE,scaleSqrt:BV,scaleSymlog:rE,scaleThreshold:aE,scaleTime:o4,scaleUtc:i4,tickFormat:Z1},Symbol.toStringTag,{value:"Module"}));var Nr=e=>e.chartData,Kl=N([Nr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),av=(e,t,r,n)=>n?Kl(e):Nr(e),l4=(e,t,r)=>r?Kl(e):Nr(e);function Sr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ce(t)&&ce(r))return!0}return!1}function Lb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function SE(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ce(r))o=r;else if(typeof r=="function")return;if(ce(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(Sr(a))return a}}function c4(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Sr(n))return Lb(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&qg.test(o)){var l=qg.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&Yg.test(i)){var u=Yg.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var p=[a,s];if(Sr(p))return t==null?p:Lb(p,t,r)}}}var Oo=1e9,u4={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},lv,_e=!0,Dt="[DecimalError] ",Sn=Dt+"Invalid argument: ",sv=Dt+"Exponent out of range: ",Co=Math.floor,fn=Math.pow,d4=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Et,Ge=1e7,Pe=7,PE=9007199254740991,Rs=Co(PE/Pe),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,r,n,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,o=e.d.length,t=0,r=n<o?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Pe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return hr(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return xe(hr(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return $e(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Et))throw Error(Dt+"NaN");if(r.s<1)throw Error(Dt+(r.s?"NaN":"-Infinity"));return r.eq(Et)?new n(0):(_e=!1,t=hr(fi(r,i),fi(e,i),i),_e=!0,xe(t,o))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CE(t,e):EE(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(Dt+"NaN");return r.s?(_e=!1,t=hr(r,e,0,1).times(e),_e=!0,r.minus(t)):xe(new n(r),o)};Y.naturalExponential=Y.exp=function(){return OE(this)};Y.naturalLogarithm=Y.ln=function(){return fi(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?EE(t,e):CE(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Sn+e);if(t=$e(o)+1,n=o.d.length-1,r=n*Pe+1,n=o.d[n],n){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Dt+"NaN")}for(e=$e(s),_e=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=er(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Co((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(o.toString()),r=l.precision,o=a=r+3;;)if(i=n,n=i.plus(hr(s,i,a+2)).times(.5),er(i.d).slice(0,a)===(t=er(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(xe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;a+=4}return _e=!0,xe(n,r)};Y.times=Y.mul=function(e){var t,r,n,o,i,a,s,l,c,u=this,d=u.constructor,p=u.d,v=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=p.length,c=v.length,l<c&&(i=p,p=v,v=i,a=l,l=c,c=a),i=[],a=l+c,n=a;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=l+n;o>n;)s=i[o]+v[n]*p[o-n-1]+t,i[o--]=s%Ge|0,t=s/Ge|0;i[o]=(i[o]+t)%Ge|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,_e?xe(e,d.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(sr(e,0,Oo),t===void 0?t=n.rounding:sr(t,0,8),xe(r,e+$e(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=Mn(n,!0):(sr(e,0,Oo),t===void 0?t=o.rounding:sr(t,0,8),n=xe(new o(n),e+1,t),r=Mn(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?Mn(o):(sr(e,0,Oo),t===void 0?t=i.rounding:sr(t,0,8),n=xe(new i(o),e+$e(o)+1,t),r=Mn(n.abs(),!1,e+$e(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return xe(new t(e),$e(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Et);if(s=new l(s),!s.s){if(e.s<1)throw Error(Dt+"Infinity");return s}if(s.eq(Et))return s;if(n=l.precision,e.eq(Et))return xe(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=s.s,a){if((r=u<0?-u:u)<=PE){for(o=new l(Et),t=Math.ceil(n/Pe+4),_e=!1;r%2&&(o=o.times(s),zb(o.d,t)),r=Co(r/2),r!==0;)s=s.times(s),zb(s.d,t);return _e=!0,e.s<0?new l(Et).div(o):xe(o,n)}}else if(i<0)throw Error(Dt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,_e=!1,o=e.times(fi(s,n+c)),_e=!0,o=OE(o),o.s=i,o};Y.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=$e(o),n=Mn(o,r<=i.toExpNeg||r>=i.toExpPos)):(sr(e,1,Oo),t===void 0?t=i.rounding:sr(t,0,8),o=xe(new i(o),e,t),r=$e(o),n=Mn(o,e<=r||r<=i.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(sr(e,1,Oo),t===void 0?t=n.rounding:sr(t,0,8)),xe(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return Mn(e,t<=r.toExpNeg||t>=r.toExpPos)};function EE(e,t){var r,n,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),_e?xe(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,o=a,s=l.length),a=Math.ceil(d/Pe),s=a>s?a+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/Ge|0,l[i]%=Ge;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,_e?xe(t,d):t}function sr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Sn+e)}function er(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)n=e[t]+"",r=Pe-n.length,r&&(i+=Fr(r)),i+=n;a=e[t],n=a+"",r=Pe-n.length,r&&(i+=Fr(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var hr=(function(){function e(n,o){var i,a=0,s=n.length;for(n=n.slice();s--;)i=n[s]*o+a,n[s]=i%Ge|0,a=i/Ge|0;return a&&n.unshift(a),n}function t(n,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=o[s]){l=n[s]>o[s]?1:-1;break}return l}function r(n,o,i){for(var a=0;i--;)n[i]-=a,a=n[i]<o[i]?1:0,n[i]=a*Ge+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,a){var s,l,c,u,d,p,v,g,m,h,b,x,w,S,E,P,O,C,M=n.constructor,$=n.s==o.s?1:-1,I=n.d,_=o.d;if(!n.s)return new M(n);if(!o.s)throw Error(Dt+"Division by zero");for(l=n.e-o.e,O=_.length,E=I.length,v=new M($),g=v.d=[],c=0;_[c]==(I[c]||0);)++c;if(_[c]>(I[c]||0)&&--l,i==null?x=i=M.precision:a?x=i+($e(n)-$e(o))+1:x=i,x<0)return new M(0);if(x=x/Pe+2|0,c=0,O==1)for(u=0,_=_[0],x++;(c<E||u)&&x--;c++)w=u*Ge+(I[c]||0),g[c]=w/_|0,u=w%_|0;else{for(u=Ge/(_[0]+1)|0,u>1&&(_=e(_,u),I=e(I,u),O=_.length,E=I.length),S=O,m=I.slice(0,O),h=m.length;h<O;)m[h++]=0;C=_.slice(),C.unshift(0),P=_[0],_[1]>=Ge/2&&++P;do u=0,s=t(_,m,O,h),s<0?(b=m[0],O!=h&&(b=b*Ge+(m[1]||0)),u=b/P|0,u>1?(u>=Ge&&(u=Ge-1),d=e(_,u),p=d.length,h=m.length,s=t(d,m,p,h),s==1&&(u--,r(d,O<p?C:_,p))):(u==0&&(s=u=1),d=_.slice()),p=d.length,p<h&&d.unshift(0),r(m,d,h),s==-1&&(h=m.length,s=t(_,m,O,h),s<1&&(u++,r(m,O<h?C:_,h))),h=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[h++]=I[S]||0:(m=[I[S]],h=1);while((S++<E||m[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,xe(v,a?i+$e(v)+1:i)}})();function OE(e,t){var r,n,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if($e(e)>16)throw Error(sv+$e(e));if(!e.s)return new u(Et);for(_e=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(fn(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(Et),u.precision=s;;){if(o=xe(o.times(e),s),r=r.times(++l),a=i.plus(hr(o,r,s)),er(a.d).slice(0,s)===er(i.d).slice(0,s)){for(;c--;)i=xe(i.times(i),s);return u.precision=d,t==null?(_e=!0,xe(i,d)):i}i=a}}function $e(e){for(var t=e.e*Pe,r=e.d[0];r>=10;r/=10)t++;return t}function nd(e,t,r){if(t>e.LN10.sd())throw _e=!0,r&&(e.precision=r),Error(Dt+"LN10 precision limit exceeded");return xe(new e(e.LN10),t)}function Fr(e){for(var t="";e--;)t+="0";return t}function fi(e,t){var r,n,o,i,a,s,l,c,u,d=1,p=10,v=e,g=v.d,m=v.constructor,h=m.precision;if(v.s<1)throw Error(Dt+(v.s?"NaN":"-Infinity"));if(v.eq(Et))return new m(0);if(t==null?(_e=!1,c=h):c=t,v.eq(10))return t==null&&(_e=!0),nd(m,c);if(c+=p,m.precision=c,r=er(g),n=r.charAt(0),i=$e(v),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=er(v.d),n=r.charAt(0),d++;i=$e(v),n>1?(v=new m("0."+r),i++):v=new m(n+"."+r.slice(1))}else return l=nd(m,c+2,h).times(i+""),v=fi(new m(n+"."+r.slice(1)),c-p).plus(l),m.precision=h,t==null?(_e=!0,xe(v,h)):v;for(s=a=v=hr(v.minus(Et),v.plus(Et),c),u=xe(v.times(v),c),o=3;;){if(a=xe(a.times(u),c),l=s.plus(hr(a,new m(o),c)),er(l.d).slice(0,c)===er(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(nd(m,c+2,h).times(i+""))),s=hr(s,new m(d),c),m.precision=h,t==null?(_e=!0,xe(s,h)):s;s=l,o+=2}}function Fb(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(n,o),t){if(o-=n,r=r-n-1,e.e=Co(r/Pe),e.d=[],n=(r+1)%Pe,r<0&&(n+=Pe),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Pe;n<o;)e.d.push(+t.slice(n,n+=Pe));t=t.slice(n),n=Pe-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>Rs||e.e<-Rs))throw Error(sv+r)}else e.s=0,e.e=0,e.d=[0];return e}function xe(e,t,r){var n,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(n=t-a,n<0)n+=Pe,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Pe),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Pe,o=n-Pe+a}if(r!==void 0&&(i=fn(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?o>0?c/fn(10,a-o):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(i=$e(e),d.length=1,t=t-i-1,d[0]=fn(10,(Pe-t%Pe)%Pe),e.e=Co(-t/Pe)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,i=1,u--):(d.length=u+1,i=fn(10,Pe-n),d[u]=o>0?(c/fn(10,a-o)%fn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Ge&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Ge)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(_e&&(e.e>Rs||e.e<-Rs))throw Error(sv+$e(e));return e}function CE(e,t){var r,n,o,i,a,s,l,c,u,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),_e?xe(t,v):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),a=c-n,a){for(u=a<0,u?(r=l,a=-a,s=d.length):(r=d,n=c,s=l.length),o=Math.max(Math.ceil(v/Pe),s)+2,a>o&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=Ge-1;--l[i],l[o]+=Ge}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,_e?xe(t,v):t):new p(0)}function Mn(e,t,r){var n,o=$e(e),i=er(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+Fr(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Fr(-o-1)+i,r&&(n=r-a)>0&&(i+=Fr(n))):o>=a?(i+=Fr(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+Fr(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=Fr(n))),e.s<0?"-"+i:i}function zb(e,t){if(e.length>t)return e.length=t,!0}function AE(e){var t,r,n;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Sn+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return Fb(a,i.toString())}else if(typeof i!="string")throw Error(Sn+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,d4.test(i))Fb(a,i);else throw Error(Sn+i)}if(o.prototype=Y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=AE,o.config=o.set=f4,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return o.config(e),o}function f4(e){if(!e||typeof e!="object")throw Error(Dt+"Object expected");var t,r,n,o=["precision",1,Oo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((n=e[r=o[t]])!==void 0)if(Co(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Sn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sn+r+": "+n);return this}var lv=AE(u4);Et=new lv(1);const he=lv;function _E(e){var t;return e===0?t=1:t=Math.floor(new he(e).abs().log(10).toNumber())+1,t}function TE(e,t,r){for(var n=new he(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var jE=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},ME=(e,t,r)=>{if(e.lte(0))return new he(0);var n=_E(e.toNumber()),o=new he(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new he(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new he(l.toNumber()):new he(Math.ceil(l.toNumber()))},p4=(e,t,r)=>{var n=new he(1),o=new he(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new he(10).pow(_E(e)-1),o=new he(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new he(Math.floor(e)))}else e===0?o=new he(Math.floor((t-1)/2)):r||(o=new he(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(o.add(new he(l-a).mul(n)).toNumber());return s},NE=function(t,r,n,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new he(0),tickMin:new he(0),tickMax:new he(0)};var a=ME(new he(r).sub(t).div(n-1),o,i),s;t<=0&&r>=0?s=new he(0):(s=new he(t).add(r).div(2),s=s.sub(new he(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new he(r).sub(s).div(a).toNumber()),u=l+c+1;return u>n?NE(t,r,n,o,i+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:a,tickMin:s.sub(new he(l).mul(a)),tickMax:s.add(new he(c).mul(a))})},v4=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),[s,l]=jE([r,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),l];return r>n?c.reverse():c}if(s===l)return p4(s,o,i);var{step:u,tickMin:d,tickMax:p}=NE(s,l,a,i,0),v=TE(d,p.add(new he(.1).mul(u)),u);return r>n?v.reverse():v},m4=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=jE([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=ME(new he(s).sub(a).div(l-1),i,0),u=[...TE(new he(a),new he(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},IE=e=>e.rootProps.maxBarSize,h4=e=>e.rootProps.barGap,kE=e=>e.rootProps.barCategoryGap,g4=e=>e.rootProps.barSize,Fi=e=>e.rootProps.stackOffset,RE=e=>e.rootProps.reverseStackOrder,cv=e=>e.options.chartName,uv=e=>e.rootProps.syncId,DE=e=>e.rootProps.syncMethod,dv=e=>e.options.eventEmitter,De={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},cn={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Yt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Ul=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Hl(e,t,r){if(r!=="auto")return r;if(e!=null)return _r(e,t)?"category":"number"}function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ds(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){y4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y4(e,t,r){return(t=b4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b4(e){var t=x4(e,"string");return typeof t=="symbol"?t:t+""}function x4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vb={allowDataOverflow:cn.allowDataOverflow,allowDecimals:cn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:cn.angleAxisId,includeHidden:!1,name:void 0,reversed:cn.reversed,scale:cn.scale,tick:cn.tick,tickCount:void 0,ticks:void 0,type:cn.type,unit:void 0},Wb={allowDataOverflow:Yt.allowDataOverflow,allowDecimals:Yt.allowDecimals,allowDuplicatedCategory:Yt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Yt.radiusAxisId,includeHidden:Yt.includeHidden,name:void 0,reversed:Yt.reversed,scale:Yt.scale,tick:Yt.tick,tickCount:Yt.tickCount,ticks:void 0,type:Yt.type,unit:void 0},w4=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},fv=N([w4,w1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Hl(t,"angleAxis",Vb.type))!==null&&r!==void 0?r:"category";return Ds(Ds({},Vb),{},{type:n})}),S4=(e,t)=>e.polarAxis.radiusAxis[t],pv=N([S4,w1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Hl(t,"radiusAxis",Wb.type))!==null&&r!==void 0?r:"category";return Ds(Ds({},Wb),{},{type:n})}),Gl=e=>e.polarOptions,vv=N([Tr,jr,Ve],L1),$E=N([Gl,vv],(e,t)=>{if(e!=null)return at(e.innerRadius,t,0)}),LE=N([Gl,vv],(e,t)=>{if(e!=null)return at(e.outerRadius,t,t*.8)}),P4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},FE=N([Gl],P4);N([fv,FE],Ul);var zE=N([vv,$E,LE],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});N([pv,zE],Ul);var BE=N([ve,Gl,$E,LE,Tr,jr],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:at(a,o,o/2),cy:at(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),je=(e,t)=>t,zi=(e,t,r)=>r;function mv(e){return e?.id}function VE(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=mv(s);c.forEach((d,p)=>{var v=i==null||o?p:String(be(d,i,null)),g=be(d,s.dataKey,0),m;a.has(v)?m=a.get(v):m={},Object.assign(m,{[u]:g}),a.set(v,m)})}}),Array.from(a.values())}function ql(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Yl=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Xl(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function E4(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Je=e=>{var t=ve(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ao=e=>e.tooltip.settings.axisId;function O4(e){if(e in Yo)return Yo[e]();var t="scale".concat(Ei(e));if(t in Yo)return Yo[t]()}function Kb(e){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a})(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break}}return s}}}}function Ub(e,t,r){if(typeof e=="function")return Kb(e.copy().domain(t).range(r));if(e!=null){var n=O4(e);if(n!=null)return n.domain(t).range(r),Kb(n)}}var WE=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Sr(t)){for(var r,n,o=0;o<t.length;o++){var i=t[o];ce(i)&&((r===void 0||i<r)&&(r=i),(n===void 0||i>n)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(n){C4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C4(e,t,r){return(t=A4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A4(e){var t=_4(e,"string");return typeof t=="symbol"?t:t+""}function _4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vf=[0,"auto"],Ue={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},KE=(e,t)=>e.cartesianAxis.xAxis[t],Ir=(e,t)=>{var r=KE(e,t);return r??Ue},He={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:vf,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:ji},UE=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=UE(e,t);return r??He},T4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},hv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??T4},ke=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"zAxis":return hv(e,r);case"angleAxis":return fv(e,r);case"radiusAxis":return pv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},j4=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},_o=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"angleAxis":return fv(e,r);case"radiusAxis":return pv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},HE=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function gv(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Zl=e=>e.graphicalItems.cartesianItems,M4=N([je,zi],gv),yv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Bi=N([Zl,ke,M4],yv,{memoizeOptions:{resultEqualityCheck:Xl}}),GE=N([Bi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ql)),qE=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),N4=N([Bi],qE),bv=e=>e.map(t=>t.data).filter(Boolean).flat(1),I4=N([Bi],bv,{memoizeOptions:{resultEqualityCheck:Xl}}),xv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},wv=N([I4,av],xv),Sv=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:be(o,n)}))):e.map(n=>({value:n})),Jl=N([wv,ke,Bi],Sv);function YE(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ga(e){if(ir(e)||e instanceof Date){var t=Number(e);if(ce(t))return t}}function Gb(e){if(Array.isArray(e)){var t=[Ga(e[0]),Ga(e[1])];return Sr(t)?t:void 0}var r=Ga(e);if(r!=null)return[r,r]}function Pr(e){return e.map(Ga).filter(yt)}function k4(e,t,r){return!r||typeof t!="number"||or(t)?[]:r.length?Pr(r.flatMap(n=>{var o=be(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!ce(i)||!ce(a)))return[t-i,t+a]})):[]}var Ke=e=>{var t=Je(e),r=Ao(e);return _o(e,t,r)},Vi=N([Ke],e=>e?.dataKey),R4=N([GE,av,Ke],VE),XE=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,u=c.map(mv);return[s,{stackedData:ez(e,u,r),graphicalItems:c}]}))},mf=N([R4,GE,Fi,RE],XE),ZE=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=iz(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},D4=N([ke],e=>e.allowDataOverflow),Pv=e=>{var t;if(e==null||!("domain"in e))return vf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Pr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:vf},Ev=N([ke],Pv),Ov=N([Ev,D4],SE),$4=N([mf,Nr,je,Ov],ZE,{memoizeOptions:{resultEqualityCheck:Yl}}),Ql=e=>e.errorBars,L4=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>YE(r,n)),Ls=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},Cv=(e,t,r,n,o)=>{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,d=(c=n[l.id])===null||c===void 0?void 0:c.filter(b=>YE(o,b)),p=be(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),v=k4(s,p,d);if(v.length>=2){var g=Math.min(...v),m=Math.max(...v);(i==null||g<i)&&(i=g),(a==null||m>a)&&(a=m)}var h=Gb(p);h!=null&&(i=i==null?h[0]:Math.min(i,h[0]),a=a==null?h[1]:Math.max(a,h[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=Gb(be(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),ce(i)&&ce(a))return[i,a]},F4=N([wv,ke,N4,Ql,je],Cv,{memoizeOptions:{resultEqualityCheck:Yl}});function z4(e){var{value:t}=e;if(ir(t)||t instanceof Date)return t}var B4=(e,t,r)=>{var n=e.map(z4).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&fP(n))?V1(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},JE=e=>e.referenceElements.dots,To=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),V4=N([JE,je,zi],To),QE=e=>e.referenceElements.areas,W4=N([QE,je,zi],To),eO=e=>e.referenceElements.lines,K4=N([eO,je,zi],To),tO=(e,t)=>{if(e!=null){var r=Pr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},U4=N(V4,je,tO),rO=(e,t)=>{if(e!=null){var r=Pr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},H4=N([W4,je],rO);function G4(e){var t;if(e.x!=null)return Pr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Pr(r)}function q4(e){var t;if(e.y!=null)return Pr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Pr(r)}var nO=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?G4(n):q4(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Y4=N([K4,je],nO),X4=N(U4,Y4,H4,(e,t,r)=>Ls(e,r,t)),Av=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?Ls(n,i,o):Ls(i,o);return c4(t,c,e.allowDataOverflow)},Z4=N([ke,Ev,Ov,$4,F4,X4,ve,je],Av,{memoizeOptions:{resultEqualityCheck:Yl}}),J4=[0,1],_v=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=_r(t,i);if(c&&s==null){var u;return V1(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?B4(n,e,c):o==="expand"?J4:a}},Tv=N([ke,ve,wv,Jl,Fi,je,Z4],_v);function Q4(e){return e in Yo}var oO=(e,t,r)=>{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string"){var i="scale".concat(Ei(n));return Q4(i)?i:"point"}}},tn=N([ke,HE,cv],oO);function jv(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Ub(e.scale,r,n):Ub(t,r,n)}var Mv=(e,t,r)=>{var n=Pv(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Sr(e))return v4(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Sr(e))return m4(e,t.tickCount,t.allowDecimals)}},Nv=N([Tv,_o,tn],Mv),Iv=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Sr(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},eW=N([ke,Tv,Nv,je],Iv),tW=N(Jl,ke,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Pr(e.map(d=>d.value))).sort((d,p)=>d-p),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;s<n.length-1;s++){var l=n[s],c=n[s+1];if(!(l==null||c==null)){var u=c-l;r=Math.min(r,u)}}return r/a}}),iO=N(tW,ve,kE,Ve,(e,t,r,n,o)=>o,(e,t,r,n,o)=>{if(!ce(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=at(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),rW=(e,t,r)=>{var n=Ir(e,t);return n==null||typeof n.padding!="string"?0:iO(e,"xAxis",t,r,n.padding)},nW=(e,t,r)=>{var n=kr(e,t);return n==null||typeof n.padding!="string"?0:iO(e,"yAxis",t,r,n.padding)},oW=N(Ir,rW,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),iW=N(kr,nW,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),aW=N([Ve,oW,Ml,jl,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),sW=N([Ve,ve,iW,Ml,jl,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Wi=(e,t,r,n)=>{var o;switch(t){case"xAxis":return aW(e,r,n);case"yAxis":return sW(e,r,n);case"zAxis":return(o=hv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return FE(e);case"radiusAxis":return zE(e,r);default:return}},aO=N([ke,Wi],Ul),lW=N([tn,eW],WE),ec=N([ke,tn,lW,aO],jv);N([Bi,Ql,je],L4);function sO(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var tc=(e,t)=>t,rc=(e,t,r)=>r,cW=N(_l,tc,rc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(sO)),uW=N(Tl,tc,rc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(sO)),lO=(e,t)=>({width:e.width,height:t.height}),dW=(e,t)=>{var r=typeof t.width=="number"?t.width:ji;return{width:r,height:e.height}},cO=N(Ve,Ir,lO),fW=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},pW=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},vW=N(jr,Ve,cW,tc,rc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=lO(t,s);a==null&&(a=fW(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),mW=N(Tr,Ve,uW,tc,rc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=dW(t,s);a==null&&(a=pW(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),hW=(e,t)=>{var r=Ir(e,t);if(r!=null)return vW(e,r.orientation,r.mirror)},gW=N([Ve,Ir,hW,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),yW=(e,t)=>{var r=kr(e,t);if(r!=null)return mW(e,r.orientation,r.mirror)},bW=N([Ve,kr,yW,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),uO=N(Ve,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:ji;return{width:r,height:e.height}}),qb=(e,t,r)=>{switch(t){case"xAxis":return cO(e,r).width;case"yAxis":return uO(e,r).height;default:return}},dO=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=_r(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&fP(l))return l}},kv=N([ve,Jl,ke,je],dO),fO=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=_r(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Rv=N([ve,Jl,_o,je],fO),Yb=N([ve,j4,tn,ec,kv,Rv,Wi,Nv,je],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=_r(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),xW=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=_r(e,l),{type:u,ticks:d,tickCount:p}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,g=u==="category"&&n.bandwidth?n.bandwidth()/v:0;g=l==="angleAxis"&&i!=null&&i.length>=2?qe(i[0]-i[1])*2*g:g;var m=d||o;return m?m.map((h,b)=>{var x=a?a.indexOf(h):h,w=n.map(x);return ce(w)?{index:b,coordinate:w+g,value:h,offset:g}:null}).filter(yt):c&&s?s.map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.ticks?n.ticks(p).map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.domain().map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:a?a[h]:h,index:b,offset:g}:null}).filter(yt)}},pO=N([ve,_o,tn,ec,Nv,Wi,kv,Rv,je],xW),wW=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=_r(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?qe(n[0]-n[1])*2*c:c,s&&i?i.map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.ticks?r.ticks(l).map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.domain().map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:o?o[u]:u,index:d,offset:c}:null}).filter(yt)}},Hr=N([ve,_o,ec,Wi,kv,Rv,je],wW),Gr=N(ke,ec,(e,t)=>{if(!(e==null||t==null))return $s($s({},e),{},{scale:t})}),SW=N([ke,tn,Tv,aO],jv);N((e,t,r)=>hv(e,r),SW,(e,t)=>{if(!(e==null||t==null))return $s($s({},e),{},{scale:t})});var PW=N([ve,_l,Tl],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),vO=e=>e.options.defaultTooltipEventType,mO=e=>e.options.validateTooltipEventTypes;function hO(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Dv(e,t){var r=vO(e),n=mO(e);return hO(t,r,n)}function EW(e){return J(t=>Dv(t,e))}var gO=(e,t)=>{var r,n=Number(t);if(!(or(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},OW=e=>e.tooltip.settings,Br={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},CW={itemInteraction:{click:Br,hover:Br},axisInteraction:{click:Br,hover:Br},keyboardInteraction:Br,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},yO=xt({name:"tooltip",initialState:CW,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ce()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:Ce()},removeTooltipEntrySettings:{reducer(e,t){var r=Bt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ce()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:AW,replaceTooltipEntrySettings:_W,removeTooltipEntrySettings:TW,setTooltipSettingsState:jW,setActiveMouseOverItemIndex:bO,mouseLeaveItem:MW,mouseLeaveChart:xO,setActiveClickItemIndex:NW,setMouseOverAxisIndex:wO,setMouseClickAxisIndex:IW,setSyncInteraction:hf,setKeyboardInteraction:gf}=yO.actions,kW=yO.reducer;function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){RW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RW(e,t,r){return(t=DW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DW(e){var t=$W(e,"string");return typeof t=="symbol"?t:t+""}function $W(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LW(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function FW(e){return e.index!=null}var SO=(e,t,r,n)=>{if(t==null)return Br;var o=LW(e,t,r);if(o==null)return Br;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(FW(o)){if(i)return Ma(Ma({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Ma(Ma({},Br),{},{coordinate:o.coordinate})};function zW(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function BW(e,t){var r=zW(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function VW(e,t,r){if(r==null||t==null)return!0;var n=be(e,t);return n==null||!Sr(r)?!0:BW(n,r)}var $v=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!ce(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||VW(c,r,n)?String(l):null},PO=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)return r==="horizontal"?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},EO=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})},OO=e=>e.options.tooltipPayloadSearcher,jo=e=>e.tooltip;function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){WW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WW(e,t,r){return(t=KW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KW(e){var t=UW(e,"string");return typeof t=="symbol"?t:t+""}function UW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HW(e,t){return e??t}var CO=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,d=[];return e.reduce((p,v)=>{var g,{dataDefinedOnItem:m,settings:h}=v,b=HW(m,s),x=Array.isArray(b)?u1(b,c,u):b,w=(g=h?.dataKey)!==null&&g!==void 0?g:n,S=h?.nameKey,E;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?E=pP(x,n,o):E=i(x,t,l,S),Array.isArray(E))E.forEach(O=>{var C=Jb(Jb({},h),{},{name:O.name,unit:O.unit,color:void 0,fill:void 0});p.push(Xg({tooltipEntrySettings:C,dataKey:O.dataKey,payload:O.payload,value:be(O.payload,O.dataKey),name:O.name}))});else{var P;p.push(Xg({tooltipEntrySettings:h,dataKey:w,payload:E,value:be(E,w),name:(P=be(E,S))!==null&&P!==void 0?P:h?.name}))}return p},d)}},Lv=N([Ke,HE,cv],oO),GW=N([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),qW=N([Je,Ao],gv),Mo=N([GW,Ke,qW],yv,{memoizeOptions:{resultEqualityCheck:Xl}}),YW=N([Mo],e=>e.filter(ql)),XW=N([Mo],bv,{memoizeOptions:{resultEqualityCheck:Xl}}),No=N([XW,Nr],xv),ZW=N([YW,Nr,Ke],VE),Fv=N([No,Ke,Mo],Sv),AO=N([Ke],Pv),JW=N([Ke],e=>e.allowDataOverflow),_O=N([AO,JW],SE),QW=N([Mo],e=>e.filter(ql)),e6=N([ZW,QW,Fi,RE],XE),t6=N([e6,Nr,Je,_O],ZE),r6=N([Mo],qE),n6=N([No,Ke,r6,Ql,Je],Cv,{memoizeOptions:{resultEqualityCheck:Yl}}),o6=N([JE,Je,Ao],To),i6=N([o6,Je],tO),a6=N([QE,Je,Ao],To),s6=N([a6,Je],rO),l6=N([eO,Je,Ao],To),c6=N([l6,Je],nO),u6=N([i6,c6,s6],Ls),d6=N([Ke,AO,_O,t6,n6,u6,ve,Je],Av),Ki=N([Ke,ve,No,Fv,Fi,Je,d6],_v),f6=N([Ki,Ke,Lv],Mv),p6=N([Ke,Ki,f6,Je],Iv),TO=e=>{var t=Je(e),r=Ao(e),n=!1;return Wi(e,t,r,n)},jO=N([Ke,TO],Ul),MO=N([Ke,Lv,p6,jO],jv),v6=N([ve,Fv,Ke,Je],dO),m6=N([ve,Fv,Ke,Je],fO),h6=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=_r(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,d=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return d=s==="angleAxis"&&o!=null&&o?.length>=2?qe(o[0]-o[1])*2*d:d,c&&a?a.map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:p,index:v,offset:d}:null}).filter(yt):n.domain().map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:i?i[p]:p,index:v,offset:d}:null}).filter(yt)}}},Rr=N([ve,Ke,Lv,MO,TO,v6,m6,Je],h6),zv=N([vO,mO,OW],(e,t,r)=>hO(r.shared,e,t)),NO=e=>e.tooltip.settings.trigger,Bv=e=>e.tooltip.settings.defaultIndex,Ui=N([jo,zv,NO,Bv],SO),qr=N([Ui,No,Vi,Ki],$v),IO=N([Rr,qr],gO),Vv=N([Ui],e=>{if(e)return e.dataKey}),g6=N([Ui],e=>{if(e)return e.graphicalItemId}),kO=N([jo,zv,NO,Bv],EO),y6=N([Tr,jr,ve,Ve,Rr,Bv,kO],PO),b6=N([Ui,y6],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),x6=N([Ui],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),w6=N([kO,qr,Nr,Vi,IO,OO,zv],CO),S6=N([w6],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){P6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P6(e,t,r){return(t=E6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E6(e){var t=O6(e,"string");return typeof t=="symbol"?t:t+""}function O6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C6=()=>J(Ke),A6=()=>{var e=C6(),t=J(Rr),r=J(MO);return co(!e||!r?void 0:ex(ex({},e),{},{scale:r}),t)};function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(r),!0).forEach(function(n){_6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6(e,t,r){return(t=T6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T6(e){var t=j6(e,"string");return typeof t=="symbol"?t:t+""}function j6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M6=(e,t,r,n)=>{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:o.coordinate}}return{x:0,y:0}},N6=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function I6(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var RO=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s<a;s++){var l,c,u,d,p,v=s>0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,g=(u=r[s])===null||u===void 0?void 0:u.coordinate,m=s>=a-1?(d=r[0])===null||d===void 0?void 0:d.coordinate:(p=r[s+1])===null||p===void 0?void 0:p.coordinate,h=void 0;if(!(v==null||g==null||m==null))if(qe(g-v)!==qe(m-g)){var b=[];if(qe(m-g)===qe(o[1]-o[0])){h=m;var x=g+o[1]-o[0];b[0]=Math.min(x,(x+v)/2),b[1]=Math.max(x,(x+v)/2)}else{h=v;var w=m+o[1]-o[0];b[0]=Math.min(g,(w+g)/2),b[1]=Math.max(g,(w+g)/2)}var S=[Math.min(g,(h+g)/2),Math.max(g,(h+g)/2)];if(e>S[0]&&e<=S[1]||e>=b[0]&&e<=b[1]){var E;return(E=r[s])===null||E===void 0?void 0:E.index}}else{var P=Math.min(v,m),O=Math.max(v,m);if(e>(P+g)/2&&e<=(O+g)/2){var C;return(C=r[s])===null||C===void 0?void 0:C.index}}}else if(t)for(var M=0;M<a;M++){var $=t[M];if($!=null){var I=t[M+1],_=t[M-1];if(M===0&&I!=null&&e<=($.coordinate+I.coordinate)/2||M===a-1&&_!=null&&e>($.coordinate+_.coordinate)/2||M>0&&M<a-1&&_!=null&&I!=null&&e>($.coordinate+_.coordinate)/2&&e<=($.coordinate+I.coordinate)/2)return $.index}}return-1},k6=()=>J(cv),Wv=(e,t)=>t,DO=(e,t,r)=>r,Kv=(e,t,r,n)=>n,R6=N(Rr,e=>bl(e,t=>t.coordinate)),Uv=N([jo,Wv,DO,Kv],SO),Hv=N([Uv,No,Vi,Ki],$v),D6=(e,t,r)=>{if(t!=null){var n=jo(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},$O=N([jo,Wv,DO,Kv],EO),Fs=N([Tr,jr,ve,Ve,Rr,Kv,$O],PO),$6=N([Uv,Fs],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),LO=N([Rr,Hv],gO),L6=N([$O,Hv,Nr,Vi,LO,OO,Wv],CO),F6=N([Uv,Hv],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),z6=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&I6(e,a)){var s=az(e,t),l=RO(s,i,o,r,n),c=M6(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},B6=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=E3(e,r);if(s){var l=sz(s,t),c=RO(l,a,i,n,o),u=N6(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},V6=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?z6(e,t,n,o,i,a,s):B6(e,t,r,n,o,i,a)},W6=N(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),K6=N(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(De)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:E4}});function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(n){U6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U6(e,t,r){return(t=H6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H6(e){var t=G6(e,"string");return typeof t=="symbol"?t:t+""}function G6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q6={},Y6={zIndexMap:Object.values(De).reduce((e,t)=>nx(nx({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),q6)},X6=new Set(Object.values(De));function Z6(e){return X6.has(e)}var FO=xt({name:"zIndex",initialState:Y6,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ce()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!Z6(r)&&delete e.zIndexMap[r])},prepare:Ce()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:Ce()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ce()}}}),{registerZIndexPortal:J6,unregisterZIndexPortal:Q6,registerZIndexPortalElement:eK,unregisterZIndexPortalElement:tK}=FO.actions,rK=FO.reducer;function wt(e){var{zIndex:t,children:r}=e,n=Lz(),o=n&&t!==void 0&&t!==0,i=ct(),a=Se();A.useLayoutEffect(()=>o?(a(J6({zIndex:t})),()=>{a(Q6({zIndex:t}))}):Fn,[a,t,o]);var s=J(l=>W6(l,t,i));return o?s?xi.createPortal(r,s):null:r}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yf.apply(null,arguments)}function ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){nK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nK(e,t,r){return(t=oK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oK(e){var t=iK(e,"string");return typeof t=="symbol"?t:t+""}function iK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aK(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return A.isValidElement(t)?A.cloneElement(t,n):A.createElement(r,n)}function sK(e){var t,{coordinate:r,payload:n,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=r,p=n,v=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var g,m,h;if(u==="ScatterChart")g=d,m=LB,h=De.cursorLine;else if(u==="BarChart")g=FB(s,d,i,a),m=$1,h=De.cursorRectangle;else if(s==="radial"&&mP(d)){var{cx:b,cy:x,radius:w,startAngle:S,endAngle:E}=F1(d);g={cx:b,cy:x,startAngle:S,endAngle:E,innerRadius:w,outerRadius:w},m=B1,h=De.cursorLine}else g={points:_3(s,d,i)},m=Dp,h=De.cursorLine;var P=typeof l=="object"&&"className"in l?l.className:void 0,O=Na(Na(Na(Na({stroke:"#ccc",pointerEvents:"none"},i),g),En(l)),{},{payload:p,payloadIndex:v,className:de("recharts-tooltip-cursor",P)});return f.createElement(wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},f.createElement(aK,{cursor:l,cursorComp:m,cursorProps:O}))}function lK(e){var t=A6(),r=b1(),n=zn(),o=k6();return t==null||r==null||n==null||o==null?null:f.createElement(sK,yf({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var zO=A.createContext(null),cK=()=>A.useContext(zO),od={exports:{}},ix;function uK(){return ix||(ix=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new o(u,d||l,p),g=r?r+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,g=new Array(v);p<v;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,v,g){var m=r?r+c:c;if(!this._events[m])return!1;var h=this._events[m],b=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,d),!0;case 4:return h.fn.call(h.context,u,d,p),!0;case 5:return h.fn.call(h.context,u,d,p,v),!0;case 6:return h.fn.call(h.context,u,d,p,v,g),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var S=h.length,E;for(w=0;w<S;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),b){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,u);break;case 3:h[w].fn.call(h[w].context,u,d);break;case 4:h[w].fn.call(h[w].context,u,d,p);break;default:if(!x)for(E=1,x=new Array(b-1);E<b;E++)x[E-1]=arguments[E];h[w].fn.apply(h[w].context,x)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var v=r?r+c:c;if(!this._events[v])return this;if(!u)return a(this,v),this;var g=this._events[v];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,v);else{for(var m=0,h=[],b=g.length;m<b;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&h.push(g[m]);h.length?this._events[v]=h.length===1?h[0]:h:a(this,v)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&a(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(od)),od.exports}var dK=uK();const fK=Jr(dK);var pi=new fK,bf="recharts.syncEvent.tooltip",ax="recharts.syncEvent.brush",Gv=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!or(r))return e[r]}},pK={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},BO=xt({name:"options",initialState:pK,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),vK=BO.reducer,{createEventEmitter:mK}=BO.actions;function hK(e){return e.tooltip.syncInteraction}var gK={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},VO=xt({name:"chartData",initialState:gK,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:sx,setDataStartEndIndexes:yK,setComputedData:ire}=VO.actions,bK=VO.reducer,xK=["x","y"];function lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lx(Object(r),!0).forEach(function(n){wK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wK(e,t,r){return(t=SK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SK(e){var t=PK(e,"string");return typeof t=="symbol"?t:t+""}function PK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EK(e,t){if(e==null)return{};var r,n,o=OK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function OK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function CK(){var e=J(uv),t=J(dv),r=Se(),n=J(DE),o=J(Rr),i=zn(),a=Nl(),s=J(l=>l.rootProps.className);A.useEffect(()=>{if(e==null)return Fn;var l=(c,u,d)=>{if(t!==d&&e===c){if(n==="index"){var p;if(a&&u!==null&&u!==void 0&&(p=u.payload)!==null&&p!==void 0&&p.coordinate&&u.payload.sourceViewBox){var v=u.payload.coordinate,{x:g,y:m}=v,h=EK(v,xK),{x:b,y:x,width:w,height:S}=u.payload.sourceViewBox,E=Qn(Qn({},h),{},{x:a.x+(w?(g-b)/w:0)*a.width,y:a.y+(S?(m-x)/S:0)*a.height});r(Qn(Qn({},u),{},{payload:Qn(Qn({},u.payload),{},{coordinate:E})}))}else r(u);return}if(o!=null){var P;if(typeof n=="function"){var O={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},C=n(o,O);P=o[C]}else n==="value"&&(P=o.find(z=>String(z.value)===u.payload.label));var{coordinate:M}=u.payload;if(P==null||u.payload.active===!1||M==null||a==null){r(hf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:$,y:I}=M,_=Math.min($,a.x+a.width),j=Math.min(I,a.y+a.height),R={x:i==="horizontal"?P.coordinate:_,y:i==="horizontal"?j:P.coordinate},V=hf({active:u.payload.active,coordinate:R,dataKey:u.payload.dataKey,index:String(P.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(V)}}};return pi.on(bf,l),()=>{pi.off(bf,l)}},[s,r,t,e,n,o,i,a])}function AK(){var e=J(uv),t=J(dv),r=Se();A.useEffect(()=>{if(e==null)return Fn;var n=(o,i,a)=>{t!==a&&e===o&&r(yK(i))};return pi.on(ax,n),()=>{pi.off(ax,n)}},[r,t,e])}function _K(){var e=Se();A.useEffect(()=>{e(mK())},[e]),CK(),AK()}function TK(e,t,r,n,o,i){var a=J(v=>D6(v,e,t)),s=J(dv),l=J(uv),c=J(DE),u=J(hK),d=u?.active,p=Nl();A.useEffect(()=>{if(!d&&l!=null&&s!=null){var v=hf({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:void 0});pi.emit(bf,l,v,s)}},[d,r,a,o,n,s,l,c,i,p])}function cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ux(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cx(Object(r),!0).forEach(function(n){jK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jK(e,t,r){return(t=MK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MK(e){var t=NK(e,"string");return typeof t=="symbol"?t:t+""}function NK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IK(e){return e.dataKey}function kK(e,t){return f.isValidElement(e)?f.cloneElement(e,t):typeof e=="function"?f.createElement(e,t):f.createElement(gB,t)}var dx=[],RK={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function qv(e){var t,r,n=Le(e,RK),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:p,position:v,reverseDirection:g,useTranslate3d:m,wrapperStyle:h,cursor:b,shared:x,trigger:w,defaultIndex:S,portal:E,axisId:P}=n,O=Se(),C=typeof S=="number"?String(S):S;A.useEffect(()=>{O(jW({shared:x,trigger:w,axisId:P,active:o,defaultIndex:C}))},[O,x,w,P,o,C]);var M=Nl(),$=N1(),I=EW(x),{activeIndex:_,isActive:j}=(t=J(K=>F6(K,I,w,C)))!==null&&t!==void 0?t:{},R=J(K=>L6(K,I,w,C)),V=J(K=>LO(K,I,w,C)),z=J(K=>$6(K,I,w,C)),W=R,T=cK(),k=(r=o??j)!==null&&r!==void 0?r:!1,[G,ee]=jP([W,k]),ne=I==="axis"?V:void 0;TK(I,w,z,ne,_,k);var ie=E??T;if(ie==null||M==null||I==null)return null;var oe=W??dx;k||(oe=dx),c&&oe.length&&(oe=EP(oe.filter(K=>K.value!=null&&(K.hide!==!0||n.includeHidden)),p,IK));var le=oe.length>0,Oe=f.createElement(EB,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:k,coordinate:z,hasPayload:le,offset:d,position:v,reverseDirection:g,useTranslate3d:m,viewBox:M,wrapperStyle:h,lastBoundingBox:G,innerRef:ee,hasPortalFromProps:!!E},kK(l,ux(ux({},n),{},{payload:oe,label:ne,active:k,activeIndex:_,coordinate:z,accessibilityLayer:$})));return f.createElement(f.Fragment,null,xi.createPortal(Oe,ie),k&&f.createElement(lK,{cursor:b,tooltipEventType:I,coordinate:z,payload:oe,index:_}))}var Hi=e=>null;Hi.displayName="Cell";function DK(e,t,r){return(t=$K(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $K(e){var t=LK(e,"string");return typeof t=="symbol"?t:t+""}function LK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class FK{constructor(t){DK(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){BK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BK(e,t,r){return(t=VK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VK(e){var t=WK(e,"string");return typeof t=="symbol"?t:t+""}function WK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KK={cacheSize:2e3,enableCache:!0},WO=zK({},KK),px=new FK(WO.cacheSize),UK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vx="recharts_measurement_span";function HK(e,t){var r=t.fontSize||"",n=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}var mx=(e,t)=>{try{var r=document.getElementById(vx);r||(r=document.createElement("span"),r.setAttribute("id",vx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,UK,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Qo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$l.isSsr)return{width:0,height:0};if(!WO.enableCache)return mx(t,r);var n=HK(t,r),o=px.get(n);if(o)return o;var i=mx(t,r);return px.set(n,i),i},KO;function GK(e,t,r){return(t=qK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qK(e){var t=YK(e,"string");return typeof t=="symbol"?t:t+""}function YK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XK=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ZK=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,JK={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},QK=["cm","mm","pt","pc","in","Q","px"];function eU(e){return QK.includes(e)}var to="NaN";function tU(e,t){return e*JK[t]}class rt{static parse(t){var r,[,n,o]=(r=ZK.exec(t))!==null&&r!==void 0?r:[];return n==null?rt.NaN:new rt(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,or(t)&&(this.unit=""),r!==""&&!XK.test(r)&&(this.num=NaN,this.unit=""),eU(r)&&(this.num=tU(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return or(this.num)}}KO=rt;GK(rt,"NaN",new KO(NaN,""));function UO(e){if(e==null||e.includes(to))return to;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=hx.exec(t))!==null&&r!==void 0?r:[],a=rt.parse(n??""),s=rt.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return to;t=t.replace(hx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=gx.exec(t))!==null&&c!==void 0?c:[],v=rt.parse(u??""),g=rt.parse(p??""),m=d==="+"?v.add(g):v.subtract(g);if(m.isNaN())return to;t=t.replace(gx,m.toString())}return t}var yx=/\(([^()]*)\)/;function rU(e){for(var t=e,r;(r=yx.exec(t))!=null;){var[,n]=r;t=t.replace(yx,UO(n))}return t}function nU(e){var t=e.replace(/\s+/g,"");return t=rU(t),t=UO(t),t}function oU(e){try{return nU(e)}catch{return to}}function id(e){var t=oU(e.slice(5,-1));return t===to?"":t}var iU=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],aU=["dx","dy","angle","className","breakAll"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(null,arguments)}function bx(e,t){if(e==null)return{};var r,n,o=sU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function sU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var HO=/[ \f\n\r\t\v\u2028\u2029]+/,GO=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Te(t)||(r?o=t.toString().split(""):o=t.toString().split(HO));var i=o.map(s=>({word:s,width:Qo(s,n).width})),a=r?0:Qo(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function lU(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var qO=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+r<Number(t)))l.words.push(a),l.width+=s+r;else{var c={words:[a],width:s};o.push(c)}return o},[]),YO=e=>e.reduce((t,r)=>t.width>r.width?t:r),cU="…",xx=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=GO({breakAll:r,style:n,children:l+cU});if(!c)return[!1,[]];var u=qO(c.wordsWithComputedWidth,i,a,s),d=u.length>o||YO(u).width>Number(i);return[d,u]},uU=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=qO(t,n,r,o);if(!c||o)return d;var p=d.length>i||YO(d).width>Number(n);if(!p)return d;for(var v=0,g=u.length-1,m=0,h;v<=g&&m<=u.length-1;){var b=Math.floor((v+g)/2),x=b-1,[w,S]=xx(u,x,l,s,i,n,r,o),[E]=xx(u,b,l,s,i,n,r,o);if(!w&&!E&&(v=b+1),w&&E&&(g=b-1),!w&&E){h=S;break}m++}return h||d},wx=e=>{var t=Te(e)?[]:e.toString().split(HO);return[{words:t,width:void 0}]},dU=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!$l.isSsr){var s,l,c=GO({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return wx(n);return uU({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return wx(n)},XO="#808080",fU={angle:0,breakAll:!1,capHeight:"0.71em",fill:XO,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},nc=A.forwardRef((e,t)=>{var r=Le(e,fU),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=bx(r,iU),p=A.useMemo(()=>dU({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:l,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,l,d.style,d.width]),{dx:v,dy:g,angle:m,className:h,breakAll:b}=d,x=bx(d,aU);if(!ir(n)||!ir(o)||p.length===0)return null;var w=Number(n)+(q(v)?v:0),S=Number(o)+(q(g)?g:0);if(!ce(w)||!ce(S))return null;var E;switch(u){case"start":E=id("calc(".concat(a,")"));break;case"middle":E=id("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:E=id("calc(".concat(p.length-1," * -").concat(i,")"));break}var P=[],O=p[0];if(l&&O!=null){var C=O.width,{width:M}=d;P.push("scale(".concat(q(M)&&q(C)?M/C:1,")"))}return m&&P.push("rotate(".concat(m,", ").concat(w,", ").concat(S,")")),P.length&&(x.transform=P.join(" ")),f.createElement("text",xf({},mt(x),{ref:t,x:w,y:S,className:de("recharts-text",h),textAnchor:c,fill:s.includes("url")?XO:s}),p.map(($,I)=>{var _=$.words.join(b?"":" ");return f.createElement("tspan",{x:w,dy:I===0?E:i,key:"".concat(_,"-").concat(I)},_)}))});nc.displayName="Text";function Sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sx(Object(r),!0).forEach(function(n){pU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pU(e,t,r){return(t=vU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vU(e){var t=mU(e,"string");return typeof t=="symbol"?t:t+""}function mU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hU=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Mp(t),u=i,d=i+(l-c)/2,p=(u+d)/2,v=(l+c)/2,g=u+l/2,m=s>=0?1:-1,h=m*n,b=m>0?"end":"start",x=m>0?"start":"end",w=l>=0?1:-1,S=w*n,E=w>0?"end":"start",P=w>0?"start":"end",O=o;if(r==="top"){var C={x:u+l/2,y:a-h,horizontalAnchor:"middle",verticalAnchor:b};return O&&(C.height=Math.max(a-O.y,0),C.width=l),C}if(r==="bottom"){var M={x:d+c/2,y:a+s+h,horizontalAnchor:"middle",verticalAnchor:x};return O&&(M.height=Math.max(O.y+O.height-(a+s),0),M.width=c),M}if(r==="left"){var $={x:p-S,y:a+s/2,horizontalAnchor:E,verticalAnchor:"middle"};return O&&($.width=Math.max($.x-O.x,0),$.height=s),$}if(r==="right"){var I={x:p+v+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return O&&(I.width=Math.max(O.x+O.width-I.x,0),I.height=s),I}var _=O?{width:v,height:s}:{};return r==="insideLeft"?Xt({x:p+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"},_):r==="insideRight"?Xt({x:p+v-S,y:a+s/2,horizontalAnchor:E,verticalAnchor:"middle"},_):r==="insideTop"?Xt({x:u+l/2,y:a+h,horizontalAnchor:"middle",verticalAnchor:x},_):r==="insideBottom"?Xt({x:d+c/2,y:a+s-h,horizontalAnchor:"middle",verticalAnchor:b},_):r==="insideTopLeft"?Xt({x:u+S,y:a+h,horizontalAnchor:P,verticalAnchor:x},_):r==="insideTopRight"?Xt({x:u+l-S,y:a+h,horizontalAnchor:E,verticalAnchor:x},_):r==="insideBottomLeft"?Xt({x:d+S,y:a+s-h,horizontalAnchor:P,verticalAnchor:b},_):r==="insideBottomRight"?Xt({x:d+c-S,y:a+s-h,horizontalAnchor:E,verticalAnchor:b},_):r&&typeof r=="object"&&(q(r.x)||An(r.x))&&(q(r.y)||An(r.y))?Xt({x:i+at(r.x,v),y:a+at(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},_):Xt({x:g,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},gU=["labelRef"],yU=["content"];function Px(e,t){if(e==null)return{};var r,n,o=bU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function bU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){xU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xU(e,t,r){return(t=wU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wU(e){var t=SU(e,"string");return typeof t=="symbol"?t:t+""}function SU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(null,arguments)}var ZO=A.createContext(null),PU=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=A.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return f.createElement(ZO.Provider,{value:l},s)},JO=()=>{var e=A.useContext(ZO),t=Nl();return e||(t?Mp(t):void 0)},EU=A.createContext(null),OU=()=>{var e=A.useContext(EU),t=J(BE);return e||t},CU=e=>{var{value:t,formatter:r}=e,n=Te(e.children)?t:e.children;return typeof r=="function"?r(n):n},Yv=e=>e!=null&&typeof e=="function",AU=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},_U=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:p,clockWise:v}=o,g=(c+u)/2,m=AU(d,p),h=m>=0?1:-1,b,x;switch(t){case"insideStart":b=d+h*i,x=v;break;case"insideEnd":b=p-h*i,x=!v;break;case"end":b=p+h*i,x=v;break;default:throw new Error("Unsupported position ".concat(t))}x=m<=0?x:!x;var w=Re(s,l,g,b),S=Re(s,l,g,b+(x?1:-1)*359),E="M".concat(w.x,",").concat(w.y,`
|
|
98
|
+
A`,",",",0,0,",",",",","Z"])),O.x,O.y,i,i,+(u<0),P.x,P.y,n,n,+(N>180),+(u>0),w.x,w.y,i,i,+(u<0),S.x,S.y)}else x+=Me(Xy||(Xy=vn(["L",",","Z"])),t,r);return x},M3={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},B1=e=>{var t=Le(e,M3),{cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(i<o||c===u)return null;var p=de("recharts-sector",d),v=i-o,g=at(a,v,0,!0),m;return g>0&&Math.abs(c-u)<360?m=N3({cx:r,cy:n,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,v/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=F1({cx:r,cy:n,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),f.createElement("path",af({},mt(t),{className:p,d:m}))};function I3(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(mP(t)){if(e==="centric"){var{cx:n,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=Re(n,o,i,s),c=Re(n,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return z1(t)}}var Hu={},Gu={},qu={},Zy;function k3(){return Zy||(Zy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AP();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(qu)),qu}var Jy;function R3(){return Jy||(Jy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=k3();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(Gu)),Gu}var Qy;function D3(){return Qy||(Qy=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_P(),r=R3();function n(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=r.toFinite(o),i===void 0?(i=o,o=0):i=r.toFinite(i),a=a===void 0?o<i?1:-1:r.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=o,o+=a;return l}e.range=n})(Hu)),Hu}var Yu,eb;function $3(){return eb||(eb=1,Yu=D3().range),Yu}var L3=$3();const V1=Jr(L3);function Wr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function z3(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $p(e){let t,r,n;e.length!==2?(t=Wr,r=(s,l)=>Wr(e(s),l),n=(s,l)=>e(s)-l):(t=e===Wr||e===z3?e:F3,r=e,n=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;r(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&n(s[d-1],l)>-n(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function F3(){return 0}function W1(e){return e===null?NaN:+e}function*B3(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const V3=$p(Wr),Ri=V3.right;$p(W1).center;class tb extends Map{constructor(t,r=U3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,o]of t)this.set(n,o)}get(t){return super.get(rb(this,t))}has(t){return super.has(rb(this,t))}set(t,r){return super.set(W3(this,t),r)}delete(t){return super.delete(K3(this,t))}}function rb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function W3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function K3({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function U3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function H3(e=Wr){if(e===Wr)return K1;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function K1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const G3=Math.sqrt(50),q3=Math.sqrt(10),Y3=Math.sqrt(2);function Os(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=G3?10:i>=q3?5:i>=Y3?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?Os(e,t,r*2):[s,l,c]}function sf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[o,i,a]=n?Os(t,e,r):Os(e,t,r);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(n)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function lf(e,t,r){return t=+t,e=+e,r=+r,Os(e,t,r)[2]}function cf(e,t,r){t=+t,e=+e,r=+r;const n=t<e,o=n?lf(t,e,r):lf(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}function nb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ob(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function U1(e,t,r=0,n=1/0,o){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=o===void 0?K1:H3(o);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),v=Math.max(r,Math.floor(t-c*d/l+p)),g=Math.min(n,Math.floor(t+(l-c)*d/l+p));U1(e,t,v,g,o)}const i=e[t];let a=r,s=n;for(Vo(e,r,t),o(e[n],i)>0&&Vo(e,r,n);a<s;){for(Vo(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[r],i)===0?Vo(e,r,s):(++s,Vo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Vo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function X3(e,t,r){if(e=Float64Array.from(B3(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ob(e);if(t>=1)return nb(e);var n,o=(n-1)*t,i=Math.floor(o),a=nb(U1(e,i).subarray(0,i+1)),s=ob(e.subarray(i+1));return a+(s-a)*(o-i)}}function Z3(e,t,r=W1){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function J3(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(o);++n<o;)i[n]=e+n*r;return i}function $t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Nr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const uf=Symbol("implicit");function Lp(){var e=new tb,t=[],r=[],n=uf;function o(i){let a=e.get(i);if(a===void 0){if(n!==uf)return n;e.set(i,a=t.push(i)-1)}return r[a%r.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new tb;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(r=Array.from(i),o):r.slice()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return Lp(t,r).unknown(n)},$t.apply(o,arguments),o}function zp(){var e=Lp().unknown(void 0),t=e.domain,r=e.range,n=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var p=t().length,v=o<n,g=v?o:n,m=v?n:o;i=(m-g)/Math.max(1,p-l+c*2),s&&(i=Math.floor(i)),g+=(m-g-i*(p-l))*u,a=i*(1-l),s&&(g=Math.round(g),a=Math.round(a));var h=J3(p).map(function(b){return g+i*b});return r(v?h.reverse():h)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([n,o]=p,n=+n,o=+o,d()):[n,o]},e.rangeRound=function(p){return[n,o]=p,n=+n,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),d()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),d()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,d()):c},e.align=function(p){return arguments.length?(u=Math.max(0,Math.min(1,p)),d()):u},e.copy=function(){return zp(t(),[n,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},$t.apply(d(),arguments)}function H1(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return H1(t())},e}function Q3(){return H1(zp.apply(null,arguments).paddingInner(1))}function Fp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function G1(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Di(){}var li=.7,Cs=1/li,ao="\\s*([+-]?\\d+)\\s*",ci="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eV=/^#([0-9a-f]{3,8})$/,tV=new RegExp(`^rgb\\(${ao},${ao},${ao}\\)$`),rV=new RegExp(`^rgb\\(${rr},${rr},${rr}\\)$`),nV=new RegExp(`^rgba\\(${ao},${ao},${ao},${ci}\\)$`),oV=new RegExp(`^rgba\\(${rr},${rr},${rr},${ci}\\)$`),iV=new RegExp(`^hsl\\(${ci},${rr},${rr}\\)$`),aV=new RegExp(`^hsla\\(${ci},${rr},${rr},${ci}\\)$`),ib={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Fp(Di,ui,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ab,formatHex:ab,formatHex8:sV,formatHsl:lV,formatRgb:sb,toString:sb});function ab(){return this.rgb().formatHex()}function sV(){return this.rgb().formatHex8()}function lV(){return q1(this).formatHsl()}function sb(){return this.rgb().formatRgb()}function ui(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=eV.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?lb(t):r===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_a(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_a(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=tV.exec(e))?new bt(t[1],t[2],t[3],1):(t=rV.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nV.exec(e))?_a(t[1],t[2],t[3],t[4]):(t=oV.exec(e))?_a(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iV.exec(e))?db(t[1],t[2]/100,t[3]/100,1):(t=aV.exec(e))?db(t[1],t[2]/100,t[3]/100,t[4]):ib.hasOwnProperty(e)?lb(ib[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function lb(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function _a(e,t,r,n){return n<=0&&(e=t=r=NaN),new bt(e,t,r,n)}function cV(e){return e instanceof Di||(e=ui(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function df(e,t,r,n){return arguments.length===1?cV(e):new bt(e,t,r,n??1)}function bt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Fp(bt,df,G1(Di,{brighter(e){return e=e==null?Cs:Math.pow(Cs,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(wn(this.r),wn(this.g),wn(this.b),As(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cb,formatHex:cb,formatHex8:uV,formatRgb:ub,toString:ub}));function cb(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}`}function uV(){return`#${mn(this.r)}${mn(this.g)}${mn(this.b)}${mn((isNaN(this.opacity)?1:this.opacity)*255)}`}function ub(){const e=As(this.opacity);return`${e===1?"rgb(":"rgba("}${wn(this.r)}, ${wn(this.g)}, ${wn(this.b)}${e===1?")":`, ${e})`}`}function As(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function wn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mn(e){return e=wn(e),(e<16?"0":"")+e.toString(16)}function db(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ft(e,t,r,n)}function q1(e){if(e instanceof Ft)return new Ft(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=ui(e)),!e)return new Ft;if(e instanceof Ft)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(r-n)/s+(r<n)*6:r===i?a=(n-t)/s+2:a=(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Ft(a,s,l,e.opacity)}function dV(e,t,r,n){return arguments.length===1?q1(e):new Ft(e,t,r,n??1)}function Ft(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Fp(Ft,dV,G1(Di,{brighter(e){return e=e==null?Cs:Math.pow(Cs,e),new Ft(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?li:Math.pow(li,e),new Ft(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new bt(Xu(e>=240?e-240:e+120,o,n),Xu(e,o,n),Xu(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ft(fb(this.h),Ta(this.s),Ta(this.l),As(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=As(this.opacity);return`${e===1?"hsl(":"hsla("}${fb(this.h)}, ${Ta(this.s)*100}%, ${Ta(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fb(e){return e=(e||0)%360,e<0?e+360:e}function Ta(e){return Math.max(0,Math.min(1,e||0))}function Xu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Bp=e=>()=>e;function fV(e,t){return function(r){return e+r*t}}function pV(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function vV(e){return(e=+e)==1?Y1:function(t,r){return r-t?pV(t,r,e):Bp(isNaN(t)?r:t)}}function Y1(e,t){var r=t-e;return r?fV(e,r):Bp(isNaN(e)?t:e)}const pb=(function e(t){var r=vV(t);function n(o,i){var a=r((o=df(o)).r,(i=df(i)).r),s=r(o.g,i.g),l=r(o.b,i.b),c=Y1(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return n.gamma=e,n})(1);function mV(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),o;return function(i){for(o=0;o<r;++o)n[o]=e[o]*(1-i)+t[o]*i;return n}}function hV(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gV(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,o=new Array(n),i=new Array(r),a;for(a=0;a<n;++a)o[a]=Eo(e[a],t[a]);for(;a<r;++a)i[a]=t[a];return function(s){for(a=0;a<n;++a)i[a]=o[a](s);return i}}function yV(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _s(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function bV(e,t){var r={},n={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?r[o]=Eo(e[o],t[o]):n[o]=t[o];return function(i){for(o in r)n[o]=r[o](i);return n}}var ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zu=new RegExp(ff.source,"g");function xV(e){return function(){return e}}function wV(e){return function(t){return e(t)+""}}function SV(e,t){var r=ff.lastIndex=Zu.lastIndex=0,n,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(n=ff.exec(e))&&(o=Zu.exec(t));)(i=o.index)>r&&(i=t.slice(r,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:_s(n,o)})),r=Zu.lastIndex;return r<t.length&&(i=t.slice(r),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?wV(l[0].x):xV(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function Eo(e,t){var r=typeof t,n;return t==null||r==="boolean"?Bp(t):(r==="number"?_s:r==="string"?(n=ui(t))?(t=n,pb):SV:t instanceof ui?pb:t instanceof Date?yV:hV(t)?mV:Array.isArray(t)?gV:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bV:_s)(e,t)}function Vp(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function PV(e,t){t===void 0&&(t=e,e=Eo);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return i[s](a-s)}}function EV(e){return function(){return e}}function Ts(e){return+e}var vb=[0,1];function pt(e){return e}function pf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:EV(isNaN(t)?NaN:.5)}function OV(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function CV(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=pf(o,n),i=r(a,i)):(n=pf(n,o),i=r(i,a)),function(s){return i(n(s))}}function AV(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=pf(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(s){var l=Ri(e,s,1,n)-1;return i[l](o[l](s))}}function $i(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ll(){var e=vb,t=vb,r=Eo,n,o,i,a=pt,s,l,c;function u(){var p=Math.min(e.length,t.length);return a!==pt&&(a=OV(e[0],e[p-1])),s=p>2?AV:CV,l=c=null,d}function d(p){return p==null||isNaN(p=+p)?i:(l||(l=s(e.map(n),t,r)))(n(a(p)))}return d.invert=function(p){return a(o((c||(c=s(t,e.map(n),_s)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Ts),u()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),u()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),r=Vp,u()},d.clamp=function(p){return arguments.length?(a=p?!0:pt,u()):a!==pt},d.interpolate=function(p){return arguments.length?(r=p,u()):r},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,v){return n=p,o=v,u()}}function Wp(){return Ll()(pt,pt)}function _V(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function js(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function po(e){return e=js(Math.abs(e)),e?e[1]:NaN}function TV(e,t){return function(r,n){for(var o=r.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(o-=s,o+s)),!((l+=s+1)>n));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function jV(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var NV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function di(e){if(!(t=NV.exec(e)))throw new Error("invalid format: "+e);var t;return new Kp({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}di.prototype=Kp.prototype;function Kp(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Kp.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function MV(e){e:for(var t=e.length,r=1,n=-1,o;r<t;++r)switch(e[r]){case".":n=o=r;break;case"0":n===0&&(n=r),o=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(o+1):e}var Ns;function IV(e,t){var r=js(e,t);if(!r)return Ns=void 0,e.toPrecision(t);var n=r[0],o=r[1],i=o-(Ns=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+js(e,Math.max(0,t+i-1))[0]}function mb(e,t){var r=js(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:_V,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mb(e*100,t),r:mb,s:IV,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gb(e){return e}var yb=Array.prototype.map,bb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kV(e){var t=e.grouping===void 0||e.thousands===void 0?gb:TV(yb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?gb:jV(yb.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d,p){d=di(d);var v=d.fill,g=d.align,m=d.sign,h=d.symbol,b=d.zero,x=d.width,w=d.comma,S=d.precision,E=d.trim,P=d.type;P==="n"?(w=!0,P="g"):hb[P]||(S===void 0&&(S=12),E=!0,P="g"),(b||v==="0"&&g==="=")&&(b=!0,v="0",g="=");var O=(p&&p.prefix!==void 0?p.prefix:"")+(h==="$"?r:h==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),C=(h==="$"?n:/[%p]/.test(P)?a:"")+(p&&p.suffix!==void 0?p.suffix:""),N=hb[P],$=/[defgprs%]/.test(P);S=S===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function I(_){var j=O,R=C,V,F,W;if(P==="c")R=N(_)+R,_="";else{_=+_;var T=_<0||1/_<0;if(_=isNaN(_)?l:N(Math.abs(_),S),E&&(_=MV(_)),T&&+_==0&&m!=="+"&&(T=!1),j=(T?m==="("?m:s:m==="-"||m==="("?"":m)+j,R=(P==="s"&&!isNaN(_)&&Ns!==void 0?bb[8+Ns/3]:"")+R+(T&&m==="("?")":""),$){for(V=-1,F=_.length;++V<F;)if(W=_.charCodeAt(V),48>W||W>57){R=(W===46?o+_.slice(V+1):_.slice(V))+R,_=_.slice(0,V);break}}}w&&!b&&(_=t(_,1/0));var k=j.length+_.length+R.length,G=k<x?new Array(x-k+1).join(v):"";switch(w&&b&&(_=t(G+_,G.length?x-R.length:1/0),G=""),g){case"<":_=j+_+R+G;break;case"=":_=j+G+_+R;break;case"^":_=G.slice(0,k=G.length>>1)+j+_+R+G.slice(k);break;default:_=G+j+_+R;break}return i(_)}return I.toString=function(){return d+""},I}function u(d,p){var v=Math.max(-8,Math.min(8,Math.floor(po(p)/3)))*3,g=Math.pow(10,-v),m=c((d=di(d),d.type="f",d),{suffix:bb[8+v/3]});return function(h){return m(g*h)}}return{format:c,formatPrefix:u}}var ja,Up,X1;RV({thousands:",",grouping:[3],currency:["$",""]});function RV(e){return ja=kV(e),Up=ja.format,X1=ja.formatPrefix,ja}function DV(e){return Math.max(0,-po(Math.abs(e)))}function $V(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(po(t)/3)))*3-po(Math.abs(e)))}function LV(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,po(t)-po(e))+1}function Z1(e,t,r,n){var o=cf(e,t,r),i;switch(n=di(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=$V(o,a))&&(n.precision=i),X1(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=LV(o,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=DV(o))&&(n.precision=i-(n.type==="%")*2);break}}return Up(n)}function Qr(e){var t=e.domain;return e.ticks=function(r){var n=t();return sf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var o=t();return Z1(o[0],o[o.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),o=0,i=n.length-1,a=n[o],s=n[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=lf(a,s,r),c===l)return n[o]=a,n[i]=s,t(n);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function J1(){var e=Wp();return e.copy=function(){return $i(e,J1())},$t.apply(e,arguments),Qr(e)}function Q1(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Ts),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Q1(e).unknown(t)},e=arguments.length?Array.from(e,Ts):[0,1],Qr(r)}function eE(e,t){e=e.slice();var r=0,n=e.length-1,o=e[r],i=e[n],a;return i<o&&(a=r,r=n,n=a,a=o,o=i,i=a),e[r]=t.floor(o),e[n]=t.ceil(i),e}function xb(e){return Math.log(e)}function wb(e){return Math.exp(e)}function zV(e){return-Math.log(-e)}function FV(e){return-Math.exp(-e)}function BV(e){return isFinite(e)?+("1e"+e):e<0?0:e}function VV(e){return e===10?BV:e===Math.E?Math.exp:t=>Math.pow(e,t)}function WV(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Sb(e){return(t,r)=>-e(-t,r)}function Hp(e){const t=e(xb,wb),r=t.domain;let n=10,o,i;function a(){return o=WV(n),i=VV(n),r()[0]<0?(o=Sb(o),i=Sb(i),e(zV,FV)):e(xb,wb),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let p=o(c),v=o(u),g,m;const h=s==null?10:+s;let b=[];if(!(n%1)&&v-p<h){if(p=Math.floor(p),v=Math.ceil(v),c>0){for(;p<=v;++p)for(g=1;g<n;++g)if(m=p<0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}}else for(;p<=v;++p)for(g=n-1;g>=1;--g)if(m=p>0?g/i(-p):g*i(p),!(m<c)){if(m>u)break;b.push(m)}b.length*2<h&&(b=sf(c,u,h))}else b=sf(p,v,Math.min(v-p,h)).map(i);return d?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=di(l)).precision==null&&(l.trim=!0),l=Up(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*n<n-.5&&(d*=n),d<=c?l(u):""}},t.nice=()=>r(eE(r(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function tE(){const e=Hp(Ll()).domain([1,10]);return e.copy=()=>$i(e,tE()).base(e.base()),$t.apply(e,arguments),e}function Pb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Eb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gp(e){var t=1,r=e(Pb(t),Eb(t));return r.constant=function(n){return arguments.length?e(Pb(t=+n),Eb(t)):t},Qr(r)}function rE(){var e=Gp(Ll());return e.copy=function(){return $i(e,rE()).constant(e.constant())},$t.apply(e,arguments)}function Ob(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function KV(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function UV(e){return e<0?-e*e:e*e}function qp(e){var t=e(pt,pt),r=1;function n(){return r===1?e(pt,pt):r===.5?e(KV,UV):e(Ob(r),Ob(1/r))}return t.exponent=function(o){return arguments.length?(r=+o,n()):r},Qr(t)}function Yp(){var e=qp(Ll());return e.copy=function(){return $i(e,Yp()).exponent(e.exponent())},$t.apply(e,arguments),e}function HV(){return Yp.apply(null,arguments).exponent(.5)}function Cb(e){return Math.sign(e)*e*e}function GV(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nE(){var e=Wp(),t=[0,1],r=!1,n;function o(i){var a=GV(e(i));return isNaN(a)?n:r?Math.round(a):a}return o.invert=function(i){return e.invert(Cb(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Ts)).map(Cb)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(r=!!i,o):r},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return nE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$t.apply(o,arguments),Qr(o)}function oE(){var e=[],t=[],r=[],n;function o(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=Z3(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?n:t[Ri(r,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Wr),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return oE().domain(e).range(t).unknown(n)},$t.apply(i,arguments)}function iE(){var e=0,t=1,r=1,n=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Ri(n,l,0,r)]:i}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(r=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return n.slice()},a.copy=function(){return iE().domain([e,t]).range(o).unknown(i)},$t.apply(Qr(a),arguments)}function aE(){var e=[.5],t=[0,1],r,n=1;function o(i){return i!=null&&i<=i?t[Ri(e,i,0,n)]:r}return o.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return aE().domain(e).range(t).unknown(r)},$t.apply(o,arguments)}const Ju=new Date,Qu=new Date;function We(e,t,r,n){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>We(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),r&&(o.count=(i,a)=>(Ju.setTime(+i),Qu.setTime(+a),e(Ju),e(Qu),Math.floor(r(Ju,Qu))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(n?a=>n(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Ms=We(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ms.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?We(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ms);Ms.range;const vr=1e3,It=vr*60,mr=It*60,br=mr*24,Xp=br*7,Ab=br*30,ed=br*365,hn=We(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vr)},(e,t)=>(t-e)/vr,e=>e.getUTCSeconds());hn.range;const Zp=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getMinutes());Zp.range;const Jp=We(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*It)},(e,t)=>(t-e)/It,e=>e.getUTCMinutes());Jp.range;const Qp=We(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vr-e.getMinutes()*It)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getHours());Qp.range;const ev=We(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mr)},(e,t)=>(t-e)/mr,e=>e.getUTCHours());ev.range;const Li=We(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*It)/br,e=>e.getDate()-1);Li.range;const zl=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>e.getUTCDate()-1);zl.range;const sE=We(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/br,e=>Math.floor(e/br));sE.range;function Bn(e){return We(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*It)/Xp)}const Fl=Bn(0),Is=Bn(1),qV=Bn(2),YV=Bn(3),vo=Bn(4),XV=Bn(5),ZV=Bn(6);Fl.range;Is.range;qV.range;YV.range;vo.range;XV.range;ZV.range;function Vn(e){return We(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Xp)}const Bl=Vn(0),ks=Vn(1),JV=Vn(2),QV=Vn(3),mo=Vn(4),e5=Vn(5),t5=Vn(6);Bl.range;ks.range;JV.range;QV.range;mo.range;e5.range;t5.range;const tv=We(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());tv.range;const rv=We(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());rv.range;const xr=We(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});xr.range;const wr=We(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());wr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:We(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});wr.range;function lE(e,t,r,n,o,i){const a=[[hn,1,vr],[hn,5,5*vr],[hn,15,15*vr],[hn,30,30*vr],[i,1,It],[i,5,5*It],[i,15,15*It],[i,30,30*It],[o,1,mr],[o,3,3*mr],[o,6,6*mr],[o,12,12*mr],[n,1,br],[n,2,2*br],[r,1,Xp],[t,1,Ab],[t,3,3*Ab],[e,1,ed]];function s(c,u,d){const p=u<c;p&&([c,u]=[u,c]);const v=d&&typeof d.range=="function"?d:l(c,u,d),g=v?v.range(c,+u+1):[];return p?g.reverse():g}function l(c,u,d){const p=Math.abs(u-c)/d,v=$p(([,,h])=>h).right(a,p);if(v===a.length)return e.every(cf(c/ed,u/ed,d));if(v===0)return Ms.every(Math.max(cf(c,u,d),1));const[g,m]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return g.every(m)}return[s,l]}const[r5,n5]=lE(wr,rv,Bl,sE,ev,Jp),[o5,i5]=lE(xr,tv,Fl,Li,Qp,Zp);function td(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Wo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function a5(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Ko(o),u=Uo(o),d=Ko(i),p=Uo(i),v=Ko(a),g=Uo(a),m=Ko(s),h=Uo(s),b=Ko(l),x=Uo(l),w={a:W,A:T,b:k,B:G,c:null,d:Ib,e:Ib,f:T5,g:z5,G:B5,H:C5,I:A5,j:_5,L:cE,m:j5,M:N5,p:ee,q:ne,Q:Db,s:$b,S:M5,u:I5,U:k5,V:R5,w:D5,W:$5,x:null,X:null,y:L5,Y:F5,Z:V5,"%":Rb},S={a:ie,A:oe,b:le,B:Oe,c:null,d:kb,e:kb,f:H5,g:r4,G:o4,H:W5,I:K5,j:U5,L:dE,m:G5,M:q5,p:K,q:ue,Q:Db,s:$b,S:Y5,u:X5,U:Z5,V:J5,w:Q5,W:e4,x:null,X:null,y:t4,Y:n4,Z:i4,"%":Rb},E={a:$,A:I,b:_,B:j,c:R,d:Nb,e:Nb,f:S5,g:jb,G:Tb,H:Mb,I:Mb,j:y5,L:w5,m:g5,M:b5,p:N,q:h5,Q:E5,s:O5,S:x5,u:d5,U:f5,V:p5,w:u5,W:v5,x:V,X:F,y:jb,Y:Tb,Z:m5,"%":P5};w.x=P(r,w),w.X=P(n,w),w.c=P(t,w),S.x=P(r,S),S.X=P(n,S),S.c=P(t,S);function P(L,H){return function(B){var z=[],fe=-1,se=0,Qe=L.length,et,Lt,Xm;for(B instanceof Date||(B=new Date(+B));++fe<Qe;)L.charCodeAt(fe)===37&&(z.push(L.slice(se,fe)),(Lt=_b[et=L.charAt(++fe)])!=null?et=L.charAt(++fe):Lt=et==="e"?" ":"0",(Xm=H[et])&&(et=Xm(B,Lt)),z.push(et),se=fe+1);return z.push(L.slice(se,fe)),z.join("")}}function O(L,H){return function(B){var z=Wo(1900,void 0,1),fe=C(z,L,B+="",0),se,Qe;if(fe!=B.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(H&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(se=rd(Wo(z.y,0,1)),Qe=se.getUTCDay(),se=Qe>4||Qe===0?ks.ceil(se):ks(se),se=zl.offset(se,(z.V-1)*7),z.y=se.getUTCFullYear(),z.m=se.getUTCMonth(),z.d=se.getUTCDate()+(z.w+6)%7):(se=td(Wo(z.y,0,1)),Qe=se.getDay(),se=Qe>4||Qe===0?Is.ceil(se):Is(se),se=Li.offset(se,(z.V-1)*7),z.y=se.getFullYear(),z.m=se.getMonth(),z.d=se.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),Qe="Z"in z?rd(Wo(z.y,0,1)).getUTCDay():td(Wo(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(Qe+5)%7:z.w+z.U*7-(Qe+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,rd(z)):td(z)}}function C(L,H,B,z){for(var fe=0,se=H.length,Qe=B.length,et,Lt;fe<se;){if(z>=Qe)return-1;if(et=H.charCodeAt(fe++),et===37){if(et=H.charAt(fe++),Lt=E[et in _b?H.charAt(fe++):et],!Lt||(z=Lt(L,B,z))<0)return-1}else if(et!=B.charCodeAt(z++))return-1}return z}function N(L,H,B){var z=c.exec(H.slice(B));return z?(L.p=u.get(z[0].toLowerCase()),B+z[0].length):-1}function $(L,H,B){var z=v.exec(H.slice(B));return z?(L.w=g.get(z[0].toLowerCase()),B+z[0].length):-1}function I(L,H,B){var z=d.exec(H.slice(B));return z?(L.w=p.get(z[0].toLowerCase()),B+z[0].length):-1}function _(L,H,B){var z=b.exec(H.slice(B));return z?(L.m=x.get(z[0].toLowerCase()),B+z[0].length):-1}function j(L,H,B){var z=m.exec(H.slice(B));return z?(L.m=h.get(z[0].toLowerCase()),B+z[0].length):-1}function R(L,H,B){return C(L,t,H,B)}function V(L,H,B){return C(L,r,H,B)}function F(L,H,B){return C(L,n,H,B)}function W(L){return a[L.getDay()]}function T(L){return i[L.getDay()]}function k(L){return l[L.getMonth()]}function G(L){return s[L.getMonth()]}function ee(L){return o[+(L.getHours()>=12)]}function ne(L){return 1+~~(L.getMonth()/3)}function ie(L){return a[L.getUTCDay()]}function oe(L){return i[L.getUTCDay()]}function le(L){return l[L.getUTCMonth()]}function Oe(L){return s[L.getUTCMonth()]}function K(L){return o[+(L.getUTCHours()>=12)]}function ue(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var H=P(L+="",w);return H.toString=function(){return L},H},parse:function(L){var H=O(L+="",!1);return H.toString=function(){return L},H},utcFormat:function(L){var H=P(L+="",S);return H.toString=function(){return L},H},utcParse:function(L){var H=O(L+="",!0);return H.toString=function(){return L},H}}}var _b={"-":"",_:" ",0:"0"},Ze=/^\s*\d+/,s5=/^%/,l5=/[\\^$*+?|[\]().{}]/g;function pe(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function c5(e){return e.replace(l5,"\\$&")}function Ko(e){return new RegExp("^(?:"+e.map(c5).join("|")+")","i")}function Uo(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function u5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function d5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function f5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function p5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function v5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=Ze.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function jb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function m5(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function h5(e,t,r){var n=Ze.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function g5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Nb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function y5(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Mb(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function b5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function x5(e,t,r){var n=Ze.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function w5(e,t,r){var n=Ze.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function S5(e,t,r){var n=Ze.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P5(e,t,r){var n=s5.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function E5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function O5(e,t,r){var n=Ze.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ib(e,t){return pe(e.getDate(),t,2)}function C5(e,t){return pe(e.getHours(),t,2)}function A5(e,t){return pe(e.getHours()%12||12,t,2)}function _5(e,t){return pe(1+Li.count(xr(e),e),t,3)}function cE(e,t){return pe(e.getMilliseconds(),t,3)}function T5(e,t){return cE(e,t)+"000"}function j5(e,t){return pe(e.getMonth()+1,t,2)}function N5(e,t){return pe(e.getMinutes(),t,2)}function M5(e,t){return pe(e.getSeconds(),t,2)}function I5(e){var t=e.getDay();return t===0?7:t}function k5(e,t){return pe(Fl.count(xr(e)-1,e),t,2)}function uE(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function R5(e,t){return e=uE(e),pe(vo.count(xr(e),e)+(xr(e).getDay()===4),t,2)}function D5(e){return e.getDay()}function $5(e,t){return pe(Is.count(xr(e)-1,e),t,2)}function L5(e,t){return pe(e.getFullYear()%100,t,2)}function z5(e,t){return e=uE(e),pe(e.getFullYear()%100,t,2)}function F5(e,t){return pe(e.getFullYear()%1e4,t,4)}function B5(e,t){var r=e.getDay();return e=r>=4||r===0?vo(e):vo.ceil(e),pe(e.getFullYear()%1e4,t,4)}function V5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pe(t/60|0,"0",2)+pe(t%60,"0",2)}function kb(e,t){return pe(e.getUTCDate(),t,2)}function W5(e,t){return pe(e.getUTCHours(),t,2)}function K5(e,t){return pe(e.getUTCHours()%12||12,t,2)}function U5(e,t){return pe(1+zl.count(wr(e),e),t,3)}function dE(e,t){return pe(e.getUTCMilliseconds(),t,3)}function H5(e,t){return dE(e,t)+"000"}function G5(e,t){return pe(e.getUTCMonth()+1,t,2)}function q5(e,t){return pe(e.getUTCMinutes(),t,2)}function Y5(e,t){return pe(e.getUTCSeconds(),t,2)}function X5(e){var t=e.getUTCDay();return t===0?7:t}function Z5(e,t){return pe(Bl.count(wr(e)-1,e),t,2)}function fE(e){var t=e.getUTCDay();return t>=4||t===0?mo(e):mo.ceil(e)}function J5(e,t){return e=fE(e),pe(mo.count(wr(e),e)+(wr(e).getUTCDay()===4),t,2)}function Q5(e){return e.getUTCDay()}function e4(e,t){return pe(ks.count(wr(e)-1,e),t,2)}function t4(e,t){return pe(e.getUTCFullYear()%100,t,2)}function r4(e,t){return e=fE(e),pe(e.getUTCFullYear()%100,t,2)}function n4(e,t){return pe(e.getUTCFullYear()%1e4,t,4)}function o4(e,t){var r=e.getUTCDay();return e=r>=4||r===0?mo(e):mo.ceil(e),pe(e.getUTCFullYear()%1e4,t,4)}function i4(){return"+0000"}function Rb(){return"%"}function Db(e){return+e}function $b(e){return Math.floor(+e/1e3)}var Zn,pE,vE;a4({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function a4(e){return Zn=a5(e),pE=Zn.format,Zn.parse,vE=Zn.utcFormat,Zn.utcParse,Zn}function s4(e){return new Date(e)}function l4(e){return e instanceof Date?+e:+new Date(+e)}function nv(e,t,r,n,o,i,a,s,l,c){var u=Wp(),d=u.invert,p=u.domain,v=c(".%L"),g=c(":%S"),m=c("%I:%M"),h=c("%I %p"),b=c("%a %d"),x=c("%b %d"),w=c("%B"),S=c("%Y");function E(P){return(l(P)<P?v:s(P)<P?g:a(P)<P?m:i(P)<P?h:n(P)<P?o(P)<P?b:x:r(P)<P?w:S)(P)}return u.invert=function(P){return new Date(d(P))},u.domain=function(P){return arguments.length?p(Array.from(P,l4)):p().map(s4)},u.ticks=function(P){var O=p();return e(O[0],O[O.length-1],P??10)},u.tickFormat=function(P,O){return O==null?E:c(O)},u.nice=function(P){var O=p();return(!P||typeof P.range!="function")&&(P=t(O[0],O[O.length-1],P??10)),P?p(eE(O,P)):u},u.copy=function(){return $i(u,nv(e,t,r,n,o,i,a,s,l,c))},u}function c4(){return $t.apply(nv(o5,i5,xr,tv,Fl,Li,Qp,Zp,hn,pE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function u4(){return $t.apply(nv(r5,n5,wr,rv,Bl,zl,ev,Jp,hn,vE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vl(){var e=0,t=1,r,n,o,i,a=pt,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-r)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),o=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(p){var v,g;return arguments.length?([v,g]=p,a=d(v,g),c):[a(0),a(1)]}}return c.range=u(Eo),c.rangeRound=u(Vp),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,r=d(e),n=d(t),o=r===n?0:1/(n-r),c}}function en(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function mE(){var e=Qr(Vl()(pt));return e.copy=function(){return en(e,mE())},Nr.apply(e,arguments)}function hE(){var e=Hp(Vl()).domain([1,10]);return e.copy=function(){return en(e,hE()).base(e.base())},Nr.apply(e,arguments)}function gE(){var e=Gp(Vl());return e.copy=function(){return en(e,gE()).constant(e.constant())},Nr.apply(e,arguments)}function ov(){var e=qp(Vl());return e.copy=function(){return en(e,ov()).exponent(e.exponent())},Nr.apply(e,arguments)}function d4(){return ov.apply(null,arguments).exponent(.5)}function yE(){var e=[],t=pt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ri(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let o of n)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Wr),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,o)=>t(o/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(o,i)=>X3(e,i/n))},r.copy=function(){return yE(t).domain(e)},Nr.apply(r,arguments)}function Wl(){var e=0,t=.5,r=1,n=1,o,i,a,s,l,c=pt,u,d=!1,p;function v(m){return isNaN(m=+m)?p:(m=.5+((m=+u(m))-i)*(n*m<n*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}v.domain=function(m){return arguments.length?([e,t,r]=m,o=u(e=+e),i=u(t=+t),a=u(r=+r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v):[e,t,r]},v.clamp=function(m){return arguments.length?(d=!!m,v):d},v.interpolator=function(m){return arguments.length?(c=m,v):c};function g(m){return function(h){var b,x,w;return arguments.length?([b,x,w]=h,c=PV(m,[b,x,w]),v):[c(0),c(.5),c(1)]}}return v.range=g(Eo),v.rangeRound=g(Vp),v.unknown=function(m){return arguments.length?(p=m,v):p},function(m){return u=m,o=m(e),i=m(t),a=m(r),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),n=i<o?-1:1,v}}function bE(){var e=Qr(Wl()(pt));return e.copy=function(){return en(e,bE())},Nr.apply(e,arguments)}function xE(){var e=Hp(Wl()).domain([.1,1,10]);return e.copy=function(){return en(e,xE()).base(e.base())},Nr.apply(e,arguments)}function wE(){var e=Gp(Wl());return e.copy=function(){return en(e,wE()).constant(e.constant())},Nr.apply(e,arguments)}function iv(){var e=qp(Wl());return e.copy=function(){return en(e,iv()).exponent(e.exponent())},Nr.apply(e,arguments)}function f4(){return iv.apply(null,arguments).exponent(.5)}const Yo=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:zp,scaleDiverging:bE,scaleDivergingLog:xE,scaleDivergingPow:iv,scaleDivergingSqrt:f4,scaleDivergingSymlog:wE,scaleIdentity:Q1,scaleImplicit:uf,scaleLinear:J1,scaleLog:tE,scaleOrdinal:Lp,scalePoint:Q3,scalePow:Yp,scaleQuantile:oE,scaleQuantize:iE,scaleRadial:nE,scaleSequential:mE,scaleSequentialLog:hE,scaleSequentialPow:ov,scaleSequentialQuantile:yE,scaleSequentialSqrt:d4,scaleSequentialSymlog:gE,scaleSqrt:HV,scaleSymlog:rE,scaleThreshold:aE,scaleTime:c4,scaleUtc:u4,tickFormat:Z1},Symbol.toStringTag,{value:"Module"}));var Mr=e=>e.chartData,Kl=M([Mr],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),av=(e,t,r,n)=>n?Kl(e):Mr(e),p4=(e,t,r)=>r?Kl(e):Mr(e);function Sr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ce(t)&&ce(r))return!0}return!1}function Lb(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function SE(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,o,i;if(ce(r))o=r;else if(typeof r=="function")return;if(ce(n))i=n;else if(typeof n=="function")return;var a=[o,i];if(Sr(a))return a}}function v4(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Sr(n))return Lb(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(q(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t?.[0]))}catch{}else if(typeof o=="string"&&qg.test(o)){var l=qg.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t?.[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(q(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[1]))}catch{}else if(typeof i=="string"&&Yg.test(i)){var u=Yg.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var p=[a,s];if(Sr(p))return t==null?p:Lb(p,t,r)}}}var Oo=1e9,m4={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},lv,_e=!0,Dt="[DecimalError] ",Sn=Dt+"Invalid argument: ",sv=Dt+"Exponent out of range: ",Co=Math.floor,fn=Math.pow,h4=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Et,Ge=1e7,Pe=7,PE=9007199254740991,Rs=Co(PE/Pe),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,r,n,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,o=e.d.length,t=0,r=n<o?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Pe;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return hr(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return xe(hr(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return $e(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,o=n.precision,i=o+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Et))throw Error(Dt+"NaN");if(r.s<1)throw Error(Dt+(r.s?"NaN":"-Infinity"));return r.eq(Et)?new n(0):(_e=!1,t=hr(fi(r,i),fi(e,i),i),_e=!0,xe(t,o))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CE(t,e):EE(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(e=new n(e),!e.s)throw Error(Dt+"NaN");return r.s?(_e=!1,t=hr(r,e,0,1).times(e),_e=!0,r.minus(t)):xe(new n(r),o)};Y.naturalExponential=Y.exp=function(){return OE(this)};Y.naturalLogarithm=Y.ln=function(){return fi(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?EE(t,e):CE(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Sn+e);if(t=$e(o)+1,n=o.d.length-1,r=n*Pe+1,n=o.d[n],n){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Dt+"NaN")}for(e=$e(s),_e=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=er(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Co((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(o.toString()),r=l.precision,o=a=r+3;;)if(i=n,n=i.plus(hr(s,i,a+2)).times(.5),er(i.d).slice(0,a)===(t=er(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(xe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;a+=4}return _e=!0,xe(n,r)};Y.times=Y.mul=function(e){var t,r,n,o,i,a,s,l,c,u=this,d=u.constructor,p=u.d,v=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,l=p.length,c=v.length,l<c&&(i=p,p=v,v=i,a=l,l=c,c=a),i=[],a=l+c,n=a;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=l+n;o>n;)s=i[o]+v[n]*p[o-n-1]+t,i[o--]=s%Ge|0,t=s/Ge|0;i[o]=(i[o]+t)%Ge|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,_e?xe(e,d.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(sr(e,0,Oo),t===void 0?t=n.rounding:sr(t,0,8),xe(r,e+$e(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=Nn(n,!0):(sr(e,0,Oo),t===void 0?t=o.rounding:sr(t,0,8),n=xe(new o(n),e+1,t),r=Nn(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?Nn(o):(sr(e,0,Oo),t===void 0?t=i.rounding:sr(t,0,8),n=xe(new i(o),e+$e(o)+1,t),r=Nn(n.abs(),!1,e+$e(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return xe(new t(e),$e(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Et);if(s=new l(s),!s.s){if(e.s<1)throw Error(Dt+"Infinity");return s}if(s.eq(Et))return s;if(n=l.precision,e.eq(Et))return xe(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,i=s.s,a){if((r=u<0?-u:u)<=PE){for(o=new l(Et),t=Math.ceil(n/Pe+4),_e=!1;r%2&&(o=o.times(s),Fb(o.d,t)),r=Co(r/2),r!==0;)s=s.times(s),Fb(s.d,t);return _e=!0,e.s<0?new l(Et).div(o):xe(o,n)}}else if(i<0)throw Error(Dt+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,_e=!1,o=e.times(fi(s,n+c)),_e=!0,o=OE(o),o.s=i,o};Y.toPrecision=function(e,t){var r,n,o=this,i=o.constructor;return e===void 0?(r=$e(o),n=Nn(o,r<=i.toExpNeg||r>=i.toExpPos)):(sr(e,1,Oo),t===void 0?t=i.rounding:sr(t,0,8),o=xe(new i(o),e,t),r=$e(o),n=Nn(o,e<=r||r<=i.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(sr(e,1,Oo),t===void 0?t=n.rounding:sr(t,0,8)),xe(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return Nn(e,t<=r.toExpNeg||t>=r.toExpPos)};function EE(e,t){var r,n,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),_e?xe(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,o=a,s=l.length),a=Math.ceil(d/Pe),s=a>s?a+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/Ge|0,l[i]%=Ge;for(r&&(l.unshift(r),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,_e?xe(t,d):t}function sr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Sn+e)}function er(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)n=e[t]+"",r=Pe-n.length,r&&(i+=zr(r)),i+=n;a=e[t],n=a+"",r=Pe-n.length,r&&(i+=zr(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var hr=(function(){function e(n,o){var i,a=0,s=n.length;for(n=n.slice();s--;)i=n[s]*o+a,n[s]=i%Ge|0,a=i/Ge|0;return a&&n.unshift(a),n}function t(n,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(n[s]!=o[s]){l=n[s]>o[s]?1:-1;break}return l}function r(n,o,i){for(var a=0;i--;)n[i]-=a,a=n[i]<o[i]?1:0,n[i]=a*Ge+n[i]-o[i];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,i,a){var s,l,c,u,d,p,v,g,m,h,b,x,w,S,E,P,O,C,N=n.constructor,$=n.s==o.s?1:-1,I=n.d,_=o.d;if(!n.s)return new N(n);if(!o.s)throw Error(Dt+"Division by zero");for(l=n.e-o.e,O=_.length,E=I.length,v=new N($),g=v.d=[],c=0;_[c]==(I[c]||0);)++c;if(_[c]>(I[c]||0)&&--l,i==null?x=i=N.precision:a?x=i+($e(n)-$e(o))+1:x=i,x<0)return new N(0);if(x=x/Pe+2|0,c=0,O==1)for(u=0,_=_[0],x++;(c<E||u)&&x--;c++)w=u*Ge+(I[c]||0),g[c]=w/_|0,u=w%_|0;else{for(u=Ge/(_[0]+1)|0,u>1&&(_=e(_,u),I=e(I,u),O=_.length,E=I.length),S=O,m=I.slice(0,O),h=m.length;h<O;)m[h++]=0;C=_.slice(),C.unshift(0),P=_[0],_[1]>=Ge/2&&++P;do u=0,s=t(_,m,O,h),s<0?(b=m[0],O!=h&&(b=b*Ge+(m[1]||0)),u=b/P|0,u>1?(u>=Ge&&(u=Ge-1),d=e(_,u),p=d.length,h=m.length,s=t(d,m,p,h),s==1&&(u--,r(d,O<p?C:_,p))):(u==0&&(s=u=1),d=_.slice()),p=d.length,p<h&&d.unshift(0),r(m,d,h),s==-1&&(h=m.length,s=t(_,m,O,h),s<1&&(u++,r(m,O<h?C:_,h))),h=m.length):s===0&&(u++,m=[0]),g[c++]=u,s&&m[0]?m[h++]=I[S]||0:(m=[I[S]],h=1);while((S++<E||m[0]!==void 0)&&x--)}return g[0]||g.shift(),v.e=l,xe(v,a?i+$e(v)+1:i)}})();function OE(e,t){var r,n,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if($e(e)>16)throw Error(sv+$e(e));if(!e.s)return new u(Et);for(_e=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(n=Math.log(fn(2,c))/Math.LN10*2+5|0,s+=n,r=o=i=new u(Et),u.precision=s;;){if(o=xe(o.times(e),s),r=r.times(++l),a=i.plus(hr(o,r,s)),er(a.d).slice(0,s)===er(i.d).slice(0,s)){for(;c--;)i=xe(i.times(i),s);return u.precision=d,t==null?(_e=!0,xe(i,d)):i}i=a}}function $e(e){for(var t=e.e*Pe,r=e.d[0];r>=10;r/=10)t++;return t}function nd(e,t,r){if(t>e.LN10.sd())throw _e=!0,r&&(e.precision=r),Error(Dt+"LN10 precision limit exceeded");return xe(new e(e.LN10),t)}function zr(e){for(var t="";e--;)t+="0";return t}function fi(e,t){var r,n,o,i,a,s,l,c,u,d=1,p=10,v=e,g=v.d,m=v.constructor,h=m.precision;if(v.s<1)throw Error(Dt+(v.s?"NaN":"-Infinity"));if(v.eq(Et))return new m(0);if(t==null?(_e=!1,c=h):c=t,v.eq(10))return t==null&&(_e=!0),nd(m,c);if(c+=p,m.precision=c,r=er(g),n=r.charAt(0),i=$e(v),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=er(v.d),n=r.charAt(0),d++;i=$e(v),n>1?(v=new m("0."+r),i++):v=new m(n+"."+r.slice(1))}else return l=nd(m,c+2,h).times(i+""),v=fi(new m(n+"."+r.slice(1)),c-p).plus(l),m.precision=h,t==null?(_e=!0,xe(v,h)):v;for(s=a=v=hr(v.minus(Et),v.plus(Et),c),u=xe(v.times(v),c),o=3;;){if(a=xe(a.times(u),c),l=s.plus(hr(a,new m(o),c)),er(l.d).slice(0,c)===er(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(nd(m,c+2,h).times(i+""))),s=hr(s,new m(d),c),m.precision=h,t==null?(_e=!0,xe(s,h)):s;s=l,o+=2}}function zb(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(n,o),t){if(o-=n,r=r-n-1,e.e=Co(r/Pe),e.d=[],n=(r+1)%Pe,r<0&&(n+=Pe),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=Pe;n<o;)e.d.push(+t.slice(n,n+=Pe));t=t.slice(n),n=Pe-t.length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),_e&&(e.e>Rs||e.e<-Rs))throw Error(sv+r)}else e.s=0,e.e=0,e.d=[0];return e}function xe(e,t,r){var n,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(n=t-a,n<0)n+=Pe,o=t,c=d[u=0];else{if(u=Math.ceil((n+1)/Pe),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;n%=Pe,o=n-Pe+a}if(r!==void 0&&(i=fn(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?o>0?c/fn(10,a-o):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return l?(i=$e(e),d.length=1,t=t-i-1,d[0]=fn(10,(Pe-t%Pe)%Pe),e.e=Co(-t/Pe)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(n==0?(d.length=u,i=1,u--):(d.length=u+1,i=fn(10,Pe-n),d[u]=o>0?(c/fn(10,a-o)%fn(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==Ge&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=Ge)break;d[u--]=0,i=1}for(n=d.length;d[--n]===0;)d.pop();if(_e&&(e.e>Rs||e.e<-Rs))throw Error(sv+$e(e));return e}function CE(e,t){var r,n,o,i,a,s,l,c,u,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),_e?xe(t,v):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),a=c-n,a){for(u=a<0,u?(r=l,a=-a,s=d.length):(r=d,n=c,s=l.length),o=Math.max(Math.ceil(v/Pe),s)+2,a>o&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(r=l,l=d,d=r,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=Ge-1;--l[i],l[o]+=Ge}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,_e?xe(t,v):t):new p(0)}function Nn(e,t,r){var n,o=$e(e),i=er(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+zr(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+zr(-o-1)+i,r&&(n=r-a)>0&&(i+=zr(n))):o>=a?(i+=zr(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+zr(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=zr(n))),e.s<0?"-"+i:i}function Fb(e,t){if(e.length>t)return e.length=t,!0}function AE(e){var t,r,n;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Sn+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return zb(a,i.toString())}else if(typeof i!="string")throw Error(Sn+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,h4.test(i))zb(a,i);else throw Error(Sn+i)}if(o.prototype=Y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=AE,o.config=o.set=g4,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return o.config(e),o}function g4(e){if(!e||typeof e!="object")throw Error(Dt+"Object expected");var t,r,n,o=["precision",1,Oo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((n=e[r=o[t]])!==void 0)if(Co(n)===n&&n>=o[t+1]&&n<=o[t+2])this[r]=n;else throw Error(Sn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sn+r+": "+n);return this}var lv=AE(m4);Et=new lv(1);const he=lv;function _E(e){var t;return e===0?t=1:t=Math.floor(new he(e).abs().log(10).toNumber())+1,t}function TE(e,t,r){for(var n=new he(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}var jE=e=>{var[t,r]=e,[n,o]=[t,r];return t>r&&([n,o]=[r,t]),[n,o]},NE=(e,t,r)=>{if(e.lte(0))return new he(0);var n=_E(e.toNumber()),o=new he(10).pow(n),i=e.div(o),a=n!==1?.05:.1,s=new he(Math.ceil(i.div(a).toNumber())).add(r).mul(a),l=s.mul(o);return t?new he(l.toNumber()):new he(Math.ceil(l.toNumber()))},y4=(e,t,r)=>{var n=new he(1),o=new he(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new he(10).pow(_E(e)-1),o=new he(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new he(Math.floor(e)))}else e===0?o=new he(Math.floor((t-1)/2)):r||(o=new he(Math.floor(e)));for(var a=Math.floor((t-1)/2),s=[],l=0;l<t;l++)s.push(o.add(new he(l-a).mul(n)).toNumber());return s},ME=function(t,r,n,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new he(0),tickMin:new he(0),tickMax:new he(0)};var a=NE(new he(r).sub(t).div(n-1),o,i),s;t<=0&&r>=0?s=new he(0):(s=new he(t).add(r).div(2),s=s.sub(new he(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new he(r).sub(s).div(a).toNumber()),u=l+c+1;return u>n?ME(t,r,n,o,i+1):(u<n&&(c=r>0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:a,tickMin:s.sub(new he(l).mul(a)),tickMax:s.add(new he(c).mul(a))})},b4=function(t){var[r,n]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),[s,l]=jE([r,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Array(o-1).fill(1/0)]:[...Array(o-1).fill(-1/0),l];return r>n?c.reverse():c}if(s===l)return y4(s,o,i);var{step:u,tickMin:d,tickMax:p}=ME(s,l,a,i,0),v=TE(d,p.add(new he(.1).mul(u)),u);return r>n?v.reverse():v},x4=function(t,r){var[n,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=jE([n,o]);if(a===-1/0||s===1/0)return[n,o];if(a===s)return[a];var l=Math.max(r,2),c=NE(new he(s).sub(a).div(l-1),i,0),u=[...TE(new he(a),new he(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),n>o?u.reverse():u},IE=e=>e.rootProps.maxBarSize,w4=e=>e.rootProps.barGap,kE=e=>e.rootProps.barCategoryGap,S4=e=>e.rootProps.barSize,zi=e=>e.rootProps.stackOffset,RE=e=>e.rootProps.reverseStackOrder,cv=e=>e.options.chartName,uv=e=>e.rootProps.syncId,DE=e=>e.rootProps.syncMethod,dv=e=>e.options.eventEmitter,De={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},cn={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},Yt={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},Ul=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function Hl(e,t,r){if(r!=="auto")return r;if(e!=null)return _r(e,t)?"category":"number"}function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ds(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){P4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P4(e,t,r){return(t=E4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e){var t=O4(e,"string");return typeof t=="symbol"?t:t+""}function O4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vb={allowDataOverflow:cn.allowDataOverflow,allowDecimals:cn.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:cn.angleAxisId,includeHidden:!1,name:void 0,reversed:cn.reversed,scale:cn.scale,tick:cn.tick,tickCount:void 0,ticks:void 0,type:cn.type,unit:void 0},Wb={allowDataOverflow:Yt.allowDataOverflow,allowDecimals:Yt.allowDecimals,allowDuplicatedCategory:Yt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Yt.radiusAxisId,includeHidden:Yt.includeHidden,name:void 0,reversed:Yt.reversed,scale:Yt.scale,tick:Yt.tick,tickCount:Yt.tickCount,ticks:void 0,type:Yt.type,unit:void 0},C4=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},fv=M([C4,w1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Hl(t,"angleAxis",Vb.type))!==null&&r!==void 0?r:"category";return Ds(Ds({},Vb),{},{type:n})}),A4=(e,t)=>e.polarAxis.radiusAxis[t],pv=M([A4,w1],(e,t)=>{var r;if(e!=null)return e;var n=(r=Hl(t,"radiusAxis",Wb.type))!==null&&r!==void 0?r:"category";return Ds(Ds({},Wb),{},{type:n})}),Gl=e=>e.polarOptions,vv=M([Tr,jr,Ve],L1),$E=M([Gl,vv],(e,t)=>{if(e!=null)return at(e.innerRadius,t,0)}),LE=M([Gl,vv],(e,t)=>{if(e!=null)return at(e.outerRadius,t,t*.8)}),_4=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},zE=M([Gl],_4);M([fv,zE],Ul);var FE=M([vv,$E,LE],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});M([pv,FE],Ul);var BE=M([ve,Gl,$E,LE,Tr,jr],(e,t,r,n,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:at(a,o,o/2),cy:at(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),je=(e,t)=>t,Fi=(e,t,r)=>r;function mv(e){return e?.id}function VE(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=r,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=mv(s);c.forEach((d,p)=>{var v=i==null||o?p:String(be(d,i,null)),g=be(d,s.dataKey,0),m;a.has(v)?m=a.get(v):m={},Object.assign(m,{[u]:g}),a.set(v,m)})}}),Array.from(a.values())}function ql(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Yl=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Xl(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function T4(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}var Je=e=>{var t=ve(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Ao=e=>e.tooltip.settings.axisId;function j4(e){if(e in Yo)return Yo[e]();var t="scale".concat(Ei(e));if(t in Yo)return Yo[t]()}function Kb(e){var t=e.ticks,r=e.bandwidth,n=e.range(),o=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:(function(i){function a(){return i.apply(this,arguments)}return a.toString=function(){return i.toString()},a})(()=>o),rangeMin:()=>o[0],rangeMax:()=>o[1],isInRange(i){var a=o[0],s=o[1];return a<=s?i>=a&&i<=s:i>=s&&i<=a},bandwidth:r?()=>r.call(e):void 0,ticks:t?i=>t.call(e,i):void 0,map:(i,a)=>{var s=e(i);if(s!=null){if(e.bandwidth&&a!==null&&a!==void 0&&a.position){var l=e.bandwidth();switch(a.position){case"middle":s+=l/2;break;case"end":s+=l;break}}return s}}}}function Ub(e,t,r){if(typeof e=="function")return Kb(e.copy().domain(t).range(r));if(e!=null){var n=j4(e);if(n!=null)return n.domain(t).range(r),Kb(n)}}var WE=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!Sr(t)){for(var r,n,o=0;o<t.length;o++){var i=t[o];ce(i)&&((r===void 0||i<r)&&(r=i),(n===void 0||i>n)&&(n=i))}return r!==void 0&&n!==void 0?[r,n]:void 0}return t}default:return t}};function Hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hb(Object(r),!0).forEach(function(n){N4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N4(e,t,r){return(t=M4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M4(e){var t=I4(e,"string");return typeof t=="symbol"?t:t+""}function I4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vf=[0,"auto"],Ue={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},KE=(e,t)=>e.cartesianAxis.xAxis[t],Ir=(e,t)=>{var r=KE(e,t);return r??Ue},He={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:vf,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:ji},UE=(e,t)=>e.cartesianAxis.yAxis[t],kr=(e,t)=>{var r=UE(e,t);return r??He},k4={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},hv=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??k4},ke=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"zAxis":return hv(e,r);case"angleAxis":return fv(e,r);case"radiusAxis":return pv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},R4=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},_o=(e,t,r)=>{switch(t){case"xAxis":return Ir(e,r);case"yAxis":return kr(e,r);case"angleAxis":return fv(e,r);case"radiusAxis":return pv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},HE=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function gv(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Zl=e=>e.graphicalItems.cartesianItems,D4=M([je,Fi],gv),yv=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),Bi=M([Zl,ke,D4],yv,{memoizeOptions:{resultEqualityCheck:Xl}}),GE=M([Bi],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ql)),qE=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),$4=M([Bi],qE),bv=e=>e.map(t=>t.data).filter(Boolean).flat(1),L4=M([Bi],bv,{memoizeOptions:{resultEqualityCheck:Xl}}),xv=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:o}=t;return e.length>0?e:r.slice(n,o+1)},wv=M([L4,av],xv),Sv=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(o=>({value:be(o,n)}))):e.map(n=>({value:n})),Jl=M([wv,ke,Bi],Sv);function YE(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ga(e){if(ir(e)||e instanceof Date){var t=Number(e);if(ce(t))return t}}function Gb(e){if(Array.isArray(e)){var t=[Ga(e[0]),Ga(e[1])];return Sr(t)?t:void 0}var r=Ga(e);if(r!=null)return[r,r]}function Pr(e){return e.map(Ga).filter(yt)}function z4(e,t,r){return!r||typeof t!="number"||or(t)?[]:r.length?Pr(r.flatMap(n=>{var o=be(e,n.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!ce(i)||!ce(a)))return[t-i,t+a]})):[]}var Ke=e=>{var t=Je(e),r=Ao(e);return _o(e,t,r)},Vi=M([Ke],e=>e?.dataKey),F4=M([GE,av,Ke],VE),XE=(e,t,r,n)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=n?[...l].reverse():l,u=c.map(mv);return[s,{stackedData:iF(e,u,r),graphicalItems:c}]}))},mf=M([F4,GE,zi,RE],XE),ZE=(e,t,r,n)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var a=uF(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},B4=M([ke],e=>e.allowDataOverflow),Pv=e=>{var t;if(e==null||!("domain"in e))return vf;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=Pr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:vf},Ev=M([ke],Pv),Ov=M([Ev,B4],SE),V4=M([mf,Mr,je,Ov],ZE,{memoizeOptions:{resultEqualityCheck:Yl}}),Ql=e=>e.errorBars,W4=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>YE(r,n)),Ls=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},Cv=(e,t,r,n,o)=>{var i,a;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,d=(c=n[l.id])===null||c===void 0?void 0:c.filter(b=>YE(o,b)),p=be(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),v=z4(s,p,d);if(v.length>=2){var g=Math.min(...v),m=Math.max(...v);(i==null||g<i)&&(i=g),(a==null||m>a)&&(a=m)}var h=Gb(p);h!=null&&(i=i==null?h[0]:Math.min(i,h[0]),a=a==null?h[1]:Math.max(a,h[1]))})}),t?.dataKey!=null&&e.forEach(s=>{var l=Gb(be(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),ce(i)&&ce(a))return[i,a]},K4=M([wv,ke,$4,Ql,je],Cv,{memoizeOptions:{resultEqualityCheck:Yl}});function U4(e){var{value:t}=e;if(ir(t)||t instanceof Date)return t}var H4=(e,t,r)=>{var n=e.map(U4).filter(o=>o!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&fP(n))?V1(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},JE=e=>e.referenceElements.dots,To=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),G4=M([JE,je,Fi],To),QE=e=>e.referenceElements.areas,q4=M([QE,je,Fi],To),eO=e=>e.referenceElements.lines,Y4=M([eO,je,Fi],To),tO=(e,t)=>{if(e!=null){var r=Pr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},X4=M(G4,je,tO),rO=(e,t)=>{if(e!=null){var r=Pr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},Z4=M([q4,je],rO);function J4(e){var t;if(e.x!=null)return Pr([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:Pr(r)}function Q4(e){var t;if(e.y!=null)return Pr([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:Pr(r)}var nO=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?J4(n):Q4(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},eW=M([Y4,je],nO),tW=M(X4,eW,Z4,(e,t,r)=>Ls(e,r,t)),Av=(e,t,r,n,o,i,a,s)=>{if(r!=null)return r;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?Ls(n,i,o):Ls(i,o);return v4(t,c,e.allowDataOverflow)},rW=M([ke,Ev,Ov,V4,K4,tW,ve,je],Av,{memoizeOptions:{resultEqualityCheck:Yl}}),nW=[0,1],_v=(e,t,r,n,o,i,a)=>{if(!((e==null||r==null||r.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=_r(t,i);if(c&&s==null){var u;return V1(0,(u=r?.length)!==null&&u!==void 0?u:0)}return l==="category"?H4(n,e,c):o==="expand"?nW:a}},Tv=M([ke,ve,wv,Jl,zi,je,rW],_v);function oW(e){return e in Yo}var oO=(e,t,r)=>{if(e!=null){var{scale:n,type:o}=e;if(n==="auto")return o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":o==="category"?"band":"linear";if(typeof n=="string"){var i="scale".concat(Ei(n));return oW(i)?i:"point"}}},tn=M([ke,HE,cv],oO);function jv(e,t,r,n){if(!(r==null||n==null))return typeof e.scale=="function"?Ub(e.scale,r,n):Ub(t,r,n)}var Nv=(e,t,r)=>{var n=Pv(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Sr(e))return b4(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Sr(e))return x4(e,t.tickCount,t.allowDecimals)}},Mv=M([Tv,_o,tn],Nv),Iv=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Sr(t)&&Array.isArray(r)&&r.length>0){var o,i,a=t[0],s=(o=r[0])!==null&&o!==void 0?o:0,l=t[1],c=(i=r[r.length-1])!==null&&i!==void 0?i:0;return[Math.min(a,s),Math.max(l,c)]}return t},iW=M([ke,Tv,Mv,je],Iv),aW=M(Jl,ke,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(Pr(e.map(d=>d.value))).sort((d,p)=>d-p),o=n[0],i=n[n.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;s<n.length-1;s++){var l=n[s],c=n[s+1];if(!(l==null||c==null)){var u=c-l;r=Math.min(r,u)}}return r/a}}),iO=M(aW,ve,kE,Ve,(e,t,r,n,o)=>o,(e,t,r,n,o)=>{if(!ce(e))return 0;var i=t==="vertical"?n.height:n.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=at(r,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),sW=(e,t,r)=>{var n=Ir(e,t);return n==null||typeof n.padding!="string"?0:iO(e,"xAxis",t,r,n.padding)},lW=(e,t,r)=>{var n=kr(e,t);return n==null||typeof n.padding!="string"?0:iO(e,"yAxis",t,r,n.padding)},cW=M(Ir,sW,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((r=o.left)!==null&&r!==void 0?r:0)+t,right:((n=o.right)!==null&&n!==void 0?n:0)+t}}),uW=M(kr,lW,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((r=o.top)!==null&&r!==void 0?r:0)+t,bottom:((n=o.bottom)!==null&&n!==void 0?n:0)+t}}),dW=M([Ve,cW,Nl,jl,(e,t,r)=>r],(e,t,r,n,o)=>{var{padding:i}=n;return o?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),fW=M([Ve,ve,uW,Nl,jl,(e,t,r)=>r],(e,t,r,n,o,i)=>{var{padding:a}=o;return i?[n.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Wi=(e,t,r,n)=>{var o;switch(t){case"xAxis":return dW(e,r,n);case"yAxis":return fW(e,r,n);case"zAxis":return(o=hv(e,r))===null||o===void 0?void 0:o.range;case"angleAxis":return zE(e);case"radiusAxis":return FE(e,r);default:return}},aO=M([ke,Wi],Ul),pW=M([tn,iW],WE),ec=M([ke,tn,pW,aO],jv);M([Bi,Ql,je],W4);function sO(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var tc=(e,t)=>t,rc=(e,t,r)=>r,vW=M(_l,tc,rc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(sO)),mW=M(Tl,tc,rc,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(sO)),lO=(e,t)=>({width:e.width,height:t.height}),hW=(e,t)=>{var r=typeof t.width=="number"?t.width:ji;return{width:r,height:e.height}},cO=M(Ve,Ir,lO),gW=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},yW=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},bW=M(jr,Ve,vW,tc,rc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=lO(t,s);a==null&&(a=gW(t,n,e));var c=n==="top"&&!o||n==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),xW=M(Tr,Ve,mW,tc,rc,(e,t,r,n,o)=>{var i={},a;return r.forEach(s=>{var l=hW(t,s);a==null&&(a=yW(t,n,e));var c=n==="left"&&!o||n==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),wW=(e,t)=>{var r=Ir(e,t);if(r!=null)return bW(e,r.orientation,r.mirror)},SW=M([Ve,Ir,wW,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),PW=(e,t)=>{var r=kr(e,t);if(r!=null)return xW(e,r.orientation,r.mirror)},EW=M([Ve,kr,PW,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var o=r?.[n];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),uO=M(Ve,kr,(e,t)=>{var r=typeof t.width=="number"?t.width:ji;return{width:r,height:e.height}}),qb=(e,t,r)=>{switch(t){case"xAxis":return cO(e,r).width;case"yAxis":return uO(e,r).height;default:return}},dO=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=r,s=_r(e,n),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&fP(l))return l}},kv=M([ve,Jl,ke,je],dO),fO=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:o,scale:i}=r,a=_r(e,n);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},Rv=M([ve,Jl,_o,je],fO),Yb=M([ve,R4,tn,ec,kv,Rv,Wi,Mv,je],(e,t,r,n,o,i,a,s,l)=>{if(t!=null){var c=_r(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:r,scale:n}}}),OW=(e,t,r,n,o,i,a,s,l)=>{if(!(t==null||n==null)){var c=_r(e,l),{type:u,ticks:d,tickCount:p}=t,v=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,g=u==="category"&&n.bandwidth?n.bandwidth()/v:0;g=l==="angleAxis"&&i!=null&&i.length>=2?qe(i[0]-i[1])*2*g:g;var m=d||o;return m?m.map((h,b)=>{var x=a?a.indexOf(h):h,w=n.map(x);return ce(w)?{index:b,coordinate:w+g,value:h,offset:g}:null}).filter(yt):c&&s?s.map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.ticks?n.ticks(p).map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:h,index:b,offset:g}:null}).filter(yt):n.domain().map((h,b)=>{var x=n.map(h);return ce(x)?{coordinate:x+g,value:a?a[h]:h,index:b,offset:g}:null}).filter(yt)}},pO=M([ve,_o,tn,ec,Mv,Wi,kv,Rv,je],OW),CW=(e,t,r,n,o,i,a)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=_r(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&n?.length>=2?qe(n[0]-n[1])*2*c:c,s&&i?i.map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.ticks?r.ticks(l).map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:u,index:d,offset:c}:null}).filter(yt):r.domain().map((u,d)=>{var p=r.map(u);return ce(p)?{coordinate:p+c,value:o?o[u]:u,index:d,offset:c}:null}).filter(yt)}},Hr=M([ve,_o,ec,Wi,kv,Rv,je],CW),Gr=M(ke,ec,(e,t)=>{if(!(e==null||t==null))return $s($s({},e),{},{scale:t})}),AW=M([ke,tn,Tv,aO],jv);M((e,t,r)=>hv(e,r),AW,(e,t)=>{if(!(e==null||t==null))return $s($s({},e),{},{scale:t})});var _W=M([ve,_l,Tl],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),vO=e=>e.options.defaultTooltipEventType,mO=e=>e.options.validateTooltipEventTypes;function hO(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function Dv(e,t){var r=vO(e),n=mO(e);return hO(t,r,n)}function TW(e){return J(t=>Dv(t,e))}var gO=(e,t)=>{var r,n=Number(t);if(!(or(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},jW=e=>e.tooltip.settings,Br={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},NW={itemInteraction:{click:Br,hover:Br},axisInteraction:{click:Br,hover:Br},keyboardInteraction:Br,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},yO=xt({name:"tooltip",initialState:NW,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ce()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).tooltipItemPayloads.indexOf(r);o>-1&&(e.tooltipItemPayloads[o]=n)},prepare:Ce()},removeTooltipEntrySettings:{reducer(e,t){var r=Bt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ce()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:MW,replaceTooltipEntrySettings:IW,removeTooltipEntrySettings:kW,setTooltipSettingsState:RW,setActiveMouseOverItemIndex:bO,mouseLeaveItem:DW,mouseLeaveChart:xO,setActiveClickItemIndex:$W,setMouseOverAxisIndex:wO,setMouseClickAxisIndex:LW,setSyncInteraction:hf,setKeyboardInteraction:gf}=yO.actions,zW=yO.reducer;function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){FW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FW(e,t,r){return(t=BW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BW(e){var t=VW(e,"string");return typeof t=="symbol"?t:t+""}function VW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WW(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function KW(e){return e.index!=null}var SO=(e,t,r,n)=>{if(t==null)return Br;var o=WW(e,t,r);if(o==null)return Br;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(KW(o)){if(i)return Na(Na({},o),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Na(Na({},Br),{},{coordinate:o.coordinate})};function UW(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function HW(e,t){var r=UW(e),n=t[0],o=t[1];if(r===void 0)return!1;var i=Math.min(n,o),a=Math.max(n,o);return r>=i&&r<=a}function GW(e,t,r){if(r==null||t==null)return!0;var n=be(e,t);return n==null||!Sr(r)?!0:HW(n,r)}var $v=(e,t,r,n)=>{var o=e?.index;if(o==null)return null;var i=Number(o);if(!ce(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||GW(c,r,n)?String(l):null},PO=(e,t,r,n,o,i,a)=>{if(i!=null){var s=a[0],l=s?.getPosition(i);if(l!=null)return l;var c=o?.[Number(i)];if(c)return r==="horizontal"?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},EO=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(r==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})},OO=e=>e.options.tooltipPayloadSearcher,jo=e=>e.tooltip;function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){qW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qW(e,t,r){return(t=YW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=XW(e,"string");return typeof t=="symbol"?t:t+""}function XW(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZW(e,t){return e??t}var CO=(e,t,r,n,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,d=[];return e.reduce((p,v)=>{var g,{dataDefinedOnItem:m,settings:h}=v,b=ZW(m,s),x=Array.isArray(b)?u1(b,c,u):b,w=(g=h?.dataKey)!==null&&g!==void 0?g:n,S=h?.nameKey,E;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?E=pP(x,n,o):E=i(x,t,l,S),Array.isArray(E))E.forEach(O=>{var C=Jb(Jb({},h),{},{name:O.name,unit:O.unit,color:void 0,fill:void 0});p.push(Xg({tooltipEntrySettings:C,dataKey:O.dataKey,payload:O.payload,value:be(O.payload,O.dataKey),name:O.name}))});else{var P;p.push(Xg({tooltipEntrySettings:h,dataKey:w,payload:E,value:be(E,w),name:(P=be(E,S))!==null&&P!==void 0?P:h?.name}))}return p},d)}},Lv=M([Ke,HE,cv],oO),JW=M([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),QW=M([Je,Ao],gv),No=M([JW,Ke,QW],yv,{memoizeOptions:{resultEqualityCheck:Xl}}),e6=M([No],e=>e.filter(ql)),t6=M([No],bv,{memoizeOptions:{resultEqualityCheck:Xl}}),Mo=M([t6,Mr],xv),r6=M([e6,Mr,Ke],VE),zv=M([Mo,Ke,No],Sv),AO=M([Ke],Pv),n6=M([Ke],e=>e.allowDataOverflow),_O=M([AO,n6],SE),o6=M([No],e=>e.filter(ql)),i6=M([r6,o6,zi,RE],XE),a6=M([i6,Mr,Je,_O],ZE),s6=M([No],qE),l6=M([Mo,Ke,s6,Ql,Je],Cv,{memoizeOptions:{resultEqualityCheck:Yl}}),c6=M([JE,Je,Ao],To),u6=M([c6,Je],tO),d6=M([QE,Je,Ao],To),f6=M([d6,Je],rO),p6=M([eO,Je,Ao],To),v6=M([p6,Je],nO),m6=M([u6,v6,f6],Ls),h6=M([Ke,AO,_O,a6,l6,m6,ve,Je],Av),Ki=M([Ke,ve,Mo,zv,zi,Je,h6],_v),g6=M([Ki,Ke,Lv],Nv),y6=M([Ke,Ki,g6,Je],Iv),TO=e=>{var t=Je(e),r=Ao(e),n=!1;return Wi(e,t,r,n)},jO=M([Ke,TO],Ul),NO=M([Ke,Lv,y6,jO],jv),b6=M([ve,zv,Ke,Je],dO),x6=M([ve,zv,Ke,Je],fO),w6=(e,t,r,n,o,i,a,s)=>{if(t){var{type:l}=t,c=_r(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,d=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return d=s==="angleAxis"&&o!=null&&o?.length>=2?qe(o[0]-o[1])*2*d:d,c&&a?a.map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:p,index:v,offset:d}:null}).filter(yt):n.domain().map((p,v)=>{var g=n.map(p);return ce(g)?{coordinate:g+d,value:i?i[p]:p,index:v,offset:d}:null}).filter(yt)}}},Rr=M([ve,Ke,Lv,NO,TO,b6,x6,Je],w6),Fv=M([vO,mO,jW],(e,t,r)=>hO(r.shared,e,t)),MO=e=>e.tooltip.settings.trigger,Bv=e=>e.tooltip.settings.defaultIndex,Ui=M([jo,Fv,MO,Bv],SO),qr=M([Ui,Mo,Vi,Ki],$v),IO=M([Rr,qr],gO),Vv=M([Ui],e=>{if(e)return e.dataKey}),S6=M([Ui],e=>{if(e)return e.graphicalItemId}),kO=M([jo,Fv,MO,Bv],EO),P6=M([Tr,jr,ve,Ve,Rr,Bv,kO],PO),E6=M([Ui,P6],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),O6=M([Ui],e=>{var t;return(t=e?.active)!==null&&t!==void 0?t:!1}),C6=M([kO,qr,Mr,Vi,IO,OO,Fv],CO),A6=M([C6],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){_6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6(e,t,r){return(t=T6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T6(e){var t=j6(e,"string");return typeof t=="symbol"?t:t+""}function j6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N6=()=>J(Ke),M6=()=>{var e=N6(),t=J(Rr),r=J(NO);return co(!e||!r?void 0:ex(ex({},e),{},{scale:r}),t)};function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(r),!0).forEach(function(n){I6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I6(e,t,r){return(t=k6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k6(e){var t=R6(e,"string");return typeof t=="symbol"?t:t+""}function R6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D6=(e,t,r,n)=>{var o=t.find(i=>i&&i.index===r);if(o){if(e==="horizontal")return{x:o.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:o.coordinate}}return{x:0,y:0}},$6=(e,t,r,n)=>{var o=t.find(c=>c&&c.index===r);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=n;return Jn(Jn(Jn({},n),Re(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function L6(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var RO=(e,t,r,n,o)=>{var i,a=(i=t?.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(n==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s<a;s++){var l,c,u,d,p,v=s>0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[a-1])===null||c===void 0?void 0:c.coordinate,g=(u=r[s])===null||u===void 0?void 0:u.coordinate,m=s>=a-1?(d=r[0])===null||d===void 0?void 0:d.coordinate:(p=r[s+1])===null||p===void 0?void 0:p.coordinate,h=void 0;if(!(v==null||g==null||m==null))if(qe(g-v)!==qe(m-g)){var b=[];if(qe(m-g)===qe(o[1]-o[0])){h=m;var x=g+o[1]-o[0];b[0]=Math.min(x,(x+v)/2),b[1]=Math.max(x,(x+v)/2)}else{h=v;var w=m+o[1]-o[0];b[0]=Math.min(g,(w+g)/2),b[1]=Math.max(g,(w+g)/2)}var S=[Math.min(g,(h+g)/2),Math.max(g,(h+g)/2)];if(e>S[0]&&e<=S[1]||e>=b[0]&&e<=b[1]){var E;return(E=r[s])===null||E===void 0?void 0:E.index}}else{var P=Math.min(v,m),O=Math.max(v,m);if(e>(P+g)/2&&e<=(O+g)/2){var C;return(C=r[s])===null||C===void 0?void 0:C.index}}}else if(t)for(var N=0;N<a;N++){var $=t[N];if($!=null){var I=t[N+1],_=t[N-1];if(N===0&&I!=null&&e<=($.coordinate+I.coordinate)/2||N===a-1&&_!=null&&e>($.coordinate+_.coordinate)/2||N>0&&N<a-1&&_!=null&&I!=null&&e>($.coordinate+_.coordinate)/2&&e<=($.coordinate+I.coordinate)/2)return $.index}}return-1},z6=()=>J(cv),Wv=(e,t)=>t,DO=(e,t,r)=>r,Kv=(e,t,r,n)=>n,F6=M(Rr,e=>bl(e,t=>t.coordinate)),Uv=M([jo,Wv,DO,Kv],SO),Hv=M([Uv,Mo,Vi,Ki],$v),B6=(e,t,r)=>{if(t!=null){var n=jo(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},$O=M([jo,Wv,DO,Kv],EO),zs=M([Tr,jr,ve,Ve,Rr,Kv,$O],PO),V6=M([Uv,zs],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),LO=M([Rr,Hv],gO),W6=M([$O,Hv,Mr,Vi,LO,OO,Wv],CO),K6=M([Uv,Hv],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),U6=(e,t,r,n,o,i,a)=>{if(!(!e||!r||!n||!o)&&L6(e,a)){var s=dF(e,t),l=RO(s,i,o,r,n),c=D6(t,o,l,e);return{activeIndex:String(l),activeCoordinate:c}}},H6=(e,t,r,n,o,i,a)=>{if(!(!e||!n||!o||!i||!r)){var s=T3(e,r);if(s){var l=fF(s,t),c=RO(l,a,i,n,o),u=$6(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},G6=(e,t,r,n,o,i,a,s)=>{if(!(!e||!t||!n||!o||!i))return t==="horizontal"||t==="vertical"?U6(e,t,n,o,i,a,s):H6(e,t,r,n,o,i,a)},q6=M(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),Y6=M(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(De)),r=Array.from(new Set(t));return r.sort((n,o)=>n-o)},{memoizeOptions:{resultEqualityCheck:T4}});function rx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rx(Object(r),!0).forEach(function(n){X6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X6(e,t,r){return(t=Z6(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z6(e){var t=J6(e,"string");return typeof t=="symbol"?t:t+""}function J6(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q6={},eK={zIndexMap:Object.values(De).reduce((e,t)=>nx(nx({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Q6)},tK=new Set(Object.values(De));function rK(e){return tK.has(e)}var zO=xt({name:"zIndex",initialState:eK,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ce()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!rK(r)&&delete e.zIndexMap[r])},prepare:Ce()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:o}=t.payload;e.zIndexMap[r]?o?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:o?void 0:n,panoramaElement:o?n:void 0}},prepare:Ce()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ce()}}}),{registerZIndexPortal:nK,unregisterZIndexPortal:oK,registerZIndexPortalElement:iK,unregisterZIndexPortalElement:aK}=zO.actions,sK=zO.reducer;function wt(e){var{zIndex:t,children:r}=e,n=WF(),o=n&&t!==void 0&&t!==0,i=ct(),a=Se();A.useLayoutEffect(()=>o?(a(nK({zIndex:t})),()=>{a(oK({zIndex:t}))}):zn,[a,t,o]);var s=J(l=>q6(l,t,i));return o?s?xi.createPortal(r,s):null:r}function yf(){return yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yf.apply(null,arguments)}function ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){lK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lK(e,t,r){return(t=cK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cK(e){var t=uK(e,"string");return typeof t=="symbol"?t:t+""}function uK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dK(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return A.isValidElement(t)?A.cloneElement(t,n):A.createElement(r,n)}function fK(e){var t,{coordinate:r,payload:n,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=r,p=n,v=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var g,m,h;if(u==="ScatterChart")g=d,m=WB,h=De.cursorLine;else if(u==="BarChart")g=KB(s,d,i,a),m=$1,h=De.cursorRectangle;else if(s==="radial"&&mP(d)){var{cx:b,cy:x,radius:w,startAngle:S,endAngle:E}=z1(d);g={cx:b,cy:x,startAngle:S,endAngle:E,innerRadius:w,outerRadius:w},m=B1,h=De.cursorLine}else g={points:I3(s,d,i)},m=Dp,h=De.cursorLine;var P=typeof l=="object"&&"className"in l?l.className:void 0,O=Ma(Ma(Ma(Ma({stroke:"#ccc",pointerEvents:"none"},i),g),En(l)),{},{payload:p,payloadIndex:v,className:de("recharts-tooltip-cursor",P)});return f.createElement(wt,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:h},f.createElement(dK,{cursor:l,cursorComp:m,cursorProps:O}))}function pK(e){var t=M6(),r=b1(),n=Fn(),o=z6();return t==null||r==null||n==null||o==null?null:f.createElement(fK,yf({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:o}))}var FO=A.createContext(null),vK=()=>A.useContext(FO),od={exports:{}},ix;function mK(){return ix||(ix=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new o(u,d||l,p),g=r?r+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],v]:l._events[g].push(v):(l._events[g]=v,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,g=new Array(v);p<v;p++)g[p]=d[p].fn;return g},s.prototype.listenerCount=function(c){var u=r?r+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,v,g){var m=r?r+c:c;if(!this._events[m])return!1;var h=this._events[m],b=arguments.length,x,w;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),b){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,d),!0;case 4:return h.fn.call(h.context,u,d,p),!0;case 5:return h.fn.call(h.context,u,d,p,v),!0;case 6:return h.fn.call(h.context,u,d,p,v,g),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];h.fn.apply(h.context,x)}else{var S=h.length,E;for(w=0;w<S;w++)switch(h[w].once&&this.removeListener(c,h[w].fn,void 0,!0),b){case 1:h[w].fn.call(h[w].context);break;case 2:h[w].fn.call(h[w].context,u);break;case 3:h[w].fn.call(h[w].context,u,d);break;case 4:h[w].fn.call(h[w].context,u,d,p);break;default:if(!x)for(E=1,x=new Array(b-1);E<b;E++)x[E-1]=arguments[E];h[w].fn.apply(h[w].context,x)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var v=r?r+c:c;if(!this._events[v])return this;if(!u)return a(this,v),this;var g=this._events[v];if(g.fn)g.fn===u&&(!p||g.once)&&(!d||g.context===d)&&a(this,v);else{for(var m=0,h=[],b=g.length;m<b;m++)(g[m].fn!==u||p&&!g[m].once||d&&g[m].context!==d)&&h.push(g[m]);h.length?this._events[v]=h.length===1?h[0]:h:a(this,v)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&a(this,u)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(od)),od.exports}var hK=mK();const gK=Jr(hK);var pi=new gK,bf="recharts.syncEvent.tooltip",ax="recharts.syncEvent.brush",Gv=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!or(r))return e[r]}},yK={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},BO=xt({name:"options",initialState:yK,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),bK=BO.reducer,{createEventEmitter:xK}=BO.actions;function wK(e){return e.tooltip.syncInteraction}var SK={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},VO=xt({name:"chartData",initialState:SK,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:sx,setDataStartEndIndexes:PK,setComputedData:dre}=VO.actions,EK=VO.reducer,OK=["x","y"];function lx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lx(Object(r),!0).forEach(function(n){CK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CK(e,t,r){return(t=AK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AK(e){var t=_K(e,"string");return typeof t=="symbol"?t:t+""}function _K(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TK(e,t){if(e==null)return{};var r,n,o=jK(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function jK(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function NK(){var e=J(uv),t=J(dv),r=Se(),n=J(DE),o=J(Rr),i=Fn(),a=Ml(),s=J(l=>l.rootProps.className);A.useEffect(()=>{if(e==null)return zn;var l=(c,u,d)=>{if(t!==d&&e===c){if(n==="index"){var p;if(a&&u!==null&&u!==void 0&&(p=u.payload)!==null&&p!==void 0&&p.coordinate&&u.payload.sourceViewBox){var v=u.payload.coordinate,{x:g,y:m}=v,h=TK(v,OK),{x:b,y:x,width:w,height:S}=u.payload.sourceViewBox,E=Qn(Qn({},h),{},{x:a.x+(w?(g-b)/w:0)*a.width,y:a.y+(S?(m-x)/S:0)*a.height});r(Qn(Qn({},u),{},{payload:Qn(Qn({},u.payload),{},{coordinate:E})}))}else r(u);return}if(o!=null){var P;if(typeof n=="function"){var O={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},C=n(o,O);P=o[C]}else n==="value"&&(P=o.find(F=>String(F.value)===u.payload.label));var{coordinate:N}=u.payload;if(P==null||u.payload.active===!1||N==null||a==null){r(hf({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:$,y:I}=N,_=Math.min($,a.x+a.width),j=Math.min(I,a.y+a.height),R={x:i==="horizontal"?P.coordinate:_,y:i==="horizontal"?j:P.coordinate},V=hf({active:u.payload.active,coordinate:R,dataKey:u.payload.dataKey,index:String(P.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(V)}}};return pi.on(bf,l),()=>{pi.off(bf,l)}},[s,r,t,e,n,o,i,a])}function MK(){var e=J(uv),t=J(dv),r=Se();A.useEffect(()=>{if(e==null)return zn;var n=(o,i,a)=>{t!==a&&e===o&&r(PK(i))};return pi.on(ax,n),()=>{pi.off(ax,n)}},[r,t,e])}function IK(){var e=Se();A.useEffect(()=>{e(xK())},[e]),NK(),MK()}function kK(e,t,r,n,o,i){var a=J(v=>B6(v,e,t)),s=J(dv),l=J(uv),c=J(DE),u=J(wK),d=u?.active,p=Ml();A.useEffect(()=>{if(!d&&l!=null&&s!=null){var v=hf({active:i,coordinate:r,dataKey:a,index:o,label:typeof n=="number"?String(n):n,sourceViewBox:p,graphicalItemId:void 0});pi.emit(bf,l,v,s)}},[d,r,a,o,n,s,l,c,i,p])}function cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ux(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cx(Object(r),!0).forEach(function(n){RK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RK(e,t,r){return(t=DK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DK(e){var t=$K(e,"string");return typeof t=="symbol"?t:t+""}function $K(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LK(e){return e.dataKey}function zK(e,t){return f.isValidElement(e)?f.cloneElement(e,t):typeof e=="function"?f.createElement(e,t):f.createElement(SB,t)}var dx=[],FK={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function qv(e){var t,r,n=Le(e,FK),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:p,position:v,reverseDirection:g,useTranslate3d:m,wrapperStyle:h,cursor:b,shared:x,trigger:w,defaultIndex:S,portal:E,axisId:P}=n,O=Se(),C=typeof S=="number"?String(S):S;A.useEffect(()=>{O(RW({shared:x,trigger:w,axisId:P,active:o,defaultIndex:C}))},[O,x,w,P,o,C]);var N=Ml(),$=M1(),I=TW(x),{activeIndex:_,isActive:j}=(t=J(K=>K6(K,I,w,C)))!==null&&t!==void 0?t:{},R=J(K=>W6(K,I,w,C)),V=J(K=>LO(K,I,w,C)),F=J(K=>V6(K,I,w,C)),W=R,T=vK(),k=(r=o??j)!==null&&r!==void 0?r:!1,[G,ee]=jP([W,k]),ne=I==="axis"?V:void 0;kK(I,w,F,ne,_,k);var ie=E??T;if(ie==null||N==null||I==null)return null;var oe=W??dx;k||(oe=dx),c&&oe.length&&(oe=EP(oe.filter(K=>K.value!=null&&(K.hide!==!0||n.includeHidden)),p,LK));var le=oe.length>0,Oe=f.createElement(TB,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:k,coordinate:F,hasPayload:le,offset:d,position:v,reverseDirection:g,useTranslate3d:m,viewBox:N,wrapperStyle:h,lastBoundingBox:G,innerRef:ee,hasPortalFromProps:!!E},zK(l,ux(ux({},n),{},{payload:oe,label:ne,active:k,activeIndex:_,coordinate:F,accessibilityLayer:$})));return f.createElement(f.Fragment,null,xi.createPortal(Oe,ie),k&&f.createElement(pK,{cursor:b,tooltipEventType:I,coordinate:F,payload:oe,index:_}))}var Hi=e=>null;Hi.displayName="Cell";function BK(e,t,r){return(t=VK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VK(e){var t=WK(e,"string");return typeof t=="symbol"?t:t+""}function WK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class KK{constructor(t){BK(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function UK(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){HK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HK(e,t,r){return(t=GK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GK(e){var t=qK(e,"string");return typeof t=="symbol"?t:t+""}function qK(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YK={cacheSize:2e3,enableCache:!0},WO=UK({},YK),px=new KK(WO.cacheSize),XK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vx="recharts_measurement_span";function ZK(e,t){var r=t.fontSize||"",n=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}var mx=(e,t)=>{try{var r=document.getElementById(vx);r||(r=document.createElement("span"),r.setAttribute("id",vx),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,XK,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Qo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$l.isSsr)return{width:0,height:0};if(!WO.enableCache)return mx(t,r);var n=ZK(t,r),o=px.get(n);if(o)return o;var i=mx(t,r);return px.set(n,i),i},KO;function JK(e,t,r){return(t=QK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QK(e){var t=eU(e,"string");return typeof t=="symbol"?t:t+""}function eU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gx=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,rU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nU={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oU=["cm","mm","pt","pc","in","Q","px"];function iU(e){return oU.includes(e)}var to="NaN";function aU(e,t){return e*nU[t]}class rt{static parse(t){var r,[,n,o]=(r=rU.exec(t))!==null&&r!==void 0?r:[];return n==null?rt.NaN:new rt(parseFloat(n),o??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,or(t)&&(this.unit=""),r!==""&&!tU.test(r)&&(this.num=NaN,this.unit=""),iU(r)&&(this.num=aU(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new rt(NaN,""):new rt(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rt(NaN,""):new rt(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return or(this.num)}}KO=rt;JK(rt,"NaN",new KO(NaN,""));function UO(e){if(e==null||e.includes(to))return to;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,o,i]=(r=hx.exec(t))!==null&&r!==void 0?r:[],a=rt.parse(n??""),s=rt.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return to;t=t.replace(hx,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,p]=(c=gx.exec(t))!==null&&c!==void 0?c:[],v=rt.parse(u??""),g=rt.parse(p??""),m=d==="+"?v.add(g):v.subtract(g);if(m.isNaN())return to;t=t.replace(gx,m.toString())}return t}var yx=/\(([^()]*)\)/;function sU(e){for(var t=e,r;(r=yx.exec(t))!=null;){var[,n]=r;t=t.replace(yx,UO(n))}return t}function lU(e){var t=e.replace(/\s+/g,"");return t=sU(t),t=UO(t),t}function cU(e){try{return lU(e)}catch{return to}}function id(e){var t=cU(e.slice(5,-1));return t===to?"":t}var uU=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],dU=["dx","dy","angle","className","breakAll"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(null,arguments)}function bx(e,t){if(e==null)return{};var r,n,o=fU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function fU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var HO=/[ \f\n\r\t\v\u2028\u2029]+/,GO=e=>{var{children:t,breakAll:r,style:n}=e;try{var o=[];Te(t)||(r?o=t.toString().split(""):o=t.toString().split(HO));var i=o.map(s=>({word:s,width:Qo(s,n).width})),a=r?0:Qo(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function pU(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var qO=(e,t,r,n)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||n||l.width+s+r<Number(t)))l.words.push(a),l.width+=s+r;else{var c={words:[a],width:s};o.push(c)}return o},[]),YO=e=>e.reduce((t,r)=>t.width>r.width?t:r),vU="…",xx=(e,t,r,n,o,i,a,s)=>{var l=e.slice(0,t),c=GO({breakAll:r,style:n,children:l+vU});if(!c)return[!1,[]];var u=qO(c.wordsWithComputedWidth,i,a,s),d=u.length>o||YO(u).width>Number(i);return[d,u]},mU=(e,t,r,n,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,c=q(i),u=String(a),d=qO(t,n,r,o);if(!c||o)return d;var p=d.length>i||YO(d).width>Number(n);if(!p)return d;for(var v=0,g=u.length-1,m=0,h;v<=g&&m<=u.length-1;){var b=Math.floor((v+g)/2),x=b-1,[w,S]=xx(u,x,l,s,i,n,r,o),[E]=xx(u,b,l,s,i,n,r,o);if(!w&&!E&&(v=b+1),w&&E&&(g=b-1),!w&&E){h=S;break}m++}return h||d},wx=e=>{var t=Te(e)?[]:e.toString().split(HO);return[{words:t,width:void 0}]},hU=e=>{var{width:t,scaleToFit:r,children:n,style:o,breakAll:i,maxLines:a}=e;if((t||r)&&!$l.isSsr){var s,l,c=GO({breakAll:i,children:n,style:o});if(c){var{wordsWithComputedWidth:u,spaceWidth:d}=c;s=u,l=d}else return wx(n);return mU({breakAll:i,children:n,maxLines:a,style:o},s,l,t,!!r)}return wx(n)},XO="#808080",gU={angle:0,breakAll:!1,capHeight:"0.71em",fill:XO,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},nc=A.forwardRef((e,t)=>{var r=Le(e,gU),{x:n,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,d=bx(r,uU),p=A.useMemo(()=>hU({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:l,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,l,d.style,d.width]),{dx:v,dy:g,angle:m,className:h,breakAll:b}=d,x=bx(d,dU);if(!ir(n)||!ir(o)||p.length===0)return null;var w=Number(n)+(q(v)?v:0),S=Number(o)+(q(g)?g:0);if(!ce(w)||!ce(S))return null;var E;switch(u){case"start":E=id("calc(".concat(a,")"));break;case"middle":E=id("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:E=id("calc(".concat(p.length-1," * -").concat(i,")"));break}var P=[],O=p[0];if(l&&O!=null){var C=O.width,{width:N}=d;P.push("scale(".concat(q(N)&&q(C)?N/C:1,")"))}return m&&P.push("rotate(".concat(m,", ").concat(w,", ").concat(S,")")),P.length&&(x.transform=P.join(" ")),f.createElement("text",xf({},mt(x),{ref:t,x:w,y:S,className:de("recharts-text",h),textAnchor:c,fill:s.includes("url")?XO:s}),p.map(($,I)=>{var _=$.words.join(b?"":" ");return f.createElement("tspan",{x:w,dy:I===0?E:i,key:"".concat(_,"-").concat(I)},_)}))});nc.displayName="Text";function Sx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sx(Object(r),!0).forEach(function(n){yU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yU(e,t,r){return(t=bU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bU(e){var t=xU(e,"string");return typeof t=="symbol"?t:t+""}function xU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wU=e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:o}=e,{x:i,y:a,height:s,upperWidth:l,lowerWidth:c}=Np(t),u=i,d=i+(l-c)/2,p=(u+d)/2,v=(l+c)/2,g=u+l/2,m=s>=0?1:-1,h=m*n,b=m>0?"end":"start",x=m>0?"start":"end",w=l>=0?1:-1,S=w*n,E=w>0?"end":"start",P=w>0?"start":"end",O=o;if(r==="top"){var C={x:u+l/2,y:a-h,horizontalAnchor:"middle",verticalAnchor:b};return O&&(C.height=Math.max(a-O.y,0),C.width=l),C}if(r==="bottom"){var N={x:d+c/2,y:a+s+h,horizontalAnchor:"middle",verticalAnchor:x};return O&&(N.height=Math.max(O.y+O.height-(a+s),0),N.width=c),N}if(r==="left"){var $={x:p-S,y:a+s/2,horizontalAnchor:E,verticalAnchor:"middle"};return O&&($.width=Math.max($.x-O.x,0),$.height=s),$}if(r==="right"){var I={x:p+v+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"};return O&&(I.width=Math.max(O.x+O.width-I.x,0),I.height=s),I}var _=O?{width:v,height:s}:{};return r==="insideLeft"?Xt({x:p+S,y:a+s/2,horizontalAnchor:P,verticalAnchor:"middle"},_):r==="insideRight"?Xt({x:p+v-S,y:a+s/2,horizontalAnchor:E,verticalAnchor:"middle"},_):r==="insideTop"?Xt({x:u+l/2,y:a+h,horizontalAnchor:"middle",verticalAnchor:x},_):r==="insideBottom"?Xt({x:d+c/2,y:a+s-h,horizontalAnchor:"middle",verticalAnchor:b},_):r==="insideTopLeft"?Xt({x:u+S,y:a+h,horizontalAnchor:P,verticalAnchor:x},_):r==="insideTopRight"?Xt({x:u+l-S,y:a+h,horizontalAnchor:E,verticalAnchor:x},_):r==="insideBottomLeft"?Xt({x:d+S,y:a+s-h,horizontalAnchor:P,verticalAnchor:b},_):r==="insideBottomRight"?Xt({x:d+c-S,y:a+s-h,horizontalAnchor:E,verticalAnchor:b},_):r&&typeof r=="object"&&(q(r.x)||An(r.x))&&(q(r.y)||An(r.y))?Xt({x:i+at(r.x,v),y:a+at(r.y,s),horizontalAnchor:"end",verticalAnchor:"end"},_):Xt({x:g,y:a+s/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)},SU=["labelRef"],PU=["content"];function Px(e,t){if(e==null)return{};var r,n,o=EU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function EU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ex(Object(r),!0).forEach(function(n){OU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ex(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OU(e,t,r){return(t=CU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CU(e){var t=AU(e,"string");return typeof t=="symbol"?t:t+""}function AU(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pr.apply(null,arguments)}var ZO=A.createContext(null),_U=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a,children:s}=e,l=A.useMemo(()=>({x:t,y:r,upperWidth:n,lowerWidth:o,width:i,height:a}),[t,r,n,o,i,a]);return f.createElement(ZO.Provider,{value:l},s)},JO=()=>{var e=A.useContext(ZO),t=Ml();return e||(t?Np(t):void 0)},TU=A.createContext(null),jU=()=>{var e=A.useContext(TU),t=J(BE);return e||t},NU=e=>{var{value:t,formatter:r}=e,n=Te(e.children)?t:e.children;return typeof r=="function"?r(n):n},Yv=e=>e!=null&&typeof e=="function",MU=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},IU=(e,t,r,n,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:d,endAngle:p,clockWise:v}=o,g=(c+u)/2,m=MU(d,p),h=m>=0?1:-1,b,x;switch(t){case"insideStart":b=d+h*i,x=v;break;case"insideEnd":b=p-h*i,x=!v;break;case"end":b=p+h*i,x=v;break;default:throw new Error("Unsupported position ".concat(t))}x=m<=0?x:!x;var w=Re(s,l,g,b),S=Re(s,l,g,b+(x?1:-1)*359),E="M".concat(w.x,",").concat(w.y,`
|
|
99
99
|
A`).concat(g,",").concat(g,",0,1,").concat(x?0:1,`,
|
|
100
|
-
`).concat(S.x,",").concat(S.y),P=Te(e.id)?ei("recharts-radial-line-"):e.id;return f.createElement("text",pr({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",a)}),f.createElement("defs",null,f.createElement("path",{id:P,d:E})),f.createElement("textPath",{xlinkHref:"#".concat(P)},r))},TU=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:d}=Re(n,o,a+t,c);return{x:u,y:d,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(i+a)/2,{x:v,y:g}=Re(n,o,p,c);return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},qa=e=>e!=null&&"cx"in e&&q(e.cx),jU={angle:0,offset:5,zIndex:De.label,position:"middle",textBreakAll:!1};function MU(e){if(!qa(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function zr(e){var t=Le(e,jU),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=OU(),p=JO(),v=o==="center"?p:d??p,g,m,h;r==null?g=v:qa(r)?g=r:g=Mp(r);var b=MU(g);if(!g||Te(i)&&Te(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var x=Xo(Xo({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:w}=x,S=Px(x,gU);return A.cloneElement(s,S)}if(typeof s=="function"){var{content:E}=x,P=Px(x,yU);if(m=A.createElement(s,P),A.isValidElement(m))return m}else m=CU(t);var O=mt(t);if(qa(g)){if(o==="insideStart"||o==="insideEnd"||o==="end")return _U(t,o,m,O,g);h=TU(g,t.offset,t.position)}else{if(!b)return null;var C=hU({viewBox:b,position:o,offset:t.offset,parentViewBox:qa(n)?void 0:n});h=Xo(Xo({x:C.x,y:C.y,textAnchor:C.horizontalAnchor,verticalAnchor:C.verticalAnchor},C.width!==void 0?{width:C.width}:{}),C.height!==void 0?{height:C.height}:{})}return f.createElement(wt,{zIndex:t.zIndex},f.createElement(nc,pr({ref:u,className:de("recharts-label",l)},O,h,{textAnchor:lU(O.textAnchor)?O.textAnchor:h.textAnchor,breakAll:c}),m))}zr.displayName="Label";var NU=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?f.createElement(zr,pr({key:"label-implicit"},n)):ir(e)?f.createElement(zr,pr({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===zr?A.cloneElement(e,Xo({key:"label-implicit"},n)):f.createElement(zr,pr({key:"label-implicit",content:e},n)):Yv(e)?f.createElement(zr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?f.createElement(zr,pr({},e,{key:"label-implicit"},n)):null};function IU(e){var{label:t,labelRef:r}=e,n=JO();return NU(t,n,r)||null}var ad={},sd={},Ox;function kU(){return Ox||(Ox=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(sd)),sd}var ld={},Cx;function RU(){return Cx||(Cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(ld)),ld}var Ax;function DU(){return Ax||(Ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kU(),r=RU(),n=bp();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(ad)),ad}var cd,_x;function $U(){return _x||(_x=1,cd=DU().last),cd}var LU=$U();const FU=Jr(LU);var zU=["valueAccessor"],BU=["dataKey","clockWise","id","textBreakAll","zIndex"];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(null,arguments)}function Tx(e,t){if(e==null)return{};var r,n,o=VU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function VU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var WU=e=>Array.isArray(e.value)?FU(e.value):e.value,QO=A.createContext(void 0),eC=QO.Provider,tC=A.createContext(void 0),KU=tC.Provider;function UU(){return A.useContext(QO)}function HU(){return A.useContext(tC)}function Ya(e){var{valueAccessor:t=WU}=e,r=Tx(e,zU),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=Tx(r,BU),c=UU(),u=HU(),d=c||u;return!d||!d.length?null:f.createElement(wt,{zIndex:s??De.label},f.createElement(Xe,{className:"recharts-label-list"},d.map((p,v)=>{var g,m=Te(n)?t(p,v):be(p.payload,n),h=Te(i)?{}:{id:"".concat(i,"-").concat(v)};return f.createElement(zr,zs({key:"label-".concat(v)},mt(p),l,h,{fill:(g=r.fill)!==null&&g!==void 0?g:p.fill,parentViewBox:p.parentViewBox,value:m,textBreakAll:a,viewBox:p.viewBox,index:v,zIndex:0}))})))}Ya.displayName="LabelList";function Xv(e){var{label:t}=e;return t?t===!0?f.createElement(Ya,{key:"labelList-implicit"}):f.isValidElement(t)||Yv(t)?f.createElement(Ya,{key:"labelList-implicit",content:t}):typeof t=="object"?f.createElement(Ya,zs({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wf.apply(null,arguments)}var rC=e=>{var{cx:t,cy:r,r:n,className:o}=e,i=de("recharts-dot",o);return q(t)&&q(r)&&q(n)?f.createElement("circle",wf({},At(e),yp(e),{className:i,cx:t,cy:r,r:n})):null},nC=e=>e.graphicalItems.polarItems,GU=N([je,zi],gv),oc=N([nC,ke,GU],yv),qU=N([oc],bv),ic=N([qU,Kl],xv),YU=N([ic,ke,oc],Sv);N([ic,ke,oc],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(o=>{var i,a=be(n,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var jx=()=>{},XU=N([ic,ke,oc,Ql,je],Cv),ZU=N([ke,Ev,Ov,jx,XU,jx,ve,je],Av),oC=N([ke,ve,ic,YU,Fi,je,ZU],_v),JU=N([oC,_o,tn],Mv),QU=N([ke,oC,JU,je],Iv);N([tn,QU],WE);var eH={radiusAxis:{},angleAxis:{}},iC=xt({name:"polarAxis",initialState:eH,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:are,removeRadiusAxis:sre,addAngleAxis:lre,removeAngleAxis:cre}=iC.actions,tH=iC.reducer;function aC(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mx(Object(r),!0).forEach(function(n){rH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rH(e,t,r){return(t=nH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nH(e){var t=oH(e,"string");return typeof t=="symbol"?t:t+""}function oH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iH=(e,t)=>t,Zv=N([nC,iH],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),aH=[],Jv=(e,t,r)=>r?.length===0?aH:r,sC=N([Kl,Zv,Jv],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=n,(!o||!o.length)&&r!=null&&(o=r.map(i=>Nx(Nx({},t.presentationProps),i.props))),o!=null)return o}}),sH=N([sC,Zv,Jv],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,o)=>{var i,a=be(n,t.nameKey,t.name),s;return r!=null&&(i=r[o])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=r[o].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Po(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),lH=N([sC,Zv,Jv,Ve],(e,t,r,n)=>{if(!(t==null||e==null))return u8({offset:n,pieSettings:t,displayedData:e,cells:r})}),Ia={exports:{}},ge={};var Ix;function cH(){if(Ix)return ge;Ix=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),m=b("react.debug_trace_mode"),h=b("react.legacy_hidden")}function x(j){if(typeof j=="object"&&j!==null){var R=j.$$typeof;switch(R){case e:switch(j=j.type,j){case r:case o:case n:case l:case c:return j;default:switch(j=j&&j.$$typeof,j){case a:case s:case d:case u:case i:return j;default:return R}}case t:return R}}}var w=i,S=e,E=s,P=r,O=d,C=u,M=t,$=o,I=n,_=l;return ge.ContextConsumer=a,ge.ContextProvider=w,ge.Element=S,ge.ForwardRef=E,ge.Fragment=P,ge.Lazy=O,ge.Memo=C,ge.Portal=M,ge.Profiler=$,ge.StrictMode=I,ge.Suspense=_,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(j){return x(j)===a},ge.isContextProvider=function(j){return x(j)===i},ge.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ge.isForwardRef=function(j){return x(j)===s},ge.isFragment=function(j){return x(j)===r},ge.isLazy=function(j){return x(j)===d},ge.isMemo=function(j){return x(j)===u},ge.isPortal=function(j){return x(j)===t},ge.isProfiler=function(j){return x(j)===o},ge.isStrictMode=function(j){return x(j)===n},ge.isSuspense=function(j){return x(j)===l},ge.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===o||j===m||j===n||j===l||j===c||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===u||j.$$typeof===i||j.$$typeof===a||j.$$typeof===s||j.$$typeof===g||j.$$typeof===p||j[0]===v)},ge.typeOf=x,ge}var ye={};var kx;function uH(){return kx||(kx=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),b("react.scope"),b("react.opaque.id"),m=b("react.debug_trace_mode"),b("react.offscreen"),h=b("react.legacy_hidden")}var x=!1;function w(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===o||B===m||B===n||B===l||B===c||B===h||x||typeof B=="object"&&B!==null&&(B.$$typeof===d||B.$$typeof===u||B.$$typeof===i||B.$$typeof===a||B.$$typeof===s||B.$$typeof===g||B.$$typeof===p||B[0]===v))}function S(B){if(typeof B=="object"&&B!==null){var F=B.$$typeof;switch(F){case e:var fe=B.type;switch(fe){case r:case o:case n:case l:case c:return fe;default:var se=fe&&fe.$$typeof;switch(se){case a:case s:case d:case u:case i:return se;default:return F}}case t:return F}}}var E=a,P=i,O=e,C=s,M=r,$=d,I=u,_=t,j=o,R=n,V=l,z=!1,W=!1;function T(B){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(B){return S(B)===a}function ee(B){return S(B)===i}function ne(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function ie(B){return S(B)===s}function oe(B){return S(B)===r}function le(B){return S(B)===d}function Oe(B){return S(B)===u}function K(B){return S(B)===t}function ue(B){return S(B)===o}function L(B){return S(B)===n}function H(B){return S(B)===l}ye.ContextConsumer=E,ye.ContextProvider=P,ye.Element=O,ye.ForwardRef=C,ye.Fragment=M,ye.Lazy=$,ye.Memo=I,ye.Portal=_,ye.Profiler=j,ye.StrictMode=R,ye.Suspense=V,ye.isAsyncMode=T,ye.isConcurrentMode=k,ye.isContextConsumer=G,ye.isContextProvider=ee,ye.isElement=ne,ye.isForwardRef=ie,ye.isFragment=oe,ye.isLazy=le,ye.isMemo=Oe,ye.isPortal=K,ye.isProfiler=ue,ye.isStrictMode=L,ye.isSuspense=H,ye.isValidElementType=w,ye.typeOf=S})()),ye}var Rx;function dH(){return Rx||(Rx=1,process.env.NODE_ENV==="production"?Ia.exports=cH():Ia.exports=uH()),Ia.exports}var fH=dH(),Dx=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",$x=null,ud=null,lC=e=>{if(e===$x&&Array.isArray(ud))return ud;var t=[];return A.Children.forEach(e,r=>{Te(r)||(fH.isFragment(r)?t=t.concat(lC(r.props.children)):t.push(r))}),ud=t,$x=e,t};function Qv(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>Dx(o)):n=[Dx(t)],lC(e).forEach(o=>{var i=Cn(o,"type.displayName")||Cn(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var cC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,dd={},Lx;function pH(){return Lx||(Lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${o}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(dd)),dd}var fd,Fx;function vH(){return Fx||(Fx=1,fd=pH().isPlainObject),fd}var mH=vH();const hH=Jr(mH);var zx,Bx,Vx,Wx,Kx;function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){gH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gH(e,t,r){return(t=yH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yH(e){var t=bH(e,"string");return typeof t=="symbol"?t:t+""}function bH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(null,arguments)}function Ho(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Gx=(e,t,r,n,o)=>{var i=r-n,a;return a=Ne(zx||(zx=Ho(["M ",",",""])),e,t),a+=Ne(Bx||(Bx=Ho(["L ",",",""])),e+r,t),a+=Ne(Vx||(Vx=Ho(["L ",",",""])),e+r-i/2,t+o),a+=Ne(Wx||(Wx=Ho(["L ",",",""])),e+r-i/2-n,t+o),a+=Ne(Kx||(Kx=Ho(["L ",","," Z"])),e,t),a},xH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},wH=e=>{var t=Le(e,xH),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,p=A.useRef(null),[v,g]=A.useState(-1),m=A.useRef(o),h=A.useRef(i),b=A.useRef(a),x=A.useRef(r),w=A.useRef(n),S=ki(e,"trapezoid-");if(A.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var R=p.current.getTotalLength();R&&g(R)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var E=de("recharts-trapezoid",s);if(!d)return f.createElement("g",null,f.createElement("path",Bs({},mt(t),{className:E,d:Gx(r,n,o,i,a)})));var P=m.current,O=h.current,C=b.current,M=x.current,$=w.current,I="0px ".concat(v===-1?1:v,"px"),_="".concat(v,"px 0px"),j=I1(["strokeDasharray"],c,l);return f.createElement(Ii,{animationId:S,key:S,canBegin:v>0,duration:c,easing:l,isActive:d,begin:u},R=>{var V=Ae(P,o,R),z=Ae(O,i,R),W=Ae(C,a,R),T=Ae(M,r,R),k=Ae($,n,R);p.current&&(m.current=V,h.current=z,b.current=W,x.current=T,w.current=k);var G=R>0?{transition:j,strokeDasharray:_}:{strokeDasharray:I};return f.createElement("path",Bs({},mt(t),{className:E,d:Gx(T,k,V,z,W),ref:p,style:Hx(Hx({},G),t.style)}))})},SH=["option","shapeType","activeClassName"];function PH(e,t){if(e==null)return{};var r,n,o=EH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function EH(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qx(Object(r),!0).forEach(function(n){OH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OH(e,t,r){return(t=CH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CH(e){var t=AH(e,"string");return typeof t=="symbol"?t:t+""}function AH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _H(e,t){return Vs(Vs({},t),e)}function TH(e,t){return e==="symbols"}function Yx(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return f.createElement($1,r);case"trapezoid":return f.createElement(wH,r);case"sector":return f.createElement(B1,r);case"symbols":if(TH(t))return f.createElement(gp,r);break;case"curve":return f.createElement(Dp,r);default:return null}}function jH(e){return A.isValidElement(e)?e.props:e}function em(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=PH(e,SH),i;if(A.isValidElement(t))i=A.cloneElement(t,Vs(Vs({},o),jH(t)));else if(typeof t=="function")i=t(o,o.index);else if(hH(t)&&typeof t!="boolean"){var a=_H(t,o);i=f.createElement(Yx,{shapeType:r,elementProps:a})}else{var s=o;i=f.createElement(Yx,{shapeType:r,elementProps:s})}return o.isActive?f.createElement(Xe,{className:n},i):i}var tm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n(bO({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},rm=e=>{var t=Se();return(r,n)=>o=>{e?.(r,n,o),t(MW())}},nm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n(NW({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function om(e){var{tooltipEntrySettings:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(AW(t)):o.current!==t&&r(_W({prev:o.current,next:t})),o.current=t)},[t,r,n]),A.useLayoutEffect(()=>()=>{o.current&&(r(TW(o.current)),o.current=null)},[r]),null}function uC(e){var{legendPayload:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(T1(t)):o.current!==t&&r(j1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(M1(o.current)),o.current=null)},[r]),null}function MH(e){var{legendPayload:t}=e,r=Se(),n=J(ve),o=A.useRef(null);return A.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(T1(t)):o.current!==t&&r(j1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(M1(o.current)),o.current=null)},[r]),null}var pd,NH=()=>{var[e]=f.useState(()=>ei("uid-"));return e},IH=(pd=f.useId)!==null&&pd!==void 0?pd:NH;function kH(e,t){var r=IH();return t||(e?"".concat(e,"-").concat(r):r)}var RH=A.createContext(void 0),im=e=>{var{id:t,type:r,children:n}=e,o=kH("recharts-".concat(r),t);return f.createElement(RH.Provider,{value:o},n(o))},DH={cartesianItems:[],polarItems:[]},dC=xt({name:"graphicalItems",initialState:DH,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ce()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:Ce()},removeCartesianGraphicalItem:{reducer(e,t){var r=Bt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ce()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ce()},removePolarGraphicalItem:{reducer(e,t){var r=Bt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ce()}}}),{addCartesianGraphicalItem:$H,replaceCartesianGraphicalItem:LH,removeCartesianGraphicalItem:FH,addPolarGraphicalItem:zH,removePolarGraphicalItem:BH}=dC.actions,VH=dC.reducer,WH=e=>{var t=Se(),r=A.useRef(null);return A.useLayoutEffect(()=>{r.current===null?t($H(e)):r.current!==e&&t(LH({prev:r.current,next:e})),r.current=e},[t,e]),A.useLayoutEffect(()=>()=>{r.current&&(t(FH(r.current)),r.current=null)},[t]),null},fC=A.memo(WH);function KH(e){var t=Se();return A.useLayoutEffect(()=>(t(zH(e)),()=>{t(BH(e))}),[t,e]),null}var UH=["key"],HH=["onMouseEnter","onClick","onMouseLeave"],GH=["id"],qH=["id"];function Xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xx(Object(r),!0).forEach(function(n){YH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YH(e,t,r){return(t=XH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XH(e){var t=ZH(e,"string");return typeof t=="symbol"?t:t+""}function ZH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yr.apply(null,arguments)}function ac(e,t){if(e==null)return{};var r,n,o=JH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function JH(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function QH(e){var t=A.useMemo(()=>Qv(e.children,Hi),[e.children]),r=J(n=>sH(n,e.id,t));return r==null?null:f.createElement(MH,{legendPayload:r})}var e8=f.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:o,strokeWidth:i,fill:a,name:s,hide:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:n.map(p=>p.tooltipPayload),getPosition:p=>{var v;return(v=n[Number(p)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:r,name:Po(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return f.createElement(om,{tooltipEntrySettings:d})}),t8=(e,t)=>e>t?"start":e<t?"end":"middle",r8=(e,t,r)=>at(typeof t=="function"?t(e):t,r,r*.8),n8=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=L1(i,a),l=o+at(e.cx,i,i/2),c=n+at(e.cy,a,a/2),u=at(e.innerRadius,s,0),d=r8(r,e.outerRadius,s),p=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:p}},o8=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},i8=(e,t)=>{if(f.isValidElement(e))return f.cloneElement(e,t);if(typeof e=="function")return e(t);var r=de("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,o=ac(t,UH);return f.createElement(Dp,Yr({},o,{type:"linear",className:r}))},a8=(e,t,r)=>{if(f.isValidElement(e))return f.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),f.isValidElement(n)))return n;var o=de("recharts-pie-label-text",aC(e));return f.createElement(nc,Yr({},t,{alignmentBaseline:"middle",className:o}),n)};function s8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o,labelLine:i,dataKey:a}=r;if(!n||!o||!t)return null;var s=At(r),l=En(o),c=En(i),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,d=t.map((p,v)=>{var g=(p.startAngle+p.endAngle)/2,m=Re(p.cx,p.cy,p.outerRadius+u,g),h=Ie(Ie(Ie(Ie({},s),p),{},{stroke:"none"},l),{},{index:v,textAnchor:t8(m.x,p.cx)},m),b=Ie(Ie(Ie(Ie({},s),p),{},{fill:"none",stroke:p.fill},c),{},{index:v,points:[Re(p.cx,p.cy,p.outerRadius,g),m],key:"line"});return f.createElement(wt,{zIndex:De.label,key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},f.createElement(Xe,null,i&&i8(i,b),a8(o,h,be(p,a))))});return f.createElement(Xe,{className:"recharts-pie-labels"},d)}function l8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?f.createElement(Xv,{label:o}):f.createElement(s8,{sectors:t,props:r,showLabels:n})}function c8(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(qr),l=J(Vv),c=J(g6),{onMouseEnter:u,onClick:d,onMouseLeave:p}=o,v=ac(o,HH),g=tm(u,o.dataKey,a),m=rm(p),h=nm(d,o.dataKey,a);return t==null||t.length===0?null:f.createElement(f.Fragment,null,t.map((b,x)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var w=c==null||c===a,S=String(x)===s&&(l==null||o.dataKey===l)&&w,E=s?n:null,P=r&&S?r:E,O=Ie(Ie({},b),{},{stroke:b.stroke,tabIndex:-1,[v1]:x,[m1]:a});return f.createElement(Xe,Yr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),f.createElement(em,Yr({option:i??P,index:x,shapeType:"sector",isActive:S},O)))}))}function u8(e){var t,{pieSettings:r,displayedData:n,cells:o,offset:i}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=r,p=Math.abs(r.minAngle),v=o8(s,l),g=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(P=>be(P,c,0)!==0).length,b=(g>=360?h:h-1)*m,x=g-h*p-b,w=n.reduce((P,O)=>{var C=be(O,c,0);return P+(q(C)?C:0)},0),S;if(w>0){var E;S=n.map((P,O)=>{var C=be(P,c,0),M=be(P,u,O),$=n8(r,i,P),I=(q(C)?C:0)/w,_,j=Ie(Ie({},P),o&&o[O]&&o[O].props);O?_=E.endAngle+qe(v)*m*(C!==0?1:0):_=s;var R=_+qe(v)*((C!==0?p:0)+I*x),V=(_+R)/2,z=($.innerRadius+$.outerRadius)/2,W=[{name:M,value:C,payload:j,dataKey:c,type:d,graphicalItemId:r.id}],T=Re($.cx,$.cy,z,V);return E=Ie(Ie(Ie(Ie({},r.presentationProps),{},{percent:I,cornerRadius:typeof a=="string"?parseFloat(a):a,name:M,tooltipPayload:W,midAngle:V,middleRadius:z,tooltipPosition:T},j),$),{},{value:C,dataKey:c,startAngle:_,endAngle:R,payload:j,paddingAngle:qe(v)*m}),E})}return S}function d8(e){var{showLabels:t,sectors:r,children:n}=e,o=A.useMemo(()=>!t||!r?[]:r.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[r,t]);return f.createElement(KU,{value:t?o:void 0},n)}function f8(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:d,onAnimationEnd:p}=t,v=ki(t,"recharts-pie-"),g=r.current,[m,h]=A.useState(!1),b=A.useCallback(()=>{typeof p=="function"&&p(),h(!1)},[p]),x=A.useCallback(()=>{typeof d=="function"&&d(),h(!0)},[d]);return f.createElement(d8,{showLabels:!m,sectors:o},f.createElement(Ii,{animationId:v,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:b,key:v},w=>{var S,E=[],P=o&&o[0],O=(S=P?.startAngle)!==null&&S!==void 0?S:0;return o?.forEach((C,M)=>{var $=g&&g[M],I=M>0?Cn(C,"paddingAngle",0):0;if($){var _=Ae($.endAngle-$.startAngle,C.endAngle-C.startAngle,w),j=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+_+I});E.push(j),O=j.endAngle}else{var{endAngle:R,startAngle:V}=C,z=Ae(0,R-V,w),W=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+z+I});E.push(W),O=W.endAngle}}),r.current=E,f.createElement(Xe,null,f.createElement(c8,{sectors:E,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),f.createElement(l8,{showLabels:!m,sectors:o,props:t}),t.children)}var p8={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:De.area};function v8(e){var{id:t}=e,r=ac(e,GH),{hide:n,className:o,rootTabIndex:i}=e,a=A.useMemo(()=>Qv(e.children,Hi),[e.children]),s=J(u=>lH(u,t,a)),l=A.useRef(null),c=de("recharts-pie",o);return n||s==null?(l.current=null,f.createElement(Xe,{tabIndex:i,className:c})):f.createElement(wt,{zIndex:e.zIndex},f.createElement(e8,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),f.createElement(Xe,{tabIndex:i,className:c},f.createElement(f8,{props:Ie(Ie({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function pC(e){var t=Le(e,p8),{id:r}=t,n=ac(t,qH),o=At(n);return f.createElement(im,{id:r,type:"pie"},i=>f.createElement(f.Fragment,null,f.createElement(KH,{type:"pie",id:i,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),f.createElement(QH,Yr({},n,{id:i})),f.createElement(v8,Yr({},n,{id:i}))))}pC.displayName="Pie";var m8=["points"];function Zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zx(Object(r),!0).forEach(function(n){h8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h8(e,t,r){return(t=g8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g8(e){var t=y8(e,"string");return typeof t=="symbol"?t:t+""}function y8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ws.apply(null,arguments)}function b8(e,t){if(e==null)return{};var r,n,o=x8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function w8(e){var{option:t,dotProps:r,className:n}=e;if(A.isValidElement(t))return A.cloneElement(t,r);if(typeof t=="function")return t(r);var o=de(n,typeof t!="boolean"?t.className:""),i=r??{},{points:a}=i,s=b8(i,m8);return f.createElement(rC,Ws({},s,{className:o}))}function S8(e,t){return e==null?!1:t?!0:e.length===1}function P8(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=De.scatter}=e;if(!S8(t,r))return null;var u=cC(r),d=y2(r),p=t.map((g,m)=>{var h,b,x=vd(vd(vd({r:3},a),d),{},{index:m,cx:(h=g.x)!==null&&h!==void 0?h:void 0,cy:(b=g.y)!==null&&b!==void 0?b:void 0,dataKey:i,value:g.value,payload:g.payload,points:t});return f.createElement(w8,{key:"dot-".concat(m),option:r,dotProps:x,className:o})}),v={};return s&&l!=null&&(v.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),f.createElement(wt,{zIndex:c},f.createElement(Xe,Ws({className:n},v),p))}function Jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jx(Object(r),!0).forEach(function(n){E8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E8(e,t,r){return(t=O8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O8(e){var t=C8(e,"string");return typeof t=="symbol"?t:t+""}function C8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vC=0,A8={xAxis:{},yAxis:{},zAxis:{}},mC=xt({name:"cartesianAxis",initialState:A8,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ce()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ce()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ce()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ce()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ce()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ce()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ce()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ce()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ce()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,o=e.yAxis[r];if(o){var i,a=o.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==o.width&&Math.abs(n-((i=a[0])!==null&&i!==void 0?i:0))<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=Qx(Qx({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:_8,replaceXAxis:T8,removeXAxis:j8,addYAxis:M8,replaceYAxis:N8,removeYAxis:I8,addZAxis:ure,replaceZAxis:dre,removeZAxis:fre,updateYAxisWidth:k8}=mC.actions,R8=mC.reducer,D8=N([Ve],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),$8=N([D8,Tr,jr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),am=()=>J($8),L8=()=>J(S6);function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){F8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F8(e,t,r){return(t=z8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z8(e){var t=B8(e,"string");return typeof t=="symbol"?t:t+""}function B8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V8=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:o,dataKey:i,clipPath:a}=e;if(o===!1||t.x==null||t.y==null)return null;var s={index:r,dataKey:i,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=md(md(md({},s),En(o)),yp(o)),c;return A.isValidElement(o)?c=A.cloneElement(o,l):typeof o=="function"?c=o(l):c=f.createElement(rC,l),f.createElement(Xe,{className:"recharts-active-dot",clipPath:a},c)};function W8(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=De.activeDot}=e,s=J(qr),l=L8();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return Te(c)?null:f.createElement(wt,{zIndex:a},f.createElement(V8,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var tw=(e,t,r)=>{var n=r??e;if(!Te(n))return at(n,t,0)},K8=(e,t,r)=>{var n={},o=e.filter(ql),i=e.filter(c=>c.stackId==null),a=o.reduce((c,u)=>{var d=c[u.stackId];return d==null&&(d=[]),d.push(u),c[u.stackId]=d,c},n),s=Object.entries(a).map(c=>{var u,[d,p]=c,v=p.map(m=>m.dataKey),g=tw(t,r,(u=p[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:v,barSize:g}}),l=i.map(c=>{var u=[c.dataKey].filter(p=>p!=null),d=tw(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ka(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){U8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U8(e,t,r){return(t=H8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H8(e){var t=G8(e,"string");return typeof t=="symbol"?t:t+""}function G8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function q8(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=at(e,r,0,!0),l,c=[];if(ce((i=n[0])===null||i===void 0?void 0:i.barSize)){var u=!1,d=r/a,p=n.reduce((x,w)=>x+(w.barSize||0),0);p+=(a-1)*s,p>=r&&(p-=(a-1)*s,s=0),p>=r&&d>0&&(u=!0,d*=.9,p=a*d);var v=(r-p)/2>>0,g={offset:v-s,size:0};l=n.reduce((x,w)=>{var S,E={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:g.offset+g.size+s,size:u?d:(S=w.barSize)!==null&&S!==void 0?S:0}},P=[...x,E];return g=E.position,P},c)}else{var m=at(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var h=(r-2*m-(a-1)*s)/a;h>1&&(h>>=0);var b=ce(o)?Math.min(h,o):h;l=n.reduce((x,w,S)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+s)*S+(h-b)/2,size:b}}],c)}return l}}var Y8=(e,t,r,n,o,i,a)=>{var s=Te(a)?t:a,l=q8(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>ka(ka({},c),{},{position:ka(ka({},c.position),{},{offset:c.position.offset-o/2})}))),l},X8=(e,t)=>{var r=mv(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var o=e[n];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===r)}}}},Z8=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function J8(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ce(e.zIndex)?e.zIndex:t}var hC=e=>{var{chartData:t}=e,r=Se(),n=ct();return A.useEffect(()=>n?()=>{}:(r(sx(t)),()=>{r(sx(void 0))}),[t,r,n]),null},nw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},gC=xt({name:"brush",initialState:nw,reducers:{setBrushSettings(e,t){return t.payload==null?nw:t.payload}}}),{setBrushSettings:pre}=gC.actions,Q8=gC.reducer;function eG(e){return(e%180+180)%180}var tG=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=eG(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(l)},rG={dots:[],areas:[],lines:[]},yC=xt({name:"referenceElements",initialState:rG,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Bt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Bt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Bt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:vre,removeDot:mre,addArea:hre,removeArea:gre,addLine:yre,removeLine:bre}=yC.actions,nG=yC.reducer,oG=A.createContext(void 0),iG=e=>{var{children:t}=e,[r]=A.useState("".concat(ei("recharts"),"-clip")),n=am();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return f.createElement(oG.Provider,{value:r},f.createElement("defs",null,f.createElement("clipPath",{id:r},f.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function bC(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var o=e[n];o!==void 0&&r.push(o)}return r}function aG(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return tG(n,r)}function sG(e,t,r){var n=r==="width",{x:o,y:i,width:a,height:s}=e;return t===1?{start:n?o:i,end:n?o+a:i+s}:{start:n?o+a:i+s,end:n?o:i}}function vi(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function lG(e,t){return bC(e,t+1)}function cG(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var g=n?.[l];if(g===void 0)return{v:bC(n,c)};var m=l,h,b=()=>(h===void 0&&(h=r(g,m)),h),x=g.coordinate,w=l===0||vi(e,x,b,u,s);w||(l=0,u=a,c+=1),w&&(u=x+e*(b()/2+o),l+=c)},p;c<=i.length;)if(p=d(),p)return p.v;return[]}function uG(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var u=(a-1)%c,d=s,p=!0,v=function(){var S=n[m];if(S==null)return 0;var E=m,P,O=()=>(P===void 0&&(P=r(S,E)),P),C=S.coordinate,M=m===u||vi(e,C,O,d,l);if(!M)return p=!1,1;M&&(d=C+e*(O()/2+o))},g,m=u;m<a&&(g=v(),!(g!==0&&g===1));m+=c);if(p){for(var h=[],b=u;b<a;b+=c){var x=n[b];x!=null&&h.push(x)}return h}}return[]}function ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(r),!0).forEach(function(n){dG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dG(e,t,r){return(t=fG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fG(e){var t=pG(e,"string");return typeof t=="symbol"?t:t+""}function pG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vG(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(p){var v=i[p];if(v==null)return 1;var g=v,m,h=()=>(m===void 0&&(m=r(v,p)),m);if(p===a-1){var b=e*(g.coordinate+e*h()/2-l);i[p]=g=ot(ot({},g),{},{tickCoord:b>0?g.coordinate-b*e:g.coordinate})}else i[p]=g=ot(ot({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var x=vi(e,g.tickCoord,h,s,l);x&&(l=g.tickCoord-e*(h()/2+o),i[p]=ot(ot({},g),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function mG(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=n[s-1];if(u!=null){var d=r(u,s-1),p=e*(u.coordinate+e*d/2-c);if(a[s-1]=u=ot(ot({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),u.tickCoord!=null){var v=vi(e,u.tickCoord,()=>d,l,c);v&&(c=u.tickCoord-e*(d/2+o),a[s-1]=ot(ot({},u),{},{isShow:!0}))}}}for(var g=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var S=w,E,P=()=>(E===void 0&&(E=r(w,x)),E);if(x===0){var O=e*(S.coordinate-e*P()/2-l);a[x]=S=ot(ot({},S),{},{tickCoord:O<0?S.coordinate-O*e:S.coordinate})}else a[x]=S=ot(ot({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var C=vi(e,S.tickCoord,P,l,c);C&&(l=S.tickCoord+e*(P()/2+o),a[x]=ot(ot({},S),{},{isShow:!0}))}},h=0;h<g;h++)m(h);return a}function sm(e,t,r){var{tick:n,ticks:o,viewBox:i,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!o||!o.length||!n)return[];if(q(l)||$l.isSsr){var p;return(p=lG(o,q(l)?l:0))!==null&&p!==void 0?p:[]}var v=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?Qo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(E,P)=>{var O=typeof c=="function"?c(E.value,P):E.value;return g==="width"?aG(Qo(O,{fontSize:t,letterSpacing:r}),m,d):Qo(O,{fontSize:t,letterSpacing:r})[g]},b=o[0],x=o[1],w=o.length>=2&&b!=null&&x!=null?qe(x.coordinate-b.coordinate):1,S=sG(i,w,g);return l==="equidistantPreserveStart"?cG(w,S,h,o,a):l==="equidistantPreserveEnd"?uG(w,S,h,o,a):(l==="preserveStart"||l==="preserveStartEnd"?v=mG(w,S,h,o,a,l==="preserveStartEnd"):v=vG(w,S,h,o,a),v.filter(E=>E.isShow))}var hG=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>a&&(a=d.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0},gG=["axisLine","width","height","className","hide","ticks","axisType"];function yG(e,t){if(e==null)return{};var r,n,o=bG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function bG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nn.apply(null,arguments)}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(n){xG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xG(e,t,r){return(t=wG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wG(e){var t=SG(e,"string");return typeof t=="symbol"?t:t+""}function SG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:De.axis};function PG(e){var{x:t,y:r,width:n,height:o,orientation:i,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Me(Me(Me({},l),At(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Me(Me({},c),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var d=+(i==="left"&&!a||i==="right"&&a);c=Me(Me({},c),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+o})}return f.createElement("line",Nn({},c,{className:de("recharts-cartesian-axis-line",Cn(s,"className"))}))}function EG(e,t,r,n,o,i,a,s,l){var c,u,d,p,v,g,m=s?-1:1,h=e.tickSize||a,b=q(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,p=r+ +!s*o,d=p-m*h,g=d-m*l,v=b;break;case"left":d=p=e.coordinate,u=t+ +!s*n,c=u-m*h,v=c-m*l,g=b;break;case"right":d=p=e.coordinate,u=t+ +s*n,c=u+m*h,v=c+m*l,g=b;break;default:c=u=e.coordinate,p=r+ +s*o,d=p+m*h,g=d+m*l,v=b;break}return{line:{x1:c,y1:d,x2:u,y2:p},tick:{x:v,y:g}}}function OG(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function CG(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function AG(e){var{option:t,tickProps:r,value:n}=e,o,i=de(r.className,"recharts-cartesian-axis-tick-value");if(f.isValidElement(t))o=f.cloneElement(t,Me(Me({},r),{},{className:i}));else if(typeof t=="function")o=t(Me(Me({},r),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=de(a,aC(t))),o=f.createElement(nc,Nn({},r,{className:a}),n)}return o}var _G=A.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:u,mirror:d,x:p,y:v,width:g,height:m,tickSize:h,tickMargin:b,fontSize:x,letterSpacing:w,getTicksConfig:S,events:E,axisType:P}=e,O=sm(Me(Me({},S),{},{ticks:r}),x,w),C=OG(u,d),M=CG(u,d),$=At(S),I=En(n),_={};typeof o=="object"&&(_=o);var j=Me(Me({},$),{},{fill:"none"},_),R=O.map(W=>Me({entry:W},EG(W,p,v,g,m,u,h,d,b))),V=R.map(W=>{var{entry:T,line:k}=W;return f.createElement(Xe,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},o&&f.createElement("line",Nn({},j,k,{className:de("recharts-cartesian-axis-tick-line",Cn(o,"className"))})))}),z=R.map((W,T)=>{var k,G,{entry:ee,tick:ne}=W,ie=Me(Me(Me(Me({verticalAnchor:M},$),{},{textAnchor:C,stroke:"none",fill:i},ne),{},{index:T,payload:ee,visibleTicksCount:O.length,tickFormatter:a,padding:l},c),{},{angle:(k=(G=c?.angle)!==null&&G!==void 0?G:$.angle)!==null&&k!==void 0?k:0}),oe=Me(Me({},ie),I);return f.createElement(Xe,Nn({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ee.value,"-").concat(ee.coordinate,"-").concat(ee.tickCoord)},Oi(E,ee,T)),n&&f.createElement(AG,{option:n,tickProps:oe,value:"".concat(typeof a=="function"?a(ee.value,T):ee.value).concat(s||"")}))});return f.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(P,"-ticks")},z.length>0&&f.createElement(wt,{zIndex:De.label},f.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(P,"-tick-labels"),ref:t},z)),V.length>0&&f.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(P,"-tick-lines")},V))}),TG=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=yG(e,gG),[u,d]=A.useState(""),[p,v]=A.useState(""),g=A.useRef(null);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return hG({ticks:g.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=A.useCallback(h=>{if(h){var b=h.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=b;var x=b[0];if(x){var w=window.getComputedStyle(x),S=w.fontSize,E=w.letterSpacing;(S!==u||E!==p)&&(d(S),v(E))}}},[u,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:f.createElement(wt,{zIndex:e.zIndex},f.createElement(Xe,{className:de("recharts-cartesian-axis",i)},f.createElement(PG,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:At(e)}),f.createElement(_G,{ref:m,axisType:l,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y}),f.createElement(PU,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},f.createElement(IU,{label:e.label,labelRef:e.labelRef}),e.children)))}),lm=f.forwardRef((e,t)=>{var r=Le(e,gr);return f.createElement(TG,Nn({},r,{ref:t}))});lm.displayName="CartesianAxis";var jG=["x1","y1","x2","y2","key"],MG=["offset"],NG=["xAxisId","yAxisId"],IG=["xAxisId","yAxisId"];function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){kG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kG(e,t,r){return(t=RG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RG(e){var t=DG(e,"string");return typeof t=="symbol"?t:t+""}function DG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gn.apply(null,arguments)}function Ks(e,t){if(e==null)return{};var r,n,o=$G(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $G(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var LG=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:o,width:i,height:a,ry:s}=e;return f.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xC(e){var{option:t,lineItemProps:r}=e,n;if(f.isValidElement(t))n=f.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var o,{x1:i,y1:a,x2:s,y2:l,key:c}=r,u=Ks(r,jG),d=(o=At(u))!==null&&o!==void 0?o:{},{offset:p}=d,v=Ks(d,MG);n=f.createElement("line",gn({},v,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function FG(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Ks(e,NG),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return f.createElement(xC,{key:"line-".concat(u),option:n,lineItemProps:d})});return f.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function zG(e){var{y:t,height:r,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Ks(e,IG),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return f.createElement(xC,{option:n,lineItemProps:d,key:"line-".concat(u)})});return f.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function BG(e){var{horizontalFill:t,fillOpacity:r,x:n,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var c=s.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%t.length;return f.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:m,width:i,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function VG(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%r.length;return f.createElement("rect",{key:"react-".concat(p),x:d,y:i,width:m,height:s,stroke:"none",fill:r[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var WG=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return d1(sm(it(it(it({},gr),r),{},{ticks:f1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},KG=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return d1(sm(it(it(it({},gr),r),{},{ticks:f1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},UG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:De.grid};function cm(e){var t=Np(),r=Ip(),n=b1(),o=it(it({},Le(e,UG)),{},{x:q(e.x)?e.x:n.left,y:q(e.y)?e.y:n.top,width:q(e.width)?e.width:n.width,height:q(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:p,verticalValues:v}=o,g=ct(),m=J(M=>Yb(M,"xAxis",i,g)),h=J(M=>Yb(M,"yAxis",a,g));if(!ar(c)||!ar(u)||!q(s)||!q(l))return null;var b=o.verticalCoordinatesGenerator||WG,x=o.horizontalCoordinatesGenerator||KG,{horizontalPoints:w,verticalPoints:S}=o;if((!w||!w.length)&&typeof x=="function"){var E=p&&p.length,P=x({yAxis:h?it(it({},h),{},{ticks:E?p:h.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);hs(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&typeof b=="function"){var O=v&&v.length,C=b({xAxis:m?it(it({},m),{},{ticks:O?v:m.ticks}):void 0,width:t??c,height:r??u,offset:n},O?!0:d);hs(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(S=C)}return f.createElement(wt,{zIndex:o.zIndex},f.createElement("g",{className:"recharts-cartesian-grid"},f.createElement(LG,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),f.createElement(BG,gn({},o,{horizontalPoints:w})),f.createElement(VG,gn({},o,{verticalPoints:S})),f.createElement(FG,gn({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),f.createElement(zG,gn({},o,{offset:n,verticalPoints:S,xAxis:m,yAxis:h}))))}cm.displayName="CartesianGrid";var HG={},wC=xt({name:"errorBars",initialState:HG,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:xre,replaceErrorBar:wre,removeErrorBar:Sre}=wC.actions,GG=wC.reducer,qG=["children"];function YG(e,t){if(e==null)return{};var r,n,o=XG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function XG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ZG={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},JG=A.createContext(ZG);function SC(e){var{children:t}=e,r=YG(e,qG);return f.createElement(JG.Provider,{value:r},t)}function um(e,t){var r,n,o=J(c=>Ir(c,e)),i=J(c=>kr(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ue.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:He.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function PC(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=am(),{needClipX:i,needClipY:a,needClip:s}=um(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:d}=o;return f.createElement("clipPath",{id:"clipPath-".concat(n)},f.createElement("rect",{x:i?l:l-u/2,y:a?c:c-d/2,width:i?u:u*2,height:a?d:d*2}))}var EC=(e,t,r,n)=>Gr(e,"xAxis",t,n),OC=(e,t,r,n)=>Hr(e,"xAxis",t,n),CC=(e,t,r,n)=>Gr(e,"yAxis",r,n),AC=(e,t,r,n)=>Hr(e,"yAxis",r,n),QG=N([ve,EC,CC,OC,AC],(e,t,r,n,o)=>_r(e,"xAxis")?co(t,n,!1):co(r,o,!1)),eq=(e,t,r,n,o)=>o;function tq(e){return e.type==="line"}var rq=N([Zl,eq],(e,t)=>e.filter(tq).find(r=>r.id===t)),nq=N([ve,EC,CC,OC,AC,rq,QG,av],(e,t,r,n,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(i==null||t==null||r==null||n==null||o==null||n.length===0||o.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:d,data:p}=i,v;if(p!=null&&p.length>0?v=p:v=l?.slice(c,u+1),v!=null)return Uq({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:v})}});function oq(e){var t=En(e),r=3,n=2;if(t!=null){var{r:o,strokeWidth:i}=t,a=Number(o),s=Number(i);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(s)||s<0)&&(s=n),{r:a,strokeWidth:s}}return{r,strokeWidth:n}}var Ra={exports:{}},hd={};var sw;function iq(){if(sw)return hd;sw=1;var e=A;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return hd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},hd}var gd={};var lw;function aq(){return lw||(lw=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,s=t.useDebugValue;gd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),gd}var cw;function sq(){return cw||(cw=1,process.env.NODE_ENV==="production"?Ra.exports=iq():Ra.exports=aq()),Ra.exports}sq();function lq(e){e()}function cq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){lq(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var uw={notify(){},get:()=>[]};function uq(e,t){let r,n=uw,o=0,i=!1;function a(m){u();const h=n.subscribe(m);let b=!1;return()=>{b||(b=!0,h(),d())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return i}function u(){o++,r||(r=e.subscribe(l),n=cq())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=uw)}function p(){i||(i=!0,u())}function v(){i&&(i=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>n};return g}var dq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fq=dq(),pq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",vq=pq(),mq=()=>fq||vq?f.useLayoutEffect:f.useEffect,hq=mq();function dw(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function gq(e,t){if(dw(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!dw(e[r[o]],t[r[o]]))return!1;return!0}var yq=Symbol.for("react-redux-context"),bq=typeof globalThis<"u"?globalThis:{};function xq(){if(!f.createContext)return{};const e=bq[yq]??=new Map;let t=e.get(f.createContext);return t||(t=f.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(f.createContext,t)),t}var wq=xq();function Sq(e){const{children:t,context:r,serverState:n,store:o}=e,i=f.useMemo(()=>{const l=uq(o),c={store:o,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:u})}},[o,n]),a=f.useMemo(()=>o.getState(),[o]);hq(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=r||wq;return f.createElement(s.Provider,{value:i},t)}var Pq=Sq,Eq=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function Oq(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function sc(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Eq.has(n)){if(e[n]==null&&t[n]==null)continue;if(!gq(e[n],t[n]))return!1}else if(!Oq(e[n],t[n]))return!1;return!0}var Cq=["id"],Aq=["type","layout","connectNulls","needClip","shape"],_q=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mi.apply(null,arguments)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){Tq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tq(e,t,r){return(t=jq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jq(e){var t=Mq(e,"string");return typeof t=="symbol"?t:t+""}function Mq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dm(e,t){if(e==null)return{};var r,n,o=Nq(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Nq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Iq=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Po(r,t),payload:e}]},kq=f.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:o,fill:i,name:a,hide:s,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:Fn,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:Po(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return f.createElement(om,{tooltipEntrySettings:d})}),_C=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function Rq(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o<t;++o)n=[...n,...r];return n}var Dq=(e,t,r)=>{var n=r.reduce((v,g)=>v+g);if(!n)return _C(t,e);for(var o=Math.floor(e/n),i=e%n,a=t-e,s=[],l=0,c=0;l<r.length;c+=(u=r[l])!==null&&u!==void 0?u:0,++l){var u,d=r[l];if(d!=null&&c+d>i){s=[...r.slice(0,l),i-c];break}}var p=s.length%2===0?[0,a]:[a];return[...Rq(r,o),...s,...p].map(v=>"".concat(v,"px")).join(", ")};function $q(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=dm(n,Cq),c=At(l);return f.createElement(P8,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function Lq(e){var{showLabels:t,children:r,points:n}=e,o=A.useMemo(()=>n?.map(i=>{var a,s,l={x:(a=i.x)!==null&&a!==void 0?a:0,y:(s=i.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Zt(Zt({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return f.createElement(eC,{value:t?o:void 0},r)}function pw(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:o,props:i}=e,{type:a,layout:s,connectNulls:l,needClip:c,shape:u}=i,d=dm(i,Aq),p=Zt(Zt({},mt(d)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:s,connectNulls:l,strokeDasharray:o??i.strokeDasharray});return f.createElement(f.Fragment,null,n?.length>1&&f.createElement(em,mi({shapeType:"curve",option:u},p,{pathRef:r})),f.createElement($q,{points:n,clipPathId:t,props:i}))}function Fq(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function zq(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:o,longestAnimatedLengthRef:i}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:p,width:v,height:g,onAnimationEnd:m,onAnimationStart:h}=r,b=o.current,x=ki(a,"recharts-line-"),w=A.useRef(x),[S,E]=A.useState(!1),P=!S,O=A.useCallback(()=>{typeof m=="function"&&m(),E(!1)},[m]),C=A.useCallback(()=>{typeof h=="function"&&h(),E(!0)},[h]),M=Fq(n.current),$=A.useRef(0);w.current!==x&&($.current=i.current,w.current=x);var I=$.current;return f.createElement(Lq,{points:a,showLabels:P},r.children,f.createElement(Ii,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:O,onAnimationStart:C,key:x},_=>{var j=Ae(I,M+I,_),R=Math.min(j,M),V;if(l)if(s){var z="".concat(s).split(/[,\s]+/gim).map(k=>parseFloat(k));V=Dq(R,M,z)}else V=_C(M,R);else V=s==null?void 0:String(s);if(_>0&&M>0&&(o.current=a,i.current=Math.max(i.current,R)),b){var W=b.length/a.length,T=_===1?a:a.map((k,G)=>{var ee=Math.floor(G*W);if(b[ee]){var ne=b[ee];return Zt(Zt({},k),{},{x:Ae(ne.x,k.x,_),y:Ae(ne.y,k.y,_)})}return p?Zt(Zt({},k),{},{x:Ae(v*2,k.x,_),y:Ae(g/2,k.y,_)}):Zt(Zt({},k),{},{x:k.x,y:k.y})});return o.current=T,f.createElement(pw,{props:r,points:T,clipPathId:t,pathRef:n,strokeDasharray:V})}return f.createElement(pw,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:V})}),f.createElement(Xv,{label:r.label}))}function Bq(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),o=A.useRef(0),i=A.useRef(null);return f.createElement(zq,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var Vq=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:be(e.payload,t)}};class Wq extends A.Component{render(){var{hide:t,dot:r,points:n,className:o,xAxisId:i,yAxisId:a,top:s,left:l,width:c,height:u,id:d,needClip:p,zIndex:v}=this.props;if(t)return null;var g=de("recharts-line",o),m=d,{r:h,strokeWidth:b}=oq(r),x=cC(r),w=h*2+b,S=p?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return f.createElement(wt,{zIndex:v},f.createElement(Xe,{className:g},p&&f.createElement("defs",null,f.createElement(PC,{clipPathId:m,xAxisId:i,yAxisId:a}),!x&&f.createElement("clipPath",{id:"clipPath-dots-".concat(m)},f.createElement("rect",{x:l-w/2,y:s-w/2,width:c+w,height:u+w}))),f.createElement(SC,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:Vq,errorBarOffset:0},f.createElement(Bq,{props:this.props,clipPathId:m}))),f.createElement(W8,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var TC={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:De.line,type:"linear"};function Kq(e){var t=Le(e,TC),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:p,xAxisId:v,yAxisId:g,id:m}=t,h=dm(t,_q),{needClip:b}=um(v,g),x=am(),w=zn(),S=ct(),E=J($=>nq($,v,g,S,m));if(w!=="horizontal"&&w!=="vertical"||E==null||x==null)return null;var{height:P,width:O,x:C,y:M}=x;return f.createElement(Wq,mi({},h,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:p,xAxisId:v,yAxisId:g,points:E,layout:w,height:P,width:O,left:C,top:M,needClip:b}))}function Uq(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var d=be(c,a);if(t==="horizontal"){var p=Hg({axis:r,ticks:o,bandSize:s,entry:c,index:u}),v=Te(d)?null:n.scale.map(d);return{x:p,y:v??null,value:d,payload:c}}var g=Te(d)?null:r.scale.map(d),m=Hg({axis:n,ticks:i,bandSize:s,entry:c,index:u});return g==null||m==null?null:{x:g,y:m,value:d,payload:c}}).filter(Boolean)}function Hq(e){var t=Le(e,TC),r=ct();return f.createElement(im,{id:t.id,type:"line"},n=>f.createElement(f.Fragment,null,f.createElement(uC,{legendPayload:Iq(t)}),f.createElement(kq,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),f.createElement(fC,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),f.createElement(Kq,mi({},t,{id:n}))))}var jC=f.memo(Hq,sc);jC.displayName="Line";function Wn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:vC}function Kn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:vC}var Gq=process.env.NODE_ENV==="production",yd="Invariant failed";function qq(e,t){if(Gq)throw new Error(yd);var r=typeof t=="function"?t():t,n=r?"".concat(yd,": ").concat(r):yd;throw new Error(n)}function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(null,arguments)}function Us(e){return f.createElement(em,Sf({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var Yq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(q(t))return t;var i=q(n)||Te(n);return i?t(n,o):(i||qq(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},Xq=(e,t,r)=>r,Zq=(e,t)=>t,Gi=N([Zl,Zq],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),Jq=N([Gi],e=>e?.maxBarSize),Qq=(e,t,r,n)=>n,e9=N([ve,Zl,Wn,Kn,Xq],(e,t,r,n,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===r:i.yAxisId===n).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),t9=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null))return n==="horizontal"?mf(e,"yAxis",i,r):mf(e,"xAxis",o,r)},r9=(e,t)=>{var r=ve(e),n=Wn(e,t),o=Kn(e,t);if(!(n==null||o==null))return r==="horizontal"?qb(e,"xAxis",n):qb(e,"yAxis",o)},n9=N([e9,g4,r9],K8),o9=(e,t,r)=>{var n,o,i=Gi(e,t);if(i==null)return 0;var a=Wn(e,t),s=Kn(e,t);if(a==null||s==null)return 0;var l=ve(e),c=IE(e),{maxBarSize:u}=i,d=Te(u)?c:u,p,v;return l==="horizontal"?(p=Gr(e,"xAxis",a,r),v=Hr(e,"xAxis",a,r)):(p=Gr(e,"yAxis",s,r),v=Hr(e,"yAxis",s,r)),(n=(o=co(p,v,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},MC=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=Gr(e,"xAxis",o,r),s=Hr(e,"xAxis",o,r)):(a=Gr(e,"yAxis",i,r),s=Hr(e,"yAxis",i,r)),co(a,s)}},i9=N([n9,IE,h4,kE,o9,MC,Jq],Y8),a9=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Gr(e,"xAxis",n,r)},s9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Gr(e,"yAxis",n,r)},l9=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Hr(e,"xAxis",n,r)},c9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Hr(e,"yAxis",n,r)},u9=N([i9,Gi],Z8),d9=N([t9,Gi],X8),f9=N([Ve,_p,a9,s9,l9,c9,u9,ve,l4,MC,d9,Gi,Qq],(e,t,r,n,o,i,a,s,l,c,u,d,p)=>{var{chartData:v,dataStartIndex:g,dataEndIndex:m}=l;if(!(d==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||o==null||i==null||c==null)){var{data:h}=d,b;if(h!=null&&h.length>0?b=h:b=v?.slice(g,m+1),b!=null)return z9({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:b,offset:e,cells:p,dataStartIndex:g})}}),p9=["index"];function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pf.apply(null,arguments)}function v9(e,t){if(e==null)return{};var r,n,o=m9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var NC=A.createContext(void 0),h9=e=>{var t=A.useContext(NC);if(t!=null)return t.stackId;if(e!=null)return tz(e)},g9=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),y9=e=>{var t=A.useContext(NC);if(t!=null){var{stackId:r}=t;return"url(#".concat(g9(r,e),")")}},IC=e=>{var{index:t}=e,r=v9(e,p9),n=y9(t);return f.createElement(Xe,Pf({className:"recharts-bar-stack-layer",clipPath:n},r))},b9=["onMouseEnter","onMouseLeave","onClick"],x9=["value","background","tooltipPosition"],w9=["id"],S9=["onMouseEnter","onClick","onMouseLeave"];function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Er.apply(null,arguments)}function vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(r),!0).forEach(function(n){P9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P9(e,t,r){return(t=E9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E9(e){var t=O9(e,"string");return typeof t=="symbol"?t:t+""}function O9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hs(e,t){if(e==null)return{};var r,n,o=C9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function C9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var A9=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Po(r,t),payload:e}]},_9=f.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:Fn,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:Po(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return f.createElement(om,{tooltipEntrySettings:u})});function T9(e){var t=J(qr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Hs(i,b9),u=tm(a,n,i.id),d=rm(s),p=nm(l,n,i.id);if(!o||r==null)return null;var v=En(o);return f.createElement(wt,{zIndex:J8(o,De.barBackground)},r.map((g,m)=>{var{value:h,background:b,tooltipPosition:x}=g,w=Hs(g,x9);if(!b)return null;var S=u(g,m),E=d(g,m),P=p(g,m),O=ft(ft(ft(ft(ft({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},b),v),Oi(c,g,m)),{},{onMouseEnter:S,onMouseLeave:E,onClick:P,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return f.createElement(Us,Er({key:"background-bar-".concat(m)},O))}))}function j9(e){var{showLabels:t,children:r,rects:n}=e,o=n?.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return ft(ft({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return f.createElement(eC,{value:t?o:void 0},r)}function M9(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(qr),l=J(Vv),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?f.createElement(wt,{zIndex:De.activeBar},f.createElement(IC,{index:i},f.createElement(Us,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):f.createElement(Us,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function N9(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return f.createElement(Us,Er({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function I9(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Hs(o,w9),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:p}=n,v=Hs(n,S9),g=tm(u,l,i),m=rm(p),h=nm(d,l,i);return r?f.createElement(f.Fragment,null,r.map((b,x)=>f.createElement(IC,Er({index:x,key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(x),className:"recharts-bar-rectangle"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),c?f.createElement(M9,{shape:s,activeBar:c,baseProps:a,entry:b,index:x,dataKey:l}):f.createElement(N9,{shape:s,baseProps:a,entry:b,index:x,dataKey:l})))):null}function k9(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=r.current,p=ki(t,"recharts-bar-"),[v,g]=A.useState(!1),m=!v,h=A.useCallback(()=>{typeof c=="function"&&c(),g(!1)},[c]),b=A.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return f.createElement(j9,{showLabels:m,rects:n},f.createElement(Ii,{animationId:p,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:h,onAnimationStart:b,key:p},x=>{var w=x===1?n:n?.map((S,E)=>{var P=d&&d[E];if(P)return ft(ft({},S),{},{x:Ae(P.x,S.x,x),y:Ae(P.y,S.y,x),width:Ae(P.width,S.width,x),height:Ae(P.height,S.height,x)});if(o==="horizontal"){var O=Ae(0,S.height,x),C=Ae(S.stackedBarStart,S.y,x);return ft(ft({},S),{},{y:C,height:O})}var M=Ae(0,S.width,x),$=Ae(S.stackedBarStart,S.x,x);return ft(ft({},S),{},{width:M,x:$})});return x>0&&(r.current=w??null),w==null?null:f.createElement(Xe,null,f.createElement(I9,{props:t,data:w}))}),f.createElement(Xv,{label:t.label}),t.children)}function R9(e){var t=A.useRef(null);return f.createElement(k9,{previousRectanglesRef:t,props:e})}var kC=0,D9=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:be(e,t)}};class $9 extends A.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=de("recharts-bar",o),d=c;return f.createElement(Xe,{className:u,id:c},s&&f.createElement("defs",null,f.createElement(PC,{clipPathId:d,xAxisId:i,yAxisId:a})),f.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},f.createElement(T9,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),f.createElement(R9,this.props)))}}var L9={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:kC,xAxisId:0,yAxisId:0,zIndex:De.bar};function F9(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=um(t,r),p=zn(),v=ct(),g=Qv(e.children,Hi),m=J(x=>f9(x,e.id,v,g));if(p!=="vertical"&&p!=="horizontal")return null;var h,b=m?.[0];return b==null||b.height==null||b.width==null?h=0:h=p==="vertical"?b.height/2:b.width/2,f.createElement(SC,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:D9,errorBarOffset:h},f.createElement($9,Er({},e,{layout:p,needClip:d,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function z9(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:o,bandSize:i,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:v,parentViewBox:g,dataStartIndex:m}=e,h=t==="horizontal"?s:a,b=u?h.scale.domain():null,x=rz({numericAxis:h}),w=h.scale.map(x);return d.map((S,E)=>{var P,O,C,M,$,I;if(u){var _=u[E+m];if(_==null)return null;P=XF(_,b)}else P=be(S,r),Array.isArray(P)||(P=[x,P]);var j=Yq(n,kC)(P[1],E);if(t==="horizontal"){var R,V=s.scale.map(P[0]),z=s.scale.map(P[1]);if(V==null||z==null)return null;O=Gg({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:S,index:E}),C=(R=z??V)!==null&&R!==void 0?R:void 0,M=o.size;var W=V-z;if($=or(W)?0:W,I={x:O,y:p.top,width:M,height:p.height},Math.abs(j)>0&&Math.abs($)<Math.abs(j)){var T=qe($||j)*(Math.abs(j)-Math.abs($));C-=T,$+=T}}else{var k=a.scale.map(P[0]),G=a.scale.map(P[1]);if(k==null||G==null)return null;if(O=k,C=Gg({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:S,index:E}),M=G-k,$=o.size,I={x:p.left,y:C,width:p.width,height:$},Math.abs(j)>0&&Math.abs(M)<Math.abs(j)){var ee=qe(M||j)*(Math.abs(j)-Math.abs(M));M+=ee}}if(O==null||C==null||M==null||$==null)return null;var ne=ft(ft({},S),{},{stackedBarStart:w,x:O,y:C,width:M,height:$,value:u?P:P[1],payload:S,background:I,tooltipPosition:{x:O+M/2,y:C+$/2},parentViewBox:g},v&&v[E]&&v[E].props);return ne}).filter(Boolean)}function B9(e){var t=Le(e,L9),r=h9(t.stackId),n=ct();return f.createElement(im,{id:t.id,type:"bar"},o=>f.createElement(f.Fragment,null,f.createElement(uC,{legendPayload:A9(t)}),f.createElement(_9,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),f.createElement(fC,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),f.createElement(wt,{zIndex:t.zIndex},f.createElement(F9,Er({},t,{id:o})))))}var RC=f.memo(B9,sc);RC.displayName="Bar";var V9=["domain","range"],W9=["domain","range"];function mw(e,t){if(e==null)return{};var r,n,o=K9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function K9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function hw(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function DC(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=mw(e,V9),{domain:i,range:a}=t,s=mw(t,W9);return!hw(r,i)||!hw(n,a)?!1:sc(o,s)}var U9=["type"],H9=["dangerouslySetInnerHTML","ticks","scale"],G9=["id","scale"];function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(null,arguments)}function gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gw(Object(r),!0).forEach(function(n){q9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q9(e,t,r){return(t=Y9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y9(e){var t=X9(e,"string");return typeof t=="symbol"?t:t+""}function X9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Of(e,t){if(e==null)return{};var r,n,o=Z9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Z9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function J9(e){var t=Se(),r=A.useRef(null),n=x1(),{type:o}=e,i=Of(e,U9),a=Hl(n,"xAxis",o),s=A.useMemo(()=>{if(a!=null)return yw(yw({},i),{},{type:a})},[i,a]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(_8(s)):r.current!==s&&t(T8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(j8(r.current)),r.current=null)},[t]),null}var Q9=e=>{var{xAxisId:t,className:r}=e,n=J(_p),o=ct(),i="xAxis",a=J(b=>pO(b,i,t,o)),s=J(b=>cO(b,t)),l=J(b=>gW(b,t)),c=J(b=>KE(b,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:p}=e,v=Of(e,H9),{id:g,scale:m}=c,h=Of(c,G9);return f.createElement(lm,Ef({},v,h,{x:l.x,y:l.y,width:s.width,height:s.height,className:de("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i}))},e7={allowDataOverflow:Ue.allowDataOverflow,allowDecimals:Ue.allowDecimals,allowDuplicatedCategory:Ue.allowDuplicatedCategory,angle:Ue.angle,axisLine:gr.axisLine,height:Ue.height,hide:!1,includeHidden:Ue.includeHidden,interval:Ue.interval,label:!1,minTickGap:Ue.minTickGap,mirror:Ue.mirror,orientation:Ue.orientation,padding:Ue.padding,reversed:Ue.reversed,scale:Ue.scale,tick:Ue.tick,tickCount:Ue.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:Ue.type,xAxisId:0},t7=e=>{var t=Le(e,e7);return f.createElement(f.Fragment,null,f.createElement(J9,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),f.createElement(Q9,t))},Gs=f.memo(t7,DC);Gs.displayName="XAxis";var r7=["type"],n7=["dangerouslySetInnerHTML","ticks","scale"],o7=["id","scale"];function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(null,arguments)}function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(n){i7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i7(e,t,r){return(t=a7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a7(e){var t=s7(e,"string");return typeof t=="symbol"?t:t+""}function s7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Af(e,t){if(e==null)return{};var r,n,o=l7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function l7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function c7(e){var t=Se(),r=A.useRef(null),n=x1(),{type:o}=e,i=Af(e,r7),a=Hl(n,"yAxis",o),s=A.useMemo(()=>{if(a!=null)return xw(xw({},i),{},{type:a})},[a,i]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(M8(s)):r.current!==s&&t(N8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(I8(r.current)),r.current=null)},[t]),null}function u7(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=A.useRef(null),a=A.useRef(null),s=J(_p),l=ct(),c=Se(),u="yAxis",d=J(P=>uO(P,t)),p=J(P=>bW(P,t)),v=J(P=>pO(P,u,t,l)),g=J(P=>UE(P,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Yv(o)||A.isValidElement(o)||g==null)){var P=i.current;if(P){var O=P.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&c(k8({id:t,width:O}))}}},[v,d,c,o,t,n,g]),d==null||p==null||g==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:b}=e,x=Af(e,n7),{id:w,scale:S}=g,E=Af(g,o7);return f.createElement(lm,Cf({},x,E,{ref:i,labelRef:a,x:p.x,y:p.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:de("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:v,axisType:u}))}var d7={allowDataOverflow:He.allowDataOverflow,allowDecimals:He.allowDecimals,allowDuplicatedCategory:He.allowDuplicatedCategory,angle:He.angle,axisLine:gr.axisLine,hide:!1,includeHidden:He.includeHidden,interval:He.interval,label:!1,minTickGap:He.minTickGap,mirror:He.mirror,orientation:He.orientation,padding:He.padding,reversed:He.reversed,scale:He.scale,tick:He.tick,tickCount:He.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:He.type,width:He.width,yAxisId:0},f7=e=>{var t=Le(e,d7);return f.createElement(f.Fragment,null,f.createElement(c7,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),f.createElement(u7,t))},qs=f.memo(f7,DC);qs.displayName="YAxis";var p7=(e,t)=>t,fm=N([p7,ve,BE,Je,jO,Rr,R6,Ve],V6),pm=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},$C=Rt("mouseClick"),LC=Ti();LC.startListening({actionCreator:$C,effect:(e,t)=>{var r=e.payload,n=fm(t.getState(),pm(r));n?.activeIndex!=null&&t.dispatch(IW({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var _f=Rt("mouseMove"),FC=Ti(),Da=null;FC.startListening({actionCreator:_f,effect:(e,t)=>{var r=e.payload;Da!==null&&cancelAnimationFrame(Da);var n=pm(r);Da=requestAnimationFrame(()=>{var o=t.getState(),i=Dv(o,o.tooltip.settings.shared);if(i==="axis"){var a=fm(o,n);a?.activeIndex!=null?t.dispatch(wO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(xO())}Da=null})}});function v7(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var ww={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},zC=xt({name:"rootProps",initialState:ww,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:ww.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),m7=zC.reducer,{updateOptions:h7}=zC.actions,g7=null,y7={updatePolarOptions:(e,t)=>t.payload},BC=xt({name:"polarOptions",initialState:g7,reducers:y7}),{updatePolarOptions:b7}=BC.actions,x7=BC.reducer,VC=Rt("keyDown"),WC=Rt("focus"),vm=Ti();vm.startListening({actionCreator:VC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var a=$v(o,No(r),Vi(r),Ki(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Rr(r);if(i==="Enter"){var c=Fs(r,"axis","hover",String(o.index));t.dispatch(gf({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=PW(r),d=u==="left-to-right"?1:-1,p=i==="ArrowRight"?1:-1,v=s+p*d;if(!(l==null||v>=l.length||v<0)){var g=Fs(r,"axis","hover",String(v));t.dispatch(gf({active:!0,activeIndex:v.toString(),activeCoordinate:g}))}}}}}});vm.startListening({actionCreator:WC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=Fs(r,"axis","hover",String(i));t.dispatch(gf({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Mt=Rt("externalEvent"),KC=Ti(),bd=new Map;KC.startListening({actionCreator:Mt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=bd.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:b6(s),activeDataKey:Vv(s),activeIndex:qr(s),activeLabel:IO(s),activeTooltipIndex:qr(s),isTooltipActive:x6(s)};r(l,n)}finally{bd.delete(o)}});bd.set(o,a)}}});var w7=N([jo],e=>e.tooltipItemPayloads),S7=N([w7,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}}),UC=Rt("touchMove"),HC=Ti();HC.startListening({actionCreator:UC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=Dv(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=fm(n,pm({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(wO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(o==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(v1),d=(s=c.getAttribute(m1))!==null&&s!==void 0?s:void 0,p=Mo(n).find(m=>m.id===d);if(u==null||p==null||d==null)return;var{dataKey:v}=p,g=S7(n,u,d);t.dispatch(bO({activeDataKey:v,activeIndex:u,activeCoordinate:g,activeGraphicalItemId:d}))}}}});var P7=NP({brush:Q8,cartesianAxis:R8,chartData:bK,errorBars:GG,graphicalItems:VH,layout:UF,legend:Qz,options:vK,polarAxis:tH,polarOptions:x7,referenceElements:nG,rootProps:m7,tooltip:kW,zIndex:rK}),E7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return hF({reducer:P7,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([LC.middleware,FC.middleware,vm.middleware,KC.middleware,HC.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(ZP({type:"raf"}))},devTools:{serialize:{replacer:v7},name:"recharts-".concat(r)}})};function GC(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=ct(),i=A.useRef(null);if(o)return r;i.current==null&&(i.current=E7(t,n));var a=wp;return f.createElement(Pq,{context:a,store:i.current},r)}function O7(e){var{layout:t,margin:r}=e,n=Se(),o=ct();return A.useEffect(()=>{o||(n(VF(t)),n(BF(r)))},[n,o,t,r]),null}var qC=A.memo(O7,sc);function YC(e){var t=Se();return A.useEffect(()=>{t(h7(e))},[t,e]),null}function Sw(e){var{zIndex:t,isPanorama:r}=e,n=A.useRef(null),o=Se();return A.useLayoutEffect(()=>(n.current&&o(eK({zIndex:t,element:n.current,isPanorama:r})),()=>{o(tK({zIndex:t,isPanorama:r}))}),[o,t,r]),f.createElement("g",{tabIndex:-1,ref:n})}function Pw(e){var{children:t,isPanorama:r}=e,n=J(K6);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return f.createElement(f.Fragment,null,o.map(a=>f.createElement(Sw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>f.createElement(Sw,{key:a,zIndex:a,isPanorama:r})))}var C7=["children"];function A7(e,t){if(e==null)return{};var r,n,o=_7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ys.apply(null,arguments)}var T7={width:"100%",height:"100%",display:"block"},j7=A.forwardRef((e,t)=>{var r=Np(),n=Ip(),o=N1();if(!ar(r)||!ar(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0),f.createElement(up,Ys({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:T7,ref:t}),i)}),M7=e=>{var{children:t}=e,r=J(Ml);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return f.createElement(up,{width:n,height:o,x:a,y:i},t)},Ew=A.forwardRef((e,t)=>{var{children:r}=e,n=A7(e,C7),o=ct();return o?f.createElement(M7,null,f.createElement(Pw,{isPanorama:!0},r)):f.createElement(j7,Ys({ref:t},n),f.createElement(Pw,{isPanorama:!1},r))});function N7(){var e=Se(),[t,r]=A.useState(null),n=J(lz);return A.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ce(i)&&i!==n&&e(KF(i))}},[t,e,n]),r}function Ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function I7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){k7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k7(e,t,r){return(t=R7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R7(e){var t=D7(e,"string");return typeof t=="symbol"?t:t+""}function D7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var $7=()=>(_K(),null);function Xs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var L7=A.forwardRef((e,t)=>{var r,n,o=A.useRef(null),[i,a]=A.useState({containerWidth:Xs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Xs((n=e.style)===null||n===void 0?void 0:n.height)}),s=A.useCallback((c,u)=>{a(d=>{var p=Math.round(c),v=Math.round(u);return d.containerWidth===p&&d.containerHeight===v?d:{containerWidth:p,containerHeight:v}})},[]),l=A.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();s(u,d);var p=g=>{var m=g[0];if(m!=null){var{width:h,height:b}=m.contentRect;s(h,b)}},v=new ResizeObserver(p);v.observe(c),o.current=v}},[t,s]);return A.useEffect(()=>()=>{var c=o.current;c?.disconnect()},[s]),f.createElement(f.Fragment,null,f.createElement(Mi,{width:i.containerWidth,height:i.containerHeight}),f.createElement("div",Kr({ref:l},e)))}),F7=A.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=A.useState({containerWidth:Xs(r),containerHeight:Xs(n)}),a=A.useCallback((l,c)=>{i(u=>{var d=Math.round(l),p=Math.round(c);return u.containerWidth===d&&u.containerHeight===p?u:{containerWidth:d,containerHeight:p}})},[]),s=A.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return f.createElement(f.Fragment,null,f.createElement(Mi,{width:o.containerWidth,height:o.containerHeight}),f.createElement("div",Kr({ref:s},e)))}),z7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return f.createElement(f.Fragment,null,f.createElement(Mi,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))}),B7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?f.createElement(F7,Kr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?f.createElement(z7,Kr({},e,{width:r,height:n,ref:t})):f.createElement(f.Fragment,null,f.createElement(Mi,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))});function V7(e){return e?L7:B7}var W7=A.forwardRef((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:p,onTouchEnd:v,onTouchMove:g,onTouchStart:m,style:h,width:b,responsive:x,dispatchTouchEvents:w=!0}=e,S=A.useRef(null),E=Se(),[P,O]=A.useState(null),[C,M]=A.useState(null),$=N7(),I=Tp(),_=I?.width>0?I.width:b,j=I?.height>0?I.height:o,R=A.useCallback(L=>{$(L),typeof t=="function"&&t(L),O(L),M(L),L!=null&&(S.current=L)},[$,t,O,M]),V=A.useCallback(L=>{E($C(L)),E(Mt({handler:i,reactEvent:L}))},[E,i]),z=A.useCallback(L=>{E(_f(L)),E(Mt({handler:c,reactEvent:L}))},[E,c]),W=A.useCallback(L=>{E(xO()),E(Mt({handler:u,reactEvent:L}))},[E,u]),T=A.useCallback(L=>{E(_f(L)),E(Mt({handler:d,reactEvent:L}))},[E,d]),k=A.useCallback(()=>{E(WC())},[E]),G=A.useCallback(L=>{E(VC(L.key))},[E]),ee=A.useCallback(L=>{E(Mt({handler:a,reactEvent:L}))},[E,a]),ne=A.useCallback(L=>{E(Mt({handler:s,reactEvent:L}))},[E,s]),ie=A.useCallback(L=>{E(Mt({handler:l,reactEvent:L}))},[E,l]),oe=A.useCallback(L=>{E(Mt({handler:p,reactEvent:L}))},[E,p]),le=A.useCallback(L=>{E(Mt({handler:m,reactEvent:L}))},[E,m]),Oe=A.useCallback(L=>{w&&E(UC(L)),E(Mt({handler:g,reactEvent:L}))},[E,w,g]),K=A.useCallback(L=>{E(Mt({handler:v,reactEvent:L}))},[E,v]),ue=V7(x);return f.createElement(zO.Provider,{value:P},f.createElement(qS.Provider,{value:C},f.createElement(ue,{width:_??h?.width,height:j??h?.height,className:de("recharts-wrapper",n),style:I7({position:"relative",cursor:"default",width:_,height:j},h),onClick:V,onContextMenu:ee,onDoubleClick:ne,onFocus:k,onKeyDown:G,onMouseDown:ie,onMouseEnter:z,onMouseLeave:W,onMouseMove:T,onMouseUp:oe,onTouchEnd:K,onTouchMove:Oe,onTouchStart:le,ref:R},f.createElement($7,null),r)))}),K7=["width","height","responsive","children","className","style","compact","title","desc"];function U7(e,t){if(e==null)return{};var r,n,o=H7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function H7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var XC=A.forwardRef((e,t)=>{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,d=U7(e,K7),p=At(d);return l?f.createElement(f.Fragment,null,f.createElement(Mi,{width:r,height:n}),f.createElement(Ew,{otherAttributes:p,title:c,desc:u},i)):f.createElement(W7,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},f.createElement(Ew,{otherAttributes:p,title:c,desc:u,ref:t},f.createElement(iG,null,i)))});function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf.apply(null,arguments)}var G7={top:5,right:5,bottom:5,left:5},q7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:G7,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},ZC=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,q7),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,u={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return f.createElement(GC,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},f.createElement(hC,{chartData:c.data}),f.createElement(qC,{layout:o.layout,margin:o.margin}),f.createElement(YC,{baseValue:o.baseValue,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(XC,Tf({},o,{ref:r})))}),Y7=["axis"],X7=A.forwardRef((e,t)=>f.createElement(ZC,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Y7,tooltipPayloadSearcher:Gv,categoricalChartProps:e,ref:t})),Z7=["axis","item"],J7=A.forwardRef((e,t)=>f.createElement(ZC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Z7,tooltipPayloadSearcher:Gv,categoricalChartProps:e,ref:t}));function Q7(e){var t=Se();return A.useEffect(()=>{t(b7(e))},[t,e]),null}var eY=["layout"];function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jf.apply(null,arguments)}function tY(e,t){if(e==null)return{};var r,n,o=rY(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rY(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var nY={top:5,right:5,bottom:5,left:5},JC={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:nY,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},oY=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,JC),{layout:i}=o,a=tY(o,eY),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return f.createElement(GC,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},f.createElement(hC,{chartData:o.data}),f.createElement(qC,{layout:i,margin:o.margin}),f.createElement(YC,{baseValue:void 0,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(Q7,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),f.createElement(XC,jf({},a,{ref:r})))});function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){iY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iY(e,t,r){return(t=aY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aY(e){var t=sY(e,"string");return typeof t=="symbol"?t:t+""}function sY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lY=["item"],cY=Aw(Aw({},JC),{},{layout:"centric",startAngle:0,endAngle:360}),uY=A.forwardRef((e,t)=>{var r=Le(e,cY);return f.createElement(oY,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:lY,tooltipPayloadSearcher:Gv,categoricalChartProps:r,ref:t})});const QC=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),$a=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],eA=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,radius:c=0,stacked:u=!1,layout:d="horizontal",...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const h=r[0];return h?Object.keys(h).filter(x=>x!=="label"&&typeof h[x]=="number").map((x,w)=>({key:x,name:x.charAt(0).toUpperCase()+x.slice(1),color:$a[w%$a.length]})):[]},[r,n]),m=d==="vertical";return y.jsx("div",{ref:v,className:D(QC({size:t,className:e})),role:"img",...p,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(J7,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(cm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?y.jsxs(y.Fragment,{children:[y.jsx(Gs,{type:"number",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(qs,{type:"category",dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}):y.jsxs(y.Fragment,{children:[y.jsx(Gs,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(qs,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}),a&&y.jsx(qv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"},cursor:{fill:"rgba(0, 0, 0, 0.05)"}}),i&&y.jsx(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:h=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:h})}),g.map((h,b)=>y.jsx(RC,{dataKey:h.key,name:h.name,fill:h.color||$a[b%$a.length],radius:c,stackId:u?"stack":void 0},h.key))]})})})});eA.displayName="BarChart";const tA=te("text-small flex items-center font-sans",{variants:{size:{sm:"text-label gap-1.5",default:"text-small gap-2",lg:"text-body gap-2.5"}},defaultVariants:{size:"default"}}),Mf=te("focus-visible:ring-sunflower inline-flex items-center transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{isCurrentPage:{true:"cursor-default text-black",false:"text-quaternary hover:text-primary"}},defaultVariants:{isCurrentPage:!1}}),rA=f.forwardRef(({className:e,size:t,separator:r=y.jsx(mm,{}),children:n,...o},i)=>{const a=f.Children.toArray(n).filter(f.isValidElement);return y.jsx("nav",{ref:i,"aria-label":"Breadcrumb",...o,children:y.jsx("ol",{className:D(tA({size:t,className:e})),children:a.map((s,l)=>y.jsxs("li",{className:"inline-flex items-center gap-2",children:[s,l<a.length-1&&r]},l))})})});rA.displayName="Breadcrumbs";const nA=f.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return y.jsx("span",{className:D(Mf({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Ee:"a";return y.jsx(i,{ref:o,className:D(Mf({isCurrentPage:!1,className:e})),...n})});nA.displayName="BreadcrumbItem";const mm=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:D("text-tertiary",e),...r,children:t??y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:y.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}));mm.displayName="BreadcrumbSeparator";const oA=te("focus-visible:ring-sunflower rounded transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"",elevated:"shadow",ghost:""},padding:{none:"p-0",sm:"p-4",default:"p-6",lg:"p-8"},bg:{card:"bg-card",main:"bg-main",alt:"bg-alt",contrast:"bg-contrast",transparent:"bg-transparent",sunflower:"bg-sunflower","sunflower-hover":"bg-sunflower-hover","lemon-meringue":"bg-lemon-meringue",vanilla:"bg-vanilla",eggshell:"bg-eggshell","warm-purple":"bg-warm-purple","cool-purple":"bg-cool-purple","electric-blue":"bg-electric-blue","deep-blue":"bg-deep-blue",error:"bg-error"}},defaultVariants:{variant:"default",padding:"default",bg:"alt"}}),iA=f.forwardRef(({className:e,variant:t,padding:r,bg:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"div";return y.jsx(s,{className:D(oA({variant:t,padding:r,bg:n,className:e})),ref:a,...i})});iA.displayName="Card";function qi(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Yi(e){const[t,r]=f.useState(void 0);return Ye(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=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,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var lc="Checkbox",[dY]=Be(lc),[fY,hm]=dY(lc);function pY(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[p,v]=nt({prop:r,defaultProp:o??!1,onChange:l,caller:lc}),[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={checked:p,disabled:i,setChecked:v,control:g,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:Ur(o)?!1:o,isFormControl:w,bubbleInput:h,setBubbleInput:b};return y.jsx(fY,{scope:t,...S,children:vY(d)?d(S):n})}var aA="CheckboxTrigger",sA=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:g}=hm(aA,e),m=re(o,u),h=f.useRef(l);return f.useEffect(()=>{const b=i?.form;if(b){const x=()=>d(h.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,d]),y.jsx(Q.button,{type:"button",role:"checkbox","aria-checked":Ur(l)?"mixed":l,"aria-required":c,"data-state":pA(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:m,onKeyDown:U(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:U(r,b=>{d(x=>Ur(x)?!0:!x),g&&v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});sA.displayName=aA;var lA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return y.jsx(pY,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(sA,{...d,ref:t,__scopeCheckbox:r}),p&&y.jsx(fA,{__scopeCheckbox:r})]})})});lA.displayName=lc;var cA="CheckboxIndicator",uA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=hm(cA,r);return y.jsx(lt,{present:n||Ur(i.checked)||i.checked===!0,children:y.jsx(Q.span,{"data-state":pA(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});uA.displayName=cA;var dA="CheckboxBubbleInput",fA=f.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:p,setBubbleInput:v}=hm(dA,e),g=re(r,v),m=qi(i),h=Yi(n);f.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(m!==i&&E){const O=new Event("click",{bubbles:P});x.indeterminate=Ur(i),E.call(x,Ur(i)?!1:i),x.dispatchEvent(O)}},[p,m,i,o]);const b=f.useRef(Ur(i)?!1:i);return y.jsx(Q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:g,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});fA.displayName=dA;function vY(e){return typeof e=="function"}function Ur(e){return e==="indeterminate"}function pA(e){return Ur(e)?"indeterminate":e?"checked":"unchecked"}const vA=f.forwardRef(({className:e,...t},r)=>y.jsx(lA,{ref:r,className:D("border-border bg-card peer h-5 w-5 shrink-0 rounded border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower data-[state=checked]:bg-sunflower data-[state=checked]:text-primary",e),...t,children:y.jsx(uA,{className:D("flex items-center justify-center text-current"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3.5 w-3.5",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}));vA.displayName="Checkbox";const mY=["top","right","bottom","left"],Xr=Math.min,St=Math.max,Zs=Math.round,La=Math.floor,nr=e=>({x:e,y:e}),hY={left:"right",right:"left",bottom:"top",top:"bottom"},gY={start:"end",end:"start"};function Nf(e,t,r){return St(e,Xr(t,r))}function Or(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function Io(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}const yY=new Set(["top","bottom"]);function tr(e){return yY.has(Cr(e))?"y":"x"}function bm(e){return gm(tr(e))}function bY(e,t,r){r===void 0&&(r=!1);const n=Io(e),o=bm(e),i=ym(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Js(a)),[a,Js(a)]}function xY(e){const t=Js(e);return[If(e),t,If(t)]}function If(e){return e.replace(/start|end/g,t=>gY[t])}const _w=["left","right"],Tw=["right","left"],wY=["top","bottom"],SY=["bottom","top"];function PY(e,t,r){switch(e){case"top":case"bottom":return r?t?Tw:_w:t?_w:Tw;case"left":case"right":return t?wY:SY;default:return[]}}function EY(e,t,r,n){const o=Io(e);let i=PY(Cr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(If)))),i}function Js(e){return e.replace(/left|right|bottom|top/g,t=>hY[t])}function OY(e){return{top:0,right:0,bottom:0,left:0,...e}}function mA(e){return typeof e!="number"?OY(e):{top:e,right:e,bottom:e,left:e}}function Qs(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function jw(e,t,r){let{reference:n,floating:o}=e;const i=tr(t),a=bm(t),s=ym(a),l=Cr(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let v;switch(l){case"top":v={x:u,y:n.y-o.height};break;case"bottom":v={x:u,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:d};break;case"left":v={x:n.x-o.width,y:d};break;default:v={x:n.x,y:n.y}}switch(Io(t)){case"start":v[a]-=p*(r&&c?-1:1);break;case"end":v[a]+=p*(r&&c?-1:1);break}return v}async function CY(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=Or(t,e),g=mA(v),h=s[p?d==="floating"?"reference":"floating":d],b=Qs(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(h)))==null||r?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-E.top+g.top)/S.y,bottom:(E.bottom-b.bottom+g.bottom)/S.y,left:(b.left-E.left+g.left)/S.x,right:(E.right-b.right+g.right)/S.x}}const AY=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=jw(c,n,l),p=n,v={},g=0;for(let h=0;h<s.length;h++){var m;const{name:b,fn:x}=s[h],{x:w,y:S,data:E,reset:P}=await x({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:CY},elements:{reference:e,floating:t}});u=w??u,d=S??d,v={...v,[b]:{...v[b],...E}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:d}=jw(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:v}},_Y=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Or(e,t)||{};if(c==null)return{};const d=mA(u),p={x:r,y:n},v=bm(o),g=ym(v),m=await a.getDimensions(c),h=v==="y",b=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[v]-p[v]-i.floating[g],E=p[v]-i.reference[v],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let O=P?P[w]:0;(!O||!await(a.isElement==null?void 0:a.isElement(P)))&&(O=s.floating[w]||i.floating[g]);const C=S/2-E/2,M=O/2-m[g]/2-1,$=Xr(d[b],M),I=Xr(d[x],M),_=$,j=O-m[g]-I,R=O/2-m[g]/2+C,V=Nf(_,R,j),z=!l.arrow&&Io(o)!=null&&R!==V&&i.reference[g]/2-(R<_?$:I)-m[g]/2<0,W=z?R<_?R-_:R-j:0;return{[v]:p[v]+W,data:{[v]:V,centerOffset:R-V-W,...z&&{alignmentOffset:W}},reset:z}}}),TY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...h}=Or(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Cr(o),x=tr(s),w=Cr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(w||!m?[Js(s)]:xY(s)),P=g!=="none";!p&&P&&E.push(...EY(s,m,g,S));const O=[s,...E],C=await l.detectOverflow(t,h),M=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&M.push(C[b]),d){const R=bY(o,a,S);M.push(C[R[0]],C[R[1]])}if($=[...$,{placement:o,overflows:M}],!M.every(R=>R<=0)){var I,_;const R=(((I=i.flip)==null?void 0:I.index)||0)+1,V=O[R];if(V&&(!(d==="alignment"?x!==tr(V):!1)||$.every(T=>tr(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:R,overflows:$},reset:{placement:V}};let z=(_=$.filter(W=>W.overflows[0]<=0).sort((W,T)=>W.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!z)switch(v){case"bestFit":{var j;const W=(j=$.filter(T=>{if(P){const k=tr(T.placement);return k===x||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,G)=>k+G,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:j[0];W&&(z=W);break}case"initialPlacement":z=s;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Mw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nw(e){return mY.some(t=>e[t]>=0)}const jY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Or(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=Mw(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Nw(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=Mw(a,r.floating);return{data:{escapedOffsets:s,escaped:Nw(s)}}}default:return{}}}}},hA=new Set(["left","top"]);async function MY(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Cr(r),s=Io(r),l=tr(r)==="y",c=hA.has(a)?-1:1,u=i&&l?-1:1,d=Or(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*u,y:p*c}:{x:p*c,y:v*u}}const NY=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await MY(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},IY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...c}=Or(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=tr(Cr(o)),v=gm(p);let g=u[v],m=u[p];if(a){const b=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+d[b],S=g-d[x];g=Nf(w,g,S)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[b],S=m-d[x];m=Nf(w,m,S)}const h=l.fn({...t,[v]:g,[p]:m});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[v]:a,[p]:s}}}}}},kY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Or(e,t),u={x:r,y:n},d=tr(o),p=gm(d);let v=u[p],g=u[d];const m=Or(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",S=i.reference[p]-i.floating[w]+h.mainAxis,E=i.reference[p]+i.reference[w]-h.mainAxis;v<S?v=S:v>E&&(v=E)}if(c){var b,x;const w=p==="y"?"width":"height",S=hA.has(Cr(o)),E=i.reference[d]-i.floating[w]+(S&&((b=a.offset)==null?void 0:b[d])||0)+(S?0:h.crossAxis),P=i.reference[d]+i.reference[w]+(S?0:((x=a.offset)==null?void 0:x[d])||0)-(S?h.crossAxis:0);g<E?g=E:g>P&&(g=P)}return{[p]:v,[d]:g}}}},RY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Or(e,t),u=await a.detectOverflow(t,c),d=Cr(o),p=Io(o),v=tr(o)==="y",{width:g,height:m}=i.floating;let h,b;d==="top"||d==="bottom"?(h=d,b=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,h=p==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=g-u.left-u.right,S=Xr(m-u[h],x),E=Xr(g-u[b],w),P=!t.middlewareData.shift;let O=S,C=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=x),P&&!p){const $=St(u.left,0),I=St(u.right,0),_=St(u.top,0),j=St(u.bottom,0);v?C=g-2*($!==0||I!==0?$+I:St(u.left,u.right)):O=m-2*(_!==0||j!==0?_+j:St(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:O});const M=await a.getDimensions(s.floating);return g!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function cc(){return typeof window<"u"}function ko(e){return gA(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(gA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gA(e){return cc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Wt(e){return cc()?e instanceof Element||e instanceof Ct(e).Element:!1}function lr(e){return cc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Iw(e){return!cc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const DY=new Set(["inline","contents"]);function Xi(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!DY.has(o)}const $Y=new Set(["table","td","th"]);function LY(e){return $Y.has(ko(e))}const FY=[":popover-open",":modal"];function uc(e){return FY.some(t=>{try{return e.matches(t)}catch{return!1}})}const zY=["transform","translate","scale","rotate","perspective"],BY=["transform","translate","scale","rotate","perspective","filter"],VY=["paint","layout","strict","content"];function xm(e){const t=wm(),r=Wt(e)?Kt(e):e;return zY.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||BY.some(n=>(r.willChange||"").includes(n))||VY.some(n=>(r.contain||"").includes(n))}function WY(e){let t=Zr(e);for(;lr(t)&&!ho(t);){if(xm(t))return t;if(uc(t))return null;t=Zr(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KY=new Set(["html","body","#document"]);function ho(e){return KY.has(ko(e))}function Kt(e){return Ct(e).getComputedStyle(e)}function dc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zr(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Iw(e)&&e.host||ur(e);return Iw(t)?t.host:t}function yA(e){const t=Zr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:lr(t)&&Xi(t)?t:yA(t)}function hi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=yA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ct(o);if(i){const s=kf(a);return t.concat(a,a.visualViewport||[],Xi(o)?o:[],s&&r?hi(s):[])}return t.concat(o,hi(o,[],r))}function kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bA(e){const t=Kt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=lr(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Zs(r)!==i||Zs(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Sm(e){return Wt(e)?e:e.contextElement}function so(e){const t=Sm(e);if(!lr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=bA(t);let a=(i?Zs(r.width):r.width)/n,s=(i?Zs(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const UY=nr(0);function xA(e){const t=Ct(e);return!wm()||!t.visualViewport?UY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ct(e)?!1:t}function In(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Sm(e);let a=nr(1);t&&(n?Wt(n)&&(a=so(n)):a=so(e));const s=HY(i,r,n)?xA(i):nr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const p=Ct(i),v=n&&Wt(n)?Ct(n):n;let g=p,m=kf(g);for(;m&&n&&v!==g;){const h=so(m),b=m.getBoundingClientRect(),x=Kt(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,S=b.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=w,c+=S,g=Ct(m),m=kf(g)}}return Qs({width:u,height:d,x:l,y:c})}function fc(e,t){const r=dc(e).scrollLeft;return t?t.left+r:In(ur(e)).left+r}function wA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-fc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function GY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=ur(n),s=t?uc(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=nr(1);const u=nr(0),d=lr(n);if((d||!d&&!i)&&((ko(n)!=="body"||Xi(a))&&(l=dc(n)),lr(n))){const v=In(n);c=so(n),u.x=v.x+n.clientLeft,u.y=v.y+n.clientTop}const p=a&&!d&&!i?wA(a,l):nr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function qY(e){return Array.from(e.getClientRects())}function YY(e){const t=ur(e),r=dc(e),n=e.ownerDocument.body,o=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fc(e);const s=-r.scrollTop;return Kt(n).direction==="rtl"&&(a+=St(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const kw=25;function XY(e,t){const r=Ct(e),n=ur(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=wm();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=fc(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),v=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-v);g<=kw&&(i-=g)}else c<=kw&&(i+=c);return{width:i,height:a,x:s,y:l}}const ZY=new Set(["absolute","fixed"]);function JY(e,t){const r=In(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=lr(e)?so(e):nr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function Rw(e,t,r){let n;if(t==="viewport")n=XY(e,r);else if(t==="document")n=YY(ur(e));else if(Wt(t))n=JY(t,r);else{const o=xA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qs(n)}function SA(e,t){const r=Zr(e);return r===t||!Wt(r)||ho(r)?!1:Kt(r).position==="fixed"||SA(r,t)}function QY(e,t){const r=t.get(e);if(r)return r;let n=hi(e,[],!1).filter(s=>Wt(s)&&ko(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?Zr(e):e;for(;Wt(a)&&!ho(a);){const s=Kt(a),l=xm(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&ZY.has(o.position)||Xi(a)&&!l&&SA(e,a))?n=n.filter(u=>u!==a):o=s,a=Zr(a)}return t.set(e,n),n}function eX(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?uc(t)?[]:QY(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=Rw(t,u,o);return c.top=St(d.top,c.top),c.right=Xr(d.right,c.right),c.bottom=Xr(d.bottom,c.bottom),c.left=St(d.left,c.left),c},Rw(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function tX(e){const{width:t,height:r}=bA(e);return{width:t,height:r}}function rX(e,t,r){const n=lr(t),o=ur(t),i=r==="fixed",a=In(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=nr(0);function c(){l.x=fc(o)}if(n||!n&&!i)if((ko(t)!=="body"||Xi(o))&&(s=dc(t)),n){const v=In(t,!0,i,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?wA(o,s):nr(0),d=a.left+s.scrollLeft-l.x-u.x,p=a.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:a.width,height:a.height}}function xd(e){return Kt(e).position==="static"}function Dw(e,t){if(!lr(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ur(e)===r&&(r=r.ownerDocument.body),r}function PA(e,t){const r=Ct(e);if(uc(e))return r;if(!lr(e)){let o=Zr(e);for(;o&&!ho(o);){if(Wt(o)&&!xd(o))return o;o=Zr(o)}return r}let n=Dw(e,t);for(;n&&LY(n)&&xd(n);)n=Dw(n,t);return n&&ho(n)&&xd(n)&&!xm(n)?r:n||WY(e)||r}const nX=async function(e){const t=this.getOffsetParent||PA,r=this.getDimensions,n=await r(e.floating);return{reference:rX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function oX(e){return Kt(e).direction==="rtl"}const iX={convertOffsetParentRelativeRectToViewportRelativeRect:GY,getDocumentElement:ur,getClippingRect:eX,getOffsetParent:PA,getElementRects:nX,getClientRects:qY,getDimensions:tX,getScale:so,isElement:Wt,isRTL:oX};function EA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aX(e,t){let r=null,n;const o=ur(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:v}=c;if(s||t(),!p||!v)return;const g=La(d),m=La(o.clientWidth-(u+p)),h=La(o.clientHeight-(d+v)),b=La(u),w={rootMargin:-g+"px "+-m+"px "+-h+"px "+-b+"px",threshold:St(0,Xr(1,l))||1};let S=!0;function E(P){const O=P[0].intersectionRatio;if(O!==l){if(!S)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!EA(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return a(!0),i}function sX(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Sm(e),u=o||i?[...c?hi(c):[],...hi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?aX(c,r):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),r()}),c&&!l&&v.observe(c),v.observe(t));let g,m=l?In(e):null;l&&h();function h(){const b=In(e);m&&!EA(m,b)&&r(),m=b,g=requestAnimationFrame(h)}return r(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const lX=NY,cX=IY,uX=TY,dX=RY,fX=jY,$w=_Y,pX=kY,vX=(e,t,r)=>{const n=new Map,o={platform:iX,...r},i={...o.platform,_c:n};return AY(e,t,{...o,platform:i})};var mX=typeof document<"u",hX=function(){},Xa=mX?A.useLayoutEffect:hX;function el(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!el(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!el(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function OA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lw(e,t){const r=OA(e);return Math.round(t*r)/r}function wd(e){const t=f.useRef(e);return Xa(()=>{t.current=e}),t}function gX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(n);el(p,n)||v(n);const[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useCallback(T=>{T!==P.current&&(P.current=T,m(T))},[]),w=f.useCallback(T=>{T!==O.current&&(O.current=T,b(T))},[]),S=i||g,E=a||h,P=f.useRef(null),O=f.useRef(null),C=f.useRef(u),M=l!=null,$=wd(l),I=wd(o),_=wd(c),j=f.useCallback(()=>{if(!P.current||!O.current)return;const T={placement:t,strategy:r,middleware:p};I.current&&(T.platform=I.current),vX(P.current,O.current,T).then(k=>{const G={...k,isPositioned:_.current!==!1};R.current&&!el(C.current,G)&&(C.current=G,wi.flushSync(()=>{d(G)}))})},[p,t,r,I,_]);Xa(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[c]);const R=f.useRef(!1);Xa(()=>(R.current=!0,()=>{R.current=!1}),[]),Xa(()=>{if(S&&(P.current=S),E&&(O.current=E),S&&E){if($.current)return $.current(S,E,j);j()}},[S,E,j,$,M]);const V=f.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:w}),[x,w]),z=f.useMemo(()=>({reference:S,floating:E}),[S,E]),W=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!z.floating)return T;const k=Lw(z.floating,u.x),G=Lw(z.floating,u.y);return s?{...T,transform:"translate("+k+"px, "+G+"px)",...OA(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:G}},[r,s,z.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:j,refs:V,elements:z,floatingStyles:W}),[u,j,V,z,W])}const yX=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$w({element:n.current,padding:o}).fn(r):{}:n?$w({element:n,padding:o}).fn(r):{}}}},bX=(e,t)=>({...lX(e),options:[e,t]}),xX=(e,t)=>({...cX(e),options:[e,t]}),wX=(e,t)=>({...pX(e),options:[e,t]}),SX=(e,t)=>({...uX(e),options:[e,t]}),PX=(e,t)=>({...dX(e),options:[e,t]}),EX=(e,t)=>({...fX(e),options:[e,t]}),OX=(e,t)=>({...yX(e),options:[e,t]});var CX="Arrow",CA=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return y.jsx(Q.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});CA.displayName=CX;var AX=CA,Pm="Popper",[AA,rn]=Be(Pm),[_X,_A]=AA(Pm),TA=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return y.jsx(_X,{scope:t,anchor:n,onAnchorChange:o,children:r})};TA.displayName=Pm;var jA="PopperAnchor",MA=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=_A(jA,r),a=f.useRef(null),s=re(t,a),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=n?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:y.jsx(Q.div,{...o,ref:s})});MA.displayName=jA;var Em="PopperContent",[TX,jX]=AA(Em),NA=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,h=_A(Em,r),[b,x]=f.useState(null),w=re(t,K=>x(K)),[S,E]=f.useState(null),P=Yi(S),O=P?.width??0,C=P?.height??0,M=n+(i!=="center"?"-"+i:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],_=I.length>0,j={padding:$,boundary:I.filter(NX),altBoundary:_},{refs:R,floatingStyles:V,placement:z,isPositioned:W,middlewareData:T}=gX({strategy:"fixed",placement:M,whileElementsMounted:(...K)=>sX(...K,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[bX({mainAxis:o+C,alignmentAxis:a}),l&&xX({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?wX():void 0,...j}),l&&SX({...j}),PX({...j,apply:({elements:K,rects:ue,availableWidth:L,availableHeight:H})=>{const{width:B,height:F}=ue.reference,fe=K.floating.style;fe.setProperty("--radix-popper-available-width",`${L}px`),fe.setProperty("--radix-popper-available-height",`${H}px`),fe.setProperty("--radix-popper-anchor-width",`${B}px`),fe.setProperty("--radix-popper-anchor-height",`${F}px`)}}),S&&OX({element:S,padding:s}),IX({arrowWidth:O,arrowHeight:C}),p&&EX({strategy:"referenceHidden",...j})]}),[k,G]=RA(z),ee=st(g);Ye(()=>{W&&ee?.()},[W,ee]);const ne=T.arrow?.x,ie=T.arrow?.y,oe=T.arrow?.centerOffset!==0,[le,Oe]=f.useState();return Ye(()=>{b&&Oe(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:W?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[T.transformOrigin?.x,T.transformOrigin?.y].join(" "),...T.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(TX,{scope:r,placedSide:k,onArrowChange:E,arrowX:ne,arrowY:ie,shouldHideArrow:oe,children:y.jsx(Q.div,{"data-side":k,"data-align":G,...m,ref:w,style:{...m.style,animation:W?void 0:"none"}})})})});NA.displayName=Em;var IA="PopperArrow",MX={top:"bottom",right:"left",bottom:"top",left:"right"},kA=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=jX(IA,n),a=MX[i.placedSide];return y.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:y.jsx(AX,{...o,ref:r,style:{...o.style,display:"block"}})})});kA.displayName=IA;function NX(e){return e!==null}var IX=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=RA(r),d={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+s/2,v=(o.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=a?d:`${p}px`,m=`${-l}px`):c==="top"?(g=a?d:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=a?d:`${v}px`):c==="left"&&(g=`${n.floating.width+l}px`,m=a?d:`${v}px`),{data:{x:g,y:m}}}});function RA(e){const[t,r="center"]=e.split("-");return[t,r]}var Zi=TA,Ji=MA,pc=NA,vc=kA,Sd="rovingFocusGroup.onEntryFocus",kX={bubbles:!1,cancelable:!0},Qi="RovingFocusGroup",[Rf,DA,RX]=bo(Qi),[DX,mc]=Be(Qi,[RX]),[$X,LX]=DX(Qi),$A=f.forwardRef((e,t)=>y.jsx(Rf.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Rf.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(FX,{...e,ref:t})})}));$A.displayName=Qi;var FX=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=f.useRef(null),v=re(t,p),g=xo(i),[m,h]=nt({prop:a,defaultProp:s??null,onChange:l,caller:Qi}),[b,x]=f.useState(!1),w=st(c),S=DA(r),E=f.useRef(!1),[P,O]=f.useState(0);return f.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(Sd,w),()=>C.removeEventListener(Sd,w)},[w]),y.jsx($X,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(C=>h(C),[h]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>O(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>O(C=>C-1),[]),children:y.jsx(Q.div,{tabIndex:b||P===0?-1:0,"data-orientation":n,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{E.current=!0}),onFocus:U(e.onFocus,C=>{const M=!E.current;if(C.target===C.currentTarget&&M&&!b){const $=new CustomEvent(Sd,kX);if(C.currentTarget.dispatchEvent($),!$.defaultPrevented){const I=S().filter(z=>z.focusable),_=I.find(z=>z.active),j=I.find(z=>z.id===m),V=[_,j,...I].filter(Boolean).map(z=>z.ref.current);zA(V,u)}}E.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),LA="RovingFocusGroupItem",FA=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=vt(),c=i||l,u=LX(LA,r),d=u.currentTabStopId===c,p=DA(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=u;return f.useEffect(()=>{if(n)return v(),()=>g()},[n,v,g]),y.jsx(Rf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:y.jsx(Q.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:U(e.onMouseDown,h=>{n?u.onItemFocus(c):h.preventDefault()}),onFocus:U(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:U(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=VX(h,u.orientation,u.dir);if(b!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=p().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const S=w.indexOf(h.currentTarget);w=u.loop?WX(w,S+1):w.slice(S+1)}setTimeout(()=>zA(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});FA.displayName=LA;var zX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function BX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function VX(e,t,r){const n=BX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return zX[n]}function zA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function WX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var BA=$A,VA=FA;function KX(e){const t=UX(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(GX);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function UX(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=YX(o),s=qX(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HX=Symbol("radix.slottable");function GX(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HX}function qX(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function YX(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Df=["Enter"," "],XX=["ArrowDown","PageUp","Home"],WA=["ArrowUp","PageDown","End"],ZX=[...XX,...WA],JX={ltr:[...Df,"ArrowRight"],rtl:[...Df,"ArrowLeft"]},QX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[gi,eZ,tZ]=bo(ea),[Un,hc]=Be(ea,[tZ,rn,mc]),ta=rn(),KA=mc(),[UA,nn]=Un(ea),[rZ,ra]=Un(ea),HA=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=ta(t),[l,c]=f.useState(null),u=f.useRef(!1),d=st(i),p=xo(o);return f.useEffect(()=>{const v=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),y.jsx(Zi,{...s,children:y.jsx(UA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:y.jsx(rZ,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:p,modal:a,children:n})})})};HA.displayName=ea;var nZ="MenuAnchor",Om=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ta(r);return y.jsx(Ji,{...o,...n,ref:t})});Om.displayName=nZ;var Cm="MenuPortal",[oZ,GA]=Un(Cm,{forceMount:void 0}),qA=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=nn(Cm,t);return y.jsx(oZ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};qA.displayName=Cm;var kt="MenuContent",[iZ,Am]=Un(kt),YA=f.forwardRef((e,t)=>{const r=GA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=ra(kt,e.__scopeMenu);return y.jsx(gi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(gi.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx(aZ,{...o,ref:t}):y.jsx(sZ,{...o,ref:t})})})})}),aZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu),n=f.useRef(null),o=re(t,n);return f.useEffect(()=>{const i=n.current;if(i)return fl(i)},[]),y.jsx(_m,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),sZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu);return y.jsx(_m,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),lZ=KX("MenuContent.ScrollLock"),_m=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,disableOutsideScroll:g,...m}=e,h=nn(kt,r),b=ra(kt,r),x=ta(r),w=KA(r),S=eZ(r),[E,P]=f.useState(null),O=f.useRef(null),C=re(t,O,h.onContentChange),M=f.useRef(0),$=f.useRef(""),I=f.useRef(0),_=f.useRef(null),j=f.useRef("right"),R=f.useRef(0),V=g?Pi:f.Fragment,z=g?{as:lZ,allowPinchZoom:!0}:void 0,W=k=>{const G=$.current+k,ee=S().filter(K=>!K.disabled),ne=document.activeElement,ie=ee.find(K=>K.ref.current===ne)?.textValue,oe=ee.map(K=>K.textValue),le=xZ(oe,G,ie),Oe=ee.find(K=>K.textValue===le)?.ref.current;(function K(ue){$.current=ue,window.clearTimeout(M.current),ue!==""&&(M.current=window.setTimeout(()=>K(""),1e3))})(G),Oe&&setTimeout(()=>Oe.focus())};f.useEffect(()=>()=>window.clearTimeout(M.current),[]),ul();const T=f.useCallback(k=>j.current===_.current?.side&&SZ(k,_.current?.area),[]);return y.jsx(iZ,{scope:r,searchRef:$,onItemEnter:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),onItemLeave:f.useCallback(k=>{T(k)||(O.current?.focus(),P(null))},[T]),onTriggerLeave:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),pointerGraceTimerRef:I,onPointerGraceIntentChange:f.useCallback(k=>{_.current=k},[]),children:y.jsx(V,{...z,children:y.jsx(Si,{asChild:!0,trapped:o,onMountAutoFocus:U(i,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,children:y.jsx(BA,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:U(l,k=>{b.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(pc,{role:"menu","aria-orientation":"vertical","data-state":f_(h.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,k=>{const ee=k.target.closest("[data-radix-menu-content]")===k.currentTarget,ne=k.ctrlKey||k.altKey||k.metaKey,ie=k.key.length===1;ee&&(k.key==="Tab"&&k.preventDefault(),!ne&&ie&&W(k.key));const oe=O.current;if(k.target!==oe||!ZX.includes(k.key))return;k.preventDefault();const Oe=S().filter(K=>!K.disabled).map(K=>K.ref.current);WA.includes(k.key)&&Oe.reverse(),yZ(Oe)}),onBlur:U(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(M.current),$.current="")}),onPointerMove:U(e.onPointerMove,yi(k=>{const G=k.target,ee=R.current!==k.clientX;if(k.currentTarget.contains(G)&&ee){const ne=k.clientX>R.current?"right":"left";j.current=ne,R.current=k.clientX}}))})})})})})})});YA.displayName=kt;var cZ="MenuGroup",Tm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"group",...n,ref:t})});Tm.displayName=cZ;var uZ="MenuLabel",XA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});XA.displayName=uZ;var tl="MenuItem",Fw="menu.itemSelect",gc=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=f.useRef(null),a=ra(tl,e.__scopeMenu),s=Am(tl,e.__scopeMenu),l=re(t,i),c=f.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const p=new CustomEvent(Fw,{bubbles:!0,cancelable:!0});d.addEventListener(Fw,v=>n?.(v),{once:!0}),Zf(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return y.jsx(ZA,{...o,ref:l,disabled:r,onClick:U(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:U(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:U(e.onKeyDown,d=>{const p=s.searchRef.current!=="";r||p&&d.key===" "||Df.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});gc.displayName=tl;var ZA=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=Am(tl,r),s=KA(r),l=f.useRef(null),c=re(t,l),[u,d]=f.useState(!1),[p,v]=f.useState("");return f.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[i.children]),y.jsx(gi.ItemSlot,{scope:r,disabled:n,textValue:o??p,children:y.jsx(VA,{asChild:!0,...s,focusable:!n,children:y.jsx(Q.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:c,onPointerMove:U(e.onPointerMove,yi(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,yi(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),dZ="MenuCheckboxItem",JA=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return y.jsx(n_,{scope:e.__scopeMenu,checked:r,children:y.jsx(gc,{role:"menuitemcheckbox","aria-checked":rl(r)?"mixed":r,...o,ref:t,"data-state":Nm(r),onSelect:U(o.onSelect,()=>n?.(rl(r)?!0:!r),{checkForDefaultPrevented:!1})})})});JA.displayName=dZ;var QA="MenuRadioGroup",[fZ,pZ]=Un(QA,{value:void 0,onValueChange:()=>{}}),e_=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=st(n);return y.jsx(fZ,{scope:e.__scopeMenu,value:r,onValueChange:i,children:y.jsx(Tm,{...o,ref:t})})});e_.displayName=QA;var t_="MenuRadioItem",r_=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=pZ(t_,e.__scopeMenu),i=r===o.value;return y.jsx(n_,{scope:e.__scopeMenu,checked:i,children:y.jsx(gc,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Nm(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});r_.displayName=t_;var jm="MenuItemIndicator",[n_,vZ]=Un(jm,{checked:!1}),o_=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=vZ(jm,r);return y.jsx(lt,{present:n||rl(i.checked)||i.checked===!0,children:y.jsx(Q.span,{...o,ref:t,"data-state":Nm(i.checked)})})});o_.displayName=jm;var mZ="MenuSeparator",i_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});i_.displayName=mZ;var hZ="MenuArrow",a_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ta(r);return y.jsx(vc,{...o,...n,ref:t})});a_.displayName=hZ;var Mm="MenuSub",[gZ,s_]=Un(Mm),l_=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=nn(Mm,t),a=ta(t),[s,l]=f.useState(null),[c,u]=f.useState(null),d=st(o);return f.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),y.jsx(Zi,{...a,children:y.jsx(UA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:y.jsx(gZ,{scope:t,contentId:vt(),triggerId:vt(),trigger:s,onTriggerChange:l,children:r})})})};l_.displayName=Mm;var Zo="MenuSubTrigger",c_=f.forwardRef((e,t)=>{const r=nn(Zo,e.__scopeMenu),n=ra(Zo,e.__scopeMenu),o=s_(Zo,e.__scopeMenu),i=Am(Zo,e.__scopeMenu),a=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=f.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return f.useEffect(()=>u,[u]),f.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.jsx(Om,{asChild:!0,...c,children:y.jsx(ZA,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":f_(r.open),...e,ref:cr(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,yi(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:U(e.onPointerLeave,yi(d=>{u();const p=r.content?.getBoundingClientRect();if(p){const v=r.content?.dataset.side,g=v==="right",m=g?-5:5,h=p[g?"left":"right"],b=p[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:h,y:p.top},{x:b,y:p.top},{x:b,y:p.bottom},{x:h,y:p.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:U(e.onKeyDown,d=>{const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||JX[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});c_.displayName=Zo;var u_="MenuSubContent",d_=f.forwardRef((e,t)=>{const r=GA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=ra(kt,e.__scopeMenu),s=s_(u_,e.__scopeMenu),l=f.useRef(null),c=re(t,l);return y.jsx(gi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(gi.Slot,{scope:e.__scopeMenu,children:y.jsx(_m,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:U(e.onFocusOutside,u=>{u.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:U(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:U(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),p=QX[a.dir].includes(u.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});d_.displayName=u_;function f_(e){return e?"open":"closed"}function rl(e){return e==="indeterminate"}function Nm(e){return rl(e)?"indeterminate":e?"checked":"unchecked"}function yZ(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function bZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function xZ(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=bZ(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function wZ(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function SZ(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return wZ(r,t)}function yi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var p_=HA,v_=Om,m_=qA,h_=YA,g_=Tm,y_=XA,b_=gc,x_=JA,w_=e_,S_=r_,P_=o_,E_=i_,O_=a_,C_=l_,A_=c_,__=d_,Im="ContextMenu",[PZ]=Be(Im,[hc]),ut=hc(),[EZ,T_]=PZ(Im),j_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:i=!0}=e,[a,s]=f.useState(!1),l=ut(t),c=st(n),u=f.useCallback(d=>{s(d),c(d)},[c]);return y.jsx(EZ,{scope:t,open:a,onOpenChange:u,modal:i,children:y.jsx(p_,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};j_.displayName=Im;var M_="ContextMenuTrigger",N_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=T_(M_,r),a=ut(r),s=f.useRef({x:0,y:0}),l=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=f.useRef(0),u=f.useCallback(()=>window.clearTimeout(c.current),[]),d=p=>{s.current={x:p.clientX,y:p.clientY},i.onOpenChange(!0)};return f.useEffect(()=>u,[u]),f.useEffect(()=>{n&&u()},[n,u]),y.jsxs(y.Fragment,{children:[y.jsx(v_,{...a,virtualRef:l}),y.jsx(Q.span,{"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:U(e.onContextMenu,p=>{u(),d(p),p.preventDefault()}),onPointerDown:n?e.onPointerDown:U(e.onPointerDown,Fa(p=>{u(),c.current=window.setTimeout(()=>d(p),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,Fa(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,Fa(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,Fa(u))})]})});N_.displayName=M_;var OZ="ContextMenuPortal",I_=e=>{const{__scopeContextMenu:t,...r}=e,n=ut(t);return y.jsx(m_,{...n,...r})};I_.displayName=OZ;var k_="ContextMenuContent",R_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=T_(k_,r),i=ut(r),a=f.useRef(!1);return y.jsx(h_,{...i,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R_.displayName=k_;var CZ="ContextMenuGroup",D_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(g_,{...o,...n,ref:t})});D_.displayName=CZ;var AZ="ContextMenuLabel",$_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(y_,{...o,...n,ref:t})});$_.displayName=AZ;var _Z="ContextMenuItem",L_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(b_,{...o,...n,ref:t})});L_.displayName=_Z;var TZ="ContextMenuCheckboxItem",F_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(x_,{...o,...n,ref:t})});F_.displayName=TZ;var jZ="ContextMenuRadioGroup",z_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(w_,{...o,...n,ref:t})});z_.displayName=jZ;var MZ="ContextMenuRadioItem",B_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(S_,{...o,...n,ref:t})});B_.displayName=MZ;var NZ="ContextMenuItemIndicator",V_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(P_,{...o,...n,ref:t})});V_.displayName=NZ;var IZ="ContextMenuSeparator",W_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(E_,{...o,...n,ref:t})});W_.displayName=IZ;var kZ="ContextMenuArrow",RZ=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(O_,{...o,...n,ref:t})});RZ.displayName=kZ;var K_="ContextMenuSub",U_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=ut(t),[s,l]=nt({prop:o,defaultProp:i??!1,onChange:n,caller:K_});return y.jsx(C_,{...a,open:s,onOpenChange:l,children:r})};U_.displayName=K_;var DZ="ContextMenuSubTrigger",H_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(A_,{...o,...n,ref:t})});H_.displayName=DZ;var $Z="ContextMenuSubContent",G_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(__,{...o,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G_.displayName=$Z;function Fa(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var LZ=j_,FZ=N_,zZ=I_,BZ=R_,VZ=D_,WZ=$_,KZ=L_,UZ=F_,HZ=z_,GZ=B_,q_=V_,qZ=W_,YZ=U_,XZ=H_,ZZ=G_;const JZ=LZ,QZ=FZ,eJ=VZ,Y_=zZ,tJ=YZ,rJ=HZ,X_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(XZ,{ref:o,className:D("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));X_.displayName="ContextMenuSubTrigger";const Z_=f.forwardRef(({className:e,...t},r)=>y.jsx(ZZ,{ref:r,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Z_.displayName="ContextMenuSubContent";const J_=f.forwardRef(({className:e,...t},r)=>y.jsx(Y_,{children:y.jsx(BZ,{ref:r,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));J_.displayName="ContextMenuContent";const Q_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(KZ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));Q_.displayName="ContextMenuItem";const eT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(UZ,{ref:o,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(q_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));eT.displayName="ContextMenuCheckboxItem";const tT=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(GZ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(q_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));tT.displayName="ContextMenuRadioItem";const rT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(WZ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));rT.displayName="ContextMenuLabel";const nT=f.forwardRef(({className:e,...t},r)=>y.jsx(qZ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));nT.displayName="ContextMenuSeparator";const oT=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));oT.displayName="ContextMenuShortcut";function nJ(e){const t=oJ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(aJ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function oJ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=lJ(o),s=sJ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var iJ=Symbol("radix.slottable");function aJ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===iJ}function sJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function lJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yc="Popover",[iT]=Be(yc,[rn]),na=rn(),[cJ,on]=iT(yc),aT=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=na(t),l=f.useRef(null),[c,u]=f.useState(!1),[d,p]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:yc});return y.jsx(Zi,{...s,children:y.jsx(cJ,{scope:t,contentId:vt(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:a,children:r})})};aT.displayName=yc;var sT="PopoverAnchor",uJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(sT,r),i=na(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(a(),()=>s()),[a,s]),y.jsx(Ji,{...i,...n,ref:t})});uJ.displayName=sT;var lT="PopoverTrigger",cT=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(lT,r),i=na(r),a=re(t,o.triggerRef),s=y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vT(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Ji,{asChild:!0,...i,children:s})});cT.displayName=lT;var km="PopoverPortal",[dJ,fJ]=iT(km,{forceMount:void 0}),uT=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=on(km,t);return y.jsx(dJ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};uT.displayName=km;var go="PopoverContent",dT=f.forwardRef((e,t)=>{const r=fJ(go,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=on(go,e.__scopePopover);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(vJ,{...o,ref:t}):y.jsx(mJ,{...o,ref:t})})});dT.displayName=go;var pJ=nJ("PopoverContent.RemoveScroll"),vJ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(null),o=re(t,n),i=f.useRef(!1);return f.useEffect(()=>{const a=n.current;if(a)return fl(a)},[]),y.jsx(Pi,{as:pJ,allowPinchZoom:!0,children:y.jsx(fT,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{a.preventDefault(),i.current||r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),mJ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(fT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),fT=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=on(go,r),v=na(r);return ul(),y.jsx(Si,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:y.jsx(pc,{"data-state":vT(p.open),role:"dialog",id:p.contentId,...v,...d,ref:t,style:{...d.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)"}})})})}),pT="PopoverClose",hJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(pT,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});hJ.displayName=pT;var gJ="PopoverArrow",yJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=na(r);return y.jsx(vc,{...o,...n,ref:t})});yJ.displayName=gJ;function vT(e){return e?"open":"closed"}var mT=aT,hT=cT,gT=uT,yT=dT;const bJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],zw=["January","February","March","April","May","June","July","August","September","October","November","December"];function Bw(e,t){return new Date(e,t+1,0).getDate()}function xJ(e,t){return new Date(e,t,1).getDay()}function bT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function wJ(e){return bT(new Date,e)}function Vw(e,t="yyyy-MM-dd"){if(!e)return"";const r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=e.getFullYear();return t.replace("yyyy",String(o)).replace("MM",r).replace("dd",n)}const xT=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),wT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),ST=f.forwardRef(({value:e,onChange:t,placeholder:r="Select a date",format:n="MM/dd/yyyy",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,"aria-label":d,"aria-describedby":p},v)=>{const[g,m]=f.useState(!1),[h,b]=f.useState(()=>e||new Date),x=h.getFullYear(),w=h.getMonth(),S=Bw(x,w),E=xJ(x,w),P=f.useMemo(()=>{const _=[],j=w===0?11:w-1,R=w===0?x-1:x,V=Bw(R,j);for(let k=E-1;k>=0;k--)_.push({date:new Date(R,j,V-k),isOutside:!0});for(let k=1;k<=S;k++)_.push({date:new Date(x,w,k),isOutside:!1});const z=42-_.length,W=w===11?0:w+1,T=w===11?x+1:x;for(let k=1;k<=z;k++)_.push({date:new Date(T,W,k),isOutside:!0});return _},[x,w,S,E]),O=()=>{b(new Date(x,w-1,1))},C=()=>{b(new Date(x,w+1,1))},M=_=>{t?.(_),m(!1)},$=_=>!!(o&&_<new Date(o.setHours(0,0,0,0))||i&&_>new Date(i.setHours(23,59,59,999))),I=(_,j)=>$(_)?"disabled":j?"outside":e&&bT(e,_)?"selected":wJ(_)?"today":"default";return f.useEffect(()=>{e&&b(e)},[e]),y.jsxs(mT,{open:g,onOpenChange:m,children:[y.jsx(hT,{asChild:!0,children:y.jsxs("button",{ref:v,id:c,type:"button",disabled:a,className:D(xT({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":p,"aria-haspopup":"dialog","aria-expanded":g,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?Vw(e,n):r}),y.jsx(p0,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&y.jsx("input",{type:"hidden",name:u,value:e?Vw(e,"yyyy-MM-dd"):""})]})}),y.jsx(gT,{children:y.jsxs(yT,{className:D("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:O,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ll,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[zw[w]," ",x]}),y.jsx("button",{type:"button",onClick:C,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(cl,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:bJ.map(_=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:_},_))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${zw[w]} ${x}`,children:P.map(({date:_,isOutside:j},R)=>{const V=I(_,j),z=V==="disabled";return y.jsx("button",{type:"button",onClick:()=>!z&&M(_),disabled:z,className:wT({state:V}),"aria-label":_.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":V==="selected",tabIndex:j?-1:0,children:_.getDate()},R)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:()=>M(new Date),className:D("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Today"})})]})})]})});ST.displayName="DatePicker";const SJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ww=["January","February","March","April","May","June","July","August","September","October","November","December"];function Kw(e,t){return new Date(e,t+1,0).getDate()}function PJ(e,t){return new Date(e,t,1).getDay()}function PT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function EJ(e){return PT(new Date,e)}function OJ(e,t="yyyy-MM-dd",r=!0){if(!e)return"";const n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=e.getFullYear(),a=e.getHours(),s=a%12||12,l=r?String(a).padStart(2,"0"):String(s).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0"),u=a>=12?"PM":"AM";return t.replace("yyyy",String(i)).replace("MM",n).replace("dd",o).replace("HH",String(a).padStart(2,"0")).replace("hh",l).replace("mm",c).replace("a",u)}function Uw(e){const t=e.match(/^(\d{1,2}):(\d{2})$/);return t&&t[1]&&t[2]?{hours:Math.min(23,Math.max(0,parseInt(t[1],10))),minutes:Math.min(59,Math.max(0,parseInt(t[2],10)))}:{hours:0,minutes:0}}const ET=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),OT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),CT=f.forwardRef(({value:e,onChange:t,placeholder:r="Select date and time",format:n="yyyy-MM-dd HH:mm",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,use24Hour:d=!0,minuteStep:p=1,"aria-label":v,"aria-describedby":g},m)=>{const[h,b]=f.useState(!1),[x,w]=f.useState(()=>e||new Date),[S,E]=f.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),P=x.getFullYear(),O=x.getMonth(),C=Kw(P,O),M=PJ(P,O),$=f.useMemo(()=>{const T=[],k=O===0?11:O-1,G=O===0?P-1:P,ee=Kw(G,k);for(let le=M-1;le>=0;le--)T.push({date:new Date(G,k,ee-le),isOutside:!0});for(let le=1;le<=C;le++)T.push({date:new Date(P,O,le),isOutside:!1});const ne=42-T.length,ie=O===11?0:O+1,oe=O===11?P+1:P;for(let le=1;le<=ne;le++)T.push({date:new Date(oe,ie,le),isOutside:!0});return T},[P,O,C,M]),I=()=>{w(new Date(P,O-1,1))},_=()=>{w(new Date(P,O+1,1))},j=T=>{const{hours:k,minutes:G}=Uw(S),ee=new Date(T.getFullYear(),T.getMonth(),T.getDate(),k,G);t?.(ee)},R=T=>{const k=T.target.value;if(E(k),e){const{hours:G,minutes:ee}=Uw(k),ne=new Date(e);ne.setHours(G,ee),t?.(ne)}},V=()=>{const T=new Date;E(`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`),t?.(T),b(!1)},z=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),W=(T,k)=>z(T)?"disabled":k?"outside":e&&PT(e,T)?"selected":EJ(T)?"today":"default";return f.useEffect(()=>{e&&(w(e),E(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),y.jsxs(mT,{open:h,onOpenChange:b,children:[y.jsx(hT,{asChild:!0,children:y.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:D(ET({variant:s}),l),"aria-label":v||"Choose date and time","aria-describedby":g,"aria-haspopup":"dialog","aria-expanded":h,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?OJ(e,n,d):r}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(Mk,{className:"text-tertiary h-4 w-4 shrink-0"}),y.jsx(p0,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&y.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),y.jsx(gT,{children:y.jsxs(yT,{className:D("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:I,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ll,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Ww[O]," ",P]}),y.jsx("button",{type:"button",onClick:_,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(cl,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:SJ.map(T=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:T},T))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Ww[O]} ${P}`,children:$.map(({date:T,isOutside:k},G)=>{const ee=W(T,k),ne=ee==="disabled";return y.jsx("button",{type:"button",onClick:()=>!ne&&j(T),disabled:ne,className:OT({state:ee}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":ee==="selected",tabIndex:k?-1:0,children:T.getDate()},G)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("label",{htmlFor:"time-input",className:"text-secondary text-sm font-medium",children:"Time"}),y.jsx("input",{id:"time-input",type:"time",value:S,onChange:R,step:p*60,className:D("bg-card text-body text-primary border-border rounded-md border px-2 py-1","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Select time"})]})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:V,className:D("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Now"})})]})})]})});CT.displayName="DateTimePicker";const AT=te("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),_T=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>{const i=t??"horizontal";return y.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":r?void 0:i,className:D(AT({orientation:i,className:e})),...n})});_T.displayName="Divider";var bc="DropdownMenu",[CJ]=Be(bc,[hc]),dt=hc(),[AJ,TT]=CJ(bc),jT=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=dt(t),c=f.useRef(null),[u,d]=nt({prop:o,defaultProp:i??!1,onChange:a,caller:bc});return y.jsx(AJ,{scope:t,triggerId:vt(),triggerRef:c,contentId:vt(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:y.jsx(p_,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};jT.displayName=bc;var MT="DropdownMenuTrigger",NT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=TT(MT,r),a=dt(r);return y.jsx(v_,{asChild:!0,...a,children:y.jsx(Q.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":n?"":void 0,disabled:n,...o,ref:cr(t,i.triggerRef),onPointerDown:U(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:U(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});NT.displayName=MT;var _J="DropdownMenuPortal",IT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=dt(t);return y.jsx(m_,{...n,...r})};IT.displayName=_J;var kT="DropdownMenuContent",RT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=TT(kT,r),i=dt(r),a=f.useRef(!1);return y.jsx(h_,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:U(e.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:U(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(a.current=!0)}),style:{...e.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)"}})});RT.displayName=kT;var TJ="DropdownMenuGroup",DT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(g_,{...o,...n,ref:t})});DT.displayName=TJ;var jJ="DropdownMenuLabel",$T=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(y_,{...o,...n,ref:t})});$T.displayName=jJ;var MJ="DropdownMenuItem",LT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(b_,{...o,...n,ref:t})});LT.displayName=MJ;var NJ="DropdownMenuCheckboxItem",FT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(x_,{...o,...n,ref:t})});FT.displayName=NJ;var IJ="DropdownMenuRadioGroup",zT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(w_,{...o,...n,ref:t})});zT.displayName=IJ;var kJ="DropdownMenuRadioItem",BT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(S_,{...o,...n,ref:t})});BT.displayName=kJ;var RJ="DropdownMenuItemIndicator",VT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(P_,{...o,...n,ref:t})});VT.displayName=RJ;var DJ="DropdownMenuSeparator",WT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(E_,{...o,...n,ref:t})});WT.displayName=DJ;var $J="DropdownMenuArrow",LJ=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(O_,{...o,...n,ref:t})});LJ.displayName=$J;var FJ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=dt(t),[s,l]=nt({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return y.jsx(C_,{...a,open:s,onOpenChange:l,children:r})},zJ="DropdownMenuSubTrigger",KT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(A_,{...o,...n,ref:t})});KT.displayName=zJ;var BJ="DropdownMenuSubContent",UT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(__,{...o,...n,ref:t,style:{...e.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)"}})});UT.displayName=BJ;var VJ=jT,HT=NT,WJ=IT,KJ=RT,UJ=DT,HJ=$T,GJ=LT,qJ=FT,YJ=zT,XJ=BT,GT=VT,ZJ=WT,JJ=FJ,QJ=KT,eQ=UT;const tQ=VJ,rQ=HT,nQ=UJ,qT=WJ,oQ=JJ,iQ=YJ,YT=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(QJ,{ref:o,className:D("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));YT.displayName="DropdownMenuSubTrigger";const XT=f.forwardRef(({className:e,...t},r)=>y.jsx(eQ,{ref:r,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));XT.displayName="DropdownMenuSubContent";const ZT=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>y.jsx(qT,{children:y.jsx(KJ,{ref:n,sideOffset:t,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));ZT.displayName="DropdownMenuContent";const JT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(GJ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));JT.displayName="DropdownMenuItem";const QT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(qJ,{ref:o,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(GT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));QT.displayName="DropdownMenuCheckboxItem";const ej=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(XJ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(GT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));ej.displayName="DropdownMenuRadioItem";const tj=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(HJ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));tj.displayName="DropdownMenuLabel";const rj=f.forwardRef(({className:e,...t},r)=>y.jsx(ZJ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));rj.displayName="DropdownMenuSeparator";const nj=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));nj.displayName="DropdownMenuShortcut";const oj=f.forwardRef(({className:e,iconSize:t="default",...r},n)=>{const o={sm:"h-4 w-4",default:"h-5 w-5",lg:"h-6 w-6"},i={sm:"h-7 w-7",default:"h-8 w-8",lg:"h-10 w-10"};return y.jsxs(HT,{ref:n,className:D("text-secondary inline-flex items-center justify-center rounded-md transition-colors","hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",i[t],e),...r,children:[y.jsx(v0,{className:o[t]}),y.jsx("span",{className:"sr-only",children:"Open menu"})]})});oj.displayName="ActionsMenuButton";const ij=te("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function aQ(e){if(!e)return"";if(e===!0)return"hidden";const t=[];return e.base===!0&&t.push("hidden"),e.sm===!1&&t.push("sm:block"),e.sm===!0&&t.push("sm:hidden"),e.md===!1&&t.push("md:block"),e.md===!0&&t.push("md:hidden"),e.lg===!1&&t.push("lg:block"),e.lg===!0&&t.push("lg:hidden"),e.xl===!1&&t.push("xl:block"),e.xl===!0&&t.push("xl:hidden"),e["2xl"]===!1&&t.push("2xl:block"),e["2xl"]===!0&&t.push("2xl:hidden"),t.join(" ")}const aj=f.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=aQ(r),a=r!==!0;return y.jsx("svg",{ref:o,viewBox:"0 0 179.96 38.58",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:D(ij({size:t,className:e})),"aria-label":"Engrate",role:"img",...n,children:y.jsx("g",{id:"engrate-logo",children:y.jsxs("g",{children:[a&&y.jsxs("g",{className:i,children:[y.jsx("path",{fill:"var(--color-primary)",d:"M57.65,27.3c3.61,0,4.09-.62,4.14-3.96.09-5.72.18-11.88.18-18.22,0-3.34-.53-3.96-3.87-3.96V.27h21.21l.92,5.02h-.7c-2.02-2.51-3.26-3.96-7.39-3.96h-3.79c-2.2,0-2.6.22-2.6,1.76v9.59h4.53c3.78,0,4.14-.57,4.8-3.83h.97v9.59h-.97c-.48-3.43-1.23-4.27-4.4-4.27h-4.93v11.09c0,1.5.66,1.85,2.82,1.85h5.81c4.18,0,5.02-.79,7.83-5.5h.84c-.44,1.14-1.14,4.89-1.5,6.56h-23.9v-.88Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M84.6,27.47c2.38,0,2.9-.62,2.9-3.96v-8.23c0-1.01-.22-1.19-1.06-1.72-.35-.22-.53-.31-.53-.57,0-.35.26-.48.75-.75,1.5-.92,2.68-1.67,3.26-1.67.22,0,.48.13.48.53v1.8c1.19-.79,2.99-2.07,5.85-2.07,2.6,0,6.03.97,6.03,6.12v6.56c0,3.34.53,3.96,2.6,3.96v.7h-8.27v-.7c2.07,0,2.6-.62,2.6-3.96v-5.81c0-3.57-1.54-5.37-4.58-5.37-1.8,0-3.34,1.36-4.05,2.2v8.98c0,3.34.53,3.96,2.68,3.96v.7h-8.67v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M113.68,23.49c-.97,0-1.5-.09-1.98-.22-1.14.79-2.6,1.36-2.6,2.38,0,1.23,1.36,1.5,9.07,1.85,3.17.13,4.49,1.5,4.49,3.83,0,5.72-5.59,7.26-10.52,7.26-3.35,0-7.7-.79-7.7-3.7,0-2.07,1.5-3.12,5.02-4.88-1.8-.88-3.04-2.38-3.04-3.65,0-1.41,2.11-2.07,4.09-3.56-2.46-1.06-4.09-2.95-4.09-5.77,0-3.83,2.86-6.16,6.91-6.16,2.77,0,5.15,1.06,5.99,1.06.92,0,2.2-.53,3.43-.53,1.01,0,1.5.26,1.5.92,0,.75-.53,1.19-1.41,1.19s-1.36-.53-2.07-.53c-.62,0-.97.35-.97.92,0,1.19.57,1.41.57,3.48,0,3.61-3.34,6.12-6.69,6.12M113.5,37.7c3.57,0,6.95-1.58,6.95-4.8,0-1.85-1.54-2.6-9.33-2.6-1.72.66-3.61,1.98-3.61,4.05,0,2.2,2.73,3.34,5.99,3.34M113.02,11.74c-2.33,0-3.78,2.07-3.78,5.06,0,3.26,1.54,5.81,4.53,5.81,2.33,0,3.78-1.5,3.78-4.31,0-3.7-1.54-6.56-4.53-6.56"}),y.jsx("path",{fill:"var(--color-primary)",d:"M124.99,27.47c2.11,0,2.64-.62,2.64-3.96v-7.83c0-1.06-.22-1.5-1.06-1.89-.62-.31-.84-.35-.84-.62,0-.35.35-.48,2.02-1.23,1.94-.84,2.02-1.36,2.51-1.36.31,0,.44.18.44.48v1.45c0,.35.18.53.44.53.4,0,2.6-2.2,4.84-2.2,1.19,0,1.94.53,1.94,1.54,0,.79-.48,1.5-2.02,1.5-.57,0-1.63-.13-2.42-.13-1.58,0-2.77.79-2.77,3.17v7.22c0,2.73.48,3.26,2.73,3.34v.7h-8.45v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M148.71,15.68c0-3.04-1.14-3.79-2.99-3.79-4.05,0-2.38,4.53-4.97,4.53-.75,0-1.28-.4-1.28-1.19,0-1.63,3.96-4.4,7.35-4.4,2.95,0,4.97,1.5,4.97,5.28v9.64c0,1.01.62,1.28,1.1,1.28.66,0,1.1-.26,1.54-.66l.44.48c-.62.97-2.11,1.67-3.43,1.67s-2.64-.97-2.73-2.6c-2.07,1.89-4.09,2.6-5.77,2.6-2.51,0-4.27-1.5-4.27-3.43,0-3.04,2.51-3.92,7.66-5.24l2.38-.62v-3.56ZM148.71,19.95l-1.76.44c-3.3.84-5.02,1.85-5.02,3.7,0,1.63.92,2.95,2.91,2.95,1.41,0,2.68-.88,3.87-1.8v-5.28Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M165.13,12.68h-3.08c-1.8,0-2.42.44-2.42,3.17v8.49c0,1.94,1.19,2.68,2.82,2.68,1.23,0,2.24-.22,3.08-.35v.88c-1.23.44-2.46.97-4.45.97-3.65,0-4.53-2.29-4.53-4.4v-9.77c0-1.45-.09-1.58-.53-1.76-.35-.13-1.41-.18-1.41-.62,0-.31.4-.62.75-.97,2.95-2.99,3.34-3.61,3.79-3.61.26,0,.48.13.48.7v3.08h5.5v1.5Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M168.16,17.08c-.18.66-.31,1.41-.31,2.6,0,3.92,2.38,7.35,6.47,7.35,1.76,0,3.17-.62,5.11-1.94l.53.7c-1.98,1.58-3.92,2.99-6.78,2.99-5.24,0-8.41-4.49-8.41-8.36,0-5.55,3.87-9.33,8.49-9.33,3.7,0,6.6,3.04,6.6,5.77,0,.18-.13.22-.44.22h-11.27ZM176.79,16.03c-.18-2.38-1.72-4.05-3.96-4.05-2.55,0-3.96,2.07-4.45,4.05h8.41Z"})]}),y.jsxs("g",{children:[y.jsx("path",{fill:"var(--color-sunflower)",d:"M.2,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L7.28.28c-.17-.37-.62-.37-.79,0L.17,13.8c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M12.25,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L19.33.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M24.31,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L31.39.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"})]})]})})})});aj.displayName="EngrateLogo";const sj=te("font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",{variants:{variant:{default:"text-primary",primary:"text-primary",secondary:"text-secondary"},size:{default:"text-xs",sm:"text-[10px]",lg:"text-sm"}},defaultVariants:{variant:"default",size:"default"}}),lj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(sj({variant:t,size:r,className:e})),ref:i,...o})});lj.displayName="Eyebrow";const cj=te("w-full font-sans",{variants:{variant:{default:"border-border border-t bg-white",filled:"bg-main border-border border-t",dark:"bg-primary text-white"},size:{sm:"px-4 py-6",default:"px-6 py-10",lg:"px-8 py-16"}},defaultVariants:{variant:"default",size:"default"}}),uj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"footer";return y.jsx(a,{ref:i,className:D(cj({variant:t,size:r,className:e})),...o})});uj.displayName="Footer";const dj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});dj.displayName="FooterContent";const fj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex flex-col gap-3",e),...r})});fj.displayName="FooterSection";const pj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"h3";return y.jsx(o,{ref:n,className:D("text-small font-medium",e),...r})});pj.displayName="FooterHeading";const vj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("text-small text-secondary flex flex-col gap-2",e),...r})});vj.displayName="FooterLinks";const mj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});mj.displayName="FooterBottom";const hj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"p";return y.jsx(o,{ref:n,className:D("text-small text-secondary",e),...r})});hj.displayName="FooterCopyright";const Rm=f.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?y.jsx("p",{ref:o,className:D("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Rm.displayName="FormMessage";var sQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lQ=sQ.reduce((e,t)=>{const r=MS(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cQ="Label",gj=f.forwardRef((e,t)=>y.jsx(lQ.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));gj.displayName=cQ;var uQ=gj;const yj=te("text-tertiary font-sans font-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-50",{variants:{size:{default:"text-small",sm:"text-label"}},defaultVariants:{size:"default"}}),Dm=f.forwardRef(({className:e,size:t,...r},n)=>y.jsx(uQ,{ref:n,className:D(yj({size:t}),e),...r}));Dm.displayName="Label";const bj=f.forwardRef(({className:e,label:t,labelSize:r,hint:n,error:o,htmlFor:i,children:a,...s},l)=>{const c=i?`${i}-message`:void 0;return y.jsxs("div",{ref:l,className:D("flex flex-col gap-1.5",e),...s,children:[t&&y.jsx(Dm,{htmlFor:i,size:r,children:t}),a,(n||o)&&y.jsx(Rm,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});bj.displayName="FormField";const dQ=te("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"}},defaultVariants:{cols:1,gap:"md",align:"stretch",justify:"stretch"}}),fQ={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},pQ={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},vQ={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},mQ={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function yn(e,t,r){if(!e)return r?t[r]:"";if(typeof e=="object"){const n=[];return e.base!==void 0?n.push(t[e.base]):r&&n.push(t[r]),e.sm!==void 0&&n.push(`sm:${t[e.sm].split(":").pop()}`),e.md!==void 0&&n.push(`md:${t[e.md].split(":").pop()}`),e.lg!==void 0&&n.push(`lg:${t[e.lg].split(":").pop()}`),e.xl!==void 0&&n.push(`xl:${t[e.xl].split(":").pop()}`),e["2xl"]!==void 0&&n.push(`2xl:${t[e["2xl"]].split(":").pop()}`),n.join(" ")}return t[e]}const xj=f.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Ee:i,u=yn(t,fQ,1),d=yn(r,pQ,"md"),p=yn(n,vQ,"stretch"),v=yn(o,mQ,"stretch");return y.jsx(c,{className:D("grid",u,d,p,v,e),ref:l,...s})});xj.displayName="Grid";const hQ=te("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"}},defaultVariants:{}}),gQ={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},yQ={1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},bQ={1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"},wj=f.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Ee:o,c=yn(t,gQ),u=yn(r,yQ),d=yn(n,bQ);return y.jsx(l,{className:D(c,u,d,e),ref:s,...a})});wj.displayName="GridItem";const Sj=te("flex w-full items-center justify-between font-sans",{variants:{variant:{default:"border-border border-b bg-white",transparent:"bg-transparent",filled:"bg-main border-border border-b"},size:{sm:"h-12 px-4",default:"h-16 px-6",lg:"h-20 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"default",sticky:!1}}),Pj=f.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"header";return y.jsx(s,{ref:a,className:D(Sj({variant:t,size:r,sticky:n,className:e})),...i})});Pj.displayName="Header";const Ej=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center",e),...r})});Ej.displayName="HeaderLogo";const Oj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("flex items-center gap-6",e),...r})});Oj.displayName="HeaderNav";const Cj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center gap-3",e),...r})});Cj.displayName="HeaderActions";const Aj=te("text-primary font-normal",{variants:{level:{hero:"font-display text-hero",h1:"text-h1 font-sans font-normal",h2:"text-h2 font-sans font-normal",h3:"text-h3 font-sans font-normal",h4:"text-h4 font-sans font-normal"}},defaultVariants:{level:"h1"}}),xQ={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},_j=f.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??xQ[t??"h1"],s=n?Ee:a;return y.jsx(s,{className:D(Aj({level:t,className:e})),ref:i,...o})});_j.displayName="Heading";const Tj=te("bg-card text-body text-primary placeholder:text-tertiary flex h-10 w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"}},defaultVariants:{variant:"default"}}),jj=f.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>y.jsx("input",{type:r,className:D(Tj({variant:t}),e),ref:o,...n}));jj.displayName="Input";const Mj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),za=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Nj=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,strokeWidth:c=2,curved:u=!0,showDots:d=!0,...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const m=r[0];return m?Object.keys(m).filter(b=>b!=="label"&&typeof m[b]=="number").map((b,x)=>({key:b,name:b.charAt(0).toUpperCase()+b.slice(1),color:za[x%za.length]})):[]},[r,n]);return y.jsx("div",{ref:v,className:D(Mj({size:t,className:e})),role:"img",...p,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(X7,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(cm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),y.jsx(Gs,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(qs,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0}),a&&y.jsx(qv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"}}),i&&y.jsx(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),g.map((m,h)=>y.jsx(jC,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||za[h%za.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Nj.displayName="LineChart";const Ij=te("focus-visible:ring-sunflower inline-flex items-center font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"text-primary hover:text-secondary underline underline-offset-4",muted:"text-secondary hover:text-primary underline underline-offset-4",nav:"text-primary hover:text-secondary no-underline hover:underline hover:underline-offset-4"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),kj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"a";return y.jsx(a,{className:D(Ij({variant:t,size:r,className:e})),ref:i,...o})});kj.displayName="Link";const wQ=uS,SQ=dS,Rj=fS,PQ=vl,$m=f.forwardRef(({className:e,...t},r)=>y.jsx(pS,{ref:r,className:D("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));$m.displayName="ModalOverlay";const Dj=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]",full:"max-w-[95vw]"}},defaultVariants:{size:"default"}}),$j=f.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>y.jsxs(Rj,{children:[y.jsx($m,{}),y.jsxs(vS,{ref:i,className:D(Dj({size:r}),e),...o,children:[t,n&&y.jsxs(vl,{className:D("absolute top-4 right-4 rounded-sm opacity-70","ring-offset-main transition-opacity","hover:opacity-100","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none","data-[state=open]:bg-alt data-[state=open]:text-secondary"),children:[y.jsx(m0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$j.displayName="ModalContent";const Lj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));Lj.displayName="ModalHeader";const Fj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));Fj.displayName="ModalFooter";const zj=f.forwardRef(({className:e,...t},r)=>y.jsx(mS,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));zj.displayName="ModalTitle";const Bj=f.forwardRef(({className:e,...t},r)=>y.jsx(hS,{ref:r,className:D("text-secondary text-sm",e),...t}));Bj.displayName="ModalDescription";const Vj=te("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),Wj=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-primary hover:bg-alt active:bg-contrast rounded-full",active:"bg-sunflower text-primary hover:bg-sunflower-hover rounded-full",ellipsis:"text-tertiary cursor-default"},size:{sm:"text-small h-7 w-7",default:"text-small h-9 w-9",lg:"text-body h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Kj=f.forwardRef(({className:e,size:t,page:r,totalPages:n,onPageChange:o,siblingCount:i=1,...a},s)=>{const l=f.useMemo(()=>{const d=i*2+3+2;if(n<=d)return Array.from({length:n},(h,b)=>b+1);const p=Math.max(r-i,1),v=Math.min(r+i,n),g=p>2,m=v<n-1;if(!g&&m){const h=3+2*i;return[...Array.from({length:h},(x,w)=>w+1),"ellipsis-right",n]}if(g&&!m){const h=3+2*i;return[1,"ellipsis-left",...Array.from({length:h},(x,w)=>n-h+w+1)]}return g&&m?[1,"ellipsis-left",...Array.from({length:i*2+1},(b,x)=>p+x),"ellipsis-right",n]:Array.from({length:n},(h,b)=>b+1)},[r,n,i]),c=u=>{u>=1&&u<=n&&u!==r&&o?.(u)};return y.jsxs("nav",{ref:s,role:"navigation","aria-label":"Pagination",className:D(Vj({size:t,className:e})),...a,children:[y.jsx(ro,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:y.jsx(ll,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?y.jsx(ro,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:y.jsx(v0,{className:"h-4 w-4"})},u):y.jsx(ro,{size:t,variant:u===r?"active":"default",onClick:()=>c(u),"aria-label":`Go to page ${u}`,"aria-current":u===r?"page":void 0,children:u},u)),y.jsx(ro,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:y.jsx(cl,{className:"h-4 w-4"})})]})});Kj.displayName="Pagination";const ro=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>y.jsx("button",{ref:o,type:"button",className:D(Wj({variant:t,size:r,className:e})),...n}));ro.displayName="PaginationItem";const Uj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Hw=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Hj=f.forwardRef(({className:e,size:t,data:r,showLegend:n=!0,showTooltip:o=!0,innerRadius:i=0,outerRadius:a="80%",paddingAngle:s=0,showLabels:l=!1,startAngle:c=90,endAngle:u=-270,...d},p)=>{const v=f.useMemo(()=>r.reduce((m,h)=>m+h.value,0),[r]),g=f.useCallback(m=>{const{cx:h=0,cy:b=0,midAngle:x=0,percent:w=0}=m,S=m.innerRadius??0,E=m.outerRadius??0,P=Math.PI/180,O=S+(E-S)*.5,C=h+O*Math.cos(-x*P),M=b+O*Math.sin(-x*P);return y.jsx("text",{x:C,y:M,fill:"var(--color-white)",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fontFamily:"var(--font-sans)",fontWeight:500},children:`${(w*100).toFixed(0)}%`})},[]);return y.jsx("div",{ref:p,className:D(Uj({size:t,className:e})),role:"img",...d,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(uY,{children:[o&&y.jsx(qv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"},formatter:(m,h)=>[`${m} (${v>0?(Number(m)/v*100).toFixed(1):0}%)`,h]}),n&&y.jsx(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),y.jsx(pC,{data:r,cx:"50%",cy:"50%",innerRadius:i,outerRadius:a,paddingAngle:s,dataKey:"value",nameKey:"name",startAngle:c,endAngle:u,label:l?g:!1,labelLine:!1,children:r.map((m,h)=>y.jsx(Hi,{fill:m.color||Hw[h%Hw.length]},`cell-${m.name}-${h}`))})]})})})});Hj.displayName="PieChart";const Gj=te("bg-border relative w-full overflow-hidden rounded-full",{variants:{size:{sm:"h-1",default:"h-2",lg:"h-3",xl:"h-4"}},defaultVariants:{size:"default"}}),qj=te("h-full transition-all duration-300 ease-out",{variants:{variant:{default:"bg-sunflower",muted:"bg-secondary",success:"bg-electric-blue"},animated:{true:"animate-pulse",false:""}},defaultVariants:{variant:"default",animated:!1}}),Yj=f.forwardRef(({className:e,value:t=0,max:r=100,size:n,variant:o,animated:i,label:a="Progress",indeterminate:s=!1,...l},c)=>{const u=Math.min(Math.max(t/r*100,0),100);return y.jsx("div",{ref:c,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":a,className:D(Gj({size:n,className:e})),...l,children:y.jsx("div",{className:D(qj({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});Yj.displayName="ProgressIndicator";var Lm="Radio",[EQ,Xj]=Be(Lm),[OQ,CQ]=EQ(Lm),Zj=f.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...u}=e,[d,p]=f.useState(null),v=re(t,h=>p(h)),g=f.useRef(!1),m=d?c||!!d.closest("form"):!0;return y.jsxs(OQ,{scope:r,checked:o,disabled:a,children:[y.jsx(Q.button,{type:"button",role:"radio","aria-checked":o,"data-state":tM(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:v,onClick:U(e.onClick,h=>{o||l?.(),m&&(g.current=h.isPropagationStopped(),g.current||h.stopPropagation())})}),m&&y.jsx(eM,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});Zj.displayName=Lm;var Jj="RadioIndicator",Qj=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=CQ(Jj,r);return y.jsx(lt,{present:n||i.checked,children:y.jsx(Q.span,{"data-state":tM(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});Qj.displayName=Jj;var AQ="RadioBubbleInput",eM=f.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=qi(r),c=Yi(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx(Q.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});eM.displayName=AQ;function tM(e){return e?"checked":"unchecked"}var _Q=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xc="RadioGroup",[TQ]=Be(xc,[mc,Xj]),rM=mc(),nM=Xj(),[jQ,MQ]=TQ(xc),oM=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...p}=e,v=rM(r),g=xo(c),[m,h]=nt({prop:i,defaultProp:o??null,onChange:d,caller:xc});return y.jsx(jQ,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:h,children:y.jsx(BA,{asChild:!0,...v,orientation:l,dir:g,loop:u,children:y.jsx(Q.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...p,ref:t})})})});oM.displayName=xc;var iM="RadioGroupItem",aM=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=MQ(iM,r),a=i.disabled||n,s=rM(r),l=nM(r),c=f.useRef(null),u=re(t,c),d=i.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const v=m=>{_Q.includes(m.key)&&(p.current=!0)},g=()=>p.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),y.jsx(VA,{asChild:!0,...s,focusable:!a,active:d,children:y.jsx(Zj,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:U(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:U(o.onFocus,()=>{p.current&&c.current?.click()})})})});aM.displayName=iM;var NQ="RadioGroupIndicator",sM=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=nM(r);return y.jsx(Qj,{...o,...n,ref:t})});sM.displayName=NQ;var IQ=oM,kQ=aM,RQ=sM;const lM=f.forwardRef(({className:e,...t},r)=>y.jsx(IQ,{className:D("grid gap-2",e),...t,ref:r}));lM.displayName="RadioGroup";const cM=f.forwardRef(({className:e,...t},r)=>y.jsx(kQ,{ref:r,className:D("border-border bg-card aspect-square h-5 w-5 rounded-full border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower",e),...t,children:y.jsx(RQ,{className:"flex items-center justify-center",children:y.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));cM.displayName="RadioGroupItem";function nl(e,[t,r]){return Math.min(r,Math.max(t,e))}function DQ(e){const t=$Q(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(FQ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function $Q(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=BQ(o),s=zQ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var LQ=Symbol("radix.slottable");function FQ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===LQ}function zQ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function BQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var uM=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"}),VQ="VisuallyHidden",wc=f.forwardRef((e,t)=>y.jsx(Q.span,{...e,ref:t,style:{...uM,...e.style}}));wc.displayName=VQ;var WQ=wc,KQ=[" ","Enter","ArrowUp","ArrowDown"],UQ=[" ","Enter"],kn="Select",[Sc,Pc,HQ]=bo(kn),[Ro]=Be(kn,[HQ,rn]),Ec=rn(),[GQ,an]=Ro(kn),[qQ,YQ]=Ro(kn),dM=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:v,form:g}=e,m=Ec(t),[h,b]=f.useState(null),[x,w]=f.useState(null),[S,E]=f.useState(!1),P=xo(c),[O,C]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:kn}),[M,$]=nt({prop:a,defaultProp:s,onChange:l,caller:kn}),I=f.useRef(null),_=h?g||!!h.closest("form"):!0,[j,R]=f.useState(new Set),V=Array.from(j).map(z=>z.props.value).join(";");return y.jsx(Zi,{...m,children:y.jsxs(GQ,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:vt(),value:M,onValueChange:$,open:O,onOpenChange:C,dir:P,triggerPointerDownPosRef:I,disabled:p,children:[y.jsx(Sc.Provider,{scope:t,children:y.jsx(qQ,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(z=>{R(W=>new Set(W).add(z))},[]),onNativeOptionRemove:f.useCallback(z=>{R(W=>{const T=new Set(W);return T.delete(z),T})},[]),children:r})}),_?y.jsxs(DM,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:d,value:M,onChange:z=>$(z.target.value),disabled:p,form:g,children:[M===void 0?y.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};dM.displayName=kn;var fM="SelectTrigger",pM=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Ec(r),a=an(fM,r),s=a.disabled||n,l=re(t,a.onTriggerChange),c=Pc(r),u=f.useRef("touch"),[d,p,v]=LM(m=>{const h=c().filter(w=>!w.disabled),b=h.find(w=>w.value===a.value),x=FM(h,m,b);x!==void 0&&a.onValueChange(x.value)}),g=m=>{s||(a.onOpenChange(!0),v()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return y.jsx(Ji,{asChild:!0,...i,children:y.jsx(Q.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":$M(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&g(m)}),onPointerDown:U(o.onPointerDown,m=>{u.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const h=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(h&&m.key===" ")&&KQ.includes(m.key)&&(g(),m.preventDefault())})})})});pM.displayName=fM;var vM="SelectValue",mM=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=an(vM,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=re(t,l.onValueNodeChange);return Ye(()=>{c(u)},[c,u]),y.jsx(Q.span,{...s,ref:d,style:{pointerEvents:"none"},children:$M(l.value)?y.jsx(y.Fragment,{children:a}):i})});mM.displayName=vM;var XQ="SelectIcon",hM=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return y.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});hM.displayName=XQ;var ZQ="SelectPortal",gM=e=>y.jsx(Ln,{asChild:!0,...e});gM.displayName=ZQ;var Rn="SelectContent",yM=f.forwardRef((e,t)=>{const r=an(Rn,e.__scopeSelect),[n,o]=f.useState();if(Ye(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?wi.createPortal(y.jsx(bM,{scope:e.__scopeSelect,children:y.jsx(Sc.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),i):null}return y.jsx(xM,{...e,ref:t})});yM.displayName=Rn;var Ft=10,[bM,sn]=Ro(Rn),JQ="SelectContentImpl",QQ=DQ("SelectContent.RemoveScroll"),xM=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h,...b}=e,x=an(Rn,r),[w,S]=f.useState(null),[E,P]=f.useState(null),O=re(t,K=>S(K)),[C,M]=f.useState(null),[$,I]=f.useState(null),_=Pc(r),[j,R]=f.useState(!1),V=f.useRef(!1);f.useEffect(()=>{if(w)return fl(w)},[w]),ul();const z=f.useCallback(K=>{const[ue,...L]=_().map(F=>F.ref.current),[H]=L.slice(-1),B=document.activeElement;for(const F of K)if(F===B||(F?.scrollIntoView({block:"nearest"}),F===ue&&E&&(E.scrollTop=0),F===H&&E&&(E.scrollTop=E.scrollHeight),F?.focus(),document.activeElement!==B))return},[_,E]),W=f.useCallback(()=>z([C,w]),[z,C,w]);f.useEffect(()=>{j&&W()},[j,W]);const{onOpenChange:T,triggerPointerDownPosRef:k}=x;f.useEffect(()=>{if(w){let K={x:0,y:0};const ue=H=>{K={x:Math.abs(Math.round(H.pageX)-(k.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(k.current?.y??0))}},L=H=>{K.x<=10&&K.y<=10?H.preventDefault():w.contains(H.target)||T(!1),document.removeEventListener("pointermove",ue),k.current=null};return k.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",L,{capture:!0})}}},[w,T,k]),f.useEffect(()=>{const K=()=>T(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[T]);const[G,ee]=LM(K=>{const ue=_().filter(B=>!B.disabled),L=ue.find(B=>B.ref.current===document.activeElement),H=FM(ue,K,L);H&&setTimeout(()=>H.ref.current.focus())}),ne=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&(M(K),H&&(V.current=!0))},[x.value]),ie=f.useCallback(()=>w?.focus(),[w]),oe=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&I(K)},[x.value]),le=n==="popper"?$f:wM,Oe=le===$f?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(bM,{scope:r,content:w,viewport:E,onViewportChange:P,itemRefCallback:ne,selectedItem:C,onItemLeave:ie,itemTextRefCallback:oe,focusSelectedItem:W,selectedItemText:$,position:n,isPositioned:j,searchRef:G,children:y.jsx(Pi,{as:QQ,allowPinchZoom:!0,children:y.jsx(Si,{asChild:!0,trapped:x.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:U(o,K=>{x.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:K=>K.preventDefault(),...b,...Oe,onPlaced:()=>R(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,K=>{const ue=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ue&&K.key.length===1&&ee(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let H=_().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(K.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const B=K.target,F=H.indexOf(B);H=H.slice(F+1)}setTimeout(()=>z(H)),K.preventDefault()}})})})})})})});xM.displayName=JQ;var eee="SelectItemAlignedPosition",wM=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=an(Rn,r),a=sn(Rn,r),[s,l]=f.useState(null),[c,u]=f.useState(null),d=re(t,O=>u(O)),p=Pc(r),v=f.useRef(!1),g=f.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:b,focusSelectedItem:x}=a,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&h&&b){const O=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),M=i.valueNode.getBoundingClientRect(),$=b.getBoundingClientRect();if(i.dir!=="rtl"){const B=$.left-C.left,F=M.left-B,fe=O.left-F,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-Ft,Lt=nl(F,[Ft,Math.max(Ft,et-Qe)]);s.style.minWidth=se+"px",s.style.left=Lt+"px"}else{const B=C.right-$.right,F=window.innerWidth-M.right-B,fe=window.innerWidth-O.right-F,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-Ft,Lt=nl(F,[Ft,Math.max(Ft,et-Qe)]);s.style.minWidth=se+"px",s.style.right=Lt+"px"}const I=p(),_=window.innerHeight-Ft*2,j=m.scrollHeight,R=window.getComputedStyle(c),V=parseInt(R.borderTopWidth,10),z=parseInt(R.paddingTop,10),W=parseInt(R.borderBottomWidth,10),T=parseInt(R.paddingBottom,10),k=V+z+j+T+W,G=Math.min(h.offsetHeight*5,k),ee=window.getComputedStyle(m),ne=parseInt(ee.paddingTop,10),ie=parseInt(ee.paddingBottom,10),oe=O.top+O.height/2-Ft,le=_-oe,Oe=h.offsetHeight/2,K=h.offsetTop+Oe,ue=V+z+K,L=k-ue;if(ue<=oe){const B=I.length>0&&h===I[I.length-1].ref.current;s.style.bottom="0px";const F=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(le,Oe+(B?ie:0)+F+W),se=ue+fe;s.style.height=se+"px"}else{const B=I.length>0&&h===I[0].ref.current;s.style.top="0px";const fe=Math.max(oe,V+m.offsetTop+(B?ne:0)+Oe)+L;s.style.height=fe+"px",m.scrollTop=ue-oe+m.offsetTop}s.style.margin=`${Ft}px 0`,s.style.minHeight=G+"px",s.style.maxHeight=_+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[p,i.trigger,i.valueNode,s,c,m,h,b,i.dir,n]);Ye(()=>w(),[w]);const[S,E]=f.useState();Ye(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const P=f.useCallback(O=>{O&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return y.jsx(ree,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:y.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:y.jsx(Q.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});wM.displayName=eee;var tee="SelectPopperPosition",$f=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=Ft,...i}=e,a=Ec(r);return y.jsx(pc,{...a,...i,ref:t,align:n,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)"}})});$f.displayName=tee;var[ree,Fm]=Ro(Rn,{}),Lf="SelectViewport",SM=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=sn(Lf,r),a=Fm(Lf,r),s=re(t,i.onViewportChange),l=f.useRef(0);return y.jsxs(y.Fragment,{children:[y.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:n}),y.jsx(Sc.Slot,{scope:r,children:y.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p?.current&&d){const v=Math.abs(l.current-u.scrollTop);if(v>0){const g=window.innerHeight-Ft*2,m=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),b=Math.max(m,h);if(b<g){const x=b+v,w=Math.min(g,x),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});SM.displayName=Lf;var PM="SelectGroup",[nee,oee]=Ro(PM),EM=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vt();return y.jsx(nee,{scope:r,id:o,children:y.jsx(Q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});EM.displayName=PM;var OM="SelectLabel",CM=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=oee(OM,r);return y.jsx(Q.div,{id:o.id,...n,ref:t})});CM.displayName=OM;var ol="SelectItem",[iee,AM]=Ro(ol),_M=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=an(ol,r),l=sn(ol,r),c=s.value===n,[u,d]=f.useState(i??""),[p,v]=f.useState(!1),g=re(t,x=>l.itemRefCallback?.(x,n,o)),m=vt(),h=f.useRef("touch"),b=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")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 y.jsx(iee,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(Sc.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:y.jsx(Q.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:U(a.onFocus,()=>v(!0)),onBlur:U(a.onBlur,()=>v(!1)),onClick:U(a.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:U(a.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:U(a.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:U(a.onPointerMove,x=>{h.current=x.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(UQ.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});_M.displayName=ol;var Jo="SelectItemText",TM=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=an(Jo,r),s=sn(Jo,r),l=AM(Jo,r),c=YQ(Jo,r),[u,d]=f.useState(null),p=re(t,b=>d(b),l.onItemTextChange,b=>s.itemTextRefCallback?.(b,l.value,l.disabled)),v=u?.textContent,g=f.useMemo(()=>y.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=c;return Ye(()=>(m(g),()=>h(g)),[m,h,g]),y.jsxs(y.Fragment,{children:[y.jsx(Q.span,{id:l.textId,...i,ref:p}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?wi.createPortal(i.children,a.valueNode):null]})});TM.displayName=Jo;var jM="SelectItemIndicator",MM=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return AM(jM,r).isSelected?y.jsx(Q.span,{"aria-hidden":!0,...n,ref:t}):null});MM.displayName=jM;var Ff="SelectScrollUpButton",NM=f.forwardRef((e,t)=>{const r=sn(Ff,e.__scopeSelect),n=Fm(Ff,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(kM,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});NM.displayName=Ff;var zf="SelectScrollDownButton",IM=f.forwardRef((e,t)=>{const r=sn(zf,e.__scopeSelect),n=Fm(zf,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(kM,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});IM.displayName=zf;var kM=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=sn("SelectScrollButton",r),a=f.useRef(null),s=Pc(r),l=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Ye(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),y.jsx(Q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:U(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),aee="SelectSeparator",RM=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return y.jsx(Q.div,{"aria-hidden":!0,...n,ref:t})});RM.displayName=aee;var Bf="SelectArrow",see=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ec(r),i=an(Bf,r),a=sn(Bf,r);return i.open&&a.position==="popper"?y.jsx(vc,{...o,...n,ref:t}):null});see.displayName=Bf;var lee="SelectBubbleInput",DM=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(n,o),a=qi(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.select,{...r,style:{...uM,...r.style},ref:i,defaultValue:t})});DM.displayName=lee;function $M(e){return e===""||e===void 0}function LM(e){const t=st(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(a=>{const s=r.current+a;t(s),(function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function FM(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=cee(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function cee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var uee=dM,dee=pM,fee=mM,pee=hM,vee=gM,mee=yM,hee=SM,gee=EM,yee=CM,bee=_M,xee=TM,wee=MM,See=NM,Pee=IM,Eee=RM;const Oee=uee,Cee=gee,Aee=fee,zM=f.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>y.jsxs(dee,{ref:o,className:D("bg-card text-body text-primary flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors","placeholder:text-tertiary","focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",r==="default"?"border-border focus-visible:ring-sunflower":"border-error focus-visible:ring-error",e),...n,children:[t,y.jsx(pee,{asChild:!0,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));zM.displayName="SelectTrigger";const zm=f.forwardRef(({className:e,...t},r)=>y.jsx(See,{ref:r,className:D("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m18 15-6-6-6 6"})})}));zm.displayName="SelectScrollUpButton";const Bm=f.forwardRef(({className:e,...t},r)=>y.jsx(Pee,{ref:r,className:D("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})}));Bm.displayName="SelectScrollDownButton";const BM=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>y.jsx(vee,{children:y.jsxs(mee,{ref:o,className:D("border-border bg-card text-primary relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[y.jsx(zm,{}),y.jsx(hee,{className:D("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),y.jsx(Bm,{})]})}));BM.displayName="SelectContent";const VM=f.forwardRef(({className:e,...t},r)=>y.jsx(yee,{ref:r,className:D("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));VM.displayName="SelectLabel";const WM=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(bee,{ref:n,className:D("text-body relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(wee,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),y.jsx(xee,{children:t})]}));WM.displayName="SelectItem";const KM=f.forwardRef(({className:e,...t},r)=>y.jsx(Eee,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));KM.displayName="SelectSeparator";const UM=f.createContext(null);function Oc(){const e=f.useContext(UM);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const HM=te(["border-border bg-alt flex h-dvh flex-col border-r transition-[width] duration-300 ease-in-out","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{variant:{default:"",bordered:"border-border border"},width:{sm:"",default:"",lg:""}},defaultVariants:{variant:"default",width:"default"}}),_ee={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},GM=f.forwardRef(({className:e,variant:t,width:r="default",defaultCollapsed:n=!1,collapsed:o,onCollapsedChange:i,collapsible:a=!0,autoCollapseMobile:s=!0,children:l,...c},u)=>{const[d,p]=f.useState(n),v=o!==void 0,g=v?o:d,m=f.useCallback(x=>{a&&(v||p(x),i?.(x))},[v,i,a]);f.useEffect(()=>{if(!s||!a||typeof window>"u"||!window.matchMedia)return;const x=window.matchMedia("(max-width: 768px)"),w=S=>{m(S.matches)};return w(x),x.addEventListener("change",w),()=>x.removeEventListener("change",w)},[s,a,m]);const h=f.useMemo(()=>({collapsed:g,setCollapsed:m,collapsible:a}),[g,m,a]),b=_ee[r||"default"];return y.jsx(UM.Provider,{value:h,children:y.jsx("aside",{ref:u,className:D(HM({variant:t}),g?b.collapsed:b.expanded,e),"data-collapsed":g,...c,children:l})})});GM.displayName="Sidebar";const qM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex items-center gap-2 px-4 pt-4 pb-2",e),...t}));qM.displayName="SidebarHeader";const YM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex-1 overflow-y-auto px-3 py-2",e),...t}));YM.displayName="SidebarContent";const XM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("border-border mt-auto border-t px-3 py-3",e),...t}));XM.displayName="SidebarFooter";const ZM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("space-y-1 py-2",e),...t}));ZM.displayName="SidebarGroup";const JM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Oc();return n?null:y.jsx("div",{ref:r,className:D("text-tertiary px-3 py-2 font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",e),...t})});JM.displayName="SidebarGroupLabel";const Vf=te(["text-small relative flex w-full items-center gap-3 rounded-md px-3 py-2 font-sans font-normal","text-secondary hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{active:{true:"text-primary",false:""}},defaultVariants:{active:!1}}),QM=f.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Oc(),l=n?Ee:"button",c=t?y.jsx("span",{className:"bg-sunflower absolute top-1 bottom-1 left-0 w-[3px] rounded-full","aria-hidden":"true"}):null,u=y.jsxs(y.Fragment,{children:[c,r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o})]});return n?y.jsx(Ee,{ref:a,className:D(Vf({active:t}),s&&"justify-center px-2",e),...i,children:f.isValidElement(o)?f.cloneElement(o,{children:y.jsxs(y.Fragment,{children:[c,r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o.props.children})]})}):o}):y.jsx(l,{ref:a,className:D(Vf({active:t}),s&&"justify-center px-2",e),...i,children:u})});QM.displayName="SidebarItem";const eN=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Oc();return i?y.jsx("button",{ref:r,type:"button",className:D("text-small flex w-full items-center rounded-md p-2 font-sans font-normal","text-secondary hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),onClick:()=>o(!n),"aria-label":n?"Expand sidebar":"Collapse sidebar",...t,children:n?y.jsx(cl,{className:"h-5 w-5"}):y.jsx(ll,{className:"h-5 w-5"})}):null});eN.displayName="SidebarTrigger";const tN=f.forwardRef(({className:e,...t},r)=>y.jsx("hr",{ref:r,className:D("border-border my-3 border-t",e),...t}));tN.displayName="SidebarSeparator";const rN=te("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),nN=f.forwardRef(({className:e,variant:t,width:r,height:n,style:o,...i},a)=>{const s={...o,...r!==void 0&&{width:typeof r=="number"?`${r}px`:r},...n!==void 0&&{height:typeof n=="number"?`${n}px`:n}};return y.jsx("div",{ref:a,"aria-hidden":"true",className:D(rN({variant:t,className:e})),style:s,...i})});nN.displayName="Skeleton";var oN=["PageUp","PageDown"],iN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],aN={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Do="Slider",[Wf,Tee,jee]=bo(Do),[sN]=Be(Do,[jee]),[Mee,Cc]=sN(Do),lN=f.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[n],value:u,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:v=!1,form:g,...m}=e,h=f.useRef(new Set),b=f.useRef(0),w=a==="horizontal"?Nee:Iee,[S=[],E]=nt({prop:u,defaultProp:c,onChange:I=>{[...h.current][b.current]?.focus(),d(I)}}),P=f.useRef(S);function O(I){const _=Lee(S,I);$(I,_)}function C(I){$(I,b.current)}function M(){const I=P.current[b.current];S[b.current]!==I&&p(S)}function $(I,_,{commit:j}={commit:!1}){const R=Vee(i),V=Wee(Math.round((I-n)/i)*i+n,R),z=nl(V,[n,o]);E((W=[])=>{const T=Dee(W,z,_);if(Bee(T,l*i)){b.current=T.indexOf(z);const k=String(T)!==String(W);return k&&j&&p(T),k?T:W}else return W})}return y.jsx(Mee,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:b,thumbs:h.current,values:S,orientation:a,form:g,children:y.jsx(Wf.Provider,{scope:e.__scopeSlider,children:y.jsx(Wf.Slot,{scope:e.__scopeSlider,children:y.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:U(m.onPointerDown,()=>{s||(P.current=S)}),min:n,max:o,inverted:v,onSlideStart:s?void 0:O,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:M,onHomeKeyDown:()=>!s&&$(n,0,{commit:!0}),onEndKeyDown:()=>!s&&$(o,S.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:_})=>{if(!s){const V=oN.includes(I.key)||I.shiftKey&&iN.includes(I.key)?10:1,z=b.current,W=S[z],T=i*V*_;$(W+T,z,{commit:!0})}}})})})})});lN.displayName=Do;var[cN,uN]=sN(Do,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Nee=f.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,p]=f.useState(null),v=re(t,w=>p(w)),g=f.useRef(void 0),m=xo(o),h=m==="ltr",b=h&&!i||!h&&i;function x(w){const S=g.current||d.getBoundingClientRect(),E=[0,S.width],O=Vm(E,b?[r,n]:[n,r]);return g.current=S,O(w-S.left)}return y.jsx(cN,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:y.jsx(dN,{dir:m,"data-orientation":"horizontal",...u,ref:v,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=x(w.clientX);a?.(S)},onSlideMove:w=>{const S=x(w.clientX);s?.(S)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:w=>{const E=aN[b?"from-left":"from-right"].includes(w.key);c?.({event:w,direction:E?-1:1})}})})}),Iee=f.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=f.useRef(null),d=re(t,u),p=f.useRef(void 0),v=!o;function g(m){const h=p.current||u.current.getBoundingClientRect(),b=[0,h.height],w=Vm(b,v?[n,r]:[r,n]);return p.current=h,w(m-h.top)}return y.jsx(cN,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:y.jsx(dN,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const h=g(m.clientY);i?.(h)},onSlideMove:m=>{const h=g(m.clientY);a?.(h)},onSlideEnd:()=>{p.current=void 0,s?.()},onStepKeyDown:m=>{const b=aN[v?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:b?-1:1})}})})}),dN=f.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=Cc(Do,r);return y.jsx(Q.span,{...c,ref:t,onKeyDown:U(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):oN.concat(iN).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:U(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(p)?p.focus():n(d)}),onPointerMove:U(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:U(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),i(d))})})}),fN="SliderTrack",pN=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Cc(fN,r);return y.jsx(Q.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});pN.displayName=fN;var Kf="SliderRange",vN=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Cc(Kf,r),i=uN(Kf,r),a=f.useRef(null),s=re(t,a),l=o.values.length,c=o.values.map(p=>gN(p,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return y.jsx(Q.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});vN.displayName=Kf;var Uf="SliderThumb",mN=f.forwardRef((e,t)=>{const r=Tee(e.__scopeSlider),[n,o]=f.useState(null),i=re(t,s=>o(s)),a=f.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return y.jsx(kee,{...e,ref:i,index:a})}),kee=f.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...i}=e,a=Cc(Uf,r),s=uN(Uf,r),[l,c]=f.useState(null),u=re(t,x=>c(x)),d=l?a.form||!!l.closest("form"):!0,p=Yi(l),v=a.values[n],g=v===void 0?0:gN(v,a.min,a.max),m=$ee(n,a.values.length),h=p?.[s.size],b=h?Fee(h,g,s.direction):0;return f.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${b}px)`},children:[y.jsx(Wf.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(Q.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":v,"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:u,style:v===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),d&&y.jsx(hN,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:v},n)]})});mN.displayName=Uf;var Ree="RadioBubbleInput",hN=f.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(o,n),a=qi(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.input,{style:{display:"none"},...r,ref:i,defaultValue:t})});hN.displayName=Ree;function Dee(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,i)=>o-i)}function gN(e,t,r){const i=100/(r-t)*(e-t);return nl(i,[0,100])}function $ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Lee(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function Fee(e,t,r){const n=e/2,i=Vm([0,50],[0,n]);return(n-i(t)*r)*r}function zee(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Bee(e,t){if(t>0){const r=zee(e);return Math.min(...r)>=t}return!0}function Vm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Vee(e){return(String(e).split(".")[1]||"").length}function Wee(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var Kee=lN,Uee=pN,Hee=vN,Gee=mN;const yN=te("relative flex w-full touch-none items-center select-none",{variants:{size:{sm:"[--slider-thumb-size:theme(spacing.3)] [--slider-track-height:theme(spacing.1)]",default:"[--slider-thumb-size:theme(spacing.4)] [--slider-track-height:theme(spacing.2)]",lg:"[--slider-thumb-size:theme(spacing.5)] [--slider-track-height:theme(spacing.3)]"}},defaultVariants:{size:"default"}}),bN=f.forwardRef(({className:e,size:t,defaultValue:r=[0],value:n,"aria-label":o,"aria-labelledby":i,...a},s)=>{const l=n?.length??r?.length??1;return y.jsxs(Kee,{ref:s,defaultValue:r,value:n,className:D(yN({size:t}),e),...a,children:[y.jsx(Uee,{className:D("bg-border relative h-[var(--slider-track-height)] w-full grow overflow-hidden rounded-full"),children:y.jsx(Hee,{className:"bg-sunflower absolute h-full"})}),Array.from({length:l}).map((c,u)=>y.jsx(Gee,{"aria-label":o,"aria-labelledby":i,className:D("border-sunflower block h-[var(--slider-thumb-size)] w-[var(--slider-thumb-size)] rounded-full border-2 bg-white shadow-md transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","hover:border-sunflower-hover")},u))]})});bN.displayName="Slider";const xN=te("inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",{variants:{variant:{default:"text-sunflower",muted:"text-secondary",inverted:"text-white"},size:{sm:"h-4 w-4 border-2",default:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"}},defaultVariants:{variant:"default",size:"default"}}),wN=f.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>y.jsx("span",{ref:i,role:"status","aria-label":n,className:D(xN({variant:t,size:r,className:e})),...o,children:y.jsx("span",{className:"sr-only",children:n})}));wN.displayName="Spinner";const SN=te("flex",{variants:{direction:{vertical:"flex-col",horizontal:"flex-row"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"}},defaultVariants:{direction:"vertical",gap:"md",align:"stretch",justify:"start",wrap:"nowrap"}}),PN=f.forwardRef(({className:e,direction:t,gap:r,align:n,justify:o,wrap:i,as:a="div",asChild:s=!1,...l},c)=>{const u=s?Ee:a;return y.jsx(u,{className:D(SN({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});PN.displayName="Stack";var Ac="Switch",[qee]=Be(Ac),[Yee,Xee]=qee(Ac),EN=f.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,v]=f.useState(null),g=re(t,w=>v(w)),m=f.useRef(!1),h=p?u||!!p.closest("form"):!0,[b,x]=nt({prop:o,defaultProp:i??!1,onChange:c,caller:Ac});return y.jsxs(Yee,{scope:r,checked:b,disabled:s,children:[y.jsx(Q.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":_N(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:U(e.onClick,w=>{x(S=>!S),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(AN,{control:p,bubbles:!m.current,name:n,value:l,checked:b,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});EN.displayName=Ac;var ON="SwitchThumb",CN=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=Xee(ON,r);return y.jsx(Q.span,{"data-state":_N(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});CN.displayName=ON;var Zee="SwitchBubbleInput",AN=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=qi(r),c=Yi(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});AN.displayName=Zee;function _N(e){return e?"checked":"unchecked"}var Jee=EN,Qee=CN;const TN=f.forwardRef(({className:e,...t},r)=>y.jsx(Jee,{className:D("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-sunflower data-[state=unchecked]:bg-contrast",e),...t,ref:r,children:y.jsx(Qee,{className:D("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform","data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));TN.displayName="Switch";const jN=te("text-body w-full caption-bottom border-collapse font-sans",{variants:{variant:{default:"border-separate border-spacing-0",striped:"border-separate border-spacing-0"},size:{default:"",compact:""}},defaultVariants:{variant:"default",size:"default"}}),ete=te("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),tte=te("",{variants:{},defaultVariants:{}}),rte=te("transition-colors",{variants:{variant:{default:"border-border hover:bg-alt/50 border-b",striped:"border-border even:bg-alt/30 hover:bg-alt border-b"}},defaultVariants:{variant:"default"}}),nte=te("text-small text-primary text-left align-middle font-sans font-normal [&:has([role=checkbox])]:pr-0",{variants:{sortable:{true:"hover:bg-contrast cursor-pointer select-none",false:""},size:{default:"h-12 px-4",compact:"h-8 px-2"}},defaultVariants:{sortable:!1,size:"default"}}),ote=te("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Wm=f.createContext({size:"default"}),MN=f.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>y.jsx(Wm.Provider,{value:{size:r??"default"},children:y.jsx("div",{className:"relative w-full overflow-auto",children:y.jsx("table",{ref:o,className:D(jN({variant:t,size:r}),e),...n})})}));MN.displayName="Table";const NN=f.forwardRef(({className:e,...t},r)=>y.jsx("thead",{ref:r,className:D(ete(),e),...t}));NN.displayName="TableHeader";const IN=f.forwardRef(({className:e,...t},r)=>y.jsx("tbody",{ref:r,className:D(tte(),e),...t}));IN.displayName="TableBody";const kN=f.forwardRef(({className:e,...t},r)=>y.jsx("tfoot",{ref:r,className:D("border-border bg-alt text-primary border-t font-normal",e),...t}));kN.displayName="TableFooter";const RN=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("tr",{ref:n,className:D(rte({variant:t}),e),...r}));RN.displayName="TableRow";const DN=f.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=f.useContext(Wm),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return y.jsx("th",{ref:a,className:D(nte({sortable:r,size:s}),e),onClick:l,onKeyDown:c,tabIndex:r?0:void 0,role:r?"button":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,...i,children:y.jsxs("div",{className:"flex items-center gap-2",children:[t,r&&y.jsxs("span",{className:"inline-flex flex-col","aria-hidden":"true",children:[y.jsx("svg",{className:D("h-3 w-3 transition-opacity",n==="asc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 15l5-5 5 5"})}),y.jsx("svg",{className:D("-mt-1 h-3 w-3 transition-opacity",n==="desc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 9l5 5 5-5"})})]})]})})});DN.displayName="TableHead";const $N=f.forwardRef(({className:e,...t},r)=>{const{size:n}=f.useContext(Wm);return y.jsx("td",{ref:r,className:D(ote({size:n}),e),...t})});$N.displayName="TableCell";const LN=f.forwardRef(({className:e,...t},r)=>y.jsx("caption",{ref:r,className:D("text-small text-tertiary mt-4",e),...t}));LN.displayName="TableCaption";function ite({data:e,initialSortKey:t=null,initialSortDirection:r="asc"}){const[n,o]=f.useState(t),[i,a]=f.useState(r),s=f.useCallback(c=>{o(u=>u===c?(a(d=>d==="asc"?"desc":d==="desc"?(o(null),null):"asc"),u):(a("asc"),c))},[]);return{sortedData:f.useMemo(()=>!n||!i?e:[...e].sort((c,u)=>{const d=c[n],p=u[n];if(d===p)return 0;let v=0;return typeof d=="string"&&typeof p=="string"?v=d.localeCompare(p):typeof d=="number"&&typeof p=="number"?v=d-p:v=String(d).localeCompare(String(p)),i==="asc"?v:-v}),[e,n,i]),sortKey:n,sortDirection:i,handleSort:s}}function ate({data:e,filterKeys:t}){const[r,n]=f.useState("");return{filteredData:f.useMemo(()=>{if(!r.trim())return e;const i=r.toLowerCase();return e.filter(a=>t&&t.length>0?t.some(s=>String(a[s]).toLowerCase().includes(i)):Object.values(a).some(s=>String(s).toLowerCase().includes(i)))},[e,r,t]),filterValue:r,setFilterValue:n}}const FN=f.createContext(null);function zN(){const e=f.useContext(FN);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const BN=f.forwardRef(({className:e,defaultValue:t="",value:r,onValueChange:n,children:o,...i},a)=>{const[s,l]=f.useState(t),c=f.useRef(new Map),u=r!==void 0?r:s,d=f.useCallback(v=>{r===void 0&&l(v),n?.(v)},[r,n]),p=f.useCallback((v,g)=>{g?c.current.set(v,g):c.current.delete(v)},[]);return y.jsx(FN.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:p},children:y.jsx("div",{ref:a,className:D("w-full",e),...i,children:o})})});BN.displayName="Tabs";const VN=te("text-body inline-flex items-center font-sans transition-colors",{variants:{variant:{default:"border-border relative gap-1 border-b",pills:"rounded-pill bg-alt gap-2 p-1"}},defaultVariants:{variant:"default"}}),WN=f.createContext(null),KN=f.forwardRef(({className:e,variant:t,...r},n)=>{const o=f.useRef(null),[i,a]=f.useState(null),[s,l]=f.useState(!1),c=f.useRef(!1),u=f.useCallback(v=>{if(v&&o.current){const g=o.current.getBoundingClientRect();a({left:v.left-g.left,width:v.width}),c.current||(c.current=!0,l(!0))}},[]),d=f.useCallback(v=>{o.current=v,typeof n=="function"?n(v):n&&(n.current=v)},[n]),p=f.useMemo(()=>({variant:t??"default",setActiveRect:u}),[t,u]);return y.jsx(WN.Provider,{value:p,children:y.jsxs("div",{ref:d,role:"tablist",className:D(VN({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&y.jsx("span",{className:D("bg-sunflower pointer-events-none absolute bottom-0 h-0.5",s&&"transition-all duration-200 ease-out"),style:{left:i.left,width:i.width},"aria-hidden":"true"})]})})});KN.displayName="TabList";const UN=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-secondary hover:text-primary data-[state=active]:text-primary px-4 py-2",pills:"rounded-pill text-secondary hover:text-primary data-[state=active]:bg-card data-[state=active]:text-primary px-4 py-1.5 data-[state=active]:shadow-sm"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),HN=f.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=zN(),l=f.useContext(WN),c=f.useRef(null),u=a===n,d=f.useCallback(p=>{c.current=p,typeof i=="function"?i(p):i&&(i.current=p)},[i]);return f.useEffect(()=>{if(u&&c.current&&l){const p=()=>{if(c.current){const v=c.current.getBoundingClientRect();l.setActiveRect({left:v.left,width:v.width})}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)}},[u,l]),y.jsx("button",{ref:d,role:"tab",type:"button","aria-selected":u,"data-state":u?"active":"inactive",onClick:()=>s(n),className:D(UN({variant:t,size:r,className:e})),...o})});HN.displayName="TabTrigger";const GN=te("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),qN=f.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=zN(),a=i===r;return a?y.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:D(GN({size:t,className:e})),...n}):null});qN.displayName="TabContent";const YN=te("font-sans",{variants:{variant:{lead:"text-lead text-primary","semi-lead":"text-semi-lead text-secondary","body-lg":"text-body-lg text-secondary",body:"text-body text-secondary",descriptive:"text-descriptive text-secondary",label:"text-label text-tertiary","label-sm":"text-label-sm text-tertiary"},weight:{regular:"font-normal",medium:"font-medium"}},defaultVariants:{variant:"body",weight:"regular"}}),XN=f.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Ee:n;return y.jsx(s,{className:D(YN({variant:t,weight:r,className:e})),ref:a,...i})});XN.displayName="Text";const ZN=te("bg-card text-body text-primary placeholder:text-tertiary flex min-h-[80px] w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{variant:"default",resize:"vertical"}}),JN=f.forwardRef(({className:e,variant:t,resize:r,...n},o)=>y.jsx("textarea",{className:D(ZN({variant:t,resize:r}),e),ref:o,...n}));JN.displayName="Textarea";var Km="ToastProvider",[Um,ste,lte]=bo("Toast"),[QN]=Be("Toast",[lte]),[cte,_c]=QN(Km),eI=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=f.useState(null),[c,u]=f.useState(0),d=f.useRef(!1),p=f.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Km}\`. Expected non-empty \`string\`.`),y.jsx(Um.Provider,{scope:t,children:y.jsx(cte,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:f.useCallback(()=>u(v=>v+1),[]),onToastRemove:f.useCallback(()=>u(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};eI.displayName=Km;var tI="ToastViewport",ute=["F8"],Hf="toast.viewportPause",Gf="toast.viewportResume",rI=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=ute,label:o="Notifications ({hotkey})",...i}=e,a=_c(tI,r),s=ste(r),l=f.useRef(null),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),p=re(t,d,a.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;f.useEffect(()=>{const h=b=>{n.length!==0&&n.every(w=>b[w]||b.code===w)&&d.current?.focus()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[n]),f.useEffect(()=>{const h=l.current,b=d.current;if(g&&h&&b){const x=()=>{if(!a.isClosePausedRef.current){const P=new CustomEvent(Hf);b.dispatchEvent(P),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(Gf);b.dispatchEvent(P),a.isClosePausedRef.current=!1}},S=P=>{!h.contains(P.relatedTarget)&&w()},E=()=>{h.contains(document.activeElement)||w()};return h.addEventListener("focusin",x),h.addEventListener("focusout",S),h.addEventListener("pointermove",x),h.addEventListener("pointerleave",E),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{h.removeEventListener("focusin",x),h.removeEventListener("focusout",S),h.removeEventListener("pointermove",x),h.removeEventListener("pointerleave",E),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,a.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:h})=>{const x=s().map(w=>{const S=w.ref.current,E=[S,...Pte(S)];return h==="forwards"?E:E.reverse()});return(h==="forwards"?x.reverse():x).flat()},[s]);return f.useEffect(()=>{const h=d.current;if(h){const b=x=>{const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const E=document.activeElement,P=x.shiftKey;if(x.target===h&&P){c.current?.focus();return}const M=m({tabbingDirection:P?"backwards":"forwards"}),$=M.findIndex(I=>I===E);Pd(M.slice($+1))?x.preventDefault():P?c.current?.focus():u.current?.focus()}};return h.addEventListener("keydown",b),()=>h.removeEventListener("keydown",b)}},[s,m]),y.jsxs(jR,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&y.jsx(qf,{ref:c,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"forwards"});Pd(h)}}),y.jsx(Um.Slot,{scope:r,children:y.jsx(Q.ol,{tabIndex:-1,...i,ref:p})}),g&&y.jsx(qf,{ref:u,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"backwards"});Pd(h)}})]})});rI.displayName=tI;var nI="ToastFocusProxy",qf=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=_c(nI,r);return y.jsx(wc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});qf.displayName=nI;var oa="Toast",dte="toast.swipeStart",fte="toast.swipeMove",pte="toast.swipeCancel",vte="toast.swipeEnd",oI=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=nt({prop:n,defaultProp:o??!0,onChange:i,caller:oa});return y.jsx(lt,{present:r||s,children:y.jsx(gte,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:st(e.onPause),onResume:st(e.onResume),onSwipeStart:U(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:U(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:U(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});oI.displayName=oa;var[mte,hte]=QN(oa,{onClose(){}}),gte=f.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:v,...g}=e,m=_c(oa,r),[h,b]=f.useState(null),x=re(t,R=>b(R)),w=f.useRef(null),S=f.useRef(null),E=o||m.duration,P=f.useRef(0),O=f.useRef(E),C=f.useRef(0),{onToastAdd:M,onToastRemove:$}=m,I=st(()=>{h?.contains(document.activeElement)&&m.viewport?.focus(),a()}),_=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(C.current),P.current=new Date().getTime(),C.current=window.setTimeout(I,R))},[I]);f.useEffect(()=>{const R=m.viewport;if(R){const V=()=>{_(O.current),c?.()},z=()=>{const W=new Date().getTime()-P.current;O.current=O.current-W,window.clearTimeout(C.current),l?.()};return R.addEventListener(Hf,z),R.addEventListener(Gf,V),()=>{R.removeEventListener(Hf,z),R.removeEventListener(Gf,V)}}},[m.viewport,E,l,c,_]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&_(E)},[i,E,m.isClosePausedRef,_]),f.useEffect(()=>(M(),()=>$()),[M,$]);const j=f.useMemo(()=>h?dI(h):null,[h]);return m.viewport?y.jsxs(y.Fragment,{children:[j&&y.jsx(yte,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:j}),y.jsx(mte,{scope:r,onClose:I,children:wi.createPortal(y.jsx(Um.ItemSlot,{scope:r,children:y.jsx(TR,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||I(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Q.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,R=>{R.key==="Escape"&&(s?.(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:U(e.onPointerDown,R=>{R.button===0&&(w.current={x:R.clientX,y:R.clientY})}),onPointerMove:U(e.onPointerMove,R=>{if(!w.current)return;const V=R.clientX-w.current.x,z=R.clientY-w.current.y,W=!!S.current,T=["left","right"].includes(m.swipeDirection),k=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,G=T?k(0,V):0,ee=T?0:k(0,z),ne=R.pointerType==="touch"?10:2,ie={x:G,y:ee},oe={originalEvent:R,delta:ie};W?(S.current=ie,Ba(fte,d,oe,{discrete:!1})):Gw(ie,m.swipeDirection,ne)?(S.current=ie,Ba(dte,u,oe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(V)>ne||Math.abs(z)>ne)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,R=>{const V=S.current,z=R.target;if(z.hasPointerCapture(R.pointerId)&&z.releasePointerCapture(R.pointerId),S.current=null,w.current=null,V){const W=R.currentTarget,T={originalEvent:R,delta:V};Gw(V,m.swipeDirection,m.swipeThreshold)?Ba(vte,v,T,{discrete:!0}):Ba(pte,p,T,{discrete:!0}),W.addEventListener("click",k=>k.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),yte=e=>{const{__scopeToast:t,children:r,...n}=e,o=_c(oa,t),[i,a]=f.useState(!1),[s,l]=f.useState(!1);return wte(()=>a(!0)),f.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:y.jsx(Ln,{asChild:!0,children:y.jsx(wc,{...n,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",r]})})})},bte="ToastTitle",iI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});iI.displayName=bte;var xte="ToastDescription",aI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});aI.displayName=xte;var sI="ToastAction",lI=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?y.jsx(uI,{altText:r,asChild:!0,children:y.jsx(Hm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${sI}\`. Expected non-empty \`string\`.`),null)});lI.displayName=sI;var cI="ToastClose",Hm=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=hte(cI,r);return y.jsx(uI,{asChild:!0,children:y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});Hm.displayName=cI;var uI=f.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return y.jsx(Q.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function dI(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Ste(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...dI(n))}}),t}function Ba(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zf(o,i):o.dispatchEvent(i)}var Gw=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function wte(e=()=>{}){const t=st(e);Ye(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Ste(e){return e.nodeType===e.ELEMENT_NODE}function Pte(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Pd(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var Ete=eI,Ote=rI,Cte=oI,Ate=iI,_te=aI,Tte=lI,jte=Hm;const Mte=Ete,fI=f.forwardRef(({className:e,...t},r)=>y.jsx(Ote,{ref:r,className:D("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-105",e),...t}));fI.displayName="ToastViewport";const pI=te(["group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg border p-4 shadow-lg transition-all","data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out","data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full"],{variants:{variant:{default:"border-border bg-main text-primary",success:"border-sunflower/30 bg-eggshell text-primary [&>svg]:text-sunflower",error:"border-error/30 bg-main text-primary [&>svg]:text-error",warning:"border-sunflower/50 bg-vanilla text-primary [&>svg]:text-sunflower",info:"border-electric-blue/30 bg-main text-primary [&>svg]:text-electric-blue"}},defaultVariants:{variant:"default"}}),vI=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(Cte,{ref:n,className:D(pI({variant:t}),e),...r}));vI.displayName="Toast";const mI=f.forwardRef(({className:e,...t},r)=>y.jsx(Tte,{ref:r,className:D("rounded-pill border-border inline-flex h-8 shrink-0 items-center justify-center border bg-transparent px-3 text-sm font-medium","ring-offset-main transition-colors","hover:bg-alt","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none disabled:opacity-50","group-[.error]:border-error/30 group-[.error]:hover:border-error/50 group-[.error]:hover:bg-error/10 group-[.error]:focus:ring-error",e),...t}));mI.displayName="ToastAction";const hI=f.forwardRef(({className:e,...t},r)=>y.jsxs(jte,{ref:r,className:D("text-secondary absolute top-2 right-2 rounded-sm p-1 opacity-0 transition-opacity","hover:text-primary","focus:ring-sunflower focus:opacity-100 focus:ring-2 focus:outline-none","group-hover:opacity-100","group-[.error]:text-error/70 group-[.error]:hover:text-error group-[.error]:focus:ring-error group-[.error]:focus:ring-offset-error",e),"toast-close":"",...t,children:[y.jsx(m0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}));hI.displayName="ToastClose";const gI=f.forwardRef(({className:e,...t},r)=>y.jsx(Ate,{ref:r,className:D("text-sm",e),...t}));gI.displayName="ToastTitle";const yI=f.forwardRef(({className:e,...t},r)=>y.jsx(_te,{ref:r,className:D("text-secondary text-sm",e),...t}));yI.displayName="ToastDescription";var Nte=Symbol("radix.slottable");function Ite(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Nte,t}var[Tc]=Be("Tooltip",[rn]),jc=rn(),bI="TooltipProvider",kte=700,Yf="tooltip.open",[Rte,Gm]=Tc(bI),xI=e=>{const{__scopeTooltip:t,delayDuration:r=kte,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=f.useRef(!0),s=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(Rte,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};xI.displayName=bI;var bi="Tooltip",[Dte,ia]=Tc(bi),wI=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=Gm(bi,e.__scopeTooltip),c=jc(t),[u,d]=f.useState(null),p=vt(),v=f.useRef(0),g=a??l.disableHoverableContent,m=s??l.delayDuration,h=f.useRef(!1),[b,x]=nt({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Yf))):l.onClose(),i?.(O)},caller:bi}),w=f.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,x(!0)},[x]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),P=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,x(!0),v.current=0},m)},[m,x]);return f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),y.jsx(Zi,{...c,children:y.jsx(Dte,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?P():S()},[l.isOpenDelayedRef,P,S]),onTriggerLeave:f.useCallback(()=>{g?E():(window.clearTimeout(v.current),v.current=0)},[E,g]),onOpen:S,onClose:E,disableHoverableContent:g,children:r})})};wI.displayName=bi;var Xf="TooltipTrigger",SI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ia(Xf,r),i=Gm(Xf,r),a=jc(r),s=f.useRef(null),l=re(t,s,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(Ji,{asChild:!0,...a,children:y.jsx(Q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:U(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});SI.displayName=Xf;var qm="TooltipPortal",[$te,Lte]=Tc(qm,{forceMount:void 0}),PI=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=ia(qm,t);return y.jsx($te,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};PI.displayName=qm;var yo="TooltipContent",EI=f.forwardRef((e,t)=>{const r=Lte(yo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=ia(yo,e.__scopeTooltip);return y.jsx(lt,{present:n||a.open,children:a.disableHoverableContent?y.jsx(OI,{side:o,...i,ref:t}):y.jsx(Fte,{side:o,...i,ref:t})})}),Fte=f.forwardRef((e,t)=>{const r=ia(yo,e.__scopeTooltip),n=Gm(yo,e.__scopeTooltip),o=f.useRef(null),i=re(t,o),[a,s]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,p=f.useCallback(()=>{s(null),d(!1)},[d]),v=f.useCallback((g,m)=>{const h=g.currentTarget,b={x:g.clientX,y:g.clientY},x=Wte(b,h.getBoundingClientRect()),w=Kte(b,x),S=Ute(m.getBoundingClientRect()),E=Gte([...w,...S]);s(E),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&u){const g=h=>v(h,u),m=h=>v(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[l,u,v,p]),f.useEffect(()=>{if(a){const g=m=>{const h=m.target,b={x:m.clientX,y:m.clientY},x=l?.contains(h)||u?.contains(h),w=!Hte(b,a);x?p():w&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,c,p]),y.jsx(OI,{...e,ref:i})}),[zte,Bte]=Tc(bi,{isInside:!1}),Vte=Ite("TooltipContent"),OI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=ia(yo,r),c=jc(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(Yf,u),()=>document.removeEventListener(Yf,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=p=>{p.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(pc,{"data-state":l.stateAttribute,...c,...s,ref:t,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:[y.jsx(Vte,{children:n}),y.jsx(zte,{scope:r,isInside:!0,children:y.jsx(WQ,{id:l.contentId,role:"tooltip",children:o||n})})]})})});EI.displayName=yo;var CI="TooltipArrow",AI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=jc(r);return Bte(CI,r).isInside?null:y.jsx(vc,{...o,...n,ref:t})});AI.displayName=CI;function Wte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Kte(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Ute(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Hte(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function Gte(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),qte(t)}function qte(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Yte=xI,Xte=wI,Zte=SI,Jte=PI,Qte=EI,ere=AI;const tre=Yte,rre=Xte,nre=Zte,_I=Jte,Ym=f.forwardRef(({className:e,...t},r)=>y.jsx(ere,{ref:r,className:D("fill-primary",e),...t}));Ym.displayName="TooltipArrow";const TI=te(["z-50 overflow-hidden rounded-md px-3 py-1.5 font-sans shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"],{variants:{variant:{default:"bg-primary text-small text-white",light:"bg-card text-primary text-small border-border border"}},defaultVariants:{variant:"default"}}),jI=f.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>y.jsx(_I,{children:y.jsxs(Qte,{ref:a,sideOffset:r,className:D(TI({variant:t,className:e})),...i,children:[o,n&&y.jsx(Ym,{className:t==="light"?"fill-card":"fill-primary"})]})}));jI.displayName="TooltipContent";exports.Accordion=j0;exports.AccordionContent=k0;exports.AccordionItem=M0;exports.AccordionTrigger=I0;exports.ActionsMenuButton=oj;exports.AlertDialog=p2;exports.AlertDialogAction=zS;exports.AlertDialogCancel=BS;exports.AlertDialogContent=RS;exports.AlertDialogDescription=FS;exports.AlertDialogFooter=$S;exports.AlertDialogHeader=DS;exports.AlertDialogOverlay=lp;exports.AlertDialogPortal=IS;exports.AlertDialogTitle=LS;exports.AlertDialogTrigger=v2;exports.Badge=WS;exports.Banner=US;exports.BarChart=eA;exports.BreadcrumbItem=nA;exports.BreadcrumbSeparator=mm;exports.Breadcrumbs=rA;exports.Button=NS;exports.Card=iA;exports.Checkbox=vA;exports.ContextMenu=JZ;exports.ContextMenuCheckboxItem=eT;exports.ContextMenuContent=J_;exports.ContextMenuGroup=eJ;exports.ContextMenuItem=Q_;exports.ContextMenuLabel=rT;exports.ContextMenuPortal=Y_;exports.ContextMenuRadioGroup=rJ;exports.ContextMenuRadioItem=tT;exports.ContextMenuSeparator=nT;exports.ContextMenuShortcut=oT;exports.ContextMenuSub=tJ;exports.ContextMenuSubContent=Z_;exports.ContextMenuSubTrigger=X_;exports.ContextMenuTrigger=QZ;exports.DatePicker=ST;exports.DateTimePicker=CT;exports.Divider=_T;exports.DropdownMenu=tQ;exports.DropdownMenuCheckboxItem=QT;exports.DropdownMenuContent=ZT;exports.DropdownMenuGroup=nQ;exports.DropdownMenuItem=JT;exports.DropdownMenuLabel=tj;exports.DropdownMenuPortal=qT;exports.DropdownMenuRadioGroup=iQ;exports.DropdownMenuRadioItem=ej;exports.DropdownMenuSeparator=rj;exports.DropdownMenuShortcut=nj;exports.DropdownMenuSub=oQ;exports.DropdownMenuSubContent=XT;exports.DropdownMenuSubTrigger=YT;exports.DropdownMenuTrigger=rQ;exports.EngrateLogo=aj;exports.Eyebrow=lj;exports.Footer=uj;exports.FooterBottom=mj;exports.FooterContent=dj;exports.FooterCopyright=hj;exports.FooterHeading=pj;exports.FooterLinks=vj;exports.FooterSection=fj;exports.FormField=bj;exports.FormMessage=Rm;exports.Grid=xj;exports.GridItem=wj;exports.Header=Pj;exports.HeaderActions=Cj;exports.HeaderLogo=Ej;exports.HeaderNav=Oj;exports.Heading=_j;exports.Input=jj;exports.Label=Dm;exports.LineChart=Nj;exports.Link=kj;exports.Modal=wQ;exports.ModalClose=PQ;exports.ModalContent=$j;exports.ModalDescription=Bj;exports.ModalFooter=Fj;exports.ModalHeader=Lj;exports.ModalOverlay=$m;exports.ModalPortal=Rj;exports.ModalTitle=zj;exports.ModalTrigger=SQ;exports.Pagination=Kj;exports.PaginationItem=ro;exports.PieChart=Hj;exports.ProgressIndicator=Yj;exports.RadioGroup=lM;exports.RadioGroupItem=cM;exports.Select=Oee;exports.SelectContent=BM;exports.SelectGroup=Cee;exports.SelectItem=WM;exports.SelectLabel=VM;exports.SelectScrollDownButton=Bm;exports.SelectScrollUpButton=zm;exports.SelectSeparator=KM;exports.SelectTrigger=zM;exports.SelectValue=Aee;exports.Sidebar=GM;exports.SidebarContent=YM;exports.SidebarFooter=XM;exports.SidebarGroup=ZM;exports.SidebarGroupLabel=JM;exports.SidebarHeader=qM;exports.SidebarItem=QM;exports.SidebarSeparator=tN;exports.SidebarTrigger=eN;exports.Skeleton=nN;exports.Slider=bN;exports.Spinner=wN;exports.Stack=PN;exports.Switch=TN;exports.TabContent=qN;exports.TabList=KN;exports.TabTrigger=HN;exports.Table=MN;exports.TableBody=IN;exports.TableCaption=LN;exports.TableCell=$N;exports.TableFooter=kN;exports.TableHead=DN;exports.TableHeader=NN;exports.TableRow=RN;exports.Tabs=BN;exports.Text=XN;exports.Textarea=JN;exports.Toast=vI;exports.ToastAction=mI;exports.ToastClose=hI;exports.ToastDescription=yI;exports.ToastProvider=Mte;exports.ToastTitle=gI;exports.ToastViewport=fI;exports.Tooltip=rre;exports.TooltipArrow=Ym;exports.TooltipContent=jI;exports.TooltipPortal=_I;exports.TooltipProvider=tre;exports.TooltipTrigger=nre;exports.accordionTriggerVariants=N0;exports.accordionVariants=T0;exports.alertDialogContentVariants=kS;exports.badgeVariants=VS;exports.bannerVariants=KS;exports.barChartVariants=QC;exports.breadcrumbItemVariants=Mf;exports.breadcrumbsVariants=tA;exports.buttonVariants=ml;exports.calendarDayVariants=wT;exports.cardVariants=oA;exports.cn=D;exports.datePickerTriggerVariants=xT;exports.dateTimePickerCalendarDayVariants=OT;exports.dateTimePickerTriggerVariants=ET;exports.dividerVariants=AT;exports.engrateLogoVariants=ij;exports.eyebrowVariants=sj;exports.footerVariants=cj;exports.gridItemVariants=hQ;exports.gridVariants=dQ;exports.headerVariants=Sj;exports.headingVariants=Aj;exports.inputVariants=Tj;exports.labelVariants=yj;exports.lineChartVariants=Mj;exports.linkVariants=Ij;exports.modalContentVariants=Dj;exports.paginationItemVariants=Wj;exports.paginationVariants=Vj;exports.pieChartVariants=Uj;exports.progressBarVariants=qj;exports.progressIndicatorVariants=Gj;exports.sidebarItemVariants=Vf;exports.sidebarVariants=HM;exports.skeletonVariants=rN;exports.sliderVariants=yN;exports.spinnerVariants=xN;exports.stackVariants=SN;exports.tabContentVariants=GN;exports.tabListVariants=VN;exports.tabTriggerVariants=UN;exports.tableVariants=jN;exports.textVariants=YN;exports.textareaVariants=ZN;exports.toastVariants=pI;exports.tooltipContentVariants=TI;exports.useFilterableTable=ate;exports.useSidebarContext=Oc;exports.useSortableTable=ite;
|
|
100
|
+
`).concat(S.x,",").concat(S.y),P=Te(e.id)?ei("recharts-radial-line-"):e.id;return f.createElement("text",pr({},n,{dominantBaseline:"central",className:de("recharts-radial-bar-label",a)}),f.createElement("defs",null,f.createElement("path",{id:P,d:E})),f.createElement("textPath",{xlinkHref:"#".concat(P)},r))},kU=(e,t,r)=>{var{cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:d}=Re(n,o,a+t,c);return{x:u,y:d,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(i+a)/2,{x:v,y:g}=Re(n,o,p,c);return{x:v,y:g,textAnchor:"middle",verticalAnchor:"middle"}},qa=e=>e!=null&&"cx"in e&&q(e.cx),RU={angle:0,offset:5,zIndex:De.label,position:"middle",textBreakAll:!1};function DU(e){if(!qa(e))return e;var{cx:t,cy:r,outerRadius:n}=e,o=n*2;return{x:t-n,y:r-n,width:o,upperWidth:o,lowerWidth:o,height:o}}function Fr(e){var t=Le(e,RU),{viewBox:r,parentViewBox:n,position:o,value:i,children:a,content:s,className:l="",textBreakAll:c,labelRef:u}=t,d=jU(),p=JO(),v=o==="center"?p:d??p,g,m,h;r==null?g=v:qa(r)?g=r:g=Np(r);var b=DU(g);if(!g||Te(i)&&Te(a)&&!A.isValidElement(s)&&typeof s!="function")return null;var x=Xo(Xo({},t),{},{viewBox:g});if(A.isValidElement(s)){var{labelRef:w}=x,S=Px(x,SU);return A.cloneElement(s,S)}if(typeof s=="function"){var{content:E}=x,P=Px(x,PU);if(m=A.createElement(s,P),A.isValidElement(m))return m}else m=NU(t);var O=mt(t);if(qa(g)){if(o==="insideStart"||o==="insideEnd"||o==="end")return IU(t,o,m,O,g);h=kU(g,t.offset,t.position)}else{if(!b)return null;var C=wU({viewBox:b,position:o,offset:t.offset,parentViewBox:qa(n)?void 0:n});h=Xo(Xo({x:C.x,y:C.y,textAnchor:C.horizontalAnchor,verticalAnchor:C.verticalAnchor},C.width!==void 0?{width:C.width}:{}),C.height!==void 0?{height:C.height}:{})}return f.createElement(wt,{zIndex:t.zIndex},f.createElement(nc,pr({ref:u,className:de("recharts-label",l)},O,h,{textAnchor:pU(O.textAnchor)?O.textAnchor:h.textAnchor,breakAll:c}),m))}Fr.displayName="Label";var $U=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?f.createElement(Fr,pr({key:"label-implicit"},n)):ir(e)?f.createElement(Fr,pr({key:"label-implicit",value:e},n)):A.isValidElement(e)?e.type===Fr?A.cloneElement(e,Xo({key:"label-implicit"},n)):f.createElement(Fr,pr({key:"label-implicit",content:e},n)):Yv(e)?f.createElement(Fr,pr({key:"label-implicit",content:e},n)):e&&typeof e=="object"?f.createElement(Fr,pr({},e,{key:"label-implicit"},n)):null};function LU(e){var{label:t,labelRef:r}=e,n=JO();return $U(t,n,r)||null}var ad={},sd={},Ox;function zU(){return Ox||(Ox=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(sd)),sd}var ld={},Cx;function FU(){return Cx||(Cx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(ld)),ld}var Ax;function BU(){return Ax||(Ax=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zU(),r=FU(),n=bp();function o(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=o})(ad)),ad}var cd,_x;function VU(){return _x||(_x=1,cd=BU().last),cd}var WU=VU();const KU=Jr(WU);var UU=["valueAccessor"],HU=["dataKey","clockWise","id","textBreakAll","zIndex"];function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fs.apply(null,arguments)}function Tx(e,t){if(e==null)return{};var r,n,o=GU(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function GU(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var qU=e=>Array.isArray(e.value)?KU(e.value):e.value,QO=A.createContext(void 0),eC=QO.Provider,tC=A.createContext(void 0),YU=tC.Provider;function XU(){return A.useContext(QO)}function ZU(){return A.useContext(tC)}function Ya(e){var{valueAccessor:t=qU}=e,r=Tx(e,UU),{dataKey:n,clockWise:o,id:i,textBreakAll:a,zIndex:s}=r,l=Tx(r,HU),c=XU(),u=ZU(),d=c||u;return!d||!d.length?null:f.createElement(wt,{zIndex:s??De.label},f.createElement(Xe,{className:"recharts-label-list"},d.map((p,v)=>{var g,m=Te(n)?t(p,v):be(p.payload,n),h=Te(i)?{}:{id:"".concat(i,"-").concat(v)};return f.createElement(Fr,Fs({key:"label-".concat(v)},mt(p),l,h,{fill:(g=r.fill)!==null&&g!==void 0?g:p.fill,parentViewBox:p.parentViewBox,value:m,textBreakAll:a,viewBox:p.viewBox,index:v,zIndex:0}))})))}Ya.displayName="LabelList";function Xv(e){var{label:t}=e;return t?t===!0?f.createElement(Ya,{key:"labelList-implicit"}):f.isValidElement(t)||Yv(t)?f.createElement(Ya,{key:"labelList-implicit",content:t}):typeof t=="object"?f.createElement(Ya,Fs({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wf.apply(null,arguments)}var rC=e=>{var{cx:t,cy:r,r:n,className:o}=e,i=de("recharts-dot",o);return q(t)&&q(r)&&q(n)?f.createElement("circle",wf({},At(e),yp(e),{className:i,cx:t,cy:r,r:n})):null},nC=e=>e.graphicalItems.polarItems,JU=M([je,Fi],gv),oc=M([nC,ke,JU],yv),QU=M([oc],bv),ic=M([QU,Kl],xv),eH=M([ic,ke,oc],Sv);M([ic,ke,oc],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(o=>{var i,a=be(n,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:be(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var jx=()=>{},tH=M([ic,ke,oc,Ql,je],Cv),rH=M([ke,Ev,Ov,jx,tH,jx,ve,je],Av),oC=M([ke,ve,ic,eH,zi,je,rH],_v),nH=M([oC,_o,tn],Nv),oH=M([ke,oC,nH,je],Iv);M([tn,oH],WE);var iH={radiusAxis:{},angleAxis:{}},iC=xt({name:"polarAxis",initialState:iH,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:fre,removeRadiusAxis:pre,addAngleAxis:vre,removeAngleAxis:mre}=iC.actions,aH=iC.reducer;function aC(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}function Nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Mx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nx(Object(r),!0).forEach(function(n){sH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sH(e,t,r){return(t=lH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lH(e){var t=cH(e,"string");return typeof t=="symbol"?t:t+""}function cH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uH=(e,t)=>t,Zv=M([nC,uH],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),dH=[],Jv=(e,t,r)=>r?.length===0?dH:r,sC=M([Kl,Zv,Jv],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var o;if(t?.data!=null&&t.data.length>0?o=t.data:o=n,(!o||!o.length)&&r!=null&&(o=r.map(i=>Mx(Mx({},t.presentationProps),i.props))),o!=null)return o}}),fH=M([sC,Zv,Jv],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,o)=>{var i,a=be(n,t.nameKey,t.name),s;return r!=null&&(i=r[o])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=r[o].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Po(a,t.dataKey),color:s,payload:n,type:t.legendType}})}),pH=M([sC,Zv,Jv,Ve],(e,t,r,n)=>{if(!(t==null||e==null))return m8({offset:n,pieSettings:t,displayedData:e,cells:r})}),Ia={exports:{}},ge={};var Ix;function vH(){if(Ix)return ge;Ix=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),m=b("react.debug_trace_mode"),h=b("react.legacy_hidden")}function x(j){if(typeof j=="object"&&j!==null){var R=j.$$typeof;switch(R){case e:switch(j=j.type,j){case r:case o:case n:case l:case c:return j;default:switch(j=j&&j.$$typeof,j){case a:case s:case d:case u:case i:return j;default:return R}}case t:return R}}}var w=i,S=e,E=s,P=r,O=d,C=u,N=t,$=o,I=n,_=l;return ge.ContextConsumer=a,ge.ContextProvider=w,ge.Element=S,ge.ForwardRef=E,ge.Fragment=P,ge.Lazy=O,ge.Memo=C,ge.Portal=N,ge.Profiler=$,ge.StrictMode=I,ge.Suspense=_,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(j){return x(j)===a},ge.isContextProvider=function(j){return x(j)===i},ge.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},ge.isForwardRef=function(j){return x(j)===s},ge.isFragment=function(j){return x(j)===r},ge.isLazy=function(j){return x(j)===d},ge.isMemo=function(j){return x(j)===u},ge.isPortal=function(j){return x(j)===t},ge.isProfiler=function(j){return x(j)===o},ge.isStrictMode=function(j){return x(j)===n},ge.isSuspense=function(j){return x(j)===l},ge.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===r||j===o||j===m||j===n||j===l||j===c||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===d||j.$$typeof===u||j.$$typeof===i||j.$$typeof===a||j.$$typeof===s||j.$$typeof===g||j.$$typeof===p||j[0]===v)},ge.typeOf=x,ge}var ye={};var kx;function mH(){return kx||(kx=1,process.env.NODE_ENV!=="production"&&(function(){var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,v=60122,g=60117,m=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),g=b("react.fundamental"),b("react.scope"),b("react.opaque.id"),m=b("react.debug_trace_mode"),b("react.offscreen"),h=b("react.legacy_hidden")}var x=!1;function w(B){return!!(typeof B=="string"||typeof B=="function"||B===r||B===o||B===m||B===n||B===l||B===c||B===h||x||typeof B=="object"&&B!==null&&(B.$$typeof===d||B.$$typeof===u||B.$$typeof===i||B.$$typeof===a||B.$$typeof===s||B.$$typeof===g||B.$$typeof===p||B[0]===v))}function S(B){if(typeof B=="object"&&B!==null){var z=B.$$typeof;switch(z){case e:var fe=B.type;switch(fe){case r:case o:case n:case l:case c:return fe;default:var se=fe&&fe.$$typeof;switch(se){case a:case s:case d:case u:case i:return se;default:return z}}case t:return z}}}var E=a,P=i,O=e,C=s,N=r,$=d,I=u,_=t,j=o,R=n,V=l,F=!1,W=!1;function T(B){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function k(B){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(B){return S(B)===a}function ee(B){return S(B)===i}function ne(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function ie(B){return S(B)===s}function oe(B){return S(B)===r}function le(B){return S(B)===d}function Oe(B){return S(B)===u}function K(B){return S(B)===t}function ue(B){return S(B)===o}function L(B){return S(B)===n}function H(B){return S(B)===l}ye.ContextConsumer=E,ye.ContextProvider=P,ye.Element=O,ye.ForwardRef=C,ye.Fragment=N,ye.Lazy=$,ye.Memo=I,ye.Portal=_,ye.Profiler=j,ye.StrictMode=R,ye.Suspense=V,ye.isAsyncMode=T,ye.isConcurrentMode=k,ye.isContextConsumer=G,ye.isContextProvider=ee,ye.isElement=ne,ye.isForwardRef=ie,ye.isFragment=oe,ye.isLazy=le,ye.isMemo=Oe,ye.isPortal=K,ye.isProfiler=ue,ye.isStrictMode=L,ye.isSuspense=H,ye.isValidElementType=w,ye.typeOf=S})()),ye}var Rx;function hH(){return Rx||(Rx=1,process.env.NODE_ENV==="production"?Ia.exports=vH():Ia.exports=mH()),Ia.exports}var gH=hH(),Dx=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",$x=null,ud=null,lC=e=>{if(e===$x&&Array.isArray(ud))return ud;var t=[];return A.Children.forEach(e,r=>{Te(r)||(gH.isFragment(r)?t=t.concat(lC(r.props.children)):t.push(r))}),ud=t,$x=e,t};function Qv(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(o=>Dx(o)):n=[Dx(t)],lC(e).forEach(o=>{var i=Cn(o,"type.displayName")||Cn(o,"type.name");i&&n.indexOf(i)!==-1&&r.push(o)}),r}var cC=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,dd={},Lx;function yH(){return Lx||(Lx=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const o=r[Symbol.toStringTag];return o==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${o}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(dd)),dd}var fd,zx;function bH(){return zx||(zx=1,fd=yH().isPlainObject),fd}var xH=bH();const wH=Jr(xH);var Fx,Bx,Vx,Wx,Kx;function Ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ux(Object(r),!0).forEach(function(n){SH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SH(e,t,r){return(t=PH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PH(e){var t=EH(e,"string");return typeof t=="symbol"?t:t+""}function EH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(null,arguments)}function Ho(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Gx=(e,t,r,n,o)=>{var i=r-n,a;return a=Me(Fx||(Fx=Ho(["M ",",",""])),e,t),a+=Me(Bx||(Bx=Ho(["L ",",",""])),e+r,t),a+=Me(Vx||(Vx=Ho(["L ",",",""])),e+r-i/2,t+o),a+=Me(Wx||(Wx=Ho(["L ",",",""])),e+r-i/2-n,t+o),a+=Me(Kx||(Kx=Ho(["L ",","," Z"])),e,t),a},OH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CH=e=>{var t=Le(e,OH),{x:r,y:n,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:d}=t,p=A.useRef(null),[v,g]=A.useState(-1),m=A.useRef(o),h=A.useRef(i),b=A.useRef(a),x=A.useRef(r),w=A.useRef(n),S=ki(e,"trapezoid-");if(A.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var R=p.current.getTotalLength();R&&g(R)}catch{}},[]),r!==+r||n!==+n||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var E=de("recharts-trapezoid",s);if(!d)return f.createElement("g",null,f.createElement("path",Bs({},mt(t),{className:E,d:Gx(r,n,o,i,a)})));var P=m.current,O=h.current,C=b.current,N=x.current,$=w.current,I="0px ".concat(v===-1?1:v,"px"),_="".concat(v,"px 0px"),j=I1(["strokeDasharray"],c,l);return f.createElement(Ii,{animationId:S,key:S,canBegin:v>0,duration:c,easing:l,isActive:d,begin:u},R=>{var V=Ae(P,o,R),F=Ae(O,i,R),W=Ae(C,a,R),T=Ae(N,r,R),k=Ae($,n,R);p.current&&(m.current=V,h.current=F,b.current=W,x.current=T,w.current=k);var G=R>0?{transition:j,strokeDasharray:_}:{strokeDasharray:I};return f.createElement("path",Bs({},mt(t),{className:E,d:Gx(T,k,V,F,W),ref:p,style:Hx(Hx({},G),t.style)}))})},AH=["option","shapeType","activeClassName"];function _H(e,t){if(e==null)return{};var r,n,o=TH(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function TH(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qx(Object(r),!0).forEach(function(n){jH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jH(e,t,r){return(t=NH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NH(e){var t=MH(e,"string");return typeof t=="symbol"?t:t+""}function MH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IH(e,t){return Vs(Vs({},t),e)}function kH(e,t){return e==="symbols"}function Yx(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return f.createElement($1,r);case"trapezoid":return f.createElement(CH,r);case"sector":return f.createElement(B1,r);case"symbols":if(kH(t))return f.createElement(gp,r);break;case"curve":return f.createElement(Dp,r);default:return null}}function RH(e){return A.isValidElement(e)?e.props:e}function em(e){var{option:t,shapeType:r,activeClassName:n="recharts-active-shape"}=e,o=_H(e,AH),i;if(A.isValidElement(t))i=A.cloneElement(t,Vs(Vs({},o),RH(t)));else if(typeof t=="function")i=t(o,o.index);else if(wH(t)&&typeof t!="boolean"){var a=IH(t,o);i=f.createElement(Yx,{shapeType:r,elementProps:a})}else{var s=o;i=f.createElement(Yx,{shapeType:r,elementProps:s})}return o.isActive?f.createElement(Xe,{className:n},i):i}var tm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n(bO({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}},rm=e=>{var t=Se();return(r,n)=>o=>{e?.(r,n,o),t(DW())}},nm=(e,t,r)=>{var n=Se();return(o,i)=>a=>{e?.(o,i,a),n($W({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:r}))}};function om(e){var{tooltipEntrySettings:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(MW(t)):o.current!==t&&r(IW({prev:o.current,next:t})),o.current=t)},[t,r,n]),A.useLayoutEffect(()=>()=>{o.current&&(r(kW(o.current)),o.current=null)},[r]),null}function uC(e){var{legendPayload:t}=e,r=Se(),n=ct(),o=A.useRef(null);return A.useLayoutEffect(()=>{n||(o.current===null?r(T1(t)):o.current!==t&&r(j1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(N1(o.current)),o.current=null)},[r]),null}function DH(e){var{legendPayload:t}=e,r=Se(),n=J(ve),o=A.useRef(null);return A.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(o.current===null?r(T1(t)):o.current!==t&&r(j1({prev:o.current,next:t})),o.current=t)},[r,n,t]),A.useLayoutEffect(()=>()=>{o.current&&(r(N1(o.current)),o.current=null)},[r]),null}var pd,$H=()=>{var[e]=f.useState(()=>ei("uid-"));return e},LH=(pd=f.useId)!==null&&pd!==void 0?pd:$H;function zH(e,t){var r=LH();return t||(e?"".concat(e,"-").concat(r):r)}var FH=A.createContext(void 0),im=e=>{var{id:t,type:r,children:n}=e,o=zH("recharts-".concat(r),t);return f.createElement(FH.Provider,{value:o},n(o))},BH={cartesianItems:[],polarItems:[]},dC=xt({name:"graphicalItems",initialState:BH,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ce()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,o=Bt(e).cartesianItems.indexOf(r);o>-1&&(e.cartesianItems[o]=n)},prepare:Ce()},removeCartesianGraphicalItem:{reducer(e,t){var r=Bt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ce()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ce()},removePolarGraphicalItem:{reducer(e,t){var r=Bt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ce()}}}),{addCartesianGraphicalItem:VH,replaceCartesianGraphicalItem:WH,removeCartesianGraphicalItem:KH,addPolarGraphicalItem:UH,removePolarGraphicalItem:HH}=dC.actions,GH=dC.reducer,qH=e=>{var t=Se(),r=A.useRef(null);return A.useLayoutEffect(()=>{r.current===null?t(VH(e)):r.current!==e&&t(WH({prev:r.current,next:e})),r.current=e},[t,e]),A.useLayoutEffect(()=>()=>{r.current&&(t(KH(r.current)),r.current=null)},[t]),null},fC=A.memo(qH);function YH(e){var t=Se();return A.useLayoutEffect(()=>(t(UH(e)),()=>{t(HH(e))}),[t,e]),null}var XH=["key"],ZH=["onMouseEnter","onClick","onMouseLeave"],JH=["id"],QH=["id"];function Xx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xx(Object(r),!0).forEach(function(n){e8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function e8(e,t,r){return(t=t8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t8(e){var t=r8(e,"string");return typeof t=="symbol"?t:t+""}function r8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yr.apply(null,arguments)}function ac(e,t){if(e==null)return{};var r,n,o=n8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function n8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function o8(e){var t=A.useMemo(()=>Qv(e.children,Hi),[e.children]),r=J(n=>fH(n,e.id,t));return r==null?null:f.createElement(DH,{legendPayload:r})}var i8=f.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:o,strokeWidth:i,fill:a,name:s,hide:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:n.map(p=>p.tooltipPayload),getPosition:p=>{var v;return(v=n[Number(p)])===null||v===void 0?void 0:v.tooltipPosition},settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:r,name:Po(s,t),hide:l,type:c,color:a,unit:"",graphicalItemId:u}};return f.createElement(om,{tooltipEntrySettings:d})}),a8=(e,t)=>e>t?"start":e<t?"end":"middle",s8=(e,t,r)=>at(typeof t=="function"?t(e):t,r,r*.8),l8=(e,t,r)=>{var{top:n,left:o,width:i,height:a}=t,s=L1(i,a),l=o+at(e.cx,i,i/2),c=n+at(e.cy,a,a/2),u=at(e.innerRadius,s,0),d=s8(r,e.outerRadius,s),p=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:d,maxRadius:p}},c8=(e,t)=>{var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n},u8=(e,t)=>{if(f.isValidElement(e))return f.cloneElement(e,t);if(typeof e=="function")return e(t);var r=de("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:n}=t,o=ac(t,XH);return f.createElement(Dp,Yr({},o,{type:"linear",className:r}))},d8=(e,t,r)=>{if(f.isValidElement(e))return f.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),f.isValidElement(n)))return n;var o=de("recharts-pie-label-text",aC(e));return f.createElement(nc,Yr({},t,{alignmentBaseline:"middle",className:o}),n)};function f8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o,labelLine:i,dataKey:a}=r;if(!n||!o||!t)return null;var s=At(r),l=En(o),c=En(i),u=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,d=t.map((p,v)=>{var g=(p.startAngle+p.endAngle)/2,m=Re(p.cx,p.cy,p.outerRadius+u,g),h=Ie(Ie(Ie(Ie({},s),p),{},{stroke:"none"},l),{},{index:v,textAnchor:a8(m.x,p.cx)},m),b=Ie(Ie(Ie(Ie({},s),p),{},{fill:"none",stroke:p.fill},c),{},{index:v,points:[Re(p.cx,p.cy,p.outerRadius,g),m],key:"line"});return f.createElement(wt,{zIndex:De.label,key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(v)},f.createElement(Xe,null,i&&u8(i,b),d8(o,h,be(p,a))))});return f.createElement(Xe,{className:"recharts-pie-labels"},d)}function p8(e){var{sectors:t,props:r,showLabels:n}=e,{label:o}=r;return typeof o=="object"&&o!=null&&"position"in o?f.createElement(Xv,{label:o}):f.createElement(f8,{sectors:t,props:r,showLabels:n})}function v8(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:o,shape:i,id:a}=e,s=J(qr),l=J(Vv),c=J(S6),{onMouseEnter:u,onClick:d,onMouseLeave:p}=o,v=ac(o,ZH),g=tm(u,o.dataKey,a),m=rm(p),h=nm(d,o.dataKey,a);return t==null||t.length===0?null:f.createElement(f.Fragment,null,t.map((b,x)=>{if(b?.startAngle===0&&b?.endAngle===0&&t.length!==1)return null;var w=c==null||c===a,S=String(x)===s&&(l==null||o.dataKey===l)&&w,E=s?n:null,P=r&&S?r:E,O=Ie(Ie({},b),{},{stroke:b.stroke,tabIndex:-1,[v1]:x,[m1]:a});return f.createElement(Xe,Yr({key:"sector-".concat(b?.startAngle,"-").concat(b?.endAngle,"-").concat(b.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),f.createElement(em,Yr({option:i??P,index:x,shapeType:"sector",isActive:S},O)))}))}function m8(e){var t,{pieSettings:r,displayedData:n,cells:o,offset:i}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:d}=r,p=Math.abs(r.minAngle),v=c8(s,l),g=Math.abs(v),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,h=n.filter(P=>be(P,c,0)!==0).length,b=(g>=360?h:h-1)*m,x=g-h*p-b,w=n.reduce((P,O)=>{var C=be(O,c,0);return P+(q(C)?C:0)},0),S;if(w>0){var E;S=n.map((P,O)=>{var C=be(P,c,0),N=be(P,u,O),$=l8(r,i,P),I=(q(C)?C:0)/w,_,j=Ie(Ie({},P),o&&o[O]&&o[O].props);O?_=E.endAngle+qe(v)*m*(C!==0?1:0):_=s;var R=_+qe(v)*((C!==0?p:0)+I*x),V=(_+R)/2,F=($.innerRadius+$.outerRadius)/2,W=[{name:N,value:C,payload:j,dataKey:c,type:d,graphicalItemId:r.id}],T=Re($.cx,$.cy,F,V);return E=Ie(Ie(Ie(Ie({},r.presentationProps),{},{percent:I,cornerRadius:typeof a=="string"?parseFloat(a):a,name:N,tooltipPayload:W,midAngle:V,middleRadius:F,tooltipPosition:T},j),$),{},{value:C,dataKey:c,startAngle:_,endAngle:R,payload:j,paddingAngle:qe(v)*m}),E})}return S}function h8(e){var{showLabels:t,sectors:r,children:n}=e,o=A.useMemo(()=>!t||!r?[]:r.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[r,t]);return f.createElement(YU,{value:t?o:void 0},n)}function g8(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:d,onAnimationEnd:p}=t,v=ki(t,"recharts-pie-"),g=r.current,[m,h]=A.useState(!1),b=A.useCallback(()=>{typeof p=="function"&&p(),h(!1)},[p]),x=A.useCallback(()=>{typeof d=="function"&&d(),h(!0)},[d]);return f.createElement(h8,{showLabels:!m,sectors:o},f.createElement(Ii,{animationId:v,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:b,key:v},w=>{var S,E=[],P=o&&o[0],O=(S=P?.startAngle)!==null&&S!==void 0?S:0;return o?.forEach((C,N)=>{var $=g&&g[N],I=N>0?Cn(C,"paddingAngle",0):0;if($){var _=Ae($.endAngle-$.startAngle,C.endAngle-C.startAngle,w),j=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+_+I});E.push(j),O=j.endAngle}else{var{endAngle:R,startAngle:V}=C,F=Ae(0,R-V,w),W=Ie(Ie({},C),{},{startAngle:O+I,endAngle:O+F+I});E.push(W),O=W.endAngle}}),r.current=E,f.createElement(Xe,null,f.createElement(v8,{sectors:E,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),f.createElement(p8,{showLabels:!m,sectors:o,props:t}),t.children)}var y8={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:De.area};function b8(e){var{id:t}=e,r=ac(e,JH),{hide:n,className:o,rootTabIndex:i}=e,a=A.useMemo(()=>Qv(e.children,Hi),[e.children]),s=J(u=>pH(u,t,a)),l=A.useRef(null),c=de("recharts-pie",o);return n||s==null?(l.current=null,f.createElement(Xe,{tabIndex:i,className:c})):f.createElement(wt,{zIndex:e.zIndex},f.createElement(i8,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),f.createElement(Xe,{tabIndex:i,className:c},f.createElement(g8,{props:Ie(Ie({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function pC(e){var t=Le(e,y8),{id:r}=t,n=ac(t,QH),o=At(n);return f.createElement(im,{id:r,type:"pie"},i=>f.createElement(f.Fragment,null,f.createElement(YH,{type:"pie",id:i,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),f.createElement(o8,Yr({},n,{id:i})),f.createElement(b8,Yr({},n,{id:i}))))}pC.displayName="Pie";var x8=["points"];function Zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zx(Object(r),!0).forEach(function(n){w8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w8(e,t,r){return(t=S8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){var t=P8(e,"string");return typeof t=="symbol"?t:t+""}function P8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ws(){return Ws=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ws.apply(null,arguments)}function E8(e,t){if(e==null)return{};var r,n,o=O8(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function O8(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function C8(e){var{option:t,dotProps:r,className:n}=e;if(A.isValidElement(t))return A.cloneElement(t,r);if(typeof t=="function")return t(r);var o=de(n,typeof t!="boolean"?t.className:""),i=r??{},{points:a}=i,s=E8(i,x8);return f.createElement(rC,Ws({},s,{className:o}))}function A8(e,t){return e==null?!1:t?!0:e.length===1}function _8(e){var{points:t,dot:r,className:n,dotClassName:o,dataKey:i,baseProps:a,needClip:s,clipPathId:l,zIndex:c=De.scatter}=e;if(!A8(t,r))return null;var u=cC(r),d=P2(r),p=t.map((g,m)=>{var h,b,x=vd(vd(vd({r:3},a),d),{},{index:m,cx:(h=g.x)!==null&&h!==void 0?h:void 0,cy:(b=g.y)!==null&&b!==void 0?b:void 0,dataKey:i,value:g.value,payload:g.payload,points:t});return f.createElement(C8,{key:"dot-".concat(m),option:r,dotProps:x,className:o})}),v={};return s&&l!=null&&(v.clipPath="url(#clipPath-".concat(u?"":"dots-").concat(l,")")),f.createElement(wt,{zIndex:c},f.createElement(Xe,Ws({className:n},v),p))}function Jx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Qx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jx(Object(r),!0).forEach(function(n){T8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function T8(e,t,r){return(t=j8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j8(e){var t=N8(e,"string");return typeof t=="symbol"?t:t+""}function N8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vC=0,M8={xAxis:{},yAxis:{},zAxis:{}},mC=xt({name:"cartesianAxis",initialState:M8,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ce()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.xAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ce()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ce()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ce()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.yAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ce()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ce()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ce()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;e.zAxis[r.id]!==void 0&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ce()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ce()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,o=e.yAxis[r];if(o){var i,a=o.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==o.width&&Math.abs(n-((i=a[0])!==null&&i!==void 0?i:0))<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=Qx(Qx({},o),{},{width:n,widthHistory:s})}}}}),{addXAxis:I8,replaceXAxis:k8,removeXAxis:R8,addYAxis:D8,replaceYAxis:$8,removeYAxis:L8,addZAxis:hre,replaceZAxis:gre,removeZAxis:yre,updateYAxisWidth:z8}=mC.actions,F8=mC.reducer,B8=M([Ve],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),V8=M([B8,Tr,jr],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),am=()=>J(V8),W8=()=>J(A6);function ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function md(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(r),!0).forEach(function(n){K8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K8(e,t,r){return(t=U8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U8(e){var t=H8(e,"string");return typeof t=="symbol"?t:t+""}function H8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G8=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:o,dataKey:i,clipPath:a}=e;if(o===!1||t.x==null||t.y==null)return null;var s={index:r,dataKey:i,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},l=md(md(md({},s),En(o)),yp(o)),c;return A.isValidElement(o)?c=A.cloneElement(o,l):typeof o=="function"?c=o(l):c=f.createElement(rC,l),f.createElement(Xe,{className:"recharts-active-dot",clipPath:a},c)};function q8(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:o,clipPath:i,zIndex:a=De.activeDot}=e,s=J(qr),l=W8();if(t==null||l==null)return null;var c=t.find(u=>l.includes(u.payload));return Te(c)?null:f.createElement(wt,{zIndex:a},f.createElement(G8,{point:c,childIndex:Number(s),mainColor:r,dataKey:o,activeDot:n,clipPath:i}))}var tw=(e,t,r)=>{var n=r??e;if(!Te(n))return at(n,t,0)},Y8=(e,t,r)=>{var n={},o=e.filter(ql),i=e.filter(c=>c.stackId==null),a=o.reduce((c,u)=>{var d=c[u.stackId];return d==null&&(d=[]),d.push(u),c[u.stackId]=d,c},n),s=Object.entries(a).map(c=>{var u,[d,p]=c,v=p.map(m=>m.dataKey),g=tw(t,r,(u=p[0])===null||u===void 0?void 0:u.barSize);return{stackId:d,dataKeys:v,barSize:g}}),l=i.map(c=>{var u=[c.dataKey].filter(p=>p!=null),d=tw(t,r,c.barSize);return{stackId:void 0,dataKeys:u,barSize:d}});return[...s,...l]};function rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ka(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rw(Object(r),!0).forEach(function(n){X8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X8(e,t,r){return(t=Z8(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z8(e){var t=J8(e,"string");return typeof t=="symbol"?t:t+""}function J8(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q8(e,t,r,n,o){var i,a=n.length;if(!(a<1)){var s=at(e,r,0,!0),l,c=[];if(ce((i=n[0])===null||i===void 0?void 0:i.barSize)){var u=!1,d=r/a,p=n.reduce((x,w)=>x+(w.barSize||0),0);p+=(a-1)*s,p>=r&&(p-=(a-1)*s,s=0),p>=r&&d>0&&(u=!0,d*=.9,p=a*d);var v=(r-p)/2>>0,g={offset:v-s,size:0};l=n.reduce((x,w)=>{var S,E={stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:g.offset+g.size+s,size:u?d:(S=w.barSize)!==null&&S!==void 0?S:0}},P=[...x,E];return g=E.position,P},c)}else{var m=at(t,r,0,!0);r-2*m-(a-1)*s<=0&&(s=0);var h=(r-2*m-(a-1)*s)/a;h>1&&(h>>=0);var b=ce(o)?Math.min(h,o):h;l=n.reduce((x,w,S)=>[...x,{stackId:w.stackId,dataKeys:w.dataKeys,position:{offset:m+(h+s)*S+(h-b)/2,size:b}}],c)}return l}}var eG=(e,t,r,n,o,i,a)=>{var s=Te(a)?t:a,l=Q8(r,n,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(c=>ka(ka({},c),{},{position:ka(ka({},c.position),{},{offset:c.position.offset-o/2})}))),l},tG=(e,t)=>{var r=mv(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var o=e[n];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===r)}}}},rG=(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}};function nG(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&ce(e.zIndex)?e.zIndex:t}var hC=e=>{var{chartData:t}=e,r=Se(),n=ct();return A.useEffect(()=>n?()=>{}:(r(sx(t)),()=>{r(sx(void 0))}),[t,r,n]),null},nw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},gC=xt({name:"brush",initialState:nw,reducers:{setBrushSettings(e,t){return t.payload==null?nw:t.payload}}}),{setBrushSettings:bre}=gC.actions,oG=gC.reducer;function iG(e){return(e%180+180)%180}var aG=function(t){var{width:r,height:n}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=iG(o),a=i*Math.PI/180,s=Math.atan(n/r),l=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(l)},sG={dots:[],areas:[],lines:[]},yC=xt({name:"referenceElements",initialState:sG,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Bt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Bt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Bt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:xre,removeDot:wre,addArea:Sre,removeArea:Pre,addLine:Ere,removeLine:Ore}=yC.actions,lG=yC.reducer,cG=A.createContext(void 0),uG=e=>{var{children:t}=e,[r]=A.useState("".concat(ei("recharts"),"-clip")),n=am();if(n==null)return null;var{x:o,y:i,width:a,height:s}=n;return f.createElement(cG.Provider,{value:r},f.createElement("defs",null,f.createElement("clipPath",{id:r},f.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function bC(e,t){if(t<1)return[];if(t===1)return e;for(var r=[],n=0;n<e.length;n+=t){var o=e[n];o!==void 0&&r.push(o)}return r}function dG(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return aG(n,r)}function fG(e,t,r){var n=r==="width",{x:o,y:i,width:a,height:s}=e;return t===1?{start:n?o:i,end:n?o+a:i+s}:{start:n?o+a:i+s,end:n?o:i}}function vi(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function pG(e,t){return bC(e,t+1)}function vG(e,t,r,n,o){for(var i=(n||[]).slice(),{start:a,end:s}=t,l=0,c=1,u=a,d=function(){var g=n?.[l];if(g===void 0)return{v:bC(n,c)};var m=l,h,b=()=>(h===void 0&&(h=r(g,m)),h),x=g.coordinate,w=l===0||vi(e,x,b,u,s);w||(l=0,u=a,c+=1),w&&(u=x+e*(b()/2+o),l+=c)},p;c<=i.length;)if(p=d(),p)return p.v;return[]}function mG(e,t,r,n,o){var i=(n||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,c=1;c<=a;c++){for(var u=(a-1)%c,d=s,p=!0,v=function(){var S=n[m];if(S==null)return 0;var E=m,P,O=()=>(P===void 0&&(P=r(S,E)),P),C=S.coordinate,N=m===u||vi(e,C,O,d,l);if(!N)return p=!1,1;N&&(d=C+e*(O()/2+o))},g,m=u;m<a&&(g=v(),!(g!==0&&g===1));m+=c);if(p){for(var h=[],b=u;b<a;b+=c){var x=n[b];x!=null&&h.push(x)}return h}}return[]}function ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ot(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(r),!0).forEach(function(n){hG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hG(e,t,r){return(t=gG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gG(e){var t=yG(e,"string");return typeof t=="symbol"?t:t+""}function yG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bG(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,c=function(p){var v=i[p];if(v==null)return 1;var g=v,m,h=()=>(m===void 0&&(m=r(v,p)),m);if(p===a-1){var b=e*(g.coordinate+e*h()/2-l);i[p]=g=ot(ot({},g),{},{tickCoord:b>0?g.coordinate-b*e:g.coordinate})}else i[p]=g=ot(ot({},g),{},{tickCoord:g.coordinate});if(g.tickCoord!=null){var x=vi(e,g.tickCoord,h,s,l);x&&(l=g.tickCoord-e*(h()/2+o),i[p]=ot(ot({},g),{},{isShow:!0}))}},u=a-1;u>=0;u--)c(u);return i}function xG(e,t,r,n,o,i){var a=(n||[]).slice(),s=a.length,{start:l,end:c}=t;if(i){var u=n[s-1];if(u!=null){var d=r(u,s-1),p=e*(u.coordinate+e*d/2-c);if(a[s-1]=u=ot(ot({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),u.tickCoord!=null){var v=vi(e,u.tickCoord,()=>d,l,c);v&&(c=u.tickCoord-e*(d/2+o),a[s-1]=ot(ot({},u),{},{isShow:!0}))}}}for(var g=i?s-1:s,m=function(x){var w=a[x];if(w==null)return 1;var S=w,E,P=()=>(E===void 0&&(E=r(w,x)),E);if(x===0){var O=e*(S.coordinate-e*P()/2-l);a[x]=S=ot(ot({},S),{},{tickCoord:O<0?S.coordinate-O*e:S.coordinate})}else a[x]=S=ot(ot({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var C=vi(e,S.tickCoord,P,l,c);C&&(l=S.tickCoord+e*(P()/2+o),a[x]=ot(ot({},S),{},{isShow:!0}))}},h=0;h<g;h++)m(h);return a}function sm(e,t,r){var{tick:n,ticks:o,viewBox:i,minTickGap:a,orientation:s,interval:l,tickFormatter:c,unit:u,angle:d}=e;if(!o||!o.length||!n)return[];if(q(l)||$l.isSsr){var p;return(p=pG(o,q(l)?l:0))!==null&&p!==void 0?p:[]}var v=[],g=s==="top"||s==="bottom"?"width":"height",m=u&&g==="width"?Qo(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},h=(E,P)=>{var O=typeof c=="function"?c(E.value,P):E.value;return g==="width"?dG(Qo(O,{fontSize:t,letterSpacing:r}),m,d):Qo(O,{fontSize:t,letterSpacing:r})[g]},b=o[0],x=o[1],w=o.length>=2&&b!=null&&x!=null?qe(x.coordinate-b.coordinate):1,S=fG(i,w,g);return l==="equidistantPreserveStart"?vG(w,S,h,o,a):l==="equidistantPreserveEnd"?mG(w,S,h,o,a):(l==="preserveStart"||l==="preserveStartEnd"?v=xG(w,S,h,o,a,l==="preserveStartEnd"):v=bG(w,S,h,o,a),v.filter(E=>E.isShow))}var wG=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(u=>{if(u){var d=u.getBoundingClientRect();d.width>a&&(a=d.width)}});var s=r?r.getBoundingClientRect().width:0,l=o+i,c=a+l+s+(r?n:0);return Math.round(c)}return 0},SG=["axisLine","width","height","className","hide","ticks","axisType"];function PG(e,t){if(e==null)return{};var r,n,o=EG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function EG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mn.apply(null,arguments)}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(n){OG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OG(e,t,r){return(t=CG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CG(e){var t=AG(e,"string");return typeof t=="symbol"?t:t+""}function AG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:De.axis};function _G(e){var{x:t,y:r,width:n,height:o,orientation:i,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var c=Ne(Ne(Ne({},l),At(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var u=+(i==="top"&&!a||i==="bottom"&&a);c=Ne(Ne({},c),{},{x1:t,y1:r+u*o,x2:t+n,y2:r+u*o})}else{var d=+(i==="left"&&!a||i==="right"&&a);c=Ne(Ne({},c),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+o})}return f.createElement("line",Mn({},c,{className:de("recharts-cartesian-axis-line",Cn(s,"className"))}))}function TG(e,t,r,n,o,i,a,s,l){var c,u,d,p,v,g,m=s?-1:1,h=e.tickSize||a,b=q(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,p=r+ +!s*o,d=p-m*h,g=d-m*l,v=b;break;case"left":d=p=e.coordinate,u=t+ +!s*n,c=u-m*h,v=c-m*l,g=b;break;case"right":d=p=e.coordinate,u=t+ +s*n,c=u+m*h,v=c+m*l,g=b;break;default:c=u=e.coordinate,p=r+ +s*o,d=p+m*h,g=d+m*l,v=b;break}return{line:{x1:c,y1:d,x2:u,y2:p},tick:{x:v,y:g}}}function jG(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function NG(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function MG(e){var{option:t,tickProps:r,value:n}=e,o,i=de(r.className,"recharts-cartesian-axis-tick-value");if(f.isValidElement(t))o=f.cloneElement(t,Ne(Ne({},r),{},{className:i}));else if(typeof t=="function")o=t(Ne(Ne({},r),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=de(a,aC(t))),o=f.createElement(nc,Mn({},r,{className:a}),n)}return o}var IG=A.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:c,orientation:u,mirror:d,x:p,y:v,width:g,height:m,tickSize:h,tickMargin:b,fontSize:x,letterSpacing:w,getTicksConfig:S,events:E,axisType:P}=e,O=sm(Ne(Ne({},S),{},{ticks:r}),x,w),C=jG(u,d),N=NG(u,d),$=At(S),I=En(n),_={};typeof o=="object"&&(_=o);var j=Ne(Ne({},$),{},{fill:"none"},_),R=O.map(W=>Ne({entry:W},TG(W,p,v,g,m,u,h,d,b))),V=R.map(W=>{var{entry:T,line:k}=W;return f.createElement(Xe,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},o&&f.createElement("line",Mn({},j,k,{className:de("recharts-cartesian-axis-tick-line",Cn(o,"className"))})))}),F=R.map((W,T)=>{var k,G,{entry:ee,tick:ne}=W,ie=Ne(Ne(Ne(Ne({verticalAnchor:N},$),{},{textAnchor:C,stroke:"none",fill:i},ne),{},{index:T,payload:ee,visibleTicksCount:O.length,tickFormatter:a,padding:l},c),{},{angle:(k=(G=c?.angle)!==null&&G!==void 0?G:$.angle)!==null&&k!==void 0?k:0}),oe=Ne(Ne({},ie),I);return f.createElement(Xe,Mn({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(ee.value,"-").concat(ee.coordinate,"-").concat(ee.tickCoord)},Oi(E,ee,T)),n&&f.createElement(MG,{option:n,tickProps:oe,value:"".concat(typeof a=="function"?a(ee.value,T):ee.value).concat(s||"")}))});return f.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(P,"-ticks")},F.length>0&&f.createElement(wt,{zIndex:De.label},f.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(P,"-tick-labels"),ref:t},F)),V.length>0&&f.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(P,"-tick-lines")},V))}),kG=A.forwardRef((e,t)=>{var{axisLine:r,width:n,height:o,className:i,hide:a,ticks:s,axisType:l}=e,c=PG(e,SG),[u,d]=A.useState(""),[p,v]=A.useState(""),g=A.useRef(null);A.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var h;return wG({ticks:g.current,label:(h=e.labelRef)===null||h===void 0?void 0:h.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var m=A.useCallback(h=>{if(h){var b=h.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=b;var x=b[0];if(x){var w=window.getComputedStyle(x),S=w.fontSize,E=w.letterSpacing;(S!==u||E!==p)&&(d(S),v(E))}}},[u,p]);return a||n!=null&&n<=0||o!=null&&o<=0?null:f.createElement(wt,{zIndex:e.zIndex},f.createElement(Xe,{className:de("recharts-cartesian-axis",i)},f.createElement(_G,{x:e.x,y:e.y,width:n,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:At(e)}),f.createElement(IG,{ref:m,axisType:l,events:c,fontSize:u,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y}),f.createElement(_U,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},f.createElement(LU,{label:e.label,labelRef:e.labelRef}),e.children)))}),lm=f.forwardRef((e,t)=>{var r=Le(e,gr);return f.createElement(kG,Mn({},r,{ref:t}))});lm.displayName="CartesianAxis";var RG=["x1","y1","x2","y2","key"],DG=["offset"],$G=["xAxisId","yAxisId"],LG=["xAxisId","yAxisId"];function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){zG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zG(e,t,r){return(t=FG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FG(e){var t=BG(e,"string");return typeof t=="symbol"?t:t+""}function BG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gn.apply(null,arguments)}function Ks(e,t){if(e==null)return{};var r,n,o=VG(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function VG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var WG=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:o,width:i,height:a,ry:s}=e;return f.createElement("rect",{x:n,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xC(e){var{option:t,lineItemProps:r}=e,n;if(f.isValidElement(t))n=f.cloneElement(t,r);else if(typeof t=="function")n=t(r);else{var o,{x1:i,y1:a,x2:s,y2:l,key:c}=r,u=Ks(r,RG),d=(o=At(u))!==null&&o!==void 0?o:{},{offset:p}=d,v=Ks(d,DG);n=f.createElement("line",gn({},v,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function KG(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Ks(e,$G),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(u),index:u});return f.createElement(xC,{key:"line-".concat(u),option:n,lineItemProps:d})});return f.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function UG(e){var{y:t,height:r,vertical:n=!0,verticalPoints:o}=e;if(!n||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Ks(e,LG),l=o.map((c,u)=>{var d=it(it({},s),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(u),index:u});return f.createElement(xC,{option:n,lineItemProps:d,key:"line-".concat(u)})});return f.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function HG(e){var{horizontalFill:t,fillOpacity:r,x:n,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var c=s.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%t.length;return f.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:m,width:i,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function GG(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(d=>Math.round(d+o-o)).sort((d,p)=>d-p);o!==c[0]&&c.unshift(0);var u=c.map((d,p)=>{var v=c[p+1],g=v==null,m=g?o+a-d:v-d;if(m<=0)return null;var h=p%r.length;return f.createElement("rect",{key:"react-".concat(p),x:d,y:i,width:m,height:s,stroke:"none",fill:r[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return f.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var qG=(e,t)=>{var{xAxis:r,width:n,height:o,offset:i}=e;return d1(sm(it(it(it({},gr),r),{},{ticks:f1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},YG=(e,t)=>{var{yAxis:r,width:n,height:o,offset:i}=e;return d1(sm(it(it(it({},gr),r),{},{ticks:f1(r),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},XG={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:De.grid};function cm(e){var t=Mp(),r=Ip(),n=b1(),o=it(it({},Le(e,XG)),{},{x:q(e.x)?e.x:n.left,y:q(e.y)?e.y:n.top,width:q(e.width)?e.width:n.width,height:q(e.height)?e.height:n.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:c,height:u,syncWithTicks:d,horizontalValues:p,verticalValues:v}=o,g=ct(),m=J(N=>Yb(N,"xAxis",i,g)),h=J(N=>Yb(N,"yAxis",a,g));if(!ar(c)||!ar(u)||!q(s)||!q(l))return null;var b=o.verticalCoordinatesGenerator||qG,x=o.horizontalCoordinatesGenerator||YG,{horizontalPoints:w,verticalPoints:S}=o;if((!w||!w.length)&&typeof x=="function"){var E=p&&p.length,P=x({yAxis:h?it(it({},h),{},{ticks:E?p:h.ticks}):void 0,width:t??c,height:r??u,offset:n},E?!0:d);hs(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&typeof b=="function"){var O=v&&v.length,C=b({xAxis:m?it(it({},m),{},{ticks:O?v:m.ticks}):void 0,width:t??c,height:r??u,offset:n},O?!0:d);hs(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof C,"]")),Array.isArray(C)&&(S=C)}return f.createElement(wt,{zIndex:o.zIndex},f.createElement("g",{className:"recharts-cartesian-grid"},f.createElement(WG,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),f.createElement(HG,gn({},o,{horizontalPoints:w})),f.createElement(GG,gn({},o,{verticalPoints:S})),f.createElement(KG,gn({},o,{offset:n,horizontalPoints:w,xAxis:m,yAxis:h})),f.createElement(UG,gn({},o,{offset:n,verticalPoints:S,xAxis:m,yAxis:h}))))}cm.displayName="CartesianGrid";var ZG={},wC=xt({name:"errorBars",initialState:ZG,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:o}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(o=>o.dataKey!==n.dataKey||o.direction!==n.direction))}}}),{addErrorBar:Cre,replaceErrorBar:Are,removeErrorBar:_re}=wC.actions,JG=wC.reducer,QG=["children"];function eq(e,t){if(e==null)return{};var r,n,o=tq(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function tq(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var rq={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},nq=A.createContext(rq);function SC(e){var{children:t}=e,r=eq(e,QG);return f.createElement(nq.Provider,{value:r},t)}function um(e,t){var r,n,o=J(c=>Ir(c,e)),i=J(c=>kr(c,t)),a=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:Ue.allowDataOverflow,s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:He.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function PC(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,o=am(),{needClipX:i,needClipY:a,needClip:s}=um(t,r);if(!s||!o)return null;var{x:l,y:c,width:u,height:d}=o;return f.createElement("clipPath",{id:"clipPath-".concat(n)},f.createElement("rect",{x:i?l:l-u/2,y:a?c:c-d/2,width:i?u:u*2,height:a?d:d*2}))}var EC=(e,t,r,n)=>Gr(e,"xAxis",t,n),OC=(e,t,r,n)=>Hr(e,"xAxis",t,n),CC=(e,t,r,n)=>Gr(e,"yAxis",r,n),AC=(e,t,r,n)=>Hr(e,"yAxis",r,n),oq=M([ve,EC,CC,OC,AC],(e,t,r,n,o)=>_r(e,"xAxis")?co(t,n,!1):co(r,o,!1)),iq=(e,t,r,n,o)=>o;function aq(e){return e.type==="line"}var sq=M([Zl,iq],(e,t)=>e.filter(aq).find(r=>r.id===t)),lq=M([ve,EC,CC,OC,AC,sq,oq,av],(e,t,r,n,o,i,a,s)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:u}=s;if(!(i==null||t==null||r==null||n==null||o==null||n.length===0||o.length===0||a==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:d,data:p}=i,v;if(p!=null&&p.length>0?v=p:v=l?.slice(c,u+1),v!=null)return Xq({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:o,dataKey:d,bandSize:a,displayedData:v})}});function cq(e){var t=En(e),r=3,n=2;if(t!=null){var{r:o,strokeWidth:i}=t,a=Number(o),s=Number(i);return(Number.isNaN(a)||a<0)&&(a=r),(Number.isNaN(s)||s<0)&&(s=n),{r:a,strokeWidth:s}}return{r,strokeWidth:n}}var Ra={exports:{}},hd={};var sw;function uq(){if(sw)return hd;sw=1;var e=A;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return hd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},hd}var gd={};var lw;function dq(){return lw||(lw=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=A,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,a=t.useMemo,s=t.useDebugValue;gd.useSyncExternalStoreWithSelector=function(l,c,u,d,p){var v=o(null);if(v.current===null){var g={hasValue:!1,value:null};v.current=g}else g=v.current;v=a(function(){function h(E){if(!b){if(b=!0,x=E,E=d(E),p!==void 0&&g.hasValue){var P=g.value;if(p(P,E))return w=P}return w=E}if(P=w,r(x,E))return P;var O=d(E);return p!==void 0&&p(P,O)?(x=E,P):(x=E,w=O)}var b=!1,x,w,S=u===void 0?null:u;return[function(){return h(c())},S===null?void 0:function(){return h(S())}]},[c,u,d,p]);var m=n(l,v[0],v[1]);return i(function(){g.hasValue=!0,g.value=m},[m]),s(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),gd}var cw;function fq(){return cw||(cw=1,process.env.NODE_ENV==="production"?Ra.exports=uq():Ra.exports=dq()),Ra.exports}fq();function pq(e){e()}function vq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){pq(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var uw={notify(){},get:()=>[]};function mq(e,t){let r,n=uw,o=0,i=!1;function a(m){u();const h=n.subscribe(m);let b=!1;return()=>{b||(b=!0,h(),d())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return i}function u(){o++,r||(r=e.subscribe(l),n=vq())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=uw)}function p(){i||(i=!0,u())}function v(){i&&(i=!1,d())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:v,getListeners:()=>n};return g}var hq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gq=hq(),yq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bq=yq(),xq=()=>gq||bq?f.useLayoutEffect:f.useEffect,wq=xq();function dw(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Sq(e,t){if(dw(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!dw(e[r[o]],t[r[o]]))return!1;return!0}var Pq=Symbol.for("react-redux-context"),Eq=typeof globalThis<"u"?globalThis:{};function Oq(){if(!f.createContext)return{};const e=Eq[Pq]??=new Map;let t=e.get(f.createContext);return t||(t=f.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(f.createContext,t)),t}var Cq=Oq();function Aq(e){const{children:t,context:r,serverState:n,store:o}=e,i=f.useMemo(()=>{const l=mq(o),c={store:o,subscription:l,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:u="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:u})}},[o,n]),a=f.useMemo(()=>o.getState(),[o]);wq(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=r||Cq;return f.createElement(s.Provider,{value:i},t)}var _q=Aq,Tq=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function jq(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function sc(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Tq.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Sq(e[n],t[n]))return!1}else if(!jq(e[n],t[n]))return!1;return!0}var Nq=["id"],Mq=["type","layout","connectNulls","needClip","shape"],Iq=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function mi(){return mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mi.apply(null,arguments)}function fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fw(Object(r),!0).forEach(function(n){kq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kq(e,t,r){return(t=Rq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rq(e){var t=Dq(e,"string");return typeof t=="symbol"?t:t+""}function Dq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dm(e,t){if(e==null)return{};var r,n,o=$q(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function $q(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Lq=e=>{var{dataKey:t,name:r,stroke:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Po(r,t),payload:e}]},zq=f.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:o,fill:i,name:a,hide:s,unit:l,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:zn,settings:{stroke:n,strokeWidth:o,fill:i,dataKey:t,nameKey:void 0,name:Po(a,t),hide:s,type:c,color:n,unit:l,graphicalItemId:u}};return f.createElement(om,{tooltipEntrySettings:d})}),_C=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function Fq(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],o=0;o<t;++o)n=[...n,...r];return n}var Bq=(e,t,r)=>{var n=r.reduce((v,g)=>v+g);if(!n)return _C(t,e);for(var o=Math.floor(e/n),i=e%n,a=t-e,s=[],l=0,c=0;l<r.length;c+=(u=r[l])!==null&&u!==void 0?u:0,++l){var u,d=r[l];if(d!=null&&c+d>i){s=[...r.slice(0,l),i-c];break}}var p=s.length%2===0?[0,a]:[a];return[...Fq(r,o),...s,...p].map(v=>"".concat(v,"px")).join(", ")};function Vq(e){var{clipPathId:t,points:r,props:n}=e,{dot:o,dataKey:i,needClip:a}=n,{id:s}=n,l=dm(n,Nq),c=At(l);return f.createElement(_8,{points:r,dot:o,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:i,baseProps:c,needClip:a,clipPathId:t})}function Wq(e){var{showLabels:t,children:r,points:n}=e,o=A.useMemo(()=>n?.map(i=>{var a,s,l={x:(a=i.x)!==null&&a!==void 0?a:0,y:(s=i.y)!==null&&s!==void 0?s:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Zt(Zt({},l),{},{value:i.value,payload:i.payload,viewBox:l,parentViewBox:void 0,fill:void 0})}),[n]);return f.createElement(eC,{value:t?o:void 0},r)}function pw(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:o,props:i}=e,{type:a,layout:s,connectNulls:l,needClip:c,shape:u}=i,d=dm(i,Mq),p=Zt(Zt({},mt(d)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:s,connectNulls:l,strokeDasharray:o??i.strokeDasharray});return f.createElement(f.Fragment,null,n?.length>1&&f.createElement(em,mi({shapeType:"curve",option:u},p,{pathRef:r})),f.createElement(Vq,{points:n,clipPathId:t,props:i}))}function Kq(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function Uq(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:o,longestAnimatedLengthRef:i}=e,{points:a,strokeDasharray:s,isAnimationActive:l,animationBegin:c,animationDuration:u,animationEasing:d,animateNewValues:p,width:v,height:g,onAnimationEnd:m,onAnimationStart:h}=r,b=o.current,x=ki(a,"recharts-line-"),w=A.useRef(x),[S,E]=A.useState(!1),P=!S,O=A.useCallback(()=>{typeof m=="function"&&m(),E(!1)},[m]),C=A.useCallback(()=>{typeof h=="function"&&h(),E(!0)},[h]),N=Kq(n.current),$=A.useRef(0);w.current!==x&&($.current=i.current,w.current=x);var I=$.current;return f.createElement(Wq,{points:a,showLabels:P},r.children,f.createElement(Ii,{animationId:x,begin:c,duration:u,isActive:l,easing:d,onAnimationEnd:O,onAnimationStart:C,key:x},_=>{var j=Ae(I,N+I,_),R=Math.min(j,N),V;if(l)if(s){var F="".concat(s).split(/[,\s]+/gim).map(k=>parseFloat(k));V=Bq(R,N,F)}else V=_C(N,R);else V=s==null?void 0:String(s);if(_>0&&N>0&&(o.current=a,i.current=Math.max(i.current,R)),b){var W=b.length/a.length,T=_===1?a:a.map((k,G)=>{var ee=Math.floor(G*W);if(b[ee]){var ne=b[ee];return Zt(Zt({},k),{},{x:Ae(ne.x,k.x,_),y:Ae(ne.y,k.y,_)})}return p?Zt(Zt({},k),{},{x:Ae(v*2,k.x,_),y:Ae(g/2,k.y,_)}):Zt(Zt({},k),{},{x:k.x,y:k.y})});return o.current=T,f.createElement(pw,{props:r,points:T,clipPathId:t,pathRef:n,strokeDasharray:V})}return f.createElement(pw,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:V})}),f.createElement(Xv,{label:r.label}))}function Hq(e){var{clipPathId:t,props:r}=e,n=A.useRef(null),o=A.useRef(0),i=A.useRef(null);return f.createElement(Uq,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:o,pathRef:i})}var Gq=(e,t)=>{var r,n;return{x:(r=e.x)!==null&&r!==void 0?r:void 0,y:(n=e.y)!==null&&n!==void 0?n:void 0,value:e.value,errorVal:be(e.payload,t)}};class qq extends A.Component{render(){var{hide:t,dot:r,points:n,className:o,xAxisId:i,yAxisId:a,top:s,left:l,width:c,height:u,id:d,needClip:p,zIndex:v}=this.props;if(t)return null;var g=de("recharts-line",o),m=d,{r:h,strokeWidth:b}=cq(r),x=cC(r),w=h*2+b,S=p?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return f.createElement(wt,{zIndex:v},f.createElement(Xe,{className:g},p&&f.createElement("defs",null,f.createElement(PC,{clipPathId:m,xAxisId:i,yAxisId:a}),!x&&f.createElement("clipPath",{id:"clipPath-dots-".concat(m)},f.createElement("rect",{x:l-w/2,y:s-w/2,width:c+w,height:u+w}))),f.createElement(SC,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:Gq,errorBarOffset:0},f.createElement(Hq,{props:this.props,clipPathId:m}))),f.createElement(q8,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var TC={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:De.line,type:"linear"};function Yq(e){var t=Le(e,TC),{activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,connectNulls:s,dot:l,hide:c,isAnimationActive:u,label:d,legendType:p,xAxisId:v,yAxisId:g,id:m}=t,h=dm(t,Iq),{needClip:b}=um(v,g),x=am(),w=Fn(),S=ct(),E=J($=>lq($,v,g,S,m));if(w!=="horizontal"&&w!=="vertical"||E==null||x==null)return null;var{height:P,width:O,x:C,y:N}=x;return f.createElement(qq,mi({},h,{id:m,connectNulls:s,dot:l,activeDot:r,animateNewValues:n,animationBegin:o,animationDuration:i,animationEasing:a,isAnimationActive:u,hide:c,label:d,legendType:p,xAxisId:v,yAxisId:g,points:E,layout:w,height:P,width:O,left:C,top:N,needClip:b}))}function Xq(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,dataKey:a,bandSize:s,displayedData:l}=e;return l.map((c,u)=>{var d=be(c,a);if(t==="horizontal"){var p=Hg({axis:r,ticks:o,bandSize:s,entry:c,index:u}),v=Te(d)?null:n.scale.map(d);return{x:p,y:v??null,value:d,payload:c}}var g=Te(d)?null:r.scale.map(d),m=Hg({axis:n,ticks:i,bandSize:s,entry:c,index:u});return g==null||m==null?null:{x:g,y:m,value:d,payload:c}}).filter(Boolean)}function Zq(e){var t=Le(e,TC),r=ct();return f.createElement(im,{id:t.id,type:"line"},n=>f.createElement(f.Fragment,null,f.createElement(uC,{legendPayload:Lq(t)}),f.createElement(zq,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:n}),f.createElement(fC,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),f.createElement(Yq,mi({},t,{id:n}))))}var jC=f.memo(Zq,sc);jC.displayName="Line";function Wn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.xAxisId)!==null&&r!==void 0?r:vC}function Kn(e,t){var r,n;return(r=(n=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||n===void 0?void 0:n.yAxisId)!==null&&r!==void 0?r:vC}var Jq=process.env.NODE_ENV==="production",yd="Invariant failed";function Qq(e,t){if(Jq)throw new Error(yd);var r=typeof t=="function"?t():t,n=r?"".concat(yd,": ").concat(r):yd;throw new Error(n)}function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sf.apply(null,arguments)}function Us(e){return f.createElement(em,Sf({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var e9=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,o)=>{if(q(t))return t;var i=q(n)||Te(n);return i?t(n,o):(i||Qq(!1,"minPointSize callback function received a value with type of ".concat(typeof n,". Currently only numbers or null/undefined are supported.")),r)}},t9=(e,t,r)=>r,r9=(e,t)=>t,Gi=M([Zl,r9],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),n9=M([Gi],e=>e?.maxBarSize),o9=(e,t,r,n)=>n,i9=M([ve,Zl,Wn,Kn,t9],(e,t,r,n,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===r:i.yAxisId===n).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),a9=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null))return n==="horizontal"?mf(e,"yAxis",i,r):mf(e,"xAxis",o,r)},s9=(e,t)=>{var r=ve(e),n=Wn(e,t),o=Kn(e,t);if(!(n==null||o==null))return r==="horizontal"?qb(e,"xAxis",n):qb(e,"yAxis",o)},l9=M([i9,S4,s9],Y8),c9=(e,t,r)=>{var n,o,i=Gi(e,t);if(i==null)return 0;var a=Wn(e,t),s=Kn(e,t);if(a==null||s==null)return 0;var l=ve(e),c=IE(e),{maxBarSize:u}=i,d=Te(u)?c:u,p,v;return l==="horizontal"?(p=Gr(e,"xAxis",a,r),v=Hr(e,"xAxis",a,r)):(p=Gr(e,"yAxis",s,r),v=Hr(e,"yAxis",s,r)),(n=(o=co(p,v,!0))!==null&&o!==void 0?o:d)!==null&&n!==void 0?n:0},NC=(e,t,r)=>{var n=ve(e),o=Wn(e,t),i=Kn(e,t);if(!(o==null||i==null)){var a,s;return n==="horizontal"?(a=Gr(e,"xAxis",o,r),s=Hr(e,"xAxis",o,r)):(a=Gr(e,"yAxis",i,r),s=Hr(e,"yAxis",i,r)),co(a,s)}},u9=M([l9,IE,w4,kE,c9,NC,n9],eG),d9=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Gr(e,"xAxis",n,r)},f9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Gr(e,"yAxis",n,r)},p9=(e,t,r)=>{var n=Wn(e,t);if(n!=null)return Hr(e,"xAxis",n,r)},v9=(e,t,r)=>{var n=Kn(e,t);if(n!=null)return Hr(e,"yAxis",n,r)},m9=M([u9,Gi],rG),h9=M([a9,Gi],tG),g9=M([Ve,_p,d9,f9,p9,v9,m9,ve,p4,NC,h9,Gi,o9],(e,t,r,n,o,i,a,s,l,c,u,d,p)=>{var{chartData:v,dataStartIndex:g,dataEndIndex:m}=l;if(!(d==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||r==null||n==null||o==null||i==null||c==null)){var{data:h}=d,b;if(h!=null&&h.length>0?b=h:b=v?.slice(g,m+1),b!=null)return U9({layout:s,barSettings:d,pos:a,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:o,yAxisTicks:i,stackedData:u,displayedData:b,offset:e,cells:p,dataStartIndex:g})}}),y9=["index"];function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pf.apply(null,arguments)}function b9(e,t){if(e==null)return{};var r,n,o=x9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var MC=A.createContext(void 0),w9=e=>{var t=A.useContext(MC);if(t!=null)return t.stackId;if(e!=null)return aF(e)},S9=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),P9=e=>{var t=A.useContext(MC);if(t!=null){var{stackId:r}=t;return"url(#".concat(S9(r,e),")")}},IC=e=>{var{index:t}=e,r=b9(e,y9),n=P9(t);return f.createElement(Xe,Pf({className:"recharts-bar-stack-layer",clipPath:n},r))},E9=["onMouseEnter","onMouseLeave","onClick"],O9=["value","background","tooltipPosition"],C9=["id"],A9=["onMouseEnter","onClick","onMouseLeave"];function Er(){return Er=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Er.apply(null,arguments)}function vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vw(Object(r),!0).forEach(function(n){_9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _9(e,t,r){return(t=T9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=j9(e,"string");return typeof t=="symbol"?t:t+""}function j9(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hs(e,t){if(e==null)return{};var r,n,o=N9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function N9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var M9=e=>{var{dataKey:t,name:r,fill:n,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:n,value:Po(r,t),payload:e}]},I9=f.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:zn,settings:{stroke:r,strokeWidth:n,fill:o,dataKey:t,nameKey:void 0,name:Po(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:c}};return f.createElement(om,{tooltipEntrySettings:u})});function k9(e){var t=J(qr),{data:r,dataKey:n,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,c=Hs(i,E9),u=tm(a,n,i.id),d=rm(s),p=nm(l,n,i.id);if(!o||r==null)return null;var v=En(o);return f.createElement(wt,{zIndex:nG(o,De.barBackground)},r.map((g,m)=>{var{value:h,background:b,tooltipPosition:x}=g,w=Hs(g,O9);if(!b)return null;var S=u(g,m),E=d(g,m),P=p(g,m),O=ft(ft(ft(ft(ft({option:o,isActive:String(m)===t},w),{},{fill:"#eee"},b),v),Oi(c,g,m)),{},{onMouseEnter:S,onMouseLeave:E,onClick:P,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return f.createElement(Us,Er({key:"background-bar-".concat(m)},O))}))}function R9(e){var{showLabels:t,children:r,rects:n}=e,o=n?.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return ft(ft({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return f.createElement(eC,{value:t?o:void 0},r)}function D9(e){var{shape:t,activeBar:r,baseProps:n,entry:o,index:i,dataKey:a}=e,s=J(qr),l=J(Vv),c=r&&String(i)===s&&(l==null||a===l),u=c?r:t;return c?f.createElement(wt,{zIndex:De.activeBar},f.createElement(IC,{index:i},f.createElement(Us,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a})))):f.createElement(Us,Er({},n,{name:String(n.name)},o,{isActive:c,option:u,index:i,dataKey:a}))}function $9(e){var{shape:t,baseProps:r,entry:n,index:o,dataKey:i}=e;return f.createElement(Us,Er({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:o,dataKey:i}))}function L9(e){var t,{data:r,props:n}=e,o=(t=At(n))!==null&&t!==void 0?t:{},{id:i}=o,a=Hs(o,C9),{shape:s,dataKey:l,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:p}=n,v=Hs(n,A9),g=tm(u,l,i),m=rm(p),h=nm(d,l,i);return r?f.createElement(f.Fragment,null,r.map((b,x)=>f.createElement(IC,Er({index:x,key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(x),className:"recharts-bar-rectangle"},Oi(v,b,x),{onMouseEnter:g(b,x),onMouseLeave:m(b,x),onClick:h(b,x)}),c?f.createElement(D9,{shape:s,activeBar:c,baseProps:a,entry:b,index:x,dataKey:l}):f.createElement($9,{shape:s,baseProps:a,entry:b,index:x,dataKey:l})))):null}function z9(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:c,onAnimationStart:u}=t,d=r.current,p=ki(t,"recharts-bar-"),[v,g]=A.useState(!1),m=!v,h=A.useCallback(()=>{typeof c=="function"&&c(),g(!1)},[c]),b=A.useCallback(()=>{typeof u=="function"&&u(),g(!0)},[u]);return f.createElement(R9,{showLabels:m,rects:n},f.createElement(Ii,{animationId:p,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:h,onAnimationStart:b,key:p},x=>{var w=x===1?n:n?.map((S,E)=>{var P=d&&d[E];if(P)return ft(ft({},S),{},{x:Ae(P.x,S.x,x),y:Ae(P.y,S.y,x),width:Ae(P.width,S.width,x),height:Ae(P.height,S.height,x)});if(o==="horizontal"){var O=Ae(0,S.height,x),C=Ae(S.stackedBarStart,S.y,x);return ft(ft({},S),{},{y:C,height:O})}var N=Ae(0,S.width,x),$=Ae(S.stackedBarStart,S.x,x);return ft(ft({},S),{},{width:N,x:$})});return x>0&&(r.current=w??null),w==null?null:f.createElement(Xe,null,f.createElement(L9,{props:t,data:w}))}),f.createElement(Xv,{label:t.label}),t.children)}function F9(e){var t=A.useRef(null);return f.createElement(z9,{previousRectanglesRef:t,props:e})}var kC=0,B9=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:be(e,t)}};class V9 extends A.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:c}=this.props;if(t||r==null)return null;var u=de("recharts-bar",o),d=c;return f.createElement(Xe,{className:u,id:c},s&&f.createElement("defs",null,f.createElement(PC,{clipPathId:d,xAxisId:i,yAxisId:a})),f.createElement(Xe,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(d,")"):void 0},f.createElement(k9,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),f.createElement(F9,this.props)))}}var W9={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:kC,xAxisId:0,yAxisId:0,zIndex:De.bar};function K9(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u}=e,{needClip:d}=um(t,r),p=Fn(),v=ct(),g=Qv(e.children,Hi),m=J(x=>g9(x,e.id,v,g));if(p!=="vertical"&&p!=="horizontal")return null;var h,b=m?.[0];return b==null||b.height==null||b.width==null?h=0:h=p==="vertical"?b.height/2:b.width/2,f.createElement(SC,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:B9,errorBarOffset:h},f.createElement(V9,Er({},e,{layout:p,needClip:d,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:c,isAnimationActive:u})))}function U9(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:o,bandSize:i,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:c,stackedData:u,displayedData:d,offset:p,cells:v,parentViewBox:g,dataStartIndex:m}=e,h=t==="horizontal"?s:a,b=u?h.scale.domain():null,x=sF({numericAxis:h}),w=h.scale.map(x);return d.map((S,E)=>{var P,O,C,N,$,I;if(u){var _=u[E+m];if(_==null)return null;P=tF(_,b)}else P=be(S,r),Array.isArray(P)||(P=[x,P]);var j=e9(n,kC)(P[1],E);if(t==="horizontal"){var R,V=s.scale.map(P[0]),F=s.scale.map(P[1]);if(V==null||F==null)return null;O=Gg({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:S,index:E}),C=(R=F??V)!==null&&R!==void 0?R:void 0,N=o.size;var W=V-F;if($=or(W)?0:W,I={x:O,y:p.top,width:N,height:p.height},Math.abs(j)>0&&Math.abs($)<Math.abs(j)){var T=qe($||j)*(Math.abs(j)-Math.abs($));C-=T,$+=T}}else{var k=a.scale.map(P[0]),G=a.scale.map(P[1]);if(k==null||G==null)return null;if(O=k,C=Gg({axis:s,ticks:c,bandSize:i,offset:o.offset,entry:S,index:E}),N=G-k,$=o.size,I={x:p.left,y:C,width:p.width,height:$},Math.abs(j)>0&&Math.abs(N)<Math.abs(j)){var ee=qe(N||j)*(Math.abs(j)-Math.abs(N));N+=ee}}if(O==null||C==null||N==null||$==null)return null;var ne=ft(ft({},S),{},{stackedBarStart:w,x:O,y:C,width:N,height:$,value:u?P:P[1],payload:S,background:I,tooltipPosition:{x:O+N/2,y:C+$/2},parentViewBox:g},v&&v[E]&&v[E].props);return ne}).filter(Boolean)}function H9(e){var t=Le(e,W9),r=w9(t.stackId),n=ct();return f.createElement(im,{id:t.id,type:"bar"},o=>f.createElement(f.Fragment,null,f.createElement(uC,{legendPayload:M9(t)}),f.createElement(I9,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),f.createElement(fC,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:r,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),f.createElement(wt,{zIndex:t.zIndex},f.createElement(K9,Er({},t,{id:o})))))}var RC=f.memo(H9,sc);RC.displayName="Bar";var G9=["domain","range"],q9=["domain","range"];function mw(e,t){if(e==null)return{};var r,n,o=Y9(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Y9(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function hw(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function DC(e,t){if(e===t)return!0;var{domain:r,range:n}=e,o=mw(e,G9),{domain:i,range:a}=t,s=mw(t,q9);return!hw(r,i)||!hw(n,a)?!1:sc(o,s)}var X9=["type"],Z9=["dangerouslySetInnerHTML","ticks","scale"],J9=["id","scale"];function Ef(){return Ef=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ef.apply(null,arguments)}function gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gw(Object(r),!0).forEach(function(n){Q9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q9(e,t,r){return(t=e7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e7(e){var t=t7(e,"string");return typeof t=="symbol"?t:t+""}function t7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Of(e,t){if(e==null)return{};var r,n,o=r7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function r7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function n7(e){var t=Se(),r=A.useRef(null),n=x1(),{type:o}=e,i=Of(e,X9),a=Hl(n,"xAxis",o),s=A.useMemo(()=>{if(a!=null)return yw(yw({},i),{},{type:a})},[i,a]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(I8(s)):r.current!==s&&t(k8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(R8(r.current)),r.current=null)},[t]),null}var o7=e=>{var{xAxisId:t,className:r}=e,n=J(_p),o=ct(),i="xAxis",a=J(b=>pO(b,i,t,o)),s=J(b=>cO(b,t)),l=J(b=>SW(b,t)),c=J(b=>KE(b,t));if(s==null||l==null||c==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:p}=e,v=Of(e,Z9),{id:g,scale:m}=c,h=Of(c,J9);return f.createElement(lm,Ef({},v,h,{x:l.x,y:l.y,width:s.width,height:s.height,className:de("recharts-".concat(i," ").concat(i),r),viewBox:n,ticks:a,axisType:i}))},i7={allowDataOverflow:Ue.allowDataOverflow,allowDecimals:Ue.allowDecimals,allowDuplicatedCategory:Ue.allowDuplicatedCategory,angle:Ue.angle,axisLine:gr.axisLine,height:Ue.height,hide:!1,includeHidden:Ue.includeHidden,interval:Ue.interval,label:!1,minTickGap:Ue.minTickGap,mirror:Ue.mirror,orientation:Ue.orientation,padding:Ue.padding,reversed:Ue.reversed,scale:Ue.scale,tick:Ue.tick,tickCount:Ue.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:Ue.type,xAxisId:0},a7=e=>{var t=Le(e,i7);return f.createElement(f.Fragment,null,f.createElement(n7,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),f.createElement(o7,t))},Gs=f.memo(a7,DC);Gs.displayName="XAxis";var s7=["type"],l7=["dangerouslySetInnerHTML","ticks","scale"],c7=["id","scale"];function Cf(){return Cf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cf.apply(null,arguments)}function bw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function xw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bw(Object(r),!0).forEach(function(n){u7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u7(e,t,r){return(t=d7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d7(e){var t=f7(e,"string");return typeof t=="symbol"?t:t+""}function f7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Af(e,t){if(e==null)return{};var r,n,o=p7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function v7(e){var t=Se(),r=A.useRef(null),n=x1(),{type:o}=e,i=Af(e,s7),a=Hl(n,"yAxis",o),s=A.useMemo(()=>{if(a!=null)return xw(xw({},i),{},{type:a})},[a,i]);return A.useLayoutEffect(()=>{s!=null&&(r.current===null?t(D8(s)):r.current!==s&&t($8({prev:r.current,next:s})),r.current=s)},[s,t]),A.useLayoutEffect(()=>()=>{r.current&&(t(L8(r.current)),r.current=null)},[t]),null}function m7(e){var{yAxisId:t,className:r,width:n,label:o}=e,i=A.useRef(null),a=A.useRef(null),s=J(_p),l=ct(),c=Se(),u="yAxis",d=J(P=>uO(P,t)),p=J(P=>EW(P,t)),v=J(P=>pO(P,u,t,l)),g=J(P=>UE(P,t));if(A.useLayoutEffect(()=>{if(!(n!=="auto"||!d||Yv(o)||A.isValidElement(o)||g==null)){var P=i.current;if(P){var O=P.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&c(z8({id:t,width:O}))}}},[v,d,c,o,t,n,g]),d==null||p==null||g==null)return null;var{dangerouslySetInnerHTML:m,ticks:h,scale:b}=e,x=Af(e,l7),{id:w,scale:S}=g,E=Af(g,c7);return f.createElement(lm,Cf({},x,E,{ref:i,labelRef:a,x:p.x,y:p.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:de("recharts-".concat(u," ").concat(u),r),viewBox:s,ticks:v,axisType:u}))}var h7={allowDataOverflow:He.allowDataOverflow,allowDecimals:He.allowDecimals,allowDuplicatedCategory:He.allowDuplicatedCategory,angle:He.angle,axisLine:gr.axisLine,hide:!1,includeHidden:He.includeHidden,interval:He.interval,label:!1,minTickGap:He.minTickGap,mirror:He.mirror,orientation:He.orientation,padding:He.padding,reversed:He.reversed,scale:He.scale,tick:He.tick,tickCount:He.tickCount,tickLine:gr.tickLine,tickSize:gr.tickSize,type:He.type,width:He.width,yAxisId:0},g7=e=>{var t=Le(e,h7);return f.createElement(f.Fragment,null,f.createElement(v7,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),f.createElement(m7,t))},qs=f.memo(g7,DC);qs.displayName="YAxis";var y7=(e,t)=>t,fm=M([y7,ve,BE,Je,jO,Rr,F6,Ve],G6),pm=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},$C=Rt("mouseClick"),LC=Ti();LC.startListening({actionCreator:$C,effect:(e,t)=>{var r=e.payload,n=fm(t.getState(),pm(r));n?.activeIndex!=null&&t.dispatch(LW({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var _f=Rt("mouseMove"),zC=Ti(),Da=null;zC.startListening({actionCreator:_f,effect:(e,t)=>{var r=e.payload;Da!==null&&cancelAnimationFrame(Da);var n=pm(r);Da=requestAnimationFrame(()=>{var o=t.getState(),i=Dv(o,o.tooltip.settings.shared);if(i==="axis"){var a=fm(o,n);a?.activeIndex!=null?t.dispatch(wO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(xO())}Da=null})}});function b7(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var ww={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},FC=xt({name:"rootProps",initialState:ww,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:ww.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),x7=FC.reducer,{updateOptions:w7}=FC.actions,S7=null,P7={updatePolarOptions:(e,t)=>t.payload},BC=xt({name:"polarOptions",initialState:S7,reducers:P7}),{updatePolarOptions:E7}=BC.actions,O7=BC.reducer,VC=Rt("keyDown"),WC=Rt("focus"),vm=Ti();vm.startListening({actionCreator:VC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var a=$v(o,Mo(r),Vi(r),Ki(r)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=Rr(r);if(i==="Enter"){var c=zs(r,"axis","hover",String(o.index));t.dispatch(gf({active:!o.active,activeIndex:o.index,activeCoordinate:c}));return}var u=_W(r),d=u==="left-to-right"?1:-1,p=i==="ArrowRight"?1:-1,v=s+p*d;if(!(l==null||v>=l.length||v<0)){var g=zs(r,"axis","hover",String(v));t.dispatch(gf({active:!0,activeIndex:v.toString(),activeCoordinate:g}))}}}}}});vm.startListening({actionCreator:WC,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:o}=r.tooltip;if(!o.active&&o.index==null){var i="0",a=zs(r,"axis","hover",String(i));t.dispatch(gf({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Nt=Rt("externalEvent"),KC=Ti(),bd=new Map;KC.startListening({actionCreator:Nt,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var o=n.type,i=bd.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:E6(s),activeDataKey:Vv(s),activeIndex:qr(s),activeLabel:IO(s),activeTooltipIndex:qr(s),isTooltipActive:O6(s)};r(l,n)}finally{bd.delete(o)}});bd.set(o,a)}}});var C7=M([jo],e=>e.tooltipItemPayloads),A7=M([C7,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(t!=null){var n=e.find(i=>i.settings.graphicalItemId===r);if(n!=null){var{getPosition:o}=n;if(o!=null)return o(t)}}}),UC=Rt("touchMove"),HC=Ti();HC.startListening({actionCreator:UC,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),o=Dv(n,n.tooltip.settings.shared);if(o==="axis"){var i=r.touches[0];if(i==null)return;var a=fm(n,pm({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(wO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(o==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(v1),d=(s=c.getAttribute(m1))!==null&&s!==void 0?s:void 0,p=No(n).find(m=>m.id===d);if(u==null||p==null||d==null)return;var{dataKey:v}=p,g=A7(n,u,d);t.dispatch(bO({activeDataKey:v,activeIndex:u,activeCoordinate:g,activeGraphicalItemId:d}))}}}});var _7=MP({brush:oG,cartesianAxis:F8,chartData:EK,errorBars:JG,graphicalItems:GH,layout:Xz,legend:oB,options:bK,polarAxis:aH,polarOptions:O7,referenceElements:lG,rootProps:x7,tooltip:zW,zIndex:sK}),T7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return wz({reducer:_7,preloadedState:t,middleware:n=>{var o;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([LC.middleware,zC.middleware,vm.middleware,KC.middleware,HC.middleware])},enhancers:n=>{var o=n;return typeof n=="function"&&(o=n()),o.concat(ZP({type:"raf"}))},devTools:{serialize:{replacer:b7},name:"recharts-".concat(r)}})};function GC(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,o=ct(),i=A.useRef(null);if(o)return r;i.current==null&&(i.current=T7(t,n));var a=wp;return f.createElement(_q,{context:a,store:i.current},r)}function j7(e){var{layout:t,margin:r}=e,n=Se(),o=ct();return A.useEffect(()=>{o||(n(Gz(t)),n(Hz(r)))},[n,o,t,r]),null}var qC=A.memo(j7,sc);function YC(e){var t=Se();return A.useEffect(()=>{t(w7(e))},[t,e]),null}function Sw(e){var{zIndex:t,isPanorama:r}=e,n=A.useRef(null),o=Se();return A.useLayoutEffect(()=>(n.current&&o(iK({zIndex:t,element:n.current,isPanorama:r})),()=>{o(aK({zIndex:t,isPanorama:r}))}),[o,t,r]),f.createElement("g",{tabIndex:-1,ref:n})}function Pw(e){var{children:t,isPanorama:r}=e,n=J(Y6);if(!n||n.length===0)return t;var o=n.filter(a=>a<0),i=n.filter(a=>a>0);return f.createElement(f.Fragment,null,o.map(a=>f.createElement(Sw,{key:a,zIndex:a,isPanorama:r})),t,i.map(a=>f.createElement(Sw,{key:a,zIndex:a,isPanorama:r})))}var N7=["children"];function M7(e,t){if(e==null)return{};var r,n,o=I7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function I7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ys.apply(null,arguments)}var k7={width:"100%",height:"100%",display:"block"},R7=A.forwardRef((e,t)=>{var r=Mp(),n=Ip(),o=M1();if(!ar(r)||!ar(n))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,c,u;return a!=null&&(typeof a.tabIndex=="number"?c=a.tabIndex:c=o?0:void 0,typeof a.role=="string"?u=a.role:u=o?"application":void 0),f.createElement(up,Ys({},a,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:k7,ref:t}),i)}),D7=e=>{var{children:t}=e,r=J(Nl);if(!r)return null;var{width:n,height:o,y:i,x:a}=r;return f.createElement(up,{width:n,height:o,x:a,y:i},t)},Ew=A.forwardRef((e,t)=>{var{children:r}=e,n=M7(e,N7),o=ct();return o?f.createElement(D7,null,f.createElement(Pw,{isPanorama:!0},r)):f.createElement(R7,Ys({ref:t},n),f.createElement(Pw,{isPanorama:!1},r))});function $7(){var e=Se(),[t,r]=A.useState(null),n=J(pF);return A.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;ce(i)&&i!==n&&e(Yz(i))}},[t,e,n]),r}function Ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function L7(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){z7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z7(e,t,r){return(t=F7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F7(e){var t=B7(e,"string");return typeof t=="symbol"?t:t+""}function B7(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kr.apply(null,arguments)}var V7=()=>(IK(),null);function Xs(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var W7=A.forwardRef((e,t)=>{var r,n,o=A.useRef(null),[i,a]=A.useState({containerWidth:Xs((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:Xs((n=e.style)===null||n===void 0?void 0:n.height)}),s=A.useCallback((c,u)=>{a(d=>{var p=Math.round(c),v=Math.round(u);return d.containerWidth===p&&d.containerHeight===v?d:{containerWidth:p,containerHeight:v}})},[]),l=A.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:d}=c.getBoundingClientRect();s(u,d);var p=g=>{var m=g[0];if(m!=null){var{width:h,height:b}=m.contentRect;s(h,b)}},v=new ResizeObserver(p);v.observe(c),o.current=v}},[t,s]);return A.useEffect(()=>()=>{var c=o.current;c?.disconnect()},[s]),f.createElement(f.Fragment,null,f.createElement(Ni,{width:i.containerWidth,height:i.containerHeight}),f.createElement("div",Kr({ref:l},e)))}),K7=A.forwardRef((e,t)=>{var{width:r,height:n}=e,[o,i]=A.useState({containerWidth:Xs(r),containerHeight:Xs(n)}),a=A.useCallback((l,c)=>{i(u=>{var d=Math.round(l),p=Math.round(c);return u.containerWidth===d&&u.containerHeight===p?u:{containerWidth:d,containerHeight:p}})},[]),s=A.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();a(c,u)}},[t,a]);return f.createElement(f.Fragment,null,f.createElement(Ni,{width:o.containerWidth,height:o.containerHeight}),f.createElement("div",Kr({ref:s},e)))}),U7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return f.createElement(f.Fragment,null,f.createElement(Ni,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))}),H7=A.forwardRef((e,t)=>{var{width:r,height:n}=e;return typeof r=="string"||typeof n=="string"?f.createElement(K7,Kr({},e,{ref:t})):typeof r=="number"&&typeof n=="number"?f.createElement(U7,Kr({},e,{width:r,height:n,ref:t})):f.createElement(f.Fragment,null,f.createElement(Ni,{width:r,height:n}),f.createElement("div",Kr({ref:t},e)))});function G7(e){return e?W7:H7}var q7=A.forwardRef((e,t)=>{var{children:r,className:n,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:d,onMouseUp:p,onTouchEnd:v,onTouchMove:g,onTouchStart:m,style:h,width:b,responsive:x,dispatchTouchEvents:w=!0}=e,S=A.useRef(null),E=Se(),[P,O]=A.useState(null),[C,N]=A.useState(null),$=$7(),I=Tp(),_=I?.width>0?I.width:b,j=I?.height>0?I.height:o,R=A.useCallback(L=>{$(L),typeof t=="function"&&t(L),O(L),N(L),L!=null&&(S.current=L)},[$,t,O,N]),V=A.useCallback(L=>{E($C(L)),E(Nt({handler:i,reactEvent:L}))},[E,i]),F=A.useCallback(L=>{E(_f(L)),E(Nt({handler:c,reactEvent:L}))},[E,c]),W=A.useCallback(L=>{E(xO()),E(Nt({handler:u,reactEvent:L}))},[E,u]),T=A.useCallback(L=>{E(_f(L)),E(Nt({handler:d,reactEvent:L}))},[E,d]),k=A.useCallback(()=>{E(WC())},[E]),G=A.useCallback(L=>{E(VC(L.key))},[E]),ee=A.useCallback(L=>{E(Nt({handler:a,reactEvent:L}))},[E,a]),ne=A.useCallback(L=>{E(Nt({handler:s,reactEvent:L}))},[E,s]),ie=A.useCallback(L=>{E(Nt({handler:l,reactEvent:L}))},[E,l]),oe=A.useCallback(L=>{E(Nt({handler:p,reactEvent:L}))},[E,p]),le=A.useCallback(L=>{E(Nt({handler:m,reactEvent:L}))},[E,m]),Oe=A.useCallback(L=>{w&&E(UC(L)),E(Nt({handler:g,reactEvent:L}))},[E,w,g]),K=A.useCallback(L=>{E(Nt({handler:v,reactEvent:L}))},[E,v]),ue=G7(x);return f.createElement(FO.Provider,{value:P},f.createElement(qS.Provider,{value:C},f.createElement(ue,{width:_??h?.width,height:j??h?.height,className:de("recharts-wrapper",n),style:L7({position:"relative",cursor:"default",width:_,height:j},h),onClick:V,onContextMenu:ee,onDoubleClick:ne,onFocus:k,onKeyDown:G,onMouseDown:ie,onMouseEnter:F,onMouseLeave:W,onMouseMove:T,onMouseUp:oe,onTouchEnd:K,onTouchMove:Oe,onTouchStart:le,ref:R},f.createElement(V7,null),r)))}),Y7=["width","height","responsive","children","className","style","compact","title","desc"];function X7(e,t){if(e==null)return{};var r,n,o=Z7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Z7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var XC=A.forwardRef((e,t)=>{var{width:r,height:n,responsive:o,children:i,className:a,style:s,compact:l,title:c,desc:u}=e,d=X7(e,Y7),p=At(d);return l?f.createElement(f.Fragment,null,f.createElement(Ni,{width:r,height:n}),f.createElement(Ew,{otherAttributes:p,title:c,desc:u},i)):f.createElement(q7,{className:a,style:s,width:r,height:n,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},f.createElement(Ew,{otherAttributes:p,title:c,desc:u,ref:t},f.createElement(uG,null,i)))});function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf.apply(null,arguments)}var J7={top:5,right:5,bottom:5,left:5},Q7={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:J7,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},ZC=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,Q7),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,u={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return f.createElement(GC,{preloadedState:{options:u},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:i},f.createElement(hC,{chartData:c.data}),f.createElement(qC,{layout:o.layout,margin:o.margin}),f.createElement(YC,{baseValue:o.baseValue,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(XC,Tf({},o,{ref:r})))}),eY=["axis"],tY=A.forwardRef((e,t)=>f.createElement(ZC,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:eY,tooltipPayloadSearcher:Gv,categoricalChartProps:e,ref:t})),rY=["axis","item"],nY=A.forwardRef((e,t)=>f.createElement(ZC,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:rY,tooltipPayloadSearcher:Gv,categoricalChartProps:e,ref:t}));function oY(e){var t=Se();return A.useEffect(()=>{t(E7(e))},[t,e]),null}var iY=["layout"];function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jf.apply(null,arguments)}function aY(e,t){if(e==null)return{};var r,n,o=sY(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function sY(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var lY={top:5,right:5,bottom:5,left:5},JC={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:lY,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},cY=A.forwardRef(function(t,r){var n,o=Le(t.categoricalChartProps,JC),{layout:i}=o,a=aY(o,iY),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u}=t,d={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:u,eventEmitter:void 0};return f.createElement(GC,{preloadedState:{options:d},reduxStoreName:(n=o.id)!==null&&n!==void 0?n:s},f.createElement(hC,{chartData:o.data}),f.createElement(qC,{layout:i,margin:o.margin}),f.createElement(YC,{baseValue:void 0,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),f.createElement(oY,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),f.createElement(XC,jf({},a,{ref:r})))});function Cw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(r),!0).forEach(function(n){uY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uY(e,t,r){return(t=dY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dY(e){var t=fY(e,"string");return typeof t=="symbol"?t:t+""}function fY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pY=["item"],vY=Aw(Aw({},JC),{},{layout:"centric",startAngle:0,endAngle:360}),mY=A.forwardRef((e,t)=>{var r=Le(e,vY);return f.createElement(cY,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:pY,tooltipPayloadSearcher:Gv,categoricalChartProps:r,ref:t})});const QC=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),$a=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],eA=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,radius:c=0,stacked:u=!1,layout:d="horizontal",...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const h=r[0];return h?Object.keys(h).filter(x=>x!=="label"&&typeof h[x]=="number").map((x,w)=>({key:x,name:x.charAt(0).toUpperCase()+x.slice(1),color:$a[w%$a.length]})):[]},[r,n]),m=d==="vertical";return y.jsx("div",{ref:v,className:D(QC({size:t,className:e})),role:"img",...p,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(nY,{data:r,layout:d,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(cm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!m,horizontal:m}),m?y.jsxs(y.Fragment,{children:[y.jsx(Gs,{type:"number",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(qs,{type:"category",dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}):y.jsxs(y.Fragment,{children:[y.jsx(Gs,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(qs,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0})]}),a&&y.jsx(qv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"},cursor:{fill:"rgba(0, 0, 0, 0.05)"}}),i&&y.jsx(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:h=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:h})}),g.map((h,b)=>y.jsx(RC,{dataKey:h.key,name:h.name,fill:h.color||$a[b%$a.length],radius:c,stackId:u?"stack":void 0},h.key))]})})})});eA.displayName="BarChart";const tA=te("text-small flex items-center font-sans",{variants:{size:{sm:"text-label gap-1.5",default:"text-small gap-2",lg:"text-body gap-2.5"}},defaultVariants:{size:"default"}}),Nf=te("focus-visible:ring-sunflower inline-flex items-center transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{isCurrentPage:{true:"cursor-default text-black",false:"text-quaternary hover:text-primary"}},defaultVariants:{isCurrentPage:!1}}),rA=f.forwardRef(({className:e,size:t,separator:r=y.jsx(mm,{}),children:n,...o},i)=>{const a=f.Children.toArray(n).filter(f.isValidElement);return y.jsx("nav",{ref:i,"aria-label":"Breadcrumb",...o,children:y.jsx("ol",{className:D(tA({size:t,className:e})),children:a.map((s,l)=>y.jsxs("li",{className:"inline-flex items-center gap-2",children:[s,l<a.length-1&&r]},l))})})});rA.displayName="Breadcrumbs";const nA=f.forwardRef(({className:e,asChild:t=!1,isCurrentPage:r=!1,...n},o)=>{if(r)return y.jsx("span",{className:D(Nf({isCurrentPage:!0,className:e})),"aria-current":"page",children:n.children});const i=t?Ee:"a";return y.jsx(i,{ref:o,className:D(Nf({isCurrentPage:!1,className:e})),...n})});nA.displayName="BreadcrumbItem";const mm=f.forwardRef(({className:e,children:t,...r},n)=>y.jsx("span",{ref:n,role:"presentation","aria-hidden":"true",className:D("text-tertiary",e),...r,children:t??y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"h-4 w-4",children:y.jsx("path",{d:"M6 12L10 8L6 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}));mm.displayName="BreadcrumbSeparator";const oA=te("focus-visible:ring-sunflower rounded transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"",elevated:"shadow",ghost:""},padding:{none:"p-0",sm:"p-4",default:"p-6",lg:"p-8"},bg:{card:"bg-card",main:"bg-main",alt:"bg-alt",contrast:"bg-contrast",transparent:"bg-transparent",sunflower:"bg-sunflower","sunflower-hover":"bg-sunflower-hover","lemon-meringue":"bg-lemon-meringue",vanilla:"bg-vanilla",eggshell:"bg-eggshell","warm-purple":"bg-warm-purple","cool-purple":"bg-cool-purple","electric-blue":"bg-electric-blue","deep-blue":"bg-deep-blue",error:"bg-error"}},defaultVariants:{variant:"default",padding:"default",bg:"alt"}}),iA=f.forwardRef(({className:e,variant:t,padding:r,bg:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"div";return y.jsx(s,{className:D(oA({variant:t,padding:r,bg:n,className:e})),ref:a,...i})});iA.displayName="Card";function qi(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Yi(e){const[t,r]=f.useState(void 0);return Ye(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=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,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var lc="Checkbox",[hY]=Be(lc),[gY,hm]=hY(lc);function yY(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[p,v]=nt({prop:r,defaultProp:o??!1,onChange:l,caller:lc}),[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useRef(!1),w=g?!!a||!!g.closest("form"):!0,S={checked:p,disabled:i,setChecked:v,control:g,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:Ur(o)?!1:o,isFormControl:w,bubbleInput:h,setBubbleInput:b};return y.jsx(gY,{scope:t,...S,children:bY(d)?d(S):n})}var aA="CheckboxTrigger",sA=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:g}=hm(aA,e),m=re(o,u),h=f.useRef(l);return f.useEffect(()=>{const b=i?.form;if(b){const x=()=>d(h.current);return b.addEventListener("reset",x),()=>b.removeEventListener("reset",x)}},[i,d]),y.jsx(Q.button,{type:"button",role:"checkbox","aria-checked":Ur(l)?"mixed":l,"aria-required":c,"data-state":pA(l),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:m,onKeyDown:U(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:U(r,b=>{d(x=>Ur(x)?!0:!x),g&&v&&(p.current=b.isPropagationStopped(),p.current||b.stopPropagation())})})});sA.displayName=aA;var lA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return y.jsx(yY,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:p})=>y.jsxs(y.Fragment,{children:[y.jsx(sA,{...d,ref:t,__scopeCheckbox:r}),p&&y.jsx(fA,{__scopeCheckbox:r})]})})});lA.displayName=lc;var cA="CheckboxIndicator",uA=f.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=hm(cA,r);return y.jsx(lt,{present:n||Ur(i.checked)||i.checked===!0,children:y.jsx(Q.span,{"data-state":pA(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});uA.displayName=cA;var dA="CheckboxBubbleInput",fA=f.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:p,setBubbleInput:v}=hm(dA,e),g=re(r,v),m=qi(i),h=Yi(n);f.useEffect(()=>{const x=p;if(!x)return;const w=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(w,"checked").set,P=!o.current;if(m!==i&&E){const O=new Event("click",{bubbles:P});x.indeterminate=Ur(i),E.call(x,Ur(i)?!1:i),x.dispatchEvent(O)}},[p,m,i,o]);const b=f.useRef(Ur(i)?!1:i);return y.jsx(Q.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??b.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:g,style:{...t.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});fA.displayName=dA;function bY(e){return typeof e=="function"}function Ur(e){return e==="indeterminate"}function pA(e){return Ur(e)?"indeterminate":e?"checked":"unchecked"}const vA=f.forwardRef(({className:e,...t},r)=>y.jsx(lA,{ref:r,className:D("border-border bg-card peer h-5 w-5 shrink-0 rounded border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower data-[state=checked]:bg-sunflower data-[state=checked]:text-primary",e),...t,children:y.jsx(uA,{className:D("flex items-center justify-center text-current"),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",className:"h-3.5 w-3.5",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}));vA.displayName="Checkbox";const xY=["top","right","bottom","left"],Xr=Math.min,St=Math.max,Zs=Math.round,La=Math.floor,nr=e=>({x:e,y:e}),wY={left:"right",right:"left",bottom:"top",top:"bottom"},SY={start:"end",end:"start"};function Mf(e,t,r){return St(e,Xr(t,r))}function Or(e,t){return typeof e=="function"?e(t):e}function Cr(e){return e.split("-")[0]}function Io(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function ym(e){return e==="y"?"height":"width"}const PY=new Set(["top","bottom"]);function tr(e){return PY.has(Cr(e))?"y":"x"}function bm(e){return gm(tr(e))}function EY(e,t,r){r===void 0&&(r=!1);const n=Io(e),o=bm(e),i=ym(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Js(a)),[a,Js(a)]}function OY(e){const t=Js(e);return[If(e),t,If(t)]}function If(e){return e.replace(/start|end/g,t=>SY[t])}const _w=["left","right"],Tw=["right","left"],CY=["top","bottom"],AY=["bottom","top"];function _Y(e,t,r){switch(e){case"top":case"bottom":return r?t?Tw:_w:t?_w:Tw;case"left":case"right":return t?CY:AY;default:return[]}}function TY(e,t,r,n){const o=Io(e);let i=_Y(Cr(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(If)))),i}function Js(e){return e.replace(/left|right|bottom|top/g,t=>wY[t])}function jY(e){return{top:0,right:0,bottom:0,left:0,...e}}function mA(e){return typeof e!="number"?jY(e):{top:e,right:e,bottom:e,left:e}}function Qs(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function jw(e,t,r){let{reference:n,floating:o}=e;const i=tr(t),a=bm(t),s=ym(a),l=Cr(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,p=n[s]/2-o[s]/2;let v;switch(l){case"top":v={x:u,y:n.y-o.height};break;case"bottom":v={x:u,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:d};break;case"left":v={x:n.x-o.width,y:d};break;default:v={x:n.x,y:n.y}}switch(Io(t)){case"start":v[a]-=p*(r&&c?-1:1);break;case"end":v[a]+=p*(r&&c?-1:1);break}return v}async function NY(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=Or(t,e),g=mA(v),h=s[p?d==="floating"?"reference":"floating":d],b=Qs(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(h)))==null||r?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=d==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-E.top+g.top)/S.y,bottom:(E.bottom-b.bottom+g.bottom)/S.y,left:(b.left-E.left+g.left)/S.x,right:(E.right-b.right+g.right)/S.x}}const MY=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=jw(c,n,l),p=n,v={},g=0;for(let h=0;h<s.length;h++){var m;const{name:b,fn:x}=s[h],{x:w,y:S,data:E,reset:P}=await x({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:v,rects:c,platform:{...a,detectOverflow:(m=a.detectOverflow)!=null?m:NY},elements:{reference:e,floating:t}});u=w??u,d=S??d,v={...v,[b]:{...v[b],...E}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(c=P.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:u,y:d}=jw(c,p,l)),h=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:v}},IY=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Or(e,t)||{};if(c==null)return{};const d=mA(u),p={x:r,y:n},v=bm(o),g=ym(v),m=await a.getDimensions(c),h=v==="y",b=h?"top":"left",x=h?"bottom":"right",w=h?"clientHeight":"clientWidth",S=i.reference[g]+i.reference[v]-p[v]-i.floating[g],E=p[v]-i.reference[v],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let O=P?P[w]:0;(!O||!await(a.isElement==null?void 0:a.isElement(P)))&&(O=s.floating[w]||i.floating[g]);const C=S/2-E/2,N=O/2-m[g]/2-1,$=Xr(d[b],N),I=Xr(d[x],N),_=$,j=O-m[g]-I,R=O/2-m[g]/2+C,V=Mf(_,R,j),F=!l.arrow&&Io(o)!=null&&R!==V&&i.reference[g]/2-(R<_?$:I)-m[g]/2<0,W=F?R<_?R-_:R-j:0;return{[v]:p[v]+W,data:{[v]:V,centerOffset:R-V-W,...F&&{alignmentOffset:W}},reset:F}}}),kY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...h}=Or(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const b=Cr(o),x=tr(s),w=Cr(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(w||!m?[Js(s)]:OY(s)),P=g!=="none";!p&&P&&E.push(...TY(s,m,g,S));const O=[s,...E],C=await l.detectOverflow(t,h),N=[];let $=((n=i.flip)==null?void 0:n.overflows)||[];if(u&&N.push(C[b]),d){const R=EY(o,a,S);N.push(C[R[0]],C[R[1]])}if($=[...$,{placement:o,overflows:N}],!N.every(R=>R<=0)){var I,_;const R=(((I=i.flip)==null?void 0:I.index)||0)+1,V=O[R];if(V&&(!(d==="alignment"?x!==tr(V):!1)||$.every(T=>tr(T.placement)===x?T.overflows[0]>0:!0)))return{data:{index:R,overflows:$},reset:{placement:V}};let F=(_=$.filter(W=>W.overflows[0]<=0).sort((W,T)=>W.overflows[1]-T.overflows[1])[0])==null?void 0:_.placement;if(!F)switch(v){case"bestFit":{var j;const W=(j=$.filter(T=>{if(P){const k=tr(T.placement);return k===x||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,G)=>k+G,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:j[0];W&&(F=W);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function Nw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mw(e){return xY.some(t=>e[t]>=0)}const RY=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:o="referenceHidden",...i}=Or(e,t);switch(o){case"referenceHidden":{const a=await n.detectOverflow(t,{...i,elementContext:"reference"}),s=Nw(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Mw(s)}}}case"escaped":{const a=await n.detectOverflow(t,{...i,altBoundary:!0}),s=Nw(a,r.floating);return{data:{escapedOffsets:s,escaped:Mw(s)}}}default:return{}}}}},hA=new Set(["left","top"]);async function DY(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Cr(r),s=Io(r),l=tr(r)==="y",c=hA.has(a)?-1:1,u=i&&l?-1:1,d=Or(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(v=s==="end"?g*-1:g),l?{x:v*u,y:p*c}:{x:p*c,y:v*u}}const $Y=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await DY(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},LY=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x,y:w}=b;return{x,y:w}}},...c}=Or(e,t),u={x:r,y:n},d=await i.detectOverflow(t,c),p=tr(Cr(o)),v=gm(p);let g=u[v],m=u[p];if(a){const b=v==="y"?"top":"left",x=v==="y"?"bottom":"right",w=g+d[b],S=g-d[x];g=Mf(w,g,S)}if(s){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",w=m+d[b],S=m-d[x];m=Mf(w,m,S)}const h=l.fn({...t,[v]:g,[p]:m});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[v]:a,[p]:s}}}}}},zY=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Or(e,t),u={x:r,y:n},d=tr(o),p=gm(d);let v=u[p],g=u[d];const m=Or(s,t),h=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=p==="y"?"height":"width",S=i.reference[p]-i.floating[w]+h.mainAxis,E=i.reference[p]+i.reference[w]-h.mainAxis;v<S?v=S:v>E&&(v=E)}if(c){var b,x;const w=p==="y"?"width":"height",S=hA.has(Cr(o)),E=i.reference[d]-i.floating[w]+(S&&((b=a.offset)==null?void 0:b[d])||0)+(S?0:h.crossAxis),P=i.reference[d]+i.reference[w]+(S?0:((x=a.offset)==null?void 0:x[d])||0)-(S?h.crossAxis:0);g<E?g=E:g>P&&(g=P)}return{[p]:v,[d]:g}}}},FY=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Or(e,t),u=await a.detectOverflow(t,c),d=Cr(o),p=Io(o),v=tr(o)==="y",{width:g,height:m}=i.floating;let h,b;d==="top"||d==="bottom"?(h=d,b=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,h=p==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=g-u.left-u.right,S=Xr(m-u[h],x),E=Xr(g-u[b],w),P=!t.middlewareData.shift;let O=S,C=E;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(O=x),P&&!p){const $=St(u.left,0),I=St(u.right,0),_=St(u.top,0),j=St(u.bottom,0);v?C=g-2*($!==0||I!==0?$+I:St(u.left,u.right)):O=m-2*(_!==0||j!==0?_+j:St(u.top,u.bottom))}await l({...t,availableWidth:C,availableHeight:O});const N=await a.getDimensions(s.floating);return g!==N.width||m!==N.height?{reset:{rects:!0}}:{}}}};function cc(){return typeof window<"u"}function ko(e){return gA(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(gA(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gA(e){return cc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Wt(e){return cc()?e instanceof Element||e instanceof Ct(e).Element:!1}function lr(e){return cc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Iw(e){return!cc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const BY=new Set(["inline","contents"]);function Xi(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!BY.has(o)}const VY=new Set(["table","td","th"]);function WY(e){return VY.has(ko(e))}const KY=[":popover-open",":modal"];function uc(e){return KY.some(t=>{try{return e.matches(t)}catch{return!1}})}const UY=["transform","translate","scale","rotate","perspective"],HY=["transform","translate","scale","rotate","perspective","filter"],GY=["paint","layout","strict","content"];function xm(e){const t=wm(),r=Wt(e)?Kt(e):e;return UY.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||HY.some(n=>(r.willChange||"").includes(n))||GY.some(n=>(r.contain||"").includes(n))}function qY(e){let t=Zr(e);for(;lr(t)&&!ho(t);){if(xm(t))return t;if(uc(t))return null;t=Zr(t)}return null}function wm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const YY=new Set(["html","body","#document"]);function ho(e){return YY.has(ko(e))}function Kt(e){return Ct(e).getComputedStyle(e)}function dc(e){return Wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Zr(e){if(ko(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Iw(e)&&e.host||ur(e);return Iw(t)?t.host:t}function yA(e){const t=Zr(e);return ho(t)?e.ownerDocument?e.ownerDocument.body:e.body:lr(t)&&Xi(t)?t:yA(t)}function hi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=yA(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=Ct(o);if(i){const s=kf(a);return t.concat(a,a.visualViewport||[],Xi(o)?o:[],s&&r?hi(s):[])}return t.concat(o,hi(o,[],r))}function kf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bA(e){const t=Kt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=lr(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Zs(r)!==i||Zs(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Sm(e){return Wt(e)?e:e.contextElement}function so(e){const t=Sm(e);if(!lr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=bA(t);let a=(i?Zs(r.width):r.width)/n,s=(i?Zs(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const XY=nr(0);function xA(e){const t=Ct(e);return!wm()||!t.visualViewport?XY:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZY(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ct(e)?!1:t}function In(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=Sm(e);let a=nr(1);t&&(n?Wt(n)&&(a=so(n)):a=so(e));const s=ZY(i,r,n)?xA(i):nr(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const p=Ct(i),v=n&&Wt(n)?Ct(n):n;let g=p,m=kf(g);for(;m&&n&&v!==g;){const h=so(m),b=m.getBoundingClientRect(),x=Kt(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*h.x,S=b.top+(m.clientTop+parseFloat(x.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=w,c+=S,g=Ct(m),m=kf(g)}}return Qs({width:u,height:d,x:l,y:c})}function fc(e,t){const r=dc(e).scrollLeft;return t?t.left+r:In(ur(e)).left+r}function wA(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-fc(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function JY(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=ur(n),s=t?uc(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=nr(1);const u=nr(0),d=lr(n);if((d||!d&&!i)&&((ko(n)!=="body"||Xi(a))&&(l=dc(n)),lr(n))){const v=In(n);c=so(n),u.x=v.x+n.clientLeft,u.y=v.y+n.clientTop}const p=a&&!d&&!i?wA(a,l):nr(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function QY(e){return Array.from(e.getClientRects())}function eX(e){const t=ur(e),r=dc(e),n=e.ownerDocument.body,o=St(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=St(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+fc(e);const s=-r.scrollTop;return Kt(n).direction==="rtl"&&(a+=St(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const kw=25;function tX(e,t){const r=Ct(e),n=ur(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=wm();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=fc(n);if(c<=0){const u=n.ownerDocument,d=u.body,p=getComputedStyle(d),v=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(n.clientWidth-d.clientWidth-v);g<=kw&&(i-=g)}else c<=kw&&(i+=c);return{width:i,height:a,x:s,y:l}}const rX=new Set(["absolute","fixed"]);function nX(e,t){const r=In(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=lr(e)?so(e):nr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function Rw(e,t,r){let n;if(t==="viewport")n=tX(e,r);else if(t==="document")n=eX(ur(e));else if(Wt(t))n=nX(t,r);else{const o=xA(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Qs(n)}function SA(e,t){const r=Zr(e);return r===t||!Wt(r)||ho(r)?!1:Kt(r).position==="fixed"||SA(r,t)}function oX(e,t){const r=t.get(e);if(r)return r;let n=hi(e,[],!1).filter(s=>Wt(s)&&ko(s)!=="body"),o=null;const i=Kt(e).position==="fixed";let a=i?Zr(e):e;for(;Wt(a)&&!ho(a);){const s=Kt(a),l=xm(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&rX.has(o.position)||Xi(a)&&!l&&SA(e,a))?n=n.filter(u=>u!==a):o=s,a=Zr(a)}return t.set(e,n),n}function iX(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?uc(t)?[]:oX(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,u)=>{const d=Rw(t,u,o);return c.top=St(d.top,c.top),c.right=Xr(d.right,c.right),c.bottom=Xr(d.bottom,c.bottom),c.left=St(d.left,c.left),c},Rw(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function aX(e){const{width:t,height:r}=bA(e);return{width:t,height:r}}function sX(e,t,r){const n=lr(t),o=ur(t),i=r==="fixed",a=In(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=nr(0);function c(){l.x=fc(o)}if(n||!n&&!i)if((ko(t)!=="body"||Xi(o))&&(s=dc(t)),n){const v=In(t,!0,i,t);l.x=v.x+t.clientLeft,l.y=v.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?wA(o,s):nr(0),d=a.left+s.scrollLeft-l.x-u.x,p=a.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:a.width,height:a.height}}function xd(e){return Kt(e).position==="static"}function Dw(e,t){if(!lr(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ur(e)===r&&(r=r.ownerDocument.body),r}function PA(e,t){const r=Ct(e);if(uc(e))return r;if(!lr(e)){let o=Zr(e);for(;o&&!ho(o);){if(Wt(o)&&!xd(o))return o;o=Zr(o)}return r}let n=Dw(e,t);for(;n&&WY(n)&&xd(n);)n=Dw(n,t);return n&&ho(n)&&xd(n)&&!xm(n)?r:n||qY(e)||r}const lX=async function(e){const t=this.getOffsetParent||PA,r=this.getDimensions,n=await r(e.floating);return{reference:sX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function cX(e){return Kt(e).direction==="rtl"}const uX={convertOffsetParentRelativeRectToViewportRelativeRect:JY,getDocumentElement:ur,getClippingRect:iX,getOffsetParent:PA,getElementRects:lX,getClientRects:QY,getDimensions:aX,getScale:so,isElement:Wt,isRTL:cX};function EA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dX(e,t){let r=null,n;const o=ur(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:v}=c;if(s||t(),!p||!v)return;const g=La(d),m=La(o.clientWidth-(u+p)),h=La(o.clientHeight-(d+v)),b=La(u),w={rootMargin:-g+"px "+-m+"px "+-h+"px "+-b+"px",threshold:St(0,Xr(1,l))||1};let S=!0;function E(P){const O=P[0].intersectionRatio;if(O!==l){if(!S)return a();O?a(!1,O):n=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!EA(c,e.getBoundingClientRect())&&a(),S=!1}try{r=new IntersectionObserver(E,{...w,root:o.ownerDocument})}catch{r=new IntersectionObserver(E,w)}r.observe(e)}return a(!0),i}function fX(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Sm(e),u=o||i?[...c?hi(c):[],...hi(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});const d=c&&s?dX(c,r):null;let p=-1,v=null;a&&(v=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),r()}),c&&!l&&v.observe(c),v.observe(t));let g,m=l?In(e):null;l&&h();function h(){const b=In(e);m&&!EA(m,b)&&r(),m=b,g=requestAnimationFrame(h)}return r(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const pX=$Y,vX=LY,mX=kY,hX=FY,gX=RY,$w=IY,yX=zY,bX=(e,t,r)=>{const n=new Map,o={platform:uX,...r},i={...o.platform,_c:n};return MY(e,t,{...o,platform:i})};var xX=typeof document<"u",wX=function(){},Xa=xX?A.useLayoutEffect:wX;function el(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!el(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!el(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function OA(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Lw(e,t){const r=OA(e);return Math.round(t*r)/r}function wd(e){const t=f.useRef(e);return Xa(()=>{t.current=e}),t}function SX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(n);el(p,n)||v(n);const[g,m]=f.useState(null),[h,b]=f.useState(null),x=f.useCallback(T=>{T!==P.current&&(P.current=T,m(T))},[]),w=f.useCallback(T=>{T!==O.current&&(O.current=T,b(T))},[]),S=i||g,E=a||h,P=f.useRef(null),O=f.useRef(null),C=f.useRef(u),N=l!=null,$=wd(l),I=wd(o),_=wd(c),j=f.useCallback(()=>{if(!P.current||!O.current)return;const T={placement:t,strategy:r,middleware:p};I.current&&(T.platform=I.current),bX(P.current,O.current,T).then(k=>{const G={...k,isPositioned:_.current!==!1};R.current&&!el(C.current,G)&&(C.current=G,wi.flushSync(()=>{d(G)}))})},[p,t,r,I,_]);Xa(()=>{c===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(T=>({...T,isPositioned:!1})))},[c]);const R=f.useRef(!1);Xa(()=>(R.current=!0,()=>{R.current=!1}),[]),Xa(()=>{if(S&&(P.current=S),E&&(O.current=E),S&&E){if($.current)return $.current(S,E,j);j()}},[S,E,j,$,N]);const V=f.useMemo(()=>({reference:P,floating:O,setReference:x,setFloating:w}),[x,w]),F=f.useMemo(()=>({reference:S,floating:E}),[S,E]),W=f.useMemo(()=>{const T={position:r,left:0,top:0};if(!F.floating)return T;const k=Lw(F.floating,u.x),G=Lw(F.floating,u.y);return s?{...T,transform:"translate("+k+"px, "+G+"px)",...OA(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:k,top:G}},[r,s,F.floating,u.x,u.y]);return f.useMemo(()=>({...u,update:j,refs:V,elements:F,floatingStyles:W}),[u,j,V,F,W])}const PX=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$w({element:n.current,padding:o}).fn(r):{}:n?$w({element:n,padding:o}).fn(r):{}}}},EX=(e,t)=>({...pX(e),options:[e,t]}),OX=(e,t)=>({...vX(e),options:[e,t]}),CX=(e,t)=>({...yX(e),options:[e,t]}),AX=(e,t)=>({...mX(e),options:[e,t]}),_X=(e,t)=>({...hX(e),options:[e,t]}),TX=(e,t)=>({...gX(e),options:[e,t]}),jX=(e,t)=>({...PX(e),options:[e,t]});var NX="Arrow",CA=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return y.jsx(Q.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});CA.displayName=NX;var MX=CA,Pm="Popper",[AA,rn]=Be(Pm),[IX,_A]=AA(Pm),TA=e=>{const{__scopePopper:t,children:r}=e,[n,o]=f.useState(null);return y.jsx(IX,{scope:t,anchor:n,onAnchorChange:o,children:r})};TA.displayName=Pm;var jA="PopperAnchor",NA=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=_A(jA,r),a=f.useRef(null),s=re(t,a),l=f.useRef(null);return f.useEffect(()=>{const c=l.current;l.current=n?.current||a.current,c!==l.current&&i.onAnchorChange(l.current)}),n?null:y.jsx(Q.div,{...o,ref:s})});NA.displayName=jA;var Em="PopperContent",[kX,RX]=AA(Em),MA=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:g,...m}=e,h=_A(Em,r),[b,x]=f.useState(null),w=re(t,K=>x(K)),[S,E]=f.useState(null),P=Yi(S),O=P?.width??0,C=P?.height??0,N=n+(i!=="center"?"-"+i:""),$=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},I=Array.isArray(c)?c:[c],_=I.length>0,j={padding:$,boundary:I.filter($X),altBoundary:_},{refs:R,floatingStyles:V,placement:F,isPositioned:W,middlewareData:T}=SX({strategy:"fixed",placement:N,whileElementsMounted:(...K)=>fX(...K,{animationFrame:v==="always"}),elements:{reference:h.anchor},middleware:[EX({mainAxis:o+C,alignmentAxis:a}),l&&OX({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?CX():void 0,...j}),l&&AX({...j}),_X({...j,apply:({elements:K,rects:ue,availableWidth:L,availableHeight:H})=>{const{width:B,height:z}=ue.reference,fe=K.floating.style;fe.setProperty("--radix-popper-available-width",`${L}px`),fe.setProperty("--radix-popper-available-height",`${H}px`),fe.setProperty("--radix-popper-anchor-width",`${B}px`),fe.setProperty("--radix-popper-anchor-height",`${z}px`)}}),S&&jX({element:S,padding:s}),LX({arrowWidth:O,arrowHeight:C}),p&&TX({strategy:"referenceHidden",...j})]}),[k,G]=RA(F),ee=st(g);Ye(()=>{W&&ee?.()},[W,ee]);const ne=T.arrow?.x,ie=T.arrow?.y,oe=T.arrow?.centerOffset!==0,[le,Oe]=f.useState();return Ye(()=>{b&&Oe(window.getComputedStyle(b).zIndex)},[b]),y.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:W?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[T.transformOrigin?.x,T.transformOrigin?.y].join(" "),...T.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(kX,{scope:r,placedSide:k,onArrowChange:E,arrowX:ne,arrowY:ie,shouldHideArrow:oe,children:y.jsx(Q.div,{"data-side":k,"data-align":G,...m,ref:w,style:{...m.style,animation:W?void 0:"none"}})})})});MA.displayName=Em;var IA="PopperArrow",DX={top:"bottom",right:"left",bottom:"top",left:"right"},kA=f.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=RX(IA,n),a=DX[i.placedSide];return y.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:y.jsx(MX,{...o,ref:r,style:{...o.style,display:"block"}})})});kA.displayName=IA;function $X(e){return e!==null}var LX=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=RA(r),d={start:"0%",center:"50%",end:"100%"}[u],p=(o.arrow?.x??0)+s/2,v=(o.arrow?.y??0)+l/2;let g="",m="";return c==="bottom"?(g=a?d:`${p}px`,m=`${-l}px`):c==="top"?(g=a?d:`${p}px`,m=`${n.floating.height+l}px`):c==="right"?(g=`${-l}px`,m=a?d:`${v}px`):c==="left"&&(g=`${n.floating.width+l}px`,m=a?d:`${v}px`),{data:{x:g,y:m}}}});function RA(e){const[t,r="center"]=e.split("-");return[t,r]}var Zi=TA,Ji=NA,pc=MA,vc=kA,Sd="rovingFocusGroup.onEntryFocus",zX={bubbles:!1,cancelable:!0},Qi="RovingFocusGroup",[Rf,DA,FX]=bo(Qi),[BX,mc]=Be(Qi,[FX]),[VX,WX]=BX(Qi),$A=f.forwardRef((e,t)=>y.jsx(Rf.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Rf.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(KX,{...e,ref:t})})}));$A.displayName=Qi;var KX=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=f.useRef(null),v=re(t,p),g=xo(i),[m,h]=nt({prop:a,defaultProp:s??null,onChange:l,caller:Qi}),[b,x]=f.useState(!1),w=st(c),S=DA(r),E=f.useRef(!1),[P,O]=f.useState(0);return f.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(Sd,w),()=>C.removeEventListener(Sd,w)},[w]),y.jsx(VX,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:m,onItemFocus:f.useCallback(C=>h(C),[h]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>O(C=>C+1),[]),onFocusableItemRemove:f.useCallback(()=>O(C=>C-1),[]),children:y.jsx(Q.div,{tabIndex:b||P===0?-1:0,"data-orientation":n,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:U(e.onMouseDown,()=>{E.current=!0}),onFocus:U(e.onFocus,C=>{const N=!E.current;if(C.target===C.currentTarget&&N&&!b){const $=new CustomEvent(Sd,zX);if(C.currentTarget.dispatchEvent($),!$.defaultPrevented){const I=S().filter(F=>F.focusable),_=I.find(F=>F.active),j=I.find(F=>F.id===m),V=[_,j,...I].filter(Boolean).map(F=>F.ref.current);FA(V,u)}}E.current=!1}),onBlur:U(e.onBlur,()=>x(!1))})})}),LA="RovingFocusGroupItem",zA=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=vt(),c=i||l,u=WX(LA,r),d=u.currentTabStopId===c,p=DA(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:m}=u;return f.useEffect(()=>{if(n)return v(),()=>g()},[n,v,g]),y.jsx(Rf.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:y.jsx(Q.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:U(e.onMouseDown,h=>{n?u.onItemFocus(c):h.preventDefault()}),onFocus:U(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:U(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=GX(h,u.orientation,u.dir);if(b!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let w=p().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")w.reverse();else if(b==="prev"||b==="next"){b==="prev"&&w.reverse();const S=w.indexOf(h.currentTarget);w=u.loop?qX(w,S+1):w.slice(S+1)}setTimeout(()=>FA(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});zA.displayName=LA;var UX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function HX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GX(e,t,r){const n=HX(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return UX[n]}function FA(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function qX(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var BA=$A,VA=zA;function YX(e){const t=XX(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(JX);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function XX(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=eZ(o),s=QX(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ZX=Symbol("radix.slottable");function JX(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZX}function QX(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function eZ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Df=["Enter"," "],tZ=["ArrowDown","PageUp","Home"],WA=["ArrowUp","PageDown","End"],rZ=[...tZ,...WA],nZ={ltr:[...Df,"ArrowRight"],rtl:[...Df,"ArrowLeft"]},oZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ea="Menu",[gi,iZ,aZ]=bo(ea),[Un,hc]=Be(ea,[aZ,rn,mc]),ta=rn(),KA=mc(),[UA,nn]=Un(ea),[sZ,ra]=Un(ea),HA=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:a=!0}=e,s=ta(t),[l,c]=f.useState(null),u=f.useRef(!1),d=st(i),p=xo(o);return f.useEffect(()=>{const v=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),y.jsx(Zi,{...s,children:y.jsx(UA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:y.jsx(sZ,{scope:t,onClose:f.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:p,modal:a,children:n})})})};HA.displayName=ea;var lZ="MenuAnchor",Om=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ta(r);return y.jsx(Ji,{...o,...n,ref:t})});Om.displayName=lZ;var Cm="MenuPortal",[cZ,GA]=Un(Cm,{forceMount:void 0}),qA=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=nn(Cm,t);return y.jsx(cZ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};qA.displayName=Cm;var kt="MenuContent",[uZ,Am]=Un(kt),YA=f.forwardRef((e,t)=>{const r=GA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=ra(kt,e.__scopeMenu);return y.jsx(gi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(gi.Slot,{scope:e.__scopeMenu,children:a.modal?y.jsx(dZ,{...o,ref:t}):y.jsx(fZ,{...o,ref:t})})})})}),dZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu),n=f.useRef(null),o=re(t,n);return f.useEffect(()=>{const i=n.current;if(i)return fl(i)},[]),y.jsx(_m,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:U(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),fZ=f.forwardRef((e,t)=>{const r=nn(kt,e.__scopeMenu);return y.jsx(_m,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),pZ=YX("MenuContent.ScrollLock"),_m=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,disableOutsideScroll:g,...m}=e,h=nn(kt,r),b=ra(kt,r),x=ta(r),w=KA(r),S=iZ(r),[E,P]=f.useState(null),O=f.useRef(null),C=re(t,O,h.onContentChange),N=f.useRef(0),$=f.useRef(""),I=f.useRef(0),_=f.useRef(null),j=f.useRef("right"),R=f.useRef(0),V=g?Pi:f.Fragment,F=g?{as:pZ,allowPinchZoom:!0}:void 0,W=k=>{const G=$.current+k,ee=S().filter(K=>!K.disabled),ne=document.activeElement,ie=ee.find(K=>K.ref.current===ne)?.textValue,oe=ee.map(K=>K.textValue),le=OZ(oe,G,ie),Oe=ee.find(K=>K.textValue===le)?.ref.current;(function K(ue){$.current=ue,window.clearTimeout(N.current),ue!==""&&(N.current=window.setTimeout(()=>K(""),1e3))})(G),Oe&&setTimeout(()=>Oe.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),ul();const T=f.useCallback(k=>j.current===_.current?.side&&AZ(k,_.current?.area),[]);return y.jsx(uZ,{scope:r,searchRef:$,onItemEnter:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),onItemLeave:f.useCallback(k=>{T(k)||(O.current?.focus(),P(null))},[T]),onTriggerLeave:f.useCallback(k=>{T(k)&&k.preventDefault()},[T]),pointerGraceTimerRef:I,onPointerGraceIntentChange:f.useCallback(k=>{_.current=k},[]),children:y.jsx(V,{...F,children:y.jsx(Si,{asChild:!0,trapped:o,onMountAutoFocus:U(i,k=>{k.preventDefault(),O.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:p,onDismiss:v,children:y.jsx(BA,{asChild:!0,...w,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:P,onEntryFocus:U(l,k=>{b.isUsingKeyboardRef.current||k.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(pc,{role:"menu","aria-orientation":"vertical","data-state":f_(h.open),"data-radix-menu-content":"",dir:b.dir,...x,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:U(m.onKeyDown,k=>{const ee=k.target.closest("[data-radix-menu-content]")===k.currentTarget,ne=k.ctrlKey||k.altKey||k.metaKey,ie=k.key.length===1;ee&&(k.key==="Tab"&&k.preventDefault(),!ne&&ie&&W(k.key));const oe=O.current;if(k.target!==oe||!rZ.includes(k.key))return;k.preventDefault();const Oe=S().filter(K=>!K.disabled).map(K=>K.ref.current);WA.includes(k.key)&&Oe.reverse(),PZ(Oe)}),onBlur:U(e.onBlur,k=>{k.currentTarget.contains(k.target)||(window.clearTimeout(N.current),$.current="")}),onPointerMove:U(e.onPointerMove,yi(k=>{const G=k.target,ee=R.current!==k.clientX;if(k.currentTarget.contains(G)&&ee){const ne=k.clientX>R.current?"right":"left";j.current=ne,R.current=k.clientX}}))})})})})})})});YA.displayName=kt;var vZ="MenuGroup",Tm=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"group",...n,ref:t})});Tm.displayName=vZ;var mZ="MenuLabel",XA=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});XA.displayName=mZ;var tl="MenuItem",zw="menu.itemSelect",gc=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,i=f.useRef(null),a=ra(tl,e.__scopeMenu),s=Am(tl,e.__scopeMenu),l=re(t,i),c=f.useRef(!1),u=()=>{const d=i.current;if(!r&&d){const p=new CustomEvent(zw,{bubbles:!0,cancelable:!0});d.addEventListener(zw,v=>n?.(v),{once:!0}),Zf(d,p),p.defaultPrevented?c.current=!1:a.onClose()}};return y.jsx(ZA,{...o,ref:l,disabled:r,onClick:U(e.onClick,u),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:U(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:U(e.onKeyDown,d=>{const p=s.searchRef.current!=="";r||p&&d.key===" "||Df.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});gc.displayName=tl;var ZA=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,a=Am(tl,r),s=KA(r),l=f.useRef(null),c=re(t,l),[u,d]=f.useState(!1),[p,v]=f.useState("");return f.useEffect(()=>{const g=l.current;g&&v((g.textContent??"").trim())},[i.children]),y.jsx(gi.ItemSlot,{scope:r,disabled:n,textValue:o??p,children:y.jsx(VA,{asChild:!0,...s,focusable:!n,children:y.jsx(Q.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:c,onPointerMove:U(e.onPointerMove,yi(g=>{n?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:U(e.onPointerLeave,yi(g=>a.onItemLeave(g))),onFocus:U(e.onFocus,()=>d(!0)),onBlur:U(e.onBlur,()=>d(!1))})})})}),hZ="MenuCheckboxItem",JA=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return y.jsx(n_,{scope:e.__scopeMenu,checked:r,children:y.jsx(gc,{role:"menuitemcheckbox","aria-checked":rl(r)?"mixed":r,...o,ref:t,"data-state":Mm(r),onSelect:U(o.onSelect,()=>n?.(rl(r)?!0:!r),{checkForDefaultPrevented:!1})})})});JA.displayName=hZ;var QA="MenuRadioGroup",[gZ,yZ]=Un(QA,{value:void 0,onValueChange:()=>{}}),e_=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,i=st(n);return y.jsx(gZ,{scope:e.__scopeMenu,value:r,onValueChange:i,children:y.jsx(Tm,{...o,ref:t})})});e_.displayName=QA;var t_="MenuRadioItem",r_=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=yZ(t_,e.__scopeMenu),i=r===o.value;return y.jsx(n_,{scope:e.__scopeMenu,checked:i,children:y.jsx(gc,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":Mm(i),onSelect:U(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});r_.displayName=t_;var jm="MenuItemIndicator",[n_,bZ]=Un(jm,{checked:!1}),o_=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,i=bZ(jm,r);return y.jsx(lt,{present:n||rl(i.checked)||i.checked===!0,children:y.jsx(Q.span,{...o,ref:t,"data-state":Mm(i.checked)})})});o_.displayName=jm;var xZ="MenuSeparator",i_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return y.jsx(Q.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});i_.displayName=xZ;var wZ="MenuArrow",a_=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=ta(r);return y.jsx(vc,{...o,...n,ref:t})});a_.displayName=wZ;var Nm="MenuSub",[SZ,s_]=Un(Nm),l_=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=nn(Nm,t),a=ta(t),[s,l]=f.useState(null),[c,u]=f.useState(null),d=st(o);return f.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),y.jsx(Zi,{...a,children:y.jsx(UA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:y.jsx(SZ,{scope:t,contentId:vt(),triggerId:vt(),trigger:s,onTriggerChange:l,children:r})})})};l_.displayName=Nm;var Zo="MenuSubTrigger",c_=f.forwardRef((e,t)=>{const r=nn(Zo,e.__scopeMenu),n=ra(Zo,e.__scopeMenu),o=s_(Zo,e.__scopeMenu),i=Am(Zo,e.__scopeMenu),a=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=f.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return f.useEffect(()=>u,[u]),f.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),y.jsx(Om,{asChild:!0,...c,children:y.jsx(ZA,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":f_(r.open),...e,ref:cr(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:U(e.onPointerMove,yi(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:U(e.onPointerLeave,yi(d=>{u();const p=r.content?.getBoundingClientRect();if(p){const v=r.content?.dataset.side,g=v==="right",m=g?-5:5,h=p[g?"left":"right"],b=p[g?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+m,y:d.clientY},{x:h,y:p.top},{x:b,y:p.top},{x:b,y:p.bottom},{x:h,y:p.bottom}],side:v}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:U(e.onKeyDown,d=>{const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||nZ[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});c_.displayName=Zo;var u_="MenuSubContent",d_=f.forwardRef((e,t)=>{const r=GA(kt,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=nn(kt,e.__scopeMenu),a=ra(kt,e.__scopeMenu),s=s_(u_,e.__scopeMenu),l=f.useRef(null),c=re(t,l);return y.jsx(gi.Provider,{scope:e.__scopeMenu,children:y.jsx(lt,{present:n||i.open,children:y.jsx(gi.Slot,{scope:e.__scopeMenu,children:y.jsx(_m,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{a.isUsingKeyboardRef.current&&l.current?.focus(),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:U(e.onFocusOutside,u=>{u.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:U(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:U(e.onKeyDown,u=>{const d=u.currentTarget.contains(u.target),p=oZ[a.dir].includes(u.key);d&&p&&(i.onOpenChange(!1),s.trigger?.focus(),u.preventDefault())})})})})})});d_.displayName=u_;function f_(e){return e?"open":"closed"}function rl(e){return e==="indeterminate"}function Mm(e){return rl(e)?"indeterminate":e?"checked":"unchecked"}function PZ(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function EZ(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function OZ(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=EZ(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function CZ(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function AZ(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return CZ(r,t)}function yi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var p_=HA,v_=Om,m_=qA,h_=YA,g_=Tm,y_=XA,b_=gc,x_=JA,w_=e_,S_=r_,P_=o_,E_=i_,O_=a_,C_=l_,A_=c_,__=d_,Im="ContextMenu",[_Z]=Be(Im,[hc]),ut=hc(),[TZ,T_]=_Z(Im),j_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:o,modal:i=!0}=e,[a,s]=f.useState(!1),l=ut(t),c=st(n),u=f.useCallback(d=>{s(d),c(d)},[c]);return y.jsx(TZ,{scope:t,open:a,onOpenChange:u,modal:i,children:y.jsx(p_,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:r})})};j_.displayName=Im;var N_="ContextMenuTrigger",M_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...o}=e,i=T_(N_,r),a=ut(r),s=f.useRef({x:0,y:0}),l=f.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=f.useRef(0),u=f.useCallback(()=>window.clearTimeout(c.current),[]),d=p=>{s.current={x:p.clientX,y:p.clientY},i.onOpenChange(!0)};return f.useEffect(()=>u,[u]),f.useEffect(()=>{n&&u()},[n,u]),y.jsxs(y.Fragment,{children:[y.jsx(v_,{...a,virtualRef:l}),y.jsx(Q.span,{"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:U(e.onContextMenu,p=>{u(),d(p),p.preventDefault()}),onPointerDown:n?e.onPointerDown:U(e.onPointerDown,za(p=>{u(),c.current=window.setTimeout(()=>d(p),700)})),onPointerMove:n?e.onPointerMove:U(e.onPointerMove,za(u)),onPointerCancel:n?e.onPointerCancel:U(e.onPointerCancel,za(u)),onPointerUp:n?e.onPointerUp:U(e.onPointerUp,za(u))})]})});M_.displayName=N_;var jZ="ContextMenuPortal",I_=e=>{const{__scopeContextMenu:t,...r}=e,n=ut(t);return y.jsx(m_,{...n,...r})};I_.displayName=jZ;var k_="ContextMenuContent",R_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=T_(k_,r),i=ut(r),a=f.useRef(!1);return y.jsx(h_,{...i,...n,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),!s.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});R_.displayName=k_;var NZ="ContextMenuGroup",D_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(g_,{...o,...n,ref:t})});D_.displayName=NZ;var MZ="ContextMenuLabel",$_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(y_,{...o,...n,ref:t})});$_.displayName=MZ;var IZ="ContextMenuItem",L_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(b_,{...o,...n,ref:t})});L_.displayName=IZ;var kZ="ContextMenuCheckboxItem",z_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(x_,{...o,...n,ref:t})});z_.displayName=kZ;var RZ="ContextMenuRadioGroup",F_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(w_,{...o,...n,ref:t})});F_.displayName=RZ;var DZ="ContextMenuRadioItem",B_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(S_,{...o,...n,ref:t})});B_.displayName=DZ;var $Z="ContextMenuItemIndicator",V_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(P_,{...o,...n,ref:t})});V_.displayName=$Z;var LZ="ContextMenuSeparator",W_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(E_,{...o,...n,ref:t})});W_.displayName=LZ;var zZ="ContextMenuArrow",FZ=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(O_,{...o,...n,ref:t})});FZ.displayName=zZ;var K_="ContextMenuSub",U_=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:o,defaultOpen:i}=e,a=ut(t),[s,l]=nt({prop:o,defaultProp:i??!1,onChange:n,caller:K_});return y.jsx(C_,{...a,open:s,onOpenChange:l,children:r})};U_.displayName=K_;var BZ="ContextMenuSubTrigger",H_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(A_,{...o,...n,ref:t})});H_.displayName=BZ;var VZ="ContextMenuSubContent",G_=f.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,o=ut(r);return y.jsx(__,{...o,...n,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});G_.displayName=VZ;function za(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var WZ=j_,KZ=M_,UZ=I_,HZ=R_,GZ=D_,qZ=$_,YZ=L_,XZ=z_,ZZ=F_,JZ=B_,q_=V_,QZ=W_,eJ=U_,tJ=H_,rJ=G_;const nJ=WZ,oJ=KZ,iJ=GZ,Y_=UZ,aJ=eJ,sJ=ZZ,X_=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(tJ,{ref:o,className:D("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));X_.displayName="ContextMenuSubTrigger";const Z_=f.forwardRef(({className:e,...t},r)=>y.jsx(rJ,{ref:r,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Z_.displayName="ContextMenuSubContent";const J_=f.forwardRef(({className:e,...t},r)=>y.jsx(Y_,{children:y.jsx(HZ,{ref:r,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));J_.displayName="ContextMenuContent";const Q_=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(YZ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));Q_.displayName="ContextMenuItem";const eT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(XZ,{ref:o,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(q_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));eT.displayName="ContextMenuCheckboxItem";const tT=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(JZ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(q_,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));tT.displayName="ContextMenuRadioItem";const rT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(qZ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));rT.displayName="ContextMenuLabel";const nT=f.forwardRef(({className:e,...t},r)=>y.jsx(QZ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));nT.displayName="ContextMenuSeparator";const oT=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));oT.displayName="ContextMenuShortcut";function lJ(e){const t=cJ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(dJ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function cJ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=pJ(o),s=fJ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uJ=Symbol("radix.slottable");function dJ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uJ}function fJ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function pJ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yc="Popover",[iT]=Be(yc,[rn]),na=rn(),[vJ,on]=iT(yc),aT=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=na(t),l=f.useRef(null),[c,u]=f.useState(!1),[d,p]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:yc});return y.jsx(Zi,{...s,children:y.jsx(vJ,{scope:t,contentId:vt(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(v=>!v),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>u(!0),[]),onCustomAnchorRemove:f.useCallback(()=>u(!1),[]),modal:a,children:r})})};aT.displayName=yc;var sT="PopoverAnchor",mJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(sT,r),i=na(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return f.useEffect(()=>(a(),()=>s()),[a,s]),y.jsx(Ji,{...i,...n,ref:t})});mJ.displayName=sT;var lT="PopoverTrigger",cT=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(lT,r),i=na(r),a=re(t,o.triggerRef),s=y.jsx(Q.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":vT(o.open),...n,ref:a,onClick:U(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:y.jsx(Ji,{asChild:!0,...i,children:s})});cT.displayName=lT;var km="PopoverPortal",[hJ,gJ]=iT(km,{forceMount:void 0}),uT=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=on(km,t);return y.jsx(hJ,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};uT.displayName=km;var go="PopoverContent",dT=f.forwardRef((e,t)=>{const r=gJ(go,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=on(go,e.__scopePopover);return y.jsx(lt,{present:n||i.open,children:i.modal?y.jsx(bJ,{...o,ref:t}):y.jsx(xJ,{...o,ref:t})})});dT.displayName=go;var yJ=lJ("PopoverContent.RemoveScroll"),bJ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(null),o=re(t,n),i=f.useRef(!1);return f.useEffect(()=>{const a=n.current;if(a)return fl(a)},[]),y.jsx(Pi,{as:yJ,allowPinchZoom:!0,children:y.jsx(fT,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:U(e.onCloseAutoFocus,a=>{a.preventDefault(),i.current||r.triggerRef.current?.focus()}),onPointerDownOutside:U(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:U(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),xJ=f.forwardRef((e,t)=>{const r=on(go,e.__scopePopover),n=f.useRef(!1),o=f.useRef(!1);return y.jsx(fT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;r.triggerRef.current?.contains(a)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),fT=f.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,p=on(go,r),v=na(r);return ul(),y.jsx(Si,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:y.jsx(pc,{"data-state":vT(p.open),role:"dialog",id:p.contentId,...v,...d,ref:t,style:{...d.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)"}})})})}),pT="PopoverClose",wJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=on(pT,r);return y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,()=>o.onOpenChange(!1))})});wJ.displayName=pT;var SJ="PopoverArrow",PJ=f.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=na(r);return y.jsx(vc,{...o,...n,ref:t})});PJ.displayName=SJ;function vT(e){return e?"open":"closed"}var mT=aT,hT=cT,gT=uT,yT=dT;const EJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fw=["January","February","March","April","May","June","July","August","September","October","November","December"];function Bw(e,t){return new Date(e,t+1,0).getDate()}function OJ(e,t){return new Date(e,t,1).getDay()}function bT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function CJ(e){return bT(new Date,e)}function Vw(e,t="yyyy-MM-dd"){if(!e)return"";const r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o=e.getFullYear();return t.replace("yyyy",String(o)).replace("MM",r).replace("dd",n)}const xT=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),wT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),ST=f.forwardRef(({value:e,onChange:t,placeholder:r="Select a date",format:n="MM/dd/yyyy",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,"aria-label":d,"aria-describedby":p},v)=>{const[g,m]=f.useState(!1),[h,b]=f.useState(()=>e||new Date),x=h.getFullYear(),w=h.getMonth(),S=Bw(x,w),E=OJ(x,w),P=f.useMemo(()=>{const _=[],j=w===0?11:w-1,R=w===0?x-1:x,V=Bw(R,j);for(let k=E-1;k>=0;k--)_.push({date:new Date(R,j,V-k),isOutside:!0});for(let k=1;k<=S;k++)_.push({date:new Date(x,w,k),isOutside:!1});const F=42-_.length,W=w===11?0:w+1,T=w===11?x+1:x;for(let k=1;k<=F;k++)_.push({date:new Date(T,W,k),isOutside:!0});return _},[x,w,S,E]),O=()=>{b(new Date(x,w-1,1))},C=()=>{b(new Date(x,w+1,1))},N=_=>{t?.(_),m(!1)},$=_=>!!(o&&_<new Date(o.setHours(0,0,0,0))||i&&_>new Date(i.setHours(23,59,59,999))),I=(_,j)=>$(_)?"disabled":j?"outside":e&&bT(e,_)?"selected":CJ(_)?"today":"default";return f.useEffect(()=>{e&&b(e)},[e]),y.jsxs(mT,{open:g,onOpenChange:m,children:[y.jsx(hT,{asChild:!0,children:y.jsxs("button",{ref:v,id:c,type:"button",disabled:a,className:D(xT({variant:s}),l),"aria-label":d||"Choose date","aria-describedby":p,"aria-haspopup":"dialog","aria-expanded":g,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?Vw(e,n):r}),y.jsx(p0,{className:"text-tertiary h-4 w-4 shrink-0"}),u&&y.jsx("input",{type:"hidden",name:u,value:e?Vw(e,"yyyy-MM-dd"):""})]})}),y.jsx(gT,{children:y.jsxs(yT,{className:D("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:O,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ll,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Fw[w]," ",x]}),y.jsx("button",{type:"button",onClick:C,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(cl,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:EJ.map(_=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:_},_))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Fw[w]} ${x}`,children:P.map(({date:_,isOutside:j},R)=>{const V=I(_,j),F=V==="disabled";return y.jsx("button",{type:"button",onClick:()=>!F&&N(_),disabled:F,className:wT({state:V}),"aria-label":_.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":V==="selected",tabIndex:j?-1:0,children:_.getDate()},R)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:()=>N(new Date),className:D("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Today"})})]})})]})});ST.displayName="DatePicker";const AJ=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ww=["January","February","March","April","May","June","July","August","September","October","November","December"];function Kw(e,t){return new Date(e,t+1,0).getDate()}function _J(e,t){return new Date(e,t,1).getDay()}function PT(e,t){return e?e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate():!1}function TJ(e){return PT(new Date,e)}function jJ(e,t="yyyy-MM-dd",r=!0){if(!e)return"";const n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0"),i=e.getFullYear(),a=e.getHours(),s=a%12||12,l=r?String(a).padStart(2,"0"):String(s).padStart(2,"0"),c=String(e.getMinutes()).padStart(2,"0"),u=a>=12?"PM":"AM";return t.replace("yyyy",String(i)).replace("MM",n).replace("dd",o).replace("HH",String(a).padStart(2,"0")).replace("hh",l).replace("mm",c).replace("a",u)}function Uw(e){const t=e.match(/^(\d{1,2}):(\d{2})$/);return t&&t[1]&&t[2]?{hours:Math.min(23,Math.max(0,parseInt(t[1],10))),minutes:Math.min(59,Math.max(0,parseInt(t[2],10)))}:{hours:0,minutes:0}}const ET=te(["bg-card text-body text-primary placeholder:text-tertiary","flex h-10 w-full items-center justify-between rounded-md border px-3 py-2","font-sans transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"],{variants:{variant:{default:"border-border",error:"border-error"}},defaultVariants:{variant:"default"}}),OT=te(["inline-flex h-9 w-9 items-center justify-center rounded-full text-sm","transition-colors focus-visible:outline-none","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-1"],{variants:{state:{default:"hover:bg-sunflower text-primary",selected:"bg-sunflower text-primary font-medium",today:"hover:bg-sunflower border-sunflower text-primary border",disabled:"text-tertiary cursor-not-allowed opacity-50",outside:"text-tertiary opacity-50"}},defaultVariants:{state:"default"}}),CT=f.forwardRef(({value:e,onChange:t,placeholder:r="Select date and time",format:n="yyyy-MM-dd HH:mm",minDate:o,maxDate:i,disabled:a=!1,variant:s,className:l,id:c,name:u,use24Hour:d=!0,minuteStep:p=1,"aria-label":v,"aria-describedby":g},m)=>{const[h,b]=f.useState(!1),[x,w]=f.useState(()=>e||new Date),[S,E]=f.useState(()=>e?`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`:"12:00"),P=x.getFullYear(),O=x.getMonth(),C=Kw(P,O),N=_J(P,O),$=f.useMemo(()=>{const T=[],k=O===0?11:O-1,G=O===0?P-1:P,ee=Kw(G,k);for(let le=N-1;le>=0;le--)T.push({date:new Date(G,k,ee-le),isOutside:!0});for(let le=1;le<=C;le++)T.push({date:new Date(P,O,le),isOutside:!1});const ne=42-T.length,ie=O===11?0:O+1,oe=O===11?P+1:P;for(let le=1;le<=ne;le++)T.push({date:new Date(oe,ie,le),isOutside:!0});return T},[P,O,C,N]),I=()=>{w(new Date(P,O-1,1))},_=()=>{w(new Date(P,O+1,1))},j=T=>{const{hours:k,minutes:G}=Uw(S),ee=new Date(T.getFullYear(),T.getMonth(),T.getDate(),k,G);t?.(ee)},R=T=>{const k=T.target.value;if(E(k),e){const{hours:G,minutes:ee}=Uw(k),ne=new Date(e);ne.setHours(G,ee),t?.(ne)}},V=()=>{const T=new Date;E(`${String(T.getHours()).padStart(2,"0")}:${String(T.getMinutes()).padStart(2,"0")}`),t?.(T),b(!1)},F=T=>!!(o&&T<new Date(o.setHours(0,0,0,0))||i&&T>new Date(i.setHours(23,59,59,999))),W=(T,k)=>F(T)?"disabled":k?"outside":e&&PT(e,T)?"selected":TJ(T)?"today":"default";return f.useEffect(()=>{e&&(w(e),E(`${String(e.getHours()).padStart(2,"0")}:${String(e.getMinutes()).padStart(2,"0")}`))},[e]),y.jsxs(mT,{open:h,onOpenChange:b,children:[y.jsx(hT,{asChild:!0,children:y.jsxs("button",{ref:m,id:c,type:"button",disabled:a,className:D(ET({variant:s}),l),"aria-label":v||"Choose date and time","aria-describedby":g,"aria-haspopup":"dialog","aria-expanded":h,children:[y.jsx("span",{className:D("truncate",!e&&"text-tertiary"),children:e?jJ(e,n,d):r}),y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsx(Dk,{className:"text-tertiary h-4 w-4 shrink-0"}),y.jsx(p0,{className:"text-tertiary h-4 w-4 shrink-0"})]}),u&&y.jsx("input",{type:"hidden",name:u,value:e?e.toISOString():""})]})}),y.jsx(gT,{children:y.jsxs(yT,{className:D("bg-main border-border z-50 w-auto rounded-lg border p-4 shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=top]:slide-in-from-bottom-2"),sideOffset:4,align:"start",children:[y.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[y.jsx("button",{type:"button",onClick:I,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Previous month",children:y.jsx(ll,{className:"h-4 w-4"})}),y.jsxs("span",{className:"text-primary text-sm font-medium",children:[Ww[O]," ",P]}),y.jsx("button",{type:"button",onClick:_,className:D("hover:bg-alt focus-visible:ring-sunflower inline-flex h-8 w-8 items-center justify-center rounded-full","transition-colors focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Next month",children:y.jsx(cl,{className:"h-4 w-4"})})]}),y.jsx("div",{className:"mb-2 grid grid-cols-7 gap-1",children:AJ.map(T=>y.jsx("div",{className:"text-tertiary text-center text-xs font-medium",children:T},T))}),y.jsx("div",{className:"grid grid-cols-7 gap-1",role:"grid","aria-label":`${Ww[O]} ${P}`,children:$.map(({date:T,isOutside:k},G)=>{const ee=W(T,k),ne=ee==="disabled";return y.jsx("button",{type:"button",onClick:()=>!ne&&j(T),disabled:ne,className:OT({state:ee}),"aria-label":T.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),"aria-pressed":ee==="selected",tabIndex:k?-1:0,children:T.getDate()},G)})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("label",{htmlFor:"time-input",className:"text-secondary text-sm font-medium",children:"Time"}),y.jsx("input",{id:"time-input",type:"time",value:S,onChange:R,step:p*60,className:D("bg-card text-body text-primary border-border rounded-md border px-2 py-1","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:outline-none"),"aria-label":"Select time"})]})}),y.jsx("div",{className:"border-border mt-4 border-t pt-4",children:y.jsx("button",{type:"button",onClick:V,className:D("text-sunflower hover:text-sunflower-hover w-full text-center text-sm font-medium","transition-colors focus-visible:underline focus-visible:outline-none"),children:"Now"})})]})})]})});CT.displayName="DateTimePicker";const AT=te("bg-border shrink-0",{variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}}),_T=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},o)=>{const i=t??"horizontal";return y.jsx("div",{ref:o,role:r?"none":"separator","aria-orientation":r?void 0:i,className:D(AT({orientation:i,className:e})),...n})});_T.displayName="Divider";var bc="DropdownMenu",[NJ]=Be(bc,[hc]),dt=hc(),[MJ,TT]=NJ(bc),jT=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=dt(t),c=f.useRef(null),[u,d]=nt({prop:o,defaultProp:i??!1,onChange:a,caller:bc});return y.jsx(MJ,{scope:t,triggerId:vt(),triggerRef:c,contentId:vt(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(p=>!p),[d]),modal:s,children:y.jsx(p_,{...l,open:u,onOpenChange:d,dir:n,modal:s,children:r})})};jT.displayName=bc;var NT="DropdownMenuTrigger",MT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=TT(NT,r),a=dt(r);return y.jsx(v_,{asChild:!0,...a,children:y.jsx(Q.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":n?"":void 0,disabled:n,...o,ref:cr(t,i.triggerRef),onPointerDown:U(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:U(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});MT.displayName=NT;var IJ="DropdownMenuPortal",IT=e=>{const{__scopeDropdownMenu:t,...r}=e,n=dt(t);return y.jsx(m_,{...n,...r})};IT.displayName=IJ;var kT="DropdownMenuContent",RT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=TT(kT,r),i=dt(r),a=f.useRef(!1);return y.jsx(h_,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...n,ref:t,onCloseAutoFocus:U(e.onCloseAutoFocus,s=>{a.current||o.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:U(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(a.current=!0)}),style:{...e.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)"}})});RT.displayName=kT;var kJ="DropdownMenuGroup",DT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(g_,{...o,...n,ref:t})});DT.displayName=kJ;var RJ="DropdownMenuLabel",$T=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(y_,{...o,...n,ref:t})});$T.displayName=RJ;var DJ="DropdownMenuItem",LT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(b_,{...o,...n,ref:t})});LT.displayName=DJ;var $J="DropdownMenuCheckboxItem",zT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(x_,{...o,...n,ref:t})});zT.displayName=$J;var LJ="DropdownMenuRadioGroup",FT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(w_,{...o,...n,ref:t})});FT.displayName=LJ;var zJ="DropdownMenuRadioItem",BT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(S_,{...o,...n,ref:t})});BT.displayName=zJ;var FJ="DropdownMenuItemIndicator",VT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(P_,{...o,...n,ref:t})});VT.displayName=FJ;var BJ="DropdownMenuSeparator",WT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(E_,{...o,...n,ref:t})});WT.displayName=BJ;var VJ="DropdownMenuArrow",WJ=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(O_,{...o,...n,ref:t})});WJ.displayName=VJ;var KJ=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,a=dt(t),[s,l]=nt({prop:n,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return y.jsx(C_,{...a,open:s,onOpenChange:l,children:r})},UJ="DropdownMenuSubTrigger",KT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(A_,{...o,...n,ref:t})});KT.displayName=UJ;var HJ="DropdownMenuSubContent",UT=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=dt(r);return y.jsx(__,{...o,...n,ref:t,style:{...e.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)"}})});UT.displayName=HJ;var GJ=jT,HT=MT,qJ=IT,YJ=RT,XJ=DT,ZJ=$T,JJ=LT,QJ=zT,eQ=FT,tQ=BT,GT=VT,rQ=WT,nQ=KJ,oQ=KT,iQ=UT;const aQ=GJ,sQ=HT,lQ=XJ,qT=qJ,cQ=nQ,uQ=eQ,YT=f.forwardRef(({className:e,inset:t,children:r,...n},o)=>y.jsxs(oQ,{ref:o,className:D("text-body flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-[state=open]:bg-vanilla data-[state=open]:text-primary",t&&"pl-8",e),...n,children:[r,y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"ml-auto h-4 w-4",children:y.jsx("path",{d:"m9 18 6-6-6-6"})})]}));YT.displayName="DropdownMenuSubTrigger";const XT=f.forwardRef(({className:e,...t},r)=>y.jsx(iQ,{ref:r,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));XT.displayName="DropdownMenuSubContent";const ZT=f.forwardRef(({className:e,sideOffset:t=4,...r},n)=>y.jsx(qT,{children:y.jsx(YJ,{ref:n,sideOffset:t,className:D("border-border bg-card text-primary z-50 min-w-32 overflow-hidden rounded-md border p-1 font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));ZT.displayName="DropdownMenuContent";const JT=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(JJ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm px-2 py-1.5 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",e),...r}));JT.displayName="DropdownMenuItem";const QT=f.forwardRef(({className:e,children:t,checked:r,...n},o)=>y.jsxs(QJ,{ref:o,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),checked:r,...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(GT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"M20 6 9 17l-5-5"})})})}),t]}));QT.displayName="DropdownMenuCheckboxItem";const ej=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(tQ,{ref:n,className:D("text-body relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(GT,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-2 w-2 fill-current",children:y.jsx("circle",{cx:"12",cy:"12",r:"10"})})})}),t]}));ej.displayName="DropdownMenuRadioItem";const tj=f.forwardRef(({className:e,inset:t,...r},n)=>y.jsx(ZJ,{ref:n,className:D("text-small text-primary px-2 py-1.5",t&&"pl-8",e),...r}));tj.displayName="DropdownMenuLabel";const rj=f.forwardRef(({className:e,...t},r)=>y.jsx(rQ,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));rj.displayName="DropdownMenuSeparator";const nj=f.forwardRef(({className:e,...t},r)=>y.jsx("span",{ref:r,className:D("text-small text-tertiary ml-auto tracking-widest",e),...t}));nj.displayName="DropdownMenuShortcut";const oj=f.forwardRef(({className:e,iconSize:t="default",...r},n)=>{const o={sm:"h-4 w-4",default:"h-5 w-5",lg:"h-6 w-6"},i={sm:"h-7 w-7",default:"h-8 w-8",lg:"h-10 w-10"};return y.jsxs(HT,{ref:n,className:D("text-secondary inline-flex items-center justify-center rounded-md transition-colors","hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",i[t],e),...r,children:[y.jsx(v0,{className:o[t]}),y.jsx("span",{className:"sr-only",children:"Open menu"})]})});oj.displayName="ActionsMenuButton";const ij=te("inline-block",{variants:{size:{xs:"h-3",sm:"h-4",md:"h-5",lg:"h-6",xl:"h-8"}},defaultVariants:{size:"md"}});function dQ(e){if(!e)return"";if(e===!0)return"hidden";const t=[];return e.base===!0&&t.push("hidden"),e.sm===!1&&t.push("sm:block"),e.sm===!0&&t.push("sm:hidden"),e.md===!1&&t.push("md:block"),e.md===!0&&t.push("md:hidden"),e.lg===!1&&t.push("lg:block"),e.lg===!0&&t.push("lg:hidden"),e.xl===!1&&t.push("xl:block"),e.xl===!0&&t.push("xl:hidden"),e["2xl"]===!1&&t.push("2xl:block"),e["2xl"]===!0&&t.push("2xl:hidden"),t.join(" ")}const aj=f.forwardRef(({className:e,size:t,compact:r,...n},o)=>{const i=dQ(r),a=r!==!0;return y.jsx("svg",{ref:o,viewBox:"0 0 179.96 38.58",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:D(ij({size:t,className:e})),"aria-label":"Engrate",role:"img",...n,children:y.jsx("g",{id:"engrate-logo",children:y.jsxs("g",{children:[a&&y.jsxs("g",{className:i,children:[y.jsx("path",{fill:"var(--color-primary)",d:"M57.65,27.3c3.61,0,4.09-.62,4.14-3.96.09-5.72.18-11.88.18-18.22,0-3.34-.53-3.96-3.87-3.96V.27h21.21l.92,5.02h-.7c-2.02-2.51-3.26-3.96-7.39-3.96h-3.79c-2.2,0-2.6.22-2.6,1.76v9.59h4.53c3.78,0,4.14-.57,4.8-3.83h.97v9.59h-.97c-.48-3.43-1.23-4.27-4.4-4.27h-4.93v11.09c0,1.5.66,1.85,2.82,1.85h5.81c4.18,0,5.02-.79,7.83-5.5h.84c-.44,1.14-1.14,4.89-1.5,6.56h-23.9v-.88Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M84.6,27.47c2.38,0,2.9-.62,2.9-3.96v-8.23c0-1.01-.22-1.19-1.06-1.72-.35-.22-.53-.31-.53-.57,0-.35.26-.48.75-.75,1.5-.92,2.68-1.67,3.26-1.67.22,0,.48.13.48.53v1.8c1.19-.79,2.99-2.07,5.85-2.07,2.6,0,6.03.97,6.03,6.12v6.56c0,3.34.53,3.96,2.6,3.96v.7h-8.27v-.7c2.07,0,2.6-.62,2.6-3.96v-5.81c0-3.57-1.54-5.37-4.58-5.37-1.8,0-3.34,1.36-4.05,2.2v8.98c0,3.34.53,3.96,2.68,3.96v.7h-8.67v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M113.68,23.49c-.97,0-1.5-.09-1.98-.22-1.14.79-2.6,1.36-2.6,2.38,0,1.23,1.36,1.5,9.07,1.85,3.17.13,4.49,1.5,4.49,3.83,0,5.72-5.59,7.26-10.52,7.26-3.35,0-7.7-.79-7.7-3.7,0-2.07,1.5-3.12,5.02-4.88-1.8-.88-3.04-2.38-3.04-3.65,0-1.41,2.11-2.07,4.09-3.56-2.46-1.06-4.09-2.95-4.09-5.77,0-3.83,2.86-6.16,6.91-6.16,2.77,0,5.15,1.06,5.99,1.06.92,0,2.2-.53,3.43-.53,1.01,0,1.5.26,1.5.92,0,.75-.53,1.19-1.41,1.19s-1.36-.53-2.07-.53c-.62,0-.97.35-.97.92,0,1.19.57,1.41.57,3.48,0,3.61-3.34,6.12-6.69,6.12M113.5,37.7c3.57,0,6.95-1.58,6.95-4.8,0-1.85-1.54-2.6-9.33-2.6-1.72.66-3.61,1.98-3.61,4.05,0,2.2,2.73,3.34,5.99,3.34M113.02,11.74c-2.33,0-3.78,2.07-3.78,5.06,0,3.26,1.54,5.81,4.53,5.81,2.33,0,3.78-1.5,3.78-4.31,0-3.7-1.54-6.56-4.53-6.56"}),y.jsx("path",{fill:"var(--color-primary)",d:"M124.99,27.47c2.11,0,2.64-.62,2.64-3.96v-7.83c0-1.06-.22-1.5-1.06-1.89-.62-.31-.84-.35-.84-.62,0-.35.35-.48,2.02-1.23,1.94-.84,2.02-1.36,2.51-1.36.31,0,.44.18.44.48v1.45c0,.35.18.53.44.53.4,0,2.6-2.2,4.84-2.2,1.19,0,1.94.53,1.94,1.54,0,.79-.48,1.5-2.02,1.5-.57,0-1.63-.13-2.42-.13-1.58,0-2.77.79-2.77,3.17v7.22c0,2.73.48,3.26,2.73,3.34v.7h-8.45v-.7Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M148.71,15.68c0-3.04-1.14-3.79-2.99-3.79-4.05,0-2.38,4.53-4.97,4.53-.75,0-1.28-.4-1.28-1.19,0-1.63,3.96-4.4,7.35-4.4,2.95,0,4.97,1.5,4.97,5.28v9.64c0,1.01.62,1.28,1.1,1.28.66,0,1.1-.26,1.54-.66l.44.48c-.62.97-2.11,1.67-3.43,1.67s-2.64-.97-2.73-2.6c-2.07,1.89-4.09,2.6-5.77,2.6-2.51,0-4.27-1.5-4.27-3.43,0-3.04,2.51-3.92,7.66-5.24l2.38-.62v-3.56ZM148.71,19.95l-1.76.44c-3.3.84-5.02,1.85-5.02,3.7,0,1.63.92,2.95,2.91,2.95,1.41,0,2.68-.88,3.87-1.8v-5.28Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M165.13,12.68h-3.08c-1.8,0-2.42.44-2.42,3.17v8.49c0,1.94,1.19,2.68,2.82,2.68,1.23,0,2.24-.22,3.08-.35v.88c-1.23.44-2.46.97-4.45.97-3.65,0-4.53-2.29-4.53-4.4v-9.77c0-1.45-.09-1.58-.53-1.76-.35-.13-1.41-.18-1.41-.62,0-.31.4-.62.75-.97,2.95-2.99,3.34-3.61,3.79-3.61.26,0,.48.13.48.7v3.08h5.5v1.5Z"}),y.jsx("path",{fill:"var(--color-primary)",d:"M168.16,17.08c-.18.66-.31,1.41-.31,2.6,0,3.92,2.38,7.35,6.47,7.35,1.76,0,3.17-.62,5.11-1.94l.53.7c-1.98,1.58-3.92,2.99-6.78,2.99-5.24,0-8.41-4.49-8.41-8.36,0-5.55,3.87-9.33,8.49-9.33,3.7,0,6.6,3.04,6.6,5.77,0,.18-.13.22-.44.22h-11.27ZM176.79,16.03c-.18-2.38-1.72-4.05-3.96-4.05-2.55,0-3.96,2.07-4.45,4.05h8.41Z"})]}),y.jsxs("g",{children:[y.jsx("path",{fill:"var(--color-sunflower)",d:"M.2,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L7.28.28c-.17-.37-.62-.37-.79,0L.17,13.8c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M12.25,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L19.33.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"}),y.jsx("path",{fill:"var(--color-sunflower)",d:"M24.31,15.44l6.3,12.07c.18.34.59.34.77,0l6.3-12.07c.26-.5.27-1.12.03-1.63L31.39.28c-.17-.37-.62-.37-.79,0l-6.32,13.53c-.24.51-.23,1.14.03,1.63"})]})]})})})});aj.displayName="EngrateLogo";const sj=te("font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",{variants:{variant:{default:"text-primary",primary:"text-primary",secondary:"text-secondary"},size:{default:"text-xs",sm:"text-[10px]",lg:"text-sm"}},defaultVariants:{variant:"default",size:"default"}}),lj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"span";return y.jsx(a,{className:D(sj({variant:t,size:r,className:e})),ref:i,...o})});lj.displayName="Eyebrow";const cj=te("w-full font-sans",{variants:{variant:{default:"border-border border-t bg-white",filled:"bg-main border-border border-t",dark:"bg-primary text-white"},size:{sm:"px-4 py-6",default:"px-6 py-10",lg:"px-8 py-16"}},defaultVariants:{variant:"default",size:"default"}}),uj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"footer";return y.jsx(a,{ref:i,className:D(cj({variant:t,size:r,className:e})),...o})});uj.displayName="Footer";const dj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-4",e),...r})});dj.displayName="FooterContent";const fj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex flex-col gap-3",e),...r})});fj.displayName="FooterSection";const pj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"h3";return y.jsx(o,{ref:n,className:D("text-small font-medium",e),...r})});pj.displayName="FooterHeading";const vj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("text-small text-secondary flex flex-col gap-2",e),...r})});vj.displayName="FooterLinks";const mj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("border-border mt-8 flex flex-col items-center justify-between gap-4 border-t pt-8 sm:flex-row",e),...r})});mj.displayName="FooterBottom";const hj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"p";return y.jsx(o,{ref:n,className:D("text-small text-secondary",e),...r})});hj.displayName="FooterCopyright";const Rm=f.forwardRef(({className:e,variant:t="default",children:r,...n},o)=>r?y.jsx("p",{ref:o,className:D("text-descriptive font-sans text-sm",t==="default"?"text-tertiary":"text-error",e),...n,children:r}):null);Rm.displayName="FormMessage";var fQ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pQ=fQ.reduce((e,t)=>{const r=NS(`Primitive.${t}`),n=f.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),vQ="Label",gj=f.forwardRef((e,t)=>y.jsx(pQ.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));gj.displayName=vQ;var mQ=gj;const yj=te("text-tertiary font-sans font-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-50",{variants:{size:{default:"text-small",sm:"text-label"}},defaultVariants:{size:"default"}}),Dm=f.forwardRef(({className:e,size:t,...r},n)=>y.jsx(mQ,{ref:n,className:D(yj({size:t}),e),...r}));Dm.displayName="Label";const bj=f.forwardRef(({className:e,label:t,labelSize:r,hint:n,error:o,htmlFor:i,children:a,...s},l)=>{const c=i?`${i}-message`:void 0;return y.jsxs("div",{ref:l,className:D("flex flex-col gap-1.5",e),...s,children:[t&&y.jsx(Dm,{htmlFor:i,size:r,children:t}),a,(n||o)&&y.jsx(Rm,{id:c,variant:o?"error":"default",role:o?"alert":void 0,children:o||n})]})});bj.displayName="FormField";const hQ=te("grid",{variants:{cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"}},defaultVariants:{cols:1,gap:"md",align:"stretch",justify:"stretch"}}),gQ={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",12:"grid-cols-12"},yQ={none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},bQ={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},xQ={start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"};function yn(e,t,r){if(!e)return r?t[r]:"";if(typeof e=="object"){const n=[];return e.base!==void 0?n.push(t[e.base]):r&&n.push(t[r]),e.sm!==void 0&&n.push(`sm:${t[e.sm].split(":").pop()}`),e.md!==void 0&&n.push(`md:${t[e.md].split(":").pop()}`),e.lg!==void 0&&n.push(`lg:${t[e.lg].split(":").pop()}`),e.xl!==void 0&&n.push(`xl:${t[e.xl].split(":").pop()}`),e["2xl"]!==void 0&&n.push(`2xl:${t[e["2xl"]].split(":").pop()}`),n.join(" ")}return t[e]}const xj=f.forwardRef(({className:e,cols:t,gap:r,align:n,justify:o,as:i="div",asChild:a=!1,...s},l)=>{const c=a?Ee:i,u=yn(t,gQ,1),d=yn(r,yQ,"md"),p=yn(n,bQ,"stretch"),v=yn(o,xQ,"stretch");return y.jsx(c,{className:D("grid",u,d,p,v,e),ref:l,...s})});xj.displayName="Grid";const wQ=te("",{variants:{colSpan:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},rowSpan:{1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},colStart:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"}},defaultVariants:{}}),SQ={1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12",full:"col-span-full"},PQ={1:"row-span-1",2:"row-span-2",3:"row-span-3",4:"row-span-4",5:"row-span-5",6:"row-span-6",full:"row-span-full"},EQ={1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12",auto:"col-start-auto"},wj=f.forwardRef(({className:e,colSpan:t,rowSpan:r,colStart:n,as:o="div",asChild:i=!1,...a},s)=>{const l=i?Ee:o,c=yn(t,SQ),u=yn(r,PQ),d=yn(n,EQ);return y.jsx(l,{className:D(c,u,d,e),ref:s,...a})});wj.displayName="GridItem";const Sj=te("flex w-full items-center justify-between font-sans",{variants:{variant:{default:"border-border border-b bg-white",transparent:"bg-transparent",filled:"bg-main border-border border-b"},size:{sm:"h-12 px-4",default:"h-16 px-6",lg:"h-20 px-8"},sticky:{true:"sticky top-0 z-50",false:""}},defaultVariants:{variant:"default",size:"default",sticky:!1}}),Pj=f.forwardRef(({className:e,variant:t,size:r,sticky:n,asChild:o=!1,...i},a)=>{const s=o?Ee:"header";return y.jsx(s,{ref:a,className:D(Sj({variant:t,size:r,sticky:n,className:e})),...i})});Pj.displayName="Header";const Ej=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center",e),...r})});Ej.displayName="HeaderLogo";const Oj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"nav";return y.jsx(o,{ref:n,className:D("flex items-center gap-6",e),...r})});Oj.displayName="HeaderNav";const Cj=f.forwardRef(({className:e,asChild:t=!1,...r},n)=>{const o=t?Ee:"div";return y.jsx(o,{ref:n,className:D("flex shrink-0 items-center gap-3",e),...r})});Cj.displayName="HeaderActions";const Aj=te("text-primary font-normal",{variants:{level:{hero:"font-display text-hero",h1:"text-h1 font-sans font-normal",h2:"text-h2 font-sans font-normal",h3:"text-h3 font-sans font-normal",h4:"text-h4 font-sans font-normal"}},defaultVariants:{level:"h1"}}),OQ={hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4"},_j=f.forwardRef(({className:e,level:t="h1",as:r,asChild:n=!1,...o},i)=>{const a=r??OQ[t??"h1"],s=n?Ee:a;return y.jsx(s,{className:D(Aj({level:t,className:e})),ref:i,...o})});_j.displayName="Heading";const Tj=te("bg-card text-body text-primary placeholder:text-tertiary flex h-10 w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"}},defaultVariants:{variant:"default"}}),jj=f.forwardRef(({className:e,variant:t,type:r="text",...n},o)=>y.jsx("input",{type:r,className:D(Tj({variant:t}),e),ref:o,...n}));jj.displayName="Input";const Nj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Fa=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Mj=f.forwardRef(({className:e,size:t,data:r,series:n,showGrid:o=!0,showLegend:i=!0,showTooltip:a=!0,xAxisLabel:s,yAxisLabel:l,strokeWidth:c=2,curved:u=!0,showDots:d=!0,...p},v)=>{const g=f.useMemo(()=>{if(n)return n;const m=r[0];return m?Object.keys(m).filter(b=>b!=="label"&&typeof m[b]=="number").map((b,x)=>({key:b,name:b.charAt(0).toUpperCase()+b.slice(1),color:Fa[x%Fa.length]})):[]},[r,n]);return y.jsx("div",{ref:v,className:D(Nj({size:t,className:e})),role:"img",...p,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(tY,{data:r,margin:{top:5,right:30,left:l?20:0,bottom:s?20:5},children:[o&&y.jsx(cm,{strokeDasharray:"3 3",stroke:"var(--color-border)",vertical:!1}),y.jsx(Gs,{dataKey:"label",stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:s?{value:s,position:"insideBottom",offset:-10,fill:"var(--color-secondary)",fontSize:12}:void 0}),y.jsx(qs,{stroke:"var(--color-secondary)",fontSize:12,tickLine:!1,axisLine:{stroke:"var(--color-primary)"},label:l?{value:l,angle:-90,position:"insideLeft",fill:"var(--color-secondary)",fontSize:12}:void 0}),a&&y.jsx(qv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"}}),i&&y.jsx(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),g.map((m,h)=>y.jsx(jC,{type:u?"monotone":"linear",dataKey:m.key,name:m.name,stroke:m.color||Fa[h%Fa.length],strokeWidth:c,dot:d,activeDot:d?{r:6}:!1},m.key))]})})})});Mj.displayName="LineChart";const Ij=te("focus-visible:ring-sunflower inline-flex items-center font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{variant:{default:"text-primary hover:text-secondary underline underline-offset-4",muted:"text-secondary hover:text-primary underline underline-offset-4",nav:"text-primary hover:text-secondary no-underline hover:underline hover:underline-offset-4"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),kj=f.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...o},i)=>{const a=n?Ee:"a";return y.jsx(a,{className:D(Ij({variant:t,size:r,className:e})),ref:i,...o})});kj.displayName="Link";const CQ=uS,AQ=dS,Rj=fS,_Q=vl,$m=f.forwardRef(({className:e,...t},r)=>y.jsx(pS,{ref:r,className:D("fixed inset-0 z-50 bg-black/50","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-200",e),...t}));$m.displayName="ModalOverlay";const Dj=te(["fixed top-1/2 left-1/2 z-50 -translate-x-1/2 -translate-y-1/2","bg-main grid w-full gap-4 p-6 shadow-lg","max-h-[85vh] overflow-y-auto","border-border rounded-lg border","focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-200"],{variants:{size:{sm:"max-w-[400px]",default:"max-w-[500px]",lg:"max-w-[640px]",full:"max-w-[95vw]"}},defaultVariants:{size:"default"}}),$j=f.forwardRef(({className:e,children:t,size:r,showCloseButton:n=!0,...o},i)=>y.jsxs(Rj,{children:[y.jsx($m,{}),y.jsxs(vS,{ref:i,className:D(Dj({size:r}),e),...o,children:[t,n&&y.jsxs(vl,{className:D("absolute top-4 right-4 rounded-sm opacity-70","ring-offset-main transition-opacity","hover:opacity-100","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none","data-[state=open]:bg-alt data-[state=open]:text-secondary"),children:[y.jsx(m0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$j.displayName="ModalContent";const Lj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col space-y-1.5 text-center sm:text-left",e),...t}));Lj.displayName="ModalHeader";const zj=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t}));zj.displayName="ModalFooter";const Fj=f.forwardRef(({className:e,...t},r)=>y.jsx(mS,{ref:r,className:D("text-primary text-lg leading-none tracking-tight",e),...t}));Fj.displayName="ModalTitle";const Bj=f.forwardRef(({className:e,...t},r)=>y.jsx(hS,{ref:r,className:D("text-secondary text-sm",e),...t}));Bj.displayName="ModalDescription";const Vj=te("flex items-center justify-center gap-1 font-sans",{variants:{size:{sm:"text-small",default:"text-body",lg:"text-lead"}},defaultVariants:{size:"default"}}),Wj=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-primary hover:bg-alt active:bg-contrast rounded-full",active:"bg-sunflower text-primary hover:bg-sunflower-hover rounded-full",ellipsis:"text-tertiary cursor-default"},size:{sm:"text-small h-7 w-7",default:"text-small h-9 w-9",lg:"text-body h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),Kj=f.forwardRef(({className:e,size:t,page:r,totalPages:n,onPageChange:o,siblingCount:i=1,...a},s)=>{const l=f.useMemo(()=>{const d=i*2+3+2;if(n<=d)return Array.from({length:n},(h,b)=>b+1);const p=Math.max(r-i,1),v=Math.min(r+i,n),g=p>2,m=v<n-1;if(!g&&m){const h=3+2*i;return[...Array.from({length:h},(x,w)=>w+1),"ellipsis-right",n]}if(g&&!m){const h=3+2*i;return[1,"ellipsis-left",...Array.from({length:h},(x,w)=>n-h+w+1)]}return g&&m?[1,"ellipsis-left",...Array.from({length:i*2+1},(b,x)=>p+x),"ellipsis-right",n]:Array.from({length:n},(h,b)=>b+1)},[r,n,i]),c=u=>{u>=1&&u<=n&&u!==r&&o?.(u)};return y.jsxs("nav",{ref:s,role:"navigation","aria-label":"Pagination",className:D(Vj({size:t,className:e})),...a,children:[y.jsx(ro,{size:t,onClick:()=>c(r-1),disabled:r===1,"aria-label":"Go to previous page",children:y.jsx(ll,{className:"h-4 w-4"})}),l.map(u=>typeof u=="string"?y.jsx(ro,{size:t,variant:"ellipsis",disabled:!0,"aria-hidden":!0,children:y.jsx(v0,{className:"h-4 w-4"})},u):y.jsx(ro,{size:t,variant:u===r?"active":"default",onClick:()=>c(u),"aria-label":`Go to page ${u}`,"aria-current":u===r?"page":void 0,children:u},u)),y.jsx(ro,{size:t,onClick:()=>c(r+1),disabled:r===n,"aria-label":"Go to next page",children:y.jsx(cl,{className:"h-4 w-4"})})]})});Kj.displayName="Pagination";const ro=f.forwardRef(({className:e,variant:t,size:r,...n},o)=>y.jsx("button",{ref:o,type:"button",className:D(Wj({variant:t,size:r,className:e})),...n}));ro.displayName="PaginationItem";const Uj=f.createContext(null);function TQ(){const e=f.useContext(Uj);if(!e)throw new Error("PaginationDot must be used within a PaginationDots component");return e}const Hj=te("inline-flex items-center justify-center font-sans",{variants:{size:{sm:"gap-1.5",default:"gap-2",lg:"gap-2.5"}},defaultVariants:{size:"default"}}),Gj=f.forwardRef(({className:e,value:t,onValueChange:r,size:n="default",children:o,...i},a)=>y.jsx(Uj.Provider,{value:{value:t,onValueChange:r,size:n??"default"},children:y.jsx("div",{ref:a,role:"group","aria-label":"Content navigation",className:D(Hj({size:n}),e),...i,children:o})}));Gj.displayName="PaginationDots";const qj=te("focus-visible:ring-sunflower rounded-full transition-all duration-300 ease-out focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",{variants:{size:{sm:"h-1.5",default:"h-2",lg:"h-2.5"},active:{true:"bg-sunflower",false:"bg-border hover:bg-quaternary"}},compoundVariants:[{size:"sm",active:!1,class:"w-1.5"},{size:"default",active:!1,class:"w-2"},{size:"lg",active:!1,class:"w-2.5"},{size:"sm",active:!0,class:"w-4"},{size:"default",active:!0,class:"w-6"},{size:"lg",active:!0,class:"w-8"}],defaultVariants:{size:"default",active:!1}}),Yj=f.forwardRef(({className:e,index:t,...r},n)=>{const{value:o,onValueChange:i,size:a}=TQ(),s=t===o;return y.jsx("button",{ref:n,type:"button","aria-label":`Go to slide ${t+1}`,"aria-current":s?"true":void 0,onClick:()=>i?.(t),className:D(qj({size:a,active:s}),e),...r})});Yj.displayName="PaginationDot";const Xj=te("text-small font-sans tracking-[-0.05em]",{variants:{size:{sm:"h-48",default:"h-72",lg:"h-96"}},defaultVariants:{size:"default"}}),Hw=["var(--color-sunflower)","var(--color-electric-blue)","var(--color-cool-purple)","var(--color-deep-blue)","var(--color-warm-purple)"],Zj=f.forwardRef(({className:e,size:t,data:r,showLegend:n=!0,showTooltip:o=!0,innerRadius:i=0,outerRadius:a="80%",paddingAngle:s=0,showLabels:l=!1,startAngle:c=90,endAngle:u=-270,...d},p)=>{const v=f.useMemo(()=>r.reduce((m,h)=>m+h.value,0),[r]),g=f.useCallback(m=>{const{cx:h=0,cy:b=0,midAngle:x=0,percent:w=0}=m,S=m.innerRadius??0,E=m.outerRadius??0,P=Math.PI/180,O=S+(E-S)*.5,C=h+O*Math.cos(-x*P),N=b+O*Math.sin(-x*P);return y.jsx("text",{x:C,y:N,fill:"var(--color-white)",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:"12px",fontFamily:"var(--font-sans)",fontWeight:500},children:`${(w*100).toFixed(0)}%`})},[]);return y.jsx("div",{ref:p,className:D(Xj({size:t,className:e})),role:"img",...d,children:y.jsx(jp,{width:"100%",height:"100%",minWidth:100,minHeight:100,children:y.jsxs(mY,{children:[o&&y.jsx(qv,{contentStyle:{backgroundColor:"var(--color-white)",border:"1px solid var(--color-border)",borderRadius:"4px",fontFamily:"var(--font-sans)",fontSize:"14px",color:"var(--color-primary)"},labelStyle:{color:"var(--color-secondary)",fontWeight:400},itemStyle:{color:"var(--color-secondary)"},formatter:(m,h)=>[`${m} (${v>0?(Number(m)/v*100).toFixed(1):0}%)`,h]}),n&&y.jsx(Dl,{wrapperStyle:{fontFamily:"var(--font-sans)",fontSize:"14px"},formatter:m=>y.jsx("span",{style:{color:"var(--color-secondary)"},children:m})}),y.jsx(pC,{data:r,cx:"50%",cy:"50%",innerRadius:i,outerRadius:a,paddingAngle:s,dataKey:"value",nameKey:"name",startAngle:c,endAngle:u,label:l?g:!1,labelLine:!1,children:r.map((m,h)=>y.jsx(Hi,{fill:m.color||Hw[h%Hw.length]},`cell-${m.name}-${h}`))})]})})})});Zj.displayName="PieChart";const Jj=te("bg-border relative w-full overflow-hidden rounded-full",{variants:{size:{sm:"h-1",default:"h-2",lg:"h-3",xl:"h-4"}},defaultVariants:{size:"default"}}),Qj=te("h-full transition-all duration-300 ease-out",{variants:{variant:{default:"bg-sunflower",muted:"bg-secondary",success:"bg-electric-blue"},animated:{true:"animate-pulse",false:""}},defaultVariants:{variant:"default",animated:!1}}),eN=f.forwardRef(({className:e,value:t=0,max:r=100,size:n,variant:o,animated:i,label:a="Progress",indeterminate:s=!1,...l},c)=>{const u=Math.min(Math.max(t/r*100,0),100);return y.jsx("div",{ref:c,role:"progressbar","aria-valuenow":s?void 0:t,"aria-valuemin":0,"aria-valuemax":r,"aria-label":a,className:D(Jj({size:n,className:e})),...l,children:y.jsx("div",{className:D(Qj({variant:o,animated:i}),s&&"animate-progress-indeterminate"),style:{width:s?"50%":`${u}%`}})})});eN.displayName="ProgressIndicator";var Lm="Radio",[jQ,tN]=Be(Lm),[NQ,MQ]=jQ(Lm),rN=f.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...u}=e,[d,p]=f.useState(null),v=re(t,h=>p(h)),g=f.useRef(!1),m=d?c||!!d.closest("form"):!0;return y.jsxs(NQ,{scope:r,checked:o,disabled:a,children:[y.jsx(Q.button,{type:"button",role:"radio","aria-checked":o,"data-state":aN(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:v,onClick:U(e.onClick,h=>{o||l?.(),m&&(g.current=h.isPropagationStopped(),g.current||h.stopPropagation())})}),m&&y.jsx(iN,{control:d,bubbles:!g.current,name:n,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});rN.displayName=Lm;var nN="RadioIndicator",oN=f.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=MQ(nN,r);return y.jsx(lt,{present:n||i.checked,children:y.jsx(Q.span,{"data-state":aN(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});oN.displayName=nN;var IQ="RadioBubbleInput",iN=f.forwardRef(({__scopeRadio:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=qi(r),c=Yi(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx(Q.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});iN.displayName=IQ;function aN(e){return e?"checked":"unchecked"}var kQ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],xc="RadioGroup",[RQ]=Be(xc,[mc,tN]),sN=mc(),lN=tN(),[DQ,$Q]=RQ(xc),cN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...p}=e,v=sN(r),g=xo(c),[m,h]=nt({prop:i,defaultProp:o??null,onChange:d,caller:xc});return y.jsx(DQ,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:h,children:y.jsx(BA,{asChild:!0,...v,orientation:l,dir:g,loop:u,children:y.jsx(Q.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:g,...p,ref:t})})})});cN.displayName=xc;var uN="RadioGroupItem",dN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=$Q(uN,r),a=i.disabled||n,s=sN(r),l=lN(r),c=f.useRef(null),u=re(t,c),d=i.value===o.value,p=f.useRef(!1);return f.useEffect(()=>{const v=m=>{kQ.includes(m.key)&&(p.current=!0)},g=()=>p.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),y.jsx(VA,{asChild:!0,...s,focusable:!a,active:d,children:y.jsx(rN,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:U(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:U(o.onFocus,()=>{p.current&&c.current?.click()})})})});dN.displayName=uN;var LQ="RadioGroupIndicator",fN=f.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=lN(r);return y.jsx(oN,{...o,...n,ref:t})});fN.displayName=LQ;var zQ=cN,FQ=dN,BQ=fN;const pN=f.forwardRef(({className:e,...t},r)=>y.jsx(zQ,{className:D("grid gap-2",e),...t,ref:r}));pN.displayName="RadioGroup";const vN=f.forwardRef(({className:e,...t},r)=>y.jsx(FQ,{ref:r,className:D("border-border bg-card aspect-square h-5 w-5 rounded-full border transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:border-sunflower",e),...t,children:y.jsx(BQ,{className:"flex items-center justify-center",children:y.jsx("span",{className:"bg-sunflower h-2.5 w-2.5 rounded-full"})})}));vN.displayName="RadioGroupItem";function nl(e,[t,r]){return Math.min(r,Math.max(t,e))}function VQ(e){const t=WQ(e),r=f.forwardRef((n,o)=>{const{children:i,...a}=n,s=f.Children.toArray(i),l=s.find(UQ);if(l){const c=l.props.children,u=s.map(d=>d===l?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...a,ref:o,children:f.isValidElement(c)?f.cloneElement(c,void 0,u):null})}return y.jsx(t,{...a,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}function WQ(e){const t=f.forwardRef((r,n)=>{const{children:o,...i}=r;if(f.isValidElement(o)){const a=GQ(o),s=HQ(i,o.props);return o.type!==f.Fragment&&(s.ref=n?cr(n,a):a),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var KQ=Symbol("radix.slottable");function UQ(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===KQ}function HQ(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function GQ(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mN=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"}),qQ="VisuallyHidden",wc=f.forwardRef((e,t)=>y.jsx(Q.span,{...e,ref:t,style:{...mN,...e.style}}));wc.displayName=qQ;var YQ=wc,XQ=[" ","Enter","ArrowUp","ArrowDown"],ZQ=[" ","Enter"],kn="Select",[Sc,Pc,JQ]=bo(kn),[Ro]=Be(kn,[JQ,rn]),Ec=rn(),[QQ,an]=Ro(kn),[eee,tee]=Ro(kn),hN=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:p,required:v,form:g}=e,m=Ec(t),[h,b]=f.useState(null),[x,w]=f.useState(null),[S,E]=f.useState(!1),P=xo(c),[O,C]=nt({prop:n,defaultProp:o??!1,onChange:i,caller:kn}),[N,$]=nt({prop:a,defaultProp:s,onChange:l,caller:kn}),I=f.useRef(null),_=h?g||!!h.closest("form"):!0,[j,R]=f.useState(new Set),V=Array.from(j).map(F=>F.props.value).join(";");return y.jsx(Zi,{...m,children:y.jsxs(QQ,{required:v,scope:t,trigger:h,onTriggerChange:b,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:E,contentId:vt(),value:N,onValueChange:$,open:O,onOpenChange:C,dir:P,triggerPointerDownPosRef:I,disabled:p,children:[y.jsx(Sc.Provider,{scope:t,children:y.jsx(eee,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(F=>{R(W=>new Set(W).add(F))},[]),onNativeOptionRemove:f.useCallback(F=>{R(W=>{const T=new Set(W);return T.delete(F),T})},[]),children:r})}),_?y.jsxs(BN,{"aria-hidden":!0,required:v,tabIndex:-1,name:u,autoComplete:d,value:N,onChange:F=>$(F.target.value),disabled:p,form:g,children:[N===void 0?y.jsx("option",{value:""}):null,Array.from(j)]},V):null]})})};hN.displayName=kn;var gN="SelectTrigger",yN=f.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Ec(r),a=an(gN,r),s=a.disabled||n,l=re(t,a.onTriggerChange),c=Pc(r),u=f.useRef("touch"),[d,p,v]=WN(m=>{const h=c().filter(w=>!w.disabled),b=h.find(w=>w.value===a.value),x=KN(h,m,b);x!==void 0&&a.onValueChange(x.value)}),g=m=>{s||(a.onOpenChange(!0),v()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return y.jsx(Ji,{asChild:!0,...i,children:y.jsx(Q.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":VN(a.value)?"":void 0,...o,ref:l,onClick:U(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&g(m)}),onPointerDown:U(o.onPointerDown,m=>{u.current=m.pointerType;const h=m.target;h.hasPointerCapture(m.pointerId)&&h.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(g(m),m.preventDefault())}),onKeyDown:U(o.onKeyDown,m=>{const h=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&p(m.key),!(h&&m.key===" ")&&XQ.includes(m.key)&&(g(),m.preventDefault())})})})});yN.displayName=gN;var bN="SelectValue",xN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a="",...s}=e,l=an(bN,r),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=re(t,l.onValueNodeChange);return Ye(()=>{c(u)},[c,u]),y.jsx(Q.span,{...s,ref:d,style:{pointerEvents:"none"},children:VN(l.value)?y.jsx(y.Fragment,{children:a}):i})});xN.displayName=bN;var ree="SelectIcon",wN=f.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return y.jsx(Q.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});wN.displayName=ree;var nee="SelectPortal",SN=e=>y.jsx(Ln,{asChild:!0,...e});SN.displayName=nee;var Rn="SelectContent",PN=f.forwardRef((e,t)=>{const r=an(Rn,e.__scopeSelect),[n,o]=f.useState();if(Ye(()=>{o(new DocumentFragment)},[]),!r.open){const i=n;return i?wi.createPortal(y.jsx(EN,{scope:e.__scopeSelect,children:y.jsx(Sc.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),i):null}return y.jsx(ON,{...e,ref:t})});PN.displayName=Rn;var zt=10,[EN,sn]=Ro(Rn),oee="SelectContentImpl",iee=VQ("SelectContent.RemoveScroll"),ON=f.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h,...b}=e,x=an(Rn,r),[w,S]=f.useState(null),[E,P]=f.useState(null),O=re(t,K=>S(K)),[C,N]=f.useState(null),[$,I]=f.useState(null),_=Pc(r),[j,R]=f.useState(!1),V=f.useRef(!1);f.useEffect(()=>{if(w)return fl(w)},[w]),ul();const F=f.useCallback(K=>{const[ue,...L]=_().map(z=>z.ref.current),[H]=L.slice(-1),B=document.activeElement;for(const z of K)if(z===B||(z?.scrollIntoView({block:"nearest"}),z===ue&&E&&(E.scrollTop=0),z===H&&E&&(E.scrollTop=E.scrollHeight),z?.focus(),document.activeElement!==B))return},[_,E]),W=f.useCallback(()=>F([C,w]),[F,C,w]);f.useEffect(()=>{j&&W()},[j,W]);const{onOpenChange:T,triggerPointerDownPosRef:k}=x;f.useEffect(()=>{if(w){let K={x:0,y:0};const ue=H=>{K={x:Math.abs(Math.round(H.pageX)-(k.current?.x??0)),y:Math.abs(Math.round(H.pageY)-(k.current?.y??0))}},L=H=>{K.x<=10&&K.y<=10?H.preventDefault():w.contains(H.target)||T(!1),document.removeEventListener("pointermove",ue),k.current=null};return k.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",L,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",L,{capture:!0})}}},[w,T,k]),f.useEffect(()=>{const K=()=>T(!1);return window.addEventListener("blur",K),window.addEventListener("resize",K),()=>{window.removeEventListener("blur",K),window.removeEventListener("resize",K)}},[T]);const[G,ee]=WN(K=>{const ue=_().filter(B=>!B.disabled),L=ue.find(B=>B.ref.current===document.activeElement),H=KN(ue,K,L);H&&setTimeout(()=>H.ref.current.focus())}),ne=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&(N(K),H&&(V.current=!0))},[x.value]),ie=f.useCallback(()=>w?.focus(),[w]),oe=f.useCallback((K,ue,L)=>{const H=!V.current&&!L;(x.value!==void 0&&x.value===ue||H)&&I(K)},[x.value]),le=n==="popper"?$f:CN,Oe=le===$f?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:g,hideWhenDetached:m,avoidCollisions:h}:{};return y.jsx(EN,{scope:r,content:w,viewport:E,onViewportChange:P,itemRefCallback:ne,selectedItem:C,onItemLeave:ie,itemTextRefCallback:oe,focusSelectedItem:W,selectedItemText:$,position:n,isPositioned:j,searchRef:G,children:y.jsx(Pi,{as:iee,allowPinchZoom:!0,children:y.jsx(Si,{asChild:!0,trapped:x.open,onMountAutoFocus:K=>{K.preventDefault()},onUnmountAutoFocus:U(o,K=>{x.trigger?.focus({preventScroll:!0}),K.preventDefault()}),children:y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:K=>K.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(le,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:K=>K.preventDefault(),...b,...Oe,onPlaced:()=>R(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:U(b.onKeyDown,K=>{const ue=K.ctrlKey||K.altKey||K.metaKey;if(K.key==="Tab"&&K.preventDefault(),!ue&&K.key.length===1&&ee(K.key),["ArrowUp","ArrowDown","Home","End"].includes(K.key)){let H=_().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(K.key)&&(H=H.slice().reverse()),["ArrowUp","ArrowDown"].includes(K.key)){const B=K.target,z=H.indexOf(B);H=H.slice(z+1)}setTimeout(()=>F(H)),K.preventDefault()}})})})})})})});ON.displayName=oee;var aee="SelectItemAlignedPosition",CN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,i=an(Rn,r),a=sn(Rn,r),[s,l]=f.useState(null),[c,u]=f.useState(null),d=re(t,O=>u(O)),p=Pc(r),v=f.useRef(!1),g=f.useRef(!0),{viewport:m,selectedItem:h,selectedItemText:b,focusSelectedItem:x}=a,w=f.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&h&&b){const O=i.trigger.getBoundingClientRect(),C=c.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),$=b.getBoundingClientRect();if(i.dir!=="rtl"){const B=$.left-C.left,z=N.left-B,fe=O.left-z,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-zt,Lt=nl(z,[zt,Math.max(zt,et-Qe)]);s.style.minWidth=se+"px",s.style.left=Lt+"px"}else{const B=C.right-$.right,z=window.innerWidth-N.right-B,fe=window.innerWidth-O.right-z,se=O.width+fe,Qe=Math.max(se,C.width),et=window.innerWidth-zt,Lt=nl(z,[zt,Math.max(zt,et-Qe)]);s.style.minWidth=se+"px",s.style.right=Lt+"px"}const I=p(),_=window.innerHeight-zt*2,j=m.scrollHeight,R=window.getComputedStyle(c),V=parseInt(R.borderTopWidth,10),F=parseInt(R.paddingTop,10),W=parseInt(R.borderBottomWidth,10),T=parseInt(R.paddingBottom,10),k=V+F+j+T+W,G=Math.min(h.offsetHeight*5,k),ee=window.getComputedStyle(m),ne=parseInt(ee.paddingTop,10),ie=parseInt(ee.paddingBottom,10),oe=O.top+O.height/2-zt,le=_-oe,Oe=h.offsetHeight/2,K=h.offsetTop+Oe,ue=V+F+K,L=k-ue;if(ue<=oe){const B=I.length>0&&h===I[I.length-1].ref.current;s.style.bottom="0px";const z=c.clientHeight-m.offsetTop-m.offsetHeight,fe=Math.max(le,Oe+(B?ie:0)+z+W),se=ue+fe;s.style.height=se+"px"}else{const B=I.length>0&&h===I[0].ref.current;s.style.top="0px";const fe=Math.max(oe,V+m.offsetTop+(B?ne:0)+Oe)+L;s.style.height=fe+"px",m.scrollTop=ue-oe+m.offsetTop}s.style.margin=`${zt}px 0`,s.style.minHeight=G+"px",s.style.maxHeight=_+"px",n?.(),requestAnimationFrame(()=>v.current=!0)}},[p,i.trigger,i.valueNode,s,c,m,h,b,i.dir,n]);Ye(()=>w(),[w]);const[S,E]=f.useState();Ye(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const P=f.useCallback(O=>{O&&g.current===!0&&(w(),x?.(),g.current=!1)},[w,x]);return y.jsx(lee,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:P,children:y.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:y.jsx(Q.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});CN.displayName=aee;var see="SelectPopperPosition",$f=f.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=zt,...i}=e,a=Ec(r);return y.jsx(pc,{...a,...i,ref:t,align:n,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)"}})});$f.displayName=see;var[lee,zm]=Ro(Rn,{}),Lf="SelectViewport",AN=f.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,i=sn(Lf,r),a=zm(Lf,r),s=re(t,i.onViewportChange),l=f.useRef(0);return y.jsxs(y.Fragment,{children:[y.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:n}),y.jsx(Sc.Slot,{scope:r,children:y.jsx(Q.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:U(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p?.current&&d){const v=Math.abs(l.current-u.scrollTop);if(v>0){const g=window.innerHeight-zt*2,m=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),b=Math.max(m,h);if(b<g){const x=b+v,w=Math.min(g,x),S=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});AN.displayName=Lf;var _N="SelectGroup",[cee,uee]=Ro(_N),TN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=vt();return y.jsx(cee,{scope:r,id:o,children:y.jsx(Q.div,{role:"group","aria-labelledby":o,...n,ref:t})})});TN.displayName=_N;var jN="SelectLabel",NN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=uee(jN,r);return y.jsx(Q.div,{id:o.id,...n,ref:t})});NN.displayName=jN;var ol="SelectItem",[dee,MN]=Ro(ol),IN=f.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=an(ol,r),l=sn(ol,r),c=s.value===n,[u,d]=f.useState(i??""),[p,v]=f.useState(!1),g=re(t,x=>l.itemRefCallback?.(x,n,o)),m=vt(),h=f.useRef("touch"),b=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")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 y.jsx(dee,{scope:r,value:n,disabled:o,textId:m,isSelected:c,onItemTextChange:f.useCallback(x=>{d(w=>w||(x?.textContent??"").trim())},[]),children:y.jsx(Sc.ItemSlot,{scope:r,value:n,disabled:o,textValue:u,children:y.jsx(Q.div,{role:"option","aria-labelledby":m,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:g,onFocus:U(a.onFocus,()=>v(!0)),onBlur:U(a.onBlur,()=>v(!1)),onClick:U(a.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:U(a.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:U(a.onPointerDown,x=>{h.current=x.pointerType}),onPointerMove:U(a.onPointerMove,x=>{h.current=x.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:U(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:U(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(ZQ.includes(x.key)&&b(),x.key===" "&&x.preventDefault())})})})})});IN.displayName=ol;var Jo="SelectItemText",kN=f.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=an(Jo,r),s=sn(Jo,r),l=MN(Jo,r),c=tee(Jo,r),[u,d]=f.useState(null),p=re(t,b=>d(b),l.onItemTextChange,b=>s.itemTextRefCallback?.(b,l.value,l.disabled)),v=u?.textContent,g=f.useMemo(()=>y.jsx("option",{value:l.value,disabled:l.disabled,children:v},l.value),[l.disabled,l.value,v]),{onNativeOptionAdd:m,onNativeOptionRemove:h}=c;return Ye(()=>(m(g),()=>h(g)),[m,h,g]),y.jsxs(y.Fragment,{children:[y.jsx(Q.span,{id:l.textId,...i,ref:p}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?wi.createPortal(i.children,a.valueNode):null]})});kN.displayName=Jo;var RN="SelectItemIndicator",DN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return MN(RN,r).isSelected?y.jsx(Q.span,{"aria-hidden":!0,...n,ref:t}):null});DN.displayName=RN;var zf="SelectScrollUpButton",$N=f.forwardRef((e,t)=>{const r=sn(zf,e.__scopeSelect),n=zm(zf,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(zN,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});$N.displayName=zf;var Ff="SelectScrollDownButton",LN=f.forwardRef((e,t)=>{const r=sn(Ff,e.__scopeSelect),n=zm(Ff,e.__scopeSelect),[o,i]=f.useState(!1),a=re(t,n.onScrollButtonChange);return Ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),o?y.jsx(zN,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});LN.displayName=Ff;var zN=f.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=sn("SelectScrollButton",r),a=f.useRef(null),s=Pc(r),l=f.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return f.useEffect(()=>()=>l(),[l]),Ye(()=>{s().find(u=>u.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[s]),y.jsx(Q.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:U(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(n,50))}),onPointerMove:U(o.onPointerMove,()=>{i.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:U(o.onPointerLeave,()=>{l()})})}),fee="SelectSeparator",FN=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return y.jsx(Q.div,{"aria-hidden":!0,...n,ref:t})});FN.displayName=fee;var Bf="SelectArrow",pee=f.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ec(r),i=an(Bf,r),a=sn(Bf,r);return i.open&&a.position==="popper"?y.jsx(vc,{...o,...n,ref:t}):null});pee.displayName=Bf;var vee="SelectBubbleInput",BN=f.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(n,o),a=qi(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.select,{...r,style:{...mN,...r.style},ref:i,defaultValue:t})});BN.displayName=vee;function VN(e){return e===""||e===void 0}function WN(e){const t=st(e),r=f.useRef(""),n=f.useRef(0),o=f.useCallback(a=>{const s=r.current+a;t(s),(function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=f.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function KN(e,t,r){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=mee(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==r));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function mee(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var hee=hN,gee=yN,yee=xN,bee=wN,xee=SN,wee=PN,See=AN,Pee=TN,Eee=NN,Oee=IN,Cee=kN,Aee=DN,_ee=$N,Tee=LN,jee=FN;const Nee=hee,Mee=Pee,Iee=yee,UN=f.forwardRef(({className:e,children:t,variant:r="default",...n},o)=>y.jsxs(gee,{ref:o,className:D("bg-card text-body text-primary flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors","placeholder:text-tertiary","focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","[&>span]:line-clamp-1",r==="default"?"border-border focus-visible:ring-sunflower":"border-error focus-visible:ring-error",e),...n,children:[t,y.jsx(bee,{asChild:!0,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 opacity-50",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})})]}));UN.displayName="SelectTrigger";const Fm=f.forwardRef(({className:e,...t},r)=>y.jsx(_ee,{ref:r,className:D("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m18 15-6-6-6 6"})})}));Fm.displayName="SelectScrollUpButton";const Bm=f.forwardRef(({className:e,...t},r)=>y.jsx(Tee,{ref:r,className:D("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("path",{d:"m6 9 6 6 6-6"})})}));Bm.displayName="SelectScrollDownButton";const HN=f.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>y.jsx(xee,{children:y.jsxs(wee,{ref:o,className:D("border-border bg-card text-primary relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border font-sans shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[y.jsx(Fm,{}),y.jsx(See,{className:D("p-1",r==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),y.jsx(Bm,{})]})}));HN.displayName="SelectContent";const GN=f.forwardRef(({className:e,...t},r)=>y.jsx(Eee,{ref:r,className:D("text-small text-tertiary py-1.5 pr-2 pl-8 font-normal",e),...t}));GN.displayName="SelectLabel";const qN=f.forwardRef(({className:e,children:t,...r},n)=>y.jsxs(Oee,{ref:n,className:D("text-body relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 outline-none select-none","focus:bg-vanilla focus:text-primary","data-disabled:pointer-events-none data-disabled:opacity-50",e),...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Aee,{children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:y.jsx("polyline",{points:"20 6 9 17 4 12"})})})}),y.jsx(Cee,{children:t})]}));qN.displayName="SelectItem";const YN=f.forwardRef(({className:e,...t},r)=>y.jsx(jee,{ref:r,className:D("bg-border -mx-1 my-1 h-px",e),...t}));YN.displayName="SelectSeparator";const XN=f.createContext(null);function Oc(){const e=f.useContext(XN);if(!e)throw new Error("Sidebar components must be used within a Sidebar");return e}const ZN=te(["border-border bg-alt flex h-dvh flex-col border-r transition-[width] duration-300 ease-in-out","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{variant:{default:"",bordered:"border-border border"},width:{sm:"",default:"",lg:""}},defaultVariants:{variant:"default",width:"default"}}),kee={sm:{expanded:"w-52",collapsed:"w-14"},default:{expanded:"w-64",collapsed:"w-16"},lg:{expanded:"w-72",collapsed:"w-20"}},JN=f.forwardRef(({className:e,variant:t,width:r="default",defaultCollapsed:n=!1,collapsed:o,onCollapsedChange:i,collapsible:a=!0,autoCollapseMobile:s=!0,children:l,...c},u)=>{const[d,p]=f.useState(n),v=o!==void 0,g=v?o:d,m=f.useCallback(x=>{a&&(v||p(x),i?.(x))},[v,i,a]);f.useEffect(()=>{if(!s||!a||typeof window>"u"||!window.matchMedia)return;const x=window.matchMedia("(max-width: 768px)"),w=S=>{m(S.matches)};return w(x),x.addEventListener("change",w),()=>x.removeEventListener("change",w)},[s,a,m]);const h=f.useMemo(()=>({collapsed:g,setCollapsed:m,collapsible:a}),[g,m,a]),b=kee[r||"default"];return y.jsx(XN.Provider,{value:h,children:y.jsx("aside",{ref:u,className:D(ZN({variant:t}),g?b.collapsed:b.expanded,e),"data-collapsed":g,...c,children:l})})});JN.displayName="Sidebar";const QN=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex items-center gap-2 px-4 pt-4 pb-2",e),...t}));QN.displayName="SidebarHeader";const eM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("flex-1 overflow-y-auto px-3 py-2",e),...t}));eM.displayName="SidebarContent";const tM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("border-border mt-auto border-t px-3 py-3",e),...t}));tM.displayName="SidebarFooter";const rM=f.forwardRef(({className:e,...t},r)=>y.jsx("div",{ref:r,className:D("space-y-1 py-2",e),...t}));rM.displayName="SidebarGroup";const nM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n}=Oc();return n?null:y.jsx("div",{ref:r,className:D("text-tertiary px-3 py-2 font-mono text-xs leading-5 font-normal tracking-[1.2px] uppercase",e),...t})});nM.displayName="SidebarGroupLabel";const Vf=te(["text-small relative flex w-full items-center gap-3 rounded-md px-3 py-2 font-sans font-normal","text-secondary hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none"],{variants:{active:{true:"text-primary",false:""}},defaultVariants:{active:!1}}),oM=f.forwardRef(({className:e,active:t,icon:r,asChild:n=!1,children:o,...i},a)=>{const{collapsed:s}=Oc(),l=n?Ee:"button",c=t?y.jsx("span",{className:"bg-sunflower absolute top-1 bottom-1 left-0 w-[3px] rounded-full","aria-hidden":"true"}):null,u=y.jsxs(y.Fragment,{children:[c,r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o})]});return n?y.jsx(Ee,{ref:a,className:D(Vf({active:t}),s&&"justify-center px-2",e),...i,children:f.isValidElement(o)?f.cloneElement(o,{children:y.jsxs(y.Fragment,{children:[c,r&&y.jsx("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center",children:r}),!s&&y.jsx("span",{className:"truncate",children:o.props.children})]})}):o}):y.jsx(l,{ref:a,className:D(Vf({active:t}),s&&"justify-center px-2",e),...i,children:u})});oM.displayName="SidebarItem";const iM=f.forwardRef(({className:e,...t},r)=>{const{collapsed:n,setCollapsed:o,collapsible:i}=Oc();return i?y.jsx("button",{ref:r,type:"button",className:D("text-small flex w-full items-center rounded-md p-2 font-sans font-normal","text-secondary hover:bg-vanilla hover:text-primary","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),onClick:()=>o(!n),"aria-label":n?"Expand sidebar":"Collapse sidebar",...t,children:n?y.jsx(cl,{className:"h-5 w-5"}):y.jsx(ll,{className:"h-5 w-5"})}):null});iM.displayName="SidebarTrigger";const aM=f.forwardRef(({className:e,...t},r)=>y.jsx("hr",{ref:r,className:D("border-border my-3 border-t",e),...t}));aM.displayName="SidebarSeparator";const sM=te("bg-contrast animate-pulse",{variants:{variant:{default:"rounded-md",circular:"rounded-full",text:"rounded"}},defaultVariants:{variant:"default"}}),lM=f.forwardRef(({className:e,variant:t,width:r,height:n,style:o,...i},a)=>{const s={...o,...r!==void 0&&{width:typeof r=="number"?`${r}px`:r},...n!==void 0&&{height:typeof n=="number"?`${n}px`:n}};return y.jsx("div",{ref:a,"aria-hidden":"true",className:D(sM({variant:t,className:e})),style:s,...i})});lM.displayName="Skeleton";var cM=["PageUp","PageDown"],uM=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dM={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Do="Slider",[Wf,Ree,Dee]=bo(Do),[fM]=Be(Do,[Dee]),[$ee,Cc]=fM(Do),pM=f.forwardRef((e,t)=>{const{name:r,min:n=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[n],value:u,onValueChange:d=()=>{},onValueCommit:p=()=>{},inverted:v=!1,form:g,...m}=e,h=f.useRef(new Set),b=f.useRef(0),w=a==="horizontal"?Lee:zee,[S=[],E]=nt({prop:u,defaultProp:c,onChange:I=>{[...h.current][b.current]?.focus(),d(I)}}),P=f.useRef(S);function O(I){const _=Kee(S,I);$(I,_)}function C(I){$(I,b.current)}function N(){const I=P.current[b.current];S[b.current]!==I&&p(S)}function $(I,_,{commit:j}={commit:!1}){const R=qee(i),V=Yee(Math.round((I-n)/i)*i+n,R),F=nl(V,[n,o]);E((W=[])=>{const T=Vee(W,F,_);if(Gee(T,l*i)){b.current=T.indexOf(F);const k=String(T)!==String(W);return k&&j&&p(T),k?T:W}else return W})}return y.jsx($ee,{scope:e.__scopeSlider,name:r,disabled:s,min:n,max:o,valueIndexToChangeRef:b,thumbs:h.current,values:S,orientation:a,form:g,children:y.jsx(Wf.Provider,{scope:e.__scopeSlider,children:y.jsx(Wf.Slot,{scope:e.__scopeSlider,children:y.jsx(w,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:U(m.onPointerDown,()=>{s||(P.current=S)}),min:n,max:o,inverted:v,onSlideStart:s?void 0:O,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:N,onHomeKeyDown:()=>!s&&$(n,0,{commit:!0}),onEndKeyDown:()=>!s&&$(o,S.length-1,{commit:!0}),onStepKeyDown:({event:I,direction:_})=>{if(!s){const V=cM.includes(I.key)||I.shiftKey&&uM.includes(I.key)?10:1,F=b.current,W=S[F],T=i*V*_;$(W+T,F,{commit:!0})}}})})})})});pM.displayName=Do;var[vM,mM]=fM(Do,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Lee=f.forwardRef((e,t)=>{const{min:r,max:n,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,p]=f.useState(null),v=re(t,w=>p(w)),g=f.useRef(void 0),m=xo(o),h=m==="ltr",b=h&&!i||!h&&i;function x(w){const S=g.current||d.getBoundingClientRect(),E=[0,S.width],O=Vm(E,b?[r,n]:[n,r]);return g.current=S,O(w-S.left)}return y.jsx(vM,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:y.jsx(hM,{dir:m,"data-orientation":"horizontal",...u,ref:v,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:w=>{const S=x(w.clientX);a?.(S)},onSlideMove:w=>{const S=x(w.clientX);s?.(S)},onSlideEnd:()=>{g.current=void 0,l?.()},onStepKeyDown:w=>{const E=dM[b?"from-left":"from-right"].includes(w.key);c?.({event:w,direction:E?-1:1})}})})}),zee=f.forwardRef((e,t)=>{const{min:r,max:n,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=f.useRef(null),d=re(t,u),p=f.useRef(void 0),v=!o;function g(m){const h=p.current||u.current.getBoundingClientRect(),b=[0,h.height],w=Vm(b,v?[n,r]:[r,n]);return p.current=h,w(m-h.top)}return y.jsx(vM,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:y.jsx(hM,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const h=g(m.clientY);i?.(h)},onSlideMove:m=>{const h=g(m.clientY);a?.(h)},onSlideEnd:()=>{p.current=void 0,s?.()},onStepKeyDown:m=>{const b=dM[v?"from-bottom":"from-top"].includes(m.key);l?.({event:m,direction:b?-1:1})}})})}),hM=f.forwardRef((e,t)=>{const{__scopeSlider:r,onSlideStart:n,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=Cc(Do,r);return y.jsx(Q.span,{...c,ref:t,onKeyDown:U(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):cM.concat(uM).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:U(e.onPointerDown,d=>{const p=d.target;p.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(p)?p.focus():n(d)}),onPointerMove:U(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:U(e.onPointerUp,d=>{const p=d.target;p.hasPointerCapture(d.pointerId)&&(p.releasePointerCapture(d.pointerId),i(d))})})}),gM="SliderTrack",yM=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Cc(gM,r);return y.jsx(Q.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...n,ref:t})});yM.displayName=gM;var Kf="SliderRange",bM=f.forwardRef((e,t)=>{const{__scopeSlider:r,...n}=e,o=Cc(Kf,r),i=mM(Kf,r),a=f.useRef(null),s=re(t,a),l=o.values.length,c=o.values.map(p=>SM(p,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return y.jsx(Q.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...n,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});bM.displayName=Kf;var Uf="SliderThumb",xM=f.forwardRef((e,t)=>{const r=Ree(e.__scopeSlider),[n,o]=f.useState(null),i=re(t,s=>o(s)),a=f.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return y.jsx(Fee,{...e,ref:i,index:a})}),Fee=f.forwardRef((e,t)=>{const{__scopeSlider:r,index:n,name:o,...i}=e,a=Cc(Uf,r),s=mM(Uf,r),[l,c]=f.useState(null),u=re(t,x=>c(x)),d=l?a.form||!!l.closest("form"):!0,p=Yi(l),v=a.values[n],g=v===void 0?0:SM(v,a.min,a.max),m=Wee(n,a.values.length),h=p?.[s.size],b=h?Uee(h,g,s.direction):0;return f.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),y.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${b}px)`},children:[y.jsx(Wf.ItemSlot,{scope:e.__scopeSlider,children:y.jsx(Q.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":v,"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:u,style:v===void 0?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{a.valueIndexToChangeRef.current=n})})}),d&&y.jsx(wM,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:v},n)]})});xM.displayName=Uf;var Bee="RadioBubbleInput",wM=f.forwardRef(({__scopeSlider:e,value:t,...r},n)=>{const o=f.useRef(null),i=re(o,n),a=qi(t);return f.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),y.jsx(Q.input,{style:{display:"none"},...r,ref:i,defaultValue:t})});wM.displayName=Bee;function Vee(e=[],t,r){const n=[...e];return n[r]=t,n.sort((o,i)=>o-i)}function SM(e,t,r){const i=100/(r-t)*(e-t);return nl(i,[0,100])}function Wee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Kee(e,t){if(e.length===1)return 0;const r=e.map(o=>Math.abs(o-t)),n=Math.min(...r);return r.indexOf(n)}function Uee(e,t,r){const n=e/2,i=Vm([0,50],[0,n]);return(n-i(t)*r)*r}function Hee(e){return e.slice(0,-1).map((t,r)=>e[r+1]-t)}function Gee(e,t){if(t>0){const r=Hee(e);return Math.min(...r)>=t}return!0}function Vm(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function qee(e){return(String(e).split(".")[1]||"").length}function Yee(e,t){const r=Math.pow(10,t);return Math.round(e*r)/r}var Xee=pM,Zee=yM,Jee=bM,Qee=xM;const PM=te("relative flex w-full touch-none items-center select-none",{variants:{size:{sm:"[--slider-thumb-size:theme(spacing.3)] [--slider-track-height:theme(spacing.1)]",default:"[--slider-thumb-size:theme(spacing.4)] [--slider-track-height:theme(spacing.2)]",lg:"[--slider-thumb-size:theme(spacing.5)] [--slider-track-height:theme(spacing.3)]"}},defaultVariants:{size:"default"}}),EM=f.forwardRef(({className:e,size:t,defaultValue:r=[0],value:n,"aria-label":o,"aria-labelledby":i,...a},s)=>{const l=n?.length??r?.length??1;return y.jsxs(Xee,{ref:s,defaultValue:r,value:n,className:D(PM({size:t}),e),...a,children:[y.jsx(Zee,{className:D("bg-border relative h-[var(--slider-track-height)] w-full grow overflow-hidden rounded-full"),children:y.jsx(Jee,{className:"bg-sunflower absolute h-full"})}),Array.from({length:l}).map((c,u)=>y.jsx(Qee,{"aria-label":o,"aria-labelledby":i,className:D("border-sunflower block h-[var(--slider-thumb-size)] w-[var(--slider-thumb-size)] rounded-full border-2 bg-white shadow-md transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50","hover:border-sunflower-hover")},u))]})});EM.displayName="Slider";const OM=te("inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]",{variants:{variant:{default:"text-sunflower",muted:"text-secondary",inverted:"text-white"},size:{sm:"h-4 w-4 border-2",default:"h-6 w-6 border-2",lg:"h-8 w-8 border-3",xl:"h-12 w-12 border-4"}},defaultVariants:{variant:"default",size:"default"}}),CM=f.forwardRef(({className:e,variant:t,size:r,label:n="Loading",...o},i)=>y.jsx("span",{ref:i,role:"status","aria-label":n,className:D(OM({variant:t,size:r,className:e})),...o,children:y.jsx("span",{className:"sr-only",children:n})}));CM.displayName="Spinner";const AM=te("flex",{variants:{direction:{vertical:"flex-col",horizontal:"flex-row"},gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8","2xl":"gap-12"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse"}},defaultVariants:{direction:"vertical",gap:"md",align:"stretch",justify:"start",wrap:"nowrap"}}),_M=f.forwardRef(({className:e,direction:t,gap:r,align:n,justify:o,wrap:i,as:a="div",asChild:s=!1,...l},c)=>{const u=s?Ee:a;return y.jsx(u,{className:D(AM({direction:t,gap:r,align:n,justify:o,wrap:i,className:e})),ref:c,...l})});_M.displayName="Stack";var Ac="Switch",[ete]=Be(Ac),[tte,rte]=ete(Ac),TM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[p,v]=f.useState(null),g=re(t,w=>v(w)),m=f.useRef(!1),h=p?u||!!p.closest("form"):!0,[b,x]=nt({prop:o,defaultProp:i??!1,onChange:c,caller:Ac});return y.jsxs(tte,{scope:r,checked:b,disabled:s,children:[y.jsx(Q.button,{type:"button",role:"switch","aria-checked":b,"aria-required":a,"data-state":IM(b),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:g,onClick:U(e.onClick,w=>{x(S=>!S),h&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),h&&y.jsx(MM,{control:p,bubbles:!m.current,name:n,value:l,checked:b,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});TM.displayName=Ac;var jM="SwitchThumb",NM=f.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=rte(jM,r);return y.jsx(Q.span,{"data-state":IM(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});NM.displayName=jM;var nte="SwitchBubbleInput",MM=f.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...o},i)=>{const a=f.useRef(null),s=re(a,i),l=qi(r),c=Yi(t);return f.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==r&&v){const g=new Event("click",{bubbles:n});v.call(u,r),u.dispatchEvent(g)}},[l,r,n]),y.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});MM.displayName=nte;function IM(e){return e?"checked":"unchecked"}var ote=TM,ite=NM;const kM=f.forwardRef(({className:e,...t},r)=>y.jsx(ote,{className:D("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors","focus-visible:ring-sunflower focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-sunflower data-[state=unchecked]:bg-contrast",e),...t,ref:r,children:y.jsx(ite,{className:D("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform","data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));kM.displayName="Switch";const RM=te("text-body w-full caption-bottom border-collapse font-sans",{variants:{variant:{default:"border-separate border-spacing-0",striped:"border-separate border-spacing-0"},size:{default:"",compact:""}},defaultVariants:{variant:"default",size:"default"}}),ate=te("border-border bg-alt border-b",{variants:{},defaultVariants:{}}),ste=te("",{variants:{},defaultVariants:{}}),lte=te("transition-colors",{variants:{variant:{default:"border-border hover:bg-alt/50 border-b",striped:"border-border even:bg-alt/30 hover:bg-alt border-b"}},defaultVariants:{variant:"default"}}),cte=te("text-small text-primary text-left align-middle font-sans font-normal [&:has([role=checkbox])]:pr-0",{variants:{sortable:{true:"hover:bg-contrast cursor-pointer select-none",false:""},size:{default:"h-12 px-4",compact:"h-8 px-2"}},defaultVariants:{sortable:!1,size:"default"}}),ute=te("text-secondary align-middle [&:has([role=checkbox])]:pr-0",{variants:{size:{default:"p-4",compact:"p-2"}},defaultVariants:{size:"default"}}),Wm=f.createContext({size:"default"}),DM=f.forwardRef(({className:e,variant:t,size:r="default",...n},o)=>y.jsx(Wm.Provider,{value:{size:r??"default"},children:y.jsx("div",{className:"relative w-full overflow-auto",children:y.jsx("table",{ref:o,className:D(RM({variant:t,size:r}),e),...n})})}));DM.displayName="Table";const $M=f.forwardRef(({className:e,...t},r)=>y.jsx("thead",{ref:r,className:D(ate(),e),...t}));$M.displayName="TableHeader";const LM=f.forwardRef(({className:e,...t},r)=>y.jsx("tbody",{ref:r,className:D(ste(),e),...t}));LM.displayName="TableBody";const zM=f.forwardRef(({className:e,...t},r)=>y.jsx("tfoot",{ref:r,className:D("border-border bg-alt text-primary border-t font-normal",e),...t}));zM.displayName="TableFooter";const FM=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx("tr",{ref:n,className:D(lte({variant:t}),e),...r}));FM.displayName="TableRow";const BM=f.forwardRef(({className:e,children:t,sortable:r=!1,sortDirection:n=null,onSort:o,...i},a)=>{const{size:s}=f.useContext(Wm),l=()=>{r&&o&&o()},c=u=>{r&&o&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),o())};return y.jsx("th",{ref:a,className:D(cte({sortable:r,size:s}),e),onClick:l,onKeyDown:c,tabIndex:r?0:void 0,role:r?"button":void 0,"aria-sort":n==="asc"?"ascending":n==="desc"?"descending":void 0,...i,children:y.jsxs("div",{className:"flex items-center gap-2",children:[t,r&&y.jsxs("span",{className:"inline-flex flex-col","aria-hidden":"true",children:[y.jsx("svg",{className:D("h-3 w-3 transition-opacity",n==="asc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 15l5-5 5 5"})}),y.jsx("svg",{className:D("-mt-1 h-3 w-3 transition-opacity",n==="desc"?"opacity-100":"opacity-30"),fill:"none",stroke:"currentColor",strokeWidth:"2",viewBox:"0 0 24 24",children:y.jsx("path",{d:"M7 9l5 5 5-5"})})]})]})})});BM.displayName="TableHead";const VM=f.forwardRef(({className:e,...t},r)=>{const{size:n}=f.useContext(Wm);return y.jsx("td",{ref:r,className:D(ute({size:n}),e),...t})});VM.displayName="TableCell";const WM=f.forwardRef(({className:e,...t},r)=>y.jsx("caption",{ref:r,className:D("text-small text-tertiary mt-4",e),...t}));WM.displayName="TableCaption";function dte({data:e,initialSortKey:t=null,initialSortDirection:r="asc"}){const[n,o]=f.useState(t),[i,a]=f.useState(r),s=f.useCallback(c=>{o(u=>u===c?(a(d=>d==="asc"?"desc":d==="desc"?(o(null),null):"asc"),u):(a("asc"),c))},[]);return{sortedData:f.useMemo(()=>!n||!i?e:[...e].sort((c,u)=>{const d=c[n],p=u[n];if(d===p)return 0;let v=0;return typeof d=="string"&&typeof p=="string"?v=d.localeCompare(p):typeof d=="number"&&typeof p=="number"?v=d-p:v=String(d).localeCompare(String(p)),i==="asc"?v:-v}),[e,n,i]),sortKey:n,sortDirection:i,handleSort:s}}function fte({data:e,filterKeys:t}){const[r,n]=f.useState("");return{filteredData:f.useMemo(()=>{if(!r.trim())return e;const i=r.toLowerCase();return e.filter(a=>t&&t.length>0?t.some(s=>String(a[s]).toLowerCase().includes(i)):Object.values(a).some(s=>String(s).toLowerCase().includes(i)))},[e,r,t]),filterValue:r,setFilterValue:n}}const KM=f.createContext(null);function UM(){const e=f.useContext(KM);if(!e)throw new Error("Tab components must be used within a Tabs component");return e}const HM=f.forwardRef(({className:e,defaultValue:t="",value:r,onValueChange:n,children:o,...i},a)=>{const[s,l]=f.useState(t),c=f.useRef(new Map),u=r!==void 0?r:s,d=f.useCallback(v=>{r===void 0&&l(v),n?.(v)},[r,n]),p=f.useCallback((v,g)=>{g?c.current.set(v,g):c.current.delete(v)},[]);return y.jsx(KM.Provider,{value:{activeTab:u,setActiveTab:d,registerTrigger:p},children:y.jsx("div",{ref:a,className:D("w-full",e),...i,children:o})})});HM.displayName="Tabs";const GM=te("text-body inline-flex items-center font-sans transition-colors",{variants:{variant:{default:"border-border relative gap-1 border-b",pills:"rounded-pill bg-alt gap-2 p-1"}},defaultVariants:{variant:"default"}}),qM=f.createContext(null),YM=f.forwardRef(({className:e,variant:t,...r},n)=>{const o=f.useRef(null),[i,a]=f.useState(null),[s,l]=f.useState(!1),c=f.useRef(!1),u=f.useCallback(v=>{if(v&&o.current){const g=o.current.getBoundingClientRect();a({left:v.left-g.left,width:v.width}),c.current||(c.current=!0,l(!0))}},[]),d=f.useCallback(v=>{o.current=v,typeof n=="function"?n(v):n&&(n.current=v)},[n]),p=f.useMemo(()=>({variant:t??"default",setActiveRect:u}),[t,u]);return y.jsx(qM.Provider,{value:p,children:y.jsxs("div",{ref:d,role:"tablist",className:D(GM({variant:t,className:e})),...r,children:[r.children,t!=="pills"&&i&&y.jsx("span",{className:D("bg-sunflower pointer-events-none absolute bottom-0 h-0.5",s&&"transition-all duration-200 ease-out"),style:{left:i.left,width:i.width},"aria-hidden":"true"})]})})});YM.displayName="TabList";const XM=te("focus-visible:ring-sunflower inline-flex items-center justify-center font-sans font-normal whitespace-nowrap transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"text-secondary hover:text-primary data-[state=active]:text-primary px-4 py-2",pills:"rounded-pill text-secondary hover:text-primary data-[state=active]:bg-card data-[state=active]:text-primary px-4 py-1.5 data-[state=active]:shadow-sm"},size:{sm:"text-small",default:"text-body",lg:"text-body font-medium"}},defaultVariants:{variant:"default",size:"default"}}),ZM=f.forwardRef(({className:e,variant:t,size:r,value:n,...o},i)=>{const{activeTab:a,setActiveTab:s}=UM(),l=f.useContext(qM),c=f.useRef(null),u=a===n,d=f.useCallback(p=>{c.current=p,typeof i=="function"?i(p):i&&(i.current=p)},[i]);return f.useEffect(()=>{if(u&&c.current&&l){const p=()=>{if(c.current){const v=c.current.getBoundingClientRect();l.setActiveRect({left:v.left,width:v.width})}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)}},[u,l]),y.jsx("button",{ref:d,role:"tab",type:"button","aria-selected":u,"data-state":u?"active":"inactive",onClick:()=>s(n),className:D(XM({variant:t,size:r,className:e})),...o})});ZM.displayName="TabTrigger";const JM=te("font-sans",{variants:{size:{sm:"text-small mt-3",default:"text-body mt-4",lg:"text-body mt-6"}},defaultVariants:{size:"default"}}),QM=f.forwardRef(({className:e,size:t,value:r,...n},o)=>{const{activeTab:i}=UM(),a=i===r;return a?y.jsx("div",{ref:o,role:"tabpanel","data-state":a?"active":"inactive",className:D(JM({size:t,className:e})),...n}):null});QM.displayName="TabContent";const eI=te("font-sans",{variants:{variant:{lead:"text-lead text-primary","semi-lead":"text-semi-lead text-secondary","body-lg":"text-body-lg text-secondary",body:"text-body text-secondary",descriptive:"text-descriptive text-secondary",label:"text-label text-tertiary","label-sm":"text-label-sm text-tertiary"},weight:{regular:"font-normal",medium:"font-medium"}},defaultVariants:{variant:"body",weight:"regular"}}),tI=f.forwardRef(({className:e,variant:t="body",weight:r="regular",as:n="p",asChild:o=!1,...i},a)=>{const s=o?Ee:n;return y.jsx(s,{className:D(eI({variant:t,weight:r,className:e})),ref:a,...i})});tI.displayName="Text";const rI=te("bg-card text-body text-primary placeholder:text-tertiary flex min-h-[80px] w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{variant:{default:"border-border focus-visible:ring-sunflower",error:"border-error focus-visible:ring-error"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{variant:"default",resize:"vertical"}}),nI=f.forwardRef(({className:e,variant:t,resize:r,...n},o)=>y.jsx("textarea",{className:D(rI({variant:t,resize:r}),e),ref:o,...n}));nI.displayName="Textarea";var Km="ToastProvider",[Um,pte,vte]=bo("Toast"),[oI]=Be("Toast",[vte]),[mte,_c]=oI(Km),iI=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=f.useState(null),[c,u]=f.useState(0),d=f.useRef(!1),p=f.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Km}\`. Expected non-empty \`string\`.`),y.jsx(Um.Provider,{scope:t,children:y.jsx(mte,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:f.useCallback(()=>u(v=>v+1),[]),onToastRemove:f.useCallback(()=>u(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};iI.displayName=Km;var aI="ToastViewport",hte=["F8"],Hf="toast.viewportPause",Gf="toast.viewportResume",sI=f.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=hte,label:o="Notifications ({hotkey})",...i}=e,a=_c(aI,r),s=pte(r),l=f.useRef(null),c=f.useRef(null),u=f.useRef(null),d=f.useRef(null),p=re(t,d,a.onViewportChange),v=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;f.useEffect(()=>{const h=b=>{n.length!==0&&n.every(w=>b[w]||b.code===w)&&d.current?.focus()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[n]),f.useEffect(()=>{const h=l.current,b=d.current;if(g&&h&&b){const x=()=>{if(!a.isClosePausedRef.current){const P=new CustomEvent(Hf);b.dispatchEvent(P),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const P=new CustomEvent(Gf);b.dispatchEvent(P),a.isClosePausedRef.current=!1}},S=P=>{!h.contains(P.relatedTarget)&&w()},E=()=>{h.contains(document.activeElement)||w()};return h.addEventListener("focusin",x),h.addEventListener("focusout",S),h.addEventListener("pointermove",x),h.addEventListener("pointerleave",E),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{h.removeEventListener("focusin",x),h.removeEventListener("focusout",S),h.removeEventListener("pointermove",x),h.removeEventListener("pointerleave",E),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[g,a.isClosePausedRef]);const m=f.useCallback(({tabbingDirection:h})=>{const x=s().map(w=>{const S=w.ref.current,E=[S,...Tte(S)];return h==="forwards"?E:E.reverse()});return(h==="forwards"?x.reverse():x).flat()},[s]);return f.useEffect(()=>{const h=d.current;if(h){const b=x=>{const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const E=document.activeElement,P=x.shiftKey;if(x.target===h&&P){c.current?.focus();return}const N=m({tabbingDirection:P?"backwards":"forwards"}),$=N.findIndex(I=>I===E);Pd(N.slice($+1))?x.preventDefault():P?c.current?.focus():u.current?.focus()}};return h.addEventListener("keydown",b),()=>h.removeEventListener("keydown",b)}},[s,m]),y.jsxs(RR,{ref:l,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&y.jsx(qf,{ref:c,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"forwards"});Pd(h)}}),y.jsx(Um.Slot,{scope:r,children:y.jsx(Q.ol,{tabIndex:-1,...i,ref:p})}),g&&y.jsx(qf,{ref:u,onFocusFromOutsideViewport:()=>{const h=m({tabbingDirection:"backwards"});Pd(h)}})]})});sI.displayName=aI;var lI="ToastFocusProxy",qf=f.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=_c(lI,r);return y.jsx(wc,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{const s=a.relatedTarget;!i.viewport?.contains(s)&&n()}})});qf.displayName=lI;var oa="Toast",gte="toast.swipeStart",yte="toast.swipeMove",bte="toast.swipeCancel",xte="toast.swipeEnd",cI=f.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=nt({prop:n,defaultProp:o??!0,onChange:i,caller:oa});return y.jsx(lt,{present:r||s,children:y.jsx(Pte,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:st(e.onPause),onResume:st(e.onResume),onSwipeStart:U(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:U(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:U(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:U(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});cI.displayName=oa;var[wte,Ste]=oI(oa,{onClose(){}}),Pte=f.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:v,...g}=e,m=_c(oa,r),[h,b]=f.useState(null),x=re(t,R=>b(R)),w=f.useRef(null),S=f.useRef(null),E=o||m.duration,P=f.useRef(0),O=f.useRef(E),C=f.useRef(0),{onToastAdd:N,onToastRemove:$}=m,I=st(()=>{h?.contains(document.activeElement)&&m.viewport?.focus(),a()}),_=f.useCallback(R=>{!R||R===1/0||(window.clearTimeout(C.current),P.current=new Date().getTime(),C.current=window.setTimeout(I,R))},[I]);f.useEffect(()=>{const R=m.viewport;if(R){const V=()=>{_(O.current),c?.()},F=()=>{const W=new Date().getTime()-P.current;O.current=O.current-W,window.clearTimeout(C.current),l?.()};return R.addEventListener(Hf,F),R.addEventListener(Gf,V),()=>{R.removeEventListener(Hf,F),R.removeEventListener(Gf,V)}}},[m.viewport,E,l,c,_]),f.useEffect(()=>{i&&!m.isClosePausedRef.current&&_(E)},[i,E,m.isClosePausedRef,_]),f.useEffect(()=>(N(),()=>$()),[N,$]);const j=f.useMemo(()=>h?hI(h):null,[h]);return m.viewport?y.jsxs(y.Fragment,{children:[j&&y.jsx(Ete,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite",children:j}),y.jsx(wte,{scope:r,onClose:I,children:wi.createPortal(y.jsx(Um.ItemSlot,{scope:r,children:y.jsx(kR,{asChild:!0,onEscapeKeyDown:U(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||I(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(Q.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...g,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:U(e.onKeyDown,R=>{R.key==="Escape"&&(s?.(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,I()))}),onPointerDown:U(e.onPointerDown,R=>{R.button===0&&(w.current={x:R.clientX,y:R.clientY})}),onPointerMove:U(e.onPointerMove,R=>{if(!w.current)return;const V=R.clientX-w.current.x,F=R.clientY-w.current.y,W=!!S.current,T=["left","right"].includes(m.swipeDirection),k=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,G=T?k(0,V):0,ee=T?0:k(0,F),ne=R.pointerType==="touch"?10:2,ie={x:G,y:ee},oe={originalEvent:R,delta:ie};W?(S.current=ie,Ba(yte,d,oe,{discrete:!1})):Gw(ie,m.swipeDirection,ne)?(S.current=ie,Ba(gte,u,oe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(V)>ne||Math.abs(F)>ne)&&(w.current=null)}),onPointerUp:U(e.onPointerUp,R=>{const V=S.current,F=R.target;if(F.hasPointerCapture(R.pointerId)&&F.releasePointerCapture(R.pointerId),S.current=null,w.current=null,V){const W=R.currentTarget,T={originalEvent:R,delta:V};Gw(V,m.swipeDirection,m.swipeThreshold)?Ba(xte,v,T,{discrete:!0}):Ba(bte,p,T,{discrete:!0}),W.addEventListener("click",k=>k.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),Ete=e=>{const{__scopeToast:t,children:r,...n}=e,o=_c(oa,t),[i,a]=f.useState(!1),[s,l]=f.useState(!1);return Ate(()=>a(!0)),f.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:y.jsx(Ln,{asChild:!0,children:y.jsx(wc,{...n,children:i&&y.jsxs(y.Fragment,{children:[o.label," ",r]})})})},Ote="ToastTitle",uI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});uI.displayName=Ote;var Cte="ToastDescription",dI=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return y.jsx(Q.div,{...n,ref:t})});dI.displayName=Cte;var fI="ToastAction",pI=f.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?y.jsx(mI,{altText:r,asChild:!0,children:y.jsx(Hm,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${fI}\`. Expected non-empty \`string\`.`),null)});pI.displayName=fI;var vI="ToastClose",Hm=f.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=Ste(vI,r);return y.jsx(mI,{asChild:!0,children:y.jsx(Q.button,{type:"button",...n,ref:t,onClick:U(e.onClick,o.onClose)})})});Hm.displayName=vI;var mI=f.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return y.jsx(Q.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function hI(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),_te(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...hI(n))}}),t}function Ba(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Zf(o,i):o.dispatchEvent(i)}var Gw=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function Ate(e=()=>{}){const t=st(e);Ye(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function _te(e){return e.nodeType===e.ELEMENT_NODE}function Tte(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Pd(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var jte=iI,Nte=sI,Mte=cI,Ite=uI,kte=dI,Rte=pI,Dte=Hm;const $te=jte,gI=f.forwardRef(({className:e,...t},r)=>y.jsx(Nte,{ref:r,className:D("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-105",e),...t}));gI.displayName="ToastViewport";const yI=te(["group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg border p-4 shadow-lg transition-all","data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none","data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out","data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full"],{variants:{variant:{default:"border-border bg-main text-primary",success:"border-sunflower/30 bg-eggshell text-primary [&>svg]:text-sunflower",error:"border-error/30 bg-main text-primary [&>svg]:text-error",warning:"border-sunflower/50 bg-vanilla text-primary [&>svg]:text-sunflower",info:"border-electric-blue/30 bg-main text-primary [&>svg]:text-electric-blue"}},defaultVariants:{variant:"default"}}),bI=f.forwardRef(({className:e,variant:t,...r},n)=>y.jsx(Mte,{ref:n,className:D(yI({variant:t}),e),...r}));bI.displayName="Toast";const xI=f.forwardRef(({className:e,...t},r)=>y.jsx(Rte,{ref:r,className:D("rounded-pill border-border inline-flex h-8 shrink-0 items-center justify-center border bg-transparent px-3 text-sm font-medium","ring-offset-main transition-colors","hover:bg-alt","focus:ring-sunflower focus:ring-2 focus:ring-offset-2 focus:outline-none","disabled:pointer-events-none disabled:opacity-50","group-[.error]:border-error/30 group-[.error]:hover:border-error/50 group-[.error]:hover:bg-error/10 group-[.error]:focus:ring-error",e),...t}));xI.displayName="ToastAction";const wI=f.forwardRef(({className:e,...t},r)=>y.jsxs(Dte,{ref:r,className:D("text-secondary absolute top-2 right-2 rounded-sm p-1 opacity-0 transition-opacity","hover:text-primary","focus:ring-sunflower focus:opacity-100 focus:ring-2 focus:outline-none","group-hover:opacity-100","group-[.error]:text-error/70 group-[.error]:hover:text-error group-[.error]:focus:ring-error group-[.error]:focus:ring-offset-error",e),"toast-close":"",...t,children:[y.jsx(m0,{className:"h-4 w-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]}));wI.displayName="ToastClose";const SI=f.forwardRef(({className:e,...t},r)=>y.jsx(Ite,{ref:r,className:D("text-sm",e),...t}));SI.displayName="ToastTitle";const PI=f.forwardRef(({className:e,...t},r)=>y.jsx(kte,{ref:r,className:D("text-secondary text-sm",e),...t}));PI.displayName="ToastDescription";var Lte=Symbol("radix.slottable");function zte(e){const t=({children:r})=>y.jsx(y.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Lte,t}var[Tc]=Be("Tooltip",[rn]),jc=rn(),EI="TooltipProvider",Fte=700,Yf="tooltip.open",[Bte,Gm]=Tc(EI),OI=e=>{const{__scopeTooltip:t,delayDuration:r=Fte,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,a=f.useRef(!0),s=f.useRef(!1),l=f.useRef(0);return f.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(Bte,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:f.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:f.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};OI.displayName=EI;var bi="Tooltip",[Vte,ia]=Tc(bi),CI=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=Gm(bi,e.__scopeTooltip),c=jc(t),[u,d]=f.useState(null),p=vt(),v=f.useRef(0),g=a??l.disableHoverableContent,m=s??l.delayDuration,h=f.useRef(!1),[b,x]=nt({prop:n,defaultProp:o??!1,onChange:O=>{O?(l.onOpen(),document.dispatchEvent(new CustomEvent(Yf))):l.onClose(),i?.(O)},caller:bi}),w=f.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),S=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,h.current=!1,x(!0)},[x]),E=f.useCallback(()=>{window.clearTimeout(v.current),v.current=0,x(!1)},[x]),P=f.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{h.current=!0,x(!0),v.current=0},m)},[m,x]);return f.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),y.jsx(Zi,{...c,children:y.jsx(Vte,{scope:t,contentId:p,open:b,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:f.useCallback(()=>{l.isOpenDelayedRef.current?P():S()},[l.isOpenDelayedRef,P,S]),onTriggerLeave:f.useCallback(()=>{g?E():(window.clearTimeout(v.current),v.current=0)},[E,g]),onOpen:S,onClose:E,disableHoverableContent:g,children:r})})};CI.displayName=bi;var Xf="TooltipTrigger",AI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=ia(Xf,r),i=Gm(Xf,r),a=jc(r),s=f.useRef(null),l=re(t,s,o.onTriggerChange),c=f.useRef(!1),u=f.useRef(!1),d=f.useCallback(()=>c.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(Ji,{asChild:!0,...a,children:y.jsx(Q.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:l,onPointerMove:U(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:U(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:U(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:U(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:U(e.onBlur,o.onClose),onClick:U(e.onClick,o.onClose)})})});AI.displayName=Xf;var qm="TooltipPortal",[Wte,Kte]=Tc(qm,{forceMount:void 0}),_I=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=ia(qm,t);return y.jsx(Wte,{scope:t,forceMount:r,children:y.jsx(lt,{present:r||i.open,children:y.jsx(Ln,{asChild:!0,container:o,children:n})})})};_I.displayName=qm;var yo="TooltipContent",TI=f.forwardRef((e,t)=>{const r=Kte(yo,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=ia(yo,e.__scopeTooltip);return y.jsx(lt,{present:n||a.open,children:a.disableHoverableContent?y.jsx(jI,{side:o,...i,ref:t}):y.jsx(Ute,{side:o,...i,ref:t})})}),Ute=f.forwardRef((e,t)=>{const r=ia(yo,e.__scopeTooltip),n=Gm(yo,e.__scopeTooltip),o=f.useRef(null),i=re(t,o),[a,s]=f.useState(null),{trigger:l,onClose:c}=r,u=o.current,{onPointerInTransitChange:d}=n,p=f.useCallback(()=>{s(null),d(!1)},[d]),v=f.useCallback((g,m)=>{const h=g.currentTarget,b={x:g.clientX,y:g.clientY},x=Yte(b,h.getBoundingClientRect()),w=Xte(b,x),S=Zte(m.getBoundingClientRect()),E=Qte([...w,...S]);s(E),d(!0)},[d]);return f.useEffect(()=>()=>p(),[p]),f.useEffect(()=>{if(l&&u){const g=h=>v(h,u),m=h=>v(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",m)}}},[l,u,v,p]),f.useEffect(()=>{if(a){const g=m=>{const h=m.target,b={x:m.clientX,y:m.clientY},x=l?.contains(h)||u?.contains(h),w=!Jte(b,a);x?p():w&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,a,c,p]),y.jsx(jI,{...e,ref:i})}),[Hte,Gte]=Tc(bi,{isInside:!1}),qte=zte("TooltipContent"),jI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=ia(yo,r),c=jc(r),{onClose:u}=l;return f.useEffect(()=>(document.addEventListener(Yf,u),()=>document.removeEventListener(Yf,u)),[u]),f.useEffect(()=>{if(l.trigger){const d=p=>{p.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx($n,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(pc,{"data-state":l.stateAttribute,...c,...s,ref:t,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:[y.jsx(qte,{children:n}),y.jsx(Hte,{scope:r,isInside:!0,children:y.jsx(YQ,{id:l.contentId,role:"tooltip",children:o||n})})]})})});TI.displayName=yo;var NI="TooltipArrow",MI=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=jc(r);return Gte(NI,r).isInside?null:y.jsx(vc,{...o,...n,ref:t})});MI.displayName=NI;function Yte(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Xte(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Zte(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Jte(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,p=l.y;u>n!=p>n&&r<(d-c)*(n-u)/(p-u)+c&&(o=!o)}return o}function Qte(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),ere(t)}function ere(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var tre=OI,rre=CI,nre=AI,ore=_I,ire=TI,are=MI;const sre=tre,lre=rre,cre=nre,II=ore,Ym=f.forwardRef(({className:e,...t},r)=>y.jsx(are,{ref:r,className:D("fill-primary",e),...t}));Ym.displayName="TooltipArrow";const kI=te(["z-50 overflow-hidden rounded-md px-3 py-1.5 font-sans shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2"],{variants:{variant:{default:"bg-primary text-small text-white",light:"bg-card text-primary text-small border-border border"}},defaultVariants:{variant:"default"}}),RI=f.forwardRef(({className:e,variant:t,sideOffset:r=4,showArrow:n=!1,children:o,...i},a)=>y.jsx(II,{children:y.jsxs(ire,{ref:a,sideOffset:r,className:D(kI({variant:t,className:e})),...i,children:[o,n&&y.jsx(Ym,{className:t==="light"?"fill-card":"fill-primary"})]})}));RI.displayName="TooltipContent";exports.Accordion=j0;exports.AccordionContent=k0;exports.AccordionItem=N0;exports.AccordionTrigger=I0;exports.ActionsMenuButton=oj;exports.AlertDialog=y2;exports.AlertDialogAction=FS;exports.AlertDialogCancel=BS;exports.AlertDialogContent=RS;exports.AlertDialogDescription=zS;exports.AlertDialogFooter=$S;exports.AlertDialogHeader=DS;exports.AlertDialogOverlay=lp;exports.AlertDialogPortal=IS;exports.AlertDialogTitle=LS;exports.AlertDialogTrigger=b2;exports.Badge=WS;exports.Banner=US;exports.BarChart=eA;exports.BreadcrumbItem=nA;exports.BreadcrumbSeparator=mm;exports.Breadcrumbs=rA;exports.Button=MS;exports.Card=iA;exports.Checkbox=vA;exports.ContextMenu=nJ;exports.ContextMenuCheckboxItem=eT;exports.ContextMenuContent=J_;exports.ContextMenuGroup=iJ;exports.ContextMenuItem=Q_;exports.ContextMenuLabel=rT;exports.ContextMenuPortal=Y_;exports.ContextMenuRadioGroup=sJ;exports.ContextMenuRadioItem=tT;exports.ContextMenuSeparator=nT;exports.ContextMenuShortcut=oT;exports.ContextMenuSub=aJ;exports.ContextMenuSubContent=Z_;exports.ContextMenuSubTrigger=X_;exports.ContextMenuTrigger=oJ;exports.DatePicker=ST;exports.DateTimePicker=CT;exports.Divider=_T;exports.DropdownMenu=aQ;exports.DropdownMenuCheckboxItem=QT;exports.DropdownMenuContent=ZT;exports.DropdownMenuGroup=lQ;exports.DropdownMenuItem=JT;exports.DropdownMenuLabel=tj;exports.DropdownMenuPortal=qT;exports.DropdownMenuRadioGroup=uQ;exports.DropdownMenuRadioItem=ej;exports.DropdownMenuSeparator=rj;exports.DropdownMenuShortcut=nj;exports.DropdownMenuSub=cQ;exports.DropdownMenuSubContent=XT;exports.DropdownMenuSubTrigger=YT;exports.DropdownMenuTrigger=sQ;exports.EngrateLogo=aj;exports.Eyebrow=lj;exports.Footer=uj;exports.FooterBottom=mj;exports.FooterContent=dj;exports.FooterCopyright=hj;exports.FooterHeading=pj;exports.FooterLinks=vj;exports.FooterSection=fj;exports.FormField=bj;exports.FormMessage=Rm;exports.Grid=xj;exports.GridItem=wj;exports.Header=Pj;exports.HeaderActions=Cj;exports.HeaderLogo=Ej;exports.HeaderNav=Oj;exports.Heading=_j;exports.Input=jj;exports.Label=Dm;exports.LineChart=Mj;exports.Link=kj;exports.Modal=CQ;exports.ModalClose=_Q;exports.ModalContent=$j;exports.ModalDescription=Bj;exports.ModalFooter=zj;exports.ModalHeader=Lj;exports.ModalOverlay=$m;exports.ModalPortal=Rj;exports.ModalTitle=Fj;exports.ModalTrigger=AQ;exports.Pagination=Kj;exports.PaginationDot=Yj;exports.PaginationDots=Gj;exports.PaginationItem=ro;exports.PieChart=Zj;exports.ProgressIndicator=eN;exports.RadioGroup=pN;exports.RadioGroupItem=vN;exports.Select=Nee;exports.SelectContent=HN;exports.SelectGroup=Mee;exports.SelectItem=qN;exports.SelectLabel=GN;exports.SelectScrollDownButton=Bm;exports.SelectScrollUpButton=Fm;exports.SelectSeparator=YN;exports.SelectTrigger=UN;exports.SelectValue=Iee;exports.Sidebar=JN;exports.SidebarContent=eM;exports.SidebarFooter=tM;exports.SidebarGroup=rM;exports.SidebarGroupLabel=nM;exports.SidebarHeader=QN;exports.SidebarItem=oM;exports.SidebarSeparator=aM;exports.SidebarTrigger=iM;exports.Skeleton=lM;exports.Slider=EM;exports.Spinner=CM;exports.Stack=_M;exports.Switch=kM;exports.TabContent=QM;exports.TabList=YM;exports.TabTrigger=ZM;exports.Table=DM;exports.TableBody=LM;exports.TableCaption=WM;exports.TableCell=VM;exports.TableFooter=zM;exports.TableHead=BM;exports.TableHeader=$M;exports.TableRow=FM;exports.Tabs=HM;exports.Text=tI;exports.Textarea=nI;exports.Toast=bI;exports.ToastAction=xI;exports.ToastClose=wI;exports.ToastDescription=PI;exports.ToastProvider=$te;exports.ToastTitle=SI;exports.ToastViewport=gI;exports.Tooltip=lre;exports.TooltipArrow=Ym;exports.TooltipContent=RI;exports.TooltipPortal=II;exports.TooltipProvider=sre;exports.TooltipTrigger=cre;exports.accordionTriggerVariants=M0;exports.accordionVariants=T0;exports.alertDialogContentVariants=kS;exports.badgeVariants=VS;exports.bannerVariants=KS;exports.barChartVariants=QC;exports.breadcrumbItemVariants=Nf;exports.breadcrumbsVariants=tA;exports.buttonVariants=ml;exports.calendarDayVariants=wT;exports.cardVariants=oA;exports.cn=D;exports.datePickerTriggerVariants=xT;exports.dateTimePickerCalendarDayVariants=OT;exports.dateTimePickerTriggerVariants=ET;exports.dividerVariants=AT;exports.engrateLogoVariants=ij;exports.eyebrowVariants=sj;exports.footerVariants=cj;exports.gridItemVariants=wQ;exports.gridVariants=hQ;exports.headerVariants=Sj;exports.headingVariants=Aj;exports.inputVariants=Tj;exports.labelVariants=yj;exports.lineChartVariants=Nj;exports.linkVariants=Ij;exports.modalContentVariants=Dj;exports.paginationDotVariants=qj;exports.paginationDotsVariants=Hj;exports.paginationItemVariants=Wj;exports.paginationVariants=Vj;exports.pieChartVariants=Xj;exports.progressBarVariants=Qj;exports.progressIndicatorVariants=Jj;exports.sidebarItemVariants=Vf;exports.sidebarVariants=ZN;exports.skeletonVariants=sM;exports.sliderVariants=PM;exports.spinnerVariants=OM;exports.stackVariants=AM;exports.tabContentVariants=JM;exports.tabListVariants=GM;exports.tabTriggerVariants=XM;exports.tableVariants=RM;exports.textVariants=eI;exports.textareaVariants=rI;exports.toastVariants=yI;exports.tooltipContentVariants=kI;exports.useFilterableTable=fte;exports.useSidebarContext=Oc;exports.useSortableTable=dte;
|