@its/core 2.1.2 → 2.2.0

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/core.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),Et=require("react-i18next"),k=require("react"),pH=require("react-router-dom"),ie=require("@mui/material"),Y4=require("react-relay"),Vv=require("@mui/material/Box"),ci=require("@emotion/styled"),Nf=require("recoil"),gH=require("@mui/material/Paper"),Pw=require("@mui/icons-material/DoneRounded"),jO=require("@mui/utils"),vH=require("@mui/icons-material/ExpandMoreOutlined"),mH=require("@mui/icons-material/SensorsOutlined"),_s=require("i18next"),yH=require("@mui/icons-material/ContentCopyRounded"),bH=require("@mui/material/IconButton"),wH=require("@mui/material/Drawer"),Hv=require("@mui/material/styles"),xH=require("@mui/material/FormControlLabel"),_H=require("@mui/material/Switch"),k_=require("react-is"),R_=require("react-dom"),EH=require("@mui/material/Chip"),ca=require("@mui/icons-material"),SH=require("@mui/icons-material/Close"),X4=require("@mui/icons-material/ArrowUpwardOutlined"),Z4=require("@mui/icons-material/ArrowDownwardOutlined"),AH=require("@mui/icons-material/SearchRounded"),cs=require("dayjs"),OH=require("@mui/x-date-pickers/AdapterDayjs"),TH=require("@mui/x-date-pickers/LocalizationProvider"),dc=require("@mui/x-date-pickers"),PH=require("@mui/material/AppBar"),CH=require("@mui/icons-material/BackspaceRounded"),MO=require("@mui/material/Button"),jH=require("@mui/material/List"),MH=require("@mui/material/Fab"),J4=require("@mui/icons-material/EditOutlined"),kH=require("@mui/icons-material/FilterAltOutlined"),RH=require("@mui/icons-material/SwapVertRounded"),IH=require("@mui/icons-material/AddRounded"),DH=require("@mui/icons-material/ManageSearchOutlined"),NH=require("@mui/icons-material/AddCircleOutlineOutlined"),LH=require("@mui/icons-material/CheckCircleRounded"),$H=require("@mui/icons-material/CancelRounded"),Q4=require("notistack"),By=require("@mui/material/LinearProgress"),BH=require("@mui/material/Typography"),Mc=require("relay-runtime"),kO=require("jotai");function zH(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const B=zH(k),e8=ci(Vv)({width:"100%",height:"100vh",overflow:"hidden"}),I_=ci(e8)({display:"flex"}),xn=ci(Vv)({display:"flex"}),Pi=ci(xn)({flexDirection:"column"}),Da=ci(xn)({width:"100%",height:"100%"}),lu=ci(Pi)({width:"100%",height:"100%"}),Uv=ci(lu)({justifyContent:"center"}),qd=ci(xn)({justifyContent:"center",alignItems:"center"}),FH=ci(Pi)({justifyContent:"center",alignItems:"center"}),Xc=ci(Da)({alignItems:"center",justifyContent:"center"});var kc=(e=>(e.DARK="dark",e.LIGHT="light",e))(kc||{});const t8=k.createContext(null);function WH({adapter:e,children:t}){const[n]=k.useState({}),r=w.jsx(t8.Provider,{value:{stateFactory:n,adapter:e},children:t});return e.type==="recoilAdapter"?w.jsx(Nf.RecoilRoot,{children:r}):r}function qH(){const e=k.useContext(t8);if(!e)throw new Error("useStateContext must be used within a StateProvider");return e}function ma(e,t){const{stateFactory:n,adapter:r}=qH();let i=n[e];if(!i){if(t===void 0)throw new Error(`State manager for key "${e}" does not exist and no initial value was provided.`);i=r.createState(t),n[e]=i}const[a,o]=k.useState(i.get());return k.useEffect(()=>{const u=i.subscribe(c=>{o(c)});return()=>u()},[i]),[a,u=>{typeof u=="function"?i.set(u(i.get())):Array.isArray(u)?i.set(u.filter(c=>c!==null)):i.set(u)}]}function Bo(){const[e,t]=ma("themeModeState",localStorage.getItem("theme-mode")||kc.DARK);k.useEffect(()=>{localStorage.setItem("theme-mode",e)},[e]);const n=k.useCallback(()=>{t(i=>i===kc.DARK?kc.LIGHT:kc.DARK)},[t]),r=k.useMemo(()=>({toggle:n}),[n]);return[e,r]}function D_({pending:e}){const[t]=Bo();return e?w.jsx(Xc,{position:"relative",children:w.jsx("div",{className:t==="dark"?"loader":"loaderLight"})}):w.jsx(Xc,{position:"relative",children:w.jsx("div",{className:t==="dark"?"loader":"loaderLight"})})}function VH({elementsPerPage:e,fragment:t,fragmentRef:n,getList:r}){const{data:i,loadNext:a,hasNext:o,isLoadingNext:s,refetch:u}=Y4.usePaginationFragment(t,n),{t:c}=Et.useTranslation(),l=k.useRef(null),d=k.useRef(null),h=k.useCallback(m=>{!s&&o?(d.current&&d.current.disconnect(),d.current=new IntersectionObserver(y=>{y[0].isIntersecting&&a(e)}),m&&d.current.observe(m)):l.current&&(l.current.style.display="relative")},[s,o]);function g({component:m}){const y=i?r(i):[];return!y||y.length===0&&!s?w.jsx(Xc,{children:c("NO_ITEMS")}):w.jsx(w.Fragment,{children:y.map((v,b)=>y.length===b+1?w.jsxs("div",{ref:h,children:[m(v,b),o&&w.jsx("div",{style:{position:"relative"},ref:l,children:w.jsx(D_,{})})]},b):w.jsx("div",{children:m(v,b)},b))})}return{ObserverWrapper:g,refetch:u}}function Gv(e,t){const[n,r]=k.useState(()=>{if(t&&e.length>t)throw new Error(`Max length exceeded! Array length: ${e.length}. Max length: ${t}`);return e}),i=g=>t&&g.length>t?g.slice(g.length-t):g;return{value:n,set:r,findIndex:(g,m=null)=>n.findIndex(v=>m&&typeof v=="object"&&v!==null?v[m]===g[m]:v===g),push:g=>{r(m=>{const y=Array.isArray(g)?[...m,...g]:[...m,g];return i(y)})},filter:g=>{r(m=>m.filter(g))},update:(g,m)=>{const y=[...n];y.splice(g,1,m),r(y)},remove:g=>{r(m=>m.filter((y,v)=>v!==g))},clear:()=>{r([])},isEmpty:()=>n.length===0,stack:g=>{r(m=>{const y=Array.isArray(g)?[...g,...m]:[g,...m];return t&&y.length>t?y.slice(0,t):y})}}}const n8=k.createContext(null);function HH({children:e}){const[t,n]=k.useState(null),[r,i]=k.useState(!0);return k.useEffect(()=>{t||fetch("/runtime-config.json").then(a=>a.json()).then(a=>{n(a),i(!1)}).catch(()=>{i(!1)})},[t]),r?w.jsx("div",{children:"Loading configuration..."}):t?w.jsx(n8.Provider,{value:t,children:e}):w.jsx("div",{children:"Failed to load configuration."})}function Kv(){const e=k.useContext(n8);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}function RO(){return window.innerHeight>window.innerWidth}function UH(){const[e,t]=k.useState(RO());return k.useEffect(()=>{function n(){t(RO())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}function GH(){const[e,t]=k.useState(!document.hidden),n=()=>{t(!document.hidden)};return k.useEffect(()=>(document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)})),e}function N_(e,t){const[n,r]=k.useState(e),i=k.useRef(null);function a(o){i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{r(o)},t)}return[n,a]}const KH=1e3*30,YH=["mousedown","mousemove","wheel","keydown","touchstart","scroll"],XH=(e,t)=>(e.forEach(n=>window.addEventListener(n,t,{passive:!0})),()=>{e.forEach(n=>window.removeEventListener(n,t))});function r8(e=KH){const t=k.useRef(null),[n,r]=k.useState(!1),[i,a]=k.useState(!1),[o,s]=k.useState(!0),u=k.useCallback(()=>{!o||i||(t.current&&clearTimeout(t.current),r(!1),t.current=window.setTimeout(()=>{r(!0)},e))},[e,i,o]),c=()=>{a(!0),r(!0)},l=()=>{a(!1),u()},d=()=>{s(!1),r(!1),t.current&&clearTimeout(t.current)},h=()=>{s(!0),u()};return k.useEffect(()=>{if(!o)return;const m=XH(YH,u);return u(),()=>{t.current&&clearTimeout(t.current),m()}},[u,o]),[n,{disableIdleMode:d,enableIdleMode:h,lockInIdleMode:c,unlockIdleMode:l}]}function Vd(e){const[t,n]=k.useState(()=>matchMedia(e).matches);return k.useLayoutEffect(()=>{const r=matchMedia(e);function i(){n(r.matches)}return r.addEventListener("change",i),()=>{r.removeEventListener("change",i)}},[e]),t}var go=(e=>(e[e.equal=1]="equal",e[e.greater=2]="greater",e[e.lessThan=3]="lessThan",e[e.like=4]="like",e[e.endsWith=5]="endsWith",e[e.startsWith=6]="startsWith",e[e.in=7]="in",e))(go||{}),mo=(e=>(e[e.readOnly=1]="readOnly",e[e.search=2]="search",e[e.select=3]="select",e[e.multipleSelect=4]="multipleSelect",e[e.boolean=5]="boolean",e[e.date=6]="date",e[e.dateTime=7]="dateTime",e))(mo||{});const i8=k.createContext(null),a8=k.createContext(null),o8=k.createContext(null),s8=k.createContext(null);function L_(){return k.useContext(i8)}function $_(){return k.useContext(a8)}function B_(){return k.useContext(o8)}function z_(){return k.useContext(s8)}const Pc=(e,t,n="")=>btoa(`After=0${ZH(t)}${JH(e)}${n?`&${n}`:""}`),ZH=e=>{const t="&Sort=";if(Object.keys(e).length===0)throw new Error("No sortings found");return Object.keys(e).reduce((n,r)=>{const i=e[r];return n===t?`${n}${i.name}:${i.direction}`:`${n},${i.name}:${i.direction}`},t)},JH=e=>{if(Object.keys(e).length===0)return"";const t="&Filter=[";return Object.keys(e).reduce((n,r,i)=>{const a=e[r];if(!a.value||a.value.length===0)return n;if(a.names.length===1)return n===t?`${n}{"${a.names[0]}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`:`${n},{"${a.names[0]}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`;const o=a.names.reduce((s,u)=>s===""?`${s}{"${u}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`:`${s},{"${u}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`,"");return n===t?`${n}${o}`:`${n},${o}`},t)+"]"};function fp(e){switch(e){case go.equal:return"eq";case go.greater:return"gt";case go.lessThan:return"lt";case go.like:return"like";case go.endsWith:return"like*";case go.startsWith:return"*like";case go.in:return"in";default:throw`Operator ${e} unknown`}}function u8({children:e,contextKey:t,defaultSorting:n,defaultFilters:r,defaultPersistance:i,canTogglePersistance:a}){function o(){if(!i||a&&!localStorage.getItem(t)&&!Object.values(r).find(z=>z.isShared))return r;let P={...r};const j=Object.keys(r).filter(z=>r[z].isShared);if(j.length>0){const z=localStorage.getItem("sharedFilters")??"{}";let I=JSON.parse(z);P=j.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:r[D]},H),P),localStorage.setItem("sharedFilters",JSON.stringify(I))}const $=Object.keys(r).filter(z=>!r[z].isShared);if($.length>0){const z=localStorage.getItem(t)??"{}";let I=JSON.parse(z);P=$.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:r[D]},H),P),localStorage.setItem(t,JSON.stringify(I))}return P}function s(){if(!i||a&&!localStorage.getItem(t)&&!Object.values(n).find(z=>z.isShared))return n;let P={...n};const j=Object.keys(n).filter(z=>n[z].isShared);if(j.length>0){const z=localStorage.getItem("sharedSortings")??"{}";let I=JSON.parse(z);P=j.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:n[D]},H),P),localStorage.setItem("sharedSortings",JSON.stringify(I))}const $=Object.keys(n).filter(z=>!n[z].isShared);if($.length>0){const z=localStorage.getItem(t)??"{}";let I=JSON.parse(z);P=$.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:n[D]},H),P),localStorage.setItem(t,JSON.stringify(I))}return P}const[u,c]=k.useState(o),[l,d]=k.useState(s),[h,g]=k.useState(()=>Pc(u,l,t)),[m,y]=k.useState(i),[v,b]=k.useState(t);k.useEffect(()=>b(t),[t]),k.useEffect(()=>c(o),[r]),k.useEffect(()=>d(s),[n]),k.useEffect(()=>g(Pc(r,n,t)),[t]);const _=k.useCallback(()=>{throw a&&(m&&localStorage.removeItem(t),y(!m)),new Error("Context is not configured to allow persistance toggle")},[]),E=k.useMemo(()=>({settings:{currentPersistance:m,canToggle:a,contextKey:t},setPersistance:_}),[m,t]),S=k.useMemo(()=>({filters:u,setFilters:c}),[u,t]),A=k.useMemo(()=>({sortings:l,setSortings:d}),[l,t]),O=k.useMemo(()=>({cursor:v!==t?Pc(r,n,t):h,updateCursor:()=>{g(()=>Pc(u,l,t))},updateRawCursor:(P,j)=>{const $=Pc(P,j,t);g($)}}),[h,S,A,r,n,t]);return w.jsx(s8.Provider,{value:E,children:w.jsx(i8.Provider,{value:S,children:w.jsx(a8.Provider,{value:A,children:w.jsx(o8.Provider,{value:O,children:e})})})})}function F_(){const e=L_(),t=$_(),n=B_(),r=z_();if(!e||!t||!n||!r)throw new Error("usePagination must be used within PaginationProvider");return{getFilterValue:u=>{const{filters:c}=e;return c[u].value},updateFilters:(u,c=!1)=>{const l={...e.filters,...u};e.setFilters(l);const d=Object.keys(l).filter(h=>l[h].isShared);if(d.length>0){const h=localStorage.getItem("sharedFilters")??"{}",g=JSON.parse(h),m=d.reduce((y,v)=>({...y,[v]:l[v]}),{...g});localStorage.setItem("sharedFilters",JSON.stringify(m))}if(r.settings.currentPersistance){const h=Object.keys(l).filter(v=>!l[v].isShared),g=localStorage.getItem(r.settings.contextKey)??"{}",m=JSON.parse(g),y=h.reduce((v,b)=>({...v,[b]:l[b]}),{...m});localStorage.setItem(r.settings.contextKey,JSON.stringify(y))}c&&n.updateRawCursor(l,t.sortings)},getSortingValue:u=>{const{sortings:c}=t;return c[u].direction},updateSortings:(u,c=!1)=>{const l={...t.sortings,...u};t.setSortings(l);const d=Object.keys(l).filter(h=>l[h].isShared);if(d.length>0){const h=localStorage.getItem("sharedSortings"),g=h?JSON.parse(h):{},m=d.reduce((y,v)=>({...y,[v]:g[v]}),{...g});localStorage.setItem("sharedSortings",JSON.stringify(m))}if(r.settings.currentPersistance){const h=Object.keys(l).filter(v=>!l[v].isShared),g=localStorage.getItem(r.settings.contextKey),m=g?JSON.parse(g):{},y=h.reduce((v,b)=>({...v,[b]:m[b]}),{...m});localStorage.setItem(r.settings.contextKey,JSON.stringify(y))}c&&n.updateRawCursor(e.filters,l)}}}function QH(e=99){const[t,n]=k.useState(!1),[r,i]=k.useState(!1),[a,o]=k.useState([]),[s,u]=ma("tagDistance",0);window.stopRunningLocate=function(){window.rfid.stop()};const c=_=>{try{g(0,"Beginning enumerate");const E=JSON.stringify(_);g(0,`readerID = ${E}`),window.rfid.readerID=_.RFID_Array[0].ID,i(!0),g(0,"Finished enumerate")}catch(E){i(!1),g(3,String(E))}};function l(_){console.log(_),_&&(_.errorCode,_.errorCode==1e3&&_?.vendorMessage==="CONNECTION_EVENT"?(g(0,"Connection event"),m()):g(3,`Error code: ${_.errorCode} Vendor message: ${_.vendorMessage}`))}k.useEffect(()=>{g(0,"Beginning connect"),r&&window.rfid.connect(),g(0,"Finished connect")},[r]);function d(){g(1,r.toString()),g(1,window.rfid),!r&&window.rfid&&(g(0,"Mount hook"),window.onEnumerate=c,window.statusLogger=l,window.rfid.statusEvent="statusLogger(%json);",g(0,`Set statusEvent = ${window.rfid.statusEvent}`),window.rfid.enumRFIDEvent="onEnumerate(%json);",g(0,`Set reportTrigger = ${window.rfid.reportTrigger}`),window.rfid.enumerate())}function h(){window.rfid&&(g(0,"Unomunt hook"),window.scanSingleRfidHandler=()=>{},window.rfid.tagEvent="",window._locate=void 0,window._inventory=()=>{},window.onEnumerate=()=>{},window.rfid.tagID="",g(0,"Stopping rfid"),window.rfid.stop(),g(0,"Rfid stopped"),g(0,"Disconnecting"),window.rfid.disconnect(),g(0,"Disconnected"),n(!1),i(!1))}k.useEffect(()=>{g(0,`isConnected = ${t}`)},[t]);function g(_,E){if(e<=_){let S="";switch(_){case 0:S="Trace -";break;case 1:S="Information -";break;case 2:S="Warning -";break;case 3:S="Error -";break;default:S="Unknown -"}o(A=>[...A,`${S} ${E}`])}}function m(){n(!0)}function y(_){window.rfid.reportTrigger=1,window.rfid.useSoftTrigger=0,window.rfid.reportUniqueTags="false",window.rfid.transport="serial",window.rfid.beepOnRead=1,window.rfid.lowerTriggerType="RFID_SCAN",window.rfid.upperTriggerType="RFID_SCAN",window.rfid.startTriggerType="triggerPress",window.rfid.stopTriggerType="triggerRelease",t&&(window.scanSingleRfidHandler=E=>{const S=E.TagData[0].tagID,A=JSON.stringify(E);g(0,`data = ${A}`),_(S)},window.rfid.tagEvent="scanSingleRfidHandler(%json);")}function v(_){window.rfid.tagEvent="TagLocateHandler(%json)";function E(S){u(S.TagLocate)}window.rfid.reportUniqueTags="false",window.rfid.transport="serial",window.rfid.reportTrigger=0,window.TagLocateHandler=E,window.rfid.beepOnRead=1,window.rfid.lowerTriggerType="NO_ACTION",window.rfid.upperTriggerType="NO_ACTION",window.rfid.startTriggerType="immediate",window.rfid.useSoftTrigger=0,window.rfid.antennaSelected=1,window.rfid.tagID=_,window.rfid.locateTag()}function b(_){try{t&&(g(0,"Beginning inventoryScan"),window.rfid.reportTrigger=0,window.rfid.useSoftTrigger=0,window.rfid.reportUniqueTags="true",window.rfid.transport="serial",window.rfid.beepOnRead=1,window.rfid.lowerTriggerType="RFID_SCAN",window.rfid.upperTriggerType="RFID_SCAN",window.rfid.startTriggerType="triggerPress",window.rfid.stopTriggerType="triggerRelease",window._inventory=E=>{_(E.TagData),g(0,`data = ${E.TagData[0].tagID}`),g(0,`datacomplete = ${E}`)},window.rfid.tagEvent="_inventory(%json);",g(0,`tagEvent = ${window.rfid.tagEvent}`),g(0,"Ended inventoryScan"))}catch(E){g(3,String(E))}}return{locateTag:v,inventoryScan:b,isConnected:t,canConnect:r,debugLog:a,mount:d,unMount:h,logDebug:g,scanSingleElement:y}}function Yv(e=".scrollable-container"){const t=new Map;k.useEffect(()=>{const n=document.querySelectorAll(e),r=a=>{a.classList.add("show-scrollbar"),setTimeout(()=>{a.classList.remove("show-scrollbar")},2e3)},i=a=>{a.classList.add("show-scrollbar"),t.has(a)&&clearTimeout(t.get(a));const o=window.setTimeout(()=>{a.classList.remove("show-scrollbar")},1e3);t.set(a,o)};return n.forEach(a=>{r(a);const o=()=>i(a);return a.addEventListener("scroll",o),()=>{a.removeEventListener("scroll",o),t.has(a)&&clearTimeout(t.get(a))}}),()=>{t.forEach(a=>clearTimeout(a))}},[e])}function c8({bufferName:e,callback:t}){const[n,r]=k.useState("- - - - - - - -"),[i,a]=k.useState(!1),[o,s]=k.useState(0),[u,c]=k.useState([]),l=k.useRef("- - - - - - - -"),d=k.useRef(null),h=A=>{const O=JSON.parse(localStorage.getItem(e)||"[]");!O.includes(A)&&A!=="- - - - - - - -"&&(O.push(A),localStorage.setItem(e,JSON.stringify(O)))},g=A=>{const P=JSON.parse(localStorage.getItem(e)||"[]").filter(j=>j!==A);localStorage.setItem(e,JSON.stringify(P))},m=A=>{r(l.current);const O=l.current;if(A!=="- - - - - - - -"&&typeof A=="string"){const P=t(l.current);if(P instanceof Promise)P.then(j=>{c($=>[...$,j]),g(l.current)}).catch(()=>{h(O),y()});else return P}},y=()=>{const A=e,O=localStorage.getItem(A);if(O){const P=setInterval(async()=>{const j=o;if(j>=9){clearInterval(P);return}await v(JSON.parse(O))?(clearInterval(P),s(0)):s(j+1)},5e3);return()=>clearInterval(P)}},v=async A=>{let O=!0;for(const P of A)try{const j=await t(P);if(j instanceof Promise)j.then($=>{c(z=>[...z,$])}),g(P);else return j}catch(j){console.trace("Error:",P,j),O=!1}return O},b=A=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{m(A),l.current="- - - - - - - -"},250)},_=k.useCallback(A=>{!A.repeat&&A.key.length===1&&A.key!=="Unidentified"&&(l.current==="- - - - - - - -"?l.current=A.key:(l.current+=A.key,b(l.current)))},[]),E={activateScanner:()=>{window.addEventListener("keydown",_),a(!0),S(),console.log(`${e} scanner activated`)},disableScanner:()=>{window.removeEventListener("keydown",_),a(!1),console.log(`${e} scanner disabled`)}},S=()=>{l.current="- - - - - - - -"};return{lastScanned:n,scannerActions:E,isScannerActive:i,labelRead:u}}const l8=k.createContext(void 0);function f8(){const e=k.useContext(l8);if(e===void 0)throw new Error("BreadCrumbContext must be used within an BreadCrumbProvider");return e}function d8(){const[e,t]=ma("hotKeysDialogState",!1),n=k.useCallback(()=>{t(o=>!o)},[t]),r=k.useCallback(()=>{t(!1)},[t]),i=k.useCallback(()=>{t(!0)},[t]),a=k.useMemo(()=>({toggle:n,close:r,open:i}),[n,r,i]);return[e,a]}function W_(e){const[t,n]=ma("languageDialogState",!1),[r]=ma("languageDialogPopover",!1),{i18n:i}=Et.useTranslation(),a=i.resolvedLanguage??"",o=k.useCallback(()=>{n(!1)},[n]),s=k.useCallback(()=>{n(!0)},[n]),u=k.useCallback(()=>{n(!0);const l=Object.keys(e),d=l.indexOf(a);let h;d!==-1&&d<l.length-1?h=l[d+1]:h=l[0],i.changeLanguage(h)},[n,i,a,e]),c=k.useMemo(()=>({close:o,open:s,toggle:u}),[o,s,u]);return[t,c,r]}const h8=ci(gH,{shouldForwardProp:e=>e==="children"||e==="elevation"||e==="variant"})(({theme:e,backgroundColor:t,blur:n,saturate:r="180%",color:i,borderRadius:a="24px",border:o,padding:s="2vw",width:u="100%",height:c="100%",marginLeft:l="auto",marginRight:d="auto",marginTop:h="auto",marginBottom:g="auto",style:m={}})=>({display:"flex",flexDirection:"column",width:u,height:c,backgroundColor:t||e.palette.background.paper,backdropFilter:n&&`blur(${n}) saturate(${r})`,color:i||e.palette.primary.main,border:o,padding:s,borderRadius:a,marginLeft:l,marginRight:d,marginTop:h,marginBottom:g,...m}));function p8({children:e,value:t,index:n,styles:r}){return w.jsx(Vv,{id:`tabpanel-${n}`,role:"tabpanel","aria-labelledby":`tab-${n}`,display:t!==n?"none":"flex",sx:r,children:e})}function g8({tabs:e,value:t,onChange:n,color:r="primary.main",textColor:i="inherit",fullWidth:a=!1,size:o="medium",height:s,width:u}){const{t:c}=Et.useTranslation(),l=(d,h)=>{h!==null&&n(d,h)};return w.jsx(ie.ToggleButtonGroup,{value:t,exclusive:!0,onChange:l,fullWidth:a,"aria-label":"toggle buttons as custom rounded tabs",children:e.map((d,h)=>w.jsx(ie.ToggleButton,{disableRipple:!0,disableFocusRipple:!0,size:o,value:typeof d=="string"?h:d?.value,selected:typeof d=="string"?t===h:t===d?.value,sx:{height:s,width:u,fontWeight:600,minWidth:"160px",textTransform:"capitalize","&.Mui-selected":{color:i,backgroundColor:r,transition:"background-color 0.2s ease-in-out",":hover":{backgroundColor:r}},borderRadius:h===0?"24px 0px 0px 24px":h===e.length-1?"0px 24px 24px 0px":void 0},children:w.jsxs(xn,{gap:"4px",alignItems:"center",children:[typeof d!="string"&&d?.icon?d?.icon:typeof d=="string"?t===h&&w.jsx(Pw,{}):t===d?.value&&w.jsx(Pw,{}),c(typeof d=="string"?d:d?.label)]})},typeof d=="string"?d:d?.label))})}function v8({tabs:e,value:t,onChange:n,color:r="primary.main",textColor:i="inherit",fullWidth:a=!1}){const{t:o}=Et.useTranslation();return w.jsx(ie.Tabs,{value:t,onChange:n,"aria-label":"custom tabs",variant:"scrollable",scrollButtons:e.length>3,slotProps:{indicator:{children:w.jsx("span",{className:"MuiTabs-indicatorSpan"})}},sx:{"& .Mui-selected":{color:`${i}!important`},"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:r}},children:e.map((s,u)=>w.jsx(ie.Tab,{value:typeof s=="string"?u:s?.value,id:typeof s=="string"?s:s?.label,label:o(typeof s=="string"?s:s?.label),"aria-controls":`tabPanel-${u}`,icon:typeof s=="string"?void 0:s?.icon,sx:a?{minWidth:"fit-content",flex:1}:{}},typeof s=="string"?s:s?.label))})}function m8({tabs:e,value:t,onChange:n,color:r,textColor:i="inherit",variant:a="standard",fullWidth:o=!1,size:s="medium"}){return a==="rounded"?w.jsx(g8,{tabs:e,value:t,onChange:n,color:r,fullWidth:o,size:s,textColor:i}):w.jsx(v8,{tabs:e,value:t,onChange:n,color:r,textColor:i,fullWidth:o})}function eU({doLogin:e,pendingLogin:t,doLogout:n,pendingLogout:r}){const i=Gv([]),a=Kv(),o=[d=>{const h={credentials:{username:d.get("username")?.toString()||"",password:d.get("password")?.toString()||"",rFID:d.get("rfid")?.toString()||"",client_id:a.CLIENT_ID}};e({variables:h,onCompleted:g=>{const m=g.authMutation.login,{expires:y,token:v,errors:b,username:_}=m;if(b&&b.length>0){i.set((m.errors??[]).map(({code:E,description:S})=>({code:E,description:S})));return}a.AUTH_SCHEMA!=="Cookies"&&v&&localStorage.setItem("token",`Bearer ${v}`),y&&localStorage.setItem("authExpiration",y),_&&localStorage.setItem("username",_)}})},t],s=[()=>{n({variables:{},onCompleted:()=>{localStorage.removeItem("token"),localStorage.removeItem("authExpiration"),localStorage.removeItem("username")}})},r],u=localStorage.getItem("authExpiration")!==void 0&&localStorage.getItem("authExpiration")!==null&&new Date(localStorage.getItem("authExpiration")).getTime()>new Date().getTime(),c=!!(a.AUTH_SCHEMA!=="Cookies"?localStorage.getItem("token")&&u:u),l={login:o,logout:s,removeError:i.remove};return[c,i.value,l]}const y8=k.createContext(null);function tU({children:e,doLogin:t,pendingLogin:n,doLogout:r,pendingLogout:i}){const[a,o,{login:s,logout:u,removeError:c}]=eU({doLogin:t,pendingLogin:n,doLogout:r,pendingLogout:i});return w.jsx(y8.Provider,{value:[a,o,{login:s,logout:u,removeError:c}],children:e})}function b8(){const e=k.useContext(y8);if(e===null)throw new Error("useAuthContext must be used within an AuthProvider");return e}const nU={MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:vH}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},Cw={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:nU,typography:{fontFamily:"Manrope"}},w8={light:e=>jO.deepmerge({...Cw,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>jO.deepmerge({...Cw,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function rU({children:e,theme:t}){const[n]=Bo();return w.jsx(ie.ThemeProvider,{theme:ie.createTheme(w8[n](t)),children:e})}function iU({ChangePasswordWidget:e,children:t,title:n,tabs:r,backgroundColor:i,blur:a,elevation:o,color:s,borderRadius:u,border:c,padding:l,width:d,height:h,redirect:g=!0,redirectPath:m="/",loggedCallback:y,logo:v}){const{t:b}=Et.useTranslation(),[_,E]=k.useState(!1),[S,A,{login:O,removeError:P}]=b8(),j=Vd("(min-height:700px)"),[$,z]=O,[I,H]=k.useState(0),[D]=Bo(),C=(L,N)=>{H(N)};return k.useEffect(()=>{A.length>0&&A.find(({code:L})=>L==="PASSWORD_EXPIRED")&&E(!0)},[A]),k.useEffect(()=>{y&&S&&y()},[S,y]),k.useEffect(()=>{const L=A.map((N,V)=>setTimeout(()=>P(V),2e3));return()=>{L.forEach(clearTimeout)}},[A,P]),S&&g?w.jsx(pH.Navigate,{to:m,replace:!0}):w.jsx(w.Fragment,{children:w.jsx(h8,{elevation:o,variant:o!==void 0?"elevation":"outlined",blur:a,border:c,color:s,backgroundColor:i,borderRadius:u,padding:l,width:d,height:h,children:w.jsxs(Uv,{height:"100%",marginTop:"auto",marginBottom:"auto",justifyContent:"space-between",children:[r&&w.jsx(xn,{borderBottom:"1px solid",borderColor:"divider",children:r&&r.length>0&&w.jsx(m8,{value:I,onChange:C,tabs:r,color:s})}),A.length>0&&w.jsx(ie.Stack,{spacing:1,sx:{padding:"16px",minHeight:"20%",justifyContent:"center"},children:A.map(({code:L,description:N},V)=>w.jsx(ie.Alert,{variant:"filled",severity:"error",onClose:()=>P(V),children:b(L||N)},L))}),v&&w.jsx(xn,{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",flex:1},children:w.jsx("img",{src:v,alt:"Logo",width:j?"60px":"40px"})}),w.jsx(xn,{flex:1,alignContent:"center",flexDirection:"column",children:w.jsx(ie.Typography,{variant:j?"h4":"h5",sx:{fontWeight:300,textAlign:"center",marginTop:"auto",marginBottom:"auto",color:D==="dark"?"#fff":"#000"},children:n})}),w.jsx("form",{id:"authForm",action:$,children:_&&e?w.jsx(e,{pending:z}):r&&r.length>0?r.map(({label:L,child:N},V)=>w.jsx(p8,{value:I,index:V,children:w.jsx(N,{pending:z})},L)):t})]})})})}function aU({callback:e,title:t,subtitle:n}){const{scannerActions:r}=c8({bufferName:"BadgeScanner",callback:e});return k.useEffect(()=>(r.activateScanner(),()=>{r.disableScanner()}),[r]),w.jsxs(qd,{sx:{flexDirection:"column",justifyContent:"space-around",height:"100%"},children:[w.jsxs(ie.Box,{children:[w.jsx(ie.Typography,{variant:"h4",children:_s.t(t)}),w.jsx(ie.Typography,{variant:"h6",children:_s.t(n)})]}),w.jsx(mH,{sx:{fontSize:"10rem"}})]})}function x8({id:e,children:t,ratio:n=0,unit:r=1}){const i=100/n,a=Array.from({length:n}).reduce((o,s,u)=>{const c=u*i,l=u%2===0?1:0;return o[`${c}%`]={opacity:l},o},{});return w.jsx(Vv,{sx:{[`@keyframes blink-${e}`]:a,animation:`blink-${e} ${r}s infinite`,display:"inline-flex"},children:t})}function _8(){const{crumbs:e,slice:t}=f8(),{t:n}=Et.useTranslation();return w.jsxs(lu,{children:[w.jsx(ie.Breadcrumbs,{"aria-label":"breadcrumb",sx:{padding:"8px"},children:e.map((r,i)=>w.jsx(ie.Link,{component:"button",color:"inherit",underline:"hover",sx:{cursor:"pointer",background:"none",border:"none",padding:0},onClick:a=>{a.preventDefault(),t(i)},children:n(r.text)},i))}),w.jsx(ie.Divider,{}),w.jsx(Xc,{gap:2,flexWrap:"wrap",alignContent:"center",overflow:"hidden",padding:0,children:e[e.length-1].component})]})}function oU({root:e}){const[t,n]=k.useState([e]),r=a=>n(o=>[...o,a]),i=a=>n(o=>o.slice(0,a+1));return w.jsx(l8.Provider,{value:{crumbs:t,push:r,slice:i},children:w.jsx(_8,{})})}function E8({value:e}){const{t}=Et.useTranslation(),[n,r]=k.useState(!1),i=()=>{e&&(r(!0),navigator.clipboard.writeText(e))};return k.useEffect(()=>{n&&setTimeout(()=>{r(!1)},1e3)},[n]),w.jsx(ie.Tooltip,{placement:"top",title:t(n?"COPIED":"COPY"),disableFocusListener:!0,disableTouchListener:!0,arrow:!0,children:w.jsx(ie.IconButton,{id:"copy-to-clipboard-icnBtn",onClick:i,color:n?"primary":"default",disabled:!e,size:"small",children:n?w.jsx(Pw,{}):w.jsx(yH,{})})})}function S8({id:e,anchor:t,onClose:n,children:r,width:i,centerPopover:a}){return w.jsx(ie.Popover,{id:e,open:!!t,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:a?"center":"left"},transformOrigin:{vertical:"top",horizontal:a?"center":"left"},slotProps:{paper:{sx:{overflow:"hidden",minWidth:i,width:i}}},children:r})}function jw({Icon:e,label:t,menuContent:n,centerPopover:r}){const{t:i}=Et.useTranslation(),[a,o]=k.useState(null),s=l=>{o(l.currentTarget)},u=()=>{o(null)},c=k.Children.map(n,l=>k.isValidElement(l)?k.cloneElement(l,{onClose:u}):l);return w.jsxs(w.Fragment,{children:[w.jsx(ie.Tooltip,{title:i("OPEN_MENU",{value:i(t)}),children:w.jsx(ie.Button,{id:`${t}-btn`,variant:"outlined",onClick:s,startIcon:w.jsx(e,{}),children:i(t)})}),w.jsx(S8,{centerPopover:r,id:`${t}-menu`,anchor:a,onClose:u,children:c})]})}function A8({styles:e={},languages:t,flags:n,isPopover:r}){const{i18n:i}=Et.useTranslation(),[,a]=ma("languageDialogPopover",r);k.useEffect(()=>{a(r??!1)},[r,a]);const[o,s]=W_(t),u=n[i.language];return u?w.jsx(bH,{id:"flags-btn",role:"button","aria-label":"change language flag button",onClick:s.open,sx:e,children:w.jsx(u,{size:36})}):(console.warn(`No flag component found for language: ${i.language}`),null)}function Xv(){const[e,t]=ma("sidebarIsOpenState",!1),n=k.useCallback(()=>{t(o=>!o)},[t]),r=k.useCallback(()=>{t(!1)},[t]),i=k.useCallback(()=>{t(!0)},[t]),a=k.useMemo(()=>({toggle:n,close:r,open:i}),[n,r,i]);return[e,a]}const O8="300px",T8="56px",q_=.5,P8=ci(wH,{shouldForwardProp:e=>e!=="open"&&e!=="isMobile"&&e!=="isIdle"})(({theme:e,open:t,isMobile:n,isIdle:r})=>({flexShrink:0,boxSizing:"border-box",whiteSpace:"nowrap",height:"100% !important","& .MuiDrawer-paper":{opacity:n&&!t||r?0:1,position:"relative",width:r?0:n?t?"98vw":"0":t?O8:T8,transition:`all ${q_}s ease-in-out`,overflow:"hidden",backgroundColor:e.palette.background.paper}}));function sU({children:e,Logo:t,theme:n,isIdle:r}){const{i18n:i}=Et.useTranslation(),a=Vd("(max-width: 600px)"),[o,s]=Xv(),[u,c]=k.Children.toArray(e),l=i.dir();return w.jsxs(P8,{id:"sidebar-drawer",dir:l,variant:"permanent",anchor:l==="rtl"?"right":"left",open:o,onClose:s.close,slotProps:{paper:{variant:"outlined"}},isMobile:a,"data-pw":"sidebar",isIdle:r,children:[t&&w.jsx(xn,{pt:"1vw",pb:"1vw",alignItems:"center",justifyContent:"center",minHeight:"64px",marginTop:"1vh",children:w.jsx(ie.Collapse,{in:o,timeout:500,orientation:"horizontal",collapsedSize:"0px",children:w.jsx(t,{width:"200px",height:"64px",theme:n})})}),w.jsx(ie.Box,{sx:{flexGrow:1,overflowY:"scroll",overflowX:"hidden",scrollbarWidth:"none"},children:u}),w.jsx(ie.Divider,{}),c]})}function uU({onClick:e,isIdle:t}){const[n]=Bo(),[r]=Xv(),[i,a]=k.useState(r);k.useEffect(()=>{t&&r&&(a(!1),e())},[t,r,e]),k.useEffect(()=>{a(r)},[r]);const o=()=>{a(!i),e()};return w.jsxs("div",{id:"menu-icon","aria-label":"menu-icon",style:{marginRight:"19px"},className:`${n} ${i?"open":"closed"}`,onClick:o,children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]})}const cU=Hv.styled(e=>w.jsx(_H,{disableRipple:!0,...e}))(({theme:e})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:2,margin:3,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,border:0},"& .MuiSwitch-thumb:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundColor:"#fff",borderRadius:"50%",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path fill="${encodeURIComponent("#111")}" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"/></svg>')`}},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,"&::before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundColor:"#79747e",borderRadius:"50%",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url('data:image/svg+xml;utf8,<svg fill="${encodeURIComponent("#fff")}" width="16" height="16" viewBox="-6 -6 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.314 5.9l3.535-3.536A1 1 0 1 0 9.435.95L5.899 4.485 2.364.95A1 1 0 1 0 .95 2.364l3.535 3.535L.95 9.435a1 1 0 1 0 1.414 1.414l3.535-3.535 3.536 3.535a1 1 0 1 0 1.414-1.414L7.314 5.899z" /></svg>')`}},"& .MuiSwitch-track":{border:"2px solid #79747e",borderRadius:26/2,backgroundColor:"#e6e0e9",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));function C8({label:e,value:t,onChange:n}){const{t:r}=Et.useTranslation();return w.jsx(xH,{labelPlacement:"start",control:w.jsx(cU,{sx:{ml:1.69},checked:t,onChange:n}),label:e&&r(e),slotProps:{typography:{noWrap:!0}}})}function lU({translation:e,globalStateString:t,defaultValue:n}){const[r,i]=ma(t,n),a=o=>{i(o.target.checked)};return w.jsx(C8,{label:e,value:r,onChange:a})}var dd=(e=>(e.Column="column",e.Row="row",e))(dd||{});function Zv({caption:e,value:t,captionColor:n="textSecondary",valueColor:r="textPrimary",reverse:i,direction:a=dd.Column,width:o,height:s,gap:u="4px",flex:c,padding:l,textAlign:d,captionStyle:h,valueStyle:g,fallback:m="N/A",enableCopy:y,className:v}){const{t:b}=Et.useTranslation();return w.jsxs(xn,{className:v,flexDirection:i?`${a}-reverse`:a,alignItems:a===dd.Row?"center":"stretch",width:o,gap:u,height:s,flex:c,padding:l,children:[w.jsx(ie.Typography,{variant:"body2",color:n,sx:{textAlign:d,userSelect:"none",...h},noWrap:!0,children:b(e)}),typeof t=="string"||typeof t=="number"||!t&&(typeof m=="string"||typeof m=="number")?w.jsxs(xn,{alignItems:"center",gap:"8px",children:[w.jsx(ie.Typography,{variant:"body1",color:r,sx:{textAlign:d,userSelect:"none",...g},noWrap:!0,children:t||m}),y&&w.jsx(E8,{value:t?.toString()})]}):t||m]})}function fU({CustomAvatarIcon:e,title:t,displayValue:n,subtitle:r}){const{t:i}=Et.useTranslation(),[a]=Bo(),o=a==="light"?"#e0e0e0":"#303030";return w.jsxs(ie.Paper,{sx:{borderRadius:"10px",border:"1px solid "+o,padding:"8px",gap:"8px",alignItems:"center",minWidth:"230px",display:"flex"},children:[w.jsx(ie.Avatar,{sx:{backgroundColor:"#12322f",width:"80px",height:"80px"},children:e}),w.jsxs(Pi,{textAlign:"left",margin:"auto",children:[w.jsx(ie.Typography,{variant:"caption",color:"grey",sx:{margin:0,lineHeight:1},children:i(t)}),w.jsx(ie.Typography,{variant:"body1",sx:{padding:"0!important",fontSize:"2rem",margin:1,ml:0,fontWeight:600,lineHeight:1.1},children:i(n)}),typeof r=="string"?w.jsx(ie.Typography,{sx:{margin:0,lineHeight:1.2,fontSize:".75rem"},variant:"body2",children:i(r||"")}):r]})]})}function j8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=j8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ot(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=j8(e))&&(r&&(r+=" "),r+=t);return r}var dp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dU(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var zy={},Fy={},IO;function hU(){return IO||(IO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t}(Fy)),Fy}var Wy={},DO;function M8(){return DO||(DO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t}(Wy)),Wy}var qy={},NO;function k8(){return NO||(NO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t}(qy)),qy}var Vy={},LO;function V_(){return LO||(LO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let a=0,o="",s="",u=!1;for(n.charCodeAt(0)===46&&(r.push(""),a++);a<i;){const c=n[a];s?c==="\\"&&a+1<i?(a++,o+=n[a]):c===s?s="":o+=c:u?c==='"'||c==="'"?s=c:c==="]"?(u=!1,r.push(o),o=""):o+=c:c==="["?(u=!0,o&&(r.push(o),o="")):c==="."?o&&(r.push(o),o=""):o+=c,a++}return o&&r.push(o),r}e.toPath=t}(Vy)),Vy}var $O;function H_(){return $O||($O=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hU(),n=M8(),r=k8(),i=V_();function a(s,u,c){if(s==null)return c;switch(typeof u){case"string":{if(t.isUnsafeProperty(u))return c;const l=s[u];return l===void 0?n.isDeepKey(u)?a(s,i.toPath(u),c):c:l}case"number":case"symbol":{typeof u=="number"&&(u=r.toKey(u));const l=s[u];return l===void 0?c:l}default:{if(Array.isArray(u))return o(s,u,c);if(Object.is(u?.valueOf(),-0)?u="-0":u=String(u),t.isUnsafeProperty(u))return c;const l=s[u];return l===void 0?c:l}}}function o(s,u,c){if(u.length===0)return c;let l=s;for(let d=0;d<u.length;d++){if(l==null||t.isUnsafeProperty(u[d]))return c;l=l[u[d]]}return l===void 0?c:l}e.get=a}(zy)),zy}var Hy,BO;function pU(){return BO||(BO=1,Hy=H_().get),Hy}var gU=pU();const Es=Va(gU);var Xn=e=>e===0?0:e>0?1:-1,Ar=e=>typeof e=="number"&&e!=+e,ru=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Me=e=>(typeof e=="number"||e instanceof Number)&&!Ar(e),si=e=>Me(e)||typeof e=="string",vU=0,ko=e=>{var t=++vU;return"".concat(e||"").concat(t)},zr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Me(t)&&typeof t!="string")return r;var a;if(ru(t)){if(n==null)return r;var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Ar(a)&&(a=r),i&&n!=null&&a>n&&(a=n),a},R8=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},cr=(e,t)=>Me(e)&&Me(t)?n=>e+n*(t-e):()=>t;function hc(e,t,n){return Me(e)&&Me(t)?e+n*(t-e):t}function I8(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Es(r,t))===n)}var mU=e=>{if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,u=0,c=0,l=0;l<t;l++)u=e[l].cx||0,c=e[l].cy||0,n+=u,r+=c,i+=u*c,a+=u*u,o=Math.min(o,u),s=Math.max(s,u);var d=t*a!==n*n?(t*i-n*r)/(t*a-n*n):0;return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},Rt=e=>e===null||typeof e>"u",Hd=e=>Rt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),yU=["viewBox","children"],bU=["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"],zO=["points","pathLength"],Uy={svg:yU,polygon:zO,polyline:zO},U_=["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"],G_=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(k.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{U_.includes(i)&&(r[i]=a=>n[i](n,a))}),r},wU=(e,t,n)=>r=>(e(t,n,r),null),_l=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];U_.includes(i)&&typeof a=="function"&&(r||(r={}),r[i]=wU(a,t,n))}),r},FO=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",WO=null,Gy=null,D8=e=>{if(e===WO&&Array.isArray(Gy))return Gy;var t=[];return k.Children.forEach(e,n=>{Rt(n)||(k_.isFragment(n)?t=t.concat(D8(n.props.children)):t.push(n))}),Gy=t,WO=e,t};function El(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>FO(i)):r=[FO(t)],D8(e).forEach(i=>{var a=Es(i,"type.displayName")||Es(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}var Jv=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,xU=(e,t,n,r)=>{var i,a=(i=r&&Uy?.[r])!==null&&i!==void 0?i:[];return t.startsWith("data-")||typeof e!="function"&&(r&&a.includes(t)||bU.includes(t))||n&&U_.includes(t)},it=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(k.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(a=>{var o;xU((o=r)===null||o===void 0?void 0:o[a],a,t,n)&&(i[a]=r[a])}),i},_U=["children","width","height","viewBox","className","style","title","desc"];function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.apply(null,arguments)}function EU(e,t){if(e==null)return{};var n,r,i=SU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var K_=k.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:u,desc:c}=e,l=EU(e,_U),d=a||{width:r,height:i,x:0,y:0},h=Ot("recharts-surface",o);return B.createElement("svg",Mw({},it(l,!0,"svg"),{className:h,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),B.createElement("title",null,u),B.createElement("desc",null,c),n)}),AU=["children","className"];function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(null,arguments)}function OU(e,t){if(e==null)return{};var n,r,i=TU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function TU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Vt=B.forwardRef((e,t)=>{var{children:n,className:r}=e,i=OU(e,AU),a=Ot("recharts-layer",r);return B.createElement("g",kw({className:a},it(i,!0),{ref:t}),n)}),N8=k.createContext(null),PU=()=>k.useContext(N8);function pt(e){return function(){return e}}const qO=Math.abs,vr=Math.atan2,vo=Math.cos,CU=Math.max,Fc=Math.min,ti=Math.sin,ln=Math.sqrt,wr=1e-12,Ss=Math.PI,xg=Ss/2,bs=2*Ss;function jU(e){return e>1?0:e<-1?Ss:Math.acos(e)}function VO(e){return e>=1?xg:e<=-1?-xg:Math.asin(e)}const Rw=Math.PI,Iw=2*Rw,Ys=1e-6,MU=Iw-Ys;function L8(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function kU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return L8;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Ud=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?L8:kU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=r-t,c=i-n,l=o-t,d=s-n,h=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ys)if(!(Math.abs(d*u-c*l)>Ys)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-o,m=i-s,y=u*u+c*c,v=g*g+m*m,b=Math.sqrt(y),_=Math.sqrt(h),E=a*Math.tan((Rw-Math.acos((y+h-v)/(2*b*_)))/2),S=E/_,A=E/b;Math.abs(S-1)>Ys&&this._append`L${t+S*l},${n+S*d}`,this._append`A${a},${a},0,0,${+(d*g>l*m)},${this._x1=t+A*u},${this._y1=n+A*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),c=t+s,l=n+u,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Ys||Math.abs(this._y1-l)>Ys)&&this._append`L${c},${l}`,r&&(h<0&&(h=h%Iw+Iw),h>MU?this._append`A${r},${r},0,1,${d},${t-s},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=l}`:h>Ys&&this._append`A${r},${r},0,${+(h>=Rw)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Y_(){return new Ud}Y_.prototype=Ud.prototype;function RU(e=3){return new Ud(+e)}function Gd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ud(t)}function IU(e){return e.innerRadius}function DU(e){return e.outerRadius}function NU(e){return e.startAngle}function LU(e){return e.endAngle}function $U(e){return e&&e.padAngle}function BU(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,l=o-i,d=s-a,h=d*u-l*c;if(!(h*h<wr))return h=(l*(t-a)-d*(e-i))/h,[e+h*u,t+h*c]}function hp(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/ln(s*s+u*u),l=c*u,d=-c*s,h=e+l,g=t+d,m=n+l,y=r+d,v=(h+m)/2,b=(g+y)/2,_=m-h,E=y-g,S=_*_+E*E,A=i-a,O=h*y-m*g,P=(E<0?-1:1)*ln(CU(0,A*A*S-O*O)),j=(O*E-_*P)/S,$=(-O*_-E*P)/S,z=(O*E+_*P)/S,I=(-O*_+E*P)/S,H=j-v,D=$-b,C=z-v,L=I-b;return H*H+D*D>C*C+L*L&&(j=z,$=I),{cx:j,cy:$,x01:-l,y01:-d,x11:j*(i/A-1),y11:$*(i/A-1)}}function zU(){var e=IU,t=DU,n=pt(0),r=null,i=NU,a=LU,o=$U,s=null,u=Gd(c);function c(){var l,d,h=+e.apply(this,arguments),g=+t.apply(this,arguments),m=i.apply(this,arguments)-xg,y=a.apply(this,arguments)-xg,v=qO(y-m),b=y>m;if(s||(s=l=u()),g<h&&(d=g,g=h,h=d),!(g>wr))s.moveTo(0,0);else if(v>bs-wr)s.moveTo(g*vo(m),g*ti(m)),s.arc(0,0,g,m,y,!b),h>wr&&(s.moveTo(h*vo(y),h*ti(y)),s.arc(0,0,h,y,m,b));else{var _=m,E=y,S=m,A=y,O=v,P=v,j=o.apply(this,arguments)/2,$=j>wr&&(r?+r.apply(this,arguments):ln(h*h+g*g)),z=Fc(qO(g-h)/2,+n.apply(this,arguments)),I=z,H=z,D,C;if($>wr){var L=VO($/h*ti(j)),N=VO($/g*ti(j));(O-=L*2)>wr?(L*=b?1:-1,S+=L,A-=L):(O=0,S=A=(m+y)/2),(P-=N*2)>wr?(N*=b?1:-1,_+=N,E-=N):(P=0,_=E=(m+y)/2)}var V=g*vo(_),Z=g*ti(_),K=h*vo(A),R=h*ti(A);if(z>wr){var W=g*vo(E),U=g*ti(E),Y=h*vo(S),ae=h*ti(S),re;if(v<Ss)if(re=BU(V,Z,Y,ae,W,U,K,R)){var ge=V-re[0],ye=Z-re[1],_e=W-re[0],ce=U-re[1],pe=1/ti(jU((ge*_e+ye*ce)/(ln(ge*ge+ye*ye)*ln(_e*_e+ce*ce)))/2),Oe=ln(re[0]*re[0]+re[1]*re[1]);I=Fc(z,(h-Oe)/(pe-1)),H=Fc(z,(g-Oe)/(pe+1))}else I=H=0}P>wr?H>wr?(D=hp(Y,ae,V,Z,g,H,b),C=hp(W,U,K,R,g,H,b),s.moveTo(D.cx+D.x01,D.cy+D.y01),H<z?s.arc(D.cx,D.cy,H,vr(D.y01,D.x01),vr(C.y01,C.x01),!b):(s.arc(D.cx,D.cy,H,vr(D.y01,D.x01),vr(D.y11,D.x11),!b),s.arc(0,0,g,vr(D.cy+D.y11,D.cx+D.x11),vr(C.cy+C.y11,C.cx+C.x11),!b),s.arc(C.cx,C.cy,H,vr(C.y11,C.x11),vr(C.y01,C.x01),!b))):(s.moveTo(V,Z),s.arc(0,0,g,_,E,!b)):s.moveTo(V,Z),!(h>wr)||!(O>wr)?s.lineTo(K,R):I>wr?(D=hp(K,R,W,U,h,-I,b),C=hp(V,Z,Y,ae,h,-I,b),s.lineTo(D.cx+D.x01,D.cy+D.y01),I<z?s.arc(D.cx,D.cy,I,vr(D.y01,D.x01),vr(C.y01,C.x01),!b):(s.arc(D.cx,D.cy,I,vr(D.y01,D.x01),vr(D.y11,D.x11),!b),s.arc(0,0,h,vr(D.cy+D.y11,D.cx+D.x11),vr(C.cy+C.y11,C.cx+C.x11),b),s.arc(C.cx,C.cy,I,vr(C.y11,C.x11),vr(C.y01,C.x01),!b))):s.arc(0,0,h,A,S,b)}if(s.closePath(),l)return s=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ss/2;return[vo(d)*l,ti(d)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:pt(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:pt(+l),c):t},c.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:pt(+l),c):n},c.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:pt(+l),c):r},c.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:pt(+l),c):i},c.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:pt(+l),c):a},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:pt(+l),c):o},c.context=function(l){return arguments.length?(s=l??null,c):s},c}var FU=Array.prototype.slice;function Qv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $8(e){this._context=e}$8.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 Sl(e){return new $8(e)}function X_(e){return e[0]}function Z_(e){return e[1]}function e0(e,t){var n=pt(!0),r=null,i=Sl,a=null,o=Gd(s);e=typeof e=="function"?e:e===void 0?X_:pt(e),t=typeof t=="function"?t:t===void 0?Z_:pt(t);function s(u){var c,l=(u=Qv(u)).length,d,h=!1,g;for(r==null&&(a=i(g=o())),c=0;c<=l;++c)!(c<l&&n(d=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(d,c,u),+t(d,c,u));if(g)return a=null,g+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:pt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:pt(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:pt(!!u),s):n},s.curve=function(u){return arguments.length?(i=u,r!=null&&(a=i(r)),s):i},s.context=function(u){return arguments.length?(u==null?r=a=null:a=i(r=u),s):r},s}function Rc(e,t,n){var r=null,i=pt(!0),a=null,o=Sl,s=null,u=Gd(c);e=typeof e=="function"?e:e===void 0?X_:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Z_:pt(+n);function c(d){var h,g,m,y=(d=Qv(d)).length,v,b=!1,_,E=new Array(y),S=new Array(y);for(a==null&&(s=o(_=u())),h=0;h<=y;++h){if(!(h<y&&i(v=d[h],h,d))===b)if(b=!b)g=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=g;--m)s.point(E[m],S[m]);s.lineEnd(),s.areaEnd()}b&&(E[h]=+e(v,h,d),S[h]=+t(v,h,d),s.point(r?+r(v,h,d):E[h],n?+n(v,h,d):S[h]))}if(_)return s=null,_+""||null}function l(){return e0().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:pt(+d),c):n},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(n)},c.lineX1=function(){return l().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:pt(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function WU(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function qU(e){return e}function VU(){var e=qU,t=WU,n=null,r=pt(0),i=pt(bs),a=pt(0);function o(s){var u,c=(s=Qv(s)).length,l,d,h=0,g=new Array(c),m=new Array(c),y=+r.apply(this,arguments),v=Math.min(bs,Math.max(-bs,i.apply(this,arguments)-y)),b,_=Math.min(Math.abs(v)/c,a.apply(this,arguments)),E=_*(v<0?-1:1),S;for(u=0;u<c;++u)(S=m[g[u]=u]=+e(s[u],u,s))>0&&(h+=S);for(t!=null?g.sort(function(A,O){return t(m[A],m[O])}):n!=null&&g.sort(function(A,O){return n(s[A],s[O])}),u=0,d=h?(v-c*E)/h:0;u<c;++u,y=b)l=g[u],S=m[l],b=y+(S>0?S*d:0)+E,m[l]={data:s[l],index:u,value:S,startAngle:y,endAngle:b,padAngle:_};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:pt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:pt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:pt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:pt(+s),o):a},o}var B8=J_(Sl);function z8(e){this._curve=e}z8.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function J_(e){function t(n){return new z8(e(n))}return t._curve=e,t}function Lf(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(J_(n)):t()._curve},e}function HO(){return Lf(e0().curve(B8))}function UO(){var e=Rc().curve(B8),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Lf(n())},delete e.lineX0,e.lineEndAngle=function(){return Lf(r())},delete e.lineX1,e.lineInnerRadius=function(){return Lf(i())},delete e.lineY0,e.lineOuterRadius=function(){return Lf(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(J_(o)):t()._curve},e}function $f(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class F8{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class HU{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=$f(this._x0,this._y0),i=$f(this._x0,this._y0=(this._y0+n)/2),a=$f(t,this._y0),o=$f(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}this._x0=t,this._y0=n}}function Q_(e){return new F8(e,!0)}function e2(e){return new F8(e,!1)}function UU(e){return new HU(e)}function GU(e){return e.source}function KU(e){return e.target}function t0(e){let t=GU,n=KU,r=X_,i=Z_,a=null,o=null,s=Gd(u);function u(){let c;const l=FU.call(arguments),d=t.apply(this,l),h=n.apply(this,l);if(a==null&&(o=e(c=s())),o.lineStart(),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=h,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+""||null}return u.source=function(c){return arguments.length?(t=c,u):t},u.target=function(c){return arguments.length?(n=c,u):n},u.x=function(c){return arguments.length?(r=typeof c=="function"?c:pt(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:pt(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function YU(){return t0(Q_)}function XU(){return t0(e2)}function ZU(){const e=t0(UU);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const JU=ln(3),W8={draw(e,t){const n=ln(t+Fc(t/28,.75))*.59436,r=n/2,i=r*JU;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Al={draw(e,t){const n=ln(t/Ss);e.moveTo(n,0),e.arc(0,0,n,0,bs)}},t2={draw(e,t){const n=ln(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},q8=ln(1/3),QU=q8*2,n2={draw(e,t){const n=ln(t/QU),r=n*q8;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},V8={draw(e,t){const n=ln(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},H8={draw(e,t){const n=ln(t-Fc(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},r2={draw(e,t){const n=ln(t),r=-n/2;e.rect(r,r,n,n)}},U8={draw(e,t){const n=ln(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},eG=.8908130915292852,G8=ti(Ss/10)/ti(7*Ss/10),tG=ti(bs/10)*G8,nG=-vo(bs/10)*G8,i2={draw(e,t){const n=ln(t*eG),r=tG*n,i=nG*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=bs*a/5,s=vo(o),u=ti(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Ky=ln(3),a2={draw(e,t){const n=-ln(t/(Ky*3));e.moveTo(0,n*2),e.lineTo(-Ky*n,-n),e.lineTo(Ky*n,-n),e.closePath()}},rG=ln(3),K8={draw(e,t){const n=ln(t)*.6824,r=n/2,i=n*rG/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},zi=-.5,Fi=ln(3)/2,Dw=1/ln(12),iG=(Dw/2+1)*3,o2={draw(e,t){const n=ln(t/iG),r=n/2,i=n*Dw,a=r,o=n*Dw+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(zi*r-Fi*i,Fi*r+zi*i),e.lineTo(zi*a-Fi*o,Fi*a+zi*o),e.lineTo(zi*s-Fi*u,Fi*s+zi*u),e.lineTo(zi*r+Fi*i,zi*i-Fi*r),e.lineTo(zi*a+Fi*o,zi*o-Fi*a),e.lineTo(zi*s+Fi*u,zi*u-Fi*s),e.closePath()}},Nw={draw(e,t){const n=ln(t-Fc(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},GO=[Al,t2,n2,r2,i2,a2,o2],aG=[Al,H8,Nw,K8,W8,U8,V8];function Y8(e,t){let n=null,r=Gd(i);e=typeof e=="function"?e:pt(e||Al),t=typeof t=="function"?t:pt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:pt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:pt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function As(){}function _g(e,t,n){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+n)/6)}function n0(e){this._context=e}n0.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:_g(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:_g(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X8(e){return new n0(e)}function Z8(e){this._context=e}Z8.prototype={areaStart:As,areaEnd:As,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:_g(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J8(e){return new Z8(e)}function Q8(e){this._context=e}Q8.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_g(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ej(e){return new Q8(e)}function tj(e,t){this._basis=new n0(e),this._beta=t}tj.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*a),this._beta*t[s]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const oG=function e(t){function n(r){return t===1?new n0(r):new tj(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Eg(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function s2(e,t){this._context=e,this._k=(1-t)/6}s2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Eg(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Eg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sG=function e(t){function n(r){return new s2(r,t)}return n.tension=function(r){return e(+r)},n}(0);function u2(e,t){this._context=e,this._k=(1-t)/6}u2.prototype={areaStart:As,areaEnd:As,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Eg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uG=function e(t){function n(r){return new u2(r,t)}return n.tension=function(r){return e(+r)},n}(0);function c2(e,t){this._context=e,this._k=(1-t)/6}c2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Eg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cG=function e(t){function n(r){return new c2(r,t)}return n.tension=function(r){return e(+r)},n}(0);function l2(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>wr){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>wr){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function nj(e,t){this._context=e,this._alpha=t}nj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:l2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lG=function e(t){function n(r){return t?new nj(r,t):new s2(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rj(e,t){this._context=e,this._alpha=t}rj.prototype={areaStart:As,areaEnd:As,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:l2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fG=function e(t){function n(r){return t?new rj(r,t):new u2(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ij(e,t){this._context=e,this._alpha=t}ij.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:l2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dG=function e(t){function n(r){return t?new ij(r,t):new c2(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aj(e){this._context=e}aj.prototype={areaStart:As,areaEnd:As,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 oj(e){return new aj(e)}function KO(e){return e<0?-1:1}function YO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(KO(a)+KO(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function XO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Yy(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Sg(e){this._context=e}Sg.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:Yy(this,this._t0,XO(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 n=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,Yy(this,XO(this,n=YO(this,e,t)),n);break;default:Yy(this,this._t0,n=YO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sj(e){this._context=new uj(e)}(sj.prototype=Object.create(Sg.prototype)).point=function(e,t){Sg.prototype.point.call(this,t,e)};function uj(e){this._context=e}uj.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function cj(e){return new Sg(e)}function lj(e){return new sj(e)}function fj(e){this._context=e}fj.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ZO(e),i=ZO(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===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 ZO(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function dj(e){return new fj(e)}function r0(e,t){this._context=e,this._t=t}r0.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function hj(e){return new r0(e,.5)}function pj(e){return new r0(e,0)}function gj(e){return new r0(e,1)}function wu(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function xu(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hG(e,t){return e[t]}function pG(e){const t=[];return t.key=e,t}function vj(){var e=pt([]),t=xu,n=wu,r=hG;function i(a){var o=Array.from(e.apply(this,arguments),pG),s,u=o.length,c=-1,l;for(const d of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(d,o[s].key,c,a)]).data=d;for(s=0,l=Qv(t(o));s<u;++s)o[l[s]].index=s;return n(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:pt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:pt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?xu:typeof a=="function"?a:pt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??wu,i):n},i}function mj(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}wu(e,t)}}function gG(e,t){if((u=e.length)>0)for(var n,r=0,i,a,o,s,u,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<u;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function yj(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}wu(e,t)}}function bj(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,u=0,c=0;s<o;++s){for(var l=e[t[s]],d=l[r][1]||0,h=l[r-1][1]||0,g=(d-h)/2,m=0;m<s;++m){var y=e[t[m]],v=y[r][1]||0,b=y[r-1][1]||0;g+=v-b}u+=d,c+=g*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=c/u)}i[r-1][1]+=i[r-1][0]=n,wu(e,t)}}function wj(e){var t=e.map(vG);return xu(e).sort(function(n,r){return t[n]-t[r]})}function vG(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function xj(e){var t=e.map(_j);return xu(e).sort(function(n,r){return t[n]-t[r]})}function _j(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function mG(e){return xj(e).reverse()}function yG(e){var t=e.length,n,r,i=e.map(_j),a=wj(e),o=0,s=0,u=[],c=[];for(n=0;n<t;++n)r=a[n],o<s?(o+=i[r],u.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(u)}function bG(e){return xu(e).reverse()}var wG=["type","size","sizeType"];function Lw(){return Lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lw.apply(null,arguments)}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){xG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xG(e,t,n){return(t=_G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _G(e){var t=EG(e,"string");return typeof t=="symbol"?t:t+""}function EG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SG(e,t){if(e==null)return{};var n,r,i=AG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ej={symbolCircle:Al,symbolCross:t2,symbolDiamond:n2,symbolSquare:r2,symbolStar:i2,symbolTriangle:a2,symbolWye:o2},OG=Math.PI/180,TG=e=>{var t="symbol".concat(Hd(e));return Ej[t]||Al},PG=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*OG;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**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}},CG=(e,t)=>{Ej["symbol".concat(Hd(e))]=t},i0=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=SG(e,wG),a=QO(QO({},i),{},{type:t,size:n,sizeType:r}),o=()=>{var d=TG(t),h=Y8().type(d).size(PG(n,r,t));return h()},{className:s,cx:u,cy:c}=a,l=it(a,!0);return u===+u&&c===+c&&n===+n?B.createElement("path",Lw({},l,{className:Ot("recharts-symbols",s),transform:"translate(".concat(u,", ").concat(c,")"),d:o()})):null};i0.registerSymbol=CG;function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$w.apply(null,arguments)}function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eT(Object(n),!0).forEach(function(r){f2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f2(e,t,n){return(t=MG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MG(e){var t=kG(e,"string");return typeof t=="symbol"?t:t+""}function kG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wi=32;class d2 extends k.PureComponent{renderIcon(t,n){var{inactiveColor:r}=this.props,i=Wi/2,a=Wi/6,o=Wi/3,s=t.inactive?r:t.color,u=n??t.type;if(u==="none")return null;if(u==="plainline")return B.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:Wi,y2:i,className:"recharts-legend-icon"});if(u==="line")return B.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(o,`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),Et=require("react-i18next"),M=require("react"),pH=require("react-router-dom"),ie=require("@mui/material"),Y4=require("react-relay"),Vv=require("@mui/material/Box"),ci=require("@emotion/styled"),Nf=require("recoil"),gH=require("@mui/material/Paper"),Pw=require("@mui/icons-material/DoneRounded"),jO=require("@mui/utils"),vH=require("@mui/icons-material/ExpandMoreOutlined"),mH=require("@mui/icons-material/SensorsOutlined"),_s=require("i18next"),yH=require("@mui/icons-material/ContentCopyRounded"),bH=require("@mui/material/IconButton"),wH=require("@mui/material/Drawer"),Hv=require("@mui/material/styles"),xH=require("@mui/material/FormControlLabel"),_H=require("@mui/material/Switch"),k_=require("react-is"),R_=require("react-dom"),EH=require("@mui/material/Chip"),ca=require("@mui/icons-material"),SH=require("@mui/icons-material/Close"),X4=require("@mui/icons-material/ArrowUpwardOutlined"),Z4=require("@mui/icons-material/ArrowDownwardOutlined"),AH=require("@mui/icons-material/SearchRounded"),cs=require("dayjs"),OH=require("@mui/x-date-pickers/AdapterDayjs"),TH=require("@mui/x-date-pickers/LocalizationProvider"),dc=require("@mui/x-date-pickers"),PH=require("@mui/material/AppBar"),CH=require("@mui/icons-material/BackspaceRounded"),MO=require("@mui/material/Button"),jH=require("@mui/material/List"),MH=require("@mui/material/Fab"),J4=require("@mui/icons-material/EditOutlined"),kH=require("@mui/icons-material/FilterAltOutlined"),RH=require("@mui/icons-material/SwapVertRounded"),IH=require("@mui/icons-material/AddRounded"),DH=require("@mui/icons-material/ManageSearchOutlined"),NH=require("@mui/icons-material/AddCircleOutlineOutlined"),LH=require("@mui/icons-material/CheckCircleRounded"),$H=require("@mui/icons-material/CancelRounded"),Q4=require("notistack"),By=require("@mui/material/LinearProgress"),BH=require("@mui/material/Typography"),Mc=require("relay-runtime"),kO=require("jotai");function zH(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const B=zH(M),e8=ci(Vv)({width:"100%",height:"100vh",overflow:"hidden"}),I_=ci(e8)({display:"flex"}),xn=ci(Vv)({display:"flex"}),Pi=ci(xn)({flexDirection:"column"}),Da=ci(xn)({width:"100%",height:"100%"}),lu=ci(Pi)({width:"100%",height:"100%"}),Uv=ci(lu)({justifyContent:"center"}),qd=ci(xn)({justifyContent:"center",alignItems:"center"}),FH=ci(Pi)({justifyContent:"center",alignItems:"center"}),Xc=ci(Da)({alignItems:"center",justifyContent:"center"});var kc=(e=>(e.DARK="dark",e.LIGHT="light",e))(kc||{});const t8=M.createContext(null);function WH({adapter:e,children:t}){const[n]=M.useState({}),r=w.jsx(t8.Provider,{value:{stateFactory:n,adapter:e},children:t});return e.type==="recoilAdapter"?w.jsx(Nf.RecoilRoot,{children:r}):r}function qH(){const e=M.useContext(t8);if(!e)throw new Error("useStateContext must be used within a StateProvider");return e}function ma(e,t){const{stateFactory:n,adapter:r}=qH();let i=n[e];if(!i){if(t===void 0)throw new Error(`State manager for key "${e}" does not exist and no initial value was provided.`);i=r.createState(t),n[e]=i}const[a,o]=M.useState(i.get());return M.useEffect(()=>{const u=i.subscribe(c=>{o(c)});return()=>u()},[i]),[a,u=>{typeof u=="function"?i.set(u(i.get())):Array.isArray(u)?i.set(u.filter(c=>c!==null)):i.set(u)}]}function Bo(){const[e,t]=ma("themeModeState",localStorage.getItem("theme-mode")||kc.DARK);M.useEffect(()=>{localStorage.setItem("theme-mode",e)},[e]);const n=M.useCallback(()=>{t(i=>i===kc.DARK?kc.LIGHT:kc.DARK)},[t]),r=M.useMemo(()=>({toggle:n}),[n]);return[e,r]}function D_({pending:e}){const[t]=Bo();return e?w.jsx(Xc,{position:"relative",children:w.jsx("div",{className:t==="dark"?"loader":"loaderLight"})}):w.jsx(Xc,{position:"relative",children:w.jsx("div",{className:t==="dark"?"loader":"loaderLight"})})}function VH({elementsPerPage:e,fragment:t,fragmentRef:n,getList:r}){const{data:i,loadNext:a,hasNext:o,isLoadingNext:s,refetch:u}=Y4.usePaginationFragment(t,n),{t:c}=Et.useTranslation(),l=M.useRef(null),d=M.useRef(null),h=M.useCallback(m=>{!s&&o?(d.current&&d.current.disconnect(),d.current=new IntersectionObserver(y=>{y[0].isIntersecting&&a(e)}),m&&d.current.observe(m)):l.current&&(l.current.style.display="relative")},[s,o]);function g({component:m}){const y=i?r(i):[];return!y||y.length===0&&!s?w.jsx(Xc,{children:c("NO_ITEMS")}):w.jsx(w.Fragment,{children:y.map((v,b)=>y.length===b+1?w.jsxs("div",{ref:h,children:[m(v,b),o&&w.jsx("div",{style:{position:"relative"},ref:l,children:w.jsx(D_,{})})]},b):w.jsx("div",{children:m(v,b)},b))})}return{ObserverWrapper:g,refetch:u}}function Gv(e,t){const[n,r]=M.useState(()=>{if(t&&e.length>t)throw new Error(`Max length exceeded! Array length: ${e.length}. Max length: ${t}`);return e}),i=g=>t&&g.length>t?g.slice(g.length-t):g;return{value:n,set:r,findIndex:(g,m=null)=>n.findIndex(v=>m&&typeof v=="object"&&v!==null?v[m]===g[m]:v===g),push:g=>{r(m=>{const y=Array.isArray(g)?[...m,...g]:[...m,g];return i(y)})},filter:g=>{r(m=>m.filter(g))},update:(g,m)=>{const y=[...n];y.splice(g,1,m),r(y)},remove:g=>{r(m=>m.filter((y,v)=>v!==g))},clear:()=>{r([])},isEmpty:()=>n.length===0,stack:g=>{r(m=>{const y=Array.isArray(g)?[...g,...m]:[g,...m];return t&&y.length>t?y.slice(0,t):y})}}}const n8=M.createContext(null);function HH({children:e}){const[t,n]=M.useState(null),[r,i]=M.useState(!0);return M.useEffect(()=>{t||fetch("/runtime-config.json").then(a=>a.json()).then(a=>{n(a),i(!1)}).catch(()=>{i(!1)})},[t]),r?w.jsx("div",{children:"Loading configuration..."}):t?w.jsx(n8.Provider,{value:t,children:e}):w.jsx("div",{children:"Failed to load configuration."})}function Kv(){const e=M.useContext(n8);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e}function RO(){return window.innerHeight>window.innerWidth}function UH(){const[e,t]=M.useState(RO());return M.useEffect(()=>{function n(){t(RO())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[]),e}function GH(){const[e,t]=M.useState(!document.hidden),n=()=>{t(!document.hidden)};return M.useEffect(()=>(document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)})),e}function N_(e,t){const[n,r]=M.useState(e),i=M.useRef(null);function a(o){i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{r(o)},t)}return[n,a]}const KH=1e3*30,YH=["mousedown","mousemove","wheel","keydown","touchstart","scroll"],XH=(e,t)=>(e.forEach(n=>window.addEventListener(n,t,{passive:!0})),()=>{e.forEach(n=>window.removeEventListener(n,t))});function r8(e=KH){const t=M.useRef(null),[n,r]=M.useState(!1),[i,a]=M.useState(!1),[o,s]=M.useState(!0),u=M.useCallback(()=>{!o||i||(t.current&&clearTimeout(t.current),r(!1),t.current=window.setTimeout(()=>{r(!0)},e))},[e,i,o]),c=()=>{a(!0),r(!0)},l=()=>{a(!1),u()},d=()=>{s(!1),r(!1),t.current&&clearTimeout(t.current)},h=()=>{s(!0),u()};return M.useEffect(()=>{if(!o)return;const m=XH(YH,u);return u(),()=>{t.current&&clearTimeout(t.current),m()}},[u,o]),[n,{disableIdleMode:d,enableIdleMode:h,lockInIdleMode:c,unlockIdleMode:l}]}function Vd(e){const[t,n]=M.useState(()=>matchMedia(e).matches);return M.useLayoutEffect(()=>{const r=matchMedia(e);function i(){n(r.matches)}return r.addEventListener("change",i),()=>{r.removeEventListener("change",i)}},[e]),t}var go=(e=>(e[e.equal=1]="equal",e[e.greater=2]="greater",e[e.lessThan=3]="lessThan",e[e.like=4]="like",e[e.endsWith=5]="endsWith",e[e.startsWith=6]="startsWith",e[e.in=7]="in",e))(go||{}),mo=(e=>(e[e.readOnly=1]="readOnly",e[e.search=2]="search",e[e.select=3]="select",e[e.multipleSelect=4]="multipleSelect",e[e.boolean=5]="boolean",e[e.date=6]="date",e[e.dateTime=7]="dateTime",e))(mo||{});const i8=M.createContext(null),a8=M.createContext(null),o8=M.createContext(null),s8=M.createContext(null);function L_(){return M.useContext(i8)}function $_(){return M.useContext(a8)}function B_(){return M.useContext(o8)}function z_(){return M.useContext(s8)}const Pc=(e,t,n="")=>btoa(`After=0${ZH(t)}${JH(e)}${n?`&${n}`:""}`),ZH=e=>{const t="&Sort=";if(Object.keys(e).length===0)throw new Error("No sortings found");return Object.keys(e).reduce((n,r)=>{const i=e[r];return n===t?`${n}${i.name}:${i.direction}`:`${n},${i.name}:${i.direction}`},t)},JH=e=>{if(Object.keys(e).length===0)return"";const t="&Filter=[";return Object.keys(e).reduce((n,r,i)=>{const a=e[r];if(!a.value||a.value.length===0)return n;if(a.names.length===1)return n===t?`${n}{"${a.names[0]}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`:`${n},{"${a.names[0]}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`;const o=a.names.reduce((s,u)=>s===""?`${s}{"${u}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`:`${s},{"${u}":{"${fp(a.operator)}":${JSON.stringify(a.value)}},"g":${i}}`,"");return n===t?`${n}${o}`:`${n},${o}`},t)+"]"};function fp(e){switch(e){case go.equal:return"eq";case go.greater:return"gt";case go.lessThan:return"lt";case go.like:return"like";case go.endsWith:return"like*";case go.startsWith:return"*like";case go.in:return"in";default:throw`Operator ${e} unknown`}}function u8({children:e,contextKey:t,defaultSorting:n,defaultFilters:r,defaultPersistance:i,canTogglePersistance:a}){function o(){if(!i||a&&!localStorage.getItem(t)&&!Object.values(r).find(z=>z.isShared))return r;let P={...r};const j=Object.keys(r).filter(z=>r[z].isShared);if(j.length>0){const z=localStorage.getItem("sharedFilters")??"{}";let I=JSON.parse(z);P=j.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:r[D]},H),P),localStorage.setItem("sharedFilters",JSON.stringify(I))}const $=Object.keys(r).filter(z=>!r[z].isShared);if($.length>0){const z=localStorage.getItem(t)??"{}";let I=JSON.parse(z);P=$.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:r[D]},H),P),localStorage.setItem(t,JSON.stringify(I))}return P}function s(){if(!i||a&&!localStorage.getItem(t)&&!Object.values(n).find(z=>z.isShared))return n;let P={...n};const j=Object.keys(n).filter(z=>n[z].isShared);if(j.length>0){const z=localStorage.getItem("sharedSortings")??"{}";let I=JSON.parse(z);P=j.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:n[D]},H),P),localStorage.setItem("sharedSortings",JSON.stringify(I))}const $=Object.keys(n).filter(z=>!n[z].isShared);if($.length>0){const z=localStorage.getItem(t)??"{}";let I=JSON.parse(z);P=$.reduce((H,D)=>I.hasOwnProperty(D)?{...H,[D]:I[D]}:(I={...I,[D]:n[D]},H),P),localStorage.setItem(t,JSON.stringify(I))}return P}const[u,c]=M.useState(o),[l,d]=M.useState(s),[h,g]=M.useState(()=>Pc(u,l,t)),[m,y]=M.useState(i),[v,b]=M.useState(t);M.useEffect(()=>b(t),[t]),M.useEffect(()=>c(o),[r]),M.useEffect(()=>d(s),[n]),M.useEffect(()=>g(Pc(r,n,t)),[t]);const _=M.useCallback(()=>{throw a&&(m&&localStorage.removeItem(t),y(!m)),new Error("Context is not configured to allow persistance toggle")},[]),E=M.useMemo(()=>({settings:{currentPersistance:m,canToggle:a,contextKey:t},setPersistance:_}),[m,t]),S=M.useMemo(()=>({filters:u,setFilters:c}),[u,t]),A=M.useMemo(()=>({sortings:l,setSortings:d}),[l,t]),O=M.useMemo(()=>({cursor:v!==t?Pc(r,n,t):h,updateCursor:()=>{g(()=>Pc(u,l,t))},updateRawCursor:(P,j)=>{const $=Pc(P,j,t);g($)}}),[h,S,A,r,n,t]);return w.jsx(s8.Provider,{value:E,children:w.jsx(i8.Provider,{value:S,children:w.jsx(a8.Provider,{value:A,children:w.jsx(o8.Provider,{value:O,children:e})})})})}function F_(){const e=L_(),t=$_(),n=B_(),r=z_();if(!e||!t||!n||!r)throw new Error("usePagination must be used within PaginationProvider");return{getFilterValue:u=>{const{filters:c}=e;return c[u].value},updateFilters:(u,c=!1)=>{const l={...e.filters,...u};e.setFilters(l);const d=Object.keys(l).filter(h=>l[h].isShared);if(d.length>0){const h=localStorage.getItem("sharedFilters")??"{}",g=JSON.parse(h),m=d.reduce((y,v)=>({...y,[v]:l[v]}),{...g});localStorage.setItem("sharedFilters",JSON.stringify(m))}if(r.settings.currentPersistance){const h=Object.keys(l).filter(v=>!l[v].isShared),g=localStorage.getItem(r.settings.contextKey)??"{}",m=JSON.parse(g),y=h.reduce((v,b)=>({...v,[b]:l[b]}),{...m});localStorage.setItem(r.settings.contextKey,JSON.stringify(y))}c&&n.updateRawCursor(l,t.sortings)},getSortingValue:u=>{const{sortings:c}=t;return c[u].direction},updateSortings:(u,c=!1)=>{const l={...t.sortings,...u};t.setSortings(l);const d=Object.keys(l).filter(h=>l[h].isShared);if(d.length>0){const h=localStorage.getItem("sharedSortings"),g=h?JSON.parse(h):{},m=d.reduce((y,v)=>({...y,[v]:g[v]}),{...g});localStorage.setItem("sharedSortings",JSON.stringify(m))}if(r.settings.currentPersistance){const h=Object.keys(l).filter(v=>!l[v].isShared),g=localStorage.getItem(r.settings.contextKey),m=g?JSON.parse(g):{},y=h.reduce((v,b)=>({...v,[b]:m[b]}),{...m});localStorage.setItem(r.settings.contextKey,JSON.stringify(y))}c&&n.updateRawCursor(e.filters,l)}}}function QH(e=99){const[t,n]=M.useState(!1),[r,i]=M.useState(!1),[a,o]=M.useState([]),[s,u]=ma("tagDistance",0);window.stopRunningLocate=function(){window.rfid.stop()};const c=_=>{try{g(0,"Beginning enumerate");const E=JSON.stringify(_);g(0,`readerID = ${E}`),window.rfid.readerID=_.RFID_Array[0].ID,i(!0),g(0,"Finished enumerate")}catch(E){i(!1),g(3,String(E))}};function l(_){console.log(_),_&&(_.errorCode,_.errorCode==1e3&&_?.vendorMessage==="CONNECTION_EVENT"?(g(0,"Connection event"),m()):g(3,`Error code: ${_.errorCode} Vendor message: ${_.vendorMessage}`))}M.useEffect(()=>{g(0,"Beginning connect"),r&&window.rfid.connect(),g(0,"Finished connect")},[r]);function d(){g(1,r.toString()),g(1,window.rfid),!r&&window.rfid&&(g(0,"Mount hook"),window.onEnumerate=c,window.statusLogger=l,window.rfid.statusEvent="statusLogger(%json);",g(0,`Set statusEvent = ${window.rfid.statusEvent}`),window.rfid.enumRFIDEvent="onEnumerate(%json);",g(0,`Set reportTrigger = ${window.rfid.reportTrigger}`),window.rfid.enumerate())}function h(){window.rfid&&(g(0,"Unomunt hook"),window.scanSingleRfidHandler=()=>{},window.rfid.tagEvent="",window._locate=void 0,window._inventory=()=>{},window.onEnumerate=()=>{},window.rfid.tagID="",g(0,"Stopping rfid"),window.rfid.stop(),g(0,"Rfid stopped"),g(0,"Disconnecting"),window.rfid.disconnect(),g(0,"Disconnected"),n(!1),i(!1))}M.useEffect(()=>{g(0,`isConnected = ${t}`)},[t]);function g(_,E){if(e<=_){let S="";switch(_){case 0:S="Trace -";break;case 1:S="Information -";break;case 2:S="Warning -";break;case 3:S="Error -";break;default:S="Unknown -"}o(A=>[...A,`${S} ${E}`])}}function m(){n(!0)}function y(_){window.rfid.reportTrigger=1,window.rfid.useSoftTrigger=0,window.rfid.reportUniqueTags="false",window.rfid.transport="serial",window.rfid.beepOnRead=1,window.rfid.lowerTriggerType="RFID_SCAN",window.rfid.upperTriggerType="RFID_SCAN",window.rfid.startTriggerType="triggerPress",window.rfid.stopTriggerType="triggerRelease",t&&(window.scanSingleRfidHandler=E=>{const S=E.TagData[0].tagID,A=JSON.stringify(E);g(0,`data = ${A}`),_(S)},window.rfid.tagEvent="scanSingleRfidHandler(%json);")}function v(_){window.rfid.tagEvent="TagLocateHandler(%json)";function E(S){u(S.TagLocate)}window.rfid.reportUniqueTags="false",window.rfid.transport="serial",window.rfid.reportTrigger=0,window.TagLocateHandler=E,window.rfid.beepOnRead=1,window.rfid.lowerTriggerType="NO_ACTION",window.rfid.upperTriggerType="NO_ACTION",window.rfid.startTriggerType="immediate",window.rfid.useSoftTrigger=0,window.rfid.antennaSelected=1,window.rfid.tagID=_,window.rfid.locateTag()}function b(_){try{t&&(g(0,"Beginning inventoryScan"),window.rfid.reportTrigger=0,window.rfid.useSoftTrigger=0,window.rfid.reportUniqueTags="true",window.rfid.transport="serial",window.rfid.beepOnRead=1,window.rfid.lowerTriggerType="RFID_SCAN",window.rfid.upperTriggerType="RFID_SCAN",window.rfid.startTriggerType="triggerPress",window.rfid.stopTriggerType="triggerRelease",window._inventory=E=>{_(E.TagData),g(0,`data = ${E.TagData[0].tagID}`),g(0,`datacomplete = ${E}`)},window.rfid.tagEvent="_inventory(%json);",g(0,`tagEvent = ${window.rfid.tagEvent}`),g(0,"Ended inventoryScan"))}catch(E){g(3,String(E))}}return{locateTag:v,inventoryScan:b,isConnected:t,canConnect:r,debugLog:a,mount:d,unMount:h,logDebug:g,scanSingleElement:y}}function Yv(e=".scrollable-container"){const t=new Map;M.useEffect(()=>{const n=document.querySelectorAll(e),r=a=>{a.classList.add("show-scrollbar"),setTimeout(()=>{a.classList.remove("show-scrollbar")},2e3)},i=a=>{a.classList.add("show-scrollbar"),t.has(a)&&clearTimeout(t.get(a));const o=window.setTimeout(()=>{a.classList.remove("show-scrollbar")},1e3);t.set(a,o)};return n.forEach(a=>{r(a);const o=()=>i(a);return a.addEventListener("scroll",o),()=>{a.removeEventListener("scroll",o),t.has(a)&&clearTimeout(t.get(a))}}),()=>{t.forEach(a=>clearTimeout(a))}},[e])}function c8({bufferName:e,callback:t}){const[n,r]=M.useState("- - - - - - - -"),[i,a]=M.useState(!1),[o,s]=M.useState(0),[u,c]=M.useState([]),l=M.useRef("- - - - - - - -"),d=M.useRef(null),h=A=>{const O=JSON.parse(localStorage.getItem(e)||"[]");!O.includes(A)&&A!=="- - - - - - - -"&&(O.push(A),localStorage.setItem(e,JSON.stringify(O)))},g=A=>{const P=JSON.parse(localStorage.getItem(e)||"[]").filter(j=>j!==A);localStorage.setItem(e,JSON.stringify(P))},m=A=>{r(l.current);const O=l.current;if(A!=="- - - - - - - -"&&typeof A=="string"){const P=t(l.current);if(P instanceof Promise)P.then(j=>{c($=>[...$,j]),g(l.current)}).catch(()=>{h(O),y()});else return P}},y=()=>{const A=e,O=localStorage.getItem(A);if(O){const P=setInterval(async()=>{const j=o;if(j>=9){clearInterval(P);return}await v(JSON.parse(O))?(clearInterval(P),s(0)):s(j+1)},5e3);return()=>clearInterval(P)}},v=async A=>{let O=!0;for(const P of A)try{const j=await t(P);if(j instanceof Promise)j.then($=>{c(z=>[...z,$])}),g(P);else return j}catch(j){console.trace("Error:",P,j),O=!1}return O},b=A=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{m(A),l.current="- - - - - - - -"},250)},_=M.useCallback(A=>{!A.repeat&&A.key.length===1&&A.key!=="Unidentified"&&(l.current==="- - - - - - - -"?l.current=A.key:(l.current+=A.key,b(l.current)))},[]),E={activateScanner:()=>{window.addEventListener("keydown",_),a(!0),S(),console.log(`${e} scanner activated`)},disableScanner:()=>{window.removeEventListener("keydown",_),a(!1),console.log(`${e} scanner disabled`)}},S=()=>{l.current="- - - - - - - -"};return{lastScanned:n,scannerActions:E,isScannerActive:i,labelRead:u}}const l8=M.createContext(void 0);function f8(){const e=M.useContext(l8);if(e===void 0)throw new Error("BreadCrumbContext must be used within an BreadCrumbProvider");return e}function d8(){const[e,t]=ma("hotKeysDialogState",!1),n=M.useCallback(()=>{t(o=>!o)},[t]),r=M.useCallback(()=>{t(!1)},[t]),i=M.useCallback(()=>{t(!0)},[t]),a=M.useMemo(()=>({toggle:n,close:r,open:i}),[n,r,i]);return[e,a]}function W_(e){const[t,n]=ma("languageDialogState",!1),[r]=ma("languageDialogPopover",!1),{i18n:i}=Et.useTranslation(),a=i.resolvedLanguage??"",o=M.useCallback(()=>{n(!1)},[n]),s=M.useCallback(()=>{n(!0)},[n]),u=M.useCallback(()=>{n(!0);const l=Object.keys(e),d=l.indexOf(a);let h;d!==-1&&d<l.length-1?h=l[d+1]:h=l[0],i.changeLanguage(h)},[n,i,a,e]),c=M.useMemo(()=>({close:o,open:s,toggle:u}),[o,s,u]);return[t,c,r]}const h8=ci(gH,{shouldForwardProp:e=>e==="children"||e==="elevation"||e==="variant"})(({theme:e,backgroundColor:t,blur:n,saturate:r="180%",color:i,borderRadius:a="24px",border:o,padding:s="2vw",width:u="100%",height:c="100%",marginLeft:l="auto",marginRight:d="auto",marginTop:h="auto",marginBottom:g="auto",style:m={}})=>({display:"flex",flexDirection:"column",width:u,height:c,backgroundColor:t||e.palette.background.paper,backdropFilter:n&&`blur(${n}) saturate(${r})`,color:i||e.palette.primary.main,border:o,padding:s,borderRadius:a,marginLeft:l,marginRight:d,marginTop:h,marginBottom:g,...m}));function p8({children:e,value:t,index:n,styles:r}){return w.jsx(Vv,{id:`tabpanel-${n}`,role:"tabpanel","aria-labelledby":`tab-${n}`,display:t!==n?"none":"flex",sx:r,children:e})}function g8({tabs:e,value:t,onChange:n,color:r="primary.main",textColor:i="inherit",fullWidth:a=!1,size:o="medium",height:s,width:u}){const{t:c}=Et.useTranslation(),l=(d,h)=>{h!==null&&n(d,h)};return w.jsx(ie.ToggleButtonGroup,{value:t,exclusive:!0,onChange:l,fullWidth:a,"aria-label":"toggle buttons as custom rounded tabs",children:e.map((d,h)=>w.jsx(ie.ToggleButton,{disableRipple:!0,disableFocusRipple:!0,size:o,value:typeof d=="string"?h:d?.value,selected:typeof d=="string"?t===h:t===d?.value,sx:{height:s,width:u,fontWeight:600,minWidth:"160px",textTransform:"capitalize","&.Mui-selected":{color:i,backgroundColor:r,transition:"background-color 0.2s ease-in-out",":hover":{backgroundColor:r}},borderRadius:h===0?"24px 0px 0px 24px":h===e.length-1?"0px 24px 24px 0px":void 0},children:w.jsxs(xn,{gap:"4px",alignItems:"center",children:[typeof d!="string"&&d?.icon?d?.icon:typeof d=="string"?t===h&&w.jsx(Pw,{}):t===d?.value&&w.jsx(Pw,{}),c(typeof d=="string"?d:d?.label)]})},typeof d=="string"?d:d?.label))})}function v8({tabs:e,value:t,onChange:n,color:r="primary.main",textColor:i="inherit",fullWidth:a=!1}){const{t:o}=Et.useTranslation();return w.jsx(ie.Tabs,{value:t,onChange:n,"aria-label":"custom tabs",variant:"scrollable",scrollButtons:e.length>3,slotProps:{indicator:{children:w.jsx("span",{className:"MuiTabs-indicatorSpan"})}},sx:{"& .Mui-selected":{color:`${i}!important`},"& .MuiTabs-indicator":{display:"flex",justifyContent:"center",backgroundColor:"transparent"},"& .MuiTabs-indicatorSpan":{maxWidth:40,width:"100%",backgroundColor:r}},children:e.map((s,u)=>w.jsx(ie.Tab,{value:typeof s=="string"?u:s?.value,id:typeof s=="string"?s:s?.label,label:o(typeof s=="string"?s:s?.label),"aria-controls":`tabPanel-${u}`,icon:typeof s=="string"?void 0:s?.icon,sx:a?{minWidth:"fit-content",flex:1}:{}},typeof s=="string"?s:s?.label))})}function m8({tabs:e,value:t,onChange:n,color:r,textColor:i="inherit",variant:a="standard",fullWidth:o=!1,size:s="medium"}){return a==="rounded"?w.jsx(g8,{tabs:e,value:t,onChange:n,color:r,fullWidth:o,size:s,textColor:i}):w.jsx(v8,{tabs:e,value:t,onChange:n,color:r,textColor:i,fullWidth:o})}function eU({doLogin:e,pendingLogin:t,doLogout:n,pendingLogout:r}){const i=Gv([]),a=Kv(),o=[m=>{const y={credentials:{username:m.get("username")?.toString()||"",password:m.get("password")?.toString()||"",rFID:m.get("rfid")?.toString()||"",client_id:a.CLIENT_ID}};e({variables:y,onCompleted:v=>{const b=v.authMutation.login,{expires:_,token:E,errors:S,username:A}=b;if(S&&S.length>0){i.set((b.errors??[]).map(({code:O,description:P})=>({code:O,description:P})));return}a.AUTH_SCHEMA!=="Cookies"&&E&&localStorage.setItem("token",`Bearer ${E}`),_&&localStorage.setItem("authExpiration",_),A&&localStorage.setItem("username",A),l(!0)}})},t],s=()=>{localStorage.removeItem("token"),localStorage.removeItem("authExpiration"),l(!1)},u=[()=>{n({variables:{},onCompleted:()=>{s()}})},r],[c,l]=M.useState(localStorage.getItem("authExpiration")!==void 0&&localStorage.getItem("authExpiration")!==null&&new Date(localStorage.getItem("authExpiration")).getTime()>new Date().getTime()),[d,h]=M.useState(!!(a.AUTH_SCHEMA!=="Cookies"?localStorage.getItem("token")&&c:c));M.useEffect(()=>{h(c?!!(a.AUTH_SCHEMA!=="Cookies"?localStorage.getItem("token")&&c:c):!1)},[c]);const g={login:o,logout:u,removeError:i.remove,invalidate:s};return[d,i.value,g]}const y8=M.createContext(null);function tU({children:e,doLogin:t,pendingLogin:n,doLogout:r,pendingLogout:i}){const[a,o,{login:s,logout:u,removeError:c,invalidate:l}]=eU({doLogin:t,pendingLogin:n,doLogout:r,pendingLogout:i});return w.jsx(y8.Provider,{value:[a,o,{login:s,logout:u,removeError:c,invalidate:l}],children:e})}function b8(){const e=M.useContext(y8);if(e===null)throw new Error("useAuthContext must be used within an AuthProvider");return e}const nU={MuiButton:{defaultProps:{variant:"contained",disableElevation:!0},styleOverrides:{root:{borderRadius:"24px",textTransform:"capitalize",fontSize:"1rem"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:"12px"}},defaultProps:{style:{borderRadius:"12px"}}},MuiSelect:{defaultProps:{IconComponent:vH}},MuiFilledInput:{defaultProps:{sx:{backgroundColor:"rgba(255,255,255,0.3)",borderRadius:"12px","&:hover::before":{border:"unset!important"},"&::before":{borderBottom:"unset"},"&::after":{borderBottom:"unset"}}}},MuiTextField:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiFormControl:{defaultProps:{fullWidth:!0,variant:"outlined"}},MuiPaper:{defaultProps:{variant:"outlined"},styleOverrides:{root:{borderRadius:"18px",backgroundImage:"unset",transition:"all 0.5s ease-in-out"}}},MuiCheckbox:{defaultProps:{color:"primary"}},MuiTypography:{defaultProps:{variant:"body1"}}},Cw={palette:{greyCustom:{main:"#787474",light:"#f8f4f4",dark:"#464646"}},components:nU,typography:{fontFamily:"Manrope"}},w8={light:e=>jO.deepmerge({...Cw,...e},{palette:{primary:{main:"#00796b",border:"rgba(0, 0, 0, 0.12)"},mode:"light",background:{default:"#fafafa"}}}),dark:e=>jO.deepmerge({...Cw,...e},{palette:{primary:{main:"#009f93",border:"rgba(255, 255, 255, 0.12)"},mode:"dark",background:{default:"#111111",paper:"#171717"}}})};function rU({children:e,theme:t}){const[n]=Bo();return w.jsx(ie.ThemeProvider,{theme:ie.createTheme(w8[n](t)),children:e})}function iU({ChangePasswordWidget:e,children:t,title:n,tabs:r,backgroundColor:i,blur:a,elevation:o,color:s,borderRadius:u,border:c,padding:l,width:d,height:h,redirect:g=!0,redirectPath:m="/",loggedCallback:y,logo:v}){const{t:b}=Et.useTranslation(),[_,E]=M.useState(!1),[S,A,{login:O,removeError:P}]=b8(),j=Vd("(min-height:700px)"),[$,z]=O,[I,H]=M.useState(0),[D]=Bo(),C=(L,N)=>{H(N)};return M.useEffect(()=>{A.length>0&&A.find(({code:L})=>L==="PASSWORD_EXPIRED")&&E(!0)},[A]),M.useEffect(()=>{y&&S&&y()},[S,y]),M.useEffect(()=>{const L=A.map((N,V)=>setTimeout(()=>P(V),2e3));return()=>{L.forEach(clearTimeout)}},[A,P]),S&&g?w.jsx(pH.Navigate,{to:m,replace:!0}):w.jsx(w.Fragment,{children:w.jsx(h8,{elevation:o,variant:o!==void 0?"elevation":"outlined",blur:a,border:c,color:s,backgroundColor:i,borderRadius:u,padding:l,width:d,height:h,children:w.jsxs(Uv,{height:"100%",marginTop:"auto",marginBottom:"auto",justifyContent:"space-between",children:[r&&w.jsx(xn,{borderBottom:"1px solid",borderColor:"divider",children:r&&r.length>0&&w.jsx(m8,{value:I,onChange:C,tabs:r,color:s})}),A.length>0&&w.jsx(ie.Stack,{spacing:1,sx:{padding:"16px",minHeight:"20%",justifyContent:"center"},children:A.map(({code:L,description:N},V)=>w.jsx(ie.Alert,{variant:"filled",severity:"error",onClose:()=>P(V),children:b(L||N)},L))}),v&&w.jsx(xn,{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",flex:1},children:w.jsx("img",{src:v,alt:"Logo",width:j?"60px":"40px"})}),w.jsx(xn,{flex:1,alignContent:"center",flexDirection:"column",children:w.jsx(ie.Typography,{variant:j?"h4":"h5",sx:{fontWeight:300,textAlign:"center",marginTop:"auto",marginBottom:"auto",color:D==="dark"?"#fff":"#000"},children:n})}),w.jsx("form",{id:"authForm",action:$,children:_&&e?w.jsx(e,{pending:z}):r&&r.length>0?r.map(({label:L,child:N},V)=>w.jsx(p8,{value:I,index:V,children:w.jsx(N,{pending:z})},L)):t})]})})})}function aU({callback:e,title:t,subtitle:n}){const{scannerActions:r}=c8({bufferName:"BadgeScanner",callback:e});return M.useEffect(()=>(r.activateScanner(),()=>{r.disableScanner()}),[r]),w.jsxs(qd,{sx:{flexDirection:"column",justifyContent:"space-around",height:"100%"},children:[w.jsxs(ie.Box,{children:[w.jsx(ie.Typography,{variant:"h4",children:_s.t(t)}),w.jsx(ie.Typography,{variant:"h6",children:_s.t(n)})]}),w.jsx(mH,{sx:{fontSize:"10rem"}})]})}function x8({id:e,children:t,ratio:n=0,unit:r=1}){const i=100/n,a=Array.from({length:n}).reduce((o,s,u)=>{const c=u*i,l=u%2===0?1:0;return o[`${c}%`]={opacity:l},o},{});return w.jsx(Vv,{sx:{[`@keyframes blink-${e}`]:a,animation:`blink-${e} ${r}s infinite`,display:"inline-flex"},children:t})}function _8(){const{crumbs:e,slice:t}=f8(),{t:n}=Et.useTranslation();return w.jsxs(lu,{children:[w.jsx(ie.Breadcrumbs,{"aria-label":"breadcrumb",sx:{padding:"8px"},children:e.map((r,i)=>w.jsx(ie.Link,{component:"button",color:"inherit",underline:"hover",sx:{cursor:"pointer",background:"none",border:"none",padding:0},onClick:a=>{a.preventDefault(),t(i)},children:n(r.text)},i))}),w.jsx(ie.Divider,{}),w.jsx(Xc,{gap:2,flexWrap:"wrap",alignContent:"center",overflow:"hidden",padding:0,children:e[e.length-1].component})]})}function oU({root:e}){const[t,n]=M.useState([e]),r=a=>n(o=>[...o,a]),i=a=>n(o=>o.slice(0,a+1));return w.jsx(l8.Provider,{value:{crumbs:t,push:r,slice:i},children:w.jsx(_8,{})})}function E8({value:e}){const{t}=Et.useTranslation(),[n,r]=M.useState(!1),i=()=>{e&&(r(!0),navigator.clipboard.writeText(e))};return M.useEffect(()=>{n&&setTimeout(()=>{r(!1)},1e3)},[n]),w.jsx(ie.Tooltip,{placement:"top",title:t(n?"COPIED":"COPY"),disableFocusListener:!0,disableTouchListener:!0,arrow:!0,children:w.jsx(ie.IconButton,{id:"copy-to-clipboard-icnBtn",onClick:i,color:n?"primary":"default",disabled:!e,size:"small",children:n?w.jsx(Pw,{}):w.jsx(yH,{})})})}function S8({id:e,anchor:t,onClose:n,children:r,width:i,centerPopover:a}){return w.jsx(ie.Popover,{id:e,open:!!t,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:a?"center":"left"},transformOrigin:{vertical:"top",horizontal:a?"center":"left"},slotProps:{paper:{sx:{overflow:"hidden",minWidth:i,width:i}}},children:r})}function jw({Icon:e,label:t,menuContent:n,centerPopover:r}){const{t:i}=Et.useTranslation(),[a,o]=M.useState(null),s=l=>{o(l.currentTarget)},u=()=>{o(null)},c=M.Children.map(n,l=>M.isValidElement(l)?M.cloneElement(l,{onClose:u}):l);return w.jsxs(w.Fragment,{children:[w.jsx(ie.Tooltip,{title:i("OPEN_MENU",{value:i(t)}),children:w.jsx(ie.Button,{id:`${t}-btn`,variant:"outlined",onClick:s,startIcon:w.jsx(e,{}),children:i(t)})}),w.jsx(S8,{centerPopover:r,id:`${t}-menu`,anchor:a,onClose:u,children:c})]})}function A8({styles:e={},languages:t,flags:n,isPopover:r}){const{i18n:i}=Et.useTranslation(),[,a]=ma("languageDialogPopover",r);M.useEffect(()=>{a(r??!1)},[r,a]);const[o,s]=W_(t),u=n[i.language];return u?w.jsx(bH,{id:"flags-btn",role:"button","aria-label":"change language flag button",onClick:s.open,sx:e,children:w.jsx(u,{size:36})}):(console.warn(`No flag component found for language: ${i.language}`),null)}function Xv(){const[e,t]=ma("sidebarIsOpenState",!1),n=M.useCallback(()=>{t(o=>!o)},[t]),r=M.useCallback(()=>{t(!1)},[t]),i=M.useCallback(()=>{t(!0)},[t]),a=M.useMemo(()=>({toggle:n,close:r,open:i}),[n,r,i]);return[e,a]}const O8="300px",T8="56px",q_=.5,P8=ci(wH,{shouldForwardProp:e=>e!=="open"&&e!=="isMobile"&&e!=="isIdle"})(({theme:e,open:t,isMobile:n,isIdle:r})=>({flexShrink:0,boxSizing:"border-box",whiteSpace:"nowrap",height:"100% !important","& .MuiDrawer-paper":{opacity:n&&!t||r?0:1,position:"relative",width:r?0:n?t?"98vw":"0":t?O8:T8,transition:`all ${q_}s ease-in-out`,overflow:"hidden",backgroundColor:e.palette.background.paper}}));function sU({children:e,Logo:t,theme:n,isIdle:r}){const{i18n:i}=Et.useTranslation(),a=Vd("(max-width: 600px)"),[o,s]=Xv(),[u,c]=M.Children.toArray(e),l=i.dir();return w.jsxs(P8,{id:"sidebar-drawer",dir:l,variant:"permanent",anchor:l==="rtl"?"right":"left",open:o,onClose:s.close,slotProps:{paper:{variant:"outlined"}},isMobile:a,"data-pw":"sidebar",isIdle:r,children:[t&&w.jsx(xn,{pt:"1vw",pb:"1vw",alignItems:"center",justifyContent:"center",minHeight:"64px",marginTop:"1vh",children:w.jsx(ie.Collapse,{in:o,timeout:500,orientation:"horizontal",collapsedSize:"0px",children:w.jsx(t,{width:"200px",height:"64px",theme:n})})}),w.jsx(ie.Box,{sx:{flexGrow:1,overflowY:"scroll",overflowX:"hidden",scrollbarWidth:"none"},children:u}),w.jsx(ie.Divider,{}),c]})}function uU({onClick:e,isIdle:t}){const[n]=Bo(),[r]=Xv(),[i,a]=M.useState(r);M.useEffect(()=>{t&&r&&(a(!1),e())},[t,r,e]),M.useEffect(()=>{a(r)},[r]);const o=()=>{a(!i),e()};return w.jsxs("div",{id:"menu-icon","aria-label":"menu-icon",style:{marginRight:"19px"},className:`${n} ${i?"open":"closed"}`,onClick:o,children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]})}const cU=Hv.styled(e=>w.jsx(_H,{disableRipple:!0,...e}))(({theme:e})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:2,margin:3,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,border:0},"& .MuiSwitch-thumb:before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundColor:"#fff",borderRadius:"50%",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path fill="${encodeURIComponent("#111")}" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"/></svg>')`}},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,"&::before":{content:"''",position:"absolute",width:"100%",height:"100%",left:0,top:0,backgroundColor:"#79747e",borderRadius:"50%",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundImage:`url('data:image/svg+xml;utf8,<svg fill="${encodeURIComponent("#fff")}" width="16" height="16" viewBox="-6 -6 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.314 5.9l3.535-3.536A1 1 0 1 0 9.435.95L5.899 4.485 2.364.95A1 1 0 1 0 .95 2.364l3.535 3.535L.95 9.435a1 1 0 1 0 1.414 1.414l3.535-3.535 3.536 3.535a1 1 0 1 0 1.414-1.414L7.314 5.899z" /></svg>')`}},"& .MuiSwitch-track":{border:"2px solid #79747e",borderRadius:26/2,backgroundColor:"#e6e0e9",opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}));function C8({label:e,value:t,onChange:n}){const{t:r}=Et.useTranslation();return w.jsx(xH,{labelPlacement:"start",control:w.jsx(cU,{sx:{ml:1.69},checked:t,onChange:n}),label:e&&r(e),slotProps:{typography:{noWrap:!0}}})}function lU({translation:e,globalStateString:t,defaultValue:n}){const[r,i]=ma(t,n),a=o=>{i(o.target.checked)};return w.jsx(C8,{label:e,value:r,onChange:a})}var dd=(e=>(e.Column="column",e.Row="row",e))(dd||{});function Zv({caption:e,value:t,captionColor:n="textSecondary",valueColor:r="textPrimary",reverse:i,direction:a=dd.Column,width:o,height:s,gap:u="4px",flex:c,padding:l,textAlign:d,captionStyle:h,valueStyle:g,fallback:m="N/A",enableCopy:y,className:v}){const{t:b}=Et.useTranslation();return w.jsxs(xn,{className:v,flexDirection:i?`${a}-reverse`:a,alignItems:a===dd.Row?"center":"stretch",width:o,gap:u,height:s,flex:c,padding:l,children:[w.jsx(ie.Typography,{variant:"body2",color:n,sx:{textAlign:d,userSelect:"none",...h},noWrap:!0,children:b(e)}),typeof t=="string"||typeof t=="number"||!t&&(typeof m=="string"||typeof m=="number")?w.jsxs(xn,{alignItems:"center",gap:"8px",children:[w.jsx(ie.Typography,{variant:"body1",color:r,sx:{textAlign:d,userSelect:"none",...g},noWrap:!0,children:t||m}),y&&w.jsx(E8,{value:t?.toString()})]}):t||m]})}function fU({CustomAvatarIcon:e,title:t,displayValue:n,subtitle:r}){const{t:i}=Et.useTranslation(),[a]=Bo(),o=a==="light"?"#e0e0e0":"#303030";return w.jsxs(ie.Paper,{sx:{borderRadius:"10px",border:"1px solid "+o,padding:"8px",gap:"8px",alignItems:"center",minWidth:"230px",display:"flex"},children:[w.jsx(ie.Avatar,{sx:{backgroundColor:"#12322f",width:"80px",height:"80px"},children:e}),w.jsxs(Pi,{textAlign:"left",margin:"auto",children:[w.jsx(ie.Typography,{variant:"caption",color:"grey",sx:{margin:0,lineHeight:1},children:i(t)}),w.jsx(ie.Typography,{variant:"body1",sx:{padding:"0!important",fontSize:"2rem",margin:1,ml:0,fontWeight:600,lineHeight:1.1},children:i(n)}),typeof r=="string"?w.jsx(ie.Typography,{sx:{margin:0,lineHeight:1.2,fontSize:".75rem"},variant:"body2",children:i(r||"")}):r]})]})}function j8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=j8(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ot(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=j8(e))&&(r&&(r+=" "),r+=t);return r}var dp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dU(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var zy={},Fy={},IO;function hU(){return IO||(IO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t}(Fy)),Fy}var Wy={},DO;function M8(){return DO||(DO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t}(Wy)),Wy}var qy={},NO;function k8(){return NO||(NO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t}(qy)),qy}var Vy={},LO;function V_(){return LO||(LO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let a=0,o="",s="",u=!1;for(n.charCodeAt(0)===46&&(r.push(""),a++);a<i;){const c=n[a];s?c==="\\"&&a+1<i?(a++,o+=n[a]):c===s?s="":o+=c:u?c==='"'||c==="'"?s=c:c==="]"?(u=!1,r.push(o),o=""):o+=c:c==="["?(u=!0,o&&(r.push(o),o="")):c==="."?o&&(r.push(o),o=""):o+=c,a++}return o&&r.push(o),r}e.toPath=t}(Vy)),Vy}var $O;function H_(){return $O||($O=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hU(),n=M8(),r=k8(),i=V_();function a(s,u,c){if(s==null)return c;switch(typeof u){case"string":{if(t.isUnsafeProperty(u))return c;const l=s[u];return l===void 0?n.isDeepKey(u)?a(s,i.toPath(u),c):c:l}case"number":case"symbol":{typeof u=="number"&&(u=r.toKey(u));const l=s[u];return l===void 0?c:l}default:{if(Array.isArray(u))return o(s,u,c);if(Object.is(u?.valueOf(),-0)?u="-0":u=String(u),t.isUnsafeProperty(u))return c;const l=s[u];return l===void 0?c:l}}}function o(s,u,c){if(u.length===0)return c;let l=s;for(let d=0;d<u.length;d++){if(l==null||t.isUnsafeProperty(u[d]))return c;l=l[u[d]]}return l===void 0?c:l}e.get=a}(zy)),zy}var Hy,BO;function pU(){return BO||(BO=1,Hy=H_().get),Hy}var gU=pU();const Es=Va(gU);var Xn=e=>e===0?0:e>0?1:-1,Ar=e=>typeof e=="number"&&e!=+e,ru=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Me=e=>(typeof e=="number"||e instanceof Number)&&!Ar(e),si=e=>Me(e)||typeof e=="string",vU=0,ko=e=>{var t=++vU;return"".concat(e||"").concat(t)},zr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Me(t)&&typeof t!="string")return r;var a;if(ru(t)){if(n==null)return r;var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return Ar(a)&&(a=r),i&&n!=null&&a>n&&(a=n),a},R8=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},cr=(e,t)=>Me(e)&&Me(t)?n=>e+n*(t-e):()=>t;function hc(e,t,n){return Me(e)&&Me(t)?e+n*(t-e):t}function I8(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Es(r,t))===n)}var mU=e=>{if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,u=0,c=0,l=0;l<t;l++)u=e[l].cx||0,c=e[l].cy||0,n+=u,r+=c,i+=u*c,a+=u*u,o=Math.min(o,u),s=Math.max(s,u);var d=t*a!==n*n?(t*i-n*r)/(t*a-n*n):0;return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},Rt=e=>e===null||typeof e>"u",Hd=e=>Rt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),yU=["viewBox","children"],bU=["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"],zO=["points","pathLength"],Uy={svg:yU,polygon:zO,polyline:zO},U_=["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"],G_=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(M.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{U_.includes(i)&&(r[i]=a=>n[i](n,a))}),r},wU=(e,t,n)=>r=>(e(t,n,r),null),_l=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];U_.includes(i)&&typeof a=="function"&&(r||(r={}),r[i]=wU(a,t,n))}),r},FO=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",WO=null,Gy=null,D8=e=>{if(e===WO&&Array.isArray(Gy))return Gy;var t=[];return M.Children.forEach(e,n=>{Rt(n)||(k_.isFragment(n)?t=t.concat(D8(n.props.children)):t.push(n))}),Gy=t,WO=e,t};function El(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>FO(i)):r=[FO(t)],D8(e).forEach(i=>{var a=Es(i,"type.displayName")||Es(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}var Jv=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,xU=(e,t,n,r)=>{var i,a=(i=r&&Uy?.[r])!==null&&i!==void 0?i:[];return t.startsWith("data-")||typeof e!="function"&&(r&&a.includes(t)||bU.includes(t))||n&&U_.includes(t)},it=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(M.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(a=>{var o;xU((o=r)===null||o===void 0?void 0:o[a],a,t,n)&&(i[a]=r[a])}),i},_U=["children","width","height","viewBox","className","style","title","desc"];function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mw.apply(null,arguments)}function EU(e,t){if(e==null)return{};var n,r,i=SU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function SU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var K_=M.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:u,desc:c}=e,l=EU(e,_U),d=a||{width:r,height:i,x:0,y:0},h=Ot("recharts-surface",o);return B.createElement("svg",Mw({},it(l,!0,"svg"),{className:h,width:r,height:i,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),B.createElement("title",null,u),B.createElement("desc",null,c),n)}),AU=["children","className"];function kw(){return kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kw.apply(null,arguments)}function OU(e,t){if(e==null)return{};var n,r,i=TU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function TU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Vt=B.forwardRef((e,t)=>{var{children:n,className:r}=e,i=OU(e,AU),a=Ot("recharts-layer",r);return B.createElement("g",kw({className:a},it(i,!0),{ref:t}),n)}),N8=M.createContext(null),PU=()=>M.useContext(N8);function pt(e){return function(){return e}}const qO=Math.abs,vr=Math.atan2,vo=Math.cos,CU=Math.max,Fc=Math.min,ti=Math.sin,ln=Math.sqrt,wr=1e-12,Ss=Math.PI,xg=Ss/2,bs=2*Ss;function jU(e){return e>1?0:e<-1?Ss:Math.acos(e)}function VO(e){return e>=1?xg:e<=-1?-xg:Math.asin(e)}const Rw=Math.PI,Iw=2*Rw,Ys=1e-6,MU=Iw-Ys;function L8(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function kU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return L8;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Ud=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?L8:kU(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=r-t,c=i-n,l=o-t,d=s-n,h=l*l+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ys)if(!(Math.abs(d*u-c*l)>Ys)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let g=r-o,m=i-s,y=u*u+c*c,v=g*g+m*m,b=Math.sqrt(y),_=Math.sqrt(h),E=a*Math.tan((Rw-Math.acos((y+h-v)/(2*b*_)))/2),S=E/_,A=E/b;Math.abs(S-1)>Ys&&this._append`L${t+S*l},${n+S*d}`,this._append`A${a},${a},0,0,${+(d*g>l*m)},${this._x1=t+A*u},${this._y1=n+A*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),c=t+s,l=n+u,d=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Ys||Math.abs(this._y1-l)>Ys)&&this._append`L${c},${l}`,r&&(h<0&&(h=h%Iw+Iw),h>MU?this._append`A${r},${r},0,1,${d},${t-s},${n-u}A${r},${r},0,1,${d},${this._x1=c},${this._y1=l}`:h>Ys&&this._append`A${r},${r},0,${+(h>=Rw)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function Y_(){return new Ud}Y_.prototype=Ud.prototype;function RU(e=3){return new Ud(+e)}function Gd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ud(t)}function IU(e){return e.innerRadius}function DU(e){return e.outerRadius}function NU(e){return e.startAngle}function LU(e){return e.endAngle}function $U(e){return e&&e.padAngle}function BU(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,l=o-i,d=s-a,h=d*u-l*c;if(!(h*h<wr))return h=(l*(t-a)-d*(e-i))/h,[e+h*u,t+h*c]}function hp(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/ln(s*s+u*u),l=c*u,d=-c*s,h=e+l,g=t+d,m=n+l,y=r+d,v=(h+m)/2,b=(g+y)/2,_=m-h,E=y-g,S=_*_+E*E,A=i-a,O=h*y-m*g,P=(E<0?-1:1)*ln(CU(0,A*A*S-O*O)),j=(O*E-_*P)/S,$=(-O*_-E*P)/S,z=(O*E+_*P)/S,I=(-O*_+E*P)/S,H=j-v,D=$-b,C=z-v,L=I-b;return H*H+D*D>C*C+L*L&&(j=z,$=I),{cx:j,cy:$,x01:-l,y01:-d,x11:j*(i/A-1),y11:$*(i/A-1)}}function zU(){var e=IU,t=DU,n=pt(0),r=null,i=NU,a=LU,o=$U,s=null,u=Gd(c);function c(){var l,d,h=+e.apply(this,arguments),g=+t.apply(this,arguments),m=i.apply(this,arguments)-xg,y=a.apply(this,arguments)-xg,v=qO(y-m),b=y>m;if(s||(s=l=u()),g<h&&(d=g,g=h,h=d),!(g>wr))s.moveTo(0,0);else if(v>bs-wr)s.moveTo(g*vo(m),g*ti(m)),s.arc(0,0,g,m,y,!b),h>wr&&(s.moveTo(h*vo(y),h*ti(y)),s.arc(0,0,h,y,m,b));else{var _=m,E=y,S=m,A=y,O=v,P=v,j=o.apply(this,arguments)/2,$=j>wr&&(r?+r.apply(this,arguments):ln(h*h+g*g)),z=Fc(qO(g-h)/2,+n.apply(this,arguments)),I=z,H=z,D,C;if($>wr){var L=VO($/h*ti(j)),N=VO($/g*ti(j));(O-=L*2)>wr?(L*=b?1:-1,S+=L,A-=L):(O=0,S=A=(m+y)/2),(P-=N*2)>wr?(N*=b?1:-1,_+=N,E-=N):(P=0,_=E=(m+y)/2)}var V=g*vo(_),Z=g*ti(_),K=h*vo(A),R=h*ti(A);if(z>wr){var W=g*vo(E),U=g*ti(E),Y=h*vo(S),ae=h*ti(S),re;if(v<Ss)if(re=BU(V,Z,Y,ae,W,U,K,R)){var ge=V-re[0],ye=Z-re[1],_e=W-re[0],ce=U-re[1],pe=1/ti(jU((ge*_e+ye*ce)/(ln(ge*ge+ye*ye)*ln(_e*_e+ce*ce)))/2),Oe=ln(re[0]*re[0]+re[1]*re[1]);I=Fc(z,(h-Oe)/(pe-1)),H=Fc(z,(g-Oe)/(pe+1))}else I=H=0}P>wr?H>wr?(D=hp(Y,ae,V,Z,g,H,b),C=hp(W,U,K,R,g,H,b),s.moveTo(D.cx+D.x01,D.cy+D.y01),H<z?s.arc(D.cx,D.cy,H,vr(D.y01,D.x01),vr(C.y01,C.x01),!b):(s.arc(D.cx,D.cy,H,vr(D.y01,D.x01),vr(D.y11,D.x11),!b),s.arc(0,0,g,vr(D.cy+D.y11,D.cx+D.x11),vr(C.cy+C.y11,C.cx+C.x11),!b),s.arc(C.cx,C.cy,H,vr(C.y11,C.x11),vr(C.y01,C.x01),!b))):(s.moveTo(V,Z),s.arc(0,0,g,_,E,!b)):s.moveTo(V,Z),!(h>wr)||!(O>wr)?s.lineTo(K,R):I>wr?(D=hp(K,R,W,U,h,-I,b),C=hp(V,Z,Y,ae,h,-I,b),s.lineTo(D.cx+D.x01,D.cy+D.y01),I<z?s.arc(D.cx,D.cy,I,vr(D.y01,D.x01),vr(C.y01,C.x01),!b):(s.arc(D.cx,D.cy,I,vr(D.y01,D.x01),vr(D.y11,D.x11),!b),s.arc(0,0,h,vr(D.cy+D.y11,D.cx+D.x11),vr(C.cy+C.y11,C.cx+C.x11),b),s.arc(C.cx,C.cy,I,vr(C.y11,C.x11),vr(C.y01,C.x01),!b))):s.arc(0,0,h,A,S,b)}if(s.closePath(),l)return s=null,l+""||null}return c.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ss/2;return[vo(d)*l,ti(d)*l]},c.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:pt(+l),c):e},c.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:pt(+l),c):t},c.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:pt(+l),c):n},c.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:pt(+l),c):r},c.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:pt(+l),c):i},c.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:pt(+l),c):a},c.padAngle=function(l){return arguments.length?(o=typeof l=="function"?l:pt(+l),c):o},c.context=function(l){return arguments.length?(s=l??null,c):s},c}var FU=Array.prototype.slice;function Qv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $8(e){this._context=e}$8.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 Sl(e){return new $8(e)}function X_(e){return e[0]}function Z_(e){return e[1]}function e0(e,t){var n=pt(!0),r=null,i=Sl,a=null,o=Gd(s);e=typeof e=="function"?e:e===void 0?X_:pt(e),t=typeof t=="function"?t:t===void 0?Z_:pt(t);function s(u){var c,l=(u=Qv(u)).length,d,h=!1,g;for(r==null&&(a=i(g=o())),c=0;c<=l;++c)!(c<l&&n(d=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(d,c,u),+t(d,c,u));if(g)return a=null,g+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:pt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:pt(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:pt(!!u),s):n},s.curve=function(u){return arguments.length?(i=u,r!=null&&(a=i(r)),s):i},s.context=function(u){return arguments.length?(u==null?r=a=null:a=i(r=u),s):r},s}function Rc(e,t,n){var r=null,i=pt(!0),a=null,o=Sl,s=null,u=Gd(c);e=typeof e=="function"?e:e===void 0?X_:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Z_:pt(+n);function c(d){var h,g,m,y=(d=Qv(d)).length,v,b=!1,_,E=new Array(y),S=new Array(y);for(a==null&&(s=o(_=u())),h=0;h<=y;++h){if(!(h<y&&i(v=d[h],h,d))===b)if(b=!b)g=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=g;--m)s.point(E[m],S[m]);s.lineEnd(),s.areaEnd()}b&&(E[h]=+e(v,h,d),S[h]=+t(v,h,d),s.point(r?+r(v,h,d):E[h],n?+n(v,h,d):S[h]))}if(_)return s=null,_+""||null}function l(){return e0().defined(i).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:pt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:pt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:pt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:pt(+d),c):n},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(n)},c.lineX1=function(){return l().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:pt(!!d),c):i},c.curve=function(d){return arguments.length?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function WU(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function qU(e){return e}function VU(){var e=qU,t=WU,n=null,r=pt(0),i=pt(bs),a=pt(0);function o(s){var u,c=(s=Qv(s)).length,l,d,h=0,g=new Array(c),m=new Array(c),y=+r.apply(this,arguments),v=Math.min(bs,Math.max(-bs,i.apply(this,arguments)-y)),b,_=Math.min(Math.abs(v)/c,a.apply(this,arguments)),E=_*(v<0?-1:1),S;for(u=0;u<c;++u)(S=m[g[u]=u]=+e(s[u],u,s))>0&&(h+=S);for(t!=null?g.sort(function(A,O){return t(m[A],m[O])}):n!=null&&g.sort(function(A,O){return n(s[A],s[O])}),u=0,d=h?(v-c*E)/h:0;u<c;++u,y=b)l=g[u],S=m[l],b=y+(S>0?S*d:0)+E,m[l]={data:s[l],index:u,value:S,startAngle:y,endAngle:b,padAngle:_};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:pt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:pt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:pt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:pt(+s),o):a},o}var B8=J_(Sl);function z8(e){this._curve=e}z8.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function J_(e){function t(n){return new z8(e(n))}return t._curve=e,t}function Lf(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(J_(n)):t()._curve},e}function HO(){return Lf(e0().curve(B8))}function UO(){var e=Rc().curve(B8),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Lf(n())},delete e.lineX0,e.lineEndAngle=function(){return Lf(r())},delete e.lineX1,e.lineInnerRadius=function(){return Lf(i())},delete e.lineY0,e.lineOuterRadius=function(){return Lf(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(J_(o)):t()._curve},e}function $f(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class F8{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class HU{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=$f(this._x0,this._y0),i=$f(this._x0,this._y0=(this._y0+n)/2),a=$f(t,this._y0),o=$f(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}this._x0=t,this._y0=n}}function Q_(e){return new F8(e,!0)}function e2(e){return new F8(e,!1)}function UU(e){return new HU(e)}function GU(e){return e.source}function KU(e){return e.target}function t0(e){let t=GU,n=KU,r=X_,i=Z_,a=null,o=null,s=Gd(u);function u(){let c;const l=FU.call(arguments),d=t.apply(this,l),h=n.apply(this,l);if(a==null&&(o=e(c=s())),o.lineStart(),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=h,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+""||null}return u.source=function(c){return arguments.length?(t=c,u):t},u.target=function(c){return arguments.length?(n=c,u):n},u.x=function(c){return arguments.length?(r=typeof c=="function"?c:pt(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:pt(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function YU(){return t0(Q_)}function XU(){return t0(e2)}function ZU(){const e=t0(UU);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const JU=ln(3),W8={draw(e,t){const n=ln(t+Fc(t/28,.75))*.59436,r=n/2,i=r*JU;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Al={draw(e,t){const n=ln(t/Ss);e.moveTo(n,0),e.arc(0,0,n,0,bs)}},t2={draw(e,t){const n=ln(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},q8=ln(1/3),QU=q8*2,n2={draw(e,t){const n=ln(t/QU),r=n*q8;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},V8={draw(e,t){const n=ln(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},H8={draw(e,t){const n=ln(t-Fc(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},r2={draw(e,t){const n=ln(t),r=-n/2;e.rect(r,r,n,n)}},U8={draw(e,t){const n=ln(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},eG=.8908130915292852,G8=ti(Ss/10)/ti(7*Ss/10),tG=ti(bs/10)*G8,nG=-vo(bs/10)*G8,i2={draw(e,t){const n=ln(t*eG),r=tG*n,i=nG*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=bs*a/5,s=vo(o),u=ti(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Ky=ln(3),a2={draw(e,t){const n=-ln(t/(Ky*3));e.moveTo(0,n*2),e.lineTo(-Ky*n,-n),e.lineTo(Ky*n,-n),e.closePath()}},rG=ln(3),K8={draw(e,t){const n=ln(t)*.6824,r=n/2,i=n*rG/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},zi=-.5,Fi=ln(3)/2,Dw=1/ln(12),iG=(Dw/2+1)*3,o2={draw(e,t){const n=ln(t/iG),r=n/2,i=n*Dw,a=r,o=n*Dw+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(zi*r-Fi*i,Fi*r+zi*i),e.lineTo(zi*a-Fi*o,Fi*a+zi*o),e.lineTo(zi*s-Fi*u,Fi*s+zi*u),e.lineTo(zi*r+Fi*i,zi*i-Fi*r),e.lineTo(zi*a+Fi*o,zi*o-Fi*a),e.lineTo(zi*s+Fi*u,zi*u-Fi*s),e.closePath()}},Nw={draw(e,t){const n=ln(t-Fc(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},GO=[Al,t2,n2,r2,i2,a2,o2],aG=[Al,H8,Nw,K8,W8,U8,V8];function Y8(e,t){let n=null,r=Gd(i);e=typeof e=="function"?e:pt(e||Al),t=typeof t=="function"?t:pt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:pt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:pt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function As(){}function _g(e,t,n){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+n)/6)}function n0(e){this._context=e}n0.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:_g(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:_g(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X8(e){return new n0(e)}function Z8(e){this._context=e}Z8.prototype={areaStart:As,areaEnd:As,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:_g(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J8(e){return new Z8(e)}function Q8(e){this._context=e}Q8.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:_g(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ej(e){return new Q8(e)}function tj(e,t){this._basis=new n0(e),this._beta=t}tj.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*a),this._beta*t[s]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const oG=function e(t){function n(r){return t===1?new n0(r):new tj(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Eg(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function s2(e,t){this._context=e,this._k=(1-t)/6}s2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Eg(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Eg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const sG=function e(t){function n(r){return new s2(r,t)}return n.tension=function(r){return e(+r)},n}(0);function u2(e,t){this._context=e,this._k=(1-t)/6}u2.prototype={areaStart:As,areaEnd:As,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Eg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const uG=function e(t){function n(r){return new u2(r,t)}return n.tension=function(r){return e(+r)},n}(0);function c2(e,t){this._context=e,this._k=(1-t)/6}c2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Eg(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const cG=function e(t){function n(r){return new c2(r,t)}return n.tension=function(r){return e(+r)},n}(0);function l2(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>wr){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>wr){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/l,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function nj(e,t){this._context=e,this._alpha=t}nj.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:l2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const lG=function e(t){function n(r){return t?new nj(r,t):new s2(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rj(e,t){this._context=e,this._alpha=t}rj.prototype={areaStart:As,areaEnd:As,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:l2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const fG=function e(t){function n(r){return t?new rj(r,t):new u2(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function ij(e,t){this._context=e,this._alpha=t}ij.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:l2(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dG=function e(t){function n(r){return t?new ij(r,t):new c2(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aj(e){this._context=e}aj.prototype={areaStart:As,areaEnd:As,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 oj(e){return new aj(e)}function KO(e){return e<0?-1:1}function YO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(KO(a)+KO(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function XO(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Yy(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Sg(e){this._context=e}Sg.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:Yy(this,this._t0,XO(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 n=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,Yy(this,XO(this,n=YO(this,e,t)),n);break;default:Yy(this,this._t0,n=YO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sj(e){this._context=new uj(e)}(sj.prototype=Object.create(Sg.prototype)).point=function(e,t){Sg.prototype.point.call(this,t,e)};function uj(e){this._context=e}uj.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function cj(e){return new Sg(e)}function lj(e){return new sj(e)}function fj(e){this._context=e}fj.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ZO(e),i=ZO(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===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 ZO(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function dj(e){return new fj(e)}function r0(e,t){this._context=e,this._t=t}r0.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function hj(e){return new r0(e,.5)}function pj(e){return new r0(e,0)}function gj(e){return new r0(e,1)}function wu(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function xu(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hG(e,t){return e[t]}function pG(e){const t=[];return t.key=e,t}function vj(){var e=pt([]),t=xu,n=wu,r=hG;function i(a){var o=Array.from(e.apply(this,arguments),pG),s,u=o.length,c=-1,l;for(const d of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(d,o[s].key,c,a)]).data=d;for(s=0,l=Qv(t(o));s<u;++s)o[l[s]].index=s;return n(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:pt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:pt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?xu:typeof a=="function"?a:pt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??wu,i):n},i}function mj(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}wu(e,t)}}function gG(e,t){if((u=e.length)>0)for(var n,r=0,i,a,o,s,u,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<u;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function yj(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}wu(e,t)}}function bj(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,u=0,c=0;s<o;++s){for(var l=e[t[s]],d=l[r][1]||0,h=l[r-1][1]||0,g=(d-h)/2,m=0;m<s;++m){var y=e[t[m]],v=y[r][1]||0,b=y[r-1][1]||0;g+=v-b}u+=d,c+=g*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=c/u)}i[r-1][1]+=i[r-1][0]=n,wu(e,t)}}function wj(e){var t=e.map(vG);return xu(e).sort(function(n,r){return t[n]-t[r]})}function vG(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function xj(e){var t=e.map(_j);return xu(e).sort(function(n,r){return t[n]-t[r]})}function _j(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function mG(e){return xj(e).reverse()}function yG(e){var t=e.length,n,r,i=e.map(_j),a=wj(e),o=0,s=0,u=[],c=[];for(n=0;n<t;++n)r=a[n],o<s?(o+=i[r],u.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(u)}function bG(e){return xu(e).reverse()}var wG=["type","size","sizeType"];function Lw(){return Lw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lw.apply(null,arguments)}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){xG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xG(e,t,n){return(t=_G(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _G(e){var t=EG(e,"string");return typeof t=="symbol"?t:t+""}function EG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SG(e,t){if(e==null)return{};var n,r,i=AG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function AG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ej={symbolCircle:Al,symbolCross:t2,symbolDiamond:n2,symbolSquare:r2,symbolStar:i2,symbolTriangle:a2,symbolWye:o2},OG=Math.PI/180,TG=e=>{var t="symbol".concat(Hd(e));return Ej[t]||Al},PG=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*OG;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**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}},CG=(e,t)=>{Ej["symbol".concat(Hd(e))]=t},i0=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=SG(e,wG),a=QO(QO({},i),{},{type:t,size:n,sizeType:r}),o=()=>{var d=TG(t),h=Y8().type(d).size(PG(n,r,t));return h()},{className:s,cx:u,cy:c}=a,l=it(a,!0);return u===+u&&c===+c&&n===+n?B.createElement("path",Lw({},l,{className:Ot("recharts-symbols",s),transform:"translate(".concat(u,", ").concat(c,")"),d:o()})):null};i0.registerSymbol=CG;function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$w.apply(null,arguments)}function eT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eT(Object(n),!0).forEach(function(r){f2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f2(e,t,n){return(t=MG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MG(e){var t=kG(e,"string");return typeof t=="symbol"?t:t+""}function kG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wi=32;class d2 extends M.PureComponent{renderIcon(t,n){var{inactiveColor:r}=this.props,i=Wi/2,a=Wi/6,o=Wi/3,s=t.inactive?r:t.color,u=n??t.type;if(u==="none")return null;if(u==="plainline")return B.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:Wi,y2:i,className:"recharts-legend-icon"});if(u==="line")return B.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(o,`
2
2
  A`).concat(a,",").concat(a,",0,1,1,").concat(2*o,",").concat(i,`
3
3
  H`).concat(Wi,"M").concat(2*o,",").concat(i,`
4
4
  A`).concat(a,",").concat(a,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(u==="rect")return B.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Wi/8,"h").concat(Wi,"v").concat(Wi*3/4,"h").concat(-Wi,"z"),className:"recharts-legend-icon"});if(B.isValidElement(t.legendIcon)){var c=jG({},t);return delete c.legendIcon,B.cloneElement(t.legendIcon,c)}return B.createElement(i0,{fill:s,cx:i,cy:i,size:Wi,sizeType:"diameter",type:u})}renderItems(){var{payload:t,iconSize:n,layout:r,formatter:i,inactiveColor:a,iconType:o}=this.props,s={x:0,y:0,width:Wi,height:Wi},u={display:r==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((l,d)=>{var h=l.formatter||i,g=Ot({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:l.inactive});if(l.type==="none")return null;var m=l.inactive?a:l.color,y=h?h(l.value,l,d):l.value;return B.createElement("li",$w({className:g,style:u,key:"legend-item-".concat(d)},_l(this.props,l,d)),B.createElement(K_,{width:n,height:n,viewBox:s,style:c,"aria-label":"".concat(y," legend icon")},this.renderIcon(l,o)),B.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},y))})}render(){var{payload:t,layout:n,align:r}=this.props;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?r:"left"};return B.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}f2(d2,"displayName","Legend");f2(d2,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var Xy={},Zy={},tT;function RG(){return tT||(tT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let a=0;a<n.length;a++){const o=n[a],s=r(o);i.has(s)||i.set(s,o)}return Array.from(i.values())}e.uniqBy=t}(Zy)),Zy}var Jy={},nT;function Sj(){return nT||(nT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t}(Jy)),Jy}var Qy={},e1={},t1={},rT;function IG(){return rT||(rT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t}(t1)),t1}var iT;function h2(){return iT||(iT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IG();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n}(e1)),e1}var n1={},aT;function DG(){return aT||(aT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t}(n1)),n1}var oT;function NG(){return oT||(oT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=h2(),n=DG();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r}(Qy)),Qy}var r1={},i1={},sT;function LG(){return sT||(sT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H_();function n(r){return function(i){return t.get(i,r)}}e.property=n}(i1)),i1}var a1={},o1={},s1={},u1={},uT;function Aj(){return uT||(uT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t}(u1)),u1}var c1={},cT;function Oj(){return cT||(cT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t}(c1)),c1}var l1={},lT;function p2(){return lT||(lT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t}(l1)),l1}var fT;function $G(){return fT||(fT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g2(),n=Aj(),r=Oj(),i=p2();function a(d,h,g){return typeof g!="function"?t.isMatch(d,h):o(d,h,function m(y,v,b,_,E,S){const A=g(y,v,b,_,E,S);return A!==void 0?!!A:o(y,v,m,S)},new Map)}function o(d,h,g,m){if(h===d)return!0;switch(typeof h){case"object":return s(d,h,g,m);case"function":return Object.keys(h).length>0?o(d,{...h},g,m):i.eq(d,h);default:return n.isObject(d)?typeof h=="string"?h==="":!0:i.eq(d,h)}}function s(d,h,g,m){if(h==null)return!0;if(Array.isArray(h))return c(d,h,g,m);if(h instanceof Map)return u(d,h,g,m);if(h instanceof Set)return l(d,h,g,m);const y=Object.keys(h);if(d==null)return y.length===0;if(y.length===0)return!0;if(m&&m.has(h))return m.get(h)===d;m&&m.set(h,d);try{for(let v=0;v<y.length;v++){const b=y[v];if(!r.isPrimitive(d)&&!(b in d)||h[b]===void 0&&d[b]!==void 0||h[b]===null&&d[b]!==null||!g(d[b],h[b],b,d,h,m))return!1}return!0}finally{m&&m.delete(h)}}function u(d,h,g,m){if(h.size===0)return!0;if(!(d instanceof Map))return!1;for(const[y,v]of h.entries()){const b=d.get(y);if(g(b,v,y,d,h,m)===!1)return!1}return!0}function c(d,h,g,m){if(h.length===0)return!0;if(!Array.isArray(d))return!1;const y=new Set;for(let v=0;v<h.length;v++){const b=h[v];let _=!1;for(let E=0;E<d.length;E++){if(y.has(E))continue;const S=d[E];let A=!1;if(g(S,b,v,d,h,m)&&(A=!0),A){y.add(E),_=!0;break}}if(!_)return!1}return!0}function l(d,h,g,m){return h.size===0?!0:d instanceof Set?c([...d],[...h],g,m):!1}e.isMatchWith=a,e.isSetMatch=l}(s1)),s1}var dT;function g2(){return dT||(dT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$G();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n}(o1)),o1}var f1={},d1={},h1={},hT;function Tj(){return hT||(hT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t}(h1)),h1}var p1={},pT;function v2(){return pT||(pT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t}(p1)),p1}var g1={},gT;function m2(){return gT||(gT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",s="[object Date]",u="[object Map]",c="[object Set]",l="[object Array]",d="[object Function]",h="[object ArrayBuffer]",g="[object Object]",m="[object Error]",y="[object DataView]",v="[object Uint8Array]",b="[object Uint8ClampedArray]",_="[object Uint16Array]",E="[object Uint32Array]",S="[object BigUint64Array]",A="[object Int8Array]",O="[object Int16Array]",P="[object Int32Array]",j="[object BigInt64Array]",$="[object Float32Array]",z="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=h,e.arrayTag=l,e.bigInt64ArrayTag=j,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=y,e.dateTag=s,e.errorTag=m,e.float32ArrayTag=$,e.float64ArrayTag=z,e.functionTag=d,e.int16ArrayTag=O,e.int32ArrayTag=P,e.int8ArrayTag=A,e.mapTag=u,e.numberTag=r,e.objectTag=g,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=o,e.uint16ArrayTag=_,e.uint32ArrayTag=E,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=b}(g1)),g1}var v1={},vT;function BG(){return vT||(vT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t}(v1)),v1}var mT;function Pj(){return mT||(mT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tj(),n=v2(),r=m2(),i=Oj(),a=BG();function o(l,d){return s(l,void 0,l,new Map,d)}function s(l,d,h,g=new Map,m=void 0){const y=m?.(l,d,h,g);if(y!=null)return y;if(i.isPrimitive(l))return l;if(g.has(l))return g.get(l);if(Array.isArray(l)){const v=new Array(l.length);g.set(l,v);for(let b=0;b<l.length;b++)v[b]=s(l[b],b,h,g,m);return Object.hasOwn(l,"index")&&(v.index=l.index),Object.hasOwn(l,"input")&&(v.input=l.input),v}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp){const v=new RegExp(l.source,l.flags);return v.lastIndex=l.lastIndex,v}if(l instanceof Map){const v=new Map;g.set(l,v);for(const[b,_]of l)v.set(b,s(_,b,h,g,m));return v}if(l instanceof Set){const v=new Set;g.set(l,v);for(const b of l)v.add(s(b,void 0,h,g,m));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(l))return l.subarray();if(a.isTypedArray(l)){const v=new(Object.getPrototypeOf(l)).constructor(l.length);g.set(l,v);for(let b=0;b<l.length;b++)v[b]=s(l[b],b,h,g,m);return v}if(l instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&l instanceof SharedArrayBuffer)return l.slice(0);if(l instanceof DataView){const v=new DataView(l.buffer.slice(0),l.byteOffset,l.byteLength);return g.set(l,v),u(v,l,h,g,m),v}if(typeof File<"u"&&l instanceof File){const v=new File([l],l.name,{type:l.type});return g.set(l,v),u(v,l,h,g,m),v}if(l instanceof Blob){const v=new Blob([l],{type:l.type});return g.set(l,v),u(v,l,h,g,m),v}if(l instanceof Error){const v=new l.constructor;return g.set(l,v),v.message=l.message,v.name=l.name,v.stack=l.stack,v.cause=l.cause,u(v,l,h,g,m),v}if(typeof l=="object"&&c(l)){const v=Object.create(Object.getPrototypeOf(l));return g.set(l,v),u(v,l,h,g,m),v}return l}function u(l,d,h=l,g,m){const y=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<y.length;v++){const b=y[v],_=Object.getOwnPropertyDescriptor(l,b);(_==null||_.writable)&&(l[b]=s(d[b],b,h,g,m))}}function c(l){switch(n.getTag(l)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=s,e.copyProperties=u}(d1)),d1}var yT;function zG(){return yT||(yT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pj();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n}(f1)),f1}var bT;function FG(){return bT||(bT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g2(),n=zG();function r(i){return i=n.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=r}(a1)),a1}var m1={},y1={},b1={},wT;function WG(){return wT||(wT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pj(),n=m2();function r(i,a){return t.cloneDeepWith(i,(o,s,u,c)=>{const l=a?.(o,s,u,c);if(l!=null)return l;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new i.constructor(i?.valueOf());return t.copyProperties(d,i),d}case n.argumentsTag:{const d={};return t.copyProperties(d,i),d.length=i.length,d[Symbol.iterator]=i[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r}(b1)),b1}var xT;function qG(){return xT||(xT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WG();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n}(y1)),y1}var w1={},x1={},_T;function Cj(){return _T||(_T=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n}(x1)),x1}var _1={},ET;function VG(){return ET||(ET=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=v2();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n}(_1)),_1}var ST;function HG(){return ST||(ST=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=M8(),n=Cj(),r=VG(),i=V_();function a(o,s){let u;if(Array.isArray(s)?u=s:typeof s=="string"&&t.isDeepKey(s)&&o?.[s]==null?u=i.toPath(s):u=[s],u.length===0)return!1;let c=o;for(let l=0;l<u.length;l++){const d=u[l];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=a}(w1)),w1}var AT;function UG(){return AT||(AT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=g2(),n=k8(),r=qG(),i=H_(),a=HG();function o(s,u){switch(typeof s){case"object":{Object.is(s?.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return u=r.cloneDeep(u),function(c){const l=i.get(c,s);return l===void 0?a.has(c,s):u===void 0?l===void 0:t.isMatch(l,u)}}e.matchesProperty=o}(m1)),m1}var OT;function GG(){return OT||(OT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Sj(),n=LG(),r=FG(),i=UG();function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):r.matches(o);case"string":case"symbol":case"number":return n.property(o)}}e.iteratee=a}(r1)),r1}var TT;function KG(){return TT||(TT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RG(),n=Sj(),r=NG(),i=GG();function a(o,s=n.identity){return r.isArrayLikeObject(o)?t.uniqBy(Array.from(o),i.iteratee(s)):[]}e.uniqBy=a}(Xy)),Xy}var E1,PT;function YG(){return PT||(PT=1,E1=KG().uniqBy),E1}var XG=YG();const CT=Va(XG);function jj(e,t,n){return t===!0?CT(e,n):typeof t=="function"?CT(e,t):e}var pp={exports:{}},S1={},gp={exports:{}},A1={};/**
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var jT;function ZG(){if(jT)return A1;jT=1;var e=k;function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(d,h){var g=h(),m=r({inst:{value:g,getSnapshot:h}}),y=m[0].inst,v=m[1];return a(function(){y.value=g,y.getSnapshot=h,u(y)&&v({inst:y})},[d,g,h]),i(function(){return u(y)&&v({inst:y}),d(function(){u(y)&&v({inst:y})})},[d]),o(g),g}function u(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!n(d,g)}catch{return!0}}function c(d,h){return h()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return A1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,A1}var O1={};/**
12
+ */var jT;function ZG(){if(jT)return A1;jT=1;var e=M;function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(d,h){var g=h(),m=r({inst:{value:g,getSnapshot:h}}),y=m[0].inst,v=m[1];return a(function(){y.value=g,y.getSnapshot=h,u(y)&&v({inst:y})},[d,g,h]),i(function(){return u(y)&&v({inst:y}),d(function(){u(y)&&v({inst:y})})},[d]),o(g),g}function u(d){var h=d.getSnapshot;d=d.value;try{var g=h();return!n(d,g)}catch{return!0}}function c(d,h){return h()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return A1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,A1}var O1={};/**
13
13
  * @license React
14
14
  * use-sync-external-store-shim.development.js
15
15
  *
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */var MT;function JG(){return MT||(MT=1,process.env.NODE_ENV!=="production"&&function(){function e(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}function t(g,m){l||i.startTransition===void 0||(l=!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 y=m();if(!d){var v=m();a(y,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=o({inst:{value:y,getSnapshot:m}});var b=v[0].inst,_=v[1];return u(function(){b.value=y,b.getSnapshot=m,n(b)&&_({inst:b})},[g,y,m]),s(function(){return n(b)&&_({inst:b}),g(function(){n(b)&&_({inst:b})})},[g]),c(y),y}function n(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!a(g,y)}catch{return!0}}function r(g,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=k,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue,l=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;O1.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),O1}var kT;function Mj(){return kT||(kT=1,process.env.NODE_ENV==="production"?gp.exports=ZG():gp.exports=JG()),gp.exports}/**
20
+ */var MT;function JG(){return MT||(MT=1,process.env.NODE_ENV!=="production"&&function(){function e(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}function t(g,m){l||i.startTransition===void 0||(l=!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 y=m();if(!d){var v=m();a(y,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=o({inst:{value:y,getSnapshot:m}});var b=v[0].inst,_=v[1];return u(function(){b.value=y,b.getSnapshot=m,n(b)&&_({inst:b})},[g,y,m]),s(function(){return n(b)&&_({inst:b}),g(function(){n(b)&&_({inst:b})})},[g]),c(y),y}function n(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!a(g,y)}catch{return!0}}function r(g,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=M,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue,l=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;O1.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),O1}var kT;function Mj(){return kT||(kT=1,process.env.NODE_ENV==="production"?gp.exports=ZG():gp.exports=JG()),gp.exports}/**
21
21
  * @license React
22
22
  * use-sync-external-store-shim/with-selector.production.js
23
23
  *
@@ -25,7 +25,7 @@
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */var RT;function QG(){if(RT)return S1;RT=1;var e=k,t=Mj();function n(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,u=e.useDebugValue;return S1.useSyncExternalStoreWithSelector=function(c,l,d,h,g){var m=a(null);if(m.current===null){var y={hasValue:!1,value:null};m.current=y}else y=m.current;m=s(function(){function b(O){if(!_){if(_=!0,E=O,O=h(O),g!==void 0&&y.hasValue){var P=y.value;if(g(P,O))return S=P}return S=O}if(P=S,r(E,O))return P;var j=h(O);return g!==void 0&&g(P,j)?(E=O,P):(E=O,S=j)}var _=!1,E,S,A=d===void 0?null:d;return[function(){return b(l())},A===null?void 0:function(){return b(A())}]},[l,d,h,g]);var v=i(c,m[0],m[1]);return o(function(){y.hasValue=!0,y.value=v},[v]),u(v),v},S1}var T1={};/**
28
+ */var RT;function QG(){if(RT)return S1;RT=1;var e=M,t=Mj();function n(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,u=e.useDebugValue;return S1.useSyncExternalStoreWithSelector=function(c,l,d,h,g){var m=a(null);if(m.current===null){var y={hasValue:!1,value:null};m.current=y}else y=m.current;m=s(function(){function b(O){if(!_){if(_=!0,E=O,O=h(O),g!==void 0&&y.hasValue){var P=y.value;if(g(P,O))return S=P}return S=O}if(P=S,r(E,O))return P;var j=h(O);return g!==void 0&&g(P,j)?(E=O,P):(E=O,S=j)}var _=!1,E,S,A=d===void 0?null:d;return[function(){return b(l())},A===null?void 0:function(){return b(A())}]},[l,d,h,g]);var v=i(c,m[0],m[1]);return o(function(){y.hasValue=!0,y.value=v},[v]),u(v),v},S1}var T1={};/**
29
29
  * @license React
30
30
  * use-sync-external-store-shim/with-selector.development.js
31
31
  *
@@ -33,13 +33,13 @@
33
33
  *
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
- */var IT;function eK(){return IT||(IT=1,process.env.NODE_ENV!=="production"&&function(){function e(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n=Mj(),r=typeof Object.is=="function"?Object.is:e,i=n.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,u=t.useDebugValue;T1.useSyncExternalStoreWithSelector=function(c,l,d,h,g){var m=a(null);if(m.current===null){var y={hasValue:!1,value:null};m.current=y}else y=m.current;m=s(function(){function b(O){if(!_){if(_=!0,E=O,O=h(O),g!==void 0&&y.hasValue){var P=y.value;if(g(P,O))return S=P}return S=O}if(P=S,r(E,O))return P;var j=h(O);return g!==void 0&&g(P,j)?(E=O,P):(E=O,S=j)}var _=!1,E,S,A=d===void 0?null:d;return[function(){return b(l())},A===null?void 0:function(){return b(A())}]},[l,d,h,g]);var v=i(c,m[0],m[1]);return o(function(){y.hasValue=!0,y.value=v},[v]),u(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),T1}var DT;function tK(){return DT||(DT=1,process.env.NODE_ENV==="production"?pp.exports=QG():pp.exports=eK()),pp.exports}var nK=tK(),y2=k.createContext(null),rK=e=>e,en=()=>{var e=k.useContext(y2);return e?e.store.dispatch:rK},og=()=>{},iK=()=>og,aK=(e,t)=>e===t;function ke(e){var t=k.useContext(y2);return nK.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:iK,t?t.store.getState:og,t?t.store.getState:og,t?e:og,aK)}var oK=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
36
+ */var IT;function eK(){return IT||(IT=1,process.env.NODE_ENV!=="production"&&function(){function e(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=M,n=Mj(),r=typeof Object.is=="function"?Object.is:e,i=n.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,u=t.useDebugValue;T1.useSyncExternalStoreWithSelector=function(c,l,d,h,g){var m=a(null);if(m.current===null){var y={hasValue:!1,value:null};m.current=y}else y=m.current;m=s(function(){function b(O){if(!_){if(_=!0,E=O,O=h(O),g!==void 0&&y.hasValue){var P=y.value;if(g(P,O))return S=P}return S=O}if(P=S,r(E,O))return P;var j=h(O);return g!==void 0&&g(P,j)?(E=O,P):(E=O,S=j)}var _=!1,E,S,A=d===void 0?null:d;return[function(){return b(l())},A===null?void 0:function(){return b(A())}]},[l,d,h,g]);var v=i(c,m[0],m[1]);return o(function(){y.hasValue=!0,y.value=v},[v]),u(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),T1}var DT;function tK(){return DT||(DT=1,process.env.NODE_ENV==="production"?pp.exports=QG():pp.exports=eK()),pp.exports}var nK=tK(),y2=M.createContext(null),rK=e=>e,en=()=>{var e=M.useContext(y2);return e?e.store.dispatch:rK},og=()=>{},iK=()=>og,aK=(e,t)=>e===t;function ke(e){var t=M.useContext(y2);return nK.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:iK,t?t.store.getState:og,t?t.store.getState:og,t?e:og,aK)}var oK=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(a){({stack:i}=a)}console.warn(`The result function returned its own inputs without modification. e.g
37
37
  \`createSelector([state => state.todos], todos => todos)\`
38
38
  This could lead to inefficient memoization and unnecessary re-renders.
39
39
  Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},sK=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,s=r(()=>({}),...i);if(!(s.apply(null,a)===s.apply(null,o))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
40
40
  This means your output selector will likely run more frequently than intended.
41
41
  Avoid returning a new reference inside your input selector, e.g.
42
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:a,secondInputs:o,stack:c})}},uK={inputStabilityCheck:"once",identityFunctionCheck:"once"};function cK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function lK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function fK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var NT=e=>Array.isArray(e)?e:[e];function dK(e){const t=Array.isArray(e[0])?e[0]:e;return fK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function LT(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var hK=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...uK,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:oK},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:sK}}},pK=class{constructor(e){this.value=e}deref(){return this.value}},gK=typeof WeakRef<"u"?WeakRef:pK,vK=0,$T=1;function vp(){return{s:vK,v:void 0,o:null,p:null}}function kj(e,t={}){let n=vp();const{resultEqualityCheck:r}=t;let i,a=0;function o(){let s=n;const{length:u}=arguments;for(let d=0,h=u;d<h;d++){const g=arguments[d];if(typeof g=="function"||typeof g=="object"&&g!==null){let m=s.o;m===null&&(s.o=m=new WeakMap);const y=m.get(g);y===void 0?(s=vp(),m.set(g,s)):s=y}else{let m=s.p;m===null&&(s.p=m=new Map);const y=m.get(g);y===void 0?(s=vp(),m.set(g,s)):s=y}}const c=s;let l;if(s.s===$T)l=s.v;else if(l=e.apply(null,arguments),a++,r){const d=i?.deref?.()??i;d!=null&&r(d,l)&&(l=d,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new gK(l):l}return c.s=$T,c.v=l,l}return o.clearCache=()=>{n=vp(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function mK(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,o=0,s,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),cK(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...n,...u},{memoize:d,memoizeOptions:h=[],argsMemoize:g=kj,argsMemoizeOptions:m=[],devModeChecks:y={}}=l,v=NT(h),b=NT(m),_=dK(i),E=d(function(){return a++,c.apply(null,arguments)},...v);let S=!0;const A=g(function(){o++;const P=LT(_,arguments);if(s=E.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:j,inputStabilityCheck:$}=hK(S,y);if(j.shouldRun&&j.run(c,P,s),$.shouldRun){const z=LT(_,arguments);$.run({inputSelectorResults:P,inputSelectorResultsCopy:z},{memoize:d,memoizeOptions:v},arguments)}S&&(S=!1)}return s},...b);return Object.assign(A,{resultFunc:c,memoizedResultFunc:E,dependencies:_,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:d,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var se=mK(kj),yK=Object.assign((e,t=se)=>{lK(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((o,s,u)=>(o[n[u]]=s,o),{}))},{withTypes:()=>yK}),P1={},C1={},j1={},BT;function bK(){return BT||(BT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,a)=>{if(r!==i){const o=t(r),s=t(i);if(o===s&&o===0){if(r<i)return a==="desc"?1:-1;if(r>i)return a==="desc"?-1:1}return a==="desc"?s-o:o-s}return 0};e.compareValues=n}(j1)),j1}var M1={},k1={},zT;function Rj(){return zT||(zT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(k1)),k1}var FT;function wK(){return FT||(FT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rj(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(r.test(a)||!n.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i}(M1)),M1}var WT;function xK(){return WT||(WT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bK(),n=wK(),r=V_();function i(a,o,s,u){if(a==null)return[];s=u?void 0:s,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(g=>String(g));const c=(g,m)=>{let y=g;for(let v=0;v<m.length&&y!=null;++v)y=y[m[v]];return y},l=(g,m)=>m==null||g==null?m:typeof g=="object"&&"key"in g?Object.hasOwn(m,g.key)?m[g.key]:c(m,g.path):typeof g=="function"?g(m):Array.isArray(g)?c(m,g):typeof m=="object"?m[g]:m,d=o.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||n.isKey(g)?g:{key:g,path:r.toPath(g)}));return a.map(g=>({original:g,criteria:d.map(m=>l(m,g))})).slice().sort((g,m)=>{for(let y=0;y<d.length;y++){const v=t.compareValues(g.criteria[y],m.criteria[y],s[y]);if(v!==0)return v}return 0}).map(g=>g.original)}e.orderBy=i}(C1)),C1}var R1={},qT;function _K(){return qT||(qT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],a=Math.floor(r),o=(s,u)=>{for(let c=0;c<s.length;c++){const l=s[c];Array.isArray(l)&&u<a?o(l,u+1):i.push(l)}};return o(n,0),i}e.flatten=t}(R1)),R1}var I1={},VT;function Ij(){return VT||(VT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cj(),n=h2(),r=Aj(),i=p2();function a(o,s,u){return r.isObject(u)&&(typeof s=="number"&&n.isArrayLike(u)&&t.isIndex(s)&&s<u.length||typeof s=="string"&&s in u)?i.eq(u[s],o):!1}e.isIterateeCall=a}(I1)),I1}var HT;function EK(){return HT||(HT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xK(),n=_K(),r=Ij();function i(a,...o){const s=o.length;return s>1&&r.isIterateeCall(a,o[0],o[1])?o=[]:s>2&&r.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,n.flatten(o),["asc"])}e.sortBy=i}(P1)),P1}var D1,UT;function SK(){return UT||(UT=1,D1=EK().sortBy),D1}var AK=SK();const a0=Va(AK);var Dj=e=>e.legend.settings,OK=e=>e.legend.size,TK=e=>e.legend.payload,PK=se([TK,Dj],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?a0(r,n):r});function CK(){return ke(PK)}var mp=1;function Nj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=k.useState({height:0,left:0,top:0,width:0}),r=k.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>mp||Math.abs(o.left-t.left)>mp||Math.abs(o.top-t.top)>mp||Math.abs(o.width-t.width)>mp)&&n({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function or(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 jK=typeof Symbol=="function"&&Symbol.observable||"@@observable",GT=jK,N1=()=>Math.random().toString(36).substring(7).split("").join("."),MK={INIT:`@@redux/INIT${N1()}`,REPLACE:`@@redux/REPLACE${N1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${N1()}`},fu=MK;function Kd(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 kK(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(DK(e))return"date";if(IK(e))return"error";const n=RK(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function RK(e){return typeof e.constructor=="function"?e.constructor.name:null}function IK(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function DK(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function us(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=kK(e)),t}function Lj(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?or(2):`Expected the root reducer to be a function. Instead, received: '${us(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?or(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 n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?or(1):`Expected the enhancer to be a function. Instead, received: '${us(n)}'`);return n(Lj)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,u=!1;function c(){o===a&&(o=new Map,a.forEach((v,b)=>{o.set(b,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?or(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 i}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?or(4):`Expected the listener to be a function. Instead, received: '${us(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?or(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 _=s++;return o.set(_,v),function(){if(b){if(u)throw new Error(process.env.NODE_ENV==="production"?or(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(),o.delete(_),a=null}}}function h(v){if(!Kd(v))throw new Error(process.env.NODE_ENV==="production"?or(7):`Actions must be plain objects. Instead, the actual type was: '${us(v)}'. 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 v.type>"u")throw new Error(process.env.NODE_ENV==="production"?or(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?or(17):`Action "type" property must be a string. Instead, the actual type was: '${us(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?or(9):"Reducers may not dispatch actions.");try{u=!0,i=r(i,v)}finally{u=!1}return(a=o).forEach(_=>{_()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?or(10):`Expected the nextReducer to be a function. Instead, received: '${us(v)}`);r=v,h({type:fu.REPLACE})}function m(){const v=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?or(11):`Expected the observer to be an object. Instead, received: '${us(b)}'`);function _(){const S=b;S.next&&S.next(l())}return _(),{unsubscribe:v(_)}},[GT](){return this}}}return h({type:fu.INIT}),{dispatch:h,subscribe:d,getState:l,replaceReducer:g,[GT]:m}}function KT(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function NK(e,t,n,r){const i=Object.keys(t),a=n&&n.type===fu.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.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(!Kd(e))return`The ${a} has unexpected type of "${us(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!r[s]);if(o.forEach(s=>{r[s]=!0}),!(n&&n.type===fu.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function LK(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:fu.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?or(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 n(void 0,{type:fu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?or(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${fu.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 $j(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&KT(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{LK(n)}catch(o){a=o}return function(s={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const d=NK(s,n,u,i);d&&KT(d)}let c=!1;const l={};for(let d=0;d<r.length;d++){const h=r[d],g=n[h],m=s[h],y=g(m,u);if(typeof y>"u"){const v=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?or(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${h}" 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.`)}l[h]=y,c=c||y!==m}return c=c||r.length!==Object.keys(s).length,c?l:s}}function Ag(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function $K(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?or(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(u,...c)=>a(u,...c)},s=e.map(u=>u(o));return a=Ag(...s)(i.dispatch),{...i,dispatch:a}}}function b2(e){return Kd(e)&&"type"in e&&typeof e.type=="string"}var Bj=Symbol.for("immer-nothing"),YT=Symbol.for("immer-draftable"),Ci=Symbol.for("immer-state"),BK=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 ai(e,...t){if(process.env.NODE_ENV!=="production"){const n=BK[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zc=Object.getPrototypeOf;function _u(e){return!!e&&!!e[Ci]}function Ro(e){return e?zj(e)||Array.isArray(e)||!!e[YT]||!!e.constructor?.[YT]||s0(e)||u0(e):!1}var zK=Object.prototype.constructor.toString();function zj(e){if(!e||typeof e!="object")return!1;const t=Zc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===zK}function Og(e,t){o0(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function o0(e){const t=e[Ci];return t?t.type_:Array.isArray(e)?1:s0(e)?2:u0(e)?3:0}function Bw(e,t){return o0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fj(e,t,n){const r=o0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function FK(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function s0(e){return e instanceof Map}function u0(e){return e instanceof Set}function Xs(e){return e.copy_||e.base_}function zw(e,t){if(s0(e))return new Map(e);if(u0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=zj(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ci];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const o=i[a],s=r[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Zc(e),r)}else{const r=Zc(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function w2(e,t=!1){return c0(e)||_u(e)||!Ro(e)||(o0(e)>1&&(e.set=e.add=e.clear=e.delete=WK),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>w2(r,!0))),e}function WK(){ai(2)}function c0(e){return Object.isFrozen(e)}var qK={};function Eu(e){const t=qK[e];return t||ai(0,e),t}var hd;function Wj(){return hd}function VK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function XT(e,t){t&&(Eu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fw(e){Ww(e),e.drafts_.forEach(HK),e.drafts_=null}function Ww(e){e===hd&&(hd=e.parent_)}function ZT(e){return hd=VK(hd,e)}function HK(e){const t=e[Ci];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function JT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ci].modified_&&(Fw(t),ai(4)),Ro(e)&&(e=Tg(t,e),t.parent_||Pg(t,e)),t.patches_&&Eu("Patches").generateReplacementPatches_(n[Ci].base_,e,t.patches_,t.inversePatches_)):e=Tg(t,n,[]),Fw(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bj?e:void 0}function Tg(e,t,n){if(c0(t))return t;const r=t[Ci];if(!r)return Og(t,(i,a)=>QT(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Pg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),Og(a,(s,u)=>QT(e,r,i,s,u,n,o)),Pg(e,i,!1),n&&e.patches_&&Eu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function QT(e,t,n,r,i,a,o){if(process.env.NODE_ENV!=="production"&&i===n&&ai(5),_u(i)){const s=a&&t&&t.type_!==3&&!Bw(t.assigned_,r)?a.concat(r):void 0,u=Tg(e,i,s);if(Fj(n,r,u),_u(u))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Ro(i)&&!c0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Tg(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Pg(e,i)}}function Pg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w2(t,n)}function UK(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Wj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=x2;n&&(i=[r],a=pd);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var x2={get(e,t){if(t===Ci)return e;const n=Xs(e);if(!Bw(n,t))return GK(e,n,t);const r=n[t];return e.finalized_||!Ro(r)?r:r===L1(e.base_,t)?($1(e),e.copy_[t]=Vw(r,e)):r},has(e,t){return t in Xs(e)},ownKeys(e){return Reflect.ownKeys(Xs(e))},set(e,t,n){const r=qj(Xs(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=L1(Xs(e),t),a=i?.[Ci];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(FK(n,i)&&(n!==void 0||Bw(e.base_,t)))return!0;$1(e),qw(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return L1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,$1(e),qw(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Xs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ai(11)},getPrototypeOf(e){return Zc(e.base_)},setPrototypeOf(){ai(12)}},pd={};Og(x2,(e,t)=>{pd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pd.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ai(13),pd.set.call(this,e,t,void 0)};pd.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ai(14),x2.set.call(this,e[0],t,n,e[0])};function L1(e,t){const n=e[Ci];return(n?Xs(n):e)[t]}function GK(e,t,n){const r=qj(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function qj(e,t){if(!(t in e))return;let n=Zc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Zc(n)}}function qw(e){e.modified_||(e.modified_=!0,e.parent_&&qw(e.parent_))}function $1(e){e.copy_||(e.copy_=zw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var KK=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(u=a,...c){return o.produce(u,l=>n.call(this,l,...c))}}typeof n!="function"&&ai(6),r!==void 0&&typeof r!="function"&&ai(7);let i;if(Ro(t)){const a=ZT(this),o=Vw(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?Fw(a):Ww(a)}return XT(a,r),JT(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Bj&&(i=void 0),this.autoFreeze_&&w2(i,!0),r){const a=[],o=[];Eu("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else ai(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ro(e)||ai(8),_u(e)&&(e=Co(e));const t=ZT(this),n=Vw(e,void 0);return n[Ci].isManual_=!0,Ww(t),n}finishDraft(e,t){const n=e&&e[Ci];(!n||!n.isManual_)&&ai(9);const{scope_:r}=n;return XT(r,t),JT(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Eu("Patches").applyPatches_;return _u(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Vw(e,t){const n=s0(e)?Eu("MapSet").proxyMap_(e,t):u0(e)?Eu("MapSet").proxySet_(e,t):UK(e,t);return(t?t.scope_:Wj()).drafts_.push(n),n}function Co(e){return _u(e)||ai(10,e),Vj(e)}function Vj(e){if(!Ro(e)||c0(e))return e;const t=e[Ci];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zw(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zw(e,!0);return Og(n,(r,i)=>{Fj(n,r,Vj(i))}),t&&(t.finalized_=!1),n}var ji=new KK,Hj=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseStrictShallowCopy.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function Uj(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var YK=Uj(),XK=Uj,ZK=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ag:Ag.apply(null,arguments)},JK=e=>e&&typeof e.match=="function";function Zi(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>b2(r)&&r.type===e,n}function QK(e){return typeof e=="function"&&"type"in e&&JK(e)}function eY(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
42
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:a,secondInputs:o,stack:c})}},uK={inputStabilityCheck:"once",identityFunctionCheck:"once"};function cK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function lK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function fK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var NT=e=>Array.isArray(e)?e:[e];function dK(e){const t=Array.isArray(e[0])?e[0]:e;return fK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function LT(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var hK=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...uK,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:oK},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:sK}}},pK=class{constructor(e){this.value=e}deref(){return this.value}},gK=typeof WeakRef<"u"?WeakRef:pK,vK=0,$T=1;function vp(){return{s:vK,v:void 0,o:null,p:null}}function kj(e,t={}){let n=vp();const{resultEqualityCheck:r}=t;let i,a=0;function o(){let s=n;const{length:u}=arguments;for(let d=0,h=u;d<h;d++){const g=arguments[d];if(typeof g=="function"||typeof g=="object"&&g!==null){let m=s.o;m===null&&(s.o=m=new WeakMap);const y=m.get(g);y===void 0?(s=vp(),m.set(g,s)):s=y}else{let m=s.p;m===null&&(s.p=m=new Map);const y=m.get(g);y===void 0?(s=vp(),m.set(g,s)):s=y}}const c=s;let l;if(s.s===$T)l=s.v;else if(l=e.apply(null,arguments),a++,r){const d=i?.deref?.()??i;d!=null&&r(d,l)&&(l=d,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new gK(l):l}return c.s=$T,c.v=l,l}return o.clearCache=()=>{n=vp(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function mK(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,o=0,s,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),cK(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...n,...u},{memoize:d,memoizeOptions:h=[],argsMemoize:g=kj,argsMemoizeOptions:m=[],devModeChecks:y={}}=l,v=NT(h),b=NT(m),_=dK(i),E=d(function(){return a++,c.apply(null,arguments)},...v);let S=!0;const A=g(function(){o++;const P=LT(_,arguments);if(s=E.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:j,inputStabilityCheck:$}=hK(S,y);if(j.shouldRun&&j.run(c,P,s),$.shouldRun){const z=LT(_,arguments);$.run({inputSelectorResults:P,inputSelectorResultsCopy:z},{memoize:d,memoizeOptions:v},arguments)}S&&(S=!1)}return s},...b);return Object.assign(A,{resultFunc:c,memoizedResultFunc:E,dependencies:_,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:d,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var se=mK(kj),yK=Object.assign((e,t=se)=>{lK(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((o,s,u)=>(o[n[u]]=s,o),{}))},{withTypes:()=>yK}),P1={},C1={},j1={},BT;function bK(){return BT||(BT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,a)=>{if(r!==i){const o=t(r),s=t(i);if(o===s&&o===0){if(r<i)return a==="desc"?1:-1;if(r>i)return a==="desc"?-1:1}return a==="desc"?s-o:o-s}return 0};e.compareValues=n}(j1)),j1}var M1={},k1={},zT;function Rj(){return zT||(zT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(k1)),k1}var FT;function wK(){return FT||(FT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rj(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(r.test(a)||!n.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i}(M1)),M1}var WT;function xK(){return WT||(WT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bK(),n=wK(),r=V_();function i(a,o,s,u){if(a==null)return[];s=u?void 0:s,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(g=>String(g));const c=(g,m)=>{let y=g;for(let v=0;v<m.length&&y!=null;++v)y=y[m[v]];return y},l=(g,m)=>m==null||g==null?m:typeof g=="object"&&"key"in g?Object.hasOwn(m,g.key)?m[g.key]:c(m,g.path):typeof g=="function"?g(m):Array.isArray(g)?c(m,g):typeof m=="object"?m[g]:m,d=o.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||n.isKey(g)?g:{key:g,path:r.toPath(g)}));return a.map(g=>({original:g,criteria:d.map(m=>l(m,g))})).slice().sort((g,m)=>{for(let y=0;y<d.length;y++){const v=t.compareValues(g.criteria[y],m.criteria[y],s[y]);if(v!==0)return v}return 0}).map(g=>g.original)}e.orderBy=i}(C1)),C1}var R1={},qT;function _K(){return qT||(qT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],a=Math.floor(r),o=(s,u)=>{for(let c=0;c<s.length;c++){const l=s[c];Array.isArray(l)&&u<a?o(l,u+1):i.push(l)}};return o(n,0),i}e.flatten=t}(R1)),R1}var I1={},VT;function Ij(){return VT||(VT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cj(),n=h2(),r=Aj(),i=p2();function a(o,s,u){return r.isObject(u)&&(typeof s=="number"&&n.isArrayLike(u)&&t.isIndex(s)&&s<u.length||typeof s=="string"&&s in u)?i.eq(u[s],o):!1}e.isIterateeCall=a}(I1)),I1}var HT;function EK(){return HT||(HT=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xK(),n=_K(),r=Ij();function i(a,...o){const s=o.length;return s>1&&r.isIterateeCall(a,o[0],o[1])?o=[]:s>2&&r.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,n.flatten(o),["asc"])}e.sortBy=i}(P1)),P1}var D1,UT;function SK(){return UT||(UT=1,D1=EK().sortBy),D1}var AK=SK();const a0=Va(AK);var Dj=e=>e.legend.settings,OK=e=>e.legend.size,TK=e=>e.legend.payload,PK=se([TK,Dj],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?a0(r,n):r});function CK(){return ke(PK)}var mp=1;function Nj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=M.useState({height:0,left:0,top:0,width:0}),r=M.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>mp||Math.abs(o.left-t.left)>mp||Math.abs(o.top-t.top)>mp||Math.abs(o.width-t.width)>mp)&&n({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function or(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 jK=typeof Symbol=="function"&&Symbol.observable||"@@observable",GT=jK,N1=()=>Math.random().toString(36).substring(7).split("").join("."),MK={INIT:`@@redux/INIT${N1()}`,REPLACE:`@@redux/REPLACE${N1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${N1()}`},fu=MK;function Kd(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 kK(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(DK(e))return"date";if(IK(e))return"error";const n=RK(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function RK(e){return typeof e.constructor=="function"?e.constructor.name:null}function IK(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function DK(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function us(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=kK(e)),t}function Lj(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?or(2):`Expected the root reducer to be a function. Instead, received: '${us(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?or(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 n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?or(1):`Expected the enhancer to be a function. Instead, received: '${us(n)}'`);return n(Lj)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,u=!1;function c(){o===a&&(o=new Map,a.forEach((v,b)=>{o.set(b,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?or(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 i}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?or(4):`Expected the listener to be a function. Instead, received: '${us(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?or(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 _=s++;return o.set(_,v),function(){if(b){if(u)throw new Error(process.env.NODE_ENV==="production"?or(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(),o.delete(_),a=null}}}function h(v){if(!Kd(v))throw new Error(process.env.NODE_ENV==="production"?or(7):`Actions must be plain objects. Instead, the actual type was: '${us(v)}'. 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 v.type>"u")throw new Error(process.env.NODE_ENV==="production"?or(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?or(17):`Action "type" property must be a string. Instead, the actual type was: '${us(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?or(9):"Reducers may not dispatch actions.");try{u=!0,i=r(i,v)}finally{u=!1}return(a=o).forEach(_=>{_()}),v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?or(10):`Expected the nextReducer to be a function. Instead, received: '${us(v)}`);r=v,h({type:fu.REPLACE})}function m(){const v=d;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(process.env.NODE_ENV==="production"?or(11):`Expected the observer to be an object. Instead, received: '${us(b)}'`);function _(){const S=b;S.next&&S.next(l())}return _(),{unsubscribe:v(_)}},[GT](){return this}}}return h({type:fu.INIT}),{dispatch:h,subscribe:d,getState:l,replaceReducer:g,[GT]:m}}function KT(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function NK(e,t,n,r){const i=Object.keys(t),a=n&&n.type===fu.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.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(!Kd(e))return`The ${a} has unexpected type of "${us(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(s=>!t.hasOwnProperty(s)&&!r[s]);if(o.forEach(s=>{r[s]=!0}),!(n&&n.type===fu.REPLACE)&&o.length>0)return`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function LK(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:fu.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?or(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 n(void 0,{type:fu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?or(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${fu.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 $j(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];process.env.NODE_ENV!=="production"&&typeof e[s]>"u"&&KT(`No reducer provided for key "${s}"`),typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let a;try{LK(n)}catch(o){a=o}return function(s={},u){if(a)throw a;if(process.env.NODE_ENV!=="production"){const d=NK(s,n,u,i);d&&KT(d)}let c=!1;const l={};for(let d=0;d<r.length;d++){const h=r[d],g=n[h],m=s[h],y=g(m,u);if(typeof y>"u"){const v=u&&u.type;throw new Error(process.env.NODE_ENV==="production"?or(14):`When called with an action of type ${v?`"${String(v)}"`:"(unknown type)"}, the slice reducer for key "${h}" 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.`)}l[h]=y,c=c||y!==m}return c=c||r.length!==Object.keys(s).length,c?l:s}}function Ag(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function $K(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(process.env.NODE_ENV==="production"?or(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(u,...c)=>a(u,...c)},s=e.map(u=>u(o));return a=Ag(...s)(i.dispatch),{...i,dispatch:a}}}function b2(e){return Kd(e)&&"type"in e&&typeof e.type=="string"}var Bj=Symbol.for("immer-nothing"),YT=Symbol.for("immer-draftable"),Ci=Symbol.for("immer-state"),BK=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 ai(e,...t){if(process.env.NODE_ENV!=="production"){const n=BK[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zc=Object.getPrototypeOf;function _u(e){return!!e&&!!e[Ci]}function Ro(e){return e?zj(e)||Array.isArray(e)||!!e[YT]||!!e.constructor?.[YT]||s0(e)||u0(e):!1}var zK=Object.prototype.constructor.toString();function zj(e){if(!e||typeof e!="object")return!1;const t=Zc(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===zK}function Og(e,t){o0(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function o0(e){const t=e[Ci];return t?t.type_:Array.isArray(e)?1:s0(e)?2:u0(e)?3:0}function Bw(e,t){return o0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Fj(e,t,n){const r=o0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function FK(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function s0(e){return e instanceof Map}function u0(e){return e instanceof Set}function Xs(e){return e.copy_||e.base_}function zw(e,t){if(s0(e))return new Map(e);if(u0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=zj(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ci];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const o=i[a],s=r[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Zc(e),r)}else{const r=Zc(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function w2(e,t=!1){return c0(e)||_u(e)||!Ro(e)||(o0(e)>1&&(e.set=e.add=e.clear=e.delete=WK),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>w2(r,!0))),e}function WK(){ai(2)}function c0(e){return Object.isFrozen(e)}var qK={};function Eu(e){const t=qK[e];return t||ai(0,e),t}var hd;function Wj(){return hd}function VK(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function XT(e,t){t&&(Eu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fw(e){Ww(e),e.drafts_.forEach(HK),e.drafts_=null}function Ww(e){e===hd&&(hd=e.parent_)}function ZT(e){return hd=VK(hd,e)}function HK(e){const t=e[Ci];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function JT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ci].modified_&&(Fw(t),ai(4)),Ro(e)&&(e=Tg(t,e),t.parent_||Pg(t,e)),t.patches_&&Eu("Patches").generateReplacementPatches_(n[Ci].base_,e,t.patches_,t.inversePatches_)):e=Tg(t,n,[]),Fw(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Bj?e:void 0}function Tg(e,t,n){if(c0(t))return t;const r=t[Ci];if(!r)return Og(t,(i,a)=>QT(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Pg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),Og(a,(s,u)=>QT(e,r,i,s,u,n,o)),Pg(e,i,!1),n&&e.patches_&&Eu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function QT(e,t,n,r,i,a,o){if(process.env.NODE_ENV!=="production"&&i===n&&ai(5),_u(i)){const s=a&&t&&t.type_!==3&&!Bw(t.assigned_,r)?a.concat(r):void 0,u=Tg(e,i,s);if(Fj(n,r,u),_u(u))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Ro(i)&&!c0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Tg(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Pg(e,i)}}function Pg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&w2(t,n)}function UK(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Wj(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=x2;n&&(i=[r],a=pd);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var x2={get(e,t){if(t===Ci)return e;const n=Xs(e);if(!Bw(n,t))return GK(e,n,t);const r=n[t];return e.finalized_||!Ro(r)?r:r===L1(e.base_,t)?($1(e),e.copy_[t]=Vw(r,e)):r},has(e,t){return t in Xs(e)},ownKeys(e){return Reflect.ownKeys(Xs(e))},set(e,t,n){const r=qj(Xs(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=L1(Xs(e),t),a=i?.[Ci];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(FK(n,i)&&(n!==void 0||Bw(e.base_,t)))return!0;$1(e),qw(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return L1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,$1(e),qw(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Xs(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){ai(11)},getPrototypeOf(e){return Zc(e.base_)},setPrototypeOf(){ai(12)}},pd={};Og(x2,(e,t)=>{pd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});pd.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ai(13),pd.set.call(this,e,t,void 0)};pd.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ai(14),x2.set.call(this,e[0],t,n,e[0])};function L1(e,t){const n=e[Ci];return(n?Xs(n):e)[t]}function GK(e,t,n){const r=qj(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function qj(e,t){if(!(t in e))return;let n=Zc(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Zc(n)}}function qw(e){e.modified_||(e.modified_=!0,e.parent_&&qw(e.parent_))}function $1(e){e.copy_||(e.copy_=zw(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var KK=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(u=a,...c){return o.produce(u,l=>n.call(this,l,...c))}}typeof n!="function"&&ai(6),r!==void 0&&typeof r!="function"&&ai(7);let i;if(Ro(t)){const a=ZT(this),o=Vw(t,void 0);let s=!0;try{i=n(o),s=!1}finally{s?Fw(a):Ww(a)}return XT(a,r),JT(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Bj&&(i=void 0),this.autoFreeze_&&w2(i,!0),r){const a=[],o=[];Eu("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else ai(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,u=>t(u,...s));let r,i;return[this.produce(t,n,(o,s)=>{r=o,i=s}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ro(e)||ai(8),_u(e)&&(e=Co(e));const t=ZT(this),n=Vw(e,void 0);return n[Ci].isManual_=!0,Ww(t),n}finishDraft(e,t){const n=e&&e[Ci];(!n||!n.isManual_)&&ai(9);const{scope_:r}=n;return XT(r,t),JT(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Eu("Patches").applyPatches_;return _u(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Vw(e,t){const n=s0(e)?Eu("MapSet").proxyMap_(e,t):u0(e)?Eu("MapSet").proxySet_(e,t):UK(e,t);return(t?t.scope_:Wj()).drafts_.push(n),n}function Co(e){return _u(e)||ai(10,e),Vj(e)}function Vj(e){if(!Ro(e)||c0(e))return e;const t=e[Ci];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=zw(e,t.scope_.immer_.useStrictShallowCopy_)}else n=zw(e,!0);return Og(n,(r,i)=>{Fj(n,r,Vj(i))}),t&&(t.finalized_=!1),n}var ji=new KK,Hj=ji.produce;ji.produceWithPatches.bind(ji);ji.setAutoFreeze.bind(ji);ji.setUseStrictShallowCopy.bind(ji);ji.applyPatches.bind(ji);ji.createDraft.bind(ji);ji.finishDraft.bind(ji);function Uj(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var YK=Uj(),XK=Uj,ZK=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ag:Ag.apply(null,arguments)},JK=e=>e&&typeof e.match=="function";function Zi(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>b2(r)&&r.type===e,n}function QK(e){return typeof e=="function"&&"type"in e&&JK(e)}function eY(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
43
43
  Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function tY(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=QK}=e;return()=>n=>r=>(t(r)&&console.warn(eY(r.type)),n(r))}function Gj(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const a=Date.now();n+=a-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
44
44
  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.
45
45
  It is disabled in production builds, so you don't need to worry about that.`)}}}var Kj=class Bf extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Bf.prototype)}static get[Symbol.species](){return Bf}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Bf(...t[0].concat(this)):new Bf(...t.concat(this))}};function eP(e){return Ro(e)?Hj(e,()=>{}):e}function yp(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function nY(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function rY(e,t,n){const r=Yj(e,t,n);return{detectMutations(){return Xj(e,t,r,n)}}}function Yj(e,t=[],n,r="",i=new Set){const a={value:n};if(!e(n)&&!i.has(n)){i.add(n),a.children={};for(const o in n){const s=r?r+"."+o:o;t.length&&t.indexOf(s)!==-1||(a.children[o]=Yj(e,t,n[o],s))}}return a}function Xj(e,t=[],n,r,i=!1,a=""){const o=n?n.value:void 0,s=o===r;if(i&&!s&&!Number.isNaN(r))return{wasMutated:!0,path:a};if(e(o)||e(r))return{wasMutated:!1};const u={};for(let l in n.children)u[l]=!0;for(let l in r)u[l]=!0;const c=t.length>0;for(let l in u){const d=a?a+"."+l:l;if(c&&t.some(m=>m instanceof RegExp?m.test(d):d===m))continue;const h=Xj(e,t,n.children[l],r[l],s,d);if(h.wasMutated)return h}return{wasMutated:!1}}function iY(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(s,u,c,l){return JSON.stringify(s,n(u,l),c)},n=function(s,u){let c=[],l=[];return u||(u=function(d,h){return c[0]===h?"[Circular ~]":"[Circular ~."+l.slice(0,c.indexOf(h)).join(".")+"]"}),function(d,h){if(c.length>0){var g=c.indexOf(this);~g?c.splice(g+1):c.push(this),~g?l.splice(g,1/0,d):l.push(d),~c.indexOf(h)&&(h=u.call(this,d,h))}else c.push(h);return s==null?h:s.call(this,d,h)}},{isImmutable:r=nY,ignoredPaths:i,warnAfter:a=32}=e;const o=rY.bind(null,r,i);return({getState:s})=>{let u=s(),c=o(u),l;return d=>h=>{const g=Gj(a,"ImmutableStateInvariantMiddleware");g.measureTime(()=>{if(u=s(),l=c.detectMutations(),c=o(u),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?qt(19):`A state mutation was detected between dispatches, in the path '${l.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const m=d(h);return g.measureTime(()=>{if(u=s(),l=c.detectMutations(),c=o(u),l.wasMutated)throw new Error(process.env.NODE_ENV==="production"?qt(20):`A state mutation was detected inside a dispatch, in the path: ${l.path||""}. Take a look at the reducer(s) handling the action ${t(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),g.warnIfExceeded(),m}}}}function Zj(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Kd(e)}function Hw(e,t="",n=Zj,r,i=[],a){let o;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a?.has(e))return!1;const s=r!=null?r(e):Object.entries(e),u=i.length>0;for(const[c,l]of s){const d=t?t+"."+c:c;if(!(u&&i.some(g=>g instanceof RegExp?g.test(d):d===g))){if(!n(l))return{keyPath:d,value:l};if(typeof l=="object"&&(o=Hw(l,d,n,r,i,a),o))return o}}return a&&Jj(e)&&a.add(e),!1}function Jj(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Jj(t))return!1;return!0}function aY(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=Zj,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:s=!1,ignoreActions:u=!1,disableCache:c=!1}=e,l=!c&&WeakSet?new WeakSet:void 0;return d=>h=>g=>{if(!b2(g))return h(g);const m=h(g),y=Gj(o,"SerializableStateInvariantMiddleware");return!u&&!(r.length&&r.indexOf(g.type)!==-1)&&y.measureTime(()=>{const v=Hw(g,"",t,n,i,l);if(v){const{keyPath:b,value:_}=v;console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`,_,`
@@ -47,7 +47,7 @@ Take a look at the logic that dispatched this action: `,g,`
47
47
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
48
48
  (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),s||(y.measureTime(()=>{const v=d.getState(),b=Hw(v,"",t,n,a,l);if(b){const{keyPath:_,value:E}=b;console.error(`A non-serializable value was detected in the state, in the path: \`${_}\`. Value:`,E,`
49
49
  Take a look at the reducer(s) handling this action type: ${g.type}.
50
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),y.warnIfExceeded()),m}}}function bp(e){return typeof e=="boolean"}var oY=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Kj;if(n&&(bp(n)?o.push(YK):o.push(XK(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let s={};bp(r)||(s=r),o.unshift(iY(s))}if(i){let s={};bp(i)||(s=i),o.push(aY(s))}if(a){let s={};bp(a)||(s=a),o.unshift(tY(s))}}return o},sY="RTK_autoBatch",tP=e=>t=>{setTimeout(t,e)},uY=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tP(10):e.type==="callback"?e.queueNotification:tP(e.timeout),c=()=>{o=!1,a&&(a=!1,s.forEach(l=>l()))};return Object.assign({},r,{subscribe(l){const d=()=>i&&l(),h=r.subscribe(d);return s.add(l),()=>{h(),s.delete(l)}},dispatch(l){try{return i=!l?.meta?.[sY],a=!i,a&&(o||(o=!0,u(c))),r.dispatch(l)}finally{i=!0}}})},cY=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Kj(e);return r&&i.push(uY(typeof r=="object"?r:void 0)),i};function lY(e){const t=oY(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Kd(n))u=$j(n);else throw new Error(process.env.NODE_ENV==="production"?qt(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"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?qt(2):"`middleware` field must be a callback");let c;if(typeof r=="function"){if(c=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?qt(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(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?qt(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let y=new Set;c.forEach(v=>{if(y.has(v))throw new Error(process.env.NODE_ENV==="production"?qt(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");y.add(v)})}let l=Ag;i&&(l=ZK({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const d=$K(...c),h=cY(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?qt(5):"`enhancers` field must be a callback");let g=typeof s=="function"?s(h):h();if(process.env.NODE_ENV!=="production"&&!Array.isArray(g))throw new Error(process.env.NODE_ENV==="production"?qt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&g.some(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?qt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!g.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const m=l(...g);return Lj(u,o,m)}function Qj(e){const t={},n=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?qt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?qt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?qt(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?qt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?qt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?qt(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[t,n,r]}function fY(e){return typeof e=="function"}function dY(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?qt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=Qj(t),a;if(fY(e))a=()=>eP(e());else{const s=eP(e);a=()=>s}function o(s=a(),u){let c=[n[u.type],...r.filter(({matcher:l})=>l(u)).map(({reducer:l})=>l)];return c.filter(l=>!!l).length===0&&(c=[i]),c.reduce((l,d)=>{if(d)if(_u(l)){const g=d(l,u);return g===void 0?l:g}else{if(Ro(l))return Hj(l,h=>d(h,u));{const h=d(l,u);if(h===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return l},s)}return o.getInitialState=a,o}var hY="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pY=(e=21)=>{let t="",n=e;for(;n--;)t+=hY[Math.random()*64|0];return t},gY=Symbol.for("rtk-slice-createasyncthunk");function vY(e,t){return`${e}/${t}`}function mY({creators:e}={}){const t=e?.asyncThunk?.[gY];return function(r){const{name:i,reducerPath:a=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof r.reducers=="function"?r.reducers(bY()):r.reducers)||{},s=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(E,S){const A=typeof E=="string"?E:E.type;if(!A)throw new Error(process.env.NODE_ENV==="production"?qt(12):"`context.addCase` cannot be called with an empty action type");if(A in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?qt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+A);return u.sliceCaseReducersByType[A]=S,c},addMatcher(E,S){return u.sliceMatchers.push({matcher:E,reducer:S}),c},exposeAction(E,S){return u.actionCreators[E]=S,c},exposeCaseReducer(E,S){return u.sliceCaseReducersByName[E]=S,c}};s.forEach(E=>{const S=o[E],A={reducerName:E,type:vY(i,E),createNotation:typeof r.reducers=="function"};xY(S)?EY(A,S,c,t):wY(A,S,c)});function l(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?qt(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[E={},S=[],A=void 0]=typeof r.extraReducers=="function"?Qj(r.extraReducers):[r.extraReducers],O={...E,...u.sliceCaseReducersByType};return dY(r.initialState,P=>{for(let j in O)P.addCase(j,O[j]);for(let j of u.sliceMatchers)P.addMatcher(j.matcher,j.reducer);for(let j of S)P.addMatcher(j.matcher,j.reducer);A&&P.addDefaultCase(A)})}const d=E=>E,h=new Map,g=new WeakMap;let m;function y(E,S){return m||(m=l()),m(E,S)}function v(){return m||(m=l()),m.getInitialState()}function b(E,S=!1){function A(P){let j=P[E];if(typeof j>"u"){if(S)j=yp(g,A,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?qt(15):"selectSlice returned undefined for an uninjected slice reducer")}return j}function O(P=d){const j=yp(h,S,()=>new WeakMap);return yp(j,P,()=>{const $={};for(const[z,I]of Object.entries(r.selectors??{}))$[z]=yY(I,P,()=>yp(g,P,v),S);return $})}return{reducerPath:E,getSelectors:O,get selectors(){return O(A)},selectSlice:A}}const _={name:i,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:v,...b(a),injectInto(E,{reducerPath:S,...A}={}){const O=S??a;return E.inject({reducerPath:O,reducer:y},A),{..._,...b(O,!0)}}};return _}}function yY(e,t,n,r){function i(a,...o){let s=t(a);if(typeof s>"u"){if(r)s=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?qt(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...o)}return i.unwrapped=e,i}var ea=mY();function bY(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function wY({type:e,reducerName:t,createNotation:n},r,i){let a,o;if("reducer"in r){if(n&&!_Y(r))throw new Error(process.env.NODE_ENV==="production"?qt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Zi(e,o):Zi(e))}function xY(e){return e._reducerDefinitionType==="asyncThunk"}function _Y(e){return e._reducerDefinitionType==="reducerWithPrepare"}function EY({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:s,rejected:u,settled:c,options:l}=n,d=i(e,a,l);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),u&&r.addCase(d.rejected,u),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:o||wp,pending:s||wp,rejected:u||wp,settled:c||wp})}function wp(){}var SY="task",e7="listener",t7="completed",_2="cancelled",AY=`task-${_2}`,OY=`task-${t7}`,Uw=`${e7}-${_2}`,TY=`${e7}-${t7}`,l0=class{constructor(e){this.code=e,this.message=`${SY} ${_2} (reason: ${e})`}name="TaskAbortError";message},E2=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?qt(32):`${t} is not a function`)},Cg=()=>{},n7=(e,t=Cg)=>(e.catch(t),e),r7=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),du=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},hu=e=>{if(e.aborted){const{reason:t}=e;throw new l0(t)}};function i7(e,t){let n=Cg;return new Promise((r,i)=>{const a=()=>i(new l0(e.reason));if(e.aborted){a();return}n=r7(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Cg})}var PY=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof l0?"cancelled":"rejected",error:n}}finally{t?.()}},jg=e=>t=>n7(i7(e,t).then(n=>(hu(e),n))),a7=e=>{const t=jg(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Wc}=Object,nP={},Yd="listenerMiddleware",CY=(e,t)=>{const n=r=>r7(e,()=>du(r,e.reason));return(r,i)=>{E2(r,"taskExecutor");const a=new AbortController;n(a);const o=PY(async()=>{hu(e),hu(a.signal);const s=await r({pause:jg(a.signal),delay:a7(a.signal),signal:a.signal});return hu(a.signal),s},()=>du(a,OY));return i?.autoJoin&&t.push(o.catch(Cg)),{result:jg(e)(o),cancel(){du(a,AY)}}}},jY=(e,t)=>{const n=async(r,i)=>{hu(t);let a=()=>{};const s=[new Promise((u,c)=>{let l=e({predicate:r,effect:(d,h)=>{h.unsubscribe(),u([d,h.getState(),h.getOriginalState()])}});a=()=>{l(),c()}})];i!=null&&s.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await i7(t,Promise.race(s));return hu(t),u}finally{a()}};return(r,i)=>n7(n(r,i))},o7=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Zi(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(21):"Creating or removing a listener requires one of the known fields for matching an action");return E2(a,"options.listener"),{predicate:i,type:t,effect:a}},s7=Wc(e=>{const{type:t,predicate:n,effect:r}=o7(e);return{id:pY(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?qt(22):"Unsubscribe not initialized")}}},{withTypes:()=>s7}),rP=(e,t)=>{const{type:n,effect:r,predicate:i}=o7(t);return Array.from(e.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},Gw=e=>{e.pending.forEach(t=>{du(t,Uw)})},MY=e=>()=>{e.forEach(Gw),e.clear()},iP=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},u7=Wc(Zi(`${Yd}/add`),{withTypes:()=>u7}),kY=Zi(`${Yd}/removeAll`),c7=Wc(Zi(`${Yd}/remove`),{withTypes:()=>c7}),RY=(...e)=>{console.error(`${Yd}/error`,...e)},Xd=(e={})=>{const t=new Map,{extra:n,onError:r=RY}=e;E2(r,"onError");const i=l=>(l.unsubscribe=()=>t.delete(l.id),t.set(l.id,l),d=>{l.unsubscribe(),d?.cancelActive&&Gw(l)}),a=l=>{const d=rP(t,l)??s7(l);return i(d)};Wc(a,{withTypes:()=>a});const o=l=>{const d=rP(t,l);return d&&(d.unsubscribe(),l.cancelActive&&Gw(d)),!!d};Wc(o,{withTypes:()=>o});const s=async(l,d,h,g)=>{const m=new AbortController,y=jY(a,m.signal),v=[];try{l.pending.add(m),await Promise.resolve(l.effect(d,Wc({},h,{getOriginalState:g,condition:(b,_)=>y(b,_).then(Boolean),take:y,delay:a7(m.signal),pause:jg(m.signal),extra:n,signal:m.signal,fork:CY(m.signal,v),unsubscribe:l.unsubscribe,subscribe:()=>{t.set(l.id,l)},cancelActiveListeners:()=>{l.pending.forEach((b,_,E)=>{b!==m&&(du(b,Uw),E.delete(b))})},cancel:()=>{du(m,Uw),l.pending.delete(m)},throwIfCancelled:()=>{hu(m.signal)}})))}catch(b){b instanceof l0||iP(r,b,{raisedBy:"effect"})}finally{await Promise.all(v),du(m,TY),l.pending.delete(m)}},u=MY(t);return{middleware:l=>d=>h=>{if(!b2(h))return d(h);if(u7.match(h))return a(h.payload);if(kY.match(h)){u();return}if(c7.match(h))return o(h.payload);let g=l.getState();const m=()=>{if(g===nP)throw new Error(process.env.NODE_ENV==="production"?qt(23):`${Yd}: getOriginalState can only be called synchronously`);return g};let y;try{if(y=d(h),t.size>0){const v=l.getState(),b=Array.from(t.values());for(const _ of b){let E=!1;try{E=_.predicate(h,v,g)}catch(S){E=!1,iP(r,S,{raisedBy:"predicate"})}E&&s(_,h,l,m)}}}finally{g=nP}return y},startListening:a,stopListening:o,clearListeners:u}};function qt(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 IY={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},l7=ea({name:"chartLayout",initialState:IY,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:DY,setLayout:NY,setChartSize:LY,setScale:$Y}=l7.actions,BY=l7.reducer;function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){zY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zY(e,t,n){return(t=FY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FY(e){var t=WY(e,"string");return typeof t=="symbol"?t:t+""}function WY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mg=Math.PI/180,qY=e=>e*180/Math.PI,Nn=(e,t,n,r)=>({x:e+Math.cos(-Mg*r)*n,y:t+Math.sin(-Mg*r)*n}),f7=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},VY=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},HY=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,o=VY({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,u=Math.acos(s);return r>a&&(u=2*Math.PI-u),{radius:o,angle:qY(u),angleInRadian:u}},UY=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},GY=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return e+o*360},KY=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:a}=HY({x:n,y:r},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:u,endAngle:c}=UY(t),l=a,d;if(u<=c){for(;l>c;)l-=360;for(;l<u;)l+=360;d=l>=u&&l<=c}else{for(;l>u;)l-=360;for(;l<c;)l+=360;d=l>=c&&l<=u}return d?oP(oP({},t),{},{radius:i,angle:GY(l,t)}):null};function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){YY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YY(e,t,n){return(t=XY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XY(e){var t=ZY(e,"string");return typeof t=="symbol"?t:t+""}function ZY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $t(e,t,n){return Rt(e)||Rt(t)?n:si(t)?Es(e,t,n):typeof t=="function"?t(e):n}var JY=(e,t,n,r,i)=>{var a,o=-1,s=(a=t?.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<s;u++){var c=u>0?n[u-1].coordinate:n[s-1].coordinate,l=n[u].coordinate,d=u>=s-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if(Xn(l-c)!==Xn(d-l)){var g=[];if(Xn(d-l)===Xn(i[1]-i[0])){h=d;var m=l+i[1]-i[0];g[0]=Math.min(m,(m+c)/2),g[1]=Math.max(m,(m+c)/2)}else{h=c;var y=d+i[1]-i[0];g[0]=Math.min(l,(y+l)/2),g[1]=Math.max(l,(y+l)/2)}var v=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(e>v[0]&&e<=v[1]||e>=g[0]&&e<=g[1]){({index:o}=n[u]);break}}else{var b=Math.min(c,d),_=Math.max(c,d);if(e>(b+l)/2&&e<=(_+l)/2){({index:o}=n[u]);break}}}else if(t){for(var E=0;E<s;E++)if(E===0&&e<=(t[E].coordinate+t[E+1].coordinate)/2||E>0&&E<s-1&&e>(t[E].coordinate+t[E-1].coordinate)/2&&e<=(t[E].coordinate+t[E+1].coordinate)/2||E===s-1&&e>(t[E].coordinate+t[E-1].coordinate)/2){({index:o}=t[E]);break}}return o},QY=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&Me(e[a]))return Ui(Ui({},e),{},{[a]:e[a]+(r||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&Me(e[o]))return Ui(Ui({},e),{},{[o]:e[o]+(i||0)})}return e},Ha=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",d7=(e,t,n,r)=>{if(r)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===n&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(n),o},h7=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:u,categoricalDomain:c,tickCount:l,ticks:d,niceTicks:h,axisType:g}=e;if(!o)return null;var m=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,y=i==="category"&&o.bandwidth?o.bandwidth()/m:0;if(y=g==="angleAxis"&&a&&a.length>=2?Xn(a[0]-a[1])*2*y:y,d||h){var v=(d||h||[]).map((b,_)=>{var E=r?r.indexOf(b):b;return{coordinate:o(E)+y,value:b,offset:y,index:_}});return v.filter(b=>!Ar(b.coordinate))}return u&&c?c.map((b,_)=>({coordinate:o(b)+y,value:b,index:_,offset:y})):o.ticks&&l!=null?o.ticks(l).map((b,_)=>({coordinate:o(b)+y,value:b,offset:y,index:_})):o.domain().map((b,_)=>({coordinate:o(b)+y,value:r?r[b]:b,index:_,offset:y}))},uP=1e-4,eX=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-uP,a=Math.max(r[0],r[1])+uP,o=e(t[0]),s=e(t[n-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[n-1]])}},tX=(e,t)=>{if(!t||t.length!==2||!Me(t[0])||!Me(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Me(e[0])||e[0]<n)&&(i[0]=n),(!Me(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},nX=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,o=0;o<t;++o){var s=Ar(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1])}},rX=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var o=Ar(e[a][n][1])?e[a][n][0]:e[a][n][1];o>=0?(e[a][n][0]=i,e[a][n][1]=i+o,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}},iX={sign:nX,expand:mj,none:wu,silhouette:yj,wiggle:bj,positive:rX},aX=(e,t,n)=>{var r=iX[n],i=vj().keys(t).value((a,o)=>+$t(a,o,0)).order(xu).offset(r);return i(e)};function S2(e){return e==null?void 0:String(e)}function Jc(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Rt(i[t.dataKey])){var s=I8(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var u=$t(i,Rt(o)?t.dataKey:o);return Rt(u)?null:t.scale(u)}var cP=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return n[o]?n[o].coordinate+r:null;var s=$t(a,t.dataKey,t.scale.domain()[o]);return Rt(s)?null:t.scale(s)-i/2+r},oX=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},sX=e=>{var t=e.flat(2).filter(Me);return[Math.min(...t),Math.max(...t)]},uX=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],cX=(e,t,n)=>{if(e!=null)return uX(Object.keys(e).reduce((r,i)=>{var a=e[i],{stackedData:o}=a,s=o.reduce((u,c)=>{var l=sX(c.slice(t,n+1));return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},lP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Su=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=a0(t,l=>l.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var u=i[o],c=i[o-1];a=Math.min((u.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function dP(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return Ui(Ui({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Ua(e,t){if(e)return String(e);if(typeof t=="string")return t}function lX(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return r?KY({x:e,y:t},r):null}var fX=(e,t,n,r)=>{var i=t.find(c=>c&&c.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=r;return Ui(Ui(Ui({},r),Nn(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:u}=r;return Ui(Ui(Ui({},r),Nn(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return{x:0,y:0}},dX=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,zo=e=>e.layout.width,Fo=e=>e.layout.height,hX=e=>e.layout.scale,p7=e=>e.layout.margin,A2=se(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),O2=se(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),T2="data-recharts-item-index",P2="data-recharts-item-data-key",f0=60;function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){pX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pX(e,t,n){return(t=gX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=vX(e,"string");return typeof t=="symbol"?t:t+""}function vX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mX=e=>e.brush.height,Hn=se([zo,Fo,p7,mX,A2,O2,Dj,OK],(e,t,n,r,i,a,o,s)=>{var u=a.reduce((m,y)=>{var{orientation:v}=y;if(!y.mirror&&!y.hide){var b=typeof y.width=="number"?y.width:f0;return is(is({},m),{},{[v]:m[v]+b})}return m},{left:n.left||0,right:n.right||0}),c=i.reduce((m,y)=>{var{orientation:v}=y;return!y.mirror&&!y.hide?is(is({},m),{},{[v]:Es(m,"".concat(v))+y.height}):m},{top:n.top||0,bottom:n.bottom||0}),l=is(is({},c),u),d=l.bottom;l.bottom+=r,l=QY(l,o,s);var h=e-l.left-l.right,g=t-l.top-l.bottom;return is(is({brushBottom:d},l),{},{width:Math.max(h,0),height:Math.max(g,0)})}),yX=se(Hn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),g7=se(zo,Fo,(e,t)=>({x:0,y:0,width:e,height:t})),bX=k.createContext(null),Un=()=>k.useContext(bX)!=null,d0=e=>e.brush,h0=se([d0,Hn,p7],(e,t,n)=>({height:e.height,x:Me(e.x)?e.x:t.left,y:Me(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Me(e.width)?e.width:t.width})),p0=()=>{var e,t=Un(),n=ke(yX),r=ke(h0),i=(e=ke(d0))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},wX={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},v7=()=>{var e;return(e=ke(Hn))!==null&&e!==void 0?e:wX},C2=()=>ke(zo),j2=()=>ke(Fo),xX={top:0,right:0,bottom:0,left:0},_X=()=>{var e;return(e=ke(t=>t.layout.margin))!==null&&e!==void 0?e:xX},It=e=>e.layout.layoutType,Zd=()=>ke(It),EX={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},m7=ea({name:"legend",initialState:EX,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(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=Co(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:pP,setLegendSettings:SX,addLegendPayload:y7,removeLegendPayload:b7}=m7.actions,AX=m7.reducer,OX=["contextPayload"];function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kw.apply(null,arguments)}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){M2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M2(e,t,n){return(t=TX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TX(e){var t=PX(e,"string");return typeof t=="symbol"?t:t+""}function PX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CX(e,t){if(e==null)return{};var n,r,i=jX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function MX(e){return e.value}function kX(e){var{contextPayload:t}=e,n=CX(e,OX),r=jj(t,e.payloadUniqBy,MX),i=Qc(Qc({},n),{},{payload:r});return B.isValidElement(e.content)?B.cloneElement(e.content,i):typeof e.content=="function"?B.createElement(e.content,i):B.createElement(d2,i)}function RX(e,t,n,r,i,a){var{layout:o,align:s,verticalAlign:u}=t,c,l;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&o==="vertical"?c={left:((r||0)-a.width)/2}:c=s==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(u==="middle"?l={top:((i||0)-a.height)/2}:l=u==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),Qc(Qc({},c),l)}function IX(e){var t=en();return k.useEffect(()=>{t(SX(e))},[t,e]),null}function DX(e){var t=en();return k.useEffect(()=>(t(pP(e)),()=>{t(pP({width:0,height:0}))}),[t,e]),null}function NX(e){var t=CK(),n=PU(),r=_X(),{width:i,height:a,wrapperStyle:o,portal:s}=e,[u,c]=Nj([t]),l=C2(),d=j2(),h=l-(r.left||0)-(r.right||0),g=Cs.getWidthOrHeight(e.layout,a,i,h),m=s?o:Qc(Qc({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},RX(o,e,r,l,d,u)),o),y=s??n;if(y==null)return null;var v=B.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:c},B.createElement(IX,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),B.createElement(DX,{width:u.width,height:u.height}),B.createElement(kX,Kw({},e,g,{margin:r,chartWidth:l,chartHeight:d,contextPayload:t})));return R_.createPortal(v,y)}class Cs extends k.PureComponent{static getWidthOrHeight(t,n,r,i){return t==="vertical"&&Me(n)?{height:n}:t==="horizontal"?{width:r||i}:null}render(){return B.createElement(NX,this.props)}}M2(Cs,"displayName","Legend");M2(Cs,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function Yw(){return Yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yw.apply(null,arguments)}function vP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vP(Object(n),!0).forEach(function(r){LX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LX(e,t,n){return(t=$X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $X(e){var t=BX(e,"string");return typeof t=="symbol"?t:t+""}function BX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zX(e){return Array.isArray(e)&&si(e[0])&&si(e[1])?e.join(" ~ "):e}var FX=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:a,formatter:o,itemSorter:s,wrapperClassName:u,labelClassName:c,label:l,labelFormatter:d,accessibilityLayer:h=!1}=e,g=()=>{if(a&&a.length){var A={padding:0,margin:0},O=(s?a0(a,s):a).map((P,j)=>{if(P.type==="none")return null;var $=P.formatter||o||zX,{value:z,name:I}=P,H=z,D=I;if($){var C=$(z,I,P,j,a);if(Array.isArray(C))[H,D]=C;else if(C!=null)H=C;else return null}var L=B1({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},r);return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:L},si(D)?B.createElement("span",{className:"recharts-tooltip-item-name"},D):null,si(D)?B.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,B.createElement("span",{className:"recharts-tooltip-item-value"},H),B.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return B.createElement("ul",{className:"recharts-tooltip-item-list",style:A},O)}return null},m=B1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),y=B1({margin:0},i),v=!Rt(l),b=v?l:"",_=Ot("recharts-default-tooltip",u),E=Ot("recharts-tooltip-label",c);v&&d&&a!==void 0&&a!==null&&(b=d(l,a));var S=h?{role:"status","aria-live":"assertive"}:{};return B.createElement("div",Yw({className:_,style:m},S),B.createElement("p",{className:E,style:y},B.isValidElement(b)?b:"".concat(b)),g())},gf="recharts-tooltip-wrapper",WX={visibility:"hidden"};function qX(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ot(gf,{["".concat(gf,"-right")]:Me(n)&&t&&Me(t.x)&&n>=t.x,["".concat(gf,"-left")]:Me(n)&&t&&Me(t.x)&&n<t.x,["".concat(gf,"-bottom")]:Me(r)&&t&&Me(t.y)&&r>=t.y,["".concat(gf,"-top")]:Me(r)&&t&&Me(t.y)&&r<t.y})}function mP(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:u,viewBoxDimension:c}=e;if(a&&Me(a[r]))return a[r];var l=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?l:d;var h=u[r];if(h==null)return 0;if(o[r]){var g=l,m=h;return g<m?Math.max(d,h):Math.max(l,h)}if(c==null)return 0;var y=d+s,v=h+c;return y>v?Math.max(l,h):Math.max(d,h)}function VX(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function HX(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:s,viewBox:u}=e,c,l,d;return o.height>0&&o.width>0&&n?(l=mP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),d=mP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=VX({translateX:l,translateY:d,useTranslate3d:s})):c=WX,{cssProperties:c,cssClasses:qX({translateX:l,translateY:d,coordinate:n})}}function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){Xw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xw(e,t,n){return(t=UX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UX(e){var t=GX(e,"string");return typeof t=="symbol"?t:t+""}function GX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class KX extends k.PureComponent{constructor(){super(...arguments),Xw(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Xw(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:a,coordinate:o,hasPayload:s,isAnimationActive:u,offset:c,position:l,reverseDirection:d,useTranslate3d:h,viewBox:g,wrapperStyle:m,lastBoundingBox:y,innerRef:v,hasPortalFromProps:b}=this.props,{cssClasses:_,cssProperties:E}=HX({allowEscapeViewBox:n,coordinate:o,offsetTopLeft:c,position:l,reverseDirection:d,tooltipBox:{height:y.height,width:y.width},useTranslate3d:h,viewBox:g}),S=b?{}:xp(xp({transition:u&&t?"transform ".concat(r,"ms ").concat(i):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),A=xp(xp({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},m);return B.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:_,style:A,ref:v},a)}}var YX=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Wo={isSsr:YX()},w7=()=>ke(e=>e.rootProps.accessibilityLayer);function lr(e){return Number.isFinite(e)}function el(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(null,arguments)}function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){XX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XX(e,t,n){return(t=ZX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZX(e){var t=JX(e,"string");return typeof t=="symbol"?t:t+""}function JX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xP={curveBasisClosed:J8,curveBasisOpen:ej,curveBasis:X8,curveBumpX:Q_,curveBumpY:e2,curveLinearClosed:oj,curveLinear:Sl,curveMonotoneX:cj,curveMonotoneY:lj,curveNatural:dj,curveStep:hj,curveStepAfter:gj,curveStepBefore:pj},_p=e=>lr(e.x)&&lr(e.y),vf=e=>e.x,mf=e=>e.y,QX=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Hd(e));return(n==="curveMonotone"||n==="curveBump")&&t?xP["".concat(n).concat(t==="vertical"?"Y":"X")]:xP[n]||Sl},eZ=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:a=!1}=e,o=QX(t,i),s=a?n.filter(_p):n,u;if(Array.isArray(r)){var c=a?r.filter(d=>_p(d)):r,l=s.map((d,h)=>wP(wP({},d),{},{base:c[h]}));return i==="vertical"?u=Rc().y(mf).x1(vf).x0(d=>d.base.x):u=Rc().x(vf).y1(mf).y0(d=>d.base.y),u.defined(_p).curve(o),u(l)}return i==="vertical"&&Me(r)?u=Rc().y(mf).x1(vf).x0(r):Me(r)?u=Rc().x(vf).y1(mf).y0(r):u=e0().x(vf).y(mf),u.defined(_p).curve(o),u(s)},pu=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var a=n&&n.length?eZ(e):r;return B.createElement("path",Zw({},it(e,!1),G_(e),{className:Ot("recharts-curve",t),d:a===null?void 0:a,ref:i}))},tZ=["x","y","top","left","width","height","className"];function Jw(){return Jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jw.apply(null,arguments)}function _P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(n),!0).forEach(function(r){rZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rZ(e,t,n){return(t=iZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iZ(e){var t=aZ(e,"string");return typeof t=="symbol"?t:t+""}function aZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oZ(e,t){if(e==null)return{};var n,r,i=sZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uZ=(e,t,n,r,i,a)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n),cZ=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:o=0,className:s}=e,u=oZ(e,tZ),c=nZ({x:t,y:n,top:r,left:i,width:a,height:o},u);return!Me(t)||!Me(n)||!Me(a)||!Me(o)||!Me(r)||!Me(i)?null:B.createElement("path",Jw({},it(c,!0),{className:Ot("recharts-cross",s),d:uZ(t,n,a,o,r,i)}))};function lZ(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){dZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dZ(e,t,n){return(t=hZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hZ(e){var t=pZ(e,"string");return typeof t=="symbol"?t:t+""}function pZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function li(e,t){var n=fZ({},e),r=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&r[s]!==void 0&&(o[s]=r[s]),o),n);return a}var z1={},F1={},W1={},SP;function gZ(){return SP||(SP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(!n||typeof n!="object")return!1;const r=Object.getPrototypeOf(n);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(n)==="[object Object]":!1}e.isPlainObject=t}(W1)),W1}var AP;function vZ(){return AP||(AP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gZ(),n=Tj(),r=v2(),i=m2(),a=p2();function o(c,l,d){return s(c,l,void 0,void 0,void 0,void 0,d)}function s(c,l,d,h,g,m,y){const v=y(c,l,d,h,g,m);if(v!==void 0)return v;if(typeof c==typeof l)switch(typeof c){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return c===l;case"number":return c===l||Object.is(c,l);case"function":return c===l;case"object":return u(c,l,m,y)}return u(c,l,m,y)}function u(c,l,d,h){if(Object.is(c,l))return!0;let g=r.getTag(c),m=r.getTag(l);if(g===i.argumentsTag&&(g=i.objectTag),m===i.argumentsTag&&(m=i.objectTag),g!==m)return!1;switch(g){case i.stringTag:return c.toString()===l.toString();case i.numberTag:{const b=c.valueOf(),_=l.valueOf();return a.eq(b,_)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(c.valueOf(),l.valueOf());case i.regexpTag:return c.source===l.source&&c.flags===l.flags;case i.functionTag:return c===l}d=d??new Map;const y=d.get(c),v=d.get(l);if(y!=null&&v!=null)return y===l;d.set(c,l),d.set(l,c);try{switch(g){case i.mapTag:{if(c.size!==l.size)return!1;for(const[b,_]of c.entries())if(!l.has(b)||!s(_,l.get(b),b,c,l,d,h))return!1;return!0}case i.setTag:{if(c.size!==l.size)return!1;const b=Array.from(c.values()),_=Array.from(l.values());for(let E=0;E<b.length;E++){const S=b[E],A=_.findIndex(O=>s(S,O,void 0,c,l,d,h));if(A===-1)return!1;_.splice(A,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(c)!==Buffer.isBuffer(l)||c.length!==l.length)return!1;for(let b=0;b<c.length;b++)if(!s(c[b],l[b],b,c,l,d,h))return!1;return!0}case i.arrayBufferTag:return c.byteLength!==l.byteLength?!1:u(new Uint8Array(c),new Uint8Array(l),d,h);case i.dataViewTag:return c.byteLength!==l.byteLength||c.byteOffset!==l.byteOffset?!1:u(new Uint8Array(c),new Uint8Array(l),d,h);case i.errorTag:return c.name===l.name&&c.message===l.message;case i.objectTag:{if(!(u(c.constructor,l.constructor,d,h)||t.isPlainObject(c)&&t.isPlainObject(l)))return!1;const _=[...Object.keys(c),...n.getSymbols(c)],E=[...Object.keys(l),...n.getSymbols(l)];if(_.length!==E.length)return!1;for(let S=0;S<_.length;S++){const A=_[S],O=c[A];if(!Object.hasOwn(l,A))return!1;const P=l[A];if(!s(O,P,A,c,l,d,h))return!1}return!0}default:return!1}}finally{d.delete(c),d.delete(l)}}e.isEqualWith=o}(F1)),F1}var q1={},OP;function mZ(){return OP||(OP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t}(q1)),q1}var TP;function yZ(){return TP||(TP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vZ(),n=mZ();function r(i,a){return t.isEqualWith(i,a,n.noop)}e.isEqual=r}(z1)),z1}var V1,PP;function bZ(){return PP||(PP=1,V1=yZ().isEqual),V1}var wZ=bZ();const xZ=Va(wZ);function _Z(e){var t={},n=()=>null,r=!1,i=null,a=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var s=o,[u,...c]=s;if(typeof u=="number"){i=e.setTimeout(a.bind(null,c),u);return}a(u),i=e.setTimeout(a.bind(null,c));return}typeof o=="object"&&(t=o,n(t)),typeof o=="function"&&o()}};return{stop:()=>{r=!0},start:o=>{r=!1,i&&(i(),i=null),a(o)},subscribe:o=>(n=o,()=>{n=()=>null}),getTimeoutController:()=>e}}var kg=1e-4,x7=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],_7=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),CP=(e,t)=>n=>{var r=x7(e,t);return _7(r,n)},EZ=(e,t)=>n=>{var r=x7(e,t),i=[...r.map((a,o)=>a*o).slice(1),0];return _7(i,n)},jP=function(){for(var t,n,r,i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(o.length===1)switch(o[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var u=o[0].split("(");u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4&&([t,r,n,i]=u[1].split(")")[0].split(",").map(m=>parseFloat(m)))}}else o.length===4&&([t,r,n,i]=o);var c=CP(t,n),l=CP(r,i),d=EZ(t,n),h=m=>m>1?1:m<0?0:m,g=m=>{for(var y=m>1?1:m,v=y,b=0;b<8;++b){var _=c(v)-y,E=d(v);if(Math.abs(_-y)<kg||E<kg)return l(v);v=h(v-_/E)}return l(v)};return g.isStepper=!1,g},SZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,a=(o,s,u)=>{var c=-(o-s)*n,l=u*r,d=u+(c-l)*i/1e3,h=u*i/1e3+o;return Math.abs(h-s)<kg&&Math.abs(d)<kg?[s,0]:[h,d]};return a.isStepper=!0,a.dt=i,a},AZ=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return jP(e);case"spring":return SZ();default:if(e.split("(")[0]==="cubic-bezier")return jP(e)}return typeof e=="function"?e:null};function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(r){OZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OZ(e,t,n){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=PZ(e,"string");return typeof t=="symbol"?t:t+""}function PZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CZ=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),jZ=(e,t,n)=>e.map(r=>"".concat(CZ(r)," ").concat(t,"ms ").concat(n)).join(","),MZ=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),gd=(e,t)=>Object.keys(t).reduce((n,r)=>kP(kP({},n),{},{[r]:e(r,t[r])}),{});function RP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(n),!0).forEach(function(r){kZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kZ(e,t,n){return(t=RZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RZ(e){var t=IZ(e,"string");return typeof t=="symbol"?t:t+""}function IZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rg=(e,t,n)=>e+(t-e)*n,Qw=e=>{var{from:t,to:n}=e;return t!==n},E7=(e,t,n)=>{var r=gd((i,a)=>{if(Qw(a)){var[o,s]=e(a.from,a.to,a.velocity);return sr(sr({},a),{},{from:o,velocity:s})}return a},t);return n<1?gd((i,a)=>Qw(a)?sr(sr({},a),{},{velocity:Rg(a.velocity,r[i].velocity,n),from:Rg(a.from,r[i].from,n)}):a,t):E7(e,r,n-1)};function DZ(e,t,n,r,i,a){var o,s=r.reduce((h,g)=>sr(sr({},h),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),u=()=>gd((h,g)=>g.from,s),c=()=>!Object.values(s).filter(Qw).length,l=null,d=h=>{o||(o=h);var g=h-o,m=g/n.dt;s=E7(n,s,m),i(sr(sr(sr({},e),t),u())),o=h,c()||(l=a.setTimeout(d))};return()=>(l=a.setTimeout(d),()=>{l()})}function NZ(e,t,n,r,i,a,o){var s=null,u=i.reduce((d,h)=>sr(sr({},d),{},{[h]:[e[h],t[h]]}),{}),c,l=d=>{c||(c=d);var h=(d-c)/r,g=gd((y,v)=>Rg(...v,n(h)),u);if(a(sr(sr(sr({},e),t),g)),h<1)s=o.setTimeout(l);else{var m=gd((y,v)=>Rg(...v,n(1)),u);a(sr(sr(sr({},e),t),m))}};return()=>(s=o.setTimeout(l),()=>{s()})}const LZ=(e,t,n,r,i,a)=>{var o=MZ(e,t);return n.isStepper===!0?DZ(e,t,n,o,i,a):NZ(e,t,n,r,o,i,a)};class $Z{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,a=o=>{o-r>=n?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}var BZ=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(null,arguments)}function zZ(e,t){if(e==null)return{};var n,r,i=FZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function FZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){iu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iu(e,t,n){return(t=WZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WZ(e){var t=qZ(e,"string");return typeof t=="symbol"?t:t+""}function qZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VZ(){return _Z(new $Z)}class k2 extends k.PureComponent{constructor(t,n){super(t,n),iu(this,"mounted",!1),iu(this,"manager",null),iu(this,"stopJSAnimation",null),iu(this,"unSubscribe",null);var{isActive:r,attributeName:i,from:a,to:o,children:s,duration:u,animationManager:c}=this.props;if(this.manager=c,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!r||u<=0){this.state={style:{}},typeof s=="function"&&(this.state={style:o});return}if(a){if(typeof s=="function"){this.state={style:a};return}this.state={style:i?{[i]:a}:a}}else this.state={style:{}}}componentDidMount(){var{isActive:t,canBegin:n}=this.props;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}componentDidUpdate(t){var{isActive:n,canBegin:r,attributeName:i,shouldReAnimate:a,to:o,from:s}=this.props,{style:u}=this.state;if(r){if(!n){var c={style:i?{[i]:o}:o};this.state&&u&&(i&&u[i]!==o||!i&&u!==o)&&this.setState(c);return}if(!(xZ(t.to,o)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=l||a?s:t.to;if(this.state&&u){var h={style:i?{[i]:d}:d};(i&&u[i]!==d||!i&&u!==d)&&this.setState(h)}this.runAnimation(as(as({},this.props),{},{from:d,begin:0}))}}}componentWillUnmount(){this.mounted=!1;var{onAnimationEnd:t}=this.props;this.unSubscribe&&this.unSubscribe(),this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}handleStyleChange(t){this.changeStyle(t)}changeStyle(t){this.mounted&&this.setState({style:t})}runJSAnimation(t){var{from:n,to:r,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u}=t,c=LZ(n,r,AZ(a),i,this.changeStyle,this.manager.getTimeoutController()),l=()=>{this.stopJSAnimation=c()};this.manager.start([u,o,l,i,s])}runAnimation(t){var{begin:n,duration:r,attributeName:i,to:a,easing:o,onAnimationStart:s,onAnimationEnd:u,children:c}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof o=="function"||typeof c=="function"||o==="spring"){this.runJSAnimation(t);return}var l=i?{[i]:a}:a,d=jZ(Object.keys(l),r,o);this.manager.start([s,n,as(as({},l),{},{transition:d}),r,u])}render(){var t=this.props,{children:n,begin:r,duration:i,attributeName:a,easing:o,isActive:s,from:u,to:c,canBegin:l,onAnimationEnd:d,shouldReAnimate:h,onAnimationReStart:g,animationManager:m}=t,y=zZ(t,BZ),v=k.Children.count(n),b=this.state.style;if(typeof n=="function")return n(b);if(!s||v===0||i<=0)return n;var _=E=>{var{style:S={},className:A}=E.props,O=k.cloneElement(E,as(as({},y),{},{style:as(as({},S),b),className:A}));return O};return v===1?_(k.Children.only(n)):B.createElement("div",null,k.Children.map(n,E=>_(E)))}}iu(k2,"displayName","Animate");iu(k2,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});var HZ=k.createContext(null);function Na(e){var t,n,r=k.useContext(HZ);return B.createElement(k2,ex({},e,{animationManager:(t=(n=e.animationManager)!==null&&n!==void 0?n:r)!==null&&t!==void 0?t:VZ()}))}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ig.apply(null,arguments)}var DP=(e,t,n,r,i)=>{var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=r>=0?1:-1,s=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0,c;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],d=0,h=4;d<h;d++)l[d]=i[d]>a?a:i[d];c="M".concat(e,",").concat(t+o*l[0]),l[0]>0&&(c+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+s*l[0],",").concat(t)),c+="L ".concat(e+n-s*l[1],",").concat(t),l[1]>0&&(c+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,`,
50
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),y.warnIfExceeded()),m}}}function bp(e){return typeof e=="boolean"}var oY=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Kj;if(n&&(bp(n)?o.push(YK):o.push(XK(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let s={};bp(r)||(s=r),o.unshift(iY(s))}if(i){let s={};bp(i)||(s=i),o.push(aY(s))}if(a){let s={};bp(a)||(s=a),o.unshift(tY(s))}}return o},sY="RTK_autoBatch",tP=e=>t=>{setTimeout(t,e)},uY=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,o=!1;const s=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:tP(10):e.type==="callback"?e.queueNotification:tP(e.timeout),c=()=>{o=!1,a&&(a=!1,s.forEach(l=>l()))};return Object.assign({},r,{subscribe(l){const d=()=>i&&l(),h=r.subscribe(d);return s.add(l),()=>{h(),s.delete(l)}},dispatch(l){try{return i=!l?.meta?.[sY],a=!i,a&&(o||(o=!0,u(c))),r.dispatch(l)}finally{i=!0}}})},cY=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Kj(e);return r&&i.push(uY(typeof r=="object"?r:void 0)),i};function lY(e){const t=oY(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(Kd(n))u=$j(n);else throw new Error(process.env.NODE_ENV==="production"?qt(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"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?qt(2):"`middleware` field must be a callback");let c;if(typeof r=="function"){if(c=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(c))throw new Error(process.env.NODE_ENV==="production"?qt(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(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?qt(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&a){let y=new Set;c.forEach(v=>{if(y.has(v))throw new Error(process.env.NODE_ENV==="production"?qt(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");y.add(v)})}let l=Ag;i&&(l=ZK({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const d=$K(...c),h=cY(d);if(process.env.NODE_ENV!=="production"&&s&&typeof s!="function")throw new Error(process.env.NODE_ENV==="production"?qt(5):"`enhancers` field must be a callback");let g=typeof s=="function"?s(h):h();if(process.env.NODE_ENV!=="production"&&!Array.isArray(g))throw new Error(process.env.NODE_ENV==="production"?qt(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&g.some(y=>typeof y!="function"))throw new Error(process.env.NODE_ENV==="production"?qt(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&c.length&&!g.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const m=l(...g);return Lj(u,o,m)}function Qj(e){const t={},n=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?qt(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?qt(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof a=="string"?a:a.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?qt(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?qt(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?qt(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?qt(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[t,n,r]}function fY(e){return typeof e=="function"}function dY(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?qt(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=Qj(t),a;if(fY(e))a=()=>eP(e());else{const s=eP(e);a=()=>s}function o(s=a(),u){let c=[n[u.type],...r.filter(({matcher:l})=>l(u)).map(({reducer:l})=>l)];return c.filter(l=>!!l).length===0&&(c=[i]),c.reduce((l,d)=>{if(d)if(_u(l)){const g=d(l,u);return g===void 0?l:g}else{if(Ro(l))return Hj(l,h=>d(h,u));{const h=d(l,u);if(h===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return h}}return l},s)}return o.getInitialState=a,o}var hY="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",pY=(e=21)=>{let t="",n=e;for(;n--;)t+=hY[Math.random()*64|0];return t},gY=Symbol.for("rtk-slice-createasyncthunk");function vY(e,t){return`${e}/${t}`}function mY({creators:e}={}){const t=e?.asyncThunk?.[gY];return function(r){const{name:i,reducerPath:a=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const o=(typeof r.reducers=="function"?r.reducers(bY()):r.reducers)||{},s=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(E,S){const A=typeof E=="string"?E:E.type;if(!A)throw new Error(process.env.NODE_ENV==="production"?qt(12):"`context.addCase` cannot be called with an empty action type");if(A in u.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?qt(13):"`context.addCase` cannot be called with two reducers for the same action type: "+A);return u.sliceCaseReducersByType[A]=S,c},addMatcher(E,S){return u.sliceMatchers.push({matcher:E,reducer:S}),c},exposeAction(E,S){return u.actionCreators[E]=S,c},exposeCaseReducer(E,S){return u.sliceCaseReducersByName[E]=S,c}};s.forEach(E=>{const S=o[E],A={reducerName:E,type:vY(i,E),createNotation:typeof r.reducers=="function"};xY(S)?EY(A,S,c,t):wY(A,S,c)});function l(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?qt(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[E={},S=[],A=void 0]=typeof r.extraReducers=="function"?Qj(r.extraReducers):[r.extraReducers],O={...E,...u.sliceCaseReducersByType};return dY(r.initialState,P=>{for(let j in O)P.addCase(j,O[j]);for(let j of u.sliceMatchers)P.addMatcher(j.matcher,j.reducer);for(let j of S)P.addMatcher(j.matcher,j.reducer);A&&P.addDefaultCase(A)})}const d=E=>E,h=new Map,g=new WeakMap;let m;function y(E,S){return m||(m=l()),m(E,S)}function v(){return m||(m=l()),m.getInitialState()}function b(E,S=!1){function A(P){let j=P[E];if(typeof j>"u"){if(S)j=yp(g,A,v);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?qt(15):"selectSlice returned undefined for an uninjected slice reducer")}return j}function O(P=d){const j=yp(h,S,()=>new WeakMap);return yp(j,P,()=>{const $={};for(const[z,I]of Object.entries(r.selectors??{}))$[z]=yY(I,P,()=>yp(g,P,v),S);return $})}return{reducerPath:E,getSelectors:O,get selectors(){return O(A)},selectSlice:A}}const _={name:i,reducer:y,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:v,...b(a),injectInto(E,{reducerPath:S,...A}={}){const O=S??a;return E.inject({reducerPath:O,reducer:y},A),{..._,...b(O,!0)}}};return _}}function yY(e,t,n,r){function i(a,...o){let s=t(a);if(typeof s>"u"){if(r)s=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?qt(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...o)}return i.unwrapped=e,i}var ea=mY();function bY(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function wY({type:e,reducerName:t,createNotation:n},r,i){let a,o;if("reducer"in r){if(n&&!_Y(r))throw new Error(process.env.NODE_ENV==="production"?qt(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Zi(e,o):Zi(e))}function xY(e){return e._reducerDefinitionType==="asyncThunk"}function _Y(e){return e._reducerDefinitionType==="reducerWithPrepare"}function EY({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:s,rejected:u,settled:c,options:l}=n,d=i(e,a,l);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),u&&r.addCase(d.rejected,u),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:o||wp,pending:s||wp,rejected:u||wp,settled:c||wp})}function wp(){}var SY="task",e7="listener",t7="completed",_2="cancelled",AY=`task-${_2}`,OY=`task-${t7}`,Uw=`${e7}-${_2}`,TY=`${e7}-${t7}`,l0=class{constructor(e){this.code=e,this.message=`${SY} ${_2} (reason: ${e})`}name="TaskAbortError";message},E2=(e,t)=>{if(typeof e!="function")throw new TypeError(process.env.NODE_ENV==="production"?qt(32):`${t} is not a function`)},Cg=()=>{},n7=(e,t=Cg)=>(e.catch(t),e),r7=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),du=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},hu=e=>{if(e.aborted){const{reason:t}=e;throw new l0(t)}};function i7(e,t){let n=Cg;return new Promise((r,i)=>{const a=()=>i(new l0(e.reason));if(e.aborted){a();return}n=r7(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Cg})}var PY=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof l0?"cancelled":"rejected",error:n}}finally{t?.()}},jg=e=>t=>n7(i7(e,t).then(n=>(hu(e),n))),a7=e=>{const t=jg(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Wc}=Object,nP={},Yd="listenerMiddleware",CY=(e,t)=>{const n=r=>r7(e,()=>du(r,e.reason));return(r,i)=>{E2(r,"taskExecutor");const a=new AbortController;n(a);const o=PY(async()=>{hu(e),hu(a.signal);const s=await r({pause:jg(a.signal),delay:a7(a.signal),signal:a.signal});return hu(a.signal),s},()=>du(a,OY));return i?.autoJoin&&t.push(o.catch(Cg)),{result:jg(e)(o),cancel(){du(a,AY)}}}},jY=(e,t)=>{const n=async(r,i)=>{hu(t);let a=()=>{};const s=[new Promise((u,c)=>{let l=e({predicate:r,effect:(d,h)=>{h.unsubscribe(),u([d,h.getState(),h.getOriginalState()])}});a=()=>{l(),c()}})];i!=null&&s.push(new Promise(u=>setTimeout(u,i,null)));try{const u=await i7(t,Promise.race(s));return hu(t),u}finally{a()}};return(r,i)=>n7(n(r,i))},o7=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Zi(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?qt(21):"Creating or removing a listener requires one of the known fields for matching an action");return E2(a,"options.listener"),{predicate:i,type:t,effect:a}},s7=Wc(e=>{const{type:t,predicate:n,effect:r}=o7(e);return{id:pY(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?qt(22):"Unsubscribe not initialized")}}},{withTypes:()=>s7}),rP=(e,t)=>{const{type:n,effect:r,predicate:i}=o7(t);return Array.from(e.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},Gw=e=>{e.pending.forEach(t=>{du(t,Uw)})},MY=e=>()=>{e.forEach(Gw),e.clear()},iP=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},u7=Wc(Zi(`${Yd}/add`),{withTypes:()=>u7}),kY=Zi(`${Yd}/removeAll`),c7=Wc(Zi(`${Yd}/remove`),{withTypes:()=>c7}),RY=(...e)=>{console.error(`${Yd}/error`,...e)},Xd=(e={})=>{const t=new Map,{extra:n,onError:r=RY}=e;E2(r,"onError");const i=l=>(l.unsubscribe=()=>t.delete(l.id),t.set(l.id,l),d=>{l.unsubscribe(),d?.cancelActive&&Gw(l)}),a=l=>{const d=rP(t,l)??s7(l);return i(d)};Wc(a,{withTypes:()=>a});const o=l=>{const d=rP(t,l);return d&&(d.unsubscribe(),l.cancelActive&&Gw(d)),!!d};Wc(o,{withTypes:()=>o});const s=async(l,d,h,g)=>{const m=new AbortController,y=jY(a,m.signal),v=[];try{l.pending.add(m),await Promise.resolve(l.effect(d,Wc({},h,{getOriginalState:g,condition:(b,_)=>y(b,_).then(Boolean),take:y,delay:a7(m.signal),pause:jg(m.signal),extra:n,signal:m.signal,fork:CY(m.signal,v),unsubscribe:l.unsubscribe,subscribe:()=>{t.set(l.id,l)},cancelActiveListeners:()=>{l.pending.forEach((b,_,E)=>{b!==m&&(du(b,Uw),E.delete(b))})},cancel:()=>{du(m,Uw),l.pending.delete(m)},throwIfCancelled:()=>{hu(m.signal)}})))}catch(b){b instanceof l0||iP(r,b,{raisedBy:"effect"})}finally{await Promise.all(v),du(m,TY),l.pending.delete(m)}},u=MY(t);return{middleware:l=>d=>h=>{if(!b2(h))return d(h);if(u7.match(h))return a(h.payload);if(kY.match(h)){u();return}if(c7.match(h))return o(h.payload);let g=l.getState();const m=()=>{if(g===nP)throw new Error(process.env.NODE_ENV==="production"?qt(23):`${Yd}: getOriginalState can only be called synchronously`);return g};let y;try{if(y=d(h),t.size>0){const v=l.getState(),b=Array.from(t.values());for(const _ of b){let E=!1;try{E=_.predicate(h,v,g)}catch(S){E=!1,iP(r,S,{raisedBy:"predicate"})}E&&s(_,h,l,m)}}}finally{g=nP}return y},startListening:a,stopListening:o,clearListeners:u}};function qt(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 IY={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},l7=ea({name:"chartLayout",initialState:IY,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:DY,setLayout:NY,setChartSize:LY,setScale:$Y}=l7.actions,BY=l7.reducer;function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){zY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zY(e,t,n){return(t=FY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FY(e){var t=WY(e,"string");return typeof t=="symbol"?t:t+""}function WY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mg=Math.PI/180,qY=e=>e*180/Math.PI,Nn=(e,t,n,r)=>({x:e+Math.cos(-Mg*r)*n,y:t+Math.sin(-Mg*r)*n}),f7=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},VY=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},HY=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,o=VY({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,u=Math.acos(s);return r>a&&(u=2*Math.PI-u),{radius:o,angle:qY(u),angleInRadian:u}},UY=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},GY=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return e+o*360},KY=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:a}=HY({x:n,y:r},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:u,endAngle:c}=UY(t),l=a,d;if(u<=c){for(;l>c;)l-=360;for(;l<u;)l+=360;d=l>=u&&l<=c}else{for(;l>u;)l-=360;for(;l<c;)l+=360;d=l>=c&&l<=u}return d?oP(oP({},t),{},{radius:i,angle:GY(l,t)}):null};function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){YY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YY(e,t,n){return(t=XY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XY(e){var t=ZY(e,"string");return typeof t=="symbol"?t:t+""}function ZY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $t(e,t,n){return Rt(e)||Rt(t)?n:si(t)?Es(e,t,n):typeof t=="function"?t(e):n}var JY=(e,t,n,r,i)=>{var a,o=-1,s=(a=t?.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<s;u++){var c=u>0?n[u-1].coordinate:n[s-1].coordinate,l=n[u].coordinate,d=u>=s-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if(Xn(l-c)!==Xn(d-l)){var g=[];if(Xn(d-l)===Xn(i[1]-i[0])){h=d;var m=l+i[1]-i[0];g[0]=Math.min(m,(m+c)/2),g[1]=Math.max(m,(m+c)/2)}else{h=c;var y=d+i[1]-i[0];g[0]=Math.min(l,(y+l)/2),g[1]=Math.max(l,(y+l)/2)}var v=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(e>v[0]&&e<=v[1]||e>=g[0]&&e<=g[1]){({index:o}=n[u]);break}}else{var b=Math.min(c,d),_=Math.max(c,d);if(e>(b+l)/2&&e<=(_+l)/2){({index:o}=n[u]);break}}}else if(t){for(var E=0;E<s;E++)if(E===0&&e<=(t[E].coordinate+t[E+1].coordinate)/2||E>0&&E<s-1&&e>(t[E].coordinate+t[E-1].coordinate)/2&&e<=(t[E].coordinate+t[E+1].coordinate)/2||E===s-1&&e>(t[E].coordinate+t[E-1].coordinate)/2){({index:o}=t[E]);break}}return o},QY=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&a!=="center"&&Me(e[a]))return Ui(Ui({},e),{},{[a]:e[a]+(r||0)});if((s==="horizontal"||s==="vertical"&&a==="center")&&o!=="middle"&&Me(e[o]))return Ui(Ui({},e),{},{[o]:e[o]+(i||0)})}return e},Ha=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",d7=(e,t,n,r)=>{if(r)return e.map(s=>s.coordinate);var i,a,o=e.map(s=>(s.coordinate===t&&(i=!0),s.coordinate===n&&(a=!0),s.coordinate));return i||o.push(t),a||o.push(n),o},h7=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:u,categoricalDomain:c,tickCount:l,ticks:d,niceTicks:h,axisType:g}=e;if(!o)return null;var m=s==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,y=i==="category"&&o.bandwidth?o.bandwidth()/m:0;if(y=g==="angleAxis"&&a&&a.length>=2?Xn(a[0]-a[1])*2*y:y,d||h){var v=(d||h||[]).map((b,_)=>{var E=r?r.indexOf(b):b;return{coordinate:o(E)+y,value:b,offset:y,index:_}});return v.filter(b=>!Ar(b.coordinate))}return u&&c?c.map((b,_)=>({coordinate:o(b)+y,value:b,index:_,offset:y})):o.ticks&&l!=null?o.ticks(l).map((b,_)=>({coordinate:o(b)+y,value:b,offset:y,index:_})):o.domain().map((b,_)=>({coordinate:o(b)+y,value:r?r[b]:b,index:_,offset:y}))},uP=1e-4,eX=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-uP,a=Math.max(r[0],r[1])+uP,o=e(t[0]),s=e(t[n-1]);(o<i||o>a||s<i||s>a)&&e.domain([t[0],t[n-1]])}},tX=(e,t)=>{if(!t||t.length!==2||!Me(t[0])||!Me(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Me(e[0])||e[0]<n)&&(i[0]=n),(!Me(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},nX=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0,o=0;o<t;++o){var s=Ar(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=a,e[o][n][1]=a+s,a=e[o][n][1])}},rX=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,a=0;a<t;++a){var o=Ar(e[a][n][1])?e[a][n][0]:e[a][n][1];o>=0?(e[a][n][0]=i,e[a][n][1]=i+o,i=e[a][n][1]):(e[a][n][0]=0,e[a][n][1]=0)}},iX={sign:nX,expand:mj,none:wu,silhouette:yj,wiggle:bj,positive:rX},aX=(e,t,n)=>{var r=iX[n],i=vj().keys(t).value((a,o)=>+$t(a,o,0)).order(xu).offset(r);return i(e)};function S2(e){return e==null?void 0:String(e)}function Jc(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Rt(i[t.dataKey])){var s=I8(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var u=$t(i,Rt(o)?t.dataKey:o);return Rt(u)?null:t.scale(u)}var cP=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return n[o]?n[o].coordinate+r:null;var s=$t(a,t.dataKey,t.scale.domain()[o]);return Rt(s)?null:t.scale(s)-i/2+r},oX=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},sX=e=>{var t=e.flat(2).filter(Me);return[Math.min(...t),Math.max(...t)]},uX=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],cX=(e,t,n)=>{if(e!=null)return uX(Object.keys(e).reduce((r,i)=>{var a=e[i],{stackedData:o}=a,s=o.reduce((u,c)=>{var l=sX(c.slice(t,n+1));return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},lP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Su=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=a0(t,l=>l.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var u=i[o],c=i[o-1];a=Math.min((u.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function dP(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return Ui(Ui({},t),{},{dataKey:n,payload:r,value:i,name:a})}function Ua(e,t){if(e)return String(e);if(typeof t=="string")return t}function lX(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return r?KY({x:e,y:t},r):null}var fX=(e,t,n,r)=>{var i=t.find(c=>c&&c.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=r;return Ui(Ui(Ui({},r),Nn(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:u}=r;return Ui(Ui(Ui({},r),Nn(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return{x:0,y:0}},dX=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,zo=e=>e.layout.width,Fo=e=>e.layout.height,hX=e=>e.layout.scale,p7=e=>e.layout.margin,A2=se(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),O2=se(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),T2="data-recharts-item-index",P2="data-recharts-item-data-key",f0=60;function hP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){pX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pX(e,t,n){return(t=gX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=vX(e,"string");return typeof t=="symbol"?t:t+""}function vX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mX=e=>e.brush.height,Hn=se([zo,Fo,p7,mX,A2,O2,Dj,OK],(e,t,n,r,i,a,o,s)=>{var u=a.reduce((m,y)=>{var{orientation:v}=y;if(!y.mirror&&!y.hide){var b=typeof y.width=="number"?y.width:f0;return is(is({},m),{},{[v]:m[v]+b})}return m},{left:n.left||0,right:n.right||0}),c=i.reduce((m,y)=>{var{orientation:v}=y;return!y.mirror&&!y.hide?is(is({},m),{},{[v]:Es(m,"".concat(v))+y.height}):m},{top:n.top||0,bottom:n.bottom||0}),l=is(is({},c),u),d=l.bottom;l.bottom+=r,l=QY(l,o,s);var h=e-l.left-l.right,g=t-l.top-l.bottom;return is(is({brushBottom:d},l),{},{width:Math.max(h,0),height:Math.max(g,0)})}),yX=se(Hn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),g7=se(zo,Fo,(e,t)=>({x:0,y:0,width:e,height:t})),bX=M.createContext(null),Un=()=>M.useContext(bX)!=null,d0=e=>e.brush,h0=se([d0,Hn,p7],(e,t,n)=>({height:e.height,x:Me(e.x)?e.x:t.left,y:Me(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Me(e.width)?e.width:t.width})),p0=()=>{var e,t=Un(),n=ke(yX),r=ke(h0),i=(e=ke(d0))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},wX={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},v7=()=>{var e;return(e=ke(Hn))!==null&&e!==void 0?e:wX},C2=()=>ke(zo),j2=()=>ke(Fo),xX={top:0,right:0,bottom:0,left:0},_X=()=>{var e;return(e=ke(t=>t.layout.margin))!==null&&e!==void 0?e:xX},It=e=>e.layout.layoutType,Zd=()=>ke(It),EX={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},m7=ea({name:"legend",initialState:EX,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(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=Co(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:pP,setLegendSettings:SX,addLegendPayload:y7,removeLegendPayload:b7}=m7.actions,AX=m7.reducer,OX=["contextPayload"];function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kw.apply(null,arguments)}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){M2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M2(e,t,n){return(t=TX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TX(e){var t=PX(e,"string");return typeof t=="symbol"?t:t+""}function PX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CX(e,t){if(e==null)return{};var n,r,i=jX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function MX(e){return e.value}function kX(e){var{contextPayload:t}=e,n=CX(e,OX),r=jj(t,e.payloadUniqBy,MX),i=Qc(Qc({},n),{},{payload:r});return B.isValidElement(e.content)?B.cloneElement(e.content,i):typeof e.content=="function"?B.createElement(e.content,i):B.createElement(d2,i)}function RX(e,t,n,r,i,a){var{layout:o,align:s,verticalAlign:u}=t,c,l;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&o==="vertical"?c={left:((r||0)-a.width)/2}:c=s==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(u==="middle"?l={top:((i||0)-a.height)/2}:l=u==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),Qc(Qc({},c),l)}function IX(e){var t=en();return M.useEffect(()=>{t(SX(e))},[t,e]),null}function DX(e){var t=en();return M.useEffect(()=>(t(pP(e)),()=>{t(pP({width:0,height:0}))}),[t,e]),null}function NX(e){var t=CK(),n=PU(),r=_X(),{width:i,height:a,wrapperStyle:o,portal:s}=e,[u,c]=Nj([t]),l=C2(),d=j2(),h=l-(r.left||0)-(r.right||0),g=Cs.getWidthOrHeight(e.layout,a,i,h),m=s?o:Qc(Qc({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},RX(o,e,r,l,d,u)),o),y=s??n;if(y==null)return null;var v=B.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:c},B.createElement(IX,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),B.createElement(DX,{width:u.width,height:u.height}),B.createElement(kX,Kw({},e,g,{margin:r,chartWidth:l,chartHeight:d,contextPayload:t})));return R_.createPortal(v,y)}class Cs extends M.PureComponent{static getWidthOrHeight(t,n,r,i){return t==="vertical"&&Me(n)?{height:n}:t==="horizontal"?{width:r||i}:null}render(){return B.createElement(NX,this.props)}}M2(Cs,"displayName","Legend");M2(Cs,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function Yw(){return Yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yw.apply(null,arguments)}function vP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vP(Object(n),!0).forEach(function(r){LX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LX(e,t,n){return(t=$X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $X(e){var t=BX(e,"string");return typeof t=="symbol"?t:t+""}function BX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zX(e){return Array.isArray(e)&&si(e[0])&&si(e[1])?e.join(" ~ "):e}var FX=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:a,formatter:o,itemSorter:s,wrapperClassName:u,labelClassName:c,label:l,labelFormatter:d,accessibilityLayer:h=!1}=e,g=()=>{if(a&&a.length){var A={padding:0,margin:0},O=(s?a0(a,s):a).map((P,j)=>{if(P.type==="none")return null;var $=P.formatter||o||zX,{value:z,name:I}=P,H=z,D=I;if($){var C=$(z,I,P,j,a);if(Array.isArray(C))[H,D]=C;else if(C!=null)H=C;else return null}var L=B1({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},r);return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:L},si(D)?B.createElement("span",{className:"recharts-tooltip-item-name"},D):null,si(D)?B.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,B.createElement("span",{className:"recharts-tooltip-item-value"},H),B.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return B.createElement("ul",{className:"recharts-tooltip-item-list",style:A},O)}return null},m=B1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),y=B1({margin:0},i),v=!Rt(l),b=v?l:"",_=Ot("recharts-default-tooltip",u),E=Ot("recharts-tooltip-label",c);v&&d&&a!==void 0&&a!==null&&(b=d(l,a));var S=h?{role:"status","aria-live":"assertive"}:{};return B.createElement("div",Yw({className:_,style:m},S),B.createElement("p",{className:E,style:y},B.isValidElement(b)?b:"".concat(b)),g())},gf="recharts-tooltip-wrapper",WX={visibility:"hidden"};function qX(e){var{coordinate:t,translateX:n,translateY:r}=e;return Ot(gf,{["".concat(gf,"-right")]:Me(n)&&t&&Me(t.x)&&n>=t.x,["".concat(gf,"-left")]:Me(n)&&t&&Me(t.x)&&n<t.x,["".concat(gf,"-bottom")]:Me(r)&&t&&Me(t.y)&&r>=t.y,["".concat(gf,"-top")]:Me(r)&&t&&Me(t.y)&&r<t.y})}function mP(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:u,viewBoxDimension:c}=e;if(a&&Me(a[r]))return a[r];var l=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?l:d;var h=u[r];if(h==null)return 0;if(o[r]){var g=l,m=h;return g<m?Math.max(d,h):Math.max(l,h)}if(c==null)return 0;var y=d+s,v=h+c;return y>v?Math.max(l,h):Math.max(d,h)}function VX(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function HX(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:s,viewBox:u}=e,c,l,d;return o.height>0&&o.width>0&&n?(l=mP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),d=mP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=VX({translateX:l,translateY:d,useTranslate3d:s})):c=WX,{cssProperties:c,cssClasses:qX({translateX:l,translateY:d,coordinate:n})}}function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){Xw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xw(e,t,n){return(t=UX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UX(e){var t=GX(e,"string");return typeof t=="symbol"?t:t+""}function GX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class KX extends M.PureComponent{constructor(){super(...arguments),Xw(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Xw(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:a,coordinate:o,hasPayload:s,isAnimationActive:u,offset:c,position:l,reverseDirection:d,useTranslate3d:h,viewBox:g,wrapperStyle:m,lastBoundingBox:y,innerRef:v,hasPortalFromProps:b}=this.props,{cssClasses:_,cssProperties:E}=HX({allowEscapeViewBox:n,coordinate:o,offsetTopLeft:c,position:l,reverseDirection:d,tooltipBox:{height:y.height,width:y.width},useTranslate3d:h,viewBox:g}),S=b?{}:xp(xp({transition:u&&t?"transform ".concat(r,"ms ").concat(i):void 0},E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),A=xp(xp({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},m);return B.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:_,style:A,ref:v},a)}}var YX=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Wo={isSsr:YX()},w7=()=>ke(e=>e.rootProps.accessibilityLayer);function lr(e){return Number.isFinite(e)}function el(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(null,arguments)}function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){XX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XX(e,t,n){return(t=ZX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZX(e){var t=JX(e,"string");return typeof t=="symbol"?t:t+""}function JX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xP={curveBasisClosed:J8,curveBasisOpen:ej,curveBasis:X8,curveBumpX:Q_,curveBumpY:e2,curveLinearClosed:oj,curveLinear:Sl,curveMonotoneX:cj,curveMonotoneY:lj,curveNatural:dj,curveStep:hj,curveStepAfter:gj,curveStepBefore:pj},_p=e=>lr(e.x)&&lr(e.y),vf=e=>e.x,mf=e=>e.y,QX=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(Hd(e));return(n==="curveMonotone"||n==="curveBump")&&t?xP["".concat(n).concat(t==="vertical"?"Y":"X")]:xP[n]||Sl},eZ=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:a=!1}=e,o=QX(t,i),s=a?n.filter(_p):n,u;if(Array.isArray(r)){var c=a?r.filter(d=>_p(d)):r,l=s.map((d,h)=>wP(wP({},d),{},{base:c[h]}));return i==="vertical"?u=Rc().y(mf).x1(vf).x0(d=>d.base.x):u=Rc().x(vf).y1(mf).y0(d=>d.base.y),u.defined(_p).curve(o),u(l)}return i==="vertical"&&Me(r)?u=Rc().y(mf).x1(vf).x0(r):Me(r)?u=Rc().x(vf).y1(mf).y0(r):u=e0().x(vf).y(mf),u.defined(_p).curve(o),u(s)},pu=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var a=n&&n.length?eZ(e):r;return B.createElement("path",Zw({},it(e,!1),G_(e),{className:Ot("recharts-curve",t),d:a===null?void 0:a,ref:i}))},tZ=["x","y","top","left","width","height","className"];function Jw(){return Jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jw.apply(null,arguments)}function _P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(n),!0).forEach(function(r){rZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rZ(e,t,n){return(t=iZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iZ(e){var t=aZ(e,"string");return typeof t=="symbol"?t:t+""}function aZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oZ(e,t){if(e==null)return{};var n,r,i=sZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var uZ=(e,t,n,r,i,a)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n),cZ=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:o=0,className:s}=e,u=oZ(e,tZ),c=nZ({x:t,y:n,top:r,left:i,width:a,height:o},u);return!Me(t)||!Me(n)||!Me(a)||!Me(o)||!Me(r)||!Me(i)?null:B.createElement("path",Jw({},it(c,!0),{className:Ot("recharts-cross",s),d:uZ(t,n,a,o,r,i)}))};function lZ(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){dZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dZ(e,t,n){return(t=hZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hZ(e){var t=pZ(e,"string");return typeof t=="symbol"?t:t+""}function pZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function li(e,t){var n=fZ({},e),r=t,i=Object.keys(t),a=i.reduce((o,s)=>(o[s]===void 0&&r[s]!==void 0&&(o[s]=r[s]),o),n);return a}var z1={},F1={},W1={},SP;function gZ(){return SP||(SP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(!n||typeof n!="object")return!1;const r=Object.getPrototypeOf(n);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(n)==="[object Object]":!1}e.isPlainObject=t}(W1)),W1}var AP;function vZ(){return AP||(AP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gZ(),n=Tj(),r=v2(),i=m2(),a=p2();function o(c,l,d){return s(c,l,void 0,void 0,void 0,void 0,d)}function s(c,l,d,h,g,m,y){const v=y(c,l,d,h,g,m);if(v!==void 0)return v;if(typeof c==typeof l)switch(typeof c){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return c===l;case"number":return c===l||Object.is(c,l);case"function":return c===l;case"object":return u(c,l,m,y)}return u(c,l,m,y)}function u(c,l,d,h){if(Object.is(c,l))return!0;let g=r.getTag(c),m=r.getTag(l);if(g===i.argumentsTag&&(g=i.objectTag),m===i.argumentsTag&&(m=i.objectTag),g!==m)return!1;switch(g){case i.stringTag:return c.toString()===l.toString();case i.numberTag:{const b=c.valueOf(),_=l.valueOf();return a.eq(b,_)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(c.valueOf(),l.valueOf());case i.regexpTag:return c.source===l.source&&c.flags===l.flags;case i.functionTag:return c===l}d=d??new Map;const y=d.get(c),v=d.get(l);if(y!=null&&v!=null)return y===l;d.set(c,l),d.set(l,c);try{switch(g){case i.mapTag:{if(c.size!==l.size)return!1;for(const[b,_]of c.entries())if(!l.has(b)||!s(_,l.get(b),b,c,l,d,h))return!1;return!0}case i.setTag:{if(c.size!==l.size)return!1;const b=Array.from(c.values()),_=Array.from(l.values());for(let E=0;E<b.length;E++){const S=b[E],A=_.findIndex(O=>s(S,O,void 0,c,l,d,h));if(A===-1)return!1;_.splice(A,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(c)!==Buffer.isBuffer(l)||c.length!==l.length)return!1;for(let b=0;b<c.length;b++)if(!s(c[b],l[b],b,c,l,d,h))return!1;return!0}case i.arrayBufferTag:return c.byteLength!==l.byteLength?!1:u(new Uint8Array(c),new Uint8Array(l),d,h);case i.dataViewTag:return c.byteLength!==l.byteLength||c.byteOffset!==l.byteOffset?!1:u(new Uint8Array(c),new Uint8Array(l),d,h);case i.errorTag:return c.name===l.name&&c.message===l.message;case i.objectTag:{if(!(u(c.constructor,l.constructor,d,h)||t.isPlainObject(c)&&t.isPlainObject(l)))return!1;const _=[...Object.keys(c),...n.getSymbols(c)],E=[...Object.keys(l),...n.getSymbols(l)];if(_.length!==E.length)return!1;for(let S=0;S<_.length;S++){const A=_[S],O=c[A];if(!Object.hasOwn(l,A))return!1;const P=l[A];if(!s(O,P,A,c,l,d,h))return!1}return!0}default:return!1}}finally{d.delete(c),d.delete(l)}}e.isEqualWith=o}(F1)),F1}var q1={},OP;function mZ(){return OP||(OP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t}(q1)),q1}var TP;function yZ(){return TP||(TP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vZ(),n=mZ();function r(i,a){return t.isEqualWith(i,a,n.noop)}e.isEqual=r}(z1)),z1}var V1,PP;function bZ(){return PP||(PP=1,V1=yZ().isEqual),V1}var wZ=bZ();const xZ=Va(wZ);function _Z(e){var t={},n=()=>null,r=!1,i=null,a=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var s=o,[u,...c]=s;if(typeof u=="number"){i=e.setTimeout(a.bind(null,c),u);return}a(u),i=e.setTimeout(a.bind(null,c));return}typeof o=="object"&&(t=o,n(t)),typeof o=="function"&&o()}};return{stop:()=>{r=!0},start:o=>{r=!1,i&&(i(),i=null),a(o)},subscribe:o=>(n=o,()=>{n=()=>null}),getTimeoutController:()=>e}}var kg=1e-4,x7=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],_7=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),CP=(e,t)=>n=>{var r=x7(e,t);return _7(r,n)},EZ=(e,t)=>n=>{var r=x7(e,t),i=[...r.map((a,o)=>a*o).slice(1),0];return _7(i,n)},jP=function(){for(var t,n,r,i,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];if(o.length===1)switch(o[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var u=o[0].split("(");u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4&&([t,r,n,i]=u[1].split(")")[0].split(",").map(m=>parseFloat(m)))}}else o.length===4&&([t,r,n,i]=o);var c=CP(t,n),l=CP(r,i),d=EZ(t,n),h=m=>m>1?1:m<0?0:m,g=m=>{for(var y=m>1?1:m,v=y,b=0;b<8;++b){var _=c(v)-y,E=d(v);if(Math.abs(_-y)<kg||E<kg)return l(v);v=h(v-_/E)}return l(v)};return g.isStepper=!1,g},SZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,a=(o,s,u)=>{var c=-(o-s)*n,l=u*r,d=u+(c-l)*i/1e3,h=u*i/1e3+o;return Math.abs(h-s)<kg&&Math.abs(d)<kg?[s,0]:[h,d]};return a.isStepper=!0,a.dt=i,a},AZ=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return jP(e);case"spring":return SZ();default:if(e.split("(")[0]==="cubic-bezier")return jP(e)}return typeof e=="function"?e:null};function MP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(r){OZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OZ(e,t,n){return(t=TZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=PZ(e,"string");return typeof t=="symbol"?t:t+""}function PZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CZ=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),jZ=(e,t,n)=>e.map(r=>"".concat(CZ(r)," ").concat(t,"ms ").concat(n)).join(","),MZ=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),gd=(e,t)=>Object.keys(t).reduce((n,r)=>kP(kP({},n),{},{[r]:e(r,t[r])}),{});function RP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(n),!0).forEach(function(r){kZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kZ(e,t,n){return(t=RZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RZ(e){var t=IZ(e,"string");return typeof t=="symbol"?t:t+""}function IZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rg=(e,t,n)=>e+(t-e)*n,Qw=e=>{var{from:t,to:n}=e;return t!==n},E7=(e,t,n)=>{var r=gd((i,a)=>{if(Qw(a)){var[o,s]=e(a.from,a.to,a.velocity);return sr(sr({},a),{},{from:o,velocity:s})}return a},t);return n<1?gd((i,a)=>Qw(a)?sr(sr({},a),{},{velocity:Rg(a.velocity,r[i].velocity,n),from:Rg(a.from,r[i].from,n)}):a,t):E7(e,r,n-1)};function DZ(e,t,n,r,i,a){var o,s=r.reduce((h,g)=>sr(sr({},h),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),u=()=>gd((h,g)=>g.from,s),c=()=>!Object.values(s).filter(Qw).length,l=null,d=h=>{o||(o=h);var g=h-o,m=g/n.dt;s=E7(n,s,m),i(sr(sr(sr({},e),t),u())),o=h,c()||(l=a.setTimeout(d))};return()=>(l=a.setTimeout(d),()=>{l()})}function NZ(e,t,n,r,i,a,o){var s=null,u=i.reduce((d,h)=>sr(sr({},d),{},{[h]:[e[h],t[h]]}),{}),c,l=d=>{c||(c=d);var h=(d-c)/r,g=gd((y,v)=>Rg(...v,n(h)),u);if(a(sr(sr(sr({},e),t),g)),h<1)s=o.setTimeout(l);else{var m=gd((y,v)=>Rg(...v,n(1)),u);a(sr(sr(sr({},e),t),m))}};return()=>(s=o.setTimeout(l),()=>{s()})}const LZ=(e,t,n,r,i,a)=>{var o=MZ(e,t);return n.isStepper===!0?DZ(e,t,n,o,i,a):NZ(e,t,n,r,o,i,a)};class $Z{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,a=o=>{o-r>=n?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}var BZ=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ex.apply(null,arguments)}function zZ(e,t){if(e==null)return{};var n,r,i=FZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function FZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){iu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iu(e,t,n){return(t=WZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WZ(e){var t=qZ(e,"string");return typeof t=="symbol"?t:t+""}function qZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VZ(){return _Z(new $Z)}class k2 extends M.PureComponent{constructor(t,n){super(t,n),iu(this,"mounted",!1),iu(this,"manager",null),iu(this,"stopJSAnimation",null),iu(this,"unSubscribe",null);var{isActive:r,attributeName:i,from:a,to:o,children:s,duration:u,animationManager:c}=this.props;if(this.manager=c,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!r||u<=0){this.state={style:{}},typeof s=="function"&&(this.state={style:o});return}if(a){if(typeof s=="function"){this.state={style:a};return}this.state={style:i?{[i]:a}:a}}else this.state={style:{}}}componentDidMount(){var{isActive:t,canBegin:n}=this.props;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}componentDidUpdate(t){var{isActive:n,canBegin:r,attributeName:i,shouldReAnimate:a,to:o,from:s}=this.props,{style:u}=this.state;if(r){if(!n){var c={style:i?{[i]:o}:o};this.state&&u&&(i&&u[i]!==o||!i&&u!==o)&&this.setState(c);return}if(!(xZ(t.to,o)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=l||a?s:t.to;if(this.state&&u){var h={style:i?{[i]:d}:d};(i&&u[i]!==d||!i&&u!==d)&&this.setState(h)}this.runAnimation(as(as({},this.props),{},{from:d,begin:0}))}}}componentWillUnmount(){this.mounted=!1;var{onAnimationEnd:t}=this.props;this.unSubscribe&&this.unSubscribe(),this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}handleStyleChange(t){this.changeStyle(t)}changeStyle(t){this.mounted&&this.setState({style:t})}runJSAnimation(t){var{from:n,to:r,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:u}=t,c=LZ(n,r,AZ(a),i,this.changeStyle,this.manager.getTimeoutController()),l=()=>{this.stopJSAnimation=c()};this.manager.start([u,o,l,i,s])}runAnimation(t){var{begin:n,duration:r,attributeName:i,to:a,easing:o,onAnimationStart:s,onAnimationEnd:u,children:c}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof o=="function"||typeof c=="function"||o==="spring"){this.runJSAnimation(t);return}var l=i?{[i]:a}:a,d=jZ(Object.keys(l),r,o);this.manager.start([s,n,as(as({},l),{},{transition:d}),r,u])}render(){var t=this.props,{children:n,begin:r,duration:i,attributeName:a,easing:o,isActive:s,from:u,to:c,canBegin:l,onAnimationEnd:d,shouldReAnimate:h,onAnimationReStart:g,animationManager:m}=t,y=zZ(t,BZ),v=M.Children.count(n),b=this.state.style;if(typeof n=="function")return n(b);if(!s||v===0||i<=0)return n;var _=E=>{var{style:S={},className:A}=E.props,O=M.cloneElement(E,as(as({},y),{},{style:as(as({},S),b),className:A}));return O};return v===1?_(M.Children.only(n)):B.createElement("div",null,M.Children.map(n,E=>_(E)))}}iu(k2,"displayName","Animate");iu(k2,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});var HZ=M.createContext(null);function Na(e){var t,n,r=M.useContext(HZ);return B.createElement(k2,ex({},e,{animationManager:(t=(n=e.animationManager)!==null&&n!==void 0?n:r)!==null&&t!==void 0?t:VZ()}))}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ig.apply(null,arguments)}var DP=(e,t,n,r,i)=>{var a=Math.min(Math.abs(n)/2,Math.abs(r)/2),o=r>=0?1:-1,s=n>=0?1:-1,u=r>=0&&n>=0||r<0&&n<0?1:0,c;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],d=0,h=4;d<h;d++)l[d]=i[d]>a?a:i[d];c="M".concat(e,",").concat(t+o*l[0]),l[0]>0&&(c+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(u,",").concat(e+s*l[0],",").concat(t)),c+="L ".concat(e+n-s*l[1],",").concat(t),l[1]>0&&(c+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,`,
51
51
  `).concat(e+n,",").concat(t+o*l[1])),c+="L ".concat(e+n,",").concat(t+r-o*l[2]),l[2]>0&&(c+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(u,`,
52
52
  `).concat(e+n-s*l[2],",").concat(t+r)),c+="L ".concat(e+s*l[3],",").concat(t+r),l[3]>0&&(c+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,`,
53
53
  `).concat(e,",").concat(t+r-o*l[3])),c+="Z"}else if(a>0&&i===+i&&i>0){var g=Math.min(a,i);c="M ".concat(e,",").concat(t+o*g,`
@@ -57,7 +57,7 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
57
57
  L `).concat(e+n,",").concat(t+r-o*g,`
58
58
  A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(e+n-s*g,",").concat(t+r,`
59
59
  L `).concat(e+s*g,",").concat(t+r,`
60
- A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(e,",").concat(t+r-o*g," Z")}else c="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return c},UZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},S7=e=>{var t=li(e,UZ),n=k.useRef(null),[r,i]=k.useState(-1);k.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&i(b)}catch{}},[]);var{x:a,y:o,width:s,height:u,radius:c,className:l}=t,{animationEasing:d,animationDuration:h,animationBegin:g,isAnimationActive:m,isUpdateAnimationActive:y}=t;if(a!==+a||o!==+o||s!==+s||u!==+u||s===0||u===0)return null;var v=Ot("recharts-rectangle",l);return y?B.createElement(Na,{canBegin:r>0,from:{width:s,height:u,x:a,y:o},to:{width:s,height:u,x:a,y:o},duration:h,animationEasing:d,isActive:y},b=>{var{width:_,height:E,x:S,y:A}=b;return B.createElement(Na,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:m,easing:d},B.createElement("path",Ig({},it(t,!0),{className:v,d:DP(S,A,_,E,c),ref:n})))}):B.createElement("path",Ig({},it(t,!0),{className:v,d:DP(a,o,s,u,c)}))};function A7(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,o=Nn(t,n,r,i),s=Nn(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tx.apply(null,arguments)}var GZ=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Ep=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:u}=e,c=s*(o?1:-1)+r,l=Math.asin(s/c)/Mg,d=u?i:i+a*l,h=Nn(t,n,c,d),g=Nn(t,n,r,d),m=u?i-a*l:i,y=Nn(t,n,c*Math.cos(l*Mg),m);return{center:h,circleTangency:g,lineTangency:y,theta:l}},O7=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o}=e,s=GZ(a,o),u=a+s,c=Nn(t,n,i,a),l=Nn(t,n,i,u),d="M ".concat(c.x,",").concat(c.y,`
60
+ A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(e,",").concat(t+r-o*g," Z")}else c="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return c},UZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},S7=e=>{var t=li(e,UZ),n=M.useRef(null),[r,i]=M.useState(-1);M.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&i(b)}catch{}},[]);var{x:a,y:o,width:s,height:u,radius:c,className:l}=t,{animationEasing:d,animationDuration:h,animationBegin:g,isAnimationActive:m,isUpdateAnimationActive:y}=t;if(a!==+a||o!==+o||s!==+s||u!==+u||s===0||u===0)return null;var v=Ot("recharts-rectangle",l);return y?B.createElement(Na,{canBegin:r>0,from:{width:s,height:u,x:a,y:o},to:{width:s,height:u,x:a,y:o},duration:h,animationEasing:d,isActive:y},b=>{var{width:_,height:E,x:S,y:A}=b;return B.createElement(Na,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,isActive:m,easing:d},B.createElement("path",Ig({},it(t,!0),{className:v,d:DP(S,A,_,E,c),ref:n})))}):B.createElement("path",Ig({},it(t,!0),{className:v,d:DP(a,o,s,u,c)}))};function A7(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,o=Nn(t,n,r,i),s=Nn(t,n,r,a);return{points:[o,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tx.apply(null,arguments)}var GZ=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Ep=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:u}=e,c=s*(o?1:-1)+r,l=Math.asin(s/c)/Mg,d=u?i:i+a*l,h=Nn(t,n,c,d),g=Nn(t,n,r,d),m=u?i-a*l:i,y=Nn(t,n,c*Math.cos(l*Mg),m);return{center:h,circleTangency:g,lineTangency:y,theta:l}},O7=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o}=e,s=GZ(a,o),u=a+s,c=Nn(t,n,i,a),l=Nn(t,n,i,u),d="M ".concat(c.x,",").concat(c.y,`
61
61
  A `).concat(i,",").concat(i,`,0,
62
62
  `).concat(+(Math.abs(s)>180),",").concat(+(a>u),`,
63
63
  `).concat(l.x,",").concat(l.y,`
@@ -74,13 +74,13 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
74
74
  `);if(r>0){var{circleTangency:E,lineTangency:S,theta:A}=Ep({cx:t,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:O,lineTangency:P,theta:j}=Ep({cx:t,cy:n,radius:r,angle:c,sign:-l,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),$=s?Math.abs(u-c):Math.abs(u-c)-A-j;if($<0&&a===0)return"".concat(_,"L").concat(t,",").concat(n,"Z");_+="L".concat(P.x,",").concat(P.y,`
75
75
  A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,`
76
76
  A`).concat(r,",").concat(r,",0,").concat(+($>180),",").concat(+(l>0),",").concat(E.x,",").concat(E.y,`
77
- A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else _+="L".concat(t,",").concat(n,"Z");return _},YZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Dg=e=>{var t=li(e,YZ),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l,className:d}=t;if(a<i||c===l)return null;var h=Ot("recharts-sector",d),g=a-i,m=zr(o,g,0,!0),y;return m>0&&Math.abs(c-l)<360?y=KZ({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l}):y=O7({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),B.createElement("path",tx({},it(t,!0),{className:h,d:y}))};function XZ(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:u,innerRadius:c,outerRadius:l,angle:d}=t,h=Nn(s,u,c,d),g=Nn(s,u,l,d);r=h.x,i=h.y,a=g.x,o=g.y}else return A7(t);return[{x:r,y:i},{x:a,y:o}]}var H1={},U1={},G1={},NP;function ZZ(){return NP||(NP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rj();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(G1)),G1}var LP;function JZ(){return LP||(LP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZZ();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(U1)),U1}var $P;function QZ(){return $P||($P=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ij(),n=JZ();function r(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),o=o===void 0?i<a?1:-1:n.toFinite(o);const s=Math.max(Math.ceil((a-i)/(o||1)),0),u=new Array(s);for(let c=0;c<s;c++)u[c]=i,i+=o;return u}e.range=r}(H1)),H1}var K1,BP;function eJ(){return BP||(BP=1,K1=QZ().range),K1}var tJ=eJ();const T7=Va(tJ);function _n(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function P7(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function g0(e){let t,n,r;e.length!==2?(t=_n,n=(s,u)=>_n(e(s),u),r=(s,u)=>e(s)-u):(t=e===_n||e===P7?e:nJ,n=e,r=e);function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<0?c=d+1:l=d}while(c<l)}return c}function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<=0?c=d+1:l=d}while(c<l)}return c}function o(s,u,c=0,l=s.length){const d=i(s,u,c,l-1);return d>c&&r(s[d-1],u)>-r(s[d],u)?d-1:d}return{left:i,center:o,right:a}}function nJ(){return 0}function Ng(e){return e===null?NaN:+e}function*rJ(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const C7=g0(_n),Os=C7.right,iJ=C7.left,aJ=g0(Ng).center;function oJ(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=R2(t),i=e.slice();return r(e,i,0,n,1),r(i,e,0,n,1),r(e,i,0,n,1),e}const j7=M7(R2),sJ=M7(uJ);function M7(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:a,height:o}=t;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((o=Math.floor(o!==void 0?o:i.length/a))>=0))throw new RangeError("invalid height");if(!a||!o||!n&&!r)return t;const s=n&&e(n),u=r&&e(r),c=i.slice();return s&&u?(pc(s,c,i,a,o),pc(s,i,c,a,o),pc(s,c,i,a,o),gc(u,i,c,a,o),gc(u,c,i,a,o),gc(u,i,c,a,o)):s?(pc(s,i,c,a,o),pc(s,c,i,a,o),pc(s,i,c,a,o)):u&&(gc(u,i,c,a,o),gc(u,c,i,a,o),gc(u,i,c,a,o)),t}}function pc(e,t,n,r,i){for(let a=0,o=r*i;a<o;)e(t,n,a,a+=r,1)}function gc(e,t,n,r,i){for(let a=0,o=r*i;a<r;++a)e(t,n,a,a+o,r)}function uJ(e){const t=R2(e);return(n,r,i,a,o)=>{i<<=2,a<<=2,o<<=2,t(n,r,i+0,a+0,o),t(n,r,i+1,a+1,o),t(n,r,i+2,a+2,o),t(n,r,i+3,a+3,o)}}function R2(e){const t=Math.floor(e);if(t===e)return cJ(e);const n=e-t,r=2*e+1;return(i,a,o,s,u)=>{if(!((s-=u)>=o))return;let c=t*a[o];const l=u*t,d=l+u;for(let h=o,g=o+l;h<g;h+=u)c+=a[Math.min(s,h)];for(let h=o,g=s;h<=g;h+=u)c+=a[Math.min(s,h+l)],i[h]=(c+n*(a[Math.max(o,h-d)]+a[Math.min(s,h+d)]))/r,c-=a[Math.max(o,h-l)]}}function cJ(e){const t=2*e+1;return(n,r,i,a,o)=>{if(!((a-=o)>=i))return;let s=e*r[i];const u=o*e;for(let c=i,l=i+u;c<l;c+=o)s+=r[Math.min(a,c)];for(let c=i,l=a;c<=l;c+=o)s+=r[Math.min(a,c+u)],n[c]=s/t,s-=r[Math.max(i,c-u)]}}function v0(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function lJ(e){return e.length|0}function fJ(e){return!(e>0)}function dJ(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function hJ(e){return t=>e(...t)}function pJ(...e){const t=typeof e[e.length-1]=="function"&&hJ(e.pop());e=e.map(dJ);const n=e.map(lJ),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(fJ))return a;for(;;){a.push(i.map((s,u)=>e[u][s]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function gJ(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?i=>n+=+i||0:i=>n+=+t(i,r++,e)||0)}function k7(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function R7(e,t){const n=k7(e,t);return n&&Math.sqrt(n)}function ed(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Vn{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function vJ(e,t){const n=new Vn;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function mJ(e,t){const n=new Vn;let r=-1;return Float64Array.from(e,t===void 0?i=>n.add(+i||0):i=>n.add(+t(i,++r,e)||0))}class vd extends Map{constructor(t,n=N7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(nx(this,t))}has(t){return super.has(nx(this,t))}set(t,n){return super.set(I7(this,t),n)}delete(t){return super.delete(D7(this,t))}}class Au extends Set{constructor(t,n=N7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(nx(this,t))}add(t){return super.add(I7(this,t))}delete(t){return super.delete(D7(this,t))}}function nx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function I7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function D7({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function N7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tl(e){return e}function L7(e,...t){return Ol(e,tl,tl,t)}function $7(e,...t){return Ol(e,Array.from,tl,t)}function B7(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(i=>i.pop().map(([a,o])=>[...i,a,o]));return e}function yJ(e,...t){return B7($7(e,...t),t)}function bJ(e,t,...n){return B7(F7(e,t,...n),n)}function z7(e,t,...n){return Ol(e,tl,t,n)}function F7(e,t,...n){return Ol(e,Array.from,t,n)}function wJ(e,...t){return Ol(e,tl,W7,t)}function xJ(e,...t){return Ol(e,Array.from,W7,t)}function W7(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function Ol(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new vd,u=r[o++];let c=-1;for(const l of a){const d=u(l,++c,a),h=s.get(d);h?h.push(l):s.set(d,[l])}for(const[l,d]of s)s.set(l,i(d,o));return t(s)}(e,0)}function q7(e,t){return Array.from(t,n=>e[n])}function rx(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=nl(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>nl(n[i],n[a]))),q7(e,r)}return e.sort(I2(n))}function I2(e=_n){if(e===_n)return nl;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function nl(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function _J(e,t,n){return(t.length!==2?rx(z7(e,t,n),([r,i],[a,o])=>_n(i,o)||_n(r,a)):rx(L7(e,n),([r,i],[a,o])=>t(i,o)||_n(r,a))).map(([r])=>r)}var EJ=Array.prototype,SJ=EJ.slice;function Y1(e){return()=>e}const AJ=Math.sqrt(50),OJ=Math.sqrt(10),TJ=Math.sqrt(2);function Lg(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=AJ?10:a>=OJ?5:a>=TJ?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?Lg(e,t,n*2):[s,u,c]}function Ou(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Lg(t,e,n):Lg(e,t,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function Tu(e,t,n){return t=+t,e=+e,n=+n,Lg(e,t,n)[2]}function $g(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Tu(t,e,n):Tu(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function D2(e,t,n){let r;for(;;){const i=Tu(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function N2(e){return Math.max(1,Math.ceil(Math.log(v0(e))/Math.LN2)+1)}function zP(){var e=tl,t=ed,n=N2;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,u,c=new Array(o);for(a=0;a<o;++a)c[a]=e(i[a],a,i);var l=t(c),d=l[0],h=l[1],g=n(c,d,h);if(!Array.isArray(g)){const E=h,S=+g;if(t===ed&&([d,h]=D2(d,h,S)),g=Ou(d,h,S),g[0]<=d&&(u=Tu(d,h,S)),g[g.length-1]>=h)if(E>=h&&t===ed){const A=Tu(d,h,S);isFinite(A)&&(A>0?h=(Math.floor(h/A)+1)*A:A<0&&(h=(Math.ceil(h*-A)+1)/-A))}else g.pop()}for(var m=g.length,y=0,v=m;g[y]<=d;)++y;for(;g[v-1]>h;)--v;(y||v<m)&&(g=g.slice(y,v),m=v-y);var b=new Array(m+1),_;for(a=0;a<=m;++a)_=b[a]=[],_.x0=a>0?g[a-1]:d,_.x1=a<m?g[a]:h;if(isFinite(u)){if(u>0)for(a=0;a<o;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Math.min(m,Math.floor((s-d)/u))].push(i[a]);else if(u<0){for(a=0;a<o;++a)if((s=c[a])!=null&&d<=s&&s<=h){const E=Math.floor((d-s)*u);b[Math.min(m,E+(g[E]<=s))].push(i[a])}}}else for(a=0;a<o;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Os(g,s,0,m)].push(i[a]);return b}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:Y1(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:Y1([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:Y1(Array.isArray(i)?SJ.call(i):i),r):n},r}function md(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function L2(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Bg(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $2(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function m0(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?nl:I2(i);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,l=Math.log(u),d=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*d*(u-d)/u)*(c-u/2<0?-1:1),g=Math.max(n,Math.floor(t-c*d/u+h)),m=Math.min(r,Math.floor(t+(u-c)*d/u+h));m0(e,t,g,m,i)}const a=e[t];let o=n,s=r;for(yf(e,n,t),i(e[r],a)>0&&yf(e,n,r);o<s;){for(yf(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?yf(e,n,s):(++s,yf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function yf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function V7(e,t=_n){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?_n(o,i)>0:_n(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)>0:t(i,i)===0)&&(n=i,r=!0);return n}function yd(e,t,n){if(e=Float64Array.from(rJ(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Bg(e);if(t>=1)return md(e);var r,i=(r-1)*t,a=Math.floor(i),o=md(m0(e,a).subarray(0,a+1)),s=Bg(e.subarray(a+1));return o+(s-o)*(i-a)}}function H7(e,t,n=Ng){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function U7(e,t,n=Ng){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(s,u)=>Ng(n(e[u],u,e))),t<=0)return $2(r);if(t>=1)return L2(r);var r,i=Uint32Array.from(e,(s,u)=>u),a=r.length-1,o=Math.floor(a*t);return m0(i,o,0,a,(s,u)=>nl(r[s],r[u])),o=V7(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function PJ(e,t,n){const r=v0(e),i=yd(e,.75)-yd(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function CJ(e,t,n){const r=v0(e),i=R7(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function jJ(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function MJ(e,t){return yd(e,.5,t)}function kJ(e,t){return U7(e,.5,t)}function*RJ(e){for(const t of e)yield*t}function B2(e){return Array.from(RJ(e))}function IJ(e,t){const n=new vd;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function DJ(e,t=NJ){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function NJ(e,t){return[e,t]}function vs(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function LJ(e,t=_n){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let n=Array.from(e);const r=new Float64Array(n.length);t.length!==2&&(n=n.map(t),t=_n);const i=(s,u)=>t(n[s],n[u]);let a,o;return e=Uint32Array.from(n,(s,u)=>u),e.sort(t===_n?(s,u)=>nl(n[s],n[u]):I2(i)),e.forEach((s,u)=>{const c=i(s,a===void 0?s:a);c>=0?((a===void 0||c>0)&&(a=s,o=u),r[s]=o):r[s]=NaN}),r}function $J(e,t=_n){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?_n(o,i)<0:_n(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)<0:t(i,i)===0)&&(n=i,r=!0);return n}function G7(e,t=_n){if(t.length===1)return $2(e,t);let n,r=-1,i=-1;for(const a of e)++i,(r<0?t(a,a)===0:t(a,n)<0)&&(n=a,r=i);return r}function BJ(e,t=_n){if(t.length===1)return L2(e,t);let n,r=-1,i=-1;for(const a of e)++i,(r<0?t(a,a)===0:t(a,n)>0)&&(n=a,r=i);return r}function zJ(e,t){const n=G7(e,t);return n<0?void 0:n}const FJ=K7(Math.random);function K7(e){return function(n,r=0,i=n.length){let a=i-(r=+r);for(;a;){const o=e()*a--|0,s=n[a+r];n[a+r]=n[o+r],n[o+r]=s}return n}}function WJ(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function Y7(e){if(!(a=e.length))return[];for(var t=-1,n=Bg(e,qJ),r=new Array(n);++t<n;)for(var i=-1,a,o=r[t]=new Array(a);++i<a;)o[i]=e[i][t];return r}function qJ(e){return e.length}function VJ(){return Y7(arguments)}function HJ(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function UJ(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function GJ(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function KJ(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}function YJ(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,a,o=-1;if(arguments.length<3){if({done:i,value:n}=r.next(),i)return;++o}for(;{done:i,value:a}=r.next(),!i;)n=t(n,a,++o,e);return n}function XJ(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function ZJ(e,...t){e=new Au(e);for(const n of t)for(const r of n)e.delete(r);return e}function JJ(e,t){const n=t[Symbol.iterator](),r=new Au;for(const i of e){if(r.has(i))return!1;let a,o;for(;({value:a,done:o}=n.next())&&!o;){if(Object.is(i,a))return!1;r.add(a)}}return!0}function QJ(e,...t){e=new Au(e),t=t.map(eQ);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function eQ(e){return e instanceof Au?e:new Au(e)}function X7(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){const a=FP(i);if(r.has(a))continue;let o,s;for(;{value:o,done:s}=n.next();){if(s)return!1;const u=FP(o);if(r.add(u),Object.is(a,u))break}}return!0}function FP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tQ(e,t){return X7(t,e)}function nQ(...e){const t=new Au;for(const n of e)for(const r of n)t.add(r);return t}function ta(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function qo(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 zg=Symbol("implicit");function y0(){var e=new vd,t=[],n=[],r=zg;function i(a){let o=e.get(a);if(o===void 0){if(r!==zg)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new vd;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return y0(t,n).unknown(r)},ta.apply(i,arguments),i}function b0(){var e=y0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function d(){var h=t().length,g=i<r,m=g?i:r,y=g?r:i;a=(y-m)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),m+=(y-m-a*(h-u))*l,o=a*(1-u),s&&(m=Math.round(m),o=Math.round(o));var v=vs(h).map(function(b){return m+a*b});return n(g?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),d()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),d()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(l=Math.max(0,Math.min(1,h)),d()):l},e.copy=function(){return b0(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(l)},ta.apply(d(),arguments)}function Z7(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Z7(t())},e}function J7(){return Z7(b0.apply(null,arguments).paddingInner(1))}function Tl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function js(){}var Pu=.7,rl=1/Pu,qc="\\s*([+-]?\\d+)\\s*",bd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ra="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rQ=/^#([0-9a-f]{3,8})$/,iQ=new RegExp(`^rgb\\(${qc},${qc},${qc}\\)$`),aQ=new RegExp(`^rgb\\(${Ra},${Ra},${Ra}\\)$`),oQ=new RegExp(`^rgba\\(${qc},${qc},${qc},${bd}\\)$`),sQ=new RegExp(`^rgba\\(${Ra},${Ra},${Ra},${bd}\\)$`),uQ=new RegExp(`^hsl\\(${bd},${Ra},${Ra}\\)$`),cQ=new RegExp(`^hsla\\(${bd},${Ra},${Ra},${bd}\\)$`),WP={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};Tl(js,Ts,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qP,formatHex:qP,formatHex8:lQ,formatHsl:fQ,formatRgb:VP,toString:VP});function qP(){return this.rgb().formatHex()}function lQ(){return this.rgb().formatHex8()}function fQ(){return Q7(this).formatHsl()}function VP(){return this.rgb().formatRgb()}function Ts(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?HP(t):n===3?new Zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sp(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=iQ.exec(e))?new Zn(t[1],t[2],t[3],1):(t=aQ.exec(e))?new Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=oQ.exec(e))?Sp(t[1],t[2],t[3],t[4]):(t=sQ.exec(e))?Sp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uQ.exec(e))?KP(t[1],t[2]/100,t[3]/100,1):(t=cQ.exec(e))?KP(t[1],t[2]/100,t[3]/100,t[4]):WP.hasOwnProperty(e)?HP(WP[e]):e==="transparent"?new Zn(NaN,NaN,NaN,0):null}function HP(e){return new Zn(e>>16&255,e>>8&255,e&255,1)}function Sp(e,t,n,r){return r<=0&&(e=t=n=NaN),new Zn(e,t,n,r)}function z2(e){return e instanceof js||(e=Ts(e)),e?(e=e.rgb(),new Zn(e.r,e.g,e.b,e.opacity)):new Zn}function il(e,t,n,r){return arguments.length===1?z2(e):new Zn(e,t,n,r??1)}function Zn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Tl(Zn,il,Jd(js,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pu:Math.pow(Pu,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zn(gu(this.r),gu(this.g),gu(this.b),Fg(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:UP,formatHex:UP,formatHex8:dQ,formatRgb:GP,toString:GP}));function UP(){return`#${au(this.r)}${au(this.g)}${au(this.b)}`}function dQ(){return`#${au(this.r)}${au(this.g)}${au(this.b)}${au((isNaN(this.opacity)?1:this.opacity)*255)}`}function GP(){const e=Fg(this.opacity);return`${e===1?"rgb(":"rgba("}${gu(this.r)}, ${gu(this.g)}, ${gu(this.b)}${e===1?")":`, ${e})`}`}function Fg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function au(e){return e=gu(e),(e<16?"0":"")+e.toString(16)}function KP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ha(e,t,n,r)}function Q7(e){if(e instanceof ha)return new ha(e.h,e.s,e.l,e.opacity);if(e instanceof js||(e=Ts(e)),!e)return new ha;if(e instanceof ha)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new ha(o,s,u,e.opacity)}function Wg(e,t,n,r){return arguments.length===1?Q7(e):new ha(e,t,n,r??1)}function ha(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Tl(ha,Wg,Jd(js,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new ha(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pu:Math.pow(Pu,e),new ha(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Zn(X1(e>=240?e-240:e+120,i,r),X1(e,i,r),X1(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ha(YP(this.h),Ap(this.s),Ap(this.l),Fg(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=Fg(this.opacity);return`${e===1?"hsl(":"hsla("}${YP(this.h)}, ${Ap(this.s)*100}%, ${Ap(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YP(e){return e=(e||0)%360,e<0?e+360:e}function Ap(e){return Math.max(0,Math.min(1,e||0))}function X1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const eM=Math.PI/180,tM=180/Math.PI,qg=18,nM=.96422,rM=1,iM=.82521,aM=4/29,Vc=6/29,oM=3*Vc*Vc,hQ=Vc*Vc*Vc;function sM(e){if(e instanceof va)return new va(e.l,e.a,e.b,e.opacity);if(e instanceof ja)return cM(e);e instanceof Zn||(e=z2(e));var t=eb(e.r),n=eb(e.g),r=eb(e.b),i=Z1((.2225045*t+.7168786*n+.0606169*r)/rM),a,o;return t===n&&n===r?a=o=i:(a=Z1((.4360747*t+.3850649*n+.1430804*r)/nM),o=Z1((.0139322*t+.0971045*n+.7141733*r)/iM)),new va(116*i-16,500*(a-i),200*(i-o),e.opacity)}function pQ(e,t){return new va(e,0,0,t??1)}function Vg(e,t,n,r){return arguments.length===1?sM(e):new va(e,t,n,r??1)}function va(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Tl(va,Vg,Jd(js,{brighter(e){return new va(this.l+qg*(e??1),this.a,this.b,this.opacity)},darker(e){return new va(this.l-qg*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nM*J1(t),e=rM*J1(e),n=iM*J1(n),new Zn(Q1(3.1338561*t-1.6168667*e-.4906146*n),Q1(-.9787684*t+1.9161415*e+.033454*n),Q1(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Z1(e){return e>hQ?Math.pow(e,1/3):e/oM+aM}function J1(e){return e>Vc?e*e*e:oM*(e-aM)}function Q1(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function eb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uM(e){if(e instanceof ja)return new ja(e.h,e.c,e.l,e.opacity);if(e instanceof va||(e=sM(e)),e.a===0&&e.b===0)return new ja(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tM;return new ja(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function gQ(e,t,n,r){return arguments.length===1?uM(e):new ja(n,t,e,r??1)}function Hg(e,t,n,r){return arguments.length===1?uM(e):new ja(e,t,n,r??1)}function ja(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function cM(e){if(isNaN(e.h))return new va(e.l,0,0,e.opacity);var t=e.h*eM;return new va(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Tl(ja,Hg,Jd(js,{brighter(e){return new ja(this.h,this.c,this.l+qg*(e??1),this.opacity)},darker(e){return new ja(this.h,this.c,this.l-qg*(e??1),this.opacity)},rgb(){return cM(this).rgb()}}));var lM=-.14861,F2=1.78277,W2=-.29227,w0=-.90649,wd=1.97294,XP=wd*w0,ZP=wd*F2,JP=F2*W2-w0*lM;function vQ(e){if(e instanceof vu)return new vu(e.h,e.s,e.l,e.opacity);e instanceof Zn||(e=z2(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(JP*r+XP*t-ZP*n)/(JP+XP-ZP),a=r-i,o=(wd*(n-i)-W2*a)/w0,s=Math.sqrt(o*o+a*a)/(wd*i*(1-i)),u=s?Math.atan2(o,a)*tM-120:NaN;return new vu(u<0?u+360:u,s,i,e.opacity)}function ya(e,t,n,r){return arguments.length===1?vQ(e):new vu(e,t,n,r??1)}function vu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Tl(vu,ya,Jd(js,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new vu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pu:Math.pow(Pu,e),new vu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*eM,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Zn(255*(t+n*(lM*r+F2*i)),255*(t+n*(W2*r+w0*i)),255*(t+n*(wd*r)),this.opacity)}}));function fM(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function dM(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return fM((n-r/t)*t,o,i,a,s)}}function hM(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],o=e[(r+1)%t],s=e[(r+2)%t];return fM((n-r/t)*t,i,a,o,s)}}const x0=e=>()=>e;function pM(e,t){return function(n){return e+n*t}}function mQ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function _0(e,t){var n=t-e;return n?pM(e,n>180||n<-180?n-360*Math.round(n/360):n):x0(isNaN(e)?t:e)}function yQ(e){return(e=+e)==1?Jn:function(t,n){return n-t?mQ(t,n,e):x0(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?pM(e,n):x0(isNaN(e)?t:e)}const xd=function e(t){var n=yQ(t);function r(i,a){var o=n((i=il(i)).r,(a=il(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Jn(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=c(l),i+""}}return r.gamma=e,r}(1);function gM(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=il(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=a(u),s+""}}}var vM=gM(dM),bQ=gM(hM);function q2(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function mM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wQ(e,t){return(mM(t)?q2:yM)(e,t)}function yM(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Ms(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function bM(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function wM(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ms(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var ix=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=new RegExp(ix.source,"g");function xQ(e){return function(){return e}}function _Q(e){return function(t){return e(t)+""}}function V2(e,t){var n=ix.lastIndex=tb.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=ix.exec(e))&&(i=tb.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Gi(r,i)})),n=tb.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?_Q(u[0].x):xQ(t):(t=u.length,function(c){for(var l=0,d;l<t;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}function Ms(e,t){var n=typeof t,r;return t==null||n==="boolean"?x0(t):(n==="number"?Gi:n==="string"?(r=Ts(t))?(t=r,xd):V2:t instanceof Ts?xd:t instanceof Date?bM:mM(t)?q2:Array.isArray(t)?yM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?wM:Gi)(e,t)}function EQ(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function SQ(e,t){var n=_0(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function E0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var QP=180/Math.PI,ax={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xM(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*QP,skewX:Math.atan(u)*QP,scaleX:o,scaleY:s}}var Op;function AQ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ax:xM(t.a,t.b,t.c,t.d,t.e,t.f)}function OQ(e){return e==null||(Op||(Op=document.createElementNS("http://www.w3.org/2000/svg","g")),Op.setAttribute("transform",e),!(e=Op.transform.baseVal.consolidate()))?ax:(e=e.matrix,xM(e.a,e.b,e.c,e.d,e.e,e.f))}function _M(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,l,d,h,g,m){if(c!==d||l!==h){var y=g.push("translate(",null,t,null,n);m.push({i:y-4,x:Gi(c,d)},{i:y-2,x:Gi(l,h)})}else(d||h)&&g.push("translate("+d+t+h+n)}function o(c,l,d,h){c!==l?(c-l>180?l+=360:l-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Gi(c,l)})):l&&d.push(i(d)+"rotate("+l+r)}function s(c,l,d,h){c!==l?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Gi(c,l)}):l&&d.push(i(d)+"skewX("+l+r)}function u(c,l,d,h,g,m){if(c!==d||l!==h){var y=g.push(i(g)+"scale(",null,",",null,")");m.push({i:y-4,x:Gi(c,d)},{i:y-2,x:Gi(l,h)})}else(d!==1||h!==1)&&g.push(i(g)+"scale("+d+","+h+")")}return function(c,l){var d=[],h=[];return c=e(c),l=e(l),a(c.translateX,c.translateY,l.translateX,l.translateY,d,h),o(c.rotate,l.rotate,d,h),s(c.skewX,l.skewX,d,h),u(c.scaleX,c.scaleY,l.scaleX,l.scaleY,d,h),c=l=null,function(g){for(var m=-1,y=h.length,v;++m<y;)d[(v=h[m]).i]=v.x(g);return d.join("")}}}var EM=_M(AQ,"px, ","px)","deg)"),SM=_M(OQ,", ",")",")"),TQ=1e-12;function e9(e){return((e=Math.exp(e))+1/e)/2}function PQ(e){return((e=Math.exp(e))-1/e)/2}function CQ(e){return((e=Math.exp(2*e))-1)/(e+1)}const AM=function e(t,n,r){function i(a,o){var s=a[0],u=a[1],c=a[2],l=o[0],d=o[1],h=o[2],g=l-s,m=d-u,y=g*g+m*m,v,b;if(y<TQ)b=Math.log(h/c)/t,v=function(P){return[s+P*g,u+P*m,c*Math.exp(t*P*b)]};else{var _=Math.sqrt(y),E=(h*h-c*c+r*y)/(2*c*n*_),S=(h*h-c*c-r*y)/(2*h*n*_),A=Math.log(Math.sqrt(E*E+1)-E),O=Math.log(Math.sqrt(S*S+1)-S);b=(O-A)/t,v=function(P){var j=P*b,$=e9(A),z=c/(n*_)*($*CQ(t*j+A)-PQ(A));return[s+z*g,u+z*m,c*$/e9(t*j+A)]}}return v.duration=b*1e3*t/Math.SQRT2,v}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,u=s*s;return e(o,s,u)},i}(Math.SQRT2,2,4);function OM(e){return function(t,n){var r=e((t=Wg(t)).h,(n=Wg(n)).h),i=Jn(t.s,n.s),a=Jn(t.l,n.l),o=Jn(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const jQ=OM(_0);var MQ=OM(Jn);function kQ(e,t){var n=Jn((e=Vg(e)).l,(t=Vg(t)).l),r=Jn(e.a,t.a),i=Jn(e.b,t.b),a=Jn(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function TM(e){return function(t,n){var r=e((t=Hg(t)).h,(n=Hg(n)).h),i=Jn(t.c,n.c),a=Jn(t.l,n.l),o=Jn(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const RQ=TM(_0);var IQ=TM(Jn);function PM(e){return function t(n){n=+n;function r(i,a){var o=e((i=ya(i)).h,(a=ya(a)).h),s=Jn(i.s,a.s),u=Jn(i.l,a.l),c=Jn(i.opacity,a.opacity);return function(l){return i.h=o(l),i.s=s(l),i.l=u(Math.pow(l,n)),i.opacity=c(l),i+""}}return r.gamma=t,r}(1)}const DQ=PM(_0);var S0=PM(Jn);function CM(e,t){t===void 0&&(t=e,e=Ms);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function NQ(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function LQ(e){return function(){return e}}function Ug(e){return+e}var t9=[0,1];function Br(e){return e}function ox(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:LQ(isNaN(t)?NaN:.5)}function $Q(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BQ(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=ox(i,r),a=n(o,a)):(r=ox(r,i),a=n(a,o)),function(s){return a(r(s))}}function zQ(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=ox(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=Os(e,s,1,r)-1;return a[u](i[u](s))}}function Qd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function A0(){var e=t9,t=t9,n=Ms,r,i,a,o=Br,s,u,c;function l(){var h=Math.min(e.length,t.length);return o!==Br&&(o=$Q(e[0],e[h-1])),s=h>2?zQ:BQ,u=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(r),t,n)))(r(o(h)))}return d.invert=function(h){return o(i((c||(c=s(t,e.map(r),Gi)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Ug),l()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),l()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=E0,l()},d.clamp=function(h){return arguments.length?(o=h?!0:Br,l()):o!==Br},d.interpolate=function(h){return arguments.length?(n=h,l()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,g){return r=h,i=g,l()}}function H2(){return A0()(Br,Br)}function FQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gg(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function al(e){return e=Gg(Math.abs(e)),e?e[1]:NaN}function WQ(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function qQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var VQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ol(e){if(!(t=VQ.exec(e)))throw new Error("invalid format: "+e);var t;return new O0({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]})}ol.prototype=O0.prototype;function O0(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+""}O0.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 HQ(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var jM;function UQ(e,t){var n=Gg(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(jM=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Gg(e,Math.max(0,t+a-1))[0]}function n9(e,t){var n=Gg(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const r9={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:FQ,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)=>n9(e*100,t),r:n9,s:UQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function i9(e){return e}var a9=Array.prototype.map,o9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function MM(e){var t=e.grouping===void 0||e.thousands===void 0?i9:WQ(a9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?i9:qQ(a9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ol(d);var h=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,b=d.width,_=d.comma,E=d.precision,S=d.trim,A=d.type;A==="n"?(_=!0,A="g"):r9[A]||(E===void 0&&(E=12),S=!0,A="g"),(v||h==="0"&&g==="=")&&(v=!0,h="0",g="=");var O=y==="$"?n:y==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",P=y==="$"?r:/[%p]/.test(A)?o:"",j=r9[A],$=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function z(I){var H=O,D=P,C,L,N;if(A==="c")D=j(I)+D,I="";else{I=+I;var V=I<0||1/I<0;if(I=isNaN(I)?u:j(Math.abs(I),E),S&&(I=HQ(I)),V&&+I==0&&m!=="+"&&(V=!1),H=(V?m==="("?m:s:m==="-"||m==="("?"":m)+H,D=(A==="s"?o9[8+jM/3]:"")+D+(V&&m==="("?")":""),$){for(C=-1,L=I.length;++C<L;)if(N=I.charCodeAt(C),48>N||N>57){D=(N===46?i+I.slice(C+1):I.slice(C))+D,I=I.slice(0,C);break}}}_&&!v&&(I=t(I,1/0));var Z=H.length+I.length+D.length,K=Z<b?new Array(b-Z+1).join(h):"";switch(_&&v&&(I=t(K+I,K.length?b-D.length:1/0),K=""),g){case"<":I=H+I+D+K;break;case"=":I=H+K+I+D;break;case"^":I=K.slice(0,Z=K.length>>1)+H+I+D+K.slice(Z);break;default:I=K+H+I+D;break}return a(I)}return z.toString=function(){return d+""},z}function l(d,h){var g=c((d=ol(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(al(h)/3)))*3,y=Math.pow(10,-m),v=o9[8+m/3];return function(b){return g(y*b)+v}}return{format:c,formatPrefix:l}}var Tp,T0,U2;kM({thousands:",",grouping:[3],currency:["$",""]});function kM(e){return Tp=MM(e),T0=Tp.format,U2=Tp.formatPrefix,Tp}function RM(e){return Math.max(0,-al(Math.abs(e)))}function IM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(al(t)/3)))*3-al(Math.abs(e)))}function DM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,al(t)-al(e))+1}function G2(e,t,n,r){var i=$g(e,t,n),a;switch(r=ol(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=IM(i,o))&&(r.precision=a),U2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=DM(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=RM(i))&&(r.precision=a-(r.type==="%")*2);break}}return T0(r)}function ks(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ou(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return G2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);l-- >0;){if(c=Tu(o,s,n),c===u)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function K2(){var e=H2();return e.copy=function(){return Qd(e,K2())},ta.apply(e,arguments),ks(e)}function Y2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Ug),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Y2(e).unknown(t)},e=arguments.length?Array.from(e,Ug):[0,1],ks(n)}function NM(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function s9(e){return Math.log(e)}function u9(e){return Math.exp(e)}function GQ(e){return-Math.log(-e)}function KQ(e){return-Math.exp(-e)}function YQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function XQ(e){return e===10?YQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ZQ(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 c9(e){return(t,n)=>-e(-t,n)}function X2(e){const t=e(s9,u9),n=t.domain;let r=10,i,a;function o(){return i=ZQ(r),a=XQ(r),n()[0]<0?(i=c9(i),a=c9(a),e(GQ,KQ)):e(s9,u9),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],l=u[u.length-1];const d=l<c;d&&([c,l]=[l,c]);let h=i(c),g=i(l),m,y;const v=s==null?10:+s;let b=[];if(!(r%1)&&g-h<v){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(m=1;m<r;++m)if(y=h<0?m/a(-h):m*a(h),!(y<c)){if(y>l)break;b.push(y)}}else for(;h<=g;++h)for(m=r-1;m>=1;--m)if(y=h>0?m/a(-h):m*a(h),!(y<c)){if(y>l)break;b.push(y)}b.length*2<v&&(b=Ou(c,l,v))}else b=Ou(h,g,Math.min(g-h,v)).map(a);return d?b.reverse():b},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=ol(u)).precision==null&&(u.trim=!0),u=T0(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/a(Math.round(i(l)));return d*r<r-.5&&(d*=r),d<=c?u(l):""}},t.nice=()=>n(NM(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Z2(){const e=X2(A0()).domain([1,10]);return e.copy=()=>Qd(e,Z2()).base(e.base()),ta.apply(e,arguments),e}function l9(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function f9(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function J2(e){var t=1,n=e(l9(t),f9(t));return n.constant=function(r){return arguments.length?e(l9(t=+r),f9(t)):t},ks(n)}function Q2(){var e=J2(A0());return e.copy=function(){return Qd(e,Q2()).constant(e.constant())},ta.apply(e,arguments)}function d9(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function JQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function QQ(e){return e<0?-e*e:e*e}function eE(e){var t=e(Br,Br),n=1;function r(){return n===1?e(Br,Br):n===.5?e(JQ,QQ):e(d9(n),d9(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ks(t)}function P0(){var e=eE(A0());return e.copy=function(){return Qd(e,P0()).exponent(e.exponent())},ta.apply(e,arguments),e}function LM(){return P0.apply(null,arguments).exponent(.5)}function h9(e){return Math.sign(e)*e*e}function eee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tE(){var e=H2(),t=[0,1],n=!1,r;function i(a){var o=eee(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(h9(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ug)).map(h9)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return tE(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ta.apply(i,arguments),ks(i)}function nE(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=H7(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Os(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(_n),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return nE().domain(e).range(t).unknown(r)},ta.apply(a,arguments)}function rE(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Os(r,u,0,n)]:a}function s(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var c=i.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return r.slice()},o.copy=function(){return rE().domain([e,t]).range(i).unknown(a)},ta.apply(ks(o),arguments)}function iE(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Os(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return iE().domain(e).range(t).unknown(n)},ta.apply(i,arguments)}const nb=new Date,rb=new Date;function $n(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>$n(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(nb.setTime(+a),rb.setTime(+o),e(nb),e(rb),Math.floor(n(nb,rb))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const sl=$n(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?$n(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sl);const p9=sl.range,Eo=1e3,Yi=Eo*60,So=Yi*60,Io=So*24,aE=Io*7,g9=Io*30,ib=Io*365,Ao=$n(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Eo)},(e,t)=>(t-e)/Eo,e=>e.getUTCSeconds()),v9=Ao.range,C0=$n(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getMinutes()),tee=C0.range,j0=$n(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getUTCMinutes()),nee=j0.range,M0=$n(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo-e.getMinutes()*Yi)},(e,t)=>{e.setTime(+e+t*So)},(e,t)=>(t-e)/So,e=>e.getHours()),ree=M0.range,k0=$n(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*So)},(e,t)=>(t-e)/So,e=>e.getUTCHours()),iee=k0.range,Pl=$n(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yi)/Io,e=>e.getDate()-1),aee=Pl.range,eh=$n(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Io,e=>e.getUTCDate()-1),oee=eh.range,oE=$n(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Io,e=>Math.floor(e/Io)),see=oE.range;function Bu(e){return $n(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yi)/aE)}const ul=Bu(0),_d=Bu(1),$M=Bu(2),BM=Bu(3),Cu=Bu(4),zM=Bu(5),FM=Bu(6),m9=ul.range,uee=_d.range,cee=$M.range,lee=BM.range,fee=Cu.range,dee=zM.range,hee=FM.range;function zu(e){return $n(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/aE)}const cl=zu(0),Ed=zu(1),WM=zu(2),qM=zu(3),ju=zu(4),VM=zu(5),HM=zu(6),y9=cl.range,pee=Ed.range,gee=WM.range,vee=qM.range,mee=ju.range,yee=VM.range,bee=HM.range,R0=$n(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()),wee=R0.range,I0=$n(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()),xee=I0.range,La=$n(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());La.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$n(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const _ee=La.range,$a=$n(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());$a.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$n(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const Eee=$a.range;function UM(e,t,n,r,i,a){const o=[[Ao,1,Eo],[Ao,5,5*Eo],[Ao,15,15*Eo],[Ao,30,30*Eo],[a,1,Yi],[a,5,5*Yi],[a,15,15*Yi],[a,30,30*Yi],[i,1,So],[i,3,3*So],[i,6,6*So],[i,12,12*So],[r,1,Io],[r,2,2*Io],[n,1,aE],[t,1,g9],[t,3,3*g9],[e,1,ib]];function s(c,l,d){const h=l<c;h&&([c,l]=[l,c]);const g=d&&typeof d.range=="function"?d:u(c,l,d),m=g?g.range(c,+l+1):[];return h?m.reverse():m}function u(c,l,d){const h=Math.abs(l-c)/d,g=g0(([,,v])=>v).right(o,h);if(g===o.length)return e.every($g(c/ib,l/ib,d));if(g===0)return sl.every(Math.max($g(c,l,d),1));const[m,y]=o[h/o[g-1][2]<o[g][2]/h?g-1:g];return m.every(y)}return[s,u]}const[GM,KM]=UM($a,I0,cl,oE,k0,j0),[YM,XM]=UM(La,R0,ul,Pl,M0,C0);function ab(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 ob(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 bf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ZM(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=wf(i),l=xf(i),d=wf(a),h=xf(a),g=wf(o),m=xf(o),y=wf(s),v=xf(s),b=wf(u),_=xf(u),E={a:V,A:Z,b:K,B:R,c:null,d:S9,e:S9,f:Uee,g:nte,G:ite,H:qee,I:Vee,j:Hee,L:JM,m:Gee,M:Kee,p:W,q:U,Q:T9,s:P9,S:Yee,u:Xee,U:Zee,V:Jee,w:Qee,W:ete,x:null,X:null,y:tte,Y:rte,Z:ate,"%":O9},S={a:Y,A:ae,b:re,B:ge,c:null,d:A9,e:A9,f:cte,g:bte,G:xte,H:ote,I:ste,j:ute,L:ek,m:lte,M:fte,p:ye,q:_e,Q:T9,s:P9,S:dte,u:hte,U:pte,V:gte,w:vte,W:mte,x:null,X:null,y:yte,Y:wte,Z:_te,"%":O9},A={a:z,A:I,b:H,B:D,c:C,d:_9,e:_9,f:Bee,g:x9,G:w9,H:E9,I:E9,j:Dee,L:$ee,m:Iee,M:Nee,p:$,q:Ree,Q:Fee,s:Wee,S:Lee,u:Pee,U:Cee,V:jee,w:Tee,W:Mee,x:L,X:N,y:x9,Y:w9,Z:kee,"%":zee};E.x=O(n,E),E.X=O(r,E),E.c=O(t,E),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(ce,pe){return function(Oe){var oe=[],Re=-1,$e=0,Qe=ce.length,Ze,Se,at;for(Oe instanceof Date||(Oe=new Date(+Oe));++Re<Qe;)ce.charCodeAt(Re)===37&&(oe.push(ce.slice($e,Re)),(Se=b9[Ze=ce.charAt(++Re)])!=null?Ze=ce.charAt(++Re):Se=Ze==="e"?" ":"0",(at=pe[Ze])&&(Ze=at(Oe,Se)),oe.push(Ze),$e=Re+1);return oe.push(ce.slice($e,Re)),oe.join("")}}function P(ce,pe){return function(Oe){var oe=bf(1900,void 0,1),Re=j(oe,ce,Oe+="",0),$e,Qe;if(Re!=Oe.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(pe&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;"w"in oe||(oe.w=1),"Z"in oe?($e=ob(bf(oe.y,0,1)),Qe=$e.getUTCDay(),$e=Qe>4||Qe===0?Ed.ceil($e):Ed($e),$e=eh.offset($e,(oe.V-1)*7),oe.y=$e.getUTCFullYear(),oe.m=$e.getUTCMonth(),oe.d=$e.getUTCDate()+(oe.w+6)%7):($e=ab(bf(oe.y,0,1)),Qe=$e.getDay(),$e=Qe>4||Qe===0?_d.ceil($e):_d($e),$e=Pl.offset($e,(oe.V-1)*7),oe.y=$e.getFullYear(),oe.m=$e.getMonth(),oe.d=$e.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Qe="Z"in oe?ob(bf(oe.y,0,1)).getUTCDay():ab(bf(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Qe+5)%7:oe.w+oe.U*7-(Qe+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,ob(oe)):ab(oe)}}function j(ce,pe,Oe,oe){for(var Re=0,$e=pe.length,Qe=Oe.length,Ze,Se;Re<$e;){if(oe>=Qe)return-1;if(Ze=pe.charCodeAt(Re++),Ze===37){if(Ze=pe.charAt(Re++),Se=A[Ze in b9?pe.charAt(Re++):Ze],!Se||(oe=Se(ce,Oe,oe))<0)return-1}else if(Ze!=Oe.charCodeAt(oe++))return-1}return oe}function $(ce,pe,Oe){var oe=c.exec(pe.slice(Oe));return oe?(ce.p=l.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function z(ce,pe,Oe){var oe=g.exec(pe.slice(Oe));return oe?(ce.w=m.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function I(ce,pe,Oe){var oe=d.exec(pe.slice(Oe));return oe?(ce.w=h.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function H(ce,pe,Oe){var oe=b.exec(pe.slice(Oe));return oe?(ce.m=_.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function D(ce,pe,Oe){var oe=y.exec(pe.slice(Oe));return oe?(ce.m=v.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function C(ce,pe,Oe){return j(ce,t,pe,Oe)}function L(ce,pe,Oe){return j(ce,n,pe,Oe)}function N(ce,pe,Oe){return j(ce,r,pe,Oe)}function V(ce){return o[ce.getDay()]}function Z(ce){return a[ce.getDay()]}function K(ce){return u[ce.getMonth()]}function R(ce){return s[ce.getMonth()]}function W(ce){return i[+(ce.getHours()>=12)]}function U(ce){return 1+~~(ce.getMonth()/3)}function Y(ce){return o[ce.getUTCDay()]}function ae(ce){return a[ce.getUTCDay()]}function re(ce){return u[ce.getUTCMonth()]}function ge(ce){return s[ce.getUTCMonth()]}function ye(ce){return i[+(ce.getUTCHours()>=12)]}function _e(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var pe=O(ce+="",E);return pe.toString=function(){return ce},pe},parse:function(ce){var pe=P(ce+="",!1);return pe.toString=function(){return ce},pe},utcFormat:function(ce){var pe=O(ce+="",S);return pe.toString=function(){return ce},pe},utcParse:function(ce){var pe=P(ce+="",!0);return pe.toString=function(){return ce},pe}}}var b9={"-":"",_:" ",0:"0"},er=/^\s*\d+/,See=/^%/,Aee=/[\\^$*+?|[\]().{}]/g;function Nt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Oee(e){return e.replace(Aee,"\\$&")}function wf(e){return new RegExp("^(?:"+e.map(Oee).join("|")+")","i")}function xf(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tee(e,t,n){var r=er.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Pee(e,t,n){var r=er.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Cee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Mee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function w9(e,t,n){var r=er.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function x9(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kee(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ree(e,t,n){var r=er.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Iee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _9(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Dee(e,t,n){var r=er.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E9(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Nee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Lee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $ee(e,t,n){var r=er.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bee(e,t,n){var r=er.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zee(e,t,n){var r=See.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fee(e,t,n){var r=er.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Wee(e,t,n){var r=er.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function S9(e,t){return Nt(e.getDate(),t,2)}function qee(e,t){return Nt(e.getHours(),t,2)}function Vee(e,t){return Nt(e.getHours()%12||12,t,2)}function Hee(e,t){return Nt(1+Pl.count(La(e),e),t,3)}function JM(e,t){return Nt(e.getMilliseconds(),t,3)}function Uee(e,t){return JM(e,t)+"000"}function Gee(e,t){return Nt(e.getMonth()+1,t,2)}function Kee(e,t){return Nt(e.getMinutes(),t,2)}function Yee(e,t){return Nt(e.getSeconds(),t,2)}function Xee(e){var t=e.getDay();return t===0?7:t}function Zee(e,t){return Nt(ul.count(La(e)-1,e),t,2)}function QM(e){var t=e.getDay();return t>=4||t===0?Cu(e):Cu.ceil(e)}function Jee(e,t){return e=QM(e),Nt(Cu.count(La(e),e)+(La(e).getDay()===4),t,2)}function Qee(e){return e.getDay()}function ete(e,t){return Nt(_d.count(La(e)-1,e),t,2)}function tte(e,t){return Nt(e.getFullYear()%100,t,2)}function nte(e,t){return e=QM(e),Nt(e.getFullYear()%100,t,2)}function rte(e,t){return Nt(e.getFullYear()%1e4,t,4)}function ite(e,t){var n=e.getDay();return e=n>=4||n===0?Cu(e):Cu.ceil(e),Nt(e.getFullYear()%1e4,t,4)}function ate(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Nt(t/60|0,"0",2)+Nt(t%60,"0",2)}function A9(e,t){return Nt(e.getUTCDate(),t,2)}function ote(e,t){return Nt(e.getUTCHours(),t,2)}function ste(e,t){return Nt(e.getUTCHours()%12||12,t,2)}function ute(e,t){return Nt(1+eh.count($a(e),e),t,3)}function ek(e,t){return Nt(e.getUTCMilliseconds(),t,3)}function cte(e,t){return ek(e,t)+"000"}function lte(e,t){return Nt(e.getUTCMonth()+1,t,2)}function fte(e,t){return Nt(e.getUTCMinutes(),t,2)}function dte(e,t){return Nt(e.getUTCSeconds(),t,2)}function hte(e){var t=e.getUTCDay();return t===0?7:t}function pte(e,t){return Nt(cl.count($a(e)-1,e),t,2)}function tk(e){var t=e.getUTCDay();return t>=4||t===0?ju(e):ju.ceil(e)}function gte(e,t){return e=tk(e),Nt(ju.count($a(e),e)+($a(e).getUTCDay()===4),t,2)}function vte(e){return e.getUTCDay()}function mte(e,t){return Nt(Ed.count($a(e)-1,e),t,2)}function yte(e,t){return Nt(e.getUTCFullYear()%100,t,2)}function bte(e,t){return e=tk(e),Nt(e.getUTCFullYear()%100,t,2)}function wte(e,t){return Nt(e.getUTCFullYear()%1e4,t,4)}function xte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ju(e):ju.ceil(e),Nt(e.getUTCFullYear()%1e4,t,4)}function _te(){return"+0000"}function O9(){return"%"}function T9(e){return+e}function P9(e){return Math.floor(+e/1e3)}var vc,sE,nk,D0,uE;rk({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 rk(e){return vc=ZM(e),sE=vc.format,nk=vc.parse,D0=vc.utcFormat,uE=vc.utcParse,vc}var ik="%Y-%m-%dT%H:%M:%S.%LZ";function Ete(e){return e.toISOString()}var Ste=Date.prototype.toISOString?Ete:D0(ik);function Ate(e){var t=new Date(e);return isNaN(t)?null:t}var Ote=+new Date("2000-01-01T00:00:00.000Z")?Ate:uE(ik);function Tte(e){return new Date(e)}function Pte(e){return e instanceof Date?+e:+new Date(+e)}function cE(e,t,n,r,i,a,o,s,u,c){var l=H2(),d=l.invert,h=l.domain,g=c(".%L"),m=c(":%S"),y=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),_=c("%b %d"),E=c("%B"),S=c("%Y");function A(O){return(u(O)<O?g:s(O)<O?m:o(O)<O?y:a(O)<O?v:r(O)<O?i(O)<O?b:_:n(O)<O?E:S)(O)}return l.invert=function(O){return new Date(d(O))},l.domain=function(O){return arguments.length?h(Array.from(O,Pte)):h().map(Tte)},l.ticks=function(O){var P=h();return e(P[0],P[P.length-1],O??10)},l.tickFormat=function(O,P){return P==null?A:c(P)},l.nice=function(O){var P=h();return(!O||typeof O.range!="function")&&(O=t(P[0],P[P.length-1],O??10)),O?h(NM(P,O)):l},l.copy=function(){return Qd(l,cE(e,t,n,r,i,a,o,s,u,c))},l}function ak(){return ta.apply(cE(YM,XM,La,R0,ul,Pl,M0,C0,Ao,sE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ok(){return ta.apply(cE(GM,KM,$a,I0,cl,eh,k0,j0,Ao,D0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function N0(){var e=0,t=1,n,r,i,a,o=Br,s=!1,u;function c(d){return d==null||isNaN(d=+d)?u:o(i===0?.5:(d=(a(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(o=d,c):o};function l(d){return function(h){var g,m;return arguments.length?([g,m]=h,o=d(g,m),c):[o(0),o(1)]}}return c.range=l(Ms),c.rangeRound=l(E0),c.unknown=function(d){return arguments.length?(u=d,c):u},function(d){return a=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function Rs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lE(){var e=ks(N0()(Br));return e.copy=function(){return Rs(e,lE())},qo.apply(e,arguments)}function fE(){var e=X2(N0()).domain([1,10]);return e.copy=function(){return Rs(e,fE()).base(e.base())},qo.apply(e,arguments)}function dE(){var e=J2(N0());return e.copy=function(){return Rs(e,dE()).constant(e.constant())},qo.apply(e,arguments)}function L0(){var e=eE(N0());return e.copy=function(){return Rs(e,L0()).exponent(e.exponent())},qo.apply(e,arguments)}function sk(){return L0.apply(null,arguments).exponent(.5)}function hE(){var e=[],t=Br;function n(r){if(r!=null&&!isNaN(r=+r))return t((Os(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_n),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>yd(e,a/r))},n.copy=function(){return hE(t).domain(e)},qo.apply(n,arguments)}function $0(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Br,l,d=!1,h;function g(y){return isNaN(y=+y)?h:(y=.5+((y=+l(y))-a)*(r*y<r*a?s:u),c(d?Math.max(0,Math.min(1,y)):y))}g.domain=function(y){return arguments.length?([e,t,n]=y,i=l(e=+e),a=l(t=+t),o=l(n=+n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,g):[e,t,n]},g.clamp=function(y){return arguments.length?(d=!!y,g):d},g.interpolator=function(y){return arguments.length?(c=y,g):c};function m(y){return function(v){var b,_,E;return arguments.length?([b,_,E]=v,c=CM(y,[b,_,E]),g):[c(0),c(.5),c(1)]}}return g.range=m(Ms),g.rangeRound=m(E0),g.unknown=function(y){return arguments.length?(h=y,g):h},function(y){return l=y,i=y(e),a=y(t),o=y(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,g}}function pE(){var e=ks($0()(Br));return e.copy=function(){return Rs(e,pE())},qo.apply(e,arguments)}function gE(){var e=X2($0()).domain([.1,1,10]);return e.copy=function(){return Rs(e,gE()).base(e.base())},qo.apply(e,arguments)}function vE(){var e=J2($0());return e.copy=function(){return Rs(e,vE()).constant(e.constant())},qo.apply(e,arguments)}function B0(){var e=eE($0());return e.copy=function(){return Rs(e,B0()).exponent(e.exponent())},qo.apply(e,arguments)}function uk(){return B0.apply(null,arguments).exponent(.5)}const zf=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:b0,scaleDiverging:pE,scaleDivergingLog:gE,scaleDivergingPow:B0,scaleDivergingSqrt:uk,scaleDivergingSymlog:vE,scaleIdentity:Y2,scaleImplicit:zg,scaleLinear:K2,scaleLog:Z2,scaleOrdinal:y0,scalePoint:J7,scalePow:P0,scaleQuantile:nE,scaleQuantize:rE,scaleRadial:tE,scaleSequential:lE,scaleSequentialLog:fE,scaleSequentialPow:L0,scaleSequentialQuantile:hE,scaleSequentialSqrt:sk,scaleSequentialSymlog:dE,scaleSqrt:LM,scaleSymlog:Q2,scaleThreshold:iE,scaleTime:ak,scaleUtc:ok,tickFormat:G2},Symbol.toStringTag,{value:"Module"}));var Fu=e=>e.chartData,mE=se([Fu],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),th=(e,t,n,r)=>r?mE(e):Fu(e);function ll(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(lr(t)&&lr(n))return!0}return!1}function C9(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cte(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(lr(n))i=n;else if(typeof n=="function")return;if(lr(r))a=r;else if(typeof r=="function")return;var o=[i,a];if(ll(o))return o}}function jte(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ll(r))return C9(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(Me(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&lP.test(i)){var u=lP.exec(i);if(u==null||t==null)o=void 0;else{var c=+u[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(Me(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&fP.test(a)){var l=fP.exec(a);if(l==null||t==null)s=void 0;else{var d=+l[1];s=t[1]+d}}else s=t?.[1];var h=[o,s];if(ll(h))return t==null?h:C9(h,t,n)}}}var Cl=1e9,Mte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},bE,hn=!0,Ji="[DecimalError] ",mu=Ji+"Invalid argument: ",yE=Ji+"Exponent out of range: ",jl=Math.floor,Zs=Math.pow,kte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Oi,Yn=1e7,cn=7,ck=9007199254740991,Kg=jl(ck/cn),Le={};Le.absoluteValue=Le.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Le.comparedTo=Le.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};Le.decimalPlaces=Le.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*cn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Le.dividedBy=Le.div=function(e){return jo(this,new this.constructor(e))};Le.dividedToIntegerBy=Le.idiv=function(e){var t=this,n=t.constructor;return Qt(jo(t,new n(e),0,1),n.precision)};Le.equals=Le.eq=function(e){return!this.cmp(e)};Le.exponent=function(){return Ln(this)};Le.greaterThan=Le.gt=function(e){return this.cmp(e)>0};Le.greaterThanOrEqualTo=Le.gte=function(e){return this.cmp(e)>=0};Le.isInteger=Le.isint=function(){return this.e>this.d.length-2};Le.isNegative=Le.isneg=function(){return this.s<0};Le.isPositive=Le.ispos=function(){return this.s>0};Le.isZero=function(){return this.s===0};Le.lessThan=Le.lt=function(e){return this.cmp(e)<0};Le.lessThanOrEqualTo=Le.lte=function(e){return this.cmp(e)<1};Le.logarithm=Le.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Oi))throw Error(Ji+"NaN");if(n.s<1)throw Error(Ji+(n.s?"NaN":"-Infinity"));return n.eq(Oi)?new r(0):(hn=!1,t=jo(Sd(n,a),Sd(e,a),a),hn=!0,Qt(t,i))};Le.minus=Le.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dk(t,e):lk(t,(e.s=-e.s,e))};Le.modulo=Le.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Ji+"NaN");return n.s?(hn=!1,t=jo(n,e,0,1).times(e),hn=!0,n.minus(t)):Qt(new r(n),i)};Le.naturalExponential=Le.exp=function(){return fk(this)};Le.naturalLogarithm=Le.ln=function(){return Sd(this)};Le.negated=Le.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Le.plus=Le.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lk(t,e):dk(t,(e.s=-e.s,e))};Le.precision=Le.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(mu+e);if(t=Ln(i)+1,r=i.d.length-1,n=r*cn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Le.squareRoot=Le.sqrt=function(){var e,t,n,r,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Ji+"NaN")}for(e=Ln(s),hn=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ma(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=jl((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(i.toString()),n=u.precision,i=o=n+3;;)if(a=r,r=a.plus(jo(s,a,o+2)).times(.5),Ma(a.d).slice(0,o)===(t=Ma(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Qt(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return hn=!0,Qt(r,n)};Le.times=Le.mul=function(e){var t,n,r,i,a,o,s,u,c,l=this,d=l.constructor,h=l.d,g=(e=new d(e)).d;if(!l.s||!e.s)return new d(0);for(e.s*=l.s,n=l.e+e.e,u=h.length,c=g.length,u<c&&(a=h,h=g,g=a,o=u,u=c,c=o),a=[],o=u+c,r=o;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=u+r;i>r;)s=a[i]+g[r]*h[i-r-1]+t,a[i--]=s%Yn|0,t=s/Yn|0;a[i]=(a[i]+t)%Yn|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,hn?Qt(e,d.precision):e};Le.toDecimalPlaces=Le.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ba(e,0,Cl),t===void 0?t=r.rounding:Ba(t,0,8),Qt(n,e+Ln(n)+1,t))};Le.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Mu(r,!0):(Ba(e,0,Cl),t===void 0?t=i.rounding:Ba(t,0,8),r=Qt(new i(r),e+1,t),n=Mu(r,!0,e+1)),n};Le.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?Mu(i):(Ba(e,0,Cl),t===void 0?t=a.rounding:Ba(t,0,8),r=Qt(new a(i),e+Ln(i)+1,t),n=Mu(r.abs(),!1,e+Ln(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Le.toInteger=Le.toint=function(){var e=this,t=e.constructor;return Qt(new t(e),Ln(e)+1,t.rounding)};Le.toNumber=function(){return+this};Le.toPower=Le.pow=function(e){var t,n,r,i,a,o,s=this,u=s.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(Oi);if(s=new u(s),!s.s){if(e.s<1)throw Error(Ji+"Infinity");return s}if(s.eq(Oi))return s;if(r=u.precision,e.eq(Oi))return Qt(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=l<0?-l:l)<=ck){for(i=new u(Oi),t=Math.ceil(r/cn+4),hn=!1;n%2&&(i=i.times(s),M9(i.d,t)),n=jl(n/2),n!==0;)s=s.times(s),M9(s.d,t);return hn=!0,e.s<0?new u(Oi).div(i):Qt(i,r)}}else if(a<0)throw Error(Ji+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,hn=!1,i=e.times(Sd(s,r+c)),hn=!0,i=fk(i),i.s=a,i};Le.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Ln(i),r=Mu(i,n<=a.toExpNeg||n>=a.toExpPos)):(Ba(e,1,Cl),t===void 0?t=a.rounding:Ba(t,0,8),i=Qt(new a(i),e,t),n=Ln(i),r=Mu(i,e<=n||n<=a.toExpNeg,e)),r};Le.toSignificantDigits=Le.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ba(e,1,Cl),t===void 0?t=r.rounding:Ba(t,0,8)),Qt(new r(n),e,t)};Le.toString=Le.valueOf=Le.val=Le.toJSON=Le[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ln(e),n=e.constructor;return Mu(e,t<=n.toExpNeg||t>=n.toExpPos)};function lk(e,t){var n,r,i,a,o,s,u,c,l=e.constructor,d=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),hn?Qt(t,d):t;if(u=e.d,c=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(r=u,a=-a,s=c.length):(r=c,i=o,s=u.length),o=Math.ceil(d/cn),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=u.length,a=c.length,s-a<0&&(a=s,r=c,c=u,u=r),n=0;a;)n=(u[--a]=u[a]+c[a]+n)/Yn|0,u[a]%=Yn;for(n&&(u.unshift(n),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,hn?Qt(t,d):t}function Ba(e,t,n){if(e!==~~e||e<t||e>n)throw Error(mu+e)}function Ma(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=cn-r.length,n&&(a+=ls(n)),a+=r;o=e[t],r=o+"",n=cn-r.length,n&&(a+=ls(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var jo=function(){function e(r,i){var a,o=0,s=r.length;for(r=r.slice();s--;)a=r[s]*i+o,r[s]=a%Yn|0,o=a/Yn|0;return o&&r.unshift(o),r}function t(r,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(r[s]!=i[s]){u=r[s]>i[s]?1:-1;break}return u}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*Yn+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var s,u,c,l,d,h,g,m,y,v,b,_,E,S,A,O,P,j,$=r.constructor,z=r.s==i.s?1:-1,I=r.d,H=i.d;if(!r.s)return new $(r);if(!i.s)throw Error(Ji+"Division by zero");for(u=r.e-i.e,P=H.length,A=I.length,g=new $(z),m=g.d=[],c=0;H[c]==(I[c]||0);)++c;if(H[c]>(I[c]||0)&&--u,a==null?_=a=$.precision:o?_=a+(Ln(r)-Ln(i))+1:_=a,_<0)return new $(0);if(_=_/cn+2|0,c=0,P==1)for(l=0,H=H[0],_++;(c<A||l)&&_--;c++)E=l*Yn+(I[c]||0),m[c]=E/H|0,l=E%H|0;else{for(l=Yn/(H[0]+1)|0,l>1&&(H=e(H,l),I=e(I,l),P=H.length,A=I.length),S=P,y=I.slice(0,P),v=y.length;v<P;)y[v++]=0;j=H.slice(),j.unshift(0),O=H[0],H[1]>=Yn/2&&++O;do l=0,s=t(H,y,P,v),s<0?(b=y[0],P!=v&&(b=b*Yn+(y[1]||0)),l=b/O|0,l>1?(l>=Yn&&(l=Yn-1),d=e(H,l),h=d.length,v=y.length,s=t(d,y,h,v),s==1&&(l--,n(d,P<h?j:H,h))):(l==0&&(s=l=1),d=H.slice()),h=d.length,h<v&&d.unshift(0),n(y,d,v),s==-1&&(v=y.length,s=t(H,y,P,v),s<1&&(l++,n(y,P<v?j:H,v))),v=y.length):s===0&&(l++,y=[0]),m[c++]=l,s&&y[0]?y[v++]=I[S]||0:(y=[I[S]],v=1);while((S++<A||y[0]!==void 0)&&_--)}return m[0]||m.shift(),g.e=u,Qt(g,o?a+Ln(g)+1:a)}}();function fk(e,t){var n,r,i,a,o,s,u=0,c=0,l=e.constructor,d=l.precision;if(Ln(e)>16)throw Error(yE+Ln(e));if(!e.s)return new l(Oi);for(hn=!1,s=d,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(r=Math.log(Zs(2,c))/Math.LN10*2+5|0,s+=r,n=i=a=new l(Oi),l.precision=s;;){if(i=Qt(i.times(e),s),n=n.times(++u),o=a.plus(jo(i,n,s)),Ma(o.d).slice(0,s)===Ma(a.d).slice(0,s)){for(;c--;)a=Qt(a.times(a),s);return l.precision=d,t==null?(hn=!0,Qt(a,d)):a}a=o}}function Ln(e){for(var t=e.e*cn,n=e.d[0];n>=10;n/=10)t++;return t}function sb(e,t,n){if(t>e.LN10.sd())throw hn=!0,n&&(e.precision=n),Error(Ji+"LN10 precision limit exceeded");return Qt(new e(e.LN10),t)}function ls(e){for(var t="";e--;)t+="0";return t}function Sd(e,t){var n,r,i,a,o,s,u,c,l,d=1,h=10,g=e,m=g.d,y=g.constructor,v=y.precision;if(g.s<1)throw Error(Ji+(g.s?"NaN":"-Infinity"));if(g.eq(Oi))return new y(0);if(t==null?(hn=!1,c=v):c=t,g.eq(10))return t==null&&(hn=!0),sb(y,c);if(c+=h,y.precision=c,n=Ma(m),r=n.charAt(0),a=Ln(g),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=Ma(g.d),r=n.charAt(0),d++;a=Ln(g),r>1?(g=new y("0."+n),a++):g=new y(r+"."+n.slice(1))}else return u=sb(y,c+2,v).times(a+""),g=Sd(new y(r+"."+n.slice(1)),c-h).plus(u),y.precision=v,t==null?(hn=!0,Qt(g,v)):g;for(s=o=g=jo(g.minus(Oi),g.plus(Oi),c),l=Qt(g.times(g),c),i=3;;){if(o=Qt(o.times(l),c),u=s.plus(jo(o,new y(i),c)),Ma(u.d).slice(0,c)===Ma(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(sb(y,c+2,v).times(a+""))),s=jo(s,new y(d),c),y.precision=v,t==null?(hn=!0,Qt(s,v)):s;s=u,i+=2}}function j9(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=jl(n/cn),e.d=[],r=(n+1)%cn,n<0&&(r+=cn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=cn;r<i;)e.d.push(+t.slice(r,r+=cn));t=t.slice(r),r=cn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),hn&&(e.e>Kg||e.e<-Kg))throw Error(yE+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qt(e,t,n){var r,i,a,o,s,u,c,l,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=cn,i=t,c=d[l=0];else{if(l=Math.ceil((r+1)/cn),a=d.length,l>=a)return e;for(c=a=d[l],o=1;a>=10;a/=10)o++;r%=cn,i=r-cn+o}if(n!==void 0&&(a=Zs(10,o-i-1),s=c/a%10|0,u=t<0||d[l+1]!==void 0||c%a,u=n<4?(s||u)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||u||n==6&&(r>0?i>0?c/Zs(10,o-i):0:d[l-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return u?(a=Ln(e),d.length=1,t=t-a-1,d[0]=Zs(10,(cn-t%cn)%cn),e.e=jl(-t/cn)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=l,a=1,l--):(d.length=l+1,a=Zs(10,cn-r),d[l]=i>0?(c/Zs(10,o-i)%Zs(10,i)|0)*a:0),u)for(;;)if(l==0){(d[0]+=a)==Yn&&(d[0]=1,++e.e);break}else{if(d[l]+=a,d[l]!=Yn)break;d[l--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(hn&&(e.e>Kg||e.e<-Kg))throw Error(yE+Ln(e));return e}function dk(e,t){var n,r,i,a,o,s,u,c,l,d,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),hn?Qt(t,g):t;if(u=e.d,d=t.d,r=t.e,c=e.e,u=u.slice(),o=c-r,o){for(l=o<0,l?(n=u,o=-o,s=d.length):(n=d,r=c,s=u.length),i=Math.max(Math.ceil(g/cn),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=u.length,s=d.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(u[i]!=d[i]){l=u[i]<d[i];break}o=0}for(l&&(n=u,u=d,d=n,t.s=-t.s),s=u.length,i=d.length-s;i>0;--i)u[s++]=0;for(i=d.length;i>o;){if(u[--i]<d[i]){for(a=i;a&&u[--a]===0;)u[a]=Yn-1;--u[a],u[i]+=Yn}u[i]-=d[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,hn?Qt(t,g):t):new h(0)}function Mu(e,t,n){var r,i=Ln(e),a=Ma(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+ls(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ls(-i-1)+a,n&&(r=n-o)>0&&(a+=ls(r))):i>=o?(a+=ls(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+ls(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=ls(r))),e.s<0?"-"+a:a}function M9(e,t){if(e.length>t)return e.length=t,!0}function hk(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(mu+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return j9(o,a.toString())}else if(typeof a!="string")throw Error(mu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,kte.test(a))j9(o,a);else throw Error(mu+a)}if(i.prototype=Le,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=hk,i.config=i.set=Rte,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Rte(e){if(!e||typeof e!="object")throw Error(Ji+"Object expected");var t,n,r,i=["precision",1,Cl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(jl(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(mu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(mu+n+": "+r);return this}var bE=hk(Mte);Oi=new bE(1);const Kt=bE;var Ite=e=>e,pk={},gk=e=>e===pk,k9=e=>function t(){return arguments.length===0||arguments.length===1&&gk(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},vk=(e,t)=>e===1?t:k9(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r.filter(o=>o!==pk).length;return a>=e?t(...r):vk(e-a,k9(function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=r.map(l=>gk(l)?s.shift():l);return t(...c,...s)}))}),z0=e=>vk(e.length,e),sx=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Dte=z0((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Nte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Ite;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((s,u)=>u(s),a(...arguments))}},ux=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),mk=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t&&i.every((o,s)=>{var u;return o===((u=t)===null||u===void 0?void 0:u[s])})||(t=i,n=e(...i)),n}};function yk(e){var t;return e===0?t=1:t=Math.floor(new Kt(e).abs().log(10).toNumber())+1,t}function bk(e,t,n){for(var r=new Kt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}z0((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});z0((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});z0((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var wk=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},xk=(e,t,n)=>{if(e.lte(0))return new Kt(0);var r=yk(e.toNumber()),i=new Kt(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new Kt(Math.ceil(a.div(o).toNumber())).add(n).mul(o),u=s.mul(i);return t?new Kt(u.toNumber()):new Kt(Math.ceil(u.toNumber()))},Lte=(e,t,n)=>{var r=new Kt(1),i=new Kt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Kt(10).pow(yk(e)-1),i=new Kt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Kt(Math.floor(e)))}else e===0?i=new Kt(Math.floor((t-1)/2)):n||(i=new Kt(Math.floor(e)));var o=Math.floor((t-1)/2),s=Nte(Dte(u=>i.add(new Kt(u-o).mul(r)).toNumber()),sx);return s(0,t)},_k=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Kt(0),tickMin:new Kt(0),tickMax:new Kt(0)};var o=xk(new Kt(n).sub(t).div(r-1),i,a),s;t<=0&&n>=0?s=new Kt(0):(s=new Kt(t).add(n).div(2),s=s.sub(new Kt(s).mod(o)));var u=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Kt(n).sub(s).div(o).toNumber()),l=u+c+1;return l>r?_k(t,n,r,i,a+1):(l<r&&(c=n>0?c+(r-l):c,u=n>0?u:u+(r-l)),{step:o,tickMin:s.sub(new Kt(u).mul(o)),tickMax:s.add(new Kt(c).mul(o))})};function $te(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(r,2),[o,s]=wk([t,n]);if(o===-1/0||s===1/0){var u=s===1/0?[o,...sx(0,r-1).map(()=>1/0)]:[...sx(0,r-1).map(()=>-1/0),s];return t>n?ux(u):u}if(o===s)return Lte(o,r,i);var{step:c,tickMin:l,tickMax:d}=_k(o,s,a,i,0),h=bk(l,d.add(new Kt(.1).mul(c)),c);return t>n?ux(h):h}function Bte(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=wk([n,r]);if(a===-1/0||o===1/0)return[n,r];if(a===o)return[a];var s=Math.max(t,2),u=xk(new Kt(o).sub(a).div(s-1),i,0),c=[...bk(new Kt(a),new Kt(o),u),o];return i===!1&&(c=c.map(l=>Math.round(l))),n>r?ux(c):c}var zte=mk($te),Fte=mk(Bte),Ek=e=>e.rootProps.maxBarSize,Wte=e=>e.rootProps.barGap,Sk=e=>e.rootProps.barCategoryGap,qte=e=>e.rootProps.barSize,nh=e=>e.rootProps.stackOffset,wE=e=>e.options.chartName,xE=e=>e.rootProps.syncId,Ak=e=>e.rootProps.syncMethod,_E=e=>e.options.eventEmitter,bo={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Ei={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},F0=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Vte={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:bo.angleAxisId,includeHidden:!1,name:void 0,reversed:bo.reversed,scale:bo.scale,tick:bo.tick,tickCount:void 0,ticks:void 0,type:bo.type,unit:void 0},Hte={allowDataOverflow:Ei.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ei.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ei.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ei.scale,tick:Ei.tick,tickCount:Ei.tickCount,ticks:void 0,type:Ei.type,unit:void 0},Ute={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:bo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:bo.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:bo.scale,tick:bo.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Gte={allowDataOverflow:Ei.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ei.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ei.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ei.scale,tick:Ei.tick,tickCount:Ei.tickCount,ticks:void 0,type:"category",unit:void 0},EE=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Ute:Vte,SE=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Gte:Hte,W0=e=>e.polarOptions,AE=se([zo,Fo,Hn],f7),Ok=se([W0,AE],(e,t)=>{if(e!=null)return zr(e.innerRadius,t,0)}),Tk=se([W0,AE],(e,t)=>{if(e!=null)return zr(e.outerRadius,t,t*.8)}),Kte=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Pk=se([W0],Kte);se([EE,Pk],F0);var Ck=se([AE,Ok,Tk],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});se([SE,Ck],F0);var Yte=se([It,W0,Ok,Tk,zo,Fo],(e,t,n,r,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:o,cy:s,startAngle:u,endAngle:c}=t;return{cx:zr(o,i,i/2),cy:zr(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:u,endAngle:c,clockWise:!1}}}),Mn=(e,t)=>t,rh=(e,t,n)=>n;function R9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R9(Object(n),!0).forEach(function(r){Xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xte(e,t,n){return(t=Zte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zte(e){var t=Jte(e,"string");return typeof t=="symbol"?t:t+""}function Jte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cx=[0,"auto"],bi={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},Ga=(e,t)=>{var n=e.cartesianAxis.xAxis[t];return n??bi},wi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:cx,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:f0},Vo=(e,t)=>{var n=e.cartesianAxis.yAxis[t];return n??wi},ms={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:""},OE=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??ms},kn=(e,t,n)=>{switch(t){case"xAxis":return Ga(e,n);case"yAxis":return Vo(e,n);case"zAxis":return OE(e,n);case"angleAxis":return EE(e,n);case"radiusAxis":return SE(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Qte=(e,t,n)=>{switch(t){case"xAxis":return Ga(e,n);case"yAxis":return Vo(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},ih=(e,t,n)=>{switch(t){case"xAxis":return Ga(e,n);case"yAxis":return Vo(e,n);case"angleAxis":return EE(e,n);case"radiusAxis":return SE(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},jk=e=>e.graphicalItems.countOfBars>0;function TE(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Ml=e=>e.graphicalItems.cartesianItems,ene=se([Mn,rh],TE),PE=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),ah=se([Ml,kn,ene],PE),Mk=e=>e.filter(t=>t.stackId===void 0),tne=se([ah],Mk),CE=e=>e.map(t=>t.data).filter(Boolean).flat(1),nne=se([ah],CE),jE=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},q0=se([nne,th],jE),ME=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:$t(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:$t(i,r)}))):e.map(r=>({value:r})),V0=se([q0,kn,ah],ME);function kk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Wu(e){return e.filter(t=>si(t)||t instanceof Date).map(Number).filter(t=>Ar(t)===!1)}function rne(e,t,n){return!n||typeof t!="number"||Ar(t)?[]:n.length?Wu(n.flatMap(r=>{var i=$t(e,r.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!lr(a)||!lr(o)))return[t-a,t+o]})):[]}var Rk=(e,t,n)=>{var r={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),r);return Object.fromEntries(Object.entries(i).map(a=>{var[o,s]=a,u=s.map(c=>c.dataKey);return[o,{stackedData:aX(e,u,n),graphicalItems:s}]}))},Ad=se([q0,ah,nh],Rk),Ik=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var a=cX(e,r,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},ine=se([Ad,Fu,Mn],Ik),Dk=(e,t,n,r)=>n.length>0?e.flatMap(i=>n.flatMap(a=>{var o,s,u=(o=a.errorBars)===null||o===void 0?void 0:o.filter(l=>kk(r,l)),c=$t(i,(s=t.dataKey)!==null&&s!==void 0?s:a.dataKey);return{value:c,errorDomain:rne(i,c,u)}})).filter(Boolean):t?.dataKey!=null?e.map(i=>({value:$t(i,t.dataKey),errorDomain:[]})):e.map(i=>({value:i,errorDomain:[]})),ane=se(q0,kn,tne,Mn,Dk);function one(e){var{value:t}=e;if(si(t)||t instanceof Date)return t}var sne=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Wu(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},une=(e,t,n)=>{var r=e.map(one).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&R8(r))?T7(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},kE=e=>{var t;if(e==null||!("domain"in e))return cx;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Wu(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:cx},RE=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},Nk=e=>e.referenceElements.dots,kl=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),cne=se([Nk,Mn,rh],kl),Lk=e=>e.referenceElements.areas,lne=se([Lk,Mn,rh],kl),$k=e=>e.referenceElements.lines,fne=se([$k,Mn,rh],kl),Bk=(e,t)=>{var n=Wu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},dne=se(cne,Mn,Bk),zk=(e,t)=>{var n=Wu(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},hne=se([lne,Mn],zk),Fk=(e,t)=>{var n=Wu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},pne=se(fne,Mn,Fk),gne=se(dne,pne,hne,(e,t,n)=>RE(e,n,t)),Wk=se([kn],kE),IE=(e,t,n,r,i)=>{var a=Cte(t,e.allowDataOverflow);return a??jte(t,RE(n,i,sne(r)),e.allowDataOverflow)},vne=se([kn,Wk,ine,ane,gne],IE),mne=[0,1],DE=(e,t,n,r,i,a,o)=>{if(!(e==null||n==null||n.length===0)){var{dataKey:s,type:u}=e,c=Ha(t,a);return c&&s==null?T7(0,n.length):u==="category"?une(r,e,c):i==="expand"?mne:o}},NE=se([kn,It,q0,V0,nh,Mn,vne],DE),qk=(e,t,n,r,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var s="scale".concat(Hd(a));return s in zf?s:"point"}}},Rl=se([kn,It,jk,wE,Mn],qk);function yne(e){if(e!=null){if(e in zf)return zf[e]();var t="scale".concat(Hd(e));if(t in zf)return zf[t]()}}function LE(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=yne(t);if(i!=null){var a=i.domain(n).range(r);return eX(a),a}}}var $E=(e,t,n)=>{var r=kE(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&ll(e))return zte(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&ll(e))return Fte(e,t.tickCount,t.allowDecimals)}},BE=se([NE,ih,Rl],$E),zE=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&ll(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0],o=t[1],s=n[n.length-1];return[Math.min(i,a),Math.max(o,s)]}return t},bne=se([kn,NE,BE,Mn],zE),wne=se(V0,kn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Wu(e.map(s=>s.value))).sort((s,u)=>s-u);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var a=0;a<r.length-1;a++){var o=r[a+1]-r[a];n=Math.min(n,o)}return n/i}}),Vk=se(wne,It,Sk,Hn,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!lr(e))return 0;var a=t==="vertical"?r.height:r.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=zr(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),xne=(e,t)=>{var n=Ga(e,t);return n==null||typeof n.padding!="string"?0:Vk(e,"xAxis",t,n.padding)},_ne=(e,t)=>{var n=Vo(e,t);return n==null||typeof n.padding!="string"?0:Vk(e,"yAxis",t,n.padding)},Ene=se(Ga,xne,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),Sne=se(Vo,_ne,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),Ane=se([Hn,Ene,h0,d0,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),One=se([Hn,It,Sne,h0,d0,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:o}=i;return a?[r.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),oh=(e,t,n,r)=>{var i;switch(t){case"xAxis":return Ane(e,n,r);case"yAxis":return One(e,n,r);case"zAxis":return(i=OE(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Pk(e);case"radiusAxis":return Ck(e,n);default:return}},Hk=se([kn,oh],F0),za=se([kn,Rl,bne,Hk],LE);se(ah,Mn,(e,t)=>e.flatMap(n=>{var r;return(r=n.errorBars)!==null&&r!==void 0?r:[]}).filter(n=>kk(t,n)));function Uk(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var H0=(e,t)=>t,U0=(e,t,n)=>n,Tne=se(A2,H0,U0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Uk)),Pne=se(O2,H0,U0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Uk)),Gk=(e,t)=>({width:e.width,height:t.height}),Cne=(e,t)=>{var n=typeof t.width=="number"?t.width:f0;return{width:n,height:e.height}},Kk=se(Hn,Ga,Gk),jne=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Mne=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},kne=se(Fo,Hn,Tne,H0,U0,(e,t,n,r,i)=>{var a={},o;return n.forEach(s=>{var u=Gk(t,s);o==null&&(o=jne(t,r,e));var c=r==="top"&&!i||r==="bottom"&&i;a[s.id]=o-Number(c)*u.height,o+=(c?-1:1)*u.height}),a}),Rne=se(zo,Hn,Pne,H0,U0,(e,t,n,r,i)=>{var a={},o;return n.forEach(s=>{var u=Cne(t,s);o==null&&(o=Mne(t,r,e));var c=r==="left"&&!i||r==="right"&&i;a[s.id]=o-Number(c)*u.width,o+=(c?-1:1)*u.width}),a}),Ine=(e,t)=>{var n=Hn(e),r=Ga(e,t);if(r!=null){var i=kne(e,r.orientation,r.mirror),a=i[t];return a==null?{x:n.left,y:0}:{x:n.left,y:a}}},Dne=(e,t)=>{var n=Hn(e),r=Vo(e,t);if(r!=null){var i=Rne(e,r.orientation,r.mirror),a=i[t];return a==null?{x:0,y:n.top}:{x:a,y:n.top}}},Yk=se(Hn,Vo,(e,t)=>{var n=typeof t.width=="number"?t.width:f0;return{width:n,height:e.height}}),I9=(e,t,n)=>{switch(t){case"xAxis":return Kk(e,n).width;case"yAxis":return Yk(e,n).height;default:return}},Xk=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=Ha(e,r),u=t.map(c=>c.value);if(o&&s&&a==="category"&&i&&R8(u))return u}},FE=se([It,V0,kn,Mn],Xk),Zk=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n,o=Ha(e,r);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},WE=se([It,V0,ih,Mn],Zk),D9=se([It,Qte,Rl,za,FE,WE,oh,BE,Mn],(e,t,n,r,i,a,o,s,u)=>{if(t==null)return null;var c=Ha(e,u);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:u,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:s,range:o,realScaleType:n,scale:r}}),Nne=(e,t,n,r,i,a,o,s,u)=>{if(!(t==null||r==null)){var c=Ha(e,u),{type:l,ticks:d,tickCount:h}=t,g=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,m=l==="category"&&r.bandwidth?r.bandwidth()/g:0;m=u==="angleAxis"&&a!=null&&a.length>=2?Xn(a[0]-a[1])*2*m:m;var y=d||i;if(y){var v=y.map((b,_)=>{var E=o?o.indexOf(b):b;return{index:_,coordinate:r(E)+m,value:b,offset:m}});return v.filter(b=>!Ar(b.coordinate))}return c&&s?s.map((b,_)=>({coordinate:r(b)+m,value:b,index:_,offset:m})):r.ticks?r.ticks(h).map(b=>({coordinate:r(b)+m,value:b,offset:m})):r.domain().map((b,_)=>({coordinate:r(b)+m,value:o?o[b]:b,index:_,offset:m}))}},Jk=se([It,ih,Rl,za,BE,oh,FE,WE,Mn],Nne),Lne=(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Ha(e,o),{tickCount:u}=t,c=0;return c=o==="angleAxis"&&r?.length>=2?Xn(r[0]-r[1])*2*c:c,s&&a?a.map((l,d)=>({coordinate:n(l)+c,value:l,index:d,offset:c})):n.ticks?n.ticks(u).map(l=>({coordinate:n(l)+c,value:l,offset:c})):n.domain().map((l,d)=>({coordinate:n(l)+c,value:i?i[l]:l,index:d,offset:c}))}},Qi=se([It,ih,za,oh,FE,WE,Mn],Lne),ui=se(kn,za,(e,t)=>{if(!(e==null||t==null))return Yg(Yg({},e),{},{scale:t})}),$ne=se([kn,Rl,NE,Hk],LE),Bne=se((e,t,n)=>OE(e,n),$ne,(e,t)=>{if(!(e==null||t==null))return Yg(Yg({},e),{},{scale:t})}),zne=se([It,A2,O2],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Qk=e=>e.options.defaultTooltipEventType,eR=e=>e.options.validateTooltipEventTypes;function tR(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function qE(e,t){var n=Qk(e),r=eR(e);return tR(t,n,r)}function Fne(e){return ke(t=>qE(t,e))}var nR=(e,t)=>{var n,r=Number(t);if(!(Ar(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Wne=e=>e.tooltip.settings,ps={active:!1,index:null,dataKey:void 0,coordinate:void 0},qne={itemInteraction:{click:ps,hover:ps},axisInteraction:{click:ps,hover:ps},keyboardInteraction:ps,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},rR=ea({name:"tooltip",initialState:qne,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=Co(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},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.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.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,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:Vne,removeTooltipEntrySettings:Hne,setTooltipSettingsState:Une,setActiveMouseOverItemIndex:iR,mouseLeaveItem:Gne,mouseLeaveChart:aR,setActiveClickItemIndex:Kne,setMouseOverAxisIndex:oR,setMouseClickAxisIndex:Yne,setSyncInteraction:lx,setKeyboardInteraction:fx}=rR.actions,Xne=rR.reducer;function N9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N9(Object(n),!0).forEach(function(r){Zne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zne(e,t,n){return(t=Jne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jne(e){var t=Qne(e,"string");return typeof t=="symbol"?t:t+""}function Qne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ere(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function tre(e){return e.index!=null}var sR=(e,t,n,r)=>{if(t==null)return ps;var i=ere(e,t,n);if(i==null)return ps;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(tre(i)){if(a)return Pp(Pp({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return Pp(Pp({},ps),{},{coordinate:i.coordinate})},VE=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!lr(r))return n;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(r,a)))},uR=(e,t,n,r,i,a,o,s)=>{if(!(a==null||s==null)){var u=o[0],c=u==null?void 0:s(u.positions,a);if(c!=null)return c;var l=i?.[Number(a)];if(l)switch(n){case"horizontal":return{x:l.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:l.coordinate}}}},cR=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},sh=e=>e.options.tooltipPayloadSearcher,Il=e=>e.tooltip;function L9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L9(Object(n),!0).forEach(function(r){nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nre(e,t,n){return(t=rre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rre(e){var t=ire(e,"string");return typeof t=="symbol"?t:t+""}function ire(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function are(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function ore(e,t){return e??t}var lR=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:u,dataStartIndex:c,dataEndIndex:l}=n,d=[];return e.reduce((h,g)=>{var m,{dataDefinedOnItem:y,settings:v}=g,b=ore(y,s),_=are(b,c,l),E=(m=v?.dataKey)!==null&&m!==void 0?m:r?.dataKey,S=v?.nameKey,A;if(r!=null&&r.dataKey&&Array.isArray(_)&&!Array.isArray(_[0])&&o==="axis"?A=I8(_,r.dataKey,i):A=a(_,t,u,S),Array.isArray(A))A.forEach(P=>{var j=$9($9({},v),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});h.push(dP({tooltipEntrySettings:j,dataKey:P.dataKey,payload:P.payload,value:$t(P.payload,P.dataKey),name:P.name}))});else{var O;h.push(dP({tooltipEntrySettings:v,dataKey:E,payload:A,value:$t(A,E),name:(O=$t(A,S))!==null&&O!==void 0?O:v?.name}))}return h},d)}},tr=e=>{var t=It(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Dl=e=>e.tooltip.settings.axisId,fr=e=>{var t=tr(e),n=Dl(e);return ih(e,t,n)},HE=se([fr,It,jk,wE,tr],qk),sre=se([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),ure=se([tr,Dl],TE),G0=se([sre,fr,ure],PE),cre=se([G0],CE),qu=se([cre,Fu],jE),UE=se([qu,fr,G0],ME),lre=se([fr],kE),fre=se([qu,G0,nh],Rk),dre=se([fre,Fu,tr],Ik),hre=se([G0],Mk),pre=se([qu,fr,hre,tr],Dk),gre=se([Nk,tr,Dl],kl),vre=se([gre,tr],Bk),mre=se([Lk,tr,Dl],kl),yre=se([mre,tr],zk),bre=se([$k,tr,Dl],kl),wre=se([bre,tr],Fk),xre=se([vre,wre,yre],RE),_re=se([fr,lre,dre,pre,xre],IE),fR=se([fr,It,qu,UE,nh,tr,_re],DE),Ere=se([fR,fr,HE],$E),Sre=se([fr,fR,Ere,tr],zE),dR=e=>{var t=tr(e),n=Dl(e),r=!1;return oh(e,t,n,r)},hR=se([fr,dR],F0),pR=se([fr,HE,Sre,hR],LE),Are=se([It,UE,fr,tr],Xk),Ore=se([It,UE,fr,tr],Zk),Tre=(e,t,n,r,i,a,o,s)=>{if(t){var{type:u}=t,c=Ha(e,s);if(r){var l=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,d=u==="category"&&r.bandwidth?r.bandwidth()/l:0;return d=s==="angleAxis"&&i!=null&&i?.length>=2?Xn(i[0]-i[1])*2*d:d,c&&o?o.map((h,g)=>({coordinate:r(h)+d,value:h,index:g,offset:d})):r.domain().map((h,g)=>({coordinate:r(h)+d,value:a?a[h]:h,index:g,offset:d}))}}},Ho=se([It,fr,HE,pR,dR,Are,Ore,tr],Tre),GE=se([Qk,eR,Wne],(e,t,n)=>tR(n.shared,e,t)),gR=e=>e.tooltip.settings.trigger,KE=e=>e.tooltip.settings.defaultIndex,K0=se([Il,GE,gR,KE],sR),Do=se([K0,qu],VE),vR=se([Ho,Do],nR),mR=se([K0],e=>{if(e)return e.dataKey}),yR=se([Il,GE,gR,KE],cR),Pre=se([zo,Fo,It,Hn,Ho,KE,yR,sh],uR),Cre=se([K0,Pre],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),jre=se([K0],e=>e.active),Mre=se([yR,Do,Fu,fr,vR,sh,GE],lR),kre=se([Mre],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function B9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B9(Object(n),!0).forEach(function(r){Rre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rre(e,t,n){return(t=Ire(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ire(e){var t=Dre(e,"string");return typeof t=="symbol"?t:t+""}function Dre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nre=()=>ke(fr),Lre=()=>{var e=Nre(),t=ke(Ho),n=ke(pR);return Su(z9(z9({},e),{},{scale:n}),t)},bR=()=>ke(wE),YE=(e,t)=>t,wR=(e,t,n)=>n,XE=(e,t,n,r)=>r,$re=se(Ho,e=>a0(e,t=>t.coordinate)),ZE=se([Il,YE,wR,XE],sR),xR=se([ZE,qu],VE),Bre=(e,t,n)=>{if(t!=null){var r=Il(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},_R=se([Il,YE,wR,XE],cR),Xg=se([zo,Fo,It,Hn,Ho,XE,_R,sh],uR),zre=se([ZE,Xg],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),ER=se(Ho,xR,nR),Fre=se([_R,xR,Fu,fr,ER,sh,YE],lR),Wre=se([ZE],e=>({isActive:e.active,activeIndex:e.index})),qre=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a)){var u=lX(e.chartX,e.chartY,t,n,s);if(u){var c=dX(u,t),l=JY(c,o,a,r,i),d=fX(t,a,l,u);return{activeIndex:String(l),activeCoordinate:d}}}};function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(null,arguments)}function F9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F9(Object(n),!0).forEach(function(r){Vre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vre(e,t,n){return(t=Hre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hre(e){var t=Ure(e,"string");return typeof t=="symbol"?t:t+""}function Ure(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gre(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:u,chartName:c}=e,l=t,d=n,h=r;if(!s||!l||c!=="ScatterChart"&&u!=="axis")return null;var g,m;if(c==="ScatterChart")g=l,m=cZ;else if(c==="BarChart")g=lZ(o,l,i,a),m=S7;else if(o==="radial"){var{cx:y,cy:v,radius:b,startAngle:_,endAngle:E}=A7(l);g={cx:y,cy:v,startAngle:_,endAngle:E,innerRadius:b,outerRadius:b},m=Dg}else g={points:XZ(o,l,i)},m=pu;var S=typeof s=="object"&&"className"in s?s.className:void 0,A=Cp(Cp(Cp(Cp({stroke:"#ccc",pointerEvents:"none"},i),g),it(s,!1)),{},{payload:d,payloadIndex:h,className:Ot("recharts-tooltip-cursor",S)});return k.isValidElement(s)?k.cloneElement(s,A):k.createElement(m,A)}function Kre(e){var t=Lre(),n=v7(),r=Zd(),i=bR();return B.createElement(Gre,dx({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var SR=k.createContext(null),Yre=()=>k.useContext(SR),ub={exports:{}},W9;function Xre(){return W9||(W9=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function a(u,c,l,d,h){if(typeof l!="function")throw new TypeError("The listener must be a function");var g=new i(l,d||u,h),m=n?n+c:c;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],g]:u._events[m].push(g):(u._events[m]=g,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new r:delete u._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],l,d;if(this._eventsCount===0)return c;for(d in l=this._events)t.call(l,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},s.prototype.listeners=function(c){var l=n?n+c:c,d=this._events[l];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,g=d.length,m=new Array(g);h<g;h++)m[h]=d[h].fn;return m},s.prototype.listenerCount=function(c){var l=n?n+c:c,d=this._events[l];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,l,d,h,g,m){var y=n?n+c:c;if(!this._events[y])return!1;var v=this._events[y],b=arguments.length,_,E;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),b){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,d),!0;case 4:return v.fn.call(v.context,l,d,h),!0;case 5:return v.fn.call(v.context,l,d,h,g),!0;case 6:return v.fn.call(v.context,l,d,h,g,m),!0}for(E=1,_=new Array(b-1);E<b;E++)_[E-1]=arguments[E];v.fn.apply(v.context,_)}else{var S=v.length,A;for(E=0;E<S;E++)switch(v[E].once&&this.removeListener(c,v[E].fn,void 0,!0),b){case 1:v[E].fn.call(v[E].context);break;case 2:v[E].fn.call(v[E].context,l);break;case 3:v[E].fn.call(v[E].context,l,d);break;case 4:v[E].fn.call(v[E].context,l,d,h);break;default:if(!_)for(A=1,_=new Array(b-1);A<b;A++)_[A-1]=arguments[A];v[E].fn.apply(v[E].context,_)}}return!0},s.prototype.on=function(c,l,d){return a(this,c,l,d,!1)},s.prototype.once=function(c,l,d){return a(this,c,l,d,!0)},s.prototype.removeListener=function(c,l,d,h){var g=n?n+c:c;if(!this._events[g])return this;if(!l)return o(this,g),this;var m=this._events[g];if(m.fn)m.fn===l&&(!h||m.once)&&(!d||m.context===d)&&o(this,g);else{for(var y=0,v=[],b=m.length;y<b;y++)(m[y].fn!==l||h&&!m[y].once||d&&m[y].context!==d)&&v.push(m[y]);v.length?this._events[g]=v.length===1?v[0]:v:o(this,g)}return this},s.prototype.removeAllListeners=function(c){var l;return c?(l=n?n+c:c,this._events[l]&&o(this,l)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(ub)),ub.exports}var Zre=Xre();const Jre=Va(Zre);var Od=new Jre,hx="recharts.syncEvent.tooltip",q9="recharts.syncEvent.brush";function Nl(e,t){if(t){var n=Number.parseInt(t,10);if(!Ar(n))return e?.[n]}}var Qre={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},AR=ea({name:"options",initialState:Qre,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),eie=AR.reducer,{createEventEmitter:tie}=AR.actions;function nie(e){return e.tooltip.syncInteraction}var rie={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},OR=ea({name:"chartData",initialState:rie,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:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:V9,setDataStartEndIndexes:iie,setComputedData:eOe}=OR.actions,aie=OR.reducer,TR=()=>{};function oie(){var e=ke(xE),t=ke(_E),n=en(),r=ke(Ak),i=ke(Ho),a=Zd(),o=p0(),s=ke(u=>u.rootProps.className);k.useEffect(()=>{if(e==null)return TR;var u=(c,l,d)=>{if(t!==d&&e===c){if(r==="index"){n(l);return}if(i!=null){var h;if(typeof r=="function"){var g={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},m=r(i,g);h=i[m]}else r==="value"&&(h=i.find(O=>String(O.value)===l.payload.label));var{coordinate:y}=l.payload;if(h==null||l.payload.active===!1||y==null||o==null){n(lx({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:v,y:b}=y,_=Math.min(v,o.x+o.width),E=Math.min(b,o.y+o.height),S={x:a==="horizontal"?h.coordinate:_,y:a==="horizontal"?E:h.coordinate},A=lx({active:l.payload.active,coordinate:S,dataKey:l.payload.dataKey,index:String(h.index),label:l.payload.label});n(A)}}};return Od.on(hx,u),()=>{Od.off(hx,u)}},[s,n,t,e,r,i,a,o])}function sie(){var e=ke(xE),t=ke(_E),n=en();k.useEffect(()=>{if(e==null)return TR;var r=(i,a,o)=>{t!==o&&e===i&&n(iie(a))};return Od.on(q9,r),()=>{Od.off(q9,r)}},[n,t,e])}function uie(){var e=en();k.useEffect(()=>{e(tie())},[e]),oie(),sie()}function cie(e,t,n,r,i,a){var o=ke(h=>Bre(h,e,t)),s=ke(_E),u=ke(xE),c=ke(Ak),l=ke(nie),d=l?.active;k.useEffect(()=>{if(!d&&u!=null&&s!=null){var h=lx({active:a,coordinate:n,dataKey:o,index:i,label:typeof r=="number"?String(r):r});Od.emit(hx,u,h,s)}},[d,n,o,i,r,s,u,c,a])}function H9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H9(Object(n),!0).forEach(function(r){lie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lie(e,t,n){return(t=fie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fie(e){var t=die(e,"string");return typeof t=="symbol"?t:t+""}function die(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hie(e){return e.dataKey}function pie(e,t){return B.isValidElement(e)?B.cloneElement(e,t):typeof e=="function"?B.createElement(e,t):B.createElement(FX,t)}var G9=[],gie={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Wo.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function uh(e){var t=li(e,gie),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:u,offset:c,payloadUniqBy:l,position:d,reverseDirection:h,useTranslate3d:g,wrapperStyle:m,cursor:y,shared:v,trigger:b,defaultIndex:_,portal:E,axisId:S}=t,A=en(),O=typeof _=="number"?String(_):_;k.useEffect(()=>{A(Une({shared:v,trigger:b,axisId:S,active:n,defaultIndex:O}))},[A,v,b,S,n,O]);var P=p0(),j=w7(),$=Fne(v),{activeIndex:z,isActive:I}=ke(re=>Wre(re,$,b,O)),H=ke(re=>Fre(re,$,b,O)),D=ke(re=>ER(re,$,b,O)),C=ke(re=>zre(re,$,b,O)),L=H,N=Yre(),V=n??I,[Z,K]=Nj([L,V]),R=$==="axis"?D:void 0;cie($,b,C,R,z,V);var W=E??N;if(W==null)return null;var U=L??G9;V||(U=G9),s&&U.length&&(U=jj(L.filter(re=>re.value!=null&&(re.hide!==!0||t.includeHidden)),l,hie));var Y=U.length>0,ae=B.createElement(KX,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:u,active:V,coordinate:C,hasPayload:Y,offset:c,position:d,reverseDirection:h,useTranslate3d:g,viewBox:P,wrapperStyle:m,lastBoundingBox:Z,innerRef:K,hasPortalFromProps:!!E},pie(o,U9(U9({},t),{},{payload:U,label:R,active:V,coordinate:C,accessibilityLayer:j})));return B.createElement(B.Fragment,null,R_.createPortal(ae,W),V&&B.createElement(Kre,{cursor:y,tooltipEventType:$,coordinate:C,payload:L,index:z}))}var cb={},lb={},K9;function vie(){return K9||(K9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=0,i={}){typeof i!="object"&&(i={});let a=null,o=null,s=null,u=0,c=null,l;const{leading:d=!1,trailing:h=!0,maxWait:g}=i,m="maxWait"in i,y=m?Math.max(Number(g)||0,r):0,v=P=>(a!==null&&(l=n.apply(o,a)),a=o=null,u=P,l),b=P=>(u=P,c=setTimeout(A,r),d&&a!==null?v(P):l),_=P=>(c=null,h&&a!==null?v(P):l),E=P=>{if(s===null)return!0;const j=P-s,$=j>=r||j<0,z=m&&P-u>=y;return $||z},S=P=>{const j=s===null?0:P-s,$=r-j,z=y-(P-u);return m?Math.min($,z):$},A=()=>{const P=Date.now();if(E(P))return _(P);c=setTimeout(A,S(P))},O=function(...P){const j=Date.now(),$=E(j);if(a=P,o=this,s=j,$){if(c===null)return b(j);if(m)return clearTimeout(c),c=setTimeout(A,r),v(j)}return c===null&&(c=setTimeout(A,r)),l};return O.cancel=()=>{c!==null&&clearTimeout(c),u=0,s=a=o=c=null},O.flush=()=>c===null?l:_(Date.now()),O}e.debounce=t}(lb)),lb}var Y9;function mie(){return Y9||(Y9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vie();function n(r,i=0,a={}){const{leading:o=!0,trailing:s=!0}=a;return t.debounce(r,i,{leading:o,maxWait:i,trailing:s})}e.throttle=n}(cb)),cb}var fb,X9;function yie(){return X9||(X9=1,fb=mie().throttle),fb}var bie=yie();const wie=Va(bie);var xie=process.env.NODE_ENV!=="production",td=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(xie&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(n.replace(/%s/g,()=>i[o++]))}};function Z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function db(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z9(Object(n),!0).forEach(function(r){_ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ie(e,t,n){return(t=Eie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eie(e){var t=Sie(e,"string");return typeof t=="symbol"?t:t+""}function Sie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vu=k.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:s,maxHeight:u,children:c,debounce:l=0,id:d,className:h,onResize:g,style:m={}}=e,y=k.useRef(null),v=k.useRef();v.current=g,k.useImperativeHandle(t,()=>y.current);var[b,_]=k.useState({containerWidth:r.width,containerHeight:r.height}),E=k.useCallback((A,O)=>{_(P=>{var j=Math.round(A),$=Math.round(O);return P.containerWidth===j&&P.containerHeight===$?P:{containerWidth:j,containerHeight:$}})},[]);k.useEffect(()=>{var A=$=>{var z,{width:I,height:H}=$[0].contentRect;E(I,H),(z=v.current)===null||z===void 0||z.call(v,I,H)};l>0&&(A=wie(A,l,{trailing:!0,leading:!1}));var O=new ResizeObserver(A),{width:P,height:j}=y.current.getBoundingClientRect();return E(P,j),O.observe(y.current),()=>{O.disconnect()}},[E,l]);var S=k.useMemo(()=>{var{containerWidth:A,containerHeight:O}=b;if(A<0||O<0)return null;td(ru(i)||ru(a),`The width(%s) and height(%s) are both fixed numbers,
77
+ A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else _+="L".concat(t,",").concat(n,"Z");return _},YZ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Dg=e=>{var t=li(e,YZ),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l,className:d}=t;if(a<i||c===l)return null;var h=Ot("recharts-sector",d),g=a-i,m=zr(o,g,0,!0),y;return m>0&&Math.abs(c-l)<360?y=KZ({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:l}):y=O7({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l}),B.createElement("path",tx({},it(t,!0),{className:h,d:y}))};function XZ(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:s,cy:u,innerRadius:c,outerRadius:l,angle:d}=t,h=Nn(s,u,c,d),g=Nn(s,u,l,d);r=h.x,i=h.y,a=g.x,o=g.y}else return A7(t);return[{x:r,y:i},{x:a,y:o}]}var H1={},U1={},G1={},NP;function ZZ(){return NP||(NP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rj();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(G1)),G1}var LP;function JZ(){return LP||(LP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZZ();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(U1)),U1}var $P;function QZ(){return $P||($P=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ij(),n=JZ();function r(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),o=o===void 0?i<a?1:-1:n.toFinite(o);const s=Math.max(Math.ceil((a-i)/(o||1)),0),u=new Array(s);for(let c=0;c<s;c++)u[c]=i,i+=o;return u}e.range=r}(H1)),H1}var K1,BP;function eJ(){return BP||(BP=1,K1=QZ().range),K1}var tJ=eJ();const T7=Va(tJ);function _n(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function P7(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function g0(e){let t,n,r;e.length!==2?(t=_n,n=(s,u)=>_n(e(s),u),r=(s,u)=>e(s)-u):(t=e===_n||e===P7?e:nJ,n=e,r=e);function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<0?c=d+1:l=d}while(c<l)}return c}function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const d=c+l>>>1;n(s[d],u)<=0?c=d+1:l=d}while(c<l)}return c}function o(s,u,c=0,l=s.length){const d=i(s,u,c,l-1);return d>c&&r(s[d-1],u)>-r(s[d],u)?d-1:d}return{left:i,center:o,right:a}}function nJ(){return 0}function Ng(e){return e===null?NaN:+e}function*rJ(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const C7=g0(_n),Os=C7.right,iJ=C7.left,aJ=g0(Ng).center;function oJ(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=R2(t),i=e.slice();return r(e,i,0,n,1),r(i,e,0,n,1),r(e,i,0,n,1),e}const j7=M7(R2),sJ=M7(uJ);function M7(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:i,width:a,height:o}=t;if(!((a=Math.floor(a))>=0))throw new RangeError("invalid width");if(!((o=Math.floor(o!==void 0?o:i.length/a))>=0))throw new RangeError("invalid height");if(!a||!o||!n&&!r)return t;const s=n&&e(n),u=r&&e(r),c=i.slice();return s&&u?(pc(s,c,i,a,o),pc(s,i,c,a,o),pc(s,c,i,a,o),gc(u,i,c,a,o),gc(u,c,i,a,o),gc(u,i,c,a,o)):s?(pc(s,i,c,a,o),pc(s,c,i,a,o),pc(s,i,c,a,o)):u&&(gc(u,i,c,a,o),gc(u,c,i,a,o),gc(u,i,c,a,o)),t}}function pc(e,t,n,r,i){for(let a=0,o=r*i;a<o;)e(t,n,a,a+=r,1)}function gc(e,t,n,r,i){for(let a=0,o=r*i;a<r;++a)e(t,n,a,a+o,r)}function uJ(e){const t=R2(e);return(n,r,i,a,o)=>{i<<=2,a<<=2,o<<=2,t(n,r,i+0,a+0,o),t(n,r,i+1,a+1,o),t(n,r,i+2,a+2,o),t(n,r,i+3,a+3,o)}}function R2(e){const t=Math.floor(e);if(t===e)return cJ(e);const n=e-t,r=2*e+1;return(i,a,o,s,u)=>{if(!((s-=u)>=o))return;let c=t*a[o];const l=u*t,d=l+u;for(let h=o,g=o+l;h<g;h+=u)c+=a[Math.min(s,h)];for(let h=o,g=s;h<=g;h+=u)c+=a[Math.min(s,h+l)],i[h]=(c+n*(a[Math.max(o,h-d)]+a[Math.min(s,h+d)]))/r,c-=a[Math.max(o,h-l)]}}function cJ(e){const t=2*e+1;return(n,r,i,a,o)=>{if(!((a-=o)>=i))return;let s=e*r[i];const u=o*e;for(let c=i,l=i+u;c<l;c+=o)s+=r[Math.min(a,c)];for(let c=i,l=a;c<=l;c+=o)s+=r[Math.min(a,c+u)],n[c]=s/t,s-=r[Math.max(i,c-u)]}}function v0(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function lJ(e){return e.length|0}function fJ(e){return!(e>0)}function dJ(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function hJ(e){return t=>e(...t)}function pJ(...e){const t=typeof e[e.length-1]=="function"&&hJ(e.pop());e=e.map(dJ);const n=e.map(lJ),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some(fJ))return a;for(;;){a.push(i.map((s,u)=>e[u][s]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function gJ(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?i=>n+=+i||0:i=>n+=+t(i,r++,e)||0)}function k7(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function R7(e,t){const n=k7(e,t);return n&&Math.sqrt(n)}function ed(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Vn{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function vJ(e,t){const n=new Vn;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function mJ(e,t){const n=new Vn;let r=-1;return Float64Array.from(e,t===void 0?i=>n.add(+i||0):i=>n.add(+t(i,++r,e)||0))}class vd extends Map{constructor(t,n=N7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(nx(this,t))}has(t){return super.has(nx(this,t))}set(t,n){return super.set(I7(this,t),n)}delete(t){return super.delete(D7(this,t))}}class Au extends Set{constructor(t,n=N7){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(nx(this,t))}add(t){return super.add(I7(this,t))}delete(t){return super.delete(D7(this,t))}}function nx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function I7({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function D7({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function N7(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tl(e){return e}function L7(e,...t){return Ol(e,tl,tl,t)}function $7(e,...t){return Ol(e,Array.from,tl,t)}function B7(e,t){for(let n=1,r=t.length;n<r;++n)e=e.flatMap(i=>i.pop().map(([a,o])=>[...i,a,o]));return e}function yJ(e,...t){return B7($7(e,...t),t)}function bJ(e,t,...n){return B7(F7(e,t,...n),n)}function z7(e,t,...n){return Ol(e,tl,t,n)}function F7(e,t,...n){return Ol(e,Array.from,t,n)}function wJ(e,...t){return Ol(e,tl,W7,t)}function xJ(e,...t){return Ol(e,Array.from,W7,t)}function W7(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function Ol(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new vd,u=r[o++];let c=-1;for(const l of a){const d=u(l,++c,a),h=s.get(d);h?h.push(l):s.set(d,[l])}for(const[l,d]of s)s.set(l,i(d,o));return t(s)}(e,0)}function q7(e,t){return Array.from(t,n=>e[n])}function rx(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=nl(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>nl(n[i],n[a]))),q7(e,r)}return e.sort(I2(n))}function I2(e=_n){if(e===_n)return nl;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function nl(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function _J(e,t,n){return(t.length!==2?rx(z7(e,t,n),([r,i],[a,o])=>_n(i,o)||_n(r,a)):rx(L7(e,n),([r,i],[a,o])=>t(i,o)||_n(r,a))).map(([r])=>r)}var EJ=Array.prototype,SJ=EJ.slice;function Y1(e){return()=>e}const AJ=Math.sqrt(50),OJ=Math.sqrt(10),TJ=Math.sqrt(2);function Lg(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=AJ?10:a>=OJ?5:a>=TJ?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?Lg(e,t,n*2):[s,u,c]}function Ou(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Lg(t,e,n):Lg(e,t,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function Tu(e,t,n){return t=+t,e=+e,n=+n,Lg(e,t,n)[2]}function $g(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Tu(t,e,n):Tu(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function D2(e,t,n){let r;for(;;){const i=Tu(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function N2(e){return Math.max(1,Math.ceil(Math.log(v0(e))/Math.LN2)+1)}function zP(){var e=tl,t=ed,n=N2;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,u,c=new Array(o);for(a=0;a<o;++a)c[a]=e(i[a],a,i);var l=t(c),d=l[0],h=l[1],g=n(c,d,h);if(!Array.isArray(g)){const E=h,S=+g;if(t===ed&&([d,h]=D2(d,h,S)),g=Ou(d,h,S),g[0]<=d&&(u=Tu(d,h,S)),g[g.length-1]>=h)if(E>=h&&t===ed){const A=Tu(d,h,S);isFinite(A)&&(A>0?h=(Math.floor(h/A)+1)*A:A<0&&(h=(Math.ceil(h*-A)+1)/-A))}else g.pop()}for(var m=g.length,y=0,v=m;g[y]<=d;)++y;for(;g[v-1]>h;)--v;(y||v<m)&&(g=g.slice(y,v),m=v-y);var b=new Array(m+1),_;for(a=0;a<=m;++a)_=b[a]=[],_.x0=a>0?g[a-1]:d,_.x1=a<m?g[a]:h;if(isFinite(u)){if(u>0)for(a=0;a<o;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Math.min(m,Math.floor((s-d)/u))].push(i[a]);else if(u<0){for(a=0;a<o;++a)if((s=c[a])!=null&&d<=s&&s<=h){const E=Math.floor((d-s)*u);b[Math.min(m,E+(g[E]<=s))].push(i[a])}}}else for(a=0;a<o;++a)(s=c[a])!=null&&d<=s&&s<=h&&b[Os(g,s,0,m)].push(i[a]);return b}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:Y1(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:Y1([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:Y1(Array.isArray(i)?SJ.call(i):i),r):n},r}function md(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function L2(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Bg(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function $2(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function m0(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?nl:I2(i);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,l=Math.log(u),d=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*d*(u-d)/u)*(c-u/2<0?-1:1),g=Math.max(n,Math.floor(t-c*d/u+h)),m=Math.min(r,Math.floor(t+(u-c)*d/u+h));m0(e,t,g,m,i)}const a=e[t];let o=n,s=r;for(yf(e,n,t),i(e[r],a)>0&&yf(e,n,r);o<s;){for(yf(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?yf(e,n,s):(++s,yf(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function yf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function V7(e,t=_n){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?_n(o,i)>0:_n(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)>0:t(i,i)===0)&&(n=i,r=!0);return n}function yd(e,t,n){if(e=Float64Array.from(rJ(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Bg(e);if(t>=1)return md(e);var r,i=(r-1)*t,a=Math.floor(i),o=md(m0(e,a).subarray(0,a+1)),s=Bg(e.subarray(a+1));return o+(s-o)*(i-a)}}function H7(e,t,n=Ng){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function U7(e,t,n=Ng){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(s,u)=>Ng(n(e[u],u,e))),t<=0)return $2(r);if(t>=1)return L2(r);var r,i=Uint32Array.from(e,(s,u)=>u),a=r.length-1,o=Math.floor(a*t);return m0(i,o,0,a,(s,u)=>nl(r[s],r[u])),o=V7(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function PJ(e,t,n){const r=v0(e),i=yd(e,.75)-yd(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function CJ(e,t,n){const r=v0(e),i=R7(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function jJ(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function MJ(e,t){return yd(e,.5,t)}function kJ(e,t){return U7(e,.5,t)}function*RJ(e){for(const t of e)yield*t}function B2(e){return Array.from(RJ(e))}function IJ(e,t){const n=new vd;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function DJ(e,t=NJ){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function NJ(e,t){return[e,t]}function vs(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function LJ(e,t=_n){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");let n=Array.from(e);const r=new Float64Array(n.length);t.length!==2&&(n=n.map(t),t=_n);const i=(s,u)=>t(n[s],n[u]);let a,o;return e=Uint32Array.from(n,(s,u)=>u),e.sort(t===_n?(s,u)=>nl(n[s],n[u]):I2(i)),e.forEach((s,u)=>{const c=i(s,a===void 0?s:a);c>=0?((a===void 0||c>0)&&(a=s,o=u),r[s]=o):r[s]=NaN}),r}function $J(e,t=_n){let n,r=!1;if(t.length===1){let i;for(const a of e){const o=t(a);(r?_n(o,i)<0:_n(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of e)(r?t(i,n)<0:t(i,i)===0)&&(n=i,r=!0);return n}function G7(e,t=_n){if(t.length===1)return $2(e,t);let n,r=-1,i=-1;for(const a of e)++i,(r<0?t(a,a)===0:t(a,n)<0)&&(n=a,r=i);return r}function BJ(e,t=_n){if(t.length===1)return L2(e,t);let n,r=-1,i=-1;for(const a of e)++i,(r<0?t(a,a)===0:t(a,n)>0)&&(n=a,r=i);return r}function zJ(e,t){const n=G7(e,t);return n<0?void 0:n}const FJ=K7(Math.random);function K7(e){return function(n,r=0,i=n.length){let a=i-(r=+r);for(;a;){const o=e()*a--|0,s=n[a+r];n[a+r]=n[o+r],n[o+r]=s}return n}}function WJ(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function Y7(e){if(!(a=e.length))return[];for(var t=-1,n=Bg(e,qJ),r=new Array(n);++t<n;)for(var i=-1,a,o=r[t]=new Array(a);++i<a;)o[i]=e[i][t];return r}function qJ(e){return e.length}function VJ(){return Y7(arguments)}function HJ(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function UJ(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function GJ(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function KJ(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}function YJ(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,a,o=-1;if(arguments.length<3){if({done:i,value:n}=r.next(),i)return;++o}for(;{done:i,value:a}=r.next(),!i;)n=t(n,a,++o,e);return n}function XJ(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function ZJ(e,...t){e=new Au(e);for(const n of t)for(const r of n)e.delete(r);return e}function JJ(e,t){const n=t[Symbol.iterator](),r=new Au;for(const i of e){if(r.has(i))return!1;let a,o;for(;({value:a,done:o}=n.next())&&!o;){if(Object.is(i,a))return!1;r.add(a)}}return!0}function QJ(e,...t){e=new Au(e),t=t.map(eQ);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function eQ(e){return e instanceof Au?e:new Au(e)}function X7(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){const a=FP(i);if(r.has(a))continue;let o,s;for(;{value:o,done:s}=n.next();){if(s)return!1;const u=FP(o);if(r.add(u),Object.is(a,u))break}}return!0}function FP(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tQ(e,t){return X7(t,e)}function nQ(...e){const t=new Au;for(const n of e)for(const r of n)t.add(r);return t}function ta(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function qo(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 zg=Symbol("implicit");function y0(){var e=new vd,t=[],n=[],r=zg;function i(a){let o=e.get(a);if(o===void 0){if(r!==zg)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new vd;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return y0(t,n).unknown(r)},ta.apply(i,arguments),i}function b0(){var e=y0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function d(){var h=t().length,g=i<r,m=g?i:r,y=g?r:i;a=(y-m)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),m+=(y-m-a*(h-u))*l,o=a*(1-u),s&&(m=Math.round(m),o=Math.round(o));var v=vs(h).map(function(b){return m+a*b});return n(g?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,d()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),d()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),d()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(l=Math.max(0,Math.min(1,h)),d()):l},e.copy=function(){return b0(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(l)},ta.apply(d(),arguments)}function Z7(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Z7(t())},e}function J7(){return Z7(b0.apply(null,arguments).paddingInner(1))}function Tl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Jd(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function js(){}var Pu=.7,rl=1/Pu,qc="\\s*([+-]?\\d+)\\s*",bd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ra="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rQ=/^#([0-9a-f]{3,8})$/,iQ=new RegExp(`^rgb\\(${qc},${qc},${qc}\\)$`),aQ=new RegExp(`^rgb\\(${Ra},${Ra},${Ra}\\)$`),oQ=new RegExp(`^rgba\\(${qc},${qc},${qc},${bd}\\)$`),sQ=new RegExp(`^rgba\\(${Ra},${Ra},${Ra},${bd}\\)$`),uQ=new RegExp(`^hsl\\(${bd},${Ra},${Ra}\\)$`),cQ=new RegExp(`^hsla\\(${bd},${Ra},${Ra},${bd}\\)$`),WP={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};Tl(js,Ts,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qP,formatHex:qP,formatHex8:lQ,formatHsl:fQ,formatRgb:VP,toString:VP});function qP(){return this.rgb().formatHex()}function lQ(){return this.rgb().formatHex8()}function fQ(){return Q7(this).formatHsl()}function VP(){return this.rgb().formatRgb()}function Ts(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?HP(t):n===3?new Zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sp(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=iQ.exec(e))?new Zn(t[1],t[2],t[3],1):(t=aQ.exec(e))?new Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=oQ.exec(e))?Sp(t[1],t[2],t[3],t[4]):(t=sQ.exec(e))?Sp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uQ.exec(e))?KP(t[1],t[2]/100,t[3]/100,1):(t=cQ.exec(e))?KP(t[1],t[2]/100,t[3]/100,t[4]):WP.hasOwnProperty(e)?HP(WP[e]):e==="transparent"?new Zn(NaN,NaN,NaN,0):null}function HP(e){return new Zn(e>>16&255,e>>8&255,e&255,1)}function Sp(e,t,n,r){return r<=0&&(e=t=n=NaN),new Zn(e,t,n,r)}function z2(e){return e instanceof js||(e=Ts(e)),e?(e=e.rgb(),new Zn(e.r,e.g,e.b,e.opacity)):new Zn}function il(e,t,n,r){return arguments.length===1?z2(e):new Zn(e,t,n,r??1)}function Zn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Tl(Zn,il,Jd(js,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Pu:Math.pow(Pu,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zn(gu(this.r),gu(this.g),gu(this.b),Fg(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:UP,formatHex:UP,formatHex8:dQ,formatRgb:GP,toString:GP}));function UP(){return`#${au(this.r)}${au(this.g)}${au(this.b)}`}function dQ(){return`#${au(this.r)}${au(this.g)}${au(this.b)}${au((isNaN(this.opacity)?1:this.opacity)*255)}`}function GP(){const e=Fg(this.opacity);return`${e===1?"rgb(":"rgba("}${gu(this.r)}, ${gu(this.g)}, ${gu(this.b)}${e===1?")":`, ${e})`}`}function Fg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function au(e){return e=gu(e),(e<16?"0":"")+e.toString(16)}function KP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ha(e,t,n,r)}function Q7(e){if(e instanceof ha)return new ha(e.h,e.s,e.l,e.opacity);if(e instanceof js||(e=Ts(e)),!e)return new ha;if(e instanceof ha)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new ha(o,s,u,e.opacity)}function Wg(e,t,n,r){return arguments.length===1?Q7(e):new ha(e,t,n,r??1)}function ha(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Tl(ha,Wg,Jd(js,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new ha(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pu:Math.pow(Pu,e),new ha(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Zn(X1(e>=240?e-240:e+120,i,r),X1(e,i,r),X1(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ha(YP(this.h),Ap(this.s),Ap(this.l),Fg(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=Fg(this.opacity);return`${e===1?"hsl(":"hsla("}${YP(this.h)}, ${Ap(this.s)*100}%, ${Ap(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YP(e){return e=(e||0)%360,e<0?e+360:e}function Ap(e){return Math.max(0,Math.min(1,e||0))}function X1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const eM=Math.PI/180,tM=180/Math.PI,qg=18,nM=.96422,rM=1,iM=.82521,aM=4/29,Vc=6/29,oM=3*Vc*Vc,hQ=Vc*Vc*Vc;function sM(e){if(e instanceof va)return new va(e.l,e.a,e.b,e.opacity);if(e instanceof ja)return cM(e);e instanceof Zn||(e=z2(e));var t=eb(e.r),n=eb(e.g),r=eb(e.b),i=Z1((.2225045*t+.7168786*n+.0606169*r)/rM),a,o;return t===n&&n===r?a=o=i:(a=Z1((.4360747*t+.3850649*n+.1430804*r)/nM),o=Z1((.0139322*t+.0971045*n+.7141733*r)/iM)),new va(116*i-16,500*(a-i),200*(i-o),e.opacity)}function pQ(e,t){return new va(e,0,0,t??1)}function Vg(e,t,n,r){return arguments.length===1?sM(e):new va(e,t,n,r??1)}function va(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Tl(va,Vg,Jd(js,{brighter(e){return new va(this.l+qg*(e??1),this.a,this.b,this.opacity)},darker(e){return new va(this.l-qg*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nM*J1(t),e=rM*J1(e),n=iM*J1(n),new Zn(Q1(3.1338561*t-1.6168667*e-.4906146*n),Q1(-.9787684*t+1.9161415*e+.033454*n),Q1(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function Z1(e){return e>hQ?Math.pow(e,1/3):e/oM+aM}function J1(e){return e>Vc?e*e*e:oM*(e-aM)}function Q1(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function eb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uM(e){if(e instanceof ja)return new ja(e.h,e.c,e.l,e.opacity);if(e instanceof va||(e=sM(e)),e.a===0&&e.b===0)return new ja(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tM;return new ja(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function gQ(e,t,n,r){return arguments.length===1?uM(e):new ja(n,t,e,r??1)}function Hg(e,t,n,r){return arguments.length===1?uM(e):new ja(e,t,n,r??1)}function ja(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function cM(e){if(isNaN(e.h))return new va(e.l,0,0,e.opacity);var t=e.h*eM;return new va(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Tl(ja,Hg,Jd(js,{brighter(e){return new ja(this.h,this.c,this.l+qg*(e??1),this.opacity)},darker(e){return new ja(this.h,this.c,this.l-qg*(e??1),this.opacity)},rgb(){return cM(this).rgb()}}));var lM=-.14861,F2=1.78277,W2=-.29227,w0=-.90649,wd=1.97294,XP=wd*w0,ZP=wd*F2,JP=F2*W2-w0*lM;function vQ(e){if(e instanceof vu)return new vu(e.h,e.s,e.l,e.opacity);e instanceof Zn||(e=z2(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(JP*r+XP*t-ZP*n)/(JP+XP-ZP),a=r-i,o=(wd*(n-i)-W2*a)/w0,s=Math.sqrt(o*o+a*a)/(wd*i*(1-i)),u=s?Math.atan2(o,a)*tM-120:NaN;return new vu(u<0?u+360:u,s,i,e.opacity)}function ya(e,t,n,r){return arguments.length===1?vQ(e):new vu(e,t,n,r??1)}function vu(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Tl(vu,ya,Jd(js,{brighter(e){return e=e==null?rl:Math.pow(rl,e),new vu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Pu:Math.pow(Pu,e),new vu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*eM,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Zn(255*(t+n*(lM*r+F2*i)),255*(t+n*(W2*r+w0*i)),255*(t+n*(wd*r)),this.opacity)}}));function fM(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function dM(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return fM((n-r/t)*t,o,i,a,s)}}function hM(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],a=e[r%t],o=e[(r+1)%t],s=e[(r+2)%t];return fM((n-r/t)*t,i,a,o,s)}}const x0=e=>()=>e;function pM(e,t){return function(n){return e+n*t}}function mQ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function _0(e,t){var n=t-e;return n?pM(e,n>180||n<-180?n-360*Math.round(n/360):n):x0(isNaN(e)?t:e)}function yQ(e){return(e=+e)==1?Jn:function(t,n){return n-t?mQ(t,n,e):x0(isNaN(t)?n:t)}}function Jn(e,t){var n=t-e;return n?pM(e,n):x0(isNaN(e)?t:e)}const xd=function e(t){var n=yQ(t);function r(i,a){var o=n((i=il(i)).r,(a=il(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Jn(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=c(l),i+""}}return r.gamma=e,r}(1);function gM(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=il(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=a(u),s+""}}}var vM=gM(dM),bQ=gM(hM);function q2(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function mM(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wQ(e,t){return(mM(t)?q2:yM)(e,t)}function yM(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Ms(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function bM(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function wM(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ms(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var ix=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tb=new RegExp(ix.source,"g");function xQ(e){return function(){return e}}function _Q(e){return function(t){return e(t)+""}}function V2(e,t){var n=ix.lastIndex=tb.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=ix.exec(e))&&(i=tb.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Gi(r,i)})),n=tb.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?_Q(u[0].x):xQ(t):(t=u.length,function(c){for(var l=0,d;l<t;++l)s[(d=u[l]).i]=d.x(c);return s.join("")})}function Ms(e,t){var n=typeof t,r;return t==null||n==="boolean"?x0(t):(n==="number"?Gi:n==="string"?(r=Ts(t))?(t=r,xd):V2:t instanceof Ts?xd:t instanceof Date?bM:mM(t)?q2:Array.isArray(t)?yM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?wM:Gi)(e,t)}function EQ(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function SQ(e,t){var n=_0(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function E0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var QP=180/Math.PI,ax={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xM(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*QP,skewX:Math.atan(u)*QP,scaleX:o,scaleY:s}}var Op;function AQ(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ax:xM(t.a,t.b,t.c,t.d,t.e,t.f)}function OQ(e){return e==null||(Op||(Op=document.createElementNS("http://www.w3.org/2000/svg","g")),Op.setAttribute("transform",e),!(e=Op.transform.baseVal.consolidate()))?ax:(e=e.matrix,xM(e.a,e.b,e.c,e.d,e.e,e.f))}function _M(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,l,d,h,g,m){if(c!==d||l!==h){var y=g.push("translate(",null,t,null,n);m.push({i:y-4,x:Gi(c,d)},{i:y-2,x:Gi(l,h)})}else(d||h)&&g.push("translate("+d+t+h+n)}function o(c,l,d,h){c!==l?(c-l>180?l+=360:l-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Gi(c,l)})):l&&d.push(i(d)+"rotate("+l+r)}function s(c,l,d,h){c!==l?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Gi(c,l)}):l&&d.push(i(d)+"skewX("+l+r)}function u(c,l,d,h,g,m){if(c!==d||l!==h){var y=g.push(i(g)+"scale(",null,",",null,")");m.push({i:y-4,x:Gi(c,d)},{i:y-2,x:Gi(l,h)})}else(d!==1||h!==1)&&g.push(i(g)+"scale("+d+","+h+")")}return function(c,l){var d=[],h=[];return c=e(c),l=e(l),a(c.translateX,c.translateY,l.translateX,l.translateY,d,h),o(c.rotate,l.rotate,d,h),s(c.skewX,l.skewX,d,h),u(c.scaleX,c.scaleY,l.scaleX,l.scaleY,d,h),c=l=null,function(g){for(var m=-1,y=h.length,v;++m<y;)d[(v=h[m]).i]=v.x(g);return d.join("")}}}var EM=_M(AQ,"px, ","px)","deg)"),SM=_M(OQ,", ",")",")"),TQ=1e-12;function e9(e){return((e=Math.exp(e))+1/e)/2}function PQ(e){return((e=Math.exp(e))-1/e)/2}function CQ(e){return((e=Math.exp(2*e))-1)/(e+1)}const AM=function e(t,n,r){function i(a,o){var s=a[0],u=a[1],c=a[2],l=o[0],d=o[1],h=o[2],g=l-s,m=d-u,y=g*g+m*m,v,b;if(y<TQ)b=Math.log(h/c)/t,v=function(P){return[s+P*g,u+P*m,c*Math.exp(t*P*b)]};else{var _=Math.sqrt(y),E=(h*h-c*c+r*y)/(2*c*n*_),S=(h*h-c*c-r*y)/(2*h*n*_),A=Math.log(Math.sqrt(E*E+1)-E),O=Math.log(Math.sqrt(S*S+1)-S);b=(O-A)/t,v=function(P){var j=P*b,$=e9(A),z=c/(n*_)*($*CQ(t*j+A)-PQ(A));return[s+z*g,u+z*m,c*$/e9(t*j+A)]}}return v.duration=b*1e3*t/Math.SQRT2,v}return i.rho=function(a){var o=Math.max(.001,+a),s=o*o,u=s*s;return e(o,s,u)},i}(Math.SQRT2,2,4);function OM(e){return function(t,n){var r=e((t=Wg(t)).h,(n=Wg(n)).h),i=Jn(t.s,n.s),a=Jn(t.l,n.l),o=Jn(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const jQ=OM(_0);var MQ=OM(Jn);function kQ(e,t){var n=Jn((e=Vg(e)).l,(t=Vg(t)).l),r=Jn(e.a,t.a),i=Jn(e.b,t.b),a=Jn(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function TM(e){return function(t,n){var r=e((t=Hg(t)).h,(n=Hg(n)).h),i=Jn(t.c,n.c),a=Jn(t.l,n.l),o=Jn(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const RQ=TM(_0);var IQ=TM(Jn);function PM(e){return function t(n){n=+n;function r(i,a){var o=e((i=ya(i)).h,(a=ya(a)).h),s=Jn(i.s,a.s),u=Jn(i.l,a.l),c=Jn(i.opacity,a.opacity);return function(l){return i.h=o(l),i.s=s(l),i.l=u(Math.pow(l,n)),i.opacity=c(l),i+""}}return r.gamma=t,r}(1)}const DQ=PM(_0);var S0=PM(Jn);function CM(e,t){t===void 0&&(t=e,e=Ms);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function NQ(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function LQ(e){return function(){return e}}function Ug(e){return+e}var t9=[0,1];function Br(e){return e}function ox(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:LQ(isNaN(t)?NaN:.5)}function $Q(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BQ(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=ox(i,r),a=n(o,a)):(r=ox(r,i),a=n(a,o)),function(s){return a(r(s))}}function zQ(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=ox(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=Os(e,s,1,r)-1;return a[u](i[u](s))}}function Qd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function A0(){var e=t9,t=t9,n=Ms,r,i,a,o=Br,s,u,c;function l(){var h=Math.min(e.length,t.length);return o!==Br&&(o=$Q(e[0],e[h-1])),s=h>2?zQ:BQ,u=c=null,d}function d(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(r),t,n)))(r(o(h)))}return d.invert=function(h){return o(i((c||(c=s(t,e.map(r),Gi)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Ug),l()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),l()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=E0,l()},d.clamp=function(h){return arguments.length?(o=h?!0:Br,l()):o!==Br},d.interpolate=function(h){return arguments.length?(n=h,l()):n},d.unknown=function(h){return arguments.length?(a=h,d):a},function(h,g){return r=h,i=g,l()}}function H2(){return A0()(Br,Br)}function FQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gg(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function al(e){return e=Gg(Math.abs(e)),e?e[1]:NaN}function WQ(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function qQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var VQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ol(e){if(!(t=VQ.exec(e)))throw new Error("invalid format: "+e);var t;return new O0({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]})}ol.prototype=O0.prototype;function O0(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+""}O0.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 HQ(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var jM;function UQ(e,t){var n=Gg(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(jM=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Gg(e,Math.max(0,t+a-1))[0]}function n9(e,t){var n=Gg(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const r9={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:FQ,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)=>n9(e*100,t),r:n9,s:UQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function i9(e){return e}var a9=Array.prototype.map,o9=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function MM(e){var t=e.grouping===void 0||e.thousands===void 0?i9:WQ(a9.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?i9:qQ(a9.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(d){d=ol(d);var h=d.fill,g=d.align,m=d.sign,y=d.symbol,v=d.zero,b=d.width,_=d.comma,E=d.precision,S=d.trim,A=d.type;A==="n"?(_=!0,A="g"):r9[A]||(E===void 0&&(E=12),S=!0,A="g"),(v||h==="0"&&g==="=")&&(v=!0,h="0",g="=");var O=y==="$"?n:y==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",P=y==="$"?r:/[%p]/.test(A)?o:"",j=r9[A],$=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function z(I){var H=O,D=P,C,L,N;if(A==="c")D=j(I)+D,I="";else{I=+I;var V=I<0||1/I<0;if(I=isNaN(I)?u:j(Math.abs(I),E),S&&(I=HQ(I)),V&&+I==0&&m!=="+"&&(V=!1),H=(V?m==="("?m:s:m==="-"||m==="("?"":m)+H,D=(A==="s"?o9[8+jM/3]:"")+D+(V&&m==="("?")":""),$){for(C=-1,L=I.length;++C<L;)if(N=I.charCodeAt(C),48>N||N>57){D=(N===46?i+I.slice(C+1):I.slice(C))+D,I=I.slice(0,C);break}}}_&&!v&&(I=t(I,1/0));var Z=H.length+I.length+D.length,K=Z<b?new Array(b-Z+1).join(h):"";switch(_&&v&&(I=t(K+I,K.length?b-D.length:1/0),K=""),g){case"<":I=H+I+D+K;break;case"=":I=H+K+I+D;break;case"^":I=K.slice(0,Z=K.length>>1)+H+I+D+K.slice(Z);break;default:I=K+H+I+D;break}return a(I)}return z.toString=function(){return d+""},z}function l(d,h){var g=c((d=ol(d),d.type="f",d)),m=Math.max(-8,Math.min(8,Math.floor(al(h)/3)))*3,y=Math.pow(10,-m),v=o9[8+m/3];return function(b){return g(y*b)+v}}return{format:c,formatPrefix:l}}var Tp,T0,U2;kM({thousands:",",grouping:[3],currency:["$",""]});function kM(e){return Tp=MM(e),T0=Tp.format,U2=Tp.formatPrefix,Tp}function RM(e){return Math.max(0,-al(Math.abs(e)))}function IM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(al(t)/3)))*3-al(Math.abs(e)))}function DM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,al(t)-al(e))+1}function G2(e,t,n,r){var i=$g(e,t,n),a;switch(r=ol(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=IM(i,o))&&(r.precision=a),U2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=DM(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=RM(i))&&(r.precision=a-(r.type==="%")*2);break}}return T0(r)}function ks(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ou(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return G2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);l-- >0;){if(c=Tu(o,s,n),c===u)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function K2(){var e=H2();return e.copy=function(){return Qd(e,K2())},ta.apply(e,arguments),ks(e)}function Y2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Ug),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Y2(e).unknown(t)},e=arguments.length?Array.from(e,Ug):[0,1],ks(n)}function NM(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function s9(e){return Math.log(e)}function u9(e){return Math.exp(e)}function GQ(e){return-Math.log(-e)}function KQ(e){return-Math.exp(-e)}function YQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function XQ(e){return e===10?YQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function ZQ(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 c9(e){return(t,n)=>-e(-t,n)}function X2(e){const t=e(s9,u9),n=t.domain;let r=10,i,a;function o(){return i=ZQ(r),a=XQ(r),n()[0]<0?(i=c9(i),a=c9(a),e(GQ,KQ)):e(s9,u9),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],l=u[u.length-1];const d=l<c;d&&([c,l]=[l,c]);let h=i(c),g=i(l),m,y;const v=s==null?10:+s;let b=[];if(!(r%1)&&g-h<v){if(h=Math.floor(h),g=Math.ceil(g),c>0){for(;h<=g;++h)for(m=1;m<r;++m)if(y=h<0?m/a(-h):m*a(h),!(y<c)){if(y>l)break;b.push(y)}}else for(;h<=g;++h)for(m=r-1;m>=1;--m)if(y=h>0?m/a(-h):m*a(h),!(y<c)){if(y>l)break;b.push(y)}b.length*2<v&&(b=Ou(c,l,v))}else b=Ou(h,g,Math.min(g-h,v)).map(a);return d?b.reverse():b},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=ol(u)).precision==null&&(u.trim=!0),u=T0(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return l=>{let d=l/a(Math.round(i(l)));return d*r<r-.5&&(d*=r),d<=c?u(l):""}},t.nice=()=>n(NM(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Z2(){const e=X2(A0()).domain([1,10]);return e.copy=()=>Qd(e,Z2()).base(e.base()),ta.apply(e,arguments),e}function l9(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function f9(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function J2(e){var t=1,n=e(l9(t),f9(t));return n.constant=function(r){return arguments.length?e(l9(t=+r),f9(t)):t},ks(n)}function Q2(){var e=J2(A0());return e.copy=function(){return Qd(e,Q2()).constant(e.constant())},ta.apply(e,arguments)}function d9(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function JQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function QQ(e){return e<0?-e*e:e*e}function eE(e){var t=e(Br,Br),n=1;function r(){return n===1?e(Br,Br):n===.5?e(JQ,QQ):e(d9(n),d9(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ks(t)}function P0(){var e=eE(A0());return e.copy=function(){return Qd(e,P0()).exponent(e.exponent())},ta.apply(e,arguments),e}function LM(){return P0.apply(null,arguments).exponent(.5)}function h9(e){return Math.sign(e)*e*e}function eee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tE(){var e=H2(),t=[0,1],n=!1,r;function i(a){var o=eee(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(h9(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Ug)).map(h9)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return tE(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ta.apply(i,arguments),ks(i)}function nE(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=H7(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Os(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(_n),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return nE().domain(e).range(t).unknown(r)},ta.apply(a,arguments)}function rE(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Os(r,u,0,n)]:a}function s(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var c=i.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return r.slice()},o.copy=function(){return rE().domain([e,t]).range(i).unknown(a)},ta.apply(ks(o),arguments)}function iE(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Os(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return iE().domain(e).range(t).unknown(n)},ta.apply(i,arguments)}const nb=new Date,rb=new Date;function $n(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>$n(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(nb.setTime(+a),rb.setTime(+o),e(nb),e(rb),Math.floor(n(nb,rb))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const sl=$n(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?$n(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sl);const p9=sl.range,Eo=1e3,Yi=Eo*60,So=Yi*60,Io=So*24,aE=Io*7,g9=Io*30,ib=Io*365,Ao=$n(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Eo)},(e,t)=>(t-e)/Eo,e=>e.getUTCSeconds()),v9=Ao.range,C0=$n(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getMinutes()),tee=C0.range,j0=$n(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getUTCMinutes()),nee=j0.range,M0=$n(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Eo-e.getMinutes()*Yi)},(e,t)=>{e.setTime(+e+t*So)},(e,t)=>(t-e)/So,e=>e.getHours()),ree=M0.range,k0=$n(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*So)},(e,t)=>(t-e)/So,e=>e.getUTCHours()),iee=k0.range,Pl=$n(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yi)/Io,e=>e.getDate()-1),aee=Pl.range,eh=$n(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Io,e=>e.getUTCDate()-1),oee=eh.range,oE=$n(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Io,e=>Math.floor(e/Io)),see=oE.range;function Bu(e){return $n(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yi)/aE)}const ul=Bu(0),_d=Bu(1),$M=Bu(2),BM=Bu(3),Cu=Bu(4),zM=Bu(5),FM=Bu(6),m9=ul.range,uee=_d.range,cee=$M.range,lee=BM.range,fee=Cu.range,dee=zM.range,hee=FM.range;function zu(e){return $n(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/aE)}const cl=zu(0),Ed=zu(1),WM=zu(2),qM=zu(3),ju=zu(4),VM=zu(5),HM=zu(6),y9=cl.range,pee=Ed.range,gee=WM.range,vee=qM.range,mee=ju.range,yee=VM.range,bee=HM.range,R0=$n(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()),wee=R0.range,I0=$n(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()),xee=I0.range,La=$n(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());La.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$n(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const _ee=La.range,$a=$n(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());$a.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:$n(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const Eee=$a.range;function UM(e,t,n,r,i,a){const o=[[Ao,1,Eo],[Ao,5,5*Eo],[Ao,15,15*Eo],[Ao,30,30*Eo],[a,1,Yi],[a,5,5*Yi],[a,15,15*Yi],[a,30,30*Yi],[i,1,So],[i,3,3*So],[i,6,6*So],[i,12,12*So],[r,1,Io],[r,2,2*Io],[n,1,aE],[t,1,g9],[t,3,3*g9],[e,1,ib]];function s(c,l,d){const h=l<c;h&&([c,l]=[l,c]);const g=d&&typeof d.range=="function"?d:u(c,l,d),m=g?g.range(c,+l+1):[];return h?m.reverse():m}function u(c,l,d){const h=Math.abs(l-c)/d,g=g0(([,,v])=>v).right(o,h);if(g===o.length)return e.every($g(c/ib,l/ib,d));if(g===0)return sl.every(Math.max($g(c,l,d),1));const[m,y]=o[h/o[g-1][2]<o[g][2]/h?g-1:g];return m.every(y)}return[s,u]}const[GM,KM]=UM($a,I0,cl,oE,k0,j0),[YM,XM]=UM(La,R0,ul,Pl,M0,C0);function ab(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 ob(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 bf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ZM(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=wf(i),l=xf(i),d=wf(a),h=xf(a),g=wf(o),m=xf(o),y=wf(s),v=xf(s),b=wf(u),_=xf(u),E={a:V,A:Z,b:K,B:R,c:null,d:S9,e:S9,f:Uee,g:nte,G:ite,H:qee,I:Vee,j:Hee,L:JM,m:Gee,M:Kee,p:W,q:U,Q:T9,s:P9,S:Yee,u:Xee,U:Zee,V:Jee,w:Qee,W:ete,x:null,X:null,y:tte,Y:rte,Z:ate,"%":O9},S={a:Y,A:ae,b:re,B:ge,c:null,d:A9,e:A9,f:cte,g:bte,G:xte,H:ote,I:ste,j:ute,L:ek,m:lte,M:fte,p:ye,q:_e,Q:T9,s:P9,S:dte,u:hte,U:pte,V:gte,w:vte,W:mte,x:null,X:null,y:yte,Y:wte,Z:_te,"%":O9},A={a:z,A:I,b:H,B:D,c:C,d:_9,e:_9,f:Bee,g:x9,G:w9,H:E9,I:E9,j:Dee,L:$ee,m:Iee,M:Nee,p:$,q:Ree,Q:Fee,s:Wee,S:Lee,u:Pee,U:Cee,V:jee,w:Tee,W:Mee,x:L,X:N,y:x9,Y:w9,Z:kee,"%":zee};E.x=O(n,E),E.X=O(r,E),E.c=O(t,E),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(ce,pe){return function(Oe){var oe=[],Re=-1,$e=0,Qe=ce.length,Ze,Se,at;for(Oe instanceof Date||(Oe=new Date(+Oe));++Re<Qe;)ce.charCodeAt(Re)===37&&(oe.push(ce.slice($e,Re)),(Se=b9[Ze=ce.charAt(++Re)])!=null?Ze=ce.charAt(++Re):Se=Ze==="e"?" ":"0",(at=pe[Ze])&&(Ze=at(Oe,Se)),oe.push(Ze),$e=Re+1);return oe.push(ce.slice($e,Re)),oe.join("")}}function P(ce,pe){return function(Oe){var oe=bf(1900,void 0,1),Re=j(oe,ce,Oe+="",0),$e,Qe;if(Re!=Oe.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(pe&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;"w"in oe||(oe.w=1),"Z"in oe?($e=ob(bf(oe.y,0,1)),Qe=$e.getUTCDay(),$e=Qe>4||Qe===0?Ed.ceil($e):Ed($e),$e=eh.offset($e,(oe.V-1)*7),oe.y=$e.getUTCFullYear(),oe.m=$e.getUTCMonth(),oe.d=$e.getUTCDate()+(oe.w+6)%7):($e=ab(bf(oe.y,0,1)),Qe=$e.getDay(),$e=Qe>4||Qe===0?_d.ceil($e):_d($e),$e=Pl.offset($e,(oe.V-1)*7),oe.y=$e.getFullYear(),oe.m=$e.getMonth(),oe.d=$e.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Qe="Z"in oe?ob(bf(oe.y,0,1)).getUTCDay():ab(bf(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Qe+5)%7:oe.w+oe.U*7-(Qe+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,ob(oe)):ab(oe)}}function j(ce,pe,Oe,oe){for(var Re=0,$e=pe.length,Qe=Oe.length,Ze,Se;Re<$e;){if(oe>=Qe)return-1;if(Ze=pe.charCodeAt(Re++),Ze===37){if(Ze=pe.charAt(Re++),Se=A[Ze in b9?pe.charAt(Re++):Ze],!Se||(oe=Se(ce,Oe,oe))<0)return-1}else if(Ze!=Oe.charCodeAt(oe++))return-1}return oe}function $(ce,pe,Oe){var oe=c.exec(pe.slice(Oe));return oe?(ce.p=l.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function z(ce,pe,Oe){var oe=g.exec(pe.slice(Oe));return oe?(ce.w=m.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function I(ce,pe,Oe){var oe=d.exec(pe.slice(Oe));return oe?(ce.w=h.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function H(ce,pe,Oe){var oe=b.exec(pe.slice(Oe));return oe?(ce.m=_.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function D(ce,pe,Oe){var oe=y.exec(pe.slice(Oe));return oe?(ce.m=v.get(oe[0].toLowerCase()),Oe+oe[0].length):-1}function C(ce,pe,Oe){return j(ce,t,pe,Oe)}function L(ce,pe,Oe){return j(ce,n,pe,Oe)}function N(ce,pe,Oe){return j(ce,r,pe,Oe)}function V(ce){return o[ce.getDay()]}function Z(ce){return a[ce.getDay()]}function K(ce){return u[ce.getMonth()]}function R(ce){return s[ce.getMonth()]}function W(ce){return i[+(ce.getHours()>=12)]}function U(ce){return 1+~~(ce.getMonth()/3)}function Y(ce){return o[ce.getUTCDay()]}function ae(ce){return a[ce.getUTCDay()]}function re(ce){return u[ce.getUTCMonth()]}function ge(ce){return s[ce.getUTCMonth()]}function ye(ce){return i[+(ce.getUTCHours()>=12)]}function _e(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var pe=O(ce+="",E);return pe.toString=function(){return ce},pe},parse:function(ce){var pe=P(ce+="",!1);return pe.toString=function(){return ce},pe},utcFormat:function(ce){var pe=O(ce+="",S);return pe.toString=function(){return ce},pe},utcParse:function(ce){var pe=P(ce+="",!0);return pe.toString=function(){return ce},pe}}}var b9={"-":"",_:" ",0:"0"},er=/^\s*\d+/,See=/^%/,Aee=/[\\^$*+?|[\]().{}]/g;function Nt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Oee(e){return e.replace(Aee,"\\$&")}function wf(e){return new RegExp("^(?:"+e.map(Oee).join("|")+")","i")}function xf(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tee(e,t,n){var r=er.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Pee(e,t,n){var r=er.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Cee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Mee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function w9(e,t,n){var r=er.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function x9(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kee(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ree(e,t,n){var r=er.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Iee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _9(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Dee(e,t,n){var r=er.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function E9(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Nee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Lee(e,t,n){var r=er.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $ee(e,t,n){var r=er.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bee(e,t,n){var r=er.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zee(e,t,n){var r=See.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fee(e,t,n){var r=er.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Wee(e,t,n){var r=er.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function S9(e,t){return Nt(e.getDate(),t,2)}function qee(e,t){return Nt(e.getHours(),t,2)}function Vee(e,t){return Nt(e.getHours()%12||12,t,2)}function Hee(e,t){return Nt(1+Pl.count(La(e),e),t,3)}function JM(e,t){return Nt(e.getMilliseconds(),t,3)}function Uee(e,t){return JM(e,t)+"000"}function Gee(e,t){return Nt(e.getMonth()+1,t,2)}function Kee(e,t){return Nt(e.getMinutes(),t,2)}function Yee(e,t){return Nt(e.getSeconds(),t,2)}function Xee(e){var t=e.getDay();return t===0?7:t}function Zee(e,t){return Nt(ul.count(La(e)-1,e),t,2)}function QM(e){var t=e.getDay();return t>=4||t===0?Cu(e):Cu.ceil(e)}function Jee(e,t){return e=QM(e),Nt(Cu.count(La(e),e)+(La(e).getDay()===4),t,2)}function Qee(e){return e.getDay()}function ete(e,t){return Nt(_d.count(La(e)-1,e),t,2)}function tte(e,t){return Nt(e.getFullYear()%100,t,2)}function nte(e,t){return e=QM(e),Nt(e.getFullYear()%100,t,2)}function rte(e,t){return Nt(e.getFullYear()%1e4,t,4)}function ite(e,t){var n=e.getDay();return e=n>=4||n===0?Cu(e):Cu.ceil(e),Nt(e.getFullYear()%1e4,t,4)}function ate(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Nt(t/60|0,"0",2)+Nt(t%60,"0",2)}function A9(e,t){return Nt(e.getUTCDate(),t,2)}function ote(e,t){return Nt(e.getUTCHours(),t,2)}function ste(e,t){return Nt(e.getUTCHours()%12||12,t,2)}function ute(e,t){return Nt(1+eh.count($a(e),e),t,3)}function ek(e,t){return Nt(e.getUTCMilliseconds(),t,3)}function cte(e,t){return ek(e,t)+"000"}function lte(e,t){return Nt(e.getUTCMonth()+1,t,2)}function fte(e,t){return Nt(e.getUTCMinutes(),t,2)}function dte(e,t){return Nt(e.getUTCSeconds(),t,2)}function hte(e){var t=e.getUTCDay();return t===0?7:t}function pte(e,t){return Nt(cl.count($a(e)-1,e),t,2)}function tk(e){var t=e.getUTCDay();return t>=4||t===0?ju(e):ju.ceil(e)}function gte(e,t){return e=tk(e),Nt(ju.count($a(e),e)+($a(e).getUTCDay()===4),t,2)}function vte(e){return e.getUTCDay()}function mte(e,t){return Nt(Ed.count($a(e)-1,e),t,2)}function yte(e,t){return Nt(e.getUTCFullYear()%100,t,2)}function bte(e,t){return e=tk(e),Nt(e.getUTCFullYear()%100,t,2)}function wte(e,t){return Nt(e.getUTCFullYear()%1e4,t,4)}function xte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ju(e):ju.ceil(e),Nt(e.getUTCFullYear()%1e4,t,4)}function _te(){return"+0000"}function O9(){return"%"}function T9(e){return+e}function P9(e){return Math.floor(+e/1e3)}var vc,sE,nk,D0,uE;rk({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 rk(e){return vc=ZM(e),sE=vc.format,nk=vc.parse,D0=vc.utcFormat,uE=vc.utcParse,vc}var ik="%Y-%m-%dT%H:%M:%S.%LZ";function Ete(e){return e.toISOString()}var Ste=Date.prototype.toISOString?Ete:D0(ik);function Ate(e){var t=new Date(e);return isNaN(t)?null:t}var Ote=+new Date("2000-01-01T00:00:00.000Z")?Ate:uE(ik);function Tte(e){return new Date(e)}function Pte(e){return e instanceof Date?+e:+new Date(+e)}function cE(e,t,n,r,i,a,o,s,u,c){var l=H2(),d=l.invert,h=l.domain,g=c(".%L"),m=c(":%S"),y=c("%I:%M"),v=c("%I %p"),b=c("%a %d"),_=c("%b %d"),E=c("%B"),S=c("%Y");function A(O){return(u(O)<O?g:s(O)<O?m:o(O)<O?y:a(O)<O?v:r(O)<O?i(O)<O?b:_:n(O)<O?E:S)(O)}return l.invert=function(O){return new Date(d(O))},l.domain=function(O){return arguments.length?h(Array.from(O,Pte)):h().map(Tte)},l.ticks=function(O){var P=h();return e(P[0],P[P.length-1],O??10)},l.tickFormat=function(O,P){return P==null?A:c(P)},l.nice=function(O){var P=h();return(!O||typeof O.range!="function")&&(O=t(P[0],P[P.length-1],O??10)),O?h(NM(P,O)):l},l.copy=function(){return Qd(l,cE(e,t,n,r,i,a,o,s,u,c))},l}function ak(){return ta.apply(cE(YM,XM,La,R0,ul,Pl,M0,C0,Ao,sE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ok(){return ta.apply(cE(GM,KM,$a,I0,cl,eh,k0,j0,Ao,D0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function N0(){var e=0,t=1,n,r,i,a,o=Br,s=!1,u;function c(d){return d==null||isNaN(d=+d)?u:o(i===0?.5:(d=(a(d)-n)*i,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(o=d,c):o};function l(d){return function(h){var g,m;return arguments.length?([g,m]=h,o=d(g,m),c):[o(0),o(1)]}}return c.range=l(Ms),c.rangeRound=l(E0),c.unknown=function(d){return arguments.length?(u=d,c):u},function(d){return a=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),c}}function Rs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lE(){var e=ks(N0()(Br));return e.copy=function(){return Rs(e,lE())},qo.apply(e,arguments)}function fE(){var e=X2(N0()).domain([1,10]);return e.copy=function(){return Rs(e,fE()).base(e.base())},qo.apply(e,arguments)}function dE(){var e=J2(N0());return e.copy=function(){return Rs(e,dE()).constant(e.constant())},qo.apply(e,arguments)}function L0(){var e=eE(N0());return e.copy=function(){return Rs(e,L0()).exponent(e.exponent())},qo.apply(e,arguments)}function sk(){return L0.apply(null,arguments).exponent(.5)}function hE(){var e=[],t=Br;function n(r){if(r!=null&&!isNaN(r=+r))return t((Os(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_n),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>yd(e,a/r))},n.copy=function(){return hE(t).domain(e)},qo.apply(n,arguments)}function $0(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Br,l,d=!1,h;function g(y){return isNaN(y=+y)?h:(y=.5+((y=+l(y))-a)*(r*y<r*a?s:u),c(d?Math.max(0,Math.min(1,y)):y))}g.domain=function(y){return arguments.length?([e,t,n]=y,i=l(e=+e),a=l(t=+t),o=l(n=+n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,g):[e,t,n]},g.clamp=function(y){return arguments.length?(d=!!y,g):d},g.interpolator=function(y){return arguments.length?(c=y,g):c};function m(y){return function(v){var b,_,E;return arguments.length?([b,_,E]=v,c=CM(y,[b,_,E]),g):[c(0),c(.5),c(1)]}}return g.range=m(Ms),g.rangeRound=m(E0),g.unknown=function(y){return arguments.length?(h=y,g):h},function(y){return l=y,i=y(e),a=y(t),o=y(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,g}}function pE(){var e=ks($0()(Br));return e.copy=function(){return Rs(e,pE())},qo.apply(e,arguments)}function gE(){var e=X2($0()).domain([.1,1,10]);return e.copy=function(){return Rs(e,gE()).base(e.base())},qo.apply(e,arguments)}function vE(){var e=J2($0());return e.copy=function(){return Rs(e,vE()).constant(e.constant())},qo.apply(e,arguments)}function B0(){var e=eE($0());return e.copy=function(){return Rs(e,B0()).exponent(e.exponent())},qo.apply(e,arguments)}function uk(){return B0.apply(null,arguments).exponent(.5)}const zf=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:b0,scaleDiverging:pE,scaleDivergingLog:gE,scaleDivergingPow:B0,scaleDivergingSqrt:uk,scaleDivergingSymlog:vE,scaleIdentity:Y2,scaleImplicit:zg,scaleLinear:K2,scaleLog:Z2,scaleOrdinal:y0,scalePoint:J7,scalePow:P0,scaleQuantile:nE,scaleQuantize:rE,scaleRadial:tE,scaleSequential:lE,scaleSequentialLog:fE,scaleSequentialPow:L0,scaleSequentialQuantile:hE,scaleSequentialSqrt:sk,scaleSequentialSymlog:dE,scaleSqrt:LM,scaleSymlog:Q2,scaleThreshold:iE,scaleTime:ak,scaleUtc:ok,tickFormat:G2},Symbol.toStringTag,{value:"Module"}));var Fu=e=>e.chartData,mE=se([Fu],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),th=(e,t,n,r)=>r?mE(e):Fu(e);function ll(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(lr(t)&&lr(n))return!0}return!1}function C9(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Cte(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(lr(n))i=n;else if(typeof n=="function")return;if(lr(r))a=r;else if(typeof r=="function")return;var o=[i,a];if(ll(o))return o}}function jte(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ll(r))return C9(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i==="auto")t!=null&&(o=Math.min(...t));else if(Me(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i=="string"&&lP.test(i)){var u=lP.exec(i);if(u==null||t==null)o=void 0;else{var c=+u[1];o=t[0]-c}}else o=t?.[0];if(a==="auto")t!=null&&(s=Math.max(...t));else if(Me(a))s=a;else if(typeof a=="function")try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a=="string"&&fP.test(a)){var l=fP.exec(a);if(l==null||t==null)s=void 0;else{var d=+l[1];s=t[1]+d}}else s=t?.[1];var h=[o,s];if(ll(h))return t==null?h:C9(h,t,n)}}}var Cl=1e9,Mte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},bE,hn=!0,Ji="[DecimalError] ",mu=Ji+"Invalid argument: ",yE=Ji+"Exponent out of range: ",jl=Math.floor,Zs=Math.pow,kte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Oi,Yn=1e7,cn=7,ck=9007199254740991,Kg=jl(ck/cn),Le={};Le.absoluteValue=Le.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Le.comparedTo=Le.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};Le.decimalPlaces=Le.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*cn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Le.dividedBy=Le.div=function(e){return jo(this,new this.constructor(e))};Le.dividedToIntegerBy=Le.idiv=function(e){var t=this,n=t.constructor;return Qt(jo(t,new n(e),0,1),n.precision)};Le.equals=Le.eq=function(e){return!this.cmp(e)};Le.exponent=function(){return Ln(this)};Le.greaterThan=Le.gt=function(e){return this.cmp(e)>0};Le.greaterThanOrEqualTo=Le.gte=function(e){return this.cmp(e)>=0};Le.isInteger=Le.isint=function(){return this.e>this.d.length-2};Le.isNegative=Le.isneg=function(){return this.s<0};Le.isPositive=Le.ispos=function(){return this.s>0};Le.isZero=function(){return this.s===0};Le.lessThan=Le.lt=function(e){return this.cmp(e)<0};Le.lessThanOrEqualTo=Le.lte=function(e){return this.cmp(e)<1};Le.logarithm=Le.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Oi))throw Error(Ji+"NaN");if(n.s<1)throw Error(Ji+(n.s?"NaN":"-Infinity"));return n.eq(Oi)?new r(0):(hn=!1,t=jo(Sd(n,a),Sd(e,a),a),hn=!0,Qt(t,i))};Le.minus=Le.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?dk(t,e):lk(t,(e.s=-e.s,e))};Le.modulo=Le.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Ji+"NaN");return n.s?(hn=!1,t=jo(n,e,0,1).times(e),hn=!0,n.minus(t)):Qt(new r(n),i)};Le.naturalExponential=Le.exp=function(){return fk(this)};Le.naturalLogarithm=Le.ln=function(){return Sd(this)};Le.negated=Le.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Le.plus=Le.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lk(t,e):dk(t,(e.s=-e.s,e))};Le.precision=Le.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(mu+e);if(t=Ln(i)+1,r=i.d.length-1,n=r*cn+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Le.squareRoot=Le.sqrt=function(){var e,t,n,r,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Ji+"NaN")}for(e=Ln(s),hn=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ma(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=jl((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(i.toString()),n=u.precision,i=o=n+3;;)if(a=r,r=a.plus(jo(s,a,o+2)).times(.5),Ma(a.d).slice(0,o)===(t=Ma(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Qt(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!="9999")break;o+=4}return hn=!0,Qt(r,n)};Le.times=Le.mul=function(e){var t,n,r,i,a,o,s,u,c,l=this,d=l.constructor,h=l.d,g=(e=new d(e)).d;if(!l.s||!e.s)return new d(0);for(e.s*=l.s,n=l.e+e.e,u=h.length,c=g.length,u<c&&(a=h,h=g,g=a,o=u,u=c,c=o),a=[],o=u+c,r=o;r--;)a.push(0);for(r=c;--r>=0;){for(t=0,i=u+r;i>r;)s=a[i]+g[r]*h[i-r-1]+t,a[i--]=s%Yn|0,t=s/Yn|0;a[i]=(a[i]+t)%Yn|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,hn?Qt(e,d.precision):e};Le.toDecimalPlaces=Le.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ba(e,0,Cl),t===void 0?t=r.rounding:Ba(t,0,8),Qt(n,e+Ln(n)+1,t))};Le.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Mu(r,!0):(Ba(e,0,Cl),t===void 0?t=i.rounding:Ba(t,0,8),r=Qt(new i(r),e+1,t),n=Mu(r,!0,e+1)),n};Le.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?Mu(i):(Ba(e,0,Cl),t===void 0?t=a.rounding:Ba(t,0,8),r=Qt(new a(i),e+Ln(i)+1,t),n=Mu(r.abs(),!1,e+Ln(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Le.toInteger=Le.toint=function(){var e=this,t=e.constructor;return Qt(new t(e),Ln(e)+1,t.rounding)};Le.toNumber=function(){return+this};Le.toPower=Le.pow=function(e){var t,n,r,i,a,o,s=this,u=s.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(Oi);if(s=new u(s),!s.s){if(e.s<1)throw Error(Ji+"Infinity");return s}if(s.eq(Oi))return s;if(r=u.precision,e.eq(Oi))return Qt(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,o){if((n=l<0?-l:l)<=ck){for(i=new u(Oi),t=Math.ceil(r/cn+4),hn=!1;n%2&&(i=i.times(s),M9(i.d,t)),n=jl(n/2),n!==0;)s=s.times(s),M9(s.d,t);return hn=!0,e.s<0?new u(Oi).div(i):Qt(i,r)}}else if(a<0)throw Error(Ji+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,hn=!1,i=e.times(Sd(s,r+c)),hn=!0,i=fk(i),i.s=a,i};Le.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Ln(i),r=Mu(i,n<=a.toExpNeg||n>=a.toExpPos)):(Ba(e,1,Cl),t===void 0?t=a.rounding:Ba(t,0,8),i=Qt(new a(i),e,t),n=Ln(i),r=Mu(i,e<=n||n<=a.toExpNeg,e)),r};Le.toSignificantDigits=Le.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ba(e,1,Cl),t===void 0?t=r.rounding:Ba(t,0,8)),Qt(new r(n),e,t)};Le.toString=Le.valueOf=Le.val=Le.toJSON=Le[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ln(e),n=e.constructor;return Mu(e,t<=n.toExpNeg||t>=n.toExpPos)};function lk(e,t){var n,r,i,a,o,s,u,c,l=e.constructor,d=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),hn?Qt(t,d):t;if(u=e.d,c=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(r=u,a=-a,s=c.length):(r=c,i=o,s=u.length),o=Math.ceil(d/cn),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=u.length,a=c.length,s-a<0&&(a=s,r=c,c=u,u=r),n=0;a;)n=(u[--a]=u[a]+c[a]+n)/Yn|0,u[a]%=Yn;for(n&&(u.unshift(n),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,hn?Qt(t,d):t}function Ba(e,t,n){if(e!==~~e||e<t||e>n)throw Error(mu+e)}function Ma(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=cn-r.length,n&&(a+=ls(n)),a+=r;o=e[t],r=o+"",n=cn-r.length,n&&(a+=ls(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var jo=function(){function e(r,i){var a,o=0,s=r.length;for(r=r.slice();s--;)a=r[s]*i+o,r[s]=a%Yn|0,o=a/Yn|0;return o&&r.unshift(o),r}function t(r,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(r[s]!=i[s]){u=r[s]>i[s]?1:-1;break}return u}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*Yn+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var s,u,c,l,d,h,g,m,y,v,b,_,E,S,A,O,P,j,$=r.constructor,z=r.s==i.s?1:-1,I=r.d,H=i.d;if(!r.s)return new $(r);if(!i.s)throw Error(Ji+"Division by zero");for(u=r.e-i.e,P=H.length,A=I.length,g=new $(z),m=g.d=[],c=0;H[c]==(I[c]||0);)++c;if(H[c]>(I[c]||0)&&--u,a==null?_=a=$.precision:o?_=a+(Ln(r)-Ln(i))+1:_=a,_<0)return new $(0);if(_=_/cn+2|0,c=0,P==1)for(l=0,H=H[0],_++;(c<A||l)&&_--;c++)E=l*Yn+(I[c]||0),m[c]=E/H|0,l=E%H|0;else{for(l=Yn/(H[0]+1)|0,l>1&&(H=e(H,l),I=e(I,l),P=H.length,A=I.length),S=P,y=I.slice(0,P),v=y.length;v<P;)y[v++]=0;j=H.slice(),j.unshift(0),O=H[0],H[1]>=Yn/2&&++O;do l=0,s=t(H,y,P,v),s<0?(b=y[0],P!=v&&(b=b*Yn+(y[1]||0)),l=b/O|0,l>1?(l>=Yn&&(l=Yn-1),d=e(H,l),h=d.length,v=y.length,s=t(d,y,h,v),s==1&&(l--,n(d,P<h?j:H,h))):(l==0&&(s=l=1),d=H.slice()),h=d.length,h<v&&d.unshift(0),n(y,d,v),s==-1&&(v=y.length,s=t(H,y,P,v),s<1&&(l++,n(y,P<v?j:H,v))),v=y.length):s===0&&(l++,y=[0]),m[c++]=l,s&&y[0]?y[v++]=I[S]||0:(y=[I[S]],v=1);while((S++<A||y[0]!==void 0)&&_--)}return m[0]||m.shift(),g.e=u,Qt(g,o?a+Ln(g)+1:a)}}();function fk(e,t){var n,r,i,a,o,s,u=0,c=0,l=e.constructor,d=l.precision;if(Ln(e)>16)throw Error(yE+Ln(e));if(!e.s)return new l(Oi);for(hn=!1,s=d,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(r=Math.log(Zs(2,c))/Math.LN10*2+5|0,s+=r,n=i=a=new l(Oi),l.precision=s;;){if(i=Qt(i.times(e),s),n=n.times(++u),o=a.plus(jo(i,n,s)),Ma(o.d).slice(0,s)===Ma(a.d).slice(0,s)){for(;c--;)a=Qt(a.times(a),s);return l.precision=d,t==null?(hn=!0,Qt(a,d)):a}a=o}}function Ln(e){for(var t=e.e*cn,n=e.d[0];n>=10;n/=10)t++;return t}function sb(e,t,n){if(t>e.LN10.sd())throw hn=!0,n&&(e.precision=n),Error(Ji+"LN10 precision limit exceeded");return Qt(new e(e.LN10),t)}function ls(e){for(var t="";e--;)t+="0";return t}function Sd(e,t){var n,r,i,a,o,s,u,c,l,d=1,h=10,g=e,m=g.d,y=g.constructor,v=y.precision;if(g.s<1)throw Error(Ji+(g.s?"NaN":"-Infinity"));if(g.eq(Oi))return new y(0);if(t==null?(hn=!1,c=v):c=t,g.eq(10))return t==null&&(hn=!0),sb(y,c);if(c+=h,y.precision=c,n=Ma(m),r=n.charAt(0),a=Ln(g),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=Ma(g.d),r=n.charAt(0),d++;a=Ln(g),r>1?(g=new y("0."+n),a++):g=new y(r+"."+n.slice(1))}else return u=sb(y,c+2,v).times(a+""),g=Sd(new y(r+"."+n.slice(1)),c-h).plus(u),y.precision=v,t==null?(hn=!0,Qt(g,v)):g;for(s=o=g=jo(g.minus(Oi),g.plus(Oi),c),l=Qt(g.times(g),c),i=3;;){if(o=Qt(o.times(l),c),u=s.plus(jo(o,new y(i),c)),Ma(u.d).slice(0,c)===Ma(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(sb(y,c+2,v).times(a+""))),s=jo(s,new y(d),c),y.precision=v,t==null?(hn=!0,Qt(s,v)):s;s=u,i+=2}}function j9(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=jl(n/cn),e.d=[],r=(n+1)%cn,n<0&&(r+=cn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=cn;r<i;)e.d.push(+t.slice(r,r+=cn));t=t.slice(r),r=cn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),hn&&(e.e>Kg||e.e<-Kg))throw Error(yE+n)}else e.s=0,e.e=0,e.d=[0];return e}function Qt(e,t,n){var r,i,a,o,s,u,c,l,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=cn,i=t,c=d[l=0];else{if(l=Math.ceil((r+1)/cn),a=d.length,l>=a)return e;for(c=a=d[l],o=1;a>=10;a/=10)o++;r%=cn,i=r-cn+o}if(n!==void 0&&(a=Zs(10,o-i-1),s=c/a%10|0,u=t<0||d[l+1]!==void 0||c%a,u=n<4?(s||u)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||u||n==6&&(r>0?i>0?c/Zs(10,o-i):0:d[l-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return u?(a=Ln(e),d.length=1,t=t-a-1,d[0]=Zs(10,(cn-t%cn)%cn),e.e=jl(-t/cn)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=l,a=1,l--):(d.length=l+1,a=Zs(10,cn-r),d[l]=i>0?(c/Zs(10,o-i)%Zs(10,i)|0)*a:0),u)for(;;)if(l==0){(d[0]+=a)==Yn&&(d[0]=1,++e.e);break}else{if(d[l]+=a,d[l]!=Yn)break;d[l--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(hn&&(e.e>Kg||e.e<-Kg))throw Error(yE+Ln(e));return e}function dk(e,t){var n,r,i,a,o,s,u,c,l,d,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),hn?Qt(t,g):t;if(u=e.d,d=t.d,r=t.e,c=e.e,u=u.slice(),o=c-r,o){for(l=o<0,l?(n=u,o=-o,s=d.length):(n=d,r=c,s=u.length),i=Math.max(Math.ceil(g/cn),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=u.length,s=d.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(u[i]!=d[i]){l=u[i]<d[i];break}o=0}for(l&&(n=u,u=d,d=n,t.s=-t.s),s=u.length,i=d.length-s;i>0;--i)u[s++]=0;for(i=d.length;i>o;){if(u[--i]<d[i]){for(a=i;a&&u[--a]===0;)u[a]=Yn-1;--u[a],u[i]+=Yn}u[i]-=d[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,hn?Qt(t,g):t):new h(0)}function Mu(e,t,n){var r,i=Ln(e),a=Ma(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+ls(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ls(-i-1)+a,n&&(r=n-o)>0&&(a+=ls(r))):i>=o?(a+=ls(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+ls(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=ls(r))),e.s<0?"-"+a:a}function M9(e,t){if(e.length>t)return e.length=t,!0}function hk(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(mu+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return j9(o,a.toString())}else if(typeof a!="string")throw Error(mu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,kte.test(a))j9(o,a);else throw Error(mu+a)}if(i.prototype=Le,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=hk,i.config=i.set=Rte,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Rte(e){if(!e||typeof e!="object")throw Error(Ji+"Object expected");var t,n,r,i=["precision",1,Cl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(jl(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(mu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(mu+n+": "+r);return this}var bE=hk(Mte);Oi=new bE(1);const Kt=bE;var Ite=e=>e,pk={},gk=e=>e===pk,k9=e=>function t(){return arguments.length===0||arguments.length===1&&gk(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},vk=(e,t)=>e===1?t:k9(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r.filter(o=>o!==pk).length;return a>=e?t(...r):vk(e-a,k9(function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=r.map(l=>gk(l)?s.shift():l);return t(...c,...s)}))}),z0=e=>vk(e.length,e),sx=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Dte=z0((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Nte=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Ite;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((s,u)=>u(s),a(...arguments))}},ux=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),mk=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t&&i.every((o,s)=>{var u;return o===((u=t)===null||u===void 0?void 0:u[s])})||(t=i,n=e(...i)),n}};function yk(e){var t;return e===0?t=1:t=Math.floor(new Kt(e).abs().log(10).toNumber())+1,t}function bk(e,t,n){for(var r=new Kt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}z0((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});z0((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});z0((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var wk=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},xk=(e,t,n)=>{if(e.lte(0))return new Kt(0);var r=yk(e.toNumber()),i=new Kt(10).pow(r),a=e.div(i),o=r!==1?.05:.1,s=new Kt(Math.ceil(a.div(o).toNumber())).add(n).mul(o),u=s.mul(i);return t?new Kt(u.toNumber()):new Kt(Math.ceil(u.toNumber()))},Lte=(e,t,n)=>{var r=new Kt(1),i=new Kt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Kt(10).pow(yk(e)-1),i=new Kt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Kt(Math.floor(e)))}else e===0?i=new Kt(Math.floor((t-1)/2)):n||(i=new Kt(Math.floor(e)));var o=Math.floor((t-1)/2),s=Nte(Dte(u=>i.add(new Kt(u-o).mul(r)).toNumber()),sx);return s(0,t)},_k=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Kt(0),tickMin:new Kt(0),tickMax:new Kt(0)};var o=xk(new Kt(n).sub(t).div(r-1),i,a),s;t<=0&&n>=0?s=new Kt(0):(s=new Kt(t).add(n).div(2),s=s.sub(new Kt(s).mod(o)));var u=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Kt(n).sub(s).div(o).toNumber()),l=u+c+1;return l>r?_k(t,n,r,i,a+1):(l<r&&(c=n>0?c+(r-l):c,u=n>0?u:u+(r-l)),{step:o,tickMin:s.sub(new Kt(u).mul(o)),tickMax:s.add(new Kt(c).mul(o))})};function $te(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(r,2),[o,s]=wk([t,n]);if(o===-1/0||s===1/0){var u=s===1/0?[o,...sx(0,r-1).map(()=>1/0)]:[...sx(0,r-1).map(()=>-1/0),s];return t>n?ux(u):u}if(o===s)return Lte(o,r,i);var{step:c,tickMin:l,tickMax:d}=_k(o,s,a,i,0),h=bk(l,d.add(new Kt(.1).mul(c)),c);return t>n?ux(h):h}function Bte(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=wk([n,r]);if(a===-1/0||o===1/0)return[n,r];if(a===o)return[a];var s=Math.max(t,2),u=xk(new Kt(o).sub(a).div(s-1),i,0),c=[...bk(new Kt(a),new Kt(o),u),o];return i===!1&&(c=c.map(l=>Math.round(l))),n>r?ux(c):c}var zte=mk($te),Fte=mk(Bte),Ek=e=>e.rootProps.maxBarSize,Wte=e=>e.rootProps.barGap,Sk=e=>e.rootProps.barCategoryGap,qte=e=>e.rootProps.barSize,nh=e=>e.rootProps.stackOffset,wE=e=>e.options.chartName,xE=e=>e.rootProps.syncId,Ak=e=>e.rootProps.syncMethod,_E=e=>e.options.eventEmitter,bo={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Ei={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},F0=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Vte={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:bo.angleAxisId,includeHidden:!1,name:void 0,reversed:bo.reversed,scale:bo.scale,tick:bo.tick,tickCount:void 0,ticks:void 0,type:bo.type,unit:void 0},Hte={allowDataOverflow:Ei.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ei.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ei.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ei.scale,tick:Ei.tick,tickCount:Ei.tickCount,ticks:void 0,type:Ei.type,unit:void 0},Ute={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:bo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:bo.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:bo.scale,tick:bo.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Gte={allowDataOverflow:Ei.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Ei.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ei.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Ei.scale,tick:Ei.tick,tickCount:Ei.tickCount,ticks:void 0,type:"category",unit:void 0},EE=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Ute:Vte,SE=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Gte:Hte,W0=e=>e.polarOptions,AE=se([zo,Fo,Hn],f7),Ok=se([W0,AE],(e,t)=>{if(e!=null)return zr(e.innerRadius,t,0)}),Tk=se([W0,AE],(e,t)=>{if(e!=null)return zr(e.outerRadius,t,t*.8)}),Kte=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Pk=se([W0],Kte);se([EE,Pk],F0);var Ck=se([AE,Ok,Tk],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});se([SE,Ck],F0);var Yte=se([It,W0,Ok,Tk,zo,Fo],(e,t,n,r,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:o,cy:s,startAngle:u,endAngle:c}=t;return{cx:zr(o,i,i/2),cy:zr(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:u,endAngle:c,clockWise:!1}}}),Mn=(e,t)=>t,rh=(e,t,n)=>n;function R9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R9(Object(n),!0).forEach(function(r){Xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xte(e,t,n){return(t=Zte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zte(e){var t=Jte(e,"string");return typeof t=="symbol"?t:t+""}function Jte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cx=[0,"auto"],bi={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},Ga=(e,t)=>{var n=e.cartesianAxis.xAxis[t];return n??bi},wi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:cx,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:f0},Vo=(e,t)=>{var n=e.cartesianAxis.yAxis[t];return n??wi},ms={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:""},OE=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??ms},kn=(e,t,n)=>{switch(t){case"xAxis":return Ga(e,n);case"yAxis":return Vo(e,n);case"zAxis":return OE(e,n);case"angleAxis":return EE(e,n);case"radiusAxis":return SE(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Qte=(e,t,n)=>{switch(t){case"xAxis":return Ga(e,n);case"yAxis":return Vo(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},ih=(e,t,n)=>{switch(t){case"xAxis":return Ga(e,n);case"yAxis":return Vo(e,n);case"angleAxis":return EE(e,n);case"radiusAxis":return SE(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},jk=e=>e.graphicalItems.countOfBars>0;function TE(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Ml=e=>e.graphicalItems.cartesianItems,ene=se([Mn,rh],TE),PE=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),ah=se([Ml,kn,ene],PE),Mk=e=>e.filter(t=>t.stackId===void 0),tne=se([ah],Mk),CE=e=>e.map(t=>t.data).filter(Boolean).flat(1),nne=se([ah],CE),jE=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},q0=se([nne,th],jE),ME=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:$t(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:$t(i,r)}))):e.map(r=>({value:r})),V0=se([q0,kn,ah],ME);function kk(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Wu(e){return e.filter(t=>si(t)||t instanceof Date).map(Number).filter(t=>Ar(t)===!1)}function rne(e,t,n){return!n||typeof t!="number"||Ar(t)?[]:n.length?Wu(n.flatMap(r=>{var i=$t(e,r.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!lr(a)||!lr(o)))return[t-a,t+o]})):[]}var Rk=(e,t,n)=>{var r={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),r);return Object.fromEntries(Object.entries(i).map(a=>{var[o,s]=a,u=s.map(c=>c.dataKey);return[o,{stackedData:aX(e,u,n),graphicalItems:s}]}))},Ad=se([q0,ah,nh],Rk),Ik=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var a=cX(e,r,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},ine=se([Ad,Fu,Mn],Ik),Dk=(e,t,n,r)=>n.length>0?e.flatMap(i=>n.flatMap(a=>{var o,s,u=(o=a.errorBars)===null||o===void 0?void 0:o.filter(l=>kk(r,l)),c=$t(i,(s=t.dataKey)!==null&&s!==void 0?s:a.dataKey);return{value:c,errorDomain:rne(i,c,u)}})).filter(Boolean):t?.dataKey!=null?e.map(i=>({value:$t(i,t.dataKey),errorDomain:[]})):e.map(i=>({value:i,errorDomain:[]})),ane=se(q0,kn,tne,Mn,Dk);function one(e){var{value:t}=e;if(si(t)||t instanceof Date)return t}var sne=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Wu(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},une=(e,t,n)=>{var r=e.map(one).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&R8(r))?T7(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},kE=e=>{var t;if(e==null||!("domain"in e))return cx;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Wu(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:cx},RE=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),s=Math.max(...a);return[o,s]}},Nk=e=>e.referenceElements.dots,kl=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),cne=se([Nk,Mn,rh],kl),Lk=e=>e.referenceElements.areas,lne=se([Lk,Mn,rh],kl),$k=e=>e.referenceElements.lines,fne=se([$k,Mn,rh],kl),Bk=(e,t)=>{var n=Wu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},dne=se(cne,Mn,Bk),zk=(e,t)=>{var n=Wu(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},hne=se([lne,Mn],zk),Fk=(e,t)=>{var n=Wu(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},pne=se(fne,Mn,Fk),gne=se(dne,pne,hne,(e,t,n)=>RE(e,n,t)),Wk=se([kn],kE),IE=(e,t,n,r,i)=>{var a=Cte(t,e.allowDataOverflow);return a??jte(t,RE(n,i,sne(r)),e.allowDataOverflow)},vne=se([kn,Wk,ine,ane,gne],IE),mne=[0,1],DE=(e,t,n,r,i,a,o)=>{if(!(e==null||n==null||n.length===0)){var{dataKey:s,type:u}=e,c=Ha(t,a);return c&&s==null?T7(0,n.length):u==="category"?une(r,e,c):i==="expand"?mne:o}},NE=se([kn,It,q0,V0,nh,Mn,vne],DE),qk=(e,t,n,r,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var s="scale".concat(Hd(a));return s in zf?s:"point"}}},Rl=se([kn,It,jk,wE,Mn],qk);function yne(e){if(e!=null){if(e in zf)return zf[e]();var t="scale".concat(Hd(e));if(t in zf)return zf[t]()}}function LE(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=yne(t);if(i!=null){var a=i.domain(n).range(r);return eX(a),a}}}var $E=(e,t,n)=>{var r=kE(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&ll(e))return zte(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&ll(e))return Fte(e,t.tickCount,t.allowDecimals)}},BE=se([NE,ih,Rl],$E),zE=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&ll(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0],o=t[1],s=n[n.length-1];return[Math.min(i,a),Math.max(o,s)]}return t},bne=se([kn,NE,BE,Mn],zE),wne=se(V0,kn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Wu(e.map(s=>s.value))).sort((s,u)=>s-u);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var a=0;a<r.length-1;a++){var o=r[a+1]-r[a];n=Math.min(n,o)}return n/i}}),Vk=se(wne,It,Sk,Hn,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!lr(e))return 0;var a=t==="vertical"?r.height:r.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=zr(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),xne=(e,t)=>{var n=Ga(e,t);return n==null||typeof n.padding!="string"?0:Vk(e,"xAxis",t,n.padding)},_ne=(e,t)=>{var n=Vo(e,t);return n==null||typeof n.padding!="string"?0:Vk(e,"yAxis",t,n.padding)},Ene=se(Ga,xne,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),Sne=se(Vo,_ne,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),Ane=se([Hn,Ene,h0,d0,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),One=se([Hn,It,Sne,h0,d0,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:o}=i;return a?[r.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),oh=(e,t,n,r)=>{var i;switch(t){case"xAxis":return Ane(e,n,r);case"yAxis":return One(e,n,r);case"zAxis":return(i=OE(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Pk(e);case"radiusAxis":return Ck(e,n);default:return}},Hk=se([kn,oh],F0),za=se([kn,Rl,bne,Hk],LE);se(ah,Mn,(e,t)=>e.flatMap(n=>{var r;return(r=n.errorBars)!==null&&r!==void 0?r:[]}).filter(n=>kk(t,n)));function Uk(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var H0=(e,t)=>t,U0=(e,t,n)=>n,Tne=se(A2,H0,U0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Uk)),Pne=se(O2,H0,U0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(Uk)),Gk=(e,t)=>({width:e.width,height:t.height}),Cne=(e,t)=>{var n=typeof t.width=="number"?t.width:f0;return{width:n,height:e.height}},Kk=se(Hn,Ga,Gk),jne=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Mne=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},kne=se(Fo,Hn,Tne,H0,U0,(e,t,n,r,i)=>{var a={},o;return n.forEach(s=>{var u=Gk(t,s);o==null&&(o=jne(t,r,e));var c=r==="top"&&!i||r==="bottom"&&i;a[s.id]=o-Number(c)*u.height,o+=(c?-1:1)*u.height}),a}),Rne=se(zo,Hn,Pne,H0,U0,(e,t,n,r,i)=>{var a={},o;return n.forEach(s=>{var u=Cne(t,s);o==null&&(o=Mne(t,r,e));var c=r==="left"&&!i||r==="right"&&i;a[s.id]=o-Number(c)*u.width,o+=(c?-1:1)*u.width}),a}),Ine=(e,t)=>{var n=Hn(e),r=Ga(e,t);if(r!=null){var i=kne(e,r.orientation,r.mirror),a=i[t];return a==null?{x:n.left,y:0}:{x:n.left,y:a}}},Dne=(e,t)=>{var n=Hn(e),r=Vo(e,t);if(r!=null){var i=Rne(e,r.orientation,r.mirror),a=i[t];return a==null?{x:0,y:n.top}:{x:a,y:n.top}}},Yk=se(Hn,Vo,(e,t)=>{var n=typeof t.width=="number"?t.width:f0;return{width:n,height:e.height}}),I9=(e,t,n)=>{switch(t){case"xAxis":return Kk(e,n).width;case"yAxis":return Yk(e,n).height;default:return}},Xk=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=Ha(e,r),u=t.map(c=>c.value);if(o&&s&&a==="category"&&i&&R8(u))return u}},FE=se([It,V0,kn,Mn],Xk),Zk=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n,o=Ha(e,r);if(o&&(i==="number"||a!=="auto"))return t.map(s=>s.value)}},WE=se([It,V0,ih,Mn],Zk),D9=se([It,Qte,Rl,za,FE,WE,oh,BE,Mn],(e,t,n,r,i,a,o,s,u)=>{if(t==null)return null;var c=Ha(e,u);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:u,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:s,range:o,realScaleType:n,scale:r}}),Nne=(e,t,n,r,i,a,o,s,u)=>{if(!(t==null||r==null)){var c=Ha(e,u),{type:l,ticks:d,tickCount:h}=t,g=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,m=l==="category"&&r.bandwidth?r.bandwidth()/g:0;m=u==="angleAxis"&&a!=null&&a.length>=2?Xn(a[0]-a[1])*2*m:m;var y=d||i;if(y){var v=y.map((b,_)=>{var E=o?o.indexOf(b):b;return{index:_,coordinate:r(E)+m,value:b,offset:m}});return v.filter(b=>!Ar(b.coordinate))}return c&&s?s.map((b,_)=>({coordinate:r(b)+m,value:b,index:_,offset:m})):r.ticks?r.ticks(h).map(b=>({coordinate:r(b)+m,value:b,offset:m})):r.domain().map((b,_)=>({coordinate:r(b)+m,value:o?o[b]:b,index:_,offset:m}))}},Jk=se([It,ih,Rl,za,BE,oh,FE,WE,Mn],Nne),Lne=(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Ha(e,o),{tickCount:u}=t,c=0;return c=o==="angleAxis"&&r?.length>=2?Xn(r[0]-r[1])*2*c:c,s&&a?a.map((l,d)=>({coordinate:n(l)+c,value:l,index:d,offset:c})):n.ticks?n.ticks(u).map(l=>({coordinate:n(l)+c,value:l,offset:c})):n.domain().map((l,d)=>({coordinate:n(l)+c,value:i?i[l]:l,index:d,offset:c}))}},Qi=se([It,ih,za,oh,FE,WE,Mn],Lne),ui=se(kn,za,(e,t)=>{if(!(e==null||t==null))return Yg(Yg({},e),{},{scale:t})}),$ne=se([kn,Rl,NE,Hk],LE),Bne=se((e,t,n)=>OE(e,n),$ne,(e,t)=>{if(!(e==null||t==null))return Yg(Yg({},e),{},{scale:t})}),zne=se([It,A2,O2],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Qk=e=>e.options.defaultTooltipEventType,eR=e=>e.options.validateTooltipEventTypes;function tR(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function qE(e,t){var n=Qk(e),r=eR(e);return tR(t,n,r)}function Fne(e){return ke(t=>qE(t,e))}var nR=(e,t)=>{var n,r=Number(t);if(!(Ar(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Wne=e=>e.tooltip.settings,ps={active:!1,index:null,dataKey:void 0,coordinate:void 0},qne={itemInteraction:{click:ps,hover:ps},axisInteraction:{click:ps,hover:ps},keyboardInteraction:ps,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},rR=ea({name:"tooltip",initialState:qne,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=Co(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},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.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.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,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:Vne,removeTooltipEntrySettings:Hne,setTooltipSettingsState:Une,setActiveMouseOverItemIndex:iR,mouseLeaveItem:Gne,mouseLeaveChart:aR,setActiveClickItemIndex:Kne,setMouseOverAxisIndex:oR,setMouseClickAxisIndex:Yne,setSyncInteraction:lx,setKeyboardInteraction:fx}=rR.actions,Xne=rR.reducer;function N9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N9(Object(n),!0).forEach(function(r){Zne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zne(e,t,n){return(t=Jne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jne(e){var t=Qne(e,"string");return typeof t=="symbol"?t:t+""}function Qne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ere(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function tre(e){return e.index!=null}var sR=(e,t,n,r)=>{if(t==null)return ps;var i=ere(e,t,n);if(i==null)return ps;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(tre(i)){if(a)return Pp(Pp({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return Pp(Pp({},ps),{},{coordinate:i.coordinate})},VE=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!lr(r))return n;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(r,a)))},uR=(e,t,n,r,i,a,o,s)=>{if(!(a==null||s==null)){var u=o[0],c=u==null?void 0:s(u.positions,a);if(c!=null)return c;var l=i?.[Number(a)];if(l)switch(n){case"horizontal":return{x:l.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:l.coordinate}}}},cR=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},sh=e=>e.options.tooltipPayloadSearcher,Il=e=>e.tooltip;function L9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L9(Object(n),!0).forEach(function(r){nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nre(e,t,n){return(t=rre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rre(e){var t=ire(e,"string");return typeof t=="symbol"?t:t+""}function ire(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function are(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function ore(e,t){return e??t}var lR=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:u,dataStartIndex:c,dataEndIndex:l}=n,d=[];return e.reduce((h,g)=>{var m,{dataDefinedOnItem:y,settings:v}=g,b=ore(y,s),_=are(b,c,l),E=(m=v?.dataKey)!==null&&m!==void 0?m:r?.dataKey,S=v?.nameKey,A;if(r!=null&&r.dataKey&&Array.isArray(_)&&!Array.isArray(_[0])&&o==="axis"?A=I8(_,r.dataKey,i):A=a(_,t,u,S),Array.isArray(A))A.forEach(P=>{var j=$9($9({},v),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});h.push(dP({tooltipEntrySettings:j,dataKey:P.dataKey,payload:P.payload,value:$t(P.payload,P.dataKey),name:P.name}))});else{var O;h.push(dP({tooltipEntrySettings:v,dataKey:E,payload:A,value:$t(A,E),name:(O=$t(A,S))!==null&&O!==void 0?O:v?.name}))}return h},d)}},tr=e=>{var t=It(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Dl=e=>e.tooltip.settings.axisId,fr=e=>{var t=tr(e),n=Dl(e);return ih(e,t,n)},HE=se([fr,It,jk,wE,tr],qk),sre=se([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),ure=se([tr,Dl],TE),G0=se([sre,fr,ure],PE),cre=se([G0],CE),qu=se([cre,Fu],jE),UE=se([qu,fr,G0],ME),lre=se([fr],kE),fre=se([qu,G0,nh],Rk),dre=se([fre,Fu,tr],Ik),hre=se([G0],Mk),pre=se([qu,fr,hre,tr],Dk),gre=se([Nk,tr,Dl],kl),vre=se([gre,tr],Bk),mre=se([Lk,tr,Dl],kl),yre=se([mre,tr],zk),bre=se([$k,tr,Dl],kl),wre=se([bre,tr],Fk),xre=se([vre,wre,yre],RE),_re=se([fr,lre,dre,pre,xre],IE),fR=se([fr,It,qu,UE,nh,tr,_re],DE),Ere=se([fR,fr,HE],$E),Sre=se([fr,fR,Ere,tr],zE),dR=e=>{var t=tr(e),n=Dl(e),r=!1;return oh(e,t,n,r)},hR=se([fr,dR],F0),pR=se([fr,HE,Sre,hR],LE),Are=se([It,UE,fr,tr],Xk),Ore=se([It,UE,fr,tr],Zk),Tre=(e,t,n,r,i,a,o,s)=>{if(t){var{type:u}=t,c=Ha(e,s);if(r){var l=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,d=u==="category"&&r.bandwidth?r.bandwidth()/l:0;return d=s==="angleAxis"&&i!=null&&i?.length>=2?Xn(i[0]-i[1])*2*d:d,c&&o?o.map((h,g)=>({coordinate:r(h)+d,value:h,index:g,offset:d})):r.domain().map((h,g)=>({coordinate:r(h)+d,value:a?a[h]:h,index:g,offset:d}))}}},Ho=se([It,fr,HE,pR,dR,Are,Ore,tr],Tre),GE=se([Qk,eR,Wne],(e,t,n)=>tR(n.shared,e,t)),gR=e=>e.tooltip.settings.trigger,KE=e=>e.tooltip.settings.defaultIndex,K0=se([Il,GE,gR,KE],sR),Do=se([K0,qu],VE),vR=se([Ho,Do],nR),mR=se([K0],e=>{if(e)return e.dataKey}),yR=se([Il,GE,gR,KE],cR),Pre=se([zo,Fo,It,Hn,Ho,KE,yR,sh],uR),Cre=se([K0,Pre],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),jre=se([K0],e=>e.active),Mre=se([yR,Do,Fu,fr,vR,sh,GE],lR),kre=se([Mre],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function B9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B9(Object(n),!0).forEach(function(r){Rre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rre(e,t,n){return(t=Ire(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ire(e){var t=Dre(e,"string");return typeof t=="symbol"?t:t+""}function Dre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nre=()=>ke(fr),Lre=()=>{var e=Nre(),t=ke(Ho),n=ke(pR);return Su(z9(z9({},e),{},{scale:n}),t)},bR=()=>ke(wE),YE=(e,t)=>t,wR=(e,t,n)=>n,XE=(e,t,n,r)=>r,$re=se(Ho,e=>a0(e,t=>t.coordinate)),ZE=se([Il,YE,wR,XE],sR),xR=se([ZE,qu],VE),Bre=(e,t,n)=>{if(t!=null){var r=Il(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},_R=se([Il,YE,wR,XE],cR),Xg=se([zo,Fo,It,Hn,Ho,XE,_R,sh],uR),zre=se([ZE,Xg],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),ER=se(Ho,xR,nR),Fre=se([_R,xR,Fu,fr,ER,sh,YE],lR),Wre=se([ZE],e=>({isActive:e.active,activeIndex:e.index})),qre=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a)){var u=lX(e.chartX,e.chartY,t,n,s);if(u){var c=dX(u,t),l=JY(c,o,a,r,i),d=fX(t,a,l,u);return{activeIndex:String(l),activeCoordinate:d}}}};function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(null,arguments)}function F9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F9(Object(n),!0).forEach(function(r){Vre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vre(e,t,n){return(t=Hre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hre(e){var t=Ure(e,"string");return typeof t=="symbol"?t:t+""}function Ure(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gre(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:u,chartName:c}=e,l=t,d=n,h=r;if(!s||!l||c!=="ScatterChart"&&u!=="axis")return null;var g,m;if(c==="ScatterChart")g=l,m=cZ;else if(c==="BarChart")g=lZ(o,l,i,a),m=S7;else if(o==="radial"){var{cx:y,cy:v,radius:b,startAngle:_,endAngle:E}=A7(l);g={cx:y,cy:v,startAngle:_,endAngle:E,innerRadius:b,outerRadius:b},m=Dg}else g={points:XZ(o,l,i)},m=pu;var S=typeof s=="object"&&"className"in s?s.className:void 0,A=Cp(Cp(Cp(Cp({stroke:"#ccc",pointerEvents:"none"},i),g),it(s,!1)),{},{payload:d,payloadIndex:h,className:Ot("recharts-tooltip-cursor",S)});return M.isValidElement(s)?M.cloneElement(s,A):M.createElement(m,A)}function Kre(e){var t=Lre(),n=v7(),r=Zd(),i=bR();return B.createElement(Gre,dx({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var SR=M.createContext(null),Yre=()=>M.useContext(SR),ub={exports:{}},W9;function Xre(){return W9||(W9=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function a(u,c,l,d,h){if(typeof l!="function")throw new TypeError("The listener must be a function");var g=new i(l,d||u,h),m=n?n+c:c;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],g]:u._events[m].push(g):(u._events[m]=g,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new r:delete u._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],l,d;if(this._eventsCount===0)return c;for(d in l=this._events)t.call(l,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},s.prototype.listeners=function(c){var l=n?n+c:c,d=this._events[l];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,g=d.length,m=new Array(g);h<g;h++)m[h]=d[h].fn;return m},s.prototype.listenerCount=function(c){var l=n?n+c:c,d=this._events[l];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,l,d,h,g,m){var y=n?n+c:c;if(!this._events[y])return!1;var v=this._events[y],b=arguments.length,_,E;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),b){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,l),!0;case 3:return v.fn.call(v.context,l,d),!0;case 4:return v.fn.call(v.context,l,d,h),!0;case 5:return v.fn.call(v.context,l,d,h,g),!0;case 6:return v.fn.call(v.context,l,d,h,g,m),!0}for(E=1,_=new Array(b-1);E<b;E++)_[E-1]=arguments[E];v.fn.apply(v.context,_)}else{var S=v.length,A;for(E=0;E<S;E++)switch(v[E].once&&this.removeListener(c,v[E].fn,void 0,!0),b){case 1:v[E].fn.call(v[E].context);break;case 2:v[E].fn.call(v[E].context,l);break;case 3:v[E].fn.call(v[E].context,l,d);break;case 4:v[E].fn.call(v[E].context,l,d,h);break;default:if(!_)for(A=1,_=new Array(b-1);A<b;A++)_[A-1]=arguments[A];v[E].fn.apply(v[E].context,_)}}return!0},s.prototype.on=function(c,l,d){return a(this,c,l,d,!1)},s.prototype.once=function(c,l,d){return a(this,c,l,d,!0)},s.prototype.removeListener=function(c,l,d,h){var g=n?n+c:c;if(!this._events[g])return this;if(!l)return o(this,g),this;var m=this._events[g];if(m.fn)m.fn===l&&(!h||m.once)&&(!d||m.context===d)&&o(this,g);else{for(var y=0,v=[],b=m.length;y<b;y++)(m[y].fn!==l||h&&!m[y].once||d&&m[y].context!==d)&&v.push(m[y]);v.length?this._events[g]=v.length===1?v[0]:v:o(this,g)}return this},s.prototype.removeAllListeners=function(c){var l;return c?(l=n?n+c:c,this._events[l]&&o(this,l)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(ub)),ub.exports}var Zre=Xre();const Jre=Va(Zre);var Od=new Jre,hx="recharts.syncEvent.tooltip",q9="recharts.syncEvent.brush";function Nl(e,t){if(t){var n=Number.parseInt(t,10);if(!Ar(n))return e?.[n]}}var Qre={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},AR=ea({name:"options",initialState:Qre,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),eie=AR.reducer,{createEventEmitter:tie}=AR.actions;function nie(e){return e.tooltip.syncInteraction}var rie={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},OR=ea({name:"chartData",initialState:rie,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:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:V9,setDataStartEndIndexes:iie,setComputedData:eOe}=OR.actions,aie=OR.reducer,TR=()=>{};function oie(){var e=ke(xE),t=ke(_E),n=en(),r=ke(Ak),i=ke(Ho),a=Zd(),o=p0(),s=ke(u=>u.rootProps.className);M.useEffect(()=>{if(e==null)return TR;var u=(c,l,d)=>{if(t!==d&&e===c){if(r==="index"){n(l);return}if(i!=null){var h;if(typeof r=="function"){var g={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},m=r(i,g);h=i[m]}else r==="value"&&(h=i.find(O=>String(O.value)===l.payload.label));var{coordinate:y}=l.payload;if(h==null||l.payload.active===!1||y==null||o==null){n(lx({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:v,y:b}=y,_=Math.min(v,o.x+o.width),E=Math.min(b,o.y+o.height),S={x:a==="horizontal"?h.coordinate:_,y:a==="horizontal"?E:h.coordinate},A=lx({active:l.payload.active,coordinate:S,dataKey:l.payload.dataKey,index:String(h.index),label:l.payload.label});n(A)}}};return Od.on(hx,u),()=>{Od.off(hx,u)}},[s,n,t,e,r,i,a,o])}function sie(){var e=ke(xE),t=ke(_E),n=en();M.useEffect(()=>{if(e==null)return TR;var r=(i,a,o)=>{t!==o&&e===i&&n(iie(a))};return Od.on(q9,r),()=>{Od.off(q9,r)}},[n,t,e])}function uie(){var e=en();M.useEffect(()=>{e(tie())},[e]),oie(),sie()}function cie(e,t,n,r,i,a){var o=ke(h=>Bre(h,e,t)),s=ke(_E),u=ke(xE),c=ke(Ak),l=ke(nie),d=l?.active;M.useEffect(()=>{if(!d&&u!=null&&s!=null){var h=lx({active:a,coordinate:n,dataKey:o,index:i,label:typeof r=="number"?String(r):r});Od.emit(hx,u,h,s)}},[d,n,o,i,r,s,u,c,a])}function H9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H9(Object(n),!0).forEach(function(r){lie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lie(e,t,n){return(t=fie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fie(e){var t=die(e,"string");return typeof t=="symbol"?t:t+""}function die(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hie(e){return e.dataKey}function pie(e,t){return B.isValidElement(e)?B.cloneElement(e,t):typeof e=="function"?B.createElement(e,t):B.createElement(FX,t)}var G9=[],gie={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Wo.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function uh(e){var t=li(e,gie),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:u,offset:c,payloadUniqBy:l,position:d,reverseDirection:h,useTranslate3d:g,wrapperStyle:m,cursor:y,shared:v,trigger:b,defaultIndex:_,portal:E,axisId:S}=t,A=en(),O=typeof _=="number"?String(_):_;M.useEffect(()=>{A(Une({shared:v,trigger:b,axisId:S,active:n,defaultIndex:O}))},[A,v,b,S,n,O]);var P=p0(),j=w7(),$=Fne(v),{activeIndex:z,isActive:I}=ke(re=>Wre(re,$,b,O)),H=ke(re=>Fre(re,$,b,O)),D=ke(re=>ER(re,$,b,O)),C=ke(re=>zre(re,$,b,O)),L=H,N=Yre(),V=n??I,[Z,K]=Nj([L,V]),R=$==="axis"?D:void 0;cie($,b,C,R,z,V);var W=E??N;if(W==null)return null;var U=L??G9;V||(U=G9),s&&U.length&&(U=jj(L.filter(re=>re.value!=null&&(re.hide!==!0||t.includeHidden)),l,hie));var Y=U.length>0,ae=B.createElement(KX,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:u,active:V,coordinate:C,hasPayload:Y,offset:c,position:d,reverseDirection:h,useTranslate3d:g,viewBox:P,wrapperStyle:m,lastBoundingBox:Z,innerRef:K,hasPortalFromProps:!!E},pie(o,U9(U9({},t),{},{payload:U,label:R,active:V,coordinate:C,accessibilityLayer:j})));return B.createElement(B.Fragment,null,R_.createPortal(ae,W),V&&B.createElement(Kre,{cursor:y,tooltipEventType:$,coordinate:C,payload:L,index:z}))}var cb={},lb={},K9;function vie(){return K9||(K9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=0,i={}){typeof i!="object"&&(i={});let a=null,o=null,s=null,u=0,c=null,l;const{leading:d=!1,trailing:h=!0,maxWait:g}=i,m="maxWait"in i,y=m?Math.max(Number(g)||0,r):0,v=P=>(a!==null&&(l=n.apply(o,a)),a=o=null,u=P,l),b=P=>(u=P,c=setTimeout(A,r),d&&a!==null?v(P):l),_=P=>(c=null,h&&a!==null?v(P):l),E=P=>{if(s===null)return!0;const j=P-s,$=j>=r||j<0,z=m&&P-u>=y;return $||z},S=P=>{const j=s===null?0:P-s,$=r-j,z=y-(P-u);return m?Math.min($,z):$},A=()=>{const P=Date.now();if(E(P))return _(P);c=setTimeout(A,S(P))},O=function(...P){const j=Date.now(),$=E(j);if(a=P,o=this,s=j,$){if(c===null)return b(j);if(m)return clearTimeout(c),c=setTimeout(A,r),v(j)}return c===null&&(c=setTimeout(A,r)),l};return O.cancel=()=>{c!==null&&clearTimeout(c),u=0,s=a=o=c=null},O.flush=()=>c===null?l:_(Date.now()),O}e.debounce=t}(lb)),lb}var Y9;function mie(){return Y9||(Y9=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vie();function n(r,i=0,a={}){const{leading:o=!0,trailing:s=!0}=a;return t.debounce(r,i,{leading:o,maxWait:i,trailing:s})}e.throttle=n}(cb)),cb}var fb,X9;function yie(){return X9||(X9=1,fb=mie().throttle),fb}var bie=yie();const wie=Va(bie);var xie=process.env.NODE_ENV!=="production",td=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(xie&&typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(n.replace(/%s/g,()=>i[o++]))}};function Z9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function db(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z9(Object(n),!0).forEach(function(r){_ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ie(e,t,n){return(t=Eie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eie(e){var t=Sie(e,"string");return typeof t=="symbol"?t:t+""}function Sie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vu=M.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:s,maxHeight:u,children:c,debounce:l=0,id:d,className:h,onResize:g,style:m={}}=e,y=M.useRef(null),v=M.useRef();v.current=g,M.useImperativeHandle(t,()=>y.current);var[b,_]=M.useState({containerWidth:r.width,containerHeight:r.height}),E=M.useCallback((A,O)=>{_(P=>{var j=Math.round(A),$=Math.round(O);return P.containerWidth===j&&P.containerHeight===$?P:{containerWidth:j,containerHeight:$}})},[]);M.useEffect(()=>{var A=$=>{var z,{width:I,height:H}=$[0].contentRect;E(I,H),(z=v.current)===null||z===void 0||z.call(v,I,H)};l>0&&(A=wie(A,l,{trailing:!0,leading:!1}));var O=new ResizeObserver(A),{width:P,height:j}=y.current.getBoundingClientRect();return E(P,j),O.observe(y.current),()=>{O.disconnect()}},[E,l]);var S=M.useMemo(()=>{var{containerWidth:A,containerHeight:O}=b;if(A<0||O<0)return null;td(ru(i)||ru(a),`The width(%s) and height(%s) are both fixed numbers,
78
78
  maybe you don't need to use a ResponsiveContainer.`,i,a),td(!n||n>0,"The aspect(%s) must be greater than zero.",n);var P=ru(i)?A:i,j=ru(a)?O:a;return n&&n>0&&(P?j=P/n:j&&(P=j*n),u&&j>u&&(j=u)),td(P>0||j>0,`The width(%s) and height(%s) of chart should be greater than 0,
79
79
  please check the style of container, or the props width(%s) and height(%s),
80
80
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
81
- height and width.`,P,j,i,a,o,s,n),B.Children.map(c,$=>k.cloneElement($,{width:P,height:j,style:db({width:P,height:j},$.props.style)}))},[n,c,a,u,s,o,b,i]);return B.createElement("div",{id:d?"".concat(d):void 0,className:Ot("recharts-responsive-container",h),style:db(db({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:u}),ref:y},B.createElement("div",{style:{width:0,height:0,overflow:"visible"}},S))}),Ll=e=>null;Ll.displayName="Cell";function J9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function px(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J9(Object(n),!0).forEach(function(r){Aie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aie(e,t,n){return(t=Oie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oie(e){var t=Tie(e,"string");return typeof t=="symbol"?t:t+""}function Tie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mc={widthCache:{},cacheCount:0},Pie=2e3,Cie={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Q9="recharts_measurement_span";function jie(e){var t=px({},e);return Object.keys(t).forEach(n=>{t[n]||delete t[n]}),t}var nd=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wo.isSsr)return{width:0,height:0};var r=jie(n),i=JSON.stringify({text:t,copyStyle:r});if(mc.widthCache[i])return mc.widthCache[i];try{var a=document.getElementById(Q9);a||(a=document.createElement("span"),a.setAttribute("id",Q9),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=px(px({},Cie),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return mc.widthCache[i]=u,++mc.cacheCount>Pie&&(mc.cacheCount=0,mc.widthCache={}),u}catch{return{width:0,height:0}}},e5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,t5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Mie=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,kie=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,PR={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Rie=Object.keys(PR),Ic="NaN";function Iie(e,t){return e*PR[t]}class ni{static parse(t){var n,[,r,i]=(n=kie.exec(t))!==null&&n!==void 0?n:[];return new ni(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Ar(t)&&(this.unit=""),n!==""&&!Mie.test(n)&&(this.num=NaN,this.unit=""),Rie.includes(n)&&(this.num=Iie(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new ni(NaN,""):new ni(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ni(NaN,""):new ni(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ni(NaN,""):new ni(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ni(NaN,""):new ni(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ar(this.num)}}function CR(e){if(e.includes(Ic))return Ic;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,a]=(n=e5.exec(t))!==null&&n!==void 0?n:[],o=ni.parse(r??""),s=ni.parse(a??""),u=i==="*"?o.multiply(s):o.divide(s);if(u.isNaN())return Ic;t=t.replace(e5,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,d,h]=(c=t5.exec(t))!==null&&c!==void 0?c:[],g=ni.parse(l??""),m=ni.parse(h??""),y=d==="+"?g.add(m):g.subtract(m);if(y.isNaN())return Ic;t=t.replace(t5,y.toString())}return t}var n5=/\(([^()]*)\)/;function Die(e){for(var t=e,n;(n=n5.exec(t))!=null;){var[,r]=n;t=t.replace(n5,CR(r))}return t}function Nie(e){var t=e.replace(/\s+/g,"");return t=Die(t),t=CR(t),t}function Lie(e){try{return Nie(e)}catch{return Ic}}function hb(e){var t=Lie(e.slice(5,-1));return t===Ic?"":t}var $ie=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Bie=["dx","dy","angle","className","breakAll"];function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(null,arguments)}function r5(e,t){if(e==null)return{};var n,r,i=zie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var jR=/[ \f\n\r\t\v\u2028\u2029]+/,MR=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];Rt(t)||(n?i=t.toString().split(""):i=t.toString().split(jR));var a=i.map(s=>({word:s,width:nd(s,r).width})),o=n?0:nd(" ",r).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},Fie=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:u}=e,c=Me(a),l=o,d=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce((H,D)=>{var{word:C,width:L}=D,N=H[H.length-1];if(N&&(r==null||i||N.width+L+n<Number(r)))N.words.push(C),N.width+=L+n;else{var V={words:[C],width:L};H.push(V)}return H},[])},h=d(t),g=z=>z.reduce((I,H)=>I.width>H.width?I:H);if(!c||i)return h;var m=h.length>a||g(h).width>Number(r);if(!m)return h;for(var y="…",v=z=>{var I=l.slice(0,z),H=MR({breakAll:u,style:s,children:I+y}).wordsWithComputedWidth,D=d(H),C=D.length>a||g(D).width>Number(r);return[C,D]},b=0,_=l.length-1,E=0,S;b<=_&&E<=l.length-1;){var A=Math.floor((b+_)/2),O=A-1,[P,j]=v(O),[$]=v(A);if(!P&&!$&&(b=A+1),P&&$&&(_=A-1),!P&&$){S=j;break}E++}return S||h},i5=e=>{var t=Rt(e)?[]:e.toString().split(jR);return[{words:t}]},Wie=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!Wo.isSsr){var s,u,c=MR({breakAll:a,children:r,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:d}=c;s=l,u=d}else return i5(r);return Fie({breakAll:a,children:r,maxLines:o,style:i},s,u,t,n)}return i5(r)},a5="#808080",Y0=k.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:s="start",verticalAnchor:u="end",fill:c=a5}=e,l=r5(e,$ie),d=k.useMemo(()=>Wie({breakAll:l.breakAll,children:l.children,maxLines:l.maxLines,scaleToFit:o,style:l.style,width:l.width}),[l.breakAll,l.children,l.maxLines,o,l.style,l.width]),{dx:h,dy:g,angle:m,className:y,breakAll:v}=l,b=r5(l,Bie);if(!si(n)||!si(r))return null;var _=n+(Me(h)?h:0),E=r+(Me(g)?g:0),S;switch(u){case"start":S=hb("calc(".concat(a,")"));break;case"middle":S=hb("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:S=hb("calc(".concat(d.length-1," * -").concat(i,")"));break}var A=[];if(o){var O=d[0].width,{width:P}=l;A.push("scale(".concat(Me(P)?P/O:1,")"))}return m&&A.push("rotate(".concat(m,", ").concat(_,", ").concat(E,")")),A.length&&(b.transform=A.join(" ")),B.createElement("text",gx({},it(b,!0),{ref:t,x:_,y:E,className:Ot("recharts-text",y),textAnchor:s,fill:c.includes("url")?a5:c}),d.map((j,$)=>{var z=j.words.join(v?"":" ");return B.createElement("tspan",{x:_,dy:$===0?S:i,key:"".concat(z,"-").concat($)},z)}))});Y0.displayName="Text";var qie=["offset"],Vie=["labelRef"];function o5(e,t){if(e==null)return{};var n,r,i=Hie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function s5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(n),!0).forEach(function(r){Uie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uie(e,t,n){return(t=Gie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gie(e){var t=Kie(e,"string");return typeof t=="symbol"?t:t+""}function Kie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}var Yie=e=>{var{value:t,formatter:n}=e,r=Rt(e.children)?t:e.children;return typeof n=="function"?n(r):r},JE=e=>e!=null&&typeof e=="function",Xie=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Zie=(e,t,n)=>{var{position:r,viewBox:i,offset:a,className:o}=e,{cx:s,cy:u,innerRadius:c,outerRadius:l,startAngle:d,endAngle:h,clockWise:g}=i,m=(c+l)/2,y=Xie(d,h),v=y>=0?1:-1,b,_;r==="insideStart"?(b=d+v*a,_=g):r==="insideEnd"?(b=h-v*a,_=!g):r==="end"&&(b=h+v*a,_=g),_=y<=0?_:!_;var E=Nn(s,u,m,b),S=Nn(s,u,m,b+(_?1:-1)*359),A="M".concat(E.x,",").concat(E.y,`
81
+ height and width.`,P,j,i,a,o,s,n),B.Children.map(c,$=>M.cloneElement($,{width:P,height:j,style:db({width:P,height:j},$.props.style)}))},[n,c,a,u,s,o,b,i]);return B.createElement("div",{id:d?"".concat(d):void 0,className:Ot("recharts-responsive-container",h),style:db(db({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:u}),ref:y},B.createElement("div",{style:{width:0,height:0,overflow:"visible"}},S))}),Ll=e=>null;Ll.displayName="Cell";function J9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function px(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J9(Object(n),!0).forEach(function(r){Aie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J9(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Aie(e,t,n){return(t=Oie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oie(e){var t=Tie(e,"string");return typeof t=="symbol"?t:t+""}function Tie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mc={widthCache:{},cacheCount:0},Pie=2e3,Cie={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Q9="recharts_measurement_span";function jie(e){var t=px({},e);return Object.keys(t).forEach(n=>{t[n]||delete t[n]}),t}var nd=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wo.isSsr)return{width:0,height:0};var r=jie(n),i=JSON.stringify({text:t,copyStyle:r});if(mc.widthCache[i])return mc.widthCache[i];try{var a=document.getElementById(Q9);a||(a=document.createElement("span"),a.setAttribute("id",Q9),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=px(px({},Cie),r);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return mc.widthCache[i]=u,++mc.cacheCount>Pie&&(mc.cacheCount=0,mc.widthCache={}),u}catch{return{width:0,height:0}}},e5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,t5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Mie=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,kie=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,PR={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Rie=Object.keys(PR),Ic="NaN";function Iie(e,t){return e*PR[t]}class ni{static parse(t){var n,[,r,i]=(n=kie.exec(t))!==null&&n!==void 0?n:[];return new ni(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Ar(t)&&(this.unit=""),n!==""&&!Mie.test(n)&&(this.num=NaN,this.unit=""),Rie.includes(n)&&(this.num=Iie(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new ni(NaN,""):new ni(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ni(NaN,""):new ni(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ni(NaN,""):new ni(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ni(NaN,""):new ni(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ar(this.num)}}function CR(e){if(e.includes(Ic))return Ic;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,a]=(n=e5.exec(t))!==null&&n!==void 0?n:[],o=ni.parse(r??""),s=ni.parse(a??""),u=i==="*"?o.multiply(s):o.divide(s);if(u.isNaN())return Ic;t=t.replace(e5,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,l,d,h]=(c=t5.exec(t))!==null&&c!==void 0?c:[],g=ni.parse(l??""),m=ni.parse(h??""),y=d==="+"?g.add(m):g.subtract(m);if(y.isNaN())return Ic;t=t.replace(t5,y.toString())}return t}var n5=/\(([^()]*)\)/;function Die(e){for(var t=e,n;(n=n5.exec(t))!=null;){var[,r]=n;t=t.replace(n5,CR(r))}return t}function Nie(e){var t=e.replace(/\s+/g,"");return t=Die(t),t=CR(t),t}function Lie(e){try{return Nie(e)}catch{return Ic}}function hb(e){var t=Lie(e.slice(5,-1));return t===Ic?"":t}var $ie=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Bie=["dx","dy","angle","className","breakAll"];function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gx.apply(null,arguments)}function r5(e,t){if(e==null)return{};var n,r,i=zie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var jR=/[ \f\n\r\t\v\u2028\u2029]+/,MR=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];Rt(t)||(n?i=t.toString().split(""):i=t.toString().split(jR));var a=i.map(s=>({word:s,width:nd(s,r).width})),o=n?0:nd(" ",r).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},Fie=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:u}=e,c=Me(a),l=o,d=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce((H,D)=>{var{word:C,width:L}=D,N=H[H.length-1];if(N&&(r==null||i||N.width+L+n<Number(r)))N.words.push(C),N.width+=L+n;else{var V={words:[C],width:L};H.push(V)}return H},[])},h=d(t),g=z=>z.reduce((I,H)=>I.width>H.width?I:H);if(!c||i)return h;var m=h.length>a||g(h).width>Number(r);if(!m)return h;for(var y="…",v=z=>{var I=l.slice(0,z),H=MR({breakAll:u,style:s,children:I+y}).wordsWithComputedWidth,D=d(H),C=D.length>a||g(D).width>Number(r);return[C,D]},b=0,_=l.length-1,E=0,S;b<=_&&E<=l.length-1;){var A=Math.floor((b+_)/2),O=A-1,[P,j]=v(O),[$]=v(A);if(!P&&!$&&(b=A+1),P&&$&&(_=A-1),!P&&$){S=j;break}E++}return S||h},i5=e=>{var t=Rt(e)?[]:e.toString().split(jR);return[{words:t}]},Wie=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!Wo.isSsr){var s,u,c=MR({breakAll:a,children:r,style:i});if(c){var{wordsWithComputedWidth:l,spaceWidth:d}=c;s=l,u=d}else return i5(r);return Fie({breakAll:a,children:r,maxLines:o,style:i},s,u,t,n)}return i5(r)},a5="#808080",Y0=M.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:s="start",verticalAnchor:u="end",fill:c=a5}=e,l=r5(e,$ie),d=M.useMemo(()=>Wie({breakAll:l.breakAll,children:l.children,maxLines:l.maxLines,scaleToFit:o,style:l.style,width:l.width}),[l.breakAll,l.children,l.maxLines,o,l.style,l.width]),{dx:h,dy:g,angle:m,className:y,breakAll:v}=l,b=r5(l,Bie);if(!si(n)||!si(r))return null;var _=n+(Me(h)?h:0),E=r+(Me(g)?g:0),S;switch(u){case"start":S=hb("calc(".concat(a,")"));break;case"middle":S=hb("calc(".concat((d.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:S=hb("calc(".concat(d.length-1," * -").concat(i,")"));break}var A=[];if(o){var O=d[0].width,{width:P}=l;A.push("scale(".concat(Me(P)?P/O:1,")"))}return m&&A.push("rotate(".concat(m,", ").concat(_,", ").concat(E,")")),A.length&&(b.transform=A.join(" ")),B.createElement("text",gx({},it(b,!0),{ref:t,x:_,y:E,className:Ot("recharts-text",y),textAnchor:s,fill:c.includes("url")?a5:c}),d.map((j,$)=>{var z=j.words.join(v?"":" ");return B.createElement("tspan",{x:_,dy:$===0?S:i,key:"".concat(z,"-").concat($)},z)}))});Y0.displayName="Text";var qie=["offset"],Vie=["labelRef"];function o5(e,t){if(e==null)return{};var n,r,i=Hie(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function s5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(n),!0).forEach(function(r){Uie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uie(e,t,n){return(t=Gie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gie(e){var t=Kie(e,"string");return typeof t=="symbol"?t:t+""}function Kie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}var Yie=e=>{var{value:t,formatter:n}=e,r=Rt(e.children)?t:e.children;return typeof n=="function"?n(r):r},JE=e=>e!=null&&typeof e=="function",Xie=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Zie=(e,t,n)=>{var{position:r,viewBox:i,offset:a,className:o}=e,{cx:s,cy:u,innerRadius:c,outerRadius:l,startAngle:d,endAngle:h,clockWise:g}=i,m=(c+l)/2,y=Xie(d,h),v=y>=0?1:-1,b,_;r==="insideStart"?(b=d+v*a,_=g):r==="insideEnd"?(b=h-v*a,_=!g):r==="end"&&(b=h+v*a,_=g),_=y<=0?_:!_;var E=Nn(s,u,m,b),S=Nn(s,u,m,b+(_?1:-1)*359),A="M".concat(E.x,",").concat(E.y,`
82
82
  A`).concat(m,",").concat(m,",0,1,").concat(_?0:1,`,
83
- `).concat(S.x,",").concat(S.y),O=Rt(e.id)?ko("recharts-radial-line-"):e.id;return B.createElement("text",wo({},n,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",o)}),B.createElement("defs",null,B.createElement("path",{id:O,d:A})),B.createElement("textPath",{xlinkHref:"#".concat(O)},t))},Jie=e=>{var{viewBox:t,offset:n,position:r}=e,{cx:i,cy:a,innerRadius:o,outerRadius:s,startAngle:u,endAngle:c}=t,l=(u+c)/2;if(r==="outside"){var{x:d,y:h}=Nn(i,a,s+n,l);return{x:d,y:h,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var g=(o+s)/2,{x:m,y}=Nn(i,a,g,l);return{x:m,y,textAnchor:"middle",verticalAnchor:"middle"}},Qie=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,{x:a,y:o,width:s,height:u}=t,c=u>=0?1:-1,l=c*r,d=c>0?"end":"start",h=c>0?"start":"end",g=s>=0?1:-1,m=g*r,y=g>0?"end":"start",v=g>0?"start":"end";if(i==="top"){var b={x:a+s/2,y:o-c*r,textAnchor:"middle",verticalAnchor:d};return In(In({},b),n?{height:Math.max(o-n.y,0),width:s}:{})}if(i==="bottom"){var _={x:a+s/2,y:o+u+l,textAnchor:"middle",verticalAnchor:h};return In(In({},_),n?{height:Math.max(n.y+n.height-(o+u),0),width:s}:{})}if(i==="left"){var E={x:a-m,y:o+u/2,textAnchor:y,verticalAnchor:"middle"};return In(In({},E),n?{width:Math.max(E.x-n.x,0),height:u}:{})}if(i==="right"){var S={x:a+s+m,y:o+u/2,textAnchor:v,verticalAnchor:"middle"};return In(In({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:u}:{})}var A=n?{width:s,height:u}:{};return i==="insideLeft"?In({x:a+m,y:o+u/2,textAnchor:v,verticalAnchor:"middle"},A):i==="insideRight"?In({x:a+s-m,y:o+u/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?In({x:a+s/2,y:o+l,textAnchor:"middle",verticalAnchor:h},A):i==="insideBottom"?In({x:a+s/2,y:o+u-l,textAnchor:"middle",verticalAnchor:d},A):i==="insideTopLeft"?In({x:a+m,y:o+l,textAnchor:v,verticalAnchor:h},A):i==="insideTopRight"?In({x:a+s-m,y:o+l,textAnchor:y,verticalAnchor:h},A):i==="insideBottomLeft"?In({x:a+m,y:o+u-l,textAnchor:v,verticalAnchor:d},A):i==="insideBottomRight"?In({x:a+s-m,y:o+u-l,textAnchor:y,verticalAnchor:d},A):i&&typeof i=="object"&&(Me(i.x)||ru(i.x))&&(Me(i.y)||ru(i.y))?In({x:a+zr(i.x,s),y:o+zr(i.y,u),textAnchor:"end",verticalAnchor:"end"},A):In({x:a+s/2,y:o+u/2,textAnchor:"middle",verticalAnchor:"middle"},A)},eae=e=>"cx"in e&&Me(e.cx);function Rr(e){var{offset:t=5}=e,n=o5(e,qie),r=In({offset:t},n),{viewBox:i,position:a,value:o,children:s,content:u,className:c="",textBreakAll:l,labelRef:d}=r,h=p0(),g=i||h;if(!g||Rt(o)&&Rt(s)&&!k.isValidElement(u)&&typeof u!="function")return null;if(k.isValidElement(u)){var{labelRef:m}=r,y=o5(r,Vie);return k.cloneElement(u,y)}var v;if(typeof u=="function"){if(v=k.createElement(u,r),k.isValidElement(v))return v}else v=Yie(r);var b=eae(g),_=it(r,!0);if(b&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Zie(r,v,_);var E=b?Jie(r):Qie(r,g);return B.createElement(Y0,wo({ref:d,className:Ot("recharts-label",c)},_,E,{breakAll:l}),v)}Rr.displayName="Label";var kR=e=>{var{cx:t,cy:n,angle:r,startAngle:i,endAngle:a,r:o,radius:s,innerRadius:u,outerRadius:c,x:l,y:d,top:h,left:g,width:m,height:y,clockWise:v,labelViewBox:b}=e;if(b)return b;if(Me(m)&&Me(y)){if(Me(l)&&Me(d))return{x:l,y:d,width:m,height:y};if(Me(h)&&Me(g))return{x:h,y:g,width:m,height:y}}if(Me(l)&&Me(d))return{x:l,y:d,width:0,height:0};if(Me(t)&&Me(n))return{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:u||0,outerRadius:c||s||o||0,clockWise:v};if(e.viewBox)return e.viewBox},tae=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?B.createElement(Rr,wo({key:"label-implicit"},r)):si(e)?B.createElement(Rr,wo({key:"label-implicit",value:e},r)):k.isValidElement(e)?e.type===Rr?k.cloneElement(e,In({key:"label-implicit"},r)):B.createElement(Rr,wo({key:"label-implicit",content:e},r)):JE(e)?B.createElement(Rr,wo({key:"label-implicit",content:e},r)):e&&typeof e=="object"?B.createElement(Rr,wo({},e,{key:"label-implicit"},r)):null},nae=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var{children:i,labelRef:a}=t,o=kR(t),s=El(i,Rr).map((c,l)=>k.cloneElement(c,{viewBox:n||o,key:"label-".concat(l)}));if(!r)return s;var u=tae(t.label,n||o,a);return[u,...s]};Rr.parseViewBox=kR;Rr.renderCallByParent=nae;var pb={},gb={},u5;function rae(){return u5||(u5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}(gb)),gb}var vb={},c5;function iae(){return c5||(c5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(vb)),vb}var l5;function aae(){return l5||(l5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rae(),n=iae(),r=h2();function i(a){if(r.isArrayLike(a))return t.last(n.toArray(a))}e.last=i}(pb)),pb}var mb,f5;function oae(){return f5||(f5=1,mb=aae().last),mb}var sae=oae();const uae=Va(sae);var cae=["valueAccessor"],lae=["data","dataKey","clockWise","id","textBreakAll"];function Zg(){return Zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zg.apply(null,arguments)}function d5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(n),!0).forEach(function(r){fae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fae(e,t,n){return(t=dae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dae(e){var t=hae(e,"string");return typeof t=="symbol"?t:t+""}function hae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p5(e,t){if(e==null)return{};var n,r,i=pae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gae=e=>Array.isArray(e.value)?uae(e.value):e.value;function Ia(e){var{valueAccessor:t=gae}=e,n=p5(e,cae),{data:r,dataKey:i,clockWise:a,id:o,textBreakAll:s}=n,u=p5(n,lae);return!r||!r.length?null:B.createElement(Vt,{className:"recharts-label-list"},r.map((c,l)=>{var d=Rt(i)?t(c,l):$t(c&&c.payload,i),h=Rt(o)?{}:{id:"".concat(o,"-").concat(l)};return B.createElement(Rr,Zg({},it(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:Rr.parseViewBox(Rt(a)?c:h5(h5({},c),{},{clockWise:a})),key:"label-".concat(l),index:l}))}))}Ia.displayName="LabelList";function vae(e,t){return e?e===!0?B.createElement(Ia,{key:"labelList-implicit",data:t}):B.isValidElement(e)||JE(e)?B.createElement(Ia,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?B.createElement(Ia,Zg({data:t},e,{key:"labelList-implicit"})):null:null}function mae(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var{children:r}=e,i=El(r,Ia).map((o,s)=>k.cloneElement(o,{data:t,key:"labelList-".concat(s)}));if(!n)return i;var a=vae(e.label,t);return[a,...i]}Ia.renderCallByParent=mae;var yae=["points","className","baseLinePoints","connectNulls"];function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(null,arguments)}function bae(e,t){if(e==null)return{};var n,r,i=wae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var g5=e=>e&&e.x===+e.x&&e.y===+e.y,xae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(r=>{g5(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),g5(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},rd=(e,t)=>{var n=xae(e);t&&(n=[n.reduce((i,a)=>[...i,...a],[])]);var r=n.map(i=>i.reduce((a,o,s)=>"".concat(a).concat(s===0?"M":"L").concat(o.x,",").concat(o.y),"")).join("");return n.length===1?"".concat(r,"Z"):r},_ae=(e,t,n)=>{var r=rd(e,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(rd(t.reverse(),n).slice(1))},Eae=e=>{var{points:t,className:n,baseLinePoints:r,connectNulls:i}=e,a=bae(e,yae);if(!t||!t.length)return null;var o=Ot("recharts-polygon",n);if(r&&r.length){var s=a.stroke&&a.stroke!=="none",u=_ae(t,r,i);return B.createElement("g",{className:o},B.createElement("path",Dc({},it(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),s?B.createElement("path",Dc({},it(a,!0),{fill:"none",d:rd(t,i)})):null,s?B.createElement("path",Dc({},it(a,!0),{fill:"none",d:rd(r,i)})):null)}var c=rd(t,i);return B.createElement("path",Dc({},it(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",className:o,d:c}))};function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vx.apply(null,arguments)}var X0=e=>{var{cx:t,cy:n,r,className:i}=e,a=Ot("recharts-dot",i);return t===+t&&n===+n&&r===+r?B.createElement("circle",vx({},it(e,!1),G_(e),{className:a,cx:t,cy:n,r})):null},RR=e=>e.graphicalItems.polarItems,Sae=se([Mn,rh],TE),QE=se([RR,kn,Sae],PE),Aae=se([QE],CE),eS=se([Aae,mE],jE),Oae=se([eS,kn,QE],ME),Tae=se([eS,kn,QE],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var a,o=$t(r,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:$t(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),v5=()=>{},Pae=se([kn,Wk,v5,Tae,v5],IE),IR=se([kn,It,eS,Oae,nh,Mn,Pae],DE),Cae=se([IR,kn,Rl],$E);se([kn,IR,Cae,Mn],zE);var jae={radiusAxis:{},angleAxis:{}},DR=ea({name:"polarAxis",initialState:jae,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:tOe,removeRadiusAxis:nOe,addAngleAxis:rOe,removeAngleAxis:iOe}=DR.actions,Mae=DR.reducer;function m5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function y5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m5(Object(n),!0).forEach(function(r){kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kae(e,t,n){return(t=Rae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rae(e){var t=Iae(e,"string");return typeof t=="symbol"?t:t+""}function Iae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tS=(e,t)=>t,Dae=[],nS=(e,t,n)=>n?.length===0?Dae:n,NR=se([mE,tS,nS],(e,t,n)=>{var{chartData:r}=e,i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(a=>y5(y5({},t.presentationProps),a.props))),i!=null)return i}),Nae=se([NR,tS,nS],(e,t,n)=>{if(e!=null)return e.map((r,i)=>{var a,o=$t(r,t.nameKey,t.name),s;return n!=null&&(a=n[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?s=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?s=r.fill:s=t.fill,{value:Ua(o,t.dataKey),color:s,payload:r,type:t.legendType}})}),Lae=se([RR,tS],(e,t)=>{if(e.some(n=>n.type==="pie"&&t.dataKey===n.dataKey&&t.data===n.data))return t}),$ae=se([NR,Lae,nS,Hn],(e,t,n,r)=>{if(!(t==null||e==null))return Coe({offset:r,pieSettings:t,displayedData:e,cells:n})}),Bae={countOfBars:0,cartesianItems:[],polarItems:[]},LR=ea({name:"graphicalItems",initialState:Bae,reducers:{addBar(e){e.countOfBars+=1},removeBar(e){e.countOfBars-=1},addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=Co(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=Co(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=Co(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addBar:zae,removeBar:Fae,addCartesianGraphicalItem:Wae,replaceCartesianGraphicalItem:qae,removeCartesianGraphicalItem:Vae,addPolarGraphicalItem:Hae,removePolarGraphicalItem:Uae}=LR.actions,Gae=LR.reducer;function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function w5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b5(Object(n),!0).forEach(function(r){Kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kae(e,t,n){return(t=Yae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yae(e){var t=Xae(e,"string");return typeof t=="symbol"?t:t+""}function Xae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zae(e){var t=en(),n=k.useRef(null);return k.useEffect(()=>{var r=w5(w5({},e),{},{stackId:S2(e.stackId)});n.current===null?t(Wae(r)):n.current!==r&&t(qae({prev:n.current,next:r})),n.current=r},[t,e]),k.useEffect(()=>()=>{n.current&&(t(Vae(n.current)),n.current=null)},[t]),null}function Jae(e){var t=en();return k.useEffect(()=>(t(Hae(e)),()=>{t(Uae(e))}),[t,e]),null}var yb={},x5;function Qae(){return x5||(x5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(yb)),yb}var bb,_5;function eoe(){return _5||(_5=1,bb=Qae().isPlainObject),bb}var toe=eoe();const noe=Va(toe);function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jg.apply(null,arguments)}var E5=(e,t,n,r,i)=>{var a=n-r,o;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z"),o},roe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ioe=e=>{var t=li(e,roe),n=k.useRef(),[r,i]=k.useState(-1);k.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var v=n.current.getTotalLength();v&&i(v)}catch{}},[]);var{x:a,y:o,upperWidth:s,lowerWidth:u,height:c,className:l}=t,{animationEasing:d,animationDuration:h,animationBegin:g,isUpdateAnimationActive:m}=t;if(a!==+a||o!==+o||s!==+s||u!==+u||c!==+c||s===0&&u===0||c===0)return null;var y=Ot("recharts-trapezoid",l);return m?B.createElement(Na,{canBegin:r>0,from:{upperWidth:0,lowerWidth:0,height:c,x:a,y:o},to:{upperWidth:s,lowerWidth:u,height:c,x:a,y:o},duration:h,animationEasing:d,isActive:m},v=>{var{upperWidth:b,lowerWidth:_,height:E,x:S,y:A}=v;return B.createElement(Na,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:d},B.createElement("path",Jg({},it(t,!0),{className:y,d:E5(S,A,b,_,E),ref:n})))}):B.createElement("g",null,B.createElement("path",Jg({},it(t,!0),{className:y,d:E5(a,o,s,u,c)})))},aoe=["option","shapeType","propTransformer","activeClassName","isActive"];function ooe(e,t){if(e==null)return{};var n,r,i=soe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function soe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function S5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S5(Object(n),!0).forEach(function(r){uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uoe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=loe(e,"string");return typeof t=="symbol"?t:t+""}function loe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function foe(e,t){return Qg(Qg({},t),e)}function doe(e,t){return e==="symbols"}function A5(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return B.createElement(S7,n);case"trapezoid":return B.createElement(ioe,n);case"sector":return B.createElement(Dg,n);case"symbols":if(doe(t))return B.createElement(i0,n);break;default:return null}}function hoe(e){return k.isValidElement(e)?e.props:e}function ev(e){var{option:t,shapeType:n,propTransformer:r=foe,activeClassName:i="recharts-active-shape",isActive:a}=e,o=ooe(e,aoe),s;if(k.isValidElement(t))s=k.cloneElement(t,Qg(Qg({},o),hoe(t)));else if(typeof t=="function")s=t(o);else if(noe(t)&&typeof t!="boolean"){var u=r(t,o);s=B.createElement(A5,{shapeType:n,elementProps:u})}else{var c=o;s=B.createElement(A5,{shapeType:n,elementProps:c})}return a?B.createElement(Vt,{className:i},s):s}var Z0=(e,t)=>{var n=en();return(r,i)=>a=>{e?.(r,i,a),n(iR({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},J0=e=>{var t=en();return(n,r)=>i=>{e?.(n,r,i),t(Gne())}},Q0=(e,t)=>{var n=en();return(r,i)=>a=>{e?.(r,i,a),n(Kne({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function ch(e){var{fn:t,args:n}=e,r=en(),i=Un();return k.useEffect(()=>{if(!i){var a=t(n);return r(Vne(a)),()=>{r(Hne(a))}}},[t,n,r,i]),null}var $R=()=>{};function em(e){var{legendPayload:t}=e,n=en(),r=Un();return k.useEffect(()=>r?$R:(n(y7(t)),()=>{n(b7(t))}),[n,r,t]),null}function poe(e){var{legendPayload:t}=e,n=en(),r=ke(It);return k.useEffect(()=>r!=="centric"&&r!=="radial"?$R:(n(y7(t)),()=>{n(b7(t))}),[n,r,t]),null}function lh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=k.useRef(ko(t)),r=k.useRef(e);return r.current!==e&&(n.current=ko(t),r.current=e),n.current}var goe=["onMouseEnter","onClick","onMouseLeave"];function voe(e,t){if(e==null)return{};var n,r,i=moe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function moe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function O5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(n),!0).forEach(function(r){tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tm(e,t,n){return(t=yoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yoe(e){var t=boe(e,"string");return typeof t=="symbol"?t:t+""}function boe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ku.apply(null,arguments)}function woe(e){var t=k.useMemo(()=>it(e,!1),[e]),n=k.useMemo(()=>El(e.children,Ll),[e.children]),r=k.useMemo(()=>({name:e.name,nameKey:e.nameKey,tooltipType:e.tooltipType,data:e.data,dataKey:e.dataKey,cx:e.cx,cy:e.cy,startAngle:e.startAngle,endAngle:e.endAngle,minAngle:e.minAngle,paddingAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius,legendType:e.legendType,fill:e.fill,presentationProps:t}),[e.cornerRadius,e.cx,e.cy,e.data,e.dataKey,e.endAngle,e.innerRadius,e.minAngle,e.name,e.nameKey,e.outerRadius,e.paddingAngle,e.startAngle,e.tooltipType,e.legendType,e.fill,t]),i=ke(a=>Nae(a,r,n));return B.createElement(poe,{legendPayload:i})}function xoe(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:u,tooltipType:c}=e;return{dataDefinedOnItem:r?.map(l=>l.tooltipPayload),positions:r?.map(l=>l.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:Ua(s,t),hide:u,type:c,color:o,unit:""}}}var _oe=(e,t)=>e>t?"start":e<t?"end":"middle",Eoe=(e,t,n)=>typeof t=="function"?t(e):zr(t,n,n*.8),Soe=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=f7(a,o),u=i+zr(e.cx,a,a/2),c=r+zr(e.cy,o,o/2),l=zr(e.innerRadius,s,0),d=Eoe(n,e.outerRadius,s),h=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:u,cy:c,innerRadius:l,outerRadius:d,maxRadius:h}},Aoe=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Ooe=(e,t)=>{if(B.isValidElement(e))return B.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Ot("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return B.createElement(pu,ku({},t,{type:"linear",className:n}))},Toe=(e,t,n)=>{if(B.isValidElement(e))return B.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),B.isValidElement(r)))return r;var i=Ot("recharts-pie-label-text",typeof e!="boolean"&&typeof e!="function"?e.className:"");return B.createElement(Y0,ku({},t,{alignmentBaseline:"middle",className:i}),r)};function Poe(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=it(n,!1),u=it(i,!1),c=it(a,!1),l=typeof i=="object"&&"offsetRadius"in i&&i.offsetRadius||20,d=t.map((h,g)=>{var m=(h.startAngle+h.endAngle)/2,y=Nn(h.cx,h.cy,h.outerRadius+l,m),v=An(An(An(An({},s),h),{},{stroke:"none"},u),{},{index:g,textAnchor:_oe(y.x,h.cx)},y),b=An(An(An(An({},s),h),{},{fill:"none",stroke:h.fill},c),{},{index:g,points:[Nn(h.cx,h.cy,h.outerRadius,m),y],key:"line"});return B.createElement(Vt,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(g)},a&&Ooe(a,b),Toe(i,v,$t(h,o)))});return B.createElement(Vt,{className:"recharts-pie-labels"},d)}function BR(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,showLabels:a}=e,o=ke(Do),{onMouseEnter:s,onClick:u,onMouseLeave:c}=i,l=voe(i,goe),d=Z0(s,i.dataKey),h=J0(c),g=Q0(u,i.dataKey);return t==null?null:B.createElement(B.Fragment,null,t.map((m,y)=>{if(m?.startAngle===0&&m?.endAngle===0&&t.length!==1)return null;var v=n&&String(y)===o,b=o?r:null,_=v?n:b,E=An(An({},m),{},{stroke:m.stroke,tabIndex:-1,[T2]:y,[P2]:i.dataKey});return B.createElement(Vt,ku({tabIndex:-1,className:"recharts-pie-sector"},_l(l,m,y),{onMouseEnter:d(m,y),onMouseLeave:h(m,y),onClick:g(m,y),key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(y)}),B.createElement(ev,ku({option:_,isActive:v,shapeType:"sector"},E)))}),B.createElement(Poe,{sectors:t,props:i,showLabels:a}))}function Coe(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:a}=e,{cornerRadius:o,startAngle:s,endAngle:u,dataKey:c,nameKey:l,tooltipType:d}=n,h=Math.abs(n.minAngle),g=Aoe(s,u),m=Math.abs(g),y=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,v=r.filter(O=>$t(O,c,0)!==0).length,b=(m>=360?v:v-1)*y,_=m-v*h-b,E=r.reduce((O,P)=>{var j=$t(P,c,0);return O+(Me(j)?j:0)},0),S;if(E>0){var A;S=r.map((O,P)=>{var j=$t(O,c,0),$=$t(O,l,P),z=Soe(n,a,O),I=(Me(j)?j:0)/E,H,D=An(An({},O),i&&i[P]&&i[P].props);P?H=A.endAngle+Xn(g)*y*(j!==0?1:0):H=s;var C=H+Xn(g)*((j!==0?h:0)+I*_),L=(H+C)/2,N=(z.innerRadius+z.outerRadius)/2,V=[{name:$,value:j,payload:D,dataKey:c,type:d}],Z=Nn(z.cx,z.cy,N,L);return A=An(An(An(An({},n.presentationProps),{},{percent:I,cornerRadius:o,name:$,tooltipPayload:V,midAngle:L,middleRadius:N,tooltipPosition:Z},D),z),{},{value:$t(O,c),startAngle:H,endAngle:C,payload:D,paddingAngle:Xn(g)*y}),A})}return S}function joe(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,activeShape:u,inactiveShape:c,onAnimationStart:l,onAnimationEnd:d}=t,h=lh(t,"recharts-pie-"),g=n.current,[m,y]=k.useState(!0),v=k.useCallback(()=>{typeof d=="function"&&d(),y(!1)},[d]),b=k.useCallback(()=>{typeof l=="function"&&l(),y(!0)},[l]);return B.createElement(Na,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},onAnimationStart:b,onAnimationEnd:v,key:h},_=>{var{t:E}=_,S=[],A=r&&r[0],O=A.startAngle;return r.forEach((P,j)=>{var $=g&&g[j],z=j>0?Es(P,"paddingAngle",0):0;if($){var I=cr($.endAngle-$.startAngle,P.endAngle-P.startAngle),H=An(An({},P),{},{startAngle:O+z,endAngle:O+I(E)+z});S.push(H),O=H.endAngle}else{var{endAngle:D,startAngle:C}=P,L=cr(0,D-C),N=L(E),V=An(An({},P),{},{startAngle:O+z,endAngle:O+N+z});S.push(V),O=V.endAngle}}),n.current=S,B.createElement(Vt,null,B.createElement(BR,{sectors:S,activeShape:u,inactiveShape:c,allOtherPieProps:t,showLabels:!m}))})}function Moe(e){var{sectors:t,isAnimationActive:n,activeShape:r,inactiveShape:i}=e,a=k.useRef(null),o=a.current;return n&&t&&t.length&&(!o||o!==t)?B.createElement(joe,{props:e,previousSectorsRef:a}):B.createElement(BR,{sectors:t,activeShape:r,inactiveShape:i,allOtherPieProps:e,showLabels:!0})}function koe(e){var{hide:t,className:n,rootTabIndex:r}=e,i=Ot("recharts-pie",n);return t?null:B.createElement(Vt,{tabIndex:r,className:i},B.createElement(Moe,e))}var zR={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Wo.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function Roe(e){var t=li(e,zR),n=k.useMemo(()=>El(e.children,Ll),[e.children]),r=it(t,!1),i=k.useMemo(()=>({name:t.name,nameKey:t.nameKey,tooltipType:t.tooltipType,data:t.data,dataKey:t.dataKey,cx:t.cx,cy:t.cy,startAngle:t.startAngle,endAngle:t.endAngle,minAngle:t.minAngle,paddingAngle:t.paddingAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,cornerRadius:t.cornerRadius,legendType:t.legendType,fill:t.fill,presentationProps:r}),[t.cornerRadius,t.cx,t.cy,t.data,t.dataKey,t.endAngle,t.innerRadius,t.minAngle,t.name,t.nameKey,t.outerRadius,t.paddingAngle,t.startAngle,t.tooltipType,t.legendType,t.fill,r]),a=ke(o=>$ae(o,i,n));return B.createElement(B.Fragment,null,B.createElement(ch,{fn:xoe,args:An(An({},t),{},{sectors:a})}),B.createElement(koe,ku({},t,{sectors:a})))}class rS extends k.PureComponent{constructor(){super(...arguments),tm(this,"id",ko("recharts-pie-"))}render(){return B.createElement(B.Fragment,null,B.createElement(Jae,{data:this.props.data,dataKey:this.props.dataKey,hide:this.props.hide,angleAxisId:0,radiusAxisId:0,stackId:void 0,barSize:void 0,type:"pie"}),B.createElement(woe,this.props),B.createElement(Roe,this.props),this.props.children)}}tm(rS,"displayName","Pie");tm(rS,"defaultProps",zR);var Ioe=se([Hn],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Doe=se([Ioe,zo,Fo],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Noe=e=>{var t=Un();return ke(n=>ui(n,"xAxis",e,t))},Loe=e=>{var t=Un();return ke(n=>ui(n,"yAxis",e,t))},nm=()=>ke(Doe),$oe=()=>ke(kre);function T5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function P5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T5(Object(n),!0).forEach(function(r){Boe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Boe(e,t,n){return(t=zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zoe(e){var t=Foe(e,"string");return typeof t=="symbol"?t:t+""}function Foe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Woe=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=P5(P5({index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},it(i,!1)),G_(i)),s;return k.isValidElement(i)?s=k.cloneElement(i,o):typeof i=="function"?s=i(o):s=B.createElement(X0,o),B.createElement(Vt,{className:"recharts-active-dot"},s)};function mx(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,a=ke(Do),o=$oe();if(t==null||o==null)return null;var s=t.find(u=>o.includes(u.payload));return Rt(s)?null:Woe({point:s,childIndex:Number(a),mainColor:n,dataKey:i,activeDot:r})}var qoe=()=>{var e=en();return k.useEffect(()=>(e(zae()),()=>{e(Fae())})),null},Voe=["children"];function Hoe(e,t){if(e==null)return{};var n,r,i=Uoe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uoe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var C5=()=>{},FR=k.createContext({addErrorBar:C5,removeErrorBar:C5}),Goe={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},WR=k.createContext(Goe);function iS(e){var{children:t}=e,n=Hoe(e,Voe);return B.createElement(WR.Provider,{value:n},t)}var Koe=()=>k.useContext(WR),rm=e=>{var{children:t,xAxisId:n,yAxisId:r,zAxisId:i,dataKey:a,data:o,stackId:s,hide:u,type:c,barSize:l}=e,[d,h]=B.useState([]),g=k.useCallback(v=>{h(b=>[...b,v])},[h]),m=k.useCallback(v=>{h(b=>b.filter(_=>_!==v))},[h]),y=Un();return B.createElement(FR.Provider,{value:{addErrorBar:g,removeErrorBar:m}},B.createElement(Zae,{type:c,data:o,xAxisId:n,yAxisId:r,zAxisId:i,dataKey:a,errorBars:d,stackId:s,hide:u,barSize:l,isPanorama:y}),t)};function Yoe(e){var{addErrorBar:t,removeErrorBar:n}=k.useContext(FR);return k.useEffect(()=>(t(e),()=>{n(e)}),[t,n,e]),null}var Xoe=["direction","width","dataKey","isAnimationActive","animationBegin","animationDuration","animationEasing"];function qR(e,t,n){return(t=Zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zoe(e){var t=Joe(e,"string");return typeof t=="symbol"?t:t+""}function Joe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Td.apply(null,arguments)}function Qoe(e,t){if(e==null)return{};var n,r,i=ese(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ese(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tse(e){var{direction:t,width:n,dataKey:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s}=e,u=Qoe(e,Xoe),c=it(u,!1),{data:l,dataPointFormatter:d,xAxisId:h,yAxisId:g,errorBarOffset:m}=Koe(),y=Noe(h),v=Loe(g);if(y?.scale==null||v?.scale==null||l==null||t==="x"&&y.type!=="number")return null;var b=l.map(_=>{var{x:E,y:S,value:A,errorVal:O}=d(_,r,t);if(!O)return null;var P=[],j,$;if(Array.isArray(O)?[j,$]=O:j=$=O,t==="x"){var{scale:z}=y,I=S+m,H=I+n,D=I-n,C=z(A-j),L=z(A+$);P.push({x1:L,y1:H,x2:L,y2:D}),P.push({x1:C,y1:I,x2:L,y2:I}),P.push({x1:C,y1:H,x2:C,y2:D})}else if(t==="y"){var{scale:N}=v,V=E+m,Z=V-n,K=V+n,R=N(A-j),W=N(A+$);P.push({x1:Z,y1:W,x2:K,y2:W}),P.push({x1:V,y1:R,x2:V,y2:W}),P.push({x1:Z,y1:R,x2:K,y2:R})}var U="".concat(E+m,"px ").concat(S+m,"px");return B.createElement(Vt,Td({className:"recharts-errorBar",key:"bar-".concat(P.map(Y=>"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)))},c),P.map(Y=>{var ae=i?{transformOrigin:"".concat(Y.x1-5,"px")}:void 0;return B.createElement(Na,{from:{transform:"scaleY(0)",transformOrigin:U},to:{transform:"scaleY(1)",transformOrigin:U},begin:a,easing:s,isActive:i,duration:o,key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2),style:{transformOrigin:U}},B.createElement("line",Td({},Y,{style:ae})))}))});return B.createElement(Vt,{className:"recharts-errorBars"},b)}var VR=k.createContext(void 0);function nse(e){var t=k.useContext(VR);return e??t??"x"}function HR(e){var{direction:t,children:n}=e;return B.createElement(VR.Provider,{value:t},n)}var UR={stroke:"black",strokeWidth:1.5,width:5,offset:0,isAnimationActive:!0,animationBegin:0,animationDuration:400,animationEasing:"ease-in-out"};function rse(e){var t=nse(e.direction),{width:n,isAnimationActive:r,animationBegin:i,animationDuration:a,animationEasing:o}=li(e,UR);return B.createElement(B.Fragment,null,B.createElement(Yoe,{dataKey:e.dataKey,direction:t}),B.createElement(tse,Td({},e,{direction:t,width:n,isAnimationActive:r,animationBegin:i,animationDuration:a,animationEasing:o})))}class GR extends k.Component{render(){return B.createElement(rse,this.props)}}qR(GR,"defaultProps",UR);qR(GR,"displayName","ErrorBar");var ise=process.env.NODE_ENV==="production",wb="Invariant failed";function j5(e,t){if(ise)throw new Error(wb);var n=typeof t=="function"?t():t,r=n?"".concat(wb,": ").concat(n):wb;throw new Error(r)}var ase=["x","y"];function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yx.apply(null,arguments)}function M5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M5(Object(n),!0).forEach(function(r){ose(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ose(e,t,n){return(t=sse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sse(e){var t=use(e,"string");return typeof t=="symbol"?t:t+""}function use(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cse(e,t){if(e==null)return{};var n,r,i=lse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fse(e,t){var{x:n,y:r}=e,i=cse(e,ase),a="".concat(n),o=parseInt(a,10),s="".concat(r),u=parseInt(s,10),c="".concat(t.height||i.height),l=parseInt(c,10),d="".concat(t.width||i.width),h=parseInt(d,10);return _f(_f(_f(_f(_f({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:l,width:h,name:t.name,radius:t.radius})}function KR(e){return B.createElement(ev,yx({shapeType:"rectangle",propTransformer:fse,activeClassName:"recharts-active-bar"},e))}var dse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Me(t))return t;var a=Me(r)||Rt(r);return a?t(r,i):(a||(process.env.NODE_ENV!=="production"?j5(!1,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")):j5()),n)}};function fh(e,t){var n,r,i=ke(c=>Ga(c,e)),a=ke(c=>Vo(c,t)),o=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:bi.allowDataOverflow,s=(r=a?.allowDataOverflow)!==null&&r!==void 0?r:wi.allowDataOverflow,u=o||s;return{needClip:u,needClipX:o,needClipY:s}}function im(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=nm(),{needClipX:a,needClipY:o,needClip:s}=fh(t,n);if(!s)return null;var{x:u,y:c,width:l,height:d}=i;return B.createElement("clipPath",{id:"clipPath-".concat(r)},B.createElement("rect",{x:a?u:u-l/2,y:o?c:c-d/2,width:a?l:l*2,height:o?d:d*2}))}var hse=["onMouseEnter","onMouseLeave","onClick"],pse=["value","background","tooltipPosition"],gse=["onMouseEnter","onClick","onMouseLeave"];function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(null,arguments)}function k5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k5(Object(n),!0).forEach(function(r){am(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function am(e,t,n){return(t=vse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vse(e){var t=mse(e,"string");return typeof t=="symbol"?t:t+""}function mse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bx(e,t){if(e==null)return{};var n,r,i=yse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bse=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ua(n,t),payload:e}]};function wse(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Ua(a,t),hide:o,type:e.tooltipType,color:e.fill,unit:s}}}function xse(e){var t=ke(Do),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:u}=a,c=bx(a,hse),l=Z0(o,r),d=J0(s),h=Q0(u,r);if(!i||n==null)return null;var g=it(i,!1);return B.createElement(B.Fragment,null,n.map((m,y)=>{var{value:v,background:b,tooltipPosition:_}=m,E=bx(m,pse);if(!b)return null;var S=l(m,y),A=d(m,y),O=h(m,y),P=_r(_r(_r(_r(_r({option:i,isActive:String(y)===t},E),{},{fill:"#eee"},b),g),_l(c,m,y)),{},{onMouseEnter:S,onMouseLeave:A,onClick:O,dataKey:r,index:y,className:"recharts-bar-background-rectangle"});return B.createElement(KR,Pd({key:"background-bar-".concat(y)},P))}))}function YR(e){var{data:t,props:n,showLabels:r}=e,i=it(n,!1),{shape:a,dataKey:o,activeBar:s}=n,u=ke(Do),c=ke(mR),{onMouseEnter:l,onClick:d,onMouseLeave:h}=n,g=bx(n,gse),m=Z0(l,o),y=J0(h),v=Q0(d,o);return t?B.createElement(B.Fragment,null,t.map((b,_)=>{var E=s&&String(_)===u&&(c==null||o===c),S=E?s:a,A=_r(_r(_r({},i),b),{},{isActive:E,option:S,index:_,dataKey:o});return B.createElement(Vt,Pd({className:"recharts-bar-rectangle"},_l(g,b,_),{onMouseEnter:m(b,_),onMouseLeave:y(b,_),onClick:v(b,_),key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(_)}),B.createElement(KR,A))}),r&&Ia.renderCallByParent(n,t)):null}function _se(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:u,onAnimationEnd:c,onAnimationStart:l}=t,d=n.current,h=lh(t,"recharts-bar-"),[g,m]=k.useState(!1),y=k.useCallback(()=>{typeof c=="function"&&c(),m(!1)},[c]),v=k.useCallback(()=>{typeof l=="function"&&l(),m(!0)},[l]);return B.createElement(Na,{begin:o,duration:s,isActive:a,easing:u,from:{t:0},to:{t:1},onAnimationEnd:y,onAnimationStart:v,key:h},b=>{var{t:_}=b,E=_===1?r:r.map((S,A)=>{var O=d&&d[A];if(O){var P=cr(O.x,S.x),j=cr(O.y,S.y),$=cr(O.width,S.width),z=cr(O.height,S.height);return _r(_r({},S),{},{x:P(_),y:j(_),width:$(_),height:z(_)})}if(i==="horizontal"){var I=cr(0,S.height),H=I(_);return _r(_r({},S),{},{y:S.y+S.height-H,height:H})}var D=cr(0,S.width),C=D(_);return _r(_r({},S),{},{width:C})});return _>0&&(n.current=E),B.createElement(Vt,null,B.createElement(YR,{props:t,data:E,showLabels:!g}))})}function Ese(e){var{data:t,isAnimationActive:n}=e,r=k.useRef(null);return n&&t&&t.length&&(r.current==null||r.current!==t)?B.createElement(_se,{previousRectanglesRef:r,props:e}):B.createElement(YR,{props:e,data:t,showLabels:!0})}var XR=0,Sse=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:$t(e,t)}};class Ase extends k.PureComponent{constructor(){super(...arguments),am(this,"id",ko("recharts-bar-"))}render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:a,yAxisId:o,needClip:s,background:u,id:c,layout:l}=this.props;if(t)return null;var d=Ot("recharts-bar",i),h=Rt(c)?this.id:c;return B.createElement(Vt,{className:d},s&&B.createElement("defs",null,B.createElement(im,{clipPathId:h,xAxisId:a,yAxisId:o})),B.createElement(Vt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(h,")"):null},B.createElement(xse,{data:n,dataKey:r,background:u,allOtherBarProps:this.props}),B.createElement(Ese,this.props)),B.createElement(HR,{direction:l==="horizontal"?"y":"x"},this.props.children))}}var ZR={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Wo.isSsr,legendType:"rect",minPointSize:XR,xAxisId:0,yAxisId:0};function Ose(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:u,animationEasing:c,isAnimationActive:l}=li(e,ZR),{needClip:d}=fh(t,n),h=Zd(),g=Un(),m=k.useMemo(()=>({barSize:e.barSize,data:void 0,dataKey:e.dataKey,maxBarSize:e.maxBarSize,minPointSize:a,stackId:S2(e.stackId)}),[e.barSize,e.dataKey,e.maxBarSize,a,e.stackId]),y=El(e.children,Ll),v=ke(E=>eue(E,t,n,g,m,y));if(h!=="vertical"&&h!=="horizontal")return null;var b,_=v?.[0];return _==null||_.height==null||_.width==null?b=0:b=h==="vertical"?_.height/2:_.width/2,B.createElement(iS,{xAxisId:t,yAxisId:n,data:v,dataPointFormatter:Sse,errorBarOffset:b},B.createElement(Ase,Pd({},e,{layout:h,needClip:d,data:v,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:u,animationEasing:c,isAnimationActive:l})))}function Tse(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:a,xAxis:o,yAxis:s,xAxisTicks:u,yAxisTicks:c,stackedData:l,displayedData:d,offset:h,cells:g}=e,m=t==="horizontal"?s:o,y=l?m.scale.domain():null,v=oX({numericAxis:m});return d.map((b,_)=>{var E,S,A,O,P,j;l?E=tX(l[_],y):(E=$t(b,n),Array.isArray(E)||(E=[v,E]));var $=dse(r,XR)(E[1],_);if(t==="horizontal"){var z,[I,H]=[s.scale(E[0]),s.scale(E[1])];S=cP({axis:o,ticks:u,bandSize:a,offset:i.offset,entry:b,index:_}),A=(z=H??I)!==null&&z!==void 0?z:void 0,O=i.size;var D=I-H;if(P=Ar(D)?0:D,j={x:S,y:h.top,width:O,height:h.height},Math.abs($)>0&&Math.abs(P)<Math.abs($)){var C=Xn(P||$)*(Math.abs($)-Math.abs(P));A-=C,P+=C}}else{var[L,N]=[o.scale(E[0]),o.scale(E[1])];if(S=L,A=cP({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:b,index:_}),O=N-L,P=i.size,j={x:h.left,y:A,width:h.width,height:P},Math.abs($)>0&&Math.abs(O)<Math.abs($)){var V=Xn(O||$)*(Math.abs($)-Math.abs(O));O+=V}}var Z=_r(_r({},b),{},{x:S,y:A,width:O,height:P,value:l?E:E[1],payload:b,background:j,tooltipPosition:{x:S+O/2,y:A+P/2}},g&&g[_]&&g[_].props);return Z})}class aS extends k.PureComponent{render(){return B.createElement(rm,{type:"bar",data:null,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,dataKey:this.props.dataKey,stackId:this.props.stackId,hide:this.props.hide,barSize:this.props.barSize},B.createElement(qoe,null),B.createElement(em,{legendPayload:bse(this.props)}),B.createElement(ch,{fn:wse,args:this.props}),B.createElement(Ose,this.props))}}am(aS,"displayName","Bar");am(aS,"defaultProps",ZR);function R5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R5(Object(n),!0).forEach(function(r){Pse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pse(e,t,n){return(t=Cse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cse(e){var t=jse(e,"string");return typeof t=="symbol"?t:t+""}function jse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mse=(e,t)=>t,kse=(e,t,n)=>n,Rse=(e,t,n,r)=>r,oS=(e,t,n,r,i)=>i,Ise=(e,t,n,r,i)=>i.maxBarSize,Dse=(e,t,n,r,i,a)=>a,I5=(e,t,n)=>{var r=n??e;if(!Rt(r))return zr(r,t,0)},Nse=se([It,Ml,Mse,kse,Rse],(e,t,n,r,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===n:a.yAxisId===r).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),Lse=(e,t,n,r)=>{var i=It(e);return i==="horizontal"?Ad(e,"yAxis",n,r):Ad(e,"xAxis",t,r)},$se=(e,t,n)=>{var r=It(e);return r==="horizontal"?I9(e,"xAxis",t):I9(e,"yAxis",n)};function Bse(e){return e.stackId!=null&&e.dataKey!=null}var zse=(e,t,n)=>{var r={},i=e.filter(Bse),a=e.filter(c=>c.stackId==null),o=i.reduce((c,l)=>(c[l.stackId]||(c[l.stackId]=[]),c[l.stackId].push(l),c),r),s=Object.entries(o).map(c=>{var[l,d]=c,h=d.map(m=>m.dataKey),g=I5(t,n,d[0].barSize);return{stackId:l,dataKeys:h,barSize:g}}),u=a.map(c=>{var l=[c.dataKey].filter(h=>h!=null),d=I5(t,n,c.barSize);return{stackId:void 0,dataKeys:l,barSize:d}});return[...s,...u]},Fse=se([Nse,qte,$se],zse),Wse=(e,t,n,r,i)=>{var a,o,s=It(e),u=Ek(e),{maxBarSize:c}=i,l=Rt(c)?u:c,d,h;return s==="horizontal"?(d=ui(e,"xAxis",t,r),h=Qi(e,"xAxis",t,r)):(d=ui(e,"yAxis",n,r),h=Qi(e,"yAxis",n,r)),(a=(o=Su(d,h,!0))!==null&&o!==void 0?o:l)!==null&&a!==void 0?a:0},JR=(e,t,n,r)=>{var i=It(e),a,o;return i==="horizontal"?(a=ui(e,"xAxis",t,r),o=Qi(e,"xAxis",t,r)):(a=ui(e,"yAxis",n,r),o=Qi(e,"yAxis",n,r)),Su(a,o)};function qse(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=zr(e,n,0,!0),s,u=[];if(lr(r[0].barSize)){var c=!1,l=n/a,d=r.reduce((b,_)=>b+(_.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&l>0&&(c=!0,l*=.9,d=a*l);var h=(n-d)/2>>0,g={offset:h-o,size:0};s=r.reduce((b,_)=>{var E,S={stackId:_.stackId,dataKeys:_.dataKeys,position:{offset:g.offset+g.size+o,size:c?l:(E=_.barSize)!==null&&E!==void 0?E:0}},A=[...b,S];return g=A[A.length-1].position,A},u)}else{var m=zr(t,n,0,!0);n-2*m-(a-1)*o<=0&&(o=0);var y=(n-2*m-(a-1)*o)/a;y>1&&(y>>=0);var v=lr(i)?Math.min(y,i):y;s=r.reduce((b,_,E)=>[...b,{stackId:_.stackId,dataKeys:_.dataKeys,position:{offset:m+(y+o)*E+(y-v)/2,size:v}}],u)}return s}}var Vse=(e,t,n,r,i,a,o)=>{var s=Rt(o)?t:o,u=qse(n,r,i!==a?i:a,e,s);return i!==a&&u!=null&&(u=u.map(c=>jp(jp({},c),{},{position:jp(jp({},c.position),{},{offset:c.position.offset-i/2})}))),u},Hse=se([Fse,Ek,Wte,Sk,Wse,JR,Ise],Vse),Use=(e,t,n,r)=>ui(e,"xAxis",t,r),Gse=(e,t,n,r)=>ui(e,"yAxis",n,r),Kse=(e,t,n,r)=>Qi(e,"xAxis",t,r),Yse=(e,t,n,r)=>Qi(e,"yAxis",n,r),Xse=se([Hse,oS],(e,t)=>{if(e!=null){var n=e.find(r=>r.stackId===t.stackId&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),Zse=(e,t)=>{if(!(!e||t?.dataKey==null)){var{stackId:n}=t;if(n!=null){var r=e[n];if(r){var{stackedData:i}=r;if(i){var a=i.find(o=>o.key===t.dataKey);return a}}}}},Jse=se([Ml,oS],(e,t)=>{if(e.some(n=>n.type==="bar"&&t.dataKey===n.dataKey&&t.stackId===n.stackId&&t.stackId===n.stackId))return t}),Qse=se([Lse,oS],Zse),eue=se([Hn,Use,Gse,Kse,Yse,Xse,It,th,JR,Qse,Jse,Dse],(e,t,n,r,i,a,o,s,u,c,l,d)=>{var{chartData:h,dataStartIndex:g,dataEndIndex:m}=s;if(!(l==null||a==null||o!=="horizontal"&&o!=="vertical"||t==null||n==null||r==null||i==null||u==null)){var{data:y}=l,v;if(y!=null&&y.length>0?v=y:v=h?.slice(g,m+1),v!=null)return Tse({layout:o,barSettings:l,pos:a,bandSize:u,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,stackedData:c,displayedData:v,offset:e,cells:d})}}),QR=e=>{var{chartData:t}=e,n=en(),r=Un();return k.useEffect(()=>r?()=>{}:(n(V9(t)),()=>{n(V9(void 0))}),[t,n,r]),null},D5={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},eI=ea({name:"brush",initialState:D5,reducers:{setBrushSettings(e,t){return t.payload==null?D5:t.payload}}}),{setBrushSettings:aOe}=eI.actions,tue=eI.reducer;function N5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N5(Object(n),!0).forEach(function(r){tI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tI(e,t,n){return(t=nue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nue(e){var t=rue(e,"string");return typeof t=="symbol"?t:t+""}function rue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iue=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},aue=e=>{var{x1:t,y1:n,x2:r,y2:i}=e;return iue({x:t,y:n},{x:r,y:i})};class om{static create(t){return new om(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}tI(om,"EPS",1e-4);var nI=e=>{var t=Object.keys(e).reduce((n,r)=>Mp(Mp({},n),{},{[r]:om.create(e[r])}),{});return Mp(Mp({},t),{},{apply(n){var{bandAware:r,position:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.fromEntries(Object.entries(n).map(a=>{var[o,s]=a;return[o,t[o].apply(s,{bandAware:r,position:i})]}))},isInRange(n){return Object.keys(n).every(r=>t[r].isInRange(n[r]))}})};function oue(e){return(e%180+180)%180}var sue=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=oue(i),o=a*Math.PI/180,s=Math.atan(r/n),u=o>s&&o<Math.PI-s?r/Math.sin(o):n/Math.cos(o);return Math.abs(u)},uue={dots:[],areas:[],lines:[]},rI=ea({name:"referenceElements",initialState:uue,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Co(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Co(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Co(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:cue,removeDot:lue,addArea:oOe,removeArea:sOe,addLine:fue,removeLine:due}=rI.actions,hue=rI.reducer,iI=k.createContext(void 0),pue=e=>{var{children:t}=e,[n]=k.useState("".concat(ko("recharts"),"-clip")),r=nm();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return B.createElement(iI.Provider,{value:n},B.createElement("defs",null,B.createElement("clipPath",{id:n},B.createElement("rect",{x:i,y:a,height:s,width:o}))),t)},aI=()=>k.useContext(iI);function L5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L5(Object(n),!0).forEach(function(r){sS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sS(e,t,n){return(t=gue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gue(e){var t=vue(e,"string");return typeof t=="symbol"?t:t+""}function vue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wx.apply(null,arguments)}var mue=(e,t)=>{var n;return B.isValidElement(e)?n=B.cloneElement(e,t):typeof e=="function"?n=e(t):n=B.createElement("line",wx({},t,{className:"recharts-reference-line-line"})),n},yue=(e,t,n,r,i,a,o,s,u)=>{var{x:c,y:l,width:d,height:h}=i;if(n){var{y:g}=u,m=e.y.apply(g,{position:a});if(Ar(m)||u.ifOverflow==="discard"&&!e.y.isInRange(m))return null;var y=[{x:c+d,y:m},{x:c,y:m}];return s==="left"?y.reverse():y}if(t){var{x:v}=u,b=e.x.apply(v,{position:a});if(Ar(b)||u.ifOverflow==="discard"&&!e.x.isInRange(b))return null;var _=[{x:b,y:l+h},{x:b,y:l}];return o==="top"?_.reverse():_}if(r){var{segment:E}=u,S=E.map(A=>e.apply(A,{position:a}));return u.ifOverflow==="discard"&&S.some(A=>!e.isInRange(A))?null:S}return null};function bue(e){var t=en();return k.useEffect(()=>(t(fue(e)),()=>{t(due(e))})),null}function wue(e){var{x:t,y:n,segment:r,xAxisId:i,yAxisId:a,shape:o,className:s,ifOverflow:u}=e,c=Un(),l=aI(),d=ke(I=>Ga(I,i)),h=ke(I=>Vo(I,a)),g=ke(I=>za(I,"xAxis",i,c)),m=ke(I=>za(I,"yAxis",a,c)),y=p0(),v=si(t),b=si(n);if(!l||!y||d==null||h==null||g==null||m==null)return null;var _=nI({x:g,y:m}),E=r&&r.length===2,S=yue(_,v,b,E,y,e.position,d.orientation,h.orientation,e);if(!S)return null;var[{x:A,y:O},{x:P,y:j}]=S,$=u==="hidden"?"url(#".concat(l,")"):void 0,z=$5($5({clipPath:$},it(e,!0)),{},{x1:A,y1:O,x2:P,y2:j});return B.createElement(Vt,{className:Ot("recharts-reference-line",s)},mue(o,z),Rr.renderCallByParent(e,aue({x1:A,y1:O,x2:P,y2:j})))}function xue(e){return B.createElement(B.Fragment,null,B.createElement(bue,{yAxisId:e.yAxisId,xAxisId:e.xAxisId,ifOverflow:e.ifOverflow,x:e.x,y:e.y}),B.createElement(wue,e))}class uS extends k.Component{render(){return B.createElement(xue,this.props)}}sS(uS,"displayName","ReferenceLine");sS(uS,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function B5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B5(Object(n),!0).forEach(function(r){cS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cS(e,t,n){return(t=_ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ue(e){var t=Eue(e,"string");return typeof t=="symbol"?t:t+""}function Eue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xx.apply(null,arguments)}var Sue=(e,t,n,r,i)=>{var a=si(e),o=si(t),s=Un(),u=ke(h=>za(h,"xAxis",n,s)),c=ke(h=>za(h,"yAxis",r,s));if(!a||!o||u==null||c==null)return null;var l=nI({x:u,y:c}),d=l.apply({x:e,y:t},{bandAware:!0});return i==="discard"&&!l.isInRange(d)?null:d};function Aue(e){var t=en();return k.useEffect(()=>(t(cue(e)),()=>{t(lue(e))})),null}var Oue=(e,t)=>{var n;return B.isValidElement(e)?n=B.cloneElement(e,t):typeof e=="function"?n=e(t):n=B.createElement(X0,xx({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};function Tue(e){var{x:t,y:n,r}=e,i=aI(),a=Sue(t,n,e.xAxisId,e.yAxisId,e.ifOverflow);if(!a)return null;var{x:o,y:s}=a,{shape:u,className:c,ifOverflow:l}=e,d=l==="hidden"?"url(#".concat(i,")"):void 0,h=z5(z5({clipPath:d},it(e,!0)),{},{cx:o,cy:s});return B.createElement(Vt,{className:Ot("recharts-reference-dot",c)},Oue(u,h),Rr.renderCallByParent(e,{x:o-r,y:s-r,width:2*r,height:2*r}))}function Pue(e){var{x:t,y:n,r,ifOverflow:i,yAxisId:a,xAxisId:o}=e;return B.createElement(B.Fragment,null,B.createElement(Aue,{y:n,x:t,r,yAxisId:a,xAxisId:o,ifOverflow:i}),B.createElement(Tue,e))}class lS extends k.Component{render(){return B.createElement(Pue,this.props)}}cS(lS,"displayName","ReferenceDot");cS(lS,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});function xb(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function oI(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Cue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return sue(r,n)}function jue(e,t,n){var r=n==="width",{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function tv(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function Mue(e,t){return oI(e,t+1)}function kue(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,u=0,c=1,l=o,d=function(){var m=r?.[u];if(m===void 0)return{v:oI(r,c)};var y=u,v,b=()=>(v===void 0&&(v=n(m,y)),v),_=m.coordinate,E=u===0||tv(e,_,b,l,s);E||(u=0,l=o,c+=1),E&&(l=_+e*(b()/2+i),u+=c)},h;c<=a.length;)if(h=d(),h)return h.v;return[]}function F5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){Rue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rue(e,t,n){return(t=Iue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iue(e){var t=Due(e,"string");return typeof t=="symbol"?t:t+""}function Due(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nue(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:u}=t,c=function(h){var g=a[h],m,y=()=>(m===void 0&&(m=n(g,h)),m);if(h===o-1){var v=e*(g.coordinate+e*y()/2-u);a[h]=g=xr(xr({},g),{},{tickCoord:v>0?g.coordinate-v*e:g.coordinate})}else a[h]=g=xr(xr({},g),{},{tickCoord:g.coordinate});var b=tv(e,g.tickCoord,y,s,u);b&&(u=g.tickCoord-e*(y()/2+i),a[h]=xr(xr({},g),{},{isShow:!0}))},l=o-1;l>=0;l--)c(l);return a}function Lue(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:u,end:c}=t;if(a){var l=r[s-1],d=n(l,s-1),h=e*(l.coordinate+e*d/2-c);o[s-1]=l=xr(xr({},l),{},{tickCoord:h>0?l.coordinate-h*e:l.coordinate});var g=tv(e,l.tickCoord,()=>d,u,c);g&&(c=l.tickCoord-e*(d/2+i),o[s-1]=xr(xr({},l),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(_){var E=o[_],S,A=()=>(S===void 0&&(S=n(E,_)),S);if(_===0){var O=e*(E.coordinate-e*A()/2-u);o[_]=E=xr(xr({},E),{},{tickCoord:O<0?E.coordinate-O*e:E.coordinate})}else o[_]=E=xr(xr({},E),{},{tickCoord:E.coordinate});var P=tv(e,E.tickCoord,A,u,c);P&&(u=E.tickCoord+e*(A()/2+i),o[_]=xr(xr({},E),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function fS(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:u,tickFormatter:c,unit:l,angle:d}=e;if(!i||!i.length||!r)return[];if(Me(u)||Wo.isSsr){var h;return(h=Mue(i,Me(u)?u:0))!==null&&h!==void 0?h:[]}var g=[],m=s==="top"||s==="bottom"?"width":"height",y=l&&m==="width"?nd(l,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=(E,S)=>{var A=typeof c=="function"?c(E.value,S):E.value;return m==="width"?Cue(nd(A,{fontSize:t,letterSpacing:n}),y,d):nd(A,{fontSize:t,letterSpacing:n})[m]},b=i.length>=2?Xn(i[1].coordinate-i[0].coordinate):1,_=jue(a,b,m);return u==="equidistantPreserveStart"?kue(b,_,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?g=Lue(b,_,v,i,o,u==="preserveStartEnd"):g=Nue(b,_,v,i,o),g.filter(E=>E.isShow))}var $ue=["viewBox"],Bue=["viewBox"];function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nc.apply(null,arguments)}function W5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W5(Object(n),!0).forEach(function(r){dS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q5(e,t){if(e==null)return{};var n,r,i=zue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dS(e,t,n){return(t=Fue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fue(e){var t=Wue(e,"string");return typeof t=="symbol"?t:t+""}function Wue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Is extends k.Component{constructor(t){super(t),this.tickRefs=B.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,n){var{viewBox:r}=t,i=q5(t,$ue),a=this.props,{viewBox:o}=a,s=q5(a,Bue);return!xb(r,o)||!xb(i,s)||!xb(n,this.state)}getTickLineCoord(t){var{x:n,y:r,width:i,height:a,orientation:o,tickSize:s,mirror:u,tickMargin:c}=this.props,l,d,h,g,m,y,v=u?-1:1,b=t.tickSize||s,_=Me(t.tickCoord)?t.tickCoord:t.coordinate;switch(o){case"top":l=d=t.coordinate,g=r+ +!u*a,h=g-v*b,y=h-v*c,m=_;break;case"left":h=g=t.coordinate,d=n+ +!u*i,l=d-v*b,m=l-v*c,y=_;break;case"right":h=g=t.coordinate,d=n+ +u*i,l=d+v*b,m=l+v*c,y=_;break;default:l=d=t.coordinate,g=r+ +u*a,h=g+v*b,y=h+v*c,m=_;break}return{line:{x1:l,y1:h,x2:d,y2:g},tick:{x:m,y}}}getTickTextAnchor(){var{orientation:t,mirror:n}=this.props,r;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle";break}return r}getTickVerticalAnchor(){var{orientation:t,mirror:n}=this.props;switch(t){case"left":case"right":return"middle";case"top":return n?"start":"end";default:return n?"end":"start"}}renderAxisLine(){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s}=this.props,u=Fn(Fn(Fn({},it(this.props,!1)),it(s,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);u=Fn(Fn({},u),{},{x1:t,y1:n+c*i,x2:t+r,y2:n+c*i})}else{var l=+(a==="left"&&!o||a==="right"&&o);u=Fn(Fn({},u),{},{x1:t+l*r,y1:n,x2:t+l*r,y2:n+i})}return B.createElement("line",Nc({},u,{className:Ot("recharts-cartesian-axis-line",Es(s,"className"))}))}static renderTickItem(t,n,r){var i,a=Ot(n.className,"recharts-cartesian-axis-tick-value");if(B.isValidElement(t))i=B.cloneElement(t,Fn(Fn({},n),{},{className:a}));else if(typeof t=="function")i=t(Fn(Fn({},n),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=Ot(o,t.className)),i=B.createElement(Y0,Nc({},n,{className:o}),r)}return i}renderTicks(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:a,tick:o,tickFormatter:s,unit:u}=this.props,c=fS(Fn(Fn({},this.props),{},{ticks:r}),t,n),l=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=it(this.props,!1),g=it(o,!1),m=Fn(Fn({},h),{},{fill:"none"},it(i,!1)),y=c.map((v,b)=>{var{line:_,tick:E}=this.getTickLineCoord(v),S=Fn(Fn(Fn(Fn({textAnchor:l,verticalAnchor:d},h),{},{stroke:"none",fill:a},g),E),{},{index:b,payload:v,visibleTicksCount:c.length,tickFormatter:s});return B.createElement(Vt,Nc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(v.value,"-").concat(v.coordinate,"-").concat(v.tickCoord)},_l(this.props,v,b)),i&&B.createElement("line",Nc({},m,_,{className:Ot("recharts-cartesian-axis-tick-line",Es(i,"className"))})),o&&Is.renderTickItem(o,S,"".concat(typeof s=="function"?s(v.value,b):v.value).concat(u||"")))});return y.length>0?B.createElement("g",{className:"recharts-cartesian-axis-ticks"},y):null}render(){var{axisLine:t,width:n,height:r,className:i,hide:a}=this.props;if(a)return null;var{ticks:o}=this.props;return n!=null&&n<=0||r!=null&&r<=0?null:B.createElement(Vt,{className:Ot("recharts-cartesian-axis",i),ref:s=>{if(s){var u=s.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(u);var c=u[0];if(c){var l=window.getComputedStyle(c).fontSize,d=window.getComputedStyle(c).letterSpacing;(l!==this.state.fontSize||d!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(c).fontSize,letterSpacing:window.getComputedStyle(c).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,o),Rr.renderCallByParent(this.props))}}dS(Is,"displayName","CartesianAxis");dS(Is,"defaultProps",{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"});var que=["x1","y1","x2","y2","key"],Vue=["offset"],Hue=["xAxisId","yAxisId"],Uue=["xAxisId","yAxisId"];function V5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V5(Object(n),!0).forEach(function(r){Gue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gue(e,t,n){return(t=Kue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kue(e){var t=Yue(e,"string");return typeof t=="symbol"?t:t+""}function Yue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(null,arguments)}function nv(e,t){if(e==null)return{};var n,r,i=Xue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zue=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return B.createElement("rect",{x:r,y:i,ry:s,width:a,height:o,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function sI(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:a,y2:o,key:s}=t,u=nv(t,que),c=it(u,!1),{offset:l}=c,d=nv(c,Vue);n=B.createElement("line",ou({},d,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:s}))}return n}function Jue(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=nv(e,Hue),u=i.map((c,l)=>{var d=Er(Er({},s),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(l),index:l});return sI(r,d)});return B.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function Que(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=nv(e,Uue),u=i.map((c,l)=>{var d=Er(Er({},s),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(l),index:l});return sI(r,d)});return B.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function ece(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:u=!0}=e;if(!u||!t||!t.length)return null;var c=s.map(d=>Math.round(d+i-i)).sort((d,h)=>d-h);i!==c[0]&&c.unshift(0);var l=c.map((d,h)=>{var g=!c[h+1],m=g?i+o-d:c[h+1]-d;if(m<=0)return null;var y=h%t.length;return B.createElement("rect",{key:"react-".concat(h),y:d,x:r,height:m,width:a,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function tce(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:u}=e;if(!t||!n||!n.length)return null;var c=u.map(d=>Math.round(d+i-i)).sort((d,h)=>d-h);i!==c[0]&&c.unshift(0);var l=c.map((d,h)=>{var g=!c[h+1],m=g?i+o-d:c[h+1]-d;if(m<=0)return null;var y=h%n.length;return B.createElement("rect",{key:"react-".concat(h),x:d,y:a,width:m,height:s,stroke:"none",fill:n[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var nce=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return d7(fS(Er(Er(Er({},Is.defaultProps),n),{},{ticks:h7(n),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},rce=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return d7(fS(Er(Er(Er({},Is.defaultProps),n),{},{ticks:h7(n),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},ice={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Hu(e){var t=C2(),n=j2(),r=v7(),i=Er(Er({},li(e,ice)),{},{x:Me(e.x)?e.x:r.left,y:Me(e.y)?e.y:r.top,width:Me(e.width)?e.width:r.width,height:Me(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:u,width:c,height:l,syncWithTicks:d,horizontalValues:h,verticalValues:g}=i,m=Un(),y=ke($=>D9($,"xAxis",a,m)),v=ke($=>D9($,"yAxis",o,m));if(!Me(c)||c<=0||!Me(l)||l<=0||!Me(s)||s!==+s||!Me(u)||u!==+u)return null;var b=i.verticalCoordinatesGenerator||nce,_=i.horizontalCoordinatesGenerator||rce,{horizontalPoints:E,verticalPoints:S}=i;if((!E||!E.length)&&typeof _=="function"){var A=h&&h.length,O=_({yAxis:v?Er(Er({},v),{},{ticks:A?h:v.ticks}):void 0,width:t,height:n,offset:r},A?!0:d);td(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(E=O)}if((!S||!S.length)&&typeof b=="function"){var P=g&&g.length,j=b({xAxis:y?Er(Er({},y),{},{ticks:P?g:y.ticks}):void 0,width:t,height:n,offset:r},P?!0:d);td(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof j,"]")),Array.isArray(j)&&(S=j)}return B.createElement("g",{className:"recharts-cartesian-grid"},B.createElement(Zue,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),B.createElement(ece,ou({},i,{horizontalPoints:E})),B.createElement(tce,ou({},i,{verticalPoints:S})),B.createElement(Jue,ou({},i,{offset:r,horizontalPoints:E,xAxis:y,yAxis:v})),B.createElement(Que,ou({},i,{offset:r,verticalPoints:S,xAxis:y,yAxis:v})))}Hu.displayName="CartesianGrid";var uI=(e,t,n,r)=>ui(e,"xAxis",t,r),cI=(e,t,n,r)=>Qi(e,"xAxis",t,r),lI=(e,t,n,r)=>ui(e,"yAxis",n,r),fI=(e,t,n,r)=>Qi(e,"yAxis",n,r),ace=se([It,uI,lI,cI,fI],(e,t,n,r,i)=>Ha(e,"xAxis")?Su(t,r,!1):Su(n,i,!1)),oce=(e,t,n,r,i)=>i,sce=se([Ml,oce],(e,t)=>{if(e.some(n=>n.type==="line"&&t.dataKey===n.dataKey&&t.data===n.data))return t}),uce=se([It,uI,lI,cI,fI,sce,ace,th],(e,t,n,r,i,a,o,s)=>{var{chartData:u,dataStartIndex:c,dataEndIndex:l}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null)){var{dataKey:d,data:h}=a,g;if(h!=null&&h.length>0?g=h:g=u?.slice(c,l+1),g!=null)return Tce({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:g})}}),cce=["type","layout","connectNulls","needClip"],lce=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId"];function dI(e,t){if(e==null)return{};var n,r,i=fce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function H5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H5(Object(n),!0).forEach(function(r){sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sm(e,t,n){return(t=dce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dce(e){var t=hce(e,"string");return typeof t=="symbol"?t:t+""}function hce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fl.apply(null,arguments)}var pce=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ua(n,t),payload:e}]};function gce(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ua(o,t),hide:s,type:e.tooltipType,color:e.stroke,unit:u}}}var hI=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function vce(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var mce=(e,t,n)=>{var r=n.reduce((d,h)=>d+h);if(!r)return hI(t,e);for(var i=Math.floor(e/r),a=e%r,o=t-e,s=[],u=0,c=0;u<n.length;c+=n[u],++u)if(c+n[u]>a){s=[...n.slice(0,u),a-c];break}var l=s.length%2===0?[0,o]:[o];return[...vce(n,i),...s,...l].map(d=>"".concat(d,"px")).join(", ")};function yce(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Ot("recharts-line-dot",typeof e!="boolean"?e.className:"");n=B.createElement(X0,fl({},t,{className:r}))}return n}function bce(e,t){return e==null?!1:t?!0:e.length===1}function wce(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r;if(!bce(n,i))return null;var s=Jv(i),u=it(r,!1),c=it(i,!0),l=n.map((h,g)=>{var m=fa(fa(fa({key:"dot-".concat(g),r:3},u),c),{},{index:g,cx:h.x,cy:h.y,dataKey:a,value:h.value,payload:h.payload,points:n});return yce(i,m)}),d={clipPath:o?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):null};return B.createElement(Vt,fl({className:"recharts-line-dots",key:"dots"},d),l)}function _x(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a,showLabels:o}=e,{type:s,layout:u,connectNulls:c,needClip:l}=a,d=dI(a,cce),h=fa(fa({},it(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:l?"url(#clipPath-".concat(t,")"):null,points:r,type:s,layout:u,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return B.createElement(B.Fragment,null,r?.length>1&&B.createElement(pu,fl({},h,{pathRef:n})),B.createElement(wce,{points:r,clipPathId:t,props:a}),o&&Ia.renderCallByParent(a,r))}function xce(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function _ce(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:d,animateNewValues:h,width:g,height:m,onAnimationEnd:y,onAnimationStart:v}=n,b=i.current,_=lh(n,"recharts-line-"),[E,S]=k.useState(!1),A=k.useCallback(()=>{typeof y=="function"&&y(),S(!1)},[y]),O=k.useCallback(()=>{typeof v=="function"&&v(),S(!0)},[v]),P=xce(r.current),j=a.current;return B.createElement(Na,{begin:c,duration:l,isActive:u,easing:d,from:{t:0},to:{t:1},onAnimationEnd:A,onAnimationStart:O,key:_},$=>{var{t:z}=$,I=cr(j,P+j),H=Math.min(I(z),P),D;if(s){var C="".concat(s).split(/[,\s]+/gim).map(V=>parseFloat(V));D=mce(H,P,C)}else D=hI(P,H);if(b){var L=b.length/o.length,N=z===1?o:o.map((V,Z)=>{var K=Math.floor(Z*L);if(b[K]){var R=b[K],W=cr(R.x,V.x),U=cr(R.y,V.y);return fa(fa({},V),{},{x:W(z),y:U(z)})}if(h){var Y=cr(g*2,V.x),ae=cr(m/2,V.y);return fa(fa({},V),{},{x:Y(z),y:ae(z)})}return fa(fa({},V),{},{x:V.x,y:V.y})});return i.current=N,B.createElement(_x,{props:n,points:N,clipPathId:t,pathRef:r,showLabels:!E,strokeDasharray:D})}return z>0&&P>0&&(i.current=o,a.current=H),B.createElement(_x,{props:n,points:o,clipPathId:t,pathRef:r,showLabels:!E,strokeDasharray:D})})}function Ece(e){var{clipPathId:t,props:n}=e,{points:r,isAnimationActive:i}=n,a=k.useRef(null),o=k.useRef(0),s=k.useRef(null),u=a.current;return i&&r&&r.length&&u!==r?B.createElement(_ce,{props:n,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:o,pathRef:s}):B.createElement(_x,{props:n,points:r,clipPathId:t,pathRef:s,showLabels:!0})}var Sce=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:$t(e.payload,t)});class Ace extends k.Component{constructor(){super(...arguments),sm(this,"id",ko("recharts-line-"))}render(){var t,{hide:n,dot:r,points:i,className:a,xAxisId:o,yAxisId:s,top:u,left:c,width:l,height:d,id:h,needClip:g,layout:m}=this.props;if(n)return null;var y=Ot("recharts-line",a),v=Rt(h)?this.id:h,{r:b=3,strokeWidth:_=2}=(t=it(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},E=Jv(r),S=b*2+_;return B.createElement(B.Fragment,null,B.createElement(Vt,{className:y},g&&B.createElement("defs",null,B.createElement(im,{clipPathId:v,xAxisId:o,yAxisId:s}),!E&&B.createElement("clipPath",{id:"clipPath-dots-".concat(v)},B.createElement("rect",{x:c-S/2,y:u-S/2,width:l+S,height:d+S}))),B.createElement(Ece,{props:this.props,clipPathId:v}),B.createElement(HR,{direction:m==="horizontal"?"y":"x"},B.createElement(iS,{xAxisId:o,yAxisId:s,data:i,dataPointFormatter:Sce,errorBarOffset:0},this.props.children))),B.createElement(mx,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var pI={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Wo.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function Oce(e){var t=li(e,pI),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,hide:c,isAnimationActive:l,label:d,legendType:h,xAxisId:g,yAxisId:m}=t,y=dI(t,lce),{needClip:v}=fh(g,m),{height:b,width:_,x:E,y:S}=nm(),A=Zd(),O=Un(),P=k.useMemo(()=>({dataKey:e.dataKey,data:e.data}),[e.dataKey,e.data]),j=ke($=>uce($,g,m,O,P));return A!=="horizontal"&&A!=="vertical"?null:B.createElement(Ace,fl({},y,{connectNulls:s,dot:u,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:l,hide:c,label:d,legendType:h,xAxisId:g,yAxisId:m,points:j,layout:A,height:b,width:_,left:E,top:S,needClip:v}))}function Tce(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:u}=e;return u.map((c,l)=>{var d=$t(c,o);return t==="horizontal"?{x:Jc({axis:n,ticks:i,bandSize:s,entry:c,index:l}),y:Rt(d)?null:r.scale(d),value:d,payload:c}:{x:Rt(d)?null:n.scale(d),y:Jc({axis:r,ticks:a,bandSize:s,entry:c,index:l}),value:d,payload:c}})}class dh extends k.PureComponent{render(){return B.createElement(rm,{type:"line",data:this.props.data,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,dataKey:this.props.dataKey,stackId:void 0,hide:this.props.hide,barSize:void 0},B.createElement(em,{legendPayload:pce(this.props)}),B.createElement(ch,{fn:gce,args:this.props}),B.createElement(Oce,this.props))}}sm(dh,"displayName","Line");sm(dh,"defaultProps",pI);var gI=(e,t,n,r)=>ui(e,"xAxis",t,r),vI=(e,t,n,r)=>Qi(e,"xAxis",t,r),mI=(e,t,n,r)=>ui(e,"yAxis",n,r),yI=(e,t,n,r)=>Qi(e,"yAxis",n,r),Pce=se([It,gI,mI,vI,yI],(e,t,n,r,i)=>Ha(e,"xAxis")?Su(t,r,!1):Su(n,i,!1)),Cce=(e,t,n,r,i)=>{var a,o=It(e),s=Ha(o,"xAxis"),u;if(s?u=Ad(e,"yAxis",n,r):u=Ad(e,"xAxis",t,r),u!=null){var{dataKey:c,stackId:l}=i;if(l!=null){var d=(a=u[l])===null||a===void 0?void 0:a.stackedData;return d?.find(h=>h.key===c)}}},jce=(e,t,n,r,i)=>i,Mce=se([Ml,jce],(e,t)=>{if(e.some(n=>n.type==="area"&&t.dataKey===n.dataKey&&S2(t.stackId)===n.stackId&&t.data===n.data))return t}),kce=se([It,gI,mI,vI,yI,Cce,th,Pce,Mce],(e,t,n,r,i,a,o,s,u)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:d}=o;if(!(u==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:h}=u,g;if(h&&h.length>0?g=h:g=c?.slice(l,d+1),g!=null){var m=void 0;return Zce({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:l,areaSettings:u,stackedData:a,displayedData:g,chartBaseValue:m,bandSize:s})}}}),Rce=["layout","type","stroke","connectNulls","isRange"],Ice=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function bI(e,t){if(e==null)return{};var n,r,i=Dce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function U5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U5(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){return(t=Nce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nce(e){var t=Lce(e,"string");return typeof t=="symbol"?t:t+""}function Lce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(null,arguments)}function rv(e,t){return e&&e!=="none"?e:t}var $ce=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:rv(r,i),value:Ua(n,t),payload:e}]};function Bce(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ua(o,t),hide:s,type:e.tooltipType,color:rv(r,a),unit:u}}}var zce=(e,t)=>{var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Ot("recharts-area-dot",typeof e!="boolean"?e.className:"");n=B.createElement(X0,ws({},t,{className:r}))}return n};function Fce(e,t){return e==null?!1:t?!0:e.length===1}function Wce(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r;if(!Fce(n,a))return null;var s=Jv(a),u=it(r,!1),c=it(a,!0),l=n.map((h,g)=>{var m=su(su(su({key:"dot-".concat(g),r:3},u),c),{},{index:g,cx:h.x,cy:h.y,dataKey:o,value:h.value,payload:h.payload,points:n});return zce(a,m)}),d={clipPath:i?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):void 0};return B.createElement(Vt,ws({className:"recharts-area-dots"},d),l)}function Ex(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a,showLabels:o}=e,{layout:s,type:u,stroke:c,connectNulls:l,isRange:d}=a,h=bI(a,Rce);return B.createElement(B.Fragment,null,t?.length>1&&B.createElement(Vt,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},B.createElement(pu,ws({},it(h,!0),{points:t,connectNulls:l,type:u,baseLine:n,layout:s,stroke:"none",className:"recharts-area-area"})),c!=="none"&&B.createElement(pu,ws({},it(a,!1),{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:t})),c!=="none"&&d&&B.createElement(pu,ws({},it(a,!1),{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:n}))),B.createElement(Wce,{points:t,props:a,clipPathId:i}),o&&Ia.renderCallByParent(a,t))}function qce(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0].y,o=r[r.length-1].y;if(!lr(a)||!lr(o))return null;var s=t*Math.abs(a-o),u=Math.max(...r.map(c=>c.x||0));return Me(n)?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(...n.map(c=>c.x||0),u)),Me(u)?B.createElement("rect",{x:0,y:a<o?a:a-s,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(s)}):null}function Vce(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0].x,o=r[r.length-1].x;if(!lr(a)||!lr(o))return null;var s=t*Math.abs(a-o),u=Math.max(...r.map(c=>c.y||0));return Me(n)?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(...n.map(c=>c.y||0),u)),Me(u)?B.createElement("rect",{x:a<o?a:a-s,y:0,width:s,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}function Hce(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n==="vertical"?B.createElement(qce,{alpha:t,points:r,baseLine:i,strokeWidth:a}):B.createElement(Vce,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function Uce(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:d,onAnimationStart:h,onAnimationEnd:g}=r,m=lh(r,"recharts-area-"),[y,v]=k.useState(!0),b=k.useCallback(()=>{typeof g=="function"&&g(),v(!1)},[g]),_=k.useCallback(()=>{typeof h=="function"&&h(),v(!0)},[h]),E=i.current,S=a.current;return B.createElement(Na,{begin:c,duration:l,isActive:u,easing:d,from:{t:0},to:{t:1},onAnimationEnd:b,onAnimationStart:_,key:m},A=>{var{t:O}=A;if(E){var P=E.length/o.length,j=O===1?o:o.map((z,I)=>{var H=Math.floor(I*P);if(E[H]){var D=E[H];return su(su({},z),{},{x:hc(D.x,z.x,O),y:hc(D.y,z.y,O)})}return z}),$;return Me(s)?$=hc(S,s,O):Rt(s)||Ar(s)?$=hc(S,0,O):$=s.map((z,I)=>{var H=Math.floor(I*P);if(Array.isArray(S)&&S[H]){var D=S[H];return su(su({},z),{},{x:hc(D.x,z.x,O),y:hc(D.y,z.y,O)})}return z}),O>0&&(i.current=j,a.current=$),B.createElement(Ex,{points:j,baseLine:$,needClip:t,clipPathId:n,props:r,showLabels:!y})}return O>0&&(i.current=o,a.current=s),B.createElement(Vt,null,B.createElement("defs",null,B.createElement("clipPath",{id:"animationClipPath-".concat(n)},B.createElement(Hce,{alpha:O,points:o,baseLine:s,layout:r.layout,strokeWidth:r.strokeWidth}))),B.createElement(Vt,{clipPath:"url(#animationClipPath-".concat(n,")")},B.createElement(Ex,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r,showLabels:!0})))})}function Gce(e){var{needClip:t,clipPathId:n,props:r}=e,{points:i,baseLine:a,isAnimationActive:o}=r,s=k.useRef(null),u=k.useRef(),c=s.current,l=u.current;return o&&i&&i.length&&(c!==i||l!==a)?B.createElement(Uce,{needClip:t,clipPathId:n,props:r,previousPointsRef:s,previousBaselineRef:u}):B.createElement(Ex,{points:i,baseLine:a,needClip:t,clipPathId:n,props:r,showLabels:!0})}class Kce extends k.PureComponent{constructor(){super(...arguments),um(this,"id",ko("recharts-area-"))}render(){var t,{hide:n,dot:r,points:i,className:a,top:o,left:s,needClip:u,xAxisId:c,yAxisId:l,width:d,height:h,id:g,baseLine:m}=this.props;if(n)return null;var y=Ot("recharts-area",a),v=Rt(g)?this.id:g,{r:b=3,strokeWidth:_=2}=(t=it(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},E=Jv(r),S=b*2+_;return B.createElement(B.Fragment,null,B.createElement(Vt,{className:y},u&&B.createElement("defs",null,B.createElement(im,{clipPathId:v,xAxisId:c,yAxisId:l}),!E&&B.createElement("clipPath",{id:"clipPath-dots-".concat(v)},B.createElement("rect",{x:s-S/2,y:o-S/2,width:d+S,height:h+S}))),B.createElement(Gce,{needClip:u,clipPathId:v,props:this.props})),B.createElement(mx,{points:i,mainColor:rv(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}),this.props.isRange&&Array.isArray(m)&&B.createElement(mx,{points:m,mainColor:rv(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}))}}var wI={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:!Wo.isSsr,legendType:"line",stroke:"#3182bd",xAxisId:0,yAxisId:0};function Yce(e){var t,n=li(e,wI),{activeDot:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,fill:c,fillOpacity:l,hide:d,isAnimationActive:h,legendType:g,stroke:m,xAxisId:y,yAxisId:v}=n,b=bI(n,Ice),_=Zd(),E=bR(),{needClip:S}=fh(y,v),A=Un(),O=k.useMemo(()=>({baseValue:e.baseValue,stackId:e.stackId,connectNulls:s,data:e.data,dataKey:e.dataKey}),[e.baseValue,e.stackId,s,e.data,e.dataKey]),{points:P,isRange:j,baseLine:$}=(t=ke(C=>kce(C,y,v,A,O)))!==null&&t!==void 0?t:{},{height:z,width:I,x:H,y:D}=nm();return _!=="horizontal"&&_!=="vertical"||E!=="AreaChart"&&E!=="ComposedChart"?null:B.createElement(Kce,ws({},b,{activeDot:r,animationBegin:i,animationDuration:a,animationEasing:o,baseLine:$,connectNulls:s,dot:u,fill:c,fillOpacity:l,height:z,hide:d,layout:_,isAnimationActive:h,isRange:j,legendType:g,needClip:S,points:P,stroke:m,width:I,left:H,top:D,xAxisId:y,yAxisId:v}))}var Xce=(e,t,n,r,i)=>{var a=n??t;if(Me(a))return a;var o=e==="horizontal"?i:r,s=o.scale.domain();if(o.type==="number"){var u=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return a==="dataMin"?c:a==="dataMax"||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return a==="dataMin"?s[0]:a==="dataMax"?s[1]:s[0]};function Zce(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:u,displayedData:c,dataStartIndex:l,xAxisTicks:d,yAxisTicks:h,bandSize:g}=e,m=i&&i.length,y=Xce(a,o,n,s,u),v=a==="horizontal",b=!1,_=c.map((S,A)=>{var O;m?O=i[l+A]:(O=$t(S,r),Array.isArray(O)?b=!0:O=[y,O]);var P=O[1]==null||m&&!t&&$t(S,r)==null;return v?{x:Jc({axis:s,ticks:d,bandSize:g,entry:S,index:A}),y:P?null:u.scale(O[1]),value:O,payload:S}:{x:P?null:s.scale(O[1]),y:Jc({axis:u,ticks:h,bandSize:g,entry:S,index:A}),value:O,payload:S}}),E;return m||b?E=_.map(S=>{var A=Array.isArray(S.value)?S.value[0]:null;return v?{x:S.x,y:A!=null&&S.y!=null?u.scale(A):null}:{x:A!=null?s.scale(A):null,y:S.y}}):E=v?u.scale(y):s.scale(y),{points:_,baseLine:E,isRange:b}}class $l extends k.PureComponent{render(){return B.createElement(rm,{type:"area",data:this.props.data,dataKey:this.props.dataKey,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,stackId:this.props.stackId,hide:this.props.hide,barSize:void 0},B.createElement(em,{legendPayload:$ce(this.props)}),B.createElement(ch,{fn:Bce,args:this.props}),B.createElement(Yce,this.props))}}um($l,"displayName","Area");um($l,"defaultProps",wI);function G5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G5(Object(n),!0).forEach(function(r){Jce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jce(e,t,n){return(t=Qce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qce(e){var t=ele(e,"string");return typeof t=="symbol"?t:t+""}function ele(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tle={xAxis:{},yAxis:{},zAxis:{}},xI=ea({name:"cartesianAxis",initialState:tle,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=K5(K5({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:nle,removeXAxis:rle,addYAxis:ile,removeYAxis:ale,addZAxis:ole,removeZAxis:sle,updateYAxisWidth:ule}=xI.actions,cle=xI.reducer;function _I(e,t,n){return(t=lle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lle(e){var t=fle(e,"string");return typeof t=="symbol"?t:t+""}function fle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dle(e){var t=en();return k.useEffect(()=>(t(ole(e)),()=>{t(sle(e))}),[e,t]),null}class hS extends k.Component{render(){return B.createElement(dle,{domain:this.props.domain,id:this.props.zAxisId,dataKey:this.props.dataKey,name:this.props.name,unit:this.props.unit,range:this.props.range,scale:this.props.scale,type:this.props.type,allowDuplicatedCategory:ms.allowDuplicatedCategory,allowDataOverflow:ms.allowDataOverflow,reversed:ms.reversed,includeHidden:ms.includeHidden})}}_I(hS,"displayName","ZAxis");_I(hS,"defaultProps",{zAxisId:0,range:ms.range,scale:ms.scale,type:ms.type});var hle=["option","isActive"];function id(){return id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},id.apply(null,arguments)}function ple(e,t){if(e==null)return{};var n,r,i=gle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vle(e){var{option:t,isActive:n}=e,r=ple(e,hle);return typeof t=="string"?B.createElement(ev,id({option:B.createElement(i0,id({type:t},r)),isActive:n,shapeType:"symbols"},r)):B.createElement(ev,id({option:t,isActive:n,shapeType:"symbols"},r))}var mle=(e,t,n,r,i,a,o)=>ui(e,"xAxis",t,o),yle=(e,t,n,r,i,a,o)=>Qi(e,"xAxis",t,o),ble=(e,t,n,r,i,a,o)=>ui(e,"yAxis",n,o),wle=(e,t,n,r,i,a,o)=>Qi(e,"yAxis",n,o),xle=(e,t,n,r)=>Bne(e,"zAxis",r,!1),_le=(e,t,n,r,i)=>i,Ele=(e,t,n,r,i,a)=>a,Sle=(e,t,n,r,i,a,o)=>th(e,t,n,o),Ale=se([Ml,_le],(e,t)=>{if(e.some(n=>n.type==="scatter"&&t.dataKey===n.dataKey&&t.data===n.data))return t}),Ole=se([Sle,mle,yle,ble,wle,xle,Ale,Ele],(e,t,n,r,i,a,o,s)=>{var{chartData:u,dataStartIndex:c,dataEndIndex:l}=e;if(o!=null){var d;if(o?.data!=null&&o.data.length>0?d=o.data:d=u?.slice(c,l+1),!(d==null||t==null||r==null||n==null||i==null||n?.length===0||i?.length===0))return Lle({displayedData:d,xAxis:t,yAxis:r,zAxis:a,scatterSettings:o,xAxisTicks:n,yAxisTicks:i,cells:s})}}),Tle=["onMouseEnter","onClick","onMouseLeave"],Ple=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function EI(e,t){if(e==null)return{};var n,r,i=Cle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(null,arguments)}function Y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y5(Object(n),!0).forEach(function(r){pS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pS(e,t,n){return(t=jle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e){var t=Mle(e,"string");return typeof t=="symbol"?t:t+""}function Mle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kle=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ua(n,t),payload:e}]};function Rle(e){var{points:t,props:n}=e,{line:r,lineType:i,lineJointType:a}=n;if(!r)return null;var o=it(n,!1),s=it(r,!1),u,c;if(i==="joint")u=t.map(v=>({x:v.cx,y:v.cy}));else if(i==="fitting"){var{xmin:l,xmax:d,a:h,b:g}=mU(t),m=v=>h*v+g;u=[{x:l,y:m(l)},{x:d,y:m(d)}]}var y=oi(oi(oi({},o),{},{fill:"none",stroke:o&&o.fill},s),{},{points:u});return B.isValidElement(r)?c=B.cloneElement(r,y):typeof r=="function"?c=r(y):c=B.createElement(pu,dl({},y,{type:a})),B.createElement(Vt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},c)}function SI(e){var{points:t,showLabels:n,allOtherScatterProps:r}=e,{shape:i,activeShape:a,dataKey:o}=r,s=it(r,!1),u=ke(Do),{onMouseEnter:c,onClick:l,onMouseLeave:d}=r,h=EI(r,Tle),g=Z0(c,r.dataKey),m=J0(d),y=Q0(l,r.dataKey);return t==null?null:B.createElement(B.Fragment,null,B.createElement(Rle,{points:t,props:r}),t.map((v,b)=>{var _=a&&u===String(b),E=_?a:i,S=oi(oi(oi({key:"symbol-".concat(b)},s),v),{},{[T2]:b,[P2]:String(o)});return B.createElement(Vt,dl({className:"recharts-scatter-symbol"},_l(h,v,b),{onMouseEnter:g(v,b),onMouseLeave:m(v,b),onClick:y(v,b),key:"symbol-".concat(v?.cx,"-").concat(v?.cy,"-").concat(v?.size,"-").concat(b)}),B.createElement(vle,dl({option:E,isActive:_},S)))}),n&&Ia.renderCallByParent(r,t))}function Ile(e){var{previousPointsRef:t,props:n}=e,{points:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s}=n,u=t.current,c=lh(n,"recharts-scatter-"),[l,d]=k.useState(!1),h=k.useCallback(()=>{d(!1)},[]),g=k.useCallback(()=>{d(!0)},[]);return B.createElement(Na,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},onAnimationEnd:h,onAnimationStart:g,key:c},m=>{var{t:y}=m,v=y===1?r:r.map((b,_)=>{var E=u&&u[_];if(E){var S=cr(E.cx,b.cx),A=cr(E.cy,b.cy),O=cr(E.size,b.size);return oi(oi({},b),{},{cx:S(y),cy:A(y),size:O(y)})}var P=cr(0,b.size);return oi(oi({},b),{},{size:P(y)})});return y>0&&(t.current=v),B.createElement(Vt,null,B.createElement(SI,{points:v,allOtherScatterProps:n,showLabels:!l}))})}function Dle(e){var{points:t,isAnimationActive:n}=e,r=k.useRef(null),i=r.current;return n&&t&&t.length&&(!i||i!==t)?B.createElement(Ile,{props:e,previousPointsRef:r}):B.createElement(SI,{points:t,allOtherScatterProps:e,showLabels:!0})}function Nle(e){var{dataKey:t,points:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,tooltipType:u}=e;return{dataDefinedOnItem:n?.map(c=>c.tooltipPayload),positions:n?.map(c=>c.tooltipPosition),settings:{stroke:r,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:Ua(o,t),hide:s,type:u,color:a,unit:""}}}function Lle(e){var{displayedData:t,xAxis:n,yAxis:r,zAxis:i,scatterSettings:a,xAxisTicks:o,yAxisTicks:s,cells:u}=e,c=Rt(n.dataKey)?a.dataKey:n.dataKey,l=Rt(r.dataKey)?a.dataKey:r.dataKey,d=i&&i.dataKey,h=i?i.range:hS.defaultProps.range,g=h&&h[0],m=n.scale.bandwidth?n.scale.bandwidth():0,y=r.scale.bandwidth?r.scale.bandwidth():0;return t.map((v,b)=>{var _=$t(v,c),E=$t(v,l),S=!Rt(d)&&$t(v,d)||"-",A=[{name:Rt(n.dataKey)?a.name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:v,dataKey:c,type:a.tooltipType},{name:Rt(r.dataKey)?a.name:r.name||r.dataKey,unit:r.unit||"",value:E,payload:v,dataKey:l,type:a.tooltipType}];S!=="-"&&A.push({name:i.name||i.dataKey,unit:i.unit||"",value:S,payload:v,dataKey:d,type:a.tooltipType});var O=Jc({axis:n,ticks:o,bandSize:m,entry:v,index:b,dataKey:c}),P=Jc({axis:r,ticks:s,bandSize:y,entry:v,index:b,dataKey:l}),j=S!=="-"?i.scale(S):g,$=Math.sqrt(Math.max(j,0)/Math.PI);return oi(oi({},v),{},{cx:O,cy:P,x:O-$,y:P-$,width:2*$,height:2*$,size:j,node:{x:_,y:E,z:S},tooltipPayload:A,tooltipPosition:{x:O,y:P},payload:v},u&&u[b]&&u[b].props)})}var $le=(e,t,n)=>({x:e.cx,y:e.cy,value:n==="x"?+e.node.x:+e.node.y,errorVal:$t(e,t)});function Ble(e){var t=k.useRef(ko("recharts-scatter-")),{hide:n,points:r,className:i,needClip:a,xAxisId:o,yAxisId:s,id:u,children:c}=e;if(n)return null;var l=Ot("recharts-scatter",i),d=Rt(u)?t.current:u;return B.createElement(Vt,{className:l,clipPath:a?"url(#clipPath-".concat(d,")"):null},a&&B.createElement("defs",null,B.createElement(im,{clipPathId:d,xAxisId:o,yAxisId:s})),B.createElement(iS,{xAxisId:o,yAxisId:s,data:r,dataPointFormatter:$le,errorBarOffset:0},c),B.createElement(Vt,{key:"recharts-scatter-symbols"},B.createElement(Dle,e)))}var AI={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Wo.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"};function zle(e){var t=li(e,AI),{animationBegin:n,animationDuration:r,animationEasing:i,hide:a,isAnimationActive:o,legendType:s,lineJointType:u,lineType:c,shape:l,xAxisId:d,yAxisId:h,zAxisId:g}=t,m=EI(t,Ple),{needClip:y}=fh(d,h),v=k.useMemo(()=>El(e.children,Ll),[e.children]),b=k.useMemo(()=>({name:e.name,tooltipType:e.tooltipType,data:e.data,dataKey:e.dataKey}),[e.data,e.dataKey,e.name,e.tooltipType]),_=Un(),E=ke(S=>Ole(S,d,h,g,b,v,_));return y==null?null:B.createElement(B.Fragment,null,B.createElement(ch,{fn:Nle,args:oi(oi({},e),{},{points:E})}),B.createElement(Ble,dl({},m,{xAxisId:d,yAxisId:h,zAxisId:g,lineType:c,lineJointType:u,legendType:s,shape:l,hide:a,isAnimationActive:o,animationBegin:n,animationDuration:r,animationEasing:i,points:E,needClip:y})))}class hh extends k.Component{render(){return B.createElement(rm,{type:"scatter",data:this.props.data,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:this.props.zAxisId,dataKey:this.props.dataKey,stackId:void 0,hide:this.props.hide,barSize:void 0},B.createElement(em,{legendPayload:kle(this.props)}),B.createElement(zle,this.props))}}pS(hh,"displayName","Scatter");pS(hh,"defaultProps",AI);var Fle=["children"],Wle=["dangerouslySetInnerHTML","ticks"];function OI(e,t,n){return(t=qle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qle(e){var t=Vle(e,"string");return typeof t=="symbol"?t:t+""}function Vle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sx.apply(null,arguments)}function TI(e,t){if(e==null)return{};var n,r,i=Hle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ule(e){var t=en(),n=k.useMemo(()=>{var{children:a}=e,o=TI(e,Fle);return o},[e]),r=ke(a=>Ga(a,n.id)),i=n===r;return k.useEffect(()=>(t(nle(n)),()=>{t(rle(n))}),[n,t]),i?e.children:null}var Gle=e=>{var{xAxisId:t,className:n}=e,r=ke(g7),i=Un(),a="xAxis",o=ke(g=>za(g,a,t,i)),s=ke(g=>Jk(g,a,t,i)),u=ke(g=>Kk(g,t)),c=ke(g=>Ine(g,t));if(u==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:d}=e,h=TI(e,Wle);return B.createElement(Is,Sx({},h,{scale:o,x:c.x,y:c.y,width:u.width,height:u.height,className:Ot("recharts-".concat(a," ").concat(a),n),viewBox:r,ticks:s}))},Kle=e=>{var t,n,r,i,a;return B.createElement(Ule,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter},B.createElement(Gle,e))};class Ds extends k.Component{render(){return B.createElement(Kle,this.props)}}OI(Ds,"displayName","XAxis");OI(Ds,"defaultProps",{allowDataOverflow:bi.allowDataOverflow,allowDecimals:bi.allowDecimals,allowDuplicatedCategory:bi.allowDuplicatedCategory,height:bi.height,hide:!1,mirror:bi.mirror,orientation:bi.orientation,padding:bi.padding,reversed:bi.reversed,scale:bi.scale,tickCount:bi.tickCount,type:bi.type,xAxisId:0});var Yle=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(l=>{if(l){var d=l.getBoundingClientRect();d.width>o&&(o=d.width)}});var s=n?n.getBoundingClientRect().width:0,u=i+a,c=o+u+s+(n?r:0);return Math.round(c)}return 0},Xle=["dangerouslySetInnerHTML","ticks"];function PI(e,t,n){return(t=Zle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zle(e){var t=Jle(e,"string");return typeof t=="symbol"?t:t+""}function Jle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ax.apply(null,arguments)}function Qle(e,t){if(e==null)return{};var n,r,i=efe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function efe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tfe(e){var t=en();return k.useEffect(()=>(t(ile(e)),()=>{t(ale(e))}),[e,t]),null}var nfe=e=>{var t,{yAxisId:n,className:r,width:i,label:a}=e,o=k.useRef(null),s=k.useRef(null),u=ke(g7),c=Un(),l=en(),d="yAxis",h=ke(E=>za(E,d,n,c)),g=ke(E=>Yk(E,n)),m=ke(E=>Dne(E,n)),y=ke(E=>Jk(E,d,n,c));if(k.useLayoutEffect(()=>{var E;if(!(i!=="auto"||!g||JE(a)||k.isValidElement(a))){var S=o.current,A=S==null||(E=S.tickRefs)===null||E===void 0?void 0:E.current,{tickSize:O,tickMargin:P}=S.props,j=Yle({ticks:A,label:s.current,labelGapWithTick:5,tickSize:O,tickMargin:P});Math.round(g.width)!==Math.round(j)&&l(ule({id:n,width:j}))}},[o,o==null||(t=o.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,g?.width,g,l,a,n,i]),g==null||m==null)return null;var{dangerouslySetInnerHTML:v,ticks:b}=e,_=Qle(e,Xle);return B.createElement(Is,Ax({},_,{ref:o,labelRef:s,scale:h,x:m.x,y:m.y,width:g.width,height:g.height,className:Ot("recharts-".concat(d," ").concat(d),r),viewBox:u,ticks:y}))},rfe=e=>{var t,n,r,i,a;return B.createElement(B.Fragment,null,B.createElement(tfe,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter}),B.createElement(nfe,e))},ife={allowDataOverflow:wi.allowDataOverflow,allowDecimals:wi.allowDecimals,allowDuplicatedCategory:wi.allowDuplicatedCategory,hide:!1,mirror:wi.mirror,orientation:wi.orientation,padding:wi.padding,reversed:wi.reversed,scale:wi.scale,tickCount:wi.tickCount,type:wi.type,width:wi.width,yAxisId:0};class No extends k.Component{render(){return B.createElement(rfe,this.props)}}PI(No,"displayName","YAxis");PI(No,"defaultProps",ife);var kp={exports:{}},_b={};/**
83
+ `).concat(S.x,",").concat(S.y),O=Rt(e.id)?ko("recharts-radial-line-"):e.id;return B.createElement("text",wo({},n,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",o)}),B.createElement("defs",null,B.createElement("path",{id:O,d:A})),B.createElement("textPath",{xlinkHref:"#".concat(O)},t))},Jie=e=>{var{viewBox:t,offset:n,position:r}=e,{cx:i,cy:a,innerRadius:o,outerRadius:s,startAngle:u,endAngle:c}=t,l=(u+c)/2;if(r==="outside"){var{x:d,y:h}=Nn(i,a,s+n,l);return{x:d,y:h,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var g=(o+s)/2,{x:m,y}=Nn(i,a,g,l);return{x:m,y,textAnchor:"middle",verticalAnchor:"middle"}},Qie=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,{x:a,y:o,width:s,height:u}=t,c=u>=0?1:-1,l=c*r,d=c>0?"end":"start",h=c>0?"start":"end",g=s>=0?1:-1,m=g*r,y=g>0?"end":"start",v=g>0?"start":"end";if(i==="top"){var b={x:a+s/2,y:o-c*r,textAnchor:"middle",verticalAnchor:d};return In(In({},b),n?{height:Math.max(o-n.y,0),width:s}:{})}if(i==="bottom"){var _={x:a+s/2,y:o+u+l,textAnchor:"middle",verticalAnchor:h};return In(In({},_),n?{height:Math.max(n.y+n.height-(o+u),0),width:s}:{})}if(i==="left"){var E={x:a-m,y:o+u/2,textAnchor:y,verticalAnchor:"middle"};return In(In({},E),n?{width:Math.max(E.x-n.x,0),height:u}:{})}if(i==="right"){var S={x:a+s+m,y:o+u/2,textAnchor:v,verticalAnchor:"middle"};return In(In({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:u}:{})}var A=n?{width:s,height:u}:{};return i==="insideLeft"?In({x:a+m,y:o+u/2,textAnchor:v,verticalAnchor:"middle"},A):i==="insideRight"?In({x:a+s-m,y:o+u/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?In({x:a+s/2,y:o+l,textAnchor:"middle",verticalAnchor:h},A):i==="insideBottom"?In({x:a+s/2,y:o+u-l,textAnchor:"middle",verticalAnchor:d},A):i==="insideTopLeft"?In({x:a+m,y:o+l,textAnchor:v,verticalAnchor:h},A):i==="insideTopRight"?In({x:a+s-m,y:o+l,textAnchor:y,verticalAnchor:h},A):i==="insideBottomLeft"?In({x:a+m,y:o+u-l,textAnchor:v,verticalAnchor:d},A):i==="insideBottomRight"?In({x:a+s-m,y:o+u-l,textAnchor:y,verticalAnchor:d},A):i&&typeof i=="object"&&(Me(i.x)||ru(i.x))&&(Me(i.y)||ru(i.y))?In({x:a+zr(i.x,s),y:o+zr(i.y,u),textAnchor:"end",verticalAnchor:"end"},A):In({x:a+s/2,y:o+u/2,textAnchor:"middle",verticalAnchor:"middle"},A)},eae=e=>"cx"in e&&Me(e.cx);function Rr(e){var{offset:t=5}=e,n=o5(e,qie),r=In({offset:t},n),{viewBox:i,position:a,value:o,children:s,content:u,className:c="",textBreakAll:l,labelRef:d}=r,h=p0(),g=i||h;if(!g||Rt(o)&&Rt(s)&&!M.isValidElement(u)&&typeof u!="function")return null;if(M.isValidElement(u)){var{labelRef:m}=r,y=o5(r,Vie);return M.cloneElement(u,y)}var v;if(typeof u=="function"){if(v=M.createElement(u,r),M.isValidElement(v))return v}else v=Yie(r);var b=eae(g),_=it(r,!0);if(b&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Zie(r,v,_);var E=b?Jie(r):Qie(r,g);return B.createElement(Y0,wo({ref:d,className:Ot("recharts-label",c)},_,E,{breakAll:l}),v)}Rr.displayName="Label";var kR=e=>{var{cx:t,cy:n,angle:r,startAngle:i,endAngle:a,r:o,radius:s,innerRadius:u,outerRadius:c,x:l,y:d,top:h,left:g,width:m,height:y,clockWise:v,labelViewBox:b}=e;if(b)return b;if(Me(m)&&Me(y)){if(Me(l)&&Me(d))return{x:l,y:d,width:m,height:y};if(Me(h)&&Me(g))return{x:h,y:g,width:m,height:y}}if(Me(l)&&Me(d))return{x:l,y:d,width:0,height:0};if(Me(t)&&Me(n))return{cx:t,cy:n,startAngle:i||r||0,endAngle:a||r||0,innerRadius:u||0,outerRadius:c||s||o||0,clockWise:v};if(e.viewBox)return e.viewBox},tae=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?B.createElement(Rr,wo({key:"label-implicit"},r)):si(e)?B.createElement(Rr,wo({key:"label-implicit",value:e},r)):M.isValidElement(e)?e.type===Rr?M.cloneElement(e,In({key:"label-implicit"},r)):B.createElement(Rr,wo({key:"label-implicit",content:e},r)):JE(e)?B.createElement(Rr,wo({key:"label-implicit",content:e},r)):e&&typeof e=="object"?B.createElement(Rr,wo({},e,{key:"label-implicit"},r)):null},nae=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var{children:i,labelRef:a}=t,o=kR(t),s=El(i,Rr).map((c,l)=>M.cloneElement(c,{viewBox:n||o,key:"label-".concat(l)}));if(!r)return s;var u=tae(t.label,n||o,a);return[u,...s]};Rr.parseViewBox=kR;Rr.renderCallByParent=nae;var pb={},gb={},u5;function rae(){return u5||(u5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}(gb)),gb}var vb={},c5;function iae(){return c5||(c5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(vb)),vb}var l5;function aae(){return l5||(l5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rae(),n=iae(),r=h2();function i(a){if(r.isArrayLike(a))return t.last(n.toArray(a))}e.last=i}(pb)),pb}var mb,f5;function oae(){return f5||(f5=1,mb=aae().last),mb}var sae=oae();const uae=Va(sae);var cae=["valueAccessor"],lae=["data","dataKey","clockWise","id","textBreakAll"];function Zg(){return Zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zg.apply(null,arguments)}function d5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(n),!0).forEach(function(r){fae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fae(e,t,n){return(t=dae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dae(e){var t=hae(e,"string");return typeof t=="symbol"?t:t+""}function hae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p5(e,t){if(e==null)return{};var n,r,i=pae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gae=e=>Array.isArray(e.value)?uae(e.value):e.value;function Ia(e){var{valueAccessor:t=gae}=e,n=p5(e,cae),{data:r,dataKey:i,clockWise:a,id:o,textBreakAll:s}=n,u=p5(n,lae);return!r||!r.length?null:B.createElement(Vt,{className:"recharts-label-list"},r.map((c,l)=>{var d=Rt(i)?t(c,l):$t(c&&c.payload,i),h=Rt(o)?{}:{id:"".concat(o,"-").concat(l)};return B.createElement(Rr,Zg({},it(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:Rr.parseViewBox(Rt(a)?c:h5(h5({},c),{},{clockWise:a})),key:"label-".concat(l),index:l}))}))}Ia.displayName="LabelList";function vae(e,t){return e?e===!0?B.createElement(Ia,{key:"labelList-implicit",data:t}):B.isValidElement(e)||JE(e)?B.createElement(Ia,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?B.createElement(Ia,Zg({data:t},e,{key:"labelList-implicit"})):null:null}function mae(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var{children:r}=e,i=El(r,Ia).map((o,s)=>M.cloneElement(o,{data:t,key:"labelList-".concat(s)}));if(!n)return i;var a=vae(e.label,t);return[a,...i]}Ia.renderCallByParent=mae;var yae=["points","className","baseLinePoints","connectNulls"];function Dc(){return Dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dc.apply(null,arguments)}function bae(e,t){if(e==null)return{};var n,r,i=wae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var g5=e=>e&&e.x===+e.x&&e.y===+e.y,xae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(r=>{g5(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),g5(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},rd=(e,t)=>{var n=xae(e);t&&(n=[n.reduce((i,a)=>[...i,...a],[])]);var r=n.map(i=>i.reduce((a,o,s)=>"".concat(a).concat(s===0?"M":"L").concat(o.x,",").concat(o.y),"")).join("");return n.length===1?"".concat(r,"Z"):r},_ae=(e,t,n)=>{var r=rd(e,n);return"".concat(r.slice(-1)==="Z"?r.slice(0,-1):r,"L").concat(rd(t.reverse(),n).slice(1))},Eae=e=>{var{points:t,className:n,baseLinePoints:r,connectNulls:i}=e,a=bae(e,yae);if(!t||!t.length)return null;var o=Ot("recharts-polygon",n);if(r&&r.length){var s=a.stroke&&a.stroke!=="none",u=_ae(t,r,i);return B.createElement("g",{className:o},B.createElement("path",Dc({},it(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),s?B.createElement("path",Dc({},it(a,!0),{fill:"none",d:rd(t,i)})):null,s?B.createElement("path",Dc({},it(a,!0),{fill:"none",d:rd(r,i)})):null)}var c=rd(t,i);return B.createElement("path",Dc({},it(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",className:o,d:c}))};function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vx.apply(null,arguments)}var X0=e=>{var{cx:t,cy:n,r,className:i}=e,a=Ot("recharts-dot",i);return t===+t&&n===+n&&r===+r?B.createElement("circle",vx({},it(e,!1),G_(e),{className:a,cx:t,cy:n,r})):null},RR=e=>e.graphicalItems.polarItems,Sae=se([Mn,rh],TE),QE=se([RR,kn,Sae],PE),Aae=se([QE],CE),eS=se([Aae,mE],jE),Oae=se([eS,kn,QE],ME),Tae=se([eS,kn,QE],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var a,o=$t(r,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:$t(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),v5=()=>{},Pae=se([kn,Wk,v5,Tae,v5],IE),IR=se([kn,It,eS,Oae,nh,Mn,Pae],DE),Cae=se([IR,kn,Rl],$E);se([kn,IR,Cae,Mn],zE);var jae={radiusAxis:{},angleAxis:{}},DR=ea({name:"polarAxis",initialState:jae,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:tOe,removeRadiusAxis:nOe,addAngleAxis:rOe,removeAngleAxis:iOe}=DR.actions,Mae=DR.reducer;function m5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function y5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m5(Object(n),!0).forEach(function(r){kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kae(e,t,n){return(t=Rae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rae(e){var t=Iae(e,"string");return typeof t=="symbol"?t:t+""}function Iae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tS=(e,t)=>t,Dae=[],nS=(e,t,n)=>n?.length===0?Dae:n,NR=se([mE,tS,nS],(e,t,n)=>{var{chartData:r}=e,i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(a=>y5(y5({},t.presentationProps),a.props))),i!=null)return i}),Nae=se([NR,tS,nS],(e,t,n)=>{if(e!=null)return e.map((r,i)=>{var a,o=$t(r,t.nameKey,t.name),s;return n!=null&&(a=n[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?s=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?s=r.fill:s=t.fill,{value:Ua(o,t.dataKey),color:s,payload:r,type:t.legendType}})}),Lae=se([RR,tS],(e,t)=>{if(e.some(n=>n.type==="pie"&&t.dataKey===n.dataKey&&t.data===n.data))return t}),$ae=se([NR,Lae,nS,Hn],(e,t,n,r)=>{if(!(t==null||e==null))return Coe({offset:r,pieSettings:t,displayedData:e,cells:n})}),Bae={countOfBars:0,cartesianItems:[],polarItems:[]},LR=ea({name:"graphicalItems",initialState:Bae,reducers:{addBar(e){e.countOfBars+=1},removeBar(e){e.countOfBars-=1},addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=Co(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=Co(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=Co(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addBar:zae,removeBar:Fae,addCartesianGraphicalItem:Wae,replaceCartesianGraphicalItem:qae,removeCartesianGraphicalItem:Vae,addPolarGraphicalItem:Hae,removePolarGraphicalItem:Uae}=LR.actions,Gae=LR.reducer;function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function w5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b5(Object(n),!0).forEach(function(r){Kae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kae(e,t,n){return(t=Yae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yae(e){var t=Xae(e,"string");return typeof t=="symbol"?t:t+""}function Xae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zae(e){var t=en(),n=M.useRef(null);return M.useEffect(()=>{var r=w5(w5({},e),{},{stackId:S2(e.stackId)});n.current===null?t(Wae(r)):n.current!==r&&t(qae({prev:n.current,next:r})),n.current=r},[t,e]),M.useEffect(()=>()=>{n.current&&(t(Vae(n.current)),n.current=null)},[t]),null}function Jae(e){var t=en();return M.useEffect(()=>(t(Hae(e)),()=>{t(Uae(e))}),[t,e]),null}var yb={},x5;function Qae(){return x5||(x5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(yb)),yb}var bb,_5;function eoe(){return _5||(_5=1,bb=Qae().isPlainObject),bb}var toe=eoe();const noe=Va(toe);function Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jg.apply(null,arguments)}var E5=(e,t,n,r,i)=>{var a=n-r,o;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z"),o},roe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ioe=e=>{var t=li(e,roe),n=M.useRef(),[r,i]=M.useState(-1);M.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var v=n.current.getTotalLength();v&&i(v)}catch{}},[]);var{x:a,y:o,upperWidth:s,lowerWidth:u,height:c,className:l}=t,{animationEasing:d,animationDuration:h,animationBegin:g,isUpdateAnimationActive:m}=t;if(a!==+a||o!==+o||s!==+s||u!==+u||c!==+c||s===0&&u===0||c===0)return null;var y=Ot("recharts-trapezoid",l);return m?B.createElement(Na,{canBegin:r>0,from:{upperWidth:0,lowerWidth:0,height:c,x:a,y:o},to:{upperWidth:s,lowerWidth:u,height:c,x:a,y:o},duration:h,animationEasing:d,isActive:m},v=>{var{upperWidth:b,lowerWidth:_,height:E,x:S,y:A}=v;return B.createElement(Na,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:h,easing:d},B.createElement("path",Jg({},it(t,!0),{className:y,d:E5(S,A,b,_,E),ref:n})))}):B.createElement("g",null,B.createElement("path",Jg({},it(t,!0),{className:y,d:E5(a,o,s,u,c)})))},aoe=["option","shapeType","propTransformer","activeClassName","isActive"];function ooe(e,t){if(e==null)return{};var n,r,i=soe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function soe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function S5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S5(Object(n),!0).forEach(function(r){uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uoe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=loe(e,"string");return typeof t=="symbol"?t:t+""}function loe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function foe(e,t){return Qg(Qg({},t),e)}function doe(e,t){return e==="symbols"}function A5(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return B.createElement(S7,n);case"trapezoid":return B.createElement(ioe,n);case"sector":return B.createElement(Dg,n);case"symbols":if(doe(t))return B.createElement(i0,n);break;default:return null}}function hoe(e){return M.isValidElement(e)?e.props:e}function ev(e){var{option:t,shapeType:n,propTransformer:r=foe,activeClassName:i="recharts-active-shape",isActive:a}=e,o=ooe(e,aoe),s;if(M.isValidElement(t))s=M.cloneElement(t,Qg(Qg({},o),hoe(t)));else if(typeof t=="function")s=t(o);else if(noe(t)&&typeof t!="boolean"){var u=r(t,o);s=B.createElement(A5,{shapeType:n,elementProps:u})}else{var c=o;s=B.createElement(A5,{shapeType:n,elementProps:c})}return a?B.createElement(Vt,{className:i},s):s}var Z0=(e,t)=>{var n=en();return(r,i)=>a=>{e?.(r,i,a),n(iR({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},J0=e=>{var t=en();return(n,r)=>i=>{e?.(n,r,i),t(Gne())}},Q0=(e,t)=>{var n=en();return(r,i)=>a=>{e?.(r,i,a),n(Kne({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function ch(e){var{fn:t,args:n}=e,r=en(),i=Un();return M.useEffect(()=>{if(!i){var a=t(n);return r(Vne(a)),()=>{r(Hne(a))}}},[t,n,r,i]),null}var $R=()=>{};function em(e){var{legendPayload:t}=e,n=en(),r=Un();return M.useEffect(()=>r?$R:(n(y7(t)),()=>{n(b7(t))}),[n,r,t]),null}function poe(e){var{legendPayload:t}=e,n=en(),r=ke(It);return M.useEffect(()=>r!=="centric"&&r!=="radial"?$R:(n(y7(t)),()=>{n(b7(t))}),[n,r,t]),null}function lh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=M.useRef(ko(t)),r=M.useRef(e);return r.current!==e&&(n.current=ko(t),r.current=e),n.current}var goe=["onMouseEnter","onClick","onMouseLeave"];function voe(e,t){if(e==null)return{};var n,r,i=moe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function moe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function O5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function An(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(n),!0).forEach(function(r){tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tm(e,t,n){return(t=yoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yoe(e){var t=boe(e,"string");return typeof t=="symbol"?t:t+""}function boe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ku(){return ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ku.apply(null,arguments)}function woe(e){var t=M.useMemo(()=>it(e,!1),[e]),n=M.useMemo(()=>El(e.children,Ll),[e.children]),r=M.useMemo(()=>({name:e.name,nameKey:e.nameKey,tooltipType:e.tooltipType,data:e.data,dataKey:e.dataKey,cx:e.cx,cy:e.cy,startAngle:e.startAngle,endAngle:e.endAngle,minAngle:e.minAngle,paddingAngle:e.paddingAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,cornerRadius:e.cornerRadius,legendType:e.legendType,fill:e.fill,presentationProps:t}),[e.cornerRadius,e.cx,e.cy,e.data,e.dataKey,e.endAngle,e.innerRadius,e.minAngle,e.name,e.nameKey,e.outerRadius,e.paddingAngle,e.startAngle,e.tooltipType,e.legendType,e.fill,t]),i=ke(a=>Nae(a,r,n));return B.createElement(poe,{legendPayload:i})}function xoe(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:u,tooltipType:c}=e;return{dataDefinedOnItem:r?.map(l=>l.tooltipPayload),positions:r?.map(l=>l.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:Ua(s,t),hide:u,type:c,color:o,unit:""}}}var _oe=(e,t)=>e>t?"start":e<t?"end":"middle",Eoe=(e,t,n)=>typeof t=="function"?t(e):zr(t,n,n*.8),Soe=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=f7(a,o),u=i+zr(e.cx,a,a/2),c=r+zr(e.cy,o,o/2),l=zr(e.innerRadius,s,0),d=Eoe(n,e.outerRadius,s),h=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:u,cy:c,innerRadius:l,outerRadius:d,maxRadius:h}},Aoe=(e,t)=>{var n=Xn(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Ooe=(e,t)=>{if(B.isValidElement(e))return B.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Ot("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return B.createElement(pu,ku({},t,{type:"linear",className:n}))},Toe=(e,t,n)=>{if(B.isValidElement(e))return B.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),B.isValidElement(r)))return r;var i=Ot("recharts-pie-label-text",typeof e!="boolean"&&typeof e!="function"?e.className:"");return B.createElement(Y0,ku({},t,{alignmentBaseline:"middle",className:i}),r)};function Poe(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=it(n,!1),u=it(i,!1),c=it(a,!1),l=typeof i=="object"&&"offsetRadius"in i&&i.offsetRadius||20,d=t.map((h,g)=>{var m=(h.startAngle+h.endAngle)/2,y=Nn(h.cx,h.cy,h.outerRadius+l,m),v=An(An(An(An({},s),h),{},{stroke:"none"},u),{},{index:g,textAnchor:_oe(y.x,h.cx)},y),b=An(An(An(An({},s),h),{},{fill:"none",stroke:h.fill},c),{},{index:g,points:[Nn(h.cx,h.cy,h.outerRadius,m),y],key:"line"});return B.createElement(Vt,{key:"label-".concat(h.startAngle,"-").concat(h.endAngle,"-").concat(h.midAngle,"-").concat(g)},a&&Ooe(a,b),Toe(i,v,$t(h,o)))});return B.createElement(Vt,{className:"recharts-pie-labels"},d)}function BR(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,showLabels:a}=e,o=ke(Do),{onMouseEnter:s,onClick:u,onMouseLeave:c}=i,l=voe(i,goe),d=Z0(s,i.dataKey),h=J0(c),g=Q0(u,i.dataKey);return t==null?null:B.createElement(B.Fragment,null,t.map((m,y)=>{if(m?.startAngle===0&&m?.endAngle===0&&t.length!==1)return null;var v=n&&String(y)===o,b=o?r:null,_=v?n:b,E=An(An({},m),{},{stroke:m.stroke,tabIndex:-1,[T2]:y,[P2]:i.dataKey});return B.createElement(Vt,ku({tabIndex:-1,className:"recharts-pie-sector"},_l(l,m,y),{onMouseEnter:d(m,y),onMouseLeave:h(m,y),onClick:g(m,y),key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(y)}),B.createElement(ev,ku({option:_,isActive:v,shapeType:"sector"},E)))}),B.createElement(Poe,{sectors:t,props:i,showLabels:a}))}function Coe(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:a}=e,{cornerRadius:o,startAngle:s,endAngle:u,dataKey:c,nameKey:l,tooltipType:d}=n,h=Math.abs(n.minAngle),g=Aoe(s,u),m=Math.abs(g),y=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,v=r.filter(O=>$t(O,c,0)!==0).length,b=(m>=360?v:v-1)*y,_=m-v*h-b,E=r.reduce((O,P)=>{var j=$t(P,c,0);return O+(Me(j)?j:0)},0),S;if(E>0){var A;S=r.map((O,P)=>{var j=$t(O,c,0),$=$t(O,l,P),z=Soe(n,a,O),I=(Me(j)?j:0)/E,H,D=An(An({},O),i&&i[P]&&i[P].props);P?H=A.endAngle+Xn(g)*y*(j!==0?1:0):H=s;var C=H+Xn(g)*((j!==0?h:0)+I*_),L=(H+C)/2,N=(z.innerRadius+z.outerRadius)/2,V=[{name:$,value:j,payload:D,dataKey:c,type:d}],Z=Nn(z.cx,z.cy,N,L);return A=An(An(An(An({},n.presentationProps),{},{percent:I,cornerRadius:o,name:$,tooltipPayload:V,midAngle:L,middleRadius:N,tooltipPosition:Z},D),z),{},{value:$t(O,c),startAngle:H,endAngle:C,payload:D,paddingAngle:Xn(g)*y}),A})}return S}function joe(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,activeShape:u,inactiveShape:c,onAnimationStart:l,onAnimationEnd:d}=t,h=lh(t,"recharts-pie-"),g=n.current,[m,y]=M.useState(!0),v=M.useCallback(()=>{typeof d=="function"&&d(),y(!1)},[d]),b=M.useCallback(()=>{typeof l=="function"&&l(),y(!0)},[l]);return B.createElement(Na,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},onAnimationStart:b,onAnimationEnd:v,key:h},_=>{var{t:E}=_,S=[],A=r&&r[0],O=A.startAngle;return r.forEach((P,j)=>{var $=g&&g[j],z=j>0?Es(P,"paddingAngle",0):0;if($){var I=cr($.endAngle-$.startAngle,P.endAngle-P.startAngle),H=An(An({},P),{},{startAngle:O+z,endAngle:O+I(E)+z});S.push(H),O=H.endAngle}else{var{endAngle:D,startAngle:C}=P,L=cr(0,D-C),N=L(E),V=An(An({},P),{},{startAngle:O+z,endAngle:O+N+z});S.push(V),O=V.endAngle}}),n.current=S,B.createElement(Vt,null,B.createElement(BR,{sectors:S,activeShape:u,inactiveShape:c,allOtherPieProps:t,showLabels:!m}))})}function Moe(e){var{sectors:t,isAnimationActive:n,activeShape:r,inactiveShape:i}=e,a=M.useRef(null),o=a.current;return n&&t&&t.length&&(!o||o!==t)?B.createElement(joe,{props:e,previousSectorsRef:a}):B.createElement(BR,{sectors:t,activeShape:r,inactiveShape:i,allOtherPieProps:e,showLabels:!0})}function koe(e){var{hide:t,className:n,rootTabIndex:r}=e,i=Ot("recharts-pie",n);return t?null:B.createElement(Vt,{tabIndex:r,className:i},B.createElement(Moe,e))}var zR={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Wo.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function Roe(e){var t=li(e,zR),n=M.useMemo(()=>El(e.children,Ll),[e.children]),r=it(t,!1),i=M.useMemo(()=>({name:t.name,nameKey:t.nameKey,tooltipType:t.tooltipType,data:t.data,dataKey:t.dataKey,cx:t.cx,cy:t.cy,startAngle:t.startAngle,endAngle:t.endAngle,minAngle:t.minAngle,paddingAngle:t.paddingAngle,innerRadius:t.innerRadius,outerRadius:t.outerRadius,cornerRadius:t.cornerRadius,legendType:t.legendType,fill:t.fill,presentationProps:r}),[t.cornerRadius,t.cx,t.cy,t.data,t.dataKey,t.endAngle,t.innerRadius,t.minAngle,t.name,t.nameKey,t.outerRadius,t.paddingAngle,t.startAngle,t.tooltipType,t.legendType,t.fill,r]),a=ke(o=>$ae(o,i,n));return B.createElement(B.Fragment,null,B.createElement(ch,{fn:xoe,args:An(An({},t),{},{sectors:a})}),B.createElement(koe,ku({},t,{sectors:a})))}class rS extends M.PureComponent{constructor(){super(...arguments),tm(this,"id",ko("recharts-pie-"))}render(){return B.createElement(B.Fragment,null,B.createElement(Jae,{data:this.props.data,dataKey:this.props.dataKey,hide:this.props.hide,angleAxisId:0,radiusAxisId:0,stackId:void 0,barSize:void 0,type:"pie"}),B.createElement(woe,this.props),B.createElement(Roe,this.props),this.props.children)}}tm(rS,"displayName","Pie");tm(rS,"defaultProps",zR);var Ioe=se([Hn],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Doe=se([Ioe,zo,Fo],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Noe=e=>{var t=Un();return ke(n=>ui(n,"xAxis",e,t))},Loe=e=>{var t=Un();return ke(n=>ui(n,"yAxis",e,t))},nm=()=>ke(Doe),$oe=()=>ke(kre);function T5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function P5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T5(Object(n),!0).forEach(function(r){Boe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Boe(e,t,n){return(t=zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zoe(e){var t=Foe(e,"string");return typeof t=="symbol"?t:t+""}function Foe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Woe=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=P5(P5({index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},it(i,!1)),G_(i)),s;return M.isValidElement(i)?s=M.cloneElement(i,o):typeof i=="function"?s=i(o):s=B.createElement(X0,o),B.createElement(Vt,{className:"recharts-active-dot"},s)};function mx(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,a=ke(Do),o=$oe();if(t==null||o==null)return null;var s=t.find(u=>o.includes(u.payload));return Rt(s)?null:Woe({point:s,childIndex:Number(a),mainColor:n,dataKey:i,activeDot:r})}var qoe=()=>{var e=en();return M.useEffect(()=>(e(zae()),()=>{e(Fae())})),null},Voe=["children"];function Hoe(e,t){if(e==null)return{};var n,r,i=Uoe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uoe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var C5=()=>{},FR=M.createContext({addErrorBar:C5,removeErrorBar:C5}),Goe={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},WR=M.createContext(Goe);function iS(e){var{children:t}=e,n=Hoe(e,Voe);return B.createElement(WR.Provider,{value:n},t)}var Koe=()=>M.useContext(WR),rm=e=>{var{children:t,xAxisId:n,yAxisId:r,zAxisId:i,dataKey:a,data:o,stackId:s,hide:u,type:c,barSize:l}=e,[d,h]=B.useState([]),g=M.useCallback(v=>{h(b=>[...b,v])},[h]),m=M.useCallback(v=>{h(b=>b.filter(_=>_!==v))},[h]),y=Un();return B.createElement(FR.Provider,{value:{addErrorBar:g,removeErrorBar:m}},B.createElement(Zae,{type:c,data:o,xAxisId:n,yAxisId:r,zAxisId:i,dataKey:a,errorBars:d,stackId:s,hide:u,barSize:l,isPanorama:y}),t)};function Yoe(e){var{addErrorBar:t,removeErrorBar:n}=M.useContext(FR);return M.useEffect(()=>(t(e),()=>{n(e)}),[t,n,e]),null}var Xoe=["direction","width","dataKey","isAnimationActive","animationBegin","animationDuration","animationEasing"];function qR(e,t,n){return(t=Zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zoe(e){var t=Joe(e,"string");return typeof t=="symbol"?t:t+""}function Joe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Td.apply(null,arguments)}function Qoe(e,t){if(e==null)return{};var n,r,i=ese(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ese(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tse(e){var{direction:t,width:n,dataKey:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s}=e,u=Qoe(e,Xoe),c=it(u,!1),{data:l,dataPointFormatter:d,xAxisId:h,yAxisId:g,errorBarOffset:m}=Koe(),y=Noe(h),v=Loe(g);if(y?.scale==null||v?.scale==null||l==null||t==="x"&&y.type!=="number")return null;var b=l.map(_=>{var{x:E,y:S,value:A,errorVal:O}=d(_,r,t);if(!O)return null;var P=[],j,$;if(Array.isArray(O)?[j,$]=O:j=$=O,t==="x"){var{scale:z}=y,I=S+m,H=I+n,D=I-n,C=z(A-j),L=z(A+$);P.push({x1:L,y1:H,x2:L,y2:D}),P.push({x1:C,y1:I,x2:L,y2:I}),P.push({x1:C,y1:H,x2:C,y2:D})}else if(t==="y"){var{scale:N}=v,V=E+m,Z=V-n,K=V+n,R=N(A-j),W=N(A+$);P.push({x1:Z,y1:W,x2:K,y2:W}),P.push({x1:V,y1:R,x2:V,y2:W}),P.push({x1:Z,y1:R,x2:K,y2:R})}var U="".concat(E+m,"px ").concat(S+m,"px");return B.createElement(Vt,Td({className:"recharts-errorBar",key:"bar-".concat(P.map(Y=>"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)))},c),P.map(Y=>{var ae=i?{transformOrigin:"".concat(Y.x1-5,"px")}:void 0;return B.createElement(Na,{from:{transform:"scaleY(0)",transformOrigin:U},to:{transform:"scaleY(1)",transformOrigin:U},begin:a,easing:s,isActive:i,duration:o,key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2),style:{transformOrigin:U}},B.createElement("line",Td({},Y,{style:ae})))}))});return B.createElement(Vt,{className:"recharts-errorBars"},b)}var VR=M.createContext(void 0);function nse(e){var t=M.useContext(VR);return e??t??"x"}function HR(e){var{direction:t,children:n}=e;return B.createElement(VR.Provider,{value:t},n)}var UR={stroke:"black",strokeWidth:1.5,width:5,offset:0,isAnimationActive:!0,animationBegin:0,animationDuration:400,animationEasing:"ease-in-out"};function rse(e){var t=nse(e.direction),{width:n,isAnimationActive:r,animationBegin:i,animationDuration:a,animationEasing:o}=li(e,UR);return B.createElement(B.Fragment,null,B.createElement(Yoe,{dataKey:e.dataKey,direction:t}),B.createElement(tse,Td({},e,{direction:t,width:n,isAnimationActive:r,animationBegin:i,animationDuration:a,animationEasing:o})))}class GR extends M.Component{render(){return B.createElement(rse,this.props)}}qR(GR,"defaultProps",UR);qR(GR,"displayName","ErrorBar");var ise=process.env.NODE_ENV==="production",wb="Invariant failed";function j5(e,t){if(ise)throw new Error(wb);var n=typeof t=="function"?t():t,r=n?"".concat(wb,": ").concat(n):wb;throw new Error(r)}var ase=["x","y"];function yx(){return yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yx.apply(null,arguments)}function M5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M5(Object(n),!0).forEach(function(r){ose(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ose(e,t,n){return(t=sse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sse(e){var t=use(e,"string");return typeof t=="symbol"?t:t+""}function use(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cse(e,t){if(e==null)return{};var n,r,i=lse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fse(e,t){var{x:n,y:r}=e,i=cse(e,ase),a="".concat(n),o=parseInt(a,10),s="".concat(r),u=parseInt(s,10),c="".concat(t.height||i.height),l=parseInt(c,10),d="".concat(t.width||i.width),h=parseInt(d,10);return _f(_f(_f(_f(_f({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:l,width:h,name:t.name,radius:t.radius})}function KR(e){return B.createElement(ev,yx({shapeType:"rectangle",propTransformer:fse,activeClassName:"recharts-active-bar"},e))}var dse=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Me(t))return t;var a=Me(r)||Rt(r);return a?t(r,i):(a||(process.env.NODE_ENV!=="production"?j5(!1,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")):j5()),n)}};function fh(e,t){var n,r,i=ke(c=>Ga(c,e)),a=ke(c=>Vo(c,t)),o=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:bi.allowDataOverflow,s=(r=a?.allowDataOverflow)!==null&&r!==void 0?r:wi.allowDataOverflow,u=o||s;return{needClip:u,needClipX:o,needClipY:s}}function im(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=nm(),{needClipX:a,needClipY:o,needClip:s}=fh(t,n);if(!s)return null;var{x:u,y:c,width:l,height:d}=i;return B.createElement("clipPath",{id:"clipPath-".concat(r)},B.createElement("rect",{x:a?u:u-l/2,y:o?c:c-d/2,width:a?l:l*2,height:o?d:d*2}))}var hse=["onMouseEnter","onMouseLeave","onClick"],pse=["value","background","tooltipPosition"],gse=["onMouseEnter","onClick","onMouseLeave"];function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pd.apply(null,arguments)}function k5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k5(Object(n),!0).forEach(function(r){am(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function am(e,t,n){return(t=vse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vse(e){var t=mse(e,"string");return typeof t=="symbol"?t:t+""}function mse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bx(e,t){if(e==null)return{};var n,r,i=yse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bse=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ua(n,t),payload:e}]};function wse(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:Ua(a,t),hide:o,type:e.tooltipType,color:e.fill,unit:s}}}function xse(e){var t=ke(Do),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:u}=a,c=bx(a,hse),l=Z0(o,r),d=J0(s),h=Q0(u,r);if(!i||n==null)return null;var g=it(i,!1);return B.createElement(B.Fragment,null,n.map((m,y)=>{var{value:v,background:b,tooltipPosition:_}=m,E=bx(m,pse);if(!b)return null;var S=l(m,y),A=d(m,y),O=h(m,y),P=_r(_r(_r(_r(_r({option:i,isActive:String(y)===t},E),{},{fill:"#eee"},b),g),_l(c,m,y)),{},{onMouseEnter:S,onMouseLeave:A,onClick:O,dataKey:r,index:y,className:"recharts-bar-background-rectangle"});return B.createElement(KR,Pd({key:"background-bar-".concat(y)},P))}))}function YR(e){var{data:t,props:n,showLabels:r}=e,i=it(n,!1),{shape:a,dataKey:o,activeBar:s}=n,u=ke(Do),c=ke(mR),{onMouseEnter:l,onClick:d,onMouseLeave:h}=n,g=bx(n,gse),m=Z0(l,o),y=J0(h),v=Q0(d,o);return t?B.createElement(B.Fragment,null,t.map((b,_)=>{var E=s&&String(_)===u&&(c==null||o===c),S=E?s:a,A=_r(_r(_r({},i),b),{},{isActive:E,option:S,index:_,dataKey:o});return B.createElement(Vt,Pd({className:"recharts-bar-rectangle"},_l(g,b,_),{onMouseEnter:m(b,_),onMouseLeave:y(b,_),onClick:v(b,_),key:"rectangle-".concat(b?.x,"-").concat(b?.y,"-").concat(b?.value,"-").concat(_)}),B.createElement(KR,A))}),r&&Ia.renderCallByParent(n,t)):null}function _se(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:u,onAnimationEnd:c,onAnimationStart:l}=t,d=n.current,h=lh(t,"recharts-bar-"),[g,m]=M.useState(!1),y=M.useCallback(()=>{typeof c=="function"&&c(),m(!1)},[c]),v=M.useCallback(()=>{typeof l=="function"&&l(),m(!0)},[l]);return B.createElement(Na,{begin:o,duration:s,isActive:a,easing:u,from:{t:0},to:{t:1},onAnimationEnd:y,onAnimationStart:v,key:h},b=>{var{t:_}=b,E=_===1?r:r.map((S,A)=>{var O=d&&d[A];if(O){var P=cr(O.x,S.x),j=cr(O.y,S.y),$=cr(O.width,S.width),z=cr(O.height,S.height);return _r(_r({},S),{},{x:P(_),y:j(_),width:$(_),height:z(_)})}if(i==="horizontal"){var I=cr(0,S.height),H=I(_);return _r(_r({},S),{},{y:S.y+S.height-H,height:H})}var D=cr(0,S.width),C=D(_);return _r(_r({},S),{},{width:C})});return _>0&&(n.current=E),B.createElement(Vt,null,B.createElement(YR,{props:t,data:E,showLabels:!g}))})}function Ese(e){var{data:t,isAnimationActive:n}=e,r=M.useRef(null);return n&&t&&t.length&&(r.current==null||r.current!==t)?B.createElement(_se,{previousRectanglesRef:r,props:e}):B.createElement(YR,{props:e,data:t,showLabels:!0})}var XR=0,Sse=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:$t(e,t)}};class Ase extends M.PureComponent{constructor(){super(...arguments),am(this,"id",ko("recharts-bar-"))}render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:a,yAxisId:o,needClip:s,background:u,id:c,layout:l}=this.props;if(t)return null;var d=Ot("recharts-bar",i),h=Rt(c)?this.id:c;return B.createElement(Vt,{className:d},s&&B.createElement("defs",null,B.createElement(im,{clipPathId:h,xAxisId:a,yAxisId:o})),B.createElement(Vt,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(h,")"):null},B.createElement(xse,{data:n,dataKey:r,background:u,allOtherBarProps:this.props}),B.createElement(Ese,this.props)),B.createElement(HR,{direction:l==="horizontal"?"y":"x"},this.props.children))}}var ZR={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Wo.isSsr,legendType:"rect",minPointSize:XR,xAxisId:0,yAxisId:0};function Ose(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:u,animationEasing:c,isAnimationActive:l}=li(e,ZR),{needClip:d}=fh(t,n),h=Zd(),g=Un(),m=M.useMemo(()=>({barSize:e.barSize,data:void 0,dataKey:e.dataKey,maxBarSize:e.maxBarSize,minPointSize:a,stackId:S2(e.stackId)}),[e.barSize,e.dataKey,e.maxBarSize,a,e.stackId]),y=El(e.children,Ll),v=ke(E=>eue(E,t,n,g,m,y));if(h!=="vertical"&&h!=="horizontal")return null;var b,_=v?.[0];return _==null||_.height==null||_.width==null?b=0:b=h==="vertical"?_.height/2:_.width/2,B.createElement(iS,{xAxisId:t,yAxisId:n,data:v,dataPointFormatter:Sse,errorBarOffset:b},B.createElement(Ase,Pd({},e,{layout:h,needClip:d,data:v,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:u,animationEasing:c,isAnimationActive:l})))}function Tse(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:a,xAxis:o,yAxis:s,xAxisTicks:u,yAxisTicks:c,stackedData:l,displayedData:d,offset:h,cells:g}=e,m=t==="horizontal"?s:o,y=l?m.scale.domain():null,v=oX({numericAxis:m});return d.map((b,_)=>{var E,S,A,O,P,j;l?E=tX(l[_],y):(E=$t(b,n),Array.isArray(E)||(E=[v,E]));var $=dse(r,XR)(E[1],_);if(t==="horizontal"){var z,[I,H]=[s.scale(E[0]),s.scale(E[1])];S=cP({axis:o,ticks:u,bandSize:a,offset:i.offset,entry:b,index:_}),A=(z=H??I)!==null&&z!==void 0?z:void 0,O=i.size;var D=I-H;if(P=Ar(D)?0:D,j={x:S,y:h.top,width:O,height:h.height},Math.abs($)>0&&Math.abs(P)<Math.abs($)){var C=Xn(P||$)*(Math.abs($)-Math.abs(P));A-=C,P+=C}}else{var[L,N]=[o.scale(E[0]),o.scale(E[1])];if(S=L,A=cP({axis:s,ticks:c,bandSize:a,offset:i.offset,entry:b,index:_}),O=N-L,P=i.size,j={x:h.left,y:A,width:h.width,height:P},Math.abs($)>0&&Math.abs(O)<Math.abs($)){var V=Xn(O||$)*(Math.abs($)-Math.abs(O));O+=V}}var Z=_r(_r({},b),{},{x:S,y:A,width:O,height:P,value:l?E:E[1],payload:b,background:j,tooltipPosition:{x:S+O/2,y:A+P/2}},g&&g[_]&&g[_].props);return Z})}class aS extends M.PureComponent{render(){return B.createElement(rm,{type:"bar",data:null,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,dataKey:this.props.dataKey,stackId:this.props.stackId,hide:this.props.hide,barSize:this.props.barSize},B.createElement(qoe,null),B.createElement(em,{legendPayload:bse(this.props)}),B.createElement(ch,{fn:wse,args:this.props}),B.createElement(Ose,this.props))}}am(aS,"displayName","Bar");am(aS,"defaultProps",ZR);function R5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R5(Object(n),!0).forEach(function(r){Pse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pse(e,t,n){return(t=Cse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cse(e){var t=jse(e,"string");return typeof t=="symbol"?t:t+""}function jse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mse=(e,t)=>t,kse=(e,t,n)=>n,Rse=(e,t,n,r)=>r,oS=(e,t,n,r,i)=>i,Ise=(e,t,n,r,i)=>i.maxBarSize,Dse=(e,t,n,r,i,a)=>a,I5=(e,t,n)=>{var r=n??e;if(!Rt(r))return zr(r,t,0)},Nse=se([It,Ml,Mse,kse,Rse],(e,t,n,r,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===n:a.yAxisId===r).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),Lse=(e,t,n,r)=>{var i=It(e);return i==="horizontal"?Ad(e,"yAxis",n,r):Ad(e,"xAxis",t,r)},$se=(e,t,n)=>{var r=It(e);return r==="horizontal"?I9(e,"xAxis",t):I9(e,"yAxis",n)};function Bse(e){return e.stackId!=null&&e.dataKey!=null}var zse=(e,t,n)=>{var r={},i=e.filter(Bse),a=e.filter(c=>c.stackId==null),o=i.reduce((c,l)=>(c[l.stackId]||(c[l.stackId]=[]),c[l.stackId].push(l),c),r),s=Object.entries(o).map(c=>{var[l,d]=c,h=d.map(m=>m.dataKey),g=I5(t,n,d[0].barSize);return{stackId:l,dataKeys:h,barSize:g}}),u=a.map(c=>{var l=[c.dataKey].filter(h=>h!=null),d=I5(t,n,c.barSize);return{stackId:void 0,dataKeys:l,barSize:d}});return[...s,...u]},Fse=se([Nse,qte,$se],zse),Wse=(e,t,n,r,i)=>{var a,o,s=It(e),u=Ek(e),{maxBarSize:c}=i,l=Rt(c)?u:c,d,h;return s==="horizontal"?(d=ui(e,"xAxis",t,r),h=Qi(e,"xAxis",t,r)):(d=ui(e,"yAxis",n,r),h=Qi(e,"yAxis",n,r)),(a=(o=Su(d,h,!0))!==null&&o!==void 0?o:l)!==null&&a!==void 0?a:0},JR=(e,t,n,r)=>{var i=It(e),a,o;return i==="horizontal"?(a=ui(e,"xAxis",t,r),o=Qi(e,"xAxis",t,r)):(a=ui(e,"yAxis",n,r),o=Qi(e,"yAxis",n,r)),Su(a,o)};function qse(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=zr(e,n,0,!0),s,u=[];if(lr(r[0].barSize)){var c=!1,l=n/a,d=r.reduce((b,_)=>b+(_.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&l>0&&(c=!0,l*=.9,d=a*l);var h=(n-d)/2>>0,g={offset:h-o,size:0};s=r.reduce((b,_)=>{var E,S={stackId:_.stackId,dataKeys:_.dataKeys,position:{offset:g.offset+g.size+o,size:c?l:(E=_.barSize)!==null&&E!==void 0?E:0}},A=[...b,S];return g=A[A.length-1].position,A},u)}else{var m=zr(t,n,0,!0);n-2*m-(a-1)*o<=0&&(o=0);var y=(n-2*m-(a-1)*o)/a;y>1&&(y>>=0);var v=lr(i)?Math.min(y,i):y;s=r.reduce((b,_,E)=>[...b,{stackId:_.stackId,dataKeys:_.dataKeys,position:{offset:m+(y+o)*E+(y-v)/2,size:v}}],u)}return s}}var Vse=(e,t,n,r,i,a,o)=>{var s=Rt(o)?t:o,u=qse(n,r,i!==a?i:a,e,s);return i!==a&&u!=null&&(u=u.map(c=>jp(jp({},c),{},{position:jp(jp({},c.position),{},{offset:c.position.offset-i/2})}))),u},Hse=se([Fse,Ek,Wte,Sk,Wse,JR,Ise],Vse),Use=(e,t,n,r)=>ui(e,"xAxis",t,r),Gse=(e,t,n,r)=>ui(e,"yAxis",n,r),Kse=(e,t,n,r)=>Qi(e,"xAxis",t,r),Yse=(e,t,n,r)=>Qi(e,"yAxis",n,r),Xse=se([Hse,oS],(e,t)=>{if(e!=null){var n=e.find(r=>r.stackId===t.stackId&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),Zse=(e,t)=>{if(!(!e||t?.dataKey==null)){var{stackId:n}=t;if(n!=null){var r=e[n];if(r){var{stackedData:i}=r;if(i){var a=i.find(o=>o.key===t.dataKey);return a}}}}},Jse=se([Ml,oS],(e,t)=>{if(e.some(n=>n.type==="bar"&&t.dataKey===n.dataKey&&t.stackId===n.stackId&&t.stackId===n.stackId))return t}),Qse=se([Lse,oS],Zse),eue=se([Hn,Use,Gse,Kse,Yse,Xse,It,th,JR,Qse,Jse,Dse],(e,t,n,r,i,a,o,s,u,c,l,d)=>{var{chartData:h,dataStartIndex:g,dataEndIndex:m}=s;if(!(l==null||a==null||o!=="horizontal"&&o!=="vertical"||t==null||n==null||r==null||i==null||u==null)){var{data:y}=l,v;if(y!=null&&y.length>0?v=y:v=h?.slice(g,m+1),v!=null)return Tse({layout:o,barSettings:l,pos:a,bandSize:u,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,stackedData:c,displayedData:v,offset:e,cells:d})}}),QR=e=>{var{chartData:t}=e,n=en(),r=Un();return M.useEffect(()=>r?()=>{}:(n(V9(t)),()=>{n(V9(void 0))}),[t,n,r]),null},D5={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},eI=ea({name:"brush",initialState:D5,reducers:{setBrushSettings(e,t){return t.payload==null?D5:t.payload}}}),{setBrushSettings:aOe}=eI.actions,tue=eI.reducer;function N5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N5(Object(n),!0).forEach(function(r){tI(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tI(e,t,n){return(t=nue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nue(e){var t=rue(e,"string");return typeof t=="symbol"?t:t+""}function rue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iue=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},aue=e=>{var{x1:t,y1:n,x2:r,y2:i}=e;return iue({x:t,y:n},{x:r,y:i})};class om{static create(t){return new om(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}tI(om,"EPS",1e-4);var nI=e=>{var t=Object.keys(e).reduce((n,r)=>Mp(Mp({},n),{},{[r]:om.create(e[r])}),{});return Mp(Mp({},t),{},{apply(n){var{bandAware:r,position:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.fromEntries(Object.entries(n).map(a=>{var[o,s]=a;return[o,t[o].apply(s,{bandAware:r,position:i})]}))},isInRange(n){return Object.keys(n).every(r=>t[r].isInRange(n[r]))}})};function oue(e){return(e%180+180)%180}var sue=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=oue(i),o=a*Math.PI/180,s=Math.atan(r/n),u=o>s&&o<Math.PI-s?r/Math.sin(o):n/Math.cos(o);return Math.abs(u)},uue={dots:[],areas:[],lines:[]},rI=ea({name:"referenceElements",initialState:uue,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Co(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Co(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Co(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:cue,removeDot:lue,addArea:oOe,removeArea:sOe,addLine:fue,removeLine:due}=rI.actions,hue=rI.reducer,iI=M.createContext(void 0),pue=e=>{var{children:t}=e,[n]=M.useState("".concat(ko("recharts"),"-clip")),r=nm();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return B.createElement(iI.Provider,{value:n},B.createElement("defs",null,B.createElement("clipPath",{id:n},B.createElement("rect",{x:i,y:a,height:s,width:o}))),t)},aI=()=>M.useContext(iI);function L5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L5(Object(n),!0).forEach(function(r){sS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sS(e,t,n){return(t=gue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gue(e){var t=vue(e,"string");return typeof t=="symbol"?t:t+""}function vue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wx(){return wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wx.apply(null,arguments)}var mue=(e,t)=>{var n;return B.isValidElement(e)?n=B.cloneElement(e,t):typeof e=="function"?n=e(t):n=B.createElement("line",wx({},t,{className:"recharts-reference-line-line"})),n},yue=(e,t,n,r,i,a,o,s,u)=>{var{x:c,y:l,width:d,height:h}=i;if(n){var{y:g}=u,m=e.y.apply(g,{position:a});if(Ar(m)||u.ifOverflow==="discard"&&!e.y.isInRange(m))return null;var y=[{x:c+d,y:m},{x:c,y:m}];return s==="left"?y.reverse():y}if(t){var{x:v}=u,b=e.x.apply(v,{position:a});if(Ar(b)||u.ifOverflow==="discard"&&!e.x.isInRange(b))return null;var _=[{x:b,y:l+h},{x:b,y:l}];return o==="top"?_.reverse():_}if(r){var{segment:E}=u,S=E.map(A=>e.apply(A,{position:a}));return u.ifOverflow==="discard"&&S.some(A=>!e.isInRange(A))?null:S}return null};function bue(e){var t=en();return M.useEffect(()=>(t(fue(e)),()=>{t(due(e))})),null}function wue(e){var{x:t,y:n,segment:r,xAxisId:i,yAxisId:a,shape:o,className:s,ifOverflow:u}=e,c=Un(),l=aI(),d=ke(I=>Ga(I,i)),h=ke(I=>Vo(I,a)),g=ke(I=>za(I,"xAxis",i,c)),m=ke(I=>za(I,"yAxis",a,c)),y=p0(),v=si(t),b=si(n);if(!l||!y||d==null||h==null||g==null||m==null)return null;var _=nI({x:g,y:m}),E=r&&r.length===2,S=yue(_,v,b,E,y,e.position,d.orientation,h.orientation,e);if(!S)return null;var[{x:A,y:O},{x:P,y:j}]=S,$=u==="hidden"?"url(#".concat(l,")"):void 0,z=$5($5({clipPath:$},it(e,!0)),{},{x1:A,y1:O,x2:P,y2:j});return B.createElement(Vt,{className:Ot("recharts-reference-line",s)},mue(o,z),Rr.renderCallByParent(e,aue({x1:A,y1:O,x2:P,y2:j})))}function xue(e){return B.createElement(B.Fragment,null,B.createElement(bue,{yAxisId:e.yAxisId,xAxisId:e.xAxisId,ifOverflow:e.ifOverflow,x:e.x,y:e.y}),B.createElement(wue,e))}class uS extends M.Component{render(){return B.createElement(xue,this.props)}}sS(uS,"displayName","ReferenceLine");sS(uS,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function B5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B5(Object(n),!0).forEach(function(r){cS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cS(e,t,n){return(t=_ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ue(e){var t=Eue(e,"string");return typeof t=="symbol"?t:t+""}function Eue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xx.apply(null,arguments)}var Sue=(e,t,n,r,i)=>{var a=si(e),o=si(t),s=Un(),u=ke(h=>za(h,"xAxis",n,s)),c=ke(h=>za(h,"yAxis",r,s));if(!a||!o||u==null||c==null)return null;var l=nI({x:u,y:c}),d=l.apply({x:e,y:t},{bandAware:!0});return i==="discard"&&!l.isInRange(d)?null:d};function Aue(e){var t=en();return M.useEffect(()=>(t(cue(e)),()=>{t(lue(e))})),null}var Oue=(e,t)=>{var n;return B.isValidElement(e)?n=B.cloneElement(e,t):typeof e=="function"?n=e(t):n=B.createElement(X0,xx({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n};function Tue(e){var{x:t,y:n,r}=e,i=aI(),a=Sue(t,n,e.xAxisId,e.yAxisId,e.ifOverflow);if(!a)return null;var{x:o,y:s}=a,{shape:u,className:c,ifOverflow:l}=e,d=l==="hidden"?"url(#".concat(i,")"):void 0,h=z5(z5({clipPath:d},it(e,!0)),{},{cx:o,cy:s});return B.createElement(Vt,{className:Ot("recharts-reference-dot",c)},Oue(u,h),Rr.renderCallByParent(e,{x:o-r,y:s-r,width:2*r,height:2*r}))}function Pue(e){var{x:t,y:n,r,ifOverflow:i,yAxisId:a,xAxisId:o}=e;return B.createElement(B.Fragment,null,B.createElement(Aue,{y:n,x:t,r,yAxisId:a,xAxisId:o,ifOverflow:i}),B.createElement(Tue,e))}class lS extends M.Component{render(){return B.createElement(Pue,this.props)}}cS(lS,"displayName","ReferenceDot");cS(lS,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});function xb(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function oI(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Cue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return sue(r,n)}function jue(e,t,n){var r=n==="width",{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function tv(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function Mue(e,t){return oI(e,t+1)}function kue(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,u=0,c=1,l=o,d=function(){var m=r?.[u];if(m===void 0)return{v:oI(r,c)};var y=u,v,b=()=>(v===void 0&&(v=n(m,y)),v),_=m.coordinate,E=u===0||tv(e,_,b,l,s);E||(u=0,l=o,c+=1),E&&(l=_+e*(b()/2+i),u+=c)},h;c<=a.length;)if(h=d(),h)return h.v;return[]}function F5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F5(Object(n),!0).forEach(function(r){Rue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rue(e,t,n){return(t=Iue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iue(e){var t=Due(e,"string");return typeof t=="symbol"?t:t+""}function Due(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nue(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:u}=t,c=function(h){var g=a[h],m,y=()=>(m===void 0&&(m=n(g,h)),m);if(h===o-1){var v=e*(g.coordinate+e*y()/2-u);a[h]=g=xr(xr({},g),{},{tickCoord:v>0?g.coordinate-v*e:g.coordinate})}else a[h]=g=xr(xr({},g),{},{tickCoord:g.coordinate});var b=tv(e,g.tickCoord,y,s,u);b&&(u=g.tickCoord-e*(y()/2+i),a[h]=xr(xr({},g),{},{isShow:!0}))},l=o-1;l>=0;l--)c(l);return a}function Lue(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:u,end:c}=t;if(a){var l=r[s-1],d=n(l,s-1),h=e*(l.coordinate+e*d/2-c);o[s-1]=l=xr(xr({},l),{},{tickCoord:h>0?l.coordinate-h*e:l.coordinate});var g=tv(e,l.tickCoord,()=>d,u,c);g&&(c=l.tickCoord-e*(d/2+i),o[s-1]=xr(xr({},l),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(_){var E=o[_],S,A=()=>(S===void 0&&(S=n(E,_)),S);if(_===0){var O=e*(E.coordinate-e*A()/2-u);o[_]=E=xr(xr({},E),{},{tickCoord:O<0?E.coordinate-O*e:E.coordinate})}else o[_]=E=xr(xr({},E),{},{tickCoord:E.coordinate});var P=tv(e,E.tickCoord,A,u,c);P&&(u=E.tickCoord+e*(A()/2+i),o[_]=xr(xr({},E),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function fS(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:u,tickFormatter:c,unit:l,angle:d}=e;if(!i||!i.length||!r)return[];if(Me(u)||Wo.isSsr){var h;return(h=Mue(i,Me(u)?u:0))!==null&&h!==void 0?h:[]}var g=[],m=s==="top"||s==="bottom"?"width":"height",y=l&&m==="width"?nd(l,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=(E,S)=>{var A=typeof c=="function"?c(E.value,S):E.value;return m==="width"?Cue(nd(A,{fontSize:t,letterSpacing:n}),y,d):nd(A,{fontSize:t,letterSpacing:n})[m]},b=i.length>=2?Xn(i[1].coordinate-i[0].coordinate):1,_=jue(a,b,m);return u==="equidistantPreserveStart"?kue(b,_,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?g=Lue(b,_,v,i,o,u==="preserveStartEnd"):g=Nue(b,_,v,i,o),g.filter(E=>E.isShow))}var $ue=["viewBox"],Bue=["viewBox"];function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nc.apply(null,arguments)}function W5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W5(Object(n),!0).forEach(function(r){dS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q5(e,t){if(e==null)return{};var n,r,i=zue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dS(e,t,n){return(t=Fue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fue(e){var t=Wue(e,"string");return typeof t=="symbol"?t:t+""}function Wue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Is extends M.Component{constructor(t){super(t),this.tickRefs=B.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,n){var{viewBox:r}=t,i=q5(t,$ue),a=this.props,{viewBox:o}=a,s=q5(a,Bue);return!xb(r,o)||!xb(i,s)||!xb(n,this.state)}getTickLineCoord(t){var{x:n,y:r,width:i,height:a,orientation:o,tickSize:s,mirror:u,tickMargin:c}=this.props,l,d,h,g,m,y,v=u?-1:1,b=t.tickSize||s,_=Me(t.tickCoord)?t.tickCoord:t.coordinate;switch(o){case"top":l=d=t.coordinate,g=r+ +!u*a,h=g-v*b,y=h-v*c,m=_;break;case"left":h=g=t.coordinate,d=n+ +!u*i,l=d-v*b,m=l-v*c,y=_;break;case"right":h=g=t.coordinate,d=n+ +u*i,l=d+v*b,m=l+v*c,y=_;break;default:l=d=t.coordinate,g=r+ +u*a,h=g+v*b,y=h+v*c,m=_;break}return{line:{x1:l,y1:h,x2:d,y2:g},tick:{x:m,y}}}getTickTextAnchor(){var{orientation:t,mirror:n}=this.props,r;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle";break}return r}getTickVerticalAnchor(){var{orientation:t,mirror:n}=this.props;switch(t){case"left":case"right":return"middle";case"top":return n?"start":"end";default:return n?"end":"start"}}renderAxisLine(){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s}=this.props,u=Fn(Fn(Fn({},it(this.props,!1)),it(s,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var c=+(a==="top"&&!o||a==="bottom"&&o);u=Fn(Fn({},u),{},{x1:t,y1:n+c*i,x2:t+r,y2:n+c*i})}else{var l=+(a==="left"&&!o||a==="right"&&o);u=Fn(Fn({},u),{},{x1:t+l*r,y1:n,x2:t+l*r,y2:n+i})}return B.createElement("line",Nc({},u,{className:Ot("recharts-cartesian-axis-line",Es(s,"className"))}))}static renderTickItem(t,n,r){var i,a=Ot(n.className,"recharts-cartesian-axis-tick-value");if(B.isValidElement(t))i=B.cloneElement(t,Fn(Fn({},n),{},{className:a}));else if(typeof t=="function")i=t(Fn(Fn({},n),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=Ot(o,t.className)),i=B.createElement(Y0,Nc({},n,{className:o}),r)}return i}renderTicks(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:a,tick:o,tickFormatter:s,unit:u}=this.props,c=fS(Fn(Fn({},this.props),{},{ticks:r}),t,n),l=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=it(this.props,!1),g=it(o,!1),m=Fn(Fn({},h),{},{fill:"none"},it(i,!1)),y=c.map((v,b)=>{var{line:_,tick:E}=this.getTickLineCoord(v),S=Fn(Fn(Fn(Fn({textAnchor:l,verticalAnchor:d},h),{},{stroke:"none",fill:a},g),E),{},{index:b,payload:v,visibleTicksCount:c.length,tickFormatter:s});return B.createElement(Vt,Nc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(v.value,"-").concat(v.coordinate,"-").concat(v.tickCoord)},_l(this.props,v,b)),i&&B.createElement("line",Nc({},m,_,{className:Ot("recharts-cartesian-axis-tick-line",Es(i,"className"))})),o&&Is.renderTickItem(o,S,"".concat(typeof s=="function"?s(v.value,b):v.value).concat(u||"")))});return y.length>0?B.createElement("g",{className:"recharts-cartesian-axis-ticks"},y):null}render(){var{axisLine:t,width:n,height:r,className:i,hide:a}=this.props;if(a)return null;var{ticks:o}=this.props;return n!=null&&n<=0||r!=null&&r<=0?null:B.createElement(Vt,{className:Ot("recharts-cartesian-axis",i),ref:s=>{if(s){var u=s.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(u);var c=u[0];if(c){var l=window.getComputedStyle(c).fontSize,d=window.getComputedStyle(c).letterSpacing;(l!==this.state.fontSize||d!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(c).fontSize,letterSpacing:window.getComputedStyle(c).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,o),Rr.renderCallByParent(this.props))}}dS(Is,"displayName","CartesianAxis");dS(Is,"defaultProps",{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"});var que=["x1","y1","x2","y2","key"],Vue=["offset"],Hue=["xAxisId","yAxisId"],Uue=["xAxisId","yAxisId"];function V5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V5(Object(n),!0).forEach(function(r){Gue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gue(e,t,n){return(t=Kue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kue(e){var t=Yue(e,"string");return typeof t=="symbol"?t:t+""}function Yue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ou(){return ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ou.apply(null,arguments)}function nv(e,t){if(e==null)return{};var n,r,i=Xue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zue=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return B.createElement("rect",{x:r,y:i,ry:s,width:a,height:o,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function sI(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:a,y2:o,key:s}=t,u=nv(t,que),c=it(u,!1),{offset:l}=c,d=nv(c,Vue);n=B.createElement("line",ou({},d,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:s}))}return n}function Jue(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=nv(e,Hue),u=i.map((c,l)=>{var d=Er(Er({},s),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(l),index:l});return sI(r,d)});return B.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function Que(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=nv(e,Uue),u=i.map((c,l)=>{var d=Er(Er({},s),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(l),index:l});return sI(r,d)});return B.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function ece(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:u=!0}=e;if(!u||!t||!t.length)return null;var c=s.map(d=>Math.round(d+i-i)).sort((d,h)=>d-h);i!==c[0]&&c.unshift(0);var l=c.map((d,h)=>{var g=!c[h+1],m=g?i+o-d:c[h+1]-d;if(m<=0)return null;var y=h%t.length;return B.createElement("rect",{key:"react-".concat(h),y:d,x:r,height:m,width:a,stroke:"none",fill:t[y],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function tce(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:u}=e;if(!t||!n||!n.length)return null;var c=u.map(d=>Math.round(d+i-i)).sort((d,h)=>d-h);i!==c[0]&&c.unshift(0);var l=c.map((d,h)=>{var g=!c[h+1],m=g?i+o-d:c[h+1]-d;if(m<=0)return null;var y=h%n.length;return B.createElement("rect",{key:"react-".concat(h),x:d,y:a,width:m,height:s,stroke:"none",fill:n[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return B.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var nce=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return d7(fS(Er(Er(Er({},Is.defaultProps),n),{},{ticks:h7(n),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},rce=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return d7(fS(Er(Er(Er({},Is.defaultProps),n),{},{ticks:h7(n),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},ice={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function Hu(e){var t=C2(),n=j2(),r=v7(),i=Er(Er({},li(e,ice)),{},{x:Me(e.x)?e.x:r.left,y:Me(e.y)?e.y:r.top,width:Me(e.width)?e.width:r.width,height:Me(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:u,width:c,height:l,syncWithTicks:d,horizontalValues:h,verticalValues:g}=i,m=Un(),y=ke($=>D9($,"xAxis",a,m)),v=ke($=>D9($,"yAxis",o,m));if(!Me(c)||c<=0||!Me(l)||l<=0||!Me(s)||s!==+s||!Me(u)||u!==+u)return null;var b=i.verticalCoordinatesGenerator||nce,_=i.horizontalCoordinatesGenerator||rce,{horizontalPoints:E,verticalPoints:S}=i;if((!E||!E.length)&&typeof _=="function"){var A=h&&h.length,O=_({yAxis:v?Er(Er({},v),{},{ticks:A?h:v.ticks}):void 0,width:t,height:n,offset:r},A?!0:d);td(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(E=O)}if((!S||!S.length)&&typeof b=="function"){var P=g&&g.length,j=b({xAxis:y?Er(Er({},y),{},{ticks:P?g:y.ticks}):void 0,width:t,height:n,offset:r},P?!0:d);td(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof j,"]")),Array.isArray(j)&&(S=j)}return B.createElement("g",{className:"recharts-cartesian-grid"},B.createElement(Zue,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),B.createElement(ece,ou({},i,{horizontalPoints:E})),B.createElement(tce,ou({},i,{verticalPoints:S})),B.createElement(Jue,ou({},i,{offset:r,horizontalPoints:E,xAxis:y,yAxis:v})),B.createElement(Que,ou({},i,{offset:r,verticalPoints:S,xAxis:y,yAxis:v})))}Hu.displayName="CartesianGrid";var uI=(e,t,n,r)=>ui(e,"xAxis",t,r),cI=(e,t,n,r)=>Qi(e,"xAxis",t,r),lI=(e,t,n,r)=>ui(e,"yAxis",n,r),fI=(e,t,n,r)=>Qi(e,"yAxis",n,r),ace=se([It,uI,lI,cI,fI],(e,t,n,r,i)=>Ha(e,"xAxis")?Su(t,r,!1):Su(n,i,!1)),oce=(e,t,n,r,i)=>i,sce=se([Ml,oce],(e,t)=>{if(e.some(n=>n.type==="line"&&t.dataKey===n.dataKey&&t.data===n.data))return t}),uce=se([It,uI,lI,cI,fI,sce,ace,th],(e,t,n,r,i,a,o,s)=>{var{chartData:u,dataStartIndex:c,dataEndIndex:l}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null)){var{dataKey:d,data:h}=a,g;if(h!=null&&h.length>0?g=h:g=u?.slice(c,l+1),g!=null)return Tce({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:g})}}),cce=["type","layout","connectNulls","needClip"],lce=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId"];function dI(e,t){if(e==null)return{};var n,r,i=fce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function H5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H5(Object(n),!0).forEach(function(r){sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sm(e,t,n){return(t=dce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dce(e){var t=hce(e,"string");return typeof t=="symbol"?t:t+""}function hce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fl.apply(null,arguments)}var pce=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ua(n,t),payload:e}]};function gce(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ua(o,t),hide:s,type:e.tooltipType,color:e.stroke,unit:u}}}var hI=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function vce(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var mce=(e,t,n)=>{var r=n.reduce((d,h)=>d+h);if(!r)return hI(t,e);for(var i=Math.floor(e/r),a=e%r,o=t-e,s=[],u=0,c=0;u<n.length;c+=n[u],++u)if(c+n[u]>a){s=[...n.slice(0,u),a-c];break}var l=s.length%2===0?[0,o]:[o];return[...vce(n,i),...s,...l].map(d=>"".concat(d,"px")).join(", ")};function yce(e,t){var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Ot("recharts-line-dot",typeof e!="boolean"?e.className:"");n=B.createElement(X0,fl({},t,{className:r}))}return n}function bce(e,t){return e==null?!1:t?!0:e.length===1}function wce(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r;if(!bce(n,i))return null;var s=Jv(i),u=it(r,!1),c=it(i,!0),l=n.map((h,g)=>{var m=fa(fa(fa({key:"dot-".concat(g),r:3},u),c),{},{index:g,cx:h.x,cy:h.y,dataKey:a,value:h.value,payload:h.payload,points:n});return yce(i,m)}),d={clipPath:o?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):null};return B.createElement(Vt,fl({className:"recharts-line-dots",key:"dots"},d),l)}function _x(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a,showLabels:o}=e,{type:s,layout:u,connectNulls:c,needClip:l}=a,d=dI(a,cce),h=fa(fa({},it(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:l?"url(#clipPath-".concat(t,")"):null,points:r,type:s,layout:u,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return B.createElement(B.Fragment,null,r?.length>1&&B.createElement(pu,fl({},h,{pathRef:n})),B.createElement(wce,{points:r,clipPathId:t,props:a}),o&&Ia.renderCallByParent(a,r))}function xce(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function _ce(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:d,animateNewValues:h,width:g,height:m,onAnimationEnd:y,onAnimationStart:v}=n,b=i.current,_=lh(n,"recharts-line-"),[E,S]=M.useState(!1),A=M.useCallback(()=>{typeof y=="function"&&y(),S(!1)},[y]),O=M.useCallback(()=>{typeof v=="function"&&v(),S(!0)},[v]),P=xce(r.current),j=a.current;return B.createElement(Na,{begin:c,duration:l,isActive:u,easing:d,from:{t:0},to:{t:1},onAnimationEnd:A,onAnimationStart:O,key:_},$=>{var{t:z}=$,I=cr(j,P+j),H=Math.min(I(z),P),D;if(s){var C="".concat(s).split(/[,\s]+/gim).map(V=>parseFloat(V));D=mce(H,P,C)}else D=hI(P,H);if(b){var L=b.length/o.length,N=z===1?o:o.map((V,Z)=>{var K=Math.floor(Z*L);if(b[K]){var R=b[K],W=cr(R.x,V.x),U=cr(R.y,V.y);return fa(fa({},V),{},{x:W(z),y:U(z)})}if(h){var Y=cr(g*2,V.x),ae=cr(m/2,V.y);return fa(fa({},V),{},{x:Y(z),y:ae(z)})}return fa(fa({},V),{},{x:V.x,y:V.y})});return i.current=N,B.createElement(_x,{props:n,points:N,clipPathId:t,pathRef:r,showLabels:!E,strokeDasharray:D})}return z>0&&P>0&&(i.current=o,a.current=H),B.createElement(_x,{props:n,points:o,clipPathId:t,pathRef:r,showLabels:!E,strokeDasharray:D})})}function Ece(e){var{clipPathId:t,props:n}=e,{points:r,isAnimationActive:i}=n,a=M.useRef(null),o=M.useRef(0),s=M.useRef(null),u=a.current;return i&&r&&r.length&&u!==r?B.createElement(_ce,{props:n,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:o,pathRef:s}):B.createElement(_x,{props:n,points:r,clipPathId:t,pathRef:s,showLabels:!0})}var Sce=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:$t(e.payload,t)});class Ace extends M.Component{constructor(){super(...arguments),sm(this,"id",ko("recharts-line-"))}render(){var t,{hide:n,dot:r,points:i,className:a,xAxisId:o,yAxisId:s,top:u,left:c,width:l,height:d,id:h,needClip:g,layout:m}=this.props;if(n)return null;var y=Ot("recharts-line",a),v=Rt(h)?this.id:h,{r:b=3,strokeWidth:_=2}=(t=it(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},E=Jv(r),S=b*2+_;return B.createElement(B.Fragment,null,B.createElement(Vt,{className:y},g&&B.createElement("defs",null,B.createElement(im,{clipPathId:v,xAxisId:o,yAxisId:s}),!E&&B.createElement("clipPath",{id:"clipPath-dots-".concat(v)},B.createElement("rect",{x:c-S/2,y:u-S/2,width:l+S,height:d+S}))),B.createElement(Ece,{props:this.props,clipPathId:v}),B.createElement(HR,{direction:m==="horizontal"?"y":"x"},B.createElement(iS,{xAxisId:o,yAxisId:s,data:i,dataPointFormatter:Sce,errorBarOffset:0},this.props.children))),B.createElement(mx,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var pI={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Wo.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function Oce(e){var t=li(e,pI),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,hide:c,isAnimationActive:l,label:d,legendType:h,xAxisId:g,yAxisId:m}=t,y=dI(t,lce),{needClip:v}=fh(g,m),{height:b,width:_,x:E,y:S}=nm(),A=Zd(),O=Un(),P=M.useMemo(()=>({dataKey:e.dataKey,data:e.data}),[e.dataKey,e.data]),j=ke($=>uce($,g,m,O,P));return A!=="horizontal"&&A!=="vertical"?null:B.createElement(Ace,fl({},y,{connectNulls:s,dot:u,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:l,hide:c,label:d,legendType:h,xAxisId:g,yAxisId:m,points:j,layout:A,height:b,width:_,left:E,top:S,needClip:v}))}function Tce(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:u}=e;return u.map((c,l)=>{var d=$t(c,o);return t==="horizontal"?{x:Jc({axis:n,ticks:i,bandSize:s,entry:c,index:l}),y:Rt(d)?null:r.scale(d),value:d,payload:c}:{x:Rt(d)?null:n.scale(d),y:Jc({axis:r,ticks:a,bandSize:s,entry:c,index:l}),value:d,payload:c}})}class dh extends M.PureComponent{render(){return B.createElement(rm,{type:"line",data:this.props.data,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,dataKey:this.props.dataKey,stackId:void 0,hide:this.props.hide,barSize:void 0},B.createElement(em,{legendPayload:pce(this.props)}),B.createElement(ch,{fn:gce,args:this.props}),B.createElement(Oce,this.props))}}sm(dh,"displayName","Line");sm(dh,"defaultProps",pI);var gI=(e,t,n,r)=>ui(e,"xAxis",t,r),vI=(e,t,n,r)=>Qi(e,"xAxis",t,r),mI=(e,t,n,r)=>ui(e,"yAxis",n,r),yI=(e,t,n,r)=>Qi(e,"yAxis",n,r),Pce=se([It,gI,mI,vI,yI],(e,t,n,r,i)=>Ha(e,"xAxis")?Su(t,r,!1):Su(n,i,!1)),Cce=(e,t,n,r,i)=>{var a,o=It(e),s=Ha(o,"xAxis"),u;if(s?u=Ad(e,"yAxis",n,r):u=Ad(e,"xAxis",t,r),u!=null){var{dataKey:c,stackId:l}=i;if(l!=null){var d=(a=u[l])===null||a===void 0?void 0:a.stackedData;return d?.find(h=>h.key===c)}}},jce=(e,t,n,r,i)=>i,Mce=se([Ml,jce],(e,t)=>{if(e.some(n=>n.type==="area"&&t.dataKey===n.dataKey&&S2(t.stackId)===n.stackId&&t.data===n.data))return t}),kce=se([It,gI,mI,vI,yI,Cce,th,Pce,Mce],(e,t,n,r,i,a,o,s,u)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:d}=o;if(!(u==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:h}=u,g;if(h&&h.length>0?g=h:g=c?.slice(l,d+1),g!=null){var m=void 0;return Zce({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:l,areaSettings:u,stackedData:a,displayedData:g,chartBaseValue:m,bandSize:s})}}}),Rce=["layout","type","stroke","connectNulls","isRange"],Ice=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function bI(e,t){if(e==null)return{};var n,r,i=Dce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function U5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U5(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){return(t=Nce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nce(e){var t=Lce(e,"string");return typeof t=="symbol"?t:t+""}function Lce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;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 n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(null,arguments)}function rv(e,t){return e&&e!=="none"?e:t}var $ce=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:rv(r,i),value:Ua(n,t),payload:e}]};function Bce(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ua(o,t),hide:s,type:e.tooltipType,color:rv(r,a),unit:u}}}var zce=(e,t)=>{var n;if(B.isValidElement(e))n=B.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Ot("recharts-area-dot",typeof e!="boolean"?e.className:"");n=B.createElement(X0,ws({},t,{className:r}))}return n};function Fce(e,t){return e==null?!1:t?!0:e.length===1}function Wce(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r;if(!Fce(n,a))return null;var s=Jv(a),u=it(r,!1),c=it(a,!0),l=n.map((h,g)=>{var m=su(su(su({key:"dot-".concat(g),r:3},u),c),{},{index:g,cx:h.x,cy:h.y,dataKey:o,value:h.value,payload:h.payload,points:n});return zce(a,m)}),d={clipPath:i?"url(#clipPath-".concat(s?"":"dots-").concat(t,")"):void 0};return B.createElement(Vt,ws({className:"recharts-area-dots"},d),l)}function Ex(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a,showLabels:o}=e,{layout:s,type:u,stroke:c,connectNulls:l,isRange:d}=a,h=bI(a,Rce);return B.createElement(B.Fragment,null,t?.length>1&&B.createElement(Vt,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},B.createElement(pu,ws({},it(h,!0),{points:t,connectNulls:l,type:u,baseLine:n,layout:s,stroke:"none",className:"recharts-area-area"})),c!=="none"&&B.createElement(pu,ws({},it(a,!1),{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:t})),c!=="none"&&d&&B.createElement(pu,ws({},it(a,!1),{className:"recharts-area-curve",layout:s,type:u,connectNulls:l,fill:"none",points:n}))),B.createElement(Wce,{points:t,props:a,clipPathId:i}),o&&Ia.renderCallByParent(a,t))}function qce(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0].y,o=r[r.length-1].y;if(!lr(a)||!lr(o))return null;var s=t*Math.abs(a-o),u=Math.max(...r.map(c=>c.x||0));return Me(n)?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(...n.map(c=>c.x||0),u)),Me(u)?B.createElement("rect",{x:0,y:a<o?a:a-s,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(s)}):null}function Vce(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0].x,o=r[r.length-1].x;if(!lr(a)||!lr(o))return null;var s=t*Math.abs(a-o),u=Math.max(...r.map(c=>c.y||0));return Me(n)?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(...n.map(c=>c.y||0),u)),Me(u)?B.createElement("rect",{x:a<o?a:a-s,y:0,width:s,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}function Hce(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n==="vertical"?B.createElement(qce,{alpha:t,points:r,baseLine:i,strokeWidth:a}):B.createElement(Vce,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function Uce(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:u,animationBegin:c,animationDuration:l,animationEasing:d,onAnimationStart:h,onAnimationEnd:g}=r,m=lh(r,"recharts-area-"),[y,v]=M.useState(!0),b=M.useCallback(()=>{typeof g=="function"&&g(),v(!1)},[g]),_=M.useCallback(()=>{typeof h=="function"&&h(),v(!0)},[h]),E=i.current,S=a.current;return B.createElement(Na,{begin:c,duration:l,isActive:u,easing:d,from:{t:0},to:{t:1},onAnimationEnd:b,onAnimationStart:_,key:m},A=>{var{t:O}=A;if(E){var P=E.length/o.length,j=O===1?o:o.map((z,I)=>{var H=Math.floor(I*P);if(E[H]){var D=E[H];return su(su({},z),{},{x:hc(D.x,z.x,O),y:hc(D.y,z.y,O)})}return z}),$;return Me(s)?$=hc(S,s,O):Rt(s)||Ar(s)?$=hc(S,0,O):$=s.map((z,I)=>{var H=Math.floor(I*P);if(Array.isArray(S)&&S[H]){var D=S[H];return su(su({},z),{},{x:hc(D.x,z.x,O),y:hc(D.y,z.y,O)})}return z}),O>0&&(i.current=j,a.current=$),B.createElement(Ex,{points:j,baseLine:$,needClip:t,clipPathId:n,props:r,showLabels:!y})}return O>0&&(i.current=o,a.current=s),B.createElement(Vt,null,B.createElement("defs",null,B.createElement("clipPath",{id:"animationClipPath-".concat(n)},B.createElement(Hce,{alpha:O,points:o,baseLine:s,layout:r.layout,strokeWidth:r.strokeWidth}))),B.createElement(Vt,{clipPath:"url(#animationClipPath-".concat(n,")")},B.createElement(Ex,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r,showLabels:!0})))})}function Gce(e){var{needClip:t,clipPathId:n,props:r}=e,{points:i,baseLine:a,isAnimationActive:o}=r,s=M.useRef(null),u=M.useRef(),c=s.current,l=u.current;return o&&i&&i.length&&(c!==i||l!==a)?B.createElement(Uce,{needClip:t,clipPathId:n,props:r,previousPointsRef:s,previousBaselineRef:u}):B.createElement(Ex,{points:i,baseLine:a,needClip:t,clipPathId:n,props:r,showLabels:!0})}class Kce extends M.PureComponent{constructor(){super(...arguments),um(this,"id",ko("recharts-area-"))}render(){var t,{hide:n,dot:r,points:i,className:a,top:o,left:s,needClip:u,xAxisId:c,yAxisId:l,width:d,height:h,id:g,baseLine:m}=this.props;if(n)return null;var y=Ot("recharts-area",a),v=Rt(g)?this.id:g,{r:b=3,strokeWidth:_=2}=(t=it(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},E=Jv(r),S=b*2+_;return B.createElement(B.Fragment,null,B.createElement(Vt,{className:y},u&&B.createElement("defs",null,B.createElement(im,{clipPathId:v,xAxisId:c,yAxisId:l}),!E&&B.createElement("clipPath",{id:"clipPath-dots-".concat(v)},B.createElement("rect",{x:s-S/2,y:o-S/2,width:d+S,height:h+S}))),B.createElement(Gce,{needClip:u,clipPathId:v,props:this.props})),B.createElement(mx,{points:i,mainColor:rv(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}),this.props.isRange&&Array.isArray(m)&&B.createElement(mx,{points:m,mainColor:rv(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}))}}var wI={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:!Wo.isSsr,legendType:"line",stroke:"#3182bd",xAxisId:0,yAxisId:0};function Yce(e){var t,n=li(e,wI),{activeDot:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:u,fill:c,fillOpacity:l,hide:d,isAnimationActive:h,legendType:g,stroke:m,xAxisId:y,yAxisId:v}=n,b=bI(n,Ice),_=Zd(),E=bR(),{needClip:S}=fh(y,v),A=Un(),O=M.useMemo(()=>({baseValue:e.baseValue,stackId:e.stackId,connectNulls:s,data:e.data,dataKey:e.dataKey}),[e.baseValue,e.stackId,s,e.data,e.dataKey]),{points:P,isRange:j,baseLine:$}=(t=ke(C=>kce(C,y,v,A,O)))!==null&&t!==void 0?t:{},{height:z,width:I,x:H,y:D}=nm();return _!=="horizontal"&&_!=="vertical"||E!=="AreaChart"&&E!=="ComposedChart"?null:B.createElement(Kce,ws({},b,{activeDot:r,animationBegin:i,animationDuration:a,animationEasing:o,baseLine:$,connectNulls:s,dot:u,fill:c,fillOpacity:l,height:z,hide:d,layout:_,isAnimationActive:h,isRange:j,legendType:g,needClip:S,points:P,stroke:m,width:I,left:H,top:D,xAxisId:y,yAxisId:v}))}var Xce=(e,t,n,r,i)=>{var a=n??t;if(Me(a))return a;var o=e==="horizontal"?i:r,s=o.scale.domain();if(o.type==="number"){var u=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return a==="dataMin"?c:a==="dataMax"||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return a==="dataMin"?s[0]:a==="dataMax"?s[1]:s[0]};function Zce(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:u,displayedData:c,dataStartIndex:l,xAxisTicks:d,yAxisTicks:h,bandSize:g}=e,m=i&&i.length,y=Xce(a,o,n,s,u),v=a==="horizontal",b=!1,_=c.map((S,A)=>{var O;m?O=i[l+A]:(O=$t(S,r),Array.isArray(O)?b=!0:O=[y,O]);var P=O[1]==null||m&&!t&&$t(S,r)==null;return v?{x:Jc({axis:s,ticks:d,bandSize:g,entry:S,index:A}),y:P?null:u.scale(O[1]),value:O,payload:S}:{x:P?null:s.scale(O[1]),y:Jc({axis:u,ticks:h,bandSize:g,entry:S,index:A}),value:O,payload:S}}),E;return m||b?E=_.map(S=>{var A=Array.isArray(S.value)?S.value[0]:null;return v?{x:S.x,y:A!=null&&S.y!=null?u.scale(A):null}:{x:A!=null?s.scale(A):null,y:S.y}}):E=v?u.scale(y):s.scale(y),{points:_,baseLine:E,isRange:b}}class $l extends M.PureComponent{render(){return B.createElement(rm,{type:"area",data:this.props.data,dataKey:this.props.dataKey,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:0,stackId:this.props.stackId,hide:this.props.hide,barSize:void 0},B.createElement(em,{legendPayload:$ce(this.props)}),B.createElement(ch,{fn:Bce,args:this.props}),B.createElement(Yce,this.props))}}um($l,"displayName","Area");um($l,"defaultProps",wI);function G5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G5(Object(n),!0).forEach(function(r){Jce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jce(e,t,n){return(t=Qce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qce(e){var t=ele(e,"string");return typeof t=="symbol"?t:t+""}function ele(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tle={xAxis:{},yAxis:{},zAxis:{}},xI=ea({name:"cartesianAxis",initialState:tle,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=K5(K5({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:nle,removeXAxis:rle,addYAxis:ile,removeYAxis:ale,addZAxis:ole,removeZAxis:sle,updateYAxisWidth:ule}=xI.actions,cle=xI.reducer;function _I(e,t,n){return(t=lle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lle(e){var t=fle(e,"string");return typeof t=="symbol"?t:t+""}function fle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dle(e){var t=en();return M.useEffect(()=>(t(ole(e)),()=>{t(sle(e))}),[e,t]),null}class hS extends M.Component{render(){return B.createElement(dle,{domain:this.props.domain,id:this.props.zAxisId,dataKey:this.props.dataKey,name:this.props.name,unit:this.props.unit,range:this.props.range,scale:this.props.scale,type:this.props.type,allowDuplicatedCategory:ms.allowDuplicatedCategory,allowDataOverflow:ms.allowDataOverflow,reversed:ms.reversed,includeHidden:ms.includeHidden})}}_I(hS,"displayName","ZAxis");_I(hS,"defaultProps",{zAxisId:0,range:ms.range,scale:ms.scale,type:ms.type});var hle=["option","isActive"];function id(){return id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},id.apply(null,arguments)}function ple(e,t){if(e==null)return{};var n,r,i=gle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vle(e){var{option:t,isActive:n}=e,r=ple(e,hle);return typeof t=="string"?B.createElement(ev,id({option:B.createElement(i0,id({type:t},r)),isActive:n,shapeType:"symbols"},r)):B.createElement(ev,id({option:t,isActive:n,shapeType:"symbols"},r))}var mle=(e,t,n,r,i,a,o)=>ui(e,"xAxis",t,o),yle=(e,t,n,r,i,a,o)=>Qi(e,"xAxis",t,o),ble=(e,t,n,r,i,a,o)=>ui(e,"yAxis",n,o),wle=(e,t,n,r,i,a,o)=>Qi(e,"yAxis",n,o),xle=(e,t,n,r)=>Bne(e,"zAxis",r,!1),_le=(e,t,n,r,i)=>i,Ele=(e,t,n,r,i,a)=>a,Sle=(e,t,n,r,i,a,o)=>th(e,t,n,o),Ale=se([Ml,_le],(e,t)=>{if(e.some(n=>n.type==="scatter"&&t.dataKey===n.dataKey&&t.data===n.data))return t}),Ole=se([Sle,mle,yle,ble,wle,xle,Ale,Ele],(e,t,n,r,i,a,o,s)=>{var{chartData:u,dataStartIndex:c,dataEndIndex:l}=e;if(o!=null){var d;if(o?.data!=null&&o.data.length>0?d=o.data:d=u?.slice(c,l+1),!(d==null||t==null||r==null||n==null||i==null||n?.length===0||i?.length===0))return Lle({displayedData:d,xAxis:t,yAxis:r,zAxis:a,scatterSettings:o,xAxisTicks:n,yAxisTicks:i,cells:s})}}),Tle=["onMouseEnter","onClick","onMouseLeave"],Ple=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function EI(e,t){if(e==null)return{};var n,r,i=Cle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(null,arguments)}function Y5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y5(Object(n),!0).forEach(function(r){pS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pS(e,t,n){return(t=jle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e){var t=Mle(e,"string");return typeof t=="symbol"?t:t+""}function Mle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kle=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:Ua(n,t),payload:e}]};function Rle(e){var{points:t,props:n}=e,{line:r,lineType:i,lineJointType:a}=n;if(!r)return null;var o=it(n,!1),s=it(r,!1),u,c;if(i==="joint")u=t.map(v=>({x:v.cx,y:v.cy}));else if(i==="fitting"){var{xmin:l,xmax:d,a:h,b:g}=mU(t),m=v=>h*v+g;u=[{x:l,y:m(l)},{x:d,y:m(d)}]}var y=oi(oi(oi({},o),{},{fill:"none",stroke:o&&o.fill},s),{},{points:u});return B.isValidElement(r)?c=B.cloneElement(r,y):typeof r=="function"?c=r(y):c=B.createElement(pu,dl({},y,{type:a})),B.createElement(Vt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},c)}function SI(e){var{points:t,showLabels:n,allOtherScatterProps:r}=e,{shape:i,activeShape:a,dataKey:o}=r,s=it(r,!1),u=ke(Do),{onMouseEnter:c,onClick:l,onMouseLeave:d}=r,h=EI(r,Tle),g=Z0(c,r.dataKey),m=J0(d),y=Q0(l,r.dataKey);return t==null?null:B.createElement(B.Fragment,null,B.createElement(Rle,{points:t,props:r}),t.map((v,b)=>{var _=a&&u===String(b),E=_?a:i,S=oi(oi(oi({key:"symbol-".concat(b)},s),v),{},{[T2]:b,[P2]:String(o)});return B.createElement(Vt,dl({className:"recharts-scatter-symbol"},_l(h,v,b),{onMouseEnter:g(v,b),onMouseLeave:m(v,b),onClick:y(v,b),key:"symbol-".concat(v?.cx,"-").concat(v?.cy,"-").concat(v?.size,"-").concat(b)}),B.createElement(vle,dl({option:E,isActive:_},S)))}),n&&Ia.renderCallByParent(r,t))}function Ile(e){var{previousPointsRef:t,props:n}=e,{points:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s}=n,u=t.current,c=lh(n,"recharts-scatter-"),[l,d]=M.useState(!1),h=M.useCallback(()=>{d(!1)},[]),g=M.useCallback(()=>{d(!0)},[]);return B.createElement(Na,{begin:a,duration:o,isActive:i,easing:s,from:{t:0},to:{t:1},onAnimationEnd:h,onAnimationStart:g,key:c},m=>{var{t:y}=m,v=y===1?r:r.map((b,_)=>{var E=u&&u[_];if(E){var S=cr(E.cx,b.cx),A=cr(E.cy,b.cy),O=cr(E.size,b.size);return oi(oi({},b),{},{cx:S(y),cy:A(y),size:O(y)})}var P=cr(0,b.size);return oi(oi({},b),{},{size:P(y)})});return y>0&&(t.current=v),B.createElement(Vt,null,B.createElement(SI,{points:v,allOtherScatterProps:n,showLabels:!l}))})}function Dle(e){var{points:t,isAnimationActive:n}=e,r=M.useRef(null),i=r.current;return n&&t&&t.length&&(!i||i!==t)?B.createElement(Ile,{props:e,previousPointsRef:r}):B.createElement(SI,{points:t,allOtherScatterProps:e,showLabels:!0})}function Nle(e){var{dataKey:t,points:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,tooltipType:u}=e;return{dataDefinedOnItem:n?.map(c=>c.tooltipPayload),positions:n?.map(c=>c.tooltipPosition),settings:{stroke:r,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:Ua(o,t),hide:s,type:u,color:a,unit:""}}}function Lle(e){var{displayedData:t,xAxis:n,yAxis:r,zAxis:i,scatterSettings:a,xAxisTicks:o,yAxisTicks:s,cells:u}=e,c=Rt(n.dataKey)?a.dataKey:n.dataKey,l=Rt(r.dataKey)?a.dataKey:r.dataKey,d=i&&i.dataKey,h=i?i.range:hS.defaultProps.range,g=h&&h[0],m=n.scale.bandwidth?n.scale.bandwidth():0,y=r.scale.bandwidth?r.scale.bandwidth():0;return t.map((v,b)=>{var _=$t(v,c),E=$t(v,l),S=!Rt(d)&&$t(v,d)||"-",A=[{name:Rt(n.dataKey)?a.name:n.name||n.dataKey,unit:n.unit||"",value:_,payload:v,dataKey:c,type:a.tooltipType},{name:Rt(r.dataKey)?a.name:r.name||r.dataKey,unit:r.unit||"",value:E,payload:v,dataKey:l,type:a.tooltipType}];S!=="-"&&A.push({name:i.name||i.dataKey,unit:i.unit||"",value:S,payload:v,dataKey:d,type:a.tooltipType});var O=Jc({axis:n,ticks:o,bandSize:m,entry:v,index:b,dataKey:c}),P=Jc({axis:r,ticks:s,bandSize:y,entry:v,index:b,dataKey:l}),j=S!=="-"?i.scale(S):g,$=Math.sqrt(Math.max(j,0)/Math.PI);return oi(oi({},v),{},{cx:O,cy:P,x:O-$,y:P-$,width:2*$,height:2*$,size:j,node:{x:_,y:E,z:S},tooltipPayload:A,tooltipPosition:{x:O,y:P},payload:v},u&&u[b]&&u[b].props)})}var $le=(e,t,n)=>({x:e.cx,y:e.cy,value:n==="x"?+e.node.x:+e.node.y,errorVal:$t(e,t)});function Ble(e){var t=M.useRef(ko("recharts-scatter-")),{hide:n,points:r,className:i,needClip:a,xAxisId:o,yAxisId:s,id:u,children:c}=e;if(n)return null;var l=Ot("recharts-scatter",i),d=Rt(u)?t.current:u;return B.createElement(Vt,{className:l,clipPath:a?"url(#clipPath-".concat(d,")"):null},a&&B.createElement("defs",null,B.createElement(im,{clipPathId:d,xAxisId:o,yAxisId:s})),B.createElement(iS,{xAxisId:o,yAxisId:s,data:r,dataPointFormatter:$le,errorBarOffset:0},c),B.createElement(Vt,{key:"recharts-scatter-symbols"},B.createElement(Dle,e)))}var AI={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Wo.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"};function zle(e){var t=li(e,AI),{animationBegin:n,animationDuration:r,animationEasing:i,hide:a,isAnimationActive:o,legendType:s,lineJointType:u,lineType:c,shape:l,xAxisId:d,yAxisId:h,zAxisId:g}=t,m=EI(t,Ple),{needClip:y}=fh(d,h),v=M.useMemo(()=>El(e.children,Ll),[e.children]),b=M.useMemo(()=>({name:e.name,tooltipType:e.tooltipType,data:e.data,dataKey:e.dataKey}),[e.data,e.dataKey,e.name,e.tooltipType]),_=Un(),E=ke(S=>Ole(S,d,h,g,b,v,_));return y==null?null:B.createElement(B.Fragment,null,B.createElement(ch,{fn:Nle,args:oi(oi({},e),{},{points:E})}),B.createElement(Ble,dl({},m,{xAxisId:d,yAxisId:h,zAxisId:g,lineType:c,lineJointType:u,legendType:s,shape:l,hide:a,isAnimationActive:o,animationBegin:n,animationDuration:r,animationEasing:i,points:E,needClip:y})))}class hh extends M.Component{render(){return B.createElement(rm,{type:"scatter",data:this.props.data,xAxisId:this.props.xAxisId,yAxisId:this.props.yAxisId,zAxisId:this.props.zAxisId,dataKey:this.props.dataKey,stackId:void 0,hide:this.props.hide,barSize:void 0},B.createElement(em,{legendPayload:kle(this.props)}),B.createElement(zle,this.props))}}pS(hh,"displayName","Scatter");pS(hh,"defaultProps",AI);var Fle=["children"],Wle=["dangerouslySetInnerHTML","ticks"];function OI(e,t,n){return(t=qle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qle(e){var t=Vle(e,"string");return typeof t=="symbol"?t:t+""}function Vle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sx.apply(null,arguments)}function TI(e,t){if(e==null)return{};var n,r,i=Hle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ule(e){var t=en(),n=M.useMemo(()=>{var{children:a}=e,o=TI(e,Fle);return o},[e]),r=ke(a=>Ga(a,n.id)),i=n===r;return M.useEffect(()=>(t(nle(n)),()=>{t(rle(n))}),[n,t]),i?e.children:null}var Gle=e=>{var{xAxisId:t,className:n}=e,r=ke(g7),i=Un(),a="xAxis",o=ke(g=>za(g,a,t,i)),s=ke(g=>Jk(g,a,t,i)),u=ke(g=>Kk(g,t)),c=ke(g=>Ine(g,t));if(u==null||c==null)return null;var{dangerouslySetInnerHTML:l,ticks:d}=e,h=TI(e,Wle);return B.createElement(Is,Sx({},h,{scale:o,x:c.x,y:c.y,width:u.width,height:u.height,className:Ot("recharts-".concat(a," ").concat(a),n),viewBox:r,ticks:s}))},Kle=e=>{var t,n,r,i,a;return B.createElement(Ule,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter},B.createElement(Gle,e))};class Ds extends M.Component{render(){return B.createElement(Kle,this.props)}}OI(Ds,"displayName","XAxis");OI(Ds,"defaultProps",{allowDataOverflow:bi.allowDataOverflow,allowDecimals:bi.allowDecimals,allowDuplicatedCategory:bi.allowDuplicatedCategory,height:bi.height,hide:!1,mirror:bi.mirror,orientation:bi.orientation,padding:bi.padding,reversed:bi.reversed,scale:bi.scale,tickCount:bi.tickCount,type:bi.type,xAxisId:0});var Yle=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(l=>{if(l){var d=l.getBoundingClientRect();d.width>o&&(o=d.width)}});var s=n?n.getBoundingClientRect().width:0,u=i+a,c=o+u+s+(n?r:0);return Math.round(c)}return 0},Xle=["dangerouslySetInnerHTML","ticks"];function PI(e,t,n){return(t=Zle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zle(e){var t=Jle(e,"string");return typeof t=="symbol"?t:t+""}function Jle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ax.apply(null,arguments)}function Qle(e,t){if(e==null)return{};var n,r,i=efe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function efe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tfe(e){var t=en();return M.useEffect(()=>(t(ile(e)),()=>{t(ale(e))}),[e,t]),null}var nfe=e=>{var t,{yAxisId:n,className:r,width:i,label:a}=e,o=M.useRef(null),s=M.useRef(null),u=ke(g7),c=Un(),l=en(),d="yAxis",h=ke(E=>za(E,d,n,c)),g=ke(E=>Yk(E,n)),m=ke(E=>Dne(E,n)),y=ke(E=>Jk(E,d,n,c));if(M.useLayoutEffect(()=>{var E;if(!(i!=="auto"||!g||JE(a)||M.isValidElement(a))){var S=o.current,A=S==null||(E=S.tickRefs)===null||E===void 0?void 0:E.current,{tickSize:O,tickMargin:P}=S.props,j=Yle({ticks:A,label:s.current,labelGapWithTick:5,tickSize:O,tickMargin:P});Math.round(g.width)!==Math.round(j)&&l(ule({id:n,width:j}))}},[o,o==null||(t=o.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,g?.width,g,l,a,n,i]),g==null||m==null)return null;var{dangerouslySetInnerHTML:v,ticks:b}=e,_=Qle(e,Xle);return B.createElement(Is,Ax({},_,{ref:o,labelRef:s,scale:h,x:m.x,y:m.y,width:g.width,height:g.height,className:Ot("recharts-".concat(d," ").concat(d),r),viewBox:u,ticks:y}))},rfe=e=>{var t,n,r,i,a;return B.createElement(B.Fragment,null,B.createElement(tfe,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(a=e.tick)!==null&&a!==void 0?a:!0,tickFormatter:e.tickFormatter}),B.createElement(nfe,e))},ife={allowDataOverflow:wi.allowDataOverflow,allowDecimals:wi.allowDecimals,allowDuplicatedCategory:wi.allowDuplicatedCategory,hide:!1,mirror:wi.mirror,orientation:wi.orientation,padding:wi.padding,reversed:wi.reversed,scale:wi.scale,tickCount:wi.tickCount,type:wi.type,width:wi.width,yAxisId:0};class No extends M.Component{render(){return B.createElement(rfe,this.props)}}PI(No,"displayName","YAxis");PI(No,"defaultProps",ife);var kp={exports:{}},_b={};/**
84
84
  * @license React
85
85
  * use-sync-external-store-with-selector.production.js
86
86
  *
@@ -88,7 +88,7 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
88
88
  *
89
89
  * This source code is licensed under the MIT license found in the
90
90
  * LICENSE file in the root directory of this source tree.
91
- */var X5;function afe(){if(X5)return _b;X5=1;var e=k;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return _b.useSyncExternalStoreWithSelector=function(u,c,l,d,h){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=o(function(){function v(A){if(!b){if(b=!0,_=A,A=d(A),h!==void 0&&m.hasValue){var O=m.value;if(h(O,A))return E=O}return E=A}if(O=E,n(_,A))return O;var P=d(A);return h!==void 0&&h(O,P)?(_=A,O):(_=A,E=P)}var b=!1,_,E,S=l===void 0?null:l;return[function(){return v(c())},S===null?void 0:function(){return v(S())}]},[c,l,d,h]);var y=r(u,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),s(y),y},_b}var Eb={};/**
91
+ */var X5;function afe(){if(X5)return _b;X5=1;var e=M;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return _b.useSyncExternalStoreWithSelector=function(u,c,l,d,h){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=o(function(){function v(A){if(!b){if(b=!0,_=A,A=d(A),h!==void 0&&m.hasValue){var O=m.value;if(h(O,A))return E=O}return E=A}if(O=E,n(_,A))return O;var P=d(A);return h!==void 0&&h(O,P)?(_=A,O):(_=A,E=P)}var b=!1,_,E,S=l===void 0?null:l;return[function(){return v(c())},S===null?void 0:function(){return v(S())}]},[c,l,d,h]);var y=r(u,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),s(y),y},_b}var Eb={};/**
92
92
  * @license React
93
93
  * use-sync-external-store-with-selector.development.js
94
94
  *
@@ -96,7 +96,7 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
96
96
  *
97
97
  * This source code is licensed under the MIT license found in the
98
98
  * LICENSE file in the root directory of this source tree.
99
- */var Z5;function ofe(){return Z5||(Z5=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=k,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;Eb.useSyncExternalStoreWithSelector=function(u,c,l,d,h){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=o(function(){function v(A){if(!b){if(b=!0,_=A,A=d(A),h!==void 0&&m.hasValue){var O=m.value;if(h(O,A))return E=O}return E=A}if(O=E,n(_,A))return O;var P=d(A);return h!==void 0&&h(O,P)?(_=A,O):(_=A,E=P)}var b=!1,_,E,S=l===void 0?null:l;return[function(){return v(c())},S===null?void 0:function(){return v(S())}]},[c,l,d,h]);var y=r(u,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),s(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Eb}var J5;function sfe(){return J5||(J5=1,process.env.NODE_ENV==="production"?kp.exports=afe():kp.exports=ofe()),kp.exports}sfe();function ufe(e){e()}function cfe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ufe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Q5={notify(){},get:()=>[]};function lfe(e,t){let n,r=Q5,i=0,a=!1;function o(y){l();const v=r.subscribe(y);let b=!1;return()=>{b||(b=!0,v(),d())}}function s(){r.notify()}function u(){m.onStateChange&&m.onStateChange()}function c(){return a}function l(){i++,n||(n=e.subscribe(u),r=cfe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Q5)}function h(){a||(a=!0,l())}function g(){a&&(a=!1,d())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>r};return m}var ffe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dfe=ffe(),hfe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",pfe=hfe(),gfe=()=>dfe||pfe?B.useLayoutEffect:B.useEffect,vfe=gfe(),mfe=Symbol.for("react-redux-context"),yfe=typeof globalThis<"u"?globalThis:{};function bfe(){if(!B.createContext)return{};const e=yfe[mfe]??=new Map;let t=e.get(B.createContext);return t||(t=B.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(B.createContext,t)),t}var wfe=bfe();function xfe(e){const{children:t,context:n,serverState:r,store:i}=e,a=B.useMemo(()=>{const u=lfe(i),c={store:i,subscription:u,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:l})}},[i,r]),o=B.useMemo(()=>i.getState(),[i]);vfe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,o]);const s=n||wfe;return B.createElement(s.Provider,{value:a},t)}var _fe=xfe,Efe=(e,t)=>t,gS=se([Efe,It,Yte,tr,hR,Ho,$re,Hn],qre),vS=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},CI=Zi("mouseClick"),jI=Xd();jI.startListening({actionCreator:CI,effect:(e,t)=>{var n=e.payload,r=gS(t.getState(),vS(n));r?.activeIndex!=null&&t.dispatch(Yne({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Ox=Zi("mouseMove"),MI=Xd();MI.startListening({actionCreator:Ox,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=qE(r,r.tooltip.settings.shared),a=gS(r,vS(n));i==="axis"&&(a?.activeIndex!=null?t.dispatch(oR({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(aR()))}});function Sfe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var eC={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},kI=ea({name:"rootProps",initialState:eC,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:eC.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}}}),Afe=kI.reducer,{updateOptions:Ofe}=kI.actions,RI=ea({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Tfe}=RI.actions,Pfe=RI.reducer,II=Zi("keyDown"),DI=Zi("focus"),mS=Xd();mS.startListening({actionCreator:II,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(VE(i,qu(n))),s=Ho(n);if(a==="Enter"){var u=Xg(n,"axis","hover",String(i.index));t.dispatch(fx({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:u}));return}var c=zne(n),l=c==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,h=o+d*l;if(!(s==null||h>=s.length||h<0)){var g=Xg(n,"axis","hover",String(h));t.dispatch(fx({active:!0,activeIndex:h.toString(),activeDataKey:void 0,activeCoordinate:g}))}}}}});mS.startListening({actionCreator:DI,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var a="0",o=Xg(n,"axis","hover",String(a));t.dispatch(fx({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var qi=Zi("externalEvent"),NI=Xd();NI.startListening({actionCreator:qi,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:Cre(n),activeDataKey:mR(n),activeIndex:Do(n),activeLabel:vR(n),activeTooltipIndex:Do(n),isTooltipActive:jre(n)};e.payload.handler(r,e.payload.reactEvent)}}});var Cfe=se([Il],e=>e.tooltipItemPayloads),jfe=se([Cfe,sh,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(s=>s.settings.dataKey===r);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,n);return o}}}),LI=Zi("touchMove"),$I=Xd();$I.startListening({actionCreator:LI,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=qE(r,r.tooltip.settings.shared);if(i==="axis"){var a=gS(r,vS({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));a?.activeIndex!=null&&t.dispatch(oR({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=n.touches[0],u=document.elementFromPoint(s.clientX,s.clientY);if(!u||!u.getAttribute)return;var c=u.getAttribute(T2),l=(o=u.getAttribute(P2))!==null&&o!==void 0?o:void 0,d=jfe(t.getState(),c,l);t.dispatch(iR({activeDataKey:l,activeIndex:c,activeCoordinate:d}))}}});var Mfe=$j({brush:tue,cartesianAxis:cle,chartData:aie,graphicalItems:Gae,layout:BY,legend:AX,options:eie,polarAxis:Mae,polarOptions:Pfe,referenceElements:hue,rootProps:Afe,tooltip:Xne}),kfe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return lY({reducer:Mfe,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([jI.middleware,MI.middleware,mS.middleware,NI.middleware,$I.middleware]),devTools:{serialize:{replacer:Sfe},name:"recharts-".concat(n)}})};function BI(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Un(),a=k.useRef(null);if(i)return n;a.current==null&&(a.current=kfe(t,r));var o=y2;return B.createElement(_fe,{context:o,store:a.current},n)}function zI(e){var{layout:t,width:n,height:r,margin:i}=e,a=en(),o=Un();return k.useEffect(()=>{o||(a(NY(t)),a(LY({width:n,height:r})),a(DY(i)))},[a,o,t,n,r,i]),null}function FI(e){var t=en();return k.useEffect(()=>{t(Ofe(e))},[t,e]),null}var Rfe=["children"];function Ife(e,t){if(e==null)return{};var n,r,i=Dfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(null,arguments)}var Nfe={width:"100%",height:"100%"},Lfe=k.forwardRef((e,t)=>{var n=C2(),r=j2(),i=w7();if(!el(n)||!el(r))return null;var{children:a,otherAttributes:o,title:s,desc:u}=e,c,l;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0,B.createElement(K_,iv({},o,{title:s,desc:u,role:l,tabIndex:c,width:n,height:r,style:Nfe,ref:t}),a)}),$fe=e=>{var{children:t}=e,n=ke(h0);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return B.createElement(K_,{width:r,height:i,x:o,y:a},t)},tC=k.forwardRef((e,t)=>{var{children:n}=e,r=Ife(e,Rfe),i=Un();return i?B.createElement($fe,null,n):B.createElement(Lfe,iv({ref:t},r),n)});function Bfe(){var e=en(),[t,n]=k.useState(null),r=ke(hX);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;lr(a)&&a!==r&&e($Y(a))}},[t,e,r]),n}function nC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zfe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nC(Object(n),!0).forEach(function(r){Ffe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ffe(e,t,n){return(t=Wfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wfe(e){var t=qfe(e,"string");return typeof t=="symbol"?t:t+""}function qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vfe=k.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:u,onMouseEnter:c,onMouseLeave:l,onMouseMove:d,onMouseUp:h,onTouchEnd:g,onTouchMove:m,onTouchStart:y,style:v,width:b}=e,_=en(),[E,S]=k.useState(null),[A,O]=k.useState(null);uie();var P=Bfe(),j=k.useCallback(U=>{P(U),typeof t=="function"&&t(U),S(U),O(U)},[P,t,S,O]),$=k.useCallback(U=>{_(CI(U)),_(qi({handler:a,reactEvent:U}))},[_,a]),z=k.useCallback(U=>{_(Ox(U)),_(qi({handler:c,reactEvent:U}))},[_,c]),I=k.useCallback(U=>{_(aR()),_(qi({handler:l,reactEvent:U}))},[_,l]),H=k.useCallback(U=>{_(Ox(U)),_(qi({handler:d,reactEvent:U}))},[_,d]),D=k.useCallback(()=>{_(DI())},[_]),C=k.useCallback(U=>{_(II(U.key))},[_]),L=k.useCallback(U=>{_(qi({handler:o,reactEvent:U}))},[_,o]),N=k.useCallback(U=>{_(qi({handler:s,reactEvent:U}))},[_,s]),V=k.useCallback(U=>{_(qi({handler:u,reactEvent:U}))},[_,u]),Z=k.useCallback(U=>{_(qi({handler:h,reactEvent:U}))},[_,h]),K=k.useCallback(U=>{_(qi({handler:y,reactEvent:U}))},[_,y]),R=k.useCallback(U=>{_(LI(U)),_(qi({handler:m,reactEvent:U}))},[_,m]),W=k.useCallback(U=>{_(qi({handler:g,reactEvent:U}))},[_,g]);return B.createElement(SR.Provider,{value:E},B.createElement(N8.Provider,{value:A},B.createElement("div",{className:Ot("recharts-wrapper",r),style:zfe({position:"relative",cursor:"default",width:b,height:i},v),onClick:$,onContextMenu:L,onDoubleClick:N,onFocus:D,onKeyDown:C,onMouseDown:V,onMouseEnter:z,onMouseLeave:I,onMouseMove:H,onMouseUp:Z,onTouchEnd:W,onTouchMove:R,onTouchStart:K,ref:j},n)))}),Hfe=["children","className","width","height","style","compact","title","desc"];function Ufe(e,t){if(e==null)return{};var n,r,i=Gfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var WI=k.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:a,style:o,compact:s,title:u,desc:c}=e,l=Ufe(e,Hfe),d=it(l,!1);return s?B.createElement(tC,{otherAttributes:d,title:u,desc:c},n):B.createElement(Vfe,{className:r,style:o,width:i,height:a,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},B.createElement(tC,{otherAttributes:d,title:u,desc:c,ref:t},B.createElement(pue,null,n)))}),Kfe=["width","height"];function Tx(){return Tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tx.apply(null,arguments)}function Yfe(e,t){if(e==null)return{};var n,r,i=Xfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zfe={top:5,right:5,bottom:5,left:5},Jfe={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Zfe,reverseStackOrder:!1,syncMethod:"index"},ph=k.forwardRef(function(t,n){var r,i=li(t.categoricalChartProps,Jfe),{width:a,height:o}=i,s=Yfe(i,Kfe);if(!el(a)||!el(o))return null;var{chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,categoricalChartProps:h}=t,g={chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,eventEmitter:void 0};return B.createElement(BI,{preloadedState:{options:g},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:u},B.createElement(QR,{chartData:h.data}),B.createElement(zI,{width:a,height:o,layout:i.layout,margin:i.margin}),B.createElement(FI,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),B.createElement(WI,Tx({},s,{width:a,height:o,ref:n})))}),Qfe=["axis"],ede=k.forwardRef((e,t)=>B.createElement(ph,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Qfe,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t})),tde=["axis","item"],nde=k.forwardRef((e,t)=>B.createElement(ph,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:tde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t}));function rde(e){var t=en();return k.useEffect(()=>{t(Tfe(e))},[t,e]),null}var ide=["width","height","layout"];function Px(){return Px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Px.apply(null,arguments)}function ade(e,t){if(e==null)return{};var n,r,i=ode(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ode(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sde={top:5,right:5,bottom:5,left:5},ude={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:sde,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},cde=k.forwardRef(function(t,n){var r,i=li(t.categoricalChartProps,ude),{width:a,height:o,layout:s}=i,u=ade(i,ide);if(!el(a)||!el(o))return null;var{chartName:c,defaultTooltipEventType:l,validateTooltipEventTypes:d,tooltipPayloadSearcher:h}=t,g={chartName:c,defaultTooltipEventType:l,validateTooltipEventTypes:d,tooltipPayloadSearcher:h,eventEmitter:void 0};return B.createElement(BI,{preloadedState:{options:g},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:c},B.createElement(QR,{chartData:i.data}),B.createElement(zI,{width:a,height:o,layout:s,margin:i.margin}),B.createElement(FI,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),B.createElement(rde,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),B.createElement(WI,Px({width:a,height:o},u,{ref:n})))}),lde=["item"],fde={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},dde=k.forwardRef((e,t)=>{var n=li(e,fde);return B.createElement(cde,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:lde,tooltipPayloadSearcher:Nl,categoricalChartProps:n,ref:t})}),hde=["item"],pde=k.forwardRef((e,t)=>B.createElement(ph,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:hde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t})),gde=["axis"],qI=k.forwardRef((e,t)=>B.createElement(ph,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:gde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t})),vde=["axis"],VI=k.forwardRef((e,t)=>B.createElement(ph,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:vde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t}));function cm({payload:e,label:t,description:n,chartType:r}){return w.jsxs("div",{style:{backgroundColor:"rgba(256, 256, 256, 0.8)",color:"black",padding:"15px",borderRadius:"10px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.2)",display:"flex",flexDirection:"column",userSelect:"none"},children:[r==="lineChart"&&w.jsxs(w.Fragment,{children:[w.jsx("p",{style:{margin:0,fontWeight:"bold"},children:t}),e?.map(i=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:i[Object.keys(i)[3]]}),w.jsx("span",{children:w.jsx("b",{children:i.value})})]},i?.toString())),n&&w.jsx("div",{style:{marginTop:"10px",fontStyle:"italic",color:"#666"},children:w.jsx("p",{children:n})})]}),r==="rangeAreaChart"&&w.jsxs(w.Fragment,{children:[w.jsx("p",{style:{margin:0,fontWeight:"bold"},children:t}),e?.map(i=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:i[Object.keys(i)[3]]}),w.jsx("span",{children:w.jsxs("b",{children:[i.value[0]," - ",i.value[1]]})})]},i.toString())),n&&w.jsx("div",{style:{marginTop:"10px",fontStyle:"italic",color:"#666"},children:w.jsx("p",{children:n})})]}),r==="simpleAreaChart"&&w.jsxs(w.Fragment,{children:[w.jsx("p",{style:{margin:0,fontWeight:"bold"},children:t}),e?.map(i=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:i[Object.keys(i)[3]]}),w.jsx("span",{children:w.jsx("b",{children:i.value})})]},i.toString())),n&&w.jsx("div",{style:{marginTop:"10px",fontStyle:"italic",color:"#666"},children:w.jsx("p",{children:n})})]}),r==="scatterChart"&&e?.map((i,a)=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px",padding:"10px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:w.jsx("b",{children:i.value})}),w.jsx("span",{children:a!==0?i[Object.keys(i)[1]]:null})]},i.toString()))]})}const yS=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(2.55*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`};function mde({data:e,width:t="100%",height:n="100%",area:r,hideDots:i=!1,hideAxis:a=!1,hideLegend:o=!1,hideValues:s=!1,yAxisOptions:u={allowDuplicatedCategory:!1},xAxisOptions:c={allowDuplicatedCategory:!1},gridOptions:l={},dataKeys:d,strokeColors:h,fillColors:g,connectNulls:m,description:y,dataNames:v,type:b="monotone"}){const E=ie.useTheme().palette.primary.main??"#00796b",S=d.map((O,P)=>yS(E,P*10)),A=r?qI:ede;return w.jsx(Vu,{height:n,width:t,style:{userSelect:"none"},children:w.jsxs(A,{data:e,children:[w.jsx("defs",{children:r&&g?.map((O,P)=>w.jsxs("linearGradient",{id:`colorPv${P}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"5%",stopColor:g?O:E,stopOpacity:.5}),w.jsx("stop",{offset:"95%",stopColor:g?O:E,stopOpacity:0})]},`colorPv${P}`))}),w.jsx(Hu,{...l}),w.jsx(Ds,{dataKey:"name",hide:a,includeHidden:!0,padding:{left:10,right:10},...c}),w.jsx(No,{hide:a,...u}),w.jsx(uh,{content:w.jsx(cm,{description:y,chartType:"lineChart"}),cursor:{stroke:"red",strokeWidth:3}}),!o&&w.jsx(Cs,{verticalAlign:"top",height:36}),d.map((O,P)=>r?w.jsx($l,{fillOpacity:1,fill:`url(#colorPv${P})`,type:b,dataKey:O,stroke:h?h[P]:S[P],connectNulls:m,dot:i,activeDot:{r:8,stroke:h?h[P]:S[P],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:E,fontSize:16,position:"top"},name:v?v[P]:O},O):w.jsx(dh,{type:b,dataKey:O,stroke:h?h[P]:S[P],fill:g?g[P]:E,connectNulls:m,dot:i,activeDot:{r:8,stroke:h?h[P]:S[P],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:E,fontSize:16,position:"top"},name:v?v[P]:O},O)),w.jsx(hh,{name:"B school",dataKey:"point",fill:"#82ca9d"})]})})}const yde=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(4*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`};let bde=class extends k.PureComponent{render(){const{x:t,y:n,payload:r}=this.props;return w.jsx("g",{transform:`translate(${t},${n})`,children:w.jsx("text",{x:0,y:0,dy:16,textAnchor:"end",fill:"#666",transform:"rotate(-35)",children:r.value})})}};function wde({data:e,width:t,height:n,dataKeys:r,strokeColors:i,fillColors:a,connectNulls:o,description:s,dataNames:u,type:c}){const l="#1d5a52",d=r.map((y,v)=>yde(l,v*10)),h=d,g=i||d,m=a||h;return w.jsx(Vu,{height:n||300,width:t||"50%",style:{marginTop:"20px",userSelect:"none"},children:w.jsxs(qI,{data:e,margin:{top:20,right:30,left:30,bottom:10},children:[w.jsx(Hu,{stroke:"#f5f5f5",strokeDasharray:"8 15"}),w.jsx(Ds,{dataKey:"name",height:60,tick:w.jsx(bde,{x:0,y:0,stroke:"#666",payload:{value:""}})}),w.jsx(No,{}),w.jsx(uh,{content:w.jsx(cm,{description:s,chartType:"rangeAreaChart"}),cursor:{stroke:"red",strokeWidth:3}}),w.jsx(Cs,{verticalAlign:"top",height:36}),r.map((y,v)=>w.jsx($l,{type:c||"monotone",dataKey:y,stroke:g[v],fill:m[v],connectNulls:o||!1,activeDot:{r:8,stroke:g[v],strokeWidth:2},strokeWidth:3,name:u?u[v]:y},y))]})})}function xde({data:e,width:t="100%",height:n="100%",barWidth:r=50,hideAxis:i=!1,hideLegend:a=!1,hideValues:o=!1,yAxisOptions:s={},xAxisOptions:u={},gridOptions:c={},dataKeys:l,strokeColors:d,fillColors:h,dataNames:g,tickRotation:m}){class y extends k.PureComponent{render(){const{x:S,y:A,payload:O}=this.props;return w.jsx("g",{transform:`translate(${S},${A})`,children:w.jsx("text",{x:0,y:-10,dy:16,textAnchor:m?"end":"middle",fill:"#666",transform:m?`rotate(${m})`:"",fontSize:12,children:O.value})})}}const b=ie.useTheme().palette.primary.main??"#00796b",_=l.map((E,S)=>yS(b,S*10));return w.jsx(Vu,{height:n,width:t,style:{userSelect:"none"},children:w.jsxs(nde,{data:e,children:[w.jsx(Hu,{...c}),w.jsx(Ds,{dataKey:"name",hide:i,includeHidden:!0,padding:{left:10,right:10},...u,tick:E=>w.jsx(y,{...E})}),w.jsx(No,{hide:i,...s}),!a&&w.jsx(Cs,{verticalAlign:"top",height:36}),l.map((E,S)=>w.jsx(aS,{dataKey:E,barSize:r,stroke:d?d[S]:_[S],fill:h?h[S]:b,strokeWidth:3,label:o?void 0:{fill:b,fontSize:16,position:"top"},name:g?g[S]:E},E))]})})}const _de=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(2.55*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`},Ede=e=>{const t=Math.PI/180,{cx:n,cy:r,midAngle:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u,fill:c,payload:l,percent:d,value:h}=e,g=Math.sin(-t*i),m=Math.cos(-t*i),y=n+(o+10)*m,v=r+(o+10)*g,b=n+(o+30)*m,_=r+(o+30)*g,E=b+(m>=0?1:-1)*22,S=_,A=m>=0?"start":"end";return w.jsxs("g",{children:[w.jsx("text",{x:n,y:r,dy:8,textAnchor:"middle",fill:c,style:{fontSize:"20px",fontWeight:"bold"},children:l.name}),w.jsx(Dg,{cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u,fill:c}),w.jsx(Dg,{cx:n,cy:r,startAngle:s,endAngle:u,innerRadius:o+6,outerRadius:o+10,fill:c}),w.jsx("path",{d:`M${y},${v}L${b},${_}L${E},${S}`,stroke:c,fill:"none"}),w.jsx("circle",{cx:E,cy:S,r:2,fill:c,stroke:"none"}),w.jsx("text",{x:E+(m>=0?1:-1)*12,y:S,textAnchor:A,fill:"#333",style:{fontSize:"20px",fontWeight:"bold"},children:`PV ${h}`}),w.jsx("text",{x:E+(m>=0?1:-1)*12,y:S,dy:18,textAnchor:A,fill:"#999",style:{fontSize:"20px",fontWeight:"bold"},children:`(Rate ${(d*100).toFixed(2)}%)`})]})};function Sde({data:e,width:t,height:n,dataKeys:r,fillColors:i,dataNames:a}){const o="#1d5a52",u=e.map((l,d)=>_de(o,d*10)),c=i||u;return w.jsx(Vu,{height:n||300,width:t||"50%",style:{marginTop:"20px",userSelect:"none"},children:w.jsx(dde,{data:e,margin:{top:20,right:30,left:30,bottom:50},children:r.map((l,d)=>w.jsx(rS,{data:e,dataKey:l,strokeWidth:3,activeShape:Ede,name:a?a[d]:l,outerRadius:150,innerRadius:80,cx:"50%",cy:"50%",labelLine:!1,children:e.map((h,g)=>w.jsx(Ll,{fill:c[g]},h.toString()))},l))})})}const Ade=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(5*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`};class Ode extends k.PureComponent{render(){const{x:t,y:n,stroke:r,payload:i}=this.props;return w.jsx("g",{transform:`translate(${t},${n})`,children:w.jsx("text",{x:0,y:0,dy:16,textAnchor:"end",fill:r,transform:"rotate(-35)",children:i.value})})}}function Tde({data:e,width:t,height:n,dataKeys:r,strokeColors:i,fillColors:a,description:o,dataNames:s}){const u="#1d5a52",c=r.map((g,m)=>Ade(u,m*10)),l=c,d=i||c,h=a||l;return w.jsx(Vu,{height:n||300,width:t||"50%",style:{marginTop:"20px",userSelect:"none"},children:w.jsxs(pde,{data:e,margin:{top:20,right:30,left:30,bottom:10},children:[w.jsx(Hu,{stroke:"#f5f5f5",strokeDasharray:"8 15"}),w.jsx(Ds,{dataKey:"name",height:60,tick:w.jsx(Ode,{x:0,y:0,stroke:"#666",payload:{value:""}})}),w.jsx(No,{}),w.jsx(uh,{content:w.jsx(cm,{description:o,chartType:"scatterChart"}),cursor:{stroke:"red",strokeWidth:3}}),w.jsx(Cs,{verticalAlign:"top",height:36}),r.map((g,m)=>w.jsx(hh,{dataKey:g,stroke:d[m],fill:h[m],strokeWidth:3,label:{fill:"white",fontSize:15,fontWeight:"bold",position:"top"},name:s?s[m]:g},g))]})})}var os={},Zr={};function Pde(e){return e}var sg=1,ug=2,Cx=3,Ff=4,rC=1e-6;function Cde(e){return"translate("+e+",0)"}function jde(e){return"translate(0,"+e+")"}function Mde(e){return t=>+e(t)}function kde(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Rde(){return!this.__axis}function lm(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===sg||e===Ff?-1:1,l=e===Ff||e===ug?"x":"y",d=e===sg||e===Cx?Cde:jde;function h(g){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),y=i??(t.tickFormat?t.tickFormat.apply(t,n):Pde),v=Math.max(a,0)+s,b=t.range(),_=+b[0]+u,E=+b[b.length-1]+u,S=(t.bandwidth?kde:Mde)(t.copy(),u),A=g.selection?g.selection():g,O=A.selectAll(".domain").data([null]),P=A.selectAll(".tick").data(m,t).order(),j=P.exit(),$=P.enter().append("g").attr("class","tick"),z=P.select("line"),I=P.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge($),z=z.merge($.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),I=I.merge($.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",e===sg?"0em":e===Cx?"0.71em":"0.32em")),g!==A&&(O=O.transition(g),P=P.transition(g),z=z.transition(g),I=I.transition(g),j=j.transition(g).attr("opacity",rC).attr("transform",function(H){return isFinite(H=S(H))?d(H+u):this.getAttribute("transform")}),$.attr("opacity",rC).attr("transform",function(H){var D=this.parentNode.__axis;return d((D&&isFinite(D=D(H))?D:S(H))+u)})),j.remove(),O.attr("d",e===Ff||e===ug?o?"M"+c*o+","+_+"H"+u+"V"+E+"H"+c*o:"M"+u+","+_+"V"+E:o?"M"+_+","+c*o+"V"+u+"H"+E+"V"+c*o:"M"+_+","+u+"H"+E),P.attr("opacity",1).attr("transform",function(H){return d(S(H)+u)}),z.attr(l+"2",c*a),I.attr(l,c*v).text(y),A.filter(Rde).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===ug?"start":e===Ff?"end":"middle"),A.each(function(){this.__axis=S})}return h.scale=function(g){return arguments.length?(t=g,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),h):n.slice()},h.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),h):r&&r.slice()},h.tickFormat=function(g){return arguments.length?(i=g,h):i},h.tickSize=function(g){return arguments.length?(a=o=+g,h):a},h.tickSizeInner=function(g){return arguments.length?(a=+g,h):a},h.tickSizeOuter=function(g){return arguments.length?(o=+g,h):o},h.tickPadding=function(g){return arguments.length?(s=+g,h):s},h.offset=function(g){return arguments.length?(u=+g,h):u},h}function Ide(e){return lm(sg,e)}function Dde(e){return lm(ug,e)}function Nde(e){return lm(Cx,e)}function Lde(e){return lm(Ff,e)}var $de={value:()=>{}};function Uu(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new cg(n)}function cg(e){this._=e}function Bde(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}cg.prototype=Uu.prototype={constructor:cg,on:function(e,t){var n=this._,r=Bde(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=zde(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=iC(n[i],e.name,t);else if(t==null)for(i in n)n[i]=iC(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new cg(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function zde(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function iC(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=$de,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var jx="http://www.w3.org/1999/xhtml";const Mx={svg:"http://www.w3.org/2000/svg",xhtml:jx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gh(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Mx.hasOwnProperty(t)?{space:Mx[t],local:e}:e}function Fde(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===jx&&t.documentElement.namespaceURI===jx?t.createElement(e):t.createElementNS(n,e)}}function Wde(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fm(e){var t=gh(e);return(t.local?Wde:Fde)(t)}function qde(){}function dm(e){return e==null?qde:function(){return this.querySelector(e)}}function Vde(e){typeof e!="function"&&(e=dm(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,c,l=0;l<o;++l)(u=a[l])&&(c=e.call(u,u.__data__,l,a))&&("__data__"in u&&(c.__data__=u.__data__),s[l]=c);return new Fr(r,this._parents)}function HI(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Hde(){return[]}function bS(e){return e==null?Hde:function(){return this.querySelectorAll(e)}}function Ude(e){return function(){return HI(e.apply(this,arguments))}}function Gde(e){typeof e=="function"?e=Ude(e):e=bS(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new Fr(r,i)}function wS(e){return function(){return this.matches(e)}}function UI(e){return function(t){return t.matches(e)}}var Kde=Array.prototype.find;function Yde(e){return function(){return Kde.call(this.children,e)}}function Xde(){return this.firstElementChild}function Zde(e){return this.select(e==null?Xde:Yde(typeof e=="function"?e:UI(e)))}var Jde=Array.prototype.filter;function Qde(){return Array.from(this.children)}function ehe(e){return function(){return Jde.call(this.children,e)}}function the(e){return this.selectAll(e==null?Qde:ehe(typeof e=="function"?e:UI(e)))}function nhe(e){typeof e!="function"&&(e=wS(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new Fr(r,this._parents)}function GI(e){return new Array(e.length)}function rhe(){return new Fr(this._enter||this._groups.map(GI),this._parents)}function av(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}av.prototype={constructor:av,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ihe(e){return function(){return e}}function ahe(e,t,n,r,i,a){for(var o=0,s,u=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new av(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function ohe(e,t,n,r,i,a,o){var s,u,c=new Map,l=t.length,d=a.length,h=new Array(l),g;for(s=0;s<l;++s)(u=t[s])&&(h[s]=g=o.call(u,u.__data__,s,t)+"",c.has(g)?i[s]=u:c.set(g,u));for(s=0;s<d;++s)g=o.call(e,a[s],s,a)+"",(u=c.get(g))?(r[s]=u,u.__data__=a[s],c.delete(g)):n[s]=new av(e,a[s]);for(s=0;s<l;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function she(e){return e.__data__}function uhe(e,t){if(!arguments.length)return Array.from(this,she);var n=t?ohe:ahe,r=this._parents,i=this._groups;typeof e!="function"&&(e=ihe(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var l=r[c],d=i[c],h=d.length,g=che(e.call(l,l&&l.__data__,c,r)),m=g.length,y=s[c]=new Array(m),v=o[c]=new Array(m),b=u[c]=new Array(h);n(l,d,y,v,b,g,t);for(var _=0,E=0,S,A;_<m;++_)if(S=y[_]){for(_>=E&&(E=_+1);!(A=v[E])&&++E<m;);S._next=A||null}}return o=new Fr(o,r),o._enter=s,o._exit=u,o}function che(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lhe(){return new Fr(this._exit||this._groups.map(GI),this._parents)}function fhe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function dhe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c=n[u],l=r[u],d=c.length,h=s[u]=new Array(d),g,m=0;m<d;++m)(g=c[m]||l[m])&&(h[m]=g);for(;u<i;++u)s[u]=n[u];return new Fr(s,this._parents)}function hhe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function phe(e){e||(e=ghe);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),c,l=0;l<s;++l)(c=o[l])&&(u[l]=c);u.sort(t)}return new Fr(i,this._parents).order()}function ghe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vhe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mhe(){return Array.from(this)}function yhe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function bhe(){let e=0;for(const t of this)++e;return e}function whe(){return!this.node()}function xhe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function _he(e){return function(){this.removeAttribute(e)}}function Ehe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function She(e,t){return function(){this.setAttribute(e,t)}}function Ahe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ohe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function The(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Phe(e,t){var n=gh(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ehe:_he:typeof t=="function"?n.local?The:Ohe:n.local?Ahe:She)(n,t))}function xS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Che(e){return function(){this.style.removeProperty(e)}}function jhe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Mhe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function khe(e,t,n){return arguments.length>1?this.each((t==null?Che:typeof t=="function"?Mhe:jhe)(e,t,n??"")):Ru(this.node(),e)}function Ru(e,t){return e.style.getPropertyValue(t)||xS(e).getComputedStyle(e,null).getPropertyValue(t)}function Rhe(e){return function(){delete this[e]}}function Ihe(e,t){return function(){this[e]=t}}function Dhe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Nhe(e,t){return arguments.length>1?this.each((t==null?Rhe:typeof t=="function"?Dhe:Ihe)(e,t)):this.node()[e]}function KI(e){return e.trim().split(/^|\s+/)}function _S(e){return e.classList||new YI(e)}function YI(e){this._node=e,this._names=KI(e.getAttribute("class")||"")}YI.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function XI(e,t){for(var n=_S(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function ZI(e,t){for(var n=_S(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Lhe(e){return function(){XI(this,e)}}function $he(e){return function(){ZI(this,e)}}function Bhe(e,t){return function(){(t.apply(this,arguments)?XI:ZI)(this,e)}}function zhe(e,t){var n=KI(e+"");if(arguments.length<2){for(var r=_S(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Bhe:t?Lhe:$he)(n,t))}function Fhe(){this.textContent=""}function Whe(e){return function(){this.textContent=e}}function qhe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Vhe(e){return arguments.length?this.each(e==null?Fhe:(typeof e=="function"?qhe:Whe)(e)):this.node().textContent}function Hhe(){this.innerHTML=""}function Uhe(e){return function(){this.innerHTML=e}}function Ghe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Khe(e){return arguments.length?this.each(e==null?Hhe:(typeof e=="function"?Ghe:Uhe)(e)):this.node().innerHTML}function Yhe(){this.nextSibling&&this.parentNode.appendChild(this)}function Xhe(){return this.each(Yhe)}function Zhe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jhe(){return this.each(Zhe)}function Qhe(e){var t=typeof e=="function"?e:fm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function epe(){return null}function tpe(e,t){var n=typeof e=="function"?e:fm(e),r=t==null?epe:typeof t=="function"?t:dm(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function npe(){var e=this.parentNode;e&&e.removeChild(this)}function rpe(){return this.each(npe)}function ipe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ape(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ope(e){return this.select(e?ape:ipe)}function spe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function upe(e){return function(t){e.call(this,t,this.__data__)}}function cpe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function lpe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function fpe(e,t,n){return function(){var r=this.__on,i,a=upe(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function dpe(e,t,n){var r=cpe(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,l;u<c;++u)for(i=0,l=s[u];i<a;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value}return}for(s=t?fpe:lpe,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function JI(e,t,n){var r=xS(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function hpe(e,t){return function(){return JI(this,e,t)}}function ppe(e,t){return function(){return JI(this,e,t.apply(this,arguments))}}function gpe(e,t){return this.each((typeof t=="function"?ppe:hpe)(e,t))}function*vpe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var ES=[null];function Fr(e,t){this._groups=e,this._parents=t}function Gu(){return new Fr([[document.documentElement]],ES)}function mpe(){return this}Fr.prototype=Gu.prototype={constructor:Fr,select:Vde,selectAll:Gde,selectChild:Zde,selectChildren:the,filter:nhe,data:uhe,enter:rhe,exit:lhe,join:fhe,merge:dhe,selection:mpe,order:hhe,sort:phe,call:vhe,nodes:mhe,node:yhe,size:bhe,empty:whe,each:xhe,attr:Phe,style:khe,property:Nhe,classed:zhe,text:Vhe,html:Khe,raise:Xhe,lower:Jhe,append:Qhe,insert:tpe,remove:rpe,clone:ope,datum:spe,on:dpe,dispatch:gpe,[Symbol.iterator]:vpe};function Sr(e){return typeof e=="string"?new Fr([[document.querySelector(e)]],[document.documentElement]):new Fr([[e]],ES)}function ype(e){return Sr(fm(e).call(document.documentElement))}var bpe=0;function QI(){return new kx}function kx(){this._="@"+(++bpe).toString(36)}kx.prototype=QI.prototype={constructor:kx,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function eD(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Si(e,t){if(e=eD(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function wpe(e,t){return e.target&&(e=eD(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>Si(n,t))}function xpe(e){return typeof e=="string"?new Fr([document.querySelectorAll(e)],[document.documentElement]):new Fr([HI(e)],ES)}const _pe={passive:!1},Cd={capture:!0,passive:!1};function Sb(e){e.stopImmediatePropagation()}function Hc(e){e.preventDefault(),e.stopImmediatePropagation()}function hm(e){var t=e.document.documentElement,n=Sr(e).on("dragstart.drag",Hc,Cd);"onselectstart"in t?n.on("selectstart.drag",Hc,Cd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function pm(e,t){var n=e.document.documentElement,r=Sr(e).on("dragstart.drag",null);t&&(r.on("click.drag",Hc,Cd),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rp=e=>()=>e;function Rx(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:u,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}Rx.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Epe(e){return!e.ctrlKey&&!e.button}function Spe(){return this.parentNode}function Ape(e,t){return t??{x:e.x,y:e.y}}function Ope(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tpe(){var e=Epe,t=Spe,n=Ape,r=Ope,i={},a=Uu("start","drag","end"),o=0,s,u,c,l,d=0;function h(S){S.on("mousedown.drag",g).filter(r).on("touchstart.drag",v).on("touchmove.drag",b,_pe).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(S,A){if(!(l||!e.call(this,S,A))){var O=E(this,t.call(this,S,A),S,A,"mouse");O&&(Sr(S.view).on("mousemove.drag",m,Cd).on("mouseup.drag",y,Cd),hm(S.view),Sb(S),c=!1,s=S.clientX,u=S.clientY,O("start",S))}}function m(S){if(Hc(S),!c){var A=S.clientX-s,O=S.clientY-u;c=A*A+O*O>d}i.mouse("drag",S)}function y(S){Sr(S.view).on("mousemove.drag mouseup.drag",null),pm(S.view,c),Hc(S),i.mouse("end",S)}function v(S,A){if(e.call(this,S,A)){var O=S.changedTouches,P=t.call(this,S,A),j=O.length,$,z;for($=0;$<j;++$)(z=E(this,P,S,A,O[$].identifier,O[$]))&&(Sb(S),z("start",S,O[$]))}}function b(S){var A=S.changedTouches,O=A.length,P,j;for(P=0;P<O;++P)(j=i[A[P].identifier])&&(Hc(S),j("drag",S,A[P]))}function _(S){var A=S.changedTouches,O=A.length,P,j;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),P=0;P<O;++P)(j=i[A[P].identifier])&&(Sb(S),j("end",S,A[P]))}function E(S,A,O,P,j,$){var z=a.copy(),I=Si($||O,A),H,D,C;if((C=n.call(S,new Rx("beforestart",{sourceEvent:O,target:h,identifier:j,active:o,x:I[0],y:I[1],dx:0,dy:0,dispatch:z}),P))!=null)return H=C.x-I[0]||0,D=C.y-I[1]||0,function L(N,V,Z){var K=I,R;switch(N){case"start":i[j]=L,R=o++;break;case"end":delete i[j],--o;case"drag":I=Si(Z||V,A),R=o;break}z.call(N,S,new Rx(N,{sourceEvent:V,subject:C,target:h,identifier:j,active:R,x:I[0]+H,y:I[1]+D,dx:I[0]-K[0],dy:I[1]-K[1],dispatch:z}),P)}}return h.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Rp(!!S),h):e},h.container=function(S){return arguments.length?(t=typeof S=="function"?S:Rp(S),h):t},h.subject=function(S){return arguments.length?(n=typeof S=="function"?S:Rp(S),h):n},h.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:Rp(!!S),h):r},h.on=function(){var S=a.on.apply(a,arguments);return S===a?h:S},h.clickDistance=function(S){return arguments.length?(d=(S=+S)*S,h):Math.sqrt(d)},h}var hl=0,Wf=0,Ef=0,tD=1e3,ov,qf,sv=0,Iu=0,gm=0,jd=typeof performance=="object"&&performance.now?performance:Date,nD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vh(){return Iu||(nD(Ppe),Iu=jd.now()+gm)}function Ppe(){Iu=0}function Md(){this._call=this._time=this._next=null}Md.prototype=vm.prototype={constructor:Md,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?vh():+n)+(t==null?0:+t),!this._next&&qf!==this&&(qf?qf._next=this:ov=this,qf=this),this._call=e,this._time=n,Ix()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ix())}};function vm(e,t,n){var r=new Md;return r.restart(e,t,n),r}function rD(){vh(),++hl;for(var e=ov,t;e;)(t=Iu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--hl}function aC(){Iu=(sv=jd.now())+gm,hl=Wf=0;try{rD()}finally{hl=0,jpe(),Iu=0}}function Cpe(){var e=jd.now(),t=e-sv;t>tD&&(gm-=t,sv=e)}function jpe(){for(var e,t=ov,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ov=n);qf=e,Ix(r)}function Ix(e){if(!hl){Wf&&(Wf=clearTimeout(Wf));var t=e-Iu;t>24?(e<1/0&&(Wf=setTimeout(aC,e-jd.now()-gm)),Ef&&(Ef=clearInterval(Ef))):(Ef||(sv=jd.now(),Ef=setInterval(Cpe,tD)),hl=1,nD(aC))}}function Dx(e,t,n){var r=new Md;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}function Mpe(e,t,n){var r=new Md,i=t;return t==null?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(a,o,s){o=+o,s=s==null?vh():+s,r._restart(function u(c){c+=i,r._restart(u,i+=o,s),a(c)},o,s)},r.restart(e,t,n),r)}var kpe=Uu("start","end","cancel","interrupt"),Rpe=[],iD=0,Nx=1,Lx=2,lg=3,oC=4,$x=5,fg=6;function mm(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ipe(e,n,{name:t,index:r,group:i,on:kpe,tween:Rpe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:iD})}function SS(e,t){var n=ba(e,t);if(n.state>iD)throw new Error("too late; already scheduled");return n}function Ka(e,t){var n=ba(e,t);if(n.state>lg)throw new Error("too late; already running");return n}function ba(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ipe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=vm(a,0,n.time);function a(c){n.state=Nx,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var l,d,h,g;if(n.state!==Nx)return u();for(l in r)if(g=r[l],g.name===n.name){if(g.state===lg)return Dx(o);g.state===oC?(g.state=fg,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[l]):+l<t&&(g.state=fg,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete r[l])}if(Dx(function(){n.state===lg&&(n.state=oC,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=Lx,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Lx){for(n.state=lg,i=new Array(h=n.tween.length),l=0,d=-1;l<h;++l)(g=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function s(c){for(var l=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=$x,1),d=-1,h=i.length;++d<h;)i[d].call(e,l);n.state===$x&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=fg,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function yu(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Lx&&r.state<$x,r.state=fg,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Dpe(e){return this.each(function(){yu(this,e)})}function Npe(e,t){var n,r;return function(){var i=Ka(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Lpe(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Ka(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function $pe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ba(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Npe:Lpe)(n,e,t))}function AS(e,t,n){var r=e._id;return e.each(function(){var i=Ka(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ba(i,r).value[t]}}function aD(e,t){var n;return(typeof t=="number"?Gi:t instanceof Ts?xd:(n=Ts(t))?(t=n,xd):V2)(e,t)}function Bpe(e){return function(){this.removeAttribute(e)}}function zpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fpe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Wpe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function qpe(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function Vpe(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function Hpe(e,t){var n=gh(e),r=n==="transform"?SM:aD;return this.attrTween(e,typeof t=="function"?(n.local?Vpe:qpe)(n,r,AS(this,"attr."+e,t)):t==null?(n.local?zpe:Bpe)(n):(n.local?Wpe:Fpe)(n,r,t))}function Upe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Gpe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Kpe(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Gpe(e,a)),n}return i._value=t,i}function Ype(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Upe(e,a)),n}return i._value=t,i}function Xpe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=gh(e);return this.tween(n,(r.local?Kpe:Ype)(r,t))}function Zpe(e,t){return function(){SS(this,e).delay=+t.apply(this,arguments)}}function Jpe(e,t){return t=+t,function(){SS(this,e).delay=t}}function Qpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Zpe:Jpe)(t,e)):ba(this.node(),t).delay}function ege(e,t){return function(){Ka(this,e).duration=+t.apply(this,arguments)}}function tge(e,t){return t=+t,function(){Ka(this,e).duration=t}}function nge(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ege:tge)(t,e)):ba(this.node(),t).duration}function rge(e,t){if(typeof t!="function")throw new Error;return function(){Ka(this,e).ease=t}}function ige(e){var t=this._id;return arguments.length?this.each(rge(t,e)):ba(this.node(),t).ease}function age(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ka(this,e).ease=n}}function oge(e){if(typeof e!="function")throw new Error;return this.each(age(this._id,e))}function sge(e){typeof e!="function"&&(e=wS(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new Fa(r,this._parents,this._name,this._id)}function uge(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],c=n[s],l=u.length,d=o[s]=new Array(l),h,g=0;g<l;++g)(h=u[g]||c[g])&&(d[g]=h);for(;s<r;++s)o[s]=t[s];return new Fa(o,this._parents,this._name,this._id)}function cge(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function lge(e,t,n){var r,i,a=cge(t)?SS:Ka;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function fge(e,t){var n=this._id;return arguments.length<2?ba(this.node(),n).on.on(e):this.each(lge(n,e,t))}function dge(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function hge(){return this.on("end.remove",dge(this._id))}function pge(e){var t=this._name,n=this._id;typeof e!="function"&&(e=dm(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,c=a[o]=new Array(u),l,d,h=0;h<u;++h)(l=s[h])&&(d=e.call(l,l.__data__,h,s))&&("__data__"in l&&(d.__data__=l.__data__),c[h]=d,mm(c[h],t,n,h,c,ba(l,n)));return new Fa(a,this._parents,t,n)}function gge(e){var t=this._name,n=this._id;typeof e!="function"&&(e=bS(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],c=u.length,l,d=0;d<c;++d)if(l=u[d]){for(var h=e.call(l,l.__data__,d,u),g,m=ba(l,n),y=0,v=h.length;y<v;++y)(g=h[y])&&mm(g,t,n,y,h,m);a.push(h),o.push(l)}return new Fa(a,o,t,n)}var vge=Gu.prototype.constructor;function mge(){return new vge(this._groups,this._parents)}function yge(e,t){var n,r,i;return function(){var a=Ru(this,e),o=(this.style.removeProperty(e),Ru(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function oD(e){return function(){this.style.removeProperty(e)}}function bge(e,t,n){var r,i=n+"",a;return function(){var o=Ru(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function wge(e,t,n){var r,i,a;return function(){var o=Ru(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ru(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function xge(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=Ka(this,e),c=u.on,l=u.value[a]==null?s||(s=oD(t)):void 0;(c!==n||i!==l)&&(r=(n=c).copy()).on(o,i=l),u.on=r}}function _ge(e,t,n){var r=(e+="")=="transform"?EM:aD;return t==null?this.styleTween(e,yge(e,r)).on("end.style."+e,oD(e)):typeof t=="function"?this.styleTween(e,wge(e,r,AS(this,"style."+e,t))).each(xge(this._id,e)):this.styleTween(e,bge(e,r,t),n).on("end.style."+e,null)}function Ege(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Sge(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Ege(e,o,n)),r}return a._value=t,a}function Age(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Sge(e,t,n??""))}function Oge(e){return function(){this.textContent=e}}function Tge(e){return function(){var t=e(this);this.textContent=t??""}}function Pge(e){return this.tween("text",typeof e=="function"?Tge(AS(this,"text",e)):Oge(e==null?"":e+""))}function Cge(e){return function(t){this.textContent=e.call(this,t)}}function jge(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Cge(i)),t}return r._value=e,r}function Mge(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,jge(e))}function kge(){for(var e=this._name,t=this._id,n=uD(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)if(u=o[c]){var l=ba(u,t);mm(u,e,n,c,o,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Fa(r,this._parents,e,n)}function Rge(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var c=Ka(this,r),l=c.on;l!==e&&(t=(e=l).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),c.on=t}),i===0&&a()})}var Ige=0;function Fa(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function sD(e){return Gu().transition(e)}function uD(){return++Ige}var so=Gu.prototype;Fa.prototype=sD.prototype={constructor:Fa,select:pge,selectAll:gge,selectChild:so.selectChild,selectChildren:so.selectChildren,filter:sge,merge:uge,selection:mge,transition:kge,call:so.call,nodes:so.nodes,node:so.node,size:so.size,empty:so.empty,each:so.each,on:fge,attr:Hpe,attrTween:Xpe,style:_ge,styleTween:Age,text:Pge,textTween:Mge,remove:hge,tween:$pe,delay:Qpe,duration:nge,ease:ige,easeVarying:oge,end:Rge,[Symbol.iterator]:so[Symbol.iterator]};const Dge=e=>+e;function Nge(e){return e*e}function Lge(e){return e*(2-e)}function sC(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function $ge(e){return e*e*e}function Bge(e){return--e*e*e+1}function Bx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var OS=3,zge=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(OS),Fge=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(OS),uC=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(OS),cD=Math.PI,lD=cD/2;function Wge(e){return+e==1?1:1-Math.cos(e*lD)}function qge(e){return Math.sin(e*lD)}function cC(e){return(1-Math.cos(cD*e))/2}function Ps(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Vge(e){return Ps(1-+e)}function Hge(e){return 1-Ps(e)}function lC(e){return((e*=2)<=1?Ps(1-e):2-Ps(e-1))/2}function Uge(e){return 1-Math.sqrt(1-e*e)}function Gge(e){return Math.sqrt(1- --e*e)}function fC(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var zx=4/11,Kge=6/11,Yge=8/11,Xge=3/4,Zge=9/11,Jge=10/11,Qge=15/16,eve=21/22,tve=63/64,Ip=1/zx/zx;function nve(e){return 1-kd(1-e)}function kd(e){return(e=+e)<zx?Ip*e*e:e<Yge?Ip*(e-=Kge)*e+Xge:e<Jge?Ip*(e-=Zge)*e+Qge:Ip*(e-=eve)*e+tve}function rve(e){return((e*=2)<=1?1-kd(1-e):kd(e-1)+1)/2}var TS=1.70158,ive=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(TS),ave=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(TS),dC=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(TS),pl=2*Math.PI,PS=1,CS=.3,ove=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=pl);function i(a){return t*Ps(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*pl)},i.period=function(a){return e(t,a)},i}(PS,CS),hC=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=pl);function i(a){return 1-t*Ps(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*pl)},i.period=function(a){return e(t,a)},i}(PS,CS),sve=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=pl);function i(a){return((a=a*2-1)<0?t*Ps(-a)*Math.sin((r-a)/n):2-t*Ps(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*pl)},i.period=function(a){return e(t,a)},i}(PS,CS),uve={time:null,delay:0,duration:250,ease:Bx};function cve(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function lve(e){var t,n;e instanceof Fa?(t=e._id,e=e._name):(t=uD(),(n=uve).time=vh(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&mm(u,e,t,c,o,n||cve(u,t));return new Fa(r,this._parents,e,t)}Gu.prototype.interrupt=Dpe;Gu.prototype.transition=lve;var fve=[null];function dve(e,t){var n=e.__transition,r,i;if(n){t=t==null?null:t+"";for(i in n)if((r=n[i]).state>Nx&&r.name===t)return new Fa([[e]],fve,t,+i)}return null}const Ab=e=>()=>e;function hve(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function pve(e){e.stopImmediatePropagation()}function Ob(e){e.preventDefault(),e.stopImmediatePropagation()}var pC={name:"drag"},Tb={name:"space"},yc={name:"handle"},bc={name:"center"};const{abs:gC,max:mr,min:yr}=Math;function vC(e){return[+e[0],+e[1]]}function Fx(e){return[vC(e[0]),vC(e[1])]}var dg={name:"x",handles:["w","e"].map(Rd),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},hg={name:"y",handles:["n","s"].map(Rd),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},gve={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Rd),input:function(e){return e==null?null:Fx(e)},output:function(e){return e}},uo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},mC={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},yC={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},vve={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},mve={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Rd(e){return{type:e}}function yve(e){return!e.ctrlKey&&!e.button}function bve(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function wve(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pb(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function xve(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function _ve(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Eve(){return jS(dg)}function Sve(){return jS(hg)}function Ave(){return jS(gve)}function jS(e){var t=bve,n=yve,r=wve,i=!0,a=Uu("start","brush","end"),o=6,s;function u(v){var b=v.property("__brush",y).selectAll(".overlay").data([Rd("overlay")]);b.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",uo.overlay).merge(b).each(function(){var E=Pb(this).extent;Sr(this).attr("x",E[0][0]).attr("y",E[0][1]).attr("width",E[1][0]-E[0][0]).attr("height",E[1][1]-E[0][1])}),v.selectAll(".selection").data([Rd("selection")]).enter().append("rect").attr("class","selection").attr("cursor",uo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=v.selectAll(".handle").data(e.handles,function(E){return E.type});_.exit().remove(),_.enter().append("rect").attr("class",function(E){return"handle handle--"+E.type}).attr("cursor",function(E){return uo[E.type]}),v.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",g).on("touchend.brush touchcancel.brush",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(v,b,_){v.tween?v.on("start.brush",function(E){l(this,arguments).beforestart().start(E)}).on("interrupt.brush end.brush",function(E){l(this,arguments).end(E)}).tween("brush",function(){var E=this,S=E.__brush,A=l(E,arguments),O=S.selection,P=e.input(typeof b=="function"?b.apply(this,arguments):b,S.extent),j=Ms(O,P);function $(z){S.selection=z===1&&P===null?null:j(z),c.call(E),A.brush()}return O!==null&&P!==null?$:$(1)}):v.each(function(){var E=this,S=arguments,A=E.__brush,O=e.input(typeof b=="function"?b.apply(E,S):b,A.extent),P=l(E,S).beforestart();yu(E),A.selection=O===null?null:O,c.call(E),P.start(_).brush(_).end(_)})},u.clear=function(v,b){u.move(v,null,b)};function c(){var v=Sr(this),b=Pb(this).selection;b?(v.selectAll(".selection").style("display",null).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1]),v.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?b[1][0]-o/2:b[0][0]-o/2}).attr("y",function(_){return _.type[0]==="s"?b[1][1]-o/2:b[0][1]-o/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?b[1][0]-b[0][0]+o:o}).attr("height",function(_){return _.type==="e"||_.type==="w"?b[1][1]-b[0][1]+o:o})):v.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(v,b,_){var E=v.__brush.emitter;return E&&(!_||!E.clean)?E:new d(v,b,_)}function d(v,b,_){this.that=v,this.args=b,this.state=v.__brush,this.active=0,this.clean=_}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(v,b){return this.starting?(this.starting=!1,this.emit("start",v,b)):this.emit("brush",v),this},brush:function(v,b){return this.emit("brush",v,b),this},end:function(v,b){return--this.active===0&&(delete this.state.emitter,this.emit("end",v,b)),this},emit:function(v,b,_){var E=Sr(this.that).datum();a.call(v,this.that,new hve(v,{sourceEvent:b,target:u,selection:e.output(this.state.selection),mode:_,dispatch:a}),E)}};function h(v){if(s&&!v.touches||!n.apply(this,arguments))return;var b=this,_=v.target.__data__.type,E=(i&&v.metaKey?_="overlay":_)==="selection"?pC:i&&v.altKey?bc:yc,S=e===hg?null:vve[_],A=e===dg?null:mve[_],O=Pb(b),P=O.extent,j=O.selection,$=P[0][0],z,I,H=P[0][1],D,C,L=P[1][0],N,V,Z=P[1][1],K,R,W=0,U=0,Y,ae=S&&A&&i&&v.shiftKey,re,ge,ye=Array.from(v.touches||[v],Se=>{const at=Se.identifier;return Se=Si(Se,b),Se.point0=Se.slice(),Se.identifier=at,Se});yu(b);var _e=l(b,arguments,!0).beforestart();if(_==="overlay"){j&&(Y=!0);const Se=[ye[0],ye[1]||ye[0]];O.selection=j=[[z=e===hg?$:yr(Se[0][0],Se[1][0]),D=e===dg?H:yr(Se[0][1],Se[1][1])],[N=e===hg?L:mr(Se[0][0],Se[1][0]),K=e===dg?Z:mr(Se[0][1],Se[1][1])]],ye.length>1&&Re(v)}else z=j[0][0],D=j[0][1],N=j[1][0],K=j[1][1];I=z,C=D,V=N,R=K;var ce=Sr(b).attr("pointer-events","none"),pe=ce.selectAll(".overlay").attr("cursor",uo[_]);if(v.touches)_e.moved=oe,_e.ended=$e;else{var Oe=Sr(v.view).on("mousemove.brush",oe,!0).on("mouseup.brush",$e,!0);i&&Oe.on("keydown.brush",Qe,!0).on("keyup.brush",Ze,!0),hm(v.view)}c.call(b),_e.start(v,E.name);function oe(Se){for(const at of Se.changedTouches||[Se])for(const pn of ye)pn.identifier===at.identifier&&(pn.cur=Si(at,b));if(ae&&!re&&!ge&&ye.length===1){const at=ye[0];gC(at.cur[0]-at[0])>gC(at.cur[1]-at[1])?ge=!0:re=!0}for(const at of ye)at.cur&&(at[0]=at.cur[0],at[1]=at.cur[1]);Y=!0,Ob(Se),Re(Se)}function Re(Se){const at=ye[0],pn=at.point0;var St;switch(W=at[0]-pn[0],U=at[1]-pn[1],E){case Tb:case pC:{S&&(W=mr($-z,yr(L-N,W)),I=z+W,V=N+W),A&&(U=mr(H-D,yr(Z-K,U)),C=D+U,R=K+U);break}case yc:{ye[1]?(S&&(I=mr($,yr(L,ye[0][0])),V=mr($,yr(L,ye[1][0])),S=1),A&&(C=mr(H,yr(Z,ye[0][1])),R=mr(H,yr(Z,ye[1][1])),A=1)):(S<0?(W=mr($-z,yr(L-z,W)),I=z+W,V=N):S>0&&(W=mr($-N,yr(L-N,W)),I=z,V=N+W),A<0?(U=mr(H-D,yr(Z-D,U)),C=D+U,R=K):A>0&&(U=mr(H-K,yr(Z-K,U)),C=D,R=K+U));break}case bc:{S&&(I=mr($,yr(L,z-W*S)),V=mr($,yr(L,N+W*S))),A&&(C=mr(H,yr(Z,D-U*A)),R=mr(H,yr(Z,K+U*A)));break}}V<I&&(S*=-1,St=z,z=N,N=St,St=I,I=V,V=St,_ in mC&&pe.attr("cursor",uo[_=mC[_]])),R<C&&(A*=-1,St=D,D=K,K=St,St=C,C=R,R=St,_ in yC&&pe.attr("cursor",uo[_=yC[_]])),O.selection&&(j=O.selection),re&&(I=j[0][0],V=j[1][0]),ge&&(C=j[0][1],R=j[1][1]),(j[0][0]!==I||j[0][1]!==C||j[1][0]!==V||j[1][1]!==R)&&(O.selection=[[I,C],[V,R]],c.call(b),_e.brush(Se,E.name))}function $e(Se){if(pve(Se),Se.touches){if(Se.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else pm(Se.view,Y),Oe.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ce.attr("pointer-events","all"),pe.attr("cursor",uo.overlay),O.selection&&(j=O.selection),xve(j)&&(O.selection=null,c.call(b)),_e.end(Se,E.name)}function Qe(Se){switch(Se.keyCode){case 16:{ae=S&&A;break}case 18:{E===yc&&(S&&(N=V-W*S,z=I+W*S),A&&(K=R-U*A,D=C+U*A),E=bc,Re(Se));break}case 32:{(E===yc||E===bc)&&(S<0?N=V-W:S>0&&(z=I-W),A<0?K=R-U:A>0&&(D=C-U),E=Tb,pe.attr("cursor",uo.selection),Re(Se));break}default:return}Ob(Se)}function Ze(Se){switch(Se.keyCode){case 16:{ae&&(re=ge=ae=!1,Re(Se));break}case 18:{E===bc&&(S<0?N=V:S>0&&(z=I),A<0?K=R:A>0&&(D=C),E=yc,Re(Se));break}case 32:{E===Tb&&(Se.altKey?(S&&(N=V-W*S,z=I+W*S),A&&(K=R-U*A,D=C+U*A),E=bc):(S<0?N=V:S>0&&(z=I),A<0?K=R:A>0&&(D=C),E=yc),pe.attr("cursor",uo[_]),Re(Se));break}default:return}Ob(Se)}}function g(v){l(this,arguments).moved(v)}function m(v){l(this,arguments).ended(v)}function y(){var v=this.__brush||{selection:null};return v.extent=Fx(t.apply(this,arguments)),v.dim=e,v}return u.extent=function(v){return arguments.length?(t=typeof v=="function"?v:Ab(Fx(v)),u):t},u.filter=function(v){return arguments.length?(n=typeof v=="function"?v:Ab(!!v),u):n},u.touchable=function(v){return arguments.length?(r=typeof v=="function"?v:Ab(!!v),u):r},u.handleSize=function(v){return arguments.length?(o=+v,u):o},u.keyModifiers=function(v){return arguments.length?(i=!!v,u):i},u.on=function(){var v=a.on.apply(a,arguments);return v===a?u:v},u}var bC=Math.abs,wc=Math.cos,xc=Math.sin,fD=Math.PI,Dp=fD/2,wC=fD*2,xC=Math.max,Cb=1e-12;function jb(e,t){return Array.from({length:t-e},(n,r)=>e+r)}function Ove(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function Tve(){return MS(!1,!1)}function Pve(){return MS(!1,!0)}function Cve(){return MS(!0,!1)}function MS(e,t){var n=0,r=null,i=null,a=null;function o(s){var u=s.length,c=new Array(u),l=jb(0,u),d=new Array(u*u),h=new Array(u),g=0,m;s=Float64Array.from({length:u*u},t?(y,v)=>s[v%u][v/u|0]:(y,v)=>s[v/u|0][v%u]);for(let y=0;y<u;++y){let v=0;for(let b=0;b<u;++b)v+=s[y*u+b]+e*s[b*u+y];g+=c[y]=v}g=xC(0,wC-n*u)/g,m=g?n:wC/u;{let y=0;r&&l.sort((v,b)=>r(c[v],c[b]));for(const v of l){const b=y;if(e){const _=jb(~u+1,u).filter(E=>E<0?s[~E*u+v]:s[v*u+E]);i&&_.sort((E,S)=>i(E<0?-s[~E*u+v]:s[v*u+E],S<0?-s[~S*u+v]:s[v*u+S]));for(const E of _)if(E<0){const S=d[~E*u+v]||(d[~E*u+v]={source:null,target:null});S.target={index:v,startAngle:y,endAngle:y+=s[~E*u+v]*g,value:s[~E*u+v]}}else{const S=d[v*u+E]||(d[v*u+E]={source:null,target:null});S.source={index:v,startAngle:y,endAngle:y+=s[v*u+E]*g,value:s[v*u+E]}}h[v]={index:v,startAngle:b,endAngle:y,value:c[v]}}else{const _=jb(0,u).filter(E=>s[v*u+E]||s[E*u+v]);i&&_.sort((E,S)=>i(s[v*u+E],s[v*u+S]));for(const E of _){let S;if(v<E?(S=d[v*u+E]||(d[v*u+E]={source:null,target:null}),S.source={index:v,startAngle:y,endAngle:y+=s[v*u+E]*g,value:s[v*u+E]}):(S=d[E*u+v]||(d[E*u+v]={source:null,target:null}),S.target={index:v,startAngle:y,endAngle:y+=s[v*u+E]*g,value:s[v*u+E]},v===E&&(S.source=S.target)),S.source&&S.target&&S.source.value<S.target.value){const A=S.source;S.source=S.target,S.target=A}}h[v]={index:v,startAngle:b,endAngle:y,value:c[v]}}y+=m}}return d=Object.values(d),d.groups=h,a?d.sort(a):d}return o.padAngle=function(s){return arguments.length?(n=xC(0,s),o):n},o.sortGroups=function(s){return arguments.length?(r=s,o):r},o.sortSubgroups=function(s){return arguments.length?(i=s,o):i},o.sortChords=function(s){return arguments.length?(s==null?a=null:(a=Ove(s))._=s,o):a&&a._},o}var jve=Array.prototype.slice;function Gs(e){return function(){return e}}function Mve(e){return e.source}function kve(e){return e.target}function _C(e){return e.radius}function Rve(e){return e.startAngle}function Ive(e){return e.endAngle}function Dve(){return 0}function Nve(){return 10}function dD(e){var t=Mve,n=kve,r=_C,i=_C,a=Rve,o=Ive,s=Dve,u=null;function c(){var l,d=t.apply(this,arguments),h=n.apply(this,arguments),g=s.apply(this,arguments)/2,m=jve.call(arguments),y=+r.apply(this,(m[0]=d,m)),v=a.apply(this,m)-Dp,b=o.apply(this,m)-Dp,_=+i.apply(this,(m[0]=h,m)),E=a.apply(this,m)-Dp,S=o.apply(this,m)-Dp;if(u||(u=l=Y_()),g>Cb&&(bC(b-v)>g*2+Cb?b>v?(v+=g,b-=g):(v-=g,b+=g):v=b=(v+b)/2,bC(S-E)>g*2+Cb?S>E?(E+=g,S-=g):(E-=g,S+=g):E=S=(E+S)/2),u.moveTo(y*wc(v),y*xc(v)),u.arc(0,0,y,v,b),v!==E||b!==S)if(e){var A=+e.apply(this,arguments),O=_-A,P=(E+S)/2;u.quadraticCurveTo(0,0,O*wc(E),O*xc(E)),u.lineTo(_*wc(P),_*xc(P)),u.lineTo(O*wc(S),O*xc(S))}else u.quadraticCurveTo(0,0,_*wc(E),_*xc(E)),u.arc(0,0,_,E,S);if(u.quadraticCurveTo(0,0,y*wc(v),y*xc(v)),u.closePath(),l)return u=null,l+""||null}return e&&(c.headRadius=function(l){return arguments.length?(e=typeof l=="function"?l:Gs(+l),c):e}),c.radius=function(l){return arguments.length?(r=i=typeof l=="function"?l:Gs(+l),c):r},c.sourceRadius=function(l){return arguments.length?(r=typeof l=="function"?l:Gs(+l),c):r},c.targetRadius=function(l){return arguments.length?(i=typeof l=="function"?l:Gs(+l),c):i},c.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Gs(+l),c):a},c.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:Gs(+l),c):o},c.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Gs(+l),c):s},c.source=function(l){return arguments.length?(t=l,c):t},c.target=function(l){return arguments.length?(n=l,c):n},c.context=function(l){return arguments.length?(u=l??null,c):u},c}function Lve(){return dD()}function $ve(){return dD(Nve)}var Bve=Array.prototype,hD=Bve.slice;function zve(e,t){return e-t}function Fve(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}const fs=e=>()=>e;function Wve(e,t){for(var n=-1,r=t.length,i;++n<r;)if(i=qve(e,t[n]))return i;return 0}function qve(e,t){for(var n=t[0],r=t[1],i=-1,a=0,o=e.length,s=o-1;a<o;s=a++){var u=e[a],c=u[0],l=u[1],d=e[s],h=d[0],g=d[1];if(Vve(u,d,t))return 0;l>r!=g>r&&n<(h-c)*(r-l)/(g-l)+c&&(i=-i)}return i}function Vve(e,t,n){var r;return Hve(e,t,n)&&Uve(e[r=+(e[0]===t[0])],n[r],t[r])}function Hve(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}function Uve(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function Gve(){}var co=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Wx(){var e=1,t=1,n=N2,r=u;function i(c){var l=n(c);if(Array.isArray(l))l=l.slice().sort(zve);else{const d=ed(c,Kve);for(l=Ou(...D2(d[0],d[1],l),l);l[l.length-1]>=d[1];)l.pop();for(;l[1]<d[0];)l.shift()}return l.map(d=>a(c,d))}function a(c,l){const d=l==null?NaN:+l;if(isNaN(d))throw new Error(`invalid value: ${l}`);var h=[],g=[];return o(c,d,function(m){r(m,c,d),Fve(m)>0?h.push([m]):g.push(m)}),g.forEach(function(m){for(var y=0,v=h.length,b;y<v;++y)if(Wve((b=h[y])[0],m)!==-1){b.push(m);return}}),{type:"MultiPolygon",value:l,coordinates:h}}function o(c,l,d){var h=new Array,g=new Array,m,y,v,b,_,E;for(m=y=-1,b=Ks(c[0],l),co[b<<1].forEach(S);++m<e-1;)v=b,b=Ks(c[m+1],l),co[v|b<<1].forEach(S);for(co[b<<0].forEach(S);++y<t-1;){for(m=-1,b=Ks(c[y*e+e],l),_=Ks(c[y*e],l),co[b<<1|_<<2].forEach(S);++m<e-1;)v=b,b=Ks(c[y*e+e+m+1],l),E=_,_=Ks(c[y*e+m+1],l),co[v|b<<1|_<<2|E<<3].forEach(S);co[b|_<<3].forEach(S)}for(m=-1,_=c[y*e]>=l,co[_<<2].forEach(S);++m<e-1;)E=_,_=Ks(c[y*e+m+1],l),co[_<<2|E<<3].forEach(S);co[_<<3].forEach(S);function S(A){var O=[A[0][0]+m,A[0][1]+y],P=[A[1][0]+m,A[1][1]+y],j=s(O),$=s(P),z,I;(z=g[j])?(I=h[$])?(delete g[z.end],delete h[I.start],z===I?(z.ring.push(P),d(z.ring)):h[z.start]=g[I.end]={start:z.start,end:I.end,ring:z.ring.concat(I.ring)}):(delete g[z.end],z.ring.push(P),g[z.end=$]=z):(z=h[$])?(I=g[j])?(delete h[z.start],delete g[I.end],z===I?(z.ring.push(P),d(z.ring)):h[I.start]=g[z.end]={start:I.start,end:z.end,ring:I.ring.concat(z.ring)}):(delete h[z.start],z.ring.unshift(O),h[z.start=j]=z):h[j]=g[$]={start:j,end:$,ring:[O,P]}}}function s(c){return c[0]*2+c[1]*(e+1)*4}function u(c,l,d){c.forEach(function(h){var g=h[0],m=h[1],y=g|0,v=m|0,b=Mb(l[v*e+y]);g>0&&g<e&&y===g&&(h[0]=EC(g,Mb(l[v*e+y-1]),b,d)),m>0&&m<t&&v===m&&(h[1]=EC(m,Mb(l[(v-1)*e+y]),b,d))})}return i.contour=a,i.size=function(c){if(!arguments.length)return[e,t];var l=Math.floor(c[0]),d=Math.floor(c[1]);if(!(l>=0&&d>=0))throw new Error("invalid size");return e=l,t=d,i},i.thresholds=function(c){return arguments.length?(n=typeof c=="function"?c:Array.isArray(c)?fs(hD.call(c)):fs(c),i):n},i.smooth=function(c){return arguments.length?(r=c?u:Gve,i):r===u},i}function Kve(e){return isFinite(e)?e:NaN}function Ks(e,t){return e==null?!1:+e>=t}function Mb(e){return e==null||isNaN(e=+e)?-1/0:e}function EC(e,t,n,r){const i=r-t,a=n-t,o=isFinite(i)||isFinite(a)?i/a:Math.sign(i)/Math.sign(a);return isNaN(o)?e:e+o-.5}function Yve(e){return e[0]}function Xve(e){return e[1]}function Zve(){return 1}function Jve(){var e=Yve,t=Xve,n=Zve,r=960,i=500,a=20,o=2,s=a*3,u=r+s*2>>o,c=i+s*2>>o,l=fs(20);function d(_){var E=new Float32Array(u*c),S=Math.pow(2,-o),A=-1;for(const D of _){var O=(e(D,++A,_)+s)*S,P=(t(D,A,_)+s)*S,j=+n(D,A,_);if(j&&O>=0&&O<u&&P>=0&&P<c){var $=Math.floor(O),z=Math.floor(P),I=O-$-.5,H=P-z-.5;E[$+z*u]+=(1-I)*(1-H)*j,E[$+1+z*u]+=I*(1-H)*j,E[$+1+(z+1)*u]+=I*H*j,E[$+(z+1)*u]+=(1-I)*H*j}}return j7({data:E,width:u,height:c},a*S),E}function h(_){var E=d(_),S=l(E),A=Math.pow(2,2*o);return Array.isArray(S)||(S=Ou(Number.MIN_VALUE,md(E)/A,S)),Wx().size([u,c]).thresholds(S.map(O=>O*A))(E).map((O,P)=>(O.value=+S[P],g(O)))}h.contours=function(_){var E=d(_),S=Wx().size([u,c]),A=Math.pow(2,2*o),O=P=>{P=+P;var j=g(S.contour(E,P*A));return j.value=P,j};return Object.defineProperty(O,"max",{get:()=>md(E)/A}),O};function g(_){return _.coordinates.forEach(m),_}function m(_){_.forEach(y)}function y(_){_.forEach(v)}function v(_){_[0]=_[0]*Math.pow(2,o)-s,_[1]=_[1]*Math.pow(2,o)-s}function b(){return s=a*3,u=r+s*2>>o,c=i+s*2>>o,h}return h.x=function(_){return arguments.length?(e=typeof _=="function"?_:fs(+_),h):e},h.y=function(_){return arguments.length?(t=typeof _=="function"?_:fs(+_),h):t},h.weight=function(_){return arguments.length?(n=typeof _=="function"?_:fs(+_),h):n},h.size=function(_){if(!arguments.length)return[r,i];var E=+_[0],S=+_[1];if(!(E>=0&&S>=0))throw new Error("invalid size");return r=E,i=S,b()},h.cellSize=function(_){if(!arguments.length)return 1<<o;if(!((_=+_)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(_)/Math.LN2),b()},h.thresholds=function(_){return arguments.length?(l=typeof _=="function"?_:Array.isArray(_)?fs(hD.call(_)):fs(_),h):l},h.bandwidth=function(_){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((_=+_)>=0))throw new Error("invalid bandwidth");return a=(Math.sqrt(4*_*_+1)-1)/2,b()},h}const Mo=11102230246251565e-32,br=134217729,Qve=(3+8*Mo)*Mo;function kb(e,t,n,r,i){let a,o,s,u,c=t[0],l=r[0],d=0,h=0;l>c==l>-c?(a=c,c=t[++d]):(a=l,l=r[++h]);let g=0;if(d<e&&h<n)for(l>c==l>-c?(o=c+a,s=a-(o-c),c=t[++d]):(o=l+a,s=a-(o-l),l=r[++h]),a=o,s!==0&&(i[g++]=s);d<e&&h<n;)l>c==l>-c?(o=a+c,u=o-a,s=a-(o-u)+(c-u),c=t[++d]):(o=a+l,u=o-a,s=a-(o-u)+(l-u),l=r[++h]),a=o,s!==0&&(i[g++]=s);for(;d<e;)o=a+c,u=o-a,s=a-(o-u)+(c-u),c=t[++d],a=o,s!==0&&(i[g++]=s);for(;h<n;)o=a+l,u=o-a,s=a-(o-u)+(l-u),l=r[++h],a=o,s!==0&&(i[g++]=s);return(a!==0||g===0)&&(i[g++]=a),g}function e0e(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function mh(e){return new Float64Array(e)}const t0e=(3+16*Mo)*Mo,n0e=(2+12*Mo)*Mo,r0e=(9+64*Mo)*Mo*Mo,_c=mh(4),SC=mh(8),AC=mh(12),OC=mh(16),kr=mh(4);function i0e(e,t,n,r,i,a,o){let s,u,c,l,d,h,g,m,y,v,b,_,E,S,A,O,P,j;const $=e-i,z=n-i,I=t-a,H=r-a;S=$*H,h=br*$,g=h-(h-$),m=$-g,h=br*H,y=h-(h-H),v=H-y,A=m*v-(S-g*y-m*y-g*v),O=I*z,h=br*I,g=h-(h-I),m=I-g,h=br*z,y=h-(h-z),v=z-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,_c[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,_c[1]=E-(b+d)+(d-O),j=_+b,d=j-_,_c[2]=_-(j-d)+(b-d),_c[3]=j;let D=e0e(4,_c),C=n0e*o;if(D>=C||-D>=C||(d=e-$,s=e-($+d)+(d-i),d=n-z,c=n-(z+d)+(d-i),d=t-I,u=t-(I+d)+(d-a),d=r-H,l=r-(H+d)+(d-a),s===0&&u===0&&c===0&&l===0)||(C=r0e*o+Qve*Math.abs(D),D+=$*l+H*s-(I*c+z*u),D>=C||-D>=C))return D;S=s*H,h=br*s,g=h-(h-s),m=s-g,h=br*H,y=h-(h-H),v=H-y,A=m*v-(S-g*y-m*y-g*v),O=u*z,h=br*u,g=h-(h-u),m=u-g,h=br*z,y=h-(h-z),v=z-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,kr[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,kr[1]=E-(b+d)+(d-O),j=_+b,d=j-_,kr[2]=_-(j-d)+(b-d),kr[3]=j;const L=kb(4,_c,4,kr,SC);S=$*l,h=br*$,g=h-(h-$),m=$-g,h=br*l,y=h-(h-l),v=l-y,A=m*v-(S-g*y-m*y-g*v),O=I*c,h=br*I,g=h-(h-I),m=I-g,h=br*c,y=h-(h-c),v=c-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,kr[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,kr[1]=E-(b+d)+(d-O),j=_+b,d=j-_,kr[2]=_-(j-d)+(b-d),kr[3]=j;const N=kb(L,SC,4,kr,AC);S=s*l,h=br*s,g=h-(h-s),m=s-g,h=br*l,y=h-(h-l),v=l-y,A=m*v-(S-g*y-m*y-g*v),O=u*c,h=br*u,g=h-(h-u),m=u-g,h=br*c,y=h-(h-c),v=c-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,kr[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,kr[1]=E-(b+d)+(d-O),j=_+b,d=j-_,kr[2]=_-(j-d)+(b-d),kr[3]=j;const V=kb(N,AC,4,kr,OC);return OC[V-1]}function Np(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),u=o-s,c=Math.abs(o+s);return Math.abs(u)>=t0e*c?u:-i0e(e,t,n,r,i,a,c)}const TC=Math.pow(2,-52),Lp=new Uint32Array(512);class uv{static from(t,n=c0e,r=l0e){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new uv(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,u=1/0,c=-1/0,l=-1/0;for(let $=0;$<o;$++){const z=t[2*$],I=t[2*$+1];z<s&&(s=z),I<u&&(u=I),z>c&&(c=z),I>l&&(l=I),this._ids[$]=$}const d=(s+c)/2,h=(u+l)/2;let g,m,y;for(let $=0,z=1/0;$<o;$++){const I=Rb(d,h,t[2*$],t[2*$+1]);I<z&&(g=$,z=I)}const v=t[2*g],b=t[2*g+1];for(let $=0,z=1/0;$<o;$++){if($===g)continue;const I=Rb(v,b,t[2*$],t[2*$+1]);I<z&&I>0&&(m=$,z=I)}let _=t[2*m],E=t[2*m+1],S=1/0;for(let $=0;$<o;$++){if($===g||$===m)continue;const z=s0e(v,b,_,E,t[2*$],t[2*$+1]);z<S&&(y=$,S=z)}let A=t[2*y],O=t[2*y+1];if(S===1/0){for(let I=0;I<o;I++)this._dists[I]=t[2*I]-t[0]||t[2*I+1]-t[1];Lc(this._ids,this._dists,0,o-1);const $=new Uint32Array(o);let z=0;for(let I=0,H=-1/0;I<o;I++){const D=this._ids[I],C=this._dists[D];C>H&&($[z++]=D,H=C)}this.hull=$.subarray(0,z),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Np(v,b,_,E,A,O)<0){const $=m,z=_,I=E;m=y,_=A,E=O,y=$,A=z,O=I}const P=u0e(v,b,_,E,A,O);this._cx=P.x,this._cy=P.y;for(let $=0;$<o;$++)this._dists[$]=Rb(t[2*$],t[2*$+1],P.x,P.y);Lc(this._ids,this._dists,0,o-1),this._hullStart=g;let j=3;r[g]=n[y]=m,r[m]=n[g]=y,r[y]=n[m]=g,i[g]=0,i[m]=1,i[y]=2,a.fill(-1),a[this._hashKey(v,b)]=g,a[this._hashKey(_,E)]=m,a[this._hashKey(A,O)]=y,this.trianglesLen=0,this._addTriangle(g,m,y,-1,-1,-1);for(let $=0,z,I;$<this._ids.length;$++){const H=this._ids[$],D=t[2*H],C=t[2*H+1];if($>0&&Math.abs(D-z)<=TC&&Math.abs(C-I)<=TC||(z=D,I=C,H===g||H===m||H===y))continue;let L=0;for(let R=0,W=this._hashKey(D,C);R<this._hashSize&&(L=a[(W+R)%this._hashSize],!(L!==-1&&L!==r[L]));R++);L=n[L];let N=L,V;for(;V=r[N],Np(D,C,t[2*N],t[2*N+1],t[2*V],t[2*V+1])>=0;)if(N=V,N===L){N=-1;break}if(N===-1)continue;let Z=this._addTriangle(N,H,r[N],-1,-1,i[N]);i[H]=this._legalize(Z+2),i[N]=Z,j++;let K=r[N];for(;V=r[K],Np(D,C,t[2*K],t[2*K+1],t[2*V],t[2*V+1])<0;)Z=this._addTriangle(K,H,V,i[H],-1,i[K]),i[H]=this._legalize(Z+2),r[K]=K,j--,K=V;if(N===L)for(;V=n[N],Np(D,C,t[2*V],t[2*V+1],t[2*N],t[2*N+1])<0;)Z=this._addTriangle(V,H,N,-1,i[N],i[V]),this._legalize(Z+2),i[V]=Z,r[N]=N,j--,N=V;this._hullStart=n[H]=N,r[N]=n[K]=H,r[H]=K,a[this._hashKey(D,C)]=H,a[this._hashKey(t[2*N],t[2*N+1])]=N}this.hull=new Uint32Array(j);for(let $=0,z=this._hullStart;$<j;$++)this.hull[$]=z,z=r[z];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(a0e(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],u=t-t%3;if(o=u+(t+2)%3,s===-1){if(a===0)break;t=Lp[--a];continue}const c=s-s%3,l=u+(t+1)%3,d=c+(s+2)%3,h=n[o],g=n[t],m=n[l],y=n[d];if(o0e(i[2*h],i[2*h+1],i[2*g],i[2*g+1],i[2*m],i[2*m+1],i[2*y],i[2*y+1])){n[t]=y,n[s]=h;const b=r[d];if(b===-1){let E=this._hullStart;do{if(this._hullTri[E]===d){this._hullTri[E]=t;break}E=this._hullPrev[E]}while(E!==this._hullStart)}this._link(t,b),this._link(s,r[o]),this._link(o,d);const _=c+(s+1)%3;a<Lp.length&&(Lp[a++]=_)}else{if(a===0)break;t=Lp[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function a0e(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Rb(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function o0e(e,t,n,r,i,a,o,s){const u=e-o,c=t-s,l=n-o,d=r-s,h=i-o,g=a-s,m=u*u+c*c,y=l*l+d*d,v=h*h+g*g;return u*(d*v-y*g)-c*(l*v-y*h)+m*(l*g-d*h)<0}function s0e(e,t,n,r,i,a){const o=n-e,s=r-t,u=i-e,c=a-t,l=o*o+s*s,d=u*u+c*c,h=.5/(o*c-s*u),g=(c*l-s*d)*h,m=(o*d-u*l)*h;return g*g+m*m}function u0e(e,t,n,r,i,a){const o=n-e,s=r-t,u=i-e,c=a-t,l=o*o+s*s,d=u*u+c*c,h=.5/(o*c-s*u),g=e+(c*l-s*d)*h,m=t+(o*d-u*l)*h;return{x:g,y:m}}function Lc(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;Sf(e,i,a),t[e[n]]>t[e[r]]&&Sf(e,n,r),t[e[a]]>t[e[r]]&&Sf(e,a,r),t[e[n]]>t[e[a]]&&Sf(e,n,a);const s=e[a],u=t[s];for(;;){do a++;while(t[e[a]]<u);do o--;while(t[e[o]]>u);if(o<a)break;Sf(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Lc(e,t,a,r),Lc(e,t,n,o-1)):(Lc(e,t,n,o-1),Lc(e,t,a,r))}}function Sf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function c0e(e){return e[0]}function l0e(e){return e[1]}const PC=1e-6;class uu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>PC||Math.abs(this._y1-a)>PC)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class qx{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class pD{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let y=0,v=0,b=r.length,_,E;y<b;y+=3,v+=2){const S=r[y]*2,A=r[y+1]*2,O=r[y+2]*2,P=t[S],j=t[S+1],$=t[A],z=t[A+1],I=t[O],H=t[O+1],D=$-P,C=z-j,L=I-P,N=H-j,V=(D*N-C*L)*2;if(Math.abs(V)<1e-9){if(a===void 0){a=o=0;for(const K of n)a+=t[K*2],o+=t[K*2+1];a/=n.length,o/=n.length}const Z=1e9*Math.sign((a-P)*N-(o-j)*L);_=(P+I)/2-Z*N,E=(j+H)/2+Z*L}else{const Z=1/V,K=D*D+C*C,R=L*L+N*N;_=P+(N*K-C*R)*Z,E=j+(D*R-L*K)*Z}s[v]=_,s[v+1]=E}let u=n[n.length-1],c,l=u*4,d,h=t[2*u],g,m=t[2*u+1];i.fill(0);for(let y=0;y<n.length;++y)u=n[y],c=l,d=h,g=m,l=u*4,h=t[2*u],m=t[2*u+1],i[c+2]=i[l]=g-m,i[c+3]=i[l+1]=h-d}render(t){const n=t==null?t=new uu:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let l=0,d=r.length;l<d;++l){const h=r[l];if(h<l)continue;const g=Math.floor(l/3)*2,m=Math.floor(h/3)*2,y=o[g],v=o[g+1],b=o[m],_=o[m+1];this._renderSegment(y,v,b,_,t)}let u,c=a[a.length-1];for(let l=0;l<a.length;++l){u=c,c=a[l];const d=Math.floor(i[c]/3)*2,h=o[d],g=o[d+1],m=u*4,y=this._project(h,g,s[m+2],s[m+3]);y&&this._renderSegment(h,g,y[0],y[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new uu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new uu:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new qx;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),u=this._regioncode(r,i);s===0&&u===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,u))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,u=i.length;s<u;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+u-2)%u]&&n[(a+3)%o]===i[(s+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let u=o;do{const c=Math.floor(u/3);if(s.push(n[c*2],n[c*2+1]),u=u%3===2?u-2:u+1,a[u]!==t)break;u=i[u]}while(u!==o&&u!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,s=n[r-2],u=n[r-1],c,l=this._regioncode(s,u),d,h=0;for(let g=0;g<r;g+=2)if(a=s,o=u,s=n[g],u=n[g+1],c=l,l=this._regioncode(s,u),c===0&&l===0)d=h,h=0,i?i.push(s,u):i=[s,u];else{let m,y,v,b,_;if(c===0){if((m=this._clipSegment(a,o,s,u,c,l))===null)continue;[y,v,b,_]=m}else{if((m=this._clipSegment(s,u,a,o,l,c))===null)continue;[b,_,y,v]=m,d=h,h=this._edgecode(y,v),d&&h&&this._edge(t,d,h,i,i.length),i?i.push(y,v):i=[y,v]}d=h,h=this._edgecode(b,_),d&&h&&this._edge(t,d,h,i,i.length),i?i.push(b,_):i=[b,_]}if(i)d=h,h=this._edgecode(i[0],i[1]),d&&h&&this._edge(t,d,h,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let u,c,l=a||o;l&8?(u=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):l&4?(u=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):l&2?(c=n+(i-n)*(this.xmax-t)/(r-t),u=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),u=this.xmin),a?(t=u,n=c,a=this._regioncode(t,n)):(r=u,i=c,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let s=Array.from(n),u;if((u=this._project(s[0],s[1],r,i))&&s.unshift(u[0],u[1]),(u=this._project(s[s.length-2],s[s.length-1],a,o))&&s.push(u[0],u[1]),s=this._clipFinite(t,s))for(let c=0,l=s.length,d,h=this._edgecode(s[l-2],s[l-1]);c<l;c+=2)d=h,h=this._edgecode(s[c],s[c+1]),d&&h&&(c=this._edge(t,d,h,s,c),l=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,u;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(u=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(u=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,u=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,u=n+(a=o)*i)}return[s,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const f0e=2*Math.PI,Ec=Math.pow;function d0e(e){return e[0]}function h0e(e){return e[1]}function p0e(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function g0e(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class kS{static from(t,n=d0e,r=h0e,i){return new kS("length"in t?v0e(t,n,r,i):Float64Array.from(m0e(t,n,r,i)))}constructor(t){this._delaunator=new uv(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&p0e(t)){this.collinear=Int32Array.from({length:n.length/2},(h,g)=>g).sort((h,g)=>n[2*h]-n[2*g]||n[2*h+1]-n[2*g+1]);const u=this.collinear[0],c=this.collinear[this.collinear.length-1],l=[n[2*u],n[2*u+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(l[3]-l[1],l[2]-l[0]);for(let h=0,g=n.length/2;h<g;++h){const m=g0e(n[2*h],n[2*h+1],d);n[2*h]=m[0],n[2*h+1]=m[1]}this._delaunator=new uv(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let u=0,c=r.length;u<c;++u){const l=a[u%3===2?u-2:u+1];(r[u]===-1||o[l]===-1)&&(o[l]=u)}for(let u=0,c=i.length;u<c;++u)s[i[u]]=u;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new pD(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const u=n[t];if(u===-1)return;let c=u,l=-1;do{if(yield l=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=a[c],c===-1){const d=r[(i[t]+1)%r.length];d!==l&&(yield d);return}}while(c!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:u,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let l=t,d=Ec(n-c[t*2],2)+Ec(r-c[t*2+1],2);const h=i[t];let g=h;do{let m=u[g];const y=Ec(n-c[m*2],2)+Ec(r-c[m*2+1],2);if(y<d&&(d=y,l=m),g=g%3===2?g-2:g+1,u[g]!==t)break;if(g=s[g],g===-1){if(g=a[(o[t]+1)%a.length],g!==m&&Ec(n-c[g*2],2)+Ec(r-c[g*2+1],2)<d)return g;break}}while(g!==h);return l}render(t){const n=t==null?t=new uu:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const u=i[o];if(u<o)continue;const c=a[o]*2,l=a[u]*2;t.moveTo(r[c],r[c+1]),t.lineTo(r[l],r[l+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new uu:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],u=i[a+1];t.moveTo(s+n,u),t.arc(s,u,n,0,f0e)}return r&&r.value()}renderHull(t){const n=t==null?t=new uu:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const u=2*r[s];t.lineTo(i[u],i[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new qx;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new uu:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,u=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[u],i[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new qx;return this.renderTriangle(t,n),n.value()}}function v0e(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*m0e(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var CC={},Ib={},Db=34,Af=10,Nb=13;function gD(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function y0e(e,t){var n=gD(e);return function(r,i){return t(n(r),i,e)}}function jC(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var i in r)i in t||n.push(t[i]=i)}),n}function Qr(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function b0e(e){return e<0?"-"+Qr(-e,6):e>9999?"+"+Qr(e,6):Qr(e,4)}function w0e(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":b0e(e.getUTCFullYear())+"-"+Qr(e.getUTCMonth()+1,2)+"-"+Qr(e.getUTCDate(),2)+(i?"T"+Qr(t,2)+":"+Qr(n,2)+":"+Qr(r,2)+"."+Qr(i,3)+"Z":r?"T"+Qr(t,2)+":"+Qr(n,2)+":"+Qr(r,2)+"Z":n||t?"T"+Qr(t,2)+":"+Qr(n,2)+"Z":"")}function ym(e){var t=new RegExp('["'+e+`
99
+ */var Z5;function ofe(){return Z5||(Z5=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=M,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,a=t.useEffect,o=t.useMemo,s=t.useDebugValue;Eb.useSyncExternalStoreWithSelector=function(u,c,l,d,h){var g=i(null);if(g.current===null){var m={hasValue:!1,value:null};g.current=m}else m=g.current;g=o(function(){function v(A){if(!b){if(b=!0,_=A,A=d(A),h!==void 0&&m.hasValue){var O=m.value;if(h(O,A))return E=O}return E=A}if(O=E,n(_,A))return O;var P=d(A);return h!==void 0&&h(O,P)?(_=A,O):(_=A,E=P)}var b=!1,_,E,S=l===void 0?null:l;return[function(){return v(c())},S===null?void 0:function(){return v(S())}]},[c,l,d,h]);var y=r(u,g[0],g[1]);return a(function(){m.hasValue=!0,m.value=y},[y]),s(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Eb}var J5;function sfe(){return J5||(J5=1,process.env.NODE_ENV==="production"?kp.exports=afe():kp.exports=ofe()),kp.exports}sfe();function ufe(e){e()}function cfe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ufe(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Q5={notify(){},get:()=>[]};function lfe(e,t){let n,r=Q5,i=0,a=!1;function o(y){l();const v=r.subscribe(y);let b=!1;return()=>{b||(b=!0,v(),d())}}function s(){r.notify()}function u(){m.onStateChange&&m.onStateChange()}function c(){return a}function l(){i++,n||(n=e.subscribe(u),r=cfe())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Q5)}function h(){a||(a=!0,l())}function g(){a&&(a=!1,d())}const m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:c,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>r};return m}var ffe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",dfe=ffe(),hfe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",pfe=hfe(),gfe=()=>dfe||pfe?B.useLayoutEffect:B.useEffect,vfe=gfe(),mfe=Symbol.for("react-redux-context"),yfe=typeof globalThis<"u"?globalThis:{};function bfe(){if(!B.createContext)return{};const e=yfe[mfe]??=new Map;let t=e.get(B.createContext);return t||(t=B.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(B.createContext,t)),t}var wfe=bfe();function xfe(e){const{children:t,context:n,serverState:r,store:i}=e,a=B.useMemo(()=>{const u=lfe(i),c={store:i,subscription:u,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:d="once"}=e;return Object.assign(c,{stabilityCheck:d,identityFunctionCheck:l})}},[i,r]),o=B.useMemo(()=>i.getState(),[i]);vfe(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,o]);const s=n||wfe;return B.createElement(s.Provider,{value:a},t)}var _fe=xfe,Efe=(e,t)=>t,gS=se([Efe,It,Yte,tr,hR,Ho,$re,Hn],qre),vS=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},CI=Zi("mouseClick"),jI=Xd();jI.startListening({actionCreator:CI,effect:(e,t)=>{var n=e.payload,r=gS(t.getState(),vS(n));r?.activeIndex!=null&&t.dispatch(Yne({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Ox=Zi("mouseMove"),MI=Xd();MI.startListening({actionCreator:Ox,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=qE(r,r.tooltip.settings.shared),a=gS(r,vS(n));i==="axis"&&(a?.activeIndex!=null?t.dispatch(oR({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(aR()))}});function Sfe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var eC={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},kI=ea({name:"rootProps",initialState:eC,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:eC.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}}}),Afe=kI.reducer,{updateOptions:Ofe}=kI.actions,RI=ea({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Tfe}=RI.actions,Pfe=RI.reducer,II=Zi("keyDown"),DI=Zi("focus"),mS=Xd();mS.startListening({actionCreator:II,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(VE(i,qu(n))),s=Ho(n);if(a==="Enter"){var u=Xg(n,"axis","hover",String(i.index));t.dispatch(fx({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:u}));return}var c=zne(n),l=c==="left-to-right"?1:-1,d=a==="ArrowRight"?1:-1,h=o+d*l;if(!(s==null||h>=s.length||h<0)){var g=Xg(n,"axis","hover",String(h));t.dispatch(fx({active:!0,activeIndex:h.toString(),activeDataKey:void 0,activeCoordinate:g}))}}}}});mS.startListening({actionCreator:DI,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var a="0",o=Xg(n,"axis","hover",String(a));t.dispatch(fx({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var qi=Zi("externalEvent"),NI=Xd();NI.startListening({actionCreator:qi,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:Cre(n),activeDataKey:mR(n),activeIndex:Do(n),activeLabel:vR(n),activeTooltipIndex:Do(n),isTooltipActive:jre(n)};e.payload.handler(r,e.payload.reactEvent)}}});var Cfe=se([Il],e=>e.tooltipItemPayloads),jfe=se([Cfe,sh,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(s=>s.settings.dataKey===r);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,n);return o}}}),LI=Zi("touchMove"),$I=Xd();$I.startListening({actionCreator:LI,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=qE(r,r.tooltip.settings.shared);if(i==="axis"){var a=gS(r,vS({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));a?.activeIndex!=null&&t.dispatch(oR({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,s=n.touches[0],u=document.elementFromPoint(s.clientX,s.clientY);if(!u||!u.getAttribute)return;var c=u.getAttribute(T2),l=(o=u.getAttribute(P2))!==null&&o!==void 0?o:void 0,d=jfe(t.getState(),c,l);t.dispatch(iR({activeDataKey:l,activeIndex:c,activeCoordinate:d}))}}});var Mfe=$j({brush:tue,cartesianAxis:cle,chartData:aie,graphicalItems:Gae,layout:BY,legend:AX,options:eie,polarAxis:Mae,polarOptions:Pfe,referenceElements:hue,rootProps:Afe,tooltip:Xne}),kfe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return lY({reducer:Mfe,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([jI.middleware,MI.middleware,mS.middleware,NI.middleware,$I.middleware]),devTools:{serialize:{replacer:Sfe},name:"recharts-".concat(n)}})};function BI(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Un(),a=M.useRef(null);if(i)return n;a.current==null&&(a.current=kfe(t,r));var o=y2;return B.createElement(_fe,{context:o,store:a.current},n)}function zI(e){var{layout:t,width:n,height:r,margin:i}=e,a=en(),o=Un();return M.useEffect(()=>{o||(a(NY(t)),a(LY({width:n,height:r})),a(DY(i)))},[a,o,t,n,r,i]),null}function FI(e){var t=en();return M.useEffect(()=>{t(Ofe(e))},[t,e]),null}var Rfe=["children"];function Ife(e,t){if(e==null)return{};var n,r,i=Dfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(null,arguments)}var Nfe={width:"100%",height:"100%"},Lfe=M.forwardRef((e,t)=>{var n=C2(),r=j2(),i=w7();if(!el(n)||!el(r))return null;var{children:a,otherAttributes:o,title:s,desc:u}=e,c,l;return typeof o.tabIndex=="number"?c=o.tabIndex:c=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0,B.createElement(K_,iv({},o,{title:s,desc:u,role:l,tabIndex:c,width:n,height:r,style:Nfe,ref:t}),a)}),$fe=e=>{var{children:t}=e,n=ke(h0);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return B.createElement(K_,{width:r,height:i,x:o,y:a},t)},tC=M.forwardRef((e,t)=>{var{children:n}=e,r=Ife(e,Rfe),i=Un();return i?B.createElement($fe,null,n):B.createElement(Lfe,iv({ref:t},r),n)});function Bfe(){var e=en(),[t,n]=M.useState(null),r=ke(hX);return M.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;lr(a)&&a!==r&&e($Y(a))}},[t,e,r]),n}function nC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zfe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nC(Object(n),!0).forEach(function(r){Ffe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ffe(e,t,n){return(t=Wfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wfe(e){var t=qfe(e,"string");return typeof t=="symbol"?t:t+""}function qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vfe=M.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:u,onMouseEnter:c,onMouseLeave:l,onMouseMove:d,onMouseUp:h,onTouchEnd:g,onTouchMove:m,onTouchStart:y,style:v,width:b}=e,_=en(),[E,S]=M.useState(null),[A,O]=M.useState(null);uie();var P=Bfe(),j=M.useCallback(U=>{P(U),typeof t=="function"&&t(U),S(U),O(U)},[P,t,S,O]),$=M.useCallback(U=>{_(CI(U)),_(qi({handler:a,reactEvent:U}))},[_,a]),z=M.useCallback(U=>{_(Ox(U)),_(qi({handler:c,reactEvent:U}))},[_,c]),I=M.useCallback(U=>{_(aR()),_(qi({handler:l,reactEvent:U}))},[_,l]),H=M.useCallback(U=>{_(Ox(U)),_(qi({handler:d,reactEvent:U}))},[_,d]),D=M.useCallback(()=>{_(DI())},[_]),C=M.useCallback(U=>{_(II(U.key))},[_]),L=M.useCallback(U=>{_(qi({handler:o,reactEvent:U}))},[_,o]),N=M.useCallback(U=>{_(qi({handler:s,reactEvent:U}))},[_,s]),V=M.useCallback(U=>{_(qi({handler:u,reactEvent:U}))},[_,u]),Z=M.useCallback(U=>{_(qi({handler:h,reactEvent:U}))},[_,h]),K=M.useCallback(U=>{_(qi({handler:y,reactEvent:U}))},[_,y]),R=M.useCallback(U=>{_(LI(U)),_(qi({handler:m,reactEvent:U}))},[_,m]),W=M.useCallback(U=>{_(qi({handler:g,reactEvent:U}))},[_,g]);return B.createElement(SR.Provider,{value:E},B.createElement(N8.Provider,{value:A},B.createElement("div",{className:Ot("recharts-wrapper",r),style:zfe({position:"relative",cursor:"default",width:b,height:i},v),onClick:$,onContextMenu:L,onDoubleClick:N,onFocus:D,onKeyDown:C,onMouseDown:V,onMouseEnter:z,onMouseLeave:I,onMouseMove:H,onMouseUp:Z,onTouchEnd:W,onTouchMove:R,onTouchStart:K,ref:j},n)))}),Hfe=["children","className","width","height","style","compact","title","desc"];function Ufe(e,t){if(e==null)return{};var n,r,i=Gfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var WI=M.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:a,style:o,compact:s,title:u,desc:c}=e,l=Ufe(e,Hfe),d=it(l,!1);return s?B.createElement(tC,{otherAttributes:d,title:u,desc:c},n):B.createElement(Vfe,{className:r,style:o,width:i,height:a,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},B.createElement(tC,{otherAttributes:d,title:u,desc:c,ref:t},B.createElement(pue,null,n)))}),Kfe=["width","height"];function Tx(){return Tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tx.apply(null,arguments)}function Yfe(e,t){if(e==null)return{};var n,r,i=Xfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Zfe={top:5,right:5,bottom:5,left:5},Jfe={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Zfe,reverseStackOrder:!1,syncMethod:"index"},ph=M.forwardRef(function(t,n){var r,i=li(t.categoricalChartProps,Jfe),{width:a,height:o}=i,s=Yfe(i,Kfe);if(!el(a)||!el(o))return null;var{chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,categoricalChartProps:h}=t,g={chartName:u,defaultTooltipEventType:c,validateTooltipEventTypes:l,tooltipPayloadSearcher:d,eventEmitter:void 0};return B.createElement(BI,{preloadedState:{options:g},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:u},B.createElement(QR,{chartData:h.data}),B.createElement(zI,{width:a,height:o,layout:i.layout,margin:i.margin}),B.createElement(FI,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),B.createElement(WI,Tx({},s,{width:a,height:o,ref:n})))}),Qfe=["axis"],ede=M.forwardRef((e,t)=>B.createElement(ph,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Qfe,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t})),tde=["axis","item"],nde=M.forwardRef((e,t)=>B.createElement(ph,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:tde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t}));function rde(e){var t=en();return M.useEffect(()=>{t(Tfe(e))},[t,e]),null}var ide=["width","height","layout"];function Px(){return Px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Px.apply(null,arguments)}function ade(e,t){if(e==null)return{};var n,r,i=ode(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ode(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sde={top:5,right:5,bottom:5,left:5},ude={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:sde,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},cde=M.forwardRef(function(t,n){var r,i=li(t.categoricalChartProps,ude),{width:a,height:o,layout:s}=i,u=ade(i,ide);if(!el(a)||!el(o))return null;var{chartName:c,defaultTooltipEventType:l,validateTooltipEventTypes:d,tooltipPayloadSearcher:h}=t,g={chartName:c,defaultTooltipEventType:l,validateTooltipEventTypes:d,tooltipPayloadSearcher:h,eventEmitter:void 0};return B.createElement(BI,{preloadedState:{options:g},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:c},B.createElement(QR,{chartData:i.data}),B.createElement(zI,{width:a,height:o,layout:s,margin:i.margin}),B.createElement(FI,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),B.createElement(rde,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),B.createElement(WI,Px({width:a,height:o},u,{ref:n})))}),lde=["item"],fde={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},dde=M.forwardRef((e,t)=>{var n=li(e,fde);return B.createElement(cde,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:lde,tooltipPayloadSearcher:Nl,categoricalChartProps:n,ref:t})}),hde=["item"],pde=M.forwardRef((e,t)=>B.createElement(ph,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:hde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t})),gde=["axis"],qI=M.forwardRef((e,t)=>B.createElement(ph,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:gde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t})),vde=["axis"],VI=M.forwardRef((e,t)=>B.createElement(ph,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:vde,tooltipPayloadSearcher:Nl,categoricalChartProps:e,ref:t}));function cm({payload:e,label:t,description:n,chartType:r}){return w.jsxs("div",{style:{backgroundColor:"rgba(256, 256, 256, 0.8)",color:"black",padding:"15px",borderRadius:"10px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.2)",display:"flex",flexDirection:"column",userSelect:"none"},children:[r==="lineChart"&&w.jsxs(w.Fragment,{children:[w.jsx("p",{style:{margin:0,fontWeight:"bold"},children:t}),e?.map(i=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:i[Object.keys(i)[3]]}),w.jsx("span",{children:w.jsx("b",{children:i.value})})]},i?.toString())),n&&w.jsx("div",{style:{marginTop:"10px",fontStyle:"italic",color:"#666"},children:w.jsx("p",{children:n})})]}),r==="rangeAreaChart"&&w.jsxs(w.Fragment,{children:[w.jsx("p",{style:{margin:0,fontWeight:"bold"},children:t}),e?.map(i=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:i[Object.keys(i)[3]]}),w.jsx("span",{children:w.jsxs("b",{children:[i.value[0]," - ",i.value[1]]})})]},i.toString())),n&&w.jsx("div",{style:{marginTop:"10px",fontStyle:"italic",color:"#666"},children:w.jsx("p",{children:n})})]}),r==="simpleAreaChart"&&w.jsxs(w.Fragment,{children:[w.jsx("p",{style:{margin:0,fontWeight:"bold"},children:t}),e?.map(i=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:i[Object.keys(i)[3]]}),w.jsx("span",{children:w.jsx("b",{children:i.value})})]},i.toString())),n&&w.jsx("div",{style:{marginTop:"10px",fontStyle:"italic",color:"#666"},children:w.jsx("p",{children:n})})]}),r==="scatterChart"&&e?.map((i,a)=>w.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"5px",padding:"10px"},children:[w.jsx("span",{style:{color:i.color,marginRight:"10px"},children:w.jsx("b",{children:i.value})}),w.jsx("span",{children:a!==0?i[Object.keys(i)[1]]:null})]},i.toString()))]})}const yS=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(2.55*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`};function mde({data:e,width:t="100%",height:n="100%",area:r,hideDots:i=!1,hideAxis:a=!1,hideLegend:o=!1,hideValues:s=!1,yAxisOptions:u={allowDuplicatedCategory:!1},xAxisOptions:c={allowDuplicatedCategory:!1},gridOptions:l={},dataKeys:d,strokeColors:h,fillColors:g,connectNulls:m,description:y,dataNames:v,type:b="monotone"}){const E=ie.useTheme().palette.primary.main??"#00796b",S=d.map((O,P)=>yS(E,P*10)),A=r?qI:ede;return w.jsx(Vu,{height:n,width:t,style:{userSelect:"none"},children:w.jsxs(A,{data:e,children:[w.jsx("defs",{children:r&&g?.map((O,P)=>w.jsxs("linearGradient",{id:`colorPv${P}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"5%",stopColor:g?O:E,stopOpacity:.5}),w.jsx("stop",{offset:"95%",stopColor:g?O:E,stopOpacity:0})]},`colorPv${P}`))}),w.jsx(Hu,{...l}),w.jsx(Ds,{dataKey:"name",hide:a,includeHidden:!0,padding:{left:10,right:10},...c}),w.jsx(No,{hide:a,...u}),w.jsx(uh,{content:w.jsx(cm,{description:y,chartType:"lineChart"}),cursor:{stroke:"red",strokeWidth:3}}),!o&&w.jsx(Cs,{verticalAlign:"top",height:36}),d.map((O,P)=>r?w.jsx($l,{fillOpacity:1,fill:`url(#colorPv${P})`,type:b,dataKey:O,stroke:h?h[P]:S[P],connectNulls:m,dot:i,activeDot:{r:8,stroke:h?h[P]:S[P],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:E,fontSize:16,position:"top"},name:v?v[P]:O},O):w.jsx(dh,{type:b,dataKey:O,stroke:h?h[P]:S[P],fill:g?g[P]:E,connectNulls:m,dot:i,activeDot:{r:8,stroke:h?h[P]:S[P],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:E,fontSize:16,position:"top"},name:v?v[P]:O},O)),w.jsx(hh,{name:"B school",dataKey:"point",fill:"#82ca9d"})]})})}const yde=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(4*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`};let bde=class extends M.PureComponent{render(){const{x:t,y:n,payload:r}=this.props;return w.jsx("g",{transform:`translate(${t},${n})`,children:w.jsx("text",{x:0,y:0,dy:16,textAnchor:"end",fill:"#666",transform:"rotate(-35)",children:r.value})})}};function wde({data:e,width:t,height:n,dataKeys:r,strokeColors:i,fillColors:a,connectNulls:o,description:s,dataNames:u,type:c}){const l="#1d5a52",d=r.map((y,v)=>yde(l,v*10)),h=d,g=i||d,m=a||h;return w.jsx(Vu,{height:n||300,width:t||"50%",style:{marginTop:"20px",userSelect:"none"},children:w.jsxs(qI,{data:e,margin:{top:20,right:30,left:30,bottom:10},children:[w.jsx(Hu,{stroke:"#f5f5f5",strokeDasharray:"8 15"}),w.jsx(Ds,{dataKey:"name",height:60,tick:w.jsx(bde,{x:0,y:0,stroke:"#666",payload:{value:""}})}),w.jsx(No,{}),w.jsx(uh,{content:w.jsx(cm,{description:s,chartType:"rangeAreaChart"}),cursor:{stroke:"red",strokeWidth:3}}),w.jsx(Cs,{verticalAlign:"top",height:36}),r.map((y,v)=>w.jsx($l,{type:c||"monotone",dataKey:y,stroke:g[v],fill:m[v],connectNulls:o||!1,activeDot:{r:8,stroke:g[v],strokeWidth:2},strokeWidth:3,name:u?u[v]:y},y))]})})}function xde({data:e,width:t="100%",height:n="100%",barWidth:r=50,hideAxis:i=!1,hideLegend:a=!1,hideValues:o=!1,yAxisOptions:s={},xAxisOptions:u={},gridOptions:c={},dataKeys:l,strokeColors:d,fillColors:h,dataNames:g,tickRotation:m}){class y extends M.PureComponent{render(){const{x:S,y:A,payload:O}=this.props;return w.jsx("g",{transform:`translate(${S},${A})`,children:w.jsx("text",{x:0,y:-10,dy:16,textAnchor:m?"end":"middle",fill:"#666",transform:m?`rotate(${m})`:"",fontSize:12,children:O.value})})}}const b=ie.useTheme().palette.primary.main??"#00796b",_=l.map((E,S)=>yS(b,S*10));return w.jsx(Vu,{height:n,width:t,style:{userSelect:"none"},children:w.jsxs(nde,{data:e,children:[w.jsx(Hu,{...c}),w.jsx(Ds,{dataKey:"name",hide:i,includeHidden:!0,padding:{left:10,right:10},...u,tick:E=>w.jsx(y,{...E})}),w.jsx(No,{hide:i,...s}),!a&&w.jsx(Cs,{verticalAlign:"top",height:36}),l.map((E,S)=>w.jsx(aS,{dataKey:E,barSize:r,stroke:d?d[S]:_[S],fill:h?h[S]:b,strokeWidth:3,label:o?void 0:{fill:b,fontSize:16,position:"top"},name:g?g[S]:E},E))]})})}const _de=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(2.55*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`},Ede=e=>{const t=Math.PI/180,{cx:n,cy:r,midAngle:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u,fill:c,payload:l,percent:d,value:h}=e,g=Math.sin(-t*i),m=Math.cos(-t*i),y=n+(o+10)*m,v=r+(o+10)*g,b=n+(o+30)*m,_=r+(o+30)*g,E=b+(m>=0?1:-1)*22,S=_,A=m>=0?"start":"end";return w.jsxs("g",{children:[w.jsx("text",{x:n,y:r,dy:8,textAnchor:"middle",fill:c,style:{fontSize:"20px",fontWeight:"bold"},children:l.name}),w.jsx(Dg,{cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:s,endAngle:u,fill:c}),w.jsx(Dg,{cx:n,cy:r,startAngle:s,endAngle:u,innerRadius:o+6,outerRadius:o+10,fill:c}),w.jsx("path",{d:`M${y},${v}L${b},${_}L${E},${S}`,stroke:c,fill:"none"}),w.jsx("circle",{cx:E,cy:S,r:2,fill:c,stroke:"none"}),w.jsx("text",{x:E+(m>=0?1:-1)*12,y:S,textAnchor:A,fill:"#333",style:{fontSize:"20px",fontWeight:"bold"},children:`PV ${h}`}),w.jsx("text",{x:E+(m>=0?1:-1)*12,y:S,dy:18,textAnchor:A,fill:"#999",style:{fontSize:"20px",fontWeight:"bold"},children:`(Rate ${(d*100).toFixed(2)}%)`})]})};function Sde({data:e,width:t,height:n,dataKeys:r,fillColors:i,dataNames:a}){const o="#1d5a52",u=e.map((l,d)=>_de(o,d*10)),c=i||u;return w.jsx(Vu,{height:n||300,width:t||"50%",style:{marginTop:"20px",userSelect:"none"},children:w.jsx(dde,{data:e,margin:{top:20,right:30,left:30,bottom:50},children:r.map((l,d)=>w.jsx(rS,{data:e,dataKey:l,strokeWidth:3,activeShape:Ede,name:a?a[d]:l,outerRadius:150,innerRadius:80,cx:"50%",cy:"50%",labelLine:!1,children:e.map((h,g)=>w.jsx(Ll,{fill:c[g]},h.toString()))},l))})})}const Ade=(e,t)=>{const n=parseInt(e.slice(1),16),r=Math.round(5*t),i=(n>>16)+r,a=(n>>8&255)+r,o=(n&255)+r;return`#${(16777216+(i<255?i<1?0:i:255)*65536+(a<255?a<1?0:a:255)*256+(o<255?o<1?0:o:255)).toString(16).slice(1).toUpperCase()}`};class Ode extends M.PureComponent{render(){const{x:t,y:n,stroke:r,payload:i}=this.props;return w.jsx("g",{transform:`translate(${t},${n})`,children:w.jsx("text",{x:0,y:0,dy:16,textAnchor:"end",fill:r,transform:"rotate(-35)",children:i.value})})}}function Tde({data:e,width:t,height:n,dataKeys:r,strokeColors:i,fillColors:a,description:o,dataNames:s}){const u="#1d5a52",c=r.map((g,m)=>Ade(u,m*10)),l=c,d=i||c,h=a||l;return w.jsx(Vu,{height:n||300,width:t||"50%",style:{marginTop:"20px",userSelect:"none"},children:w.jsxs(pde,{data:e,margin:{top:20,right:30,left:30,bottom:10},children:[w.jsx(Hu,{stroke:"#f5f5f5",strokeDasharray:"8 15"}),w.jsx(Ds,{dataKey:"name",height:60,tick:w.jsx(Ode,{x:0,y:0,stroke:"#666",payload:{value:""}})}),w.jsx(No,{}),w.jsx(uh,{content:w.jsx(cm,{description:o,chartType:"scatterChart"}),cursor:{stroke:"red",strokeWidth:3}}),w.jsx(Cs,{verticalAlign:"top",height:36}),r.map((g,m)=>w.jsx(hh,{dataKey:g,stroke:d[m],fill:h[m],strokeWidth:3,label:{fill:"white",fontSize:15,fontWeight:"bold",position:"top"},name:s?s[m]:g},g))]})})}var os={},Zr={};function Pde(e){return e}var sg=1,ug=2,Cx=3,Ff=4,rC=1e-6;function Cde(e){return"translate("+e+",0)"}function jde(e){return"translate(0,"+e+")"}function Mde(e){return t=>+e(t)}function kde(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Rde(){return!this.__axis}function lm(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===sg||e===Ff?-1:1,l=e===Ff||e===ug?"x":"y",d=e===sg||e===Cx?Cde:jde;function h(g){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),y=i??(t.tickFormat?t.tickFormat.apply(t,n):Pde),v=Math.max(a,0)+s,b=t.range(),_=+b[0]+u,E=+b[b.length-1]+u,S=(t.bandwidth?kde:Mde)(t.copy(),u),A=g.selection?g.selection():g,O=A.selectAll(".domain").data([null]),P=A.selectAll(".tick").data(m,t).order(),j=P.exit(),$=P.enter().append("g").attr("class","tick"),z=P.select("line"),I=P.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge($),z=z.merge($.append("line").attr("stroke","currentColor").attr(l+"2",c*a)),I=I.merge($.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",e===sg?"0em":e===Cx?"0.71em":"0.32em")),g!==A&&(O=O.transition(g),P=P.transition(g),z=z.transition(g),I=I.transition(g),j=j.transition(g).attr("opacity",rC).attr("transform",function(H){return isFinite(H=S(H))?d(H+u):this.getAttribute("transform")}),$.attr("opacity",rC).attr("transform",function(H){var D=this.parentNode.__axis;return d((D&&isFinite(D=D(H))?D:S(H))+u)})),j.remove(),O.attr("d",e===Ff||e===ug?o?"M"+c*o+","+_+"H"+u+"V"+E+"H"+c*o:"M"+u+","+_+"V"+E:o?"M"+_+","+c*o+"V"+u+"H"+E+"V"+c*o:"M"+_+","+u+"H"+E),P.attr("opacity",1).attr("transform",function(H){return d(S(H)+u)}),z.attr(l+"2",c*a),I.attr(l,c*v).text(y),A.filter(Rde).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===ug?"start":e===Ff?"end":"middle"),A.each(function(){this.__axis=S})}return h.scale=function(g){return arguments.length?(t=g,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(g){return arguments.length?(n=g==null?[]:Array.from(g),h):n.slice()},h.tickValues=function(g){return arguments.length?(r=g==null?null:Array.from(g),h):r&&r.slice()},h.tickFormat=function(g){return arguments.length?(i=g,h):i},h.tickSize=function(g){return arguments.length?(a=o=+g,h):a},h.tickSizeInner=function(g){return arguments.length?(a=+g,h):a},h.tickSizeOuter=function(g){return arguments.length?(o=+g,h):o},h.tickPadding=function(g){return arguments.length?(s=+g,h):s},h.offset=function(g){return arguments.length?(u=+g,h):u},h}function Ide(e){return lm(sg,e)}function Dde(e){return lm(ug,e)}function Nde(e){return lm(Cx,e)}function Lde(e){return lm(Ff,e)}var $de={value:()=>{}};function Uu(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new cg(n)}function cg(e){this._=e}function Bde(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}cg.prototype=Uu.prototype={constructor:cg,on:function(e,t){var n=this._,r=Bde(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=zde(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=iC(n[i],e.name,t);else if(t==null)for(i in n)n[i]=iC(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new cg(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function zde(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function iC(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=$de,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var jx="http://www.w3.org/1999/xhtml";const Mx={svg:"http://www.w3.org/2000/svg",xhtml:jx,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gh(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Mx.hasOwnProperty(t)?{space:Mx[t],local:e}:e}function Fde(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===jx&&t.documentElement.namespaceURI===jx?t.createElement(e):t.createElementNS(n,e)}}function Wde(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function fm(e){var t=gh(e);return(t.local?Wde:Fde)(t)}function qde(){}function dm(e){return e==null?qde:function(){return this.querySelector(e)}}function Vde(e){typeof e!="function"&&(e=dm(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,c,l=0;l<o;++l)(u=a[l])&&(c=e.call(u,u.__data__,l,a))&&("__data__"in u&&(c.__data__=u.__data__),s[l]=c);return new Fr(r,this._parents)}function HI(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Hde(){return[]}function bS(e){return e==null?Hde:function(){return this.querySelectorAll(e)}}function Ude(e){return function(){return HI(e.apply(this,arguments))}}function Gde(e){typeof e=="function"?e=Ude(e):e=bS(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new Fr(r,i)}function wS(e){return function(){return this.matches(e)}}function UI(e){return function(t){return t.matches(e)}}var Kde=Array.prototype.find;function Yde(e){return function(){return Kde.call(this.children,e)}}function Xde(){return this.firstElementChild}function Zde(e){return this.select(e==null?Xde:Yde(typeof e=="function"?e:UI(e)))}var Jde=Array.prototype.filter;function Qde(){return Array.from(this.children)}function ehe(e){return function(){return Jde.call(this.children,e)}}function the(e){return this.selectAll(e==null?Qde:ehe(typeof e=="function"?e:UI(e)))}function nhe(e){typeof e!="function"&&(e=wS(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new Fr(r,this._parents)}function GI(e){return new Array(e.length)}function rhe(){return new Fr(this._enter||this._groups.map(GI),this._parents)}function av(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}av.prototype={constructor:av,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ihe(e){return function(){return e}}function ahe(e,t,n,r,i,a){for(var o=0,s,u=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new av(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function ohe(e,t,n,r,i,a,o){var s,u,c=new Map,l=t.length,d=a.length,h=new Array(l),g;for(s=0;s<l;++s)(u=t[s])&&(h[s]=g=o.call(u,u.__data__,s,t)+"",c.has(g)?i[s]=u:c.set(g,u));for(s=0;s<d;++s)g=o.call(e,a[s],s,a)+"",(u=c.get(g))?(r[s]=u,u.__data__=a[s],c.delete(g)):n[s]=new av(e,a[s]);for(s=0;s<l;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function she(e){return e.__data__}function uhe(e,t){if(!arguments.length)return Array.from(this,she);var n=t?ohe:ahe,r=this._parents,i=this._groups;typeof e!="function"&&(e=ihe(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var l=r[c],d=i[c],h=d.length,g=che(e.call(l,l&&l.__data__,c,r)),m=g.length,y=s[c]=new Array(m),v=o[c]=new Array(m),b=u[c]=new Array(h);n(l,d,y,v,b,g,t);for(var _=0,E=0,S,A;_<m;++_)if(S=y[_]){for(_>=E&&(E=_+1);!(A=v[E])&&++E<m;);S._next=A||null}}return o=new Fr(o,r),o._enter=s,o._exit=u,o}function che(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lhe(){return new Fr(this._exit||this._groups.map(GI),this._parents)}function fhe(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function dhe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c=n[u],l=r[u],d=c.length,h=s[u]=new Array(d),g,m=0;m<d;++m)(g=c[m]||l[m])&&(h[m]=g);for(;u<i;++u)s[u]=n[u];return new Fr(s,this._parents)}function hhe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function phe(e){e||(e=ghe);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),c,l=0;l<s;++l)(c=o[l])&&(u[l]=c);u.sort(t)}return new Fr(i,this._parents).order()}function ghe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vhe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mhe(){return Array.from(this)}function yhe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function bhe(){let e=0;for(const t of this)++e;return e}function whe(){return!this.node()}function xhe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function _he(e){return function(){this.removeAttribute(e)}}function Ehe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function She(e,t){return function(){this.setAttribute(e,t)}}function Ahe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ohe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function The(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Phe(e,t){var n=gh(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Ehe:_he:typeof t=="function"?n.local?The:Ohe:n.local?Ahe:She)(n,t))}function xS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Che(e){return function(){this.style.removeProperty(e)}}function jhe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Mhe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function khe(e,t,n){return arguments.length>1?this.each((t==null?Che:typeof t=="function"?Mhe:jhe)(e,t,n??"")):Ru(this.node(),e)}function Ru(e,t){return e.style.getPropertyValue(t)||xS(e).getComputedStyle(e,null).getPropertyValue(t)}function Rhe(e){return function(){delete this[e]}}function Ihe(e,t){return function(){this[e]=t}}function Dhe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Nhe(e,t){return arguments.length>1?this.each((t==null?Rhe:typeof t=="function"?Dhe:Ihe)(e,t)):this.node()[e]}function KI(e){return e.trim().split(/^|\s+/)}function _S(e){return e.classList||new YI(e)}function YI(e){this._node=e,this._names=KI(e.getAttribute("class")||"")}YI.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function XI(e,t){for(var n=_S(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function ZI(e,t){for(var n=_S(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Lhe(e){return function(){XI(this,e)}}function $he(e){return function(){ZI(this,e)}}function Bhe(e,t){return function(){(t.apply(this,arguments)?XI:ZI)(this,e)}}function zhe(e,t){var n=KI(e+"");if(arguments.length<2){for(var r=_S(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Bhe:t?Lhe:$he)(n,t))}function Fhe(){this.textContent=""}function Whe(e){return function(){this.textContent=e}}function qhe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Vhe(e){return arguments.length?this.each(e==null?Fhe:(typeof e=="function"?qhe:Whe)(e)):this.node().textContent}function Hhe(){this.innerHTML=""}function Uhe(e){return function(){this.innerHTML=e}}function Ghe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Khe(e){return arguments.length?this.each(e==null?Hhe:(typeof e=="function"?Ghe:Uhe)(e)):this.node().innerHTML}function Yhe(){this.nextSibling&&this.parentNode.appendChild(this)}function Xhe(){return this.each(Yhe)}function Zhe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Jhe(){return this.each(Zhe)}function Qhe(e){var t=typeof e=="function"?e:fm(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function epe(){return null}function tpe(e,t){var n=typeof e=="function"?e:fm(e),r=t==null?epe:typeof t=="function"?t:dm(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function npe(){var e=this.parentNode;e&&e.removeChild(this)}function rpe(){return this.each(npe)}function ipe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ape(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ope(e){return this.select(e?ape:ipe)}function spe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function upe(e){return function(t){e.call(this,t,this.__data__)}}function cpe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function lpe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function fpe(e,t,n){return function(){var r=this.__on,i,a=upe(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function dpe(e,t,n){var r=cpe(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,l;u<c;++u)for(i=0,l=s[u];i<a;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value}return}for(s=t?fpe:lpe,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function JI(e,t,n){var r=xS(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function hpe(e,t){return function(){return JI(this,e,t)}}function ppe(e,t){return function(){return JI(this,e,t.apply(this,arguments))}}function gpe(e,t){return this.each((typeof t=="function"?ppe:hpe)(e,t))}function*vpe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var ES=[null];function Fr(e,t){this._groups=e,this._parents=t}function Gu(){return new Fr([[document.documentElement]],ES)}function mpe(){return this}Fr.prototype=Gu.prototype={constructor:Fr,select:Vde,selectAll:Gde,selectChild:Zde,selectChildren:the,filter:nhe,data:uhe,enter:rhe,exit:lhe,join:fhe,merge:dhe,selection:mpe,order:hhe,sort:phe,call:vhe,nodes:mhe,node:yhe,size:bhe,empty:whe,each:xhe,attr:Phe,style:khe,property:Nhe,classed:zhe,text:Vhe,html:Khe,raise:Xhe,lower:Jhe,append:Qhe,insert:tpe,remove:rpe,clone:ope,datum:spe,on:dpe,dispatch:gpe,[Symbol.iterator]:vpe};function Sr(e){return typeof e=="string"?new Fr([[document.querySelector(e)]],[document.documentElement]):new Fr([[e]],ES)}function ype(e){return Sr(fm(e).call(document.documentElement))}var bpe=0;function QI(){return new kx}function kx(){this._="@"+(++bpe).toString(36)}kx.prototype=QI.prototype={constructor:kx,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function eD(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Si(e,t){if(e=eD(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function wpe(e,t){return e.target&&(e=eD(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>Si(n,t))}function xpe(e){return typeof e=="string"?new Fr([document.querySelectorAll(e)],[document.documentElement]):new Fr([HI(e)],ES)}const _pe={passive:!1},Cd={capture:!0,passive:!1};function Sb(e){e.stopImmediatePropagation()}function Hc(e){e.preventDefault(),e.stopImmediatePropagation()}function hm(e){var t=e.document.documentElement,n=Sr(e).on("dragstart.drag",Hc,Cd);"onselectstart"in t?n.on("selectstart.drag",Hc,Cd):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function pm(e,t){var n=e.document.documentElement,r=Sr(e).on("dragstart.drag",null);t&&(r.on("click.drag",Hc,Cd),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rp=e=>()=>e;function Rx(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:u,dy:c,dispatch:l}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:l}})}Rx.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Epe(e){return!e.ctrlKey&&!e.button}function Spe(){return this.parentNode}function Ape(e,t){return t??{x:e.x,y:e.y}}function Ope(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tpe(){var e=Epe,t=Spe,n=Ape,r=Ope,i={},a=Uu("start","drag","end"),o=0,s,u,c,l,d=0;function h(S){S.on("mousedown.drag",g).filter(r).on("touchstart.drag",v).on("touchmove.drag",b,_pe).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(S,A){if(!(l||!e.call(this,S,A))){var O=E(this,t.call(this,S,A),S,A,"mouse");O&&(Sr(S.view).on("mousemove.drag",m,Cd).on("mouseup.drag",y,Cd),hm(S.view),Sb(S),c=!1,s=S.clientX,u=S.clientY,O("start",S))}}function m(S){if(Hc(S),!c){var A=S.clientX-s,O=S.clientY-u;c=A*A+O*O>d}i.mouse("drag",S)}function y(S){Sr(S.view).on("mousemove.drag mouseup.drag",null),pm(S.view,c),Hc(S),i.mouse("end",S)}function v(S,A){if(e.call(this,S,A)){var O=S.changedTouches,P=t.call(this,S,A),j=O.length,$,z;for($=0;$<j;++$)(z=E(this,P,S,A,O[$].identifier,O[$]))&&(Sb(S),z("start",S,O[$]))}}function b(S){var A=S.changedTouches,O=A.length,P,j;for(P=0;P<O;++P)(j=i[A[P].identifier])&&(Hc(S),j("drag",S,A[P]))}function _(S){var A=S.changedTouches,O=A.length,P,j;for(l&&clearTimeout(l),l=setTimeout(function(){l=null},500),P=0;P<O;++P)(j=i[A[P].identifier])&&(Sb(S),j("end",S,A[P]))}function E(S,A,O,P,j,$){var z=a.copy(),I=Si($||O,A),H,D,C;if((C=n.call(S,new Rx("beforestart",{sourceEvent:O,target:h,identifier:j,active:o,x:I[0],y:I[1],dx:0,dy:0,dispatch:z}),P))!=null)return H=C.x-I[0]||0,D=C.y-I[1]||0,function L(N,V,Z){var K=I,R;switch(N){case"start":i[j]=L,R=o++;break;case"end":delete i[j],--o;case"drag":I=Si(Z||V,A),R=o;break}z.call(N,S,new Rx(N,{sourceEvent:V,subject:C,target:h,identifier:j,active:R,x:I[0]+H,y:I[1]+D,dx:I[0]-K[0],dy:I[1]-K[1],dispatch:z}),P)}}return h.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Rp(!!S),h):e},h.container=function(S){return arguments.length?(t=typeof S=="function"?S:Rp(S),h):t},h.subject=function(S){return arguments.length?(n=typeof S=="function"?S:Rp(S),h):n},h.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:Rp(!!S),h):r},h.on=function(){var S=a.on.apply(a,arguments);return S===a?h:S},h.clickDistance=function(S){return arguments.length?(d=(S=+S)*S,h):Math.sqrt(d)},h}var hl=0,Wf=0,Ef=0,tD=1e3,ov,qf,sv=0,Iu=0,gm=0,jd=typeof performance=="object"&&performance.now?performance:Date,nD=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vh(){return Iu||(nD(Ppe),Iu=jd.now()+gm)}function Ppe(){Iu=0}function Md(){this._call=this._time=this._next=null}Md.prototype=vm.prototype={constructor:Md,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?vh():+n)+(t==null?0:+t),!this._next&&qf!==this&&(qf?qf._next=this:ov=this,qf=this),this._call=e,this._time=n,Ix()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ix())}};function vm(e,t,n){var r=new Md;return r.restart(e,t,n),r}function rD(){vh(),++hl;for(var e=ov,t;e;)(t=Iu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--hl}function aC(){Iu=(sv=jd.now())+gm,hl=Wf=0;try{rD()}finally{hl=0,jpe(),Iu=0}}function Cpe(){var e=jd.now(),t=e-sv;t>tD&&(gm-=t,sv=e)}function jpe(){for(var e,t=ov,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:ov=n);qf=e,Ix(r)}function Ix(e){if(!hl){Wf&&(Wf=clearTimeout(Wf));var t=e-Iu;t>24?(e<1/0&&(Wf=setTimeout(aC,e-jd.now()-gm)),Ef&&(Ef=clearInterval(Ef))):(Ef||(sv=jd.now(),Ef=setInterval(Cpe,tD)),hl=1,nD(aC))}}function Dx(e,t,n){var r=new Md;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}function Mpe(e,t,n){var r=new Md,i=t;return t==null?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(a,o,s){o=+o,s=s==null?vh():+s,r._restart(function u(c){c+=i,r._restart(u,i+=o,s),a(c)},o,s)},r.restart(e,t,n),r)}var kpe=Uu("start","end","cancel","interrupt"),Rpe=[],iD=0,Nx=1,Lx=2,lg=3,oC=4,$x=5,fg=6;function mm(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ipe(e,n,{name:t,index:r,group:i,on:kpe,tween:Rpe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:iD})}function SS(e,t){var n=ba(e,t);if(n.state>iD)throw new Error("too late; already scheduled");return n}function Ka(e,t){var n=ba(e,t);if(n.state>lg)throw new Error("too late; already running");return n}function ba(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ipe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=vm(a,0,n.time);function a(c){n.state=Nx,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var l,d,h,g;if(n.state!==Nx)return u();for(l in r)if(g=r[l],g.name===n.name){if(g.state===lg)return Dx(o);g.state===oC?(g.state=fg,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[l]):+l<t&&(g.state=fg,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete r[l])}if(Dx(function(){n.state===lg&&(n.state=oC,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=Lx,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Lx){for(n.state=lg,i=new Array(h=n.tween.length),l=0,d=-1;l<h;++l)(g=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=g);i.length=d+1}}function s(c){for(var l=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=$x,1),d=-1,h=i.length;++d<h;)i[d].call(e,l);n.state===$x&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=fg,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function yu(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Lx&&r.state<$x,r.state=fg,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Dpe(e){return this.each(function(){yu(this,e)})}function Npe(e,t){var n,r;return function(){var i=Ka(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Lpe(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Ka(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function $pe(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ba(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Npe:Lpe)(n,e,t))}function AS(e,t,n){var r=e._id;return e.each(function(){var i=Ka(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ba(i,r).value[t]}}function aD(e,t){var n;return(typeof t=="number"?Gi:t instanceof Ts?xd:(n=Ts(t))?(t=n,xd):V2)(e,t)}function Bpe(e){return function(){this.removeAttribute(e)}}function zpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fpe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Wpe(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function qpe(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function Vpe(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function Hpe(e,t){var n=gh(e),r=n==="transform"?SM:aD;return this.attrTween(e,typeof t=="function"?(n.local?Vpe:qpe)(n,r,AS(this,"attr."+e,t)):t==null?(n.local?zpe:Bpe)(n):(n.local?Wpe:Fpe)(n,r,t))}function Upe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Gpe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Kpe(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Gpe(e,a)),n}return i._value=t,i}function Ype(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Upe(e,a)),n}return i._value=t,i}function Xpe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=gh(e);return this.tween(n,(r.local?Kpe:Ype)(r,t))}function Zpe(e,t){return function(){SS(this,e).delay=+t.apply(this,arguments)}}function Jpe(e,t){return t=+t,function(){SS(this,e).delay=t}}function Qpe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Zpe:Jpe)(t,e)):ba(this.node(),t).delay}function ege(e,t){return function(){Ka(this,e).duration=+t.apply(this,arguments)}}function tge(e,t){return t=+t,function(){Ka(this,e).duration=t}}function nge(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ege:tge)(t,e)):ba(this.node(),t).duration}function rge(e,t){if(typeof t!="function")throw new Error;return function(){Ka(this,e).ease=t}}function ige(e){var t=this._id;return arguments.length?this.each(rge(t,e)):ba(this.node(),t).ease}function age(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ka(this,e).ease=n}}function oge(e){if(typeof e!="function")throw new Error;return this.each(age(this._id,e))}function sge(e){typeof e!="function"&&(e=wS(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new Fa(r,this._parents,this._name,this._id)}function uge(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],c=n[s],l=u.length,d=o[s]=new Array(l),h,g=0;g<l;++g)(h=u[g]||c[g])&&(d[g]=h);for(;s<r;++s)o[s]=t[s];return new Fa(o,this._parents,this._name,this._id)}function cge(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function lge(e,t,n){var r,i,a=cge(t)?SS:Ka;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function fge(e,t){var n=this._id;return arguments.length<2?ba(this.node(),n).on.on(e):this.each(lge(n,e,t))}function dge(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function hge(){return this.on("end.remove",dge(this._id))}function pge(e){var t=this._name,n=this._id;typeof e!="function"&&(e=dm(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,c=a[o]=new Array(u),l,d,h=0;h<u;++h)(l=s[h])&&(d=e.call(l,l.__data__,h,s))&&("__data__"in l&&(d.__data__=l.__data__),c[h]=d,mm(c[h],t,n,h,c,ba(l,n)));return new Fa(a,this._parents,t,n)}function gge(e){var t=this._name,n=this._id;typeof e!="function"&&(e=bS(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],c=u.length,l,d=0;d<c;++d)if(l=u[d]){for(var h=e.call(l,l.__data__,d,u),g,m=ba(l,n),y=0,v=h.length;y<v;++y)(g=h[y])&&mm(g,t,n,y,h,m);a.push(h),o.push(l)}return new Fa(a,o,t,n)}var vge=Gu.prototype.constructor;function mge(){return new vge(this._groups,this._parents)}function yge(e,t){var n,r,i;return function(){var a=Ru(this,e),o=(this.style.removeProperty(e),Ru(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function oD(e){return function(){this.style.removeProperty(e)}}function bge(e,t,n){var r,i=n+"",a;return function(){var o=Ru(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function wge(e,t,n){var r,i,a;return function(){var o=Ru(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ru(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function xge(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=Ka(this,e),c=u.on,l=u.value[a]==null?s||(s=oD(t)):void 0;(c!==n||i!==l)&&(r=(n=c).copy()).on(o,i=l),u.on=r}}function _ge(e,t,n){var r=(e+="")=="transform"?EM:aD;return t==null?this.styleTween(e,yge(e,r)).on("end.style."+e,oD(e)):typeof t=="function"?this.styleTween(e,wge(e,r,AS(this,"style."+e,t))).each(xge(this._id,e)):this.styleTween(e,bge(e,r,t),n).on("end.style."+e,null)}function Ege(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Sge(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Ege(e,o,n)),r}return a._value=t,a}function Age(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,Sge(e,t,n??""))}function Oge(e){return function(){this.textContent=e}}function Tge(e){return function(){var t=e(this);this.textContent=t??""}}function Pge(e){return this.tween("text",typeof e=="function"?Tge(AS(this,"text",e)):Oge(e==null?"":e+""))}function Cge(e){return function(t){this.textContent=e.call(this,t)}}function jge(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&Cge(i)),t}return r._value=e,r}function Mge(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,jge(e))}function kge(){for(var e=this._name,t=this._id,n=uD(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)if(u=o[c]){var l=ba(u,t);mm(u,e,n,c,o,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Fa(r,this._parents,e,n)}function Rge(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var c=Ka(this,r),l=c.on;l!==e&&(t=(e=l).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),c.on=t}),i===0&&a()})}var Ige=0;function Fa(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function sD(e){return Gu().transition(e)}function uD(){return++Ige}var so=Gu.prototype;Fa.prototype=sD.prototype={constructor:Fa,select:pge,selectAll:gge,selectChild:so.selectChild,selectChildren:so.selectChildren,filter:sge,merge:uge,selection:mge,transition:kge,call:so.call,nodes:so.nodes,node:so.node,size:so.size,empty:so.empty,each:so.each,on:fge,attr:Hpe,attrTween:Xpe,style:_ge,styleTween:Age,text:Pge,textTween:Mge,remove:hge,tween:$pe,delay:Qpe,duration:nge,ease:ige,easeVarying:oge,end:Rge,[Symbol.iterator]:so[Symbol.iterator]};const Dge=e=>+e;function Nge(e){return e*e}function Lge(e){return e*(2-e)}function sC(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function $ge(e){return e*e*e}function Bge(e){return--e*e*e+1}function Bx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var OS=3,zge=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(OS),Fge=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(OS),uC=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(OS),cD=Math.PI,lD=cD/2;function Wge(e){return+e==1?1:1-Math.cos(e*lD)}function qge(e){return Math.sin(e*lD)}function cC(e){return(1-Math.cos(cD*e))/2}function Ps(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Vge(e){return Ps(1-+e)}function Hge(e){return 1-Ps(e)}function lC(e){return((e*=2)<=1?Ps(1-e):2-Ps(e-1))/2}function Uge(e){return 1-Math.sqrt(1-e*e)}function Gge(e){return Math.sqrt(1- --e*e)}function fC(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var zx=4/11,Kge=6/11,Yge=8/11,Xge=3/4,Zge=9/11,Jge=10/11,Qge=15/16,eve=21/22,tve=63/64,Ip=1/zx/zx;function nve(e){return 1-kd(1-e)}function kd(e){return(e=+e)<zx?Ip*e*e:e<Yge?Ip*(e-=Kge)*e+Xge:e<Jge?Ip*(e-=Zge)*e+Qge:Ip*(e-=eve)*e+tve}function rve(e){return((e*=2)<=1?1-kd(1-e):kd(e-1)+1)/2}var TS=1.70158,ive=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(TS),ave=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(TS),dC=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(TS),pl=2*Math.PI,PS=1,CS=.3,ove=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=pl);function i(a){return t*Ps(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*pl)},i.period=function(a){return e(t,a)},i}(PS,CS),hC=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=pl);function i(a){return 1-t*Ps(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*pl)},i.period=function(a){return e(t,a)},i}(PS,CS),sve=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=pl);function i(a){return((a=a*2-1)<0?t*Ps(-a)*Math.sin((r-a)/n):2-t*Ps(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*pl)},i.period=function(a){return e(t,a)},i}(PS,CS),uve={time:null,delay:0,duration:250,ease:Bx};function cve(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function lve(e){var t,n;e instanceof Fa?(t=e._id,e=e._name):(t=uD(),(n=uve).time=vh(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&mm(u,e,t,c,o,n||cve(u,t));return new Fa(r,this._parents,e,t)}Gu.prototype.interrupt=Dpe;Gu.prototype.transition=lve;var fve=[null];function dve(e,t){var n=e.__transition,r,i;if(n){t=t==null?null:t+"";for(i in n)if((r=n[i]).state>Nx&&r.name===t)return new Fa([[e]],fve,t,+i)}return null}const Ab=e=>()=>e;function hve(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function pve(e){e.stopImmediatePropagation()}function Ob(e){e.preventDefault(),e.stopImmediatePropagation()}var pC={name:"drag"},Tb={name:"space"},yc={name:"handle"},bc={name:"center"};const{abs:gC,max:mr,min:yr}=Math;function vC(e){return[+e[0],+e[1]]}function Fx(e){return[vC(e[0]),vC(e[1])]}var dg={name:"x",handles:["w","e"].map(Rd),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},hg={name:"y",handles:["n","s"].map(Rd),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},gve={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Rd),input:function(e){return e==null?null:Fx(e)},output:function(e){return e}},uo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},mC={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},yC={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},vve={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},mve={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Rd(e){return{type:e}}function yve(e){return!e.ctrlKey&&!e.button}function bve(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function wve(){return navigator.maxTouchPoints||"ontouchstart"in this}function Pb(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function xve(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function _ve(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Eve(){return jS(dg)}function Sve(){return jS(hg)}function Ave(){return jS(gve)}function jS(e){var t=bve,n=yve,r=wve,i=!0,a=Uu("start","brush","end"),o=6,s;function u(v){var b=v.property("__brush",y).selectAll(".overlay").data([Rd("overlay")]);b.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",uo.overlay).merge(b).each(function(){var E=Pb(this).extent;Sr(this).attr("x",E[0][0]).attr("y",E[0][1]).attr("width",E[1][0]-E[0][0]).attr("height",E[1][1]-E[0][1])}),v.selectAll(".selection").data([Rd("selection")]).enter().append("rect").attr("class","selection").attr("cursor",uo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=v.selectAll(".handle").data(e.handles,function(E){return E.type});_.exit().remove(),_.enter().append("rect").attr("class",function(E){return"handle handle--"+E.type}).attr("cursor",function(E){return uo[E.type]}),v.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",g).on("touchend.brush touchcancel.brush",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(v,b,_){v.tween?v.on("start.brush",function(E){l(this,arguments).beforestart().start(E)}).on("interrupt.brush end.brush",function(E){l(this,arguments).end(E)}).tween("brush",function(){var E=this,S=E.__brush,A=l(E,arguments),O=S.selection,P=e.input(typeof b=="function"?b.apply(this,arguments):b,S.extent),j=Ms(O,P);function $(z){S.selection=z===1&&P===null?null:j(z),c.call(E),A.brush()}return O!==null&&P!==null?$:$(1)}):v.each(function(){var E=this,S=arguments,A=E.__brush,O=e.input(typeof b=="function"?b.apply(E,S):b,A.extent),P=l(E,S).beforestart();yu(E),A.selection=O===null?null:O,c.call(E),P.start(_).brush(_).end(_)})},u.clear=function(v,b){u.move(v,null,b)};function c(){var v=Sr(this),b=Pb(this).selection;b?(v.selectAll(".selection").style("display",null).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1]),v.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?b[1][0]-o/2:b[0][0]-o/2}).attr("y",function(_){return _.type[0]==="s"?b[1][1]-o/2:b[0][1]-o/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?b[1][0]-b[0][0]+o:o}).attr("height",function(_){return _.type==="e"||_.type==="w"?b[1][1]-b[0][1]+o:o})):v.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(v,b,_){var E=v.__brush.emitter;return E&&(!_||!E.clean)?E:new d(v,b,_)}function d(v,b,_){this.that=v,this.args=b,this.state=v.__brush,this.active=0,this.clean=_}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(v,b){return this.starting?(this.starting=!1,this.emit("start",v,b)):this.emit("brush",v),this},brush:function(v,b){return this.emit("brush",v,b),this},end:function(v,b){return--this.active===0&&(delete this.state.emitter,this.emit("end",v,b)),this},emit:function(v,b,_){var E=Sr(this.that).datum();a.call(v,this.that,new hve(v,{sourceEvent:b,target:u,selection:e.output(this.state.selection),mode:_,dispatch:a}),E)}};function h(v){if(s&&!v.touches||!n.apply(this,arguments))return;var b=this,_=v.target.__data__.type,E=(i&&v.metaKey?_="overlay":_)==="selection"?pC:i&&v.altKey?bc:yc,S=e===hg?null:vve[_],A=e===dg?null:mve[_],O=Pb(b),P=O.extent,j=O.selection,$=P[0][0],z,I,H=P[0][1],D,C,L=P[1][0],N,V,Z=P[1][1],K,R,W=0,U=0,Y,ae=S&&A&&i&&v.shiftKey,re,ge,ye=Array.from(v.touches||[v],Se=>{const at=Se.identifier;return Se=Si(Se,b),Se.point0=Se.slice(),Se.identifier=at,Se});yu(b);var _e=l(b,arguments,!0).beforestart();if(_==="overlay"){j&&(Y=!0);const Se=[ye[0],ye[1]||ye[0]];O.selection=j=[[z=e===hg?$:yr(Se[0][0],Se[1][0]),D=e===dg?H:yr(Se[0][1],Se[1][1])],[N=e===hg?L:mr(Se[0][0],Se[1][0]),K=e===dg?Z:mr(Se[0][1],Se[1][1])]],ye.length>1&&Re(v)}else z=j[0][0],D=j[0][1],N=j[1][0],K=j[1][1];I=z,C=D,V=N,R=K;var ce=Sr(b).attr("pointer-events","none"),pe=ce.selectAll(".overlay").attr("cursor",uo[_]);if(v.touches)_e.moved=oe,_e.ended=$e;else{var Oe=Sr(v.view).on("mousemove.brush",oe,!0).on("mouseup.brush",$e,!0);i&&Oe.on("keydown.brush",Qe,!0).on("keyup.brush",Ze,!0),hm(v.view)}c.call(b),_e.start(v,E.name);function oe(Se){for(const at of Se.changedTouches||[Se])for(const pn of ye)pn.identifier===at.identifier&&(pn.cur=Si(at,b));if(ae&&!re&&!ge&&ye.length===1){const at=ye[0];gC(at.cur[0]-at[0])>gC(at.cur[1]-at[1])?ge=!0:re=!0}for(const at of ye)at.cur&&(at[0]=at.cur[0],at[1]=at.cur[1]);Y=!0,Ob(Se),Re(Se)}function Re(Se){const at=ye[0],pn=at.point0;var St;switch(W=at[0]-pn[0],U=at[1]-pn[1],E){case Tb:case pC:{S&&(W=mr($-z,yr(L-N,W)),I=z+W,V=N+W),A&&(U=mr(H-D,yr(Z-K,U)),C=D+U,R=K+U);break}case yc:{ye[1]?(S&&(I=mr($,yr(L,ye[0][0])),V=mr($,yr(L,ye[1][0])),S=1),A&&(C=mr(H,yr(Z,ye[0][1])),R=mr(H,yr(Z,ye[1][1])),A=1)):(S<0?(W=mr($-z,yr(L-z,W)),I=z+W,V=N):S>0&&(W=mr($-N,yr(L-N,W)),I=z,V=N+W),A<0?(U=mr(H-D,yr(Z-D,U)),C=D+U,R=K):A>0&&(U=mr(H-K,yr(Z-K,U)),C=D,R=K+U));break}case bc:{S&&(I=mr($,yr(L,z-W*S)),V=mr($,yr(L,N+W*S))),A&&(C=mr(H,yr(Z,D-U*A)),R=mr(H,yr(Z,K+U*A)));break}}V<I&&(S*=-1,St=z,z=N,N=St,St=I,I=V,V=St,_ in mC&&pe.attr("cursor",uo[_=mC[_]])),R<C&&(A*=-1,St=D,D=K,K=St,St=C,C=R,R=St,_ in yC&&pe.attr("cursor",uo[_=yC[_]])),O.selection&&(j=O.selection),re&&(I=j[0][0],V=j[1][0]),ge&&(C=j[0][1],R=j[1][1]),(j[0][0]!==I||j[0][1]!==C||j[1][0]!==V||j[1][1]!==R)&&(O.selection=[[I,C],[V,R]],c.call(b),_e.brush(Se,E.name))}function $e(Se){if(pve(Se),Se.touches){if(Se.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else pm(Se.view,Y),Oe.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ce.attr("pointer-events","all"),pe.attr("cursor",uo.overlay),O.selection&&(j=O.selection),xve(j)&&(O.selection=null,c.call(b)),_e.end(Se,E.name)}function Qe(Se){switch(Se.keyCode){case 16:{ae=S&&A;break}case 18:{E===yc&&(S&&(N=V-W*S,z=I+W*S),A&&(K=R-U*A,D=C+U*A),E=bc,Re(Se));break}case 32:{(E===yc||E===bc)&&(S<0?N=V-W:S>0&&(z=I-W),A<0?K=R-U:A>0&&(D=C-U),E=Tb,pe.attr("cursor",uo.selection),Re(Se));break}default:return}Ob(Se)}function Ze(Se){switch(Se.keyCode){case 16:{ae&&(re=ge=ae=!1,Re(Se));break}case 18:{E===bc&&(S<0?N=V:S>0&&(z=I),A<0?K=R:A>0&&(D=C),E=yc,Re(Se));break}case 32:{E===Tb&&(Se.altKey?(S&&(N=V-W*S,z=I+W*S),A&&(K=R-U*A,D=C+U*A),E=bc):(S<0?N=V:S>0&&(z=I),A<0?K=R:A>0&&(D=C),E=yc),pe.attr("cursor",uo[_]),Re(Se));break}default:return}Ob(Se)}}function g(v){l(this,arguments).moved(v)}function m(v){l(this,arguments).ended(v)}function y(){var v=this.__brush||{selection:null};return v.extent=Fx(t.apply(this,arguments)),v.dim=e,v}return u.extent=function(v){return arguments.length?(t=typeof v=="function"?v:Ab(Fx(v)),u):t},u.filter=function(v){return arguments.length?(n=typeof v=="function"?v:Ab(!!v),u):n},u.touchable=function(v){return arguments.length?(r=typeof v=="function"?v:Ab(!!v),u):r},u.handleSize=function(v){return arguments.length?(o=+v,u):o},u.keyModifiers=function(v){return arguments.length?(i=!!v,u):i},u.on=function(){var v=a.on.apply(a,arguments);return v===a?u:v},u}var bC=Math.abs,wc=Math.cos,xc=Math.sin,fD=Math.PI,Dp=fD/2,wC=fD*2,xC=Math.max,Cb=1e-12;function jb(e,t){return Array.from({length:t-e},(n,r)=>e+r)}function Ove(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function Tve(){return MS(!1,!1)}function Pve(){return MS(!1,!0)}function Cve(){return MS(!0,!1)}function MS(e,t){var n=0,r=null,i=null,a=null;function o(s){var u=s.length,c=new Array(u),l=jb(0,u),d=new Array(u*u),h=new Array(u),g=0,m;s=Float64Array.from({length:u*u},t?(y,v)=>s[v%u][v/u|0]:(y,v)=>s[v/u|0][v%u]);for(let y=0;y<u;++y){let v=0;for(let b=0;b<u;++b)v+=s[y*u+b]+e*s[b*u+y];g+=c[y]=v}g=xC(0,wC-n*u)/g,m=g?n:wC/u;{let y=0;r&&l.sort((v,b)=>r(c[v],c[b]));for(const v of l){const b=y;if(e){const _=jb(~u+1,u).filter(E=>E<0?s[~E*u+v]:s[v*u+E]);i&&_.sort((E,S)=>i(E<0?-s[~E*u+v]:s[v*u+E],S<0?-s[~S*u+v]:s[v*u+S]));for(const E of _)if(E<0){const S=d[~E*u+v]||(d[~E*u+v]={source:null,target:null});S.target={index:v,startAngle:y,endAngle:y+=s[~E*u+v]*g,value:s[~E*u+v]}}else{const S=d[v*u+E]||(d[v*u+E]={source:null,target:null});S.source={index:v,startAngle:y,endAngle:y+=s[v*u+E]*g,value:s[v*u+E]}}h[v]={index:v,startAngle:b,endAngle:y,value:c[v]}}else{const _=jb(0,u).filter(E=>s[v*u+E]||s[E*u+v]);i&&_.sort((E,S)=>i(s[v*u+E],s[v*u+S]));for(const E of _){let S;if(v<E?(S=d[v*u+E]||(d[v*u+E]={source:null,target:null}),S.source={index:v,startAngle:y,endAngle:y+=s[v*u+E]*g,value:s[v*u+E]}):(S=d[E*u+v]||(d[E*u+v]={source:null,target:null}),S.target={index:v,startAngle:y,endAngle:y+=s[v*u+E]*g,value:s[v*u+E]},v===E&&(S.source=S.target)),S.source&&S.target&&S.source.value<S.target.value){const A=S.source;S.source=S.target,S.target=A}}h[v]={index:v,startAngle:b,endAngle:y,value:c[v]}}y+=m}}return d=Object.values(d),d.groups=h,a?d.sort(a):d}return o.padAngle=function(s){return arguments.length?(n=xC(0,s),o):n},o.sortGroups=function(s){return arguments.length?(r=s,o):r},o.sortSubgroups=function(s){return arguments.length?(i=s,o):i},o.sortChords=function(s){return arguments.length?(s==null?a=null:(a=Ove(s))._=s,o):a&&a._},o}var jve=Array.prototype.slice;function Gs(e){return function(){return e}}function Mve(e){return e.source}function kve(e){return e.target}function _C(e){return e.radius}function Rve(e){return e.startAngle}function Ive(e){return e.endAngle}function Dve(){return 0}function Nve(){return 10}function dD(e){var t=Mve,n=kve,r=_C,i=_C,a=Rve,o=Ive,s=Dve,u=null;function c(){var l,d=t.apply(this,arguments),h=n.apply(this,arguments),g=s.apply(this,arguments)/2,m=jve.call(arguments),y=+r.apply(this,(m[0]=d,m)),v=a.apply(this,m)-Dp,b=o.apply(this,m)-Dp,_=+i.apply(this,(m[0]=h,m)),E=a.apply(this,m)-Dp,S=o.apply(this,m)-Dp;if(u||(u=l=Y_()),g>Cb&&(bC(b-v)>g*2+Cb?b>v?(v+=g,b-=g):(v-=g,b+=g):v=b=(v+b)/2,bC(S-E)>g*2+Cb?S>E?(E+=g,S-=g):(E-=g,S+=g):E=S=(E+S)/2),u.moveTo(y*wc(v),y*xc(v)),u.arc(0,0,y,v,b),v!==E||b!==S)if(e){var A=+e.apply(this,arguments),O=_-A,P=(E+S)/2;u.quadraticCurveTo(0,0,O*wc(E),O*xc(E)),u.lineTo(_*wc(P),_*xc(P)),u.lineTo(O*wc(S),O*xc(S))}else u.quadraticCurveTo(0,0,_*wc(E),_*xc(E)),u.arc(0,0,_,E,S);if(u.quadraticCurveTo(0,0,y*wc(v),y*xc(v)),u.closePath(),l)return u=null,l+""||null}return e&&(c.headRadius=function(l){return arguments.length?(e=typeof l=="function"?l:Gs(+l),c):e}),c.radius=function(l){return arguments.length?(r=i=typeof l=="function"?l:Gs(+l),c):r},c.sourceRadius=function(l){return arguments.length?(r=typeof l=="function"?l:Gs(+l),c):r},c.targetRadius=function(l){return arguments.length?(i=typeof l=="function"?l:Gs(+l),c):i},c.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Gs(+l),c):a},c.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:Gs(+l),c):o},c.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Gs(+l),c):s},c.source=function(l){return arguments.length?(t=l,c):t},c.target=function(l){return arguments.length?(n=l,c):n},c.context=function(l){return arguments.length?(u=l??null,c):u},c}function Lve(){return dD()}function $ve(){return dD(Nve)}var Bve=Array.prototype,hD=Bve.slice;function zve(e,t){return e-t}function Fve(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}const fs=e=>()=>e;function Wve(e,t){for(var n=-1,r=t.length,i;++n<r;)if(i=qve(e,t[n]))return i;return 0}function qve(e,t){for(var n=t[0],r=t[1],i=-1,a=0,o=e.length,s=o-1;a<o;s=a++){var u=e[a],c=u[0],l=u[1],d=e[s],h=d[0],g=d[1];if(Vve(u,d,t))return 0;l>r!=g>r&&n<(h-c)*(r-l)/(g-l)+c&&(i=-i)}return i}function Vve(e,t,n){var r;return Hve(e,t,n)&&Uve(e[r=+(e[0]===t[0])],n[r],t[r])}function Hve(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}function Uve(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function Gve(){}var co=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Wx(){var e=1,t=1,n=N2,r=u;function i(c){var l=n(c);if(Array.isArray(l))l=l.slice().sort(zve);else{const d=ed(c,Kve);for(l=Ou(...D2(d[0],d[1],l),l);l[l.length-1]>=d[1];)l.pop();for(;l[1]<d[0];)l.shift()}return l.map(d=>a(c,d))}function a(c,l){const d=l==null?NaN:+l;if(isNaN(d))throw new Error(`invalid value: ${l}`);var h=[],g=[];return o(c,d,function(m){r(m,c,d),Fve(m)>0?h.push([m]):g.push(m)}),g.forEach(function(m){for(var y=0,v=h.length,b;y<v;++y)if(Wve((b=h[y])[0],m)!==-1){b.push(m);return}}),{type:"MultiPolygon",value:l,coordinates:h}}function o(c,l,d){var h=new Array,g=new Array,m,y,v,b,_,E;for(m=y=-1,b=Ks(c[0],l),co[b<<1].forEach(S);++m<e-1;)v=b,b=Ks(c[m+1],l),co[v|b<<1].forEach(S);for(co[b<<0].forEach(S);++y<t-1;){for(m=-1,b=Ks(c[y*e+e],l),_=Ks(c[y*e],l),co[b<<1|_<<2].forEach(S);++m<e-1;)v=b,b=Ks(c[y*e+e+m+1],l),E=_,_=Ks(c[y*e+m+1],l),co[v|b<<1|_<<2|E<<3].forEach(S);co[b|_<<3].forEach(S)}for(m=-1,_=c[y*e]>=l,co[_<<2].forEach(S);++m<e-1;)E=_,_=Ks(c[y*e+m+1],l),co[_<<2|E<<3].forEach(S);co[_<<3].forEach(S);function S(A){var O=[A[0][0]+m,A[0][1]+y],P=[A[1][0]+m,A[1][1]+y],j=s(O),$=s(P),z,I;(z=g[j])?(I=h[$])?(delete g[z.end],delete h[I.start],z===I?(z.ring.push(P),d(z.ring)):h[z.start]=g[I.end]={start:z.start,end:I.end,ring:z.ring.concat(I.ring)}):(delete g[z.end],z.ring.push(P),g[z.end=$]=z):(z=h[$])?(I=g[j])?(delete h[z.start],delete g[I.end],z===I?(z.ring.push(P),d(z.ring)):h[I.start]=g[z.end]={start:I.start,end:z.end,ring:I.ring.concat(z.ring)}):(delete h[z.start],z.ring.unshift(O),h[z.start=j]=z):h[j]=g[$]={start:j,end:$,ring:[O,P]}}}function s(c){return c[0]*2+c[1]*(e+1)*4}function u(c,l,d){c.forEach(function(h){var g=h[0],m=h[1],y=g|0,v=m|0,b=Mb(l[v*e+y]);g>0&&g<e&&y===g&&(h[0]=EC(g,Mb(l[v*e+y-1]),b,d)),m>0&&m<t&&v===m&&(h[1]=EC(m,Mb(l[(v-1)*e+y]),b,d))})}return i.contour=a,i.size=function(c){if(!arguments.length)return[e,t];var l=Math.floor(c[0]),d=Math.floor(c[1]);if(!(l>=0&&d>=0))throw new Error("invalid size");return e=l,t=d,i},i.thresholds=function(c){return arguments.length?(n=typeof c=="function"?c:Array.isArray(c)?fs(hD.call(c)):fs(c),i):n},i.smooth=function(c){return arguments.length?(r=c?u:Gve,i):r===u},i}function Kve(e){return isFinite(e)?e:NaN}function Ks(e,t){return e==null?!1:+e>=t}function Mb(e){return e==null||isNaN(e=+e)?-1/0:e}function EC(e,t,n,r){const i=r-t,a=n-t,o=isFinite(i)||isFinite(a)?i/a:Math.sign(i)/Math.sign(a);return isNaN(o)?e:e+o-.5}function Yve(e){return e[0]}function Xve(e){return e[1]}function Zve(){return 1}function Jve(){var e=Yve,t=Xve,n=Zve,r=960,i=500,a=20,o=2,s=a*3,u=r+s*2>>o,c=i+s*2>>o,l=fs(20);function d(_){var E=new Float32Array(u*c),S=Math.pow(2,-o),A=-1;for(const D of _){var O=(e(D,++A,_)+s)*S,P=(t(D,A,_)+s)*S,j=+n(D,A,_);if(j&&O>=0&&O<u&&P>=0&&P<c){var $=Math.floor(O),z=Math.floor(P),I=O-$-.5,H=P-z-.5;E[$+z*u]+=(1-I)*(1-H)*j,E[$+1+z*u]+=I*(1-H)*j,E[$+1+(z+1)*u]+=I*H*j,E[$+(z+1)*u]+=(1-I)*H*j}}return j7({data:E,width:u,height:c},a*S),E}function h(_){var E=d(_),S=l(E),A=Math.pow(2,2*o);return Array.isArray(S)||(S=Ou(Number.MIN_VALUE,md(E)/A,S)),Wx().size([u,c]).thresholds(S.map(O=>O*A))(E).map((O,P)=>(O.value=+S[P],g(O)))}h.contours=function(_){var E=d(_),S=Wx().size([u,c]),A=Math.pow(2,2*o),O=P=>{P=+P;var j=g(S.contour(E,P*A));return j.value=P,j};return Object.defineProperty(O,"max",{get:()=>md(E)/A}),O};function g(_){return _.coordinates.forEach(m),_}function m(_){_.forEach(y)}function y(_){_.forEach(v)}function v(_){_[0]=_[0]*Math.pow(2,o)-s,_[1]=_[1]*Math.pow(2,o)-s}function b(){return s=a*3,u=r+s*2>>o,c=i+s*2>>o,h}return h.x=function(_){return arguments.length?(e=typeof _=="function"?_:fs(+_),h):e},h.y=function(_){return arguments.length?(t=typeof _=="function"?_:fs(+_),h):t},h.weight=function(_){return arguments.length?(n=typeof _=="function"?_:fs(+_),h):n},h.size=function(_){if(!arguments.length)return[r,i];var E=+_[0],S=+_[1];if(!(E>=0&&S>=0))throw new Error("invalid size");return r=E,i=S,b()},h.cellSize=function(_){if(!arguments.length)return 1<<o;if(!((_=+_)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(_)/Math.LN2),b()},h.thresholds=function(_){return arguments.length?(l=typeof _=="function"?_:Array.isArray(_)?fs(hD.call(_)):fs(_),h):l},h.bandwidth=function(_){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((_=+_)>=0))throw new Error("invalid bandwidth");return a=(Math.sqrt(4*_*_+1)-1)/2,b()},h}const Mo=11102230246251565e-32,br=134217729,Qve=(3+8*Mo)*Mo;function kb(e,t,n,r,i){let a,o,s,u,c=t[0],l=r[0],d=0,h=0;l>c==l>-c?(a=c,c=t[++d]):(a=l,l=r[++h]);let g=0;if(d<e&&h<n)for(l>c==l>-c?(o=c+a,s=a-(o-c),c=t[++d]):(o=l+a,s=a-(o-l),l=r[++h]),a=o,s!==0&&(i[g++]=s);d<e&&h<n;)l>c==l>-c?(o=a+c,u=o-a,s=a-(o-u)+(c-u),c=t[++d]):(o=a+l,u=o-a,s=a-(o-u)+(l-u),l=r[++h]),a=o,s!==0&&(i[g++]=s);for(;d<e;)o=a+c,u=o-a,s=a-(o-u)+(c-u),c=t[++d],a=o,s!==0&&(i[g++]=s);for(;h<n;)o=a+l,u=o-a,s=a-(o-u)+(l-u),l=r[++h],a=o,s!==0&&(i[g++]=s);return(a!==0||g===0)&&(i[g++]=a),g}function e0e(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function mh(e){return new Float64Array(e)}const t0e=(3+16*Mo)*Mo,n0e=(2+12*Mo)*Mo,r0e=(9+64*Mo)*Mo*Mo,_c=mh(4),SC=mh(8),AC=mh(12),OC=mh(16),kr=mh(4);function i0e(e,t,n,r,i,a,o){let s,u,c,l,d,h,g,m,y,v,b,_,E,S,A,O,P,j;const $=e-i,z=n-i,I=t-a,H=r-a;S=$*H,h=br*$,g=h-(h-$),m=$-g,h=br*H,y=h-(h-H),v=H-y,A=m*v-(S-g*y-m*y-g*v),O=I*z,h=br*I,g=h-(h-I),m=I-g,h=br*z,y=h-(h-z),v=z-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,_c[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,_c[1]=E-(b+d)+(d-O),j=_+b,d=j-_,_c[2]=_-(j-d)+(b-d),_c[3]=j;let D=e0e(4,_c),C=n0e*o;if(D>=C||-D>=C||(d=e-$,s=e-($+d)+(d-i),d=n-z,c=n-(z+d)+(d-i),d=t-I,u=t-(I+d)+(d-a),d=r-H,l=r-(H+d)+(d-a),s===0&&u===0&&c===0&&l===0)||(C=r0e*o+Qve*Math.abs(D),D+=$*l+H*s-(I*c+z*u),D>=C||-D>=C))return D;S=s*H,h=br*s,g=h-(h-s),m=s-g,h=br*H,y=h-(h-H),v=H-y,A=m*v-(S-g*y-m*y-g*v),O=u*z,h=br*u,g=h-(h-u),m=u-g,h=br*z,y=h-(h-z),v=z-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,kr[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,kr[1]=E-(b+d)+(d-O),j=_+b,d=j-_,kr[2]=_-(j-d)+(b-d),kr[3]=j;const L=kb(4,_c,4,kr,SC);S=$*l,h=br*$,g=h-(h-$),m=$-g,h=br*l,y=h-(h-l),v=l-y,A=m*v-(S-g*y-m*y-g*v),O=I*c,h=br*I,g=h-(h-I),m=I-g,h=br*c,y=h-(h-c),v=c-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,kr[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,kr[1]=E-(b+d)+(d-O),j=_+b,d=j-_,kr[2]=_-(j-d)+(b-d),kr[3]=j;const N=kb(L,SC,4,kr,AC);S=s*l,h=br*s,g=h-(h-s),m=s-g,h=br*l,y=h-(h-l),v=l-y,A=m*v-(S-g*y-m*y-g*v),O=u*c,h=br*u,g=h-(h-u),m=u-g,h=br*c,y=h-(h-c),v=c-y,P=m*v-(O-g*y-m*y-g*v),b=A-P,d=A-b,kr[0]=A-(b+d)+(d-P),_=S+b,d=_-S,E=S-(_-d)+(b-d),b=E-O,d=E-b,kr[1]=E-(b+d)+(d-O),j=_+b,d=j-_,kr[2]=_-(j-d)+(b-d),kr[3]=j;const V=kb(N,AC,4,kr,OC);return OC[V-1]}function Np(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),u=o-s,c=Math.abs(o+s);return Math.abs(u)>=t0e*c?u:-i0e(e,t,n,r,i,a,c)}const TC=Math.pow(2,-52),Lp=new Uint32Array(512);class uv{static from(t,n=c0e,r=l0e){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new uv(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,u=1/0,c=-1/0,l=-1/0;for(let $=0;$<o;$++){const z=t[2*$],I=t[2*$+1];z<s&&(s=z),I<u&&(u=I),z>c&&(c=z),I>l&&(l=I),this._ids[$]=$}const d=(s+c)/2,h=(u+l)/2;let g,m,y;for(let $=0,z=1/0;$<o;$++){const I=Rb(d,h,t[2*$],t[2*$+1]);I<z&&(g=$,z=I)}const v=t[2*g],b=t[2*g+1];for(let $=0,z=1/0;$<o;$++){if($===g)continue;const I=Rb(v,b,t[2*$],t[2*$+1]);I<z&&I>0&&(m=$,z=I)}let _=t[2*m],E=t[2*m+1],S=1/0;for(let $=0;$<o;$++){if($===g||$===m)continue;const z=s0e(v,b,_,E,t[2*$],t[2*$+1]);z<S&&(y=$,S=z)}let A=t[2*y],O=t[2*y+1];if(S===1/0){for(let I=0;I<o;I++)this._dists[I]=t[2*I]-t[0]||t[2*I+1]-t[1];Lc(this._ids,this._dists,0,o-1);const $=new Uint32Array(o);let z=0;for(let I=0,H=-1/0;I<o;I++){const D=this._ids[I],C=this._dists[D];C>H&&($[z++]=D,H=C)}this.hull=$.subarray(0,z),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Np(v,b,_,E,A,O)<0){const $=m,z=_,I=E;m=y,_=A,E=O,y=$,A=z,O=I}const P=u0e(v,b,_,E,A,O);this._cx=P.x,this._cy=P.y;for(let $=0;$<o;$++)this._dists[$]=Rb(t[2*$],t[2*$+1],P.x,P.y);Lc(this._ids,this._dists,0,o-1),this._hullStart=g;let j=3;r[g]=n[y]=m,r[m]=n[g]=y,r[y]=n[m]=g,i[g]=0,i[m]=1,i[y]=2,a.fill(-1),a[this._hashKey(v,b)]=g,a[this._hashKey(_,E)]=m,a[this._hashKey(A,O)]=y,this.trianglesLen=0,this._addTriangle(g,m,y,-1,-1,-1);for(let $=0,z,I;$<this._ids.length;$++){const H=this._ids[$],D=t[2*H],C=t[2*H+1];if($>0&&Math.abs(D-z)<=TC&&Math.abs(C-I)<=TC||(z=D,I=C,H===g||H===m||H===y))continue;let L=0;for(let R=0,W=this._hashKey(D,C);R<this._hashSize&&(L=a[(W+R)%this._hashSize],!(L!==-1&&L!==r[L]));R++);L=n[L];let N=L,V;for(;V=r[N],Np(D,C,t[2*N],t[2*N+1],t[2*V],t[2*V+1])>=0;)if(N=V,N===L){N=-1;break}if(N===-1)continue;let Z=this._addTriangle(N,H,r[N],-1,-1,i[N]);i[H]=this._legalize(Z+2),i[N]=Z,j++;let K=r[N];for(;V=r[K],Np(D,C,t[2*K],t[2*K+1],t[2*V],t[2*V+1])<0;)Z=this._addTriangle(K,H,V,i[H],-1,i[K]),i[H]=this._legalize(Z+2),r[K]=K,j--,K=V;if(N===L)for(;V=n[N],Np(D,C,t[2*V],t[2*V+1],t[2*N],t[2*N+1])<0;)Z=this._addTriangle(V,H,N,-1,i[N],i[V]),this._legalize(Z+2),i[V]=Z,r[N]=N,j--,N=V;this._hullStart=n[H]=N,r[N]=n[K]=H,r[H]=K,a[this._hashKey(D,C)]=H,a[this._hashKey(t[2*N],t[2*N+1])]=N}this.hull=new Uint32Array(j);for(let $=0,z=this._hullStart;$<j;$++)this.hull[$]=z,z=r[z];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(a0e(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],u=t-t%3;if(o=u+(t+2)%3,s===-1){if(a===0)break;t=Lp[--a];continue}const c=s-s%3,l=u+(t+1)%3,d=c+(s+2)%3,h=n[o],g=n[t],m=n[l],y=n[d];if(o0e(i[2*h],i[2*h+1],i[2*g],i[2*g+1],i[2*m],i[2*m+1],i[2*y],i[2*y+1])){n[t]=y,n[s]=h;const b=r[d];if(b===-1){let E=this._hullStart;do{if(this._hullTri[E]===d){this._hullTri[E]=t;break}E=this._hullPrev[E]}while(E!==this._hullStart)}this._link(t,b),this._link(s,r[o]),this._link(o,d);const _=c+(s+1)%3;a<Lp.length&&(Lp[a++]=_)}else{if(a===0)break;t=Lp[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function a0e(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Rb(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function o0e(e,t,n,r,i,a,o,s){const u=e-o,c=t-s,l=n-o,d=r-s,h=i-o,g=a-s,m=u*u+c*c,y=l*l+d*d,v=h*h+g*g;return u*(d*v-y*g)-c*(l*v-y*h)+m*(l*g-d*h)<0}function s0e(e,t,n,r,i,a){const o=n-e,s=r-t,u=i-e,c=a-t,l=o*o+s*s,d=u*u+c*c,h=.5/(o*c-s*u),g=(c*l-s*d)*h,m=(o*d-u*l)*h;return g*g+m*m}function u0e(e,t,n,r,i,a){const o=n-e,s=r-t,u=i-e,c=a-t,l=o*o+s*s,d=u*u+c*c,h=.5/(o*c-s*u),g=e+(c*l-s*d)*h,m=t+(o*d-u*l)*h;return{x:g,y:m}}function Lc(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;Sf(e,i,a),t[e[n]]>t[e[r]]&&Sf(e,n,r),t[e[a]]>t[e[r]]&&Sf(e,a,r),t[e[n]]>t[e[a]]&&Sf(e,n,a);const s=e[a],u=t[s];for(;;){do a++;while(t[e[a]]<u);do o--;while(t[e[o]]>u);if(o<a)break;Sf(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Lc(e,t,a,r),Lc(e,t,n,o-1)):(Lc(e,t,n,o-1),Lc(e,t,a,r))}}function Sf(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function c0e(e){return e[0]}function l0e(e){return e[1]}const PC=1e-6;class uu{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>PC||Math.abs(this._y1-a)>PC)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class qx{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class pD{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let y=0,v=0,b=r.length,_,E;y<b;y+=3,v+=2){const S=r[y]*2,A=r[y+1]*2,O=r[y+2]*2,P=t[S],j=t[S+1],$=t[A],z=t[A+1],I=t[O],H=t[O+1],D=$-P,C=z-j,L=I-P,N=H-j,V=(D*N-C*L)*2;if(Math.abs(V)<1e-9){if(a===void 0){a=o=0;for(const K of n)a+=t[K*2],o+=t[K*2+1];a/=n.length,o/=n.length}const Z=1e9*Math.sign((a-P)*N-(o-j)*L);_=(P+I)/2-Z*N,E=(j+H)/2+Z*L}else{const Z=1/V,K=D*D+C*C,R=L*L+N*N;_=P+(N*K-C*R)*Z,E=j+(D*R-L*K)*Z}s[v]=_,s[v+1]=E}let u=n[n.length-1],c,l=u*4,d,h=t[2*u],g,m=t[2*u+1];i.fill(0);for(let y=0;y<n.length;++y)u=n[y],c=l,d=h,g=m,l=u*4,h=t[2*u],m=t[2*u+1],i[c+2]=i[l]=g-m,i[c+3]=i[l+1]=h-d}render(t){const n=t==null?t=new uu:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.length<=1)return null;for(let l=0,d=r.length;l<d;++l){const h=r[l];if(h<l)continue;const g=Math.floor(l/3)*2,m=Math.floor(h/3)*2,y=o[g],v=o[g+1],b=o[m],_=o[m+1];this._renderSegment(y,v,b,_,t)}let u,c=a[a.length-1];for(let l=0;l<a.length;++l){u=c,c=a[l];const d=Math.floor(i[c]/3)*2,h=o[d],g=o[d+1],m=u*4,y=this._project(h,g,s[m+2],s[m+3]);y&&this._renderSegment(h,g,y[0],y[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new uu:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new uu:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new qx;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),u=this._regioncode(r,i);s===0&&u===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,u))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,u=i.length;s<u;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+u-2)%u]&&n[(a+3)%o]===i[(s+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let u=o;do{const c=Math.floor(u/3);if(s.push(n[c*2],n[c*2+1]),u=u%3===2?u-2:u+1,a[u]!==t)break;u=i[u]}while(u!==o&&u!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return this._simplify(r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let i=null,a,o,s=n[r-2],u=n[r-1],c,l=this._regioncode(s,u),d,h=0;for(let g=0;g<r;g+=2)if(a=s,o=u,s=n[g],u=n[g+1],c=l,l=this._regioncode(s,u),c===0&&l===0)d=h,h=0,i?i.push(s,u):i=[s,u];else{let m,y,v,b,_;if(c===0){if((m=this._clipSegment(a,o,s,u,c,l))===null)continue;[y,v,b,_]=m}else{if((m=this._clipSegment(s,u,a,o,l,c))===null)continue;[b,_,y,v]=m,d=h,h=this._edgecode(y,v),d&&h&&this._edge(t,d,h,i,i.length),i?i.push(y,v):i=[y,v]}d=h,h=this._edgecode(b,_),d&&h&&this._edge(t,d,h,i,i.length),i?i.push(b,_):i=[b,_]}if(i)d=h,h=this._edgecode(i[0],i[1]),d&&h&&this._edge(t,d,h,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let u,c,l=a||o;l&8?(u=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):l&4?(u=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):l&2?(c=n+(i-n)*(this.xmax-t)/(r-t),u=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),u=this.xmin),a?(t=u,n=c,a=this._regioncode(t,n)):(r=u,i=c,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){let s=Array.from(n),u;if((u=this._project(s[0],s[1],r,i))&&s.unshift(u[0],u[1]),(u=this._project(s[s.length-2],s[s.length-1],a,o))&&s.push(u[0],u[1]),s=this._clipFinite(t,s))for(let c=0,l=s.length,d,h=this._edgecode(s[l-2],s[l-1]);c<l;c+=2)d=h,h=this._edgecode(s[c],s[c+1]),d&&h&&(c=this._edge(t,d,h,s,c),l=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,u;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(u=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(u=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,u=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,u=n+(a=o)*i)}return[s,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,i=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[i]||t[n+1]===t[r+1]&&t[r+1]===t[i+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const f0e=2*Math.PI,Ec=Math.pow;function d0e(e){return e[0]}function h0e(e){return e[1]}function p0e(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function g0e(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class kS{static from(t,n=d0e,r=h0e,i){return new kS("length"in t?v0e(t,n,r,i):Float64Array.from(m0e(t,n,r,i)))}constructor(t){this._delaunator=new uv(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&p0e(t)){this.collinear=Int32Array.from({length:n.length/2},(h,g)=>g).sort((h,g)=>n[2*h]-n[2*g]||n[2*h+1]-n[2*g+1]);const u=this.collinear[0],c=this.collinear[this.collinear.length-1],l=[n[2*u],n[2*u+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(l[3]-l[1],l[2]-l[0]);for(let h=0,g=n.length/2;h<g;++h){const m=g0e(n[2*h],n[2*h+1],d);n[2*h]=m[0],n[2*h+1]=m[1]}this._delaunator=new uv(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let u=0,c=r.length;u<c;++u){const l=a[u%3===2?u-2:u+1];(r[u]===-1||o[l]===-1)&&(o[l]=u)}for(let u=0,c=i.length;u<c;++u)s[i[u]]=u;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new pD(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const u=n[t];if(u===-1)return;let c=u,l=-1;do{if(yield l=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=a[c],c===-1){const d=r[(i[t]+1)%r.length];d!==l&&(yield d);return}}while(c!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:u,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let l=t,d=Ec(n-c[t*2],2)+Ec(r-c[t*2+1],2);const h=i[t];let g=h;do{let m=u[g];const y=Ec(n-c[m*2],2)+Ec(r-c[m*2+1],2);if(y<d&&(d=y,l=m),g=g%3===2?g-2:g+1,u[g]!==t)break;if(g=s[g],g===-1){if(g=a[(o[t]+1)%a.length],g!==m&&Ec(n-c[g*2],2)+Ec(r-c[g*2+1],2)<d)return g;break}}while(g!==h);return l}render(t){const n=t==null?t=new uu:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const u=i[o];if(u<o)continue;const c=a[o]*2,l=a[u]*2;t.moveTo(r[c],r[c+1]),t.lineTo(r[l],r[l+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new uu:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],u=i[a+1];t.moveTo(s+n,u),t.arc(s,u,n,0,f0e)}return r&&r.value()}renderHull(t){const n=t==null?t=new uu:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const u=2*r[s];t.lineTo(i[u],i[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new qx;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new uu:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,u=a[t+2]*2;return n.moveTo(i[o],i[o+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[u],i[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new qx;return this.renderTriangle(t,n),n.value()}}function v0e(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*m0e(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}var CC={},Ib={},Db=34,Af=10,Nb=13;function gD(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function y0e(e,t){var n=gD(e);return function(r,i){return t(n(r),i,e)}}function jC(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var i in r)i in t||n.push(t[i]=i)}),n}function Qr(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function b0e(e){return e<0?"-"+Qr(-e,6):e>9999?"+"+Qr(e,6):Qr(e,4)}function w0e(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":b0e(e.getUTCFullYear())+"-"+Qr(e.getUTCMonth()+1,2)+"-"+Qr(e.getUTCDate(),2)+(i?"T"+Qr(t,2)+":"+Qr(n,2)+":"+Qr(r,2)+"."+Qr(i,3)+"Z":r?"T"+Qr(t,2)+":"+Qr(n,2)+":"+Qr(r,2)+"Z":n||t?"T"+Qr(t,2)+":"+Qr(n,2)+"Z":"")}function ym(e){var t=new RegExp('["'+e+`
100
100
  \r]`),n=e.charCodeAt(0);function r(d,h){var g,m,y=i(d,function(v,b){if(g)return g(v,b-1);m=v,g=h?y0e(v,h):gD(v)});return y.columns=m||[],y}function i(d,h){var g=[],m=d.length,y=0,v=0,b,_=m<=0,E=!1;d.charCodeAt(m-1)===Af&&--m,d.charCodeAt(m-1)===Nb&&--m;function S(){if(_)return Ib;if(E)return E=!1,CC;var O,P=y,j;if(d.charCodeAt(P)===Db){for(;y++<m&&d.charCodeAt(y)!==Db||d.charCodeAt(++y)===Db;);return(O=y)>=m?_=!0:(j=d.charCodeAt(y++))===Af?E=!0:j===Nb&&(E=!0,d.charCodeAt(y)===Af&&++y),d.slice(P+1,O-1).replace(/""/g,'"')}for(;y<m;){if((j=d.charCodeAt(O=y++))===Af)E=!0;else if(j===Nb)E=!0,d.charCodeAt(y)===Af&&++y;else if(j!==n)continue;return d.slice(P,O)}return _=!0,d.slice(P,m)}for(;(b=S())!==Ib;){for(var A=[];b!==CC&&b!==Ib;)A.push(b),b=S();h&&(A=h(A,v++))==null||g.push(A)}return g}function a(d,h){return d.map(function(g){return h.map(function(m){return l(g[m])}).join(e)})}function o(d,h){return h==null&&(h=jC(d)),[h.map(l).join(e)].concat(a(d,h)).join(`
101
101
  `)}function s(d,h){return h==null&&(h=jC(d)),a(d,h).join(`
102
102
  `)}function u(d){return d.map(c).join(`
@@ -107,9 +107,9 @@ Take a look at the reducer(s) handling this action type: ${g.type}.
107
107
  * Released under MIT license <https://lodash.com/license>
108
108
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
109
109
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
110
- */var vwe=Zf.exports,C6;function mwe(){return C6||(C6=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",d=1,h=2,g=4,m=1,y=2,v=1,b=2,_=4,E=8,S=16,A=32,O=64,P=128,j=256,$=512,z=30,I="...",H=800,D=16,C=1,L=2,N=3,V=1/0,Z=9007199254740991,K=17976931348623157e292,R=NaN,W=4294967295,U=W-1,Y=W>>>1,ae=[["ary",P],["bind",v],["bindKey",b],["curry",E],["curryRight",S],["flip",$],["partial",A],["partialRight",O],["rearg",j]],re="[object Arguments]",ge="[object Array]",ye="[object AsyncFunction]",_e="[object Boolean]",ce="[object Date]",pe="[object DOMException]",Oe="[object Error]",oe="[object Function]",Re="[object GeneratorFunction]",$e="[object Map]",Qe="[object Number]",Ze="[object Null]",Se="[object Object]",at="[object Promise]",pn="[object Proxy]",St="[object RegExp]",nn="[object Set]",gn="[object String]",Or="[object Symbol]",hr="[object Undefined]",Tr="[object WeakMap]",Fl="[object WeakSet]",Ns="[object ArrayBuffer]",Uo="[object DataView]",Wl="[object Float32Array]",ql="[object Float64Array]",Vl="[object Int8Array]",Hl="[object Int16Array]",Ul="[object Int32Array]",Zu="[object Uint8Array]",ee="[object Uint8ClampedArray]",ne="[object Uint16Array]",be="[object Uint32Array]",Q=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,Pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ve=/&(?:amp|lt|gt|quot|#39);/g,Fe=/[&<>"']/g,Ge=RegExp(Ve.source),ct=RegExp(Fe.source),ze=/<%-([\s\S]+?)%>/g,ut=/<%([\s\S]+?)%>/g,bt=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,Gn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rn=/[\\^$.*+?()[\]{}|]/g,vn=RegExp(Rn.source),Ke=/^\s+/,Ie=/\s/,Dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zt=/\{\n\/\* \[wrapped with (.+)\] \*/,mn=/,? & /,Yt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,gt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,et=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,nr=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,Tt=/^(?:0|[1-9]\d*)$/,he=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fe=/($^)/,le=/['\n\r\u2028\u2029\\]/g,Be="\\ud800-\\udfff",Ht="\\u0300-\\u036f",Pr="\\ufe20-\\ufe2f",Pt="\\u20d0-\\u20ff",na=Ht+Pr+Pt,wa="\\u2700-\\u27bf",rr="a-z\\xdf-\\xf6\\xf8-\\xff",Go="\\xac\\xb1\\xd7\\xf7",Ce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ae="\\u2000-\\u206f",de=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ye="\\ufe0e\\ufe0f",st=Go+Ce+Ae+de,He="['’]",vt="["+Be+"]",mt="["+st+"]",ft="["+na+"]",Ut="\\d+",Xt="["+wa+"]",ra="["+rr+"]",fi="[^"+Be+st+Ut+wa+rr+Te+"]",xa="\\ud83c[\\udffb-\\udfff]",Gl="(?:"+ft+"|"+xa+")",Kl="[^"+Be+"]",Yl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ls="[\\ud800-\\udbff][\\udc00-\\udfff]",Xa="["+Te+"]",Za="\\u200d",Xl="(?:"+ra+"|"+fi+")",Ju="(?:"+Xa+"|"+fi+")",Zl="(?:"+He+"(?:d|ll|m|re|s|t|ve))?",Jl="(?:"+He+"(?:D|LL|M|RE|S|T|VE))?",Ko=Gl+"?",Ur="["+Ye+"]?",Mi="(?:"+Za+"(?:"+[Kl,Yl,Ls].join("|")+")"+Ur+Ko+")*",b$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",w$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_A=Ur+Ko+Mi,x$="(?:"+[Xt,Yl,Ls].join("|")+")"+_A,_$="(?:"+[Kl+ft+"?",ft,Yl,Ls,vt].join("|")+")",E$=RegExp(He,"g"),S$=RegExp(ft,"g"),Rm=RegExp(xa+"(?="+xa+")|"+_$+_A,"g"),A$=RegExp([Xa+"?"+ra+"+"+Zl+"(?="+[mt,Xa,"$"].join("|")+")",Ju+"+"+Jl+"(?="+[mt,Xa+Xl,"$"].join("|")+")",Xa+"?"+Xl+"+"+Zl,Xa+"+"+Jl,w$,b$,Ut,x$].join("|"),"g"),O$=RegExp("["+Za+Be+na+Ye+"]"),T$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P$=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],C$=-1,sn={};sn[Wl]=sn[ql]=sn[Vl]=sn[Hl]=sn[Ul]=sn[Zu]=sn[ee]=sn[ne]=sn[be]=!0,sn[re]=sn[ge]=sn[Ns]=sn[_e]=sn[Uo]=sn[ce]=sn[Oe]=sn[oe]=sn[$e]=sn[Qe]=sn[Se]=sn[St]=sn[nn]=sn[gn]=sn[Tr]=!1;var on={};on[re]=on[ge]=on[Ns]=on[Uo]=on[_e]=on[ce]=on[Wl]=on[ql]=on[Vl]=on[Hl]=on[Ul]=on[$e]=on[Qe]=on[Se]=on[St]=on[nn]=on[gn]=on[Or]=on[Zu]=on[ee]=on[ne]=on[be]=!0,on[Oe]=on[oe]=on[Tr]=!1;var j$={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},M$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},k$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},R$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},I$=parseFloat,D$=parseInt,EA=typeof dp=="object"&&dp&&dp.Object===Object&&dp,N$=typeof self=="object"&&self&&self.Object===Object&&self,ir=EA||N$||Function("return this")(),Im=t&&!t.nodeType&&t,$s=Im&&!0&&e&&!e.nodeType&&e,SA=$s&&$s.exports===Im,Dm=SA&&EA.process,ki=function(){try{var J=$s&&$s.require&&$s.require("util").types;return J||Dm&&Dm.binding&&Dm.binding("util")}catch{}}(),AA=ki&&ki.isArrayBuffer,OA=ki&&ki.isDate,TA=ki&&ki.isMap,PA=ki&&ki.isRegExp,CA=ki&&ki.isSet,jA=ki&&ki.isTypedArray;function di(J,me,ue){switch(ue.length){case 0:return J.call(me);case 1:return J.call(me,ue[0]);case 2:return J.call(me,ue[0],ue[1]);case 3:return J.call(me,ue[0],ue[1],ue[2])}return J.apply(me,ue)}function L$(J,me,ue,De){for(var dt=-1,Lt=J==null?0:J.length;++dt<Lt;){var Bn=J[dt];me(De,Bn,ue(Bn),J)}return De}function Ri(J,me){for(var ue=-1,De=J==null?0:J.length;++ue<De&&me(J[ue],ue,J)!==!1;);return J}function $$(J,me){for(var ue=J==null?0:J.length;ue--&&me(J[ue],ue,J)!==!1;);return J}function MA(J,me){for(var ue=-1,De=J==null?0:J.length;++ue<De;)if(!me(J[ue],ue,J))return!1;return!0}function Yo(J,me){for(var ue=-1,De=J==null?0:J.length,dt=0,Lt=[];++ue<De;){var Bn=J[ue];me(Bn,ue,J)&&(Lt[dt++]=Bn)}return Lt}function Oh(J,me){var ue=J==null?0:J.length;return!!ue&&Qu(J,me,0)>-1}function Nm(J,me,ue){for(var De=-1,dt=J==null?0:J.length;++De<dt;)if(ue(me,J[De]))return!0;return!1}function dn(J,me){for(var ue=-1,De=J==null?0:J.length,dt=Array(De);++ue<De;)dt[ue]=me(J[ue],ue,J);return dt}function Xo(J,me){for(var ue=-1,De=me.length,dt=J.length;++ue<De;)J[dt+ue]=me[ue];return J}function Lm(J,me,ue,De){var dt=-1,Lt=J==null?0:J.length;for(De&&Lt&&(ue=J[++dt]);++dt<Lt;)ue=me(ue,J[dt],dt,J);return ue}function B$(J,me,ue,De){var dt=J==null?0:J.length;for(De&&dt&&(ue=J[--dt]);dt--;)ue=me(ue,J[dt],dt,J);return ue}function $m(J,me){for(var ue=-1,De=J==null?0:J.length;++ue<De;)if(me(J[ue],ue,J))return!0;return!1}var z$=Bm("length");function F$(J){return J.split("")}function W$(J){return J.match(Yt)||[]}function kA(J,me,ue){var De;return ue(J,function(dt,Lt,Bn){if(me(dt,Lt,Bn))return De=Lt,!1}),De}function Th(J,me,ue,De){for(var dt=J.length,Lt=ue+(De?1:-1);De?Lt--:++Lt<dt;)if(me(J[Lt],Lt,J))return Lt;return-1}function Qu(J,me,ue){return me===me?eB(J,me,ue):Th(J,RA,ue)}function q$(J,me,ue,De){for(var dt=ue-1,Lt=J.length;++dt<Lt;)if(De(J[dt],me))return dt;return-1}function RA(J){return J!==J}function IA(J,me){var ue=J==null?0:J.length;return ue?Fm(J,me)/ue:R}function Bm(J){return function(me){return me==null?n:me[J]}}function zm(J){return function(me){return J==null?n:J[me]}}function DA(J,me,ue,De,dt){return dt(J,function(Lt,Bn,Zt){ue=De?(De=!1,Lt):me(ue,Lt,Bn,Zt)}),ue}function V$(J,me){var ue=J.length;for(J.sort(me);ue--;)J[ue]=J[ue].value;return J}function Fm(J,me){for(var ue,De=-1,dt=J.length;++De<dt;){var Lt=me(J[De]);Lt!==n&&(ue=ue===n?Lt:ue+Lt)}return ue}function Wm(J,me){for(var ue=-1,De=Array(J);++ue<J;)De[ue]=me(ue);return De}function H$(J,me){return dn(me,function(ue){return[ue,J[ue]]})}function NA(J){return J&&J.slice(0,zA(J)+1).replace(Ke,"")}function hi(J){return function(me){return J(me)}}function qm(J,me){return dn(me,function(ue){return J[ue]})}function Ql(J,me){return J.has(me)}function LA(J,me){for(var ue=-1,De=J.length;++ue<De&&Qu(me,J[ue],0)>-1;);return ue}function $A(J,me){for(var ue=J.length;ue--&&Qu(me,J[ue],0)>-1;);return ue}function U$(J,me){for(var ue=J.length,De=0;ue--;)J[ue]===me&&++De;return De}var G$=zm(j$),K$=zm(M$);function Y$(J){return"\\"+R$[J]}function X$(J,me){return J==null?n:J[me]}function ec(J){return O$.test(J)}function Z$(J){return T$.test(J)}function J$(J){for(var me,ue=[];!(me=J.next()).done;)ue.push(me.value);return ue}function Vm(J){var me=-1,ue=Array(J.size);return J.forEach(function(De,dt){ue[++me]=[dt,De]}),ue}function BA(J,me){return function(ue){return J(me(ue))}}function Zo(J,me){for(var ue=-1,De=J.length,dt=0,Lt=[];++ue<De;){var Bn=J[ue];(Bn===me||Bn===l)&&(J[ue]=l,Lt[dt++]=ue)}return Lt}function Ph(J){var me=-1,ue=Array(J.size);return J.forEach(function(De){ue[++me]=De}),ue}function Q$(J){var me=-1,ue=Array(J.size);return J.forEach(function(De){ue[++me]=[De,De]}),ue}function eB(J,me,ue){for(var De=ue-1,dt=J.length;++De<dt;)if(J[De]===me)return De;return-1}function tB(J,me,ue){for(var De=ue+1;De--;)if(J[De]===me)return De;return De}function tc(J){return ec(J)?rB(J):z$(J)}function ia(J){return ec(J)?iB(J):F$(J)}function zA(J){for(var me=J.length;me--&&Ie.test(J.charAt(me)););return me}var nB=zm(k$);function rB(J){for(var me=Rm.lastIndex=0;Rm.test(J);)++me;return me}function iB(J){return J.match(Rm)||[]}function aB(J){return J.match(A$)||[]}var oB=function J(me){me=me==null?ir:nc.defaults(ir.Object(),me,nc.pick(ir,P$));var ue=me.Array,De=me.Date,dt=me.Error,Lt=me.Function,Bn=me.Math,Zt=me.Object,Hm=me.RegExp,sB=me.String,Ii=me.TypeError,Ch=ue.prototype,uB=Lt.prototype,rc=Zt.prototype,jh=me["__core-js_shared__"],Mh=uB.toString,Gt=rc.hasOwnProperty,cB=0,FA=function(){var f=/[^.]+$/.exec(jh&&jh.keys&&jh.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),kh=rc.toString,lB=Mh.call(Zt),fB=ir._,dB=Hm("^"+Mh.call(Gt).replace(Rn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rh=SA?me.Buffer:n,Jo=me.Symbol,Ih=me.Uint8Array,WA=Rh?Rh.allocUnsafe:n,Dh=BA(Zt.getPrototypeOf,Zt),qA=Zt.create,VA=rc.propertyIsEnumerable,Nh=Ch.splice,HA=Jo?Jo.isConcatSpreadable:n,ef=Jo?Jo.iterator:n,Bs=Jo?Jo.toStringTag:n,Lh=function(){try{var f=Vs(Zt,"defineProperty");return f({},"",{}),f}catch{}}(),hB=me.clearTimeout!==ir.clearTimeout&&me.clearTimeout,pB=De&&De.now!==ir.Date.now&&De.now,gB=me.setTimeout!==ir.setTimeout&&me.setTimeout,$h=Bn.ceil,Bh=Bn.floor,Um=Zt.getOwnPropertySymbols,vB=Rh?Rh.isBuffer:n,UA=me.isFinite,mB=Ch.join,yB=BA(Zt.keys,Zt),zn=Bn.max,pr=Bn.min,bB=De.now,wB=me.parseInt,GA=Bn.random,xB=Ch.reverse,Gm=Vs(me,"DataView"),tf=Vs(me,"Map"),Km=Vs(me,"Promise"),ic=Vs(me,"Set"),nf=Vs(me,"WeakMap"),rf=Vs(Zt,"create"),zh=nf&&new nf,ac={},_B=Hs(Gm),EB=Hs(tf),SB=Hs(Km),AB=Hs(ic),OB=Hs(nf),Fh=Jo?Jo.prototype:n,af=Fh?Fh.valueOf:n,KA=Fh?Fh.toString:n;function F(f){if(En(f)&&!ht(f)&&!(f instanceof jt)){if(f instanceof Di)return f;if(Gt.call(f,"__wrapped__"))return Y3(f)}return new Di(f)}var oc=function(){function f(){}return function(p){if(!yn(p))return{};if(qA)return qA(p);f.prototype=p;var x=new f;return f.prototype=n,x}}();function Wh(){}function Di(f,p){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=n}F.templateSettings={escape:ze,evaluate:ut,interpolate:bt,variable:"",imports:{_:F}},F.prototype=Wh.prototype,F.prototype.constructor=F,Di.prototype=oc(Wh.prototype),Di.prototype.constructor=Di;function jt(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=W,this.__views__=[]}function TB(){var f=new jt(this.__wrapped__);return f.__actions__=Gr(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Gr(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Gr(this.__views__),f}function PB(){if(this.__filtered__){var f=new jt(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function CB(){var f=this.__wrapped__.value(),p=this.__dir__,x=ht(f),T=p<0,M=x?f.length:0,q=Fz(0,M,this.__views__),G=q.start,X=q.end,te=X-G,we=T?X:G-1,xe=this.__iteratees__,Ee=xe.length,je=0,We=pr(te,this.__takeCount__);if(!x||!T&&M==te&&We==te)return y3(f,this.__actions__);var nt=[];e:for(;te--&&je<We;){we+=p;for(var xt=-1,rt=f[we];++xt<Ee;){var Ct=xe[xt],kt=Ct.iteratee,vi=Ct.type,Mr=kt(rt);if(vi==L)rt=Mr;else if(!Mr){if(vi==C)continue e;break e}}nt[je++]=rt}return nt}jt.prototype=oc(Wh.prototype),jt.prototype.constructor=jt;function zs(f){var p=-1,x=f==null?0:f.length;for(this.clear();++p<x;){var T=f[p];this.set(T[0],T[1])}}function jB(){this.__data__=rf?rf(null):{},this.size=0}function MB(f){var p=this.has(f)&&delete this.__data__[f];return this.size-=p?1:0,p}function kB(f){var p=this.__data__;if(rf){var x=p[f];return x===u?n:x}return Gt.call(p,f)?p[f]:n}function RB(f){var p=this.__data__;return rf?p[f]!==n:Gt.call(p,f)}function IB(f,p){var x=this.__data__;return this.size+=this.has(f)?0:1,x[f]=rf&&p===n?u:p,this}zs.prototype.clear=jB,zs.prototype.delete=MB,zs.prototype.get=kB,zs.prototype.has=RB,zs.prototype.set=IB;function Ja(f){var p=-1,x=f==null?0:f.length;for(this.clear();++p<x;){var T=f[p];this.set(T[0],T[1])}}function DB(){this.__data__=[],this.size=0}function NB(f){var p=this.__data__,x=qh(p,f);if(x<0)return!1;var T=p.length-1;return x==T?p.pop():Nh.call(p,x,1),--this.size,!0}function LB(f){var p=this.__data__,x=qh(p,f);return x<0?n:p[x][1]}function $B(f){return qh(this.__data__,f)>-1}function BB(f,p){var x=this.__data__,T=qh(x,f);return T<0?(++this.size,x.push([f,p])):x[T][1]=p,this}Ja.prototype.clear=DB,Ja.prototype.delete=NB,Ja.prototype.get=LB,Ja.prototype.has=$B,Ja.prototype.set=BB;function Qa(f){var p=-1,x=f==null?0:f.length;for(this.clear();++p<x;){var T=f[p];this.set(T[0],T[1])}}function zB(){this.size=0,this.__data__={hash:new zs,map:new(tf||Ja),string:new zs}}function FB(f){var p=tp(this,f).delete(f);return this.size-=p?1:0,p}function WB(f){return tp(this,f).get(f)}function qB(f){return tp(this,f).has(f)}function VB(f,p){var x=tp(this,f),T=x.size;return x.set(f,p),this.size+=x.size==T?0:1,this}Qa.prototype.clear=zB,Qa.prototype.delete=FB,Qa.prototype.get=WB,Qa.prototype.has=qB,Qa.prototype.set=VB;function Fs(f){var p=-1,x=f==null?0:f.length;for(this.__data__=new Qa;++p<x;)this.add(f[p])}function HB(f){return this.__data__.set(f,u),this}function UB(f){return this.__data__.has(f)}Fs.prototype.add=Fs.prototype.push=HB,Fs.prototype.has=UB;function aa(f){var p=this.__data__=new Ja(f);this.size=p.size}function GB(){this.__data__=new Ja,this.size=0}function KB(f){var p=this.__data__,x=p.delete(f);return this.size=p.size,x}function YB(f){return this.__data__.get(f)}function XB(f){return this.__data__.has(f)}function ZB(f,p){var x=this.__data__;if(x instanceof Ja){var T=x.__data__;if(!tf||T.length<i-1)return T.push([f,p]),this.size=++x.size,this;x=this.__data__=new Qa(T)}return x.set(f,p),this.size=x.size,this}aa.prototype.clear=GB,aa.prototype.delete=KB,aa.prototype.get=YB,aa.prototype.has=XB,aa.prototype.set=ZB;function YA(f,p){var x=ht(f),T=!x&&Us(f),M=!x&&!T&&rs(f),q=!x&&!T&&!M&&lc(f),G=x||T||M||q,X=G?Wm(f.length,sB):[],te=X.length;for(var we in f)(p||Gt.call(f,we))&&!(G&&(we=="length"||M&&(we=="offset"||we=="parent")||q&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||ro(we,te)))&&X.push(we);return X}function XA(f){var p=f.length;return p?f[ay(0,p-1)]:n}function JB(f,p){return np(Gr(f),Ws(p,0,f.length))}function QB(f){return np(Gr(f))}function Ym(f,p,x){(x!==n&&!oa(f[p],x)||x===n&&!(p in f))&&eo(f,p,x)}function of(f,p,x){var T=f[p];(!(Gt.call(f,p)&&oa(T,x))||x===n&&!(p in f))&&eo(f,p,x)}function qh(f,p){for(var x=f.length;x--;)if(oa(f[x][0],p))return x;return-1}function ez(f,p,x,T){return Qo(f,function(M,q,G){p(T,M,x(M),G)}),T}function ZA(f,p){return f&&Ea(p,Kn(p),f)}function tz(f,p){return f&&Ea(p,Yr(p),f)}function eo(f,p,x){p=="__proto__"&&Lh?Lh(f,p,{configurable:!0,enumerable:!0,value:x,writable:!0}):f[p]=x}function Xm(f,p){for(var x=-1,T=p.length,M=ue(T),q=f==null;++x<T;)M[x]=q?n:jy(f,p[x]);return M}function Ws(f,p,x){return f===f&&(x!==n&&(f=f<=x?f:x),p!==n&&(f=f>=p?f:p)),f}function Ni(f,p,x,T,M,q){var G,X=p&d,te=p&h,we=p&g;if(x&&(G=M?x(f,T,M,q):x(f)),G!==n)return G;if(!yn(f))return f;var xe=ht(f);if(xe){if(G=qz(f),!X)return Gr(f,G)}else{var Ee=gr(f),je=Ee==oe||Ee==Re;if(rs(f))return x3(f,X);if(Ee==Se||Ee==re||je&&!M){if(G=te||je?{}:z3(f),!X)return te?kz(f,tz(G,f)):Mz(f,ZA(G,f))}else{if(!on[Ee])return M?f:{};G=Vz(f,Ee,X)}}q||(q=new aa);var We=q.get(f);if(We)return We;q.set(f,G),gO(f)?f.forEach(function(rt){G.add(Ni(rt,p,x,rt,f,q))}):hO(f)&&f.forEach(function(rt,Ct){G.set(Ct,Ni(rt,p,x,Ct,f,q))});var nt=we?te?vy:gy:te?Yr:Kn,xt=xe?n:nt(f);return Ri(xt||f,function(rt,Ct){xt&&(Ct=rt,rt=f[Ct]),of(G,Ct,Ni(rt,p,x,Ct,f,q))}),G}function nz(f){var p=Kn(f);return function(x){return JA(x,f,p)}}function JA(f,p,x){var T=x.length;if(f==null)return!T;for(f=Zt(f);T--;){var M=x[T],q=p[M],G=f[M];if(G===n&&!(M in f)||!q(G))return!1}return!0}function QA(f,p,x){if(typeof f!="function")throw new Ii(o);return hf(function(){f.apply(n,x)},p)}function sf(f,p,x,T){var M=-1,q=Oh,G=!0,X=f.length,te=[],we=p.length;if(!X)return te;x&&(p=dn(p,hi(x))),T?(q=Nm,G=!1):p.length>=i&&(q=Ql,G=!1,p=new Fs(p));e:for(;++M<X;){var xe=f[M],Ee=x==null?xe:x(xe);if(xe=T||xe!==0?xe:0,G&&Ee===Ee){for(var je=we;je--;)if(p[je]===Ee)continue e;te.push(xe)}else q(p,Ee,T)||te.push(xe)}return te}var Qo=O3(_a),e3=O3(Jm,!0);function rz(f,p){var x=!0;return Qo(f,function(T,M,q){return x=!!p(T,M,q),x}),x}function Vh(f,p,x){for(var T=-1,M=f.length;++T<M;){var q=f[T],G=p(q);if(G!=null&&(X===n?G===G&&!gi(G):x(G,X)))var X=G,te=q}return te}function iz(f,p,x,T){var M=f.length;for(x=wt(x),x<0&&(x=-x>M?0:M+x),T=T===n||T>M?M:wt(T),T<0&&(T+=M),T=x>T?0:mO(T);x<T;)f[x++]=p;return f}function t3(f,p){var x=[];return Qo(f,function(T,M,q){p(T,M,q)&&x.push(T)}),x}function ar(f,p,x,T,M){var q=-1,G=f.length;for(x||(x=Uz),M||(M=[]);++q<G;){var X=f[q];p>0&&x(X)?p>1?ar(X,p-1,x,T,M):Xo(M,X):T||(M[M.length]=X)}return M}var Zm=T3(),n3=T3(!0);function _a(f,p){return f&&Zm(f,p,Kn)}function Jm(f,p){return f&&n3(f,p,Kn)}function Hh(f,p){return Yo(p,function(x){return io(f[x])})}function qs(f,p){p=ts(p,f);for(var x=0,T=p.length;f!=null&&x<T;)f=f[Sa(p[x++])];return x&&x==T?f:n}function r3(f,p,x){var T=p(f);return ht(f)?T:Xo(T,x(f))}function Cr(f){return f==null?f===n?hr:Ze:Bs&&Bs in Zt(f)?zz(f):Qz(f)}function Qm(f,p){return f>p}function az(f,p){return f!=null&&Gt.call(f,p)}function oz(f,p){return f!=null&&p in Zt(f)}function sz(f,p,x){return f>=pr(p,x)&&f<zn(p,x)}function ey(f,p,x){for(var T=x?Nm:Oh,M=f[0].length,q=f.length,G=q,X=ue(q),te=1/0,we=[];G--;){var xe=f[G];G&&p&&(xe=dn(xe,hi(p))),te=pr(xe.length,te),X[G]=!x&&(p||M>=120&&xe.length>=120)?new Fs(G&&xe):n}xe=f[0];var Ee=-1,je=X[0];e:for(;++Ee<M&&we.length<te;){var We=xe[Ee],nt=p?p(We):We;if(We=x||We!==0?We:0,!(je?Ql(je,nt):T(we,nt,x))){for(G=q;--G;){var xt=X[G];if(!(xt?Ql(xt,nt):T(f[G],nt,x)))continue e}je&&je.push(nt),we.push(We)}}return we}function uz(f,p,x,T){return _a(f,function(M,q,G){p(T,x(M),q,G)}),T}function uf(f,p,x){p=ts(p,f),f=V3(f,p);var T=f==null?f:f[Sa($i(p))];return T==null?n:di(T,f,x)}function i3(f){return En(f)&&Cr(f)==re}function cz(f){return En(f)&&Cr(f)==Ns}function lz(f){return En(f)&&Cr(f)==ce}function cf(f,p,x,T,M){return f===p?!0:f==null||p==null||!En(f)&&!En(p)?f!==f&&p!==p:fz(f,p,x,T,cf,M)}function fz(f,p,x,T,M,q){var G=ht(f),X=ht(p),te=G?ge:gr(f),we=X?ge:gr(p);te=te==re?Se:te,we=we==re?Se:we;var xe=te==Se,Ee=we==Se,je=te==we;if(je&&rs(f)){if(!rs(p))return!1;G=!0,xe=!1}if(je&&!xe)return q||(q=new aa),G||lc(f)?L3(f,p,x,T,M,q):$z(f,p,te,x,T,M,q);if(!(x&m)){var We=xe&&Gt.call(f,"__wrapped__"),nt=Ee&&Gt.call(p,"__wrapped__");if(We||nt){var xt=We?f.value():f,rt=nt?p.value():p;return q||(q=new aa),M(xt,rt,x,T,q)}}return je?(q||(q=new aa),Bz(f,p,x,T,M,q)):!1}function dz(f){return En(f)&&gr(f)==$e}function ty(f,p,x,T){var M=x.length,q=M,G=!T;if(f==null)return!q;for(f=Zt(f);M--;){var X=x[M];if(G&&X[2]?X[1]!==f[X[0]]:!(X[0]in f))return!1}for(;++M<q;){X=x[M];var te=X[0],we=f[te],xe=X[1];if(G&&X[2]){if(we===n&&!(te in f))return!1}else{var Ee=new aa;if(T)var je=T(we,xe,te,f,p,Ee);if(!(je===n?cf(xe,we,m|y,T,Ee):je))return!1}}return!0}function a3(f){if(!yn(f)||Kz(f))return!1;var p=io(f)?dB:nr;return p.test(Hs(f))}function hz(f){return En(f)&&Cr(f)==St}function pz(f){return En(f)&&gr(f)==nn}function gz(f){return En(f)&&up(f.length)&&!!sn[Cr(f)]}function o3(f){return typeof f=="function"?f:f==null?Xr:typeof f=="object"?ht(f)?c3(f[0],f[1]):u3(f):PO(f)}function ny(f){if(!df(f))return yB(f);var p=[];for(var x in Zt(f))Gt.call(f,x)&&x!="constructor"&&p.push(x);return p}function vz(f){if(!yn(f))return Jz(f);var p=df(f),x=[];for(var T in f)T=="constructor"&&(p||!Gt.call(f,T))||x.push(T);return x}function ry(f,p){return f<p}function s3(f,p){var x=-1,T=Kr(f)?ue(f.length):[];return Qo(f,function(M,q,G){T[++x]=p(M,q,G)}),T}function u3(f){var p=yy(f);return p.length==1&&p[0][2]?W3(p[0][0],p[0][1]):function(x){return x===f||ty(x,f,p)}}function c3(f,p){return wy(f)&&F3(p)?W3(Sa(f),p):function(x){var T=jy(x,f);return T===n&&T===p?My(x,f):cf(p,T,m|y)}}function Uh(f,p,x,T,M){f!==p&&Zm(p,function(q,G){if(M||(M=new aa),yn(q))mz(f,p,G,x,Uh,T,M);else{var X=T?T(_y(f,G),q,G+"",f,p,M):n;X===n&&(X=q),Ym(f,G,X)}},Yr)}function mz(f,p,x,T,M,q,G){var X=_y(f,x),te=_y(p,x),we=G.get(te);if(we){Ym(f,x,we);return}var xe=q?q(X,te,x+"",f,p,G):n,Ee=xe===n;if(Ee){var je=ht(te),We=!je&&rs(te),nt=!je&&!We&&lc(te);xe=te,je||We||nt?ht(X)?xe=X:Pn(X)?xe=Gr(X):We?(Ee=!1,xe=x3(te,!0)):nt?(Ee=!1,xe=_3(te,!0)):xe=[]:pf(te)||Us(te)?(xe=X,Us(X)?xe=yO(X):(!yn(X)||io(X))&&(xe=z3(te))):Ee=!1}Ee&&(G.set(te,xe),M(xe,te,T,q,G),G.delete(te)),Ym(f,x,xe)}function l3(f,p){var x=f.length;if(x)return p+=p<0?x:0,ro(p,x)?f[p]:n}function f3(f,p,x){p.length?p=dn(p,function(q){return ht(q)?function(G){return qs(G,q.length===1?q[0]:q)}:q}):p=[Xr];var T=-1;p=dn(p,hi(tt()));var M=s3(f,function(q,G,X){var te=dn(p,function(we){return we(q)});return{criteria:te,index:++T,value:q}});return V$(M,function(q,G){return jz(q,G,x)})}function yz(f,p){return d3(f,p,function(x,T){return My(f,T)})}function d3(f,p,x){for(var T=-1,M=p.length,q={};++T<M;){var G=p[T],X=qs(f,G);x(X,G)&&lf(q,ts(G,f),X)}return q}function bz(f){return function(p){return qs(p,f)}}function iy(f,p,x,T){var M=T?q$:Qu,q=-1,G=p.length,X=f;for(f===p&&(p=Gr(p)),x&&(X=dn(f,hi(x)));++q<G;)for(var te=0,we=p[q],xe=x?x(we):we;(te=M(X,xe,te,T))>-1;)X!==f&&Nh.call(X,te,1),Nh.call(f,te,1);return f}function h3(f,p){for(var x=f?p.length:0,T=x-1;x--;){var M=p[x];if(x==T||M!==q){var q=M;ro(M)?Nh.call(f,M,1):uy(f,M)}}return f}function ay(f,p){return f+Bh(GA()*(p-f+1))}function wz(f,p,x,T){for(var M=-1,q=zn($h((p-f)/(x||1)),0),G=ue(q);q--;)G[T?q:++M]=f,f+=x;return G}function oy(f,p){var x="";if(!f||p<1||p>Z)return x;do p%2&&(x+=f),p=Bh(p/2),p&&(f+=f);while(p);return x}function _t(f,p){return Ey(q3(f,p,Xr),f+"")}function xz(f){return XA(fc(f))}function _z(f,p){var x=fc(f);return np(x,Ws(p,0,x.length))}function lf(f,p,x,T){if(!yn(f))return f;p=ts(p,f);for(var M=-1,q=p.length,G=q-1,X=f;X!=null&&++M<q;){var te=Sa(p[M]),we=x;if(te==="__proto__"||te==="constructor"||te==="prototype")return f;if(M!=G){var xe=X[te];we=T?T(xe,te,X):n,we===n&&(we=yn(xe)?xe:ro(p[M+1])?[]:{})}of(X,te,we),X=X[te]}return f}var p3=zh?function(f,p){return zh.set(f,p),f}:Xr,Ez=Lh?function(f,p){return Lh(f,"toString",{configurable:!0,enumerable:!1,value:Ry(p),writable:!0})}:Xr;function Sz(f){return np(fc(f))}function Li(f,p,x){var T=-1,M=f.length;p<0&&(p=-p>M?0:M+p),x=x>M?M:x,x<0&&(x+=M),M=p>x?0:x-p>>>0,p>>>=0;for(var q=ue(M);++T<M;)q[T]=f[T+p];return q}function Az(f,p){var x;return Qo(f,function(T,M,q){return x=p(T,M,q),!x}),!!x}function Gh(f,p,x){var T=0,M=f==null?T:f.length;if(typeof p=="number"&&p===p&&M<=Y){for(;T<M;){var q=T+M>>>1,G=f[q];G!==null&&!gi(G)&&(x?G<=p:G<p)?T=q+1:M=q}return M}return sy(f,p,Xr,x)}function sy(f,p,x,T){var M=0,q=f==null?0:f.length;if(q===0)return 0;p=x(p);for(var G=p!==p,X=p===null,te=gi(p),we=p===n;M<q;){var xe=Bh((M+q)/2),Ee=x(f[xe]),je=Ee!==n,We=Ee===null,nt=Ee===Ee,xt=gi(Ee);if(G)var rt=T||nt;else we?rt=nt&&(T||je):X?rt=nt&&je&&(T||!We):te?rt=nt&&je&&!We&&(T||!xt):We||xt?rt=!1:rt=T?Ee<=p:Ee<p;rt?M=xe+1:q=xe}return pr(q,U)}function g3(f,p){for(var x=-1,T=f.length,M=0,q=[];++x<T;){var G=f[x],X=p?p(G):G;if(!x||!oa(X,te)){var te=X;q[M++]=G===0?0:G}}return q}function v3(f){return typeof f=="number"?f:gi(f)?R:+f}function pi(f){if(typeof f=="string")return f;if(ht(f))return dn(f,pi)+"";if(gi(f))return KA?KA.call(f):"";var p=f+"";return p=="0"&&1/f==-V?"-0":p}function es(f,p,x){var T=-1,M=Oh,q=f.length,G=!0,X=[],te=X;if(x)G=!1,M=Nm;else if(q>=i){var we=p?null:Nz(f);if(we)return Ph(we);G=!1,M=Ql,te=new Fs}else te=p?[]:X;e:for(;++T<q;){var xe=f[T],Ee=p?p(xe):xe;if(xe=x||xe!==0?xe:0,G&&Ee===Ee){for(var je=te.length;je--;)if(te[je]===Ee)continue e;p&&te.push(Ee),X.push(xe)}else M(te,Ee,x)||(te!==X&&te.push(Ee),X.push(xe))}return X}function uy(f,p){return p=ts(p,f),f=V3(f,p),f==null||delete f[Sa($i(p))]}function m3(f,p,x,T){return lf(f,p,x(qs(f,p)),T)}function Kh(f,p,x,T){for(var M=f.length,q=T?M:-1;(T?q--:++q<M)&&p(f[q],q,f););return x?Li(f,T?0:q,T?q+1:M):Li(f,T?q+1:0,T?M:q)}function y3(f,p){var x=f;return x instanceof jt&&(x=x.value()),Lm(p,function(T,M){return M.func.apply(M.thisArg,Xo([T],M.args))},x)}function cy(f,p,x){var T=f.length;if(T<2)return T?es(f[0]):[];for(var M=-1,q=ue(T);++M<T;)for(var G=f[M],X=-1;++X<T;)X!=M&&(q[M]=sf(q[M]||G,f[X],p,x));return es(ar(q,1),p,x)}function b3(f,p,x){for(var T=-1,M=f.length,q=p.length,G={};++T<M;){var X=T<q?p[T]:n;x(G,f[T],X)}return G}function ly(f){return Pn(f)?f:[]}function fy(f){return typeof f=="function"?f:Xr}function ts(f,p){return ht(f)?f:wy(f,p)?[f]:K3(Ft(f))}var Oz=_t;function ns(f,p,x){var T=f.length;return x=x===n?T:x,!p&&x>=T?f:Li(f,p,x)}var w3=hB||function(f){return ir.clearTimeout(f)};function x3(f,p){if(p)return f.slice();var x=f.length,T=WA?WA(x):new f.constructor(x);return f.copy(T),T}function dy(f){var p=new f.constructor(f.byteLength);return new Ih(p).set(new Ih(f)),p}function Tz(f,p){var x=p?dy(f.buffer):f.buffer;return new f.constructor(x,f.byteOffset,f.byteLength)}function Pz(f){var p=new f.constructor(f.source,ot.exec(f));return p.lastIndex=f.lastIndex,p}function Cz(f){return af?Zt(af.call(f)):{}}function _3(f,p){var x=p?dy(f.buffer):f.buffer;return new f.constructor(x,f.byteOffset,f.length)}function E3(f,p){if(f!==p){var x=f!==n,T=f===null,M=f===f,q=gi(f),G=p!==n,X=p===null,te=p===p,we=gi(p);if(!X&&!we&&!q&&f>p||q&&G&&te&&!X&&!we||T&&G&&te||!x&&te||!M)return 1;if(!T&&!q&&!we&&f<p||we&&x&&M&&!T&&!q||X&&x&&M||!G&&M||!te)return-1}return 0}function jz(f,p,x){for(var T=-1,M=f.criteria,q=p.criteria,G=M.length,X=x.length;++T<G;){var te=E3(M[T],q[T]);if(te){if(T>=X)return te;var we=x[T];return te*(we=="desc"?-1:1)}}return f.index-p.index}function S3(f,p,x,T){for(var M=-1,q=f.length,G=x.length,X=-1,te=p.length,we=zn(q-G,0),xe=ue(te+we),Ee=!T;++X<te;)xe[X]=p[X];for(;++M<G;)(Ee||M<q)&&(xe[x[M]]=f[M]);for(;we--;)xe[X++]=f[M++];return xe}function A3(f,p,x,T){for(var M=-1,q=f.length,G=-1,X=x.length,te=-1,we=p.length,xe=zn(q-X,0),Ee=ue(xe+we),je=!T;++M<xe;)Ee[M]=f[M];for(var We=M;++te<we;)Ee[We+te]=p[te];for(;++G<X;)(je||M<q)&&(Ee[We+x[G]]=f[M++]);return Ee}function Gr(f,p){var x=-1,T=f.length;for(p||(p=ue(T));++x<T;)p[x]=f[x];return p}function Ea(f,p,x,T){var M=!x;x||(x={});for(var q=-1,G=p.length;++q<G;){var X=p[q],te=T?T(x[X],f[X],X,x,f):n;te===n&&(te=f[X]),M?eo(x,X,te):of(x,X,te)}return x}function Mz(f,p){return Ea(f,by(f),p)}function kz(f,p){return Ea(f,$3(f),p)}function Yh(f,p){return function(x,T){var M=ht(x)?L$:ez,q=p?p():{};return M(x,f,tt(T,2),q)}}function sc(f){return _t(function(p,x){var T=-1,M=x.length,q=M>1?x[M-1]:n,G=M>2?x[2]:n;for(q=f.length>3&&typeof q=="function"?(M--,q):n,G&&jr(x[0],x[1],G)&&(q=M<3?n:q,M=1),p=Zt(p);++T<M;){var X=x[T];X&&f(p,X,T,q)}return p})}function O3(f,p){return function(x,T){if(x==null)return x;if(!Kr(x))return f(x,T);for(var M=x.length,q=p?M:-1,G=Zt(x);(p?q--:++q<M)&&T(G[q],q,G)!==!1;);return x}}function T3(f){return function(p,x,T){for(var M=-1,q=Zt(p),G=T(p),X=G.length;X--;){var te=G[f?X:++M];if(x(q[te],te,q)===!1)break}return p}}function Rz(f,p,x){var T=p&v,M=ff(f);function q(){var G=this&&this!==ir&&this instanceof q?M:f;return G.apply(T?x:this,arguments)}return q}function P3(f){return function(p){p=Ft(p);var x=ec(p)?ia(p):n,T=x?x[0]:p.charAt(0),M=x?ns(x,1).join(""):p.slice(1);return T[f]()+M}}function uc(f){return function(p){return Lm(OO(AO(p).replace(E$,"")),f,"")}}function ff(f){return function(){var p=arguments;switch(p.length){case 0:return new f;case 1:return new f(p[0]);case 2:return new f(p[0],p[1]);case 3:return new f(p[0],p[1],p[2]);case 4:return new f(p[0],p[1],p[2],p[3]);case 5:return new f(p[0],p[1],p[2],p[3],p[4]);case 6:return new f(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new f(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var x=oc(f.prototype),T=f.apply(x,p);return yn(T)?T:x}}function Iz(f,p,x){var T=ff(f);function M(){for(var q=arguments.length,G=ue(q),X=q,te=cc(M);X--;)G[X]=arguments[X];var we=q<3&&G[0]!==te&&G[q-1]!==te?[]:Zo(G,te);if(q-=we.length,q<x)return R3(f,p,Xh,M.placeholder,n,G,we,n,n,x-q);var xe=this&&this!==ir&&this instanceof M?T:f;return di(xe,this,G)}return M}function C3(f){return function(p,x,T){var M=Zt(p);if(!Kr(p)){var q=tt(x,3);p=Kn(p),x=function(X){return q(M[X],X,M)}}var G=f(p,x,T);return G>-1?M[q?p[G]:G]:n}}function j3(f){return no(function(p){var x=p.length,T=x,M=Di.prototype.thru;for(f&&p.reverse();T--;){var q=p[T];if(typeof q!="function")throw new Ii(o);if(M&&!G&&ep(q)=="wrapper")var G=new Di([],!0)}for(T=G?T:x;++T<x;){q=p[T];var X=ep(q),te=X=="wrapper"?my(q):n;te&&xy(te[0])&&te[1]==(P|E|A|j)&&!te[4].length&&te[9]==1?G=G[ep(te[0])].apply(G,te[3]):G=q.length==1&&xy(q)?G[X]():G.thru(q)}return function(){var we=arguments,xe=we[0];if(G&&we.length==1&&ht(xe))return G.plant(xe).value();for(var Ee=0,je=x?p[Ee].apply(this,we):xe;++Ee<x;)je=p[Ee].call(this,je);return je}})}function Xh(f,p,x,T,M,q,G,X,te,we){var xe=p&P,Ee=p&v,je=p&b,We=p&(E|S),nt=p&$,xt=je?n:ff(f);function rt(){for(var Ct=arguments.length,kt=ue(Ct),vi=Ct;vi--;)kt[vi]=arguments[vi];if(We)var Mr=cc(rt),mi=U$(kt,Mr);if(T&&(kt=S3(kt,T,M,We)),q&&(kt=A3(kt,q,G,We)),Ct-=mi,We&&Ct<we){var Cn=Zo(kt,Mr);return R3(f,p,Xh,rt.placeholder,x,kt,Cn,X,te,we-Ct)}var sa=Ee?x:this,oo=je?sa[f]:f;return Ct=kt.length,X?kt=eF(kt,X):nt&&Ct>1&&kt.reverse(),xe&&te<Ct&&(kt.length=te),this&&this!==ir&&this instanceof rt&&(oo=xt||ff(oo)),oo.apply(sa,kt)}return rt}function M3(f,p){return function(x,T){return uz(x,f,p(T),{})}}function Zh(f,p){return function(x,T){var M;if(x===n&&T===n)return p;if(x!==n&&(M=x),T!==n){if(M===n)return T;typeof x=="string"||typeof T=="string"?(x=pi(x),T=pi(T)):(x=v3(x),T=v3(T)),M=f(x,T)}return M}}function hy(f){return no(function(p){return p=dn(p,hi(tt())),_t(function(x){var T=this;return f(p,function(M){return di(M,T,x)})})})}function Jh(f,p){p=p===n?" ":pi(p);var x=p.length;if(x<2)return x?oy(p,f):p;var T=oy(p,$h(f/tc(p)));return ec(p)?ns(ia(T),0,f).join(""):T.slice(0,f)}function Dz(f,p,x,T){var M=p&v,q=ff(f);function G(){for(var X=-1,te=arguments.length,we=-1,xe=T.length,Ee=ue(xe+te),je=this&&this!==ir&&this instanceof G?q:f;++we<xe;)Ee[we]=T[we];for(;te--;)Ee[we++]=arguments[++X];return di(je,M?x:this,Ee)}return G}function k3(f){return function(p,x,T){return T&&typeof T!="number"&&jr(p,x,T)&&(x=T=n),p=ao(p),x===n?(x=p,p=0):x=ao(x),T=T===n?p<x?1:-1:ao(T),wz(p,x,T,f)}}function Qh(f){return function(p,x){return typeof p=="string"&&typeof x=="string"||(p=Bi(p),x=Bi(x)),f(p,x)}}function R3(f,p,x,T,M,q,G,X,te,we){var xe=p&E,Ee=xe?G:n,je=xe?n:G,We=xe?q:n,nt=xe?n:q;p|=xe?A:O,p&=~(xe?O:A),p&_||(p&=-4);var xt=[f,p,M,We,Ee,nt,je,X,te,we],rt=x.apply(n,xt);return xy(f)&&H3(rt,xt),rt.placeholder=T,U3(rt,f,p)}function py(f){var p=Bn[f];return function(x,T){if(x=Bi(x),T=T==null?0:pr(wt(T),292),T&&UA(x)){var M=(Ft(x)+"e").split("e"),q=p(M[0]+"e"+(+M[1]+T));return M=(Ft(q)+"e").split("e"),+(M[0]+"e"+(+M[1]-T))}return p(x)}}var Nz=ic&&1/Ph(new ic([,-0]))[1]==V?function(f){return new ic(f)}:Ny;function I3(f){return function(p){var x=gr(p);return x==$e?Vm(p):x==nn?Q$(p):H$(p,f(p))}}function to(f,p,x,T,M,q,G,X){var te=p&b;if(!te&&typeof f!="function")throw new Ii(o);var we=T?T.length:0;if(we||(p&=-97,T=M=n),G=G===n?G:zn(wt(G),0),X=X===n?X:wt(X),we-=M?M.length:0,p&O){var xe=T,Ee=M;T=M=n}var je=te?n:my(f),We=[f,p,x,T,M,xe,Ee,q,G,X];if(je&&Zz(We,je),f=We[0],p=We[1],x=We[2],T=We[3],M=We[4],X=We[9]=We[9]===n?te?0:f.length:zn(We[9]-we,0),!X&&p&(E|S)&&(p&=-25),!p||p==v)var nt=Rz(f,p,x);else p==E||p==S?nt=Iz(f,p,X):(p==A||p==(v|A))&&!M.length?nt=Dz(f,p,x,T):nt=Xh.apply(n,We);var xt=je?p3:H3;return U3(xt(nt,We),f,p)}function D3(f,p,x,T){return f===n||oa(f,rc[x])&&!Gt.call(T,x)?p:f}function N3(f,p,x,T,M,q){return yn(f)&&yn(p)&&(q.set(p,f),Uh(f,p,n,N3,q),q.delete(p)),f}function Lz(f){return pf(f)?n:f}function L3(f,p,x,T,M,q){var G=x&m,X=f.length,te=p.length;if(X!=te&&!(G&&te>X))return!1;var we=q.get(f),xe=q.get(p);if(we&&xe)return we==p&&xe==f;var Ee=-1,je=!0,We=x&y?new Fs:n;for(q.set(f,p),q.set(p,f);++Ee<X;){var nt=f[Ee],xt=p[Ee];if(T)var rt=G?T(xt,nt,Ee,p,f,q):T(nt,xt,Ee,f,p,q);if(rt!==n){if(rt)continue;je=!1;break}if(We){if(!$m(p,function(Ct,kt){if(!Ql(We,kt)&&(nt===Ct||M(nt,Ct,x,T,q)))return We.push(kt)})){je=!1;break}}else if(!(nt===xt||M(nt,xt,x,T,q))){je=!1;break}}return q.delete(f),q.delete(p),je}function $z(f,p,x,T,M,q,G){switch(x){case Uo:if(f.byteLength!=p.byteLength||f.byteOffset!=p.byteOffset)return!1;f=f.buffer,p=p.buffer;case Ns:return!(f.byteLength!=p.byteLength||!q(new Ih(f),new Ih(p)));case _e:case ce:case Qe:return oa(+f,+p);case Oe:return f.name==p.name&&f.message==p.message;case St:case gn:return f==p+"";case $e:var X=Vm;case nn:var te=T&m;if(X||(X=Ph),f.size!=p.size&&!te)return!1;var we=G.get(f);if(we)return we==p;T|=y,G.set(f,p);var xe=L3(X(f),X(p),T,M,q,G);return G.delete(f),xe;case Or:if(af)return af.call(f)==af.call(p)}return!1}function Bz(f,p,x,T,M,q){var G=x&m,X=gy(f),te=X.length,we=gy(p),xe=we.length;if(te!=xe&&!G)return!1;for(var Ee=te;Ee--;){var je=X[Ee];if(!(G?je in p:Gt.call(p,je)))return!1}var We=q.get(f),nt=q.get(p);if(We&&nt)return We==p&&nt==f;var xt=!0;q.set(f,p),q.set(p,f);for(var rt=G;++Ee<te;){je=X[Ee];var Ct=f[je],kt=p[je];if(T)var vi=G?T(kt,Ct,je,p,f,q):T(Ct,kt,je,f,p,q);if(!(vi===n?Ct===kt||M(Ct,kt,x,T,q):vi)){xt=!1;break}rt||(rt=je=="constructor")}if(xt&&!rt){var Mr=f.constructor,mi=p.constructor;Mr!=mi&&"constructor"in f&&"constructor"in p&&!(typeof Mr=="function"&&Mr instanceof Mr&&typeof mi=="function"&&mi instanceof mi)&&(xt=!1)}return q.delete(f),q.delete(p),xt}function no(f){return Ey(q3(f,n,J3),f+"")}function gy(f){return r3(f,Kn,by)}function vy(f){return r3(f,Yr,$3)}var my=zh?function(f){return zh.get(f)}:Ny;function ep(f){for(var p=f.name+"",x=ac[p],T=Gt.call(ac,p)?x.length:0;T--;){var M=x[T],q=M.func;if(q==null||q==f)return M.name}return p}function cc(f){var p=Gt.call(F,"placeholder")?F:f;return p.placeholder}function tt(){var f=F.iteratee||Iy;return f=f===Iy?o3:f,arguments.length?f(arguments[0],arguments[1]):f}function tp(f,p){var x=f.__data__;return Gz(p)?x[typeof p=="string"?"string":"hash"]:x.map}function yy(f){for(var p=Kn(f),x=p.length;x--;){var T=p[x],M=f[T];p[x]=[T,M,F3(M)]}return p}function Vs(f,p){var x=X$(f,p);return a3(x)?x:n}function zz(f){var p=Gt.call(f,Bs),x=f[Bs];try{f[Bs]=n;var T=!0}catch{}var M=kh.call(f);return T&&(p?f[Bs]=x:delete f[Bs]),M}var by=Um?function(f){return f==null?[]:(f=Zt(f),Yo(Um(f),function(p){return VA.call(f,p)}))}:Ly,$3=Um?function(f){for(var p=[];f;)Xo(p,by(f)),f=Dh(f);return p}:Ly,gr=Cr;(Gm&&gr(new Gm(new ArrayBuffer(1)))!=Uo||tf&&gr(new tf)!=$e||Km&&gr(Km.resolve())!=at||ic&&gr(new ic)!=nn||nf&&gr(new nf)!=Tr)&&(gr=function(f){var p=Cr(f),x=p==Se?f.constructor:n,T=x?Hs(x):"";if(T)switch(T){case _B:return Uo;case EB:return $e;case SB:return at;case AB:return nn;case OB:return Tr}return p});function Fz(f,p,x){for(var T=-1,M=x.length;++T<M;){var q=x[T],G=q.size;switch(q.type){case"drop":f+=G;break;case"dropRight":p-=G;break;case"take":p=pr(p,f+G);break;case"takeRight":f=zn(f,p-G);break}}return{start:f,end:p}}function Wz(f){var p=f.match(zt);return p?p[1].split(mn):[]}function B3(f,p,x){p=ts(p,f);for(var T=-1,M=p.length,q=!1;++T<M;){var G=Sa(p[T]);if(!(q=f!=null&&x(f,G)))break;f=f[G]}return q||++T!=M?q:(M=f==null?0:f.length,!!M&&up(M)&&ro(G,M)&&(ht(f)||Us(f)))}function qz(f){var p=f.length,x=new f.constructor(p);return p&&typeof f[0]=="string"&&Gt.call(f,"index")&&(x.index=f.index,x.input=f.input),x}function z3(f){return typeof f.constructor=="function"&&!df(f)?oc(Dh(f)):{}}function Vz(f,p,x){var T=f.constructor;switch(p){case Ns:return dy(f);case _e:case ce:return new T(+f);case Uo:return Tz(f,x);case Wl:case ql:case Vl:case Hl:case Ul:case Zu:case ee:case ne:case be:return _3(f,x);case $e:return new T;case Qe:case gn:return new T(f);case St:return Pz(f);case nn:return new T;case Or:return Cz(f)}}function Hz(f,p){var x=p.length;if(!x)return f;var T=x-1;return p[T]=(x>1?"& ":"")+p[T],p=p.join(x>2?", ":" "),f.replace(Dt,`{
110
+ */var vwe=Zf.exports,C6;function mwe(){return C6||(C6=1,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",d=1,h=2,g=4,m=1,y=2,v=1,b=2,_=4,E=8,S=16,A=32,O=64,P=128,j=256,$=512,z=30,I="...",H=800,D=16,C=1,L=2,N=3,V=1/0,Z=9007199254740991,K=17976931348623157e292,R=NaN,W=4294967295,U=W-1,Y=W>>>1,ae=[["ary",P],["bind",v],["bindKey",b],["curry",E],["curryRight",S],["flip",$],["partial",A],["partialRight",O],["rearg",j]],re="[object Arguments]",ge="[object Array]",ye="[object AsyncFunction]",_e="[object Boolean]",ce="[object Date]",pe="[object DOMException]",Oe="[object Error]",oe="[object Function]",Re="[object GeneratorFunction]",$e="[object Map]",Qe="[object Number]",Ze="[object Null]",Se="[object Object]",at="[object Promise]",pn="[object Proxy]",St="[object RegExp]",nn="[object Set]",gn="[object String]",Or="[object Symbol]",hr="[object Undefined]",Tr="[object WeakMap]",Fl="[object WeakSet]",Ns="[object ArrayBuffer]",Uo="[object DataView]",Wl="[object Float32Array]",ql="[object Float64Array]",Vl="[object Int8Array]",Hl="[object Int16Array]",Ul="[object Int32Array]",Zu="[object Uint8Array]",ee="[object Uint8ClampedArray]",ne="[object Uint16Array]",be="[object Uint32Array]",Q=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,Pe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ve=/&(?:amp|lt|gt|quot|#39);/g,Fe=/[&<>"']/g,Ge=RegExp(Ve.source),ct=RegExp(Fe.source),ze=/<%-([\s\S]+?)%>/g,ut=/<%([\s\S]+?)%>/g,bt=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,Gn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rn=/[\\^$.*+?()[\]{}|]/g,vn=RegExp(Rn.source),Ke=/^\s+/,Ie=/\s/,Dt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zt=/\{\n\/\* \[wrapped with (.+)\] \*/,mn=/,? & /,Yt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,gt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ot=/\w*$/,et=/^[-+]0x[0-9a-f]+$/i,lt=/^0b[01]+$/i,nr=/^\[object .+?Constructor\]$/,fn=/^0o[0-7]+$/i,Tt=/^(?:0|[1-9]\d*)$/,he=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fe=/($^)/,le=/['\n\r\u2028\u2029\\]/g,Be="\\ud800-\\udfff",Ht="\\u0300-\\u036f",Pr="\\ufe20-\\ufe2f",Pt="\\u20d0-\\u20ff",na=Ht+Pr+Pt,wa="\\u2700-\\u27bf",rr="a-z\\xdf-\\xf6\\xf8-\\xff",Go="\\xac\\xb1\\xd7\\xf7",Ce="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ae="\\u2000-\\u206f",de=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Ye="\\ufe0e\\ufe0f",st=Go+Ce+Ae+de,He="['’]",vt="["+Be+"]",mt="["+st+"]",ft="["+na+"]",Ut="\\d+",Xt="["+wa+"]",ra="["+rr+"]",fi="[^"+Be+st+Ut+wa+rr+Te+"]",xa="\\ud83c[\\udffb-\\udfff]",Gl="(?:"+ft+"|"+xa+")",Kl="[^"+Be+"]",Yl="(?:\\ud83c[\\udde6-\\uddff]){2}",Ls="[\\ud800-\\udbff][\\udc00-\\udfff]",Xa="["+Te+"]",Za="\\u200d",Xl="(?:"+ra+"|"+fi+")",Ju="(?:"+Xa+"|"+fi+")",Zl="(?:"+He+"(?:d|ll|m|re|s|t|ve))?",Jl="(?:"+He+"(?:D|LL|M|RE|S|T|VE))?",Ko=Gl+"?",Ur="["+Ye+"]?",Mi="(?:"+Za+"(?:"+[Kl,Yl,Ls].join("|")+")"+Ur+Ko+")*",b$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",w$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_A=Ur+Ko+Mi,x$="(?:"+[Xt,Yl,Ls].join("|")+")"+_A,_$="(?:"+[Kl+ft+"?",ft,Yl,Ls,vt].join("|")+")",E$=RegExp(He,"g"),S$=RegExp(ft,"g"),Rm=RegExp(xa+"(?="+xa+")|"+_$+_A,"g"),A$=RegExp([Xa+"?"+ra+"+"+Zl+"(?="+[mt,Xa,"$"].join("|")+")",Ju+"+"+Jl+"(?="+[mt,Xa+Xl,"$"].join("|")+")",Xa+"?"+Xl+"+"+Zl,Xa+"+"+Jl,w$,b$,Ut,x$].join("|"),"g"),O$=RegExp("["+Za+Be+na+Ye+"]"),T$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P$=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],C$=-1,sn={};sn[Wl]=sn[ql]=sn[Vl]=sn[Hl]=sn[Ul]=sn[Zu]=sn[ee]=sn[ne]=sn[be]=!0,sn[re]=sn[ge]=sn[Ns]=sn[_e]=sn[Uo]=sn[ce]=sn[Oe]=sn[oe]=sn[$e]=sn[Qe]=sn[Se]=sn[St]=sn[nn]=sn[gn]=sn[Tr]=!1;var on={};on[re]=on[ge]=on[Ns]=on[Uo]=on[_e]=on[ce]=on[Wl]=on[ql]=on[Vl]=on[Hl]=on[Ul]=on[$e]=on[Qe]=on[Se]=on[St]=on[nn]=on[gn]=on[Or]=on[Zu]=on[ee]=on[ne]=on[be]=!0,on[Oe]=on[oe]=on[Tr]=!1;var j$={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},M$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},k$={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},R$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},I$=parseFloat,D$=parseInt,EA=typeof dp=="object"&&dp&&dp.Object===Object&&dp,N$=typeof self=="object"&&self&&self.Object===Object&&self,ir=EA||N$||Function("return this")(),Im=t&&!t.nodeType&&t,$s=Im&&!0&&e&&!e.nodeType&&e,SA=$s&&$s.exports===Im,Dm=SA&&EA.process,ki=function(){try{var J=$s&&$s.require&&$s.require("util").types;return J||Dm&&Dm.binding&&Dm.binding("util")}catch{}}(),AA=ki&&ki.isArrayBuffer,OA=ki&&ki.isDate,TA=ki&&ki.isMap,PA=ki&&ki.isRegExp,CA=ki&&ki.isSet,jA=ki&&ki.isTypedArray;function di(J,me,ue){switch(ue.length){case 0:return J.call(me);case 1:return J.call(me,ue[0]);case 2:return J.call(me,ue[0],ue[1]);case 3:return J.call(me,ue[0],ue[1],ue[2])}return J.apply(me,ue)}function L$(J,me,ue,De){for(var dt=-1,Lt=J==null?0:J.length;++dt<Lt;){var Bn=J[dt];me(De,Bn,ue(Bn),J)}return De}function Ri(J,me){for(var ue=-1,De=J==null?0:J.length;++ue<De&&me(J[ue],ue,J)!==!1;);return J}function $$(J,me){for(var ue=J==null?0:J.length;ue--&&me(J[ue],ue,J)!==!1;);return J}function MA(J,me){for(var ue=-1,De=J==null?0:J.length;++ue<De;)if(!me(J[ue],ue,J))return!1;return!0}function Yo(J,me){for(var ue=-1,De=J==null?0:J.length,dt=0,Lt=[];++ue<De;){var Bn=J[ue];me(Bn,ue,J)&&(Lt[dt++]=Bn)}return Lt}function Oh(J,me){var ue=J==null?0:J.length;return!!ue&&Qu(J,me,0)>-1}function Nm(J,me,ue){for(var De=-1,dt=J==null?0:J.length;++De<dt;)if(ue(me,J[De]))return!0;return!1}function dn(J,me){for(var ue=-1,De=J==null?0:J.length,dt=Array(De);++ue<De;)dt[ue]=me(J[ue],ue,J);return dt}function Xo(J,me){for(var ue=-1,De=me.length,dt=J.length;++ue<De;)J[dt+ue]=me[ue];return J}function Lm(J,me,ue,De){var dt=-1,Lt=J==null?0:J.length;for(De&&Lt&&(ue=J[++dt]);++dt<Lt;)ue=me(ue,J[dt],dt,J);return ue}function B$(J,me,ue,De){var dt=J==null?0:J.length;for(De&&dt&&(ue=J[--dt]);dt--;)ue=me(ue,J[dt],dt,J);return ue}function $m(J,me){for(var ue=-1,De=J==null?0:J.length;++ue<De;)if(me(J[ue],ue,J))return!0;return!1}var z$=Bm("length");function F$(J){return J.split("")}function W$(J){return J.match(Yt)||[]}function kA(J,me,ue){var De;return ue(J,function(dt,Lt,Bn){if(me(dt,Lt,Bn))return De=Lt,!1}),De}function Th(J,me,ue,De){for(var dt=J.length,Lt=ue+(De?1:-1);De?Lt--:++Lt<dt;)if(me(J[Lt],Lt,J))return Lt;return-1}function Qu(J,me,ue){return me===me?eB(J,me,ue):Th(J,RA,ue)}function q$(J,me,ue,De){for(var dt=ue-1,Lt=J.length;++dt<Lt;)if(De(J[dt],me))return dt;return-1}function RA(J){return J!==J}function IA(J,me){var ue=J==null?0:J.length;return ue?Fm(J,me)/ue:R}function Bm(J){return function(me){return me==null?n:me[J]}}function zm(J){return function(me){return J==null?n:J[me]}}function DA(J,me,ue,De,dt){return dt(J,function(Lt,Bn,Zt){ue=De?(De=!1,Lt):me(ue,Lt,Bn,Zt)}),ue}function V$(J,me){var ue=J.length;for(J.sort(me);ue--;)J[ue]=J[ue].value;return J}function Fm(J,me){for(var ue,De=-1,dt=J.length;++De<dt;){var Lt=me(J[De]);Lt!==n&&(ue=ue===n?Lt:ue+Lt)}return ue}function Wm(J,me){for(var ue=-1,De=Array(J);++ue<J;)De[ue]=me(ue);return De}function H$(J,me){return dn(me,function(ue){return[ue,J[ue]]})}function NA(J){return J&&J.slice(0,zA(J)+1).replace(Ke,"")}function hi(J){return function(me){return J(me)}}function qm(J,me){return dn(me,function(ue){return J[ue]})}function Ql(J,me){return J.has(me)}function LA(J,me){for(var ue=-1,De=J.length;++ue<De&&Qu(me,J[ue],0)>-1;);return ue}function $A(J,me){for(var ue=J.length;ue--&&Qu(me,J[ue],0)>-1;);return ue}function U$(J,me){for(var ue=J.length,De=0;ue--;)J[ue]===me&&++De;return De}var G$=zm(j$),K$=zm(M$);function Y$(J){return"\\"+R$[J]}function X$(J,me){return J==null?n:J[me]}function ec(J){return O$.test(J)}function Z$(J){return T$.test(J)}function J$(J){for(var me,ue=[];!(me=J.next()).done;)ue.push(me.value);return ue}function Vm(J){var me=-1,ue=Array(J.size);return J.forEach(function(De,dt){ue[++me]=[dt,De]}),ue}function BA(J,me){return function(ue){return J(me(ue))}}function Zo(J,me){for(var ue=-1,De=J.length,dt=0,Lt=[];++ue<De;){var Bn=J[ue];(Bn===me||Bn===l)&&(J[ue]=l,Lt[dt++]=ue)}return Lt}function Ph(J){var me=-1,ue=Array(J.size);return J.forEach(function(De){ue[++me]=De}),ue}function Q$(J){var me=-1,ue=Array(J.size);return J.forEach(function(De){ue[++me]=[De,De]}),ue}function eB(J,me,ue){for(var De=ue-1,dt=J.length;++De<dt;)if(J[De]===me)return De;return-1}function tB(J,me,ue){for(var De=ue+1;De--;)if(J[De]===me)return De;return De}function tc(J){return ec(J)?rB(J):z$(J)}function ia(J){return ec(J)?iB(J):F$(J)}function zA(J){for(var me=J.length;me--&&Ie.test(J.charAt(me)););return me}var nB=zm(k$);function rB(J){for(var me=Rm.lastIndex=0;Rm.test(J);)++me;return me}function iB(J){return J.match(Rm)||[]}function aB(J){return J.match(A$)||[]}var oB=function J(me){me=me==null?ir:nc.defaults(ir.Object(),me,nc.pick(ir,P$));var ue=me.Array,De=me.Date,dt=me.Error,Lt=me.Function,Bn=me.Math,Zt=me.Object,Hm=me.RegExp,sB=me.String,Ii=me.TypeError,Ch=ue.prototype,uB=Lt.prototype,rc=Zt.prototype,jh=me["__core-js_shared__"],Mh=uB.toString,Gt=rc.hasOwnProperty,cB=0,FA=function(){var f=/[^.]+$/.exec(jh&&jh.keys&&jh.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),kh=rc.toString,lB=Mh.call(Zt),fB=ir._,dB=Hm("^"+Mh.call(Gt).replace(Rn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rh=SA?me.Buffer:n,Jo=me.Symbol,Ih=me.Uint8Array,WA=Rh?Rh.allocUnsafe:n,Dh=BA(Zt.getPrototypeOf,Zt),qA=Zt.create,VA=rc.propertyIsEnumerable,Nh=Ch.splice,HA=Jo?Jo.isConcatSpreadable:n,ef=Jo?Jo.iterator:n,Bs=Jo?Jo.toStringTag:n,Lh=function(){try{var f=Vs(Zt,"defineProperty");return f({},"",{}),f}catch{}}(),hB=me.clearTimeout!==ir.clearTimeout&&me.clearTimeout,pB=De&&De.now!==ir.Date.now&&De.now,gB=me.setTimeout!==ir.setTimeout&&me.setTimeout,$h=Bn.ceil,Bh=Bn.floor,Um=Zt.getOwnPropertySymbols,vB=Rh?Rh.isBuffer:n,UA=me.isFinite,mB=Ch.join,yB=BA(Zt.keys,Zt),zn=Bn.max,pr=Bn.min,bB=De.now,wB=me.parseInt,GA=Bn.random,xB=Ch.reverse,Gm=Vs(me,"DataView"),tf=Vs(me,"Map"),Km=Vs(me,"Promise"),ic=Vs(me,"Set"),nf=Vs(me,"WeakMap"),rf=Vs(Zt,"create"),zh=nf&&new nf,ac={},_B=Hs(Gm),EB=Hs(tf),SB=Hs(Km),AB=Hs(ic),OB=Hs(nf),Fh=Jo?Jo.prototype:n,af=Fh?Fh.valueOf:n,KA=Fh?Fh.toString:n;function F(f){if(En(f)&&!ht(f)&&!(f instanceof jt)){if(f instanceof Di)return f;if(Gt.call(f,"__wrapped__"))return Y3(f)}return new Di(f)}var oc=function(){function f(){}return function(p){if(!yn(p))return{};if(qA)return qA(p);f.prototype=p;var x=new f;return f.prototype=n,x}}();function Wh(){}function Di(f,p){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=n}F.templateSettings={escape:ze,evaluate:ut,interpolate:bt,variable:"",imports:{_:F}},F.prototype=Wh.prototype,F.prototype.constructor=F,Di.prototype=oc(Wh.prototype),Di.prototype.constructor=Di;function jt(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=W,this.__views__=[]}function TB(){var f=new jt(this.__wrapped__);return f.__actions__=Gr(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Gr(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Gr(this.__views__),f}function PB(){if(this.__filtered__){var f=new jt(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function CB(){var f=this.__wrapped__.value(),p=this.__dir__,x=ht(f),T=p<0,k=x?f.length:0,q=Fz(0,k,this.__views__),G=q.start,X=q.end,te=X-G,we=T?X:G-1,xe=this.__iteratees__,Ee=xe.length,je=0,We=pr(te,this.__takeCount__);if(!x||!T&&k==te&&We==te)return y3(f,this.__actions__);var nt=[];e:for(;te--&&je<We;){we+=p;for(var xt=-1,rt=f[we];++xt<Ee;){var Ct=xe[xt],kt=Ct.iteratee,vi=Ct.type,Mr=kt(rt);if(vi==L)rt=Mr;else if(!Mr){if(vi==C)continue e;break e}}nt[je++]=rt}return nt}jt.prototype=oc(Wh.prototype),jt.prototype.constructor=jt;function zs(f){var p=-1,x=f==null?0:f.length;for(this.clear();++p<x;){var T=f[p];this.set(T[0],T[1])}}function jB(){this.__data__=rf?rf(null):{},this.size=0}function MB(f){var p=this.has(f)&&delete this.__data__[f];return this.size-=p?1:0,p}function kB(f){var p=this.__data__;if(rf){var x=p[f];return x===u?n:x}return Gt.call(p,f)?p[f]:n}function RB(f){var p=this.__data__;return rf?p[f]!==n:Gt.call(p,f)}function IB(f,p){var x=this.__data__;return this.size+=this.has(f)?0:1,x[f]=rf&&p===n?u:p,this}zs.prototype.clear=jB,zs.prototype.delete=MB,zs.prototype.get=kB,zs.prototype.has=RB,zs.prototype.set=IB;function Ja(f){var p=-1,x=f==null?0:f.length;for(this.clear();++p<x;){var T=f[p];this.set(T[0],T[1])}}function DB(){this.__data__=[],this.size=0}function NB(f){var p=this.__data__,x=qh(p,f);if(x<0)return!1;var T=p.length-1;return x==T?p.pop():Nh.call(p,x,1),--this.size,!0}function LB(f){var p=this.__data__,x=qh(p,f);return x<0?n:p[x][1]}function $B(f){return qh(this.__data__,f)>-1}function BB(f,p){var x=this.__data__,T=qh(x,f);return T<0?(++this.size,x.push([f,p])):x[T][1]=p,this}Ja.prototype.clear=DB,Ja.prototype.delete=NB,Ja.prototype.get=LB,Ja.prototype.has=$B,Ja.prototype.set=BB;function Qa(f){var p=-1,x=f==null?0:f.length;for(this.clear();++p<x;){var T=f[p];this.set(T[0],T[1])}}function zB(){this.size=0,this.__data__={hash:new zs,map:new(tf||Ja),string:new zs}}function FB(f){var p=tp(this,f).delete(f);return this.size-=p?1:0,p}function WB(f){return tp(this,f).get(f)}function qB(f){return tp(this,f).has(f)}function VB(f,p){var x=tp(this,f),T=x.size;return x.set(f,p),this.size+=x.size==T?0:1,this}Qa.prototype.clear=zB,Qa.prototype.delete=FB,Qa.prototype.get=WB,Qa.prototype.has=qB,Qa.prototype.set=VB;function Fs(f){var p=-1,x=f==null?0:f.length;for(this.__data__=new Qa;++p<x;)this.add(f[p])}function HB(f){return this.__data__.set(f,u),this}function UB(f){return this.__data__.has(f)}Fs.prototype.add=Fs.prototype.push=HB,Fs.prototype.has=UB;function aa(f){var p=this.__data__=new Ja(f);this.size=p.size}function GB(){this.__data__=new Ja,this.size=0}function KB(f){var p=this.__data__,x=p.delete(f);return this.size=p.size,x}function YB(f){return this.__data__.get(f)}function XB(f){return this.__data__.has(f)}function ZB(f,p){var x=this.__data__;if(x instanceof Ja){var T=x.__data__;if(!tf||T.length<i-1)return T.push([f,p]),this.size=++x.size,this;x=this.__data__=new Qa(T)}return x.set(f,p),this.size=x.size,this}aa.prototype.clear=GB,aa.prototype.delete=KB,aa.prototype.get=YB,aa.prototype.has=XB,aa.prototype.set=ZB;function YA(f,p){var x=ht(f),T=!x&&Us(f),k=!x&&!T&&rs(f),q=!x&&!T&&!k&&lc(f),G=x||T||k||q,X=G?Wm(f.length,sB):[],te=X.length;for(var we in f)(p||Gt.call(f,we))&&!(G&&(we=="length"||k&&(we=="offset"||we=="parent")||q&&(we=="buffer"||we=="byteLength"||we=="byteOffset")||ro(we,te)))&&X.push(we);return X}function XA(f){var p=f.length;return p?f[ay(0,p-1)]:n}function JB(f,p){return np(Gr(f),Ws(p,0,f.length))}function QB(f){return np(Gr(f))}function Ym(f,p,x){(x!==n&&!oa(f[p],x)||x===n&&!(p in f))&&eo(f,p,x)}function of(f,p,x){var T=f[p];(!(Gt.call(f,p)&&oa(T,x))||x===n&&!(p in f))&&eo(f,p,x)}function qh(f,p){for(var x=f.length;x--;)if(oa(f[x][0],p))return x;return-1}function ez(f,p,x,T){return Qo(f,function(k,q,G){p(T,k,x(k),G)}),T}function ZA(f,p){return f&&Ea(p,Kn(p),f)}function tz(f,p){return f&&Ea(p,Yr(p),f)}function eo(f,p,x){p=="__proto__"&&Lh?Lh(f,p,{configurable:!0,enumerable:!0,value:x,writable:!0}):f[p]=x}function Xm(f,p){for(var x=-1,T=p.length,k=ue(T),q=f==null;++x<T;)k[x]=q?n:jy(f,p[x]);return k}function Ws(f,p,x){return f===f&&(x!==n&&(f=f<=x?f:x),p!==n&&(f=f>=p?f:p)),f}function Ni(f,p,x,T,k,q){var G,X=p&d,te=p&h,we=p&g;if(x&&(G=k?x(f,T,k,q):x(f)),G!==n)return G;if(!yn(f))return f;var xe=ht(f);if(xe){if(G=qz(f),!X)return Gr(f,G)}else{var Ee=gr(f),je=Ee==oe||Ee==Re;if(rs(f))return x3(f,X);if(Ee==Se||Ee==re||je&&!k){if(G=te||je?{}:z3(f),!X)return te?kz(f,tz(G,f)):Mz(f,ZA(G,f))}else{if(!on[Ee])return k?f:{};G=Vz(f,Ee,X)}}q||(q=new aa);var We=q.get(f);if(We)return We;q.set(f,G),gO(f)?f.forEach(function(rt){G.add(Ni(rt,p,x,rt,f,q))}):hO(f)&&f.forEach(function(rt,Ct){G.set(Ct,Ni(rt,p,x,Ct,f,q))});var nt=we?te?vy:gy:te?Yr:Kn,xt=xe?n:nt(f);return Ri(xt||f,function(rt,Ct){xt&&(Ct=rt,rt=f[Ct]),of(G,Ct,Ni(rt,p,x,Ct,f,q))}),G}function nz(f){var p=Kn(f);return function(x){return JA(x,f,p)}}function JA(f,p,x){var T=x.length;if(f==null)return!T;for(f=Zt(f);T--;){var k=x[T],q=p[k],G=f[k];if(G===n&&!(k in f)||!q(G))return!1}return!0}function QA(f,p,x){if(typeof f!="function")throw new Ii(o);return hf(function(){f.apply(n,x)},p)}function sf(f,p,x,T){var k=-1,q=Oh,G=!0,X=f.length,te=[],we=p.length;if(!X)return te;x&&(p=dn(p,hi(x))),T?(q=Nm,G=!1):p.length>=i&&(q=Ql,G=!1,p=new Fs(p));e:for(;++k<X;){var xe=f[k],Ee=x==null?xe:x(xe);if(xe=T||xe!==0?xe:0,G&&Ee===Ee){for(var je=we;je--;)if(p[je]===Ee)continue e;te.push(xe)}else q(p,Ee,T)||te.push(xe)}return te}var Qo=O3(_a),e3=O3(Jm,!0);function rz(f,p){var x=!0;return Qo(f,function(T,k,q){return x=!!p(T,k,q),x}),x}function Vh(f,p,x){for(var T=-1,k=f.length;++T<k;){var q=f[T],G=p(q);if(G!=null&&(X===n?G===G&&!gi(G):x(G,X)))var X=G,te=q}return te}function iz(f,p,x,T){var k=f.length;for(x=wt(x),x<0&&(x=-x>k?0:k+x),T=T===n||T>k?k:wt(T),T<0&&(T+=k),T=x>T?0:mO(T);x<T;)f[x++]=p;return f}function t3(f,p){var x=[];return Qo(f,function(T,k,q){p(T,k,q)&&x.push(T)}),x}function ar(f,p,x,T,k){var q=-1,G=f.length;for(x||(x=Uz),k||(k=[]);++q<G;){var X=f[q];p>0&&x(X)?p>1?ar(X,p-1,x,T,k):Xo(k,X):T||(k[k.length]=X)}return k}var Zm=T3(),n3=T3(!0);function _a(f,p){return f&&Zm(f,p,Kn)}function Jm(f,p){return f&&n3(f,p,Kn)}function Hh(f,p){return Yo(p,function(x){return io(f[x])})}function qs(f,p){p=ts(p,f);for(var x=0,T=p.length;f!=null&&x<T;)f=f[Sa(p[x++])];return x&&x==T?f:n}function r3(f,p,x){var T=p(f);return ht(f)?T:Xo(T,x(f))}function Cr(f){return f==null?f===n?hr:Ze:Bs&&Bs in Zt(f)?zz(f):Qz(f)}function Qm(f,p){return f>p}function az(f,p){return f!=null&&Gt.call(f,p)}function oz(f,p){return f!=null&&p in Zt(f)}function sz(f,p,x){return f>=pr(p,x)&&f<zn(p,x)}function ey(f,p,x){for(var T=x?Nm:Oh,k=f[0].length,q=f.length,G=q,X=ue(q),te=1/0,we=[];G--;){var xe=f[G];G&&p&&(xe=dn(xe,hi(p))),te=pr(xe.length,te),X[G]=!x&&(p||k>=120&&xe.length>=120)?new Fs(G&&xe):n}xe=f[0];var Ee=-1,je=X[0];e:for(;++Ee<k&&we.length<te;){var We=xe[Ee],nt=p?p(We):We;if(We=x||We!==0?We:0,!(je?Ql(je,nt):T(we,nt,x))){for(G=q;--G;){var xt=X[G];if(!(xt?Ql(xt,nt):T(f[G],nt,x)))continue e}je&&je.push(nt),we.push(We)}}return we}function uz(f,p,x,T){return _a(f,function(k,q,G){p(T,x(k),q,G)}),T}function uf(f,p,x){p=ts(p,f),f=V3(f,p);var T=f==null?f:f[Sa($i(p))];return T==null?n:di(T,f,x)}function i3(f){return En(f)&&Cr(f)==re}function cz(f){return En(f)&&Cr(f)==Ns}function lz(f){return En(f)&&Cr(f)==ce}function cf(f,p,x,T,k){return f===p?!0:f==null||p==null||!En(f)&&!En(p)?f!==f&&p!==p:fz(f,p,x,T,cf,k)}function fz(f,p,x,T,k,q){var G=ht(f),X=ht(p),te=G?ge:gr(f),we=X?ge:gr(p);te=te==re?Se:te,we=we==re?Se:we;var xe=te==Se,Ee=we==Se,je=te==we;if(je&&rs(f)){if(!rs(p))return!1;G=!0,xe=!1}if(je&&!xe)return q||(q=new aa),G||lc(f)?L3(f,p,x,T,k,q):$z(f,p,te,x,T,k,q);if(!(x&m)){var We=xe&&Gt.call(f,"__wrapped__"),nt=Ee&&Gt.call(p,"__wrapped__");if(We||nt){var xt=We?f.value():f,rt=nt?p.value():p;return q||(q=new aa),k(xt,rt,x,T,q)}}return je?(q||(q=new aa),Bz(f,p,x,T,k,q)):!1}function dz(f){return En(f)&&gr(f)==$e}function ty(f,p,x,T){var k=x.length,q=k,G=!T;if(f==null)return!q;for(f=Zt(f);k--;){var X=x[k];if(G&&X[2]?X[1]!==f[X[0]]:!(X[0]in f))return!1}for(;++k<q;){X=x[k];var te=X[0],we=f[te],xe=X[1];if(G&&X[2]){if(we===n&&!(te in f))return!1}else{var Ee=new aa;if(T)var je=T(we,xe,te,f,p,Ee);if(!(je===n?cf(xe,we,m|y,T,Ee):je))return!1}}return!0}function a3(f){if(!yn(f)||Kz(f))return!1;var p=io(f)?dB:nr;return p.test(Hs(f))}function hz(f){return En(f)&&Cr(f)==St}function pz(f){return En(f)&&gr(f)==nn}function gz(f){return En(f)&&up(f.length)&&!!sn[Cr(f)]}function o3(f){return typeof f=="function"?f:f==null?Xr:typeof f=="object"?ht(f)?c3(f[0],f[1]):u3(f):PO(f)}function ny(f){if(!df(f))return yB(f);var p=[];for(var x in Zt(f))Gt.call(f,x)&&x!="constructor"&&p.push(x);return p}function vz(f){if(!yn(f))return Jz(f);var p=df(f),x=[];for(var T in f)T=="constructor"&&(p||!Gt.call(f,T))||x.push(T);return x}function ry(f,p){return f<p}function s3(f,p){var x=-1,T=Kr(f)?ue(f.length):[];return Qo(f,function(k,q,G){T[++x]=p(k,q,G)}),T}function u3(f){var p=yy(f);return p.length==1&&p[0][2]?W3(p[0][0],p[0][1]):function(x){return x===f||ty(x,f,p)}}function c3(f,p){return wy(f)&&F3(p)?W3(Sa(f),p):function(x){var T=jy(x,f);return T===n&&T===p?My(x,f):cf(p,T,m|y)}}function Uh(f,p,x,T,k){f!==p&&Zm(p,function(q,G){if(k||(k=new aa),yn(q))mz(f,p,G,x,Uh,T,k);else{var X=T?T(_y(f,G),q,G+"",f,p,k):n;X===n&&(X=q),Ym(f,G,X)}},Yr)}function mz(f,p,x,T,k,q,G){var X=_y(f,x),te=_y(p,x),we=G.get(te);if(we){Ym(f,x,we);return}var xe=q?q(X,te,x+"",f,p,G):n,Ee=xe===n;if(Ee){var je=ht(te),We=!je&&rs(te),nt=!je&&!We&&lc(te);xe=te,je||We||nt?ht(X)?xe=X:Pn(X)?xe=Gr(X):We?(Ee=!1,xe=x3(te,!0)):nt?(Ee=!1,xe=_3(te,!0)):xe=[]:pf(te)||Us(te)?(xe=X,Us(X)?xe=yO(X):(!yn(X)||io(X))&&(xe=z3(te))):Ee=!1}Ee&&(G.set(te,xe),k(xe,te,T,q,G),G.delete(te)),Ym(f,x,xe)}function l3(f,p){var x=f.length;if(x)return p+=p<0?x:0,ro(p,x)?f[p]:n}function f3(f,p,x){p.length?p=dn(p,function(q){return ht(q)?function(G){return qs(G,q.length===1?q[0]:q)}:q}):p=[Xr];var T=-1;p=dn(p,hi(tt()));var k=s3(f,function(q,G,X){var te=dn(p,function(we){return we(q)});return{criteria:te,index:++T,value:q}});return V$(k,function(q,G){return jz(q,G,x)})}function yz(f,p){return d3(f,p,function(x,T){return My(f,T)})}function d3(f,p,x){for(var T=-1,k=p.length,q={};++T<k;){var G=p[T],X=qs(f,G);x(X,G)&&lf(q,ts(G,f),X)}return q}function bz(f){return function(p){return qs(p,f)}}function iy(f,p,x,T){var k=T?q$:Qu,q=-1,G=p.length,X=f;for(f===p&&(p=Gr(p)),x&&(X=dn(f,hi(x)));++q<G;)for(var te=0,we=p[q],xe=x?x(we):we;(te=k(X,xe,te,T))>-1;)X!==f&&Nh.call(X,te,1),Nh.call(f,te,1);return f}function h3(f,p){for(var x=f?p.length:0,T=x-1;x--;){var k=p[x];if(x==T||k!==q){var q=k;ro(k)?Nh.call(f,k,1):uy(f,k)}}return f}function ay(f,p){return f+Bh(GA()*(p-f+1))}function wz(f,p,x,T){for(var k=-1,q=zn($h((p-f)/(x||1)),0),G=ue(q);q--;)G[T?q:++k]=f,f+=x;return G}function oy(f,p){var x="";if(!f||p<1||p>Z)return x;do p%2&&(x+=f),p=Bh(p/2),p&&(f+=f);while(p);return x}function _t(f,p){return Ey(q3(f,p,Xr),f+"")}function xz(f){return XA(fc(f))}function _z(f,p){var x=fc(f);return np(x,Ws(p,0,x.length))}function lf(f,p,x,T){if(!yn(f))return f;p=ts(p,f);for(var k=-1,q=p.length,G=q-1,X=f;X!=null&&++k<q;){var te=Sa(p[k]),we=x;if(te==="__proto__"||te==="constructor"||te==="prototype")return f;if(k!=G){var xe=X[te];we=T?T(xe,te,X):n,we===n&&(we=yn(xe)?xe:ro(p[k+1])?[]:{})}of(X,te,we),X=X[te]}return f}var p3=zh?function(f,p){return zh.set(f,p),f}:Xr,Ez=Lh?function(f,p){return Lh(f,"toString",{configurable:!0,enumerable:!1,value:Ry(p),writable:!0})}:Xr;function Sz(f){return np(fc(f))}function Li(f,p,x){var T=-1,k=f.length;p<0&&(p=-p>k?0:k+p),x=x>k?k:x,x<0&&(x+=k),k=p>x?0:x-p>>>0,p>>>=0;for(var q=ue(k);++T<k;)q[T]=f[T+p];return q}function Az(f,p){var x;return Qo(f,function(T,k,q){return x=p(T,k,q),!x}),!!x}function Gh(f,p,x){var T=0,k=f==null?T:f.length;if(typeof p=="number"&&p===p&&k<=Y){for(;T<k;){var q=T+k>>>1,G=f[q];G!==null&&!gi(G)&&(x?G<=p:G<p)?T=q+1:k=q}return k}return sy(f,p,Xr,x)}function sy(f,p,x,T){var k=0,q=f==null?0:f.length;if(q===0)return 0;p=x(p);for(var G=p!==p,X=p===null,te=gi(p),we=p===n;k<q;){var xe=Bh((k+q)/2),Ee=x(f[xe]),je=Ee!==n,We=Ee===null,nt=Ee===Ee,xt=gi(Ee);if(G)var rt=T||nt;else we?rt=nt&&(T||je):X?rt=nt&&je&&(T||!We):te?rt=nt&&je&&!We&&(T||!xt):We||xt?rt=!1:rt=T?Ee<=p:Ee<p;rt?k=xe+1:q=xe}return pr(q,U)}function g3(f,p){for(var x=-1,T=f.length,k=0,q=[];++x<T;){var G=f[x],X=p?p(G):G;if(!x||!oa(X,te)){var te=X;q[k++]=G===0?0:G}}return q}function v3(f){return typeof f=="number"?f:gi(f)?R:+f}function pi(f){if(typeof f=="string")return f;if(ht(f))return dn(f,pi)+"";if(gi(f))return KA?KA.call(f):"";var p=f+"";return p=="0"&&1/f==-V?"-0":p}function es(f,p,x){var T=-1,k=Oh,q=f.length,G=!0,X=[],te=X;if(x)G=!1,k=Nm;else if(q>=i){var we=p?null:Nz(f);if(we)return Ph(we);G=!1,k=Ql,te=new Fs}else te=p?[]:X;e:for(;++T<q;){var xe=f[T],Ee=p?p(xe):xe;if(xe=x||xe!==0?xe:0,G&&Ee===Ee){for(var je=te.length;je--;)if(te[je]===Ee)continue e;p&&te.push(Ee),X.push(xe)}else k(te,Ee,x)||(te!==X&&te.push(Ee),X.push(xe))}return X}function uy(f,p){return p=ts(p,f),f=V3(f,p),f==null||delete f[Sa($i(p))]}function m3(f,p,x,T){return lf(f,p,x(qs(f,p)),T)}function Kh(f,p,x,T){for(var k=f.length,q=T?k:-1;(T?q--:++q<k)&&p(f[q],q,f););return x?Li(f,T?0:q,T?q+1:k):Li(f,T?q+1:0,T?k:q)}function y3(f,p){var x=f;return x instanceof jt&&(x=x.value()),Lm(p,function(T,k){return k.func.apply(k.thisArg,Xo([T],k.args))},x)}function cy(f,p,x){var T=f.length;if(T<2)return T?es(f[0]):[];for(var k=-1,q=ue(T);++k<T;)for(var G=f[k],X=-1;++X<T;)X!=k&&(q[k]=sf(q[k]||G,f[X],p,x));return es(ar(q,1),p,x)}function b3(f,p,x){for(var T=-1,k=f.length,q=p.length,G={};++T<k;){var X=T<q?p[T]:n;x(G,f[T],X)}return G}function ly(f){return Pn(f)?f:[]}function fy(f){return typeof f=="function"?f:Xr}function ts(f,p){return ht(f)?f:wy(f,p)?[f]:K3(Ft(f))}var Oz=_t;function ns(f,p,x){var T=f.length;return x=x===n?T:x,!p&&x>=T?f:Li(f,p,x)}var w3=hB||function(f){return ir.clearTimeout(f)};function x3(f,p){if(p)return f.slice();var x=f.length,T=WA?WA(x):new f.constructor(x);return f.copy(T),T}function dy(f){var p=new f.constructor(f.byteLength);return new Ih(p).set(new Ih(f)),p}function Tz(f,p){var x=p?dy(f.buffer):f.buffer;return new f.constructor(x,f.byteOffset,f.byteLength)}function Pz(f){var p=new f.constructor(f.source,ot.exec(f));return p.lastIndex=f.lastIndex,p}function Cz(f){return af?Zt(af.call(f)):{}}function _3(f,p){var x=p?dy(f.buffer):f.buffer;return new f.constructor(x,f.byteOffset,f.length)}function E3(f,p){if(f!==p){var x=f!==n,T=f===null,k=f===f,q=gi(f),G=p!==n,X=p===null,te=p===p,we=gi(p);if(!X&&!we&&!q&&f>p||q&&G&&te&&!X&&!we||T&&G&&te||!x&&te||!k)return 1;if(!T&&!q&&!we&&f<p||we&&x&&k&&!T&&!q||X&&x&&k||!G&&k||!te)return-1}return 0}function jz(f,p,x){for(var T=-1,k=f.criteria,q=p.criteria,G=k.length,X=x.length;++T<G;){var te=E3(k[T],q[T]);if(te){if(T>=X)return te;var we=x[T];return te*(we=="desc"?-1:1)}}return f.index-p.index}function S3(f,p,x,T){for(var k=-1,q=f.length,G=x.length,X=-1,te=p.length,we=zn(q-G,0),xe=ue(te+we),Ee=!T;++X<te;)xe[X]=p[X];for(;++k<G;)(Ee||k<q)&&(xe[x[k]]=f[k]);for(;we--;)xe[X++]=f[k++];return xe}function A3(f,p,x,T){for(var k=-1,q=f.length,G=-1,X=x.length,te=-1,we=p.length,xe=zn(q-X,0),Ee=ue(xe+we),je=!T;++k<xe;)Ee[k]=f[k];for(var We=k;++te<we;)Ee[We+te]=p[te];for(;++G<X;)(je||k<q)&&(Ee[We+x[G]]=f[k++]);return Ee}function Gr(f,p){var x=-1,T=f.length;for(p||(p=ue(T));++x<T;)p[x]=f[x];return p}function Ea(f,p,x,T){var k=!x;x||(x={});for(var q=-1,G=p.length;++q<G;){var X=p[q],te=T?T(x[X],f[X],X,x,f):n;te===n&&(te=f[X]),k?eo(x,X,te):of(x,X,te)}return x}function Mz(f,p){return Ea(f,by(f),p)}function kz(f,p){return Ea(f,$3(f),p)}function Yh(f,p){return function(x,T){var k=ht(x)?L$:ez,q=p?p():{};return k(x,f,tt(T,2),q)}}function sc(f){return _t(function(p,x){var T=-1,k=x.length,q=k>1?x[k-1]:n,G=k>2?x[2]:n;for(q=f.length>3&&typeof q=="function"?(k--,q):n,G&&jr(x[0],x[1],G)&&(q=k<3?n:q,k=1),p=Zt(p);++T<k;){var X=x[T];X&&f(p,X,T,q)}return p})}function O3(f,p){return function(x,T){if(x==null)return x;if(!Kr(x))return f(x,T);for(var k=x.length,q=p?k:-1,G=Zt(x);(p?q--:++q<k)&&T(G[q],q,G)!==!1;);return x}}function T3(f){return function(p,x,T){for(var k=-1,q=Zt(p),G=T(p),X=G.length;X--;){var te=G[f?X:++k];if(x(q[te],te,q)===!1)break}return p}}function Rz(f,p,x){var T=p&v,k=ff(f);function q(){var G=this&&this!==ir&&this instanceof q?k:f;return G.apply(T?x:this,arguments)}return q}function P3(f){return function(p){p=Ft(p);var x=ec(p)?ia(p):n,T=x?x[0]:p.charAt(0),k=x?ns(x,1).join(""):p.slice(1);return T[f]()+k}}function uc(f){return function(p){return Lm(OO(AO(p).replace(E$,"")),f,"")}}function ff(f){return function(){var p=arguments;switch(p.length){case 0:return new f;case 1:return new f(p[0]);case 2:return new f(p[0],p[1]);case 3:return new f(p[0],p[1],p[2]);case 4:return new f(p[0],p[1],p[2],p[3]);case 5:return new f(p[0],p[1],p[2],p[3],p[4]);case 6:return new f(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new f(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var x=oc(f.prototype),T=f.apply(x,p);return yn(T)?T:x}}function Iz(f,p,x){var T=ff(f);function k(){for(var q=arguments.length,G=ue(q),X=q,te=cc(k);X--;)G[X]=arguments[X];var we=q<3&&G[0]!==te&&G[q-1]!==te?[]:Zo(G,te);if(q-=we.length,q<x)return R3(f,p,Xh,k.placeholder,n,G,we,n,n,x-q);var xe=this&&this!==ir&&this instanceof k?T:f;return di(xe,this,G)}return k}function C3(f){return function(p,x,T){var k=Zt(p);if(!Kr(p)){var q=tt(x,3);p=Kn(p),x=function(X){return q(k[X],X,k)}}var G=f(p,x,T);return G>-1?k[q?p[G]:G]:n}}function j3(f){return no(function(p){var x=p.length,T=x,k=Di.prototype.thru;for(f&&p.reverse();T--;){var q=p[T];if(typeof q!="function")throw new Ii(o);if(k&&!G&&ep(q)=="wrapper")var G=new Di([],!0)}for(T=G?T:x;++T<x;){q=p[T];var X=ep(q),te=X=="wrapper"?my(q):n;te&&xy(te[0])&&te[1]==(P|E|A|j)&&!te[4].length&&te[9]==1?G=G[ep(te[0])].apply(G,te[3]):G=q.length==1&&xy(q)?G[X]():G.thru(q)}return function(){var we=arguments,xe=we[0];if(G&&we.length==1&&ht(xe))return G.plant(xe).value();for(var Ee=0,je=x?p[Ee].apply(this,we):xe;++Ee<x;)je=p[Ee].call(this,je);return je}})}function Xh(f,p,x,T,k,q,G,X,te,we){var xe=p&P,Ee=p&v,je=p&b,We=p&(E|S),nt=p&$,xt=je?n:ff(f);function rt(){for(var Ct=arguments.length,kt=ue(Ct),vi=Ct;vi--;)kt[vi]=arguments[vi];if(We)var Mr=cc(rt),mi=U$(kt,Mr);if(T&&(kt=S3(kt,T,k,We)),q&&(kt=A3(kt,q,G,We)),Ct-=mi,We&&Ct<we){var Cn=Zo(kt,Mr);return R3(f,p,Xh,rt.placeholder,x,kt,Cn,X,te,we-Ct)}var sa=Ee?x:this,oo=je?sa[f]:f;return Ct=kt.length,X?kt=eF(kt,X):nt&&Ct>1&&kt.reverse(),xe&&te<Ct&&(kt.length=te),this&&this!==ir&&this instanceof rt&&(oo=xt||ff(oo)),oo.apply(sa,kt)}return rt}function M3(f,p){return function(x,T){return uz(x,f,p(T),{})}}function Zh(f,p){return function(x,T){var k;if(x===n&&T===n)return p;if(x!==n&&(k=x),T!==n){if(k===n)return T;typeof x=="string"||typeof T=="string"?(x=pi(x),T=pi(T)):(x=v3(x),T=v3(T)),k=f(x,T)}return k}}function hy(f){return no(function(p){return p=dn(p,hi(tt())),_t(function(x){var T=this;return f(p,function(k){return di(k,T,x)})})})}function Jh(f,p){p=p===n?" ":pi(p);var x=p.length;if(x<2)return x?oy(p,f):p;var T=oy(p,$h(f/tc(p)));return ec(p)?ns(ia(T),0,f).join(""):T.slice(0,f)}function Dz(f,p,x,T){var k=p&v,q=ff(f);function G(){for(var X=-1,te=arguments.length,we=-1,xe=T.length,Ee=ue(xe+te),je=this&&this!==ir&&this instanceof G?q:f;++we<xe;)Ee[we]=T[we];for(;te--;)Ee[we++]=arguments[++X];return di(je,k?x:this,Ee)}return G}function k3(f){return function(p,x,T){return T&&typeof T!="number"&&jr(p,x,T)&&(x=T=n),p=ao(p),x===n?(x=p,p=0):x=ao(x),T=T===n?p<x?1:-1:ao(T),wz(p,x,T,f)}}function Qh(f){return function(p,x){return typeof p=="string"&&typeof x=="string"||(p=Bi(p),x=Bi(x)),f(p,x)}}function R3(f,p,x,T,k,q,G,X,te,we){var xe=p&E,Ee=xe?G:n,je=xe?n:G,We=xe?q:n,nt=xe?n:q;p|=xe?A:O,p&=~(xe?O:A),p&_||(p&=-4);var xt=[f,p,k,We,Ee,nt,je,X,te,we],rt=x.apply(n,xt);return xy(f)&&H3(rt,xt),rt.placeholder=T,U3(rt,f,p)}function py(f){var p=Bn[f];return function(x,T){if(x=Bi(x),T=T==null?0:pr(wt(T),292),T&&UA(x)){var k=(Ft(x)+"e").split("e"),q=p(k[0]+"e"+(+k[1]+T));return k=(Ft(q)+"e").split("e"),+(k[0]+"e"+(+k[1]-T))}return p(x)}}var Nz=ic&&1/Ph(new ic([,-0]))[1]==V?function(f){return new ic(f)}:Ny;function I3(f){return function(p){var x=gr(p);return x==$e?Vm(p):x==nn?Q$(p):H$(p,f(p))}}function to(f,p,x,T,k,q,G,X){var te=p&b;if(!te&&typeof f!="function")throw new Ii(o);var we=T?T.length:0;if(we||(p&=-97,T=k=n),G=G===n?G:zn(wt(G),0),X=X===n?X:wt(X),we-=k?k.length:0,p&O){var xe=T,Ee=k;T=k=n}var je=te?n:my(f),We=[f,p,x,T,k,xe,Ee,q,G,X];if(je&&Zz(We,je),f=We[0],p=We[1],x=We[2],T=We[3],k=We[4],X=We[9]=We[9]===n?te?0:f.length:zn(We[9]-we,0),!X&&p&(E|S)&&(p&=-25),!p||p==v)var nt=Rz(f,p,x);else p==E||p==S?nt=Iz(f,p,X):(p==A||p==(v|A))&&!k.length?nt=Dz(f,p,x,T):nt=Xh.apply(n,We);var xt=je?p3:H3;return U3(xt(nt,We),f,p)}function D3(f,p,x,T){return f===n||oa(f,rc[x])&&!Gt.call(T,x)?p:f}function N3(f,p,x,T,k,q){return yn(f)&&yn(p)&&(q.set(p,f),Uh(f,p,n,N3,q),q.delete(p)),f}function Lz(f){return pf(f)?n:f}function L3(f,p,x,T,k,q){var G=x&m,X=f.length,te=p.length;if(X!=te&&!(G&&te>X))return!1;var we=q.get(f),xe=q.get(p);if(we&&xe)return we==p&&xe==f;var Ee=-1,je=!0,We=x&y?new Fs:n;for(q.set(f,p),q.set(p,f);++Ee<X;){var nt=f[Ee],xt=p[Ee];if(T)var rt=G?T(xt,nt,Ee,p,f,q):T(nt,xt,Ee,f,p,q);if(rt!==n){if(rt)continue;je=!1;break}if(We){if(!$m(p,function(Ct,kt){if(!Ql(We,kt)&&(nt===Ct||k(nt,Ct,x,T,q)))return We.push(kt)})){je=!1;break}}else if(!(nt===xt||k(nt,xt,x,T,q))){je=!1;break}}return q.delete(f),q.delete(p),je}function $z(f,p,x,T,k,q,G){switch(x){case Uo:if(f.byteLength!=p.byteLength||f.byteOffset!=p.byteOffset)return!1;f=f.buffer,p=p.buffer;case Ns:return!(f.byteLength!=p.byteLength||!q(new Ih(f),new Ih(p)));case _e:case ce:case Qe:return oa(+f,+p);case Oe:return f.name==p.name&&f.message==p.message;case St:case gn:return f==p+"";case $e:var X=Vm;case nn:var te=T&m;if(X||(X=Ph),f.size!=p.size&&!te)return!1;var we=G.get(f);if(we)return we==p;T|=y,G.set(f,p);var xe=L3(X(f),X(p),T,k,q,G);return G.delete(f),xe;case Or:if(af)return af.call(f)==af.call(p)}return!1}function Bz(f,p,x,T,k,q){var G=x&m,X=gy(f),te=X.length,we=gy(p),xe=we.length;if(te!=xe&&!G)return!1;for(var Ee=te;Ee--;){var je=X[Ee];if(!(G?je in p:Gt.call(p,je)))return!1}var We=q.get(f),nt=q.get(p);if(We&&nt)return We==p&&nt==f;var xt=!0;q.set(f,p),q.set(p,f);for(var rt=G;++Ee<te;){je=X[Ee];var Ct=f[je],kt=p[je];if(T)var vi=G?T(kt,Ct,je,p,f,q):T(Ct,kt,je,f,p,q);if(!(vi===n?Ct===kt||k(Ct,kt,x,T,q):vi)){xt=!1;break}rt||(rt=je=="constructor")}if(xt&&!rt){var Mr=f.constructor,mi=p.constructor;Mr!=mi&&"constructor"in f&&"constructor"in p&&!(typeof Mr=="function"&&Mr instanceof Mr&&typeof mi=="function"&&mi instanceof mi)&&(xt=!1)}return q.delete(f),q.delete(p),xt}function no(f){return Ey(q3(f,n,J3),f+"")}function gy(f){return r3(f,Kn,by)}function vy(f){return r3(f,Yr,$3)}var my=zh?function(f){return zh.get(f)}:Ny;function ep(f){for(var p=f.name+"",x=ac[p],T=Gt.call(ac,p)?x.length:0;T--;){var k=x[T],q=k.func;if(q==null||q==f)return k.name}return p}function cc(f){var p=Gt.call(F,"placeholder")?F:f;return p.placeholder}function tt(){var f=F.iteratee||Iy;return f=f===Iy?o3:f,arguments.length?f(arguments[0],arguments[1]):f}function tp(f,p){var x=f.__data__;return Gz(p)?x[typeof p=="string"?"string":"hash"]:x.map}function yy(f){for(var p=Kn(f),x=p.length;x--;){var T=p[x],k=f[T];p[x]=[T,k,F3(k)]}return p}function Vs(f,p){var x=X$(f,p);return a3(x)?x:n}function zz(f){var p=Gt.call(f,Bs),x=f[Bs];try{f[Bs]=n;var T=!0}catch{}var k=kh.call(f);return T&&(p?f[Bs]=x:delete f[Bs]),k}var by=Um?function(f){return f==null?[]:(f=Zt(f),Yo(Um(f),function(p){return VA.call(f,p)}))}:Ly,$3=Um?function(f){for(var p=[];f;)Xo(p,by(f)),f=Dh(f);return p}:Ly,gr=Cr;(Gm&&gr(new Gm(new ArrayBuffer(1)))!=Uo||tf&&gr(new tf)!=$e||Km&&gr(Km.resolve())!=at||ic&&gr(new ic)!=nn||nf&&gr(new nf)!=Tr)&&(gr=function(f){var p=Cr(f),x=p==Se?f.constructor:n,T=x?Hs(x):"";if(T)switch(T){case _B:return Uo;case EB:return $e;case SB:return at;case AB:return nn;case OB:return Tr}return p});function Fz(f,p,x){for(var T=-1,k=x.length;++T<k;){var q=x[T],G=q.size;switch(q.type){case"drop":f+=G;break;case"dropRight":p-=G;break;case"take":p=pr(p,f+G);break;case"takeRight":f=zn(f,p-G);break}}return{start:f,end:p}}function Wz(f){var p=f.match(zt);return p?p[1].split(mn):[]}function B3(f,p,x){p=ts(p,f);for(var T=-1,k=p.length,q=!1;++T<k;){var G=Sa(p[T]);if(!(q=f!=null&&x(f,G)))break;f=f[G]}return q||++T!=k?q:(k=f==null?0:f.length,!!k&&up(k)&&ro(G,k)&&(ht(f)||Us(f)))}function qz(f){var p=f.length,x=new f.constructor(p);return p&&typeof f[0]=="string"&&Gt.call(f,"index")&&(x.index=f.index,x.input=f.input),x}function z3(f){return typeof f.constructor=="function"&&!df(f)?oc(Dh(f)):{}}function Vz(f,p,x){var T=f.constructor;switch(p){case Ns:return dy(f);case _e:case ce:return new T(+f);case Uo:return Tz(f,x);case Wl:case ql:case Vl:case Hl:case Ul:case Zu:case ee:case ne:case be:return _3(f,x);case $e:return new T;case Qe:case gn:return new T(f);case St:return Pz(f);case nn:return new T;case Or:return Cz(f)}}function Hz(f,p){var x=p.length;if(!x)return f;var T=x-1;return p[T]=(x>1?"& ":"")+p[T],p=p.join(x>2?", ":" "),f.replace(Dt,`{
111
111
  /* [wrapped with `+p+`] */
112
- `)}function Uz(f){return ht(f)||Us(f)||!!(HA&&f&&f[HA])}function ro(f,p){var x=typeof f;return p=p??Z,!!p&&(x=="number"||x!="symbol"&&Tt.test(f))&&f>-1&&f%1==0&&f<p}function jr(f,p,x){if(!yn(x))return!1;var T=typeof p;return(T=="number"?Kr(x)&&ro(p,x.length):T=="string"&&p in x)?oa(x[p],f):!1}function wy(f,p){if(ht(f))return!1;var x=typeof f;return x=="number"||x=="symbol"||x=="boolean"||f==null||gi(f)?!0:rn.test(f)||!Bt.test(f)||p!=null&&f in Zt(p)}function Gz(f){var p=typeof f;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?f!=="__proto__":f===null}function xy(f){var p=ep(f),x=F[p];if(typeof x!="function"||!(p in jt.prototype))return!1;if(f===x)return!0;var T=my(x);return!!T&&f===T[0]}function Kz(f){return!!FA&&FA in f}var Yz=jh?io:$y;function df(f){var p=f&&f.constructor,x=typeof p=="function"&&p.prototype||rc;return f===x}function F3(f){return f===f&&!yn(f)}function W3(f,p){return function(x){return x==null?!1:x[f]===p&&(p!==n||f in Zt(x))}}function Xz(f){var p=op(f,function(T){return x.size===c&&x.clear(),T}),x=p.cache;return p}function Zz(f,p){var x=f[1],T=p[1],M=x|T,q=M<(v|b|P),G=T==P&&x==E||T==P&&x==j&&f[7].length<=p[8]||T==(P|j)&&p[7].length<=p[8]&&x==E;if(!(q||G))return f;T&v&&(f[2]=p[2],M|=x&v?0:_);var X=p[3];if(X){var te=f[3];f[3]=te?S3(te,X,p[4]):X,f[4]=te?Zo(f[3],l):p[4]}return X=p[5],X&&(te=f[5],f[5]=te?A3(te,X,p[6]):X,f[6]=te?Zo(f[5],l):p[6]),X=p[7],X&&(f[7]=X),T&P&&(f[8]=f[8]==null?p[8]:pr(f[8],p[8])),f[9]==null&&(f[9]=p[9]),f[0]=p[0],f[1]=M,f}function Jz(f){var p=[];if(f!=null)for(var x in Zt(f))p.push(x);return p}function Qz(f){return kh.call(f)}function q3(f,p,x){return p=zn(p===n?f.length-1:p,0),function(){for(var T=arguments,M=-1,q=zn(T.length-p,0),G=ue(q);++M<q;)G[M]=T[p+M];M=-1;for(var X=ue(p+1);++M<p;)X[M]=T[M];return X[p]=x(G),di(f,this,X)}}function V3(f,p){return p.length<2?f:qs(f,Li(p,0,-1))}function eF(f,p){for(var x=f.length,T=pr(p.length,x),M=Gr(f);T--;){var q=p[T];f[T]=ro(q,x)?M[q]:n}return f}function _y(f,p){if(!(p==="constructor"&&typeof f[p]=="function")&&p!="__proto__")return f[p]}var H3=G3(p3),hf=gB||function(f,p){return ir.setTimeout(f,p)},Ey=G3(Ez);function U3(f,p,x){var T=p+"";return Ey(f,Hz(T,tF(Wz(T),x)))}function G3(f){var p=0,x=0;return function(){var T=bB(),M=D-(T-x);if(x=T,M>0){if(++p>=H)return arguments[0]}else p=0;return f.apply(n,arguments)}}function np(f,p){var x=-1,T=f.length,M=T-1;for(p=p===n?T:p;++x<p;){var q=ay(x,M),G=f[q];f[q]=f[x],f[x]=G}return f.length=p,f}var K3=Xz(function(f){var p=[];return f.charCodeAt(0)===46&&p.push(""),f.replace(Gn,function(x,T,M,q){p.push(M?q.replace(an,"$1"):T||x)}),p});function Sa(f){if(typeof f=="string"||gi(f))return f;var p=f+"";return p=="0"&&1/f==-V?"-0":p}function Hs(f){if(f!=null){try{return Mh.call(f)}catch{}try{return f+""}catch{}}return""}function tF(f,p){return Ri(ae,function(x){var T="_."+x[0];p&x[1]&&!Oh(f,T)&&f.push(T)}),f.sort()}function Y3(f){if(f instanceof jt)return f.clone();var p=new Di(f.__wrapped__,f.__chain__);return p.__actions__=Gr(f.__actions__),p.__index__=f.__index__,p.__values__=f.__values__,p}function nF(f,p,x){(x?jr(f,p,x):p===n)?p=1:p=zn(wt(p),0);var T=f==null?0:f.length;if(!T||p<1)return[];for(var M=0,q=0,G=ue($h(T/p));M<T;)G[q++]=Li(f,M,M+=p);return G}function rF(f){for(var p=-1,x=f==null?0:f.length,T=0,M=[];++p<x;){var q=f[p];q&&(M[T++]=q)}return M}function iF(){var f=arguments.length;if(!f)return[];for(var p=ue(f-1),x=arguments[0],T=f;T--;)p[T-1]=arguments[T];return Xo(ht(x)?Gr(x):[x],ar(p,1))}var aF=_t(function(f,p){return Pn(f)?sf(f,ar(p,1,Pn,!0)):[]}),oF=_t(function(f,p){var x=$i(p);return Pn(x)&&(x=n),Pn(f)?sf(f,ar(p,1,Pn,!0),tt(x,2)):[]}),sF=_t(function(f,p){var x=$i(p);return Pn(x)&&(x=n),Pn(f)?sf(f,ar(p,1,Pn,!0),n,x):[]});function uF(f,p,x){var T=f==null?0:f.length;return T?(p=x||p===n?1:wt(p),Li(f,p<0?0:p,T)):[]}function cF(f,p,x){var T=f==null?0:f.length;return T?(p=x||p===n?1:wt(p),p=T-p,Li(f,0,p<0?0:p)):[]}function lF(f,p){return f&&f.length?Kh(f,tt(p,3),!0,!0):[]}function fF(f,p){return f&&f.length?Kh(f,tt(p,3),!0):[]}function dF(f,p,x,T){var M=f==null?0:f.length;return M?(x&&typeof x!="number"&&jr(f,p,x)&&(x=0,T=M),iz(f,p,x,T)):[]}function X3(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var M=x==null?0:wt(x);return M<0&&(M=zn(T+M,0)),Th(f,tt(p,3),M)}function Z3(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var M=T-1;return x!==n&&(M=wt(x),M=x<0?zn(T+M,0):pr(M,T-1)),Th(f,tt(p,3),M,!0)}function J3(f){var p=f==null?0:f.length;return p?ar(f,1):[]}function hF(f){var p=f==null?0:f.length;return p?ar(f,V):[]}function pF(f,p){var x=f==null?0:f.length;return x?(p=p===n?1:wt(p),ar(f,p)):[]}function gF(f){for(var p=-1,x=f==null?0:f.length,T={};++p<x;){var M=f[p];T[M[0]]=M[1]}return T}function Q3(f){return f&&f.length?f[0]:n}function vF(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var M=x==null?0:wt(x);return M<0&&(M=zn(T+M,0)),Qu(f,p,M)}function mF(f){var p=f==null?0:f.length;return p?Li(f,0,-1):[]}var yF=_t(function(f){var p=dn(f,ly);return p.length&&p[0]===f[0]?ey(p):[]}),bF=_t(function(f){var p=$i(f),x=dn(f,ly);return p===$i(x)?p=n:x.pop(),x.length&&x[0]===f[0]?ey(x,tt(p,2)):[]}),wF=_t(function(f){var p=$i(f),x=dn(f,ly);return p=typeof p=="function"?p:n,p&&x.pop(),x.length&&x[0]===f[0]?ey(x,n,p):[]});function xF(f,p){return f==null?"":mB.call(f,p)}function $i(f){var p=f==null?0:f.length;return p?f[p-1]:n}function _F(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var M=T;return x!==n&&(M=wt(x),M=M<0?zn(T+M,0):pr(M,T-1)),p===p?tB(f,p,M):Th(f,RA,M,!0)}function EF(f,p){return f&&f.length?l3(f,wt(p)):n}var SF=_t(eO);function eO(f,p){return f&&f.length&&p&&p.length?iy(f,p):f}function AF(f,p,x){return f&&f.length&&p&&p.length?iy(f,p,tt(x,2)):f}function OF(f,p,x){return f&&f.length&&p&&p.length?iy(f,p,n,x):f}var TF=no(function(f,p){var x=f==null?0:f.length,T=Xm(f,p);return h3(f,dn(p,function(M){return ro(M,x)?+M:M}).sort(E3)),T});function PF(f,p){var x=[];if(!(f&&f.length))return x;var T=-1,M=[],q=f.length;for(p=tt(p,3);++T<q;){var G=f[T];p(G,T,f)&&(x.push(G),M.push(T))}return h3(f,M),x}function Sy(f){return f==null?f:xB.call(f)}function CF(f,p,x){var T=f==null?0:f.length;return T?(x&&typeof x!="number"&&jr(f,p,x)?(p=0,x=T):(p=p==null?0:wt(p),x=x===n?T:wt(x)),Li(f,p,x)):[]}function jF(f,p){return Gh(f,p)}function MF(f,p,x){return sy(f,p,tt(x,2))}function kF(f,p){var x=f==null?0:f.length;if(x){var T=Gh(f,p);if(T<x&&oa(f[T],p))return T}return-1}function RF(f,p){return Gh(f,p,!0)}function IF(f,p,x){return sy(f,p,tt(x,2),!0)}function DF(f,p){var x=f==null?0:f.length;if(x){var T=Gh(f,p,!0)-1;if(oa(f[T],p))return T}return-1}function NF(f){return f&&f.length?g3(f):[]}function LF(f,p){return f&&f.length?g3(f,tt(p,2)):[]}function $F(f){var p=f==null?0:f.length;return p?Li(f,1,p):[]}function BF(f,p,x){return f&&f.length?(p=x||p===n?1:wt(p),Li(f,0,p<0?0:p)):[]}function zF(f,p,x){var T=f==null?0:f.length;return T?(p=x||p===n?1:wt(p),p=T-p,Li(f,p<0?0:p,T)):[]}function FF(f,p){return f&&f.length?Kh(f,tt(p,3),!1,!0):[]}function WF(f,p){return f&&f.length?Kh(f,tt(p,3)):[]}var qF=_t(function(f){return es(ar(f,1,Pn,!0))}),VF=_t(function(f){var p=$i(f);return Pn(p)&&(p=n),es(ar(f,1,Pn,!0),tt(p,2))}),HF=_t(function(f){var p=$i(f);return p=typeof p=="function"?p:n,es(ar(f,1,Pn,!0),n,p)});function UF(f){return f&&f.length?es(f):[]}function GF(f,p){return f&&f.length?es(f,tt(p,2)):[]}function KF(f,p){return p=typeof p=="function"?p:n,f&&f.length?es(f,n,p):[]}function Ay(f){if(!(f&&f.length))return[];var p=0;return f=Yo(f,function(x){if(Pn(x))return p=zn(x.length,p),!0}),Wm(p,function(x){return dn(f,Bm(x))})}function tO(f,p){if(!(f&&f.length))return[];var x=Ay(f);return p==null?x:dn(x,function(T){return di(p,n,T)})}var YF=_t(function(f,p){return Pn(f)?sf(f,p):[]}),XF=_t(function(f){return cy(Yo(f,Pn))}),ZF=_t(function(f){var p=$i(f);return Pn(p)&&(p=n),cy(Yo(f,Pn),tt(p,2))}),JF=_t(function(f){var p=$i(f);return p=typeof p=="function"?p:n,cy(Yo(f,Pn),n,p)}),QF=_t(Ay);function eW(f,p){return b3(f||[],p||[],of)}function tW(f,p){return b3(f||[],p||[],lf)}var nW=_t(function(f){var p=f.length,x=p>1?f[p-1]:n;return x=typeof x=="function"?(f.pop(),x):n,tO(f,x)});function nO(f){var p=F(f);return p.__chain__=!0,p}function rW(f,p){return p(f),f}function rp(f,p){return p(f)}var iW=no(function(f){var p=f.length,x=p?f[0]:0,T=this.__wrapped__,M=function(q){return Xm(q,f)};return p>1||this.__actions__.length||!(T instanceof jt)||!ro(x)?this.thru(M):(T=T.slice(x,+x+(p?1:0)),T.__actions__.push({func:rp,args:[M],thisArg:n}),new Di(T,this.__chain__).thru(function(q){return p&&!q.length&&q.push(n),q}))});function aW(){return nO(this)}function oW(){return new Di(this.value(),this.__chain__)}function sW(){this.__values__===n&&(this.__values__=vO(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function uW(){return this}function cW(f){for(var p,x=this;x instanceof Wh;){var T=Y3(x);T.__index__=0,T.__values__=n,p?M.__wrapped__=T:p=T;var M=T;x=x.__wrapped__}return M.__wrapped__=f,p}function lW(){var f=this.__wrapped__;if(f instanceof jt){var p=f;return this.__actions__.length&&(p=new jt(this)),p=p.reverse(),p.__actions__.push({func:rp,args:[Sy],thisArg:n}),new Di(p,this.__chain__)}return this.thru(Sy)}function fW(){return y3(this.__wrapped__,this.__actions__)}var dW=Yh(function(f,p,x){Gt.call(f,x)?++f[x]:eo(f,x,1)});function hW(f,p,x){var T=ht(f)?MA:rz;return x&&jr(f,p,x)&&(p=n),T(f,tt(p,3))}function pW(f,p){var x=ht(f)?Yo:t3;return x(f,tt(p,3))}var gW=C3(X3),vW=C3(Z3);function mW(f,p){return ar(ip(f,p),1)}function yW(f,p){return ar(ip(f,p),V)}function bW(f,p,x){return x=x===n?1:wt(x),ar(ip(f,p),x)}function rO(f,p){var x=ht(f)?Ri:Qo;return x(f,tt(p,3))}function iO(f,p){var x=ht(f)?$$:e3;return x(f,tt(p,3))}var wW=Yh(function(f,p,x){Gt.call(f,x)?f[x].push(p):eo(f,x,[p])});function xW(f,p,x,T){f=Kr(f)?f:fc(f),x=x&&!T?wt(x):0;var M=f.length;return x<0&&(x=zn(M+x,0)),cp(f)?x<=M&&f.indexOf(p,x)>-1:!!M&&Qu(f,p,x)>-1}var _W=_t(function(f,p,x){var T=-1,M=typeof p=="function",q=Kr(f)?ue(f.length):[];return Qo(f,function(G){q[++T]=M?di(p,G,x):uf(G,p,x)}),q}),EW=Yh(function(f,p,x){eo(f,x,p)});function ip(f,p){var x=ht(f)?dn:s3;return x(f,tt(p,3))}function SW(f,p,x,T){return f==null?[]:(ht(p)||(p=p==null?[]:[p]),x=T?n:x,ht(x)||(x=x==null?[]:[x]),f3(f,p,x))}var AW=Yh(function(f,p,x){f[x?0:1].push(p)},function(){return[[],[]]});function OW(f,p,x){var T=ht(f)?Lm:DA,M=arguments.length<3;return T(f,tt(p,4),x,M,Qo)}function TW(f,p,x){var T=ht(f)?B$:DA,M=arguments.length<3;return T(f,tt(p,4),x,M,e3)}function PW(f,p){var x=ht(f)?Yo:t3;return x(f,sp(tt(p,3)))}function CW(f){var p=ht(f)?XA:xz;return p(f)}function jW(f,p,x){(x?jr(f,p,x):p===n)?p=1:p=wt(p);var T=ht(f)?JB:_z;return T(f,p)}function MW(f){var p=ht(f)?QB:Sz;return p(f)}function kW(f){if(f==null)return 0;if(Kr(f))return cp(f)?tc(f):f.length;var p=gr(f);return p==$e||p==nn?f.size:ny(f).length}function RW(f,p,x){var T=ht(f)?$m:Az;return x&&jr(f,p,x)&&(p=n),T(f,tt(p,3))}var IW=_t(function(f,p){if(f==null)return[];var x=p.length;return x>1&&jr(f,p[0],p[1])?p=[]:x>2&&jr(p[0],p[1],p[2])&&(p=[p[0]]),f3(f,ar(p,1),[])}),ap=pB||function(){return ir.Date.now()};function DW(f,p){if(typeof p!="function")throw new Ii(o);return f=wt(f),function(){if(--f<1)return p.apply(this,arguments)}}function aO(f,p,x){return p=x?n:p,p=f&&p==null?f.length:p,to(f,P,n,n,n,n,p)}function oO(f,p){var x;if(typeof p!="function")throw new Ii(o);return f=wt(f),function(){return--f>0&&(x=p.apply(this,arguments)),f<=1&&(p=n),x}}var Oy=_t(function(f,p,x){var T=v;if(x.length){var M=Zo(x,cc(Oy));T|=A}return to(f,T,p,x,M)}),sO=_t(function(f,p,x){var T=v|b;if(x.length){var M=Zo(x,cc(sO));T|=A}return to(p,T,f,x,M)});function uO(f,p,x){p=x?n:p;var T=to(f,E,n,n,n,n,n,p);return T.placeholder=uO.placeholder,T}function cO(f,p,x){p=x?n:p;var T=to(f,S,n,n,n,n,n,p);return T.placeholder=cO.placeholder,T}function lO(f,p,x){var T,M,q,G,X,te,we=0,xe=!1,Ee=!1,je=!0;if(typeof f!="function")throw new Ii(o);p=Bi(p)||0,yn(x)&&(xe=!!x.leading,Ee="maxWait"in x,q=Ee?zn(Bi(x.maxWait)||0,p):q,je="trailing"in x?!!x.trailing:je);function We(Cn){var sa=T,oo=M;return T=M=n,we=Cn,G=f.apply(oo,sa),G}function nt(Cn){return we=Cn,X=hf(Ct,p),xe?We(Cn):G}function xt(Cn){var sa=Cn-te,oo=Cn-we,CO=p-sa;return Ee?pr(CO,q-oo):CO}function rt(Cn){var sa=Cn-te,oo=Cn-we;return te===n||sa>=p||sa<0||Ee&&oo>=q}function Ct(){var Cn=ap();if(rt(Cn))return kt(Cn);X=hf(Ct,xt(Cn))}function kt(Cn){return X=n,je&&T?We(Cn):(T=M=n,G)}function vi(){X!==n&&w3(X),we=0,T=te=M=X=n}function Mr(){return X===n?G:kt(ap())}function mi(){var Cn=ap(),sa=rt(Cn);if(T=arguments,M=this,te=Cn,sa){if(X===n)return nt(te);if(Ee)return w3(X),X=hf(Ct,p),We(te)}return X===n&&(X=hf(Ct,p)),G}return mi.cancel=vi,mi.flush=Mr,mi}var NW=_t(function(f,p){return QA(f,1,p)}),LW=_t(function(f,p,x){return QA(f,Bi(p)||0,x)});function $W(f){return to(f,$)}function op(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Ii(o);var x=function(){var T=arguments,M=p?p.apply(this,T):T[0],q=x.cache;if(q.has(M))return q.get(M);var G=f.apply(this,T);return x.cache=q.set(M,G)||q,G};return x.cache=new(op.Cache||Qa),x}op.Cache=Qa;function sp(f){if(typeof f!="function")throw new Ii(o);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function BW(f){return oO(2,f)}var zW=Oz(function(f,p){p=p.length==1&&ht(p[0])?dn(p[0],hi(tt())):dn(ar(p,1),hi(tt()));var x=p.length;return _t(function(T){for(var M=-1,q=pr(T.length,x);++M<q;)T[M]=p[M].call(this,T[M]);return di(f,this,T)})}),Ty=_t(function(f,p){var x=Zo(p,cc(Ty));return to(f,A,n,p,x)}),fO=_t(function(f,p){var x=Zo(p,cc(fO));return to(f,O,n,p,x)}),FW=no(function(f,p){return to(f,j,n,n,n,p)});function WW(f,p){if(typeof f!="function")throw new Ii(o);return p=p===n?p:wt(p),_t(f,p)}function qW(f,p){if(typeof f!="function")throw new Ii(o);return p=p==null?0:zn(wt(p),0),_t(function(x){var T=x[p],M=ns(x,0,p);return T&&Xo(M,T),di(f,this,M)})}function VW(f,p,x){var T=!0,M=!0;if(typeof f!="function")throw new Ii(o);return yn(x)&&(T="leading"in x?!!x.leading:T,M="trailing"in x?!!x.trailing:M),lO(f,p,{leading:T,maxWait:p,trailing:M})}function HW(f){return aO(f,1)}function UW(f,p){return Ty(fy(p),f)}function GW(){if(!arguments.length)return[];var f=arguments[0];return ht(f)?f:[f]}function KW(f){return Ni(f,g)}function YW(f,p){return p=typeof p=="function"?p:n,Ni(f,g,p)}function XW(f){return Ni(f,d|g)}function ZW(f,p){return p=typeof p=="function"?p:n,Ni(f,d|g,p)}function JW(f,p){return p==null||JA(f,p,Kn(p))}function oa(f,p){return f===p||f!==f&&p!==p}var QW=Qh(Qm),eq=Qh(function(f,p){return f>=p}),Us=i3(function(){return arguments}())?i3:function(f){return En(f)&&Gt.call(f,"callee")&&!VA.call(f,"callee")},ht=ue.isArray,tq=AA?hi(AA):cz;function Kr(f){return f!=null&&up(f.length)&&!io(f)}function Pn(f){return En(f)&&Kr(f)}function nq(f){return f===!0||f===!1||En(f)&&Cr(f)==_e}var rs=vB||$y,rq=OA?hi(OA):lz;function iq(f){return En(f)&&f.nodeType===1&&!pf(f)}function aq(f){if(f==null)return!0;if(Kr(f)&&(ht(f)||typeof f=="string"||typeof f.splice=="function"||rs(f)||lc(f)||Us(f)))return!f.length;var p=gr(f);if(p==$e||p==nn)return!f.size;if(df(f))return!ny(f).length;for(var x in f)if(Gt.call(f,x))return!1;return!0}function oq(f,p){return cf(f,p)}function sq(f,p,x){x=typeof x=="function"?x:n;var T=x?x(f,p):n;return T===n?cf(f,p,n,x):!!T}function Py(f){if(!En(f))return!1;var p=Cr(f);return p==Oe||p==pe||typeof f.message=="string"&&typeof f.name=="string"&&!pf(f)}function uq(f){return typeof f=="number"&&UA(f)}function io(f){if(!yn(f))return!1;var p=Cr(f);return p==oe||p==Re||p==ye||p==pn}function dO(f){return typeof f=="number"&&f==wt(f)}function up(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=Z}function yn(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function En(f){return f!=null&&typeof f=="object"}var hO=TA?hi(TA):dz;function cq(f,p){return f===p||ty(f,p,yy(p))}function lq(f,p,x){return x=typeof x=="function"?x:n,ty(f,p,yy(p),x)}function fq(f){return pO(f)&&f!=+f}function dq(f){if(Yz(f))throw new dt(a);return a3(f)}function hq(f){return f===null}function pq(f){return f==null}function pO(f){return typeof f=="number"||En(f)&&Cr(f)==Qe}function pf(f){if(!En(f)||Cr(f)!=Se)return!1;var p=Dh(f);if(p===null)return!0;var x=Gt.call(p,"constructor")&&p.constructor;return typeof x=="function"&&x instanceof x&&Mh.call(x)==lB}var Cy=PA?hi(PA):hz;function gq(f){return dO(f)&&f>=-Z&&f<=Z}var gO=CA?hi(CA):pz;function cp(f){return typeof f=="string"||!ht(f)&&En(f)&&Cr(f)==gn}function gi(f){return typeof f=="symbol"||En(f)&&Cr(f)==Or}var lc=jA?hi(jA):gz;function vq(f){return f===n}function mq(f){return En(f)&&gr(f)==Tr}function yq(f){return En(f)&&Cr(f)==Fl}var bq=Qh(ry),wq=Qh(function(f,p){return f<=p});function vO(f){if(!f)return[];if(Kr(f))return cp(f)?ia(f):Gr(f);if(ef&&f[ef])return J$(f[ef]());var p=gr(f),x=p==$e?Vm:p==nn?Ph:fc;return x(f)}function ao(f){if(!f)return f===0?f:0;if(f=Bi(f),f===V||f===-V){var p=f<0?-1:1;return p*K}return f===f?f:0}function wt(f){var p=ao(f),x=p%1;return p===p?x?p-x:p:0}function mO(f){return f?Ws(wt(f),0,W):0}function Bi(f){if(typeof f=="number")return f;if(gi(f))return R;if(yn(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=yn(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=NA(f);var x=lt.test(f);return x||fn.test(f)?D$(f.slice(2),x?2:8):et.test(f)?R:+f}function yO(f){return Ea(f,Yr(f))}function xq(f){return f?Ws(wt(f),-Z,Z):f===0?f:0}function Ft(f){return f==null?"":pi(f)}var _q=sc(function(f,p){if(df(p)||Kr(p)){Ea(p,Kn(p),f);return}for(var x in p)Gt.call(p,x)&&of(f,x,p[x])}),bO=sc(function(f,p){Ea(p,Yr(p),f)}),lp=sc(function(f,p,x,T){Ea(p,Yr(p),f,T)}),Eq=sc(function(f,p,x,T){Ea(p,Kn(p),f,T)}),Sq=no(Xm);function Aq(f,p){var x=oc(f);return p==null?x:ZA(x,p)}var Oq=_t(function(f,p){f=Zt(f);var x=-1,T=p.length,M=T>2?p[2]:n;for(M&&jr(p[0],p[1],M)&&(T=1);++x<T;)for(var q=p[x],G=Yr(q),X=-1,te=G.length;++X<te;){var we=G[X],xe=f[we];(xe===n||oa(xe,rc[we])&&!Gt.call(f,we))&&(f[we]=q[we])}return f}),Tq=_t(function(f){return f.push(n,N3),di(wO,n,f)});function Pq(f,p){return kA(f,tt(p,3),_a)}function Cq(f,p){return kA(f,tt(p,3),Jm)}function jq(f,p){return f==null?f:Zm(f,tt(p,3),Yr)}function Mq(f,p){return f==null?f:n3(f,tt(p,3),Yr)}function kq(f,p){return f&&_a(f,tt(p,3))}function Rq(f,p){return f&&Jm(f,tt(p,3))}function Iq(f){return f==null?[]:Hh(f,Kn(f))}function Dq(f){return f==null?[]:Hh(f,Yr(f))}function jy(f,p,x){var T=f==null?n:qs(f,p);return T===n?x:T}function Nq(f,p){return f!=null&&B3(f,p,az)}function My(f,p){return f!=null&&B3(f,p,oz)}var Lq=M3(function(f,p,x){p!=null&&typeof p.toString!="function"&&(p=kh.call(p)),f[p]=x},Ry(Xr)),$q=M3(function(f,p,x){p!=null&&typeof p.toString!="function"&&(p=kh.call(p)),Gt.call(f,p)?f[p].push(x):f[p]=[x]},tt),Bq=_t(uf);function Kn(f){return Kr(f)?YA(f):ny(f)}function Yr(f){return Kr(f)?YA(f,!0):vz(f)}function zq(f,p){var x={};return p=tt(p,3),_a(f,function(T,M,q){eo(x,p(T,M,q),T)}),x}function Fq(f,p){var x={};return p=tt(p,3),_a(f,function(T,M,q){eo(x,M,p(T,M,q))}),x}var Wq=sc(function(f,p,x){Uh(f,p,x)}),wO=sc(function(f,p,x,T){Uh(f,p,x,T)}),qq=no(function(f,p){var x={};if(f==null)return x;var T=!1;p=dn(p,function(q){return q=ts(q,f),T||(T=q.length>1),q}),Ea(f,vy(f),x),T&&(x=Ni(x,d|h|g,Lz));for(var M=p.length;M--;)uy(x,p[M]);return x});function Vq(f,p){return xO(f,sp(tt(p)))}var Hq=no(function(f,p){return f==null?{}:yz(f,p)});function xO(f,p){if(f==null)return{};var x=dn(vy(f),function(T){return[T]});return p=tt(p),d3(f,x,function(T,M){return p(T,M[0])})}function Uq(f,p,x){p=ts(p,f);var T=-1,M=p.length;for(M||(M=1,f=n);++T<M;){var q=f==null?n:f[Sa(p[T])];q===n&&(T=M,q=x),f=io(q)?q.call(f):q}return f}function Gq(f,p,x){return f==null?f:lf(f,p,x)}function Kq(f,p,x,T){return T=typeof T=="function"?T:n,f==null?f:lf(f,p,x,T)}var _O=I3(Kn),EO=I3(Yr);function Yq(f,p,x){var T=ht(f),M=T||rs(f)||lc(f);if(p=tt(p,4),x==null){var q=f&&f.constructor;M?x=T?new q:[]:yn(f)?x=io(q)?oc(Dh(f)):{}:x={}}return(M?Ri:_a)(f,function(G,X,te){return p(x,G,X,te)}),x}function Xq(f,p){return f==null?!0:uy(f,p)}function Zq(f,p,x){return f==null?f:m3(f,p,fy(x))}function Jq(f,p,x,T){return T=typeof T=="function"?T:n,f==null?f:m3(f,p,fy(x),T)}function fc(f){return f==null?[]:qm(f,Kn(f))}function Qq(f){return f==null?[]:qm(f,Yr(f))}function eV(f,p,x){return x===n&&(x=p,p=n),x!==n&&(x=Bi(x),x=x===x?x:0),p!==n&&(p=Bi(p),p=p===p?p:0),Ws(Bi(f),p,x)}function tV(f,p,x){return p=ao(p),x===n?(x=p,p=0):x=ao(x),f=Bi(f),sz(f,p,x)}function nV(f,p,x){if(x&&typeof x!="boolean"&&jr(f,p,x)&&(p=x=n),x===n&&(typeof p=="boolean"?(x=p,p=n):typeof f=="boolean"&&(x=f,f=n)),f===n&&p===n?(f=0,p=1):(f=ao(f),p===n?(p=f,f=0):p=ao(p)),f>p){var T=f;f=p,p=T}if(x||f%1||p%1){var M=GA();return pr(f+M*(p-f+I$("1e-"+((M+"").length-1))),p)}return ay(f,p)}var rV=uc(function(f,p,x){return p=p.toLowerCase(),f+(x?SO(p):p)});function SO(f){return ky(Ft(f).toLowerCase())}function AO(f){return f=Ft(f),f&&f.replace(he,G$).replace(S$,"")}function iV(f,p,x){f=Ft(f),p=pi(p);var T=f.length;x=x===n?T:Ws(wt(x),0,T);var M=x;return x-=p.length,x>=0&&f.slice(x,M)==p}function aV(f){return f=Ft(f),f&&ct.test(f)?f.replace(Fe,K$):f}function oV(f){return f=Ft(f),f&&vn.test(f)?f.replace(Rn,"\\$&"):f}var sV=uc(function(f,p,x){return f+(x?"-":"")+p.toLowerCase()}),uV=uc(function(f,p,x){return f+(x?" ":"")+p.toLowerCase()}),cV=P3("toLowerCase");function lV(f,p,x){f=Ft(f),p=wt(p);var T=p?tc(f):0;if(!p||T>=p)return f;var M=(p-T)/2;return Jh(Bh(M),x)+f+Jh($h(M),x)}function fV(f,p,x){f=Ft(f),p=wt(p);var T=p?tc(f):0;return p&&T<p?f+Jh(p-T,x):f}function dV(f,p,x){f=Ft(f),p=wt(p);var T=p?tc(f):0;return p&&T<p?Jh(p-T,x)+f:f}function hV(f,p,x){return x||p==null?p=0:p&&(p=+p),wB(Ft(f).replace(Ke,""),p||0)}function pV(f,p,x){return(x?jr(f,p,x):p===n)?p=1:p=wt(p),oy(Ft(f),p)}function gV(){var f=arguments,p=Ft(f[0]);return f.length<3?p:p.replace(f[1],f[2])}var vV=uc(function(f,p,x){return f+(x?"_":"")+p.toLowerCase()});function mV(f,p,x){return x&&typeof x!="number"&&jr(f,p,x)&&(p=x=n),x=x===n?W:x>>>0,x?(f=Ft(f),f&&(typeof p=="string"||p!=null&&!Cy(p))&&(p=pi(p),!p&&ec(f))?ns(ia(f),0,x):f.split(p,x)):[]}var yV=uc(function(f,p,x){return f+(x?" ":"")+ky(p)});function bV(f,p,x){return f=Ft(f),x=x==null?0:Ws(wt(x),0,f.length),p=pi(p),f.slice(x,x+p.length)==p}function wV(f,p,x){var T=F.templateSettings;x&&jr(f,p,x)&&(p=n),f=Ft(f),p=lp({},p,T,D3);var M=lp({},p.imports,T.imports,D3),q=Kn(M),G=qm(M,q),X,te,we=0,xe=p.interpolate||fe,Ee="__p += '",je=Hm((p.escape||fe).source+"|"+xe.source+"|"+(xe===bt?gt:fe).source+"|"+(p.evaluate||fe).source+"|$","g"),We="//# sourceURL="+(Gt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++C$+"]")+`
112
+ `)}function Uz(f){return ht(f)||Us(f)||!!(HA&&f&&f[HA])}function ro(f,p){var x=typeof f;return p=p??Z,!!p&&(x=="number"||x!="symbol"&&Tt.test(f))&&f>-1&&f%1==0&&f<p}function jr(f,p,x){if(!yn(x))return!1;var T=typeof p;return(T=="number"?Kr(x)&&ro(p,x.length):T=="string"&&p in x)?oa(x[p],f):!1}function wy(f,p){if(ht(f))return!1;var x=typeof f;return x=="number"||x=="symbol"||x=="boolean"||f==null||gi(f)?!0:rn.test(f)||!Bt.test(f)||p!=null&&f in Zt(p)}function Gz(f){var p=typeof f;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?f!=="__proto__":f===null}function xy(f){var p=ep(f),x=F[p];if(typeof x!="function"||!(p in jt.prototype))return!1;if(f===x)return!0;var T=my(x);return!!T&&f===T[0]}function Kz(f){return!!FA&&FA in f}var Yz=jh?io:$y;function df(f){var p=f&&f.constructor,x=typeof p=="function"&&p.prototype||rc;return f===x}function F3(f){return f===f&&!yn(f)}function W3(f,p){return function(x){return x==null?!1:x[f]===p&&(p!==n||f in Zt(x))}}function Xz(f){var p=op(f,function(T){return x.size===c&&x.clear(),T}),x=p.cache;return p}function Zz(f,p){var x=f[1],T=p[1],k=x|T,q=k<(v|b|P),G=T==P&&x==E||T==P&&x==j&&f[7].length<=p[8]||T==(P|j)&&p[7].length<=p[8]&&x==E;if(!(q||G))return f;T&v&&(f[2]=p[2],k|=x&v?0:_);var X=p[3];if(X){var te=f[3];f[3]=te?S3(te,X,p[4]):X,f[4]=te?Zo(f[3],l):p[4]}return X=p[5],X&&(te=f[5],f[5]=te?A3(te,X,p[6]):X,f[6]=te?Zo(f[5],l):p[6]),X=p[7],X&&(f[7]=X),T&P&&(f[8]=f[8]==null?p[8]:pr(f[8],p[8])),f[9]==null&&(f[9]=p[9]),f[0]=p[0],f[1]=k,f}function Jz(f){var p=[];if(f!=null)for(var x in Zt(f))p.push(x);return p}function Qz(f){return kh.call(f)}function q3(f,p,x){return p=zn(p===n?f.length-1:p,0),function(){for(var T=arguments,k=-1,q=zn(T.length-p,0),G=ue(q);++k<q;)G[k]=T[p+k];k=-1;for(var X=ue(p+1);++k<p;)X[k]=T[k];return X[p]=x(G),di(f,this,X)}}function V3(f,p){return p.length<2?f:qs(f,Li(p,0,-1))}function eF(f,p){for(var x=f.length,T=pr(p.length,x),k=Gr(f);T--;){var q=p[T];f[T]=ro(q,x)?k[q]:n}return f}function _y(f,p){if(!(p==="constructor"&&typeof f[p]=="function")&&p!="__proto__")return f[p]}var H3=G3(p3),hf=gB||function(f,p){return ir.setTimeout(f,p)},Ey=G3(Ez);function U3(f,p,x){var T=p+"";return Ey(f,Hz(T,tF(Wz(T),x)))}function G3(f){var p=0,x=0;return function(){var T=bB(),k=D-(T-x);if(x=T,k>0){if(++p>=H)return arguments[0]}else p=0;return f.apply(n,arguments)}}function np(f,p){var x=-1,T=f.length,k=T-1;for(p=p===n?T:p;++x<p;){var q=ay(x,k),G=f[q];f[q]=f[x],f[x]=G}return f.length=p,f}var K3=Xz(function(f){var p=[];return f.charCodeAt(0)===46&&p.push(""),f.replace(Gn,function(x,T,k,q){p.push(k?q.replace(an,"$1"):T||x)}),p});function Sa(f){if(typeof f=="string"||gi(f))return f;var p=f+"";return p=="0"&&1/f==-V?"-0":p}function Hs(f){if(f!=null){try{return Mh.call(f)}catch{}try{return f+""}catch{}}return""}function tF(f,p){return Ri(ae,function(x){var T="_."+x[0];p&x[1]&&!Oh(f,T)&&f.push(T)}),f.sort()}function Y3(f){if(f instanceof jt)return f.clone();var p=new Di(f.__wrapped__,f.__chain__);return p.__actions__=Gr(f.__actions__),p.__index__=f.__index__,p.__values__=f.__values__,p}function nF(f,p,x){(x?jr(f,p,x):p===n)?p=1:p=zn(wt(p),0);var T=f==null?0:f.length;if(!T||p<1)return[];for(var k=0,q=0,G=ue($h(T/p));k<T;)G[q++]=Li(f,k,k+=p);return G}function rF(f){for(var p=-1,x=f==null?0:f.length,T=0,k=[];++p<x;){var q=f[p];q&&(k[T++]=q)}return k}function iF(){var f=arguments.length;if(!f)return[];for(var p=ue(f-1),x=arguments[0],T=f;T--;)p[T-1]=arguments[T];return Xo(ht(x)?Gr(x):[x],ar(p,1))}var aF=_t(function(f,p){return Pn(f)?sf(f,ar(p,1,Pn,!0)):[]}),oF=_t(function(f,p){var x=$i(p);return Pn(x)&&(x=n),Pn(f)?sf(f,ar(p,1,Pn,!0),tt(x,2)):[]}),sF=_t(function(f,p){var x=$i(p);return Pn(x)&&(x=n),Pn(f)?sf(f,ar(p,1,Pn,!0),n,x):[]});function uF(f,p,x){var T=f==null?0:f.length;return T?(p=x||p===n?1:wt(p),Li(f,p<0?0:p,T)):[]}function cF(f,p,x){var T=f==null?0:f.length;return T?(p=x||p===n?1:wt(p),p=T-p,Li(f,0,p<0?0:p)):[]}function lF(f,p){return f&&f.length?Kh(f,tt(p,3),!0,!0):[]}function fF(f,p){return f&&f.length?Kh(f,tt(p,3),!0):[]}function dF(f,p,x,T){var k=f==null?0:f.length;return k?(x&&typeof x!="number"&&jr(f,p,x)&&(x=0,T=k),iz(f,p,x,T)):[]}function X3(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var k=x==null?0:wt(x);return k<0&&(k=zn(T+k,0)),Th(f,tt(p,3),k)}function Z3(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var k=T-1;return x!==n&&(k=wt(x),k=x<0?zn(T+k,0):pr(k,T-1)),Th(f,tt(p,3),k,!0)}function J3(f){var p=f==null?0:f.length;return p?ar(f,1):[]}function hF(f){var p=f==null?0:f.length;return p?ar(f,V):[]}function pF(f,p){var x=f==null?0:f.length;return x?(p=p===n?1:wt(p),ar(f,p)):[]}function gF(f){for(var p=-1,x=f==null?0:f.length,T={};++p<x;){var k=f[p];T[k[0]]=k[1]}return T}function Q3(f){return f&&f.length?f[0]:n}function vF(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var k=x==null?0:wt(x);return k<0&&(k=zn(T+k,0)),Qu(f,p,k)}function mF(f){var p=f==null?0:f.length;return p?Li(f,0,-1):[]}var yF=_t(function(f){var p=dn(f,ly);return p.length&&p[0]===f[0]?ey(p):[]}),bF=_t(function(f){var p=$i(f),x=dn(f,ly);return p===$i(x)?p=n:x.pop(),x.length&&x[0]===f[0]?ey(x,tt(p,2)):[]}),wF=_t(function(f){var p=$i(f),x=dn(f,ly);return p=typeof p=="function"?p:n,p&&x.pop(),x.length&&x[0]===f[0]?ey(x,n,p):[]});function xF(f,p){return f==null?"":mB.call(f,p)}function $i(f){var p=f==null?0:f.length;return p?f[p-1]:n}function _F(f,p,x){var T=f==null?0:f.length;if(!T)return-1;var k=T;return x!==n&&(k=wt(x),k=k<0?zn(T+k,0):pr(k,T-1)),p===p?tB(f,p,k):Th(f,RA,k,!0)}function EF(f,p){return f&&f.length?l3(f,wt(p)):n}var SF=_t(eO);function eO(f,p){return f&&f.length&&p&&p.length?iy(f,p):f}function AF(f,p,x){return f&&f.length&&p&&p.length?iy(f,p,tt(x,2)):f}function OF(f,p,x){return f&&f.length&&p&&p.length?iy(f,p,n,x):f}var TF=no(function(f,p){var x=f==null?0:f.length,T=Xm(f,p);return h3(f,dn(p,function(k){return ro(k,x)?+k:k}).sort(E3)),T});function PF(f,p){var x=[];if(!(f&&f.length))return x;var T=-1,k=[],q=f.length;for(p=tt(p,3);++T<q;){var G=f[T];p(G,T,f)&&(x.push(G),k.push(T))}return h3(f,k),x}function Sy(f){return f==null?f:xB.call(f)}function CF(f,p,x){var T=f==null?0:f.length;return T?(x&&typeof x!="number"&&jr(f,p,x)?(p=0,x=T):(p=p==null?0:wt(p),x=x===n?T:wt(x)),Li(f,p,x)):[]}function jF(f,p){return Gh(f,p)}function MF(f,p,x){return sy(f,p,tt(x,2))}function kF(f,p){var x=f==null?0:f.length;if(x){var T=Gh(f,p);if(T<x&&oa(f[T],p))return T}return-1}function RF(f,p){return Gh(f,p,!0)}function IF(f,p,x){return sy(f,p,tt(x,2),!0)}function DF(f,p){var x=f==null?0:f.length;if(x){var T=Gh(f,p,!0)-1;if(oa(f[T],p))return T}return-1}function NF(f){return f&&f.length?g3(f):[]}function LF(f,p){return f&&f.length?g3(f,tt(p,2)):[]}function $F(f){var p=f==null?0:f.length;return p?Li(f,1,p):[]}function BF(f,p,x){return f&&f.length?(p=x||p===n?1:wt(p),Li(f,0,p<0?0:p)):[]}function zF(f,p,x){var T=f==null?0:f.length;return T?(p=x||p===n?1:wt(p),p=T-p,Li(f,p<0?0:p,T)):[]}function FF(f,p){return f&&f.length?Kh(f,tt(p,3),!1,!0):[]}function WF(f,p){return f&&f.length?Kh(f,tt(p,3)):[]}var qF=_t(function(f){return es(ar(f,1,Pn,!0))}),VF=_t(function(f){var p=$i(f);return Pn(p)&&(p=n),es(ar(f,1,Pn,!0),tt(p,2))}),HF=_t(function(f){var p=$i(f);return p=typeof p=="function"?p:n,es(ar(f,1,Pn,!0),n,p)});function UF(f){return f&&f.length?es(f):[]}function GF(f,p){return f&&f.length?es(f,tt(p,2)):[]}function KF(f,p){return p=typeof p=="function"?p:n,f&&f.length?es(f,n,p):[]}function Ay(f){if(!(f&&f.length))return[];var p=0;return f=Yo(f,function(x){if(Pn(x))return p=zn(x.length,p),!0}),Wm(p,function(x){return dn(f,Bm(x))})}function tO(f,p){if(!(f&&f.length))return[];var x=Ay(f);return p==null?x:dn(x,function(T){return di(p,n,T)})}var YF=_t(function(f,p){return Pn(f)?sf(f,p):[]}),XF=_t(function(f){return cy(Yo(f,Pn))}),ZF=_t(function(f){var p=$i(f);return Pn(p)&&(p=n),cy(Yo(f,Pn),tt(p,2))}),JF=_t(function(f){var p=$i(f);return p=typeof p=="function"?p:n,cy(Yo(f,Pn),n,p)}),QF=_t(Ay);function eW(f,p){return b3(f||[],p||[],of)}function tW(f,p){return b3(f||[],p||[],lf)}var nW=_t(function(f){var p=f.length,x=p>1?f[p-1]:n;return x=typeof x=="function"?(f.pop(),x):n,tO(f,x)});function nO(f){var p=F(f);return p.__chain__=!0,p}function rW(f,p){return p(f),f}function rp(f,p){return p(f)}var iW=no(function(f){var p=f.length,x=p?f[0]:0,T=this.__wrapped__,k=function(q){return Xm(q,f)};return p>1||this.__actions__.length||!(T instanceof jt)||!ro(x)?this.thru(k):(T=T.slice(x,+x+(p?1:0)),T.__actions__.push({func:rp,args:[k],thisArg:n}),new Di(T,this.__chain__).thru(function(q){return p&&!q.length&&q.push(n),q}))});function aW(){return nO(this)}function oW(){return new Di(this.value(),this.__chain__)}function sW(){this.__values__===n&&(this.__values__=vO(this.value()));var f=this.__index__>=this.__values__.length,p=f?n:this.__values__[this.__index__++];return{done:f,value:p}}function uW(){return this}function cW(f){for(var p,x=this;x instanceof Wh;){var T=Y3(x);T.__index__=0,T.__values__=n,p?k.__wrapped__=T:p=T;var k=T;x=x.__wrapped__}return k.__wrapped__=f,p}function lW(){var f=this.__wrapped__;if(f instanceof jt){var p=f;return this.__actions__.length&&(p=new jt(this)),p=p.reverse(),p.__actions__.push({func:rp,args:[Sy],thisArg:n}),new Di(p,this.__chain__)}return this.thru(Sy)}function fW(){return y3(this.__wrapped__,this.__actions__)}var dW=Yh(function(f,p,x){Gt.call(f,x)?++f[x]:eo(f,x,1)});function hW(f,p,x){var T=ht(f)?MA:rz;return x&&jr(f,p,x)&&(p=n),T(f,tt(p,3))}function pW(f,p){var x=ht(f)?Yo:t3;return x(f,tt(p,3))}var gW=C3(X3),vW=C3(Z3);function mW(f,p){return ar(ip(f,p),1)}function yW(f,p){return ar(ip(f,p),V)}function bW(f,p,x){return x=x===n?1:wt(x),ar(ip(f,p),x)}function rO(f,p){var x=ht(f)?Ri:Qo;return x(f,tt(p,3))}function iO(f,p){var x=ht(f)?$$:e3;return x(f,tt(p,3))}var wW=Yh(function(f,p,x){Gt.call(f,x)?f[x].push(p):eo(f,x,[p])});function xW(f,p,x,T){f=Kr(f)?f:fc(f),x=x&&!T?wt(x):0;var k=f.length;return x<0&&(x=zn(k+x,0)),cp(f)?x<=k&&f.indexOf(p,x)>-1:!!k&&Qu(f,p,x)>-1}var _W=_t(function(f,p,x){var T=-1,k=typeof p=="function",q=Kr(f)?ue(f.length):[];return Qo(f,function(G){q[++T]=k?di(p,G,x):uf(G,p,x)}),q}),EW=Yh(function(f,p,x){eo(f,x,p)});function ip(f,p){var x=ht(f)?dn:s3;return x(f,tt(p,3))}function SW(f,p,x,T){return f==null?[]:(ht(p)||(p=p==null?[]:[p]),x=T?n:x,ht(x)||(x=x==null?[]:[x]),f3(f,p,x))}var AW=Yh(function(f,p,x){f[x?0:1].push(p)},function(){return[[],[]]});function OW(f,p,x){var T=ht(f)?Lm:DA,k=arguments.length<3;return T(f,tt(p,4),x,k,Qo)}function TW(f,p,x){var T=ht(f)?B$:DA,k=arguments.length<3;return T(f,tt(p,4),x,k,e3)}function PW(f,p){var x=ht(f)?Yo:t3;return x(f,sp(tt(p,3)))}function CW(f){var p=ht(f)?XA:xz;return p(f)}function jW(f,p,x){(x?jr(f,p,x):p===n)?p=1:p=wt(p);var T=ht(f)?JB:_z;return T(f,p)}function MW(f){var p=ht(f)?QB:Sz;return p(f)}function kW(f){if(f==null)return 0;if(Kr(f))return cp(f)?tc(f):f.length;var p=gr(f);return p==$e||p==nn?f.size:ny(f).length}function RW(f,p,x){var T=ht(f)?$m:Az;return x&&jr(f,p,x)&&(p=n),T(f,tt(p,3))}var IW=_t(function(f,p){if(f==null)return[];var x=p.length;return x>1&&jr(f,p[0],p[1])?p=[]:x>2&&jr(p[0],p[1],p[2])&&(p=[p[0]]),f3(f,ar(p,1),[])}),ap=pB||function(){return ir.Date.now()};function DW(f,p){if(typeof p!="function")throw new Ii(o);return f=wt(f),function(){if(--f<1)return p.apply(this,arguments)}}function aO(f,p,x){return p=x?n:p,p=f&&p==null?f.length:p,to(f,P,n,n,n,n,p)}function oO(f,p){var x;if(typeof p!="function")throw new Ii(o);return f=wt(f),function(){return--f>0&&(x=p.apply(this,arguments)),f<=1&&(p=n),x}}var Oy=_t(function(f,p,x){var T=v;if(x.length){var k=Zo(x,cc(Oy));T|=A}return to(f,T,p,x,k)}),sO=_t(function(f,p,x){var T=v|b;if(x.length){var k=Zo(x,cc(sO));T|=A}return to(p,T,f,x,k)});function uO(f,p,x){p=x?n:p;var T=to(f,E,n,n,n,n,n,p);return T.placeholder=uO.placeholder,T}function cO(f,p,x){p=x?n:p;var T=to(f,S,n,n,n,n,n,p);return T.placeholder=cO.placeholder,T}function lO(f,p,x){var T,k,q,G,X,te,we=0,xe=!1,Ee=!1,je=!0;if(typeof f!="function")throw new Ii(o);p=Bi(p)||0,yn(x)&&(xe=!!x.leading,Ee="maxWait"in x,q=Ee?zn(Bi(x.maxWait)||0,p):q,je="trailing"in x?!!x.trailing:je);function We(Cn){var sa=T,oo=k;return T=k=n,we=Cn,G=f.apply(oo,sa),G}function nt(Cn){return we=Cn,X=hf(Ct,p),xe?We(Cn):G}function xt(Cn){var sa=Cn-te,oo=Cn-we,CO=p-sa;return Ee?pr(CO,q-oo):CO}function rt(Cn){var sa=Cn-te,oo=Cn-we;return te===n||sa>=p||sa<0||Ee&&oo>=q}function Ct(){var Cn=ap();if(rt(Cn))return kt(Cn);X=hf(Ct,xt(Cn))}function kt(Cn){return X=n,je&&T?We(Cn):(T=k=n,G)}function vi(){X!==n&&w3(X),we=0,T=te=k=X=n}function Mr(){return X===n?G:kt(ap())}function mi(){var Cn=ap(),sa=rt(Cn);if(T=arguments,k=this,te=Cn,sa){if(X===n)return nt(te);if(Ee)return w3(X),X=hf(Ct,p),We(te)}return X===n&&(X=hf(Ct,p)),G}return mi.cancel=vi,mi.flush=Mr,mi}var NW=_t(function(f,p){return QA(f,1,p)}),LW=_t(function(f,p,x){return QA(f,Bi(p)||0,x)});function $W(f){return to(f,$)}function op(f,p){if(typeof f!="function"||p!=null&&typeof p!="function")throw new Ii(o);var x=function(){var T=arguments,k=p?p.apply(this,T):T[0],q=x.cache;if(q.has(k))return q.get(k);var G=f.apply(this,T);return x.cache=q.set(k,G)||q,G};return x.cache=new(op.Cache||Qa),x}op.Cache=Qa;function sp(f){if(typeof f!="function")throw new Ii(o);return function(){var p=arguments;switch(p.length){case 0:return!f.call(this);case 1:return!f.call(this,p[0]);case 2:return!f.call(this,p[0],p[1]);case 3:return!f.call(this,p[0],p[1],p[2])}return!f.apply(this,p)}}function BW(f){return oO(2,f)}var zW=Oz(function(f,p){p=p.length==1&&ht(p[0])?dn(p[0],hi(tt())):dn(ar(p,1),hi(tt()));var x=p.length;return _t(function(T){for(var k=-1,q=pr(T.length,x);++k<q;)T[k]=p[k].call(this,T[k]);return di(f,this,T)})}),Ty=_t(function(f,p){var x=Zo(p,cc(Ty));return to(f,A,n,p,x)}),fO=_t(function(f,p){var x=Zo(p,cc(fO));return to(f,O,n,p,x)}),FW=no(function(f,p){return to(f,j,n,n,n,p)});function WW(f,p){if(typeof f!="function")throw new Ii(o);return p=p===n?p:wt(p),_t(f,p)}function qW(f,p){if(typeof f!="function")throw new Ii(o);return p=p==null?0:zn(wt(p),0),_t(function(x){var T=x[p],k=ns(x,0,p);return T&&Xo(k,T),di(f,this,k)})}function VW(f,p,x){var T=!0,k=!0;if(typeof f!="function")throw new Ii(o);return yn(x)&&(T="leading"in x?!!x.leading:T,k="trailing"in x?!!x.trailing:k),lO(f,p,{leading:T,maxWait:p,trailing:k})}function HW(f){return aO(f,1)}function UW(f,p){return Ty(fy(p),f)}function GW(){if(!arguments.length)return[];var f=arguments[0];return ht(f)?f:[f]}function KW(f){return Ni(f,g)}function YW(f,p){return p=typeof p=="function"?p:n,Ni(f,g,p)}function XW(f){return Ni(f,d|g)}function ZW(f,p){return p=typeof p=="function"?p:n,Ni(f,d|g,p)}function JW(f,p){return p==null||JA(f,p,Kn(p))}function oa(f,p){return f===p||f!==f&&p!==p}var QW=Qh(Qm),eq=Qh(function(f,p){return f>=p}),Us=i3(function(){return arguments}())?i3:function(f){return En(f)&&Gt.call(f,"callee")&&!VA.call(f,"callee")},ht=ue.isArray,tq=AA?hi(AA):cz;function Kr(f){return f!=null&&up(f.length)&&!io(f)}function Pn(f){return En(f)&&Kr(f)}function nq(f){return f===!0||f===!1||En(f)&&Cr(f)==_e}var rs=vB||$y,rq=OA?hi(OA):lz;function iq(f){return En(f)&&f.nodeType===1&&!pf(f)}function aq(f){if(f==null)return!0;if(Kr(f)&&(ht(f)||typeof f=="string"||typeof f.splice=="function"||rs(f)||lc(f)||Us(f)))return!f.length;var p=gr(f);if(p==$e||p==nn)return!f.size;if(df(f))return!ny(f).length;for(var x in f)if(Gt.call(f,x))return!1;return!0}function oq(f,p){return cf(f,p)}function sq(f,p,x){x=typeof x=="function"?x:n;var T=x?x(f,p):n;return T===n?cf(f,p,n,x):!!T}function Py(f){if(!En(f))return!1;var p=Cr(f);return p==Oe||p==pe||typeof f.message=="string"&&typeof f.name=="string"&&!pf(f)}function uq(f){return typeof f=="number"&&UA(f)}function io(f){if(!yn(f))return!1;var p=Cr(f);return p==oe||p==Re||p==ye||p==pn}function dO(f){return typeof f=="number"&&f==wt(f)}function up(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=Z}function yn(f){var p=typeof f;return f!=null&&(p=="object"||p=="function")}function En(f){return f!=null&&typeof f=="object"}var hO=TA?hi(TA):dz;function cq(f,p){return f===p||ty(f,p,yy(p))}function lq(f,p,x){return x=typeof x=="function"?x:n,ty(f,p,yy(p),x)}function fq(f){return pO(f)&&f!=+f}function dq(f){if(Yz(f))throw new dt(a);return a3(f)}function hq(f){return f===null}function pq(f){return f==null}function pO(f){return typeof f=="number"||En(f)&&Cr(f)==Qe}function pf(f){if(!En(f)||Cr(f)!=Se)return!1;var p=Dh(f);if(p===null)return!0;var x=Gt.call(p,"constructor")&&p.constructor;return typeof x=="function"&&x instanceof x&&Mh.call(x)==lB}var Cy=PA?hi(PA):hz;function gq(f){return dO(f)&&f>=-Z&&f<=Z}var gO=CA?hi(CA):pz;function cp(f){return typeof f=="string"||!ht(f)&&En(f)&&Cr(f)==gn}function gi(f){return typeof f=="symbol"||En(f)&&Cr(f)==Or}var lc=jA?hi(jA):gz;function vq(f){return f===n}function mq(f){return En(f)&&gr(f)==Tr}function yq(f){return En(f)&&Cr(f)==Fl}var bq=Qh(ry),wq=Qh(function(f,p){return f<=p});function vO(f){if(!f)return[];if(Kr(f))return cp(f)?ia(f):Gr(f);if(ef&&f[ef])return J$(f[ef]());var p=gr(f),x=p==$e?Vm:p==nn?Ph:fc;return x(f)}function ao(f){if(!f)return f===0?f:0;if(f=Bi(f),f===V||f===-V){var p=f<0?-1:1;return p*K}return f===f?f:0}function wt(f){var p=ao(f),x=p%1;return p===p?x?p-x:p:0}function mO(f){return f?Ws(wt(f),0,W):0}function Bi(f){if(typeof f=="number")return f;if(gi(f))return R;if(yn(f)){var p=typeof f.valueOf=="function"?f.valueOf():f;f=yn(p)?p+"":p}if(typeof f!="string")return f===0?f:+f;f=NA(f);var x=lt.test(f);return x||fn.test(f)?D$(f.slice(2),x?2:8):et.test(f)?R:+f}function yO(f){return Ea(f,Yr(f))}function xq(f){return f?Ws(wt(f),-Z,Z):f===0?f:0}function Ft(f){return f==null?"":pi(f)}var _q=sc(function(f,p){if(df(p)||Kr(p)){Ea(p,Kn(p),f);return}for(var x in p)Gt.call(p,x)&&of(f,x,p[x])}),bO=sc(function(f,p){Ea(p,Yr(p),f)}),lp=sc(function(f,p,x,T){Ea(p,Yr(p),f,T)}),Eq=sc(function(f,p,x,T){Ea(p,Kn(p),f,T)}),Sq=no(Xm);function Aq(f,p){var x=oc(f);return p==null?x:ZA(x,p)}var Oq=_t(function(f,p){f=Zt(f);var x=-1,T=p.length,k=T>2?p[2]:n;for(k&&jr(p[0],p[1],k)&&(T=1);++x<T;)for(var q=p[x],G=Yr(q),X=-1,te=G.length;++X<te;){var we=G[X],xe=f[we];(xe===n||oa(xe,rc[we])&&!Gt.call(f,we))&&(f[we]=q[we])}return f}),Tq=_t(function(f){return f.push(n,N3),di(wO,n,f)});function Pq(f,p){return kA(f,tt(p,3),_a)}function Cq(f,p){return kA(f,tt(p,3),Jm)}function jq(f,p){return f==null?f:Zm(f,tt(p,3),Yr)}function Mq(f,p){return f==null?f:n3(f,tt(p,3),Yr)}function kq(f,p){return f&&_a(f,tt(p,3))}function Rq(f,p){return f&&Jm(f,tt(p,3))}function Iq(f){return f==null?[]:Hh(f,Kn(f))}function Dq(f){return f==null?[]:Hh(f,Yr(f))}function jy(f,p,x){var T=f==null?n:qs(f,p);return T===n?x:T}function Nq(f,p){return f!=null&&B3(f,p,az)}function My(f,p){return f!=null&&B3(f,p,oz)}var Lq=M3(function(f,p,x){p!=null&&typeof p.toString!="function"&&(p=kh.call(p)),f[p]=x},Ry(Xr)),$q=M3(function(f,p,x){p!=null&&typeof p.toString!="function"&&(p=kh.call(p)),Gt.call(f,p)?f[p].push(x):f[p]=[x]},tt),Bq=_t(uf);function Kn(f){return Kr(f)?YA(f):ny(f)}function Yr(f){return Kr(f)?YA(f,!0):vz(f)}function zq(f,p){var x={};return p=tt(p,3),_a(f,function(T,k,q){eo(x,p(T,k,q),T)}),x}function Fq(f,p){var x={};return p=tt(p,3),_a(f,function(T,k,q){eo(x,k,p(T,k,q))}),x}var Wq=sc(function(f,p,x){Uh(f,p,x)}),wO=sc(function(f,p,x,T){Uh(f,p,x,T)}),qq=no(function(f,p){var x={};if(f==null)return x;var T=!1;p=dn(p,function(q){return q=ts(q,f),T||(T=q.length>1),q}),Ea(f,vy(f),x),T&&(x=Ni(x,d|h|g,Lz));for(var k=p.length;k--;)uy(x,p[k]);return x});function Vq(f,p){return xO(f,sp(tt(p)))}var Hq=no(function(f,p){return f==null?{}:yz(f,p)});function xO(f,p){if(f==null)return{};var x=dn(vy(f),function(T){return[T]});return p=tt(p),d3(f,x,function(T,k){return p(T,k[0])})}function Uq(f,p,x){p=ts(p,f);var T=-1,k=p.length;for(k||(k=1,f=n);++T<k;){var q=f==null?n:f[Sa(p[T])];q===n&&(T=k,q=x),f=io(q)?q.call(f):q}return f}function Gq(f,p,x){return f==null?f:lf(f,p,x)}function Kq(f,p,x,T){return T=typeof T=="function"?T:n,f==null?f:lf(f,p,x,T)}var _O=I3(Kn),EO=I3(Yr);function Yq(f,p,x){var T=ht(f),k=T||rs(f)||lc(f);if(p=tt(p,4),x==null){var q=f&&f.constructor;k?x=T?new q:[]:yn(f)?x=io(q)?oc(Dh(f)):{}:x={}}return(k?Ri:_a)(f,function(G,X,te){return p(x,G,X,te)}),x}function Xq(f,p){return f==null?!0:uy(f,p)}function Zq(f,p,x){return f==null?f:m3(f,p,fy(x))}function Jq(f,p,x,T){return T=typeof T=="function"?T:n,f==null?f:m3(f,p,fy(x),T)}function fc(f){return f==null?[]:qm(f,Kn(f))}function Qq(f){return f==null?[]:qm(f,Yr(f))}function eV(f,p,x){return x===n&&(x=p,p=n),x!==n&&(x=Bi(x),x=x===x?x:0),p!==n&&(p=Bi(p),p=p===p?p:0),Ws(Bi(f),p,x)}function tV(f,p,x){return p=ao(p),x===n?(x=p,p=0):x=ao(x),f=Bi(f),sz(f,p,x)}function nV(f,p,x){if(x&&typeof x!="boolean"&&jr(f,p,x)&&(p=x=n),x===n&&(typeof p=="boolean"?(x=p,p=n):typeof f=="boolean"&&(x=f,f=n)),f===n&&p===n?(f=0,p=1):(f=ao(f),p===n?(p=f,f=0):p=ao(p)),f>p){var T=f;f=p,p=T}if(x||f%1||p%1){var k=GA();return pr(f+k*(p-f+I$("1e-"+((k+"").length-1))),p)}return ay(f,p)}var rV=uc(function(f,p,x){return p=p.toLowerCase(),f+(x?SO(p):p)});function SO(f){return ky(Ft(f).toLowerCase())}function AO(f){return f=Ft(f),f&&f.replace(he,G$).replace(S$,"")}function iV(f,p,x){f=Ft(f),p=pi(p);var T=f.length;x=x===n?T:Ws(wt(x),0,T);var k=x;return x-=p.length,x>=0&&f.slice(x,k)==p}function aV(f){return f=Ft(f),f&&ct.test(f)?f.replace(Fe,K$):f}function oV(f){return f=Ft(f),f&&vn.test(f)?f.replace(Rn,"\\$&"):f}var sV=uc(function(f,p,x){return f+(x?"-":"")+p.toLowerCase()}),uV=uc(function(f,p,x){return f+(x?" ":"")+p.toLowerCase()}),cV=P3("toLowerCase");function lV(f,p,x){f=Ft(f),p=wt(p);var T=p?tc(f):0;if(!p||T>=p)return f;var k=(p-T)/2;return Jh(Bh(k),x)+f+Jh($h(k),x)}function fV(f,p,x){f=Ft(f),p=wt(p);var T=p?tc(f):0;return p&&T<p?f+Jh(p-T,x):f}function dV(f,p,x){f=Ft(f),p=wt(p);var T=p?tc(f):0;return p&&T<p?Jh(p-T,x)+f:f}function hV(f,p,x){return x||p==null?p=0:p&&(p=+p),wB(Ft(f).replace(Ke,""),p||0)}function pV(f,p,x){return(x?jr(f,p,x):p===n)?p=1:p=wt(p),oy(Ft(f),p)}function gV(){var f=arguments,p=Ft(f[0]);return f.length<3?p:p.replace(f[1],f[2])}var vV=uc(function(f,p,x){return f+(x?"_":"")+p.toLowerCase()});function mV(f,p,x){return x&&typeof x!="number"&&jr(f,p,x)&&(p=x=n),x=x===n?W:x>>>0,x?(f=Ft(f),f&&(typeof p=="string"||p!=null&&!Cy(p))&&(p=pi(p),!p&&ec(f))?ns(ia(f),0,x):f.split(p,x)):[]}var yV=uc(function(f,p,x){return f+(x?" ":"")+ky(p)});function bV(f,p,x){return f=Ft(f),x=x==null?0:Ws(wt(x),0,f.length),p=pi(p),f.slice(x,x+p.length)==p}function wV(f,p,x){var T=F.templateSettings;x&&jr(f,p,x)&&(p=n),f=Ft(f),p=lp({},p,T,D3);var k=lp({},p.imports,T.imports,D3),q=Kn(k),G=qm(k,q),X,te,we=0,xe=p.interpolate||fe,Ee="__p += '",je=Hm((p.escape||fe).source+"|"+xe.source+"|"+(xe===bt?gt:fe).source+"|"+(p.evaluate||fe).source+"|$","g"),We="//# sourceURL="+(Gt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++C$+"]")+`
113
113
  `;f.replace(je,function(rt,Ct,kt,vi,Mr,mi){return kt||(kt=vi),Ee+=f.slice(we,mi).replace(le,Y$),Ct&&(X=!0,Ee+=`' +
114
114
  __e(`+Ct+`) +
115
115
  '`),Mr&&(te=!0,Ee+=`';
@@ -126,7 +126,7 @@ __p += '`),kt&&(Ee+=`' +
126
126
  function print() { __p += __j.call(arguments, '') }
127
127
  `:`;
128
128
  `)+Ee+`return __p
129
- }`;var xt=TO(function(){return Lt(q,We+"return "+Ee).apply(n,G)});if(xt.source=Ee,Py(xt))throw xt;return xt}function xV(f){return Ft(f).toLowerCase()}function _V(f){return Ft(f).toUpperCase()}function EV(f,p,x){if(f=Ft(f),f&&(x||p===n))return NA(f);if(!f||!(p=pi(p)))return f;var T=ia(f),M=ia(p),q=LA(T,M),G=$A(T,M)+1;return ns(T,q,G).join("")}function SV(f,p,x){if(f=Ft(f),f&&(x||p===n))return f.slice(0,zA(f)+1);if(!f||!(p=pi(p)))return f;var T=ia(f),M=$A(T,ia(p))+1;return ns(T,0,M).join("")}function AV(f,p,x){if(f=Ft(f),f&&(x||p===n))return f.replace(Ke,"");if(!f||!(p=pi(p)))return f;var T=ia(f),M=LA(T,ia(p));return ns(T,M).join("")}function OV(f,p){var x=z,T=I;if(yn(p)){var M="separator"in p?p.separator:M;x="length"in p?wt(p.length):x,T="omission"in p?pi(p.omission):T}f=Ft(f);var q=f.length;if(ec(f)){var G=ia(f);q=G.length}if(x>=q)return f;var X=x-tc(T);if(X<1)return T;var te=G?ns(G,0,X).join(""):f.slice(0,X);if(M===n)return te+T;if(G&&(X+=te.length-X),Cy(M)){if(f.slice(X).search(M)){var we,xe=te;for(M.global||(M=Hm(M.source,Ft(ot.exec(M))+"g")),M.lastIndex=0;we=M.exec(xe);)var Ee=we.index;te=te.slice(0,Ee===n?X:Ee)}}else if(f.indexOf(pi(M),X)!=X){var je=te.lastIndexOf(M);je>-1&&(te=te.slice(0,je))}return te+T}function TV(f){return f=Ft(f),f&&Ge.test(f)?f.replace(Ve,nB):f}var PV=uc(function(f,p,x){return f+(x?" ":"")+p.toUpperCase()}),ky=P3("toUpperCase");function OO(f,p,x){return f=Ft(f),p=x?n:p,p===n?Z$(f)?aB(f):W$(f):f.match(p)||[]}var TO=_t(function(f,p){try{return di(f,n,p)}catch(x){return Py(x)?x:new dt(x)}}),CV=no(function(f,p){return Ri(p,function(x){x=Sa(x),eo(f,x,Oy(f[x],f))}),f});function jV(f){var p=f==null?0:f.length,x=tt();return f=p?dn(f,function(T){if(typeof T[1]!="function")throw new Ii(o);return[x(T[0]),T[1]]}):[],_t(function(T){for(var M=-1;++M<p;){var q=f[M];if(di(q[0],this,T))return di(q[1],this,T)}})}function MV(f){return nz(Ni(f,d))}function Ry(f){return function(){return f}}function kV(f,p){return f==null||f!==f?p:f}var RV=j3(),IV=j3(!0);function Xr(f){return f}function Iy(f){return o3(typeof f=="function"?f:Ni(f,d))}function DV(f){return u3(Ni(f,d))}function NV(f,p){return c3(f,Ni(p,d))}var LV=_t(function(f,p){return function(x){return uf(x,f,p)}}),$V=_t(function(f,p){return function(x){return uf(f,x,p)}});function Dy(f,p,x){var T=Kn(p),M=Hh(p,T);x==null&&!(yn(p)&&(M.length||!T.length))&&(x=p,p=f,f=this,M=Hh(p,Kn(p)));var q=!(yn(x)&&"chain"in x)||!!x.chain,G=io(f);return Ri(M,function(X){var te=p[X];f[X]=te,G&&(f.prototype[X]=function(){var we=this.__chain__;if(q||we){var xe=f(this.__wrapped__),Ee=xe.__actions__=Gr(this.__actions__);return Ee.push({func:te,args:arguments,thisArg:f}),xe.__chain__=we,xe}return te.apply(f,Xo([this.value()],arguments))})}),f}function BV(){return ir._===this&&(ir._=fB),this}function Ny(){}function zV(f){return f=wt(f),_t(function(p){return l3(p,f)})}var FV=hy(dn),WV=hy(MA),qV=hy($m);function PO(f){return wy(f)?Bm(Sa(f)):bz(f)}function VV(f){return function(p){return f==null?n:qs(f,p)}}var HV=k3(),UV=k3(!0);function Ly(){return[]}function $y(){return!1}function GV(){return{}}function KV(){return""}function YV(){return!0}function XV(f,p){if(f=wt(f),f<1||f>Z)return[];var x=W,T=pr(f,W);p=tt(p),f-=W;for(var M=Wm(T,p);++x<f;)p(x);return M}function ZV(f){return ht(f)?dn(f,Sa):gi(f)?[f]:Gr(K3(Ft(f)))}function JV(f){var p=++cB;return Ft(f)+p}var QV=Zh(function(f,p){return f+p},0),eH=py("ceil"),tH=Zh(function(f,p){return f/p},1),nH=py("floor");function rH(f){return f&&f.length?Vh(f,Xr,Qm):n}function iH(f,p){return f&&f.length?Vh(f,tt(p,2),Qm):n}function aH(f){return IA(f,Xr)}function oH(f,p){return IA(f,tt(p,2))}function sH(f){return f&&f.length?Vh(f,Xr,ry):n}function uH(f,p){return f&&f.length?Vh(f,tt(p,2),ry):n}var cH=Zh(function(f,p){return f*p},1),lH=py("round"),fH=Zh(function(f,p){return f-p},0);function dH(f){return f&&f.length?Fm(f,Xr):0}function hH(f,p){return f&&f.length?Fm(f,tt(p,2)):0}return F.after=DW,F.ary=aO,F.assign=_q,F.assignIn=bO,F.assignInWith=lp,F.assignWith=Eq,F.at=Sq,F.before=oO,F.bind=Oy,F.bindAll=CV,F.bindKey=sO,F.castArray=GW,F.chain=nO,F.chunk=nF,F.compact=rF,F.concat=iF,F.cond=jV,F.conforms=MV,F.constant=Ry,F.countBy=dW,F.create=Aq,F.curry=uO,F.curryRight=cO,F.debounce=lO,F.defaults=Oq,F.defaultsDeep=Tq,F.defer=NW,F.delay=LW,F.difference=aF,F.differenceBy=oF,F.differenceWith=sF,F.drop=uF,F.dropRight=cF,F.dropRightWhile=lF,F.dropWhile=fF,F.fill=dF,F.filter=pW,F.flatMap=mW,F.flatMapDeep=yW,F.flatMapDepth=bW,F.flatten=J3,F.flattenDeep=hF,F.flattenDepth=pF,F.flip=$W,F.flow=RV,F.flowRight=IV,F.fromPairs=gF,F.functions=Iq,F.functionsIn=Dq,F.groupBy=wW,F.initial=mF,F.intersection=yF,F.intersectionBy=bF,F.intersectionWith=wF,F.invert=Lq,F.invertBy=$q,F.invokeMap=_W,F.iteratee=Iy,F.keyBy=EW,F.keys=Kn,F.keysIn=Yr,F.map=ip,F.mapKeys=zq,F.mapValues=Fq,F.matches=DV,F.matchesProperty=NV,F.memoize=op,F.merge=Wq,F.mergeWith=wO,F.method=LV,F.methodOf=$V,F.mixin=Dy,F.negate=sp,F.nthArg=zV,F.omit=qq,F.omitBy=Vq,F.once=BW,F.orderBy=SW,F.over=FV,F.overArgs=zW,F.overEvery=WV,F.overSome=qV,F.partial=Ty,F.partialRight=fO,F.partition=AW,F.pick=Hq,F.pickBy=xO,F.property=PO,F.propertyOf=VV,F.pull=SF,F.pullAll=eO,F.pullAllBy=AF,F.pullAllWith=OF,F.pullAt=TF,F.range=HV,F.rangeRight=UV,F.rearg=FW,F.reject=PW,F.remove=PF,F.rest=WW,F.reverse=Sy,F.sampleSize=jW,F.set=Gq,F.setWith=Kq,F.shuffle=MW,F.slice=CF,F.sortBy=IW,F.sortedUniq=NF,F.sortedUniqBy=LF,F.split=mV,F.spread=qW,F.tail=$F,F.take=BF,F.takeRight=zF,F.takeRightWhile=FF,F.takeWhile=WF,F.tap=rW,F.throttle=VW,F.thru=rp,F.toArray=vO,F.toPairs=_O,F.toPairsIn=EO,F.toPath=ZV,F.toPlainObject=yO,F.transform=Yq,F.unary=HW,F.union=qF,F.unionBy=VF,F.unionWith=HF,F.uniq=UF,F.uniqBy=GF,F.uniqWith=KF,F.unset=Xq,F.unzip=Ay,F.unzipWith=tO,F.update=Zq,F.updateWith=Jq,F.values=fc,F.valuesIn=Qq,F.without=YF,F.words=OO,F.wrap=UW,F.xor=XF,F.xorBy=ZF,F.xorWith=JF,F.zip=QF,F.zipObject=eW,F.zipObjectDeep=tW,F.zipWith=nW,F.entries=_O,F.entriesIn=EO,F.extend=bO,F.extendWith=lp,Dy(F,F),F.add=QV,F.attempt=TO,F.camelCase=rV,F.capitalize=SO,F.ceil=eH,F.clamp=eV,F.clone=KW,F.cloneDeep=XW,F.cloneDeepWith=ZW,F.cloneWith=YW,F.conformsTo=JW,F.deburr=AO,F.defaultTo=kV,F.divide=tH,F.endsWith=iV,F.eq=oa,F.escape=aV,F.escapeRegExp=oV,F.every=hW,F.find=gW,F.findIndex=X3,F.findKey=Pq,F.findLast=vW,F.findLastIndex=Z3,F.findLastKey=Cq,F.floor=nH,F.forEach=rO,F.forEachRight=iO,F.forIn=jq,F.forInRight=Mq,F.forOwn=kq,F.forOwnRight=Rq,F.get=jy,F.gt=QW,F.gte=eq,F.has=Nq,F.hasIn=My,F.head=Q3,F.identity=Xr,F.includes=xW,F.indexOf=vF,F.inRange=tV,F.invoke=Bq,F.isArguments=Us,F.isArray=ht,F.isArrayBuffer=tq,F.isArrayLike=Kr,F.isArrayLikeObject=Pn,F.isBoolean=nq,F.isBuffer=rs,F.isDate=rq,F.isElement=iq,F.isEmpty=aq,F.isEqual=oq,F.isEqualWith=sq,F.isError=Py,F.isFinite=uq,F.isFunction=io,F.isInteger=dO,F.isLength=up,F.isMap=hO,F.isMatch=cq,F.isMatchWith=lq,F.isNaN=fq,F.isNative=dq,F.isNil=pq,F.isNull=hq,F.isNumber=pO,F.isObject=yn,F.isObjectLike=En,F.isPlainObject=pf,F.isRegExp=Cy,F.isSafeInteger=gq,F.isSet=gO,F.isString=cp,F.isSymbol=gi,F.isTypedArray=lc,F.isUndefined=vq,F.isWeakMap=mq,F.isWeakSet=yq,F.join=xF,F.kebabCase=sV,F.last=$i,F.lastIndexOf=_F,F.lowerCase=uV,F.lowerFirst=cV,F.lt=bq,F.lte=wq,F.max=rH,F.maxBy=iH,F.mean=aH,F.meanBy=oH,F.min=sH,F.minBy=uH,F.stubArray=Ly,F.stubFalse=$y,F.stubObject=GV,F.stubString=KV,F.stubTrue=YV,F.multiply=cH,F.nth=EF,F.noConflict=BV,F.noop=Ny,F.now=ap,F.pad=lV,F.padEnd=fV,F.padStart=dV,F.parseInt=hV,F.random=nV,F.reduce=OW,F.reduceRight=TW,F.repeat=pV,F.replace=gV,F.result=Uq,F.round=lH,F.runInContext=J,F.sample=CW,F.size=kW,F.snakeCase=vV,F.some=RW,F.sortedIndex=jF,F.sortedIndexBy=MF,F.sortedIndexOf=kF,F.sortedLastIndex=RF,F.sortedLastIndexBy=IF,F.sortedLastIndexOf=DF,F.startCase=yV,F.startsWith=bV,F.subtract=fH,F.sum=dH,F.sumBy=hH,F.template=wV,F.times=XV,F.toFinite=ao,F.toInteger=wt,F.toLength=mO,F.toLower=xV,F.toNumber=Bi,F.toSafeInteger=xq,F.toString=Ft,F.toUpper=_V,F.trim=EV,F.trimEnd=SV,F.trimStart=AV,F.truncate=OV,F.unescape=TV,F.uniqueId=JV,F.upperCase=PV,F.upperFirst=ky,F.each=rO,F.eachRight=iO,F.first=Q3,Dy(F,function(){var f={};return _a(F,function(p,x){Gt.call(F.prototype,x)||(f[x]=p)}),f}(),{chain:!1}),F.VERSION=r,Ri(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){F[f].placeholder=F}),Ri(["drop","take"],function(f,p){jt.prototype[f]=function(x){x=x===n?1:zn(wt(x),0);var T=this.__filtered__&&!p?new jt(this):this.clone();return T.__filtered__?T.__takeCount__=pr(x,T.__takeCount__):T.__views__.push({size:pr(x,W),type:f+(T.__dir__<0?"Right":"")}),T},jt.prototype[f+"Right"]=function(x){return this.reverse()[f](x).reverse()}}),Ri(["filter","map","takeWhile"],function(f,p){var x=p+1,T=x==C||x==N;jt.prototype[f]=function(M){var q=this.clone();return q.__iteratees__.push({iteratee:tt(M,3),type:x}),q.__filtered__=q.__filtered__||T,q}}),Ri(["head","last"],function(f,p){var x="take"+(p?"Right":"");jt.prototype[f]=function(){return this[x](1).value()[0]}}),Ri(["initial","tail"],function(f,p){var x="drop"+(p?"":"Right");jt.prototype[f]=function(){return this.__filtered__?new jt(this):this[x](1)}}),jt.prototype.compact=function(){return this.filter(Xr)},jt.prototype.find=function(f){return this.filter(f).head()},jt.prototype.findLast=function(f){return this.reverse().find(f)},jt.prototype.invokeMap=_t(function(f,p){return typeof f=="function"?new jt(this):this.map(function(x){return uf(x,f,p)})}),jt.prototype.reject=function(f){return this.filter(sp(tt(f)))},jt.prototype.slice=function(f,p){f=wt(f);var x=this;return x.__filtered__&&(f>0||p<0)?new jt(x):(f<0?x=x.takeRight(-f):f&&(x=x.drop(f)),p!==n&&(p=wt(p),x=p<0?x.dropRight(-p):x.take(p-f)),x)},jt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},jt.prototype.toArray=function(){return this.take(W)},_a(jt.prototype,function(f,p){var x=/^(?:filter|find|map|reject)|While$/.test(p),T=/^(?:head|last)$/.test(p),M=F[T?"take"+(p=="last"?"Right":""):p],q=T||/^find/.test(p);M&&(F.prototype[p]=function(){var G=this.__wrapped__,X=T?[1]:arguments,te=G instanceof jt,we=X[0],xe=te||ht(G),Ee=function(Ct){var kt=M.apply(F,Xo([Ct],X));return T&&je?kt[0]:kt};xe&&x&&typeof we=="function"&&we.length!=1&&(te=xe=!1);var je=this.__chain__,We=!!this.__actions__.length,nt=q&&!je,xt=te&&!We;if(!q&&xe){G=xt?G:new jt(this);var rt=f.apply(G,X);return rt.__actions__.push({func:rp,args:[Ee],thisArg:n}),new Di(rt,je)}return nt&&xt?f.apply(this,X):(rt=this.thru(Ee),nt?T?rt.value()[0]:rt.value():rt)})}),Ri(["pop","push","shift","sort","splice","unshift"],function(f){var p=Ch[f],x=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",T=/^(?:pop|shift)$/.test(f);F.prototype[f]=function(){var M=arguments;if(T&&!this.__chain__){var q=this.value();return p.apply(ht(q)?q:[],M)}return this[x](function(G){return p.apply(ht(G)?G:[],M)})}}),_a(jt.prototype,function(f,p){var x=F[p];if(x){var T=x.name+"";Gt.call(ac,T)||(ac[T]=[]),ac[T].push({name:p,func:x})}}),ac[Xh(n,b).name]=[{name:"wrapper",func:n}],jt.prototype.clone=TB,jt.prototype.reverse=PB,jt.prototype.value=CB,F.prototype.at=iW,F.prototype.chain=aW,F.prototype.commit=oW,F.prototype.next=sW,F.prototype.plant=cW,F.prototype.reverse=lW,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=fW,F.prototype.first=F.prototype.head,ef&&(F.prototype[ef]=uW),F},nc=oB();$s?(($s.exports=nc)._=nc,Im._=nc):ir._=nc}).call(vwe)}(Zf,Zf.exports)),Zf.exports}var j6;function yl(){return j6||(j6=1,function(e){var t=ua&&ua.__createBinding||(Object.create?function(R,W,U,Y){Y===void 0&&(Y=U);var ae=Object.getOwnPropertyDescriptor(W,U);(!ae||("get"in ae?!W.__esModule:ae.writable||ae.configurable))&&(ae={enumerable:!0,get:function(){return W[U]}}),Object.defineProperty(R,Y,ae)}:function(R,W,U,Y){Y===void 0&&(Y=U),R[Y]=W[U]}),n=ua&&ua.__setModuleDefault||(Object.create?function(R,W){Object.defineProperty(R,"default",{enumerable:!0,value:W})}:function(R,W){R.default=W}),r=ua&&ua.__importStar||function(R){if(R&&R.__esModule)return R;var W={};if(R!=null)for(var U in R)U!=="default"&&Object.prototype.hasOwnProperty.call(R,U)&&t(W,R,U);return n(W,R),W},i=ua&&ua.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateArcs=e.clearOuterArcs=e.clearArcs=e.redrawArcs=e.getCoordByValue=e.createGradientElement=e.getColors=e.applyGradientColors=e.getArcDataByPercentage=e.getArcDataByValue=e.applyColors=e.setupTooltip=e.setupArcs=e.drawArc=e.setArcData=e.hideTooltip=void 0;var a=r(Tm()),o=Om,s=r(yl()),u=i(YN()),c=gwe(),l=zl(),d=mwe(),h=function(R,W,U){if(W.data.tooltip!=null){var Y=W.data.tooltip.text!=U.tooltip.current.text();Y&&(U.tooltip.current.html(W.data.tooltip.text).style("position","absolute").style("display","block").style("opacity",1),g(W.data.tooltip,W.data.color,U)),U.tooltip.current.style("left",R.pageX+15+"px").style("top",R.pageY-10+"px")}W.data.onMouseMove!=null&&W.data.onMouseMove(R)},g=function(R,W,U){Object.entries(c.defaultTooltipStyle).forEach(function(Y){var ae=Y[0],re=Y[1];return U.tooltip.current.style(a.camelCaseToKebabCase(ae),re)}),U.tooltip.current.style("background-color",W),R.style!=null&&Object.entries(R.style).forEach(function(Y){var ae=Y[0],re=Y[1];return U.tooltip.current.style(a.camelCaseToKebabCase(ae),re)})},m=function(R,W,U,Y){Y.cancel(),(0,e.hideTooltip)(U),W.data.onMouseLeave!=null&&W.data.onMouseLeave(R)},y=function(R){R.tooltip.current.html(" ").style("display","none")};e.hideTooltip=y;var v=function(R,W,U){R.target.style.stroke="none"},b=function(R,W){W.data.onMouseClick!=null&&W.data.onMouseClick(R)},_=function(R){var W,U,Y=R.props.arc,ae=R.props.minValue,re=R.props.maxValue,ge=Y?.nbSubArcs||((W=Y?.subArcs)===null||W===void 0?void 0:W.length)||1,ye=(0,e.getColors)(ge,R);if(Y?.subArcs&&!Y?.nbSubArcs){var _e=0,ce=0,pe=[],Oe=[],oe=[];(U=Y?.subArcs)===null||U===void 0||U.forEach(function(Qe,Ze){var Se,at=0,pn=0,St=Qe.limit;if(Qe.length!=null)at=Qe.length,St=a.getCurrentGaugeValueByPercentage(at+ce,R);else if(Qe.limit==null){pn=_e;var nn=void 0,gn=(Se=Y?.subArcs)===null||Se===void 0?void 0:Se.slice(Ze),Or=(1-a.calculatePercentage(ae,re,_e))*100;nn||(nn=Or/Math.max(gn?.length||1,1)/100),St=_e+nn*100,at=nn}else pn=St-_e,Ze!==0?at=a.calculatePercentage(ae,re,St)-ce:at=a.calculatePercentage(ae,re,pn);pe.push(at),Oe.push(St),ce=pe.reduce(function(hr,Tr){return hr+Tr},0),_e=St,Qe.tooltip!=null&&oe.push(Qe.tooltip)});var Re=Y.subArcs;R.arcData.current=pe.map(function(Qe,Ze){return{value:Qe,limit:Oe[Ze],color:ye[Ze],showTick:Re[Ze].showTick||!1,tooltip:Re[Ze].tooltip||void 0,onMouseMove:Re[Ze].onMouseMove,onMouseLeave:Re[Ze].onMouseLeave,onMouseClick:Re[Ze].onClick}})}else{var $e=re/ge;R.arcData.current=Array.from({length:ge},function(Qe,Ze){return{value:$e,limit:(Ze+1)*$e,color:ye[Ze],tooltip:void 0}})}};e.setArcData=_;var E=function(R,W){var U;W===void 0&&(W=void 0);var Y=W??a.calculatePercentage(R.props.minValue,R.props.maxValue,R.props.value),ae=(0,e.getArcDataByPercentage)(Y,R),re={value:Y,color:ae?.color||"white"},ge={value:1-Y,color:(U=R.props.arc)===null||U===void 0?void 0:U.emptyColor};return[re,ge]},S=function(R,W){W===void 0&&(W=!1);var U=R.dimensions.current.outerRadius;if(R.props.type==l.GaugeType.Grafana&&W){R.doughnut.current.selectAll(".outerSubArc").remove();var Y=(0,o.arc)().outerRadius(U+7).innerRadius(U+2).cornerRadius(0).padAngle(0),ae=R.doughnut.current.selectAll("anyString").data(R.pieChart.current(R.arcData.current)).enter().append("g").attr("class","outerSubArc"),re=ae.append("path").attr("d",Y);(0,e.applyColors)(re,R);var ge=(0,d.throttle)(function(ye,_e){return h(ye,_e,R)},20);ae.on("mouseleave",function(ye,_e){return m(ye,_e,R,ge)}).on("mouseout",function(ye,_e){return v(ye)}).on("mousemove",ge).on("click",function(ye,_e){return b(ye,_e)})}},A=function(R,W){var U,Y;W===void 0&&(W=void 0);var ae=R.props.arc,re=ae.padding,ge=ae.cornerRadius,ye=R.dimensions.current,_e=ye.innerRadius,ce=ye.outerRadius,pe={};!((Y=(U=R.props)===null||U===void 0?void 0:U.arc)===null||Y===void 0)&&Y.gradient?pe=[{value:1}]:pe=R.arcData.current,R.props.type==l.GaugeType.Grafana&&(pe=E(R,W));var Oe=R.props.type==l.GaugeType.Grafana?0:re,oe=R.props.type==l.GaugeType.Grafana?0:ge,Re=(0,o.arc)().outerRadius(ce).innerRadius(_e).cornerRadius(oe).padAngle(Oe),$e=R.doughnut.current.selectAll("anyString").data(R.pieChart.current(pe)).enter().append("g").attr("class","subArc"),Qe=$e.append("path").attr("d",Re);(0,e.applyColors)(Qe,R);var Ze=(0,d.throttle)(function(Se,at){return h(Se,at,R)},20);$e.on("mouseleave",function(Se,at){return m(Se,at,R,Ze)}).on("mouseout",function(Se,at){return v(Se)}).on("mousemove",Ze).on("click",function(Se,at){return b(Se,at)})};e.drawArc=A;var O=function(R,W){W===void 0&&(W=!1),(0,e.setupTooltip)(R),S(R,W),(0,e.drawArc)(R)};e.setupArcs=O;var P=function(R){var W=document.getElementsByClassName(u.default.arcTooltipClassname).length!=0;W||(0,o.select)("body").append("div").attr("class",u.default.arcTooltipClassname),R.tooltip.current=(0,o.select)(".".concat(u.default.arcTooltipClassname)),R.tooltip.current.on("mouseleave",function(){return s.hideTooltip(R)}).on("mouseout",function(){return s.hideTooltip(R)})};e.setupTooltip=P;var j=function(R,W){var U,Y;if(!((Y=(U=W.props)===null||U===void 0?void 0:U.arc)===null||Y===void 0)&&Y.gradient){var ae="subArc-linear-gradient-".concat(Math.random()),re=(0,e.createGradientElement)(W.doughnut.current,ae);(0,e.applyGradientColors)(re,W),R.style("fill",function(ge){return"url(#".concat(ae,")")})}else R.style("fill",function(ge){return ge.data.color})};e.applyColors=j;var $=function(R,W){return W.arcData.current.find(function(U){return R<=U.limit})};e.getArcDataByValue=$;var z=function(R,W){return(0,e.getArcDataByValue)(a.getCurrentGaugeValueByPercentage(R,W),W)};e.getArcDataByPercentage=z;var I=function(R,W){W.arcData.current.forEach(function(U){var Y,ae,re,ge,ye=a.normalize(U?.limit,(ae=(Y=W?.props)===null||Y===void 0?void 0:Y.minValue)!==null&&ae!==void 0?ae:0,(ge=(re=W?.props)===null||re===void 0?void 0:re.maxValue)!==null&&ge!==void 0?ge:100);R.append("stop").attr("offset","".concat(ye,"%")).style("stop-color",U.color).style("stop-opacity",1)})};e.applyGradientColors=I;var H=function(R,W){var U,Y=W.props.arc,ae=[];if(Y.colorArray)ae=Y.colorArray;else{var re=(U=Y.subArcs)===null||U===void 0?void 0:U.map(function(pe){return pe.color});ae=re?.some(function(pe){return pe!=null})?re:u.default.defaultColors}ae||(ae=["#fff"]);var ge=R===ae?.length;if(ge)return ae;for(var ye=(0,o.scaleLinear)().domain([1,R]).range([ae[0],ae[ae.length-1]]).interpolate(o.interpolateHsl),_e=[],ce=1;ce<=R;ce++)_e.push(ye(ce));return _e};e.getColors=H;var D=function(R,W){var U=R.append("defs").append("linearGradient").attr("id",W).attr("x1","0%").attr("x2","100%").attr("y1","0%").attr("y2","0%");return U};e.createGradientElement=D;var C=function(R,W,U,Y,ae){var re;U===void 0&&(U="inner"),Y===void 0&&(Y=0),ae===void 0&&(ae=1);var ge={outer:function(){return W.dimensions.current.outerRadius-Y+2},inner:function(){return W.dimensions.current.innerRadius*ae-Y+9},between:function(){var St=W.dimensions.current.outerRadius-W.dimensions.current.innerRadius,nn=W.dimensions.current.innerRadius+St-5;return nn}},ye=ge[U]();W.props.type===l.GaugeType.Grafana?ye+=5:W.props.type===l.GaugeType.Semicircle&&(ye+=-2);var _e=a.calculatePercentage(W.props.minValue,W.props.maxValue,R),ce=(re={},re[l.GaugeType.Grafana]={startAngle:a.degToRad(-23),endAngle:a.degToRad(203)},re[l.GaugeType.Semicircle]={startAngle:a.degToRad(.9),endAngle:a.degToRad(179.1)},re[l.GaugeType.Radial]={startAngle:a.degToRad(-39),endAngle:a.degToRad(219)},re),pe=ce[W.props.type],Oe=pe.startAngle,oe=pe.endAngle,Re=Oe+_e*(oe-Oe),$e=1*(W.dimensions.current.width/500),Qe=[0,-$e/2],Ze=[Qe[0]-ye*Math.cos(Re),Qe[1]-ye*Math.sin(Re)],Se=[W.dimensions.current.outerRadius,W.dimensions.current.outerRadius],at=Se[0]+Ze[0],pn=Se[1]+Ze[1];return{x:at,y:pn}};e.getCoordByValue=C;var L=function(R){(0,e.clearArcs)(R),(0,e.setArcData)(R),(0,e.setupArcs)(R)};e.redrawArcs=L;var N=function(R){R.doughnut.current.selectAll(".subArc").remove()};e.clearArcs=N;var V=function(R){R.doughnut.current.selectAll(".outerSubArc").remove()};e.clearOuterArcs=V;var Z=function(R){K(R)};e.validateArcs=Z;var K=function(R){for(var W,U=R.props.minValue,Y=R.props.maxValue,ae=R.props.arc,re=ae.subArcs,ge=void 0,ye=0,_e=((W=R.props.arc)===null||W===void 0?void 0:W.subArcs)||[];ye<_e.length;ye++){var ce=_e[ye],pe=ce.limit;if(typeof pe<"u"){if(pe<U||pe>Y)throw new Error("The limit of a subArc must be between the minValue and maxValue. The limit of the subArc is ".concat(pe));if(typeof ge<"u"&&pe<=ge)throw new Error("The limit of a subArc must be greater than the limit of the previous subArc. The limit of the subArc is ".concat(pe,`. If you're trying to specify length in percent of the arc, use property "length". refer to: https://github.com/antoniolago/react-gauge-component`));ge=pe}}if(re.length>0){var Oe=re[re.length-1];Oe.limit<Y&&(Oe.limit=Y)}}}(ua)),ua}var yi={},M6;function ywe(){return M6||(M6=1,function(e){var t=yi&&yi.__assign||function(){return t=Object.assign||function(D){for(var C,L=1,N=arguments.length;L<N;L++){C=arguments[L];for(var V in C)Object.prototype.hasOwnProperty.call(C,V)&&(D[V]=C[V])}return D},t.apply(this,arguments)},n=yi&&yi.__createBinding||(Object.create?function(D,C,L,N){N===void 0&&(N=L);var V=Object.getOwnPropertyDescriptor(C,L);(!V||("get"in V?!C.__esModule:V.writable||V.configurable))&&(V={enumerable:!0,get:function(){return C[L]}}),Object.defineProperty(D,N,V)}:function(D,C,L,N){N===void 0&&(N=L),D[N]=C[L]}),r=yi&&yi.__setModuleDefault||(Object.create?function(D,C){Object.defineProperty(D,"default",{enumerable:!0,value:C})}:function(D,C){D.default=C}),i=yi&&yi.__importStar||function(D){if(D&&D.__esModule)return D;var C={};if(D!=null)for(var L in D)L!=="default"&&Object.prototype.hasOwnProperty.call(D,L)&&n(C,D,L);return r(C,D),C},a=yi&&yi.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(e,"__esModule",{value:!0}),e.calculateAnchorAndAngleByValue=e.clearTicks=e.clearValueLabel=e.addValueText=e.addText=e.getLabelCoordsByValue=e.addTick=e.addTickValue=e.addTickLine=e.mapTick=e.addArcTicks=e.setupTicks=e.setupValueLabel=e.setupLabels=void 0;var o=i(Tm()),s=a(YN()),u=KN(),c=i(Om),l=zl(),d=yl(),h=function(D){(0,e.setupValueLabel)(D),(0,e.setupTicks)(D)};e.setupLabels=h;var g=function(D){var C,L=D.props.labels;!((C=L?.valueLabel)===null||C===void 0)&&C.hide||(0,e.addValueText)(D)};e.setupValueLabel=g;var m=function(D){var C,L,N,V,Z,K,R,W,U,Y=D.props.labels,ae=D.props.minValue,re=D.props.maxValue;if(s.default.debugTicksRadius)for(var ge=0;ge<re;ge++){var ye=(0,e.mapTick)(ge,D);(0,e.addTick)(ye,D)}else if(!(!((C=Y.tickLabels)===null||C===void 0)&&C.hideMinMax)){var _e=(N=(L=Y.tickLabels)===null||L===void 0?void 0:L.ticks)===null||N===void 0?void 0:N.some(function(oe){return oe.value==ae});if(!_e){var ce=(0,e.mapTick)(ae,D);(0,e.addTick)(ce,D)}var pe=(Z=(V=Y.tickLabels)===null||V===void 0?void 0:V.ticks)===null||Z===void 0?void 0:Z.some(function(oe){return oe.value==re});if(!pe){var Oe=(0,e.mapTick)(re,D);(0,e.addTick)(Oe,D)}}((R=(K=Y.tickLabels)===null||K===void 0?void 0:K.ticks)===null||R===void 0?void 0:R.length)>0&&((U=(W=Y.tickLabels)===null||W===void 0?void 0:W.ticks)===null||U===void 0||U.forEach(function(oe){(0,e.addTick)(oe,D)})),(0,e.addArcTicks)(D)};e.setupTicks=m;var y=function(D){var C;(C=D.arcData.current)===null||C===void 0||C.map(function(L){if(L.showTick)return L.limit}).forEach(function(L){L&&(0,e.addTick)((0,e.mapTick)(L,D),D)})};e.addArcTicks=y;var v=function(D,C){var L=C.props.labels.tickLabels;return{value:D,valueConfig:L?.defaultTickValueConfig,lineConfig:L?.defaultTickLineConfig}};e.mapTick=v;var b=function(D,C){var L,N,V,Z,K,R,W,U,Y,ae,re,ge,ye,_e,ce,pe,Oe,oe,Re=C.props.labels,$e=(0,e.calculateAnchorAndAngleByValue)(D?.value,C);$e.tickAnchor;var Qe=$e.angle,Ze=((L=D.lineConfig)===null||L===void 0?void 0:L.distanceFromArc)||((V=(N=Re?.tickLabels)===null||N===void 0?void 0:N.defaultTickLineConfig)===null||V===void 0?void 0:V.distanceFromArc)||0;((K=(Z=C.props.labels)===null||Z===void 0?void 0:Z.tickLabels)===null||K===void 0?void 0:K.type)=="outer"&&(Ze=-Ze);var Se=(0,e.getLabelCoordsByValue)(D?.value,C,Ze),at=((R=D.lineConfig)===null||R===void 0?void 0:R.color)||((U=(W=Re?.tickLabels)===null||W===void 0?void 0:W.defaultTickLineConfig)===null||U===void 0?void 0:U.color)||((Y=u.defaultTickLabels.defaultTickLineConfig)===null||Y===void 0?void 0:Y.color),pn=((ae=D.lineConfig)===null||ae===void 0?void 0:ae.width)||((ge=(re=Re?.tickLabels)===null||re===void 0?void 0:re.defaultTickLineConfig)===null||ge===void 0?void 0:ge.width)||((ye=u.defaultTickLabels.defaultTickLineConfig)===null||ye===void 0?void 0:ye.width),St=((_e=D.lineConfig)===null||_e===void 0?void 0:_e.length)||((pe=(ce=Re?.tickLabels)===null||ce===void 0?void 0:ce.defaultTickLineConfig)===null||pe===void 0?void 0:pe.length)||((Oe=u.defaultTickLabels.defaultTickLineConfig)===null||Oe===void 0?void 0:Oe.length),nn,gn;((oe=Re?.tickLabels)===null||oe===void 0?void 0:oe.type)=="inner"?(nn=Se.x+St*Math.cos(Qe*Math.PI/180),gn=Se.y+St*Math.sin(Qe*Math.PI/180)):(nn=Se.x-St*Math.cos(Qe*Math.PI/180),gn=Se.y-St*Math.sin(Qe*Math.PI/180));var Or=c.line(),hr;hr=[[Se.x,Se.y],[nn,gn]],C.g.current.append("path").datum(hr).attr("class",s.default.tickLineClassname).attr("d",Or).attr("stroke",at).attr("stroke-width",pn).attr("fill","none")};e.addTickLine=b;var _=function(D,C){var L,N,V,Z,K,R,W,U,Y,ae,re,ge,ye,_e,ce,pe,Oe,oe=C.props.labels,Re=C.props.arc,$e=Re.width,Qe=D?.value,Ze=(0,e.calculateAnchorAndAngleByValue)(Qe,C).tickAnchor,Se=27-$e*10,at=((L=oe?.tickLabels)===null||L===void 0?void 0:L.type)=="inner";at?Se-=10:Se=$e*10-10;var pn=((N=D.lineConfig)===null||N===void 0?void 0:N.distanceFromArc)||((Z=(V=oe?.tickLabels)===null||V===void 0?void 0:V.defaultTickLineConfig)===null||Z===void 0?void 0:Z.distanceFromArc)||0,St=((K=D.lineConfig)===null||K===void 0?void 0:K.length)||((W=(R=oe?.tickLabels)===null||R===void 0?void 0:R.defaultTickLineConfig)===null||W===void 0?void 0:W.length)||0,nn=I(D,C);nn||(at?(Se+=pn,Se+=St):(Se-=pn,Se-=St));var gn=(0,e.getLabelCoordsByValue)(Qe,C,Se),Or=((U=D.valueConfig)===null||U===void 0?void 0:U.style)||((ae=(Y=oe?.tickLabels)===null||Y===void 0?void 0:Y.defaultTickValueConfig)===null||ae===void 0?void 0:ae.style)||{};Or=t({},Or);var hr="",Tr=((re=D.valueConfig)===null||re===void 0?void 0:re.maxDecimalDigits)||((ye=(ge=oe?.tickLabels)===null||ge===void 0?void 0:ge.defaultTickValueConfig)===null||ye===void 0?void 0:ye.maxDecimalDigits);!((_e=D.valueConfig)===null||_e===void 0)&&_e.formatTextValue?hr=D.valueConfig.formatTextValue(o.floatingNumber(Qe,Tr)):!((pe=(ce=oe?.tickLabels)===null||ce===void 0?void 0:ce.defaultTickValueConfig)===null||pe===void 0)&&pe.formatTextValue?hr=oe.tickLabels.defaultTickValueConfig.formatTextValue(o.floatingNumber(Qe,Tr)):C.props.minValue===0&&C.props.maxValue===100?(hr=o.floatingNumber(Qe,Tr).toString(),hr+="%"):hr=o.floatingNumber(Qe,Tr).toString(),((Oe=oe?.tickLabels)===null||Oe===void 0?void 0:Oe.type)=="inner"?(Ze==="end"&&(gn.x+=10),Ze==="start"&&(gn.x-=10)):Ze==="middle"&&(gn.y+=2),Ze==="middle"?gn.y+=0:gn.y+=3,Or.textAnchor=Ze,(0,e.addText)(hr,gn.x,gn.y,C,Or,s.default.tickValueClassname)};e.addTickValue=_;var E=function(D,C){C.props.labels;var L=I(D,C),N=H(D,C);L||(0,e.addTickLine)(D,C),!s.default.debugTicksRadius&&!N&&(0,e.addTickValue)(D,C)};e.addTick=E;var S=function(D,C,L){var N;L===void 0&&(L=0);var V=C.props.labels,Z=C.props.minValue,K=C.props.maxValue,R=(N=V.tickLabels)===null||N===void 0?void 0:N.type,W=(0,d.getCoordByValue)(D,C,R,L,.93),U=W.x,Y=W.y;return o.calculatePercentage(Z,K,D),C.props.type==l.GaugeType.Radial&&(Y+=3),{x:U,y:Y}};e.getLabelCoordsByValue=S;var A=function(D,C,L,N,V,Z,K){K===void 0&&(K=0);var R=N.g.current.append("g").attr("class",Z).attr("transform","translate(".concat(C,", ").concat(L,")")).append("text").text(D);O(R,V),R.attr("transform","rotate(".concat(K,")"))};e.addText=A;var O=function(D,C){Object.entries(C).forEach(function(L){var N=L[0],V=L[1];return D.style(o.camelCaseToKebabCase(N),V)}),C!=null&&Object.entries(C).forEach(function(L){var N=L[0],V=L[1];return D.style(o.camelCaseToKebabCase(N),V)})},P=function(D){var C,L,N,V=D.props.labels,Z=D.props.value,K=V?.valueLabel,R=20,W="",U=(C=V?.valueLabel)===null||C===void 0?void 0:C.maxDecimalDigits,Y=o.floatingNumber(Z,U);K.formatTextValue?W=K.formatTextValue(Y):D.props.minValue===0&&D.props.maxValue===100?(W=Y.toString(),W+="%"):W=Y.toString();var ae=4,re=W?.length||0,ge=re>ae?ae/re*1.5:1,ye=(L=K?.style)===null||L===void 0?void 0:L.fontSize,_e=t({},K.style),ce=D.dimensions.current.outerRadius,pe=0;_e.textAnchor="middle",D.props.type==l.GaugeType.Semicircle?pe=D.dimensions.current.outerRadius/1.5+R:D.props.type==l.GaugeType.Radial?pe=D.dimensions.current.outerRadius*1.45+R:D.props.type==l.GaugeType.Grafana&&(pe=D.dimensions.current.outerRadius*1+R);var Oe=(D.props.type==l.GaugeType.Radial,.003);ge=D.dimensions.current.width*Oe*ge;var oe=parseInt(ye,10)*ge;_e.fontSize=oe+"px",K.matchColorWithArc&&(_e.fill=((N=(0,d.getArcDataByValue)(Z,D))===null||N===void 0?void 0:N.color)||"white"),(0,e.addText)(W,ce,pe,D,_e,s.default.valueLabelClassname)};e.addValueText=P;var j=function(D){return D.g.current.selectAll(".".concat(s.default.valueLabelClassname)).remove()};e.clearValueLabel=j;var $=function(D){D.g.current.selectAll(".".concat(s.default.tickLineClassname)).remove(),D.g.current.selectAll(".".concat(s.default.tickValueClassname)).remove()};e.clearTicks=$;var z=function(D,C){var L,N,V=C.props.labels,Z=C.props.minValue,K=C.props.maxValue,R=o.calculatePercentage(Z,K,D),W=(L={},L[l.GaugeType.Grafana]={startAngle:-20,endAngle:220},L[l.GaugeType.Semicircle]={startAngle:0,endAngle:180},L[l.GaugeType.Radial]={startAngle:-42,endAngle:266},L),U=W[C.props.type],Y=U.startAngle,ae=U.endAngle,re=Y+R*100*ae/100,ge=R<.5,ye=R>s.default.rangeBetweenCenteredTickValueLabel[0]&&R<s.default.rangeBetweenCenteredTickValueLabel[1],_e="",ce=((N=V?.tickLabels)===null||N===void 0?void 0:N.type)=="inner";return ye?_e="middle":ge?_e=ce?"start":"end":_e=ce?"end":"start",{tickAnchor:_e,angle:re}};e.calculateAnchorAndAngleByValue=z;var I=function(D,C){var L,N,V,Z,K=C.props.labels,R=(L=u.defaultTickLabels.defaultTickLineConfig)===null||L===void 0?void 0:L.hide,W=R,U=(V=(N=K?.tickLabels)===null||N===void 0?void 0:N.defaultTickLineConfig)===null||V===void 0?void 0:V.hide;U!=null&&(W=U);var Y=(Z=D.lineConfig)===null||Z===void 0?void 0:Z.hide;return Y!=null&&(W=Y),W},H=function(D,C){var L,N,V,Z,K=C.props.labels,R=(L=u.defaultTickLabels.defaultTickValueConfig)===null||L===void 0?void 0:L.hide,W=R,U=(V=(N=K?.tickLabels)===null||N===void 0?void 0:N.defaultTickValueConfig)===null||V===void 0?void 0:V.hide;U!=null&&(W=U);var Y=(Z=D.valueConfig)===null||Z===void 0?void 0:Z.hide;return Y!=null&&(W=Y),W}}(yi)),yi}var ho={},k6;function bwe(){return k6||(k6=1,function(e){var t=ho&&ho.__createBinding||(Object.create?function(A,O,P,j){j===void 0&&(j=P);var $=Object.getOwnPropertyDescriptor(O,P);(!$||("get"in $?!O.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return O[P]}}),Object.defineProperty(A,j,$)}:function(A,O,P,j){j===void 0&&(j=P),A[j]=O[P]}),n=ho&&ho.__setModuleDefault||(Object.create?function(A,O){Object.defineProperty(A,"default",{enumerable:!0,value:O})}:function(A,O){A.default=O}),r=ho&&ho.__importStar||function(A){if(A&&A.__esModule)return A;var O={};if(A!=null)for(var P in A)P!=="default"&&Object.prototype.hasOwnProperty.call(A,P)&&t(O,A,P);return n(O,A),O};Object.defineProperty(e,"__esModule",{value:!0}),e.clearPointerElement=e.addPointerElement=e.translatePointer=e.drawPointer=void 0;var i=Om,a=nA(),o=yl(),s=r(Tm()),u=r(yl()),c=zl(),l=function(A,O){var P;O===void 0&&(O=!1),A.pointer.current.context=d(A);var j=A.pointer.current.context,$=j.prevPercent,z=j.currentPercent,I=j.prevProgress,H=A.props.pointer,D=((P=A.prevProps)===null||P===void 0?void 0:P.current.value)==null;(D||O)&&A.props.type!=c.GaugeType.Grafana&&h(A);var C=(!O||D)&&H.animate;C?A.doughnut.current.transition().delay(H.animationDelay).ease(H.elastic?i.easeElastic:i.easeExpOut).duration(H.animationDuration).tween("progress",function(){var L=(0,i.interpolateNumber)($,z);return function(N){var V=L(N);y(V,I)&&(A.props.type==c.GaugeType.Grafana?(u.clearArcs(A),u.drawArc(A,V)):g(V,A)),A.pointer.current.context.prevProgress=V}}):g(z,A)};e.drawPointer=l;var d=function(A){var O,P=A.props.value,j=A.props.pointer,$=j.length,z=A.props.minValue,I=A.props.maxValue;A.pointer.current.context.pointerPath;var H=b(A),D=j.type==a.PointerType.Needle?$:.2,C=[a.PointerType.Needle,a.PointerType.Arrow],L={centerPoint:[0,-H/2],pointerRadius:b(A),pathLength:A.dimensions.current.outerRadius*D,currentPercent:s.calculatePercentage(z,I,P),prevPercent:s.calculatePercentage(z,I,((O=A.prevProps)===null||O===void 0?void 0:O.current.value)||z),prevProgress:0,pathStr:"",shouldDrawPath:C.includes(j.type),prevColor:""};return L},h=function(A){var O=A.props.value,P=A.props.pointer,j=A.pointer.current.context,$=j.shouldDrawPath,z=j.centerPoint,I=j.pointerRadius;j.pathStr;var H=j.currentPercent,D=j.prevPercent;$&&(A.pointer.current.context.pathStr=v(A,D||H),A.pointer.current.path=A.pointer.current.element.append("path").attr("d",A.pointer.current.context.pathStr).attr("fill",P.color)),P.type==a.PointerType.Needle?A.pointer.current.element.append("circle").attr("cx",z[0]).attr("cy",z[1]).attr("r",I).attr("fill",P.color):P.type==a.PointerType.Blob&&A.pointer.current.element.append("circle").attr("cx",z[0]).attr("cy",z[1]).attr("r",I).attr("fill",P.baseColor).attr("stroke",P.color).attr("stroke-width",P.strokeWidth*I/10),m(I,O,A)},g=function(A,O){var P,j=O.props.pointer,$=O.pointer.current.context,z=$.pointerRadius,I=$.shouldDrawPath,H=$.prevColor;if(m(z,A,O),I&&O.props.type!=c.GaugeType.Grafana&&O.pointer.current.path.attr("d",v(O,A)),j.type==a.PointerType.Blob){var D=(P=u.getArcDataByPercentage(A,O))===null||P===void 0?void 0:P.color,C=D!=H;C&&O.pointer.current.element.select("circle").attr("stroke",D);var L=j.strokeWidth*z/10;O.pointer.current.element.select("circle").attr("stroke-width",L),O.pointer.current.context.prevColor=D}},m=function(A,O,P){var j,$=P.props.pointer,z=$.type,I=P.dimensions,H=s.getCurrentGaugeValueByPercentage(O,P),D=(j={},j[a.PointerType.Needle]=function(){(0,e.translatePointer)(I.current.outerRadius,I.current.outerRadius,P)},j[a.PointerType.Arrow]=function(){var C=(0,o.getCoordByValue)(H,P,"inner",0,.7),L=C.x,N=C.y;L-=1,N+=A-3,(0,e.translatePointer)(L,N,P)},j[a.PointerType.Blob]=function(){var C=(0,o.getCoordByValue)(H,P,"between",0,.75),L=C.x,N=C.y;L-=1,N+=A,(0,e.translatePointer)(L,N,P)},j);return D[z]()},y=function(A,O,P){var j=A>1||A<0,$=Math.abs(A-O)<1e-4,z=A==O;return!$&&!z&&!j},v=function(A,O){var P=A.pointer.current.context,j=P.centerPoint,$=P.pointerRadius,z=P.pathLength,I=s.degToRad(A.props.type==c.GaugeType.Semicircle?0:-42),H=s.degToRad(A.props.type==c.GaugeType.Semicircle?180:223),D=I+O*(H-I),C=[j[0]-z*Math.cos(D),j[1]-z*Math.sin(D)],L=D-Math.PI/2,N=[j[0]-$*Math.cos(L),j[1]-$*Math.sin(L)],V=D+Math.PI/2,Z=[j[0]-$*Math.cos(V),j[1]-$*Math.sin(V)],K="M ".concat(N[0]," ").concat(N[1]," L ").concat(C[0]," ").concat(C[1]," L ").concat(Z[0]," ").concat(Z[1]);return K},b=function(A){var O=A.props.pointer,P=O.width;return P*(A.dimensions.current.width/500)},_=function(A,O,P){return P.pointer.current.element.attr("transform","translate("+A+", "+O+")")};e.translatePointer=_;var E=function(A){return A.pointer.current.element=A.g.current.append("g").attr("class","pointer")};e.addPointerElement=E;var S=function(A){return A.pointer.current.element.selectAll("*").remove()};e.clearPointerElement=S}(ho)),ho}var R6;function wwe(){return R6||(R6=1,function(e){var t=fo&&fo.__createBinding||(Object.create?function(y,v,b,_){_===void 0&&(_=b);var E=Object.getOwnPropertyDescriptor(v,b);(!E||("get"in E?!v.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return v[b]}}),Object.defineProperty(y,_,E)}:function(y,v,b,_){_===void 0&&(_=b),y[_]=v[b]}),n=fo&&fo.__setModuleDefault||(Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v}),r=fo&&fo.__importStar||function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var b in y)b!=="default"&&Object.prototype.hasOwnProperty.call(y,b)&&t(v,y,b);return n(v,y),v};Object.defineProperty(e,"__esModule",{value:!0}),e.clearChart=e.centerGraph=e.calculateRadius=e.updateDimensions=e.renderChart=e.calculateAngles=e.initChart=void 0;var i=zl(),a=r(yl()),o=r(ywe()),s=r(bwe()),u=function(y,v){var b,_,E,S,A=y.dimensions.current.angles;!((_=(b=y.resizeObserver)===null||b===void 0?void 0:b.current)===null||_===void 0)&&_.disconnect&&((S=(E=y.resizeObserver)===null||E===void 0?void 0:E.current)===null||S===void 0||S.disconnect());var O=JSON.stringify(y.prevProps.current.value)!==JSON.stringify(y.props.value);if(O&&!v){(0,e.renderChart)(y,!1);return}y.container.current.select("svg").remove(),y.svg.current=y.container.current.append("svg"),y.g.current=y.svg.current.append("g"),y.doughnut.current=y.g.current.append("g").attr("class","doughnut"),(0,e.calculateAngles)(y),y.pieChart.current.value(function(P){return P.value}).startAngle(A.startAngle).endAngle(A.endAngle).sort(null),s.addPointerElement(y),(0,e.renderChart)(y,!0)};e.initChart=u;var c=function(y){var v=y.dimensions.current.angles;y.props.type==i.GaugeType.Semicircle?(v.startAngle=-Math.PI/2+.02,v.endAngle=Math.PI/2-.02):y.props.type==i.GaugeType.Radial?(v.startAngle=-Math.PI/1.37,v.endAngle=Math.PI/1.37):y.props.type==i.GaugeType.Grafana&&(v.startAngle=-Math.PI/1.6,v.endAngle=Math.PI/1.6)};e.calculateAngles=c;var l=function(y,v){var b,_,E,S,A,O;v===void 0&&(v=!1);var P=y.dimensions,j=y.props.arc,$=y.props.labels;if(v){(0,e.updateDimensions)(y),y.g.current.attr("transform","translate("+P.current.margin.left+", 35)"),(0,e.calculateRadius)(y),y.doughnut.current.attr("transform","translate("+P.current.outerRadius+", "+P.current.outerRadius+")"),y.doughnut.current.on("mouseleave",function(){return a.hideTooltip(y)}).on("mouseout",function(){return a.hideTooltip(y)});var z=j.width;P.current.innerRadius=P.current.outerRadius*(1-z),(0,e.clearChart)(y),a.setArcData(y),a.setupArcs(y,v),o.setupLabels(y),!((E=(_=y.props)===null||_===void 0?void 0:_.pointer)===null||E===void 0)&&E.hide||s.drawPointer(y,v);var I=(b={},b[i.GaugeType.Semicircle]=50,b[i.GaugeType.Radial]=55,b[i.GaugeType.Grafana]=55,b),H=y.doughnut.current.node().getBoundingClientRect().height,D=y.container.current.node().getBoundingClientRect().width,C=y.props.type;y.svg.current.attr("width",D).attr("height",H+I[C])}else{var L=JSON.stringify(y.prevProps.current.arc)!==JSON.stringify(y.props.arc),N=JSON.stringify(y.prevProps.current.pointer)!==JSON.stringify(y.props.pointer),V=JSON.stringify(y.prevProps.current.value)!==JSON.stringify(y.props.value),Z=JSON.stringify((S=y.prevProps.current.labels)===null||S===void 0?void 0:S.tickLabels)!==JSON.stringify($.tickLabels),K=L;K&&(a.clearArcs(y),a.setArcData(y),a.setupArcs(y,v));var R=N||V&&!(!((O=(A=y.props)===null||A===void 0?void 0:A.pointer)===null||O===void 0)&&O.hide);R&&s.drawPointer(y),(L||Z)&&(o.clearTicks(y),o.setupTicks(y)),V&&(o.clearValueLabel(y),o.setupValueLabel(y))}};e.renderChart=l;var d=function(y){var v=y.props.marginInPercent,b=y.dimensions,_=y.container.current.node().getBoundingClientRect(),E=_.width,S=_.height;b.current.fixedHeight==0&&(b.current.fixedHeight=S+200);var A=typeof v=="number",O=A?v:v.left,P=A?v:v.right,j=A?v:v.top,$=A?v:v.bottom;b.current.margin.left=E*O,b.current.margin.right=E*P,b.current.width=E-b.current.margin.left-b.current.margin.right,b.current.margin.top=b.current.fixedHeight*j,b.current.margin.bottom=b.current.fixedHeight*$,b.current.height=b.current.width/2-b.current.margin.top-b.current.margin.bottom};e.updateDimensions=d;var h=function(y){var v=y.dimensions;v.current.width<2*v.current.height?v.current.outerRadius=(v.current.width-v.current.margin.left-v.current.margin.right)/2:v.current.outerRadius=v.current.height-v.current.margin.top-v.current.margin.bottom+35,(0,e.centerGraph)(y)};e.calculateRadius=h;var g=function(y){var v=y.dimensions;v.current.margin.left=v.current.width/2-v.current.outerRadius+v.current.margin.right,y.g.current.attr("transform","translate("+v.current.margin.left+", "+v.current.margin.top+")")};e.centerGraph=g;var m=function(y){o.clearTicks(y),o.clearValueLabel(y),s.clearPointerElement(y),a.clearArcs(y)};e.clearChart=m}(fo)),fo}var Jb={},I6;function xwe(){return I6||(I6=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultDimensions=e.defaultAngles=e.defaultMargins=void 0,e.defaultMargins={top:0,right:0,bottom:0,left:0},e.defaultAngles={startAngle:0,endAngle:0,startAngleDeg:0,endAngleDeg:0},e.defaultDimensions={width:0,height:0,margin:e.defaultMargins,outerRadius:0,innerRadius:0,angles:e.defaultAngles,fixedHeight:0}}(Jb)),Jb}var D6;function _we(){if(D6)return Zr;D6=1;var e=Zr&&Zr.__assign||function(){return e=Object.assign||function(m){for(var y,v=1,b=arguments.length;v<b;v++){y=arguments[v];for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(m[_]=y[_])}return m},e.apply(this,arguments)},t=Zr&&Zr.__createBinding||(Object.create?function(m,y,v,b){b===void 0&&(b=v);var _=Object.getOwnPropertyDescriptor(y,v);(!_||("get"in _?!y.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return y[v]}}),Object.defineProperty(m,b,_)}:function(m,y,v,b){b===void 0&&(b=v),m[b]=y[v]}),n=Zr&&Zr.__setModuleDefault||(Object.create?function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}:function(m,y){m.default=y}),r=Zr&&Zr.__importStar||function(m){if(m&&m.__esModule)return m;var y={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(y,m,v);return n(y,m),y};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.GaugeComponent=void 0;var i=r(k),a=Om,o=zl(),s=r(wwe()),u=r(yl()),c=Tm(),l=xwe(),d=nA(),h=GN(),g=function(m){var y=(0,i.useRef)({}),v=(0,i.useRef)({}),b=(0,i.useRef)({}),_=(0,i.useRef)({}),E=(0,i.useRef)(!0),S=(0,i.useRef)(0),A=(0,i.useRef)(e({},d.defaultPointerRef)),O=(0,i.useRef)({}),P=(0,i.useRef)([]),j=(0,i.useRef)((0,a.pie)()),$=(0,i.useRef)(e({},l.defaultDimensions)),z=(0,i.useRef)(m),I=(0,i.useRef)({}),H=(0,i.useRef)({}),D=(0,i.useRef)(null),C={props:z.current,resizeObserver:H,prevProps:I,svg:y,g:b,dimensions:$,doughnut:_,isFirstRun:E,currentProgress:S,pointer:A,container:O,arcData:P,pieChart:j,tooltip:v},L=function(){var R,W,U=e({},o.defaultGaugeProps);if(C.props=z.current=(0,c.mergeObjects)(U,m),((R=C.props.arc)===null||R===void 0?void 0:R.width)==((W=o.defaultGaugeProps.arc)===null||W===void 0?void 0:W.width)){var Y=z.current.arc;Y.width=(0,h.getArcWidthByType)(C.props.type)}C.props.marginInPercent==o.defaultGaugeProps.marginInPercent&&(z.current.marginInPercent=(0,o.getGaugeMarginByType)(C.props.type)),u.validateArcs(C)},N=function(){var R=JSON.stringify(I.current.arc)!==JSON.stringify(z.current.arc),W=JSON.stringify(I.current.pointer)!==JSON.stringify(z.current.pointer),U=JSON.stringify(I.current.value)!==JSON.stringify(z.current.value),Y=JSON.stringify(I.current.minValue)!==JSON.stringify(z.current.minValue),ae=JSON.stringify(I.current.maxValue)!==JSON.stringify(z.current.maxValue);return R||W||U||Y||ae};(0,i.useLayoutEffect)(function(){L(),E.current=(0,c.isEmptyObject)(O.current),E.current&&(O.current=(0,a.select)(D.current)),N()&&s.initChart(C,E.current),C.prevProps.current=z.current},[m]),(0,i.useEffect)(function(){var R=function(){return s.renderChart(C,!0)};return window.addEventListener("resize",R),function(){return window.removeEventListener("resize",R)}},[m]),(0,i.useEffect)(function(){var R=D.current;if(R){var W=new ResizeObserver(function(){s.renderChart(C,!0)});return C.resizeObserver.current=W,R.parentNode&&W.observe(R.parentNode),function(){var U;C.resizeObserver&&((U=C.resizeObserver.current)===null||U===void 0||U.disconnect(),delete C.resizeObserver.current)}}},[]);var V=m.id,Z=m.style,K=m.className;return m.type,i.default.createElement("div",{id:V,className:"".concat(C.props.type,"-gauge").concat(K?" "+K:""),style:Z,ref:function(R){return D.current=R}})};return Zr.GaugeComponent=g,Zr.default=g,Zr}var N6;function Ewe(){if(N6)return os;N6=1;var e=os&&os.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(os,"__esModule",{value:!0}),os.GaugeComponent=void 0;var t=e(_we());return os.GaugeComponent=t.default,os.default=t.default,os}var Swe=Ewe();const Awe=Va(Swe);function Owe({value:e,label:t,width:n}){const r=ie.useTheme(),[i,a]=k.useState(0);return k.useEffect(()=>{const o=setTimeout(()=>a(e),50);return()=>clearTimeout(o)},[e]),w.jsxs(ie.Box,{style:{margin:"auto",position:"relative",width:n,aspectRatio:"1 / 1"},children:[w.jsx(Awe,{value:i,type:"radial",style:{width:n,margin:"auto"},labels:{tickLabels:{defaultTickLineConfig:{hide:!0},defaultTickValueConfig:{style:{fill:r.palette.mode==="dark"?"#fff":"#000",fontSize:"0.8rem"},formatTextValue:o=>`${o}`},ticks:[{value:10},{value:20},{value:30},{value:40},{value:50},{value:60},{value:70},{value:80},{value:90}]},valueLabel:{maxDecimalDigits:1,matchColorWithArc:r.palette.mode==="dark",style:{textShadow:r.palette.mode==="dark"?"0 0 5px #000":"0 0 5px #fff",fill:r.palette.mode==="dark"?"#fff":"#000"},formatTextValue:o=>o===0?"":`${o} %`}},arc:{colorArray:["#EA4228","#5BE12C"],subArcs:[{limit:10},{limit:20},{limit:30},{limit:40},{limit:50},{limit:60},{limit:70},{limit:80},{limit:90},{limit:100}],padding:.02,width:.3}}),w.jsx("div",{style:{position:"absolute",bottom:"15%",left:0,right:0,textAlign:"center",fontSize:"1rem",color:r.palette.mode==="dark"?"#fff":"#000",pointerEvents:"none"},children:t})]})}function Twe({isGraphsVisible:e,height:t,pad:n,children:r}){const i=k.Children.toArray(r);return w.jsx(xn,{gap:"1vw",sx:{padding:n||"0",height:e?t:0,visibility:e?"visible":"hidden",opacity:e?1:0,transition:"visibility 0s, opacity .5s linear, height .5s linear"},children:i.map(a=>a)})}const Rv=["#8884d8","#82ca9d","#ff7300"],Bc=["#ff0000","#00ff00","#0000ff","#ff00ff","#00ffff","#ffff00"];function Pwe({lines:e,scatters:t,area:n}){return w.jsxs(qd,{gap:1,flexWrap:"wrap",children:[e.map((r,i)=>w.jsx(Qb,{color:r.color||Rv[i%Rv.length],name:r.name,shape:"line"},r.name)),t.map((r,i)=>w.jsx(Qb,{color:r.color||Bc[i%Bc.length],name:r.name,shape:"circle"},r.name)),n&&w.jsx(Qb,{color:n.color||"green",name:n.name,shape:"square"},n.name)]})}function Qb({color:e,name:t,shape:n}){const{t:r}=Et.useTranslation();let i;switch(n){case"circle":i=w.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:e}});break;case"square":i=w.jsx("div",{style:{width:10,height:10,backgroundColor:e}});break;case"line":default:i=w.jsx("div",{style:{width:16,height:2,backgroundColor:e}});break}return w.jsxs(qd,{gap:1,children:[i,w.jsx("span",{style:{fontSize:12},children:r(t)})]})}function rA(e,t=0,n){if(e==null||isNaN(Number(e)))return e?.toString()||"0";const r=Number(e),i=n||_s.language||"en-US";return new Intl.NumberFormat(i,{minimumFractionDigits:t,maximumFractionDigits:t}).format(r)}function Cwe(e,t){return e.map(r=>{const i=r.data.find(a=>a.timestamp===t);return i?{seriesName:r.name,color:r.color,dataPoint:i,renderTooltip:r.renderTooltip}:null}).filter(r=>r!==null)}function jwe({payload:e,label:t,scatterSeries:n}){const{t:r}=Et.useTranslation();if(!e?.length||typeof t!="number")return null;const i=Cwe(n,t);return w.jsxs(ie.Paper,{style:{display:"flex",padding:8,pointerEvents:"none"},children:[w.jsx(Pi,{flex:1,gap:1,children:i.length!==0&&i.map(({seriesName:a,dataPoint:o,color:s,renderTooltip:u})=>w.jsxs(Pi,{children:[w.jsx(ie.Typography,{fontWeight:"bold",style:{color:s},children:r(a)}),u?.(o)]}))}),i.length!==0&&w.jsx(ie.Divider,{orientation:"vertical",flexItem:!0}),w.jsxs(Pi,{flex:1,children:[w.jsx(ie.Typography,{fontWeight:"bold",children:r("LINE_INFO")}),e.map((a,o)=>w.jsx(Zv,{fallback:0,value:rA(a.value),direction:dd.Row,captionStyle:{color:a.color},caption:r(a.name)},o))]})]})}function Mwe(e,t,n){return e.length===0?t.map(r=>({...r,alignToLineKey:r.alignToLineKey||n||"",data:[]})):t.map(r=>{const i=r.alignToLineKey||n||"",a=r.data.map(o=>{const s=o[r.timeKey],u=typeof s=="string"?new Date(s).getTime():s;let c=e[0],l=Math.abs(c.timestamp-u);for(let h=1;h<e.length;h++){const g=e[h],m=Math.abs(g.timestamp-u);m<l&&(c=g,l=m)}const d=c[i];return{...o,timestamp:c.timestamp,scatterValue:Number(d??0)}});return{...r,alignToLineKey:i,data:a}})}function kwe(e,t,n){const r=[],i=n*60*1e3,a=new Date(e),o=a.getMinutes(),s=o%n;if(s!==0){const c=n-s;a.setMinutes(o+c,0,0)}else a.setSeconds(0,0);let u=a.getTime();for(;u<=t;)r.push(u),u+=i;return r}function Rwe(e){const t=Math.pow(10,Math.floor(Math.log10(e))),n=e/t;return n<=1?1*t:n<=2?2*t:n<=2.5?2.5*t:n<=5?5*t:10*t}function Yp(e){let t=0;if(typeof e.maxValue=="number")t=e.maxValue;else if(e.preparedData&&typeof e.yKey=="string")t=Math.max(...e.preparedData.map(u=>u[e.yKey]??0));else return[];const n=t*1.1,r=n/10,i=Rwe(r);let a=Math.ceil(n/i)*i,o=Math.floor(a/i);return a-t<i*.4&&(a+=i,o+=1),Array.from({length:o+1},(u,c)=>c*i)}function Iwe({data:e,lines:t,scatterData:n=[],axis:r,area:i,startDate:a,endDate:o,timeKey:s,width:u="100%",height:c=350}){const{t:l}=Et.useTranslation(),d=s||"creationDate",h=e.map(_=>({..._,timestamp:typeof _[d]=="string"?new Date(_[d]).getTime():_[d]})),g=t.find(_=>_.mainLine&&_.dataKey)?.dataKey,m=a?new Date(a).getTime():void 0,y=o?new Date(o).getTime():void 0,v=Mwe(h,n,g),[b]=Bo();return w.jsxs(Uv,{children:[w.jsx(Pwe,{lines:t,scatters:v.map((_,E)=>({name:_.name,color:_.color||Bc[E%Bc.length]})),area:i?{name:i.name||i.dataKey,color:i.color}:void 0}),w.jsx(Vu,{width:u,height:c,style:{userSelect:"none"},children:w.jsxs(VI,{data:h,children:[w.jsx("defs",{children:w.jsxs("linearGradient",{id:"areaGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"0%",stopColor:i?.color||"green",stopOpacity:1}),w.jsx("stop",{offset:"100%",stopColor:i?.color||"green",stopOpacity:.5})]})}),w.jsx(Hu,{strokeDasharray:"3 3"}),w.jsx(Ds,{dataKey:"timestamp",domain:[m,y],type:"number",ticks:kwe(m,y,r?.x?.step||30),interval:0,tickFormatter:_=>new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}),w.jsx(No,{yAxisId:"left",allowDataOverflow:!1,padding:{top:30,bottom:10},...r?.yLeft?"dataKey"in r.yLeft?{dataKey:r.yLeft.dataKey,ticks:Yp({preparedData:h,yKey:r.yLeft.dataKey})}:{domain:[0,r.yLeft.maxValue],ticks:Yp({maxValue:r.yLeft.maxValue})}:{}}),w.jsx(No,{allowDataOverflow:!1,yAxisId:"right",orientation:"right",padding:{top:10,bottom:10},...r?.yRight?"dataKey"in r.yRight?{dataKey:r.yRight.dataKey,ticks:Yp({preparedData:h,yKey:r.yRight.dataKey})}:{domain:[0,r.yRight.maxValue],ticks:Yp({maxValue:r.yRight.maxValue})}:{}}),w.jsx(uh,{content:_=>w.jsx(jwe,{..._,scatterSeries:v})}),t.map((_,E)=>{const S=b==="light"?"black":"grey",A=_.color||_.mainLine&&S||Rv[E%Rv.length];return _.constantValue!==void 0?w.jsx(uS,{y:_.constantValue,yAxisId:"left",stroke:A,strokeWidth:1.5,strokeDasharray:"4 4"},l(_.name)):w.jsx(dh,{type:"monotone",dataKey:_.dataKey,name:l(_.name),stroke:A,yAxisId:"left",dot:!1,activeDot:_.mainLine?{r:5,stroke:A,strokeWidth:2}:!1,strokeWidth:1.5},_.dataKey)}),i&&w.jsx($l,{name:i.name,type:"monotone",dataKey:i.dataKey,yAxisId:"right",stroke:i.color||"green",fill:"url(#areaGradient)",fillOpacity:.3,strokeWidth:1,dot:!1,activeDot:!1}),v.flatMap((_,E)=>_.data.map(S=>w.jsx(lS,{x:S.timestamp,y:S.scatterValue,yAxisId:"left",r:4,fill:_.color||Bc[E%Bc.length]},S.timestamp)))]})})]})}function XN(e){const t=e.icon;if(typeof e.dataKey=="string"&&e[e.dataKey]){const n={x:e.cx-20,y:e.height-75},r={x:e.cx+20,y:e.height-75},i={x:e.cx,y:e.height-35};return w.jsxs("svg",{style:{cursor:"pointer"},children:[w.jsx(Eae,{points:[n,r,i],stroke:e.stroke,fill:e.fill}),w.jsx("foreignObject",{x:e.cx-12,y:e.height-74,width:24,height:24,children:w.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:w.jsx(t,{fontSize:"small",style:{color:"#fff"}})})})]})}return null}function Dwe({data:e,width:t="100%",height:n=300,area:r,hideDots:i=!1,hideAxis:a=!1,hideLegend:o=!1,hideValues:s=!1,yAxisOptions:u={},xAxisOptions:c={},gridOptions:l={},lineDataKeys:d,scatterData:h,strokeColors:g,fillColors:m,connectNulls:y,dataNames:v,timeRange:b=[8,20],type:_="linear",dateFormat:E={hour:"2-digit",minute:"2-digit"},onClickScatter:S=()=>{}}){const A=ie.useTheme(),{i18n:O,t:P}=Et.useTranslation(),j=A.palette.primary.main??"#00796b",$=d.map((I,H)=>yS(j,H*10)),z=k.useMemo(()=>{const I=new Date;return I.setMinutes(0,0,0),Array.from({length:b[1]-b[0]+1},(H,D)=>{const C=new Date(I);return C.setHours(b[0]+D),C.getTime()})},[b]);return w.jsx(Vu,{height:n,width:t,style:{userSelect:"none"},children:w.jsxs(VI,{data:e,children:[w.jsx("defs",{children:r&&m?.map((I,H)=>w.jsxs("linearGradient",{id:`colorPv${H}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"5%",stopColor:m?I:j,stopOpacity:.5}),w.jsx("stop",{offset:"95%",stopColor:m?I:j,stopOpacity:0})]},`colorPv${I}`))}),w.jsx(Hu,{...l}),w.jsx(Ds,{dataKey:"time",type:"number",ticks:z,domain:[z[0],z[z.length-1]],tickFormatter:I=>new Date(I).toLocaleTimeString(O.language,E),hide:a,includeHidden:!0,allowDataOverflow:!0,padding:{left:10,right:10},...c}),w.jsx(No,{hide:a,...u}),w.jsx(uh,{labelFormatter:I=>`${P("HOURS")} ${new Date(I).toLocaleTimeString(O.language,E)}`,formatter:I=>typeof I!="number"&&typeof I!="string"?P("CLICK_FOR_DETAILS"):I,cursor:{stroke:"red",strokeWidth:3}}),!o&&w.jsx(Cs,{verticalAlign:"top",height:36}),d.map((I,H)=>r?w.jsx($l,{fillOpacity:1,fill:`url(#colorPv${H})`,type:_,dataKey:I,stroke:g?g[H]:$[H],connectNulls:y,dot:i,activeDot:{r:8,stroke:g?g[H]:$[H],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:j,fontSize:16,position:"top"},name:v?v[H]:I},I):w.jsx(dh,{type:_,dataKey:I,stroke:g?g[H]:$[H],fill:m?m[H]:j,connectNulls:y,dot:i,activeDot:{r:8,stroke:g?g[H]:$[H],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:j,fontSize:16,position:"top"},name:v?v[H]:I},I)),h.map(({keyName:I,icon:H,color:D})=>w.jsx(hh,{dataKey:I,data:e,onClick:C=>S({...C.payload[I],dataKey:I}),shape:w.jsx(XN,{dataKey:I,icon:H,height:n}),fill:D??j,stroke:D??j},I))]})})}function Nwe({uq:e,index:t,isOpen:n}){let r=w.jsx(ca.SchoolOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",fontSize:"1.5rem",color:"primary.main",alignContent:"center"}});switch(e.qualificationId?.toUpperCase()){case"9D51EAD0-7EC9-4A33-ABD2-4A35CECF2037":r=w.jsx(ca.ImportExportOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"3A8C6FA5-6226-4F93-9C47-88FD4202CF9E":r=w.jsx(ca.SatelliteOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"E20D660C-C8AC-400D-BB06-97F31D636E07":r=w.jsx(ca.PrecisionManufacturing,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"9FEB96EA-4398-4C1D-A018-D2CB0C034EE6":r=w.jsx(ca.HealingOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"C4E6D73C-66F9-407F-847A-FEBFED6F4917":r=w.jsx(ca.EmergencyOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"0BFBECB6-AFD5-4AB3-A61A-79C5F02DB54F":r=w.jsx(ca.EmergencyOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"39B8F388-8DBF-4346-8ED1-BF01F06F0BEB":r=w.jsx(ca.PrecisionManufacturing,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"D3A1167E-7AFA-4B64-86C7-C9510B30D4E8":r=w.jsx(ca.EngineeringOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;default:r=w.jsx(ca.SchoolOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break}let i;return L6(e.endDate)&&(i=2),w.jsx(x8,{id:`qualification-${t}-${e.qualificationCode}-${e.qualificationId}`,ratio:i,children:w.jsx(EH,{variant:"outlined",sx:{height:"40px",borderRadius:"20px",fontSize:"1rem",paddingLeft:n?"8px":"0",paddingRight:n?"8px":"0",borderColor:L6(e.endDate)?"error.main":"primary.main"},icon:n?r:void 0,label:n?e.qualificationDescription:r},`qualification-${t}`)})}const L6=e=>{const t=new Date,n=new Date;return n.setMonth(t.getMonth()+3),new Date(e)<=n};function Eh({children:e,id:t,open:n=!1,onClose:r=()=>{},title:i="",Icon:a=void 0,width:o="md",fullScreen:s=!1,cancelLabel:u="CANCEL",submitLabel:c="CONFIRM",aspectRatio:l="auto",actionPosition:d="flex-end",onSubmit:h,onCancel:g,form:m,disableSubmit:y=!1,disableCancel:v=!1,dividers:b=!1,disableEscapeKeyDown:_=!1,disableBackdropClick:E=!1,submitButtonProps:S={},hideCloseIcon:A=!1,scrollbarGutter:O=!1,disableScroll:P,minHeight:j="unset",height:$,padding:z,backgroundColor:I="background.paper",Transition:H}){const{t:D}=Et.useTranslation(),C=N=>{const V=Object.fromEntries(N);h&&h(V)};Yv();const L=w.jsxs(w.Fragment,{children:[w.jsx(ie.DialogContent,{dividers:b,className:P?void 0:"scrollable-container",sx:{scrollbarGutter:O?"stable":"none",overflow:P?"hidden":"auto",display:P?"flex":"unset",flexDirection:P?"column":"unset",minHeight:j,padding:z,height:$},children:e}),h&&w.jsxs(ie.DialogActions,{sx:{display:"flex",alignItems:"center",justifyContent:d,gap:"12px",padding:"12px"},children:[g&&w.jsx(ie.Button,{id:"dialog-cancel-btn",disableElevation:!0,variant:"outlined",sx:{width:"200px"},disabled:v,onClick:g,children:u&&D(u)}),h&&w.jsx(ie.Button,{id:"dialog-submit-btn",disableElevation:!0,type:m?"submit":"button",sx:{width:"200px"},disabled:y,...S,onClick:m?void 0:N=>{N.preventDefault(),m||h()},children:c&&D(c)})]})]});return w.jsxs(ie.Dialog,{id:t,open:n,fullScreen:s,onClose:E?(N,V)=>{V!=="backdropClick"&&r()}:r,maxWidth:o,fullWidth:!0,slots:{transition:H??void 0},slotProps:{transition:{direction:"up",timeout:500},paper:{variant:"outlined",sx:{borderRadius:s?"18px 18px 0px 0px":"18px",aspectRatio:l,overflow:"hidden",backgroundColor:I}}},disableEscapeKeyDown:_,children:[i&&w.jsxs(ie.DialogTitle,{sx:{display:"flex",alignItems:"center",gap:"8px",userSelect:"none"},children:[a&&w.jsx(a,{sx:{color:"inherit"}}),w.jsx("b",{children:typeof i=="string"?D(i):i}),!A&&w.jsx(ie.IconButton,{onClick:r,color:"inherit",sx:{marginLeft:"auto"},children:w.jsx(SH,{})})]}),m?w.jsx("form",{action:C,children:L}):L]})}function ZN({open:e,onCancel:t,onSubmit:n,question:r,title:i,fontSize:a="1rem",notes:o,defaultNotesValue:s}){const{t:u}=Et.useTranslation(),[c,l]=k.useState(s||""),d=g=>{l(g.target.value)},h=()=>{t(),l("")};return k.useEffect(()=>{o&&s&&l(s)},[s]),w.jsx(Eh,{id:"confirm-dialog",title:i,open:e,onClose:h,onCancel:h,onSubmit:()=>{o&&c?n(c):n()},width:"sm",minHeight:"100px",disableBackdropClick:!0,disableEscapeKeyDown:!0,disableScroll:!0,dividers:!0,children:w.jsxs(Uv,{gap:"24px",children:[w.jsx(ie.Typography,{variant:"body1",fontSize:a,children:u(r)}),o&&w.jsx(ie.TextField,{id:"notes-txtField",value:c,onChange:d,placeholder:u("INSERT_NOTES"),multiline:!0,minRows:4,maxRows:10})]})})}const Lwe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iA=Lwe?k.useLayoutEffect:k.useEffect;function $we(e){const t=k.useRef(e);return iA(()=>{t.current=e}),k.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function Bwe(e,t){t===void 0&&(t=[e]);const n=k.useRef(e);return iA(()=>{n.current!==e&&(n.current=e)},t),n}function $6(e){const t=$we(e),n=k.useRef(null),r=k.useCallback(i=>{i!==n.current&&t?.(i,n.current),n.current=i},[]);return[n,r]}let ew={};function zwe(e,t){return k.useMemo(()=>{const n=ew[e]==null?0:ew[e]+1;return ew[e]=n,e+"-"+n},[e,t])}var B6;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(B6||(B6={}));function z6(){}const Fwe=Object.freeze({x:0,y:0});var zc;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(zc||(zc={}));var F6;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(F6||(F6={}));var hs;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(hs||(hs={}));hs.Space,hs.Enter,hs.Esc,hs.Space,hs.Enter,hs.Tab;var W6;(function(e){e[e.RightClick=2]="RightClick"})(W6||(W6={}));var q6;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(q6||(q6={}));var V6;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(V6||(V6={}));zc.Backward+"",zc.Forward+"",zc.Backward+"",zc.Forward+"";var g_;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(g_||(g_={}));var v_;(function(e){e.Optimized="optimized"})(v_||(v_={}));function Wwe(e,t){return k.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}g_.WhileDragging,v_.Optimized;const qwe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:z6,draggableNodes:new Map,over:null,measureDroppableContainers:z6},Vwe=k.createContext(qwe),Hwe=k.createContext({...Fwe,scaleX:1,scaleY:1});var H6;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(H6||(H6={}));const Uwe=k.createContext(null),U6="button",Gwe="Draggable";function Kwe(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=zwe(Gwe),{activators:o,activatorEvent:s,active:u,activeNodeRect:c,ariaDescribedById:l,draggableNodes:d,over:h}=k.useContext(Vwe),{role:g=U6,roleDescription:m="draggable",tabIndex:y=0}=i??{},v=u?.id===t,b=k.useContext(v?Hwe:Uwe),[_,E]=$6(),[S,A]=$6(),O=Wwe(o,t),P=Bwe(n);iA(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:S,data:P}),()=>{const $=d.get(t);$&&$.key===a&&d.delete(t)}),[d,t]);const j=k.useMemo(()=>({role:g,tabIndex:y,"aria-disabled":r,"aria-pressed":v&&g===U6?!0:void 0,"aria-roledescription":m,"aria-describedby":l.draggable}),[r,g,y,v,m,l.draggable]);return{active:u,activatorEvent:s,activeNodeRect:c,attributes:j,isDragging:v,listeners:r?void 0:O,node:_,over:h,setNodeRef:E,setActivatorNodeRef:A,transform:b}}var Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Dn.apply(this,arguments)},G6={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},K6={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Xp={width:"20px",height:"20px",position:"absolute",zIndex:1},Ywe={top:Dn(Dn({},G6),{top:"-5px"}),right:Dn(Dn({},K6),{left:void 0,right:"-5px"}),bottom:Dn(Dn({},G6),{top:void 0,bottom:"-5px"}),left:Dn(Dn({},K6),{left:"-5px"}),topRight:Dn(Dn({},Xp),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Dn(Dn({},Xp),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Dn(Dn({},Xp),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Dn(Dn({},Xp),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Xwe=k.memo(function(e){var t=e.onResizeStart,n=e.direction,r=e.children,i=e.replaceStyles,a=e.className,o=k.useCallback(function(c){t(c,n)},[t,n]),s=k.useCallback(function(c){t(c,n)},[t,n]),u=k.useMemo(function(){return Dn(Dn({position:"absolute",userSelect:"none"},Ywe[n]),i??{})},[i,n]);return w.jsx("div",{className:a||void 0,style:u,onMouseDown:o,onTouchStart:s,children:r})}),Zwe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(){return Oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Oa.apply(this,arguments)},Jwe={width:"auto",height:"auto"},Zp=function(e,t,n){return Math.max(Math.min(e,n),t)},Y6=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},Ac=function(e,t){return new RegExp(e,"i").test(t)},Jp=function(e){return!!(e.touches&&e.touches.length)},Qwe=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},X6=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(a,o,s){return Math.abs(o-e)<Math.abs(t[a]-e)?s:a},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},tw=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Qp=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},exe=function(e,t,n,r,i,a,o){return r=Qp(r,e.width,t,n),i=Qp(i,e.height,t,n),a=Qp(a,e.width,t,n),o=Qp(o,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},txe=function(e){return Array.isArray(e)?e:[e,e]},nxe=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Z6="__resizable_base__",JN=function(e){Zwe(t,e);function t(n){var r,i,a,o,s=e.call(this,n)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var u=s.parentNode;if(!u)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Z6):c.className+=Z6,u.appendChild(c),c},s.removeBase=function(u){var c=s.parentNode;c&&c.removeChild(u)},s.state={isResizing:!1,width:(i=(r=s.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(o=(a=s.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Jwe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(s){var u;if(typeof n.state[s]>"u"||n.state[s]==="auto")return"auto";if(n.propsSize&&n.propsSize[s]&&(!((u=n.propsSize[s])===null||u===void 0)&&u.toString().endsWith("%"))){if(n.state[s].toString().endsWith("%"))return n.state[s].toString();var c=n.getParentSize(),l=Number(n.state[s].toString().replace("px","")),d=l/c[s]*100;return"".concat(d,"%")}return tw(n.state[s])},a=r&&typeof r.width<"u"&&!this.state.isResizing?tw(r.width):i("width"),o=r&&typeof r.height<"u"&&!this.state.isResizing?tw(r.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var a={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&Ac("left",a),s=i&&Ac("top",a),u,c;if(this.props.bounds==="parent"){var l=this.parentNode;l&&(u=o?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(n=n&&n<u?n:u),c&&Number.isFinite(c)&&(r=r&&r<c?r:c),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,a=txe(this.props.resizeRatio||1),o=a[0],s=a[1],u=this.state,c=u.direction,l=u.original,d=this.props,h=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,m=d.lockAspectRatioExtraWidth,y=l.width,v=l.height,b=g||0,_=m||0;return Ac("right",c)&&(y=l.width+(n-l.x)*o/i,h&&(v=(y-_)/this.ratio+b)),Ac("left",c)&&(y=l.width-(n-l.x)*o/i,h&&(v=(y-_)/this.ratio+b)),Ac("bottom",c)&&(v=l.height+(r-l.y)*s/i,h&&(y=(v-b)*this.ratio+_)),Ac("top",c)&&(v=l.height-(r-l.y)*s/i,h&&(y=(v-b)*this.ratio+_)),{newWidth:y,newHeight:v}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,a){var o=this.props,s=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,l=typeof a.width>"u"?10:a.width,d=typeof i.width>"u"||i.width<0?n:i.width,h=typeof a.height>"u"?10:a.height,g=typeof i.height>"u"||i.height<0?r:i.height,m=u||0,y=c||0;if(s){var v=(h-m)*this.ratio+y,b=(g-m)*this.ratio+y,_=(l-y)/this.ratio+m,E=(d-y)/this.ratio+m,S=Math.max(l,v),A=Math.min(d,b),O=Math.max(h,_),P=Math.min(g,E);n=Zp(n,S,A),r=Zp(r,O,P)}else n=Zp(n,l,d),r=Zp(r,h,g);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var i=r.getBoundingClientRect();this.parentLeft=i.left*n,this.parentTop=i.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*n,this.targetTop=a.top*n}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,u=o.top,c=o.right,l=o.bottom;this.resizableLeft=s*n,this.resizableRight=c*n,this.resizableTop=u*n,this.resizableBottom=l*n}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,a=0;if(n.nativeEvent&&Qwe(n.nativeEvent)?(i=n.nativeEvent.clientX,a=n.nativeEvent.clientY):n.nativeEvent&&Jp(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,a=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,r,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var l=this.window.getComputedStyle(c).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",s=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Oa(Oa({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Jp(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,u=i.minHeight,c=Jp(n)?n.touches[0].clientX:n.clientX,l=Jp(n)?n.touches[0].clientY:n.clientY,d=this.state,h=d.direction,g=d.original,m=d.width,y=d.height,v=this.getParentSize(),b=exe(v,this.window.innerWidth,this.window.innerHeight,a,o,s,u);a=b.maxWidth,o=b.maxHeight,s=b.minWidth,u=b.minHeight;var _=this.calculateNewSizeFromDirection(c,l),E=_.newHeight,S=_.newWidth,A=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(S=X6(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=X6(E,this.props.snap.y,this.props.snapGap));var O=this.calculateNewSizeFromAspectRatio(S,E,{width:A.maxWidth,height:A.maxHeight},{width:s,height:u});if(S=O.newWidth,E=O.newHeight,this.props.grid){var P=Y6(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),j=Y6(E,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,z=$===0||Math.abs(P-S)<=$?P:S,I=$===0||Math.abs(j-E)<=$?j:E;S=z,E=I}var H={width:S-g.width,height:E-g.height};if(this.delta=H,m&&typeof m=="string"){if(m.endsWith("%")){var D=S/v.width*100;S="".concat(D,"%")}else if(m.endsWith("vw")){var C=S/this.window.innerWidth*100;S="".concat(C,"vw")}else if(m.endsWith("vh")){var L=S/this.window.innerHeight*100;S="".concat(L,"vh")}}if(y&&typeof y=="string"){if(y.endsWith("%")){var D=E/v.height*100;E="".concat(D,"%")}else if(y.endsWith("vw")){var C=E/this.window.innerWidth*100;E="".concat(C,"vw")}else if(y.endsWith("vh")){var L=E/this.window.innerHeight*100;E="".concat(L,"vh")}}var N={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(E,"height")};this.flexDir==="row"?N.flexBasis=N.width:this.flexDir==="column"&&(N.flexBasis=N.height);var V=this.state.width!==N.width,Z=this.state.height!==N.height,K=this.state.flexBasis!==N.flexBasis,R=V||Z||K;R&&R_.flushSync(function(){r.setState(N)}),this.props.onResize&&R&&this.props.onResize(n,h,this.resizable,H)}},t.prototype.onMouseUp=function(n){var r,i,a=this.state,o=a.isResizing,s=a.direction;a.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,s,this.resizable,this.delta),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Oa(Oa({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,a=r.handleStyles,o=r.handleClasses,s=r.handleWrapperStyle,u=r.handleWrapperClass,c=r.handleComponent;if(!i)return null;var l=Object.keys(i).map(function(d){return i[d]!==!1?w.jsx(Xwe,{direction:d,onResizeStart:n.onResizeStart,replaceStyles:a&&a[d],className:o&&o[d],children:c&&c[d]?c[d]:null},d):null});return w.jsx("div",{className:u,style:s,children:l})},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(o,s){return nxe.indexOf(s)!==-1||(o[s]=n.props[s]),o},{}),i=Oa(Oa(Oa({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return w.jsxs(a,Oa({style:i,className:this.props.className},r,{ref:function(o){o&&(n.resizable=o)},children:[this.state.isResizing&&w.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(k.PureComponent);function rxe({id:e,position:t,width:n,height:r,scale:i,bitWiseMask:a,isEditMode:o,children:s,zIndex:u=1,onUpdate:c}){const{attributes:l,setNodeRef:d,transform:h,isDragging:g}=Kwe({id:e}),[m,y]=k.useState(t),v=k.useRef({x:t.x,y:t.y,width:n*i,height:r*i});k.useEffect(()=>{g||y(t)},[t,g]);const b={position:"absolute",left:m.x,top:m.y,transform:h?`translate3d(${h.x}px, ${h.y}px, 0)`:void 0,opacity:g?.5:1,zIndex:u,overflow:"hidden"};return w.jsx(Pi,{style:b,children:w.jsx(JN,{style:{width:"100%",height:"100%",position:"relative"},size:{width:n*i,height:r*i},enable:o&&(a&1)!==1?{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0}:{},onResizeStart:()=>{v.current={x:m.x,y:m.y,width:n*i,height:r*i}},onResize:(_,E,S)=>{const A=S.offsetWidth,O=S.offsetHeight;let P=v.current.x,j=v.current.y;E.includes("left")&&(P=v.current.x+(v.current.width-A)),E.includes("top")&&(j=v.current.y+(v.current.height-O)),y({x:P,y:j})},onResizeStop:(_,E,S)=>{const A=S.offsetWidth,O=S.offsetHeight;let P=v.current.x,j=v.current.y;E.includes("left")&&(P=v.current.x+(v.current.width-A)),E.includes("top")&&(j=v.current.y+(v.current.height-O));const $=P!==v.current.x||j!==v.current.y;c(O,A,i,void 0,$?{x:P,y:j}:void 0)},children:w.jsx("div",{ref:d,...l,style:{width:"100%",height:"100%"},children:s})})})}function ixe(e,t,n,r,i=[]){const{over:a,active:o}=e;a&&!i.includes(a.id)?(t(s=>{const u={...s},c=Object.keys(u).find(l=>u[l].includes(o.id.toString()));return c&&(u[c]=u[c].filter(l=>l!==o.id)),u[a.id]||(u[a.id]=[]),u[a.id].push(o.id.toString()),u}),n(`Dropped ${o.id} in ${a.id}`)):a&&i.includes(a.id)?t(s=>{const u={...s},c=Object.keys(u).find(l=>u[l].includes(o.id.toString()));return c&&(u[c]=u[c].filter(l=>l!==o.id)),u}):n(`Dropped ${o.id} outside any droppable area`),r(!0)}function axe(e,t){t(n=>{const r={...n},i=Object.keys(r).find(a=>r[a].includes(e));return i&&(r[i]=r[i].filter(a=>a!==e)),r})}function oxe(e,t,n){n!=="clickaway"&&e(!1)}function m_({name:e,width:t="100%",disabled:n,required:r,nullable:i,label:a,options:o,defaultValue:s,onChange:u,size:c="medium",multiple:l=!1,onClick:d=()=>{}}){const{t:h}=Et.useTranslation(),[g,m]=k.useState(s??(l?[]:"")),y=k.useRef(!1),v=_=>{const E=_.target.value;y.current=!0,m(E),u(E)},b=()=>{y.current||d(g),y.current=!1};return k.useEffect(()=>{g!==s&&m(s??(l?[]:""))},[s]),w.jsxs(ie.FormControl,{id:`${e}-form-control`,fullWidth:t==="100%",sx:{width:t},disabled:n,required:r,size:c,children:[a&&w.jsx(ie.InputLabel,{id:`${e}-select-label`,children:h(a)}),w.jsxs(ie.Select,{id:`${e}-select`,name:e,label:a?h(a):"",value:g,onChange:v,required:r,disabled:n,multiple:l,onClick:b,children:[i&&w.jsx(ie.MenuItem,{value:"",children:"---"}),o.map(_=>typeof _=="string"||typeof _=="number"?w.jsx(ie.MenuItem,{value:_,children:h(_?.toString())},_):w.jsx(ie.MenuItem,{value:_.value,disabled:_.disabled,children:h(_.label)},_.value))]})]})}function QN({data:e,filterKeyOptions:t,sortKeyOptions:n,onChange:r}){const[i,a]=k.useState(null),[o,s]=k.useState(""),[u,c]=k.useState(null),[l,d]=k.useState("asc");return k.useEffect(()=>{let h=[...e];o&&(h=h.filter(g=>i?String(g[i]).toLowerCase().includes(o.toLowerCase()):t.some(m=>String(g[m]).toLowerCase().includes(o.toLowerCase())))),u&&(h=[...h].sort((g,m)=>l==="asc"?String(g[u]).localeCompare(String(m[u])):String(m[u]).localeCompare(String(g[u])))),r(h)},[e,i,o,u,l,r]),w.jsxs(Pi,{width:"100%",gap:2,children:[w.jsx(ie.TextField,{label:"Search",type:"text",placeholder:"Enter filter value...",onChange:h=>s(h.target.value)}),w.jsxs(Da,{gap:1,alignItems:"center",children:[w.jsx(m_,{name:"filter-key",label:"Filter by",options:t,onChange:h=>a(h)}),w.jsx(m_,{name:"sort-key",label:"Sort by",options:n,onChange:h=>c(h)}),w.jsx(ie.IconButton,{sx:{width:"50px",height:"50px"},disabled:!u,size:"small",onClick:()=>d(l==="desc"?"asc":"desc"),children:l==="desc"?w.jsx(X4,{}):w.jsx(Z4,{})})]}),w.jsx(ie.Divider,{})]})}const sxe=e=>{const t=e?.displayValue.split(",");return e?.value.split(",").reduce((n,r,i)=>{const a={value:r,displayValue:t[i]};return[...n,a]},[])};function Bd({id:e,name:t,label:n,callback:r,placeholder:i,width:a,defaultOptions:o,value:s,onChange:u,disabled:c,dependencies:l,multiple:d}){const{t:h}=Et.useTranslation(),[g,m]=k.useState(d?sxe(s)||[]:s||null),[y,v]=k.useState(""),[b,_]=k.useState(o||[]),[E,S]=k.useState(!1),[A,O]=N_(y,600),P=k.useRef(!0),j=(z,I)=>{v(I),O(I)},$=(z,I)=>{m(I),u&&u(I)};return k.useEffect(()=>{o&&o!==b&&_(o)},[o]),k.useEffect(()=>{P.current&&(P.current=!1)},[]),k.useEffect(()=>{!P.current&&r&&A!==null&&A!==void 0&&!c&&l&&(S(!0),r({...l,search:A}).then(z=>{z.json().then(I=>{_(I||[])})}).finally(()=>S(!1)))},[r,A,l,c]),k.useEffect(()=>{!r&&b.length>0&&A!==null&&A!==void 0&&_(z=>z.filter(({displayValue:I})=>I.startsWith(A)))},[r,A,b.length]),w.jsxs(w.Fragment,{children:[w.jsx(ie.Autocomplete,{id:e,multiple:d,disableCloseOnSelect:d,loading:E,value:g,onChange:$,isOptionEqualToValue:(z,I)=>z?.value===I?.value,inputValue:y,onInputChange:j,disabled:c,options:b,fullWidth:a==="100%",sx:{width:a!=="100%"?a:null},getOptionLabel:z=>z?.displayValue,renderInput:z=>w.jsx(ie.TextField,{label:n?h(n):void 0,variant:"outlined",placeholder:i?h(i):void 0,...z})}),t&&w.jsx("input",{type:"hidden",name:t,value:d?g?.map(({value:z})=>z)?.toString():g?.value})]})}function eL({id:e,name:t,extValue:n,onChange:r,disabled:i}){const{t:a}=Et.useTranslation(),[o,s]=k.useState(n||""),[u]=N_(o),c=l=>{s(l?.target.value)};return k.useEffect(()=>{u&&r&&r(u)},[u,r]),w.jsx(ie.TextField,{id:e||"search-textfield",name:t||"searchValue",placeholder:`${a("SEARCH")}`,value:o,onChange:c,disabled:i,slotProps:{input:{startAdornment:w.jsx(ie.InputAdornment,{position:"start",children:w.jsx(AH,{})})}}})}const uxe=e=>e.replace(/\{\{|\}\}/g,""),zd=(e="DATE_FORMAT")=>{const{t}=_s,n=t(e)==="DATE_FORMAT"?"DD/MM/YYYY":t(e);return uxe(n)};function Gc({id:e,name:t,value:n,label:r,onChange:i,inputType:a="date",isStatic:o,disablePast:s,disableFuture:u,minDate:c,maxDate:l,required:d,disabled:h,views:g}){const{t:m,i18n:y}=Et.useTranslation(),v=a==="dateTime"?`${zd()} HH:mm`:a==="time"?"HH:mm:ss":zd(),[b,_]=k.useState(n?typeof n=="string"?cs(n,v,y.language):cs(new Date(n)):null);k.useEffect(()=>{n&&new Date(n).getTime()!==b?.toDate().getTime()&&_(typeof n=="string"?cs(n,v,y.language):cs(new Date(n)))},[v,y.language,n]);const E=O=>{_(O),i&&O&&i(O.toDate())},S=()=>{_(null)},A=k.useMemo(()=>a==="date"?o?dc.StaticDatePicker:dc.DatePicker:a==="time"?o?dc.StaticTimePicker:dc.TimePicker:o?dc.StaticDateTimePicker:dc.DateTimePicker,[a,o]);return w.jsx(TH.LocalizationProvider,{dateAdapter:OH.AdapterDayjs,adapterLocale:y.language,children:w.jsx(A,{id:e,format:v,slotProps:{field:{clearable:!!b,onClear:S},textField:{required:d}},name:t,label:r?m(r):void 0,value:b,onChange:E,minDate:c?cs(c):void 0,maxDate:l?cs(l):void 0,disabled:h,required:d,ampm:a==="dateTime"||a==="time"?!1:void 0,ampmInClock:a==="dateTime"||a==="time"?!1:void 0,disablePast:s,disableFuture:u,views:g})})}function aA({name:e,defaultValue:t=null,onChange:n,direction:r,disabled:i,required:a,options:o,label:s}){const{t:u}=Et.useTranslation(),[c,l]=k.useState(t),d=h=>{l(h.target.value),n&&n(h.target.value)};return w.jsxs(ie.FormControl,{disabled:i,required:a,children:[w.jsx(ie.FormLabel,{sx:{textTransform:"capitalize"},children:s?u(s):""}),w.jsx(ie.RadioGroup,{row:r==="row",id:e,"aria-labelledby":e,name:e,value:c,onChange:d,children:o.map(h=>typeof h=="string"?w.jsx(ie.FormControlLabel,{value:h,control:w.jsx(ie.Radio,{}),label:u(h)},h):w.jsx(ie.FormControlLabel,{value:h.value,control:w.jsx(ie.Radio,{}),label:u(h.label)},h.value))})]})}function tL(e){return Object.keys(e).map(t=>{const{type:n,value:r,options:i}=e[t]||{};switch(n){case mo.search:return w.jsx(eL,{id:"rad-filters-txtfield",name:t,extValue:r},t);case mo.select:return i&&i.length>0&&w.jsx(Bd,{id:`autocomplete-${t}`,name:t,label:t,defaultOptions:i,value:r},t);case mo.multipleSelect:return i&&i.length>0&&w.jsx(Bd,{id:`autocomplete-${t}`,name:t,label:t,defaultOptions:i,value:r,multiple:!0},t);case mo.boolean:return w.jsx(aA,{direction:"row",name:t,label:t,defaultValue:r?.toString(),options:[{label:"YES",value:"true"},{label:"NO",value:"false"},{label:"N/A",value:""}]},t);case mo.date:return w.jsx(Gc,{id:`date-picker-${t}`,name:t,value:r},t);case mo.dateTime:return w.jsx(Gc,{id:`datetime-picker-${t}`,name:t,value:r,inputType:"dateTime"},t)}})}function nL({onClose:e}){const{t}=Et.useTranslation(),{filters:n}=L_(),{updateFilters:r}=F_(),i=a=>{const o=Object.fromEntries(a);let s={};Object.keys(n).forEach(u=>{n[u].type!==void 0&&n[u].type===mo.date&&(o[u]=new Date(o[u]).toISOString()),s={...s,[u]:{...n[u],value:o[u]}}}),console.log("Original Filters:",n),console.log("Updated Filters:",o),r(s,!0)};return w.jsx(Da,{padding:"16px",flexDirection:"column",gap:"24px",minWidth:"360px",children:w.jsxs("form",{action:i,children:[tL(n),w.jsx(ie.Button,{sx:{marginTop:"auto"},type:"submit",onClick:e,children:t("CONFIRM")})]})})}function rL({onClose:e}){const{t}=Et.useTranslation(),{sortings:n}=$_(),{updateSortings:r}=F_(),i=o=>{const s=Object.fromEntries(o);let u={};Object.keys(n).forEach(c=>{const l=n[c];u={...u,[c]:{...l,direction:s[l.name]}}}),r(u,!0)},a=Object.keys(n).sort((o,s)=>n[s].order-n[o].order).map(o=>{const{name:s,direction:u}=n[o];return w.jsxs(ie.ListItem,{divider:!0,children:[w.jsx(ie.ListItemText,{children:t(s)}),w.jsxs(ie.Select,{id:`${s}-select`,name:s,size:"small",defaultValue:u,sx:{width:"50%"},children:[w.jsx(ie.MenuItem,{value:"ASC",children:t("ASCENDING")}),w.jsx(ie.MenuItem,{value:"DESC",children:t("DESCENDING")})]})]},o)});return w.jsx(Da,{padding:"16px",flexDirection:"column",gap:"24px",minWidth:"360px",children:w.jsxs("form",{action:i,children:[w.jsx(ie.List,{children:a}),w.jsx(ie.Button,{sx:{marginTop:"auto"},type:"submit",onClick:e,children:t("CONFIRM")})]})})}const iL=Hv.styled(PH)(({theme:e})=>({backgroundColor:e.palette.background.paper}));function cxe({languages:e,flags:t,title:n,Icon:r,features:i,user:a,hasSidebar:o,isIdle:s}){const{t:u}=Et.useTranslation(),c=Vd("(max-width: 600px)"),[l,d]=Xv();return w.jsx(ie.Collapse,{in:!s,timeout:500,unmountOnExit:!0,sx:{minHeight:"unset!important",zIndex:"100"},children:w.jsx(iL,{color:"inherit",position:"static",sx:{transition:"all 0.5s ease-in-out"},variant:"outlined",children:w.jsxs(ie.Toolbar,{disableGutters:!0,sx:{justifyContent:"left",padding:"0px 16px"},children:[r&&w.jsx(r,{onClick:o?l?d.close:d.open:()=>{}}),w.jsx(ie.Typography,{variant:"h5",sx:{textTransform:"capitalize",flexGrow:1,fontWeight:"bold",userSelect:"none"},children:n?u(n):""}),i&&w.jsx(xn,{gap:"8px",padding:"0px 8px",alignItems:"center",children:Object.keys(i)?.map(h=>w.jsx(ie.Tooltip,{title:u(h),children:i[h]},h))}),!c&&w.jsxs(w.Fragment,{children:[e&&t&&w.jsx(A8,{languages:e,flags:t}),a&&w.jsx(ie.Tooltip,{title:"Account",children:w.jsx(ie.IconButton,{children:w.jsx(ie.Avatar,{sx:{bgcolor:"primary.main",color:"#fff"},children:a[0].toUpperCase()})})})]})]})})})}function lxe({hotKeys:e}){const{t}=Et.useTranslation(),[n,r]=d8();return w.jsx(Eh,{id:"language-selector",title:"Hot keys",open:n,onClose:r.close,width:"xs",children:w.jsx(ie.Stack,{spacing:1,children:e.map(({combination:i,description:a,callback:o})=>w.jsxs(xn,{justifyContent:"space-between",alignItems:"center",children:[w.jsx(ie.Typography,{variant:"body1",noWrap:!0,children:t(a)}),w.jsx(ie.Button,{id:`${i}-btn`,variant:"outlined",onClick:o,children:i})]},i))})})}function fxe({listToFilter:e,onChangeListFiltered:t}){const{t:n}=Et.useTranslation(),[r,i]=k.useState([]),[a,o]=k.useState(""),s=u=>{o(u.target.value)};return k.useEffect(()=>{i(e.filter(u=>u.name.toLowerCase().includes(a.toLowerCase()))),t(r)},[r,a,e,t]),w.jsx(ie.TextField,{id:"autocomplete-client",value:a,onChange:s,placeholder:n("TYPE"),variant:"outlined",size:"small"})}function dxe({name:e,checked:t,onChange:n,direction:r="column",disabled:i,required:a,options:o}){const{t:s}=Et.useTranslation(),u=Gv(t||[]),c=(l,d=null)=>{const h=u.findIndex(l,d);h>=0?u.remove(h):u.push(l)};return k.useEffect(()=>{n&&n(u.value)},[n,u]),w.jsx(ie.FormControl,{disabled:i,required:a,children:w.jsx(ie.FormGroup,{sx:{display:"flex",flexDirection:r,gap:".5rem"},children:o.map(l=>typeof l=="string"?w.jsx(ie.FormControlLabel,{control:w.jsx(ie.Checkbox,{name:e,value:l,checked:u.findIndex(l)>=0,onClick:()=>c(l)}),label:s(l)},l):w.jsx(ie.FormControlLabel,{control:w.jsx(ie.Checkbox,{value:l.value,name:e,checked:u.findIndex(l.value,"value")>=0,onClick:()=>c(l.value,"value")}),label:s(l.label)},l.value))})})}function hxe({name:e,width:t="100%",disabled:n,required:r,label:i,options:a,size:o="medium",setCheckedItems:s,defaultChecked:u=[]}){const{t:c}=Et.useTranslation(),[l,d]=k.useState(u);return k.useEffect(()=>{s(l)},[l,s]),w.jsxs(ie.FormControl,{id:`${e}-multiple-select-form-control`,fullWidth:t==="100%",sx:{width:t},disabled:n,required:r,size:o,children:[i&&w.jsx(ie.InputLabel,{id:`${e}-multiple-select`,children:c(i)}),w.jsx(ie.Select,{id:`${e}-multiple-select`,name:e,label:i?c(i):"",value:l,multiple:!0,renderValue:h=>h.map(g=>a.find(m=>m.value===g)?.label).join(", "),disabled:n,children:a.map(h=>w.jsxs(ie.MenuItem,{value:h.value,sx:{paddingLeft:"8px"},onClick:()=>{l.includes(h.value)?d(l.filter(g=>g!==h.value)):d([...l,h.value])},children:[w.jsx(ie.Checkbox,{checked:l.includes(h.value)}),w.jsx(ie.ListItemText,{primary:h.label})]},h.value))})]})}function Jf({onClick:e,value:t,color:n="none",border:r=!1,disabled:i=!1}){return w.jsx(ie.Grid,{size:4,sx:{height:"max-content"},children:w.jsx(ie.Box,{id:`${t}-wrapper`,sx:{width:"100%",aspectRatio:1,display:"flex",alignItems:"center",justifyContent:"center"},children:w.jsx(ie.Fab,{id:`${t}-fab`,role:"button",color:"default",disabled:i,"aria-label":`Calculator key-button value: ${t}`,onClick:e,sx:{borderStyle:r?"solid":"none",borderWidth:r?"2px":"none",borderColor:r?"currentColor":"none",width:"90%",height:"90%",fontSize:"clamp(1rem, 5vw, 2rem)",boxShadow:"none",bgcolor:n,color:n!=="none"?"currentColor":"#111"},children:t})})})}function aL({onClick:e,onClear:t,onDelete:n,color:r,disabled:i=!1}){return w.jsxs(ie.Grid,{container:!0,sx:{padding:"16px",overflow:"hidden",flexGrow:1},spacing:1,children:[[...Array(9)].fill(0).map((a,o)=>w.jsx(Jf,{value:o+1,onClick:()=>e(o+1),color:r,disabled:i},`${String(o)}`)),w.jsx(Jf,{value:"C",onClick:t,color:r,disabled:i,border:!0}),w.jsx(Jf,{value:0,onClick:()=>e(0),color:r,disabled:i}),w.jsx(Jf,{disabled:i,value:w.jsx(CH,{fontSize:"inherit"}),onClick:n,color:r,border:!0})]})}function pxe({width:e="100%",height:t="100%",color:n,defaultValue:r=0,title:i="",disabled:a=!1,onChange:o}){const[s,u]=k.useState(r.toString()),c=h=>{(s||h!==0)&&u(g=>g==="0"?h.toString():g+h.toString())},l=()=>{s!=="0"&&u(h=>h.substring(0,h.length-1)),s.length===1&&u("0")},d=()=>{u("0")};return k.useEffect(()=>{o(s)},[s]),k.useEffect(()=>{u(r.toString())},[r]),w.jsx(ie.Paper,{sx:{width:e,height:t},children:w.jsxs(lu,{justifyContent:"flex-end",children:[w.jsxs(Pi,{padding:"0px 8px",alignItems:"flex-end",height:"20%",flexGrow:1,justifyContent:"flex-end",overflow:"hidden",children:[w.jsx(ie.Typography,{variant:"button",sx:{color:a?"GrayText":n},children:i}),w.jsx(ie.Typography,{sx:{color:a?"GrayText":n,fontSize:"clamp(1rem, 5vw, 3rem)"},children:s})]}),w.jsx(ie.Divider,{flexItem:!0}),w.jsx(aL,{color:n,onClick:c,onClear:d,onDelete:l,disabled:a})]})})}const oL=["shift","alt","meta","mod","ctrl","control"],gxe={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function xs(e){return(gxe[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function sL(e){return oL.includes(e)}function nw(e,t=","){return e.toLowerCase().split(t)}function rw(e,t="+",n=">",r=!1,i){let a=[],o=!1;e.includes(n)?(o=!0,a=e.toLocaleLowerCase().split(n).map(c=>xs(c))):a=e.toLocaleLowerCase().split(t).map(c=>xs(c));const s={alt:a.includes("alt"),ctrl:a.includes("ctrl")||a.includes("control"),shift:a.includes("shift"),meta:a.includes("meta"),mod:a.includes("mod"),useKey:r},u=a.filter(c=>!oL.includes(c));return{...s,keys:u,description:i,isSequence:o}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&uL([xs(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&cL([xs(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Oo.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Oo.clear()},0)}));const Oo=new Set;function oA(e){return Array.isArray(e)}function vxe(e,t=","){return(oA(e)?e:e.split(t)).every(n=>Oo.has(n.trim().toLowerCase()))}function uL(e){const t=Array.isArray(e)?e:[e];Oo.has("meta")&&Oo.forEach(n=>!sL(n)&&Oo.delete(n.toLowerCase())),t.forEach(n=>Oo.add(n.toLowerCase()))}function cL(e){const t=Array.isArray(e)?e:[e];e==="meta"?Oo.clear():t.forEach(n=>Oo.delete(n.toLowerCase()))}function mxe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function yxe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function bxe(e){return lL(e,["input","textarea","select"])}function lL(e,t=!1){const{target:n,composed:r}=e;let i;return wxe(n)&&r?i=e.composedPath()[0]&&e.composedPath()[0].tagName:i=n&&n.tagName,oA(t)?!!(i&&t&&t.some(a=>a.toLowerCase()===i.toLowerCase())):!!(i&&t&&t)}function wxe(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function xxe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(n=>t.includes(n))||e.includes("*"):!0}const _xe=(e,t,n=!1)=>{const{alt:r,meta:i,mod:a,shift:o,ctrl:s,keys:u,useKey:c}=t,{code:l,key:d,ctrlKey:h,metaKey:g,shiftKey:m,altKey:y}=e,v=xs(l);if(c&&u?.length===1&&u.includes(d))return!0;if(!(u!=null&&u.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!n){if(r!==y&&v!=="alt"||o!==m&&v!=="shift")return!1;if(a){if(!g&&!h)return!1}else if(i!==g&&v!=="meta"&&v!=="os"||s!==h&&v!=="ctrl"&&v!=="control")return!1}return u&&u.length===1&&u.includes(v)?!0:u?vxe(u):!u},Exe=k.createContext(void 0),Sxe=()=>k.useContext(Exe);function Axe(e,t){return e===t}const Oxe=k.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Txe=()=>k.useContext(Oxe);function Pxe(e){const t=k.useRef(void 0);return Axe(t.current,e)||(t.current=e),t.current}const J6=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Cxe=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Q6(e,t,n,r){const i=k.useRef(null),a=k.useRef(!1),o=n instanceof Array?r instanceof Array?void 0:r:n,s=oA(e)?e.join(void 0):e,u=k.useCallback(t,[]),c=k.useRef(u);c.current=t;const l=Pxe(o),{activeScopes:d}=Txe(),h=Sxe();return Cxe(()=>{if(l?.enabled===!1||!xxe(d,l?.scopes))return;let g=[],m;const y=(E,S=!1)=>{var A;if(!(bxe(E)&&!lL(E,l?.enableOnFormTags))){if(i.current!==null){const O=i.current.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==i.current&&!i.current.contains(O.activeElement)){J6(E);return}}(A=E.target)!=null&&A.isContentEditable&&!(l!=null&&l.enableOnContentEditable)||nw(s,l?.delimiter).forEach(O=>{var P,j,$,z;if(O.includes(l?.splitKey??"+")&&O.includes(l?.sequenceSplitKey??">")){console.warn(`Hotkey ${O} contains both ${l?.splitKey??"+"} and ${l?.sequenceSplitKey??">"} which is not supported.`);return}const I=rw(O,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description);if(I.isSequence){m=setTimeout(()=>{g=[]},l?.sequenceTimeoutMs??1e3);const H=I.useKey?E.key:xs(E.code);if(sL(H.toLowerCase()))return;g.push(H);const D=(P=I.keys)==null?void 0:P[g.length-1];if(H!==D){g=[],m&&clearTimeout(m);return}g.length===((j=I.keys)==null?void 0:j.length)&&(c.current(E,I),m&&clearTimeout(m),g=[])}else if(_xe(E,I,l?.ignoreModifiers)||($=I.keys)!=null&&$.includes("*")){if((z=l?.ignoreEventWhen)!=null&&z.call(l,E)||S&&a.current)return;if(mxe(E,I,l?.preventDefault),!yxe(E,I,l?.enabled)){J6(E);return}c.current(E,I),S||(a.current=!0)}})}},v=E=>{E.code!==void 0&&(uL(xs(E.code)),(l?.keydown===void 0&&l?.keyup!==!0||l!=null&&l.keydown)&&y(E))},b=E=>{E.code!==void 0&&(cL(xs(E.code)),a.current=!1,l!=null&&l.keyup&&y(E,!0))},_=i.current||void 0||document;return _.addEventListener("keyup",b,void 0),_.addEventListener("keydown",v,void 0),h&&nw(s,l?.delimiter).forEach(E=>h.addHotkey(rw(E,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description))),()=>{_.removeEventListener("keyup",b,void 0),_.removeEventListener("keydown",v,void 0),h&&nw(s,l?.delimiter).forEach(E=>h.removeHotkey(rw(E,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description))),g=[],m&&clearTimeout(m)}},[s,l,d]),i}function jxe({languages:e,flags:t,isLogged:n=!0}){const{i18n:r}=Et.useTranslation(),[i,a,o]=W_(e);return Q6("shift+l",a.toggle),Q6("shift",a.open),k.useEffect(()=>{const s=u=>{u.key==="Shift"&&a.close()};return window.addEventListener("keyup",s),()=>{window.removeEventListener("keyup",s)}},[a]),o?w.jsx(ie.Popover,{open:i,onClose:a.close,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:w.jsx(xn,{flexWrap:"wrap",dir:"ltr",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",width:"300px",sx:{backgroundColor:"rgba(19, 67, 45, 0.3)"},children:Object.keys(e).map(s=>{const u=t[s];return w.jsx(MO,{dir:"ltr",sx:{width:"300px",mb:"0"},variant:"outlined",onClick:()=>{r.changeLanguage(s),a.close()},endIcon:w.jsx(u,{size:24}),children:w.jsx("span",{style:{flexGrow:1},children:e[s].nativeName})},s)})})}):w.jsx(Eh,{id:"language-selector",title:"LANGUAGE_MENU",open:i,onClose:a.close,width:"xs",backgroundColor:n?"auto":"rgb(3, 18, 1)",children:w.jsx(xn,{flexWrap:"wrap",dir:"ltr",alignItems:"center",justifyContent:"space-between",gap:"4%",children:Object.keys(e).map(s=>{const u=t[s];return w.jsx(MO,{dir:"ltr",sx:{width:"48%",mb:"4%"},variant:"outlined",onClick:()=>r.changeLanguage(s),endIcon:w.jsx(u,{size:24}),children:w.jsx("span",{style:{flexGrow:1},children:e[s].nativeName})},s)})})})}function fL({id:e,texts:t,primaryText:n,secondaryText:r,primaryTextStyle:i,secondaryTextStyle:a,disabled:o,selected:s,onClick:u,icon:c,endIcon:l,secondaryAction:d,reverseInformations:h,dividers:g,contentWidth:m}){const y=w.jsxs(w.Fragment,{children:[c&&w.jsx(ie.ListItemIcon,{children:c}),w.jsx(ie.ListItemText,{disableTypography:!!t,primary:n??w.jsx(xn,{flexGrow:1,alignItems:"center",gap:"8px",width:m,overflow:"hidden",children:t?.map(({primaryText:v,secondaryText:b},_)=>w.jsxs(k.Fragment,{children:[w.jsx(Zv,{reverse:h,caption:b||"",value:v,captionColor:a?.color,valueColor:i?.color,width:i?.width,captionStyle:{...a,width:"100%"},valueStyle:{...i,width:"100%"},gap:"0px",fallback:!0}),g&&_<t.length-1&&w.jsx(ie.Divider,{orientation:"vertical",flexItem:!0})]},`${String(_)}`))}),secondary:r,slotProps:{primary:{sx:i},secondary:{sx:a}}}),l&&w.jsx(ie.ListItemIcon,{children:l})]});return w.jsx(ie.ListItem,{id:e,component:ie.Paper,sx:u?{paddingRight:0}:{},disablePadding:!!u,secondaryAction:d,children:u?w.jsx(ie.ListItemButton,{sx:{borderRadius:"18px",border:v=>s?`2px solid ${v.palette.primary.main}`:"unset"},selected:s,onClick:u,disabled:o,children:y}):y})}function dL({id:e,children:t,hideFab:n,fabIcon:r,fabText:i="Add",height:a,width:o,canDisplay:s=!0,dense:u,gap:c="8px",disablePadding:l=!1,fabAction:d,reverse:h=!1,fallback:g=void 0}){const m=k.useRef(null),[y,v]=k.useState(!1);return Yv(),k.useEffect(()=>{const b=m.current;if(!b)return;const _=()=>{const{scrollHeight:E,scrollTop:S,clientHeight:A}=b;v(S+A>=E-5)};return b.addEventListener("scroll",_),()=>{b.removeEventListener("scroll",_)}},[]),w.jsxs(w.Fragment,{children:[w.jsxs(jH,{id:e,ref:m,className:"scrollable-container",sx:{display:s?"flex":"none",flexDirection:"column",width:o||"100%",height:a||"100%",gap:c,overflowY:"auto",scrollbarWidth:"none",...h?{display:"flex",flexDirection:"column-reverse"}:{}},dense:u,disablePadding:l,children:[!t||Array.isArray(t)&&t.length<1?g:t,!n&&r?w.jsx("div",{style:{minHeight:"50px",flexShrink:0}}):null]}),!n&&r&&w.jsxs(MH,{id:"list-add-fab",color:"primary",size:"medium","aria-label":"Add",sx:{position:"fixed",right:"4%",bottom:"2%",transition:"all 0.3s ease",width:y?"80px":"50px",borderRadius:y?"40px":"50%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:d,children:[r,y&&w.jsx("span",{style:{marginLeft:8},children:i})]})]})}function Mxe({data:e,filterSortKeys:t,renderItem:n,onSelect:r}){const[i,a]=k.useState(e);return w.jsxs(Pi,{width:"100%",padding:"8px",children:[t&&w.jsx(QN,{data:e,filterKeyOptions:t,sortKeyOptions:t,onChange:a}),w.jsx(dL,{id:"filtered-list",children:i.map((o,s)=>{const u=n(o);return w.jsx(fL,{dividers:!0,texts:u.map(({caption:c,value:l})=>({primaryText:l,secondaryText:c})),onClick:()=>{r(s)}},JSON.stringify(o))})})]})}function kxe({speed:e=30,children:t}){const n=k.useRef(null),r=k.useRef(null),[i,a]=k.useState(!1),[o,s]=k.useState(0);return k.useEffect(()=>{const u=r.current,c=n.current;if(!u||!c)return;const l=()=>{const h=u.scrollHeight,g=c.clientHeight;h>g?(a(!0),s(h/e)):(a(!1),s(0))};l();const d=new ResizeObserver(l);return d.observe(u),d.observe(c),()=>d.disconnect()},[t,e]),w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:n,style:{overflow:"hidden",height:"100%",width:"100%",position:"relative"},children:w.jsxs("div",{style:{display:"flex",flexDirection:"column",animation:i?`scroll-vertical ${o}s linear infinite`:void 0,willChange:i?"transform":void 0},children:[w.jsx("div",{ref:r,children:t}),i&&w.jsx("div",{children:t})]})}),w.jsx("style",{children:`
129
+ }`;var xt=TO(function(){return Lt(q,We+"return "+Ee).apply(n,G)});if(xt.source=Ee,Py(xt))throw xt;return xt}function xV(f){return Ft(f).toLowerCase()}function _V(f){return Ft(f).toUpperCase()}function EV(f,p,x){if(f=Ft(f),f&&(x||p===n))return NA(f);if(!f||!(p=pi(p)))return f;var T=ia(f),k=ia(p),q=LA(T,k),G=$A(T,k)+1;return ns(T,q,G).join("")}function SV(f,p,x){if(f=Ft(f),f&&(x||p===n))return f.slice(0,zA(f)+1);if(!f||!(p=pi(p)))return f;var T=ia(f),k=$A(T,ia(p))+1;return ns(T,0,k).join("")}function AV(f,p,x){if(f=Ft(f),f&&(x||p===n))return f.replace(Ke,"");if(!f||!(p=pi(p)))return f;var T=ia(f),k=LA(T,ia(p));return ns(T,k).join("")}function OV(f,p){var x=z,T=I;if(yn(p)){var k="separator"in p?p.separator:k;x="length"in p?wt(p.length):x,T="omission"in p?pi(p.omission):T}f=Ft(f);var q=f.length;if(ec(f)){var G=ia(f);q=G.length}if(x>=q)return f;var X=x-tc(T);if(X<1)return T;var te=G?ns(G,0,X).join(""):f.slice(0,X);if(k===n)return te+T;if(G&&(X+=te.length-X),Cy(k)){if(f.slice(X).search(k)){var we,xe=te;for(k.global||(k=Hm(k.source,Ft(ot.exec(k))+"g")),k.lastIndex=0;we=k.exec(xe);)var Ee=we.index;te=te.slice(0,Ee===n?X:Ee)}}else if(f.indexOf(pi(k),X)!=X){var je=te.lastIndexOf(k);je>-1&&(te=te.slice(0,je))}return te+T}function TV(f){return f=Ft(f),f&&Ge.test(f)?f.replace(Ve,nB):f}var PV=uc(function(f,p,x){return f+(x?" ":"")+p.toUpperCase()}),ky=P3("toUpperCase");function OO(f,p,x){return f=Ft(f),p=x?n:p,p===n?Z$(f)?aB(f):W$(f):f.match(p)||[]}var TO=_t(function(f,p){try{return di(f,n,p)}catch(x){return Py(x)?x:new dt(x)}}),CV=no(function(f,p){return Ri(p,function(x){x=Sa(x),eo(f,x,Oy(f[x],f))}),f});function jV(f){var p=f==null?0:f.length,x=tt();return f=p?dn(f,function(T){if(typeof T[1]!="function")throw new Ii(o);return[x(T[0]),T[1]]}):[],_t(function(T){for(var k=-1;++k<p;){var q=f[k];if(di(q[0],this,T))return di(q[1],this,T)}})}function MV(f){return nz(Ni(f,d))}function Ry(f){return function(){return f}}function kV(f,p){return f==null||f!==f?p:f}var RV=j3(),IV=j3(!0);function Xr(f){return f}function Iy(f){return o3(typeof f=="function"?f:Ni(f,d))}function DV(f){return u3(Ni(f,d))}function NV(f,p){return c3(f,Ni(p,d))}var LV=_t(function(f,p){return function(x){return uf(x,f,p)}}),$V=_t(function(f,p){return function(x){return uf(f,x,p)}});function Dy(f,p,x){var T=Kn(p),k=Hh(p,T);x==null&&!(yn(p)&&(k.length||!T.length))&&(x=p,p=f,f=this,k=Hh(p,Kn(p)));var q=!(yn(x)&&"chain"in x)||!!x.chain,G=io(f);return Ri(k,function(X){var te=p[X];f[X]=te,G&&(f.prototype[X]=function(){var we=this.__chain__;if(q||we){var xe=f(this.__wrapped__),Ee=xe.__actions__=Gr(this.__actions__);return Ee.push({func:te,args:arguments,thisArg:f}),xe.__chain__=we,xe}return te.apply(f,Xo([this.value()],arguments))})}),f}function BV(){return ir._===this&&(ir._=fB),this}function Ny(){}function zV(f){return f=wt(f),_t(function(p){return l3(p,f)})}var FV=hy(dn),WV=hy(MA),qV=hy($m);function PO(f){return wy(f)?Bm(Sa(f)):bz(f)}function VV(f){return function(p){return f==null?n:qs(f,p)}}var HV=k3(),UV=k3(!0);function Ly(){return[]}function $y(){return!1}function GV(){return{}}function KV(){return""}function YV(){return!0}function XV(f,p){if(f=wt(f),f<1||f>Z)return[];var x=W,T=pr(f,W);p=tt(p),f-=W;for(var k=Wm(T,p);++x<f;)p(x);return k}function ZV(f){return ht(f)?dn(f,Sa):gi(f)?[f]:Gr(K3(Ft(f)))}function JV(f){var p=++cB;return Ft(f)+p}var QV=Zh(function(f,p){return f+p},0),eH=py("ceil"),tH=Zh(function(f,p){return f/p},1),nH=py("floor");function rH(f){return f&&f.length?Vh(f,Xr,Qm):n}function iH(f,p){return f&&f.length?Vh(f,tt(p,2),Qm):n}function aH(f){return IA(f,Xr)}function oH(f,p){return IA(f,tt(p,2))}function sH(f){return f&&f.length?Vh(f,Xr,ry):n}function uH(f,p){return f&&f.length?Vh(f,tt(p,2),ry):n}var cH=Zh(function(f,p){return f*p},1),lH=py("round"),fH=Zh(function(f,p){return f-p},0);function dH(f){return f&&f.length?Fm(f,Xr):0}function hH(f,p){return f&&f.length?Fm(f,tt(p,2)):0}return F.after=DW,F.ary=aO,F.assign=_q,F.assignIn=bO,F.assignInWith=lp,F.assignWith=Eq,F.at=Sq,F.before=oO,F.bind=Oy,F.bindAll=CV,F.bindKey=sO,F.castArray=GW,F.chain=nO,F.chunk=nF,F.compact=rF,F.concat=iF,F.cond=jV,F.conforms=MV,F.constant=Ry,F.countBy=dW,F.create=Aq,F.curry=uO,F.curryRight=cO,F.debounce=lO,F.defaults=Oq,F.defaultsDeep=Tq,F.defer=NW,F.delay=LW,F.difference=aF,F.differenceBy=oF,F.differenceWith=sF,F.drop=uF,F.dropRight=cF,F.dropRightWhile=lF,F.dropWhile=fF,F.fill=dF,F.filter=pW,F.flatMap=mW,F.flatMapDeep=yW,F.flatMapDepth=bW,F.flatten=J3,F.flattenDeep=hF,F.flattenDepth=pF,F.flip=$W,F.flow=RV,F.flowRight=IV,F.fromPairs=gF,F.functions=Iq,F.functionsIn=Dq,F.groupBy=wW,F.initial=mF,F.intersection=yF,F.intersectionBy=bF,F.intersectionWith=wF,F.invert=Lq,F.invertBy=$q,F.invokeMap=_W,F.iteratee=Iy,F.keyBy=EW,F.keys=Kn,F.keysIn=Yr,F.map=ip,F.mapKeys=zq,F.mapValues=Fq,F.matches=DV,F.matchesProperty=NV,F.memoize=op,F.merge=Wq,F.mergeWith=wO,F.method=LV,F.methodOf=$V,F.mixin=Dy,F.negate=sp,F.nthArg=zV,F.omit=qq,F.omitBy=Vq,F.once=BW,F.orderBy=SW,F.over=FV,F.overArgs=zW,F.overEvery=WV,F.overSome=qV,F.partial=Ty,F.partialRight=fO,F.partition=AW,F.pick=Hq,F.pickBy=xO,F.property=PO,F.propertyOf=VV,F.pull=SF,F.pullAll=eO,F.pullAllBy=AF,F.pullAllWith=OF,F.pullAt=TF,F.range=HV,F.rangeRight=UV,F.rearg=FW,F.reject=PW,F.remove=PF,F.rest=WW,F.reverse=Sy,F.sampleSize=jW,F.set=Gq,F.setWith=Kq,F.shuffle=MW,F.slice=CF,F.sortBy=IW,F.sortedUniq=NF,F.sortedUniqBy=LF,F.split=mV,F.spread=qW,F.tail=$F,F.take=BF,F.takeRight=zF,F.takeRightWhile=FF,F.takeWhile=WF,F.tap=rW,F.throttle=VW,F.thru=rp,F.toArray=vO,F.toPairs=_O,F.toPairsIn=EO,F.toPath=ZV,F.toPlainObject=yO,F.transform=Yq,F.unary=HW,F.union=qF,F.unionBy=VF,F.unionWith=HF,F.uniq=UF,F.uniqBy=GF,F.uniqWith=KF,F.unset=Xq,F.unzip=Ay,F.unzipWith=tO,F.update=Zq,F.updateWith=Jq,F.values=fc,F.valuesIn=Qq,F.without=YF,F.words=OO,F.wrap=UW,F.xor=XF,F.xorBy=ZF,F.xorWith=JF,F.zip=QF,F.zipObject=eW,F.zipObjectDeep=tW,F.zipWith=nW,F.entries=_O,F.entriesIn=EO,F.extend=bO,F.extendWith=lp,Dy(F,F),F.add=QV,F.attempt=TO,F.camelCase=rV,F.capitalize=SO,F.ceil=eH,F.clamp=eV,F.clone=KW,F.cloneDeep=XW,F.cloneDeepWith=ZW,F.cloneWith=YW,F.conformsTo=JW,F.deburr=AO,F.defaultTo=kV,F.divide=tH,F.endsWith=iV,F.eq=oa,F.escape=aV,F.escapeRegExp=oV,F.every=hW,F.find=gW,F.findIndex=X3,F.findKey=Pq,F.findLast=vW,F.findLastIndex=Z3,F.findLastKey=Cq,F.floor=nH,F.forEach=rO,F.forEachRight=iO,F.forIn=jq,F.forInRight=Mq,F.forOwn=kq,F.forOwnRight=Rq,F.get=jy,F.gt=QW,F.gte=eq,F.has=Nq,F.hasIn=My,F.head=Q3,F.identity=Xr,F.includes=xW,F.indexOf=vF,F.inRange=tV,F.invoke=Bq,F.isArguments=Us,F.isArray=ht,F.isArrayBuffer=tq,F.isArrayLike=Kr,F.isArrayLikeObject=Pn,F.isBoolean=nq,F.isBuffer=rs,F.isDate=rq,F.isElement=iq,F.isEmpty=aq,F.isEqual=oq,F.isEqualWith=sq,F.isError=Py,F.isFinite=uq,F.isFunction=io,F.isInteger=dO,F.isLength=up,F.isMap=hO,F.isMatch=cq,F.isMatchWith=lq,F.isNaN=fq,F.isNative=dq,F.isNil=pq,F.isNull=hq,F.isNumber=pO,F.isObject=yn,F.isObjectLike=En,F.isPlainObject=pf,F.isRegExp=Cy,F.isSafeInteger=gq,F.isSet=gO,F.isString=cp,F.isSymbol=gi,F.isTypedArray=lc,F.isUndefined=vq,F.isWeakMap=mq,F.isWeakSet=yq,F.join=xF,F.kebabCase=sV,F.last=$i,F.lastIndexOf=_F,F.lowerCase=uV,F.lowerFirst=cV,F.lt=bq,F.lte=wq,F.max=rH,F.maxBy=iH,F.mean=aH,F.meanBy=oH,F.min=sH,F.minBy=uH,F.stubArray=Ly,F.stubFalse=$y,F.stubObject=GV,F.stubString=KV,F.stubTrue=YV,F.multiply=cH,F.nth=EF,F.noConflict=BV,F.noop=Ny,F.now=ap,F.pad=lV,F.padEnd=fV,F.padStart=dV,F.parseInt=hV,F.random=nV,F.reduce=OW,F.reduceRight=TW,F.repeat=pV,F.replace=gV,F.result=Uq,F.round=lH,F.runInContext=J,F.sample=CW,F.size=kW,F.snakeCase=vV,F.some=RW,F.sortedIndex=jF,F.sortedIndexBy=MF,F.sortedIndexOf=kF,F.sortedLastIndex=RF,F.sortedLastIndexBy=IF,F.sortedLastIndexOf=DF,F.startCase=yV,F.startsWith=bV,F.subtract=fH,F.sum=dH,F.sumBy=hH,F.template=wV,F.times=XV,F.toFinite=ao,F.toInteger=wt,F.toLength=mO,F.toLower=xV,F.toNumber=Bi,F.toSafeInteger=xq,F.toString=Ft,F.toUpper=_V,F.trim=EV,F.trimEnd=SV,F.trimStart=AV,F.truncate=OV,F.unescape=TV,F.uniqueId=JV,F.upperCase=PV,F.upperFirst=ky,F.each=rO,F.eachRight=iO,F.first=Q3,Dy(F,function(){var f={};return _a(F,function(p,x){Gt.call(F.prototype,x)||(f[x]=p)}),f}(),{chain:!1}),F.VERSION=r,Ri(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){F[f].placeholder=F}),Ri(["drop","take"],function(f,p){jt.prototype[f]=function(x){x=x===n?1:zn(wt(x),0);var T=this.__filtered__&&!p?new jt(this):this.clone();return T.__filtered__?T.__takeCount__=pr(x,T.__takeCount__):T.__views__.push({size:pr(x,W),type:f+(T.__dir__<0?"Right":"")}),T},jt.prototype[f+"Right"]=function(x){return this.reverse()[f](x).reverse()}}),Ri(["filter","map","takeWhile"],function(f,p){var x=p+1,T=x==C||x==N;jt.prototype[f]=function(k){var q=this.clone();return q.__iteratees__.push({iteratee:tt(k,3),type:x}),q.__filtered__=q.__filtered__||T,q}}),Ri(["head","last"],function(f,p){var x="take"+(p?"Right":"");jt.prototype[f]=function(){return this[x](1).value()[0]}}),Ri(["initial","tail"],function(f,p){var x="drop"+(p?"":"Right");jt.prototype[f]=function(){return this.__filtered__?new jt(this):this[x](1)}}),jt.prototype.compact=function(){return this.filter(Xr)},jt.prototype.find=function(f){return this.filter(f).head()},jt.prototype.findLast=function(f){return this.reverse().find(f)},jt.prototype.invokeMap=_t(function(f,p){return typeof f=="function"?new jt(this):this.map(function(x){return uf(x,f,p)})}),jt.prototype.reject=function(f){return this.filter(sp(tt(f)))},jt.prototype.slice=function(f,p){f=wt(f);var x=this;return x.__filtered__&&(f>0||p<0)?new jt(x):(f<0?x=x.takeRight(-f):f&&(x=x.drop(f)),p!==n&&(p=wt(p),x=p<0?x.dropRight(-p):x.take(p-f)),x)},jt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},jt.prototype.toArray=function(){return this.take(W)},_a(jt.prototype,function(f,p){var x=/^(?:filter|find|map|reject)|While$/.test(p),T=/^(?:head|last)$/.test(p),k=F[T?"take"+(p=="last"?"Right":""):p],q=T||/^find/.test(p);k&&(F.prototype[p]=function(){var G=this.__wrapped__,X=T?[1]:arguments,te=G instanceof jt,we=X[0],xe=te||ht(G),Ee=function(Ct){var kt=k.apply(F,Xo([Ct],X));return T&&je?kt[0]:kt};xe&&x&&typeof we=="function"&&we.length!=1&&(te=xe=!1);var je=this.__chain__,We=!!this.__actions__.length,nt=q&&!je,xt=te&&!We;if(!q&&xe){G=xt?G:new jt(this);var rt=f.apply(G,X);return rt.__actions__.push({func:rp,args:[Ee],thisArg:n}),new Di(rt,je)}return nt&&xt?f.apply(this,X):(rt=this.thru(Ee),nt?T?rt.value()[0]:rt.value():rt)})}),Ri(["pop","push","shift","sort","splice","unshift"],function(f){var p=Ch[f],x=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",T=/^(?:pop|shift)$/.test(f);F.prototype[f]=function(){var k=arguments;if(T&&!this.__chain__){var q=this.value();return p.apply(ht(q)?q:[],k)}return this[x](function(G){return p.apply(ht(G)?G:[],k)})}}),_a(jt.prototype,function(f,p){var x=F[p];if(x){var T=x.name+"";Gt.call(ac,T)||(ac[T]=[]),ac[T].push({name:p,func:x})}}),ac[Xh(n,b).name]=[{name:"wrapper",func:n}],jt.prototype.clone=TB,jt.prototype.reverse=PB,jt.prototype.value=CB,F.prototype.at=iW,F.prototype.chain=aW,F.prototype.commit=oW,F.prototype.next=sW,F.prototype.plant=cW,F.prototype.reverse=lW,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=fW,F.prototype.first=F.prototype.head,ef&&(F.prototype[ef]=uW),F},nc=oB();$s?(($s.exports=nc)._=nc,Im._=nc):ir._=nc}).call(vwe)}(Zf,Zf.exports)),Zf.exports}var j6;function yl(){return j6||(j6=1,function(e){var t=ua&&ua.__createBinding||(Object.create?function(R,W,U,Y){Y===void 0&&(Y=U);var ae=Object.getOwnPropertyDescriptor(W,U);(!ae||("get"in ae?!W.__esModule:ae.writable||ae.configurable))&&(ae={enumerable:!0,get:function(){return W[U]}}),Object.defineProperty(R,Y,ae)}:function(R,W,U,Y){Y===void 0&&(Y=U),R[Y]=W[U]}),n=ua&&ua.__setModuleDefault||(Object.create?function(R,W){Object.defineProperty(R,"default",{enumerable:!0,value:W})}:function(R,W){R.default=W}),r=ua&&ua.__importStar||function(R){if(R&&R.__esModule)return R;var W={};if(R!=null)for(var U in R)U!=="default"&&Object.prototype.hasOwnProperty.call(R,U)&&t(W,R,U);return n(W,R),W},i=ua&&ua.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.validateArcs=e.clearOuterArcs=e.clearArcs=e.redrawArcs=e.getCoordByValue=e.createGradientElement=e.getColors=e.applyGradientColors=e.getArcDataByPercentage=e.getArcDataByValue=e.applyColors=e.setupTooltip=e.setupArcs=e.drawArc=e.setArcData=e.hideTooltip=void 0;var a=r(Tm()),o=Om,s=r(yl()),u=i(YN()),c=gwe(),l=zl(),d=mwe(),h=function(R,W,U){if(W.data.tooltip!=null){var Y=W.data.tooltip.text!=U.tooltip.current.text();Y&&(U.tooltip.current.html(W.data.tooltip.text).style("position","absolute").style("display","block").style("opacity",1),g(W.data.tooltip,W.data.color,U)),U.tooltip.current.style("left",R.pageX+15+"px").style("top",R.pageY-10+"px")}W.data.onMouseMove!=null&&W.data.onMouseMove(R)},g=function(R,W,U){Object.entries(c.defaultTooltipStyle).forEach(function(Y){var ae=Y[0],re=Y[1];return U.tooltip.current.style(a.camelCaseToKebabCase(ae),re)}),U.tooltip.current.style("background-color",W),R.style!=null&&Object.entries(R.style).forEach(function(Y){var ae=Y[0],re=Y[1];return U.tooltip.current.style(a.camelCaseToKebabCase(ae),re)})},m=function(R,W,U,Y){Y.cancel(),(0,e.hideTooltip)(U),W.data.onMouseLeave!=null&&W.data.onMouseLeave(R)},y=function(R){R.tooltip.current.html(" ").style("display","none")};e.hideTooltip=y;var v=function(R,W,U){R.target.style.stroke="none"},b=function(R,W){W.data.onMouseClick!=null&&W.data.onMouseClick(R)},_=function(R){var W,U,Y=R.props.arc,ae=R.props.minValue,re=R.props.maxValue,ge=Y?.nbSubArcs||((W=Y?.subArcs)===null||W===void 0?void 0:W.length)||1,ye=(0,e.getColors)(ge,R);if(Y?.subArcs&&!Y?.nbSubArcs){var _e=0,ce=0,pe=[],Oe=[],oe=[];(U=Y?.subArcs)===null||U===void 0||U.forEach(function(Qe,Ze){var Se,at=0,pn=0,St=Qe.limit;if(Qe.length!=null)at=Qe.length,St=a.getCurrentGaugeValueByPercentage(at+ce,R);else if(Qe.limit==null){pn=_e;var nn=void 0,gn=(Se=Y?.subArcs)===null||Se===void 0?void 0:Se.slice(Ze),Or=(1-a.calculatePercentage(ae,re,_e))*100;nn||(nn=Or/Math.max(gn?.length||1,1)/100),St=_e+nn*100,at=nn}else pn=St-_e,Ze!==0?at=a.calculatePercentage(ae,re,St)-ce:at=a.calculatePercentage(ae,re,pn);pe.push(at),Oe.push(St),ce=pe.reduce(function(hr,Tr){return hr+Tr},0),_e=St,Qe.tooltip!=null&&oe.push(Qe.tooltip)});var Re=Y.subArcs;R.arcData.current=pe.map(function(Qe,Ze){return{value:Qe,limit:Oe[Ze],color:ye[Ze],showTick:Re[Ze].showTick||!1,tooltip:Re[Ze].tooltip||void 0,onMouseMove:Re[Ze].onMouseMove,onMouseLeave:Re[Ze].onMouseLeave,onMouseClick:Re[Ze].onClick}})}else{var $e=re/ge;R.arcData.current=Array.from({length:ge},function(Qe,Ze){return{value:$e,limit:(Ze+1)*$e,color:ye[Ze],tooltip:void 0}})}};e.setArcData=_;var E=function(R,W){var U;W===void 0&&(W=void 0);var Y=W??a.calculatePercentage(R.props.minValue,R.props.maxValue,R.props.value),ae=(0,e.getArcDataByPercentage)(Y,R),re={value:Y,color:ae?.color||"white"},ge={value:1-Y,color:(U=R.props.arc)===null||U===void 0?void 0:U.emptyColor};return[re,ge]},S=function(R,W){W===void 0&&(W=!1);var U=R.dimensions.current.outerRadius;if(R.props.type==l.GaugeType.Grafana&&W){R.doughnut.current.selectAll(".outerSubArc").remove();var Y=(0,o.arc)().outerRadius(U+7).innerRadius(U+2).cornerRadius(0).padAngle(0),ae=R.doughnut.current.selectAll("anyString").data(R.pieChart.current(R.arcData.current)).enter().append("g").attr("class","outerSubArc"),re=ae.append("path").attr("d",Y);(0,e.applyColors)(re,R);var ge=(0,d.throttle)(function(ye,_e){return h(ye,_e,R)},20);ae.on("mouseleave",function(ye,_e){return m(ye,_e,R,ge)}).on("mouseout",function(ye,_e){return v(ye)}).on("mousemove",ge).on("click",function(ye,_e){return b(ye,_e)})}},A=function(R,W){var U,Y;W===void 0&&(W=void 0);var ae=R.props.arc,re=ae.padding,ge=ae.cornerRadius,ye=R.dimensions.current,_e=ye.innerRadius,ce=ye.outerRadius,pe={};!((Y=(U=R.props)===null||U===void 0?void 0:U.arc)===null||Y===void 0)&&Y.gradient?pe=[{value:1}]:pe=R.arcData.current,R.props.type==l.GaugeType.Grafana&&(pe=E(R,W));var Oe=R.props.type==l.GaugeType.Grafana?0:re,oe=R.props.type==l.GaugeType.Grafana?0:ge,Re=(0,o.arc)().outerRadius(ce).innerRadius(_e).cornerRadius(oe).padAngle(Oe),$e=R.doughnut.current.selectAll("anyString").data(R.pieChart.current(pe)).enter().append("g").attr("class","subArc"),Qe=$e.append("path").attr("d",Re);(0,e.applyColors)(Qe,R);var Ze=(0,d.throttle)(function(Se,at){return h(Se,at,R)},20);$e.on("mouseleave",function(Se,at){return m(Se,at,R,Ze)}).on("mouseout",function(Se,at){return v(Se)}).on("mousemove",Ze).on("click",function(Se,at){return b(Se,at)})};e.drawArc=A;var O=function(R,W){W===void 0&&(W=!1),(0,e.setupTooltip)(R),S(R,W),(0,e.drawArc)(R)};e.setupArcs=O;var P=function(R){var W=document.getElementsByClassName(u.default.arcTooltipClassname).length!=0;W||(0,o.select)("body").append("div").attr("class",u.default.arcTooltipClassname),R.tooltip.current=(0,o.select)(".".concat(u.default.arcTooltipClassname)),R.tooltip.current.on("mouseleave",function(){return s.hideTooltip(R)}).on("mouseout",function(){return s.hideTooltip(R)})};e.setupTooltip=P;var j=function(R,W){var U,Y;if(!((Y=(U=W.props)===null||U===void 0?void 0:U.arc)===null||Y===void 0)&&Y.gradient){var ae="subArc-linear-gradient-".concat(Math.random()),re=(0,e.createGradientElement)(W.doughnut.current,ae);(0,e.applyGradientColors)(re,W),R.style("fill",function(ge){return"url(#".concat(ae,")")})}else R.style("fill",function(ge){return ge.data.color})};e.applyColors=j;var $=function(R,W){return W.arcData.current.find(function(U){return R<=U.limit})};e.getArcDataByValue=$;var z=function(R,W){return(0,e.getArcDataByValue)(a.getCurrentGaugeValueByPercentage(R,W),W)};e.getArcDataByPercentage=z;var I=function(R,W){W.arcData.current.forEach(function(U){var Y,ae,re,ge,ye=a.normalize(U?.limit,(ae=(Y=W?.props)===null||Y===void 0?void 0:Y.minValue)!==null&&ae!==void 0?ae:0,(ge=(re=W?.props)===null||re===void 0?void 0:re.maxValue)!==null&&ge!==void 0?ge:100);R.append("stop").attr("offset","".concat(ye,"%")).style("stop-color",U.color).style("stop-opacity",1)})};e.applyGradientColors=I;var H=function(R,W){var U,Y=W.props.arc,ae=[];if(Y.colorArray)ae=Y.colorArray;else{var re=(U=Y.subArcs)===null||U===void 0?void 0:U.map(function(pe){return pe.color});ae=re?.some(function(pe){return pe!=null})?re:u.default.defaultColors}ae||(ae=["#fff"]);var ge=R===ae?.length;if(ge)return ae;for(var ye=(0,o.scaleLinear)().domain([1,R]).range([ae[0],ae[ae.length-1]]).interpolate(o.interpolateHsl),_e=[],ce=1;ce<=R;ce++)_e.push(ye(ce));return _e};e.getColors=H;var D=function(R,W){var U=R.append("defs").append("linearGradient").attr("id",W).attr("x1","0%").attr("x2","100%").attr("y1","0%").attr("y2","0%");return U};e.createGradientElement=D;var C=function(R,W,U,Y,ae){var re;U===void 0&&(U="inner"),Y===void 0&&(Y=0),ae===void 0&&(ae=1);var ge={outer:function(){return W.dimensions.current.outerRadius-Y+2},inner:function(){return W.dimensions.current.innerRadius*ae-Y+9},between:function(){var St=W.dimensions.current.outerRadius-W.dimensions.current.innerRadius,nn=W.dimensions.current.innerRadius+St-5;return nn}},ye=ge[U]();W.props.type===l.GaugeType.Grafana?ye+=5:W.props.type===l.GaugeType.Semicircle&&(ye+=-2);var _e=a.calculatePercentage(W.props.minValue,W.props.maxValue,R),ce=(re={},re[l.GaugeType.Grafana]={startAngle:a.degToRad(-23),endAngle:a.degToRad(203)},re[l.GaugeType.Semicircle]={startAngle:a.degToRad(.9),endAngle:a.degToRad(179.1)},re[l.GaugeType.Radial]={startAngle:a.degToRad(-39),endAngle:a.degToRad(219)},re),pe=ce[W.props.type],Oe=pe.startAngle,oe=pe.endAngle,Re=Oe+_e*(oe-Oe),$e=1*(W.dimensions.current.width/500),Qe=[0,-$e/2],Ze=[Qe[0]-ye*Math.cos(Re),Qe[1]-ye*Math.sin(Re)],Se=[W.dimensions.current.outerRadius,W.dimensions.current.outerRadius],at=Se[0]+Ze[0],pn=Se[1]+Ze[1];return{x:at,y:pn}};e.getCoordByValue=C;var L=function(R){(0,e.clearArcs)(R),(0,e.setArcData)(R),(0,e.setupArcs)(R)};e.redrawArcs=L;var N=function(R){R.doughnut.current.selectAll(".subArc").remove()};e.clearArcs=N;var V=function(R){R.doughnut.current.selectAll(".outerSubArc").remove()};e.clearOuterArcs=V;var Z=function(R){K(R)};e.validateArcs=Z;var K=function(R){for(var W,U=R.props.minValue,Y=R.props.maxValue,ae=R.props.arc,re=ae.subArcs,ge=void 0,ye=0,_e=((W=R.props.arc)===null||W===void 0?void 0:W.subArcs)||[];ye<_e.length;ye++){var ce=_e[ye],pe=ce.limit;if(typeof pe<"u"){if(pe<U||pe>Y)throw new Error("The limit of a subArc must be between the minValue and maxValue. The limit of the subArc is ".concat(pe));if(typeof ge<"u"&&pe<=ge)throw new Error("The limit of a subArc must be greater than the limit of the previous subArc. The limit of the subArc is ".concat(pe,`. If you're trying to specify length in percent of the arc, use property "length". refer to: https://github.com/antoniolago/react-gauge-component`));ge=pe}}if(re.length>0){var Oe=re[re.length-1];Oe.limit<Y&&(Oe.limit=Y)}}}(ua)),ua}var yi={},M6;function ywe(){return M6||(M6=1,function(e){var t=yi&&yi.__assign||function(){return t=Object.assign||function(D){for(var C,L=1,N=arguments.length;L<N;L++){C=arguments[L];for(var V in C)Object.prototype.hasOwnProperty.call(C,V)&&(D[V]=C[V])}return D},t.apply(this,arguments)},n=yi&&yi.__createBinding||(Object.create?function(D,C,L,N){N===void 0&&(N=L);var V=Object.getOwnPropertyDescriptor(C,L);(!V||("get"in V?!C.__esModule:V.writable||V.configurable))&&(V={enumerable:!0,get:function(){return C[L]}}),Object.defineProperty(D,N,V)}:function(D,C,L,N){N===void 0&&(N=L),D[N]=C[L]}),r=yi&&yi.__setModuleDefault||(Object.create?function(D,C){Object.defineProperty(D,"default",{enumerable:!0,value:C})}:function(D,C){D.default=C}),i=yi&&yi.__importStar||function(D){if(D&&D.__esModule)return D;var C={};if(D!=null)for(var L in D)L!=="default"&&Object.prototype.hasOwnProperty.call(D,L)&&n(C,D,L);return r(C,D),C},a=yi&&yi.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(e,"__esModule",{value:!0}),e.calculateAnchorAndAngleByValue=e.clearTicks=e.clearValueLabel=e.addValueText=e.addText=e.getLabelCoordsByValue=e.addTick=e.addTickValue=e.addTickLine=e.mapTick=e.addArcTicks=e.setupTicks=e.setupValueLabel=e.setupLabels=void 0;var o=i(Tm()),s=a(YN()),u=KN(),c=i(Om),l=zl(),d=yl(),h=function(D){(0,e.setupValueLabel)(D),(0,e.setupTicks)(D)};e.setupLabels=h;var g=function(D){var C,L=D.props.labels;!((C=L?.valueLabel)===null||C===void 0)&&C.hide||(0,e.addValueText)(D)};e.setupValueLabel=g;var m=function(D){var C,L,N,V,Z,K,R,W,U,Y=D.props.labels,ae=D.props.minValue,re=D.props.maxValue;if(s.default.debugTicksRadius)for(var ge=0;ge<re;ge++){var ye=(0,e.mapTick)(ge,D);(0,e.addTick)(ye,D)}else if(!(!((C=Y.tickLabels)===null||C===void 0)&&C.hideMinMax)){var _e=(N=(L=Y.tickLabels)===null||L===void 0?void 0:L.ticks)===null||N===void 0?void 0:N.some(function(oe){return oe.value==ae});if(!_e){var ce=(0,e.mapTick)(ae,D);(0,e.addTick)(ce,D)}var pe=(Z=(V=Y.tickLabels)===null||V===void 0?void 0:V.ticks)===null||Z===void 0?void 0:Z.some(function(oe){return oe.value==re});if(!pe){var Oe=(0,e.mapTick)(re,D);(0,e.addTick)(Oe,D)}}((R=(K=Y.tickLabels)===null||K===void 0?void 0:K.ticks)===null||R===void 0?void 0:R.length)>0&&((U=(W=Y.tickLabels)===null||W===void 0?void 0:W.ticks)===null||U===void 0||U.forEach(function(oe){(0,e.addTick)(oe,D)})),(0,e.addArcTicks)(D)};e.setupTicks=m;var y=function(D){var C;(C=D.arcData.current)===null||C===void 0||C.map(function(L){if(L.showTick)return L.limit}).forEach(function(L){L&&(0,e.addTick)((0,e.mapTick)(L,D),D)})};e.addArcTicks=y;var v=function(D,C){var L=C.props.labels.tickLabels;return{value:D,valueConfig:L?.defaultTickValueConfig,lineConfig:L?.defaultTickLineConfig}};e.mapTick=v;var b=function(D,C){var L,N,V,Z,K,R,W,U,Y,ae,re,ge,ye,_e,ce,pe,Oe,oe,Re=C.props.labels,$e=(0,e.calculateAnchorAndAngleByValue)(D?.value,C);$e.tickAnchor;var Qe=$e.angle,Ze=((L=D.lineConfig)===null||L===void 0?void 0:L.distanceFromArc)||((V=(N=Re?.tickLabels)===null||N===void 0?void 0:N.defaultTickLineConfig)===null||V===void 0?void 0:V.distanceFromArc)||0;((K=(Z=C.props.labels)===null||Z===void 0?void 0:Z.tickLabels)===null||K===void 0?void 0:K.type)=="outer"&&(Ze=-Ze);var Se=(0,e.getLabelCoordsByValue)(D?.value,C,Ze),at=((R=D.lineConfig)===null||R===void 0?void 0:R.color)||((U=(W=Re?.tickLabels)===null||W===void 0?void 0:W.defaultTickLineConfig)===null||U===void 0?void 0:U.color)||((Y=u.defaultTickLabels.defaultTickLineConfig)===null||Y===void 0?void 0:Y.color),pn=((ae=D.lineConfig)===null||ae===void 0?void 0:ae.width)||((ge=(re=Re?.tickLabels)===null||re===void 0?void 0:re.defaultTickLineConfig)===null||ge===void 0?void 0:ge.width)||((ye=u.defaultTickLabels.defaultTickLineConfig)===null||ye===void 0?void 0:ye.width),St=((_e=D.lineConfig)===null||_e===void 0?void 0:_e.length)||((pe=(ce=Re?.tickLabels)===null||ce===void 0?void 0:ce.defaultTickLineConfig)===null||pe===void 0?void 0:pe.length)||((Oe=u.defaultTickLabels.defaultTickLineConfig)===null||Oe===void 0?void 0:Oe.length),nn,gn;((oe=Re?.tickLabels)===null||oe===void 0?void 0:oe.type)=="inner"?(nn=Se.x+St*Math.cos(Qe*Math.PI/180),gn=Se.y+St*Math.sin(Qe*Math.PI/180)):(nn=Se.x-St*Math.cos(Qe*Math.PI/180),gn=Se.y-St*Math.sin(Qe*Math.PI/180));var Or=c.line(),hr;hr=[[Se.x,Se.y],[nn,gn]],C.g.current.append("path").datum(hr).attr("class",s.default.tickLineClassname).attr("d",Or).attr("stroke",at).attr("stroke-width",pn).attr("fill","none")};e.addTickLine=b;var _=function(D,C){var L,N,V,Z,K,R,W,U,Y,ae,re,ge,ye,_e,ce,pe,Oe,oe=C.props.labels,Re=C.props.arc,$e=Re.width,Qe=D?.value,Ze=(0,e.calculateAnchorAndAngleByValue)(Qe,C).tickAnchor,Se=27-$e*10,at=((L=oe?.tickLabels)===null||L===void 0?void 0:L.type)=="inner";at?Se-=10:Se=$e*10-10;var pn=((N=D.lineConfig)===null||N===void 0?void 0:N.distanceFromArc)||((Z=(V=oe?.tickLabels)===null||V===void 0?void 0:V.defaultTickLineConfig)===null||Z===void 0?void 0:Z.distanceFromArc)||0,St=((K=D.lineConfig)===null||K===void 0?void 0:K.length)||((W=(R=oe?.tickLabels)===null||R===void 0?void 0:R.defaultTickLineConfig)===null||W===void 0?void 0:W.length)||0,nn=I(D,C);nn||(at?(Se+=pn,Se+=St):(Se-=pn,Se-=St));var gn=(0,e.getLabelCoordsByValue)(Qe,C,Se),Or=((U=D.valueConfig)===null||U===void 0?void 0:U.style)||((ae=(Y=oe?.tickLabels)===null||Y===void 0?void 0:Y.defaultTickValueConfig)===null||ae===void 0?void 0:ae.style)||{};Or=t({},Or);var hr="",Tr=((re=D.valueConfig)===null||re===void 0?void 0:re.maxDecimalDigits)||((ye=(ge=oe?.tickLabels)===null||ge===void 0?void 0:ge.defaultTickValueConfig)===null||ye===void 0?void 0:ye.maxDecimalDigits);!((_e=D.valueConfig)===null||_e===void 0)&&_e.formatTextValue?hr=D.valueConfig.formatTextValue(o.floatingNumber(Qe,Tr)):!((pe=(ce=oe?.tickLabels)===null||ce===void 0?void 0:ce.defaultTickValueConfig)===null||pe===void 0)&&pe.formatTextValue?hr=oe.tickLabels.defaultTickValueConfig.formatTextValue(o.floatingNumber(Qe,Tr)):C.props.minValue===0&&C.props.maxValue===100?(hr=o.floatingNumber(Qe,Tr).toString(),hr+="%"):hr=o.floatingNumber(Qe,Tr).toString(),((Oe=oe?.tickLabels)===null||Oe===void 0?void 0:Oe.type)=="inner"?(Ze==="end"&&(gn.x+=10),Ze==="start"&&(gn.x-=10)):Ze==="middle"&&(gn.y+=2),Ze==="middle"?gn.y+=0:gn.y+=3,Or.textAnchor=Ze,(0,e.addText)(hr,gn.x,gn.y,C,Or,s.default.tickValueClassname)};e.addTickValue=_;var E=function(D,C){C.props.labels;var L=I(D,C),N=H(D,C);L||(0,e.addTickLine)(D,C),!s.default.debugTicksRadius&&!N&&(0,e.addTickValue)(D,C)};e.addTick=E;var S=function(D,C,L){var N;L===void 0&&(L=0);var V=C.props.labels,Z=C.props.minValue,K=C.props.maxValue,R=(N=V.tickLabels)===null||N===void 0?void 0:N.type,W=(0,d.getCoordByValue)(D,C,R,L,.93),U=W.x,Y=W.y;return o.calculatePercentage(Z,K,D),C.props.type==l.GaugeType.Radial&&(Y+=3),{x:U,y:Y}};e.getLabelCoordsByValue=S;var A=function(D,C,L,N,V,Z,K){K===void 0&&(K=0);var R=N.g.current.append("g").attr("class",Z).attr("transform","translate(".concat(C,", ").concat(L,")")).append("text").text(D);O(R,V),R.attr("transform","rotate(".concat(K,")"))};e.addText=A;var O=function(D,C){Object.entries(C).forEach(function(L){var N=L[0],V=L[1];return D.style(o.camelCaseToKebabCase(N),V)}),C!=null&&Object.entries(C).forEach(function(L){var N=L[0],V=L[1];return D.style(o.camelCaseToKebabCase(N),V)})},P=function(D){var C,L,N,V=D.props.labels,Z=D.props.value,K=V?.valueLabel,R=20,W="",U=(C=V?.valueLabel)===null||C===void 0?void 0:C.maxDecimalDigits,Y=o.floatingNumber(Z,U);K.formatTextValue?W=K.formatTextValue(Y):D.props.minValue===0&&D.props.maxValue===100?(W=Y.toString(),W+="%"):W=Y.toString();var ae=4,re=W?.length||0,ge=re>ae?ae/re*1.5:1,ye=(L=K?.style)===null||L===void 0?void 0:L.fontSize,_e=t({},K.style),ce=D.dimensions.current.outerRadius,pe=0;_e.textAnchor="middle",D.props.type==l.GaugeType.Semicircle?pe=D.dimensions.current.outerRadius/1.5+R:D.props.type==l.GaugeType.Radial?pe=D.dimensions.current.outerRadius*1.45+R:D.props.type==l.GaugeType.Grafana&&(pe=D.dimensions.current.outerRadius*1+R);var Oe=(D.props.type==l.GaugeType.Radial,.003);ge=D.dimensions.current.width*Oe*ge;var oe=parseInt(ye,10)*ge;_e.fontSize=oe+"px",K.matchColorWithArc&&(_e.fill=((N=(0,d.getArcDataByValue)(Z,D))===null||N===void 0?void 0:N.color)||"white"),(0,e.addText)(W,ce,pe,D,_e,s.default.valueLabelClassname)};e.addValueText=P;var j=function(D){return D.g.current.selectAll(".".concat(s.default.valueLabelClassname)).remove()};e.clearValueLabel=j;var $=function(D){D.g.current.selectAll(".".concat(s.default.tickLineClassname)).remove(),D.g.current.selectAll(".".concat(s.default.tickValueClassname)).remove()};e.clearTicks=$;var z=function(D,C){var L,N,V=C.props.labels,Z=C.props.minValue,K=C.props.maxValue,R=o.calculatePercentage(Z,K,D),W=(L={},L[l.GaugeType.Grafana]={startAngle:-20,endAngle:220},L[l.GaugeType.Semicircle]={startAngle:0,endAngle:180},L[l.GaugeType.Radial]={startAngle:-42,endAngle:266},L),U=W[C.props.type],Y=U.startAngle,ae=U.endAngle,re=Y+R*100*ae/100,ge=R<.5,ye=R>s.default.rangeBetweenCenteredTickValueLabel[0]&&R<s.default.rangeBetweenCenteredTickValueLabel[1],_e="",ce=((N=V?.tickLabels)===null||N===void 0?void 0:N.type)=="inner";return ye?_e="middle":ge?_e=ce?"start":"end":_e=ce?"end":"start",{tickAnchor:_e,angle:re}};e.calculateAnchorAndAngleByValue=z;var I=function(D,C){var L,N,V,Z,K=C.props.labels,R=(L=u.defaultTickLabels.defaultTickLineConfig)===null||L===void 0?void 0:L.hide,W=R,U=(V=(N=K?.tickLabels)===null||N===void 0?void 0:N.defaultTickLineConfig)===null||V===void 0?void 0:V.hide;U!=null&&(W=U);var Y=(Z=D.lineConfig)===null||Z===void 0?void 0:Z.hide;return Y!=null&&(W=Y),W},H=function(D,C){var L,N,V,Z,K=C.props.labels,R=(L=u.defaultTickLabels.defaultTickValueConfig)===null||L===void 0?void 0:L.hide,W=R,U=(V=(N=K?.tickLabels)===null||N===void 0?void 0:N.defaultTickValueConfig)===null||V===void 0?void 0:V.hide;U!=null&&(W=U);var Y=(Z=D.valueConfig)===null||Z===void 0?void 0:Z.hide;return Y!=null&&(W=Y),W}}(yi)),yi}var ho={},k6;function bwe(){return k6||(k6=1,function(e){var t=ho&&ho.__createBinding||(Object.create?function(A,O,P,j){j===void 0&&(j=P);var $=Object.getOwnPropertyDescriptor(O,P);(!$||("get"in $?!O.__esModule:$.writable||$.configurable))&&($={enumerable:!0,get:function(){return O[P]}}),Object.defineProperty(A,j,$)}:function(A,O,P,j){j===void 0&&(j=P),A[j]=O[P]}),n=ho&&ho.__setModuleDefault||(Object.create?function(A,O){Object.defineProperty(A,"default",{enumerable:!0,value:O})}:function(A,O){A.default=O}),r=ho&&ho.__importStar||function(A){if(A&&A.__esModule)return A;var O={};if(A!=null)for(var P in A)P!=="default"&&Object.prototype.hasOwnProperty.call(A,P)&&t(O,A,P);return n(O,A),O};Object.defineProperty(e,"__esModule",{value:!0}),e.clearPointerElement=e.addPointerElement=e.translatePointer=e.drawPointer=void 0;var i=Om,a=nA(),o=yl(),s=r(Tm()),u=r(yl()),c=zl(),l=function(A,O){var P;O===void 0&&(O=!1),A.pointer.current.context=d(A);var j=A.pointer.current.context,$=j.prevPercent,z=j.currentPercent,I=j.prevProgress,H=A.props.pointer,D=((P=A.prevProps)===null||P===void 0?void 0:P.current.value)==null;(D||O)&&A.props.type!=c.GaugeType.Grafana&&h(A);var C=(!O||D)&&H.animate;C?A.doughnut.current.transition().delay(H.animationDelay).ease(H.elastic?i.easeElastic:i.easeExpOut).duration(H.animationDuration).tween("progress",function(){var L=(0,i.interpolateNumber)($,z);return function(N){var V=L(N);y(V,I)&&(A.props.type==c.GaugeType.Grafana?(u.clearArcs(A),u.drawArc(A,V)):g(V,A)),A.pointer.current.context.prevProgress=V}}):g(z,A)};e.drawPointer=l;var d=function(A){var O,P=A.props.value,j=A.props.pointer,$=j.length,z=A.props.minValue,I=A.props.maxValue;A.pointer.current.context.pointerPath;var H=b(A),D=j.type==a.PointerType.Needle?$:.2,C=[a.PointerType.Needle,a.PointerType.Arrow],L={centerPoint:[0,-H/2],pointerRadius:b(A),pathLength:A.dimensions.current.outerRadius*D,currentPercent:s.calculatePercentage(z,I,P),prevPercent:s.calculatePercentage(z,I,((O=A.prevProps)===null||O===void 0?void 0:O.current.value)||z),prevProgress:0,pathStr:"",shouldDrawPath:C.includes(j.type),prevColor:""};return L},h=function(A){var O=A.props.value,P=A.props.pointer,j=A.pointer.current.context,$=j.shouldDrawPath,z=j.centerPoint,I=j.pointerRadius;j.pathStr;var H=j.currentPercent,D=j.prevPercent;$&&(A.pointer.current.context.pathStr=v(A,D||H),A.pointer.current.path=A.pointer.current.element.append("path").attr("d",A.pointer.current.context.pathStr).attr("fill",P.color)),P.type==a.PointerType.Needle?A.pointer.current.element.append("circle").attr("cx",z[0]).attr("cy",z[1]).attr("r",I).attr("fill",P.color):P.type==a.PointerType.Blob&&A.pointer.current.element.append("circle").attr("cx",z[0]).attr("cy",z[1]).attr("r",I).attr("fill",P.baseColor).attr("stroke",P.color).attr("stroke-width",P.strokeWidth*I/10),m(I,O,A)},g=function(A,O){var P,j=O.props.pointer,$=O.pointer.current.context,z=$.pointerRadius,I=$.shouldDrawPath,H=$.prevColor;if(m(z,A,O),I&&O.props.type!=c.GaugeType.Grafana&&O.pointer.current.path.attr("d",v(O,A)),j.type==a.PointerType.Blob){var D=(P=u.getArcDataByPercentage(A,O))===null||P===void 0?void 0:P.color,C=D!=H;C&&O.pointer.current.element.select("circle").attr("stroke",D);var L=j.strokeWidth*z/10;O.pointer.current.element.select("circle").attr("stroke-width",L),O.pointer.current.context.prevColor=D}},m=function(A,O,P){var j,$=P.props.pointer,z=$.type,I=P.dimensions,H=s.getCurrentGaugeValueByPercentage(O,P),D=(j={},j[a.PointerType.Needle]=function(){(0,e.translatePointer)(I.current.outerRadius,I.current.outerRadius,P)},j[a.PointerType.Arrow]=function(){var C=(0,o.getCoordByValue)(H,P,"inner",0,.7),L=C.x,N=C.y;L-=1,N+=A-3,(0,e.translatePointer)(L,N,P)},j[a.PointerType.Blob]=function(){var C=(0,o.getCoordByValue)(H,P,"between",0,.75),L=C.x,N=C.y;L-=1,N+=A,(0,e.translatePointer)(L,N,P)},j);return D[z]()},y=function(A,O,P){var j=A>1||A<0,$=Math.abs(A-O)<1e-4,z=A==O;return!$&&!z&&!j},v=function(A,O){var P=A.pointer.current.context,j=P.centerPoint,$=P.pointerRadius,z=P.pathLength,I=s.degToRad(A.props.type==c.GaugeType.Semicircle?0:-42),H=s.degToRad(A.props.type==c.GaugeType.Semicircle?180:223),D=I+O*(H-I),C=[j[0]-z*Math.cos(D),j[1]-z*Math.sin(D)],L=D-Math.PI/2,N=[j[0]-$*Math.cos(L),j[1]-$*Math.sin(L)],V=D+Math.PI/2,Z=[j[0]-$*Math.cos(V),j[1]-$*Math.sin(V)],K="M ".concat(N[0]," ").concat(N[1]," L ").concat(C[0]," ").concat(C[1]," L ").concat(Z[0]," ").concat(Z[1]);return K},b=function(A){var O=A.props.pointer,P=O.width;return P*(A.dimensions.current.width/500)},_=function(A,O,P){return P.pointer.current.element.attr("transform","translate("+A+", "+O+")")};e.translatePointer=_;var E=function(A){return A.pointer.current.element=A.g.current.append("g").attr("class","pointer")};e.addPointerElement=E;var S=function(A){return A.pointer.current.element.selectAll("*").remove()};e.clearPointerElement=S}(ho)),ho}var R6;function wwe(){return R6||(R6=1,function(e){var t=fo&&fo.__createBinding||(Object.create?function(y,v,b,_){_===void 0&&(_=b);var E=Object.getOwnPropertyDescriptor(v,b);(!E||("get"in E?!v.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return v[b]}}),Object.defineProperty(y,_,E)}:function(y,v,b,_){_===void 0&&(_=b),y[_]=v[b]}),n=fo&&fo.__setModuleDefault||(Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v}),r=fo&&fo.__importStar||function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var b in y)b!=="default"&&Object.prototype.hasOwnProperty.call(y,b)&&t(v,y,b);return n(v,y),v};Object.defineProperty(e,"__esModule",{value:!0}),e.clearChart=e.centerGraph=e.calculateRadius=e.updateDimensions=e.renderChart=e.calculateAngles=e.initChart=void 0;var i=zl(),a=r(yl()),o=r(ywe()),s=r(bwe()),u=function(y,v){var b,_,E,S,A=y.dimensions.current.angles;!((_=(b=y.resizeObserver)===null||b===void 0?void 0:b.current)===null||_===void 0)&&_.disconnect&&((S=(E=y.resizeObserver)===null||E===void 0?void 0:E.current)===null||S===void 0||S.disconnect());var O=JSON.stringify(y.prevProps.current.value)!==JSON.stringify(y.props.value);if(O&&!v){(0,e.renderChart)(y,!1);return}y.container.current.select("svg").remove(),y.svg.current=y.container.current.append("svg"),y.g.current=y.svg.current.append("g"),y.doughnut.current=y.g.current.append("g").attr("class","doughnut"),(0,e.calculateAngles)(y),y.pieChart.current.value(function(P){return P.value}).startAngle(A.startAngle).endAngle(A.endAngle).sort(null),s.addPointerElement(y),(0,e.renderChart)(y,!0)};e.initChart=u;var c=function(y){var v=y.dimensions.current.angles;y.props.type==i.GaugeType.Semicircle?(v.startAngle=-Math.PI/2+.02,v.endAngle=Math.PI/2-.02):y.props.type==i.GaugeType.Radial?(v.startAngle=-Math.PI/1.37,v.endAngle=Math.PI/1.37):y.props.type==i.GaugeType.Grafana&&(v.startAngle=-Math.PI/1.6,v.endAngle=Math.PI/1.6)};e.calculateAngles=c;var l=function(y,v){var b,_,E,S,A,O;v===void 0&&(v=!1);var P=y.dimensions,j=y.props.arc,$=y.props.labels;if(v){(0,e.updateDimensions)(y),y.g.current.attr("transform","translate("+P.current.margin.left+", 35)"),(0,e.calculateRadius)(y),y.doughnut.current.attr("transform","translate("+P.current.outerRadius+", "+P.current.outerRadius+")"),y.doughnut.current.on("mouseleave",function(){return a.hideTooltip(y)}).on("mouseout",function(){return a.hideTooltip(y)});var z=j.width;P.current.innerRadius=P.current.outerRadius*(1-z),(0,e.clearChart)(y),a.setArcData(y),a.setupArcs(y,v),o.setupLabels(y),!((E=(_=y.props)===null||_===void 0?void 0:_.pointer)===null||E===void 0)&&E.hide||s.drawPointer(y,v);var I=(b={},b[i.GaugeType.Semicircle]=50,b[i.GaugeType.Radial]=55,b[i.GaugeType.Grafana]=55,b),H=y.doughnut.current.node().getBoundingClientRect().height,D=y.container.current.node().getBoundingClientRect().width,C=y.props.type;y.svg.current.attr("width",D).attr("height",H+I[C])}else{var L=JSON.stringify(y.prevProps.current.arc)!==JSON.stringify(y.props.arc),N=JSON.stringify(y.prevProps.current.pointer)!==JSON.stringify(y.props.pointer),V=JSON.stringify(y.prevProps.current.value)!==JSON.stringify(y.props.value),Z=JSON.stringify((S=y.prevProps.current.labels)===null||S===void 0?void 0:S.tickLabels)!==JSON.stringify($.tickLabels),K=L;K&&(a.clearArcs(y),a.setArcData(y),a.setupArcs(y,v));var R=N||V&&!(!((O=(A=y.props)===null||A===void 0?void 0:A.pointer)===null||O===void 0)&&O.hide);R&&s.drawPointer(y),(L||Z)&&(o.clearTicks(y),o.setupTicks(y)),V&&(o.clearValueLabel(y),o.setupValueLabel(y))}};e.renderChart=l;var d=function(y){var v=y.props.marginInPercent,b=y.dimensions,_=y.container.current.node().getBoundingClientRect(),E=_.width,S=_.height;b.current.fixedHeight==0&&(b.current.fixedHeight=S+200);var A=typeof v=="number",O=A?v:v.left,P=A?v:v.right,j=A?v:v.top,$=A?v:v.bottom;b.current.margin.left=E*O,b.current.margin.right=E*P,b.current.width=E-b.current.margin.left-b.current.margin.right,b.current.margin.top=b.current.fixedHeight*j,b.current.margin.bottom=b.current.fixedHeight*$,b.current.height=b.current.width/2-b.current.margin.top-b.current.margin.bottom};e.updateDimensions=d;var h=function(y){var v=y.dimensions;v.current.width<2*v.current.height?v.current.outerRadius=(v.current.width-v.current.margin.left-v.current.margin.right)/2:v.current.outerRadius=v.current.height-v.current.margin.top-v.current.margin.bottom+35,(0,e.centerGraph)(y)};e.calculateRadius=h;var g=function(y){var v=y.dimensions;v.current.margin.left=v.current.width/2-v.current.outerRadius+v.current.margin.right,y.g.current.attr("transform","translate("+v.current.margin.left+", "+v.current.margin.top+")")};e.centerGraph=g;var m=function(y){o.clearTicks(y),o.clearValueLabel(y),s.clearPointerElement(y),a.clearArcs(y)};e.clearChart=m}(fo)),fo}var Jb={},I6;function xwe(){return I6||(I6=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultDimensions=e.defaultAngles=e.defaultMargins=void 0,e.defaultMargins={top:0,right:0,bottom:0,left:0},e.defaultAngles={startAngle:0,endAngle:0,startAngleDeg:0,endAngleDeg:0},e.defaultDimensions={width:0,height:0,margin:e.defaultMargins,outerRadius:0,innerRadius:0,angles:e.defaultAngles,fixedHeight:0}}(Jb)),Jb}var D6;function _we(){if(D6)return Zr;D6=1;var e=Zr&&Zr.__assign||function(){return e=Object.assign||function(m){for(var y,v=1,b=arguments.length;v<b;v++){y=arguments[v];for(var _ in y)Object.prototype.hasOwnProperty.call(y,_)&&(m[_]=y[_])}return m},e.apply(this,arguments)},t=Zr&&Zr.__createBinding||(Object.create?function(m,y,v,b){b===void 0&&(b=v);var _=Object.getOwnPropertyDescriptor(y,v);(!_||("get"in _?!y.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return y[v]}}),Object.defineProperty(m,b,_)}:function(m,y,v,b){b===void 0&&(b=v),m[b]=y[v]}),n=Zr&&Zr.__setModuleDefault||(Object.create?function(m,y){Object.defineProperty(m,"default",{enumerable:!0,value:y})}:function(m,y){m.default=y}),r=Zr&&Zr.__importStar||function(m){if(m&&m.__esModule)return m;var y={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(y,m,v);return n(y,m),y};Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.GaugeComponent=void 0;var i=r(M),a=Om,o=zl(),s=r(wwe()),u=r(yl()),c=Tm(),l=xwe(),d=nA(),h=GN(),g=function(m){var y=(0,i.useRef)({}),v=(0,i.useRef)({}),b=(0,i.useRef)({}),_=(0,i.useRef)({}),E=(0,i.useRef)(!0),S=(0,i.useRef)(0),A=(0,i.useRef)(e({},d.defaultPointerRef)),O=(0,i.useRef)({}),P=(0,i.useRef)([]),j=(0,i.useRef)((0,a.pie)()),$=(0,i.useRef)(e({},l.defaultDimensions)),z=(0,i.useRef)(m),I=(0,i.useRef)({}),H=(0,i.useRef)({}),D=(0,i.useRef)(null),C={props:z.current,resizeObserver:H,prevProps:I,svg:y,g:b,dimensions:$,doughnut:_,isFirstRun:E,currentProgress:S,pointer:A,container:O,arcData:P,pieChart:j,tooltip:v},L=function(){var R,W,U=e({},o.defaultGaugeProps);if(C.props=z.current=(0,c.mergeObjects)(U,m),((R=C.props.arc)===null||R===void 0?void 0:R.width)==((W=o.defaultGaugeProps.arc)===null||W===void 0?void 0:W.width)){var Y=z.current.arc;Y.width=(0,h.getArcWidthByType)(C.props.type)}C.props.marginInPercent==o.defaultGaugeProps.marginInPercent&&(z.current.marginInPercent=(0,o.getGaugeMarginByType)(C.props.type)),u.validateArcs(C)},N=function(){var R=JSON.stringify(I.current.arc)!==JSON.stringify(z.current.arc),W=JSON.stringify(I.current.pointer)!==JSON.stringify(z.current.pointer),U=JSON.stringify(I.current.value)!==JSON.stringify(z.current.value),Y=JSON.stringify(I.current.minValue)!==JSON.stringify(z.current.minValue),ae=JSON.stringify(I.current.maxValue)!==JSON.stringify(z.current.maxValue);return R||W||U||Y||ae};(0,i.useLayoutEffect)(function(){L(),E.current=(0,c.isEmptyObject)(O.current),E.current&&(O.current=(0,a.select)(D.current)),N()&&s.initChart(C,E.current),C.prevProps.current=z.current},[m]),(0,i.useEffect)(function(){var R=function(){return s.renderChart(C,!0)};return window.addEventListener("resize",R),function(){return window.removeEventListener("resize",R)}},[m]),(0,i.useEffect)(function(){var R=D.current;if(R){var W=new ResizeObserver(function(){s.renderChart(C,!0)});return C.resizeObserver.current=W,R.parentNode&&W.observe(R.parentNode),function(){var U;C.resizeObserver&&((U=C.resizeObserver.current)===null||U===void 0||U.disconnect(),delete C.resizeObserver.current)}}},[]);var V=m.id,Z=m.style,K=m.className;return m.type,i.default.createElement("div",{id:V,className:"".concat(C.props.type,"-gauge").concat(K?" "+K:""),style:Z,ref:function(R){return D.current=R}})};return Zr.GaugeComponent=g,Zr.default=g,Zr}var N6;function Ewe(){if(N6)return os;N6=1;var e=os&&os.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(os,"__esModule",{value:!0}),os.GaugeComponent=void 0;var t=e(_we());return os.GaugeComponent=t.default,os.default=t.default,os}var Swe=Ewe();const Awe=Va(Swe);function Owe({value:e,label:t,width:n}){const r=ie.useTheme(),[i,a]=M.useState(0);return M.useEffect(()=>{const o=setTimeout(()=>a(e),50);return()=>clearTimeout(o)},[e]),w.jsxs(ie.Box,{style:{margin:"auto",position:"relative",width:n,aspectRatio:"1 / 1"},children:[w.jsx(Awe,{value:i,type:"radial",style:{width:n,margin:"auto"},labels:{tickLabels:{defaultTickLineConfig:{hide:!0},defaultTickValueConfig:{style:{fill:r.palette.mode==="dark"?"#fff":"#000",fontSize:"0.8rem"},formatTextValue:o=>`${o}`},ticks:[{value:10},{value:20},{value:30},{value:40},{value:50},{value:60},{value:70},{value:80},{value:90}]},valueLabel:{maxDecimalDigits:1,matchColorWithArc:r.palette.mode==="dark",style:{textShadow:r.palette.mode==="dark"?"0 0 5px #000":"0 0 5px #fff",fill:r.palette.mode==="dark"?"#fff":"#000"},formatTextValue:o=>o===0?"":`${o} %`}},arc:{colorArray:["#EA4228","#5BE12C"],subArcs:[{limit:10},{limit:20},{limit:30},{limit:40},{limit:50},{limit:60},{limit:70},{limit:80},{limit:90},{limit:100}],padding:.02,width:.3}}),w.jsx("div",{style:{position:"absolute",bottom:"15%",left:0,right:0,textAlign:"center",fontSize:"1rem",color:r.palette.mode==="dark"?"#fff":"#000",pointerEvents:"none"},children:t})]})}function Twe({isGraphsVisible:e,height:t,pad:n,children:r}){const i=M.Children.toArray(r);return w.jsx(xn,{gap:"1vw",sx:{padding:n||"0",height:e?t:0,visibility:e?"visible":"hidden",opacity:e?1:0,transition:"visibility 0s, opacity .5s linear, height .5s linear"},children:i.map(a=>a)})}const Rv=["#8884d8","#82ca9d","#ff7300"],Bc=["#ff0000","#00ff00","#0000ff","#ff00ff","#00ffff","#ffff00"];function Pwe({lines:e,scatters:t,area:n}){return w.jsxs(qd,{gap:1,flexWrap:"wrap",children:[e.map((r,i)=>w.jsx(Qb,{color:r.color||Rv[i%Rv.length],name:r.name,shape:"line"},r.name)),t.map((r,i)=>w.jsx(Qb,{color:r.color||Bc[i%Bc.length],name:r.name,shape:"circle"},r.name)),n&&w.jsx(Qb,{color:n.color||"green",name:n.name,shape:"square"},n.name)]})}function Qb({color:e,name:t,shape:n}){const{t:r}=Et.useTranslation();let i;switch(n){case"circle":i=w.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:e}});break;case"square":i=w.jsx("div",{style:{width:10,height:10,backgroundColor:e}});break;case"line":default:i=w.jsx("div",{style:{width:16,height:2,backgroundColor:e}});break}return w.jsxs(qd,{gap:1,children:[i,w.jsx("span",{style:{fontSize:12},children:r(t)})]})}function rA(e,t=0,n){if(e==null||isNaN(Number(e)))return e?.toString()||"0";const r=Number(e),i=n||_s.language||"en-US";return new Intl.NumberFormat(i,{minimumFractionDigits:t,maximumFractionDigits:t}).format(r)}function Cwe(e,t){return e.map(r=>{const i=r.data.find(a=>a.timestamp===t);return i?{seriesName:r.name,color:r.color,dataPoint:i,renderTooltip:r.renderTooltip}:null}).filter(r=>r!==null)}function jwe({payload:e,label:t,scatterSeries:n}){const{t:r}=Et.useTranslation();if(!e?.length||typeof t!="number")return null;const i=Cwe(n,t);return w.jsxs(ie.Paper,{style:{display:"flex",padding:8,pointerEvents:"none"},children:[w.jsx(Pi,{flex:1,gap:1,children:i.length!==0&&i.map(({seriesName:a,dataPoint:o,color:s,renderTooltip:u})=>w.jsxs(Pi,{children:[w.jsx(ie.Typography,{fontWeight:"bold",style:{color:s},children:r(a)}),u?.(o)]}))}),i.length!==0&&w.jsx(ie.Divider,{orientation:"vertical",flexItem:!0}),w.jsxs(Pi,{flex:1,children:[w.jsx(ie.Typography,{fontWeight:"bold",children:r("LINE_INFO")}),e.map((a,o)=>w.jsx(Zv,{fallback:0,value:rA(a.value),direction:dd.Row,captionStyle:{color:a.color},caption:r(a.name)},o))]})]})}function Mwe(e,t,n){return e.length===0?t.map(r=>({...r,alignToLineKey:r.alignToLineKey||n||"",data:[]})):t.map(r=>{const i=r.alignToLineKey||n||"",a=r.data.map(o=>{const s=o[r.timeKey],u=typeof s=="string"?new Date(s).getTime():s;let c=e[0],l=Math.abs(c.timestamp-u);for(let h=1;h<e.length;h++){const g=e[h],m=Math.abs(g.timestamp-u);m<l&&(c=g,l=m)}const d=c[i];return{...o,timestamp:c.timestamp,scatterValue:Number(d??0)}});return{...r,alignToLineKey:i,data:a}})}function kwe(e,t,n){const r=[],i=n*60*1e3,a=new Date(e),o=a.getMinutes(),s=o%n;if(s!==0){const c=n-s;a.setMinutes(o+c,0,0)}else a.setSeconds(0,0);let u=a.getTime();for(;u<=t;)r.push(u),u+=i;return r}function Rwe(e){const t=Math.pow(10,Math.floor(Math.log10(e))),n=e/t;return n<=1?1*t:n<=2?2*t:n<=2.5?2.5*t:n<=5?5*t:10*t}function Yp(e){let t=0;if(typeof e.maxValue=="number")t=e.maxValue;else if(e.preparedData&&typeof e.yKey=="string")t=Math.max(...e.preparedData.map(u=>u[e.yKey]??0));else return[];const n=t*1.1,r=n/10,i=Rwe(r);let a=Math.ceil(n/i)*i,o=Math.floor(a/i);return a-t<i*.4&&(a+=i,o+=1),Array.from({length:o+1},(u,c)=>c*i)}function Iwe({data:e,lines:t,scatterData:n=[],axis:r,area:i,startDate:a,endDate:o,timeKey:s,width:u="100%",height:c=350}){const{t:l}=Et.useTranslation(),d=s||"creationDate",h=e.map(_=>({..._,timestamp:typeof _[d]=="string"?new Date(_[d]).getTime():_[d]})),g=t.find(_=>_.mainLine&&_.dataKey)?.dataKey,m=a?new Date(a).getTime():void 0,y=o?new Date(o).getTime():void 0,v=Mwe(h,n,g),[b]=Bo();return w.jsxs(Uv,{children:[w.jsx(Pwe,{lines:t,scatters:v.map((_,E)=>({name:_.name,color:_.color||Bc[E%Bc.length]})),area:i?{name:i.name||i.dataKey,color:i.color}:void 0}),w.jsx(Vu,{width:u,height:c,style:{userSelect:"none"},children:w.jsxs(VI,{data:h,children:[w.jsx("defs",{children:w.jsxs("linearGradient",{id:"areaGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"0%",stopColor:i?.color||"green",stopOpacity:1}),w.jsx("stop",{offset:"100%",stopColor:i?.color||"green",stopOpacity:.5})]})}),w.jsx(Hu,{strokeDasharray:"3 3"}),w.jsx(Ds,{dataKey:"timestamp",domain:[m,y],type:"number",ticks:kwe(m,y,r?.x?.step||30),interval:0,tickFormatter:_=>new Date(_).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}),w.jsx(No,{yAxisId:"left",allowDataOverflow:!1,padding:{top:30,bottom:10},...r?.yLeft?"dataKey"in r.yLeft?{dataKey:r.yLeft.dataKey,ticks:Yp({preparedData:h,yKey:r.yLeft.dataKey})}:{domain:[0,r.yLeft.maxValue],ticks:Yp({maxValue:r.yLeft.maxValue})}:{}}),w.jsx(No,{allowDataOverflow:!1,yAxisId:"right",orientation:"right",padding:{top:10,bottom:10},...r?.yRight?"dataKey"in r.yRight?{dataKey:r.yRight.dataKey,ticks:Yp({preparedData:h,yKey:r.yRight.dataKey})}:{domain:[0,r.yRight.maxValue],ticks:Yp({maxValue:r.yRight.maxValue})}:{}}),w.jsx(uh,{content:_=>w.jsx(jwe,{..._,scatterSeries:v})}),t.map((_,E)=>{const S=b==="light"?"black":"grey",A=_.color||_.mainLine&&S||Rv[E%Rv.length];return _.constantValue!==void 0?w.jsx(uS,{y:_.constantValue,yAxisId:"left",stroke:A,strokeWidth:1.5,strokeDasharray:"4 4"},l(_.name)):w.jsx(dh,{type:"monotone",dataKey:_.dataKey,name:l(_.name),stroke:A,yAxisId:"left",dot:!1,activeDot:_.mainLine?{r:5,stroke:A,strokeWidth:2}:!1,strokeWidth:1.5},_.dataKey)}),i&&w.jsx($l,{name:i.name,type:"monotone",dataKey:i.dataKey,yAxisId:"right",stroke:i.color||"green",fill:"url(#areaGradient)",fillOpacity:.3,strokeWidth:1,dot:!1,activeDot:!1}),v.flatMap((_,E)=>_.data.map(S=>w.jsx(lS,{x:S.timestamp,y:S.scatterValue,yAxisId:"left",r:4,fill:_.color||Bc[E%Bc.length]},S.timestamp)))]})})]})}function XN(e){const t=e.icon;if(typeof e.dataKey=="string"&&e[e.dataKey]){const n={x:e.cx-20,y:e.height-75},r={x:e.cx+20,y:e.height-75},i={x:e.cx,y:e.height-35};return w.jsxs("svg",{style:{cursor:"pointer"},children:[w.jsx(Eae,{points:[n,r,i],stroke:e.stroke,fill:e.fill}),w.jsx("foreignObject",{x:e.cx-12,y:e.height-74,width:24,height:24,children:w.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:w.jsx(t,{fontSize:"small",style:{color:"#fff"}})})})]})}return null}function Dwe({data:e,width:t="100%",height:n=300,area:r,hideDots:i=!1,hideAxis:a=!1,hideLegend:o=!1,hideValues:s=!1,yAxisOptions:u={},xAxisOptions:c={},gridOptions:l={},lineDataKeys:d,scatterData:h,strokeColors:g,fillColors:m,connectNulls:y,dataNames:v,timeRange:b=[8,20],type:_="linear",dateFormat:E={hour:"2-digit",minute:"2-digit"},onClickScatter:S=()=>{}}){const A=ie.useTheme(),{i18n:O,t:P}=Et.useTranslation(),j=A.palette.primary.main??"#00796b",$=d.map((I,H)=>yS(j,H*10)),z=M.useMemo(()=>{const I=new Date;return I.setMinutes(0,0,0),Array.from({length:b[1]-b[0]+1},(H,D)=>{const C=new Date(I);return C.setHours(b[0]+D),C.getTime()})},[b]);return w.jsx(Vu,{height:n,width:t,style:{userSelect:"none"},children:w.jsxs(VI,{data:e,children:[w.jsx("defs",{children:r&&m?.map((I,H)=>w.jsxs("linearGradient",{id:`colorPv${H}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[w.jsx("stop",{offset:"5%",stopColor:m?I:j,stopOpacity:.5}),w.jsx("stop",{offset:"95%",stopColor:m?I:j,stopOpacity:0})]},`colorPv${I}`))}),w.jsx(Hu,{...l}),w.jsx(Ds,{dataKey:"time",type:"number",ticks:z,domain:[z[0],z[z.length-1]],tickFormatter:I=>new Date(I).toLocaleTimeString(O.language,E),hide:a,includeHidden:!0,allowDataOverflow:!0,padding:{left:10,right:10},...c}),w.jsx(No,{hide:a,...u}),w.jsx(uh,{labelFormatter:I=>`${P("HOURS")} ${new Date(I).toLocaleTimeString(O.language,E)}`,formatter:I=>typeof I!="number"&&typeof I!="string"?P("CLICK_FOR_DETAILS"):I,cursor:{stroke:"red",strokeWidth:3}}),!o&&w.jsx(Cs,{verticalAlign:"top",height:36}),d.map((I,H)=>r?w.jsx($l,{fillOpacity:1,fill:`url(#colorPv${H})`,type:_,dataKey:I,stroke:g?g[H]:$[H],connectNulls:y,dot:i,activeDot:{r:8,stroke:g?g[H]:$[H],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:j,fontSize:16,position:"top"},name:v?v[H]:I},I):w.jsx(dh,{type:_,dataKey:I,stroke:g?g[H]:$[H],fill:m?m[H]:j,connectNulls:y,dot:i,activeDot:{r:8,stroke:g?g[H]:$[H],strokeWidth:2},strokeWidth:3,label:s?void 0:{fill:j,fontSize:16,position:"top"},name:v?v[H]:I},I)),h.map(({keyName:I,icon:H,color:D})=>w.jsx(hh,{dataKey:I,data:e,onClick:C=>S({...C.payload[I],dataKey:I}),shape:w.jsx(XN,{dataKey:I,icon:H,height:n}),fill:D??j,stroke:D??j},I))]})})}function Nwe({uq:e,index:t,isOpen:n}){let r=w.jsx(ca.SchoolOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",fontSize:"1.5rem",color:"primary.main",alignContent:"center"}});switch(e.qualificationId?.toUpperCase()){case"9D51EAD0-7EC9-4A33-ABD2-4A35CECF2037":r=w.jsx(ca.ImportExportOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"3A8C6FA5-6226-4F93-9C47-88FD4202CF9E":r=w.jsx(ca.SatelliteOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"E20D660C-C8AC-400D-BB06-97F31D636E07":r=w.jsx(ca.PrecisionManufacturing,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"9FEB96EA-4398-4C1D-A018-D2CB0C034EE6":r=w.jsx(ca.HealingOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"C4E6D73C-66F9-407F-847A-FEBFED6F4917":r=w.jsx(ca.EmergencyOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"0BFBECB6-AFD5-4AB3-A61A-79C5F02DB54F":r=w.jsx(ca.EmergencyOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"39B8F388-8DBF-4346-8ED1-BF01F06F0BEB":r=w.jsx(ca.PrecisionManufacturing,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;case"D3A1167E-7AFA-4B64-86C7-C9510B30D4E8":r=w.jsx(ca.EngineeringOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break;default:r=w.jsx(ca.SchoolOutlined,{sx:{display:"flex",justifyContent:"center",alignItems:"center",fontSize:"1.5rem",alignContent:"center"}});break}let i;return L6(e.endDate)&&(i=2),w.jsx(x8,{id:`qualification-${t}-${e.qualificationCode}-${e.qualificationId}`,ratio:i,children:w.jsx(EH,{variant:"outlined",sx:{height:"40px",borderRadius:"20px",fontSize:"1rem",paddingLeft:n?"8px":"0",paddingRight:n?"8px":"0",borderColor:L6(e.endDate)?"error.main":"primary.main"},icon:n?r:void 0,label:n?e.qualificationDescription:r},`qualification-${t}`)})}const L6=e=>{const t=new Date,n=new Date;return n.setMonth(t.getMonth()+3),new Date(e)<=n};function Eh({children:e,id:t,open:n=!1,onClose:r=()=>{},title:i="",Icon:a=void 0,width:o="md",fullScreen:s=!1,cancelLabel:u="CANCEL",submitLabel:c="CONFIRM",aspectRatio:l="auto",actionPosition:d="flex-end",onSubmit:h,onCancel:g,form:m,disableSubmit:y=!1,disableCancel:v=!1,dividers:b=!1,disableEscapeKeyDown:_=!1,disableBackdropClick:E=!1,submitButtonProps:S={},hideCloseIcon:A=!1,scrollbarGutter:O=!1,disableScroll:P,minHeight:j="unset",height:$,padding:z,backgroundColor:I="background.paper",Transition:H}){const{t:D}=Et.useTranslation(),C=N=>{const V=Object.fromEntries(N);h&&h(V)};Yv();const L=w.jsxs(w.Fragment,{children:[w.jsx(ie.DialogContent,{dividers:b,className:P?void 0:"scrollable-container",sx:{scrollbarGutter:O?"stable":"none",overflow:P?"hidden":"auto",display:P?"flex":"unset",flexDirection:P?"column":"unset",minHeight:j,padding:z,height:$},children:e}),h&&w.jsxs(ie.DialogActions,{sx:{display:"flex",alignItems:"center",justifyContent:d,gap:"12px",padding:"12px"},children:[g&&w.jsx(ie.Button,{id:"dialog-cancel-btn",disableElevation:!0,variant:"outlined",sx:{width:"200px"},disabled:v,onClick:g,children:u&&D(u)}),h&&w.jsx(ie.Button,{id:"dialog-submit-btn",disableElevation:!0,type:m?"submit":"button",sx:{width:"200px"},disabled:y,...S,onClick:m?void 0:N=>{N.preventDefault(),m||h()},children:c&&D(c)})]})]});return w.jsxs(ie.Dialog,{id:t,open:n,fullScreen:s,onClose:E?(N,V)=>{V!=="backdropClick"&&r()}:r,maxWidth:o,fullWidth:!0,slots:{transition:H??void 0},slotProps:{transition:{direction:"up",timeout:500},paper:{variant:"outlined",sx:{borderRadius:s?"18px 18px 0px 0px":"18px",aspectRatio:l,overflow:"hidden",backgroundColor:I}}},disableEscapeKeyDown:_,children:[i&&w.jsxs(ie.DialogTitle,{sx:{display:"flex",alignItems:"center",gap:"8px",userSelect:"none"},children:[a&&w.jsx(a,{sx:{color:"inherit"}}),w.jsx("b",{children:typeof i=="string"?D(i):i}),!A&&w.jsx(ie.IconButton,{onClick:r,color:"inherit",sx:{marginLeft:"auto"},children:w.jsx(SH,{})})]}),m?w.jsx("form",{action:C,children:L}):L]})}function ZN({open:e,onCancel:t,onSubmit:n,question:r,title:i,fontSize:a="1rem",notes:o,defaultNotesValue:s}){const{t:u}=Et.useTranslation(),[c,l]=M.useState(s||""),d=g=>{l(g.target.value)},h=()=>{t(),l("")};return M.useEffect(()=>{o&&s&&l(s)},[s]),w.jsx(Eh,{id:"confirm-dialog",title:i,open:e,onClose:h,onCancel:h,onSubmit:()=>{o&&c?n(c):n()},width:"sm",minHeight:"100px",disableBackdropClick:!0,disableEscapeKeyDown:!0,disableScroll:!0,dividers:!0,children:w.jsxs(Uv,{gap:"24px",children:[w.jsx(ie.Typography,{variant:"body1",fontSize:a,children:u(r)}),o&&w.jsx(ie.TextField,{id:"notes-txtField",value:c,onChange:d,placeholder:u("INSERT_NOTES"),multiline:!0,minRows:4,maxRows:10})]})})}const Lwe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iA=Lwe?M.useLayoutEffect:M.useEffect;function $we(e){const t=M.useRef(e);return iA(()=>{t.current=e}),M.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function Bwe(e,t){t===void 0&&(t=[e]);const n=M.useRef(e);return iA(()=>{n.current!==e&&(n.current=e)},t),n}function $6(e){const t=$we(e),n=M.useRef(null),r=M.useCallback(i=>{i!==n.current&&t?.(i,n.current),n.current=i},[]);return[n,r]}let ew={};function zwe(e,t){return M.useMemo(()=>{const n=ew[e]==null?0:ew[e]+1;return ew[e]=n,e+"-"+n},[e,t])}var B6;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(B6||(B6={}));function z6(){}const Fwe=Object.freeze({x:0,y:0});var zc;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(zc||(zc={}));var F6;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(F6||(F6={}));var hs;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(hs||(hs={}));hs.Space,hs.Enter,hs.Esc,hs.Space,hs.Enter,hs.Tab;var W6;(function(e){e[e.RightClick=2]="RightClick"})(W6||(W6={}));var q6;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(q6||(q6={}));var V6;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(V6||(V6={}));zc.Backward+"",zc.Forward+"",zc.Backward+"",zc.Forward+"";var g_;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(g_||(g_={}));var v_;(function(e){e.Optimized="optimized"})(v_||(v_={}));function Wwe(e,t){return M.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}g_.WhileDragging,v_.Optimized;const qwe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:z6,draggableNodes:new Map,over:null,measureDroppableContainers:z6},Vwe=M.createContext(qwe),Hwe=M.createContext({...Fwe,scaleX:1,scaleY:1});var H6;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(H6||(H6={}));const Uwe=M.createContext(null),U6="button",Gwe="Draggable";function Kwe(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=zwe(Gwe),{activators:o,activatorEvent:s,active:u,activeNodeRect:c,ariaDescribedById:l,draggableNodes:d,over:h}=M.useContext(Vwe),{role:g=U6,roleDescription:m="draggable",tabIndex:y=0}=i??{},v=u?.id===t,b=M.useContext(v?Hwe:Uwe),[_,E]=$6(),[S,A]=$6(),O=Wwe(o,t),P=Bwe(n);iA(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:S,data:P}),()=>{const $=d.get(t);$&&$.key===a&&d.delete(t)}),[d,t]);const j=M.useMemo(()=>({role:g,tabIndex:y,"aria-disabled":r,"aria-pressed":v&&g===U6?!0:void 0,"aria-roledescription":m,"aria-describedby":l.draggable}),[r,g,y,v,m,l.draggable]);return{active:u,activatorEvent:s,activeNodeRect:c,attributes:j,isDragging:v,listeners:r?void 0:O,node:_,over:h,setNodeRef:E,setActivatorNodeRef:A,transform:b}}var Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Dn.apply(this,arguments)},G6={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},K6={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Xp={width:"20px",height:"20px",position:"absolute",zIndex:1},Ywe={top:Dn(Dn({},G6),{top:"-5px"}),right:Dn(Dn({},K6),{left:void 0,right:"-5px"}),bottom:Dn(Dn({},G6),{top:void 0,bottom:"-5px"}),left:Dn(Dn({},K6),{left:"-5px"}),topRight:Dn(Dn({},Xp),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Dn(Dn({},Xp),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Dn(Dn({},Xp),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Dn(Dn({},Xp),{left:"-10px",top:"-10px",cursor:"nw-resize"})},Xwe=M.memo(function(e){var t=e.onResizeStart,n=e.direction,r=e.children,i=e.replaceStyles,a=e.className,o=M.useCallback(function(c){t(c,n)},[t,n]),s=M.useCallback(function(c){t(c,n)},[t,n]),u=M.useMemo(function(){return Dn(Dn({position:"absolute",userSelect:"none"},Ywe[n]),i??{})},[i,n]);return w.jsx("div",{className:a||void 0,style:u,onMouseDown:o,onTouchStart:s,children:r})}),Zwe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(){return Oa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Oa.apply(this,arguments)},Jwe={width:"auto",height:"auto"},Zp=function(e,t,n){return Math.max(Math.min(e,n),t)},Y6=function(e,t,n){var r=Math.round(e/t);return r*t+n*(r-1)},Ac=function(e,t){return new RegExp(e,"i").test(t)},Jp=function(e){return!!(e.touches&&e.touches.length)},Qwe=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},X6=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(a,o,s){return Math.abs(o-e)<Math.abs(t[a]-e)?s:a},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},tw=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Qp=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},exe=function(e,t,n,r,i,a,o){return r=Qp(r,e.width,t,n),i=Qp(i,e.height,t,n),a=Qp(a,e.width,t,n),o=Qp(o,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},txe=function(e){return Array.isArray(e)?e:[e,e]},nxe=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Z6="__resizable_base__",JN=function(e){Zwe(t,e);function t(n){var r,i,a,o,s=e.call(this,n)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var u=s.parentNode;if(!u)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Z6):c.className+=Z6,u.appendChild(c),c},s.removeBase=function(u){var c=s.parentNode;c&&c.removeChild(u)},s.state={isResizing:!1,width:(i=(r=s.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(o=(a=s.propsSize)===null||a===void 0?void 0:a.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Jwe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(s){var u;if(typeof n.state[s]>"u"||n.state[s]==="auto")return"auto";if(n.propsSize&&n.propsSize[s]&&(!((u=n.propsSize[s])===null||u===void 0)&&u.toString().endsWith("%"))){if(n.state[s].toString().endsWith("%"))return n.state[s].toString();var c=n.getParentSize(),l=Number(n.state[s].toString().replace("px","")),d=l/c[s]*100;return"".concat(d,"%")}return tw(n.state[s])},a=r&&typeof r.width<"u"&&!this.state.isResizing?tw(r.width):i("width"),o=r&&typeof r.height<"u"&&!this.state.isResizing?tw(r.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var a={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&Ac("left",a),s=i&&Ac("top",a),u,c;if(this.props.bounds==="parent"){var l=this.parentNode;l&&(u=o?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(n=n&&n<u?n:u),c&&Number.isFinite(c)&&(r=r&&r<c?r:c),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,a=txe(this.props.resizeRatio||1),o=a[0],s=a[1],u=this.state,c=u.direction,l=u.original,d=this.props,h=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,m=d.lockAspectRatioExtraWidth,y=l.width,v=l.height,b=g||0,_=m||0;return Ac("right",c)&&(y=l.width+(n-l.x)*o/i,h&&(v=(y-_)/this.ratio+b)),Ac("left",c)&&(y=l.width-(n-l.x)*o/i,h&&(v=(y-_)/this.ratio+b)),Ac("bottom",c)&&(v=l.height+(r-l.y)*s/i,h&&(y=(v-b)*this.ratio+_)),Ac("top",c)&&(v=l.height-(r-l.y)*s/i,h&&(y=(v-b)*this.ratio+_)),{newWidth:y,newHeight:v}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,a){var o=this.props,s=o.lockAspectRatio,u=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,l=typeof a.width>"u"?10:a.width,d=typeof i.width>"u"||i.width<0?n:i.width,h=typeof a.height>"u"?10:a.height,g=typeof i.height>"u"||i.height<0?r:i.height,m=u||0,y=c||0;if(s){var v=(h-m)*this.ratio+y,b=(g-m)*this.ratio+y,_=(l-y)/this.ratio+m,E=(d-y)/this.ratio+m,S=Math.max(l,v),A=Math.min(d,b),O=Math.max(h,_),P=Math.min(g,E);n=Zp(n,S,A),r=Zp(r,O,P)}else n=Zp(n,l,d),r=Zp(r,h,g);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var i=r.getBoundingClientRect();this.parentLeft=i.left*n,this.parentTop=i.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*n,this.targetTop=a.top*n}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,u=o.top,c=o.right,l=o.bottom;this.resizableLeft=s*n,this.resizableRight=c*n,this.resizableTop=u*n,this.resizableBottom=l*n}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,a=0;if(n.nativeEvent&&Qwe(n.nativeEvent)?(i=n.nativeEvent.clientX,a=n.nativeEvent.clientY):n.nativeEvent&&Jp(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,a=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,r,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var c=this.parentNode;if(c){var l=this.window.getComputedStyle(c).flexDirection;this.flexDir=l.startsWith("row")?"row":"column",s=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Oa(Oa({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:s};this.setState(d)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Jp(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,s=i.minWidth,u=i.minHeight,c=Jp(n)?n.touches[0].clientX:n.clientX,l=Jp(n)?n.touches[0].clientY:n.clientY,d=this.state,h=d.direction,g=d.original,m=d.width,y=d.height,v=this.getParentSize(),b=exe(v,this.window.innerWidth,this.window.innerHeight,a,o,s,u);a=b.maxWidth,o=b.maxHeight,s=b.minWidth,u=b.minHeight;var _=this.calculateNewSizeFromDirection(c,l),E=_.newHeight,S=_.newWidth,A=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(S=X6(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=X6(E,this.props.snap.y,this.props.snapGap));var O=this.calculateNewSizeFromAspectRatio(S,E,{width:A.maxWidth,height:A.maxHeight},{width:s,height:u});if(S=O.newWidth,E=O.newHeight,this.props.grid){var P=Y6(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),j=Y6(E,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,z=$===0||Math.abs(P-S)<=$?P:S,I=$===0||Math.abs(j-E)<=$?j:E;S=z,E=I}var H={width:S-g.width,height:E-g.height};if(this.delta=H,m&&typeof m=="string"){if(m.endsWith("%")){var D=S/v.width*100;S="".concat(D,"%")}else if(m.endsWith("vw")){var C=S/this.window.innerWidth*100;S="".concat(C,"vw")}else if(m.endsWith("vh")){var L=S/this.window.innerHeight*100;S="".concat(L,"vh")}}if(y&&typeof y=="string"){if(y.endsWith("%")){var D=E/v.height*100;E="".concat(D,"%")}else if(y.endsWith("vw")){var C=E/this.window.innerWidth*100;E="".concat(C,"vw")}else if(y.endsWith("vh")){var L=E/this.window.innerHeight*100;E="".concat(L,"vh")}}var N={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(E,"height")};this.flexDir==="row"?N.flexBasis=N.width:this.flexDir==="column"&&(N.flexBasis=N.height);var V=this.state.width!==N.width,Z=this.state.height!==N.height,K=this.state.flexBasis!==N.flexBasis,R=V||Z||K;R&&R_.flushSync(function(){r.setState(N)}),this.props.onResize&&R&&this.props.onResize(n,h,this.resizable,H)}},t.prototype.onMouseUp=function(n){var r,i,a=this.state,o=a.isResizing,s=a.direction;a.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,s,this.resizable,this.delta),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Oa(Oa({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,a=r.handleStyles,o=r.handleClasses,s=r.handleWrapperStyle,u=r.handleWrapperClass,c=r.handleComponent;if(!i)return null;var l=Object.keys(i).map(function(d){return i[d]!==!1?w.jsx(Xwe,{direction:d,onResizeStart:n.onResizeStart,replaceStyles:a&&a[d],className:o&&o[d],children:c&&c[d]?c[d]:null},d):null});return w.jsx("div",{className:u,style:s,children:l})},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(o,s){return nxe.indexOf(s)!==-1||(o[s]=n.props[s]),o},{}),i=Oa(Oa(Oa({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return w.jsxs(a,Oa({style:i,className:this.props.className},r,{ref:function(o){o&&(n.resizable=o)},children:[this.state.isResizing&&w.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(M.PureComponent);function rxe({id:e,position:t,width:n,height:r,scale:i,bitWiseMask:a,isEditMode:o,children:s,zIndex:u=1,onUpdate:c}){const{attributes:l,setNodeRef:d,transform:h,isDragging:g}=Kwe({id:e}),[m,y]=M.useState(t),v=M.useRef({x:t.x,y:t.y,width:n*i,height:r*i});M.useEffect(()=>{g||y(t)},[t,g]);const b={position:"absolute",left:m.x,top:m.y,transform:h?`translate3d(${h.x}px, ${h.y}px, 0)`:void 0,opacity:g?.5:1,zIndex:u,overflow:"hidden"};return w.jsx(Pi,{style:b,children:w.jsx(JN,{style:{width:"100%",height:"100%",position:"relative"},size:{width:n*i,height:r*i},enable:o&&(a&1)!==1?{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0}:{},onResizeStart:()=>{v.current={x:m.x,y:m.y,width:n*i,height:r*i}},onResize:(_,E,S)=>{const A=S.offsetWidth,O=S.offsetHeight;let P=v.current.x,j=v.current.y;E.includes("left")&&(P=v.current.x+(v.current.width-A)),E.includes("top")&&(j=v.current.y+(v.current.height-O)),y({x:P,y:j})},onResizeStop:(_,E,S)=>{const A=S.offsetWidth,O=S.offsetHeight;let P=v.current.x,j=v.current.y;E.includes("left")&&(P=v.current.x+(v.current.width-A)),E.includes("top")&&(j=v.current.y+(v.current.height-O));const $=P!==v.current.x||j!==v.current.y;c(O,A,i,void 0,$?{x:P,y:j}:void 0)},children:w.jsx("div",{ref:d,...l,style:{width:"100%",height:"100%"},children:s})})})}function ixe(e,t,n,r,i=[]){const{over:a,active:o}=e;a&&!i.includes(a.id)?(t(s=>{const u={...s},c=Object.keys(u).find(l=>u[l].includes(o.id.toString()));return c&&(u[c]=u[c].filter(l=>l!==o.id)),u[a.id]||(u[a.id]=[]),u[a.id].push(o.id.toString()),u}),n(`Dropped ${o.id} in ${a.id}`)):a&&i.includes(a.id)?t(s=>{const u={...s},c=Object.keys(u).find(l=>u[l].includes(o.id.toString()));return c&&(u[c]=u[c].filter(l=>l!==o.id)),u}):n(`Dropped ${o.id} outside any droppable area`),r(!0)}function axe(e,t){t(n=>{const r={...n},i=Object.keys(r).find(a=>r[a].includes(e));return i&&(r[i]=r[i].filter(a=>a!==e)),r})}function oxe(e,t,n){n!=="clickaway"&&e(!1)}function m_({name:e,width:t="100%",disabled:n,required:r,nullable:i,label:a,options:o,defaultValue:s,onChange:u,size:c="medium",multiple:l=!1,onClick:d=()=>{}}){const{t:h}=Et.useTranslation(),[g,m]=M.useState(s??(l?[]:"")),y=M.useRef(!1),v=_=>{const E=_.target.value;y.current=!0,m(E),u(E)},b=()=>{y.current||d(g),y.current=!1};return M.useEffect(()=>{g!==s&&m(s??(l?[]:""))},[s]),w.jsxs(ie.FormControl,{id:`${e}-form-control`,fullWidth:t==="100%",sx:{width:t},disabled:n,required:r,size:c,children:[a&&w.jsx(ie.InputLabel,{id:`${e}-select-label`,children:h(a)}),w.jsxs(ie.Select,{id:`${e}-select`,name:e,label:a?h(a):"",value:g,onChange:v,required:r,disabled:n,multiple:l,onClick:b,children:[i&&w.jsx(ie.MenuItem,{value:"",children:"---"}),o.map(_=>typeof _=="string"||typeof _=="number"?w.jsx(ie.MenuItem,{value:_,children:h(_?.toString())},_):w.jsx(ie.MenuItem,{value:_.value,disabled:_.disabled,children:h(_.label)},_.value))]})]})}function QN({data:e,filterKeyOptions:t,sortKeyOptions:n,onChange:r}){const[i,a]=M.useState(null),[o,s]=M.useState(""),[u,c]=M.useState(null),[l,d]=M.useState("asc");return M.useEffect(()=>{let h=[...e];o&&(h=h.filter(g=>i?String(g[i]).toLowerCase().includes(o.toLowerCase()):t.some(m=>String(g[m]).toLowerCase().includes(o.toLowerCase())))),u&&(h=[...h].sort((g,m)=>l==="asc"?String(g[u]).localeCompare(String(m[u])):String(m[u]).localeCompare(String(g[u])))),r(h)},[e,i,o,u,l,r]),w.jsxs(Pi,{width:"100%",gap:2,children:[w.jsx(ie.TextField,{label:"Search",type:"text",placeholder:"Enter filter value...",onChange:h=>s(h.target.value)}),w.jsxs(Da,{gap:1,alignItems:"center",children:[w.jsx(m_,{name:"filter-key",label:"Filter by",options:t,onChange:h=>a(h)}),w.jsx(m_,{name:"sort-key",label:"Sort by",options:n,onChange:h=>c(h)}),w.jsx(ie.IconButton,{sx:{width:"50px",height:"50px"},disabled:!u,size:"small",onClick:()=>d(l==="desc"?"asc":"desc"),children:l==="desc"?w.jsx(X4,{}):w.jsx(Z4,{})})]}),w.jsx(ie.Divider,{})]})}const sxe=e=>{const t=e?.displayValue.split(",");return e?.value.split(",").reduce((n,r,i)=>{const a={value:r,displayValue:t[i]};return[...n,a]},[])};function Bd({id:e,name:t,label:n,callback:r,placeholder:i,width:a,defaultOptions:o,value:s,onChange:u,disabled:c,dependencies:l,multiple:d}){const{t:h}=Et.useTranslation(),[g,m]=M.useState(d?sxe(s)||[]:s||null),[y,v]=M.useState(""),[b,_]=M.useState(o||[]),[E,S]=M.useState(!1),[A,O]=N_(y,600),P=M.useRef(!0),j=(z,I)=>{v(I),O(I)},$=(z,I)=>{m(I),u&&u(I)};return M.useEffect(()=>{o&&o!==b&&_(o)},[o]),M.useEffect(()=>{P.current&&(P.current=!1)},[]),M.useEffect(()=>{!P.current&&r&&A!==null&&A!==void 0&&!c&&l&&(S(!0),r({...l,search:A}).then(z=>{z.json().then(I=>{_(I||[])})}).finally(()=>S(!1)))},[r,A,l,c]),M.useEffect(()=>{!r&&b.length>0&&A!==null&&A!==void 0&&_(z=>z.filter(({displayValue:I})=>I.startsWith(A)))},[r,A,b.length]),w.jsxs(w.Fragment,{children:[w.jsx(ie.Autocomplete,{id:e,multiple:d,disableCloseOnSelect:d,loading:E,value:g,onChange:$,isOptionEqualToValue:(z,I)=>z?.value===I?.value,inputValue:y,onInputChange:j,disabled:c,options:b,fullWidth:a==="100%",sx:{width:a!=="100%"?a:null},getOptionLabel:z=>z?.displayValue,renderInput:z=>w.jsx(ie.TextField,{label:n?h(n):void 0,variant:"outlined",placeholder:i?h(i):void 0,...z})}),t&&w.jsx("input",{type:"hidden",name:t,value:d?g?.map(({value:z})=>z)?.toString():g?.value})]})}function eL({id:e,name:t,extValue:n,onChange:r,disabled:i}){const{t:a}=Et.useTranslation(),[o,s]=M.useState(n||""),[u]=N_(o),c=l=>{s(l?.target.value)};return M.useEffect(()=>{u&&r&&r(u)},[u,r]),w.jsx(ie.TextField,{id:e||"search-textfield",name:t||"searchValue",placeholder:`${a("SEARCH")}`,value:o,onChange:c,disabled:i,slotProps:{input:{startAdornment:w.jsx(ie.InputAdornment,{position:"start",children:w.jsx(AH,{})})}}})}const uxe=e=>e.replace(/\{\{|\}\}/g,""),zd=(e="DATE_FORMAT")=>{const{t}=_s,n=t(e)==="DATE_FORMAT"?"DD/MM/YYYY":t(e);return uxe(n)};function Gc({id:e,name:t,value:n,label:r,onChange:i,inputType:a="date",isStatic:o,disablePast:s,disableFuture:u,minDate:c,maxDate:l,required:d,disabled:h,views:g}){const{t:m,i18n:y}=Et.useTranslation(),v=a==="dateTime"?`${zd()} HH:mm`:a==="time"?"HH:mm:ss":zd(),[b,_]=M.useState(n?typeof n=="string"?cs(n,v,y.language):cs(new Date(n)):null);M.useEffect(()=>{n&&new Date(n).getTime()!==b?.toDate().getTime()&&_(typeof n=="string"?cs(n,v,y.language):cs(new Date(n)))},[v,y.language,n]);const E=O=>{_(O),i&&O&&i(O.toDate())},S=()=>{_(null)},A=M.useMemo(()=>a==="date"?o?dc.StaticDatePicker:dc.DatePicker:a==="time"?o?dc.StaticTimePicker:dc.TimePicker:o?dc.StaticDateTimePicker:dc.DateTimePicker,[a,o]);return w.jsx(TH.LocalizationProvider,{dateAdapter:OH.AdapterDayjs,adapterLocale:y.language,children:w.jsx(A,{id:e,format:v,slotProps:{field:{clearable:!!b,onClear:S},textField:{required:d}},name:t,label:r?m(r):void 0,value:b,onChange:E,minDate:c?cs(c):void 0,maxDate:l?cs(l):void 0,disabled:h,required:d,ampm:a==="dateTime"||a==="time"?!1:void 0,ampmInClock:a==="dateTime"||a==="time"?!1:void 0,disablePast:s,disableFuture:u,views:g})})}function aA({name:e,defaultValue:t=null,onChange:n,direction:r,disabled:i,required:a,options:o,label:s}){const{t:u}=Et.useTranslation(),[c,l]=M.useState(t),d=h=>{l(h.target.value),n&&n(h.target.value)};return w.jsxs(ie.FormControl,{disabled:i,required:a,children:[w.jsx(ie.FormLabel,{sx:{textTransform:"capitalize"},children:s?u(s):""}),w.jsx(ie.RadioGroup,{row:r==="row",id:e,"aria-labelledby":e,name:e,value:c,onChange:d,children:o.map(h=>typeof h=="string"?w.jsx(ie.FormControlLabel,{value:h,control:w.jsx(ie.Radio,{}),label:u(h)},h):w.jsx(ie.FormControlLabel,{value:h.value,control:w.jsx(ie.Radio,{}),label:u(h.label)},h.value))})]})}function tL(e){return Object.keys(e).map(t=>{const{type:n,value:r,options:i}=e[t]||{};switch(n){case mo.search:return w.jsx(eL,{id:"rad-filters-txtfield",name:t,extValue:r},t);case mo.select:return i&&i.length>0&&w.jsx(Bd,{id:`autocomplete-${t}`,name:t,label:t,defaultOptions:i,value:r},t);case mo.multipleSelect:return i&&i.length>0&&w.jsx(Bd,{id:`autocomplete-${t}`,name:t,label:t,defaultOptions:i,value:r,multiple:!0},t);case mo.boolean:return w.jsx(aA,{direction:"row",name:t,label:t,defaultValue:r?.toString(),options:[{label:"YES",value:"true"},{label:"NO",value:"false"},{label:"N/A",value:""}]},t);case mo.date:return w.jsx(Gc,{id:`date-picker-${t}`,name:t,value:r},t);case mo.dateTime:return w.jsx(Gc,{id:`datetime-picker-${t}`,name:t,value:r,inputType:"dateTime"},t)}})}function nL({onClose:e}){const{t}=Et.useTranslation(),{filters:n}=L_(),{updateFilters:r}=F_(),i=a=>{const o=Object.fromEntries(a);let s={};Object.keys(n).forEach(u=>{n[u].type!==void 0&&n[u].type===mo.date&&(o[u]=new Date(o[u]).toISOString()),s={...s,[u]:{...n[u],value:o[u]}}}),console.log("Original Filters:",n),console.log("Updated Filters:",o),r(s,!0)};return w.jsx(Da,{padding:"16px",flexDirection:"column",gap:"24px",minWidth:"360px",children:w.jsxs("form",{action:i,children:[tL(n),w.jsx(ie.Button,{sx:{marginTop:"auto"},type:"submit",onClick:e,children:t("CONFIRM")})]})})}function rL({onClose:e}){const{t}=Et.useTranslation(),{sortings:n}=$_(),{updateSortings:r}=F_(),i=o=>{const s=Object.fromEntries(o);let u={};Object.keys(n).forEach(c=>{const l=n[c];u={...u,[c]:{...l,direction:s[l.name]}}}),r(u,!0)},a=Object.keys(n).sort((o,s)=>n[s].order-n[o].order).map(o=>{const{name:s,direction:u}=n[o];return w.jsxs(ie.ListItem,{divider:!0,children:[w.jsx(ie.ListItemText,{children:t(s)}),w.jsxs(ie.Select,{id:`${s}-select`,name:s,size:"small",defaultValue:u,sx:{width:"50%"},children:[w.jsx(ie.MenuItem,{value:"ASC",children:t("ASCENDING")}),w.jsx(ie.MenuItem,{value:"DESC",children:t("DESCENDING")})]})]},o)});return w.jsx(Da,{padding:"16px",flexDirection:"column",gap:"24px",minWidth:"360px",children:w.jsxs("form",{action:i,children:[w.jsx(ie.List,{children:a}),w.jsx(ie.Button,{sx:{marginTop:"auto"},type:"submit",onClick:e,children:t("CONFIRM")})]})})}const iL=Hv.styled(PH)(({theme:e})=>({backgroundColor:e.palette.background.paper}));function cxe({languages:e,flags:t,title:n,Icon:r,features:i,user:a,hasSidebar:o,isIdle:s}){const{t:u}=Et.useTranslation(),c=Vd("(max-width: 600px)"),[l,d]=Xv();return w.jsx(ie.Collapse,{in:!s,timeout:500,unmountOnExit:!0,sx:{minHeight:"unset!important",zIndex:"100"},children:w.jsx(iL,{color:"inherit",position:"static",sx:{transition:"all 0.5s ease-in-out"},variant:"outlined",children:w.jsxs(ie.Toolbar,{disableGutters:!0,sx:{justifyContent:"left",padding:"0px 16px"},children:[r&&w.jsx(r,{onClick:o?l?d.close:d.open:()=>{}}),w.jsx(ie.Typography,{variant:"h5",sx:{textTransform:"capitalize",flexGrow:1,fontWeight:"bold",userSelect:"none"},children:n?u(n):""}),i&&w.jsx(xn,{gap:"8px",padding:"0px 8px",alignItems:"center",children:Object.keys(i)?.map(h=>w.jsx(ie.Tooltip,{title:u(h),children:i[h]},h))}),!c&&w.jsxs(w.Fragment,{children:[e&&t&&w.jsx(A8,{languages:e,flags:t}),a&&w.jsx(ie.Tooltip,{title:"Account",children:w.jsx(ie.IconButton,{children:w.jsx(ie.Avatar,{sx:{bgcolor:"primary.main",color:"#fff"},children:a[0].toUpperCase()})})})]})]})})})}function lxe({hotKeys:e}){const{t}=Et.useTranslation(),[n,r]=d8();return w.jsx(Eh,{id:"language-selector",title:"Hot keys",open:n,onClose:r.close,width:"xs",children:w.jsx(ie.Stack,{spacing:1,children:e.map(({combination:i,description:a,callback:o})=>w.jsxs(xn,{justifyContent:"space-between",alignItems:"center",children:[w.jsx(ie.Typography,{variant:"body1",noWrap:!0,children:t(a)}),w.jsx(ie.Button,{id:`${i}-btn`,variant:"outlined",onClick:o,children:i})]},i))})})}function fxe({listToFilter:e,onChangeListFiltered:t}){const{t:n}=Et.useTranslation(),[r,i]=M.useState([]),[a,o]=M.useState(""),s=u=>{o(u.target.value)};return M.useEffect(()=>{i(e.filter(u=>u.name.toLowerCase().includes(a.toLowerCase()))),t(r)},[r,a,e,t]),w.jsx(ie.TextField,{id:"autocomplete-client",value:a,onChange:s,placeholder:n("TYPE"),variant:"outlined",size:"small"})}function dxe({name:e,checked:t,onChange:n,direction:r="column",disabled:i,required:a,options:o}){const{t:s}=Et.useTranslation(),u=Gv(t||[]),c=(l,d=null)=>{const h=u.findIndex(l,d);h>=0?u.remove(h):u.push(l)};return M.useEffect(()=>{n&&n(u.value)},[n,u]),w.jsx(ie.FormControl,{disabled:i,required:a,children:w.jsx(ie.FormGroup,{sx:{display:"flex",flexDirection:r,gap:".5rem"},children:o.map(l=>typeof l=="string"?w.jsx(ie.FormControlLabel,{control:w.jsx(ie.Checkbox,{name:e,value:l,checked:u.findIndex(l)>=0,onClick:()=>c(l)}),label:s(l)},l):w.jsx(ie.FormControlLabel,{control:w.jsx(ie.Checkbox,{value:l.value,name:e,checked:u.findIndex(l.value,"value")>=0,onClick:()=>c(l.value,"value")}),label:s(l.label)},l.value))})})}function hxe({name:e,width:t="100%",disabled:n,required:r,label:i,options:a,size:o="medium",setCheckedItems:s,defaultChecked:u=[]}){const{t:c}=Et.useTranslation(),[l,d]=M.useState(u);return M.useEffect(()=>{s(l)},[l,s]),w.jsxs(ie.FormControl,{id:`${e}-multiple-select-form-control`,fullWidth:t==="100%",sx:{width:t},disabled:n,required:r,size:o,children:[i&&w.jsx(ie.InputLabel,{id:`${e}-multiple-select`,children:c(i)}),w.jsx(ie.Select,{id:`${e}-multiple-select`,name:e,label:i?c(i):"",value:l,multiple:!0,renderValue:h=>h.map(g=>a.find(m=>m.value===g)?.label).join(", "),disabled:n,children:a.map(h=>w.jsxs(ie.MenuItem,{value:h.value,sx:{paddingLeft:"8px"},onClick:()=>{l.includes(h.value)?d(l.filter(g=>g!==h.value)):d([...l,h.value])},children:[w.jsx(ie.Checkbox,{checked:l.includes(h.value)}),w.jsx(ie.ListItemText,{primary:h.label})]},h.value))})]})}function Jf({onClick:e,value:t,color:n="none",border:r=!1,disabled:i=!1}){return w.jsx(ie.Grid,{size:4,sx:{height:"max-content"},children:w.jsx(ie.Box,{id:`${t}-wrapper`,sx:{width:"100%",aspectRatio:1,display:"flex",alignItems:"center",justifyContent:"center"},children:w.jsx(ie.Fab,{id:`${t}-fab`,role:"button",color:"default",disabled:i,"aria-label":`Calculator key-button value: ${t}`,onClick:e,sx:{borderStyle:r?"solid":"none",borderWidth:r?"2px":"none",borderColor:r?"currentColor":"none",width:"90%",height:"90%",fontSize:"clamp(1rem, 5vw, 2rem)",boxShadow:"none",bgcolor:n,color:n!=="none"?"currentColor":"#111"},children:t})})})}function aL({onClick:e,onClear:t,onDelete:n,color:r,disabled:i=!1}){return w.jsxs(ie.Grid,{container:!0,sx:{padding:"16px",overflow:"hidden",flexGrow:1},spacing:1,children:[[...Array(9)].fill(0).map((a,o)=>w.jsx(Jf,{value:o+1,onClick:()=>e(o+1),color:r,disabled:i},`${String(o)}`)),w.jsx(Jf,{value:"C",onClick:t,color:r,disabled:i,border:!0}),w.jsx(Jf,{value:0,onClick:()=>e(0),color:r,disabled:i}),w.jsx(Jf,{disabled:i,value:w.jsx(CH,{fontSize:"inherit"}),onClick:n,color:r,border:!0})]})}function pxe({width:e="100%",height:t="100%",color:n,defaultValue:r=0,title:i="",disabled:a=!1,onChange:o}){const[s,u]=M.useState(r.toString()),c=h=>{(s||h!==0)&&u(g=>g==="0"?h.toString():g+h.toString())},l=()=>{s!=="0"&&u(h=>h.substring(0,h.length-1)),s.length===1&&u("0")},d=()=>{u("0")};return M.useEffect(()=>{o(s)},[s]),M.useEffect(()=>{u(r.toString())},[r]),w.jsx(ie.Paper,{sx:{width:e,height:t},children:w.jsxs(lu,{justifyContent:"flex-end",children:[w.jsxs(Pi,{padding:"0px 8px",alignItems:"flex-end",height:"20%",flexGrow:1,justifyContent:"flex-end",overflow:"hidden",children:[w.jsx(ie.Typography,{variant:"button",sx:{color:a?"GrayText":n},children:i}),w.jsx(ie.Typography,{sx:{color:a?"GrayText":n,fontSize:"clamp(1rem, 5vw, 3rem)"},children:s})]}),w.jsx(ie.Divider,{flexItem:!0}),w.jsx(aL,{color:n,onClick:c,onClear:d,onDelete:l,disabled:a})]})})}const oL=["shift","alt","meta","mod","ctrl","control"],gxe={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function xs(e){return(gxe[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function sL(e){return oL.includes(e)}function nw(e,t=","){return e.toLowerCase().split(t)}function rw(e,t="+",n=">",r=!1,i){let a=[],o=!1;e.includes(n)?(o=!0,a=e.toLocaleLowerCase().split(n).map(c=>xs(c))):a=e.toLocaleLowerCase().split(t).map(c=>xs(c));const s={alt:a.includes("alt"),ctrl:a.includes("ctrl")||a.includes("control"),shift:a.includes("shift"),meta:a.includes("meta"),mod:a.includes("mod"),useKey:r},u=a.filter(c=>!oL.includes(c));return{...s,keys:u,description:i,isSequence:o}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&uL([xs(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&cL([xs(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Oo.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Oo.clear()},0)}));const Oo=new Set;function oA(e){return Array.isArray(e)}function vxe(e,t=","){return(oA(e)?e:e.split(t)).every(n=>Oo.has(n.trim().toLowerCase()))}function uL(e){const t=Array.isArray(e)?e:[e];Oo.has("meta")&&Oo.forEach(n=>!sL(n)&&Oo.delete(n.toLowerCase())),t.forEach(n=>Oo.add(n.toLowerCase()))}function cL(e){const t=Array.isArray(e)?e:[e];e==="meta"?Oo.clear():t.forEach(n=>Oo.delete(n.toLowerCase()))}function mxe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function yxe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function bxe(e){return lL(e,["input","textarea","select"])}function lL(e,t=!1){const{target:n,composed:r}=e;let i;return wxe(n)&&r?i=e.composedPath()[0]&&e.composedPath()[0].tagName:i=n&&n.tagName,oA(t)?!!(i&&t&&t.some(a=>a.toLowerCase()===i.toLowerCase())):!!(i&&t&&t)}function wxe(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function xxe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(n=>t.includes(n))||e.includes("*"):!0}const _xe=(e,t,n=!1)=>{const{alt:r,meta:i,mod:a,shift:o,ctrl:s,keys:u,useKey:c}=t,{code:l,key:d,ctrlKey:h,metaKey:g,shiftKey:m,altKey:y}=e,v=xs(l);if(c&&u?.length===1&&u.includes(d))return!0;if(!(u!=null&&u.includes(v))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!n){if(r!==y&&v!=="alt"||o!==m&&v!=="shift")return!1;if(a){if(!g&&!h)return!1}else if(i!==g&&v!=="meta"&&v!=="os"||s!==h&&v!=="ctrl"&&v!=="control")return!1}return u&&u.length===1&&u.includes(v)?!0:u?vxe(u):!u},Exe=M.createContext(void 0),Sxe=()=>M.useContext(Exe);function Axe(e,t){return e===t}const Oxe=M.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Txe=()=>M.useContext(Oxe);function Pxe(e){const t=M.useRef(void 0);return Axe(t.current,e)||(t.current=e),t.current}const J6=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},Cxe=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Q6(e,t,n,r){const i=M.useRef(null),a=M.useRef(!1),o=n instanceof Array?r instanceof Array?void 0:r:n,s=oA(e)?e.join(void 0):e,u=M.useCallback(t,[]),c=M.useRef(u);c.current=t;const l=Pxe(o),{activeScopes:d}=Txe(),h=Sxe();return Cxe(()=>{if(l?.enabled===!1||!xxe(d,l?.scopes))return;let g=[],m;const y=(E,S=!1)=>{var A;if(!(bxe(E)&&!lL(E,l?.enableOnFormTags))){if(i.current!==null){const O=i.current.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==i.current&&!i.current.contains(O.activeElement)){J6(E);return}}(A=E.target)!=null&&A.isContentEditable&&!(l!=null&&l.enableOnContentEditable)||nw(s,l?.delimiter).forEach(O=>{var P,j,$,z;if(O.includes(l?.splitKey??"+")&&O.includes(l?.sequenceSplitKey??">")){console.warn(`Hotkey ${O} contains both ${l?.splitKey??"+"} and ${l?.sequenceSplitKey??">"} which is not supported.`);return}const I=rw(O,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description);if(I.isSequence){m=setTimeout(()=>{g=[]},l?.sequenceTimeoutMs??1e3);const H=I.useKey?E.key:xs(E.code);if(sL(H.toLowerCase()))return;g.push(H);const D=(P=I.keys)==null?void 0:P[g.length-1];if(H!==D){g=[],m&&clearTimeout(m);return}g.length===((j=I.keys)==null?void 0:j.length)&&(c.current(E,I),m&&clearTimeout(m),g=[])}else if(_xe(E,I,l?.ignoreModifiers)||($=I.keys)!=null&&$.includes("*")){if((z=l?.ignoreEventWhen)!=null&&z.call(l,E)||S&&a.current)return;if(mxe(E,I,l?.preventDefault),!yxe(E,I,l?.enabled)){J6(E);return}c.current(E,I),S||(a.current=!0)}})}},v=E=>{E.code!==void 0&&(uL(xs(E.code)),(l?.keydown===void 0&&l?.keyup!==!0||l!=null&&l.keydown)&&y(E))},b=E=>{E.code!==void 0&&(cL(xs(E.code)),a.current=!1,l!=null&&l.keyup&&y(E,!0))},_=i.current||void 0||document;return _.addEventListener("keyup",b,void 0),_.addEventListener("keydown",v,void 0),h&&nw(s,l?.delimiter).forEach(E=>h.addHotkey(rw(E,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description))),()=>{_.removeEventListener("keyup",b,void 0),_.removeEventListener("keydown",v,void 0),h&&nw(s,l?.delimiter).forEach(E=>h.removeHotkey(rw(E,l?.splitKey,l?.sequenceSplitKey,l?.useKey,l?.description))),g=[],m&&clearTimeout(m)}},[s,l,d]),i}function jxe({languages:e,flags:t,isLogged:n=!0}){const{i18n:r}=Et.useTranslation(),[i,a,o]=W_(e);return Q6("shift+l",a.toggle),Q6("shift",a.open),M.useEffect(()=>{const s=u=>{u.key==="Shift"&&a.close()};return window.addEventListener("keyup",s),()=>{window.removeEventListener("keyup",s)}},[a]),o?w.jsx(ie.Popover,{open:i,onClose:a.close,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:w.jsx(xn,{flexWrap:"wrap",dir:"ltr",alignItems:"center",justifyContent:"space-between",gap:"8px",padding:"16px",width:"300px",sx:{backgroundColor:"rgba(19, 67, 45, 0.3)"},children:Object.keys(e).map(s=>{const u=t[s];return w.jsx(MO,{dir:"ltr",sx:{width:"300px",mb:"0"},variant:"outlined",onClick:()=>{r.changeLanguage(s),a.close()},endIcon:w.jsx(u,{size:24}),children:w.jsx("span",{style:{flexGrow:1},children:e[s].nativeName})},s)})})}):w.jsx(Eh,{id:"language-selector",title:"LANGUAGE_MENU",open:i,onClose:a.close,width:"xs",backgroundColor:n?"auto":"rgb(3, 18, 1)",children:w.jsx(xn,{flexWrap:"wrap",dir:"ltr",alignItems:"center",justifyContent:"space-between",gap:"4%",children:Object.keys(e).map(s=>{const u=t[s];return w.jsx(MO,{dir:"ltr",sx:{width:"48%",mb:"4%"},variant:"outlined",onClick:()=>r.changeLanguage(s),endIcon:w.jsx(u,{size:24}),children:w.jsx("span",{style:{flexGrow:1},children:e[s].nativeName})},s)})})})}function fL({id:e,texts:t,primaryText:n,secondaryText:r,primaryTextStyle:i,secondaryTextStyle:a,disabled:o,selected:s,onClick:u,icon:c,endIcon:l,secondaryAction:d,reverseInformations:h,dividers:g,contentWidth:m}){const y=w.jsxs(w.Fragment,{children:[c&&w.jsx(ie.ListItemIcon,{children:c}),w.jsx(ie.ListItemText,{disableTypography:!!t,primary:n??w.jsx(xn,{flexGrow:1,alignItems:"center",gap:"8px",width:m,overflow:"hidden",children:t?.map(({primaryText:v,secondaryText:b},_)=>w.jsxs(M.Fragment,{children:[w.jsx(Zv,{reverse:h,caption:b||"",value:v,captionColor:a?.color,valueColor:i?.color,width:i?.width,captionStyle:{...a,width:"100%"},valueStyle:{...i,width:"100%"},gap:"0px",fallback:!0}),g&&_<t.length-1&&w.jsx(ie.Divider,{orientation:"vertical",flexItem:!0})]},`${String(_)}`))}),secondary:r,slotProps:{primary:{sx:i},secondary:{sx:a}}}),l&&w.jsx(ie.ListItemIcon,{children:l})]});return w.jsx(ie.ListItem,{id:e,component:ie.Paper,sx:u?{paddingRight:0}:{},disablePadding:!!u,secondaryAction:d,children:u?w.jsx(ie.ListItemButton,{sx:{borderRadius:"18px",border:v=>s?`2px solid ${v.palette.primary.main}`:"unset"},selected:s,onClick:u,disabled:o,children:y}):y})}function dL({id:e,children:t,hideFab:n,fabIcon:r,fabText:i="Add",height:a,width:o,canDisplay:s=!0,dense:u,gap:c="8px",disablePadding:l=!1,fabAction:d,reverse:h=!1,fallback:g=void 0}){const m=M.useRef(null),[y,v]=M.useState(!1);return Yv(),M.useEffect(()=>{const b=m.current;if(!b)return;const _=()=>{const{scrollHeight:E,scrollTop:S,clientHeight:A}=b;v(S+A>=E-5)};return b.addEventListener("scroll",_),()=>{b.removeEventListener("scroll",_)}},[]),w.jsxs(w.Fragment,{children:[w.jsxs(jH,{id:e,ref:m,className:"scrollable-container",sx:{display:s?"flex":"none",flexDirection:"column",width:o||"100%",height:a||"100%",gap:c,overflowY:"auto",scrollbarWidth:"none",...h?{display:"flex",flexDirection:"column-reverse"}:{}},dense:u,disablePadding:l,children:[!t||Array.isArray(t)&&t.length<1?g:t,!n&&r?w.jsx("div",{style:{minHeight:"50px",flexShrink:0}}):null]}),!n&&r&&w.jsxs(MH,{id:"list-add-fab",color:"primary",size:"medium","aria-label":"Add",sx:{position:"fixed",right:"4%",bottom:"2%",transition:"all 0.3s ease",width:y?"80px":"50px",borderRadius:y?"40px":"50%",display:"flex",alignItems:"center",justifyContent:"center"},onClick:d,children:[r,y&&w.jsx("span",{style:{marginLeft:8},children:i})]})]})}function Mxe({data:e,filterSortKeys:t,renderItem:n,onSelect:r}){const[i,a]=M.useState(e);return w.jsxs(Pi,{width:"100%",padding:"8px",children:[t&&w.jsx(QN,{data:e,filterKeyOptions:t,sortKeyOptions:t,onChange:a}),w.jsx(dL,{id:"filtered-list",children:i.map((o,s)=>{const u=n(o);return w.jsx(fL,{dividers:!0,texts:u.map(({caption:c,value:l})=>({primaryText:l,secondaryText:c})),onClick:()=>{r(s)}},JSON.stringify(o))})})]})}function kxe({speed:e=30,children:t}){const n=M.useRef(null),r=M.useRef(null),[i,a]=M.useState(!1),[o,s]=M.useState(0);return M.useEffect(()=>{const u=r.current,c=n.current;if(!u||!c)return;const l=()=>{const h=u.scrollHeight,g=c.clientHeight;h>g?(a(!0),s(h/e)):(a(!1),s(0))};l();const d=new ResizeObserver(l);return d.observe(u),d.observe(c),()=>d.disconnect()},[t,e]),w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:n,style:{overflow:"hidden",height:"100%",width:"100%",position:"relative"},children:w.jsxs("div",{style:{display:"flex",flexDirection:"column",animation:i?`scroll-vertical ${o}s linear infinite`:void 0,willChange:i?"transform":void 0},children:[w.jsx("div",{ref:r,children:t}),i&&w.jsx("div",{children:t})]})}),w.jsx("style",{children:`
130
130
  @keyframes scroll-vertical {
131
131
  0% {
132
132
  transform: translateY(0);
@@ -135,7 +135,7 @@ function print() { __p += __j.call(arguments, '') }
135
135
  transform: translateY(-50%);
136
136
  }
137
137
  }
138
- `})]})}function Rxe({items:e,pageCount:t,listItemCallback:n,onChangePage:r,pageColor:i="primary.main",height:a="100%"}){const o=Vd("(max-width: 600px)"),[s,u]=k.useState(1),c=(d,h)=>{u(h),r&&r(h)},l=Math.ceil(e.length/t);return w.jsxs(Pi,{gap:"1vh",alignItems:"center",paddingTop:"1vh",height:a,children:[w.jsx(ie.List,{sx:{width:"100%",flexGrow:1,display:"flex",flexDirection:"column",gap:"1vh"},children:e.slice((s-1)*t,s*t).map(n)}),w.jsx(ie.Pagination,{id:"list-pagination",count:l,page:s,onChange:c,variant:"outlined",size:o?"small":"large",sx:{"& .Mui-selected":{color:"#111",backgroundColor:`${i}!important`}}})]})}var hL=(e=>(e.Center="center",e.Left="left",e.Right="right",e))(hL||{}),bl=(e=>(e.Header="header",e.Footer="footer",e.Row="row",e.Cell="cell",e.HeaderCell="headerCell",e))(bl||{});function pL({size:e=24,color:t="currentColor"}){return w.jsx(ie.SvgIcon,{children:w.jsx("svg",{version:"1.1",width:e,height:e,fill:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M7 4a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a1 1 0 1 1 0 2h-1.069l-.867 12.142A2 2 0 0 1 17.069 22H6.93a2 2 0 0 1-1.995-1.858L4.07 8H3a1 1 0 0 1 0-2h4V4zm2 2h6V4H9v2zM6.074 8l.857 12H17.07l.857-12H6.074zM10 10a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1zm4 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1z"})})})}function y_({columns:e,rowVariant:t="body",hover:n,selected:r,onEdit:i,onDelete:a,onOpenDetails:o,injectCallback:s,selectedStyle:u={}}){const{t:c}=Et.useTranslation(),l=h=>{h.stopPropagation(),i&&i()},d=h=>{h.stopPropagation(),a&&a()};return w.jsxs(ie.TableRow,{selected:r,hover:n,onClick:t==="body"?o:void 0,sx:{cursor:t==="body"&&o?"pointer":"auto",opacity:1},children:[e.map(({id:h,alignment:g,label:m,styles:y,translatable:v=!0,fallback:b,formatCallback:_})=>s!==void 0?w.jsx(k.Fragment,{children:s(h.toString(),t==="body"?bl.Cell:bl.HeaderCell,w.jsxs(ie.TableCell,{align:g,variant:t,sx:{...y,...r?u:{}},children:[m==null&&b?b:null,_&&t==="body"?_(typeof m=="string"&&v?c(m):m):typeof m=="string"&&(v||t==="head")?c(m):m]},h))},h):w.jsx(ie.TableCell,{align:g,variant:t,sx:{...y,...r?u:{}},children:typeof m=="string"&&v?c(m):m},h)),(i||a)&&w.jsx(ie.TableCell,{align:"right",children:t==="body"&&w.jsxs(ie.Stack,{direction:"row",justifyContent:"flex-end",spacing:.5,children:[i&&w.jsx(ie.IconButton,{onClick:l,children:w.jsx(J4,{})}),a&&w.jsx(ie.IconButton,{onClick:d,children:w.jsx(pL,{})})]})})]})}function gL({title:e,onAdd:t,Filters:n,Sortings:r}){const{t:i}=Et.useTranslation();return w.jsxs(ie.Toolbar,{id:"table-toolbar",children:[typeof e=="string"?w.jsx(ie.Typography,{variant:"h6",noWrap:!0,children:i(e)}):e,w.jsxs("div",{style:{display:"flex",gap:"16px",marginLeft:"auto"},children:[n&&w.jsx(jw,{Icon:kH,label:"FILTERS",menuContent:w.jsx(n,{onClose:()=>{}})}),r&&w.jsx(jw,{Icon:RH,label:"SORTINGS",menuContent:w.jsx(r,{onClose:()=>{}})}),t&&w.jsx(ie.Button,{id:"add-to-table-btn",onClick:t,startIcon:w.jsx(IH,{}),children:i("NEW")})]})]})}function vL({id:e,tableTitle:t,width:n,height:r,columns:i,data:a,rowsPerPage:o,hover:s,selected:u,FiltersComponent:c,SortingsComponent:l,slotStyles:d,spacing:h,onAdd:g,onEdit:m,onDelete:y,onOpenDetails:v,injectCallback:b,hasMore:_,loadMore:E,fallback:S}){Yv();const A=k.useRef(null),[O,P]=k.useState(0),[j,$]=k.useState(!1),[z,I]=k.useState(0),H=(N,V)=>{P(V)},D=k.useCallback(()=>{if(j||!A.current||!_||typeof E!="function")return;const N=A.current.scrollHeight-A.current.clientHeight;z===0&&N&&I(Math.round(N*.2)),A.current.scrollTop>N-z&&($(!0),Promise.resolve(E()).finally(()=>$(!1)))},[j,z,_,E]);k.useLayoutEffect(()=>{if(A.current&&z===0){const N=A.current.scrollHeight-A.current.clientHeight;N&&I(Math.round(N*.2))}},[]),k.useLayoutEffect(()=>{const N=A.current;return N&&N.addEventListener("scroll",D),()=>{N&&N.removeEventListener("scroll",D)}},[D]);const C=(N,V,Z)=>b?b(N,V,Z):Z,L=g||l||c;return S&&(!a||a.length<1)?S:w.jsxs(ie.Paper,{sx:{width:n,height:r,overflow:"hidden",...d?.paper??{}},children:[L&&w.jsx(gL,{title:t,Filters:c,Sortings:l,onAdd:g&&(()=>g("NEW"))}),w.jsx(ie.TableContainer,{ref:E?A:void 0,className:"scrollable-container",sx:{height:L?"calc(100% - 64px)":"100%",...d?.container??{}},children:w.jsxs(ie.Table,{id:e,"aria-label":"table",stickyHeader:!0,sx:{...d?.table??{}},children:[w.jsx(ie.TableHead,{sx:{...d?.head??{}},children:C("header-row",bl.Header,w.jsx(y_,{columns:i,rowVariant:"head",onEdit:m&&(()=>m({})),onDelete:y&&(()=>y({})),onOpenDetails:v&&(()=>v({})),injectCallback:C}))}),w.jsx(ie.TableBody,{sx:{...d?.body??{}},children:a.map((N,V)=>w.jsxs(k.Fragment,{children:[h&&w.jsx(ie.TableRow,{style:{height:h}}),C(String(V),bl.Row,w.jsx(y_,{hover:s,selectedStyle:d?.selected,selected:!!u&&(u===N?.Id||u===N?.id),columns:i.map(Z=>({...Z,label:N[Z.id]})),onEdit:m&&(()=>m(V)),onDelete:y&&(()=>y(V)),onOpenDetails:v?Z=>v(N,Z):void 0,injectCallback:C})),h&&V===a.length-1&&w.jsx(ie.TableRow,{style:{height:h}})]},N?.Id||N?.id))})]})}),o&&w.jsx(ie.TablePagination,{count:a.length||0,rowsPerPage:o,page:O,onPageChange:H})]})}var On=(e=>(e.Numeric="numeric",e.String="string",e.Date="date",e.DateTime="dateTime",e.Time="time",e.Boolean="bool",e.Select="select",e.MultipleSelect="multipleSelect",e))(On||{});function Pm(){const e=Kv();return async(n,r)=>(r.headers={...r.headers,"content-type":"application/json"},e.AUTH_SCHEMA==="Cookies"?r.credentials="include":r.headers={...r.headers,Authorization:localStorage.getItem("token")||""},fetch(`${e.FETCH_URL}${n}`,r))}const e4=(e,t)=>{if(!e||Object.keys(e).length===0)return{};let n={};return t.forEach(r=>{const i=e[r];if(i!=null)n={...n,[r]:i};else{const a=document.getElementsByName(r).length===0?document.getElementsByName(r)[0].value!==void 0||document.getElementsByName(r)[0].value!==null:void 0;a&&(n={...n,[r]:a})}}),n};function mL(e,t,{keyName:n,label:r,defaultValue:i,options:a,dependsOn:o},s,u){const[c,l]=k.useState(()=>e4(s,o)),d=Pm(),h=v=>d(`api/v1/RAD/Options/${t}/${n}`,{method:"POST",body:JSON.stringify(v)}).then(b=>b);k.useEffect(()=>{l(()=>e4(s,o))},[s]);const g=Object.keys(c).length<o.length;let m=!1,y=null;switch(Object.keys(a)?.length>0&&a[n]&&a[n]?.length>0&&s&&(y=a[n]?.find(({value:v})=>{if(i===v)return m=!0,!0})||i?{value:i,displayValue:s[`${n}Display`]}:null),e){case On.Time:return w.jsx(Gc,{id:`time-picker-${n}`,disabled:g,name:n,label:n,value:i,onChange:v=>u(b=>({...b,[n]:v})),inputType:"time"},n);case On.Date:return w.jsx(Gc,{id:`date-picker-${n}`,disabled:g,name:n,label:n,value:i,onChange:v=>u(b=>({...b,[n]:v}))},n);case On.DateTime:return w.jsx(Gc,{id:`datetime-picker-${n}`,disabled:g,name:n,label:n,value:i,onChange:v=>u(b=>({...b,[n]:v})),inputType:"dateTime"},n);case On.Boolean:return w.jsx(aA,{label:r,disabled:g,direction:"row",name:n,defaultValue:i?.toString(),onChange:v=>u(b=>({...b,[n]:v})),options:[{label:"YES",value:"true"},{label:"NO",value:"false"}]},n);case On.Select:return Object.keys(a).length>0&&w.jsx(Bd,{id:`autocomplete-${n}`,disabled:g,dependencies:c,callback:h,name:n,label:r,onChange:v=>u(b=>({...b,[n]:v?.value})),defaultOptions:m?a[n]:[...a[n]??[],...y?[y]:[]],value:y},n);case On.MultipleSelect:return Object.keys(a).length>0&&w.jsx(Bd,{id:`autocomplete-${n}`,multiple:!0,disabled:g,dependencies:c,callback:h,name:n,label:r,onChange:v=>u(b=>({...b,[n]:v?.value})),defaultOptions:m?a[n]:[...a[n]??[],...y?[y]:[]],value:y},n);default:return w.jsx(ie.TextField,{id:`textfield-${n}`,disabled:g,name:n,label:r,defaultValue:i,onChange:v=>u(b=>({...b,[n]:v})),type:On.String?"text":"number"},n)}}function Ixe({data:e,structure:t}){const[n,r]=k.useState({}),{settings:i}=z_(),[a,o]=k.useState(e),s=Pm();return k.useEffect(()=>{e&&s(`api/v1/RAD/Options/${i.contextKey}`,{method:"POST",body:JSON.stringify(e)}).then(u=>u.json().then(c=>{r(c)}))},[e,i.contextKey]),w.jsx(Da,{gap:"24px",flexDirection:"column",children:t?.columns?.filter(({readonly:u})=>!u)?.map(({keyName:u,translatedDescription:c,dataType:l,dependsOn:d})=>mL(l,i.contextKey,{keyName:u,label:c,defaultValue:e?e[u]:void 0,options:n,dependsOn:d},a,o))})}function Dxe({data:e,structure:t,subContainers:n,injectCallback:r}){const i=k.useCallback(()=>n?.map(a=>{const o={...a};return Object.keys(o.table?.paging.filters||{})?.forEach(s=>{const u=o.table?.paging.filters[s];if(u?.type===1&&e){const c=e[s];c&&(u.value=c),o.table.paging.filters={...o.table.paging.filters,[s]:{...u}}}}),o}),[e,n]);return w.jsxs(Da,{gap:"24px",flexWrap:"wrap",children:[w.jsx(ie.Grid,{container:!0,spacing:2,sx:{width:"100%"},children:t?.columns?.filter(({showInDetails:a})=>a)?.map(({keyName:a,translatedDescription:o})=>w.jsx(ie.Grid,{size:4,children:w.jsx(Zv,{value:e?e[a]:"",caption:o,captionColor:"primary",captionStyle:{textTransform:"uppercase"},fallback:"N/A",enableCopy:!0})},a))}),i()?.map(a=>w.jsx(xL,{radData:a,injectCallback:r,isSubContainer:!0},a.id))]})}function yL(e,t){let n={};return Object.keys(e).forEach(r=>{const i=t.columns.find(({keyName:a})=>a===r)?.dataType;n={...n,[r]:Nxe(e[r],i||On.String)}}),n}const Nxe=(e,t)=>{switch(t){case On.Numeric:return parseFloat(e);case On.Date:return cs(e,zd(),_s.language)?.toDate()?.toISOString();case On.DateTime:return cs(e,`${zd()} HH:mm`,_s.language)?.toDate()?.toISOString();case On.Boolean:return e==="true";default:return e.toString()}},Lxe={DETAILS:DH,NEW:NH,EDIT:J4};function b_({open:e,onClose:t,type:n="NEW",data:r,structure:i,subContainers:a,onSubmit:o,injectCallback:s}){const u=n==="DETAILS"?Dxe:Ixe,c=l=>{const d=yL(l,i);o&&o(d,r?.index)};return w.jsx(Eh,{id:"rad-dialog",title:n,Icon:Lxe[n],open:e,onClose:t,dividers:!0,form:!!o,width:"md",onSubmit:o?c:void 0,children:w.jsx(u,{data:r,structure:i,subContainers:a,injectCallback:s})})}const wl=e=>e&&!isNaN(new Date(e).getTime()),$xe=e=>{const t=e.getHours(),n=e.getMinutes();return`${`0${t}`.slice(-2)}:${`0${n}`.slice(-2)}`},w_=(e,t,n="date")=>{if(t==null)return"";if(!wl(t))return t.toString();const r=new Date(t);if(n==="dateTime")return r.toLocaleDateString(e,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});if(n==="date")return r.toLocaleDateString(e,{day:"2-digit",month:"2-digit",year:"numeric"});if(n==="time")return $xe(r)},Bxe=(e="it-IT",t,n)=>{switch(n){case On.Numeric:return t?.toLocaleString();case On.String:return t;case On.Date:return w_(e,new Date(t),"date");case On.DateTime:return w_(e,new Date(t),"dateTime");case On.Time:return t;case On.Boolean:return t===!0||t==="true"?w.jsx(LH,{color:"success"}):w.jsx($H,{color:"error"})}},bL=(e="it-IT",t,n)=>{let r={};return Object.keys(t).forEach(i=>{const a=n.find(({keyName:o})=>i===o)?.dataType||On.String;r={...r,[i]:Bxe(e,t[i],a)}}),r};function wL({containerId:e,tableId:t,title:n,table:r,subContainers:i,paging:a,isSubContainer:o,injectCallback:s}){const{i18n:{language:u}}=Et.useTranslation(),c=Gv([]),[l,d]=k.useState(),[h,g]=k.useState(null),[m,y]=k.useState(null),[v,b]=k.useState(null),_=Pm(),E=()=>{if(!r.columns.filter(R=>R.dependsOn.length>0).length)return{};const K={};return Object.keys(r.paging.filters).forEach(R=>{const W=r.paging.filters[R];W?.type===1&&(K[W.names[0]]=W.value)}),K},{cursor:S,updateRawCursor:A}=B_()||{},O=async(K=!1)=>{try{const R=await _(`api/v1/RAD/${t}/${K?S:l?.endCursor??S}/${a?.count||25}`,{method:"GET"});if(!R.ok)throw"error fetching data";const W=await R.json();return K?c.set(W.dataSource):c.push(W.dataSource),d(W.pageInfo),W}catch(R){throw console.error("Error fetching data:",R),R}},P=K=>_(`api/v1/RAD/${e}`,{method:"POST",body:JSON.stringify(K)}),j=K=>_(`api/v1/RAD/${e}`,{method:"PUT",body:JSON.stringify(K)}),$=K=>{const R={};return r.primaryKeys.forEach(W=>R[W]=K[W]),_(`api/v1/RAD/${e}`,{method:"DELETE",body:JSON.stringify(R)})};k.useEffect(()=>{S&&(d(void 0),O(!0))},[S]),k.useEffect(()=>{A&&a?.filters&&a.sortings&&A(a.filters,a.sortings)},[t]);const z=K=>{y(typeof K=="number"?{...c.value[K],index:K}:E())},I=K=>{g(K)},H=()=>{y(null)},D=()=>{g(null)},C=(K,R)=>{const W={...K};Object.keys(W).forEach(U=>{const Y=W[U];typeof Y=="string"&&Y===""&&(W[U]=null)}),R!=null?(r.primaryKeys.forEach(U=>W[U]=m[U]),j(W).then(()=>O())):(Object.keys(r.paging.filters).forEach(U=>{const Y=r.paging.filters[U];Y?.type===1&&(W[Y.names[0]]=Y.value)}),P(W).then(()=>O())),H()},L=K=>{const R={...c.value[K]};b(R)},N=()=>{b(null)},V=()=>{v&&$(v).then(()=>{O(),N()})},Z=(K,R,W)=>s?s(e,K,R,W):W;return w.jsxs(w.Fragment,{children:[w.jsx(vL,{id:t,hasMore:l?.hasNextPage,loadMore:O,tableTitle:n,injectCallback:Z,width:o?"100%":"1000px",height:o?"400px":"900px",data:c.value?.map(K=>bL(u,K,r.columns)),hover:!0,FiltersComponent:a?.filters&&Object.keys(a?.filters)?.length>0?nL:void 0,SortingsComponent:a?.sortings&&Object.keys(a?.sortings)?.length>0?rL:void 0,onAdd:r.canAdd?z:void 0,onEdit:r.canEdit?z:void 0,onDelete:r.canDelete?L:void 0,onOpenDetails:I,columns:r.columns.filter(({showInRow:K})=>K).map(({keyName:K,alignment:R,translatedDescription:W,styleAttributes:U,dataType:Y})=>({id:K,alignment:R,label:W,styles:U,translatable:Y===On.String}))}),w.jsx(b_,{open:!!m,onClose:H,data:m,structure:r,type:m&&Object.prototype.hasOwnProperty.call(m,"index")?"EDIT":"NEW",onSubmit:C}),w.jsx(b_,{open:!!h,injectCallback:s,onClose:D,data:h,structure:r,subContainers:i,type:"DETAILS"}),w.jsx(ZN,{title:"CONFIRM_DELETE",question:"CONFIRM_DELETE_QUESTION",open:!!v,onCancel:N,onSubmit:V})]})}function xL({radData:e,injectCallback:t,isSubContainer:n}){const r=k.useMemo(()=>{const i=Object.keys(e?.table?.paging?.sortings||{}).length>0?e?.table?.paging?.sortings:{[`defaultSort-${e?.table.title}`]:{isShared:!1,order:1,name:e?.table?.columns[0]?.keyName,direction:"ASC"}};return{...e?.table?.paging||{},sortings:i}},[e.table]);return w.jsx(Xc,{flexDirection:"column",overflow:"hidden",children:e?.table&&w.jsxs(w.Fragment,{children:[e?.name&&w.jsx("h2",{children:e?.name}),w.jsx(u8,{contextKey:e.id,defaultFilters:r.filters||{},defaultSorting:r.sortings,defaultPersistance:!1,canTogglePersistance:!1,children:w.jsx(wL,{isSubContainer:n,title:e.table.title,containerId:e.id,tableId:e?.id,table:e?.table,subContainers:e?.subContainers,paging:r,injectCallback:t})})]})})}const zxe=({width:e,height:t,scale:n,onResizeStart:r,onResizeStop:i,children:a,minWidth:o=50,minHeight:s=50,maxWidth:u=800,maxHeight:c=800,style:l})=>{const d=e>0&&t>0?{width:e*n,height:t*n}:void 0;return w.jsx(JN,{size:d,minWidth:o*n,minHeight:s*n,maxWidth:u*n,maxHeight:c*n,onResizeStop:(h,g,m,y)=>{if(i){const{width:v,height:b}=y;i({width:v/n,height:b/n})}},onResizeStart:()=>{r&&r()},style:{border:"1px dashed #ccc",padding:"8px",boxSizing:"border-box",position:"relative",...l},children:a})},Fxe=k.createContext(!1);function Wxe({Header:e,Sidebar:t,Navbar:n,children:r,fullHeightSidebar:i,isIdle:a}){const o=k.useContext(Fxe);return w.jsxs(I_,{flexDirection:o?"column":"row",children:[w.jsxs(Da,{flexDirection:i&&!o?"row":"column",padding:o?"1vh 1vw":"2vh 1vw",gap:a?"0vw":"2vh",sx:{transition:"all 0.5s",...o&&{flexGrow:1,overflow:"auto"}},children:[i&&!o?t:e&&e,w.jsxs(Da,{flexGrow:o?1:"unset",flexDirection:i&&!o?"column":"row",gap:a?"0vw":"1vw",sx:{transition:"all 0.5s"},overflow:"hidden",children:[i&&!o?e:t,r]})]}),o&&n?n:null]})}const qxe=Hv.styled("div")({borderRadius:"24px",backgroundColor:"#ededed",padding:20,display:"flex",flexDirection:"column",gap:16,border:"1px solid #454545"}),Vxe=Hv.styled("h3")({fontSize:30,fontWeight:450,margin:0,color:"rgba(0, 0, 0, 0.54)",textTransform:"uppercase",textAlign:"center"});function Hxe({title:e,lastScanned:t}){return w.jsxs(qxe,{children:[w.jsx(Vxe,{children:e}),w.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 250 60",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("text",{x:"50%",y:"50%",width:"100%",textLength:"100%",dominantBaseline:"middle",textAnchor:"middle",fill:"rgba(0,0,0,0.7)",fontSize:40,fontFamily:t&&t!=="- - - - - - - -"?"LibreBarcode39Text":"Roboto",lengthAdjust:"spacingAndGlyphs",children:t||"- - - - - - - -"})})]})}const Uxe=ci(xn,{shouldForwardProp:e=>e!=="sidebarOpen"&&e!=="dir"&&e!=="hasSidebar"&&e!=="backgroundImage"&&e!=="backgroundRepeat"&&e!=="backgroundSize"&&e!=="isMobile"})(({sidebarOpen:e,dir:t,hasSidebar:n,backgroundImage:r,backgroundRepeat:i,backgroundSize:a,isMobile:o})=>({paddingTop:"1vh",overflow:"hidden",flexGrow:0,flexDirection:"row",backgroundImage:r||"none",backgroundRepeat:i||"",backgroundSize:a||"",height:"100%",transition:`${n&&(t==="rtl"?"margin-right":"margin-left")} ${q_}s ease-in-out`})),jf=ci(Q4.MaterialDesignContent)(()=>({"&.notistack-MuiContent":{borderRadius:"18px",fontSize:"1.2rem",minWidth:"20vw",maxWidth:"40vw"}}));function Gxe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(null,arguments)}function x_(e,t){return x_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},x_(e,t)}function Kxe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x_(e,t)}function iw(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var eg={};/*!
138
+ `})]})}function Rxe({items:e,pageCount:t,listItemCallback:n,onChangePage:r,pageColor:i="primary.main",height:a="100%"}){const o=Vd("(max-width: 600px)"),[s,u]=M.useState(1),c=(d,h)=>{u(h),r&&r(h)},l=Math.ceil(e.length/t);return w.jsxs(Pi,{gap:"1vh",alignItems:"center",paddingTop:"1vh",height:a,children:[w.jsx(ie.List,{sx:{width:"100%",flexGrow:1,display:"flex",flexDirection:"column",gap:"1vh"},children:e.slice((s-1)*t,s*t).map(n)}),w.jsx(ie.Pagination,{id:"list-pagination",count:l,page:s,onChange:c,variant:"outlined",size:o?"small":"large",sx:{"& .Mui-selected":{color:"#111",backgroundColor:`${i}!important`}}})]})}var hL=(e=>(e.Center="center",e.Left="left",e.Right="right",e))(hL||{}),bl=(e=>(e.Header="header",e.Footer="footer",e.Row="row",e.Cell="cell",e.HeaderCell="headerCell",e))(bl||{});function pL({size:e=24,color:t="currentColor"}){return w.jsx(ie.SvgIcon,{children:w.jsx("svg",{version:"1.1",width:e,height:e,fill:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M7 4a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2h4a1 1 0 1 1 0 2h-1.069l-.867 12.142A2 2 0 0 1 17.069 22H6.93a2 2 0 0 1-1.995-1.858L4.07 8H3a1 1 0 0 1 0-2h4V4zm2 2h6V4H9v2zM6.074 8l.857 12H17.07l.857-12H6.074zM10 10a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1zm4 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1z"})})})}function y_({columns:e,rowVariant:t="body",hover:n,selected:r,onEdit:i,onDelete:a,onOpenDetails:o,injectCallback:s,selectedStyle:u={}}){const{t:c}=Et.useTranslation(),l=h=>{h.stopPropagation(),i&&i()},d=h=>{h.stopPropagation(),a&&a()};return w.jsxs(ie.TableRow,{selected:r,hover:n,onClick:t==="body"?o:void 0,sx:{cursor:t==="body"&&o?"pointer":"auto",opacity:1},children:[e.map(({id:h,alignment:g,label:m,styles:y,translatable:v=!0,fallback:b,formatCallback:_})=>s!==void 0?w.jsx(M.Fragment,{children:s(h.toString(),t==="body"?bl.Cell:bl.HeaderCell,w.jsxs(ie.TableCell,{align:g,variant:t,sx:{...y,...r?u:{}},children:[m==null&&b?b:null,_&&t==="body"?_(typeof m=="string"&&v?c(m):m):typeof m=="string"&&(v||t==="head")?c(m):m]},h))},h):w.jsx(ie.TableCell,{align:g,variant:t,sx:{...y,...r?u:{}},children:typeof m=="string"&&v?c(m):m},h)),(i||a)&&w.jsx(ie.TableCell,{align:"right",children:t==="body"&&w.jsxs(ie.Stack,{direction:"row",justifyContent:"flex-end",spacing:.5,children:[i&&w.jsx(ie.IconButton,{onClick:l,children:w.jsx(J4,{})}),a&&w.jsx(ie.IconButton,{onClick:d,children:w.jsx(pL,{})})]})})]})}function gL({title:e,onAdd:t,Filters:n,Sortings:r}){const{t:i}=Et.useTranslation();return w.jsxs(ie.Toolbar,{id:"table-toolbar",children:[typeof e=="string"?w.jsx(ie.Typography,{variant:"h6",noWrap:!0,children:i(e)}):e,w.jsxs("div",{style:{display:"flex",gap:"16px",marginLeft:"auto"},children:[n&&w.jsx(jw,{Icon:kH,label:"FILTERS",menuContent:w.jsx(n,{onClose:()=>{}})}),r&&w.jsx(jw,{Icon:RH,label:"SORTINGS",menuContent:w.jsx(r,{onClose:()=>{}})}),t&&w.jsx(ie.Button,{id:"add-to-table-btn",onClick:t,startIcon:w.jsx(IH,{}),children:i("NEW")})]})]})}function vL({id:e,tableTitle:t,width:n,height:r,columns:i,data:a,rowsPerPage:o,hover:s,selected:u,FiltersComponent:c,SortingsComponent:l,slotStyles:d,spacing:h,onAdd:g,onEdit:m,onDelete:y,onOpenDetails:v,injectCallback:b,hasMore:_,loadMore:E,fallback:S}){Yv();const A=M.useRef(null),[O,P]=M.useState(0),[j,$]=M.useState(!1),[z,I]=M.useState(0),H=(N,V)=>{P(V)},D=M.useCallback(()=>{if(j||!A.current||!_||typeof E!="function")return;const N=A.current.scrollHeight-A.current.clientHeight;z===0&&N&&I(Math.round(N*.2)),A.current.scrollTop>N-z&&($(!0),Promise.resolve(E()).finally(()=>$(!1)))},[j,z,_,E]);M.useLayoutEffect(()=>{if(A.current&&z===0){const N=A.current.scrollHeight-A.current.clientHeight;N&&I(Math.round(N*.2))}},[]),M.useLayoutEffect(()=>{const N=A.current;return N&&N.addEventListener("scroll",D),()=>{N&&N.removeEventListener("scroll",D)}},[D]);const C=(N,V,Z)=>b?b(N,V,Z):Z,L=g||l||c;return S&&(!a||a.length<1)?S:w.jsxs(ie.Paper,{sx:{width:n,height:r,overflow:"hidden",...d?.paper??{}},children:[L&&w.jsx(gL,{title:t,Filters:c,Sortings:l,onAdd:g&&(()=>g("NEW"))}),w.jsx(ie.TableContainer,{ref:E?A:void 0,className:"scrollable-container",sx:{height:L?"calc(100% - 64px)":"100%",...d?.container??{}},children:w.jsxs(ie.Table,{id:e,"aria-label":"table",stickyHeader:!0,sx:{...d?.table??{}},children:[w.jsx(ie.TableHead,{sx:{...d?.head??{}},children:C("header-row",bl.Header,w.jsx(y_,{columns:i,rowVariant:"head",onEdit:m&&(()=>m({})),onDelete:y&&(()=>y({})),onOpenDetails:v&&(()=>v({})),injectCallback:C}))}),w.jsx(ie.TableBody,{sx:{...d?.body??{}},children:a.map((N,V)=>w.jsxs(M.Fragment,{children:[h&&w.jsx(ie.TableRow,{style:{height:h}}),C(String(V),bl.Row,w.jsx(y_,{hover:s,selectedStyle:d?.selected,selected:!!u&&(u===N?.Id||u===N?.id),columns:i.map(Z=>({...Z,label:N[Z.id]})),onEdit:m&&(()=>m(V)),onDelete:y&&(()=>y(V)),onOpenDetails:v?Z=>v(N,Z):void 0,injectCallback:C})),h&&V===a.length-1&&w.jsx(ie.TableRow,{style:{height:h}})]},N?.Id||N?.id))})]})}),o&&w.jsx(ie.TablePagination,{count:a.length||0,rowsPerPage:o,page:O,onPageChange:H})]})}var On=(e=>(e.Numeric="numeric",e.String="string",e.Date="date",e.DateTime="dateTime",e.Time="time",e.Boolean="bool",e.Select="select",e.MultipleSelect="multipleSelect",e))(On||{});function Pm(){const e=Kv();return async(n,r)=>(r.headers={...r.headers,"content-type":"application/json"},e.AUTH_SCHEMA==="Cookies"?r.credentials="include":r.headers={...r.headers,Authorization:localStorage.getItem("token")||""},fetch(`${e.FETCH_URL}${n}`,r))}const e4=(e,t)=>{if(!e||Object.keys(e).length===0)return{};let n={};return t.forEach(r=>{const i=e[r];if(i!=null)n={...n,[r]:i};else{const a=document.getElementsByName(r).length===0?document.getElementsByName(r)[0].value!==void 0||document.getElementsByName(r)[0].value!==null:void 0;a&&(n={...n,[r]:a})}}),n};function mL(e,t,{keyName:n,label:r,defaultValue:i,options:a,dependsOn:o},s,u){const[c,l]=M.useState(()=>e4(s,o)),d=Pm(),h=v=>d(`api/v1/RAD/Options/${t}/${n}`,{method:"POST",body:JSON.stringify(v)}).then(b=>b);M.useEffect(()=>{l(()=>e4(s,o))},[s]);const g=Object.keys(c).length<o.length;let m=!1,y=null;switch(Object.keys(a)?.length>0&&a[n]&&a[n]?.length>0&&s&&(y=a[n]?.find(({value:v})=>{if(i===v)return m=!0,!0})||i?{value:i,displayValue:s[`${n}Display`]}:null),e){case On.Time:return w.jsx(Gc,{id:`time-picker-${n}`,disabled:g,name:n,label:n,value:i,onChange:v=>u(b=>({...b,[n]:v})),inputType:"time"},n);case On.Date:return w.jsx(Gc,{id:`date-picker-${n}`,disabled:g,name:n,label:n,value:i,onChange:v=>u(b=>({...b,[n]:v}))},n);case On.DateTime:return w.jsx(Gc,{id:`datetime-picker-${n}`,disabled:g,name:n,label:n,value:i,onChange:v=>u(b=>({...b,[n]:v})),inputType:"dateTime"},n);case On.Boolean:return w.jsx(aA,{label:r,disabled:g,direction:"row",name:n,defaultValue:i?.toString(),onChange:v=>u(b=>({...b,[n]:v})),options:[{label:"YES",value:"true"},{label:"NO",value:"false"}]},n);case On.Select:return Object.keys(a).length>0&&w.jsx(Bd,{id:`autocomplete-${n}`,disabled:g,dependencies:c,callback:h,name:n,label:r,onChange:v=>u(b=>({...b,[n]:v?.value})),defaultOptions:m?a[n]:[...a[n]??[],...y?[y]:[]],value:y},n);case On.MultipleSelect:return Object.keys(a).length>0&&w.jsx(Bd,{id:`autocomplete-${n}`,multiple:!0,disabled:g,dependencies:c,callback:h,name:n,label:r,onChange:v=>u(b=>({...b,[n]:v?.value})),defaultOptions:m?a[n]:[...a[n]??[],...y?[y]:[]],value:y},n);default:return w.jsx(ie.TextField,{id:`textfield-${n}`,disabled:g,name:n,label:r,defaultValue:i,onChange:v=>u(b=>({...b,[n]:v})),type:On.String?"text":"number"},n)}}function Ixe({data:e,structure:t}){const[n,r]=M.useState({}),{settings:i}=z_(),[a,o]=M.useState(e),s=Pm();return M.useEffect(()=>{e&&s(`api/v1/RAD/Options/${i.contextKey}`,{method:"POST",body:JSON.stringify(e)}).then(u=>u.json().then(c=>{r(c)}))},[e,i.contextKey]),w.jsx(Da,{gap:"24px",flexDirection:"column",children:t?.columns?.filter(({readonly:u})=>!u)?.map(({keyName:u,translatedDescription:c,dataType:l,dependsOn:d})=>mL(l,i.contextKey,{keyName:u,label:c,defaultValue:e?e[u]:void 0,options:n,dependsOn:d},a,o))})}function Dxe({data:e,structure:t,subContainers:n,injectCallback:r}){const i=M.useCallback(()=>n?.map(a=>{const o={...a};return Object.keys(o.table?.paging.filters||{})?.forEach(s=>{const u=o.table?.paging.filters[s];if(u?.type===1&&e){const c=e[s];c&&(u.value=c),o.table.paging.filters={...o.table.paging.filters,[s]:{...u}}}}),o}),[e,n]);return w.jsxs(Da,{gap:"24px",flexWrap:"wrap",children:[w.jsx(ie.Grid,{container:!0,spacing:2,sx:{width:"100%"},children:t?.columns?.filter(({showInDetails:a})=>a)?.map(({keyName:a,translatedDescription:o})=>w.jsx(ie.Grid,{size:4,children:w.jsx(Zv,{value:e?e[a]:"",caption:o,captionColor:"primary",captionStyle:{textTransform:"uppercase"},fallback:"N/A",enableCopy:!0})},a))}),i()?.map(a=>w.jsx(xL,{radData:a,injectCallback:r,isSubContainer:!0},a.id))]})}function yL(e,t){let n={};return Object.keys(e).forEach(r=>{const i=t.columns.find(({keyName:a})=>a===r)?.dataType;n={...n,[r]:Nxe(e[r],i||On.String)}}),n}const Nxe=(e,t)=>{switch(t){case On.Numeric:return parseFloat(e);case On.Date:return cs(e,zd(),_s.language)?.toDate()?.toISOString();case On.DateTime:return cs(e,`${zd()} HH:mm`,_s.language)?.toDate()?.toISOString();case On.Boolean:return e==="true";default:return e.toString()}},Lxe={DETAILS:DH,NEW:NH,EDIT:J4};function b_({open:e,onClose:t,type:n="NEW",data:r,structure:i,subContainers:a,onSubmit:o,injectCallback:s}){const u=n==="DETAILS"?Dxe:Ixe,c=l=>{const d=yL(l,i);o&&o(d,r?.index)};return w.jsx(Eh,{id:"rad-dialog",title:n,Icon:Lxe[n],open:e,onClose:t,dividers:!0,form:!!o,width:"md",onSubmit:o?c:void 0,children:w.jsx(u,{data:r,structure:i,subContainers:a,injectCallback:s})})}const wl=e=>e&&!isNaN(new Date(e).getTime()),$xe=e=>{const t=e.getHours(),n=e.getMinutes();return`${`0${t}`.slice(-2)}:${`0${n}`.slice(-2)}`},w_=(e,t,n="date")=>{if(t==null)return"";if(!wl(t))return t.toString();const r=new Date(t);if(n==="dateTime")return r.toLocaleDateString(e,{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});if(n==="date")return r.toLocaleDateString(e,{day:"2-digit",month:"2-digit",year:"numeric"});if(n==="time")return $xe(r)},Bxe=(e="it-IT",t,n)=>{switch(n){case On.Numeric:return t?.toLocaleString();case On.String:return t;case On.Date:return w_(e,new Date(t),"date");case On.DateTime:return w_(e,new Date(t),"dateTime");case On.Time:return t;case On.Boolean:return t===!0||t==="true"?w.jsx(LH,{color:"success"}):w.jsx($H,{color:"error"})}},bL=(e="it-IT",t,n)=>{let r={};return Object.keys(t).forEach(i=>{const a=n.find(({keyName:o})=>i===o)?.dataType||On.String;r={...r,[i]:Bxe(e,t[i],a)}}),r};function wL({containerId:e,tableId:t,title:n,table:r,subContainers:i,paging:a,isSubContainer:o,injectCallback:s}){const{i18n:{language:u}}=Et.useTranslation(),c=Gv([]),[l,d]=M.useState(),[h,g]=M.useState(null),[m,y]=M.useState(null),[v,b]=M.useState(null),_=Pm(),E=()=>{if(!r.columns.filter(R=>R.dependsOn.length>0).length)return{};const K={};return Object.keys(r.paging.filters).forEach(R=>{const W=r.paging.filters[R];W?.type===1&&(K[W.names[0]]=W.value)}),K},{cursor:S,updateRawCursor:A}=B_()||{},O=async(K=!1)=>{try{const R=await _(`api/v1/RAD/${t}/${K?S:l?.endCursor??S}/${a?.count||25}`,{method:"GET"});if(!R.ok)throw"error fetching data";const W=await R.json();return K?c.set(W.dataSource):c.push(W.dataSource),d(W.pageInfo),W}catch(R){throw console.error("Error fetching data:",R),R}},P=K=>_(`api/v1/RAD/${e}`,{method:"POST",body:JSON.stringify(K)}),j=K=>_(`api/v1/RAD/${e}`,{method:"PUT",body:JSON.stringify(K)}),$=K=>{const R={};return r.primaryKeys.forEach(W=>R[W]=K[W]),_(`api/v1/RAD/${e}`,{method:"DELETE",body:JSON.stringify(R)})};M.useEffect(()=>{S&&(d(void 0),O(!0))},[S]),M.useEffect(()=>{A&&a?.filters&&a.sortings&&A(a.filters,a.sortings)},[t]);const z=K=>{y(typeof K=="number"?{...c.value[K],index:K}:E())},I=K=>{g(K)},H=()=>{y(null)},D=()=>{g(null)},C=(K,R)=>{const W={...K};Object.keys(W).forEach(U=>{const Y=W[U];typeof Y=="string"&&Y===""&&(W[U]=null)}),R!=null?(r.primaryKeys.forEach(U=>W[U]=m[U]),j(W).then(()=>O())):(Object.keys(r.paging.filters).forEach(U=>{const Y=r.paging.filters[U];Y?.type===1&&(W[Y.names[0]]=Y.value)}),P(W).then(()=>O())),H()},L=K=>{const R={...c.value[K]};b(R)},N=()=>{b(null)},V=()=>{v&&$(v).then(()=>{O(),N()})},Z=(K,R,W)=>s?s(e,K,R,W):W;return w.jsxs(w.Fragment,{children:[w.jsx(vL,{id:t,hasMore:l?.hasNextPage,loadMore:O,tableTitle:n,injectCallback:Z,width:o?"100%":"1000px",height:o?"400px":"900px",data:c.value?.map(K=>bL(u,K,r.columns)),hover:!0,FiltersComponent:a?.filters&&Object.keys(a?.filters)?.length>0?nL:void 0,SortingsComponent:a?.sortings&&Object.keys(a?.sortings)?.length>0?rL:void 0,onAdd:r.canAdd?z:void 0,onEdit:r.canEdit?z:void 0,onDelete:r.canDelete?L:void 0,onOpenDetails:I,columns:r.columns.filter(({showInRow:K})=>K).map(({keyName:K,alignment:R,translatedDescription:W,styleAttributes:U,dataType:Y})=>({id:K,alignment:R,label:W,styles:U,translatable:Y===On.String}))}),w.jsx(b_,{open:!!m,onClose:H,data:m,structure:r,type:m&&Object.prototype.hasOwnProperty.call(m,"index")?"EDIT":"NEW",onSubmit:C}),w.jsx(b_,{open:!!h,injectCallback:s,onClose:D,data:h,structure:r,subContainers:i,type:"DETAILS"}),w.jsx(ZN,{title:"CONFIRM_DELETE",question:"CONFIRM_DELETE_QUESTION",open:!!v,onCancel:N,onSubmit:V})]})}function xL({radData:e,injectCallback:t,isSubContainer:n}){const r=M.useMemo(()=>{const i=Object.keys(e?.table?.paging?.sortings||{}).length>0?e?.table?.paging?.sortings:{[`defaultSort-${e?.table.title}`]:{isShared:!1,order:1,name:e?.table?.columns[0]?.keyName,direction:"ASC"}};return{...e?.table?.paging||{},sortings:i}},[e.table]);return w.jsx(Xc,{flexDirection:"column",overflow:"hidden",children:e?.table&&w.jsxs(w.Fragment,{children:[e?.name&&w.jsx("h2",{children:e?.name}),w.jsx(u8,{contextKey:e.id,defaultFilters:r.filters||{},defaultSorting:r.sortings,defaultPersistance:!1,canTogglePersistance:!1,children:w.jsx(wL,{isSubContainer:n,title:e.table.title,containerId:e.id,tableId:e?.id,table:e?.table,subContainers:e?.subContainers,paging:r,injectCallback:t})})]})})}const zxe=({width:e,height:t,scale:n,onResizeStart:r,onResizeStop:i,children:a,minWidth:o=50,minHeight:s=50,maxWidth:u=800,maxHeight:c=800,style:l})=>{const d=e>0&&t>0?{width:e*n,height:t*n}:void 0;return w.jsx(JN,{size:d,minWidth:o*n,minHeight:s*n,maxWidth:u*n,maxHeight:c*n,onResizeStop:(h,g,m,y)=>{if(i){const{width:v,height:b}=y;i({width:v/n,height:b/n})}},onResizeStart:()=>{r&&r()},style:{border:"1px dashed #ccc",padding:"8px",boxSizing:"border-box",position:"relative",...l},children:a})},Fxe=M.createContext(!1);function Wxe({Header:e,Sidebar:t,Navbar:n,children:r,fullHeightSidebar:i,isIdle:a}){const o=M.useContext(Fxe);return w.jsxs(I_,{flexDirection:o?"column":"row",children:[w.jsxs(Da,{flexDirection:i&&!o?"row":"column",padding:o?"1vh 1vw":"2vh 1vw",gap:a?"0vw":"2vh",sx:{transition:"all 0.5s",...o&&{flexGrow:1,overflow:"auto"}},children:[i&&!o?t:e&&e,w.jsxs(Da,{flexGrow:o?1:"unset",flexDirection:i&&!o?"column":"row",gap:a?"0vw":"1vw",sx:{transition:"all 0.5s"},overflow:"hidden",children:[i&&!o?e:t,r]})]}),o&&n?n:null]})}const qxe=Hv.styled("div")({borderRadius:"24px",backgroundColor:"#ededed",padding:20,display:"flex",flexDirection:"column",gap:16,border:"1px solid #454545"}),Vxe=Hv.styled("h3")({fontSize:30,fontWeight:450,margin:0,color:"rgba(0, 0, 0, 0.54)",textTransform:"uppercase",textAlign:"center"});function Hxe({title:e,lastScanned:t}){return w.jsxs(qxe,{children:[w.jsx(Vxe,{children:e}),w.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 250 60",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("text",{x:"50%",y:"50%",width:"100%",textLength:"100%",dominantBaseline:"middle",textAnchor:"middle",fill:"rgba(0,0,0,0.7)",fontSize:40,fontFamily:t&&t!=="- - - - - - - -"?"LibreBarcode39Text":"Roboto",lengthAdjust:"spacingAndGlyphs",children:t||"- - - - - - - -"})})]})}const Uxe=ci(xn,{shouldForwardProp:e=>e!=="sidebarOpen"&&e!=="dir"&&e!=="hasSidebar"&&e!=="backgroundImage"&&e!=="backgroundRepeat"&&e!=="backgroundSize"&&e!=="isMobile"})(({sidebarOpen:e,dir:t,hasSidebar:n,backgroundImage:r,backgroundRepeat:i,backgroundSize:a,isMobile:o})=>({paddingTop:"1vh",overflow:"hidden",flexGrow:0,flexDirection:"row",backgroundImage:r||"none",backgroundRepeat:i||"",backgroundSize:a||"",height:"100%",transition:`${n&&(t==="rtl"?"margin-right":"margin-left")} ${q_}s ease-in-out`})),jf=ci(Q4.MaterialDesignContent)(()=>({"&.notistack-MuiContent":{borderRadius:"18px",fontSize:"1.2rem",minWidth:"20vw",maxWidth:"40vw"}}));function Gxe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(null,arguments)}function x_(e,t){return x_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},x_(e,t)}function Kxe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x_(e,t)}function iw(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var eg={};/*!
139
139
  * content-type
140
140
  * Copyright(c) 2015 Douglas Christopher Wilson
141
141
  * MIT Licensed
@@ -148,7 +148,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var oe=Oe(ye,pe,ae,re,ge
148
148
  `;for(const o in r.frames){a+=` ${o} {
149
149
  `;const s=r.frames[o];for(const u in s)a+=` ${u}: ${s[u]};
150
150
  `;a+=` }
151
- `}a+="}",i.textContent=a,document.body.appendChild(i)}e.style.animation=`${r.name} ${r.duration}s ${r.iteration} ${r.direction}`}function m_e(e,t,n){if(t===void 0||!n.hasOwnProperty(t))return;const r=n[t];if(document.querySelector(`#${r.name}Animation`)===null){const i=document.createElement("style");i.id=`${r.name}Animation`,i.textContent=`@keyframes ${r.name} { 0%, 50% {display: none;} 51%, 100% {display: block;}}`,document.body.appendChild(i)}e.style.animation=`${r.name} ${r.duration}s infinite normal`}function y_e(e,t,n){t===void 0||!n.hasOwnProperty(t)||e.setAttribute("width",n[t])}function b_e(e,t,n){t===void 0||!n.hasOwnProperty(t)||e.childNodes.forEach(r=>{r instanceof Element&&r.tagName!=="text"&&r.tagName!=="g"&&r.setAttribute("fill",n[t])})}function w_e(e,t,n){t===void 0||!n.hasOwnProperty(t)||e.addEventListener("click",()=>{const r=n[t];r&&r()})}function x_e(e,t,n,r){t={...t,themedColor:r==="dark"?"#fff":"#000"};const i=e.querySelectorAll("[data-svg-interpolable]");i&&[...i].forEach(a=>{if(!d_e(a,a.dataset.svgVisible,t))return;const o=a.dataset.svgPrecision,s=o?parseInt(o,10):0;b_e(a,a.dataset.svgBgcolor,t),h_e(a,a.dataset.svgValueColor,t),o?g_e(a,a.dataset.svgValue,t,s):p_e(a,a.dataset.svgValue,t),y_e(a,a.dataset.svgWidth,t),v_e(a,a.dataset.svgAnimation,t),m_e(a,a.dataset.svgBlink,t),w_e(a,a.dataset.svgClick,n)})}function __e(e,t){const n=ei(e.dataSourceKey,t);return!n||!Array.isArray(n)?0:n?.filter(i=>cA(e.booleanDescriptor,i))?.length}function ei(e,t){return typeof e=="string"?E_(e,t):Array.isArray(e)?__(e,t):__e(e,t)}function E_e(e,t){const n=ei(e.dataSourceKey,t);if(typeof n!="number")return 0;const r=n*e.maxLenght/100;return r<e.maxLenght?r:e.maxLenght}function S_e(e,t){for(let n=0;n<e.booleanRules?.length;n++)if(cA(e.booleanRules[n],t))return e.colors[n];return e.colors[0]}function __(e,t){let n=typeof e[0]=="string"?E_(e[0],t):__(e[0],t);if(typeof n!="number")return null;for(let r=1;r<e.length;r+=2){const i=e[r];if(typeof e[r+1]=="string"){const a=Number(E_(e[r+1],t));if(Number.isNaN(a))return null;switch(i){case"+":n+=a;break;case"-":n-=a;break;case"*":n*=a;break;case"/":isNaN(a)||a===null||a===0?n=null:n=n/a;break;case"%":isNaN(a)||a===null||a===0?n=null:n=n%a;break;default:throw new Error("Invalid operator")}}else{const a=__(e[r+1],t);if(typeof a!="number")return null;switch(i){case"+":n+=a;break;case"-":n-=a;break;case"*":n*=a;break;case"/":isNaN(a)||a===null||a===0?n=null:n=n/a;break;case"%":isNaN(a)||a===null||a===0?n=null:n=n%a;break;default:throw new Error("Invalid operator")}}}return n}function A_e(e,t){switch(e.booleanOperation){case">":return ei(e.dataSourceKey,t)>e.comparerValue;case"<":return ei(e.dataSourceKey,t)<e.comparerValue;case"==":return ei(e.dataSourceKey,t)==e.comparerValue;case"===":return ei(e.dataSourceKey,t)===e.comparerValue;case"!=":return ei(e.dataSourceKey,t)!=e.comparerValue;case"!==":return ei(e.dataSourceKey,t)!==e.comparerValue;case"null":return ei(e.dataSourceKey,t)===null;case"!null":return ei(e.dataSourceKey,t)!==null;case"undefined":return ei(e.dataSourceKey,t)===void 0;case"!undefined":return ei(e.dataSourceKey,t)!==void 0;default:return ei(e.dataSourceKey,t)}}function O_e(e,t){let n=!0;for(let r=0;r<e.length;r++)if(!A_e(e[r],t)){n=!1;break}return n}function cA(e,t){let n=!1;for(let r=0;r<e.length;r++)if(O_e(e[r],t)){n=!0;break}return n}function E_(e,t){const n=e.split(".");let r=t;for(let i=0;i<n.length;i++){const a=n[i];if(!r){r=null;break}if(Object.prototype.hasOwnProperty.call(r,a))r=r[a];else{r=a;break}}return r}function T_e(e,t){const n=JSON.parse(e);let r={},i;return Object.keys(n).forEach(a=>{const o=n[a];o.type==="Boolean"&&(i=cA(o.rule,t),r={...r,[a]:i}),o.type==="Color"&&(i=S_e(o.rule,t),r={...r,[a]:i}),o.type==="Value"&&(i=ei(o.rule,t),r={...r,[a]:i}),o.type==="Width"&&(r={...r,[a]:E_e(o.rule,t)}),o.type==="Animation"&&(r={...r,[a]:o.rule}),o.type==="Blink"&&(r={...r,[a]:o.rule})}),r}function P_e({blob:e,ruleSet:t,dataSource:n,callBacksSet:r={}}){const[i]=Bo(),[a,o]=k.useState(null),[s,u]=k.useState();k.useEffect(()=>()=>{a&&URL.revokeObjectURL(a),o(null)},[]),k.useEffect(()=>{const l=T_e(t,n);u(l)},[t,n]);const c=k.useCallback(l=>x_e(l,s,r,i),[s,r,i]);return k.useEffect(()=>{if(!e){a&&URL.revokeObjectURL(a),o(null);return}const l=new Uint8Array(e),d=new Blob([l],{type:"image/svg+xml"}),h=URL.createObjectURL(d);a&&URL.revokeObjectURL(a),o(h)},[e]),w.jsx(w.Fragment,{children:a&&s&&w.jsx(uA,{width:100,src:a,evalScripts:"always",beforeInjection:l=>{c(l)}})})}function C_e({options:e,updateSortings:t,GstateKey:n}){const{t:r}=Et.useTranslation(),[i,a]=k.useState(),[o,s]=ma(n,"");function u(){const l={Order:{isShared:!1,order:1,name:i.id,direction:i.order}};t(l,!0)}const c=e.flatMap(l=>[w.jsx(ie.MenuItem,{value:`${l.id}_DESC`,children:w.jsxs(xn,{gap:"10px",justifyContent:"space-between",alignItems:"center",width:"100%",children:[w.jsx("span",{children:r(l.name)}),w.jsx(ie.Chip,{label:r("DESCENDING"),deleteIcon:w.jsx(Z4,{}),onDelete:()=>null,style:{marginLeft:"auto"}})]})},`${l.id}_DESC`),w.jsx(ie.MenuItem,{value:`${l.id}_ASC`,children:w.jsxs(xn,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[w.jsx("span",{children:r(l.name)}),w.jsx(ie.Chip,{label:r("ASCENDING"),deleteIcon:w.jsx(X4,{}),onDelete:()=>null,style:{marginLeft:"auto"}})]})},`${l.id}_ASC`)]);return w.jsxs(Pi,{alignItems:"center",padding:"20px",gap:"25px",width:"400px",height:"100%",children:[w.jsxs(ie.FormControl,{fullWidth:!0,children:[w.jsx(ie.InputLabel,{id:"sorting",children:r("SORTING")}),w.jsx(ie.Select,{sx:{width:"100%"},label:r("SORTING"),value:i?`${i.id}_${i.order}`:o,id:"sorting",onChange:l=>{const[d,h]=l.target.value.split("_");s(`${d}_${h}`),a({id:d,order:h})},fullWidth:!0,children:c})]}),w.jsx(ie.Button,{size:"large",onClick:u,children:r("APPLY")})]})}function j_e({options:e,updateSortings:t,GstateKey:n}){const{t:r}=Et.useTranslation(),[i,a]=ma(n,e.reduce((u,c)=>(u[c.id]={order:"NONE"},u),{}));function o(){const u=Object.keys(i).reduce((c,l)=>({...c,[l]:{isShared:!1,order:1,name:l,direction:i[l].order}}),{});t(u,!0)}const s=e.map(u=>w.jsxs(ie.ListItem,{divider:!0,sx:{padding:"16px"},children:[w.jsx(ie.ListItemText,{children:r(u.name)}),w.jsxs(ie.Select,{id:`${u.id}_sorting`,value:i[u.id]?.order,onChange:c=>{const l=c.target.value;a(d=>({...d,[u.id]:{order:l}}))},size:"small",sx:{width:"50%"},children:[w.jsx(ie.MenuItem,{value:"NONE",children:r("NONE")}),w.jsx(ie.MenuItem,{value:"DESC",children:r("DESCENDING")}),w.jsx(ie.MenuItem,{value:"ASC",children:r("ASCENDING")})]})]},u.id));return w.jsxs(Da,{flexDirection:"column",minWidth:"360px",children:[s,w.jsx(ie.Button,{sx:{margin:"16px"},size:"medium",onClick:o,children:r("APPLY")})]})}var AL=(e=>(e.squared="0px",e.rounded="24px",e.circle="50%",e))(AL||{});function M_e({id:e,src:t,width:n="500px",height:r="300px",variant:i="squared",seamless:a=!1,autoUpdate:o,backgroundColor:s}){return k.useEffect(()=>{if(o){const u=setInterval(()=>{document.getElementById(e)?.setAttribute("src",t)},o);return()=>clearInterval(u)}},[o,e,t]),w.jsx("div",{id:`${e}-wrapper`,style:{width:n,height:i==="circle"?n:r,overflow:"hidden",borderRadius:AL[i],backgroundColor:s},children:w.jsx("iframe",{id:e,seamless:a,loading:"lazy",src:t,width:"100%",height:"100%",style:{border:"unset"},allowFullScreen:!0})})}function k_e({value:e,total:t=100,size:n}){const[r]=Bo();return w.jsxs(xn,{alignItems:"center",gap:".5rem",width:"100%",children:[w.jsx(By,{variant:"determinate",value:e<t?e/t*100:100,sx:{width:"100%",height:n==="small"?"16px":n==="verySmall"?"10px":n==="medium"?"20px":"24px",borderRadius:5,[`&.${By.linearProgressClasses.colorPrimary}`]:{backgroundColor:`greyCustom.${r}`},[`& .${By.linearProgressClasses.bar}`]:{borderRadius:5}}}),t&&w.jsx(BH,{variant:"caption",sx:{minWidth:45,userSelect:"none"},noWrap:!0,children:`${(e/t*100).toFixed(1)}%`})]})}function R_e({value:e,total:t=100,size:n="small"}){return w.jsx(k_e,{value:e,total:t,size:n})}function I_e({dieCode:e}){return w.jsxs("svg",{width:"80%",id:"Livello_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130.79 125.8",children:[w.jsx("defs",{children:w.jsxs("pattern",{id:"diagonalLines",patternUnits:"userSpaceOnUse",width:"6",height:"6",children:[w.jsx("rect",{width:"6",height:"6",fill:"#a0a0a0"}),w.jsx("path",{d:`M-3,3 l4.5,-4.5\r
151
+ `}a+="}",i.textContent=a,document.body.appendChild(i)}e.style.animation=`${r.name} ${r.duration}s ${r.iteration} ${r.direction}`}function m_e(e,t,n){if(t===void 0||!n.hasOwnProperty(t))return;const r=n[t];if(document.querySelector(`#${r.name}Animation`)===null){const i=document.createElement("style");i.id=`${r.name}Animation`,i.textContent=`@keyframes ${r.name} { 0%, 50% {display: none;} 51%, 100% {display: block;}}`,document.body.appendChild(i)}e.style.animation=`${r.name} ${r.duration}s infinite normal`}function y_e(e,t,n){t===void 0||!n.hasOwnProperty(t)||e.setAttribute("width",n[t])}function b_e(e,t,n){t===void 0||!n.hasOwnProperty(t)||e.childNodes.forEach(r=>{r instanceof Element&&r.tagName!=="text"&&r.tagName!=="g"&&r.setAttribute("fill",n[t])})}function w_e(e,t,n){t===void 0||!n.hasOwnProperty(t)||e.addEventListener("click",()=>{const r=n[t];r&&r()})}function x_e(e,t,n,r){t={...t,themedColor:r==="dark"?"#fff":"#000"};const i=e.querySelectorAll("[data-svg-interpolable]");i&&[...i].forEach(a=>{if(!d_e(a,a.dataset.svgVisible,t))return;const o=a.dataset.svgPrecision,s=o?parseInt(o,10):0;b_e(a,a.dataset.svgBgcolor,t),h_e(a,a.dataset.svgValueColor,t),o?g_e(a,a.dataset.svgValue,t,s):p_e(a,a.dataset.svgValue,t),y_e(a,a.dataset.svgWidth,t),v_e(a,a.dataset.svgAnimation,t),m_e(a,a.dataset.svgBlink,t),w_e(a,a.dataset.svgClick,n)})}function __e(e,t){const n=ei(e.dataSourceKey,t);return!n||!Array.isArray(n)?0:n?.filter(i=>cA(e.booleanDescriptor,i))?.length}function ei(e,t){return typeof e=="string"?E_(e,t):Array.isArray(e)?__(e,t):__e(e,t)}function E_e(e,t){const n=ei(e.dataSourceKey,t);if(typeof n!="number")return 0;const r=n*e.maxLenght/100;return r<e.maxLenght?r:e.maxLenght}function S_e(e,t){for(let n=0;n<e.booleanRules?.length;n++)if(cA(e.booleanRules[n],t))return e.colors[n];return e.colors[0]}function __(e,t){let n=typeof e[0]=="string"?E_(e[0],t):__(e[0],t);if(typeof n!="number")return null;for(let r=1;r<e.length;r+=2){const i=e[r];if(typeof e[r+1]=="string"){const a=Number(E_(e[r+1],t));if(Number.isNaN(a))return null;switch(i){case"+":n+=a;break;case"-":n-=a;break;case"*":n*=a;break;case"/":isNaN(a)||a===null||a===0?n=null:n=n/a;break;case"%":isNaN(a)||a===null||a===0?n=null:n=n%a;break;default:throw new Error("Invalid operator")}}else{const a=__(e[r+1],t);if(typeof a!="number")return null;switch(i){case"+":n+=a;break;case"-":n-=a;break;case"*":n*=a;break;case"/":isNaN(a)||a===null||a===0?n=null:n=n/a;break;case"%":isNaN(a)||a===null||a===0?n=null:n=n%a;break;default:throw new Error("Invalid operator")}}}return n}function A_e(e,t){switch(e.booleanOperation){case">":return ei(e.dataSourceKey,t)>e.comparerValue;case"<":return ei(e.dataSourceKey,t)<e.comparerValue;case"==":return ei(e.dataSourceKey,t)==e.comparerValue;case"===":return ei(e.dataSourceKey,t)===e.comparerValue;case"!=":return ei(e.dataSourceKey,t)!=e.comparerValue;case"!==":return ei(e.dataSourceKey,t)!==e.comparerValue;case"null":return ei(e.dataSourceKey,t)===null;case"!null":return ei(e.dataSourceKey,t)!==null;case"undefined":return ei(e.dataSourceKey,t)===void 0;case"!undefined":return ei(e.dataSourceKey,t)!==void 0;default:return ei(e.dataSourceKey,t)}}function O_e(e,t){let n=!0;for(let r=0;r<e.length;r++)if(!A_e(e[r],t)){n=!1;break}return n}function cA(e,t){let n=!1;for(let r=0;r<e.length;r++)if(O_e(e[r],t)){n=!0;break}return n}function E_(e,t){const n=e.split(".");let r=t;for(let i=0;i<n.length;i++){const a=n[i];if(!r){r=null;break}if(Object.prototype.hasOwnProperty.call(r,a))r=r[a];else{r=a;break}}return r}function T_e(e,t){const n=JSON.parse(e);let r={},i;return Object.keys(n).forEach(a=>{const o=n[a];o.type==="Boolean"&&(i=cA(o.rule,t),r={...r,[a]:i}),o.type==="Color"&&(i=S_e(o.rule,t),r={...r,[a]:i}),o.type==="Value"&&(i=ei(o.rule,t),r={...r,[a]:i}),o.type==="Width"&&(r={...r,[a]:E_e(o.rule,t)}),o.type==="Animation"&&(r={...r,[a]:o.rule}),o.type==="Blink"&&(r={...r,[a]:o.rule})}),r}function P_e({blob:e,ruleSet:t,dataSource:n,callBacksSet:r={}}){const[i]=Bo(),[a,o]=M.useState(null),[s,u]=M.useState();M.useEffect(()=>()=>{a&&URL.revokeObjectURL(a),o(null)},[]),M.useEffect(()=>{const l=T_e(t,n);u(l)},[t,n]);const c=M.useCallback(l=>x_e(l,s,r,i),[s,r,i]);return M.useEffect(()=>{if(!e){a&&URL.revokeObjectURL(a),o(null);return}const l=new Uint8Array(e),d=new Blob([l],{type:"image/svg+xml"}),h=URL.createObjectURL(d);a&&URL.revokeObjectURL(a),o(h)},[e]),w.jsx(w.Fragment,{children:a&&s&&w.jsx(uA,{width:100,src:a,evalScripts:"always",beforeInjection:l=>{c(l)}})})}function C_e({options:e,updateSortings:t,GstateKey:n}){const{t:r}=Et.useTranslation(),[i,a]=M.useState(),[o,s]=ma(n,"");function u(){const l={Order:{isShared:!1,order:1,name:i.id,direction:i.order}};t(l,!0)}const c=e.flatMap(l=>[w.jsx(ie.MenuItem,{value:`${l.id}_DESC`,children:w.jsxs(xn,{gap:"10px",justifyContent:"space-between",alignItems:"center",width:"100%",children:[w.jsx("span",{children:r(l.name)}),w.jsx(ie.Chip,{label:r("DESCENDING"),deleteIcon:w.jsx(Z4,{}),onDelete:()=>null,style:{marginLeft:"auto"}})]})},`${l.id}_DESC`),w.jsx(ie.MenuItem,{value:`${l.id}_ASC`,children:w.jsxs(xn,{justifyContent:"space-between",alignItems:"center",width:"100%",children:[w.jsx("span",{children:r(l.name)}),w.jsx(ie.Chip,{label:r("ASCENDING"),deleteIcon:w.jsx(X4,{}),onDelete:()=>null,style:{marginLeft:"auto"}})]})},`${l.id}_ASC`)]);return w.jsxs(Pi,{alignItems:"center",padding:"20px",gap:"25px",width:"400px",height:"100%",children:[w.jsxs(ie.FormControl,{fullWidth:!0,children:[w.jsx(ie.InputLabel,{id:"sorting",children:r("SORTING")}),w.jsx(ie.Select,{sx:{width:"100%"},label:r("SORTING"),value:i?`${i.id}_${i.order}`:o,id:"sorting",onChange:l=>{const[d,h]=l.target.value.split("_");s(`${d}_${h}`),a({id:d,order:h})},fullWidth:!0,children:c})]}),w.jsx(ie.Button,{size:"large",onClick:u,children:r("APPLY")})]})}function j_e({options:e,updateSortings:t,GstateKey:n}){const{t:r}=Et.useTranslation(),[i,a]=ma(n,e.reduce((u,c)=>(u[c.id]={order:"NONE"},u),{}));function o(){const u=Object.keys(i).reduce((c,l)=>({...c,[l]:{isShared:!1,order:1,name:l,direction:i[l].order}}),{});t(u,!0)}const s=e.map(u=>w.jsxs(ie.ListItem,{divider:!0,sx:{padding:"16px"},children:[w.jsx(ie.ListItemText,{children:r(u.name)}),w.jsxs(ie.Select,{id:`${u.id}_sorting`,value:i[u.id]?.order,onChange:c=>{const l=c.target.value;a(d=>({...d,[u.id]:{order:l}}))},size:"small",sx:{width:"50%"},children:[w.jsx(ie.MenuItem,{value:"NONE",children:r("NONE")}),w.jsx(ie.MenuItem,{value:"DESC",children:r("DESCENDING")}),w.jsx(ie.MenuItem,{value:"ASC",children:r("ASCENDING")})]})]},u.id));return w.jsxs(Da,{flexDirection:"column",minWidth:"360px",children:[s,w.jsx(ie.Button,{sx:{margin:"16px"},size:"medium",onClick:o,children:r("APPLY")})]})}var AL=(e=>(e.squared="0px",e.rounded="24px",e.circle="50%",e))(AL||{});function M_e({id:e,src:t,width:n="500px",height:r="300px",variant:i="squared",seamless:a=!1,autoUpdate:o,backgroundColor:s}){return M.useEffect(()=>{if(o){const u=setInterval(()=>{document.getElementById(e)?.setAttribute("src",t)},o);return()=>clearInterval(u)}},[o,e,t]),w.jsx("div",{id:`${e}-wrapper`,style:{width:n,height:i==="circle"?n:r,overflow:"hidden",borderRadius:AL[i],backgroundColor:s},children:w.jsx("iframe",{id:e,seamless:a,loading:"lazy",src:t,width:"100%",height:"100%",style:{border:"unset"},allowFullScreen:!0})})}function k_e({value:e,total:t=100,size:n}){const[r]=Bo();return w.jsxs(xn,{alignItems:"center",gap:".5rem",width:"100%",children:[w.jsx(By,{variant:"determinate",value:e<t?e/t*100:100,sx:{width:"100%",height:n==="small"?"16px":n==="verySmall"?"10px":n==="medium"?"20px":"24px",borderRadius:5,[`&.${By.linearProgressClasses.colorPrimary}`]:{backgroundColor:`greyCustom.${r}`},[`& .${By.linearProgressClasses.bar}`]:{borderRadius:5}}}),t&&w.jsx(BH,{variant:"caption",sx:{minWidth:45,userSelect:"none"},noWrap:!0,children:`${(e/t*100).toFixed(1)}%`})]})}function R_e({value:e,total:t=100,size:n="small"}){return w.jsx(k_e,{value:e,total:t,size:n})}function I_e({dieCode:e}){return w.jsxs("svg",{width:"80%",id:"Livello_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 130.79 125.8",children:[w.jsx("defs",{children:w.jsxs("pattern",{id:"diagonalLines",patternUnits:"userSpaceOnUse",width:"6",height:"6",children:[w.jsx("rect",{width:"6",height:"6",fill:"#a0a0a0"}),w.jsx("path",{d:`M-3,3 l4.5,-4.5\r
152
152
  M0,6 l6,-6\r
153
153
  M4.5,7.5 l3,-3`,stroke:"#878787",strokeWidth:"1.5"})]})}),w.jsxs("pattern",{id:"diagonalLinesReverse",patternUnits:"userSpaceOnUse",width:"6",height:"6",children:[w.jsx("rect",{width:"6",height:"6",fill:"#a0a0a0"}),w.jsx("path",{d:`M0,0 l6,6\r
154
154
  M-3,3 l6,6\r
@@ -183,7 +183,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var oe=Oe(ye,pe,ae,re,ge
183
183
  C268.103,7.763,253.549,0,236.836,0c-3.938,0-7.872,0.101-11.817,0.292c-11.649,0.583-23.073,2.016-34.225,4.215v191.531\r
184
184
  L66.808,72.055c-7.618,7.861-14.704,16.237-21.189,25.089l79.313,79.313l20.291,20.284H3.448C1.227,209.784,0,223.164,0,236.844\r
185
185
  c0,17.034,1.84,33.626,5.25,49.643h184.834L70.847,405.724c7.808,7.67,16.121,14.813,24.921,21.349l95.023-95.023v137.116\r
186
- c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function F_e({size:e=24,color:t="currentColor"}){return w.jsx(ie.SvgIcon,{children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:w.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:W_e,forEach:q_e}=[];function V_e(e){return q_e.call(W_e.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function H_e(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const p4=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,U_e=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!p4.test(r.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${r.domain}`}if(r.path){if(!p4.test(r.path))throw new TypeError("option path is invalid");a+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(a+="; Partitioned"),a},g4={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=U_e(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var G_e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return g4.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<"u"&&g4.create(n,e,r,i,a)}},K_e={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const a=r.substring(1).split("&");for(let o=0;o<a.length;o++){const s=a[o].indexOf("=");s>0&&a[o].substring(0,s)===t&&(n=a[o].substring(s+1))}}return n}},Y_e={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const a=i.substring(1);if(t){const o=a.split("&");for(let s=0;s<o.length;s++){const u=o[s].indexOf("=");u>0&&o[s].substring(0,u)===t&&(r=o[s].substring(u+1))}}if(r)return r;if(!r&&n>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Oc=null;const v4=()=>{if(Oc!==null)return Oc;try{if(Oc=typeof window<"u"&&window.localStorage!==null,!Oc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Oc=!1}return Oc};var X_e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&v4())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&v4()&&window.localStorage.setItem(n,e)}};let Tc=null;const m4=()=>{if(Tc!==null)return Tc;try{if(Tc=typeof window<"u"&&window.sessionStorage!==null,!Tc)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Tc=!1}return Tc};var Z_e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&m4())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&m4()&&window.sessionStorage.setItem(n,e)}},J_e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let a=0;a<n.length;a++)t.push(n[a]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},Q_e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},e2e={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},t2e={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let OL=!1;try{document.cookie,OL=!0}catch{}const TL=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];OL||TL.splice(1,1);const n2e=()=>({order:TL,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class PL{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=V_e(n,this.options||{},n2e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(G_e),this.addDetector(K_e),this.addDetector(X_e),this.addDetector(Z_e),this.addDetector(J_e),this.addDetector(Q_e),this.addDetector(e2e),this.addDetector(t2e),this.addDetector(Y_e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!H_e(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}PL.type="languageDetector";const r2e=e=>{let t={};for(const r of Object.keys(e)){const i=r.match(/\w+\.json/);if(i){const a=i[0]?.split(".")[0];t={...t,[a]:{translation:e[r]}}}}const n=Object.keys(t);return _s.use(PL).use(Et.initReactI18next).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:n,missingKeyHandler:function(r,i,a){console.warn(`MISSING TRANSLATION: [${r}] ${i}:${a}`)}}),_s};function CL({children:e}){return w.jsx(xn,{paddingBottom:"16px",gap:"8px",children:e})}function jL({children:e}){return w.jsx(qd,{mt:"auto",mb:"auto",width:"100%",children:w.jsx(ie.Paper,{sx:{width:"100%"},children:w.jsx(xn,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function ML({tabValue:e,columnValues:t,columnWidths:n}){const{t:r}=Et.useTranslation();return w.jsx(ie.Paper,{sx:{display:"grid",gridTemplateColumns:n?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,a)=>w.jsx(ie.Typography,{children:w.jsx("b",{children:r(i)})},a))})}function i2e({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:n,SecondTabContent:r,ThirdTabContent:i,tabValue:a,columnValues:o,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:c,ThirdTabNearbyContent:l}){return w.jsxs(lu,{gap:"16px",children:[w.jsx(jL,{children:e}),w.jsxs(I_,{gap:"16px",children:[w.jsxs(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&a===0||c&&a===1||l&&a===2?"70%":"unset",maxWidth:u&&a===0||c&&a===1||l&&a===2?"70%":"unset"},children:[w.jsx(CL,{children:t}),w.jsxs(lu,{children:[w.jsx(ML,{columnValues:o,columnWidths:s,tabValue:a}),w.jsx(ie.Divider,{sx:{marginBottom:"16px"}}),w.jsxs(lu,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[a===0?w.jsx(n,{}):null,a===1?w.jsx(r,{}):null,a===2&&i?w.jsx(i,{}):null]})]})]}),a===0&&u?w.jsx(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,a===1&&c?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null,a===2&&l?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null]})]})}function a2e({children:e,position:t}){return w.jsx(Q4.SnackbarProvider,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:jf,info:jf,success:jf,error:jf,warning:jf},children:e})}const da={};function o2e(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=da.resolve(n),a=da.basename(i);if(!r.includes(t))return da.resolve(e,"graphQL","__generated__",`${a}.ts`);const o=da.resolve(__dirname,".."),s=r.slice(o.length).split("/")[1];return da.resolve(o,s,"__generated__",`${a}.ts`)}return null}}}function s2e(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=da.resolve(n),a=da.basename(i),o=da.resolve(e,".."),s=da.resolve(o,t,"__generated__",`${a}.ts`);return console.log("corepath",t),console.log("reporoot",o),console.log("fileproject",s),console.log("importer",r),r.includes(t)?da.resolve(o,t,"__generated__",`${a}.ts`):da.resolve(e,"graphQL","__generated__",`${a}.ts`)}return null}}}var u2e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},cu="1.9.0",y4=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function c2e(e){var t=new Set([e]),n=new Set,r=e.match(y4);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function a(s){return n.add(s),!1}function o(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var c=u.match(y4);if(!c)return a(u);var l={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return l.prerelease!=null||i.major!==l.major?a(u):i.major===0?i.minor===l.minor&&i.patch<=l.patch?o(u):a(u):i.minor<=l.minor?o(u):a(u)}}var l2e=c2e(cu),f2e=cu.split(".")[0],Fd=Symbol.for("opentelemetry.js.api."+f2e),Wd=u2e;function Sh(e,t,n,r){var i;r===void 0&&(r=!1);var a=Wd[Fd]=(i=Wd[Fd])!==null&&i!==void 0?i:{version:cu};if(!r&&a[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(o.stack||o.message),!1}if(a.version!==cu){var o=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+cu);return n.error(o.stack||o.message),!1}return a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+cu+"."),!0}function $u(e){var t,n,r=(t=Wd[Fd])===null||t===void 0?void 0:t.version;if(!(!r||!l2e(r)))return(n=Wd[Fd])===null||n===void 0?void 0:n[e]}function Ah(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+cu+".");var n=Wd[Fd];n&&delete n[e]}var d2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},h2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},p2e=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("verbose",this._namespace,t)},e}();function Mf(e,t,n){var r=$u("diag");if(r)return n.unshift(t),r[e].apply(r,h2e([],d2e(n),!1))}var xi;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(xi||(xi={}));function g2e(e,t){e<xi.NONE?e=xi.NONE:e>xi.ALL&&(e=xi.ALL),t=t||{};function n(r,i){var a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",xi.ERROR),warn:n("warn",xi.WARN),info:n("info",xi.INFO),debug:n("debug",xi.DEBUG),verbose:n("verbose",xi.VERBOSE)}}var v2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},m2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},y2e="diag",qa=function(){function e(){function t(i){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=$u("diag");if(s)return s[i].apply(s,m2e([],v2e(a),!1))}}var n=this,r=function(i,a){var o,s,u;if(a===void 0&&(a={logLevel:xi.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof a=="number"&&(a={logLevel:a});var l=$u("diag"),d=g2e((s=a.logLevel)!==null&&s!==void 0?s:xi.INFO,i);if(l&&!a.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return Sh("diag",d,n,!0)};n.setLogger=r,n.disable=function(){Ah(y2e,n)},n.createComponentLogger=function(i){return new p2e(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),b2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},w2e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x2e=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=b2e(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=w2e(r),s=o.next();!s.done;s=o.next()){var u=s.value;a._entries.delete(u)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),_2e=Symbol("BaggageEntryMetadata"),E2e=qa.instance();function S2e(e){return e===void 0&&(e={}),new x2e(new Map(Object.entries(e)))}function A2e(e){return typeof e!="string"&&(E2e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:_2e,toString:function(){return e}}}function lA(e){return Symbol.for(e)}var O2e=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var a=new e(n._currentContext);return a._currentContext.set(r,i),a},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),_o=new O2e,Xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),T2e=function(){function e(){}return e.prototype.createGauge=function(t,n){return L2e},e.prototype.createHistogram=function(t,n){return $2e},e.prototype.createCounter=function(t,n){return N2e},e.prototype.createUpDownCounter=function(t,n){return B2e},e.prototype.createObservableGauge=function(t,n){return F2e},e.prototype.createObservableCounter=function(t,n){return z2e},e.prototype.createObservableUpDownCounter=function(t,n){return W2e},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),Cm=function(){function e(){}return e}(),P2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Cm),C2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Cm),j2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Cm),M2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Cm),fA=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),k2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fA),R2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fA),I2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fA),D2e=new T2e,N2e=new P2e,L2e=new j2e,$2e=new M2e,B2e=new C2e,z2e=new k2e,F2e=new R2e,W2e=new I2e,q2e={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},V2e={set:function(e,t,n){e!=null&&(e[t]=n)}},H2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},U2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},G2e=function(){function e(){}return e.prototype.active=function(){return _o},e.prototype.with=function(t,n,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return n.call.apply(n,U2e([r],H2e(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),K2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Y2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},dw="context",X2e=new G2e,jm=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Sh(dw,t,qa.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return(i=this._getContextManager()).with.apply(i,Y2e([t,n,r],K2e(a),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return $u(dw)||X2e},e.prototype.disable=function(){this._getContextManager().disable(),Ah(dw,qa.instance())},e}(),$o;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})($o||($o={}));var kL="0000000000000000",RL="00000000000000000000000000000000",IL={traceId:RL,spanId:kL,traceFlags:$o.NONE},ld=function(){function e(t){t===void 0&&(t=IL),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),dA=lA("OpenTelemetry Context Key SPAN");function hA(e){return e.getValue(dA)||void 0}function Z2e(){return hA(jm.getInstance().active())}function pA(e,t){return e.setValue(dA,t)}function J2e(e){return e.deleteValue(dA)}function Q2e(e,t){return pA(e,new ld(t))}function DL(e){var t;return(t=hA(e))===null||t===void 0?void 0:t.spanContext()}var eEe=/^([0-9a-f]{32})$/i,tEe=/^[0-9a-f]{16}$/i;function NL(e){return eEe.test(e)&&e!==RL}function nEe(e){return tEe.test(e)&&e!==kL}function Mm(e){return NL(e.traceId)&&nEe(e.spanId)}function rEe(e){return new ld(e)}var hw=jm.getInstance(),LL=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=hw.active());var i=!!n?.root;if(i)return new ld;var a=r&&DL(r);return iEe(a)&&Mm(a)?new ld(a):new ld},e.prototype.startActiveSpan=function(t,n,r,i){var a,o,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(a=n,s=r):(a=n,o=r,s=i);var u=o??hw.active(),c=this.startSpan(t,a,u),l=pA(u,c);return hw.with(l,s,void 0,c)}},e}();function iEe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var aEe=new LL,oEe=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):aEe},e}(),sEe=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new LL},e}(),uEe=new sEe,b4=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new oEe(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:uEe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),Dv;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Dv||(Dv={}));var Nv;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Nv||(Nv={}));var bu;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(bu||(bu={}));var ur=jm.getInstance(),Wt=qa.instance(),cEe=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return D2e},e}(),lEe=new cEe,pw="metrics",fEe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Sh(pw,t,qa.instance())},e.prototype.getMeterProvider=function(){return $u(pw)||lEe},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){Ah(pw,qa.instance())},e}(),$L=fEe.getInstance(),dEe=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),gA=lA("OpenTelemetry Baggage Key");function BL(e){return e.getValue(gA)||void 0}function hEe(){return BL(jm.getInstance().active())}function pEe(e,t){return e.setValue(gA,t)}function gEe(e){return e.deleteValue(gA)}var gw="propagation",vEe=new dEe,mEe=function(){function e(){this.createBaggage=S2e,this.getBaggage=BL,this.getActiveBaggage=hEe,this.setBaggage=pEe,this.deleteBaggage=gEe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Sh(gw,t,qa.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=V2e),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=q2e),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Ah(gw,qa.instance())},e.prototype._getGlobalPropagator=function(){return $u(gw)||vEe},e}(),Ca=mEe.getInstance(),vw="trace",yEe=function(){function e(){this._proxyTracerProvider=new b4,this.wrapSpanContext=rEe,this.isSpanContextValid=Mm,this.deleteSpan=J2e,this.getSpan=hA,this.getActiveSpan=Z2e,this.getSpanContext=DL,this.setSpan=pA,this.setSpanContext=Q2e}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Sh(vw,this._proxyTracerProvider,qa.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return $u(vw)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Ah(vw,qa.instance()),this._proxyTracerProvider=new b4},e}(),Lr=yEe.getInstance();function Jr(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Qs(e){return Jr(e)==="object"}function bEe(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function w4(e,t){return e.length<124?e:t}const wEe="graphql-transport-ws";var Vi=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Vi||{}),Hi=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Hi||{});function zL(e){if(!Qs(e))throw new Error(`Message is expected to be an object, but got ${Jr(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Jr(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Qs(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Qs(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Jr(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Jr(e.payload.query)}`);if(e.payload.variables!=null&&!Qs(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Jr(e.payload.variables)}`);if(e.payload.operationName!=null&&Jr(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Jr(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Qs(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Jr(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Qs(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Jr(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!bEe(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function xEe(e,t){return zL(typeof e=="string"?JSON.parse(e,t):e)}function kf(e,t){return zL(e),JSON.stringify(e,t)}function _Ee(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:c=5,retryWait:l=async function(L){const N=Math.pow(2,L);await new Promise(V=>setTimeout(V,N*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=mw,on:h,webSocketImpl:g,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,L=>{const N=Math.random()*16|0;return(L=="x"?N:N&3|8).toString(16)})},jsonMessageReplacer:y,jsonMessageReviver:v}=e;let b;if(g){if(!SEe(g))throw new Error("Invalid WebSocket implementation provided");b=g}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const _=b,E=(()=>{const C=(()=>{const N={};return{on(V,Z){return N[V]=Z,()=>{delete N[V]}},emit(V){"id"in V&&N[V.id]?.(V)}}})(),L={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[C.emit,h.message]:[C.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:C.on,on(N,V){const Z=L[N];return Z.push(V),()=>{Z.splice(Z.indexOf(V),1)}},emit(N,...V){for(const Z of[...L[N]])Z(...V)}}})();function S(C){const L=[E.on("error",N=>{L.forEach(V=>V()),C(N)}),E.on("closed",N=>{L.forEach(V=>V()),C(N)})]}let A,O=0,P,j=!1,$=0,z=!1;async function I(){clearTimeout(P);const[C,L]=await(A??(A=new Promise((Z,K)=>(async()=>{if(j){if(await l($),!O)return A=void 0,K({code:1e3,reason:"All Subscriptions Gone"});$++}E.emit("connecting",j);const R=new _(typeof t=="function"?await t():t,wEe);let W,U;function Y(){isFinite(o)&&o>0&&(clearTimeout(U),U=setTimeout(()=>{R.readyState===_.OPEN&&(R.send(kf({type:Hi.Ping})),E.emit("ping",!1,void 0))},o))}S(re=>{A=void 0,clearTimeout(W),clearTimeout(U),K(re),re instanceof x4&&(R.close(4499,"Terminated"),R.onerror=null,R.onclose=null)}),R.onerror=re=>E.emit("error",re),R.onclose=re=>E.emit("closed",re),R.onopen=async()=>{try{E.emit("opened",R);const re=typeof n=="function"?await n():n;if(R.readyState!==_.OPEN)return;R.send(kf(re?{type:Hi.ConnectionInit,payload:re}:{type:Hi.ConnectionInit},y)),isFinite(u)&&u>0&&(W=setTimeout(()=>{R.close(Vi.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),Y()}catch(re){E.emit("error",re),R.close(Vi.InternalClientError,w4(re instanceof Error?re.message:String(re),"Internal client error"))}};let ae=!1;R.onmessage=({data:re})=>{try{const ge=xEe(re,v);if(E.emit("message",ge),ge.type==="ping"||ge.type==="pong"){E.emit(ge.type,!0,ge.payload),ge.type==="pong"?Y():s||(R.send(kf(ge.payload?{type:Hi.Pong,payload:ge.payload}:{type:Hi.Pong})),E.emit("pong",!1,ge.payload));return}if(ae)return;if(ge.type!==Hi.ConnectionAck)throw new Error(`First message cannot be of type ${ge.type}`);clearTimeout(W),ae=!0,E.emit("connected",R,ge.payload,j),j=!1,$=0,Z([R,new Promise((ye,_e)=>S(_e))])}catch(ge){R.onmessage=null,E.emit("error",ge),R.close(Vi.BadResponse,w4(ge instanceof Error?ge.message:String(ge),"Bad response"))}}})())));C.readyState===_.CLOSING&&await L;let N=()=>{};const V=new Promise(Z=>N=Z);return[C,N,Promise.race([V.then(()=>{if(!O){const Z=()=>C.close(1e3,"Normal Closure");isFinite(a)&&a>0?P=setTimeout(()=>{C.readyState===_.OPEN&&Z()},a):Z()}}),L])]}function H(C){if(mw(C)&&(EEe(C.code)||[Vi.InternalServerError,Vi.InternalClientError,Vi.BadRequest,Vi.BadResponse,Vi.Unauthorized,Vi.SubprotocolNotAcceptable,Vi.SubscriberAlreadyExists,Vi.TooManyInitialisationRequests].includes(C.code)))throw C;if(z)return!1;if(mw(C)&&C.code===1e3)return O>0;if(!c||$>=c||!d(C))throw C;return j=!0}r||(async()=>{for(O++;;)try{const[,,C]=await I();await C}catch(C){try{if(!H(C))return}catch(L){return i?.(L)}}})();function D(C,L){const N=m(C);let V=!1,Z=!1,K=()=>{O--,V=!0};return(async()=>{for(O++;;)try{const[R,W,U]=await I();if(V)return W();const Y=E.onMessage(N,ae=>{switch(ae.type){case Hi.Next:{L.next(ae.payload);return}case Hi.Error:{Z=!0,V=!0,L.error(ae.payload),K();return}case Hi.Complete:{V=!0,K();return}}});R.send(kf({id:N,type:Hi.Subscribe,payload:C},y)),K=()=>{!V&&R.readyState===_.OPEN&&R.send(kf({id:N,type:Hi.Complete},y)),O--,V=!0,W()},await U.finally(Y);return}catch(R){if(!H(R))return}})().then(()=>{Z||L.complete()}).catch(R=>{L.error(R)}),()=>{V||K()}}return{on:E.on,subscribe:D,iterate(C){const L=[],N={done:!1,error:null,resolve:()=>{}},V=D(C,{next(K){L.push(K),N.resolve()},error(K){N.done=!0,N.error=K,N.resolve()},complete(){N.done=!0,N.resolve()}}),Z=async function*(){for(;;){for(L.length||await new Promise(R=>N.resolve=R);L.length;)yield L.shift();if(N.error)throw N.error;if(N.done)return}}();return Z.throw=async K=>(N.done||(N.done=!0,N.error=K,N.resolve()),{done:!0,value:void 0}),Z.return=async()=>(V(),{done:!0,value:void 0}),Z},async dispose(){if(z=!0,A){const[C]=await A;C.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new x4)}}}class x4 extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function mw(e){return Qs(e)&&"code"in e&&"reason"in e}function EEe(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function SEe(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const AEe=e=>_Ee({url:e.WS_URL}),OEe=(e,t,n)=>Mc.Observable.create(r=>AEe(n).subscribe({operationName:e.name,query:e.text,variables:t},r)),TEe=(e,t,n)=>Mc.Observable.from(ur.with(ur.active(),()=>{const r=Lr.getTracer("RelayNetwork").startSpan("GraphQL fetch");r.setAttribute("variables",JSON.stringify(t)),r.setAttribute("path",e.name);const i=r.spanContext();return fetch(n.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":n.AUTH_SCHEMA,...n.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...n.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(a=>a.json().then(o=>(o.errors?(r.setStatus({code:bu.ERROR}),r.recordException(JSON.stringify(o.errors))):r.setStatus({code:bu.OK}),o))).catch(a=>{r.setStatus({code:bu.ERROR}),r.recordException(JSON.stringify(a))}).finally(()=>r.end())})),PEe=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function FL(e){return new Mc.Environment({network:Mc.Network.create((t,n)=>TEe(t,n,e),(t,n)=>OEe(t,n,e)),store:new Mc.Store(new Mc.RecordSource),getDataID:PEe})}function CEe({children:e}){const t=Kv(),n=FL(t);return w.jsx(Y4.RelayEnvironmentProvider,{environment:n,children:e})}const jEe=(e,t,n)=>{const r=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i],o=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!o)continue;const s=o[1],u=Object.keys(t).find(b=>b.includes(`${s}/loader.ts`)),c=Object.keys(n).find(b=>b.includes(`${s}/action.ts`)),l=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),d=s==="index"?"/":`${l.toLowerCase()}`,h=k.lazy(a),g=k.lazy(async()=>({default:(await a()).icon||ca.BlurCircularOutlined})),m=u?t[u].default:void 0,y=c?n[c].default:void 0,v={id:d,Icon:g,name:l,path:d,element:w.jsx(k.Suspense,{fallback:w.jsx(D_,{}),children:w.jsx(h,{})}),...u?{loader:m}:{},...c?{action:y}:{}};r.push(v)}return r};var WL=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(WL||{});const MEe={createState:e=>{const t=kO.atom(e),n=kO.getDefaultStore();return{get:()=>n.get(t),set:r=>n.set(t,r),subscribe:r=>{const i=()=>{const a=n.get(t);r(a)};return n.sub(t,i)}}},type:"jotaiAdapter"};function kEe(){return{createState:e=>{const t=Nf.atom({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Nf.useRecoilValue(t)),set:a=>{console.log("Setting value to Recoil atom"),Nf.useSetRecoilState(t)(a)},subscribe:a=>(console.log("Subscribing to Recoil atom"),Nf.useRecoilCallback(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;a(u)}))}},type:"recoilAdapter"}}const qL=k.createContext([!1,{lockInIdleMode:()=>{},unlockIdleMode:()=>{}}]);function REe({timer:e,children:t}){const n=r8(e);return w.jsx(qL.Provider,{value:n,children:t})}const IEe=(e,t,n)=>{if(!wl(e))return;const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()+t);break;case"seconds":r.setSeconds(r.getSeconds()+t);break;case"minutes":r.setMinutes(r.getMinutes()+t);break;case"hours":r.setHours(r.getHours()+t);break;case"days":r.setDate(r.getDate()+t);break;case"weeks":r.setDate(r.getDate()+t*7);break;case"months":r.setMonth(r.getMonth()+t);break;case"years":r.setFullYear(r.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r};var VL=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(VL||{});const DEe=(e,t,n="milliseconds")=>{if(!wl(e)||!wl(t))return;const r=new Date(e).getTime();return(new Date(t).getTime()-r)/VL[n]},NEe=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",n?`${n}h`:"",r?`${r}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},LEe=(e,t,n)=>{if(!wl(e))throw new Error("Invalid Date");const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()-t);break;case"seconds":r.setSeconds(r.getSeconds()-t);break;case"minutes":r.setMinutes(r.getMinutes()-t);break;case"hours":r.setHours(r.getHours()-t);break;case"days":r.setDate(r.getDate()-t);break;case"weeks":r.setDate(r.getDate()-t*7);break;case"months":r.setMonth(r.getMonth()-t);break;case"years":r.setFullYear(r.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r},$Ee=(e,t)=>e<=1?12:Math.floor(12/t),BEe=(e,t)=>(e&t)===t;function zEe(e){const t={};function n(r){Object.prototype.hasOwnProperty.call(r,"edges")&&(t.edges=r.edges);for(const i in r)typeof r[i]=="object"&&r[i]!==null&&n(r[i])}return n(e),t}const HL=lA("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function FEe(e){return e.setValue(HL,!0)}function vA(e){return e.getValue(HL)===!0}const WEe="=",S_=";",A_=",",yw="baggage",qEe=180,VEe=4096,HEe=8192;function UEe(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?A_:""}${n}`;return r.length>HEe?t:r},"")}function GEe(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=S_+n.metadata.toString()),r})}function KEe(e){const t=e.split(S_);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(WEe);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());let o;return t.length>0&&(o=A2e(t.join(S_))),{key:i,value:a,metadata:o}}class YEe{inject(t,n,r){const i=Ca.getBaggage(t);if(!i||vA(t))return;const a=GEe(i).filter(s=>s.length<=VEe).slice(0,qEe),o=UEe(a);o.length>0&&r.set(n,yw,o)}extract(t,n,r){const i=r.get(n,yw),a=Array.isArray(i)?i.join(A_):i;if(!a)return t;const o={};return a.length===0||(a.split(A_).forEach(u=>{const c=KEe(u);if(c){const l={value:c.value};c.metadata&&(l.metadata=c.metadata),o[c.key]=l}}),Object.entries(o).length===0)?t:Ca.setBaggage(t,Ca.createBaggage(o))}fields(){return[yw]}}function bg(e){const t={};if(typeof e!="object"||e==null)return t;for(const[n,r]of Object.entries(e)){if(!XEe(n)){Wt.warn(`Invalid attribute key: ${n}`);continue}if(!UL(r)){Wt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function XEe(e){return typeof e=="string"&&e.length>0}function UL(e){return e==null?!0:Array.isArray(e)?ZEe(e):GL(e)}function ZEe(e){let t;for(const n of e)if(n!=null){if(!t){if(GL(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function GL(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function JEe(){return e=>{Wt.error(QEe(e))}}function QEe(e){return typeof e=="string"?e:JSON.stringify(eSe(e))}function eSe(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let tSe=JEe();function mA(e){try{tSe(e)}catch{}}const bw=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Kc=performance,nSe="2.0.1",rSe="error.type",ww="exception.message",iSe="exception.stacktrace",xw="exception.type",aSe="http.request.method",oSe="http.request.method_original",sSe="http.response.status_code",uSe="server.address",cSe="server.port",KL="service.name",O_="telemetry.sdk.language",lSe="webjs",T_="telemetry.sdk.name",P_="telemetry.sdk.version",fSe="url.full",dSe="process.runtime.name",_w={[T_]:"opentelemetry",[dSe]:"browser",[O_]:lSe,[P_]:nSe},hSe=9,pSe=6,gSe=Math.pow(10,pSe),Lv=Math.pow(10,hSe);function To(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*gSe);return[n,r]}function yA(){let e=Kc.timeOrigin;if(typeof e!="number"){const t=Kc;e=t.timing&&t.timing.fetchStart}return e}function $v(e){const t=To(yA()),n=To(typeof e=="number"?e:Kc.now());return YL(t,n)}function fd(e){if(bA(e))return e;if(typeof e=="number")return e<yA()?$v(e):To(e);if(e instanceof Date)return To(e.getTime());throw TypeError("Invalid input type")}function vSe(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Lv),[n,r]}function Po(e){return e[0]*Lv+e[1]}function _4(e){return e[0]*1e6+e[1]/1e3}function bA(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function E4(e){return bA(e)||typeof e=="number"||e instanceof Date}function YL(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Lv&&(n[1]-=Lv,n[0]+=1),n}var la;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(la||(la={}));class mSe{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(a){Wt.warn(`Failed to inject with ${i.constructor.name}. Err: ${a.message}`)}}extract(t,n,r){return this._propagators.reduce((i,a)=>{try{return a.extract(i,n,r)}catch(o){Wt.warn(`Failed to extract with ${a.constructor.name}. Err: ${o.message}`)}return i},t)}fields(){return this._fields.slice()}}const C_="[_0-9a-z-*/]",ySe=`[a-z]${C_}{0,255}`,bSe=`[a-z0-9]${C_}{0,240}@[a-z]${C_}{0,13}`,wSe=new RegExp(`^(?:${ySe}|${bSe})$`),xSe=/^[ -~]{0,255}[!-~]$/,_Se=/,|=/;function ESe(e){return wSe.test(e)}function SSe(e){return xSe.test(e)&&!_Se.test(e)}const S4=32,ASe=512,A4=",",O4="=";class wA{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+O4+this.get(n)),t),[]).join(A4)}_parse(t){t.length>ASe||(this._internalState=t.split(A4).reverse().reduce((n,r)=>{const i=r.trim(),a=i.indexOf(O4);if(a!==-1){const o=i.slice(0,a),s=i.slice(a+1,r.length);ESe(o)&&SSe(s)&&n.set(o,s)}return n},new Map),this._internalState.size>S4&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,S4))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new wA;return t._internalState=new Map(this._internalState),t}}const Ew="traceparent",Sw="tracestate",OSe="00",TSe="(?!ff)[\\da-f]{2}",PSe="(?![0]{32})[\\da-f]{32}",CSe="(?![0]{16})[\\da-f]{16}",jSe="[\\da-f]{2}",MSe=new RegExp(`^\\s?(${TSe})-(${PSe})-(${CSe})-(${jSe})(-.*)?\\s?$`);function kSe(e){const t=MSe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class RSe{inject(t,n,r){const i=Lr.getSpanContext(t);if(!i||vA(t)||!Mm(i))return;const a=`${OSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||$o.NONE).toString(16)}`;r.set(n,Ew,a),i.traceState&&r.set(n,Sw,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,Ew);if(!i)return t;const a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;const o=kSe(a);if(!o)return t;o.isRemote=!0;const s=r.get(n,Sw);if(s){const u=Array.isArray(s)?s.join(","):s;o.traceState=new wA(typeof u=="string"?u:void 0)}return Lr.setSpanContext(t,o)}fields(){return[Ew,Sw]}}const ISe="[object Object]",DSe="[object Null]",NSe="[object Undefined]",LSe=Function.prototype,XL=LSe.toString,$Se=XL.call(Object),BSe=Object.getPrototypeOf,ZL=Object.prototype,JL=ZL.hasOwnProperty,tu=Symbol?Symbol.toStringTag:void 0,QL=ZL.toString;function T4(e){if(!zSe(e)||FSe(e)!==ISe)return!1;const t=BSe(e);if(t===null)return!0;const n=JL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XL.call(n)===$Se}function zSe(e){return e!=null&&typeof e=="object"}function FSe(e){return e==null?e===void 0?NSe:DSe:tu&&tu in Object(e)?WSe(e):qSe(e)}function WSe(e){const t=JL.call(e,tu),n=e[tu];let r=!1;try{e[tu]=void 0,r=!0}catch{}const i=QL.call(e);return r&&(t?e[tu]=n:delete e[tu]),i}function qSe(e){return QL.call(e)}const VSe=20;function HSe(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=e$(t,e.shift(),0,n);return t}function Aw(e){return Bv(e)?e.slice():e}function e$(e,t,n=0,r){let i;if(!(n>VSe)){if(n++,wg(e)||wg(t)||t$(t))i=Aw(t);else if(Bv(e)){if(i=e.slice(),Bv(t))for(let a=0,o=t.length;a<o;a++)i.push(Aw(t[a]));else if(Rf(t)){const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o];i[u]=Aw(t[u])}}}else if(Rf(e))if(Rf(t)){if(!USe(e,t))return t;i=Object.assign({},e);const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o],c=t[u];if(wg(c))typeof c>"u"?delete i[u]:i[u]=c;else{const l=i[u],d=c;if(P4(e,u,r)||P4(t,u,r))delete i[u];else{if(Rf(l)&&Rf(d)){const h=r.get(l)||[],g=r.get(d)||[];h.push({obj:e,key:u}),g.push({obj:t,key:u}),r.set(l,h),r.set(d,g)}i[u]=e$(i[u],c,n,r)}}}}else i=t;return i}}function P4(e,t,n){const r=n.get(e[t])||[];for(let i=0,a=r.length;i<a;i++){const o=r[i];if(o.key===t&&o.obj===e)return!0}return!1}function Bv(e){return Array.isArray(e)}function t$(e){return typeof e=="function"}function Rf(e){return!wg(e)&&!Bv(e)&&!t$(e)&&typeof e=="object"}function wg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function USe(e,t){return!(!T4(e)||!T4(t))}function n$(e,t){return typeof t=="string"?e===t:!!e.match(t)}function GSe(e,t){if(!t)return!1;for(const n of t)if(n$(e,n))return!0;return!1}class KSe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class YSe{_callback;_that;_isCalled=!1;_deferred=new KSe;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function XSe(e,t){return new Promise(n=>{ur.with(FEe(ur.active()),()=>{e.export(t,r=>{n(r)})})})}const ZSe={_export:XSe};function JSe(){return"unknown_service"}const Qf=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class zv{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const n=new zv({});return n._rawAttributes=C4(t),n._asyncAttributesPending=t.filter(([r,i])=>Qf(i)).length>0,n}constructor(t){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Qf(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=C4(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,Qf(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[n,r]of this._rawAttributes){if(Qf(r)){Wt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:zv.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function r$(e){return zv.FromAttributeList(Object.entries(e))}function QSe(){return r$({[KL]:JSe(),[O_]:_w[O_],[T_]:_w[T_],[P_]:_w[P_]})}function C4(e){return e.map(([t,n])=>Qf(n)?[t,n.catch(r=>{Wt.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}const eAe="exception";class tAe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:bu.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Kc.now(),this._performanceOffset=n-(this._performanceStartTime+yA()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return Wt.warn(`Invalid attribute key: ${t}`),this;if(!UL(n))return Wt.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Wt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Wt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),E4(n)&&(E4(r)||(r=n),n=void 0);const a=bg(n);return this.events.push({name:t,attributes:a,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Wt.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=vSe(this.startTime,this.endTime),this._duration[0]<0&&(Wt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Kc.now())return $v(t+this._performanceOffset);if(typeof t=="number")return To(t);if(t instanceof Date)return To(t.getTime());if(bA(t))return t;if(this._startTimeProvided)return To(Date.now());const n=Kc.now()-this._performanceStartTime;return YL(this.startTime,To(n))}isRecording(){return this._ended===!1}recordException(t,n){const r={};typeof t=="string"?r[ww]=t:t&&(t.code?r[xw]=t.code.toString():t.name&&(r[xw]=t.name),t.message&&(r[ww]=t.message),t.stack&&(r[iSe]=t.stack)),r[xw]||r[ww]?this.addEvent(eAe,r,n):Wt.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(Wt.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var xl;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(xl||(xl={}));class Fv{shouldSample(){return{decision:xl.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Yc{shouldSample(){return{decision:xl.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class rg{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(mA(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Yc),this._remoteParentSampled=t.remoteParentSampled??new Yc,this._remoteParentNotSampled=t.remoteParentNotSampled??new Fv,this._localParentSampled=t.localParentSampled??new Yc,this._localParentNotSampled=t.localParentNotSampled??new Fv}shouldSample(t,n,r,i,a,o){const s=Lr.getSpanContext(t);return!s||!Mm(s)?this._root.shouldSample(t,n,r,i,a,o):s.isRemote?s.traceFlags&$o.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,a,o):this._remoteParentNotSampled.shouldSample(t,n,r,i,a,o):s.traceFlags&$o.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,a,o):this._localParentNotSampled.shouldSample(t,n,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class j4{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:NL(n)&&this._accumulate(n)<this._upperBound?xl.RECORD_AND_SAMPLED:xl.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,a=parseInt(t.slice(i,i+8),16);n=(n^a)>>>0}return n}}const M4=1;function i$(){return{sampler:a$(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function a$(){const e="parentbased_always_on";switch(e){case"always_on":return new Yc;case"always_off":return new Fv;case"parentbased_always_on":return new rg({root:new Yc});case"parentbased_always_off":return new rg({root:new Fv});case"traceidratio":return new j4(k4());case"parentbased_traceidratio":return new rg({root:new j4(k4())});default:return Wt.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new rg({root:new Yc})}}function k4(){return Wt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${M4}.`),M4}const nAe=128,rAe=1/0;function iAe(e){const t={sampler:a$()},n=i$(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function aAe(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??nAe,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??rAe,Object.assign({},e,{spanLimits:t})}const oAe=8,sAe=16;class uAe{generateTraceId=R4(sAe);generateSpanId=R4(oAe)}const ig=Array(32);function R4(e){return function(){for(let n=0;n<e*2;n++)ig[n]=Math.floor(Math.random()*16)+48,ig[n]>=58&&(ig[n]+=39);return String.fromCharCode.apply(null,ig.slice(0,e*2))}}class cAe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const a=iAe(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new uAe,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=ur.active()){n.root&&(r=Lr.deleteSpan(r));const i=Lr.getSpan(r);if(vA(r))return Wt.debug("Instrumentation suppressed, returning Noop Span"),Lr.wrapSpanContext(IL);const a=i?.spanContext(),o=this._idGenerator.generateSpanId();let s,u,c;!a||!Lr.isSpanContextValid(a)?u=this._idGenerator.generateTraceId():(u=a.traceId,c=a.traceState,s=a);const l=n.kind??Nv.INTERNAL,d=(n.links??[]).map(_=>({context:_.context,attributes:bg(_.attributes)})),h=bg(n.attributes),g=this._sampler.shouldSample(r,u,t,l,h,d);c=g.traceState??c;const m=g.decision===Dv.RECORD_AND_SAMPLED?$o.SAMPLED:$o.NONE,y={traceId:u,spanId:o,traceFlags:m,traceState:c};if(g.decision===Dv.NOT_RECORD)return Wt.debug("Recording is off, propagating context in a non-recording span"),Lr.wrapSpanContext(y);const v=bg(Object.assign(h,g.attributes));return new tAe({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:y,name:t,kind:l,links:d,parentSpanContext:s,attributes:v,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let a,o,s;if(arguments.length<2)return;arguments.length===2?s=n:arguments.length===3?(a=n,s=r):(a=n,o=r,s=i);const u=o??ur.active(),c=this.startSpan(t,a,u),l=Lr.setSpan(u,c);return ur.with(l,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class lAe{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{mA(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var nu;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(nu||(nu={}));class fAe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=HSe({},i$(),aAe(t));this._resource=n.resource??QSe(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new lAe(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new cAe({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let a;const o=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=nu.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),a!==nu.timeout&&(a=nu.resolved,i(a))}).catch(s=>{clearTimeout(o),a=nu.error,i(s)})}));return new Promise((r,i)=>{Promise.all(n).then(a=>{const o=a.filter(s=>s!==nu.resolved);o.length>0?i(o):r()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class dAe{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:_4(t.startTime),duration:_4(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:la.SUCCESS})}}class I4{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new YSe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,n){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&$o.SAMPLED)===0)return;const n=this._doExport(t).catch(r=>mA(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const n=await ZSe._export(this._exporter,[t]);if(n.code!==la.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class hAe{_enabled=!1;_currentContext=_o;_bindFunction(t=_o,n){const r=this,i=function(...a){return r.with(t,()=>n.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=_o,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=_o,this)}with(t,n,r,...i){const a=this._currentContext;this._currentContext=t||_o;try{return n.call(r,...i)}finally{this._currentContext=a}}}function pAe(e){if(e!==null){if(e===void 0){const t=new hAe;t.enable(),ur.setGlobalContextManager(t);return}e.enable(),ur.setGlobalContextManager(e)}}function gAe(e){if(e!==null){if(e===void 0){Ca.setGlobalPropagator(new mSe({propagators:[new RSe,new YEe]}));return}Ca.setGlobalPropagator(e)}}class vAe extends fAe{constructor(t={}){super(t)}register(t={}){Lr.setGlobalTracerProvider(this),gAe(t.propagator),pAe(t.contextManager)}}var un;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(un||(un={}));const mAe="http.response_content_length",yAe="http.response_content_length_uncompressed";let Ow;function bAe(){return Ow||(Ow=document.createElement("a")),Ow}function wAe(e,t){return t in e}function po(e,t,n,r=!0){if(wAe(n,t)&&typeof n[t]=="number"&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function D4(e,t,n=!1,r,i){if(r===void 0&&(r=t[un.START_TIME]!==0),n||(po(e,un.FETCH_START,t,r),po(e,un.DOMAIN_LOOKUP_START,t,r),po(e,un.DOMAIN_LOOKUP_END,t,r),po(e,un.CONNECT_START,t,r),po(e,un.SECURE_CONNECTION_START,t,r),po(e,un.CONNECT_END,t,r),po(e,un.REQUEST_START,t,r),po(e,un.RESPONSE_START,t,r),po(e,un.RESPONSE_END,t,r)),!i){const a=t[un.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(mAe,a);const o=t[un.DECODED_BODY_SIZE];o!==void 0&&a!==o&&e.setAttribute(yAe,o)}}function xAe(e){return e.slice().sort((t,n)=>{const r=t[un.FETCH_START],i=n[un.FETCH_START];return r>i?1:r<i?-1:0})}function o$(){return typeof location<"u"?location.origin:void 0}function _Ae(e,t,n,r,i=new WeakSet,a){const o=Wv(e);e=o.toString();const s=SAe(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=xAe(s);if(o.origin!==o$()&&u.length>1){let c=u[0],l=EAe(u,c[un.RESPONSE_END],n);const d=c[un.RESPONSE_END];return l[un.FETCH_START]<d&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}else return{mainRequest:s[0]}}function EAe(e,t,n){const r=Po(n),i=Po(fd(t));let a=e[1],o;const s=e.length;for(let u=1;u<s;u++){const c=e[u],l=Po(fd(c[un.FETCH_START])),d=Po(fd(c[un.RESPONSE_END])),h=r-d;l>=i&&(!o||h<o)&&(o=h,a=c)}return a}function SAe(e,t,n,r,i,a){const o=Po(t),s=Po(n);let u=r.filter(c=>{const l=Po(fd(c[un.FETCH_START])),d=Po(fd(c[un.RESPONSE_END]));return c.initiatorType.toLowerCase()===a&&c.name===e&&l>=o&&d<=s});return u.length>0&&(u=u.filter(c=>!i.has(c))),u}function Wv(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=bAe();return t.href=e,t}function AAe(e,t){let n=t||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),Wv(e).origin===o$()?!0:n.some(i=>n$(e,i))}class OAe{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class N4 extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function TAe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function PAe(e){if(e!=null)return()=>e}function CAe(e,t,n){return{timeoutMillis:TAe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function jAe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class MAe{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function kAe(e){return new MAe(e.concurrencyLimit)}function RAe(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function IAe(){return{handleResponse(e){e==null||!RAe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wt.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class DAe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,a){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=a,this._diagLogger=Wt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:la.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:la.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,i.data)}n({code:la.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:la.FAILED,error:i.error});return}else i.status==="retryable"?n({code:la.FAILED,error:new N4("Export failed with retryable status")}):n({code:la.FAILED,error:new N4("Export failed with unknown error")})},i=>n({code:la.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function NAe(e,t){return new DAe(e.transport,e.serializer,IAe(),e.promiseHandler,t.timeout)}function s$(e,t,n){return NAe({transport:n,serializer:t,promiseHandler:kAe(e)},{timeout:e.timeoutMillis})}function L4(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function u$(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=L4(e.charCodeAt(r)),a=L4(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function c$(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function LAe(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function $Ae(e){const t=c$(e);return LAe(t)}function BAe(e){return c$(e).toString()}const zAe=typeof BigInt<"u"?BAe:Po;function $4(e){return e}function FAe(e){if(e!==void 0)return u$(e)}const WAe={encodeHrTime:$Ae,encodeSpanContext:u$,encodeOptionalSpanContext:FAe};function qAe(e){return e===void 0?WAe:{encodeHrTime:zAe,encodeSpanContext:$4,encodeOptionalSpanContext:$4}}function VAe(e){return{attributes:km(e.attributes),droppedAttributesCount:0}}function HAe(e){return{name:e.name,version:e.version}}function km(e){return Object.keys(e).map(t=>l$(t,e[t]))}function l$(e,t){return{key:e,value:f$(t)}}function f$(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(f$)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>l$(n,r))}}:{}}function UAe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:km(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>KAe(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(a=>GAe(a,t)),droppedLinksCount:e.droppedLinksCount}}function GAe(e,t){return{attributes:e.attributes?km(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function KAe(e,t){return{attributes:e.attributes?km(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function YAe(e,t){const n=qAe(t);return{resourceSpans:ZAe(e,n)}}function XAe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let a=r.get(i);a||(a=[],r.set(i,a)),a.push(n)}return t}function ZAe(e,t){const n=XAe(e),r=[],i=n.entries();let a=i.next();for(;!a.done;){const[o,s]=a.value,u=[],c=s.values();let l=c.next();for(;!l.done;){const h=l.value;if(h.length>0){const g=h.map(m=>UAe(m,t));u.push({scope:HAe(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}l=c.next()}const d={resource:VAe(o),scopeSpans:u,schemaUrl:void 0};r.push(d),a=i.next()}return r}const JAe={serializeRequest:e=>{const t=YAe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},QAe=5,e3e=1e3,t3e=5e3,n3e=1.5,B4=.2;function r3e(){return Math.random()*(2*B4)-B4}class i3e{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,a)=>{setTimeout(()=>{this._transport.send(t,n).then(i,a)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),a=QAe,o=e3e;for(;i.status==="retryable"&&a>0;){a--;const s=Math.max(Math.min(o,t3e)+r3e(),0);o=o*n3e;const u=i.retryInMillis??s,c=r-Date.now();if(u>c)return i;i=await this.retry(t,c,u)}return i}shutdown(){return this._transport.shutdown()}}function d$(e){return new i3e(e.transport)}function a3e(e){return[429,502,503,504].includes(e)}function o3e(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class s3e{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const a=this._parameters.headers();Object.entries(a).forEach(([o,s])=>{i.setRequestHeader(o,s)}),i.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Wt.debug("XHR success"),r({status:"success"})):i.status&&a3e(i.status)?r({status:"retryable",retryInMillis:o3e(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function u3e(e){return new s3e(e)}class c3e{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Wt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function l3e(e){return new c3e(e)}function f3e(e,t){return s$(e,t,d$({transport:u3e(e)}))}function d3e(e,t){return s$(e,t,d$({transport:l3e({url:e.url,blobType:e.headers()["Content-Type"]})}))}function h3e(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):Wt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function p3e(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function g3e(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function v3e(e,t,n){return{...CAe(e,t,n),headers:p3e(h3e(e.headers),t.headers,n.headers),url:g3e(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function m3e(e,t){return{...jAe(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function y3e(e,t,n){return v3e({url:e.url,timeoutMillis:e.timeoutMillis,headers:PAe(e.headers),concurrencyLimit:e.concurrencyLimit},{},m3e(n,t))}function b3e(e,t,n,r){const i=!!e.headers||typeof navigator.sendBeacon!="function",a=y3e(e,n,r);return i?f3e(a,t):d3e(a,t)}class w3e extends OAe{constructor(t={}){super(b3e(t,JAe,"v1/traces",{"Content-Type":"application/json"}))}}class h${emit(t){}}const x3e=new h$;class _3e{getLogger(t,n,r){return new h$}}const p$=new _3e;class E3e{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):x3e}}class z4{getLogger(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new E3e(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:p$}setDelegate(t){this._delegate=t}getDelegateLogger(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)}}const S3e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},ag=Symbol.for("io.opentelemetry.js.api.logs"),If=S3e;function A3e(e,t,n){return r=>r===e?t:n}const F4=1;class xA{constructor(){this._proxyLoggerProvider=new z4}static getInstance(){return this._instance||(this._instance=new xA),this._instance}setGlobalLoggerProvider(t){return If[ag]?this.getLoggerProvider():(If[ag]=A3e(F4,t,p$),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,n;return(n=(t=If[ag])===null||t===void 0?void 0:t.call(If,F4))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)}disable(){delete If[ag],this._proxyLoggerProvider=new z4}}const g$=xA.getInstance();function O3e(e,t,n,r){for(let i=0,a=e.length;i<a;i++){const o=e[i];t&&o.setTracerProvider(t),n&&o.setMeterProvider(n),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function T3e(e){e.forEach(t=>t.disable())}function P3e(e){const t=e.tracerProvider||Lr.getTracerProvider(),n=e.meterProvider||$L.getMeterProvider(),r=e.loggerProvider||g$.getLoggerProvider(),i=e.instrumentations?.flat()??[];return O3e(i,t,n,r),()=>{T3e(i)}}let Ti=console.error.bind(console);function Df(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const v$=(e,t,n)=>{if(!e||!e[t]){Ti("no original function "+String(t)+" to wrap");return}if(!n){Ti("no wrapper function"),Ti(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof n!="function"){Ti("original object and wrapper must be functions");return}const i=n(r,t);return Df(i,"__original",r),Df(i,"__unwrap",()=>{e[t]===i&&Df(e,t,r)}),Df(i,"__wrapped",!0),Df(e,t,i),i},C3e=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(i=>{v$(r,i,n)})})},m$=(e,t)=>{if(!e||!e[t]){Ti("no function to unwrap."),Ti(new Error().stack);return}const n=e[t];if(!n.__unwrap)Ti("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{n.__unwrap();return}},j3e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to unwrap on modules");return}e.forEach(n=>{t.forEach(r=>{m$(n,r)})})};class M3e{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this.setConfig(r),this._diag=Wt.createComponentLogger({namespace:t}),this._tracer=Lr.getTracer(t,n),this._meter=$L.getMeter(t,n),this._logger=g$.getLogger(t,n),this._updateMetricInstruments()}_wrap=v$;_unwrap=m$;_massWrap=C3e;_massUnwrap=j3e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,n,r,i){if(t)try{t(r,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},a)}}}class k3e extends M3e{constructor(t,n,r){super(t,n,r),this._config.enabled&&this.enable()}}function W4(e,t,n){let r,i;try{i=e()}catch(a){r=a}finally{return t(r,i),i}}function R3e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var ri;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(ri||(ri={}));function I3e(e,t){let n=ri.OLD;const r=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of r??[])if(i.toLowerCase()===e+"/dup"){n=ri.DUPLICATE;break}else i.toLowerCase()===e&&(n=ri.STABLE);return n}var qv;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(qv||(qv={}));var jn={},q4;function D3e(){return q4||(q4=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.ATTR_HTTP_USER_AGENT=jn.ATTR_HTTP_URL=jn.ATTR_HTTP_STATUS_CODE=jn.ATTR_HTTP_SCHEME=jn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=jn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=jn.ATTR_HTTP_REQUEST_BODY_SIZE=jn.ATTR_HTTP_METHOD=jn.ATTR_HTTP_HOST=void 0,jn.ATTR_HTTP_HOST="http.host",jn.ATTR_HTTP_METHOD="http.method",jn.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",jn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",jn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",jn.ATTR_HTTP_SCHEME="http.scheme",jn.ATTR_HTTP_STATUS_CODE="http.status_code",jn.ATTR_HTTP_URL="http.url",jn.ATTR_HTTP_USER_AGENT="http.user_agent"),jn}var ss=D3e();const y$=Wt.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function N3e(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:r}=L3e(t.body);return t.body=n,r}else return Promise.resolve(B3e(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(n=>j_(n)):Promise.resolve()}}function L3e(e){if(!e.pipeThrough)return y$.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,n;const r=new Promise(a=>{n=a}),i=new TransformStream({start(){},async transform(a,o){const s=await a;t+=s.byteLength,o.enqueue(a)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function $3e(e){return typeof Document<"u"&&e instanceof Document}function B3e(e){if($3e(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return j_(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return F3e(e);if(e instanceof URLSearchParams)return j_(e.toString());if(e.byteLength!==void 0)return e.byteLength;y$.warn("unknown body type")}const z3e=new TextEncoder;function j_(e){return z3e.encode(e).byteLength}function F3e(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function W3e(e){const t=V3e(),n=e.toUpperCase();return n in t?n:"_OTHER"}const q3e={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let Tw;function V3e(){return Tw===void 0&&(Tw=q3e),Tw}const H3e={"https:":"443","http:":"80"};function U3e(e){const t=Number(e.port||H3e[e.protocol]);if(t&&!isNaN(t))return t}const V4="0.203.0",G3e=300,H4=typeof process=="object"&&process.release?.name==="node";class K3e extends k3e{component="fetch";version=V4;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",V4,t),this._semconvStability=I3e("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const r=this.tracer.startSpan("CORS Preflight",{startTime:n[un.FETCH_START]},Lr.setSpan(ur.active(),t)),i=!(this._semconvStability&ri.OLD);D4(r,n,this.getConfig().ignoreNetworkEvents,void 0,i),r.end(n[un.RESPONSE_END])}_addFinalSpanAttributes(t,n){const r=Wv(n.url);if(this._semconvStability&ri.OLD&&(t.setAttribute(ss.ATTR_HTTP_STATUS_CODE,n.status),n.statusText!=null&&t.setAttribute(qv.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(ss.ATTR_HTTP_HOST,r.host),t.setAttribute(ss.ATTR_HTTP_SCHEME,r.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(ss.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&ri.STABLE){t.setAttribute(sSe,n.status),t.setAttribute(uSe,r.hostname);const i=U3e(r);i&&t.setAttribute(cSe,i)}}_addHeaders(t,n){if(!AAe(n,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};Ca.inject(ur.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Ca.inject(ur.active(),t.headers,{set:(r,i,a)=>r.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Headers)Ca.inject(ur.active(),t.headers,{set:(r,i,a)=>r.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Map)Ca.inject(ur.active(),t.headers,{set:(r,i,a)=>r.set(i,typeof a=="string"?a:String(a))});else{const r={};Ca.inject(ur.active(),r),t.headers=Object.assign({},r,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(GSe(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let r="";const i={};if(this._semconvStability&ri.OLD){const a=(n.method||"GET").toUpperCase();r=`HTTP ${a}`,i[qv.COMPONENT]=this.moduleName,i[ss.ATTR_HTTP_METHOD]=a,i[ss.ATTR_HTTP_URL]=t}if(this._semconvStability&ri.STABLE){const a=n.method,o=W3e(n.method||"GET");r||(r=o),i[aSe]=o,o!==a&&(i[oSe]=a),i[fSe]=t}return this.tracer.startSpan(r,{kind:Nv.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,n,r){let i=n.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const a=_Ae(n.spanUrl,n.startTime,r,i,this._usedResources,"fetch");if(a.mainRequest){const o=a.mainRequest;this._markResourceAsUsed(o);const s=a.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&ri.OLD);D4(t,o,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,r){const i=To(Date.now()),a=$v();this._addFinalSpanAttributes(t,r),this._semconvStability&ri.STABLE&&r.status>=400&&(t.setStatus({code:bu.ERROR}),t.setAttribute(rSe,String(r.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,a),this._tasksCount--,this._clearResources(),t.end(i)},G3e)}_patchConstructor(){return t=>{const n=this;return function(...i){const a=this,o=Wv(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=n._createSpan(o,s);if(!u)return t.apply(this,i);const c=n._prepareSpanData(o);n.getConfig().measureRequestSize&&N3e(...i).then(m=>{m&&(n._semconvStability&ri.OLD&&u.setAttribute(ss.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,m),n._semconvStability&ri.STABLE&&u.setAttribute(ss.ATTR_HTTP_REQUEST_BODY_SIZE,m))}).catch(m=>{n._diag.warn("getFetchBodyLength",m)});function l(m,y){n._applyAttributesAfterFetch(m,s,y),n._endSpan(m,c,{status:y.status||0,statusText:y.message,url:o})}function d(m,y){n._applyAttributesAfterFetch(m,s,y),y.status>=200&&y.status<400?n._endSpan(m,c,y):n._endSpan(m,c,{status:y.status,statusText:y.statusText,url:o})}function h(m,y,v){try{const _=v.clone().body;if(_){const E=_.getReader(),S=()=>{E.read().then(({done:A})=>{A?d(m,v):S()},A=>{l(m,A)})};S()}else d(m,v)}finally{y(v)}}function g(m,y,v){try{l(m,v)}finally{y(v)}}return new Promise((m,y)=>ur.with(Lr.setSpan(ur.active(),u),()=>(n._addHeaders(s,o),n._callRequestHook(u,s),n._tasksCount++,t.apply(a,s instanceof Request?[s]:[o,s]).then(h.bind(a,u,m),g.bind(a,u,y)))))}}}_applyAttributesAfterFetch(t,n,r){const i=this.getConfig().applyCustomAttributesOnSpan;i&&W4(()=>i(t,n,r),a=>{a&&this._diag.error("applyCustomAttributesOnSpan",a)})}_callRequestHook(t,n){const r=this.getConfig().requestHook;r&&W4(()=>r(t,n),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const n=$v(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:n,spanUrl:t};const i=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&r.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:r,observer:i,startTime:n,spanUrl:t}}enable(){if(H4){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}R3e(fetch)&&(this._unwrap(bw,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(bw,"fetch",this._patchConstructor())}disable(){H4||(this._unwrap(bw,"fetch"),this._usedResources=new WeakSet)}}function Y3e(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const U4="OT_ZONE_CONTEXT";class X3e{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(U4)||_o}_bindFunction(t,n){const r=this,i=function(...a){return r.with(t,()=>n.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[U4]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(a,o,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[a];u===void 0&&(u=new WeakMap,t.__ot_listeners[a]=u);const c=i.bind(r,o);return u.set(o,c),n.call(this,a,c,s)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const a=t.__ot_listeners[r],o=a.get(i);return a.delete(i),n.call(this,r,o||i)}}active(){if(!this._enabled)return _o;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||_o}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(Y3e(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const a=this._createZoneName();return this._createZone(a,t).run(n,r,i)}}var G4={},K4;function Z3e(){if(K4)return G4;K4=1;/**
186
+ c11.151,2.199,22.583,3.631,34.232,4.215c3.938,0.191,7.872,0.299,11.81,0.299C253.549,473.68,268.103,465.917,280.545,452.432z`})]});function F_e({size:e=24,color:t="currentColor"}){return w.jsx(ie.SvgIcon,{children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1",width:e,height:e,viewBox:"0 0 24 24",fill:t,children:w.jsx("path",{d:"M4,6H6V18H4V6M7,6H8V18H7V6M9,6H12V18H9V6M13,6H14V18H13V6M16,6H18V18H16V6M19,6H20V18H19V6M2,4V8H0V4A2,2 0 0,1 2,2H6V4H2M22,2A2,2 0 0,1 24,4V8H22V4H18V2H22M2,16V20H6V22H2A2,2 0 0,1 0,20V16H2M22,20V16H24V20A2,2 0 0,1 22,22H18V20H22Z"})})})}const{slice:W_e,forEach:q_e}=[];function V_e(e){return q_e.call(W_e.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function H_e(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const p4=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,U_e=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t);let a=`${e}=${i}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!p4.test(r.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${r.domain}`}if(r.path){if(!p4.test(r.path))throw new TypeError("option path is invalid");a+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(a+="; Partitioned"),a},g4={create(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=U_e(e,t,i)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var G_e={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return g4.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:a}=t;n&&typeof document<"u"&&g4.create(n,e,r,i,a)}},K_e={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const a=r.substring(1).split("&");for(let o=0;o<a.length;o++){const s=a[o].indexOf("=");s>0&&a[o].substring(0,s)===t&&(n=a[o].substring(s+1))}}return n}},Y_e={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const a=i.substring(1);if(t){const o=a.split("&");for(let s=0;s<o.length;s++){const u=o[s].indexOf("=");u>0&&o[s].substring(0,u)===t&&(r=o[s].substring(u+1))}}if(r)return r;if(!r&&n>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Oc=null;const v4=()=>{if(Oc!==null)return Oc;try{if(Oc=typeof window<"u"&&window.localStorage!==null,!Oc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Oc=!1}return Oc};var X_e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&v4())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&v4()&&window.localStorage.setItem(n,e)}};let Tc=null;const m4=()=>{if(Tc!==null)return Tc;try{if(Tc=typeof window<"u"&&window.sessionStorage!==null,!Tc)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Tc=!1}return Tc};var Z_e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&m4())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&m4()&&window.sessionStorage.setItem(n,e)}},J_e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let a=0;a<n.length;a++)t.push(n[a]);r&&t.push(r),i&&t.push(i)}return t.length>0?t:void 0}},Q_e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},e2e={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},t2e={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let OL=!1;try{document.cookie,OL=!0}catch{}const TL=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];OL||TL.splice(1,1);const n2e=()=>({order:TL,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class PL{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=V_e(n,this.options||{},n2e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(G_e),this.addDetector(K_e),this.addDetector(X_e),this.addDetector(Z_e),this.addDetector(J_e),this.addDetector(Q_e),this.addDetector(e2e),this.addDetector(t2e),this.addDetector(Y_e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!H_e(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}PL.type="languageDetector";const r2e=e=>{let t={};for(const r of Object.keys(e)){const i=r.match(/\w+\.json/);if(i){const a=i[0]?.split(".")[0];t={...t,[a]:{translation:e[r]}}}}const n=Object.keys(t);return _s.use(PL).use(Et.initReactI18next).init({resources:t,fallbackLng:"en",interpolation:{escapeValue:!1},supportedLngs:n,missingKeyHandler:function(r,i,a){console.warn(`MISSING TRANSLATION: [${r}] ${i}:${a}`)}}),_s};function CL({children:e}){return w.jsx(xn,{paddingBottom:"16px",gap:"8px",children:e})}function jL({children:e}){return w.jsx(qd,{mt:"auto",mb:"auto",width:"100%",children:w.jsx(ie.Paper,{sx:{width:"100%"},children:w.jsx(xn,{height:"70px",flexDirection:"row",alignItems:"center",gap:"16px",padding:"16px",children:e})})})}function ML({tabValue:e,columnValues:t,columnWidths:n}){const{t:r}=Et.useTranslation();return w.jsx(ie.Paper,{sx:{display:"grid",gridTemplateColumns:n?.[e]??[],padding:"0.5rem",fontWeight:"bold",position:"sticky",textAlign:"center",zIndex:10,top:0,border:"none",gap:"8px"},children:t[e].map((i,a)=>w.jsx(ie.Typography,{children:w.jsx("b",{children:r(i)})},a))})}function i2e({InnerHeaderContent:e,TableHeaderContent:t,FirstTabContent:n,SecondTabContent:r,ThirdTabContent:i,tabValue:a,columnValues:o,columnWidths:s,FirstTabNearbyContent:u,SecondTabNearbyContent:c,ThirdTabNearbyContent:l}){return w.jsxs(lu,{gap:"16px",children:[w.jsx(jL,{children:e}),w.jsxs(I_,{gap:"16px",children:[w.jsxs(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:2,minWidth:u&&a===0||c&&a===1||l&&a===2?"70%":"unset",maxWidth:u&&a===0||c&&a===1||l&&a===2?"70%":"unset"},children:[w.jsx(CL,{children:t}),w.jsxs(lu,{children:[w.jsx(ML,{columnValues:o,columnWidths:s,tabValue:a}),w.jsx(ie.Divider,{sx:{marginBottom:"16px"}}),w.jsxs(lu,{gap:"16px",overflow:"auto",paddingTop:0,sx:{scrollbarWidth:"none",paddingBottom:"72px"},children:[a===0?w.jsx(n,{}):null,a===1?w.jsx(r,{}):null,a===2&&i?w.jsx(i,{}):null]})]})]}),a===0&&u?w.jsx(ie.Paper,{sx:{padding:"16px",overflow:"hidden",flexGrow:1},children:u}):null,a===1&&c?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:c}):null,a===2&&l?w.jsx(ie.Paper,{sx:{padding:"16px",flexGrow:1,overflow:"hidden"},children:l}):null]})]})}function a2e({children:e,position:t}){return w.jsx(Q4.SnackbarProvider,{maxSnack:3,autoHideDuration:3e3,anchorOrigin:{vertical:"bottom",horizontal:t??"center"},preventDuplicate:!0,Components:{default:jf,info:jf,success:jf,error:jf,warning:jf},children:e})}const da={};function o2e(e,t){return{name:"vite-plugin-graphql-rewrite",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=da.resolve(n),a=da.basename(i);if(!r.includes(t))return da.resolve(e,"graphQL","__generated__",`${a}.ts`);const o=da.resolve(__dirname,".."),s=r.slice(o.length).split("/")[1];return da.resolve(o,s,"__generated__",`${a}.ts`)}return null}}}function s2e(e,t){return{name:"vite-plugin-graphql-rewrite-build",enforce:"pre",resolveId(n,r){if(n.endsWith(".graphql")){const i=da.resolve(n),a=da.basename(i),o=da.resolve(e,".."),s=da.resolve(o,t,"__generated__",`${a}.ts`);return console.log("corepath",t),console.log("reporoot",o),console.log("fileproject",s),console.log("importer",r),r.includes(t)?da.resolve(o,t,"__generated__",`${a}.ts`):da.resolve(e,"graphQL","__generated__",`${a}.ts`)}return null}}}var u2e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},cu="1.9.0",y4=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function c2e(e){var t=new Set([e]),n=new Set,r=e.match(y4);if(!r)return function(){return!1};var i={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(i.prerelease!=null)return function(u){return u===e};function a(s){return n.add(s),!1}function o(s){return t.add(s),!0}return function(u){if(t.has(u))return!0;if(n.has(u))return!1;var c=u.match(y4);if(!c)return a(u);var l={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return l.prerelease!=null||i.major!==l.major?a(u):i.major===0?i.minor===l.minor&&i.patch<=l.patch?o(u):a(u):i.minor<=l.minor?o(u):a(u)}}var l2e=c2e(cu),f2e=cu.split(".")[0],Fd=Symbol.for("opentelemetry.js.api."+f2e),Wd=u2e;function Sh(e,t,n,r){var i;r===void 0&&(r=!1);var a=Wd[Fd]=(i=Wd[Fd])!==null&&i!==void 0?i:{version:cu};if(!r&&a[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return n.error(o.stack||o.message),!1}if(a.version!==cu){var o=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+cu);return n.error(o.stack||o.message),!1}return a[e]=t,n.debug("@opentelemetry/api: Registered a global for "+e+" v"+cu+"."),!0}function $u(e){var t,n,r=(t=Wd[Fd])===null||t===void 0?void 0:t.version;if(!(!r||!l2e(r)))return(n=Wd[Fd])===null||n===void 0?void 0:n[e]}function Ah(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+cu+".");var n=Wd[Fd];n&&delete n[e]}var d2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},h2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},p2e=function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Mf("verbose",this._namespace,t)},e}();function Mf(e,t,n){var r=$u("diag");if(r)return n.unshift(t),r[e].apply(r,h2e([],d2e(n),!1))}var xi;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(xi||(xi={}));function g2e(e,t){e<xi.NONE?e=xi.NONE:e>xi.ALL&&(e=xi.ALL),t=t||{};function n(r,i){var a=t[r];return typeof a=="function"&&e>=i?a.bind(t):function(){}}return{error:n("error",xi.ERROR),warn:n("warn",xi.WARN),info:n("info",xi.INFO),debug:n("debug",xi.DEBUG),verbose:n("verbose",xi.VERBOSE)}}var v2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},m2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},y2e="diag",qa=function(){function e(){function t(i){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];var s=$u("diag");if(s)return s[i].apply(s,m2e([],v2e(a),!1))}}var n=this,r=function(i,a){var o,s,u;if(a===void 0&&(a={logLevel:xi.INFO}),i===n){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return n.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof a=="number"&&(a={logLevel:a});var l=$u("diag"),d=g2e((s=a.logLevel)!==null&&s!==void 0?s:xi.INFO,i);if(l&&!a.suppressOverrideMessage){var h=(u=new Error().stack)!==null&&u!==void 0?u:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return Sh("diag",d,n,!0)};n.setLogger=r,n.disable=function(){Ah(y2e,n)},n.createComponentLogger=function(i){return new p2e(i)},n.verbose=t("verbose"),n.debug=t("debug"),n.info=t("info"),n.warn=t("warn"),n.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),b2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},w2e=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},x2e=function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var n=this._entries.get(t);if(n)return Object.assign({},n)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var n=b2e(t,2),r=n[0],i=n[1];return[r,i]})},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=new e(this._entries);try{for(var o=w2e(r),s=o.next();!s.done;s=o.next()){var u=s.value;a._entries.delete(u)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},e.prototype.clear=function(){return new e},e}(),_2e=Symbol("BaggageEntryMetadata"),E2e=qa.instance();function S2e(e){return e===void 0&&(e={}),new x2e(new Map(Object.entries(e)))}function A2e(e){return typeof e!="string"&&(E2e.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:_2e,toString:function(){return e}}}function lA(e){return Symbol.for(e)}var O2e=function(){function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(r){return n._currentContext.get(r)},n.setValue=function(r,i){var a=new e(n._currentContext);return a._currentContext.set(r,i),a},n.deleteValue=function(r){var i=new e(n._currentContext);return i._currentContext.delete(r),i}}return e}(),_o=new O2e,Xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),T2e=function(){function e(){}return e.prototype.createGauge=function(t,n){return L2e},e.prototype.createHistogram=function(t,n){return $2e},e.prototype.createCounter=function(t,n){return N2e},e.prototype.createUpDownCounter=function(t,n){return B2e},e.prototype.createObservableGauge=function(t,n){return F2e},e.prototype.createObservableCounter=function(t,n){return z2e},e.prototype.createObservableUpDownCounter=function(t,n){return W2e},e.prototype.addBatchObservableCallback=function(t,n){},e.prototype.removeBatchObservableCallback=function(t){},e}(),Cm=function(){function e(){}return e}(),P2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Cm),C2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(n,r){},t}(Cm),j2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Cm),M2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(n,r){},t}(Cm),fA=function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e}(),k2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fA),R2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fA),I2e=function(e){Xu(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(fA),D2e=new T2e,N2e=new P2e,L2e=new j2e,$2e=new M2e,B2e=new C2e,z2e=new k2e,F2e=new R2e,W2e=new I2e,q2e={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},V2e={set:function(e,t,n){e!=null&&(e[t]=n)}},H2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},U2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},G2e=function(){function e(){}return e.prototype.active=function(){return _o},e.prototype.with=function(t,n,r){for(var i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];return n.call.apply(n,U2e([r],H2e(i),!1))},e.prototype.bind=function(t,n){return n},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),K2e=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},Y2e=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},dw="context",X2e=new G2e,jm=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Sh(dw,t,qa.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,n,r){for(var i,a=[],o=3;o<arguments.length;o++)a[o-3]=arguments[o];return(i=this._getContextManager()).with.apply(i,Y2e([t,n,r],K2e(a),!1))},e.prototype.bind=function(t,n){return this._getContextManager().bind(t,n)},e.prototype._getContextManager=function(){return $u(dw)||X2e},e.prototype.disable=function(){this._getContextManager().disable(),Ah(dw,qa.instance())},e}(),$o;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})($o||($o={}));var kL="0000000000000000",RL="00000000000000000000000000000000",IL={traceId:RL,spanId:kL,traceFlags:$o.NONE},ld=function(){function e(t){t===void 0&&(t=IL),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,n){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,n){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,n){},e}(),dA=lA("OpenTelemetry Context Key SPAN");function hA(e){return e.getValue(dA)||void 0}function Z2e(){return hA(jm.getInstance().active())}function pA(e,t){return e.setValue(dA,t)}function J2e(e){return e.deleteValue(dA)}function Q2e(e,t){return pA(e,new ld(t))}function DL(e){var t;return(t=hA(e))===null||t===void 0?void 0:t.spanContext()}var eEe=/^([0-9a-f]{32})$/i,tEe=/^[0-9a-f]{16}$/i;function NL(e){return eEe.test(e)&&e!==RL}function nEe(e){return tEe.test(e)&&e!==kL}function Mm(e){return NL(e.traceId)&&nEe(e.spanId)}function rEe(e){return new ld(e)}var hw=jm.getInstance(),LL=function(){function e(){}return e.prototype.startSpan=function(t,n,r){r===void 0&&(r=hw.active());var i=!!n?.root;if(i)return new ld;var a=r&&DL(r);return iEe(a)&&Mm(a)?new ld(a):new ld},e.prototype.startActiveSpan=function(t,n,r,i){var a,o,s;if(!(arguments.length<2)){arguments.length===2?s=n:arguments.length===3?(a=n,s=r):(a=n,o=r,s=i);var u=o??hw.active(),c=this.startSpan(t,a,u),l=pA(u,c);return hw.with(l,s,void 0,c)}},e}();function iEe(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var aEe=new LL,oEe=function(){function e(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}return e.prototype.startSpan=function(t,n,r){return this._getTracer().startSpan(t,n,r)},e.prototype.startActiveSpan=function(t,n,r,i){var a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):aEe},e}(),sEe=function(){function e(){}return e.prototype.getTracer=function(t,n,r){return new LL},e}(),uEe=new sEe,b4=function(){function e(){}return e.prototype.getTracer=function(t,n,r){var i;return(i=this.getDelegateTracer(t,n,r))!==null&&i!==void 0?i:new oEe(this,t,n,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:uEe},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getTracer(t,n,r)},e}(),Dv;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Dv||(Dv={}));var Nv;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Nv||(Nv={}));var bu;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(bu||(bu={}));var ur=jm.getInstance(),Wt=qa.instance(),cEe=function(){function e(){}return e.prototype.getMeter=function(t,n,r){return D2e},e}(),lEe=new cEe,pw="metrics",fEe=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Sh(pw,t,qa.instance())},e.prototype.getMeterProvider=function(){return $u(pw)||lEe},e.prototype.getMeter=function(t,n,r){return this.getMeterProvider().getMeter(t,n,r)},e.prototype.disable=function(){Ah(pw,qa.instance())},e}(),$L=fEe.getInstance(),dEe=function(){function e(){}return e.prototype.inject=function(t,n){},e.prototype.extract=function(t,n){return t},e.prototype.fields=function(){return[]},e}(),gA=lA("OpenTelemetry Baggage Key");function BL(e){return e.getValue(gA)||void 0}function hEe(){return BL(jm.getInstance().active())}function pEe(e,t){return e.setValue(gA,t)}function gEe(e){return e.deleteValue(gA)}var gw="propagation",vEe=new dEe,mEe=function(){function e(){this.createBaggage=S2e,this.getBaggage=BL,this.getActiveBaggage=hEe,this.setBaggage=pEe,this.deleteBaggage=gEe}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Sh(gw,t,qa.instance())},e.prototype.inject=function(t,n,r){return r===void 0&&(r=V2e),this._getGlobalPropagator().inject(t,n,r)},e.prototype.extract=function(t,n,r){return r===void 0&&(r=q2e),this._getGlobalPropagator().extract(t,n,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Ah(gw,qa.instance())},e.prototype._getGlobalPropagator=function(){return $u(gw)||vEe},e}(),Ca=mEe.getInstance(),vw="trace",yEe=function(){function e(){this._proxyTracerProvider=new b4,this.wrapSpanContext=rEe,this.isSpanContextValid=Mm,this.deleteSpan=J2e,this.getSpan=hA,this.getActiveSpan=Z2e,this.getSpanContext=DL,this.setSpan=pA,this.setSpanContext=Q2e}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var n=Sh(vw,this._proxyTracerProvider,qa.instance());return n&&this._proxyTracerProvider.setDelegate(t),n},e.prototype.getTracerProvider=function(){return $u(vw)||this._proxyTracerProvider},e.prototype.getTracer=function(t,n){return this.getTracerProvider().getTracer(t,n)},e.prototype.disable=function(){Ah(vw,qa.instance()),this._proxyTracerProvider=new b4},e}(),Lr=yEe.getInstance();function Jr(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Qs(e){return Jr(e)==="object"}function bEe(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function w4(e,t){return e.length<124?e:t}const wEe="graphql-transport-ws";var Vi=(e=>(e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e))(Vi||{}),Hi=(e=>(e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete",e))(Hi||{});function zL(e){if(!Qs(e))throw new Error(`Message is expected to be an object, but got ${Jr(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${Jr(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Qs(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Qs(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Jr(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${Jr(e.payload.query)}`);if(e.payload.variables!=null&&!Qs(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Jr(e.payload.variables)}`);if(e.payload.operationName!=null&&Jr(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Jr(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Qs(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Jr(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Qs(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Jr(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!bEe(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Jr(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function xEe(e,t){return zL(typeof e=="string"?JSON.parse(e,t):e)}function kf(e,t){return zL(e),JSON.stringify(e,t)}function _Ee(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:a=0,keepAlive:o=0,disablePong:s,connectionAckWaitTimeout:u=0,retryAttempts:c=5,retryWait:l=async function(L){const N=Math.pow(2,L);await new Promise(V=>setTimeout(V,N*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:d=mw,on:h,webSocketImpl:g,generateID:m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,L=>{const N=Math.random()*16|0;return(L=="x"?N:N&3|8).toString(16)})},jsonMessageReplacer:y,jsonMessageReviver:v}=e;let b;if(g){if(!SEe(g))throw new Error("Invalid WebSocket implementation provided");b=g}else typeof WebSocket<"u"?b=WebSocket:typeof global<"u"?b=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const _=b,E=(()=>{const C=(()=>{const N={};return{on(V,Z){return N[V]=Z,()=>{delete N[V]}},emit(V){"id"in V&&N[V.id]?.(V)}}})(),L={connecting:h?.connecting?[h.connecting]:[],opened:h?.opened?[h.opened]:[],connected:h?.connected?[h.connected]:[],ping:h?.ping?[h.ping]:[],pong:h?.pong?[h.pong]:[],message:h?.message?[C.emit,h.message]:[C.emit],closed:h?.closed?[h.closed]:[],error:h?.error?[h.error]:[]};return{onMessage:C.on,on(N,V){const Z=L[N];return Z.push(V),()=>{Z.splice(Z.indexOf(V),1)}},emit(N,...V){for(const Z of[...L[N]])Z(...V)}}})();function S(C){const L=[E.on("error",N=>{L.forEach(V=>V()),C(N)}),E.on("closed",N=>{L.forEach(V=>V()),C(N)})]}let A,O=0,P,j=!1,$=0,z=!1;async function I(){clearTimeout(P);const[C,L]=await(A??(A=new Promise((Z,K)=>(async()=>{if(j){if(await l($),!O)return A=void 0,K({code:1e3,reason:"All Subscriptions Gone"});$++}E.emit("connecting",j);const R=new _(typeof t=="function"?await t():t,wEe);let W,U;function Y(){isFinite(o)&&o>0&&(clearTimeout(U),U=setTimeout(()=>{R.readyState===_.OPEN&&(R.send(kf({type:Hi.Ping})),E.emit("ping",!1,void 0))},o))}S(re=>{A=void 0,clearTimeout(W),clearTimeout(U),K(re),re instanceof x4&&(R.close(4499,"Terminated"),R.onerror=null,R.onclose=null)}),R.onerror=re=>E.emit("error",re),R.onclose=re=>E.emit("closed",re),R.onopen=async()=>{try{E.emit("opened",R);const re=typeof n=="function"?await n():n;if(R.readyState!==_.OPEN)return;R.send(kf(re?{type:Hi.ConnectionInit,payload:re}:{type:Hi.ConnectionInit},y)),isFinite(u)&&u>0&&(W=setTimeout(()=>{R.close(Vi.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},u)),Y()}catch(re){E.emit("error",re),R.close(Vi.InternalClientError,w4(re instanceof Error?re.message:String(re),"Internal client error"))}};let ae=!1;R.onmessage=({data:re})=>{try{const ge=xEe(re,v);if(E.emit("message",ge),ge.type==="ping"||ge.type==="pong"){E.emit(ge.type,!0,ge.payload),ge.type==="pong"?Y():s||(R.send(kf(ge.payload?{type:Hi.Pong,payload:ge.payload}:{type:Hi.Pong})),E.emit("pong",!1,ge.payload));return}if(ae)return;if(ge.type!==Hi.ConnectionAck)throw new Error(`First message cannot be of type ${ge.type}`);clearTimeout(W),ae=!0,E.emit("connected",R,ge.payload,j),j=!1,$=0,Z([R,new Promise((ye,_e)=>S(_e))])}catch(ge){R.onmessage=null,E.emit("error",ge),R.close(Vi.BadResponse,w4(ge instanceof Error?ge.message:String(ge),"Bad response"))}}})())));C.readyState===_.CLOSING&&await L;let N=()=>{};const V=new Promise(Z=>N=Z);return[C,N,Promise.race([V.then(()=>{if(!O){const Z=()=>C.close(1e3,"Normal Closure");isFinite(a)&&a>0?P=setTimeout(()=>{C.readyState===_.OPEN&&Z()},a):Z()}}),L])]}function H(C){if(mw(C)&&(EEe(C.code)||[Vi.InternalServerError,Vi.InternalClientError,Vi.BadRequest,Vi.BadResponse,Vi.Unauthorized,Vi.SubprotocolNotAcceptable,Vi.SubscriberAlreadyExists,Vi.TooManyInitialisationRequests].includes(C.code)))throw C;if(z)return!1;if(mw(C)&&C.code===1e3)return O>0;if(!c||$>=c||!d(C))throw C;return j=!0}r||(async()=>{for(O++;;)try{const[,,C]=await I();await C}catch(C){try{if(!H(C))return}catch(L){return i?.(L)}}})();function D(C,L){const N=m(C);let V=!1,Z=!1,K=()=>{O--,V=!0};return(async()=>{for(O++;;)try{const[R,W,U]=await I();if(V)return W();const Y=E.onMessage(N,ae=>{switch(ae.type){case Hi.Next:{L.next(ae.payload);return}case Hi.Error:{Z=!0,V=!0,L.error(ae.payload),K();return}case Hi.Complete:{V=!0,K();return}}});R.send(kf({id:N,type:Hi.Subscribe,payload:C},y)),K=()=>{!V&&R.readyState===_.OPEN&&R.send(kf({id:N,type:Hi.Complete},y)),O--,V=!0,W()},await U.finally(Y);return}catch(R){if(!H(R))return}})().then(()=>{Z||L.complete()}).catch(R=>{L.error(R)}),()=>{V||K()}}return{on:E.on,subscribe:D,iterate(C){const L=[],N={done:!1,error:null,resolve:()=>{}},V=D(C,{next(K){L.push(K),N.resolve()},error(K){N.done=!0,N.error=K,N.resolve()},complete(){N.done=!0,N.resolve()}}),Z=async function*(){for(;;){for(L.length||await new Promise(R=>N.resolve=R);L.length;)yield L.shift();if(N.error)throw N.error;if(N.done)return}}();return Z.throw=async K=>(N.done||(N.done=!0,N.error=K,N.resolve()),{done:!0,value:void 0}),Z.return=async()=>(V(),{done:!0,value:void 0}),Z},async dispose(){if(z=!0,A){const[C]=await A;C.close(1e3,"Normal Closure")}},terminate(){A&&E.emit("closed",new x4)}}}class x4 extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function mw(e){return Qs(e)&&"code"in e&&"reason"in e}function EEe(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function SEe(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}const AEe=e=>_Ee({url:e.WS_URL}),OEe=(e,t,n)=>Mc.Observable.create(r=>AEe(n).subscribe({operationName:e.name,query:e.text,variables:t},r)),TEe=(e,t,n)=>Mc.Observable.from(ur.with(ur.active(),()=>{const r=Lr.getTracer("RelayNetwork").startSpan("GraphQL fetch");r.setAttribute("variables",JSON.stringify(t)),r.setAttribute("path",e.name);const i=r.spanContext();return fetch(n.API_URL,{method:"POST",headers:{"Content-Type":"application/json",traceparent:`00-${i.traceId}-${i.spanId}-01`,...localStorage.getItem("token")?{authorization:localStorage.getItem("token")}:{},"x-auth-scheme":n.AUTH_SCHEMA,...n.CUSTOM_HEADERS},body:JSON.stringify({query:e.text,variables:t}),...n.AUTH_SCHEMA==="Cookies"?{credentials:"include"}:{}}).then(a=>a.json().then(o=>(o.errors?(r.setStatus({code:bu.ERROR}),r.recordException(JSON.stringify(o.errors))):r.setStatus({code:bu.OK}),o))).catch(a=>{r.setStatus({code:bu.ERROR}),r.recordException(JSON.stringify(a))}).finally(()=>r.end())})),PEe=e=>{const t=e.id;return t!==null&&typeof t!="string"?String(t):t};function FL(e){return new Mc.Environment({network:Mc.Network.create((t,n)=>TEe(t,n,e),(t,n)=>OEe(t,n,e)),store:new Mc.Store(new Mc.RecordSource),getDataID:PEe})}function CEe({children:e}){const t=Kv(),n=FL(t);return w.jsx(Y4.RelayEnvironmentProvider,{environment:n,children:e})}const jEe=(e,t,n)=>{const r=[];for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i],o=i.match(/pages\/(?!core)(.*)\/index\.ts?$/);if(!o)continue;const s=o[1],u=Object.keys(t).find(b=>b.includes(`${s}/loader.ts`)),c=Object.keys(n).find(b=>b.includes(`${s}/action.ts`)),l=s.match(/\[(.+)\]/)?s.replace(/\[(.+)\]/,"$1/:data"):s.replace(/\/index/,""),d=s==="index"?"/":`${l.toLowerCase()}`,h=M.lazy(a),g=M.lazy(async()=>({default:(await a()).icon||ca.BlurCircularOutlined})),m=u?t[u].default:void 0,y=c?n[c].default:void 0,v={id:d,Icon:g,name:l,path:d,element:w.jsx(M.Suspense,{fallback:w.jsx(D_,{}),children:w.jsx(h,{})}),...u?{loader:m}:{},...c?{action:y}:{}};r.push(v)}return r};var WL=(e=>(e[e.Container=1]="Container",e[e.File=2]="File",e[e.Rad=3]="Rad",e))(WL||{});const MEe={createState:e=>{const t=kO.atom(e),n=kO.getDefaultStore();return{get:()=>n.get(t),set:r=>n.set(t,r),subscribe:r=>{const i=()=>{const a=n.get(t);r(a)};return n.sub(t,i)}}},type:"jotaiAdapter"};function kEe(){return{createState:e=>{const t=Nf.atom({key:`recoilAtom_${Math.random()}`,default:e});return{get:()=>(console.log("Getting value from Recoil atom"),Nf.useRecoilValue(t)),set:a=>{console.log("Setting value to Recoil atom"),Nf.useSetRecoilState(t)(a)},subscribe:a=>(console.log("Subscribing to Recoil atom"),Nf.useRecoilCallback(({snapshot:s})=>()=>{const u=s.getLoadable(t).contents;a(u)}))}},type:"recoilAdapter"}}const qL=M.createContext([!1,{lockInIdleMode:()=>{},unlockIdleMode:()=>{}}]);function REe({timer:e,children:t}){const n=r8(e);return w.jsx(qL.Provider,{value:n,children:t})}const IEe=(e,t,n)=>{if(!wl(e))return;const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()+t);break;case"seconds":r.setSeconds(r.getSeconds()+t);break;case"minutes":r.setMinutes(r.getMinutes()+t);break;case"hours":r.setHours(r.getHours()+t);break;case"days":r.setDate(r.getDate()+t);break;case"weeks":r.setDate(r.getDate()+t*7);break;case"months":r.setMonth(r.getMonth()+t);break;case"years":r.setFullYear(r.getFullYear()+t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r};var VL=(e=>(e[e.days=86400]="days",e[e.hours=3600]="hours",e[e.minutes=6e4]="minutes",e[e.seconds=1e3]="seconds",e[e.milliseconds=1]="milliseconds",e))(VL||{});const DEe=(e,t,n="milliseconds")=>{if(!wl(e)||!wl(t))return;const r=new Date(e).getTime();return(new Date(t).getTime()-r)/VL[n]},NEe=e=>{if(e==null)return"";const t=Math.floor(e/(3600*24)),n=Math.floor(e%(3600*24)/3600),r=Math.floor(e%3600/60),i=e%60;return[t?`${t}d`:"",n?`${n}h`:"",r?`${r}min`:"",i?`${i}sec`:""].filter(Boolean).join(" ")},LEe=(e,t,n)=>{if(!wl(e))throw new Error("Invalid Date");const r=new Date(e);switch(n){case"milliseconds":r.setMilliseconds(r.getMilliseconds()-t);break;case"seconds":r.setSeconds(r.getSeconds()-t);break;case"minutes":r.setMinutes(r.getMinutes()-t);break;case"hours":r.setHours(r.getHours()-t);break;case"days":r.setDate(r.getDate()-t);break;case"weeks":r.setDate(r.getDate()-t*7);break;case"months":r.setMonth(r.getMonth()-t);break;case"years":r.setFullYear(r.getFullYear()-t);break;default:throw new Error(`Unsupported time unit: ${n}`)}return r},$Ee=(e,t)=>e<=1?12:Math.floor(12/t),BEe=(e,t)=>(e&t)===t;function zEe(e){const t={};function n(r){Object.prototype.hasOwnProperty.call(r,"edges")&&(t.edges=r.edges);for(const i in r)typeof r[i]=="object"&&r[i]!==null&&n(r[i])}return n(e),t}const HL=lA("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function FEe(e){return e.setValue(HL,!0)}function vA(e){return e.getValue(HL)===!0}const WEe="=",S_=";",A_=",",yw="baggage",qEe=180,VEe=4096,HEe=8192;function UEe(e){return e.reduce((t,n)=>{const r=`${t}${t!==""?A_:""}${n}`;return r.length>HEe?t:r},"")}function GEe(e){return e.getAllEntries().map(([t,n])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(n.value)}`;return n.metadata!==void 0&&(r+=S_+n.metadata.toString()),r})}function KEe(e){const t=e.split(S_);if(t.length<=0)return;const n=t.shift();if(!n)return;const r=n.indexOf(WEe);if(r<=0)return;const i=decodeURIComponent(n.substring(0,r).trim()),a=decodeURIComponent(n.substring(r+1).trim());let o;return t.length>0&&(o=A2e(t.join(S_))),{key:i,value:a,metadata:o}}class YEe{inject(t,n,r){const i=Ca.getBaggage(t);if(!i||vA(t))return;const a=GEe(i).filter(s=>s.length<=VEe).slice(0,qEe),o=UEe(a);o.length>0&&r.set(n,yw,o)}extract(t,n,r){const i=r.get(n,yw),a=Array.isArray(i)?i.join(A_):i;if(!a)return t;const o={};return a.length===0||(a.split(A_).forEach(u=>{const c=KEe(u);if(c){const l={value:c.value};c.metadata&&(l.metadata=c.metadata),o[c.key]=l}}),Object.entries(o).length===0)?t:Ca.setBaggage(t,Ca.createBaggage(o))}fields(){return[yw]}}function bg(e){const t={};if(typeof e!="object"||e==null)return t;for(const[n,r]of Object.entries(e)){if(!XEe(n)){Wt.warn(`Invalid attribute key: ${n}`);continue}if(!UL(r)){Wt.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(r)?t[n]=r.slice():t[n]=r}return t}function XEe(e){return typeof e=="string"&&e.length>0}function UL(e){return e==null?!0:Array.isArray(e)?ZEe(e):GL(e)}function ZEe(e){let t;for(const n of e)if(n!=null){if(!t){if(GL(n)){t=typeof n;continue}return!1}if(typeof n!==t)return!1}return!0}function GL(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function JEe(){return e=>{Wt.error(QEe(e))}}function QEe(e){return typeof e=="string"?e:JSON.stringify(eSe(e))}function eSe(e){const t={};let n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(r=>{if(t[r])return;const i=n[r];i&&(t[r]=String(i))}),n=Object.getPrototypeOf(n);return t}let tSe=JEe();function mA(e){try{tSe(e)}catch{}}const bw=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},Kc=performance,nSe="2.0.1",rSe="error.type",ww="exception.message",iSe="exception.stacktrace",xw="exception.type",aSe="http.request.method",oSe="http.request.method_original",sSe="http.response.status_code",uSe="server.address",cSe="server.port",KL="service.name",O_="telemetry.sdk.language",lSe="webjs",T_="telemetry.sdk.name",P_="telemetry.sdk.version",fSe="url.full",dSe="process.runtime.name",_w={[T_]:"opentelemetry",[dSe]:"browser",[O_]:lSe,[P_]:nSe},hSe=9,pSe=6,gSe=Math.pow(10,pSe),Lv=Math.pow(10,hSe);function To(e){const t=e/1e3,n=Math.trunc(t),r=Math.round(e%1e3*gSe);return[n,r]}function yA(){let e=Kc.timeOrigin;if(typeof e!="number"){const t=Kc;e=t.timing&&t.timing.fetchStart}return e}function $v(e){const t=To(yA()),n=To(typeof e=="number"?e:Kc.now());return YL(t,n)}function fd(e){if(bA(e))return e;if(typeof e=="number")return e<yA()?$v(e):To(e);if(e instanceof Date)return To(e.getTime());throw TypeError("Invalid input type")}function vSe(e,t){let n=t[0]-e[0],r=t[1]-e[1];return r<0&&(n-=1,r+=Lv),[n,r]}function Po(e){return e[0]*Lv+e[1]}function _4(e){return e[0]*1e6+e[1]/1e3}function bA(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function E4(e){return bA(e)||typeof e=="number"||e instanceof Date}function YL(e,t){const n=[e[0]+t[0],e[1]+t[1]];return n[1]>=Lv&&(n[1]-=Lv,n[0]+=1),n}var la;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(la||(la={}));class mSe{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(n=>typeof n.fields=="function"?n.fields():[]).reduce((n,r)=>n.concat(r),[])))}inject(t,n,r){for(const i of this._propagators)try{i.inject(t,n,r)}catch(a){Wt.warn(`Failed to inject with ${i.constructor.name}. Err: ${a.message}`)}}extract(t,n,r){return this._propagators.reduce((i,a)=>{try{return a.extract(i,n,r)}catch(o){Wt.warn(`Failed to extract with ${a.constructor.name}. Err: ${o.message}`)}return i},t)}fields(){return this._fields.slice()}}const C_="[_0-9a-z-*/]",ySe=`[a-z]${C_}{0,255}`,bSe=`[a-z0-9]${C_}{0,240}@[a-z]${C_}{0,13}`,wSe=new RegExp(`^(?:${ySe}|${bSe})$`),xSe=/^[ -~]{0,255}[!-~]$/,_Se=/,|=/;function ESe(e){return wSe.test(e)}function SSe(e){return xSe.test(e)&&!_Se.test(e)}const S4=32,ASe=512,A4=",",O4="=";class wA{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,n){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,n),r}unset(t){const n=this._clone();return n._internalState.delete(t),n}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,n)=>(t.push(n+O4+this.get(n)),t),[]).join(A4)}_parse(t){t.length>ASe||(this._internalState=t.split(A4).reverse().reduce((n,r)=>{const i=r.trim(),a=i.indexOf(O4);if(a!==-1){const o=i.slice(0,a),s=i.slice(a+1,r.length);ESe(o)&&SSe(s)&&n.set(o,s)}return n},new Map),this._internalState.size>S4&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,S4))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new wA;return t._internalState=new Map(this._internalState),t}}const Ew="traceparent",Sw="tracestate",OSe="00",TSe="(?!ff)[\\da-f]{2}",PSe="(?![0]{32})[\\da-f]{32}",CSe="(?![0]{16})[\\da-f]{16}",jSe="[\\da-f]{2}",MSe=new RegExp(`^\\s?(${TSe})-(${PSe})-(${CSe})-(${jSe})(-.*)?\\s?$`);function kSe(e){const t=MSe.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class RSe{inject(t,n,r){const i=Lr.getSpanContext(t);if(!i||vA(t)||!Mm(i))return;const a=`${OSe}-${i.traceId}-${i.spanId}-0${Number(i.traceFlags||$o.NONE).toString(16)}`;r.set(n,Ew,a),i.traceState&&r.set(n,Sw,i.traceState.serialize())}extract(t,n,r){const i=r.get(n,Ew);if(!i)return t;const a=Array.isArray(i)?i[0]:i;if(typeof a!="string")return t;const o=kSe(a);if(!o)return t;o.isRemote=!0;const s=r.get(n,Sw);if(s){const u=Array.isArray(s)?s.join(","):s;o.traceState=new wA(typeof u=="string"?u:void 0)}return Lr.setSpanContext(t,o)}fields(){return[Ew,Sw]}}const ISe="[object Object]",DSe="[object Null]",NSe="[object Undefined]",LSe=Function.prototype,XL=LSe.toString,$Se=XL.call(Object),BSe=Object.getPrototypeOf,ZL=Object.prototype,JL=ZL.hasOwnProperty,tu=Symbol?Symbol.toStringTag:void 0,QL=ZL.toString;function T4(e){if(!zSe(e)||FSe(e)!==ISe)return!1;const t=BSe(e);if(t===null)return!0;const n=JL.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&XL.call(n)===$Se}function zSe(e){return e!=null&&typeof e=="object"}function FSe(e){return e==null?e===void 0?NSe:DSe:tu&&tu in Object(e)?WSe(e):qSe(e)}function WSe(e){const t=JL.call(e,tu),n=e[tu];let r=!1;try{e[tu]=void 0,r=!0}catch{}const i=QL.call(e);return r&&(t?e[tu]=n:delete e[tu]),i}function qSe(e){return QL.call(e)}const VSe=20;function HSe(...e){let t=e.shift();const n=new WeakMap;for(;e.length>0;)t=e$(t,e.shift(),0,n);return t}function Aw(e){return Bv(e)?e.slice():e}function e$(e,t,n=0,r){let i;if(!(n>VSe)){if(n++,wg(e)||wg(t)||t$(t))i=Aw(t);else if(Bv(e)){if(i=e.slice(),Bv(t))for(let a=0,o=t.length;a<o;a++)i.push(Aw(t[a]));else if(Rf(t)){const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o];i[u]=Aw(t[u])}}}else if(Rf(e))if(Rf(t)){if(!USe(e,t))return t;i=Object.assign({},e);const a=Object.keys(t);for(let o=0,s=a.length;o<s;o++){const u=a[o],c=t[u];if(wg(c))typeof c>"u"?delete i[u]:i[u]=c;else{const l=i[u],d=c;if(P4(e,u,r)||P4(t,u,r))delete i[u];else{if(Rf(l)&&Rf(d)){const h=r.get(l)||[],g=r.get(d)||[];h.push({obj:e,key:u}),g.push({obj:t,key:u}),r.set(l,h),r.set(d,g)}i[u]=e$(i[u],c,n,r)}}}}else i=t;return i}}function P4(e,t,n){const r=n.get(e[t])||[];for(let i=0,a=r.length;i<a;i++){const o=r[i];if(o.key===t&&o.obj===e)return!0}return!1}function Bv(e){return Array.isArray(e)}function t$(e){return typeof e=="function"}function Rf(e){return!wg(e)&&!Bv(e)&&!t$(e)&&typeof e=="object"}function wg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function USe(e,t){return!(!T4(e)||!T4(t))}function n$(e,t){return typeof t=="string"?e===t:!!e.match(t)}function GSe(e,t){if(!t)return!1;for(const n of t)if(n$(e,n))return!0;return!1}class KSe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class YSe{_callback;_that;_isCalled=!1;_deferred=new KSe;constructor(t,n){this._callback=t,this._that=n}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(n=>this._deferred.resolve(n),n=>this._deferred.reject(n))}catch(n){this._deferred.reject(n)}}return this._deferred.promise}}function XSe(e,t){return new Promise(n=>{ur.with(FEe(ur.active()),()=>{e.export(t,r=>{n(r)})})})}const ZSe={_export:XSe};function JSe(){return"unknown_service"}const Qf=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class zv{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const n=new zv({});return n._rawAttributes=C4(t),n._asyncAttributesPending=t.filter(([r,i])=>Qf(i)).length>0,n}constructor(t){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([r,i])=>(Qf(i)&&(this._asyncAttributesPending=!0),[r,i])),this._rawAttributes=C4(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[n,r]=this._rawAttributes[t];this._rawAttributes[t]=[n,Qf(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wt.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[n,r]of this._rawAttributes){if(Qf(r)){Wt.debug(`Unsettled resource attribute ${n} skipped`);continue}r!=null&&(t[n]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:zv.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function r$(e){return zv.FromAttributeList(Object.entries(e))}function QSe(){return r$({[KL]:JSe(),[O_]:_w[O_],[T_]:_w[T_],[P_]:_w[P_]})}function C4(e){return e.map(([t,n])=>Qf(n)?[t,n.catch(r=>{Wt.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,n])}const eAe="exception";class tAe{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:bu.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const n=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Kc.now(),this._performanceOffset=n-(this._performanceStartTime+yA()),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,this.links=t.links||[],this.startTime=this._getTime(t.startTime??n),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,n){if(n==null||this._isSpanEnded())return this;if(t.length===0)return Wt.warn(`Invalid attribute key: ${t}`),this;if(!UL(n))return Wt.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(n),this)}setAttributes(t){for(const[n,r]of Object.entries(t))this.setAttribute(n,r);return this}addEvent(t,n,r){if(this._isSpanEnded())return this;const{eventCountLimit:i}=this._spanLimits;if(i===0)return Wt.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&Wt.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),E4(n)&&(E4(r)||(r=n),n=void 0);const a=bg(n);return this.events.push({name:t,attributes:a,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(Wt.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wt.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=vSe(this.startTime,this.endTime),this._duration[0]<0&&(Wt.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wt.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Kc.now())return $v(t+this._performanceOffset);if(typeof t=="number")return To(t);if(t instanceof Date)return To(t.getTime());if(bA(t))return t;if(this._startTimeProvided)return To(Date.now());const n=Kc.now()-this._performanceStartTime;return YL(this.startTime,To(n))}isRecording(){return this._ended===!1}recordException(t,n){const r={};typeof t=="string"?r[ww]=t:t&&(t.code?r[xw]=t.code.toString():t.name&&(r[xw]=t.name),t.message&&(r[ww]=t.message),t.stack&&(r[iSe]=t.stack)),r[xw]||r[ww]?this.addEvent(eAe,r,n):Wt.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wt.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,n){return t.length<=n?t:t.substring(0,n)}_truncateToSize(t){const n=this._attributeValueLengthLimit;return n<=0?(Wt.warn(`Attribute value limit must be positive, got ${n}`),t):typeof t=="string"?this._truncateToLimitUtil(t,n):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,n):r):t}}var xl;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(xl||(xl={}));class Fv{shouldSample(){return{decision:xl.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Yc{shouldSample(){return{decision:xl.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class rg{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(mA(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Yc),this._remoteParentSampled=t.remoteParentSampled??new Yc,this._remoteParentNotSampled=t.remoteParentNotSampled??new Fv,this._localParentSampled=t.localParentSampled??new Yc,this._localParentNotSampled=t.localParentNotSampled??new Fv}shouldSample(t,n,r,i,a,o){const s=Lr.getSpanContext(t);return!s||!Mm(s)?this._root.shouldSample(t,n,r,i,a,o):s.isRemote?s.traceFlags&$o.SAMPLED?this._remoteParentSampled.shouldSample(t,n,r,i,a,o):this._remoteParentNotSampled.shouldSample(t,n,r,i,a,o):s.traceFlags&$o.SAMPLED?this._localParentSampled.shouldSample(t,n,r,i,a,o):this._localParentNotSampled.shouldSample(t,n,r,i,a,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class j4{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,n){return{decision:NL(n)&&this._accumulate(n)<this._upperBound?xl.RECORD_AND_SAMPLED:xl.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let n=0;for(let r=0;r<t.length/8;r++){const i=r*8,a=parseInt(t.slice(i,i+8),16);n=(n^a)>>>0}return n}}const M4=1;function i$(){return{sampler:a$(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function a$(){const e="parentbased_always_on";switch(e){case"always_on":return new Yc;case"always_off":return new Fv;case"parentbased_always_on":return new rg({root:new Yc});case"parentbased_always_off":return new rg({root:new Fv});case"traceidratio":return new j4(k4());case"parentbased_traceidratio":return new rg({root:new j4(k4())});default:return Wt.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new rg({root:new Yc})}}function k4(){return Wt.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${M4}.`),M4}const nAe=128,rAe=1/0;function iAe(e){const t={sampler:a$()},n=i$(),r=Object.assign({},n,t,e);return r.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),r}function aAe(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??nAe,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??rAe,Object.assign({},e,{spanLimits:t})}const oAe=8,sAe=16;class uAe{generateTraceId=R4(sAe);generateSpanId=R4(oAe)}const ig=Array(32);function R4(e){return function(){for(let n=0;n<e*2;n++)ig[n]=Math.floor(Math.random()*16)+48,ig[n]>=58&&(ig[n]+=39);return String.fromCharCode.apply(null,ig.slice(0,e*2))}}class cAe{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,n,r,i){const a=iAe(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new uAe,this._resource=r,this._spanProcessor=i,this.instrumentationScope=t}startSpan(t,n={},r=ur.active()){n.root&&(r=Lr.deleteSpan(r));const i=Lr.getSpan(r);if(vA(r))return Wt.debug("Instrumentation suppressed, returning Noop Span"),Lr.wrapSpanContext(IL);const a=i?.spanContext(),o=this._idGenerator.generateSpanId();let s,u,c;!a||!Lr.isSpanContextValid(a)?u=this._idGenerator.generateTraceId():(u=a.traceId,c=a.traceState,s=a);const l=n.kind??Nv.INTERNAL,d=(n.links??[]).map(_=>({context:_.context,attributes:bg(_.attributes)})),h=bg(n.attributes),g=this._sampler.shouldSample(r,u,t,l,h,d);c=g.traceState??c;const m=g.decision===Dv.RECORD_AND_SAMPLED?$o.SAMPLED:$o.NONE,y={traceId:u,spanId:o,traceFlags:m,traceState:c};if(g.decision===Dv.NOT_RECORD)return Wt.debug("Recording is off, propagating context in a non-recording span"),Lr.wrapSpanContext(y);const v=bg(Object.assign(h,g.attributes));return new tAe({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:y,name:t,kind:l,links:d,parentSpanContext:s,attributes:v,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,n,r,i){let a,o,s;if(arguments.length<2)return;arguments.length===2?s=n:arguments.length===3?(a=n,s=r):(a=n,o=r,s=i);const u=o??ur.active(),c=this.startSpan(t,a,u),l=Lr.setSpan(u,c);return ur.with(l,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class lAe{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const n of this._spanProcessors)t.push(n.forceFlush());return new Promise(n=>{Promise.all(t).then(()=>{n()}).catch(r=>{mA(r||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(t,n){for(const r of this._spanProcessors)r.onStart(t,n)}onEnd(t){for(const n of this._spanProcessors)n.onEnd(t)}shutdown(){const t=[];for(const n of this._spanProcessors)t.push(n.shutdown());return new Promise((n,r)=>{Promise.all(t).then(()=>{n()},r)})}}var nu;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(nu||(nu={}));class fAe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const n=HSe({},i$(),aAe(t));this._resource=n.resource??QSe(),this._config=Object.assign({},n,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new lAe(r)}getTracer(t,n,r){const i=`${t}@${n||""}:${r?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new cAe({name:t,version:n,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(i=>{let a;const o=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=nu.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),a!==nu.timeout&&(a=nu.resolved,i(a))}).catch(s=>{clearTimeout(o),a=nu.error,i(s)})}));return new Promise((r,i)=>{Promise.all(n).then(a=>{const o=a.filter(s=>s!==nu.resolved);o.length>0?i(o):r()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class dAe{export(t,n){return this._sendSpans(t,n)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:_4(t.startTime),duration:_4(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,n){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(n)return n({code:la.SUCCESS})}}class I4{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new YSe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,n){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&$o.SAMPLED)===0)return;const n=this._doExport(t).catch(r=>mA(r));this._pendingExports.add(n),n.finally(()=>this._pendingExports.delete(n))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const n=await ZSe._export(this._exporter,[t]);if(n.code!==la.SUCCESS)throw n.error??new Error(`SimpleSpanProcessor: span export failed (status ${n})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class hAe{_enabled=!1;_currentContext=_o;_bindFunction(t=_o,n){const r=this,i=function(...a){return r.with(t,()=>n.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}active(){return this._currentContext}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):n}disable(){return this._currentContext=_o,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=_o,this)}with(t,n,r,...i){const a=this._currentContext;this._currentContext=t||_o;try{return n.call(r,...i)}finally{this._currentContext=a}}}function pAe(e){if(e!==null){if(e===void 0){const t=new hAe;t.enable(),ur.setGlobalContextManager(t);return}e.enable(),ur.setGlobalContextManager(e)}}function gAe(e){if(e!==null){if(e===void 0){Ca.setGlobalPropagator(new mSe({propagators:[new RSe,new YEe]}));return}Ca.setGlobalPropagator(e)}}class vAe extends fAe{constructor(t={}){super(t)}register(t={}){Lr.setGlobalTracerProvider(this),gAe(t.propagator),pAe(t.contextManager)}}var un;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(un||(un={}));const mAe="http.response_content_length",yAe="http.response_content_length_uncompressed";let Ow;function bAe(){return Ow||(Ow=document.createElement("a")),Ow}function wAe(e,t){return t in e}function po(e,t,n,r=!0){if(wAe(n,t)&&typeof n[t]=="number"&&!(r&&n[t]===0))return e.addEvent(t,n[t])}function D4(e,t,n=!1,r,i){if(r===void 0&&(r=t[un.START_TIME]!==0),n||(po(e,un.FETCH_START,t,r),po(e,un.DOMAIN_LOOKUP_START,t,r),po(e,un.DOMAIN_LOOKUP_END,t,r),po(e,un.CONNECT_START,t,r),po(e,un.SECURE_CONNECTION_START,t,r),po(e,un.CONNECT_END,t,r),po(e,un.REQUEST_START,t,r),po(e,un.RESPONSE_START,t,r),po(e,un.RESPONSE_END,t,r)),!i){const a=t[un.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(mAe,a);const o=t[un.DECODED_BODY_SIZE];o!==void 0&&a!==o&&e.setAttribute(yAe,o)}}function xAe(e){return e.slice().sort((t,n)=>{const r=t[un.FETCH_START],i=n[un.FETCH_START];return r>i?1:r<i?-1:0})}function o$(){return typeof location<"u"?location.origin:void 0}function _Ae(e,t,n,r,i=new WeakSet,a){const o=Wv(e);e=o.toString();const s=SAe(e,t,n,r,i,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const u=xAe(s);if(o.origin!==o$()&&u.length>1){let c=u[0],l=EAe(u,c[un.RESPONSE_END],n);const d=c[un.RESPONSE_END];return l[un.FETCH_START]<d&&(l=c,c=void 0),{corsPreFlightRequest:c,mainRequest:l}}else return{mainRequest:s[0]}}function EAe(e,t,n){const r=Po(n),i=Po(fd(t));let a=e[1],o;const s=e.length;for(let u=1;u<s;u++){const c=e[u],l=Po(fd(c[un.FETCH_START])),d=Po(fd(c[un.RESPONSE_END])),h=r-d;l>=i&&(!o||h<o)&&(o=h,a=c)}return a}function SAe(e,t,n,r,i,a){const o=Po(t),s=Po(n);let u=r.filter(c=>{const l=Po(fd(c[un.FETCH_START])),d=Po(fd(c[un.RESPONSE_END]));return c.initiatorType.toLowerCase()===a&&c.name===e&&l>=o&&d<=s});return u.length>0&&(u=u.filter(c=>!i.has(c))),u}function Wv(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=bAe();return t.href=e,t}function AAe(e,t){let n=t||[];return(typeof n=="string"||n instanceof RegExp)&&(n=[n]),Wv(e).origin===o$()?!0:n.some(i=>n$(e,i))}class OAe{_delegate;constructor(t){this._delegate=t}export(t,n){this._delegate.export(t,n)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class N4 extends Error{code;name="OTLPExporterError";data;constructor(t,n,r){super(t),this.data=r,this.code=n}}function TAe(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function PAe(e){if(e!=null)return()=>e}function CAe(e,t,n){return{timeoutMillis:TAe(e.timeoutMillis??t.timeoutMillis??n.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??n.concurrencyLimit,compression:e.compression??t.compression??n.compression}}function jAe(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class MAe{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const n=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(n,n)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function kAe(e){return new MAe(e.concurrencyLimit)}function RAe(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function IAe(){return{handleResponse(e){e==null||!RAe(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wt.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class DAe{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,n,r,i,a){this._transport=t,this._serializer=n,this._responseHandler=r,this._promiseQueue=i,this._timeout=a,this._diagLogger=Wt.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,n){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){n({code:la.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){n({code:la.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(i=>{if(i.status==="success"){if(i.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(i.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,i.data)}n({code:la.SUCCESS});return}else if(i.status==="failure"&&i.error){n({code:la.FAILED,error:i.error});return}else i.status==="retryable"?n({code:la.FAILED,error:new N4("Export failed with retryable status")}):n({code:la.FAILED,error:new N4("Export failed with unknown error")})},i=>n({code:la.FAILED,error:i})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function NAe(e,t){return new DAe(e.transport,e.serializer,IAe(),e.promiseHandler,t.timeout)}function s$(e,t,n){return NAe({transport:n,serializer:t,promiseHandler:kAe(e)},{timeout:e.timeoutMillis})}function L4(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function u$(e){const t=new Uint8Array(e.length/2);let n=0;for(let r=0;r<e.length;r+=2){const i=L4(e.charCodeAt(r)),a=L4(e.charCodeAt(r+1));t[n++]=i<<4|a}return t}function c$(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function LAe(e){const t=Number(BigInt.asUintN(32,e)),n=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:n}}function $Ae(e){const t=c$(e);return LAe(t)}function BAe(e){return c$(e).toString()}const zAe=typeof BigInt<"u"?BAe:Po;function $4(e){return e}function FAe(e){if(e!==void 0)return u$(e)}const WAe={encodeHrTime:$Ae,encodeSpanContext:u$,encodeOptionalSpanContext:FAe};function qAe(e){return e===void 0?WAe:{encodeHrTime:zAe,encodeSpanContext:$4,encodeOptionalSpanContext:$4}}function VAe(e){return{attributes:km(e.attributes),droppedAttributesCount:0}}function HAe(e){return{name:e.name,version:e.version}}function km(e){return Object.keys(e).map(t=>l$(t,e[t]))}function l$(e,t){return{key:e,value:f$(t)}}function f$(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(f$)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([n,r])=>l$(n,r))}}:{}}function UAe(e,t){const n=e.spanContext(),r=e.status,i=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(n.traceId),spanId:t.encodeSpanContext(n.spanId),parentSpanId:i,traceState:n.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:km(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>KAe(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(a=>GAe(a,t)),droppedLinksCount:e.droppedLinksCount}}function GAe(e,t){return{attributes:e.attributes?km(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function KAe(e,t){return{attributes:e.attributes?km(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function YAe(e,t){const n=qAe(t);return{resourceSpans:ZAe(e,n)}}function XAe(e){const t=new Map;for(const n of e){let r=t.get(n.resource);r||(r=new Map,t.set(n.resource,r));const i=`${n.instrumentationScope.name}@${n.instrumentationScope.version||""}:${n.instrumentationScope.schemaUrl||""}`;let a=r.get(i);a||(a=[],r.set(i,a)),a.push(n)}return t}function ZAe(e,t){const n=XAe(e),r=[],i=n.entries();let a=i.next();for(;!a.done;){const[o,s]=a.value,u=[],c=s.values();let l=c.next();for(;!l.done;){const h=l.value;if(h.length>0){const g=h.map(m=>UAe(m,t));u.push({scope:HAe(h[0].instrumentationScope),spans:g,schemaUrl:h[0].instrumentationScope.schemaUrl})}l=c.next()}const d={resource:VAe(o),scopeSpans:u,schemaUrl:void 0};r.push(d),a=i.next()}return r}const JAe={serializeRequest:e=>{const t=YAe(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},QAe=5,e3e=1e3,t3e=5e3,n3e=1.5,B4=.2;function r3e(){return Math.random()*(2*B4)-B4}class i3e{_transport;constructor(t){this._transport=t}retry(t,n,r){return new Promise((i,a)=>{setTimeout(()=>{this._transport.send(t,n).then(i,a)},r)})}async send(t,n){const r=Date.now()+n;let i=await this._transport.send(t,n),a=QAe,o=e3e;for(;i.status==="retryable"&&a>0;){a--;const s=Math.max(Math.min(o,t3e)+r3e(),0);o=o*n3e;const u=i.retryInMillis??s,c=r-Date.now();if(u>c)return i;i=await this.retry(t,c,u)}return i}shutdown(){return this._transport.shutdown()}}function d$(e){return new i3e(e.transport)}function a3e(e){return[429,502,503,504].includes(e)}function o3e(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const n=new Date(e).getTime()-Date.now();return n>=0?n:0}class s3e{_parameters;constructor(t){this._parameters=t}send(t,n){return new Promise(r=>{const i=new XMLHttpRequest;i.timeout=n,i.open("POST",this._parameters.url);const a=this._parameters.headers();Object.entries(a).forEach(([o,s])=>{i.setRequestHeader(o,s)}),i.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},i.onreadystatechange=()=>{i.status>=200&&i.status<=299?(Wt.debug("XHR success"),r({status:"success"})):i.status&&a3e(i.status)?r({status:"retryable",retryInMillis:o3e(i.getResponseHeader("Retry-After"))}):i.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},i.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},i.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},i.send(t)})}shutdown(){}}function u3e(e){return new s3e(e)}class c3e{_params;constructor(t){this._params=t}send(t){return new Promise(n=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(Wt.debug("SendBeacon success"),n({status:"success"})):n({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function l3e(e){return new c3e(e)}function f3e(e,t){return s$(e,t,d$({transport:u3e(e)}))}function d3e(e,t){return s$(e,t,d$({transport:l3e({url:e.url,blobType:e.headers()["Content-Type"]})}))}function h3e(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([n,r])=>{typeof r<"u"?t[n]=String(r):Wt.warn(`Header "${n}" has invalid value (${r}) and will be ignored`)}),t}}function p3e(e,t,n){const r={...n()},i={};return()=>(t!=null&&Object.assign(i,t()),e!=null&&Object.assign(i,e()),Object.assign(i,r))}function g3e(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function v3e(e,t,n){return{...CAe(e,t,n),headers:p3e(h3e(e.headers),t.headers,n.headers),url:g3e(e.url)??t.url??n.url,agentOptions:e.agentOptions??t.agentOptions??n.agentOptions}}function m3e(e,t){return{...jAe(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function y3e(e,t,n){return v3e({url:e.url,timeoutMillis:e.timeoutMillis,headers:PAe(e.headers),concurrencyLimit:e.concurrencyLimit},{},m3e(n,t))}function b3e(e,t,n,r){const i=!!e.headers||typeof navigator.sendBeacon!="function",a=y3e(e,n,r);return i?f3e(a,t):d3e(a,t)}class w3e extends OAe{constructor(t={}){super(b3e(t,JAe,"v1/traces",{"Content-Type":"application/json"}))}}class h${emit(t){}}const x3e=new h$;class _3e{getLogger(t,n,r){return new h$}}const p$=new _3e;class E3e{constructor(t,n,r,i){this._provider=t,this.name=n,this.version=r,this.options=i}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):x3e}}class z4{getLogger(t,n,r){var i;return(i=this.getDelegateLogger(t,n,r))!==null&&i!==void 0?i:new E3e(this,t,n,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:p$}setDelegate(t){this._delegate=t}getDelegateLogger(t,n,r){var i;return(i=this._delegate)===null||i===void 0?void 0:i.getLogger(t,n,r)}}const S3e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},ag=Symbol.for("io.opentelemetry.js.api.logs"),If=S3e;function A3e(e,t,n){return r=>r===e?t:n}const F4=1;class xA{constructor(){this._proxyLoggerProvider=new z4}static getInstance(){return this._instance||(this._instance=new xA),this._instance}setGlobalLoggerProvider(t){return If[ag]?this.getLoggerProvider():(If[ag]=A3e(F4,t,p$),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,n;return(n=(t=If[ag])===null||t===void 0?void 0:t.call(If,F4))!==null&&n!==void 0?n:this._proxyLoggerProvider}getLogger(t,n,r){return this.getLoggerProvider().getLogger(t,n,r)}disable(){delete If[ag],this._proxyLoggerProvider=new z4}}const g$=xA.getInstance();function O3e(e,t,n,r){for(let i=0,a=e.length;i<a;i++){const o=e[i];t&&o.setTracerProvider(t),n&&o.setMeterProvider(n),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function T3e(e){e.forEach(t=>t.disable())}function P3e(e){const t=e.tracerProvider||Lr.getTracerProvider(),n=e.meterProvider||$L.getMeterProvider(),r=e.loggerProvider||g$.getLoggerProvider(),i=e.instrumentations?.flat()??[];return O3e(i,t,n,r),()=>{T3e(i)}}let Ti=console.error.bind(console);function Df(e,t,n){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}const v$=(e,t,n)=>{if(!e||!e[t]){Ti("no original function "+String(t)+" to wrap");return}if(!n){Ti("no wrapper function"),Ti(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof n!="function"){Ti("original object and wrapper must be functions");return}const i=n(r,t);return Df(i,"__original",r),Df(i,"__unwrap",()=>{e[t]===i&&Df(e,t,r)}),Df(i,"__wrapped",!0),Df(e,t,i),i},C3e=(e,t,n)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(i=>{v$(r,i,n)})})},m$=(e,t)=>{if(!e||!e[t]){Ti("no function to unwrap."),Ti(new Error().stack);return}const n=e[t];if(!n.__unwrap)Ti("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{n.__unwrap();return}},j3e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{Ti("must provide one or more modules to patch"),Ti(new Error().stack);return}if(!(t&&Array.isArray(t))){Ti("must provide one or more functions to unwrap on modules");return}e.forEach(n=>{t.forEach(r=>{m$(n,r)})})};class M3e{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,n,r){this.instrumentationName=t,this.instrumentationVersion=n,this.setConfig(r),this._diag=Wt.createComponentLogger({namespace:t}),this._tracer=Lr.getTracer(t,n),this._meter=$L.getMeter(t,n),this._logger=g$.getLogger(t,n),this._updateMetricInstruments()}_wrap=v$;_unwrap=m$;_massWrap=C3e;_massUnwrap=j3e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,n,r,i){if(t)try{t(r,i)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:n},a)}}}class k3e extends M3e{constructor(t,n,r){super(t,n,r),this._config.enabled&&this.enable()}}function W4(e,t,n){let r,i;try{i=e()}catch(a){r=a}finally{return t(r,i),i}}function R3e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var ri;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(ri||(ri={}));function I3e(e,t){let n=ri.OLD;const r=t?.split(",").map(i=>i.trim()).filter(i=>i!=="");for(const i of r??[])if(i.toLowerCase()===e+"/dup"){n=ri.DUPLICATE;break}else i.toLowerCase()===e&&(n=ri.STABLE);return n}var qv;(function(e){e.COMPONENT="component",e.HTTP_STATUS_TEXT="http.status_text"})(qv||(qv={}));var jn={},q4;function D3e(){return q4||(q4=1,Object.defineProperty(jn,"__esModule",{value:!0}),jn.ATTR_HTTP_USER_AGENT=jn.ATTR_HTTP_URL=jn.ATTR_HTTP_STATUS_CODE=jn.ATTR_HTTP_SCHEME=jn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH=jn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=jn.ATTR_HTTP_REQUEST_BODY_SIZE=jn.ATTR_HTTP_METHOD=jn.ATTR_HTTP_HOST=void 0,jn.ATTR_HTTP_HOST="http.host",jn.ATTR_HTTP_METHOD="http.method",jn.ATTR_HTTP_REQUEST_BODY_SIZE="http.request.body.size",jn.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED="http.request_content_length_uncompressed",jn.ATTR_HTTP_RESPONSE_CONTENT_LENGTH="http.response_content_length",jn.ATTR_HTTP_SCHEME="http.scheme",jn.ATTR_HTTP_STATUS_CODE="http.status_code",jn.ATTR_HTTP_URL="http.url",jn.ATTR_HTTP_USER_AGENT="http.user_agent"),jn}var ss=D3e();const y$=Wt.createComponentLogger({namespace:"@opentelemetry/opentelemetry-instrumentation-fetch/utils"});function N3e(...e){if(e[0]instanceof URL||typeof e[0]=="string"){const t=e[1];if(!t?.body)return Promise.resolve();if(t.body instanceof ReadableStream){const{body:n,length:r}=L3e(t.body);return t.body=n,r}else return Promise.resolve(B3e(t.body))}else{const t=e[0];return t?.body?t.clone().text().then(n=>j_(n)):Promise.resolve()}}function L3e(e){if(!e.pipeThrough)return y$.warn("Platform has ReadableStream but not pipeThrough!"),{body:e,length:Promise.resolve(void 0)};let t=0,n;const r=new Promise(a=>{n=a}),i=new TransformStream({start(){},async transform(a,o){const s=await a;t+=s.byteLength,o.enqueue(a)},flush(){n(t)}});return{body:e.pipeThrough(i),length:r}}function $3e(e){return typeof Document<"u"&&e instanceof Document}function B3e(e){if($3e(e))return new XMLSerializer().serializeToString(document).length;if(typeof e=="string")return j_(e);if(e instanceof Blob)return e.size;if(e instanceof FormData)return F3e(e);if(e instanceof URLSearchParams)return j_(e.toString());if(e.byteLength!==void 0)return e.byteLength;y$.warn("unknown body type")}const z3e=new TextEncoder;function j_(e){return z3e.encode(e).byteLength}function F3e(e){let t=0;for(const[n,r]of e.entries())t+=n.length,r instanceof Blob?t+=r.size:t+=r.length;return t}function W3e(e){const t=V3e(),n=e.toUpperCase();return n in t?n:"_OTHER"}const q3e={CONNECT:!0,DELETE:!0,GET:!0,HEAD:!0,OPTIONS:!0,PATCH:!0,POST:!0,PUT:!0,TRACE:!0};let Tw;function V3e(){return Tw===void 0&&(Tw=q3e),Tw}const H3e={"https:":"443","http:":"80"};function U3e(e){const t=Number(e.port||H3e[e.protocol]);if(t&&!isNaN(t))return t}const V4="0.203.0",G3e=300,H4=typeof process=="object"&&process.release?.name==="node";class K3e extends k3e{component="fetch";version=V4;moduleName=this.component;_usedResources=new WeakSet;_tasksCount=0;_semconvStability;constructor(t={}){super("@opentelemetry/instrumentation-fetch",V4,t),this._semconvStability=I3e("http",t?.semconvStabilityOptIn)}init(){}_addChildSpan(t,n){const r=this.tracer.startSpan("CORS Preflight",{startTime:n[un.FETCH_START]},Lr.setSpan(ur.active(),t)),i=!(this._semconvStability&ri.OLD);D4(r,n,this.getConfig().ignoreNetworkEvents,void 0,i),r.end(n[un.RESPONSE_END])}_addFinalSpanAttributes(t,n){const r=Wv(n.url);if(this._semconvStability&ri.OLD&&(t.setAttribute(ss.ATTR_HTTP_STATUS_CODE,n.status),n.statusText!=null&&t.setAttribute(qv.HTTP_STATUS_TEXT,n.statusText),t.setAttribute(ss.ATTR_HTTP_HOST,r.host),t.setAttribute(ss.ATTR_HTTP_SCHEME,r.protocol.replace(":","")),typeof navigator<"u"&&t.setAttribute(ss.ATTR_HTTP_USER_AGENT,navigator.userAgent)),this._semconvStability&ri.STABLE){t.setAttribute(sSe,n.status),t.setAttribute(uSe,r.hostname);const i=U3e(r);i&&t.setAttribute(cSe,i)}}_addHeaders(t,n){if(!AAe(n,this.getConfig().propagateTraceHeaderCorsUrls)){const r={};Ca.inject(ur.active(),r),Object.keys(r).length>0&&this._diag.debug("headers inject skipped due to CORS policy");return}if(t instanceof Request)Ca.inject(ur.active(),t.headers,{set:(r,i,a)=>r.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Headers)Ca.inject(ur.active(),t.headers,{set:(r,i,a)=>r.set(i,typeof a=="string"?a:String(a))});else if(t.headers instanceof Map)Ca.inject(ur.active(),t.headers,{set:(r,i,a)=>r.set(i,typeof a=="string"?a:String(a))});else{const r={};Ca.inject(ur.active(),r),t.headers=Object.assign({},r,t.headers||{})}}_clearResources(){this._tasksCount===0&&this.getConfig().clearTimingResources&&(performance.clearResourceTimings(),this._usedResources=new WeakSet)}_createSpan(t,n={}){if(GSe(t,this.getConfig().ignoreUrls)){this._diag.debug("ignoring span as url matches ignored url");return}let r="";const i={};if(this._semconvStability&ri.OLD){const a=(n.method||"GET").toUpperCase();r=`HTTP ${a}`,i[qv.COMPONENT]=this.moduleName,i[ss.ATTR_HTTP_METHOD]=a,i[ss.ATTR_HTTP_URL]=t}if(this._semconvStability&ri.STABLE){const a=n.method,o=W3e(n.method||"GET");r||(r=o),i[aSe]=o,o!==a&&(i[oSe]=a),i[fSe]=t}return this.tracer.startSpan(r,{kind:Nv.CLIENT,attributes:i})}_findResourceAndAddNetworkEvents(t,n,r){let i=n.entries;if(!i.length){if(!performance.getEntriesByType)return;i=performance.getEntriesByType("resource")}const a=_Ae(n.spanUrl,n.startTime,r,i,this._usedResources,"fetch");if(a.mainRequest){const o=a.mainRequest;this._markResourceAsUsed(o);const s=a.corsPreFlightRequest;s&&(this._addChildSpan(t,s),this._markResourceAsUsed(s));const u=!(this._semconvStability&ri.OLD);D4(t,o,this.getConfig().ignoreNetworkEvents,void 0,u)}}_markResourceAsUsed(t){this._usedResources.add(t)}_endSpan(t,n,r){const i=To(Date.now()),a=$v();this._addFinalSpanAttributes(t,r),this._semconvStability&ri.STABLE&&r.status>=400&&(t.setStatus({code:bu.ERROR}),t.setAttribute(rSe,String(r.status))),setTimeout(()=>{n.observer?.disconnect(),this._findResourceAndAddNetworkEvents(t,n,a),this._tasksCount--,this._clearResources(),t.end(i)},G3e)}_patchConstructor(){return t=>{const n=this;return function(...i){const a=this,o=Wv(i[0]instanceof Request?i[0].url:String(i[0])).href,s=i[0]instanceof Request?i[0]:i[1]||{},u=n._createSpan(o,s);if(!u)return t.apply(this,i);const c=n._prepareSpanData(o);n.getConfig().measureRequestSize&&N3e(...i).then(m=>{m&&(n._semconvStability&ri.OLD&&u.setAttribute(ss.ATTR_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,m),n._semconvStability&ri.STABLE&&u.setAttribute(ss.ATTR_HTTP_REQUEST_BODY_SIZE,m))}).catch(m=>{n._diag.warn("getFetchBodyLength",m)});function l(m,y){n._applyAttributesAfterFetch(m,s,y),n._endSpan(m,c,{status:y.status||0,statusText:y.message,url:o})}function d(m,y){n._applyAttributesAfterFetch(m,s,y),y.status>=200&&y.status<400?n._endSpan(m,c,y):n._endSpan(m,c,{status:y.status,statusText:y.statusText,url:o})}function h(m,y,v){try{const _=v.clone().body;if(_){const E=_.getReader(),S=()=>{E.read().then(({done:A})=>{A?d(m,v):S()},A=>{l(m,A)})};S()}else d(m,v)}finally{y(v)}}function g(m,y,v){try{l(m,v)}finally{y(v)}}return new Promise((m,y)=>ur.with(Lr.setSpan(ur.active(),u),()=>(n._addHeaders(s,o),n._callRequestHook(u,s),n._tasksCount++,t.apply(a,s instanceof Request?[s]:[o,s]).then(h.bind(a,u,m),g.bind(a,u,y)))))}}}_applyAttributesAfterFetch(t,n,r){const i=this.getConfig().applyCustomAttributesOnSpan;i&&W4(()=>i(t,n,r),a=>{a&&this._diag.error("applyCustomAttributesOnSpan",a)})}_callRequestHook(t,n){const r=this.getConfig().requestHook;r&&W4(()=>r(t,n),i=>{i&&this._diag.error("requestHook",i)})}_prepareSpanData(t){const n=$v(),r=[];if(typeof PerformanceObserver!="function")return{entries:r,startTime:n,spanUrl:t};const i=new PerformanceObserver(a=>{a.getEntries().forEach(s=>{s.initiatorType==="fetch"&&s.name===t&&r.push(s)})});return i.observe({entryTypes:["resource"]}),{entries:r,observer:i,startTime:n,spanUrl:t}}enable(){if(H4){this._diag.warn("this instrumentation is intended for web usage only, it does not instrument Node.js's fetch()");return}R3e(fetch)&&(this._unwrap(bw,"fetch"),this._diag.debug("removing previous patch for constructor")),this._wrap(bw,"fetch",this._patchConstructor())}disable(){H4||(this._unwrap(bw,"fetch"),this._usedResources=new WeakSet)}}function Y3e(e){return typeof e=="object"&&e!==null&&"addEventListener"in e&&typeof e.addEventListener=="function"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"}const U4="OT_ZONE_CONTEXT";class X3e{_enabled=!1;_zoneCounter=0;_activeContextFromZone(t){return t&&t.get(U4)||_o}_bindFunction(t,n){const r=this,i=function(...a){return r.with(t,()=>n.apply(this,a))};return Object.defineProperty(i,"length",{enumerable:!1,configurable:!0,writable:!1,value:n.length}),i}_bindListener(t,n){const r=n;return r.__ot_listeners!==void 0||(r.__ot_listeners={},typeof r.addEventListener=="function"&&(r.addEventListener=this._patchAddEventListener(r,r.addEventListener,t)),typeof r.removeEventListener=="function"&&(r.removeEventListener=this._patchRemoveEventListener(r,r.removeEventListener))),n}_createZoneName(){this._zoneCounter++;const t=Math.random();return`${this._zoneCounter}-${t}`}_createZone(t,n){return Zone.current.fork({name:t,properties:{[U4]:n}})}_getActiveZone(){return Zone.current}_patchAddEventListener(t,n,r){const i=this;return function(a,o,s){t.__ot_listeners===void 0&&(t.__ot_listeners={});let u=t.__ot_listeners[a];u===void 0&&(u=new WeakMap,t.__ot_listeners[a]=u);const c=i.bind(r,o);return u.set(o,c),n.call(this,a,c,s)}}_patchRemoveEventListener(t,n){return function(r,i){if(t.__ot_listeners===void 0||t.__ot_listeners[r]===void 0)return n.call(this,r,i);const a=t.__ot_listeners[r],o=a.get(i);return a.delete(i),n.call(this,r,o||i)}}active(){if(!this._enabled)return _o;const t=this._getActiveZone(),n=this._activeContextFromZone(t);return n||_o}bind(t,n){return t===void 0&&(t=this.active()),typeof n=="function"?this._bindFunction(t,n):(Y3e(n)&&this._bindListener(t,n),n)}disable(){return this._enabled=!1,this}enable(){return this._enabled=!0,this}with(t,n,r,...i){const a=this._createZoneName();return this._createZone(a,t).run(n,r,i)}}var G4={},K4;function Z3e(){if(K4)return G4;K4=1;/**
187
187
  * @license Angular v<unknown>
188
188
  * (c) 2010-2025 Google LLC. https://angular.io/
189
189
  * License: MIT