react-luminus-components 2.0.28 → 2.0.30
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/README.md +349 -349
- package/dist/.vite/manifest.json +44 -44
- package/dist/{FormDisabledProvider-v_f72bx-.js → FormDisabledProvider-BdVAJaqG.js} +5 -5
- package/dist/FormDisabledProvider-DyO7R2kE.cjs +1 -0
- package/dist/contexts/apiWebSocket/ApiWebSocketContext.d.ts +10 -0
- package/dist/contexts/apiWebSocket/ApiWebSocketProvider.d.ts +9 -0
- package/dist/contexts/apiWebSocket/useApiWebSocket.d.ts +2 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +1418 -517
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useIsBrowserOnline/useIsBrowserOnline.d.ts +2 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +159 -150
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +208 -214
- package/dist/{localStorageUtils-CZ4HDRzi.js → localStorageUtils-D2opn367.js} +2 -2
- package/dist/main.cjs.js +15 -15
- package/dist/main.es.js +12444 -12445
- package/dist/{ShortcutLinksContext-Bzk6zb9Z.js → nivo-bar-BsmDtzXw.js} +25782 -24835
- package/dist/nivo-bar-CdrSgzV1.cjs +285 -0
- package/dist/style.css +1 -1
- package/dist/useIsFormDirty-CzwHpad1.cjs +1 -0
- package/dist/{useIsFormDirty-Cp4xs1BK.js → useIsFormDirty-Pdd8CdTQ.js} +5 -5
- package/dist/{useLocalStorageState-DgJ_e5P1.js → useLocalStorageState-Byzo2ssr.js} +30 -30
- package/dist/useLocalStorageState-CbsbIUSp.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +26 -26
- package/dist/variables.scss +165 -165
- package/package.json +128 -127
- package/dist/FormDisabledProvider-DkShe5lG.cjs +0 -1
- package/dist/ShortcutLinksContext-D4CGbP2q.cjs +0 -285
- package/dist/useIsFormDirty-DjNkWEmd.cjs +0 -1
- package/dist/useLocalStorageState-BOKWHt5u.cjs +0 -1
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";const y=require("react/jsx-runtime"),v=require("react"),wT=require("@azure/msal-browser"),us=require("react-router"),d1=require("@azure/msal-react"),Un=require("react-dom"),sn=require("react-hook-form");require("react-flexmonster");function _T(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 fe=_T(v);var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vp={exports:{}},Dh={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-compiler-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var f1;function CT(){if(f1)return Dh;f1=1;var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Dh.c=function(t){return e.H.useMemoCache(t)},Dh}var Ih={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-compiler-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var h1;function ST(){return h1||(h1=1,process.env.NODE_ENV!=="production"&&function(){var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Ih.c=function(t){var n=e.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
18
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
19
|
+
2. You might be breaking the Rules of Hooks
|
|
20
|
+
3. You might have more than one copy of React in the same app
|
|
21
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(t)}}()),Ih}process.env.NODE_ENV==="production"?Vp.exports=CT():Vp.exports=ST();var je=Vp.exports,Jx={exports:{}};/*!
|
|
22
|
+
Copyright (c) 2018 Jed Watson.
|
|
23
|
+
Licensed under the MIT License (MIT), see
|
|
24
|
+
http://jedwatson.github.io/classnames
|
|
25
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Jx);var TT=Jx.exports;const se=nn(TT);function Ln(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function bi(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function Qx(e,t){const n=+Ln(e);return bi(e,n+t)}const $T=365.2425,bg=6048e5,kT=864e5,yg=6e4,Rd=36e5,ew=3600,MT=60,xg=ew*24,ET=xg*7,tw=xg*$T,nw=tw/12,OT=nw*3;function rw(e,t){return Qx(e,t*Rd)}let AT={};function Dd(){return AT}function Ua(e,t){var s,l,c,u;const n=Dd(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=Ln(e),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Iu(e){return Ua(e,{weekStartsOn:1})}function iw(e){const t=Ln(e),n=t.getFullYear(),r=bi(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Iu(r),o=bi(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const a=Iu(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function qp(e){const t=Ln(e);return t.setHours(0,0,0,0),t}function Yp(e){const t=Ln(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ow(e,t){const n=qp(e),r=qp(t),i=+n-Yp(n),o=+r-Yp(r);return Math.round((i-o)/kT)}function RT(e){const t=iw(e),n=bi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Iu(n)}function DT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function IT(e){if(!DT(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function jT(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function PT(e){const t=Ln(e),n=bi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const NT={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},LT=(e,t,n)=>{let r;const i=NT[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function jh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const FT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},BT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},WT={date:jh({formats:FT,defaultWidth:"full"}),time:jh({formats:BT,defaultWidth:"full"}),dateTime:jh({formats:zT,defaultWidth:"full"})},UT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},HT=(e,t,n,r)=>UT[e];function Ns(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const VT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},YT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},GT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ZT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},XT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},KT=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},JT={ordinalNumber:KT,era:Ns({values:VT,defaultWidth:"wide"}),quarter:Ns({values:qT,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ns({values:YT,defaultWidth:"wide"}),day:Ns({values:GT,defaultWidth:"wide"}),dayPeriod:Ns({values:ZT,defaultWidth:"wide",formattingValues:XT,defaultFormattingWidth:"wide"})};function Ls(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?e$(s,d=>d.test(a)):QT(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function QT(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function e$(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function t$(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const n$=/^(\d+)(th|st|nd|rd)?/i,r$=/\d+/i,i$={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},o$={any:[/^b/i,/^(a|c)/i]},a$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},s$={any:[/1/i,/2/i,/3/i,/4/i]},l$={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},c$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},u$={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},d$={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},f$={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},h$={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p$={ordinalNumber:t$({matchPattern:n$,parsePattern:r$,valueCallback:e=>parseInt(e,10)}),era:Ls({matchPatterns:i$,defaultMatchWidth:"wide",parsePatterns:o$,defaultParseWidth:"any"}),quarter:Ls({matchPatterns:a$,defaultMatchWidth:"wide",parsePatterns:s$,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ls({matchPatterns:l$,defaultMatchWidth:"wide",parsePatterns:c$,defaultParseWidth:"any"}),day:Ls({matchPatterns:u$,defaultMatchWidth:"wide",parsePatterns:d$,defaultParseWidth:"any"}),dayPeriod:Ls({matchPatterns:f$,defaultMatchWidth:"any",parsePatterns:h$,defaultParseWidth:"any"})},m$={code:"en-US",formatDistance:LT,formatLong:WT,formatRelative:HT,localize:JT,match:p$,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g$(e){const t=Ln(e);return ow(t,PT(t))+1}function v$(e){const t=Ln(e),n=+Iu(t)-+RT(t);return Math.round(n/bg)+1}function aw(e,t){var u,d,f,h;const n=Ln(e),r=n.getFullYear(),i=Dd(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=bi(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ua(a,t),l=bi(e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Ua(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function b$(e,t){var s,l,c,u;const n=Dd(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,i=aw(e,t),o=bi(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ua(o,t)}function y$(e,t){const n=Ln(e),r=+Ua(n,t)-+b$(n,t);return Math.round(r/bg)+1}function Nt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ai={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Nt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Nt(n+1,2)},d(e,t){return Nt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Nt(e.getHours()%12||12,t.length)},H(e,t){return Nt(e.getHours(),t.length)},m(e,t){return Nt(e.getMinutes(),t.length)},s(e,t){return Nt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Nt(i,t.length)}},ha={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},p1={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ai.y(e,t)},Y:function(e,t,n,r){const i=aw(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Nt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Nt(o,t.length)},R:function(e,t){const n=iw(e);return Nt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Nt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Nt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Nt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ai.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Nt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=y$(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Nt(i,t.length)},I:function(e,t,n){const r=v$(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Nt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ai.d(e,t)},D:function(e,t,n){const r=g$(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Nt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Nt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Nt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Nt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ha.noon:r===0?i=ha.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ha.evening:r>=12?i=ha.afternoon:r>=4?i=ha.morning:i=ha.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ai.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ai.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Nt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Nt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ai.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ai.s(e,t)},S:function(e,t){return Ai.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return g1(r);case"XXXX":case"XX":return yo(r);case"XXXXX":case"XXX":default:return yo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return g1(r);case"xxxx":case"xx":return yo(r);case"xxxxx":case"xxx":default:return yo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m1(r,":");case"OOOO":default:return"GMT"+yo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m1(r,":");case"zzzz":default:return"GMT"+yo(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Nt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Nt(r,t.length)}};function m1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Nt(o,2)}function g1(e,t){return e%60===0?(e>0?"-":"+")+Nt(Math.abs(e)/60,2):yo(e,t)}function yo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Nt(Math.trunc(r/60),2),o=Nt(r%60,2);return n+i+t+o}const v1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},sw=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},x$=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return v1(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",v1(r,t)).replace("{{time}}",sw(i,t))},w$={p:sw,P:x$},_$=/^D+$/,C$=/^Y+$/,S$=["D","DD","YY","YYYY"];function T$(e){return _$.test(e)}function $$(e){return C$.test(e)}function k$(e,t,n){const r=M$(e,t,n);if(console.warn(r),S$.includes(e))throw new RangeError(r)}function M$(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const E$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A$=/^'([^]*?)'?$/,R$=/''/g,D$=/[a-zA-Z]/;function wg(e,t,n){var u,d,f,h,p,m,g,x;const r=Dd(),i=(n==null?void 0:n.locale)??r.locale??m$,o=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((m=(p=n==null?void 0:n.locale)==null?void 0:p.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,s=Ln(e);if(!IT(s))throw new RangeError("Invalid time value");let l=t.match(O$).map(_=>{const w=_[0];if(w==="p"||w==="P"){const C=w$[w];return C(_,i.formatLong)}return _}).join("").match(E$).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:I$(_)};if(p1[w])return{isToken:!0,value:_};if(w.match(D$))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&$$(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&T$(w))&&k$(w,t,String(e));const C=p1[w[0]];return C(s,w,i.localize,c)}).join("")}function I$(e){const t=e.match(A$);return t?t[1].replace(R$,"'"):e}function lw(e){return+Ln(e)<Date.now()}function uc(e,t){const r=L$(e);let i;if(r.date){const l=F$(r.date,2);i=B$(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const o=i.getTime();let a=0,s;if(r.time&&(a=z$(r.time),isNaN(a)))return new Date(NaN);if(r.timezone){if(s=W$(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(o+a),c=new Date(0);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return new Date(o+a+s)}const Yc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},j$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,P$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,N$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function L$(e){const t={},n=e.split(Yc.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Yc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Yc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Yc.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function F$(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function B$(e,t){if(t===null)return new Date(NaN);const n=e.match(j$);if(!n)return new Date(NaN);const r=!!n[4],i=Fs(n[1]),o=Fs(n[2])-1,a=Fs(n[3]),s=Fs(n[4]),l=Fs(n[5])-1;if(r)return Y$(t,s,l)?U$(t,s,l):new Date(NaN);{const c=new Date(0);return!V$(t,o,a)||!q$(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function Fs(e){return e?parseInt(e):1}function z$(e){const t=e.match(P$);if(!t)return NaN;const n=Ph(t[1]),r=Ph(t[2]),i=Ph(t[3]);return G$(n,r,i)?n*Rd+r*yg+i*1e3:NaN}function Ph(e){return e&&parseFloat(e.replace(",","."))||0}function W$(e){if(e==="Z")return 0;const t=e.match(N$);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Z$(r,i)?n*(r*Rd+i*yg):NaN}function U$(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const H$=[31,null,31,30,31,30,31,31,30,31,30,31];function cw(e){return e%400===0||e%4===0&&e%100!==0}function V$(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(H$[t]||(cw(e)?29:28))}function q$(e,t){return t>=1&&t<=(cw(e)?366:365)}function Y$(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function G$(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Z$(e,t){return t>=0&&t<=59}function Gp(){return Gp=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},Gp.apply(null,arguments)}function uw(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 X$=function(e,t,n,r,i,o,a,s){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},K$=X$;const b1=nn(K$);function y1(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function J$(e){var t=Q$(e,"string");return typeof t=="symbol"?t:String(t)}function Q$(e,t){if(typeof e!="object"||e===null)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 String(e)}function dw(e,t,n){var r=v.useRef(e!==void 0),i=v.useState(t),o=i[0],a=i[1],s=e!==void 0,l=r.current;return r.current=s,!s&&l&&o!==t&&a(t),[s?e:o,v.useCallback(function(c){for(var u=arguments.length,d=new Array(u>1?u-1:0),f=1;f<u;f++)d[f-1]=arguments[f];n&&n.apply(void 0,[c].concat(d)),a(c)},[n])]}function _g(e,t){return Object.keys(t).reduce(function(n,r){var i,o=n,a=o[y1(r)],s=o[r],l=uw(o,[y1(r),r].map(J$)),c=t[r],u=dw(s,a,e[c]),d=u[0],f=u[1];return Gp({},l,(i={},i[r]=d,i[c]=f,i))},e)}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Zp(e,t)}function ek(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zp(e,t)}const tk=["xxl","xl","lg","md","sm","xs"],nk="xs",dc=fe.createContext({prefixes:{},breakpoints:tk,minBreakpoint:nk}),{Consumer:Whe,Provider:Uhe}=dc;function gt(e,t){const{prefixes:n}=v.useContext(dc);return e||n[t]||t}function fw(){const{breakpoints:e}=v.useContext(dc);return e}function hw(){const{minBreakpoint:e}=v.useContext(dc);return e}function Id(){const{dir:e}=v.useContext(dc);return e==="rtl"}function ds(e){return e&&e.ownerDocument||document}function rk(e){var t=ds(e);return t&&t.defaultView||window}function ik(e,t){return rk(e).getComputedStyle(e,t)}var ok=/([A-Z])/g;function ak(e){return e.replace(ok,"-$1").toLowerCase()}var sk=/^ms-/;function Gc(e){return ak(e).replace(sk,"-ms-")}var lk=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ck(e){return!!(e&&lk.test(e))}function Hi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(Gc(t))||ik(e).getPropertyValue(Gc(t));Object.keys(t).forEach(function(i){var o=t[i];!o&&o!==0?e.style.removeProperty(Gc(i)):ck(i)?r+=i+"("+o+") ":n+=Gc(i)+": "+o+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Xp={exports:{}},Zc={exports:{}},Dt={};/** @license React v16.13.1
|
|
26
|
+
* react-is.production.min.js
|
|
27
|
+
*
|
|
28
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
29
|
+
*
|
|
30
|
+
* This source code is licensed under the MIT license found in the
|
|
31
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
|
+
*/var x1;function uk(){if(x1)return Dt;x1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return S}}case n:return S}}}function C(b){return w(b)===c}return Dt.AsyncMode=l,Dt.ConcurrentMode=c,Dt.ContextConsumer=s,Dt.ContextProvider=a,Dt.Element=t,Dt.ForwardRef=u,Dt.Fragment=r,Dt.Lazy=p,Dt.Memo=h,Dt.Portal=n,Dt.Profiler=o,Dt.StrictMode=i,Dt.Suspense=d,Dt.isAsyncMode=function(b){return C(b)||w(b)===l},Dt.isConcurrentMode=C,Dt.isContextConsumer=function(b){return w(b)===s},Dt.isContextProvider=function(b){return w(b)===a},Dt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},Dt.isForwardRef=function(b){return w(b)===u},Dt.isFragment=function(b){return w(b)===r},Dt.isLazy=function(b){return w(b)===p},Dt.isMemo=function(b){return w(b)===h},Dt.isPortal=function(b){return w(b)===n},Dt.isProfiler=function(b){return w(b)===o},Dt.isStrictMode=function(b){return w(b)===i},Dt.isSuspense=function(b){return w(b)===d},Dt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.$$typeof===x||b.$$typeof===_||b.$$typeof===m)},Dt.typeOf=w,Dt}var It={};/** @license React v16.13.1
|
|
33
|
+
* react-is.development.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/var w1;function dk(){return w1||(w1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===r||P===c||P===o||P===i||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===p||P.$$typeof===h||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===g||P.$$typeof===x||P.$$typeof===_||P.$$typeof===m)}function C(P){if(typeof P=="object"&&P!==null){var te=P.$$typeof;switch(te){case t:var K=P.type;switch(K){case l:case c:case r:case o:case i:case d:return K;default:var G=K&&K.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return te}}case n:return te}}}var b=l,S=c,M=s,$=a,k=t,R=u,T=r,E=p,A=h,I=n,j=o,D=i,O=d,L=!1;function z(P){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(P)||C(P)===l}function N(P){return C(P)===c}function H(P){return C(P)===s}function Y(P){return C(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Z(P){return C(P)===u}function X(P){return C(P)===r}function J(P){return C(P)===p}function ee(P){return C(P)===h}function W(P){return C(P)===n}function F(P){return C(P)===o}function B(P){return C(P)===i}function V(P){return C(P)===d}It.AsyncMode=b,It.ConcurrentMode=S,It.ContextConsumer=M,It.ContextProvider=$,It.Element=k,It.ForwardRef=R,It.Fragment=T,It.Lazy=E,It.Memo=A,It.Portal=I,It.Profiler=j,It.StrictMode=D,It.Suspense=O,It.isAsyncMode=z,It.isConcurrentMode=N,It.isContextConsumer=H,It.isContextProvider=Y,It.isElement=q,It.isForwardRef=Z,It.isFragment=X,It.isLazy=J,It.isMemo=ee,It.isPortal=W,It.isProfiler=F,It.isStrictMode=B,It.isSuspense=V,It.isValidElementType=w,It.typeOf=C}()),It}var _1;function pw(){return _1||(_1=1,process.env.NODE_ENV==="production"?Zc.exports=uk():Zc.exports=dk()),Zc.exports}/*
|
|
40
|
+
object-assign
|
|
41
|
+
(c) Sindre Sorhus
|
|
42
|
+
@license MIT
|
|
43
|
+
*/var Nh,C1;function fk(){if(C1)return Nh;C1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nh=i()?Object.assign:function(o,a){for(var s,l=r(o),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){c=e(s);for(var f=0;f<c.length;f++)n.call(s,c[f])&&(l[c[f]]=s[c[f]])}}return l},Nh}var Lh,S1;function Cg(){if(S1)return Lh;S1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lh=e,Lh}var Fh,T1;function mw(){return T1||(T1=1,Fh=Function.call.bind(Object.prototype.hasOwnProperty)),Fh}var Bh,$1;function hk(){if($1)return Bh;$1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cg(),n={},r=mw();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in o)if(r(o,u)){var d;try{if(typeof o[u]!="function"){var f=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[u](a,u,l,s,null,t)}catch(p){d=p}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=c?c():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Bh=i,Bh}var zh,k1;function pk(){if(k1)return zh;k1=1;var e=pw(),t=fk(),n=Cg(),r=mw(),i=hk(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return zh=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(N){var H=N&&(c&&N[c]||N[u]);if(typeof H=="function")return H}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:_(),arrayOf:w,element:C(),elementType:b(),instanceOf:S,node:R(),objectOf:$,oneOf:M,oneOfType:k,shape:E,exact:A};function p(N,H){return N===H?N!==0||1/N===1/H:N!==N&&H!==H}function m(N,H){this.message=N,this.data=H&&typeof H=="object"?H:{},this.stack=""}m.prototype=Error.prototype;function g(N){if(process.env.NODE_ENV!=="production")var H={},Y=0;function q(X,J,ee,W,F,B,V){if(W=W||f,B=B||ee,V!==n){if(l){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var te=W+":"+ee;!H[te]&&Y<3&&(o("You are manually calling a React.PropTypes validation function for the `"+B+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[te]=!0,Y++)}}return J[ee]==null?X?J[ee]===null?new m("The "+F+" `"+B+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new m("The "+F+" `"+B+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:N(J,ee,W,F,B)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function x(N){function H(Y,q,Z,X,J,ee){var W=Y[q],F=D(W);if(F!==N){var B=O(W);return new m("Invalid "+X+" `"+J+"` of type "+("`"+B+"` supplied to `"+Z+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return g(H)}function _(){return g(a)}function w(N){function H(Y,q,Z,X,J){if(typeof N!="function")return new m("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ee=Y[q];if(!Array.isArray(ee)){var W=D(ee);return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected an array."))}for(var F=0;F<ee.length;F++){var B=N(ee,F,Z,X,J+"["+F+"]",n);if(B instanceof Error)return B}return null}return g(H)}function C(){function N(H,Y,q,Z,X){var J=H[Y];if(!s(J)){var ee=D(J);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return g(N)}function b(){function N(H,Y,q,Z,X){var J=H[Y];if(!e.isValidElementType(J)){var ee=D(J);return new m("Invalid "+Z+" `"+X+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return g(N)}function S(N){function H(Y,q,Z,X,J){if(!(Y[q]instanceof N)){var ee=N.name||f,W=z(Y[q]);return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected ")+("instance of `"+ee+"`."))}return null}return g(H)}function M(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function H(Y,q,Z,X,J){for(var ee=Y[q],W=0;W<N.length;W++)if(p(ee,N[W]))return null;var F=JSON.stringify(N,function(V,P){var te=O(P);return te==="symbol"?String(P):P});return new m("Invalid "+X+" `"+J+"` of value `"+String(ee)+"` "+("supplied to `"+Z+"`, expected one of "+F+"."))}return g(H)}function $(N){function H(Y,q,Z,X,J){if(typeof N!="function")return new m("Property `"+J+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ee=Y[q],W=D(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type "+("`"+W+"` supplied to `"+Z+"`, expected an object."));for(var F in ee)if(r(ee,F)){var B=N(ee,F,Z,X,J+"."+F,n);if(B instanceof Error)return B}return null}return g(H)}function k(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var H=0;H<N.length;H++){var Y=N[H];if(typeof Y!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(Y)+" at index "+H+"."),a}function q(Z,X,J,ee,W){for(var F=[],B=0;B<N.length;B++){var V=N[B],P=V(Z,X,J,ee,W,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&F.push(P.data.expectedType)}var te=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+ee+" `"+W+"` supplied to "+("`"+J+"`"+te+"."))}return g(q)}function R(){function N(H,Y,q,Z,X){return I(H[Y])?null:new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return g(N)}function T(N,H,Y,q,Z){return new m((N||"React class")+": "+H+" type `"+Y+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function E(N){function H(Y,q,Z,X,J){var ee=Y[q],W=D(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+W+"` "+("supplied to `"+Z+"`, expected `object`."));for(var F in N){var B=N[F];if(typeof B!="function")return T(Z,X,J,F,O(B));var V=B(ee,F,Z,X,J+"."+F,n);if(V)return V}return null}return g(H)}function A(N){function H(Y,q,Z,X,J){var ee=Y[q],W=D(ee);if(W!=="object")return new m("Invalid "+X+" `"+J+"` of type `"+W+"` "+("supplied to `"+Z+"`, expected `object`."));var F=t({},Y[q],N);for(var B in F){var V=N[B];if(r(N,B)&&typeof V!="function")return T(Z,X,J,B,O(V));if(!V)return new m("Invalid "+X+" `"+J+"` key `"+B+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(Y[q],null," ")+`
|
|
44
|
+
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var P=V(ee,B,Z,X,J+"."+B,n);if(P)return P}return null}return g(H)}function I(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(I);if(N===null||s(N))return!0;var H=d(N);if(H){var Y=H.call(N),q;if(H!==N.entries){for(;!(q=Y.next()).done;)if(!I(q.value))return!1}else for(;!(q=Y.next()).done;){var Z=q.value;if(Z&&!I(Z[1]))return!1}}else return!1;return!0;default:return!1}}function j(N,H){return N==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function D(N){var H=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":j(H,N)?"symbol":H}function O(N){if(typeof N>"u"||N===null)return""+N;var H=D(N);if(H==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return H}function L(N){var H=O(N);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function z(N){return!N.constructor||!N.constructor.name?f:N.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},zh}var Wh,M1;function mk(){if(M1)return Wh;M1=1;var e=Cg();function t(){}function n(){}return n.resetWarningCache=t,Wh=function(){function r(a,s,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Wh}if(process.env.NODE_ENV!=="production"){var gk=pw(),vk=!0;Xp.exports=pk()(gk.isElement,vk)}else Xp.exports=mk()();var bk=Xp.exports;const xe=nn(bk),E1={disabled:!1};var yk=process.env.NODE_ENV!=="production"?xe.oneOfType([xe.number,xe.shape({enter:xe.number,exit:xe.number,appear:xe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&xe.oneOfType([xe.string,xe.shape({enter:xe.string,exit:xe.string,active:xe.string}),xe.shape({enter:xe.string,enterDone:xe.string,enterActive:xe.string,exit:xe.string,exitDone:xe.string,exitActive:xe.string})]);const gw=v.createContext(null);var xk=function(t){return t.scrollTop},il="unmounted",Pi="exited",ci="entering",Li="entered",ju="exiting",Ti=function(e){ek(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=Pi,o.appearStatus=ci):l=Li:r.unmountOnExit||r.mountOnEnter?l=il:l=Pi,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===il?{status:Pi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==ci&&a!==Li&&(o=ci):(a===ci||a===Li)&&(o=ju)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===ci){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this);a&&xk(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pi&&this.setState({status:il})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Un.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!i&&!a||E1.disabled){this.safeSetState({status:Li},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ci},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Li},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Un.findDOMNode(this);if(!o||E1.disabled){this.safeSetState({status:Pi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ju},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Pi},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===il)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=uw(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(gw.Provider,{value:null},typeof a=="function"?a(i,s):v.cloneElement(v.Children.only(a),s))},t}(v.Component);Ti.contextType=gw;Ti.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:xe.shape({current:typeof Element>"u"?xe.any:function(e,t,n,r,i,o){var a=e[t];return xe.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,o)}}),children:xe.oneOfType([xe.func.isRequired,xe.element.isRequired]).isRequired,in:xe.bool,mountOnEnter:xe.bool,unmountOnExit:xe.bool,appear:xe.bool,enter:xe.bool,exit:xe.bool,timeout:function(t){var n=yk;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n.apply(void 0,[t].concat(i))},addEndListener:xe.func,onEnter:xe.func,onEntering:xe.func,onEntered:xe.func,onExit:xe.func,onExiting:xe.func,onExited:xe.func}:{};function pa(){}Ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pa,onEntering:pa,onEntered:pa,onExit:pa,onExiting:pa,onExited:pa};Ti.UNMOUNTED=il;Ti.EXITED=Pi;Ti.ENTERING=ci;Ti.ENTERED=Li;Ti.EXITING=ju;function vw(e){return e.code==="Escape"||e.keyCode===27}function wk(){const e=fe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function fs(e){if(!e||typeof e=="function")return null;const{major:t}=wk();return t>=19?e.props.ref:e.ref}const hs=!!(typeof window<"u"&&window.document&&window.document.createElement);var Kp=!1,Jp=!1;try{var Uh={get passive(){return Kp=!0},get once(){return Jp=Kp=!0}};hs&&(window.addEventListener("test",Uh,Uh),window.removeEventListener("test",Uh,!0))}catch{}function Sg(e,t,n,r){if(r&&typeof r!="boolean"&&!Jp){var i=r.once,o=r.capture,a=n;!Jp&&i&&(a=n.__once||function s(l){this.removeEventListener(t,s,o),n.call(this,l)},n.__once=a),e.addEventListener(t,a,Kp?r:o)}e.addEventListener(t,n,r)}function Qp(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function fi(e,t,n,r){return Sg(e,t,n,r),function(){Qp(e,t,n,r)}}function _k(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function Ck(e){var t=Hi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function Sk(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||_k(e,"transitionend",!0)},t+n),o=fi(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),o()}}function bw(e,t,n,r){n==null&&(n=Ck(e)||0);var i=Sk(e,n,r),o=fi(e,"transitionend",t);return function(){i(),o()}}function O1(e,t){const n=Hi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function yw(e,t){const n=O1(e,"transitionDuration"),r=O1(e,"transitionDelay"),i=bw(e,o=>{o.target===e&&(i(),t(o))},n+r)}function xw(e){e.offsetHeight}const A1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Tk(e,t){const n=A1(e),r=A1(t);return i=>{n&&n(i),r&&r(i)}}function Jo(e,t){return v.useMemo(()=>Tk(e,t),[e,t])}function Pu(e){return e&&"setState"in e?Un.findDOMNode(e):e??null}const Tg=v.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:o,addEndListener:a,children:s,childRef:l,...c},u)=>{const d=v.useRef(null),f=Jo(d,l),h=S=>{f(Pu(S))},p=S=>M=>{S&&d.current&&S(d.current,M)},m=v.useCallback(p(e),[e]),g=v.useCallback(p(t),[t]),x=v.useCallback(p(n),[n]),_=v.useCallback(p(r),[r]),w=v.useCallback(p(i),[i]),C=v.useCallback(p(o),[o]),b=v.useCallback(p(a),[a]);return y.jsx(Ti,{ref:u,...c,onEnter:m,onEntered:x,onEntering:g,onExit:_,onExited:C,onExiting:w,addEndListener:b,nodeRef:d,children:typeof s=="function"?(S,M)=>s(S,{...M,ref:h}):v.cloneElement(s,{ref:h})})});Tg.displayName="TransitionWrapper";function $k(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function qi(e){const t=$k(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const $g=e=>fe.forwardRef((t,n)=>y.jsx("div",{...t,ref:n,className:se(t.className,e)})),ww=$g("h4");ww.displayName="DivStyledAsH4";const _w=fe.forwardRef(({className:e,bsPrefix:t,as:n=ww,...r},i)=>(t=gt(t,"alert-heading"),y.jsx(n,{ref:i,className:se(e,t),...r})));_w.displayName="AlertHeading";function em(){return v.useState(null)}function kk(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function _n(e){const t=kk(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function Mk(e,t,n,r=!1){const i=_n(n);v.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,i,r),()=>o.removeEventListener(t,i,r)},[e])}function Cw(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Sw(e){const t=v.useRef(null);return v.useEffect(()=>{t.current=e}),t.current}const Ek=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Ok=typeof document<"u",R1=Ok||Ek?v.useLayoutEffect:v.useEffect,Ak=["as","disabled"];function Rk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dk(e){return!e||e.trim()==="#"}function kg({tagName:e,disabled:t,href:n,target:r,rel:i,role:o,onClick:a,tabIndex:s=0,type:l}){e||(n!=null||r!=null||i!=null?e="a":e="button");const c={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},c];const u=f=>{if((t||e==="a"&&Dk(n))&&f.preventDefault(),t){f.stopPropagation();return}a==null||a(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:o??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:u,onKeyDown:d},c]}const Mg=fe.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=Rk(e,Ak);const[o,{tagName:a}]=kg(Object.assign({tagName:n,disabled:r},i));return y.jsx(a,Object.assign({},i,o,{ref:t}))});Mg.displayName="Button";const Ik=["onKeyDown"];function jk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pk(e){return!e||e.trim()==="#"}const Eg=fe.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=jk(e,Ik);const[i]=kg(Object.assign({tagName:"a"},r)),o=_n(a=>{i.onKeyDown(a),n==null||n(a)});return Pk(r.href)||r.role==="button"?y.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:o})):y.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Eg.displayName="Anchor";const Tw=fe.forwardRef(({className:e,bsPrefix:t,as:n=Eg,...r},i)=>(t=gt(t,"alert-link"),y.jsx(n,{ref:i,className:se(e,t),...r})));Tw.displayName="AlertLink";const Nk={[ci]:"show",[Li]:"show"},Yi=fe.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=v.useCallback((l,c)=>{xw(l),r==null||r(l,c)},[r]);return y.jsx(Tg,{ref:o,addEndListener:yw,...a,onEnter:s,childRef:fs(t),children:(l,c)=>fe.cloneElement(t,{...c,className:se("fade",e,t.props.className,Nk[l],n[l])})})});Yi.displayName="Fade";const Lk={"aria-label":xe.string,onClick:xe.func,variant:xe.oneOf(["white"])},jd=fe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>y.jsx("button",{ref:i,type:"button",className:se("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));jd.displayName="CloseButton";jd.propTypes=Lk;const $w=fe.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:o,className:a,children:s,variant:l="primary",onClose:c,dismissible:u,transition:d=Yi,...f}=_g(e,{show:"onClose"}),h=gt(n,"alert"),p=qi(x=>{c&&c(!1,x)}),m=d===!0?Yi:d,g=y.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:se(a,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&y.jsx(jd,{onClick:p,"aria-label":i,variant:o}),s]});return m?y.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:g}):r?g:null});$w.displayName="Alert";const Fk=Object.assign($w,{Link:Tw,Heading:_w}),Og=fe.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:o=!1,className:a,...s},l)=>{const c=gt(t,"btn"),[u,{tagName:d}]=kg({tagName:e,disabled:o,...s}),f=d;return y.jsx(f,{...u,...s,ref:l,disabled:o,className:se(a,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&o&&"disabled")})});Og.displayName="Button";function Bk(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function zk(e){const t=v.useRef(e);return t.current=e,t}function kw(e){const t=zk(e);v.useEffect(()=>()=>t.current(),[])}const tm=2**31-1;function Mw(e,t,n){const r=n-Date.now();e.current=r<=tm?setTimeout(t,r):setTimeout(()=>Mw(e,t,n),tm)}function Wk(){const e=Bk(),t=v.useRef();return kw(()=>clearTimeout(t.current)),v.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,o=0){e()&&(n(),o<=tm?t.current=setTimeout(i,o):Mw(t,i,Date.now()+o))}return{set:r,clear:n,handleRef:t}},[])}function Uk(e,t){return fe.Children.toArray(e).some(n=>fe.isValidElement(n)&&n.type===t)}function Ew({as:e,bsPrefix:t,className:n,...r}){t=gt(t,"col");const i=fw(),o=hw(),a=[],s=[];return i.forEach(l=>{const c=r[l];delete r[l];let u,d,f;typeof c=="object"&&c!=null?{span:u,offset:d,order:f}=c:u=c;const h=l!==o?`-${l}`:"";u&&a.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:se(n,...a,...s)},{as:e,bsPrefix:t,spans:a}]}const Ag=fe.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:o,spans:a}]=Ew(e);return y.jsx(i,{...r,ref:t,className:se(n,!a.length&&o)})});Ag.displayName="Col";var Hk=Function.prototype.bind.call(Function.prototype.call,[].slice);function ui(e,t){return Hk(e.querySelectorAll(t))}function Vk(e,t,n){const r=v.useRef(e!==void 0),[i,o]=v.useState(t),a=e!==void 0,s=r.current;return r.current=a,!a&&s&&i!==t&&o(t),[a?e:i,v.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return o(c),d},[n])]}function Ow(){const[,e]=v.useReducer(t=>t+1,0);return e}const Pd=fe.createContext(null);var D1=Object.prototype.hasOwnProperty;function I1(e,t,n){for(n of e.keys())if(ul(n,t))return n}function ul(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&ul(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(i=r,i&&typeof i=="object"&&(i=I1(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(i=r[0],i&&typeof i=="object"&&(i=I1(t,i),!i)||!ul(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(D1.call(e,n)&&++r&&!D1.call(t,n)||!(n in t)||!ul(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function qk(e){const t=Cw();return[e[0],v.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var qn="top",hr="bottom",pr="right",Yn="left",Rg="auto",fc=[qn,hr,pr,Yn],Ha="start",wl="end",Yk="clippingParents",Aw="viewport",Bs="popper",Gk="reference",j1=fc.reduce(function(e,t){return e.concat([t+"-"+Ha,t+"-"+wl])},[]),Rw=[].concat(fc,[Rg]).reduce(function(e,t){return e.concat([t,t+"-"+Ha,t+"-"+wl])},[]),Zk="beforeRead",Xk="read",Kk="afterRead",Jk="beforeMain",Qk="main",eM="afterMain",tM="beforeWrite",nM="write",rM="afterWrite",iM=[Zk,Xk,Kk,Jk,Qk,eM,tM,nM,rM];function Lr(e){return e.split("-")[0]}function tr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Lo(e){var t=tr(e).Element;return e instanceof t||e instanceof Element}function Fr(e){var t=tr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dg(e){if(typeof ShadowRoot>"u")return!1;var t=tr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Ro=Math.max,Nu=Math.min,Va=Math.round;function nm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Dw(){return!/^((?!chrome|android).)*safari/i.test(nm())}function qa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Fr(e)&&(i=e.offsetWidth>0&&Va(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Va(r.height)/e.offsetHeight||1);var a=Lo(e)?tr(e):window,s=a.visualViewport,l=!Dw()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Ig(e){var t=qa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gi(e){return e?(e.nodeName||"").toLowerCase():null}function yi(e){return tr(e).getComputedStyle(e)}function oM(e){return["table","td","th"].indexOf(Gi(e))>=0}function ro(e){return((Lo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nd(e){return Gi(e)==="html"?e:e.assignedSlot||e.parentNode||(Dg(e)?e.host:null)||ro(e)}function P1(e){return!Fr(e)||yi(e).position==="fixed"?null:e.offsetParent}function aM(e){var t=/firefox/i.test(nm()),n=/Trident/i.test(nm());if(n&&Fr(e)){var r=yi(e);if(r.position==="fixed")return null}var i=Nd(e);for(Dg(i)&&(i=i.host);Fr(i)&&["html","body"].indexOf(Gi(i))<0;){var o=yi(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function hc(e){for(var t=tr(e),n=P1(e);n&&oM(n)&&yi(n).position==="static";)n=P1(n);return n&&(Gi(n)==="html"||Gi(n)==="body"&&yi(n).position==="static")?t:n||aM(e)||t}function jg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dl(e,t,n){return Ro(e,Nu(t,n))}function sM(e,t,n){var r=dl(e,t,n);return r>n?n:r}function jw(){return{top:0,right:0,bottom:0,left:0}}function Pw(e){return Object.assign({},jw(),e)}function Nw(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Pw(typeof t!="number"?t:Nw(t,fc))};function cM(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Lr(n.placement),l=jg(s),c=[Yn,pr].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=lM(i.padding,n),f=Ig(o),h=l==="y"?qn:Yn,p=l==="y"?hr:pr,m=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],g=a[l]-n.rects.reference[l],x=hc(o),_=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,w=m/2-g/2,C=d[h],b=_-f[u]-d[p],S=_/2-f[u]/2+w,M=dl(C,S,b),$=l;n.modifiersData[r]=(t={},t[$]=M,t.centerOffset=M-S,t)}}function uM(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Iw(t.elements.popper,i)&&(t.elements.arrow=i))}const dM={name:"arrow",enabled:!0,phase:"main",fn:cM,effect:uM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ya(e){return e.split("-")[1]}var fM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hM(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Va(n*i)/i||0,y:Va(r*i)/i||0}}function N1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var x=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),w=Yn,C=qn,b=window;if(c){var S=hc(n),M="clientHeight",$="clientWidth";if(S===tr(n)&&(S=ro(n),yi(S).position!=="static"&&s==="absolute"&&(M="scrollHeight",$="scrollWidth")),S=S,i===qn||(i===Yn||i===pr)&&o===wl){C=hr;var k=d&&S===b&&b.visualViewport?b.visualViewport.height:S[M];m-=k-r.height,m*=l?1:-1}if(i===Yn||(i===qn||i===hr)&&o===wl){w=pr;var R=d&&S===b&&b.visualViewport?b.visualViewport.width:S[$];h-=R-r.width,h*=l?1:-1}}var T=Object.assign({position:s},c&&fM),E=u===!0?hM({x:h,y:m},tr(n)):{x:h,y:m};if(h=E.x,m=E.y,l){var A;return Object.assign({},T,(A={},A[C]=_?"0":"",A[w]=x?"0":"",A.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",A))}return Object.assign({},T,(t={},t[C]=_?m+"px":"",t[w]=x?h+"px":"",t.transform="",t))}function pM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Lr(t.placement),variation:Ya(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,N1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,N1(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pM,data:{}};var Xc={passive:!0};function gM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=tr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Xc)}),s&&l.addEventListener("resize",n.update,Xc),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Xc)}),s&&l.removeEventListener("resize",n.update,Xc)}}const vM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gM,data:{}};var bM={left:"right",right:"left",bottom:"top",top:"bottom"};function yu(e){return e.replace(/left|right|bottom|top/g,function(t){return bM[t]})}var yM={start:"end",end:"start"};function L1(e){return e.replace(/start|end/g,function(t){return yM[t]})}function Pg(e){var t=tr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ng(e){return qa(ro(e)).left+Pg(e).scrollLeft}function xM(e,t){var n=tr(e),r=ro(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=Dw();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Ng(e),y:l}}function wM(e){var t,n=ro(e),r=Pg(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ro(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ro(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ng(e),l=-r.scrollTop;return yi(i||n).direction==="rtl"&&(s+=Ro(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Lg(e){var t=yi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Lw(e){return["html","body","#document"].indexOf(Gi(e))>=0?e.ownerDocument.body:Fr(e)&&Lg(e)?e:Lw(Nd(e))}function fl(e,t){var n;t===void 0&&(t=[]);var r=Lw(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=tr(r),a=i?[o].concat(o.visualViewport||[],Lg(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(fl(Nd(a)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _M(e,t){var n=qa(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function F1(e,t,n){return t===Aw?rm(xM(e,n)):Lo(t)?_M(t,n):rm(wM(ro(e)))}function CM(e){var t=fl(Nd(e)),n=["absolute","fixed"].indexOf(yi(e).position)>=0,r=n&&Fr(e)?hc(e):e;return Lo(r)?t.filter(function(i){return Lo(i)&&Iw(i,r)&&Gi(i)!=="body"}):[]}function SM(e,t,n,r){var i=t==="clippingParents"?CM(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=F1(e,c,r);return l.top=Ro(u.top,l.top),l.right=Nu(u.right,l.right),l.bottom=Nu(u.bottom,l.bottom),l.left=Ro(u.left,l.left),l},F1(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Fw(e){var t=e.reference,n=e.element,r=e.placement,i=r?Lr(r):null,o=r?Ya(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case qn:l={x:a,y:t.y-n.height};break;case hr:l={x:a,y:t.y+t.height};break;case pr:l={x:t.x+t.width,y:s};break;case Yn:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?jg(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Ha:l[c]=l[c]-(t[u]/2-n[u]/2);break;case wl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function _l(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?Yk:s,c=n.rootBoundary,u=c===void 0?Aw:c,d=n.elementContext,f=d===void 0?Bs:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,x=Pw(typeof g!="number"?g:Nw(g,fc)),_=f===Bs?Gk:Bs,w=e.rects.popper,C=e.elements[p?_:f],b=SM(Lo(C)?C:C.contextElement||ro(e.elements.popper),l,u,a),S=qa(e.elements.reference),M=Fw({reference:S,element:w,placement:i}),$=rm(Object.assign({},w,M)),k=f===Bs?$:S,R={top:b.top-k.top+x.top,bottom:k.bottom-b.bottom+x.bottom,left:b.left-k.left+x.left,right:k.right-b.right+x.right},T=e.modifiersData.offset;if(f===Bs&&T){var E=T[i];Object.keys(R).forEach(function(A){var I=[pr,hr].indexOf(A)>=0?1:-1,j=[qn,hr].indexOf(A)>=0?"y":"x";R[A]+=E[j]*I})}return R}function TM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Rw:l,u=Ya(r),d=u?s?j1:j1.filter(function(p){return Ya(p)===u}):fc,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=_l(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[Lr(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function $M(e){if(Lr(e)===Rg)return[];var t=yu(e);return[L1(e),t,L1(t)]}function kM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,g=t.options.placement,x=Lr(g),_=x===g,w=l||(_||!p?[yu(g)]:$M(g)),C=[g].concat(w).reduce(function(Z,X){return Z.concat(Lr(X)===Rg?TM(t,{placement:X,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):X)},[]),b=t.rects.reference,S=t.rects.popper,M=new Map,$=!0,k=C[0],R=0;R<C.length;R++){var T=C[R],E=Lr(T),A=Ya(T)===Ha,I=[qn,hr].indexOf(E)>=0,j=I?"width":"height",D=_l(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),O=I?A?pr:Yn:A?hr:qn;b[j]>S[j]&&(O=yu(O));var L=yu(O),z=[];if(o&&z.push(D[E]<=0),s&&z.push(D[O]<=0,D[L]<=0),z.every(function(Z){return Z})){k=T,$=!1;break}M.set(T,z)}if($)for(var N=p?3:1,H=function(X){var J=C.find(function(ee){var W=M.get(ee);if(W)return W.slice(0,X).every(function(F){return F})});if(J)return k=J,"break"},Y=N;Y>0;Y--){var q=H(Y);if(q==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}const MM={name:"flip",enabled:!0,phase:"main",fn:kM,requiresIfExists:["offset"],data:{_skip:!1}};function B1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function z1(e){return[qn,pr,hr,Yn].some(function(t){return e[t]>=0})}function EM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=_l(t,{elementContext:"reference"}),s=_l(t,{altBoundary:!0}),l=B1(a,r),c=B1(s,i,o),u=z1(l),d=z1(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const OM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:EM};function AM(e,t,n){var r=Lr(e),i=[Yn,qn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Yn,pr].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function RM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Rw.reduce(function(u,d){return u[d]=AM(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const DM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:RM};function IM(e){var t=e.state,n=e.name;t.modifiersData[n]=Fw({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const jM={name:"popperOffsets",enabled:!0,phase:"read",fn:IM,data:{}};function PM(e){return e==="x"?"y":"x"}function NM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,g=_l(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=Lr(t.placement),_=Ya(t.placement),w=!_,C=jg(x),b=PM(C),S=t.modifiersData.popperOffsets,M=t.rects.reference,$=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(o){var A,I=C==="y"?qn:Yn,j=C==="y"?hr:pr,D=C==="y"?"height":"width",O=S[C],L=O+g[I],z=O-g[j],N=h?-$[D]/2:0,H=_===Ha?M[D]:$[D],Y=_===Ha?-$[D]:-M[D],q=t.elements.arrow,Z=h&&q?Ig(q):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jw(),J=X[I],ee=X[j],W=dl(0,M[D],Z[D]),F=w?M[D]/2-N-W-J-R.mainAxis:H-W-J-R.mainAxis,B=w?-M[D]/2+N+W+ee+R.mainAxis:Y+W+ee+R.mainAxis,V=t.elements.arrow&&hc(t.elements.arrow),P=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,te=(A=T==null?void 0:T[C])!=null?A:0,K=O+F-te-P,G=O+B-te,ae=dl(h?Nu(L,K):L,O,h?Ro(z,G):z);S[C]=ae,E[C]=ae-O}if(s){var ne,re=C==="x"?qn:Yn,oe=C==="x"?hr:pr,le=S[b],ye=b==="y"?"height":"width",ge=le+g[re],be=le-g[oe],Me=[qn,Yn].indexOf(x)!==-1,ce=(ne=T==null?void 0:T[b])!=null?ne:0,de=Me?ge:le-M[ye]-$[ye]-ce+R.altAxis,Ce=Me?le+M[ye]+$[ye]-ce-R.altAxis:be,Ge=h&&Me?sM(de,le,Ce):dl(h?de:ge,le,h?Ce:be);S[b]=Ge,E[b]=Ge-le}t.modifiersData[r]=E}}const LM={name:"preventOverflow",enabled:!0,phase:"main",fn:NM,requiresIfExists:["offset"]};function FM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BM(e){return e===tr(e)||!Fr(e)?Pg(e):FM(e)}function zM(e){var t=e.getBoundingClientRect(),n=Va(t.width)/e.offsetWidth||1,r=Va(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WM(e,t,n){n===void 0&&(n=!1);var r=Fr(t),i=Fr(t)&&zM(t),o=ro(t),a=qa(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Gi(t)!=="body"||Lg(o))&&(s=BM(t)),Fr(t)?(l=qa(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ng(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function UM(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function HM(e){var t=UM(e);return iM.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function VM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qM(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var W1={placement:"bottom",modifiers:[],strategy:"absolute"};function U1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function YM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?W1:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},W1,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(x){var _=typeof x=="function"?x(u.options):x;m(),u.options=Object.assign({},o,u.options,_),u.scrollParents={reference:Lo(s)?fl(s):s.contextElement?fl(s.contextElement):[],popper:fl(l)};var w=HM(qM([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var x=u.elements,_=x.reference,w=x.popper;if(U1(_,w)){u.rects={reference:WM(_,hc(w),u.options.strategy==="fixed"),popper:Ig(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var b=u.orderedModifiers[C],S=b.fn,M=b.options,$=M===void 0?{}:M,k=b.name;typeof S=="function"&&(u=S({state:u,options:$,name:k,instance:h})||u)}}}},update:VM(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!U1(s,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var x=g.name,_=g.options,w=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var b=C({state:u,name:x,instance:h,options:w}),S=function(){};d.push(b||S)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}const GM=YM({defaultModifiers:[OM,jM,mM,vM,DM,MM,LM,dM]}),ZM=["enabled","placement","strategy","modifiers"];function XM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const KM={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},JM={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const o=r.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},QM=[];function Bw(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:o="absolute",modifiers:a=QM}=n,s=XM(n,ZM);const l=v.useRef(a),c=v.useRef(),u=v.useCallback(()=>{var g;(g=c.current)==null||g.update()},[]),d=v.useCallback(()=>{var g;(g=c.current)==null||g.forceUpdate()},[]),[f,h]=qk(v.useState({placement:i,update:u,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),p=v.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:g})=>{const x={},_={};Object.keys(g.elements).forEach(w=>{x[w]=g.styles[w],_[w]=g.attributes[w]}),h({state:g,styles:x,attributes:_,update:u,forceUpdate:d,placement:g.placement})}}),[u,d,h]),m=v.useMemo(()=>(ul(l.current,a)||(l.current=a),l.current),[a]);return v.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:o,modifiers:[...m,p,KM]})},[o,i,p,r,m]),v.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=GM(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...m,JM,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(g=>Object.assign({},g,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Cl(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var eE=process.env.NODE_ENV!=="production",zw=function(){};if(eE){var tE=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var i=1;i<r;i++)n[i-1]=arguments[i];var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};zw=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||tE.apply(null,[t].concat(n))}}var nE=zw;const Qo=nn(nE),H1=()=>{};function rE(e){return e.button===0}function iE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const xu=e=>e&&("current"in e?e.current:e),V1={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ww(e,t=H1,{disabled:n,clickTrigger:r="click"}={}){const i=v.useRef(!1),o=v.useRef(!1),a=v.useCallback(c=>{const u=xu(e);Qo(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||iE(c)||!rE(c)||!!Cl(u,c.target)||o.current,o.current=!1},[e]),s=_n(c=>{const u=xu(e);u&&Cl(u,c.target)?o.current=!0:o.current=!1}),l=_n(c=>{i.current||t(c)});v.useEffect(()=>{var c,u;if(n||e==null)return;const d=ds(xu(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;V1[r]&&(p=fi(d,V1[r],s,!0));const m=fi(d,r,a,!0),g=fi(d,r,_=>{if(_===h){h=void 0;return}l(_)});let x=[];return"ontouchstart"in d.documentElement&&(x=[].slice.call(d.body.children).map(_=>fi(_,"mousemove",H1))),()=>{p==null||p(),m(),g(),x.forEach(_=>_())}},[e,n,r,a,s,l])}function oE(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function aE(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Uw({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:o,containerPadding:a,arrowElement:s,popperConfig:l={}}){var c,u,d,f,h;const p=oE(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:aE(Object.assign({},p,{eventListeners:{enabled:t,options:(c=p.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:a?Object.assign({padding:a},(u=p.preventOverflow)==null?void 0:u.options):(d=p.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:i},(f=p.offset)==null?void 0:f.options)},arrow:Object.assign({},p.arrow,{enabled:!!s,options:Object.assign({},(h=p.arrow)==null?void 0:h.options,{element:s})}),flip:Object.assign({enabled:!!r},p.flip)}))})}const sE=["children","usePopper"];function lE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const cE=()=>{};function Hw(e={}){const t=v.useContext(Pd),[n,r]=em(),i=v.useRef(!1),{flip:o,offset:a,rootCloseEvent:s,fixed:l=!1,placement:c,popperConfig:u={},enableEventListeners:d=!0,usePopper:f=!!t}=e,h=(t==null?void 0:t.show)==null?!!e.show:t.show;h&&!i.current&&(i.current=!0);const p=S=>{t==null||t.toggle(!1,S)},{placement:m,setMenu:g,menuElement:x,toggleElement:_}=t||{},w=Bw(_,x,Uw({placement:c||m||"bottom-start",enabled:f,enableEvents:d??h,offset:a,flip:o,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:g||cE,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),b={show:h,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:f?w:null,arrowProps:f?Object.assign({ref:r},w.attributes.arrow,{style:w.styles.arrow}):{}};return Ww(x,p,{clickTrigger:s,disabled:!h}),[C,b]}function Vw(e){let{children:t,usePopper:n=!0}=e,r=lE(e,sE);const[i,o]=Hw(Object.assign({},r,{usePopper:n}));return y.jsx(y.Fragment,{children:t(i,o)})}Vw.displayName="DropdownMenu";const Lu={prefix:String(Math.round(Math.random()*1e10)),current:0},qw=v.createContext(Lu),uE=v.createContext(!1);let dE=!!(typeof window<"u"&&window.document&&window.document.createElement),Hh=new WeakMap;function fE(e=!1){let t=v.useContext(qw),n=v.useRef(null);if(n.current===null&&!e){var r,i;let o=(i=v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(o){let a=Hh.get(o);a==null?Hh.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==a.state&&(t.current=a.id,Hh.delete(o))}n.current=++t.current}return n.current}function hE(e){let t=v.useContext(qw);t===Lu&&!dE&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=fE(!!e),r=t===Lu&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function pE(e){let t=v.useId(),[n]=v.useState(yE()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Lu.prefix}`;return e||`${r}-${t}`}const mE=typeof v.useId=="function"?pE:hE;function gE(){return!1}function vE(){return!0}function bE(e){return()=>{}}function yE(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(bE,gE,vE):v.useContext(uE)}const Yw=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},q1=()=>{};function Gw(){const e=mE(),{show:t=!1,toggle:n=q1,setToggle:r,menuElement:i}=v.useContext(Pd)||{},o=v.useCallback(s=>{n(!t,s)},[t,n]),a={id:e,ref:r||q1,onClick:o,"aria-expanded":!!t};return i&&Yw(i)&&(a["aria-haspopup"]=!0),[a,{show:t,toggle:n}]}function Zw({children:e}){const[t,n]=Gw();return y.jsx(y.Fragment,{children:e(t,n)})}Zw.displayName="DropdownToggle";const Ga=fe.createContext(null),Sl=(e,t=null)=>e!=null?String(e):t||null,Ld=fe.createContext(null);Ld.displayName="NavContext";const xE="data-rr-ui-",wE="rrUi";function ps(e){return`${xE}${e}`}function _E(e){return`${wE}${e}`}const CE=["eventKey","disabled","onClick","active","as"];function SE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xw({key:e,href:t,active:n,disabled:r,onClick:i}){const o=v.useContext(Ga),a=v.useContext(Ld),{activeKey:s}=a||{},l=Sl(e,t),c=n==null&&e!=null?Sl(s)===l:n;return[{onClick:_n(d=>{r||(i==null||i(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[ps("dropdown-item")]:""},{isActive:c}]}const Kw=fe.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:o,as:a=Mg}=e,s=SE(e,CE);const[l]=Xw({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,Object.assign({},s,{ref:t},l))});Kw.displayName="DropdownItem";const Jw=v.createContext(hs?window:void 0);Jw.Provider;function Fd(){return v.useContext(Jw)}function Y1(){const e=Ow(),t=v.useRef(null),n=v.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function pc({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${ps("dropdown-item")}]`,focusFirstItemOnShow:o,placement:a="bottom-start",children:s}){const l=Fd(),[c,u]=Vk(t,e,r),[d,f]=Y1(),h=d.current,[p,m]=Y1(),g=p.current,x=Sw(c),_=v.useRef(null),w=v.useRef(!1),C=v.useContext(Ga),b=v.useCallback((T,E,A=E==null?void 0:E.type)=>{u(T,{originalEvent:E,source:A})},[u]),S=_n((T,E)=>{n==null||n(T,E),b(!1,E,"select"),E.isPropagationStopped()||C==null||C(T,E)}),M=v.useMemo(()=>({toggle:b,placement:a,show:c,menuElement:h,toggleElement:g,setMenu:f,setToggle:m}),[b,a,c,h,g,f,m]);h&&x&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const $=_n(()=>{g&&g.focus&&g.focus()}),k=_n(()=>{const T=_.current;let E=o;if(E==null&&(E=d.current&&Yw(d.current)?"keyboard":!1),E===!1||E==="keyboard"&&!/^key.+$/.test(T))return;const A=ui(d.current,i)[0];A&&A.focus&&A.focus()});v.useEffect(()=>{c?k():w.current&&(w.current=!1,$())},[c,w,$,k]),v.useEffect(()=>{_.current=null});const R=(T,E)=>{if(!d.current)return null;const A=ui(d.current,i);let I=A.indexOf(T)+E;return I=Math.max(0,Math.min(I,A.length)),A[I]};return Mk(v.useCallback(()=>l.document,[l]),"keydown",T=>{var E,A;const{key:I}=T,j=T.target,D=(E=d.current)==null?void 0:E.contains(j),O=(A=p.current)==null?void 0:A.contains(j);if(/input|textarea/i.test(j.tagName)&&(I===" "||I!=="Escape"&&D||I==="Escape"&&j.type==="search")||!D&&!O||I==="Tab"&&(!d.current||!c))return;_.current=T.type;const z={originalEvent:T,source:T.type};switch(I){case"ArrowUp":{const N=R(j,-1);N&&N.focus&&N.focus(),T.preventDefault();return}case"ArrowDown":if(T.preventDefault(),!c)u(!0,z);else{const N=R(j,1);N&&N.focus&&N.focus()}return;case"Tab":Sg(j.ownerDocument,"keyup",N=>{var H;(N.key==="Tab"&&!N.target||!((H=d.current)!=null&&H.contains(N.target)))&&u(!1,z)},{once:!0});break;case"Escape":I==="Escape"&&(T.preventDefault(),T.stopPropagation()),u(!1,z);break}}),y.jsx(Ga.Provider,{value:S,children:y.jsx(Pd.Provider,{value:M,children:s})})}pc.displayName="Dropdown";pc.Menu=Vw;pc.Toggle=Zw;pc.Item=Kw;const Fg=fe.createContext({});Fg.displayName="DropdownContext";const Qw=fe.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},o)=>(t=gt(t,"dropdown-divider"),y.jsx(n,{ref:o,className:se(e,t),role:r,...i})));Qw.displayName="DropdownDivider";const e_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},o)=>(t=gt(t,"dropdown-header"),y.jsx(n,{ref:o,className:se(e,t),role:r,...i})));e_.displayName="DropdownHeader";const t_=fe.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:o,as:a=Eg,...s},l)=>{const c=gt(e,"dropdown-item"),[u,d]=Xw({key:n,href:s.href,disabled:r,onClick:i,active:o});return y.jsx(a,{...s,...u,ref:l,className:se(t,c,d.isActive&&"active",r&&"disabled")})});t_.displayName="DropdownItem";const n_=fe.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=gt(t,"dropdown-item-text"),y.jsx(n,{ref:i,className:se(e,t),...r})));n_.displayName="DropdownItemText";const TE=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",$E=typeof document<"u",Bg=$E||TE?v.useLayoutEffect:v.useEffect,Bd=fe.createContext(null);Bd.displayName="InputGroupContext";const r_=fe.createContext(null);r_.displayName="NavbarContext";function i_(e,t){if(process.env.NODE_ENV==="production")return e;const n=v.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?b1(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):b1(!1))},[t]);return Jo(n,e)}function o_(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",u=n?"left-end":"right-end";let d=e?a:o;return t==="up"?d=e?i:r:t==="end"?d=e?u:c:t==="start"?d=e?l:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const a_=fe.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:o,renderOnMount:a,as:s="div",popperConfig:l,variant:c,...u},d)=>{let f=!1;const h=v.useContext(r_),p=gt(e,"dropdown-menu"),{align:m,drop:g,isRTL:x}=v.useContext(Fg);n=n||m;const _=v.useContext(Bd),w=[];if(n)if(typeof n=="object"){const T=Object.keys(n);if(process.env.NODE_ENV!=="production"&&Qo(T.length===1,"There should only be 1 breakpoint when passing an object to `align`"),T.length){const E=T[0],A=n[E];f=A==="start",w.push(`${p}-${E}-${A}`)}}else n==="end"&&(f=!0);const C=o_(f,g,x),[b,{hasShown:S,popper:M,show:$,toggle:k}]=Hw({flip:i,rootCloseEvent:r,show:o,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(b.ref=Jo(i_(d,"DropdownMenu"),b.ref),Bg(()=>{$&&(M==null||M.update())},[$]),!S&&!a&&!_)return null;typeof s!="string"&&(b.show=$,b.close=()=>k==null?void 0:k(!1),b.align=n);let R=u.style;return M!=null&&M.placement&&(R={...u.style,...b.style},u["x-placement"]=M.placement),y.jsx(s,{...u,...b,style:R,...(w.length||h)&&{"data-bs-popper":"static"},className:se(t,p,$&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});a_.displayName="DropdownMenu";const s_=fe.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Og,...o},a)=>{const s=gt(e,"dropdown-toggle"),l=v.useContext(Pd);r!==void 0&&(o.bsPrefix=r);const[c]=Gw();return c.ref=Jo(c.ref,i_(a,"DropdownToggle")),y.jsx(i,{className:se(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});s_.displayName="DropdownToggle";const l_=fe.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:o,align:a="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:f=!0,...h}=_g(e,{show:"onToggle"}),p=v.useContext(Bd),m=gt(n,"dropdown"),g=Id(),x=M=>f===!1?M==="click":f==="inside"?M!=="rootClose":f==="outside"?M!=="select":!0,_=qi((M,$)=>{var k;!((k=$.originalEvent)==null||(k=k.target)==null)&&k.classList.contains("dropdown-toggle")&&$.source==="mousedown"||($.originalEvent.currentTarget===document&&($.source!=="keydown"||$.originalEvent.key==="Escape")&&($.source="rootClose"),x($.source)&&(l==null||l(M,$)))}),C=o_(a==="end",r,g),b=v.useMemo(()=>({align:a,drop:r,isRTL:g}),[a,r,g]),S={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y.jsx(Fg.Provider,{value:b,children:y.jsx(pc,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:p?h.children:y.jsx(u,{...h,ref:t,className:se(o,i&&"show",S[r])})})})});l_.displayName="Dropdown";const Za=Object.assign(l_,{Toggle:s_,Menu:a_,Item:t_,ItemText:n_,Divider:Qw,Header:e_}),kE={type:xe.string,tooltip:xe.bool,as:xe.elementType},zd=fe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},o)=>y.jsx(e,{...i,ref:o,className:se(t,`${n}-${r?"tooltip":"feedback"}`)}));zd.displayName="Feedback";zd.propTypes=kE;const xi=fe.createContext({}),Wd=fe.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:o=!1,as:a="input",...s},l)=>{const{controlId:c}=v.useContext(xi);return t=gt(t,"form-check-input"),y.jsx(a,{...s,ref:l,type:r,id:e||c,className:se(n,t,i&&"is-valid",o&&"is-invalid")})});Wd.displayName="FormCheckInput";const Fu=fe.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:o}=v.useContext(xi);return e=gt(e,"form-check-label"),y.jsx("label",{...r,ref:i,htmlFor:n||o,className:se(t,e)})});Fu.displayName="FormCheckLabel";const c_=fe.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:o=!1,isValid:a=!1,isInvalid:s=!1,feedbackTooltip:l=!1,feedback:c,feedbackType:u,className:d,style:f,title:h="",type:p="checkbox",label:m,children:g,as:x="input",..._},w)=>{t=gt(t,"form-check"),n=gt(n,"form-switch");const{controlId:C}=v.useContext(xi),b=v.useMemo(()=>({controlId:e||C}),[C,e]),S=!g&&m!=null&&m!==!1||Uk(g,Fu),M=y.jsx(Wd,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:a,isInvalid:s,disabled:o,as:x});return y.jsx(xi.Provider,{value:b,children:y.jsx("div",{style:f,className:se(d,S&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:g||y.jsxs(y.Fragment,{children:[M,S&&y.jsx(Fu,{title:h,children:m}),c&&y.jsx(zd,{type:u,tooltip:l,children:c})]})})})});c_.displayName="FormCheck";const Bu=Object.assign(c_,{Input:Wd,Label:Fu}),u_=fe.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:o,isValid:a=!1,isInvalid:s=!1,plaintext:l,readOnly:c,as:u="input",...d},f)=>{const{controlId:h}=v.useContext(xi);return e=gt(e,"form-control"),process.env.NODE_ENV!=="production"&&Qo(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),y.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||h,className:se(o,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,a&&"is-valid",s&&"is-invalid")})});u_.displayName="FormControl";const d_=Object.assign(u_,{Feedback:zd}),f_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"form-floating"),y.jsx(n,{ref:i,className:se(e,t),...r})));f_.displayName="FormFloating";const zg=fe.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=v.useMemo(()=>({controlId:e}),[e]);return y.jsx(xi.Provider,{value:i,children:y.jsx(t,{...n,ref:r})})});zg.displayName="FormGroup";const h_=fe.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:o,...a},s)=>{const{controlId:l}=v.useContext(xi);t=gt(t,"form-label");let c="col-form-label";typeof n=="string"&&(c=`${c} ${c}-${n}`);const u=se(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&Qo(l==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||l,n?y.jsx(Ag,{ref:s,as:"label",className:u,htmlFor:o,...a}):y.jsx(e,{ref:s,className:u,htmlFor:o,...a})});h_.displayName="FormLabel";const p_=fe.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:o}=v.useContext(xi);return e=gt(e,"form-range"),y.jsx("input",{...r,type:"range",ref:i,className:se(t,e),id:n||o})});p_.displayName="FormRange";const Wg=fe.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:o=!1,id:a,...s},l)=>{const{controlId:c}=v.useContext(xi);return e=gt(e,"form-select"),y.jsx("select",{...s,size:n,ref:l,className:se(r,e,t&&`${e}-${t}`,i&&"is-valid",o&&"is-invalid"),id:a||c})});Wg.displayName="FormSelect";const m_=fe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},o)=>(e=gt(e,"form-text"),y.jsx(n,{...i,ref:o,className:se(t,e,r&&"text-muted")})));m_.displayName="FormText";const g_=fe.forwardRef((e,t)=>y.jsx(Bu,{...e,ref:t,type:"switch"}));g_.displayName="Switch";const ME=Object.assign(g_,{Input:Bu.Input,Label:Bu.Label}),Ug=fe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...o},a)=>(e=gt(e,"form-floating"),y.jsxs(zg,{ref:a,className:se(t,e),controlId:r,...o,children:[n,y.jsx("label",{htmlFor:r,children:i})]})));Ug.displayName="FloatingLabel";const EE={_ref:xe.any,validated:xe.bool,as:xe.elementType},Hg=fe.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>y.jsx(n,{...r,ref:i,className:se(e,t&&"was-validated")}));Hg.displayName="Form";Hg.propTypes=EE;const Xr=Object.assign(Hg,{Group:zg,Control:d_,Floating:f_,Check:Bu,Switch:ME,Label:h_,Text:m_,Range:p_,Select:Wg,FloatingLabel:Ug}),G1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function OE(e,t){const n=G1(e),r=G1(t);return i=>{n&&n(i),r&&r(i)}}function mc(e,t){return v.useMemo(()=>OE(e,t),[e,t])}const v_=fe.createContext(null),AE=["as","active","eventKey"];function RE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function b_({key:e,onClick:t,active:n,id:r,role:i,disabled:o}){const a=v.useContext(Ga),s=v.useContext(Ld),l=v.useContext(v_);let c=n;const u={role:i};if(s){!i&&s.role==="tablist"&&(u.role="tab");const d=s.getControllerId(e??null),f=s.getControlledId(e??null);u[ps("event-key")]=e,u.id=d||r,c=n==null&&e!=null?s.activeKey===e:n,(c||!(l!=null&&l.unmountOnExit)&&!(l!=null&&l.mountOnEnter))&&(u["aria-controls"]=f)}return u.role==="tab"&&(u["aria-selected"]=c,c||(u.tabIndex=-1),o&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=_n(d=>{o||(t==null||t(d),e!=null&&a&&!d.isPropagationStopped()&&a(e,d))}),[u,{isActive:c}]}const y_=fe.forwardRef((e,t)=>{let{as:n=Mg,active:r,eventKey:i}=e,o=RE(e,AE);const[a,s]=b_(Object.assign({key:Sl(i,o.href),active:r},o));return a[ps("active")]=s.isActive,y.jsx(n,Object.assign({},o,a,{ref:t}))});y_.displayName="NavItem";const DE=["as","onSelect","activeKey","role","onKeyDown"];function IE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Z1=()=>{},X1=ps("event-key"),x_=fe.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:o,onKeyDown:a}=e,s=IE(e,DE);const l=Ow(),c=v.useRef(!1),u=v.useContext(Ga),d=v.useContext(v_);let f,h;d&&(o=o||"tablist",i=d.activeKey,f=d.getControlledId,h=d.getControllerId);const p=v.useRef(null),m=w=>{const C=p.current;if(!C)return null;const b=ui(C,`[${X1}]:not([aria-disabled=true])`),S=C.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const M=b.indexOf(S);if(M===-1)return null;let $=M+w;return $>=b.length&&($=0),$<0&&($=b.length-1),b[$]},g=(w,C)=>{w!=null&&(r==null||r(w,C),u==null||u(w,C))},x=w=>{if(a==null||a(w),!d)return;let C;switch(w.key){case"ArrowLeft":case"ArrowUp":C=m(-1);break;case"ArrowRight":case"ArrowDown":C=m(1);break;default:return}C&&(w.preventDefault(),g(C.dataset[_E("EventKey")]||null,w),c.current=!0,l())};v.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${X1}][aria-selected=true]`);w==null||w.focus()}c.current=!1});const _=mc(t,p);return y.jsx(Ga.Provider,{value:g,children:y.jsx(Ld.Provider,{value:{role:o,activeKey:Sl(i),getControlledId:f||Z1,getControllerId:h||Z1},children:y.jsx(n,Object.assign({},s,{onKeyDown:x,ref:_,role:o}))})})});x_.displayName="Nav";const jE=Object.assign(x_,{Item:y_}),Ud=fe.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:o,action:a,as:s,...l},c)=>{e=gt(e,"list-group-item");const[u,d]=b_({key:Sl(r,l.href),active:t,...l}),f=qi(p=>{if(n){p.preventDefault(),p.stopPropagation();return}u.onClick(p)});n&&l.tabIndex===void 0&&(l.tabIndex=-1,l["aria-disabled"]=!0);const h=s||(a?l.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&Qo(s||!(!a&&l.href),"`action=false` and `href` should not be used together."),y.jsx(h,{ref:c,...l,...u,onClick:f,className:se(i,e,d.isActive&&"active",n&&"disabled",o&&`${e}-${o}`,a&&`${e}-action`)})});Ud.displayName="ListGroupItem";const w_=fe.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:o,numbered:a,as:s="div",...l}=_g(e,{activeKey:"onSelect"}),c=gt(r,"list-group");let u;return o&&(u=o===!0?"horizontal":`horizontal-${o}`),process.env.NODE_ENV!=="production"&&Qo(!(o&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),y.jsx(jE,{ref:t,...l,as:s,className:se(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,a&&`${c}-numbered`)})});w_.displayName="ListGroup";const __=Object.assign(w_,{Item:Ud});var Kc;function K1(e){if((!Kc&&Kc!==0||e)&&hs){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Kc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Kc}function PE(){return v.useState(null)}function Vh(e){e===void 0&&(e=ds());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function NE(e){const t=v.useRef(e);return t.current=e,t}function LE(e){const t=NE(e);v.useEffect(()=>()=>t.current(),[])}function FE(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const J1=ps("modal-open");class Vg{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return FE(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Hi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(J1,""),Hi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(J1),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const qh=(e,t)=>hs?e==null?(t||ds()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function im(e,t){const n=Fd(),[r,i]=v.useState(()=>qh(e,n==null?void 0:n.document));if(!r){const o=qh(e);o&&i(o)}return v.useEffect(()=>{},[t,r]),v.useEffect(()=>{const o=qh(e);o!==r&&i(o)},[e,r]),r}function BE({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const o=v.useRef(null),a=v.useRef(t),s=_n(n);v.useEffect(()=>{t?a.current=!0:s(o.current)},[t,s]);const l=mc(o,fs(e)),c=v.cloneElement(e,{ref:l});return t?c:i||!a.current&&r?null:c}const zE=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function WE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function UE(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:a,addEndListener:s,children:l}=e,c=WE(e,zE);const u=v.useRef(null),d=mc(u,fs(l)),f=C=>b=>{C&&u.current&&C(u.current,b)},h=v.useCallback(f(t),[t]),p=v.useCallback(f(n),[n]),m=v.useCallback(f(r),[r]),g=v.useCallback(f(i),[i]),x=v.useCallback(f(o),[o]),_=v.useCallback(f(a),[a]),w=v.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:m},i&&{onExit:g},o&&{onExiting:x},a&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,b)=>l(C,Object.assign({},b,{ref:d})):v.cloneElement(l,{ref:d})})}const HE=["component"];function VE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const qE=fe.forwardRef((e,t)=>{let{component:n}=e,r=VE(e,HE);const i=UE(r);return y.jsx(n,Object.assign({ref:t},i))});function YE({in:e,onTransition:t}){const n=v.useRef(null),r=v.useRef(!0),i=_n(t);return R1(()=>{if(!n.current)return;let o=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,i]),R1(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function GE({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[o,a]=v.useState(!t);t&&o&&a(!1);const s=YE({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(a(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||a(!0),d})}}),l=mc(s,fs(e));return o&&!t?null:v.cloneElement(e,{ref:l})}function om(e,t,n){return e?y.jsx(qE,Object.assign({},n,{component:e})):t?y.jsx(GE,Object.assign({},n,{transition:t})):y.jsx(BE,Object.assign({},n))}const ZE=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function XE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}let Yh;function KE(e){return Yh||(Yh=new Vg({ownerDocument:e==null?void 0:e.document})),Yh}function JE(e){const t=Fd(),n=e||KE(t),r=v.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:v.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:v.useCallback(i=>{r.current.backdrop=i},[])})}const C_=v.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:o,children:a,backdrop:s=!0,keyboard:l=!0,onBackdropClick:c,onEscapeKeyDown:u,transition:d,runTransition:f,backdropTransition:h,runBackdropTransition:p,autoFocus:m=!0,enforceFocus:g=!0,restoreFocus:x=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=G=>y.jsx("div",Object.assign({},G)),manager:b,container:S,onShow:M,onHide:$=()=>{},onExit:k,onExited:R,onExiting:T,onEnter:E,onEntering:A,onEntered:I}=e,j=XE(e,ZE);const D=Fd(),O=im(S),L=JE(b),z=Cw(),N=Sw(n),[H,Y]=v.useState(!n),q=v.useRef(null);v.useImperativeHandle(t,()=>L,[L]),hs&&!N&&n&&(q.current=Vh(D==null?void 0:D.document)),n&&H&&Y(!1);const Z=_n(()=>{if(L.add(),B.current=fi(document,"keydown",W),F.current=fi(document,"focus",()=>setTimeout(J),!0),M&&M(),m){var G,ae;const ne=Vh((G=(ae=L.dialog)==null?void 0:ae.ownerDocument)!=null?G:D==null?void 0:D.document);L.dialog&&ne&&!Cl(L.dialog,ne)&&(q.current=ne,L.dialog.focus())}}),X=_n(()=>{if(L.remove(),B.current==null||B.current(),F.current==null||F.current(),x){var G;(G=q.current)==null||G.focus==null||G.focus(_),q.current=null}});v.useEffect(()=>{!n||!O||Z()},[n,O,Z]),v.useEffect(()=>{H&&X()},[H,X]),LE(()=>{X()});const J=_n(()=>{if(!g||!z()||!L.isTopModal())return;const G=Vh(D==null?void 0:D.document);L.dialog&&G&&!Cl(L.dialog,G)&&L.dialog.focus()}),ee=_n(G=>{G.target===G.currentTarget&&(c==null||c(G),s===!0&&$())}),W=_n(G=>{l&&vw(G)&&L.isTopModal()&&(u==null||u(G),G.defaultPrevented||$())}),F=v.useRef(),B=v.useRef(),V=(...G)=>{Y(!0),R==null||R(...G)};if(!O)return null;const P=Object.assign({role:r,ref:L.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},j,{style:o,className:i,tabIndex:-1});let te=w?w(P):y.jsx("div",Object.assign({},P,{children:fe.cloneElement(a,{role:"document"})}));te=om(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:k,onExiting:T,onExited:V,onEnter:E,onEntering:A,onEntered:I,children:te});let K=null;return s&&(K=C({ref:L.setBackdropRef,onClick:ee}),K=om(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:K})),y.jsx(y.Fragment,{children:Un.createPortal(y.jsxs(y.Fragment,{children:[K,te]}),O)})});C_.displayName="Modal";const S_=Object.assign(C_,{Manager:Vg});function am(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function QE(e,t){e.classList?e.classList.add(t):am(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Q1(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function e8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Q1(e.className,t):e.setAttribute("class",Q1(e.className&&e.className.baseVal||"",t))}const ma={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class T_ extends Vg{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Hi(n,{[t]:`${parseFloat(Hi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Hi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(QE(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ui(n,ma.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),ui(n,ma.STICKY_CONTENT).forEach(o=>this.adjustAndStore(i,o,-t.scrollBarWidth)),ui(n,ma.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(i,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();e8(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ui(n,ma.FIXED_CONTENT).forEach(o=>this.restore(r,o)),ui(n,ma.STICKY_CONTENT).forEach(o=>this.restore(i,o)),ui(n,ma.NAVBAR_TOGGLER).forEach(o=>this.restore(i,o))}}let Gh;function $_(e){return Gh||(Gh=new T_(e)),Gh}const k_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-body"),y.jsx(n,{ref:i,className:se(e,t),...r})));k_.displayName="ModalBody";const qg=fe.createContext({onHide(){}}),Yg=fe.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:o,children:a,scrollable:s,...l},c)=>{e=gt(e,"modal");const u=`${e}-dialog`,d=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return y.jsx("div",{...l,ref:c,className:se(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,o&&d),children:y.jsx("div",{className:se(`${e}-content`,n),children:a})})});Yg.displayName="ModalDialog";const M_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-footer"),y.jsx(n,{ref:i,className:se(e,t),...r})));M_.displayName="ModalFooter";const Gg=fe.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...o},a)=>{const s=v.useContext(qg),l=qi(()=>{s==null||s.onHide(),r==null||r()});return y.jsxs("div",{ref:a,...o,children:[i,n&&y.jsx(jd,{"aria-label":e,variant:t,onClick:l})]})});Gg.displayName="AbstractModalHeader";const E_=fe.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},o)=>(e=gt(e,"modal-header"),y.jsx(Gg,{ref:o,...i,className:se(t,e),closeLabel:n,closeButton:r})));E_.displayName="ModalHeader";const t8=$g("h4"),O_=fe.forwardRef(({className:e,bsPrefix:t,as:n=t8,...r},i)=>(t=gt(t,"modal-title"),y.jsx(n,{ref:i,className:se(e,t),...r})));O_.displayName="ModalTitle";function n8(e){return y.jsx(Yi,{...e,timeout:null})}function r8(e){return y.jsx(Yi,{...e,timeout:null})}const A_=fe.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:o,dialogAs:a=Yg,"data-bs-theme":s,"aria-labelledby":l,"aria-describedby":c,"aria-label":u,show:d=!1,animation:f=!0,backdrop:h=!0,keyboard:p=!0,onEscapeKeyDown:m,onShow:g,onHide:x,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:b=!0,restoreFocusOptions:S,onEntered:M,onExit:$,onExiting:k,onEnter:R,onEntering:T,onExited:E,backdropClassName:A,manager:I,...j},D)=>{const[O,L]=v.useState({}),[z,N]=v.useState(!1),H=v.useRef(!1),Y=v.useRef(!1),q=v.useRef(null),[Z,X]=PE(),J=Jo(D,X),ee=qi(x),W=Id();e=gt(e,"modal");const F=v.useMemo(()=>({onHide:ee}),[ee]);function B(){return I||$_({isRTL:W})}function V(de){if(!hs)return;const Ce=B().getScrollbarWidth()>0,Ge=de.scrollHeight>ds(de).documentElement.clientHeight;L({paddingRight:Ce&&!Ge?K1():void 0,paddingLeft:!Ce&&Ge?K1():void 0})}const P=qi(()=>{Z&&V(Z.dialog)});kw(()=>{Qp(window,"resize",P),q.current==null||q.current()});const te=()=>{H.current=!0},K=de=>{H.current&&Z&&de.target===Z.dialog&&(Y.current=!0),H.current=!1},G=()=>{N(!0),q.current=bw(Z.dialog,()=>{N(!1)})},ae=de=>{de.target===de.currentTarget&&G()},ne=de=>{if(h==="static"){ae(de);return}if(Y.current||de.target!==de.currentTarget){Y.current=!1;return}x==null||x()},re=de=>{p?m==null||m(de):(de.preventDefault(),h==="static"&&G())},oe=(de,Ce)=>{de&&V(de),R==null||R(de,Ce)},le=de=>{q.current==null||q.current(),$==null||$(de)},ye=(de,Ce)=>{T==null||T(de,Ce),Sg(window,"resize",P)},ge=de=>{de&&(de.style.display=""),E==null||E(de),Qp(window,"resize",P)},be=v.useCallback(de=>y.jsx("div",{...de,className:se(`${e}-backdrop`,A,!f&&"show")}),[f,A,e]),Me={...n,...O};Me.display="block";const ce=de=>y.jsx("div",{role:"dialog",...de,style:Me,className:se(t,e,z&&`${e}-static`,!f&&"show"),onClick:h?ne:void 0,onMouseUp:K,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:y.jsx(a,{...j,onMouseDown:te,className:r,contentClassName:i,children:o})});return y.jsx(qg.Provider,{value:F,children:y.jsx(S_,{show:d,ref:J,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:b,restoreFocusOptions:S,onEscapeKeyDown:re,onShow:g,onHide:x,onEnter:oe,onEntering:ye,onEntered:M,onExit:le,onExiting:k,onExited:ge,manager:B(),transition:f?n8:void 0,backdropTransition:f?r8:void 0,renderBackdrop:be,renderDialog:ce})})});A_.displayName="Modal";const Vn=Object.assign(A_,{Body:k_,Header:E_,Title:O_,Footer:M_,Dialog:Yg,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),i8=()=>{};function o8(e,t,{disabled:n,clickTrigger:r}={}){const i=t||i8;Ww(e,i,{disabled:n,clickTrigger:r});const o=_n(a=>{vw(a)&&i(a)});v.useEffect(()=>{if(n||e==null)return;const a=ds(xu(e));let s=(a.defaultView||window).event;const l=fi(a,"keyup",c=>{if(c===s){s=void 0;return}o(c)});return()=>{l()}},[e,n,o])}const R_=fe.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:o,popperConfig:a={},transition:s,runTransition:l}=e,[c,u]=em(),[d,f]=em(),h=mc(u,t),p=im(e.container),m=im(e.target),[g,x]=v.useState(!e.show),_=Bw(m,c,Uw({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:n,offset:r,arrowElement:d,popperConfig:a}));e.show&&g&&x(!1);const w=(...T)=>{x(!0),e.onExited&&e.onExited(...T)},C=e.show||!g;if(o8(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:b,onExiting:S,onEnter:M,onEntering:$,onEntered:k}=e;let R=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:h}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return R=om(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:b,onExiting:S,onExited:w,onEnter:M,onEntering:$,onEntered:k}),p?Un.createPortal(R,p):null});R_.displayName="Overlay";const D_=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-header"),y.jsx(n,{ref:i,className:se(e,t),...r})));D_.displayName="PopoverHeader";const Zg=fe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-body"),y.jsx(n,{ref:i,className:se(e,t),...r})));Zg.displayName="PopoverBody";function I_(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function j_(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const P_=fe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:o,arrowProps:a,hasDoneInitialMeasure:s,popper:l,show:c,...u},d)=>{const f=gt(e,"popover"),h=Id(),[p]=(t==null?void 0:t.split("-"))||[],m=I_(p,h);let g=r;return c&&!s&&(g={...r,...j_(l==null?void 0:l.strategy)}),y.jsxs("div",{ref:d,role:"tooltip",style:g,"x-placement":p,className:se(n,f,p&&`bs-popover-${m}`),...u,children:[y.jsx("div",{className:"popover-arrow",...a}),o?y.jsx(Zg,{children:i}):i]})});P_.displayName="Popover";const wu=Object.assign(P_,{Header:D_,Body:Zg,POPPER_OFFSET:[0,8]}),N_=fe.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:o,hasDoneInitialMeasure:a,popper:s,show:l,...c},u)=>{e=gt(e,"tooltip");const d=Id(),[f]=(t==null?void 0:t.split("-"))||[],h=I_(f,d);let p=r;return l&&!a&&(p={...r,...j_(s==null?void 0:s.strategy)}),y.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:se(n,e,`bs-tooltip-${h}`),...c,children:[y.jsx("div",{className:"tooltip-arrow",...o}),y.jsx("div",{className:`${e}-inner`,children:i})]})});N_.displayName="Tooltip";const L_=Object.assign(N_,{TOOLTIP_OFFSET:[0,6]});function a8(e){const t=v.useRef(null),n=gt(void 0,"popover"),r=gt(void 0,"tooltip"),i=v.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(am(t.current,n))return wu.POPPER_OFFSET;if(am(t.current,r))return L_.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function s8(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Pu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Pu(i)))}const F_=fe.forwardRef(({children:e,transition:t=Yi,popperConfig:n={},rootClose:r=!1,placement:i="top",show:o=!1,...a},s)=>{const l=v.useRef({}),[c,u]=v.useState(null),[d,f]=a8(a.offset),h=Jo(s,d),p=t===!0?Yi:t||void 0,m=qi(g=>{u(g),n==null||n.onFirstUpdate==null||n.onFirstUpdate(g)});return Bg(()=>{c&&a.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,a.target]),v.useEffect(()=>{o||u(null)},[o]),y.jsx(R_,{...a,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:p,rootClose:r,placement:i,show:o,children:(g,{arrowProps:x,popper:_,show:w})=>{var C;s8(g,x);const b=_==null?void 0:_.placement,S=Object.assign(l.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:b,outOfBoundaries:(_==null||(C=_.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),M=!!c;return typeof e=="function"?e({...g,placement:b,show:w,...!t&&w&&{className:"show"},popper:S,arrowProps:x,hasDoneInitialMeasure:M}):fe.cloneElement(e,{...g,placement:b,arrowProps:x,popper:S,hasDoneInitialMeasure:M,className:se(e.props.className,!t&&w&&"show"),style:{...e.props.style,...g.style}})}})});F_.displayName="Overlay";function l8(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function eb(e,t,n){const[r]=t,i=r.currentTarget,o=r.relatedTarget||r.nativeEvent[n];(!o||o!==i)&&!Cl(i,o)&&e(...t)}xe.oneOf(["click","hover","focus"]);const B_=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:o=!1,onToggle:a,delay:s,placement:l,flip:c=l&&l.indexOf("auto")!==-1,...u})=>{const d=v.useRef(null),f=Jo(d,fs(n)),h=Wk(),p=v.useRef(""),[m,g]=dw(i,o,a),x=l8(s),{onFocus:_,onBlur:w,onClick:C}=typeof n!="function"?fe.Children.only(n).props:{},b=j=>{f(Pu(j))},S=v.useCallback(()=>{if(h.clear(),p.current="show",!x.show){g(!0);return}h.set(()=>{p.current==="show"&&g(!0)},x.show)},[x.show,g,h]),M=v.useCallback(()=>{if(h.clear(),p.current="hide",!x.hide){g(!1);return}h.set(()=>{p.current==="hide"&&g(!1)},x.hide)},[x.hide,g,h]),$=v.useCallback((...j)=>{S(),_==null||_(...j)},[S,_]),k=v.useCallback((...j)=>{M(),w==null||w(...j)},[M,w]),R=v.useCallback((...j)=>{g(!m),C==null||C(...j)},[C,g,m]),T=v.useCallback((...j)=>{eb(S,j,"fromElement")},[S]),E=v.useCallback((...j)=>{eb(M,j,"toElement")},[M]),A=e==null?[]:[].concat(e),I={ref:b};return A.indexOf("click")!==-1&&(I.onClick=R),A.indexOf("focus")!==-1&&(I.onFocus=$,I.onBlur=k),A.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Qo(A.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),I.onMouseOver=T,I.onMouseOut=E),y.jsxs(y.Fragment,{children:[typeof n=="function"?n(I):v.cloneElement(n,I),y.jsx(F_,{...u,show:m,onHide:M,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},Xg=fe.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:o,...a},s)=>{e=gt(e,"spinner");const l=`${e}-${n}`;return y.jsx(i,{ref:s,...a,className:se(o,l,r&&`${l}-${r}`,t&&`text-${t}`)})});Xg.displayName="Spinner";var z_={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},tb=v.createContext&&v.createContext(z_),c8=["attr","size","title"];function u8(e,t){if(e==null)return{};var n=d8(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d8(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function zu(){return zu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zu.apply(this,arguments)}function nb(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 Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(r){f8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f8(e,t,n){return t=h8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h8(e){var t=p8(e,"string");return typeof t=="symbol"?t:t+""}function p8(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 W_(e){return e&&e.map((t,n)=>v.createElement(t.tag,Wu({key:n},t.attr),W_(t.child)))}function it(e){return t=>v.createElement(m8,zu({attr:Wu({},e.attr)},t),W_(e.child))}function m8(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=u8(e,c8),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",zu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:l,style:Wu(Wu({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&v.createElement("title",null,o),e.children)};return tb!==void 0?v.createElement(tb.Consumer,null,n=>t(n)):t(z_)}function g8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function gc(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function v8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 12.4V7l-4-4H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7.4l8.6-8.6zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zM6 6h9v4H6V6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77l4.99-4.98zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"},child:[]}]})(e)}function b8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"},child:[]}]})(e)}function y8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"},child:[]}]})(e)}function x8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"},child:[]}]})(e)}function w8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"},child:[]}]})(e)}function _8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 8h-2.81a5.985 5.985 0 0 0-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65A4.27 4.27 0 0 1 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18a3.787 3.787 0 0 1 1.89 0l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"},child:[]}]})(e)}function U_(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function C8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function S8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15zM14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2z"},child:[]}]})(e)}function T8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-2-6H6v-2h12v2zm-4 4H6v-2h8v2z"},child:[]}]})(e)}function $8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm0 14H4V8h16v10zm-2-1h-6v-2h6v2zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4-4 4z"},child:[]}]})(e)}function k8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"},child:[]}]})(e)}function M8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"},child:[]}]})(e)}function E8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4zm2 10h12v2H6v-2zm0-3h12v2H6V9zm0-3h12v2H6V6z"},child:[]}]})(e)}function O8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function A8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"},child:[]}]})(e)}function R8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"},child:[]}]})(e)}function D8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z"},child:[]}]})(e)}function I8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function j8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function P8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h4.05l1.83-2h4.24l1.83 2H20v12zM12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"},child:[]}]})(e)}function N8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"},child:[]}]})(e)}function L8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67 1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"},child:[]}]})(e)}function F8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"},child:[]}]})(e)}function B8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"},child:[]}]})(e)}function H_(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"},child:[]}]})(e)}function z8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function V_(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(e)}function W8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},child:[]}]})(e)}function U8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 24H0V0h24v24z",opacity:".87"},child:[]},{tag:"path",attr:{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"},child:[]}]})(e)}function H8(e){return it({attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{fill:"none"},child:[{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M0 0h24v24H0V0z"},child:[]}]},{tag:"path",attr:{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z"},child:[]}]})(e)}const rn=v.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),q_=v.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),Y_=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),G_=()=>{const e=je.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:o,setOptions:a}=v.useContext(Y_);let s;e[0]!==i||e[1]!==o?(s=f=>{i(),o.current(f)},e[0]=i,e[1]=o,e[2]=s):s=e[2];const l=s;let c;e[3]!==o||e[4]!==a||e[5]!==r?(c=async(f,h)=>(a(p=>({...p,...h})),r(f),new Promise(p=>{o.current=p})),e[3]=o,e[4]=a,e[5]=r,e[6]=c):c=e[6];const u=c;let d;return e[7]!==t||e[8]!==l||e[9]!==u||e[10]!==n?(d={isShown:t,text:n,prompt:u,onFinish:l},e[7]=t,e[8]=l,e[9]=u,e[10]=n,e[11]=d):d=e[11],d};let V8={data:""},q8=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||V8},Y8=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,G8=/\/\*[^]*?\*\/| +/g,rb=/\n+/g,Fi=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?Fi(a,o):o+"{"+Fi(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=Fi(a,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Fi.p?Fi.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ri={},Z_=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Z_(e[n]);return t}return e},Z8=(e,t,n,r,i)=>{let o=Z_(e),a=ri[o]||(ri[o]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(o));if(!ri[a]){let l=o!==e?e:(c=>{let u,d,f=[{}];for(;u=Y8.exec(c.replace(G8,""));)u[4]?f.shift():u[3]?(d=u[3].replace(rb," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(rb," ").trim();return f[0]})(e);ri[a]=Fi(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&ri.g?ri.g:null;return n&&(ri.g=ri[a]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(ri[a],t,r,s),a},X8=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":Fi(s,""):s===!1?"":s}return r+i+(a??"")},"");function Hd(e){let t=this||{},n=e.call?e(t.p):e;return Z8(n.unshift?n.raw?X8(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,q8(t.target),t.g,t.o,t.k)}let X_,sm,lm;Hd.bind({g:1});let wi=Hd.bind({k:1});function K8(e,t,n,r){Fi.p=t,X_=e,sm=n,lm=r}function io(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:sm&&sm()},s),n.o=/ *go\d+/.test(l),s.className=Hd.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),lm&&c[0]&&lm(s),X_(c,s)}return i}}var J8=e=>typeof e=="function",Uu=(e,t)=>J8(e)?e(t):e,Q8=(()=>{let e=0;return()=>(++e).toString()})(),K_=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),eO=20,Kg="default",J_=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case 2:let{toast:r}=t;return J_(e,{type:e.toasts.find(a=>a.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(a=>a.id===i||i===void 0?{...a,dismissed:!0,visible:!1}:a)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(a=>({...a,pauseDuration:a.pauseDuration+o}))}}},_u=[],Q_={toasts:[],pausedAt:void 0,settings:{toastLimit:eO}},Nr={},e4=(e,t=Kg)=>{Nr[t]=J_(Nr[t]||Q_,e),_u.forEach(([n,r])=>{n===t&&r(Nr[t])})},t4=e=>Object.keys(Nr).forEach(t=>e4(e,t)),tO=e=>Object.keys(Nr).find(t=>Nr[t].toasts.some(n=>n.id===e)),Vd=(e=Kg)=>t=>{e4(t,e)},nO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},rO=(e={},t=Kg)=>{let[n,r]=v.useState(Nr[t]||Q_),i=v.useRef(Nr[t]);v.useEffect(()=>(i.current!==Nr[t]&&r(Nr[t]),_u.push([t,r]),()=>{let a=_u.findIndex(([s])=>s===t);a>-1&&_u.splice(a,1)}),[t]);let o=n.toasts.map(a=>{var s,l,c;return{...e,...e[a.type],...a,removeDelay:a.removeDelay||((s=e[a.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:a.duration||((l=e[a.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||nO[a.type],style:{...e.style,...(c=e[a.type])==null?void 0:c.style,...a.style}}});return{...n,toasts:o}},iO=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Q8()}),vc=e=>(t,n)=>{let r=iO(t,e,n);return Vd(r.toasterId||tO(r.id))({type:2,toast:r}),r.id},pn=(e,t)=>vc("blank")(e,t);pn.error=vc("error");pn.success=vc("success");pn.loading=vc("loading");pn.custom=vc("custom");pn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Vd(t)(n):t4(n)};pn.dismissAll=e=>pn.dismiss(void 0,e);pn.remove=(e,t)=>{let n={type:4,toastId:e};t?Vd(t)(n):t4(n)};pn.removeAll=e=>pn.remove(void 0,e);pn.promise=(e,t,n)=>{let r=pn.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let o=t.success?Uu(t.success,i):void 0;return o?pn.success(o,{id:r,...n,...n==null?void 0:n.success}):pn.dismiss(r),i}).catch(i=>{let o=t.error?Uu(t.error,i):void 0;o?pn.error(o,{id:r,...n,...n==null?void 0:n.error}):pn.dismiss(r)}),e};var oO=1e3,aO=(e,t="default")=>{let{toasts:n,pausedAt:r}=rO(e,t),i=v.useRef(new Map).current,o=v.useCallback((d,f=oO)=>{if(i.has(d))return;let h=setTimeout(()=>{i.delete(d),a({type:4,toastId:d})},f);i.set(d,h)},[]);v.useEffect(()=>{if(r)return;let d=Date.now(),f=n.map(h=>{if(h.duration===1/0)return;let p=(h.duration||0)+h.pauseDuration-(d-h.createdAt);if(p<0){h.visible&&pn.dismiss(h.id);return}return setTimeout(()=>pn.dismiss(h.id,t),p)});return()=>{f.forEach(h=>h&&clearTimeout(h))}},[n,r,t]);let a=v.useCallback(Vd(t),[t]),s=v.useCallback(()=>{a({type:5,time:Date.now()})},[a]),l=v.useCallback((d,f)=>{a({type:1,toast:{id:d,height:f}})},[a]),c=v.useCallback(()=>{r&&a({type:6,time:Date.now()})},[r,a]),u=v.useCallback((d,f)=>{let{reverseOrder:h=!1,gutter:p=8,defaultPosition:m}=f||{},g=n.filter(w=>(w.position||m)===(d.position||m)&&w.height),x=g.findIndex(w=>w.id===d.id),_=g.filter((w,C)=>C<x&&w.visible).length;return g.filter(w=>w.visible).slice(...h?[_+1]:[0,_]).reduce((w,C)=>w+(C.height||0)+p,0)},[n]);return v.useEffect(()=>{n.forEach(d=>{if(d.dismissed)o(d.id,d.removeDelay);else{let f=i.get(d.id);f&&(clearTimeout(f),i.delete(d.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:u}}},sO=wi`
|
|
45
|
+
from {
|
|
46
|
+
transform: scale(0) rotate(45deg);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
to {
|
|
50
|
+
transform: scale(1) rotate(45deg);
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}`,lO=wi`
|
|
53
|
+
from {
|
|
54
|
+
transform: scale(0);
|
|
55
|
+
opacity: 0;
|
|
56
|
+
}
|
|
57
|
+
to {
|
|
58
|
+
transform: scale(1);
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}`,cO=wi`
|
|
61
|
+
from {
|
|
62
|
+
transform: scale(0) rotate(90deg);
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
to {
|
|
66
|
+
transform: scale(1) rotate(90deg);
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}`,uO=io("div")`
|
|
69
|
+
width: 20px;
|
|
70
|
+
opacity: 0;
|
|
71
|
+
height: 20px;
|
|
72
|
+
border-radius: 10px;
|
|
73
|
+
background: ${e=>e.primary||"#ff4b4b"};
|
|
74
|
+
position: relative;
|
|
75
|
+
transform: rotate(45deg);
|
|
76
|
+
|
|
77
|
+
animation: ${sO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
78
|
+
forwards;
|
|
79
|
+
animation-delay: 100ms;
|
|
80
|
+
|
|
81
|
+
&:after,
|
|
82
|
+
&:before {
|
|
83
|
+
content: '';
|
|
84
|
+
animation: ${lO} 0.15s ease-out forwards;
|
|
85
|
+
animation-delay: 150ms;
|
|
86
|
+
position: absolute;
|
|
87
|
+
border-radius: 3px;
|
|
88
|
+
opacity: 0;
|
|
89
|
+
background: ${e=>e.secondary||"#fff"};
|
|
90
|
+
bottom: 9px;
|
|
91
|
+
left: 4px;
|
|
92
|
+
height: 2px;
|
|
93
|
+
width: 12px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:before {
|
|
97
|
+
animation: ${cO} 0.15s ease-out forwards;
|
|
98
|
+
animation-delay: 180ms;
|
|
99
|
+
transform: rotate(90deg);
|
|
100
|
+
}
|
|
101
|
+
`,dO=wi`
|
|
102
|
+
from {
|
|
103
|
+
transform: rotate(0deg);
|
|
104
|
+
}
|
|
105
|
+
to {
|
|
106
|
+
transform: rotate(360deg);
|
|
107
|
+
}
|
|
108
|
+
`,fO=io("div")`
|
|
109
|
+
width: 12px;
|
|
110
|
+
height: 12px;
|
|
111
|
+
box-sizing: border-box;
|
|
112
|
+
border: 2px solid;
|
|
113
|
+
border-radius: 100%;
|
|
114
|
+
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
115
|
+
border-right-color: ${e=>e.primary||"#616161"};
|
|
116
|
+
animation: ${dO} 1s linear infinite;
|
|
117
|
+
`,hO=wi`
|
|
118
|
+
from {
|
|
119
|
+
transform: scale(0) rotate(45deg);
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
to {
|
|
123
|
+
transform: scale(1) rotate(45deg);
|
|
124
|
+
opacity: 1;
|
|
125
|
+
}`,pO=wi`
|
|
126
|
+
0% {
|
|
127
|
+
height: 0;
|
|
128
|
+
width: 0;
|
|
129
|
+
opacity: 0;
|
|
130
|
+
}
|
|
131
|
+
40% {
|
|
132
|
+
height: 0;
|
|
133
|
+
width: 6px;
|
|
134
|
+
opacity: 1;
|
|
135
|
+
}
|
|
136
|
+
100% {
|
|
137
|
+
opacity: 1;
|
|
138
|
+
height: 10px;
|
|
139
|
+
}`,mO=io("div")`
|
|
140
|
+
width: 20px;
|
|
141
|
+
opacity: 0;
|
|
142
|
+
height: 20px;
|
|
143
|
+
border-radius: 10px;
|
|
144
|
+
background: ${e=>e.primary||"#61d345"};
|
|
145
|
+
position: relative;
|
|
146
|
+
transform: rotate(45deg);
|
|
147
|
+
|
|
148
|
+
animation: ${hO} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
149
|
+
forwards;
|
|
150
|
+
animation-delay: 100ms;
|
|
151
|
+
&:after {
|
|
152
|
+
content: '';
|
|
153
|
+
box-sizing: border-box;
|
|
154
|
+
animation: ${pO} 0.2s ease-out forwards;
|
|
155
|
+
opacity: 0;
|
|
156
|
+
animation-delay: 200ms;
|
|
157
|
+
position: absolute;
|
|
158
|
+
border-right: 2px solid;
|
|
159
|
+
border-bottom: 2px solid;
|
|
160
|
+
border-color: ${e=>e.secondary||"#fff"};
|
|
161
|
+
bottom: 6px;
|
|
162
|
+
left: 6px;
|
|
163
|
+
height: 10px;
|
|
164
|
+
width: 6px;
|
|
165
|
+
}
|
|
166
|
+
`,gO=io("div")`
|
|
167
|
+
position: absolute;
|
|
168
|
+
`,vO=io("div")`
|
|
169
|
+
position: relative;
|
|
170
|
+
display: flex;
|
|
171
|
+
justify-content: center;
|
|
172
|
+
align-items: center;
|
|
173
|
+
min-width: 20px;
|
|
174
|
+
min-height: 20px;
|
|
175
|
+
`,bO=wi`
|
|
176
|
+
from {
|
|
177
|
+
transform: scale(0.6);
|
|
178
|
+
opacity: 0.4;
|
|
179
|
+
}
|
|
180
|
+
to {
|
|
181
|
+
transform: scale(1);
|
|
182
|
+
opacity: 1;
|
|
183
|
+
}`,yO=io("div")`
|
|
184
|
+
position: relative;
|
|
185
|
+
transform: scale(0.6);
|
|
186
|
+
opacity: 0.4;
|
|
187
|
+
min-width: 20px;
|
|
188
|
+
animation: ${bO} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
189
|
+
forwards;
|
|
190
|
+
`,xO=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?fe.createElement(yO,null,t):t:n==="blank"?null:fe.createElement(vO,null,fe.createElement(fO,{...r}),n!=="loading"&&fe.createElement(gO,null,n==="error"?fe.createElement(uO,{...r}):fe.createElement(mO,{...r})))},wO=e=>`
|
|
191
|
+
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
192
|
+
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
193
|
+
`,_O=e=>`
|
|
194
|
+
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
195
|
+
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
196
|
+
`,CO="0%{opacity:0;} 100%{opacity:1;}",SO="0%{opacity:1;} 100%{opacity:0;}",TO=io("div")`
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
background: #fff;
|
|
200
|
+
color: #363636;
|
|
201
|
+
line-height: 1.3;
|
|
202
|
+
will-change: transform;
|
|
203
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
204
|
+
max-width: 350px;
|
|
205
|
+
pointer-events: auto;
|
|
206
|
+
padding: 8px 10px;
|
|
207
|
+
border-radius: 8px;
|
|
208
|
+
`,$O=io("div")`
|
|
209
|
+
display: flex;
|
|
210
|
+
justify-content: center;
|
|
211
|
+
margin: 4px 10px;
|
|
212
|
+
color: inherit;
|
|
213
|
+
flex: 1 1 auto;
|
|
214
|
+
white-space: pre-line;
|
|
215
|
+
`,kO=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=K_()?[CO,SO]:[wO(n),_O(n)];return{animation:t?`${wi(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${wi(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},MO=fe.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?kO(e.position||t||"top-center",e.visible):{opacity:0},o=fe.createElement(xO,{toast:e}),a=fe.createElement($O,{...e.ariaProps},Uu(e.message,e));return fe.createElement(TO,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):fe.createElement(fe.Fragment,null,o,a))});K8(fe.createElement);var EO=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=fe.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return fe.createElement("div",{ref:o,className:t,style:n},i)},OO=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:K_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},AO=Hd`
|
|
216
|
+
z-index: 9999;
|
|
217
|
+
> * {
|
|
218
|
+
pointer-events: auto;
|
|
219
|
+
}
|
|
220
|
+
`,Jc=16,RO=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:o,containerStyle:a,containerClassName:s})=>{let{toasts:l,handlers:c}=aO(n,o);return fe.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:Jc,left:Jc,right:Jc,bottom:Jc,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map(u=>{let d=u.position||t,f=c.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=OO(d,f);return fe.createElement(EO,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?AO:"",style:h},u.type==="custom"?Uu(u.message,u):i?i(u):fe.createElement(MO,{toast:u,position:d}))}))},ga=pn;const qd=v.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var cm;(function(e){e[e.LOGGING_IN=0]="LOGGING_IN",e[e.LOGGED_IN=1]="LOGGED_IN",e[e.LOGGED_OUT=2]="LOGGED_OUT",e[e.LOGIN_FAILED=3]="LOGIN_FAILED"})(cm||(cm={}));const n4=cm;var um;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(um||(um={}));const DO=um,r4=v.createContext({user:null,userLoginState:{state:n4.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),Yd=v.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null,authState:"NO_AUTH"}),i4=v.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),Hu=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),o4=e=>{Hu(e)||Object.keys(e).forEach(t=>{const n=e[t];if(Hu(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:o4(n)})},a4=e=>Object.values(e).every(t=>t===null),IO=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&a4(r)?t[n]=null:t[n]=r}),t},Gd=e=>e&&e.errorFields&&e.errorFields.length>0?e.errorFields.map(t=>({name:t.name.split(".").map(r=>`${r.charAt(0).toLowerCase()}${r.slice(1)}`).join("."),errors:t.errors})):[],s4=async e=>{if(e.type==null||!e.type.includes("json"))return[];try{const t=await e.text(),n=JSON.parse(t);return Gd(n)}catch(t){return console.error("Error parsing blob response:",t),[]}},jO=(e,t)=>{Gd(t.response.data).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),Hu(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},l4=e=>{var n;const t=(n=e.response)==null?void 0:n.data;return t!=null&&t.permissions&&t.permissions.length>0?t.permissions:null},c4=e=>{const t=je.c(35);let n,r,i,o,a,s,l,c,u;t[0]!==e?({heading:o,content:r,placement:a,children:n,trigger:u,popoverClassName:s,small:c,delay:i,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t[9]=u):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9]);let d;t[10]!==u?(d=u===void 0?["hover"]:u,t[10]=u,t[11]=d):d=t[11];const f=d;let h;t[12]!==f?(h=f.includes("hover")&&!f.includes("focus")?[...f,"focus"]:f,t[12]=f,t[13]=h):h=t[13];const p=h;let m;t[14]!==s||t[15]!==c?(m=se("luminus-popover",{"luminus-popover-sm":c},s),t[14]=s,t[15]=c,t[16]=m):m=t[16];let g;t[17]!==o?(g=o&&y.jsx(wu.Header,{children:typeof o=="string"?y.jsx(jn,{variant:"h6",className:"text-primary",children:o}):o}),t[17]=o,t[18]=g):g=t[18];let x;t[19]!==r?(x=y.jsx(wu.Body,{children:r}),t[19]=r,t[20]=x):x=t[20];let _;t[21]!==m||t[22]!==g||t[23]!==x?(_=y.jsxs(wu,{className:m,onClick:PO,children:[g,x]}),t[21]=m,t[22]=g,t[23]=x,t[24]=_):_=t[24];const w=l.controlled?l.isOpen:void 0;let C;t[25]!==l?(C=l.controlled?S=>l.setIsOpen(S):void 0,t[25]=l,t[26]=C):C=t[26];let b;return t[27]!==n||t[28]!==i||t[29]!==a||t[30]!==_||t[31]!==w||t[32]!==C||t[33]!==p?(b=y.jsx(B_,{placement:a,overlay:_,trigger:p,rootClose:!0,show:w,onToggle:C,delay:i,children:n}),t[27]=n,t[28]=i,t[29]=a,t[30]=_,t[31]=w,t[32]=C,t[33]=p,t[34]=b):b=t[34],b};function PO(e){return e.stopPropagation()}const NO="_h1_14r4v_1",LO="_h3_14r4v_8",FO="_h6_14r4v_15",BO="_subtitle_14r4v_22",zO="_body_14r4v_29",WO="_body2_14r4v_36",UO="_caption_14r4v_43",HO="_form-label_14r4v_50",Ri={h1:NO,h3:LO,h6:FO,subtitle:BO,body:zO,body2:WO,caption:UO,formLabel:HO},VO=e=>{const t=je.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let o;t[0]!==r?(o=se("luminus-text-primary luminus-h1",Ri.h1,r),t[0]=r,t[1]=o):o=t[1];let a;return t[2]!==i||t[3]!==o?(a=y.jsx("h1",{className:o,children:i}),t[2]=i,t[3]=o,t[4]=a):a=t[4],a}case"h3":{let o;t[5]!==r?(o=se("luminus-text luminus-h3",Ri.h3,r),t[5]=r,t[6]=o):o=t[6];let a;return t[7]!==i||t[8]!==o?(a=y.jsx("h3",{className:o,children:i}),t[7]=i,t[8]=o,t[9]=a):a=t[9],a}case"h6":{let o;t[10]!==r?(o=se("luminus-text luminus-h6",Ri.h6,r),t[10]=r,t[11]=o):o=t[11];let a;return t[12]!==i||t[13]!==o?(a=y.jsx("h6",{className:o,children:i}),t[12]=i,t[13]=o,t[14]=a):a=t[14],a}case"subtitle":{let o;t[15]!==r?(o=se("luminus-text luminus-subtitle",Ri.subtitle,r),t[15]=r,t[16]=o):o=t[16];let a;return t[17]!==i||t[18]!==o?(a=y.jsx("div",{className:o,children:i}),t[17]=i,t[18]=o,t[19]=a):a=t[19],a}case"body":{let o;t[20]!==r?(o=se("luminus-text luminus-body",Ri.body,r),t[20]=r,t[21]=o):o=t[21];let a;return t[22]!==i||t[23]!==o?(a=y.jsx("div",{className:o,children:i}),t[22]=i,t[23]=o,t[24]=a):a=t[24],a}case"body2":{let o;t[25]!==r?(o=se("luminus-text luminus-body2",Ri.body2,r),t[25]=r,t[26]=o):o=t[26];let a;return t[27]!==i||t[28]!==o?(a=y.jsx("div",{className:o,children:i}),t[27]=i,t[28]=o,t[29]=a):a=t[29],a}case"caption":{let o;t[30]!==r?(o=se("luminus-text-muted luminus-caption",Ri.caption,r),t[30]=r,t[31]=o):o=t[31];let a;return t[32]!==i||t[33]!==o?(a=y.jsx("div",{className:o,children:i}),t[32]=i,t[33]=o,t[34]=a):a=t[34],a}case"form-label":{let o;t[35]!==r?(o=se("luminus-text luminus-form-label",Ri.formLabel,r),t[35]=r,t[36]=o):o=t[36];let a;return t[37]!==i||t[38]!==o?(a=y.jsx("div",{className:o,children:i}),t[37]=i,t[38]=o,t[39]=a):a=t[39],a}default:{let o;return t[40]!==i?(o=y.jsx(y.Fragment,{children:i}),t[40]=i,t[41]=o):o=t[41],o}}},jn=e=>{const t=je.c(4),{variant:n,className:r,children:i}=e;let o;return t[0]!==i||t[1]!==r||t[2]!==n?(o=y.jsx(VO,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=o):o=t[3],o},Jg=e=>{const t=je.c(7),{text:n,placement:r,children:i,delay:o}=e;let a;t[0]!==n?(a=y.jsx(jn,{variant:"body2",className:"text-center",children:n}),t[0]=n,t[1]=a):a=t[1];let s;return t[2]!==i||t[3]!==o||t[4]!==r||t[5]!==a?(s=y.jsx(c4,{content:a,placement:r,delay:o,small:!0,children:i}),t[2]=i,t[3]=o,t[4]=r,t[5]=a,t[6]=s):s=t[6],s},u4=e=>e.length<300?e:e.substring(0,300)+"...",Xa=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function Qg(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const dm=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),qO=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function YO(e){return e==null?"":wg(uc(e),"dd.MM.yyyy")}function Zd(e){return(e==null?void 0:e.toString().split("T")[0])??""}function GO(e){return e==null?"":wg(uc(e),"dd.MM.yyyy HH:mm")}function ZO(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const XO=(e,t)=>Qg(" ",e?`${e},`:void 0,t),KO=(e,t)=>`${t}${e!=null?` (${e})`:""}`,JO=(e,t)=>`[${e??""}] ${t??""}`,d4=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),f4=e=>{const t=uc(e);return!Number.isNaN(t.getTime())},h4=e=>{if(!f4(e))return!1;const n=uc(e).getUTCFullYear();return n>=1900&&n<=2100};function QO(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function e7(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function t7(e,t){const n=new Date(e),r=new Date(t);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()-r.getTime()}function n7(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function r7(e=Date.now(),t=Date.now()){const n=new Date(e),r=new Date(t);n.setHours(10,0,0,0),r.setHours(0,0,0,0);const i=n.getTime()-r.getTime();return Math.floor(i/(1e3*3600*24))}function p4(e=new Date){const t=new Date(e);return t.setUTCDate(1),t}function m4(e=new Date){return jT(e)}function i7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),p4(t)}function o7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),m4(t)}function a7(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function s7(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function l7(e){return Zd(e.toISOString())}function g4(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,o=r.match(i);if(o){const a=o[2].toUpperCase(),s=o[3];try{return a==="B"?r=d4(s):a==="Q"&&(r=s.replace(/_/g," ").replace(/=([A-Fa-f0-9]{2})/g,(l,c)=>String.fromCharCode(parseInt(c,16)))),decodeURIComponent(r)}catch(l){return console.error("Error decoding MIME encoded filename:",l),r}}try{return decodeURIComponent(r)}catch(a){return console.error("Error decoding filename:",a),r}}return null}function Vu(e,t,n=!0){const r=URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.setAttribute("style","display: none"),n?(window.open(r,"_blank","noopener,noreferrer"),setTimeout(()=>URL.revokeObjectURL(r),6e4)):(i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r))}const c7=["application/pdf","text/plain","text/html","application/xml","text/xml","image/jpeg","image/png","image/gif","image/webp","image/svg+xml","image/bmp","image/x-icon","audio/mpeg","audio/wav","audio/ogg","audio/mp4","video/mp4","video/webm","video/ogg"],u7=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],v4=e=>c7.includes(e.type),b4=e=>u7.includes(e.toLowerCase());function d7(e,t){let n=(t==null?void 0:t.forcedName)??(t==null?void 0:t.fallbackName)??"file";if((t==null?void 0:t.forcedName)===void 0&&typeof e.headers.get=="function"){const o=e.headers.get("Content-disposition");typeof o=="string"&&o.length>0&&(n=g4(e.headers.get("Content-disposition"))??n)}const r=v4(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;Vu(e.data,n,r?i:!1)}function Ka(e,t=Ka.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}Ka.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const fm=(e,t)=>t?e?Ka(e).toLowerCase().includes(Ka(t.toLowerCase())):!1:!0,y4=(e,t)=>t?e?Ka(e).toLowerCase().startsWith(Ka(t.toLowerCase())):!1:!0,e0=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,o=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?fm(o,i.substring(1)):y4(o,i):fm(o,i):!0};function x4(e,t){return function(){return e.apply(t,arguments)}}const{toString:f7}=Object.prototype,{getPrototypeOf:t0}=Object,{iterator:Xd,toStringTag:w4}=Symbol,Kd=(e=>t=>{const n=f7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Or=e=>(e=e.toLowerCase(),t=>Kd(t)===e),Jd=e=>t=>typeof t===e,{isArray:ms}=Array,Ja=Jd("undefined");function bc(e){return e!==null&&!Ja(e)&&e.constructor!==null&&!Ja(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const _4=Or("ArrayBuffer");function h7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&_4(e.buffer),t}const p7=Jd("string"),Gn=Jd("function"),C4=Jd("number"),yc=e=>e!==null&&typeof e=="object",m7=e=>e===!0||e===!1,Cu=e=>{if(Kd(e)!=="object")return!1;const t=t0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(w4 in e)&&!(Xd in e)},g7=e=>{if(!yc(e)||bc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},v7=Or("Date"),b7=Or("File"),y7=Or("Blob"),x7=Or("FileList"),w7=e=>yc(e)&&Gn(e.pipe),_7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=Kd(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},C7=Or("URLSearchParams"),[S7,T7,$7,k7]=["ReadableStream","Request","Response","Headers"].map(Or),M7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ms(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(bc(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function S4(e,t){if(bc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const To=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,T4=e=>!Ja(e)&&e!==To;function hm(){const{caseless:e,skipUndefined:t}=T4(this)&&this||{},n={},r=(i,o)=>{const a=e&&S4(n,o)||o;Cu(n[a])&&Cu(i)?n[a]=hm(n[a],i):Cu(i)?n[a]=hm({},i):ms(i)?n[a]=i.slice():(!t||!Ja(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&xc(arguments[i],r);return n}const E7=(e,t,n,{allOwnKeys:r}={})=>(xc(t,(i,o)=>{n&&Gn(i)?e[o]=x4(i,n):e[o]=i},{allOwnKeys:r}),e),O7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A7=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},R7=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&t0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},D7=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},I7=e=>{if(!e)return null;if(ms(e))return e;let t=e.length;if(!C4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},j7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&t0(Uint8Array)),P7=(e,t)=>{const r=(e&&e[Xd]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},N7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L7=Or("HTMLFormElement"),F7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ib=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B7=Or("RegExp"),$4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};xc(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},z7=e=>{$4(e,(t,n)=>{if(Gn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Gn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},W7=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ms(e)?r(e):r(String(e).split(t)),n},U7=()=>{},H7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function V7(e){return!!(e&&Gn(e.append)&&e[w4]==="FormData"&&e[Xd])}const q7=e=>{const t=new Array(10),n=(r,i)=>{if(yc(r)){if(t.indexOf(r)>=0)return;if(bc(r))return r;if(!("toJSON"in r)){t[i]=r;const o=ms(r)?[]:{};return xc(r,(a,s)=>{const l=n(a,i+1);!Ja(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Y7=Or("AsyncFunction"),G7=e=>e&&(yc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),k4=((e,t)=>e?setImmediate:t?((n,r)=>(To.addEventListener("message",({source:i,data:o})=>{i===To&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),To.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(To.postMessage)),Z7=typeof queueMicrotask<"u"?queueMicrotask.bind(To):typeof process<"u"&&process.nextTick||k4,X7=e=>e!=null&&Gn(e[Xd]),ie={isArray:ms,isArrayBuffer:_4,isBuffer:bc,isFormData:_7,isArrayBufferView:h7,isString:p7,isNumber:C4,isBoolean:m7,isObject:yc,isPlainObject:Cu,isEmptyObject:g7,isReadableStream:S7,isRequest:T7,isResponse:$7,isHeaders:k7,isUndefined:Ja,isDate:v7,isFile:b7,isBlob:y7,isRegExp:B7,isFunction:Gn,isStream:w7,isURLSearchParams:C7,isTypedArray:j7,isFileList:x7,forEach:xc,merge:hm,extend:E7,trim:M7,stripBOM:O7,inherits:A7,toFlatObject:R7,kindOf:Kd,kindOfTest:Or,endsWith:D7,toArray:I7,forEachEntry:P7,matchAll:N7,isHTMLForm:L7,hasOwnProperty:ib,hasOwnProp:ib,reduceDescriptors:$4,freezeMethods:z7,toObjectSet:W7,toCamelCase:F7,noop:U7,toFiniteNumber:H7,findKey:S4,global:To,isContextDefined:T4,isSpecCompliantForm:V7,toJSONObject:q7,isAsyncFn:Y7,isThenable:G7,setImmediate:k4,asap:Z7,isIterable:X7};function lt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}ie.inherits(lt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}});const M4=lt.prototype,E4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{E4[e]={value:e}});Object.defineProperties(lt,E4);Object.defineProperty(M4,"isAxiosError",{value:!0});lt.from=(e,t,n,r,i,o)=>{const a=Object.create(M4);ie.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return lt.call(a,s,l,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",o&&Object.assign(a,o),a};const K7=null;function pm(e){return ie.isPlainObject(e)||ie.isArray(e)}function O4(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function ob(e,t,n){return e?e.concat(t).map(function(i,o){return i=O4(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function J7(e){return ie.isArray(e)&&!e.some(pm)}const Q7=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function Qd(e,t,n){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!ie.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ie.isDate(p))return p.toISOString();if(ie.isBoolean(p))return p.toString();if(!l&&ie.isBlob(p))throw new lt("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(p)||ie.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let x=p;if(p&&!g&&typeof p=="object"){if(ie.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(ie.isArray(p)&&J7(p)||(ie.isFileList(p)||ie.endsWith(m,"[]"))&&(x=ie.toArray(p)))return m=O4(m),x.forEach(function(w,C){!(ie.isUndefined(w)||w===null)&&t.append(a===!0?ob([m],C,o):a===null?m:m+"[]",c(w))}),!1}return pm(p)?!0:(t.append(ob(g,m,o),c(p)),!1)}const d=[],f=Object.assign(Q7,{defaultVisitor:u,convertValue:c,isVisitable:pm});function h(p,m){if(!ie.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),ie.forEach(p,function(x,_){(!(ie.isUndefined(x)||x===null)&&i.call(t,x,ie.isString(_)?_.trim():_,m,f))===!0&&h(x,m?m.concat(_):[_])}),d.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ab(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function n0(e,t){this._pairs=[],e&&Qd(e,this,t)}const A4=n0.prototype;A4.append=function(t,n){this._pairs.push([t,n])};A4.toString=function(t){const n=t?function(r){return t.call(this,r,ab)}:ab;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function eA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function R4(e,t,n){if(!t)return e;const r=n&&n.encode||eA;ie.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=ie.isURLSearchParams(t)?t.toString():new n0(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sb{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(r){r!==null&&t(r)})}}const D4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tA=typeof URLSearchParams<"u"?URLSearchParams:n0,nA=typeof FormData<"u"?FormData:null,rA=typeof Blob<"u"?Blob:null,iA={isBrowser:!0,classes:{URLSearchParams:tA,FormData:nA,Blob:rA},protocols:["http","https","file","blob","url","data"]},r0=typeof window<"u"&&typeof document<"u",mm=typeof navigator=="object"&&navigator||void 0,oA=r0&&(!mm||["ReactNative","NativeScript","NS"].indexOf(mm.product)<0),aA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sA=r0&&window.location.href||"http://localhost",lA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:r0,hasStandardBrowserEnv:oA,hasStandardBrowserWebWorkerEnv:aA,navigator:mm,origin:sA},Symbol.toStringTag,{value:"Module"})),kn={...lA,...iA};function cA(e,t){return Qd(e,new kn.classes.URLSearchParams,{visitor:function(n,r,i,o){return kn.isNode&&ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function uA(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dA(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function I4(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&ie.isArray(i)?i.length:a,l?(ie.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!ie.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&ie.isArray(i[a])&&(i[a]=dA(i[a])),!s)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){const n={};return ie.forEachEntry(e,(r,i)=>{t(uA(r),i,n,0)}),n}return null}function fA(e,t,n){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wc={transitional:D4,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ie.isObject(t);if(o&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return i?JSON.stringify(I4(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t)||ie.isReadableStream(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return cA(t,this.formSerializer).toString();if((s=ie.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Qd(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),fA(t)):t}],transformResponse:[function(t){const n=this.transitional||wc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ie.isResponse(t)||ie.isReadableStream(t))return t;if(t&&ie.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?lt.from(s,lt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kn.classes.FormData,Blob:kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{wc.headers[e]={}});const hA=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),pA=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
221
|
+
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&hA[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lb=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function Su(e){return e===!1||e==null?e:ie.isArray(e)?e.map(Su):String(e)}function mA(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const gA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Zh(e,t,n,r,i){if(ie.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ie.isString(t)){if(ie.isString(r))return t.indexOf(r)!==-1;if(ie.isRegExp(r))return r.test(t)}}function vA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bA(e,t){const n=ie.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let Zn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=zs(l);if(!u)throw new Error("header name must be a non-empty string");const d=ie.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Su(s))}const a=(s,l)=>ie.forEach(s,(c,u)=>o(c,u,l));if(ie.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(ie.isString(t)&&(t=t.trim())&&!gA(t))a(pA(t),n);else if(ie.isObject(t)&&ie.isIterable(t)){let s={},l,c;for(const u of t){if(!ie.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?ie.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=zs(t),t){const r=ie.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return mA(i);if(ie.isFunction(n))return n.call(this,i,r);if(ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zs(t),t){const r=ie.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Zh(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=zs(a),a){const s=ie.findKey(r,a);s&&(!n||Zh(r,r[s],s,n))&&(delete r[s],i=!0)}}return ie.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Zh(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ie.forEach(this,(i,o)=>{const a=ie.findKey(r,o);if(a){n[a]=Su(i),delete n[o];return}const s=t?vA(o):String(o).trim();s!==o&&delete n[o],n[s]=Su(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
222
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lb]=this[lb]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=zs(a);r[s]||(bA(i,a),r[s]=!0)}return ie.isArray(t)?t.forEach(o):o(t),this}};Zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(Zn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ie.freezeMethods(Zn);function Xh(e,t){const n=this||wc,r=t||n,i=Zn.from(r.headers);let o=r.data;return ie.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function j4(e){return!!(e&&e.__CANCEL__)}function gs(e,t,n){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,n),this.name="CanceledError"}ie.inherits(gs,lt,{__CANCEL__:!0});function P4(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new lt("Request failed with status code "+n.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function yA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xA(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function wA(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const qu=(e,t,n=3)=>{let r=0;const i=xA(50,250);return wA(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},cb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ub=e=>(...t)=>ie.asap(()=>e(...t)),_A=kn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kn.origin),kn.navigator&&/(msie|trident)/i.test(kn.navigator.userAgent)):()=>!0,CA=kn.hasStandardBrowserEnv?{write(e,t,n,r,i,o,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ie.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ie.isString(r)&&s.push(`path=${r}`),ie.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),ie.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function SA(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function N4(e,t,n){let r=!SA(t);return e&&(r||n==!1)?TA(e,t):t}const db=e=>e instanceof Zn?{...e}:e;function Fo(e,t){t=t||{};const n={};function r(c,u,d,f){return ie.isPlainObject(c)&&ie.isPlainObject(u)?ie.merge.call({caseless:f},c,u):ie.isPlainObject(u)?ie.merge({},u):ie.isArray(u)?u.slice():u}function i(c,u,d,f){if(ie.isUndefined(u)){if(!ie.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function o(c,u){if(!ie.isUndefined(u))return r(void 0,u)}function a(c,u){if(ie.isUndefined(u)){if(!ie.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(db(c),db(u),d,!0)};return ie.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);ie.isUndefined(f)&&d!==s||(n[u]=f)}),n}const L4=e=>{const t=Fo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;if(t.headers=a=Zn.from(a),t.url=R4(N4(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ie.isFormData(n)){if(kn.hasStandardBrowserEnv||kn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ie.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&a.set(u,d)})}}if(kn.hasStandardBrowserEnv&&(r&&ie.isFunction(r)&&(r=r(t)),r||r!==!1&&_A(t.url))){const l=i&&o&&CA.read(o);l&&a.set(i,l)}return t},$A=typeof XMLHttpRequest<"u",kA=$A&&function(e){return new Promise(function(n,r){const i=L4(e);let o=i.data;const a=Zn.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,f,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function x(){if(!g)return;const w=Zn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};P4(function(M){n(M),m()},function(M){r(M),m()},b),g=null}"onloadend"in g?g.onloadend=x:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(x)},g.onabort=function(){g&&(r(new lt("Request aborted",lt.ECONNABORTED,e,g)),g=null)},g.onerror=function(C){const b=C&&C.message?C.message:"Network Error",S=new lt(b,lt.ERR_NETWORK,e,g);S.event=C||null,r(S),g=null},g.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||D4;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new lt(C,b.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&ie.forEach(a.toJSON(),function(C,b){g.setRequestHeader(b,C)}),ie.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([f,p]=qu(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=qu(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{g&&(r(!w||w.type?new gs(null,e,g):w),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const _=yA(i.url);if(_&&kn.protocols.indexOf(_)===-1){r(new lt("Unsupported protocol "+_+":",lt.ERR_BAD_REQUEST,e));return}g.send(o||null)})},MA=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof lt?u:new gs(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new lt(`timeout ${t} of ms exceeded`,lt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>ie.asap(s),l}},EA=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},OA=async function*(e,t){for await(const n of AA(e))yield*EA(n,t)},AA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},fb=(e,t,n,r)=>{const i=OA(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=o+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},hb=64*1024,{isFunction:Qc}=ie,RA=(({Request:e,Response:t})=>({Request:e,Response:t}))(ie.global),{ReadableStream:pb,TextEncoder:mb}=ie.global,gb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},DA=e=>{e=ie.merge.call({skipUndefined:!0},RA,e);const{fetch:t,Request:n,Response:r}=e,i=t?Qc(t):typeof fetch=="function",o=Qc(n),a=Qc(r);if(!i)return!1;const s=i&&Qc(pb),l=i&&(typeof mb=="function"?(p=>m=>p.encode(m))(new mb):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=o&&s&&gb(()=>{let p=!1;const m=new n(kn.origin,{body:new pb,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=a&&s&&gb(()=>ie.isReadableStream(new r("").body)),d={stream:u&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,g)=>{let x=m&&m[p];if(x)return x.call(m);throw new lt(`Response type '${p}' is not supported`,lt.ERR_NOT_SUPPORT,g)})});const f=async p=>{if(p==null)return 0;if(ie.isBlob(p))return p.size;if(ie.isSpecCompliantForm(p))return(await new n(kn.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(p)||ie.isArrayBuffer(p))return p.byteLength;if(ie.isURLSearchParams(p)&&(p=p+""),ie.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const g=ie.toFiniteNumber(p.getContentLength());return g??f(m)};return async p=>{let{url:m,method:g,data:x,signal:_,cancelToken:w,timeout:C,onDownloadProgress:b,onUploadProgress:S,responseType:M,headers:$,withCredentials:k="same-origin",fetchOptions:R}=L4(p),T=t||fetch;M=M?(M+"").toLowerCase():"text";let E=MA([_,w&&w.toAbortSignal()],C),A=null;const I=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let j;try{if(S&&c&&g!=="get"&&g!=="head"&&(j=await h($,x))!==0){let H=new n(m,{method:"POST",body:x,duplex:"half"}),Y;if(ie.isFormData(x)&&(Y=H.headers.get("content-type"))&&$.setContentType(Y),H.body){const[q,Z]=cb(j,qu(ub(S)));x=fb(H.body,hb,q,Z)}}ie.isString(k)||(k=k?"include":"omit");const D=o&&"credentials"in n.prototype,O={...R,signal:E,method:g.toUpperCase(),headers:$.normalize().toJSON(),body:x,duplex:"half",credentials:D?k:void 0};A=o&&new n(m,O);let L=await(o?T(A,R):T(m,O));const z=u&&(M==="stream"||M==="response");if(u&&(b||z&&I)){const H={};["status","statusText","headers"].forEach(X=>{H[X]=L[X]});const Y=ie.toFiniteNumber(L.headers.get("content-length")),[q,Z]=b&&cb(Y,qu(ub(b),!0))||[];L=new r(fb(L.body,hb,q,()=>{Z&&Z(),I&&I()}),H)}M=M||"text";let N=await d[ie.findKey(d,M)||"text"](L,p);return!z&&I&&I(),await new Promise((H,Y)=>{P4(H,Y,{data:N,headers:Zn.from(L.headers),status:L.status,statusText:L.statusText,config:p,request:A})})}catch(D){throw I&&I(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,p,A),{cause:D.cause||D}):lt.from(D,D&&D.code,p,A)}}},IA=new Map,F4=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let a=o.length,s=a,l,c,u=IA;for(;s--;)l=o[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:DA(t)),u=c;return c};F4();const i0={http:K7,xhr:kA,fetch:{get:F4}};ie.forEach(i0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vb=e=>`- ${e}`,jA=e=>ie.isFunction(e)||e===null||e===!1;function PA(e,t){e=ie.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let a=0;a<n;a++){r=e[a];let s;if(i=r,!jA(r)&&(i=i0[(s=String(r)).toLowerCase()],i===void 0))throw new lt(`Unknown adapter '${s}'`);if(i&&(ie.isFunction(i)||(i=i.get(t))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
|
|
223
|
+
`+a.map(vb).join(`
|
|
224
|
+
`):" "+vb(a[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const B4={getAdapter:PA,adapters:i0};function Kh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gs(null,e)}function bb(e){return Kh(e),e.headers=Zn.from(e.headers),e.data=Xh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),B4.getAdapter(e.adapter||wc.adapter,e)(e).then(function(r){return Kh(e),r.data=Xh.call(e,e.transformResponse,r),r.headers=Zn.from(r.headers),r},function(r){return j4(r)||(Kh(e),r&&r.response&&(r.response.data=Xh.call(e,e.transformResponse,r.response),r.response.headers=Zn.from(r.response.headers))),Promise.reject(r)})}const z4="1.13.2",ef={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ef[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yb={};ef.transitional=function(t,n,r){function i(o,a){return"[Axios v"+z4+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new lt(i(a," has been removed"+(n?" in "+n:"")),lt.ERR_DEPRECATED);return n&&!yb[a]&&(yb[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};ef.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function NA(e,t,n){if(typeof e!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new lt("option "+o+" must be "+l,lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new lt("Unknown option "+o,lt.ERR_BAD_OPTION)}}const Tu={assertOptions:NA,validators:ef},Dr=Tu.validators;let Do=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sb,response:new sb}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
225
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Fo(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Tu.assertOptions(r,{silentJSONParsing:Dr.transitional(Dr.boolean),forcedJSONParsing:Dr.transitional(Dr.boolean),clarifyTimeoutError:Dr.transitional(Dr.boolean)},!1),i!=null&&(ie.isFunction(i)?n.paramsSerializer={serialize:i}:Tu.assertOptions(i,{encode:Dr.function,serialize:Dr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Tu.assertOptions(n,{baseUrl:Dr.spelling("baseURL"),withXsrfToken:Dr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ie.merge(o.common,o[n.method]);o&&ie.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Zn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const p=[bb.bind(this),void 0];for(p.unshift(...s),p.push(...c),f=p.length,u=Promise.resolve(n);d<f;)u=u.then(p[d++],p[d++]);return u}f=s.length;let h=n;for(;d<f;){const p=s[d++],m=s[d++];try{h=p(h)}catch(g){m.call(this,g);break}}try{u=bb.call(this,h)}catch(p){return Promise.reject(p)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Fo(this.defaults,t);const n=N4(t.baseURL,t.url,t.allowAbsoluteUrls);return R4(n,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Do.prototype[t]=function(n,r){return this.request(Fo(r||{},{method:t,url:n,data:(r||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Fo(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Do.prototype[t]=n(),Do.prototype[t+"Form"]=n(!0)});let LA=class W4{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new gs(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new W4(function(i){t=i}),cancel:t}}};function FA(e){return function(n){return e.apply(null,n)}}function BA(e){return ie.isObject(e)&&e.isAxiosError===!0}const gm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gm).forEach(([e,t])=>{gm[t]=e});function U4(e){const t=new Do(e),n=x4(Do.prototype.request,t);return ie.extend(n,Do.prototype,t,{allOwnKeys:!0}),ie.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return U4(Fo(e,i))},n}const Zt=U4(wc);Zt.Axios=Do;Zt.CanceledError=gs;Zt.CancelToken=LA;Zt.isCancel=j4;Zt.VERSION=z4;Zt.toFormData=Qd;Zt.AxiosError=lt;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=FA;Zt.isAxiosError=BA;Zt.mergeConfig=Fo;Zt.AxiosHeaders=Zn;Zt.formToJSON=e=>I4(ie.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=B4.getAdapter;Zt.HttpStatusCode=gm;Zt.default=Zt;const{Axios:qhe,AxiosError:Yhe,CanceledError:Ghe,isCancel:Zhe,CancelToken:Xhe,VERSION:Khe,all:Jhe,Cancel:Qhe,isAxiosError:epe,spread:tpe,toFormData:npe,AxiosHeaders:rpe,HttpStatusCode:ipe,formToJSON:ope,getAdapter:ape,mergeConfig:spe}=Zt;var eu={};/*!
|
|
226
|
+
* cookie
|
|
227
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
228
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
229
|
+
* MIT Licensed
|
|
230
|
+
*/var xb;function zA(){if(xb)return eu;xb=1,eu.parse=a,eu.serialize=c;var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(h,p){if(typeof h!="string")throw new TypeError("argument str must be a string");var m={},g=h.length;if(g<2)return m;var x=p&&p.decode||u,_=0,w=0,C=0;do{if(w=h.indexOf("=",_),w===-1)break;if(C=h.indexOf(";",_),C===-1)C=g;else if(w>C){_=h.lastIndexOf(";",w-1)+1;continue}var b=s(h,_,w),S=l(h,w,b),M=h.slice(b,S);if(!t.call(m,M)){var $=s(h,w+1,C),k=l(h,C,$);h.charCodeAt($)===34&&h.charCodeAt(k-1)===34&&($++,k--);var R=h.slice($,k);m[M]=f(R,x)}_=C+1}while(_<g);return m}function s(h,p,m){do{var g=h.charCodeAt(p);if(g!==32&&g!==9)return p}while(++p<m);return m}function l(h,p,m){for(;p>m;){var g=h.charCodeAt(--p);if(g!==32&&g!==9)return p+1}return m}function c(h,p,m){var g=m&&m.encode||encodeURIComponent;if(typeof g!="function")throw new TypeError("option encode is invalid");if(!n.test(h))throw new TypeError("argument name is invalid");var x=g(p);if(!r.test(x))throw new TypeError("argument val is invalid");var _=h+"="+x;if(!m)return _;if(m.maxAge!=null){var w=Math.floor(m.maxAge);if(!isFinite(w))throw new TypeError("option maxAge is invalid");_+="; Max-Age="+w}if(m.domain){if(!i.test(m.domain))throw new TypeError("option domain is invalid");_+="; Domain="+m.domain}if(m.path){if(!o.test(m.path))throw new TypeError("option path is invalid");_+="; Path="+m.path}if(m.expires){var C=m.expires;if(!d(C)||isNaN(C.valueOf()))throw new TypeError("option expires is invalid");_+="; Expires="+C.toUTCString()}if(m.httpOnly&&(_+="; HttpOnly"),m.secure&&(_+="; Secure"),m.partitioned&&(_+="; Partitioned"),m.priority){var b=typeof m.priority=="string"?m.priority.toLowerCase():m.priority;switch(b){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(m.sameSite){var S=typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.sameSite;switch(S){case!0:_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"strict":_+="; SameSite=Strict";break;case"none":_+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return _}function u(h){return h.indexOf("%")!==-1?decodeURIComponent(h):h}function d(h){return e.call(h)==="[object Date]"}function f(h,p){try{return p(h)}catch{return h}}return eu}var $u=zA();function WA(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function UA(e){return typeof e=="string"?$u.parse(e):typeof e=="object"&&e!==null?e:{}}function Jh(e,t={}){const n=HA(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function HA(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class VA{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=$u.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=UA(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=WA()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Jh(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Jh(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Jh(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=$u.serialize(t,i,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=$u.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const H4=fe.createContext(new VA),{Provider:lpe,Consumer:cpe}=H4;var tu={exports:{}},jt={};/** @license React v16.13.1
|
|
231
|
+
* react-is.production.min.js
|
|
232
|
+
*
|
|
233
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the MIT license found in the
|
|
236
|
+
* LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/var wb;function qA(){if(wb)return jt;wb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case t:switch(b=b.type,b){case l:case c:case r:case o:case i:case d:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:case a:return b;default:return S}}case n:return S}}}function C(b){return w(b)===c}return jt.AsyncMode=l,jt.ConcurrentMode=c,jt.ContextConsumer=s,jt.ContextProvider=a,jt.Element=t,jt.ForwardRef=u,jt.Fragment=r,jt.Lazy=p,jt.Memo=h,jt.Portal=n,jt.Profiler=o,jt.StrictMode=i,jt.Suspense=d,jt.isAsyncMode=function(b){return C(b)||w(b)===l},jt.isConcurrentMode=C,jt.isContextConsumer=function(b){return w(b)===s},jt.isContextProvider=function(b){return w(b)===a},jt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},jt.isForwardRef=function(b){return w(b)===u},jt.isFragment=function(b){return w(b)===r},jt.isLazy=function(b){return w(b)===p},jt.isMemo=function(b){return w(b)===h},jt.isPortal=function(b){return w(b)===n},jt.isProfiler=function(b){return w(b)===o},jt.isStrictMode=function(b){return w(b)===i},jt.isSuspense=function(b){return w(b)===d},jt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===c||b===o||b===i||b===d||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===a||b.$$typeof===s||b.$$typeof===u||b.$$typeof===g||b.$$typeof===x||b.$$typeof===_||b.$$typeof===m)},jt.typeOf=w,jt}var Pt={};/** @license React v16.13.1
|
|
238
|
+
* react-is.development.js
|
|
239
|
+
*
|
|
240
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the MIT license found in the
|
|
243
|
+
* LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/var _b;function YA(){return _b||(_b=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===r||P===c||P===o||P===i||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===p||P.$$typeof===h||P.$$typeof===a||P.$$typeof===s||P.$$typeof===u||P.$$typeof===g||P.$$typeof===x||P.$$typeof===_||P.$$typeof===m)}function C(P){if(typeof P=="object"&&P!==null){var te=P.$$typeof;switch(te){case t:var K=P.type;switch(K){case l:case c:case r:case o:case i:case d:return K;default:var G=K&&K.$$typeof;switch(G){case s:case u:case p:case h:case a:return G;default:return te}}case n:return te}}}var b=l,S=c,M=s,$=a,k=t,R=u,T=r,E=p,A=h,I=n,j=o,D=i,O=d,L=!1;function z(P){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(P)||C(P)===l}function N(P){return C(P)===c}function H(P){return C(P)===s}function Y(P){return C(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Z(P){return C(P)===u}function X(P){return C(P)===r}function J(P){return C(P)===p}function ee(P){return C(P)===h}function W(P){return C(P)===n}function F(P){return C(P)===o}function B(P){return C(P)===i}function V(P){return C(P)===d}Pt.AsyncMode=b,Pt.ConcurrentMode=S,Pt.ContextConsumer=M,Pt.ContextProvider=$,Pt.Element=k,Pt.ForwardRef=R,Pt.Fragment=T,Pt.Lazy=E,Pt.Memo=A,Pt.Portal=I,Pt.Profiler=j,Pt.StrictMode=D,Pt.Suspense=O,Pt.isAsyncMode=z,Pt.isConcurrentMode=N,Pt.isContextConsumer=H,Pt.isContextProvider=Y,Pt.isElement=q,Pt.isForwardRef=Z,Pt.isFragment=X,Pt.isLazy=J,Pt.isMemo=ee,Pt.isPortal=W,Pt.isProfiler=F,Pt.isStrictMode=B,Pt.isSuspense=V,Pt.isValidElementType=w,Pt.typeOf=C}()),Pt}var Cb;function GA(){return Cb||(Cb=1,process.env.NODE_ENV==="production"?tu.exports=qA():tu.exports=YA()),tu.exports}var Qh,Sb;function ZA(){if(Sb)return Qh;Sb=1;var e=GA(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(p){return e.isMemo(p)?i:o[p.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(p,m,g){if(typeof m!="string"){if(f){var x=d(m);x&&x!==f&&h(p,x,g)}var _=l(m);c&&(_=_.concat(c(m)));for(var w=a(p),C=a(m),b=0;b<_.length;++b){var S=_[b];if(!n[S]&&!(g&&g[S])&&!(C&&C[S])&&!(w&&w[S])){var M=u(m,S);try{s(p,S,M)}catch{}}}}return p}return Qh=h,Qh}ZA();function XA(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function o0(e,t){const n=v.useContext(H4);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[o,a]=v.useState(()=>n.getAll(i));XA()&&v.useLayoutEffect(()=>{function u(){const d=n.getAll(i);KA(e||null,d,o)&&a(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,o]);const s=v.useMemo(()=>n.set.bind(n),[n]),l=v.useMemo(()=>n.remove.bind(n),[n]),c=v.useMemo(()=>n.update.bind(n),[n]);return[o,s,l,c]}function KA(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const JA=()=>{const e=je.c(12),{axiosOptions:t,cookieDomain:n}=v.useContext(rn);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=["Authorization"],e[0]=r):r=e[0];const[,i,o]=o0(r);let a;e[1]!==t?(a=Zt.create(t),e[1]=t,e[2]=a):a=e[2];const s=a,l=QA;let c;e[3]!==s||e[4]!==n||e[5]!==i?(c=async(p,m)=>s.post("/user/login",{kid:p,password:m}).then(g=>(localStorage.setItem("token",g.data),window.dispatchEvent(new Event("dev-auth-change")),i("Authorization",g.data,{path:"/",secure:!0,sameSite:"none",domain:n,expires:rw(new Date(Date.now()),24)}),g.data)).catch(eR),e[3]=s,e[4]=n,e[5]=i,e[6]=c):c=e[6];const u=c;let d;e[7]!==o?(d=()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),window.dispatchEvent(new Event("dev-auth-change")),o("Authorization")},e[7]=o,e[8]=d):d=e[8];const f=d;let h;return e[9]!==u||e[10]!==f?(h={isAuthenticated:l,login:u,logout:f},e[9]=u,e[10]=f,e[11]=h):h=e[11],h};function QA(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function eR(e){return console.log(e),null}const tR=()=>{const e=je.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=o0(t),{msalScopes:r,msalExtraScopes:i}=v.useContext(Yd),{instance:o,inProgress:a}=d1.useMsal(),s=d1.useIsAuthenticated();let l;e[1]!==s?(l=()=>s,e[1]=s,e[2]=l):l=e[2];const c=l;let u;e[3]!==c||e[4]!==a?(u=()=>!c()&&a!==wT.InteractionStatus.None,e[3]=c,e[4]=a,e[5]=u):u=e[5];const d=u;let f;e[6]!==o||e[7]!==i||e[8]!==r?(f=async()=>o.loginRedirect({scopes:r,extraScopesToConsent:i}).then(nR).catch(rR),e[6]=o,e[7]=i,e[8]=r,e[9]=f):f=e[9];const h=f;let p;e[10]!==o||e[11]!==n?(p=()=>{o.logout(),localStorage.removeItem("user"),n("Authorization")},e[10]=o,e[11]=n,e[12]=p):p=e[12];const m=p;let g;return e[13]!==c||e[14]!==d||e[15]!==h||e[16]!==m?(g={isAuthenticated:c,isAuthenticating:d,login:h,logout:m},e[13]=c,e[14]=d,e[15]=h,e[16]=m,e[17]=g):g=e[17],g};function nR(){return""}function rR(){return null}const V4=()=>{const e=je.c(12),{useMsal:t}=v.useContext(Yd),n=JA(),r=tR();let i;e[0]!==n||e[1]!==r||e[2]!==t?(i=(u,d)=>t?r.login():n.login(u,d),e[0]=n,e[1]=r,e[2]=t,e[3]=i):i=e[3];const o=i,a=t?r.isAuthenticated:n.isAuthenticated;let s;e[4]!==r||e[5]!==t?(s=t?r.isAuthenticating:iR,e[4]=r,e[5]=t,e[6]=s):s=e[6];const l=t?r.logout:n.logout;let c;return e[7]!==a||e[8]!==s||e[9]!==l||e[10]!==o?(c={isAuthenticated:a,isAuthenticating:s,login:o,logout:l},e[7]=a,e[8]=s,e[9]=l,e[10]=o,e[11]=c):c=e[11],c};function iR(){return!1}const oR="_toast_1s57i_1",Ws={toast:oR},aR=e=>{switch(e){case"success":return 5e3;case"info":return 5e3;case"danger":return 1e4;case"warning":return 1e4;case"prompt":return 1e4;default:return 5e3}},tf=()=>{const e=je.c(1),t=sR;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function sR(e,t){const n=u4(e),r=aR(t),i=y.jsxs(y.Fragment,{children:[n,y.jsx(H_,{onClick:()=>ga.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});e:switch(t){case"success":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(F8,{size:12}),className:se("luminus-toast-success rounded shadow bg-success",Ws.toast)});break e}case"danger":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(k8,{size:12}),className:se("luminus-toast-danger rounded shadow bg-danger",Ws.toast)});break e}case"warning":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(_8,{size:12}),className:se("luminus-toast-warning rounded shadow bg-warning",Ws.toast)});break e}case"info":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx(S8,{size:12}),className:se("luminus-toast-info rounded shadow bg-info",Ws.toast)});break e}case"prompt":{ga(i,{id:n,duration:r,position:"top-center",icon:y.jsx($8,{size:12}),className:se("luminus-toast-prompt rounded shadow bg-light",Ws.toast)});break e}}}const lR=Zt.CancelToken,nf=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:o,noToastOnStatus:a}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=v.useContext(rn),{delegation:u}=v.useContext(i4),{getToken:d}=v.useContext(Yd),f=v.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=tf(),{isAuthenticating:p,isAuthenticated:m}=V4(),g=v.useMemo(()=>Zt.create(l),[l]),x=v.useCallback(async b=>{var M,$,k;if(t&&!b.headers.Authorization){if(p())return Promise.reject(new Error("Authentication in progress"));if(!m())return Promise.reject(new Error("Not authenticated"));const R=i?{token:i,expiresOn:rw(new Date(Date.now()),1)}:await d();if(!R)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(lw(R.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));b.headers.Authorization=`Bearer ${R.token}`}f!==null&&!o&&(b.headers.DelegationId=f.toString());const S=localStorage.getItem("search-use-asterisk")!=="false";return b.headers["Search-Use-Asterisk"]=S?"true":"false",(M=b.url)!=null&&M.includes("culture=")?b.url=($=b.url)==null?void 0:$.replace(/culture=[a-z]{2}/,`culture=${s}`):b.url=`${b.url}${(k=b.url)!=null&&k.includes("?")?"&":"?"}culture=${s}`,b},[t,d,s,i,f,o,p,m]),_=v.useCallback(async b=>{var $,k;if(Zt.isCancel(b)||b.message==="Authentication in progress"||b.message==="No bearer token"||b.message==="Token expired")return Promise.reject(b);let S;if(b.response.data instanceof Blob?S=await s4(b.response.data):S=Gd(b.response.data),S.length>0){const R=S.find(T=>T.name.toLowerCase()==="others");return R?(!r&&h(R.errors,"danger"),Promise.reject(b)):(!r&&h(c.validationError,"warning"),Promise.reject(b))}const M=l4(b);return M!==null?(!r&&h(`${c.permissionError}: ${Qg(", ",...M)}`,"danger"),Promise.reject(b)):(a??[]).includes(($=b.response)==null?void 0:$.status)?Promise.reject(b):((k=b.response)==null?void 0:k.status)===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(b)):b.message&&b.message==="Network Error"?(!r&&h(c.networkError,"danger"),Promise.reject(b)):(Zt.isCancel(b)||(!r&&h(c.unexpectedError,"danger"),(b.response||b.request)&&!r&&h(c.unexpectedError,"danger")),Promise.reject(b))},[h,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,a]),[w,C]=v.useState(!1);return v.useEffect(()=>{n&&(g.defaults.baseURL=n)},[n,g.defaults]),v.useEffect(()=>{g.interceptors.request.clear();const b=g.interceptors.request.use(x,S=>Promise.reject(S));return C(!0),console.log("useAxios: setting interceptors"),()=>{C(!1),console.log("useAxios: ejecting interceptors"),g.interceptors.request.eject(b)}},[g.interceptors.request,x]),v.useEffect(()=>{g.interceptors.response.clear();const b=g.interceptors.response.use(S=>S,_);return()=>{g.interceptors.response.eject(b)}},[g.interceptors.response,_]),g.interceptorsUsed=w,g};let ol;const a0=()=>{const e=je.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:o}=v.useContext(q_);let a;e[0]!==i?(a=()=>{i()},e[0]=i,e[1]=a):a=e[1];const s=a;let l;e[2]!==s?(l=()=>{s(),ol&&ol(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),ol&&ol(!1)},e[4]=s,e[5]=u):u=e[5];const d=u;let f;e[6]!==r?(f=async(m,g)=>(r(m,g),new Promise(cR)),e[6]=r,e[7]=f):f=e[7];const h=f;let p;return e[8]!==h||e[9]!==d||e[10]!==c||e[11]!==t||e[12]!==n||e[13]!==o?(p={confirm:h,onConfirm:c,onCancel:d,show:t,text:n,textSm:o},e[8]=h,e[9]=d,e[10]=c,e[11]=t,e[12]=n,e[13]=o,e[14]=p):p=e[14],p};function cR(e){ol=e}var wt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const a of i)o[a]=a;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),a={};for(const s of o)a[s]=i[s];return e.objectValues(a)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&o.push(a);return o},e.find=(i,o)=>{for(const a of i)if(o(a))return a},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(a=>typeof a=="string"?`'${a}'`:a).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(wt||(wt={}));var vm;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(vm||(vm={}));const Se=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),di=e=>{switch(typeof e){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map<"u"&&e instanceof Map?Se.map:typeof Set<"u"&&e instanceof Set?Se.set:typeof Date<"u"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}},he=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),uR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class er extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union")a.unionErrors.map(i);else if(a.code==="invalid_return_type")i(a.returnTypeError);else if(a.code==="invalid_arguments")i(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const c=a.path[l];l===a.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(a))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof er))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}er.create=e=>new er(e);const Qa=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===Se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case he.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let q4=Qa;function dR(e){q4=e}function Yu(){return q4}const Gu=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],a={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(a,{data:t,defaultError:s}).message;return{...i,path:o,message:s}},fR=[];function _e(e,t){const n=Yu(),r=Gu({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Qa?void 0:Qa].filter(i=>!!i)});e.common.issues.push(r)}class On{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return He;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,a=await i.value;r.push({key:o,value:a})}return On.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:a}=i;if(o.status==="aborted"||a.status==="aborted")return He;o.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof a.value<"u"||i.alwaysSet)&&(r[o.value]=a.value)}return{status:t.value,value:r}}}const He=Object.freeze({status:"aborted"}),Ea=e=>({status:"dirty",value:e}),Nn=e=>({status:"valid",value:e}),bm=e=>e.status==="aborted",ym=e=>e.status==="dirty",Bo=e=>e.status==="valid",Tl=e=>typeof Promise<"u"&&e instanceof Promise;var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class Ur{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Tb=(e,t)=>{if(Bo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new er(e.common.issues);return this._error=n,this._error}}};function ct(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(a,s)=>{const{message:l}=e;return a.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:l??n??s.defaultError}},description:i}}class pt{get description(){return this._def.description}_getType(t){return di(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:di(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new On,ctx:{common:t.parent.common,data:t.data,parsedType:di(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Tl(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:di(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Tb(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:di(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Bo(o)?{value:o.value}:{issues:n.common.issues}}catch(o){(i=(r=o==null?void 0:o.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>Bo(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:di(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(Tl(i)?i:Promise.resolve(i));return Tb(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const a=t(i),s=()=>o.addIssue({code:he.custom,...r(i)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new $r({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Br.create(this,this._def)}nullable(){return Ji.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Sr.create(this)}promise(){return ts.create(this,this._def)}or(t){return El.create([this,t],this._def)}and(t){return Ol.create(this,t,this._def)}transform(t){return new $r({...ct(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new jl({...ct(this._def),innerType:this,defaultValue:n,typeName:qe.ZodDefault})}brand(){return new s0({typeName:qe.ZodBranded,type:this,...ct(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Pl({...ct(this._def),innerType:this,catchValue:n,typeName:qe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return _c.create(this,t)}readonly(){return Nl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const hR=/^c[^\s-]{8,}$/i,pR=/^[0-9a-z]+$/,mR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,gR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,vR=/^[a-z0-9_-]{21}$/i,bR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,yR=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,xR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ep;const _R=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,CR=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,SR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,TR=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$R=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,kR=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Y4="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",MR=new RegExp(`^${Y4}$`);function G4(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function ER(e){return new RegExp(`^${G4(e)}$`)}function Z4(e){let t=`${Y4}T${G4(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function OR(e,t){return!!((t==="v4"||!t)&&_R.test(e)||(t==="v6"||!t)&&SR.test(e))}function AR(e,t){if(!bR.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function RR(e,t){return!!((t==="v4"||!t)&&CR.test(e)||(t==="v6"||!t)&&TR.test(e))}class _r extends pt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Se.string,received:o.parsedType}),He}const r=new On;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const a=t.data.length>o.value,s=t.data.length<o.value;(a||s)&&(i=this._getOrReturnCtx(t,i),a?_e(i,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&_e(i,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")xR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")ep||(ep=new RegExp(wR,"u")),ep.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")gR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")vR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")hR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")pR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")mR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:he.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"regex",code:he.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?Z4(o).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?MR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?ER(o).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:he.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?yR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?OR(t.data,o.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?AR(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"jwt",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?RR(t.data,o.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cidr",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?$R.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?kR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):wt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:he.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new _r({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new _r({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new _r({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}_r.create=e=>new _r({checks:[],typeName:qe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});function DR(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return o%a/10**i}class Zi extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Se.number){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Se.number,received:o.parsedType}),He}let r;const i=new On;for(const o of this._def.checks)o.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?DR(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_finite,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new Zi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Zi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Zi.create=e=>new Zi({checks:[],typeName:qe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ct(e)});class Xi extends pt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Se.bigint)return this._getInvalidInput(t);let r;const i=new On;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):wt.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Se.bigint,received:n.parsedType}),He}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new Xi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Xi({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Xi.create=e=>new Xi({checks:[],typeName:qe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});class $l extends pt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.boolean,received:r.parsedType}),He}return Nn(t.data)}}$l.create=e=>new $l({typeName:qe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ct(e)});class zo extends pt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_type,expected:Se.date,received:o.parsedType}),He}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return _e(o,{code:he.invalid_date}),He}const r=new On;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:he.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):wt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new zo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}zo.create=e=>new zo({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:qe.ZodDate,...ct(e)});class Zu extends pt{_parse(t){if(this._getType(t)!==Se.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.symbol,received:r.parsedType}),He}return Nn(t.data)}}Zu.create=e=>new Zu({typeName:qe.ZodSymbol,...ct(e)});class kl extends pt{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.undefined,received:r.parsedType}),He}return Nn(t.data)}}kl.create=e=>new kl({typeName:qe.ZodUndefined,...ct(e)});class Ml extends pt{_parse(t){if(this._getType(t)!==Se.null){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.null,received:r.parsedType}),He}return Nn(t.data)}}Ml.create=e=>new Ml({typeName:qe.ZodNull,...ct(e)});class es extends pt{constructor(){super(...arguments),this._any=!0}_parse(t){return Nn(t.data)}}es.create=e=>new es({typeName:qe.ZodAny,...ct(e)});class Io extends pt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Nn(t.data)}}Io.create=e=>new Io({typeName:qe.ZodUnknown,...ct(e)});class _i extends pt{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:Se.never,received:n.parsedType}),He}}_i.create=e=>new _i({typeName:qe.ZodNever,...ct(e)});class Xu extends pt{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.void,received:r.parsedType}),He}return Nn(t.data)}}Xu.create=e=>new Xu({typeName:qe.ZodVoid,...ct(e)});class Sr extends pt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Se.array)return _e(n,{code:he.invalid_type,expected:Se.array,received:n.parsedType}),He;if(i.exactLength!==null){const a=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(a||s)&&(_e(n,{code:a?he.too_big:he.too_small,minimum:s?i.exactLength.value:void 0,maximum:a?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(_e(n,{code:he.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(_e(n,{code:he.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,s)=>i.type._parseAsync(new Ur(n,a,n.path,s)))).then(a=>On.mergeArray(r,a));const o=[...n.data].map((a,s)=>i.type._parseSync(new Ur(n,a,n.path,s)));return On.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Sr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Sr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Sr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Sr.create=(e,t)=>new Sr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...ct(t)});function Ma(e){if(e instanceof tn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Br.create(Ma(r))}return new tn({...e._def,shape:()=>t})}else return e instanceof Sr?new Sr({...e._def,type:Ma(e.element)}):e instanceof Br?Br.create(Ma(e.unwrap())):e instanceof Ji?Ji.create(Ma(e.unwrap())):e instanceof Hr?Hr.create(e.items.map(t=>Ma(t))):e}class tn extends pt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=wt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Se.object){const c=this._getOrReturnCtx(t);return _e(c,{code:he.invalid_type,expected:Se.object,received:c.parsedType}),He}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof _i&&this._def.unknownKeys==="strip"))for(const c in i.data)a.includes(c)||s.push(c);const l=[];for(const c of a){const u=o[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ur(i,d,i.path,c)),alwaysSet:c in i.data})}if(this._def.catchall instanceof _i){const c=this._def.unknownKeys;if(c==="passthrough")for(const u of s)l.push({key:{status:"valid",value:u},value:{status:"valid",value:i.data[u]}});else if(c==="strict")s.length>0&&(_e(i,{code:he.unrecognized_keys,keys:s}),r.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const c=this._def.catchall;for(const u of s){const d=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ur(i,d,i.path,u)),alwaysSet:u in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const c=[];for(const u of l){const d=await u.key,f=await u.value;c.push({key:d,value:f,alwaysSet:u.alwaysSet})}return c}).then(c=>On.mergeObjectSync(r,c)):On.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new tn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var o,a;const i=((a=(o=this._def).errorMap)==null?void 0:a.call(o,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Oe.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new tn({...this._def,unknownKeys:"strip"})}passthrough(){return new tn({...this._def,unknownKeys:"passthrough"})}extend(t){return new tn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new tn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:qe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new tn({...this._def,catchall:t})}pick(t){const n={};for(const r of wt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new tn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of wt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new tn({...this._def,shape:()=>n})}deepPartial(){return Ma(this)}partial(t){const n={};for(const r of wt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new tn({...this._def,shape:()=>n})}required(t){const n={};for(const r of wt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Br;)o=o._def.innerType;n[r]=o}return new tn({...this._def,shape:()=>n})}keyof(){return X4(wt.objectKeys(this.shape))}}tn.create=(e,t)=>new tn({shape:()=>e,unknownKeys:"strip",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});tn.strictCreate=(e,t)=>new tn({shape:()=>e,unknownKeys:"strict",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});tn.lazycreate=(e,t)=>new tn({shape:e,unknownKeys:"strip",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});class El extends pt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const s of o)if(s.result.status==="valid")return s.result;for(const s of o)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const a=o.map(s=>new er(s.ctx.common.issues));return _e(n,{code:he.invalid_union,unionErrors:a}),He}if(n.common.async)return Promise.all(r.map(async o=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(i);{let o;const a=[];for(const l of r){const c={...n,common:{...n.common,issues:[]},parent:null},u=l._parseSync({data:n.data,path:n.path,parent:c});if(u.status==="valid")return u;u.status==="dirty"&&!o&&(o={result:u,ctx:c}),c.common.issues.length&&a.push(c.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(l=>new er(l));return _e(n,{code:he.invalid_union,unionErrors:s}),He}}get options(){return this._def.options}}El.create=(e,t)=>new El({options:e,typeName:qe.ZodUnion,...ct(t)});const ai=e=>e instanceof Rl?ai(e.schema):e instanceof $r?ai(e.innerType()):e instanceof Dl?[e.value]:e instanceof Ki?e.options:e instanceof Il?wt.objectValues(e.enum):e instanceof jl?ai(e._def.innerType):e instanceof kl?[void 0]:e instanceof Ml?[null]:e instanceof Br?[void 0,...ai(e.unwrap())]:e instanceof Ji?[null,...ai(e.unwrap())]:e instanceof s0||e instanceof Nl?ai(e.unwrap()):e instanceof Pl?ai(e._def.innerType):[];class rf extends pt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.object)return _e(n,{code:he.invalid_type,expected:Se.object,received:n.parsedType}),He;const r=this.discriminator,i=n.data[r],o=this.optionsMap.get(i);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(_e(n,{code:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const o of n){const a=ai(o.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of a){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,o)}}return new rf({typeName:qe.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ct(r)})}}function xm(e,t){const n=di(e),r=di(t);if(e===t)return{valid:!0,data:e};if(n===Se.object&&r===Se.object){const i=wt.objectKeys(t),o=wt.objectKeys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of o){const l=xm(e[s],t[s]);if(!l.valid)return{valid:!1};a[s]=l.data}return{valid:!0,data:a}}else if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const a=e[o],s=t[o],l=xm(a,s);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===Se.date&&r===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Ol extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,a)=>{if(bm(o)||bm(a))return He;const s=xm(o.value,a.value);return s.valid?((ym(o)||ym(a))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:he.invalid_intersection_types}),He)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,a])=>i(o,a)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Ol.create=(e,t,n)=>new Ol({left:e,right:t,typeName:qe.ZodIntersection,...ct(n)});class Hr extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.array)return _e(r,{code:he.invalid_type,expected:Se.array,received:r.parsedType}),He;if(r.data.length<this._def.items.length)return _e(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),He;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((a,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new Ur(r,a,r.path,s)):null}).filter(a=>!!a);return r.common.async?Promise.all(o).then(a=>On.mergeArray(n,a)):On.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Hr({...this._def,rest:t})}}Hr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Hr({items:e,typeName:qe.ZodTuple,rest:null,...ct(t)})};class Al extends pt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.object)return _e(r,{code:he.invalid_type,expected:Se.object,received:r.parsedType}),He;const i=[],o=this._def.keyType,a=this._def.valueType;for(const s in r.data)i.push({key:o._parse(new Ur(r,s,r.path,s)),value:a._parse(new Ur(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?On.mergeObjectAsync(n,i):On.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof pt?new Al({keyType:t,valueType:n,typeName:qe.ZodRecord,...ct(r)}):new Al({keyType:_r.create(),valueType:t,typeName:qe.ZodRecord,...ct(n)})}}class Ku extends pt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.map)return _e(r,{code:he.invalid_type,expected:Se.map,received:r.parsedType}),He;const i=this._def.keyType,o=this._def.valueType,a=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new Ur(r,s,r.path,[c,"key"])),value:o._parse(new Ur(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of a){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of a){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}Ku.create=(e,t,n)=>new Ku({valueType:t,keyType:e,typeName:qe.ZodMap,...ct(n)});class Wo extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.set)return _e(r,{code:he.invalid_type,expected:Se.set,received:r.parsedType}),He;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(_e(r,{code:he.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(_e(r,{code:he.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function a(l){const c=new Set;for(const u of l){if(u.status==="aborted")return He;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>o._parse(new Ur(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>a(l)):a(s)}min(t,n){return new Wo({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Wo({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Wo.create=(e,t)=>new Wo({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...ct(t)});class ja extends pt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.function)return _e(n,{code:he.invalid_type,expected:Se.function,received:n.parsedType}),He;function r(s,l){return Gu({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yu(),Qa].filter(c=>!!c),issueData:{code:he.invalid_arguments,argumentsError:l}})}function i(s,l){return Gu({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Yu(),Qa].filter(c=>!!c),issueData:{code:he.invalid_return_type,returnTypeError:l}})}const o={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof ts){const s=this;return Nn(async function(...l){const c=new er([]),u=await s._def.args.parseAsync(l,o).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(a,this,u);return await s._def.returns._def.type.parseAsync(d,o).catch(h=>{throw c.addIssue(i(d,h)),c})})}else{const s=this;return Nn(function(...l){const c=s._def.args.safeParse(l,o);if(!c.success)throw new er([r(l,c.error)]);const u=Reflect.apply(a,this,c.data),d=s._def.returns.safeParse(u,o);if(!d.success)throw new er([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new ja({...this._def,args:Hr.create(t).rest(Io.create())})}returns(t){return new ja({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new ja({args:t||Hr.create([]).rest(Io.create()),returns:n||Io.create(),typeName:qe.ZodFunction,...ct(r)})}}class Rl extends pt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Rl.create=(e,t)=>new Rl({getter:e,typeName:qe.ZodLazy,...ct(t)});class Dl extends pt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}Dl.create=(e,t)=>new Dl({value:e,typeName:qe.ZodLiteral,...ct(t)});function X4(e,t){return new Ki({values:e,typeName:qe.ZodEnum,...ct(t)})}class Ki extends pt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:wt.joinValues(r),received:n.parsedType,code:he.invalid_type}),He}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{received:n.data,code:he.invalid_enum_value,options:r}),He}return Nn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ki.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ki.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ki.create=X4;class Il extends pt{_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){const i=wt.objectValues(n);return _e(r,{expected:wt.joinValues(i),received:r.parsedType,code:he.invalid_type}),He}if(this._cache||(this._cache=new Set(wt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=wt.objectValues(n);return _e(r,{received:r.data,code:he.invalid_enum_value,options:i}),He}return Nn(t.data)}get enum(){return this._def.values}}Il.create=(e,t)=>new Il({values:e,typeName:qe.ZodNativeEnum,...ct(t)});class ts extends pt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.promise&&n.common.async===!1)return _e(n,{code:he.invalid_type,expected:Se.promise,received:n.parsedType}),He;const r=n.parsedType===Se.promise?n.data:Promise.resolve(n.data);return Nn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ts.create=(e,t)=>new ts({type:e,typeName:qe.ZodPromise,...ct(t)});class $r extends pt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:a=>{_e(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const a=i.transform(r.data,o);if(r.common.async)return Promise.resolve(a).then(async s=>{if(n.value==="aborted")return He;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?He:l.status==="dirty"||n.value==="dirty"?Ea(l.value):l});{if(n.value==="aborted")return He;const s=this._def.schema._parseSync({data:a,path:r.path,parent:r});return s.status==="aborted"?He:s.status==="dirty"||n.value==="dirty"?Ea(s.value):s}}if(i.type==="refinement"){const a=s=>{const l=i.refinement(s,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?He:(s.status==="dirty"&&n.dirty(),a(s.value),{status:n.value,value:s.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>s.status==="aborted"?He:(s.status==="dirty"&&n.dirty(),a(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Bo(a))return He;const s=i.transform(a.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:s}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Bo(a)?Promise.resolve(i.transform(a.value,o)).then(s=>({status:n.value,value:s})):He);wt.assertNever(i)}}$r.create=(e,t,n)=>new $r({schema:e,typeName:qe.ZodEffects,effect:t,...ct(n)});$r.createWithPreprocess=(e,t,n)=>new $r({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...ct(n)});class Br extends pt{_parse(t){return this._getType(t)===Se.undefined?Nn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Br.create=(e,t)=>new Br({innerType:e,typeName:qe.ZodOptional,...ct(t)});class Ji extends pt{_parse(t){return this._getType(t)===Se.null?Nn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ji.create=(e,t)=>new Ji({innerType:e,typeName:qe.ZodNullable,...ct(t)});class jl extends pt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Se.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}jl.create=(e,t)=>new jl({innerType:e,typeName:qe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ct(t)});class Pl extends pt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Tl(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new er(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Pl.create=(e,t)=>new Pl({innerType:e,typeName:qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ct(t)});class Ju extends pt{_parse(t){if(this._getType(t)!==Se.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:he.invalid_type,expected:Se.nan,received:r.parsedType}),He}return{status:"valid",value:t.data}}}Ju.create=e=>new Ju({typeName:qe.ZodNaN,...ct(e)});const IR=Symbol("zod_brand");class s0 extends pt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class _c extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?He:o.status==="dirty"?(n.dirty(),Ea(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?He:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new _c({in:t,out:n,typeName:qe.ZodPipeline})}}class Nl extends pt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Bo(i)&&(i.value=Object.freeze(i.value)),i);return Tl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Nl.create=(e,t)=>new Nl({innerType:e,typeName:qe.ZodReadonly,...ct(t)});function $b(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function K4(e,t={},n){return e?es.create().superRefine((r,i)=>{const o=e(r);if(o instanceof Promise)return o.then(a=>{if(!a){const s=$b(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!o){const a=$b(t,r),s=a.fatal??n??!0;i.addIssue({code:"custom",...a,fatal:s})}}):es.create()}const jR={object:tn.lazycreate};var qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(qe||(qe={}));const PR=(e,t={message:`Input not instance of ${e.name}`})=>K4(n=>n instanceof e,t),l0=_r.create,J4=Zi.create,NR=Ju.create,LR=Xi.create,Q4=$l.create,FR=zo.create,BR=Zu.create,zR=kl.create,WR=Ml.create,eC=es.create,UR=Io.create,HR=_i.create,VR=Xu.create,tC=Sr.create,hi=tn.create,qR=tn.strictCreate,YR=El.create,GR=rf.create,ZR=Ol.create,XR=Hr.create,KR=Al.create,JR=Ku.create,QR=Wo.create,e9=ja.create,t9=Rl.create,n9=Dl.create,nC=Ki.create,r9=Il.create,i9=ts.create,kb=$r.create,o9=Br.create,a9=Ji.create,rC=$r.createWithPreprocess,s9=_c.create,l9=()=>l0().optional(),c9=()=>J4().optional(),u9=()=>Q4().optional(),al={string:e=>_r.create({...e,coerce:!0}),number:e=>Zi.create({...e,coerce:!0}),boolean:e=>$l.create({...e,coerce:!0}),bigint:e=>Xi.create({...e,coerce:!0}),date:e=>zo.create({...e,coerce:!0})},d9=He,sl=Object.freeze(Object.defineProperty({__proto__:null,BRAND:IR,DIRTY:Ea,EMPTY_PATH:fR,INVALID:He,NEVER:d9,OK:Nn,ParseStatus:On,Schema:pt,ZodAny:es,ZodArray:Sr,ZodBigInt:Xi,ZodBoolean:$l,ZodBranded:s0,ZodCatch:Pl,ZodDate:zo,ZodDefault:jl,ZodDiscriminatedUnion:rf,ZodEffects:$r,ZodEnum:Ki,ZodError:er,get ZodFirstPartyTypeKind(){return qe},ZodFunction:ja,ZodIntersection:Ol,ZodIssueCode:he,ZodLazy:Rl,ZodLiteral:Dl,ZodMap:Ku,ZodNaN:Ju,ZodNativeEnum:Il,ZodNever:_i,ZodNull:Ml,ZodNullable:Ji,ZodNumber:Zi,ZodObject:tn,ZodOptional:Br,ZodParsedType:Se,ZodPipeline:_c,ZodPromise:ts,ZodReadonly:Nl,ZodRecord:Al,ZodSchema:pt,ZodSet:Wo,ZodString:_r,ZodSymbol:Zu,ZodTransformer:$r,ZodTuple:Hr,ZodType:pt,ZodUndefined:kl,ZodUnion:El,ZodUnknown:Io,ZodVoid:Xu,addIssueToContext:_e,any:eC,array:tC,bigint:LR,boolean:Q4,coerce:al,custom:K4,date:FR,datetimeRegex:Z4,defaultErrorMap:Qa,discriminatedUnion:GR,effect:kb,enum:nC,function:e9,getErrorMap:Yu,getParsedType:di,instanceof:PR,intersection:ZR,isAborted:bm,isAsync:Tl,isDirty:ym,isValid:Bo,late:jR,lazy:t9,literal:n9,makeIssue:Gu,map:JR,nan:NR,nativeEnum:r9,never:HR,null:WR,nullable:a9,number:J4,object:hi,get objectUtil(){return vm},oboolean:u9,onumber:c9,optional:o9,ostring:l9,pipeline:s9,preprocess:rC,promise:i9,quotelessJson:uR,record:KR,set:QR,setErrorMap:dR,strictObject:qR,string:l0,symbol:BR,transformer:kb,tuple:XR,undefined:zR,union:YR,unknown:UR,get util(){return wt},void:VR},Symbol.toStringTag,{value:"Module"})),of=()=>{const e=je.c(43),{texts:t}=v.useContext(rn),{formValidation:n}=t;let r;e[0]!==n?(r=(O,L)=>{const z=L===void 0?!1:L;let N=(O!=null&&O.useCoerce?al:sl).string({invalid_type_error:n.required,required_error:n.required});return z||(N=N.min(1,n.required)),O!=null&&O.email&&(N=N.email(n.invalidEmail)),O!=null&&O.length&&(N=N.min(O.length,n.length(O.length))),O!=null&&O.minLength&&(N=N.min(O.minLength,n.minLength(O.minLength))),O!=null&&O.maxLength&&(N=N.max(O.maxLength,n.maxLength(O.maxLength))),O!=null&&O.numeric&&(N=N.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),O!=null&&O.regex&&(N=N.regex(O.regex,n.invalidFormat)),N.transform(f9)},e[0]=n,e[1]=r):r=e[1];const i=r;let o;e[2]!==i?(o=O=>i(O,!1),e[2]=i,e[3]=o):o=e[3];const a=o;let s;e[4]!==i?(s=O=>i(O,!0).nullable().optional().transform(h9),e[4]=i,e[5]=s):s=e[5];const l=s;let c;e[6]!==n?(c=O=>{const L=(O==null?void 0:O.min)??Number.MIN_SAFE_INTEGER,z=(O==null?void 0:O.max)??Number.MAX_SAFE_INTEGER,N=(O!=null&&O.useCoerce?al:sl).number({invalid_type_error:n.required,required_error:n.required}).min(L,n.lessThanMin(L)).max(z,n.moreThanMax(z));return N.transform(p9),N},e[6]=n,e[7]=c):c=e[7];const u=c;let d;e[8]!==u?(d=O=>u(O).nullable().optional().transform(m9),e[8]=u,e[9]=d):d=e[9];const f=d;let h;e[10]!==n.required?(h=O=>((O==null?void 0:O.useCoerce)===!1?sl:al).boolean({invalid_type_error:n.required,required_error:n.required}).transform(g9),e[10]=n.required,e[11]=h):h=e[11];const p=h;let m;e[12]!==n.invalidDate||e[13]!==n.required?(m=O=>(O!=null&&O.useCoerce?al:sl).string({invalid_type_error:n.required,required_error:n.required}).refine(h4,{message:n.invalidDate}).transform(v9),e[12]=n.invalidDate,e[13]=n.required,e[14]=m):m=e[14];const g=m;let x;e[15]!==g?(x=O=>rC(b9,g(O).nullable().optional()).transform(y9),e[15]=g,e[16]=x):x=e[16];const _=x;let w;e[17]!==n.required?(w=(O,L)=>nC(O,{invalid_type_error:n.required,required_error:n.required}).transform(x9),e[17]=n.required,e[18]=w):w=e[18];const C=w;let b;e[19]!==C?(b=(O,L)=>C(O,L).nullable().transform(w9),e[19]=C,e[20]=b):b=e[20];const S=b;let M;e[21]!==f?(M=O=>hi({id:f({useCoerce:!0})}).nullable().transform(_9),e[21]=f,e[22]=M):M=e[22];const $=M;let k;e[23]!==u?(k=O=>hi({id:u()}).transform(C9),e[23]=u,e[24]=k):k=e[24];const R=k;let T;e[25]!==l?(T=O=>hi({id:l({useCoerce:!0})}).nullable().transform(S9),e[25]=l,e[26]=T):T=e[26];const E=T;let A;e[27]!==a?(A=O=>hi({id:a()}).transform(T9),e[27]=a,e[28]=A):A=e[28];const I=A,j=k9;let D;return e[29]!==p||e[30]!==_||e[31]!==g||e[32]!==S||e[33]!==C||e[34]!==f||e[35]!==u||e[36]!==$||e[37]!==R||e[38]!==E||e[39]!==I||e[40]!==l||e[41]!==a?(D={zString:l,zStringRequired:a,zNumber:f,zNumberRequired:u,zBool:p,zDate:_,zDateRequired:g,zEnum:S,zEnumRequired:C,zObjectIdInt:$,zObjectIdIntRequired:R,zObjectIdStr:E,zObjectIdStrRequired:I,zFile:j},e[29]=p,e[30]=_,e[31]=g,e[32]=S,e[33]=C,e[34]=f,e[35]=u,e[36]=$,e[37]=R,e[38]=E,e[39]=I,e[40]=l,e[41]=a,e[42]=D):D=e[42],D};function f9(e){return e??null}function h9(e){return e??null}function p9(e){return e??null}function m9(e){return e??null}function g9(e){return e??null}function v9(e){return e??null}function b9(e){return e===""?null:e}function y9(e){return e??null}function x9(e){return e??null}function w9(e){return e??null}function _9(e){return e??null}function C9(e){return e??null}function S9(e){return e??null}function T9(e){return e??null}function $9(e){return Array.from(e??[])}function k9(e){const{required:t,multiple:n,maxFileSize:r}=e;return eC().transform($9).refine(o=>!t||(o==null?void 0:o.length)>0,"File is required.").refine(o=>n||(o==null?void 0:o.length)<=1,"Multiple files not allowed.").refine(o=>o.every(a=>a.size<=r),`Maximum file size is ${Xa(r)}.`).transform(o=>(n?o:o==null?void 0:o[0])??null)}const iC=(e,t)=>{const n=je.c(4);let r,i;n[0]!==t||n[1]!==e?(r=()=>{const o=a=>{e.some(s=>s.current&&s.current.contains(a.target))||t()};return document.addEventListener("mouseup",o),()=>{document.removeEventListener("mouseup",o)}},i=[e,t],n[0]=t,n[1]=e,n[2]=r,n[3]=i):(r=n[2],i=n[3]),v.useEffect(r,i)},oC=()=>{const e=je.c(4),{user:t}=v.useContext(r4);let n;e[0]!==(t==null?void 0:t.permissions)?(n=(o,a)=>{const s=a===void 0?"any":a;return o.length===0?!0:s==="any"?o.some(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)}):o.every(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)})},e[0]=t==null?void 0:t.permissions,e[1]=n):n=e[1];const r=n;let i;return e[2]!==r?(i={checkUserHasPermissions:r},e[2]=r,e[3]=i):i=e[3],i},aC=(e,t)=>{const n=je.c(6);let r,i;n[0]!==e?(r=()=>(document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}),i=[e],n[0]=e,n[1]=r,n[2]=i):(r=n[1],i=n[2]),v.useEffect(r,i);let o,a;n[3]!==t?(o=()=>t===void 0?M9:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),a=[t],n[3]=t,n[4]=o,n[5]=a):(o=n[4],a=n[5]),v.useEffect(o,a)};function M9(){}const c0=(e,t,n)=>{let r;e:{if(n){r=e;break e}if(e!=="date"&&e!=="datetime-local"&&e!=="time"){r=e;break e}if(!t){r="text";break e}r=e}return r},sC=()=>{const{addNotification:e}=tf(),{texts:{clipboard:t}}=v.useContext(rn);return{copyToClipboard:v.useCallback(async r=>{var i;try{await((i=navigator.clipboard)==null?void 0:i.writeText(r)),e(t.copySuccess(r),"prompt")}catch(o){console.error(o),e(t.copyError,"danger")}},[e,t])}},Cc=()=>{const e=je.c(7),[t,n]=v.useState(window.innerWidth),[r,i]=v.useState(window.innerHeight);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{n(window.innerWidth),i(window.innerHeight)},e[0]=o):o=e[0];const a=o;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>(window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)),l=[],e[1]=s,e[2]=l):(s=e[1],l=e[2]),v.useEffect(s,l);const c=t<992;let u;return e[3]!==r||e[4]!==c||e[5]!==t?(u={width:t,height:r,isMobile:c},e[3]=r,e[4]=c,e[5]=t,e[6]=u):u=e[6],u},lC=v.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),cC=v.createContext(void 0),Mb={falseIfNotInit:!1},af=e=>{const{falseIfNotInit:t}=e===void 0?Mb:e,n=t===void 0?Mb.falseIfNotInit:t,r=v.useContext(cC);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1};class E9 extends Error{constructor(t,n){const r=new.target.prototype;super(`${t}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class O9 extends Error{constructor(t="A timeout occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class wm extends Error{constructor(t="An abort occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class A9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class R9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class D9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class I9 extends Error{constructor(t){const n=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class j9 extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.innerErrors=n,this.__proto__=r}}exports.LogLevel=void 0;(function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"})(exports.LogLevel||(exports.LogLevel={}));class Qu{constructor(){}log(t,n){}}Qu.instance=new Qu;const P9="10.0.0";class ku{static isRequired(t,n){if(t==null)throw new Error(`The '${n}' argument is required.`)}static isNotEmpty(t,n){if(!t||t.match(/^\s*$/))throw new Error(`The '${n}' argument should not be empty.`)}static isIn(t,n,r){if(!(t in n))throw new Error(`Unknown ${r} value: ${t}.`)}}class Tr{static get isBrowser(){return!Tr.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!Tr.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!Tr.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function uC(e,t){let n="";return ns(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${N9(e)}'`)):typeof e=="string"&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function N9(e){const t=new Uint8Array(e);let n="";return t.forEach(r=>{const i=r<16?"0":"";n+=`0x${i}${r.toString(16)} `}),n.substring(0,n.length-1)}function ns(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function L9(e,t,n,r,i,o){const a={},[s,l]=dC();a[s]=l,e.log(exports.LogLevel.Trace,`(${t} transport) sending data. ${uC(i,o.logMessageContent)}.`);const c=ns(i)?"arraybuffer":"text",u=await n.post(r,{content:i,headers:{...a,...o.headers},responseType:c,timeout:o.timeout,withCredentials:o.withCredentials});e.log(exports.LogLevel.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function F9(e){return e===void 0?new _m(exports.LogLevel.Information):e===null?Qu.instance:e.log!==void 0?e:new _m(e)}class B9{constructor(t,n){this._subject=t,this._observer=n}dispose(){const t=this._subject.observers.indexOf(this._observer);t>-1&&this._subject.observers.splice(t,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(n=>{})}}class _m{constructor(t){this._minLevel=t,this.out=console}log(t,n){if(t>=this._minLevel){const r=`[${new Date().toISOString()}] ${exports.LogLevel[t]}: ${n}`;switch(t){case exports.LogLevel.Critical:case exports.LogLevel.Error:this.out.error(r);break;case exports.LogLevel.Warning:this.out.warn(r);break;case exports.LogLevel.Information:this.out.info(r);break;default:this.out.log(r);break}}}}function dC(){let e="X-SignalR-User-Agent";return Tr.isNode&&(e="User-Agent"),[e,z9(P9,W9(),H9(),U9())]}function z9(e,t,n,r){let i="Microsoft SignalR/";const o=e.split(".");return i+=`${o[0]}.${o[1]}`,i+=` (${e}; `,t&&t!==""?i+=`${t}; `:i+="Unknown OS; ",i+=`${n}`,r?i+=`; ${r}`:i+="; Unknown Runtime Version",i+=")",i}function W9(){if(Tr.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function U9(){if(Tr.isNode)return process.versions.node}function H9(){return Tr.isNode?"NodeJS":"Browser"}function tp(e){return e.stack?e.stack:e.message?e.message:`${e}`}function V9(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}class cr{static write(t){return`${t}${cr.RecordSeparator}`}static parse(t){if(t[t.length-1]!==cr.RecordSeparator)throw new Error("Message is incomplete.");const n=t.split(cr.RecordSeparator);return n.pop(),n}}cr.RecordSeparatorCode=30;cr.RecordSeparator=String.fromCharCode(cr.RecordSeparatorCode);class q9{writeHandshakeRequest(t){return cr.write(JSON.stringify(t))}parseHandshakeResponse(t){let n,r;if(ns(t)){const s=new Uint8Array(t),l=s.indexOf(cr.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),r=s.byteLength>c?s.slice(c).buffer:null}else{const s=t,l=s.indexOf(cr.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;n=s.substring(0,c),r=s.length>c?s.substring(c):null}const i=cr.parse(n),o=JSON.parse(i[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[r,o]}}exports.MessageType=void 0;(function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close",e[e.Ack=8]="Ack",e[e.Sequence=9]="Sequence"})(exports.MessageType||(exports.MessageType={}));class Y9{constructor(){this.observers=[]}next(t){for(const n of this.observers)n.next(t)}error(t){for(const n of this.observers)n.error&&n.error(t)}complete(){for(const t of this.observers)t.complete&&t.complete()}subscribe(t){return this.observers.push(t),new B9(this,t)}}class G9{constructor(t,n,r){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=t,this._connection=n,this._bufferSize=r}async _send(t){const n=this._protocol.writeMessage(t);let r=Promise.resolve();if(this._isInvocationMessage(t)){this._totalMessageCount++;let i=()=>{},o=()=>{};ns(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(r=new Promise((a,s)=>{i=a,o=s})),this._messages.push(new Z9(n,this._totalMessageCount,i,o))}try{this._reconnectInProgress||await this._connection.send(n)}catch{this._disconnected()}await r}_ack(t){let n=-1;for(let r=0;r<this._messages.length;r++){const i=this._messages[r];if(i._id<=t.sequenceId)n=r,ns(i._message)?this._bufferedByteCount-=i._message.byteLength:this._bufferedByteCount-=i._message.length,i._resolver();else if(this._bufferedByteCount<this._bufferSize)i._resolver();else break}n!==-1&&(this._messages=this._messages.slice(n+1))}_shouldProcessMessage(t){if(this._waitForSequenceMessage)return t.type!==exports.MessageType.Sequence?!1:(this._waitForSequenceMessage=!1,!0);if(!this._isInvocationMessage(t))return!0;const n=this._nextReceivingSequenceId;return this._nextReceivingSequenceId++,n<=this._latestReceivedSequenceId?(n===this._latestReceivedSequenceId&&this._ackTimer(),!1):(this._latestReceivedSequenceId=n,this._ackTimer(),!0)}_resetSequence(t){if(t.sequenceId>this._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=t.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const t=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:exports.MessageType.Sequence,sequenceId:t}));const n=this._messages;for(const r of n)await this._connection.send(r._message);this._reconnectInProgress=!1}_dispose(t){t??(t=new Error("Unable to reconnect to server."));for(const n of this._messages)n._rejector(t)}_isInvocationMessage(t){switch(t.type){case exports.MessageType.Invocation:case exports.MessageType.StreamItem:case exports.MessageType.Completion:case exports.MessageType.StreamInvocation:case exports.MessageType.CancelInvocation:return!0;case exports.MessageType.Close:case exports.MessageType.Sequence:case exports.MessageType.Ping:case exports.MessageType.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:exports.MessageType.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class Z9{constructor(t,n,r,i){this._message=t,this._id=n,this._resolver=r,this._rejector=i}}const X9=30*1e3,K9=15*1e3,J9=1e5;exports.HubConnectionState=void 0;(function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"})(exports.HubConnectionState||(exports.HubConnectionState={}));class u0{static create(t,n,r,i,o,a,s){return new u0(t,n,r,i,o,a,s)}constructor(t,n,r,i,o,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(exports.LogLevel.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},ku.isRequired(t,"connection"),ku.isRequired(n,"logger"),ku.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=o??X9,this.keepAliveIntervalInMilliseconds=a??K9,this._statefulReconnectBufferSize=s??J9,this._logger=n,this._protocol=r,this.connection=t,this._reconnectPolicy=i,this._handshakeProtocol=new q9,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=exports.HubConnectionState.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:exports.MessageType.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(t){if(this._connectionState!==exports.HubConnectionState.Disconnected&&this._connectionState!==exports.HubConnectionState.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!t)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=t}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==exports.HubConnectionState.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=exports.HubConnectionState.Connecting,this._logger.log(exports.LogLevel.Debug,"Starting HubConnection.");try{await this._startInternal(),Tr.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=exports.HubConnectionState.Connected,this._connectionStarted=!0,this._logger.log(exports.LogLevel.Debug,"HubConnection connected successfully.")}catch(t){return this._connectionState=exports.HubConnectionState.Disconnected,this._logger.log(exports.LogLevel.Debug,`HubConnection failed to start successfully because of error '${t}'.`),Promise.reject(t)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const t=new Promise((n,r)=>{this._handshakeResolver=n,this._handshakeRejecter=r});await this.connection.start(this._protocol.transferFormat);try{let n=this._protocol.version;this.connection.features.reconnect||(n=1);const r={protocol:this._protocol.name,version:n};if(this._logger.log(exports.LogLevel.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(r)),this._logger.log(exports.LogLevel.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await t,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new G9(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(n){throw this._logger.log(exports.LogLevel.Debug,`Hub handshake failed with error '${n}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(n),n}}async stop(){const t=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await t}catch{}}_stopInternal(t){if(this._connectionState===exports.HubConnectionState.Disconnected)return this._logger.log(exports.LogLevel.Debug,`Call to HubConnection.stop(${t}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===exports.HubConnectionState.Disconnecting)return this._logger.log(exports.LogLevel.Debug,`Call to HttpConnection.stop(${t}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const n=this._connectionState;return this._connectionState=exports.HubConnectionState.Disconnecting,this._logger.log(exports.LogLevel.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(exports.LogLevel.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(n===exports.HubConnectionState.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=t||new wm("The connection was stopped before the hub handshake could complete."),this.connection.stop(t))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createStreamInvocation(t,n,i);let a;const s=new Y9;return s.cancelCallback=()=>{const l=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[o.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===exports.MessageType.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(o).catch(l=>{s.error(l),delete this._callbacks[o.invocationId]}),this._launchStreams(r,a),s}_sendMessage(t){return this._resetKeepAliveInterval(),this.connection.send(t)}_sendWithProtocol(t){return this._messageBuffer?this._messageBuffer._send(t):this._sendMessage(this._protocol.writeMessage(t))}send(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._sendWithProtocol(this._createInvocation(t,n,!0,i));return this._launchStreams(r,o),o}invoke(t,...n){const[r,i]=this._replaceStreamingParams(n),o=this._createInvocation(t,n,!1,i);return new Promise((s,l)=>{this._callbacks[o.invocationId]=(u,d)=>{if(d){l(d);return}else u&&(u.type===exports.MessageType.Completion?u.error?l(new Error(u.error)):s(u.result):l(new Error(`Unexpected message type: ${u.type}`)))};const c=this._sendWithProtocol(o).catch(u=>{l(u),delete this._callbacks[o.invocationId]});this._launchStreams(r,c)})}on(t,n){!t||!n||(t=t.toLowerCase(),this._methods[t]||(this._methods[t]=[]),this._methods[t].indexOf(n)===-1&&this._methods[t].push(n))}off(t,n){if(!t)return;t=t.toLowerCase();const r=this._methods[t];if(r)if(n){const i=r.indexOf(n);i!==-1&&(r.splice(i,1),r.length===0&&delete this._methods[t])}else delete this._methods[t]}onclose(t){t&&this._closedCallbacks.push(t)}onreconnecting(t){t&&this._reconnectingCallbacks.push(t)}onreconnected(t){t&&this._reconnectedCallbacks.push(t)}_processIncomingData(t){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(t=this._processHandshakeResponse(t),this._receivedHandshakeResponse=!0),t){const n=this._protocol.parseMessages(t,this._logger);for(const r of n)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(r)))switch(r.type){case exports.MessageType.Invocation:this._invokeClientMethod(r).catch(i=>{this._logger.log(exports.LogLevel.Error,`Invoke client method threw error: ${tp(i)}`)});break;case exports.MessageType.StreamItem:case exports.MessageType.Completion:{const i=this._callbacks[r.invocationId];if(i){r.type===exports.MessageType.Completion&&delete this._callbacks[r.invocationId];try{i(r)}catch(o){this._logger.log(exports.LogLevel.Error,`Stream callback threw error: ${tp(o)}`)}}break}case exports.MessageType.Ping:break;case exports.MessageType.Close:{this._logger.log(exports.LogLevel.Information,"Close message received from server.");const i=r.error?new Error("Server returned an error on close: "+r.error):void 0;r.allowReconnect===!0?this.connection.stop(i):this._stopPromise=this._stopInternal(i);break}case exports.MessageType.Ack:this._messageBuffer&&this._messageBuffer._ack(r);break;case exports.MessageType.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(r);break;default:this._logger.log(exports.LogLevel.Warning,`Invalid message type: ${r.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(t){let n,r;try{[r,n]=this._handshakeProtocol.parseHandshakeResponse(t)}catch(i){const o="Error parsing handshake response: "+i;this._logger.log(exports.LogLevel.Error,o);const a=new Error(o);throw this._handshakeRejecter(a),a}if(n.error){const i="Server returned handshake error: "+n.error;this._logger.log(exports.LogLevel.Error,i);const o=new Error(i);throw this._handshakeRejecter(o),o}else this._logger.log(exports.LogLevel.Debug,"Server handshake complete.");return this._handshakeResolver(),r}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if(!this.connection.features||!this.connection.features.inherentKeepAlive){this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds);let t=this._nextKeepAlive-new Date().getTime();if(t<0){this._connectionState===exports.HubConnectionState.Connected&&this._trySendPingMessage();return}this._pingServerHandle===void 0&&(t<0&&(t=0),this._pingServerHandle=setTimeout(async()=>{this._connectionState===exports.HubConnectionState.Connected&&await this._trySendPingMessage()},t))}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(t){const n=t.target.toLowerCase(),r=this._methods[n];if(!r){this._logger.log(exports.LogLevel.Warning,`No client method with the name '${n}' found.`),t.invocationId&&(this._logger.log(exports.LogLevel.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)));return}const i=r.slice(),o=!!t.invocationId;let a,s,l;for(const c of i)try{const u=a;a=await c.apply(this,t.arguments),o&&a&&u&&(this._logger.log(exports.LogLevel.Error,`Multiple results provided for '${n}'. Sending error to server.`),l=this._createCompletionMessage(t.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log(exports.LogLevel.Error,`A callback for the method '${n}' threw error '${u}'.`)}l?await this._sendWithProtocol(l):o?(s?l=this._createCompletionMessage(t.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(t.invocationId,null,a):(this._logger.log(exports.LogLevel.Warning,`No result given for '${n}' method and invocation ID '${t.invocationId}'.`),l=this._createCompletionMessage(t.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):a&&this._logger.log(exports.LogLevel.Error,`Result given for '${n}' method but server is not expecting a result.`)}_connectionClosed(t){this._logger.log(exports.LogLevel.Debug,`HubConnection.connectionClosed(${t}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||t||new wm("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(t||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===exports.HubConnectionState.Disconnecting?this._completeClose(t):this._connectionState===exports.HubConnectionState.Connected&&this._reconnectPolicy?this._reconnect(t):this._connectionState===exports.HubConnectionState.Connected&&this._completeClose(t)}_completeClose(t){if(this._connectionStarted){this._connectionState=exports.HubConnectionState.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(t??new Error("Connection closed.")),this._messageBuffer=void 0),Tr.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(n=>n.apply(this,[t]))}catch(n){this._logger.log(exports.LogLevel.Error,`An onclose callback called with error '${t}' threw error '${n}'.`)}}}async _reconnect(t){const n=Date.now();let r=0,i=t!==void 0?t:new Error("Attempting to reconnect due to a unknown error."),o=this._getNextRetryDelay(r,0,i);if(o===null){this._logger.log(exports.LogLevel.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(t);return}if(this._connectionState=exports.HubConnectionState.Reconnecting,t?this._logger.log(exports.LogLevel.Information,`Connection reconnecting because of error '${t}'.`):this._logger.log(exports.LogLevel.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[t]))}catch(a){this._logger.log(exports.LogLevel.Error,`An onreconnecting callback called with error '${t}' threw error '${a}'.`)}if(this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;o!==null;){if(this._logger.log(exports.LogLevel.Information,`Reconnect attempt number ${r+1} will start in ${o} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,o)}),this._reconnectDelayHandle=void 0,this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=exports.HubConnectionState.Connected,this._logger.log(exports.LogLevel.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log(exports.LogLevel.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log(exports.LogLevel.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===exports.HubConnectionState.Disconnecting&&this._completeClose();return}r++,i=a instanceof Error?a:new Error(a.toString()),o=this._getNextRetryDelay(r,Date.now()-n,i)}}this._logger.log(exports.LogLevel.Information,`Reconnect retries have been exhausted after ${Date.now()-n} ms and ${r} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(t,n,r){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:n,previousRetryCount:t,retryReason:r})}catch(i){return this._logger.log(exports.LogLevel.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${t}, ${n}) threw error '${i}'.`),null}}_cancelCallbacksWithError(t){const n=this._callbacks;this._callbacks={},Object.keys(n).forEach(r=>{const i=n[r];try{i(null,t)}catch(o){this._logger.log(exports.LogLevel.Error,`Stream 'error' callback called with '${t}' threw error: ${tp(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(t,n,r,i){if(r)return i.length!==0?{target:t,arguments:n,streamIds:i,type:exports.MessageType.Invocation}:{target:t,arguments:n,type:exports.MessageType.Invocation};{const o=this._invocationId;return this._invocationId++,i.length!==0?{target:t,arguments:n,invocationId:o.toString(),streamIds:i,type:exports.MessageType.Invocation}:{target:t,arguments:n,invocationId:o.toString(),type:exports.MessageType.Invocation}}}_launchStreams(t,n){if(t.length!==0){n||(n=Promise.resolve());for(const r in t)t[r].subscribe({complete:()=>{n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r)))},error:i=>{let o;i instanceof Error?o=i.message:i&&i.toString?o=i.toString():o="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,o)))},next:i=>{n=n.then(()=>this._sendWithProtocol(this._createStreamItemMessage(r,i)))}})}}_replaceStreamingParams(t){const n=[],r=[];for(let i=0;i<t.length;i++){const o=t[i];if(this._isObservable(o)){const a=this._invocationId;this._invocationId++,n[a]=o,r.push(a.toString()),t.splice(i,1)}}return[n,r]}_isObservable(t){return t&&t.subscribe&&typeof t.subscribe=="function"}_createStreamInvocation(t,n,r){const i=this._invocationId;return this._invocationId++,r.length!==0?{target:t,arguments:n,invocationId:i.toString(),streamIds:r,type:exports.MessageType.StreamInvocation}:{target:t,arguments:n,invocationId:i.toString(),type:exports.MessageType.StreamInvocation}}_createCancelInvocation(t){return{invocationId:t,type:exports.MessageType.CancelInvocation}}_createStreamItemMessage(t,n){return{invocationId:t,item:n,type:exports.MessageType.StreamItem}}_createCompletionMessage(t,n,r){return n?{error:n,invocationId:t,type:exports.MessageType.Completion}:{invocationId:t,result:r,type:exports.MessageType.Completion}}_createCloseMessage(){return{type:exports.MessageType.Close}}async _trySendPingMessage(){try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}}}const Q9=v.createContext({isAlive:!1,shouldBeAlive:!1,connectionState:exports.HubConnectionState.Disconnected,hasLastConnectionEnded:!1}),eD="_button_1wjon_1",tD="_filled_1wjon_7",nD="_sm_1wjon_13",rD="_md_1wjon_18",iD="_lg_1wjon_23",va={button:eD,filled:tD,sm:nD,md:rD,lg:iD},Uo=e=>{const t=je.c(24);let n,r,i,o,a,s;t[0]!==e?({variant:o,color:a,size:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6]);const l=o===void 0?"filled":o,c=a===void 0?"primary":a,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,h=va[l],p=va[u];let m;t[7]!==f||t[8]!==h||t[9]!==p?(m=se(f,va.button,h,p),t[7]=f,t[8]=h,t[9]=p,t[10]=m):m=t[10];let g;return t[11]!==n||t[12]!==i||t[13]!==d||t[14]!==m?(g=y.jsx(us.Link,{to:d,className:m,...i,children:n}),t[11]=n,t[12]=i,t[13]=d,t[14]=m,t[15]=g):g=t[15],g}if(i.as==="button"||i.as===void 0){const d=`luminus-primary-button ${c} btn ${l==="outlined"?`btn-outline-${c}`:`btn-${c}`} ${r??""}`,f=va[l],h=va[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=se(d,va.button,f,h),t[16]=d,t[17]=f,t[18]=h,t[19]=p):p=t[19];let m;return t[20]!==n||t[21]!==i||t[22]!==p?(m=y.jsx("button",{type:"button",className:p,...i,children:n}),t[20]=n,t[21]=i,t[22]=p,t[23]=m):m=t[23],m}return null},oD="_button_1r3i0_1",Cm={button:oD},sf=e=>{const t=je.c(21);let n,r,i,o,a;t[0]!==e?({color:a,icon:i,className:r,children:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5]);const s=a===void 0?"primary":a;if(o.as==="link"){const l=o.href??"/",c=`luminus-context-button btn text-${s} ${r??""}`;let u;t[6]!==c?(u=se(c,Cm.button),t[6]=c,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==l||t[12]!==u?(d=y.jsxs(us.Link,{to:l,className:u,...o,children:[i,n]}),t[8]=n,t[9]=i,t[10]=o,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}if(o.as==="button"||o.as===void 0){const l=`luminus-context-button btn text-${s} ${r??""}`;let c;t[14]!==l?(c=se(l,Cm.button),t[14]=l,t[15]=c):c=t[15];let u;return t[16]!==n||t[17]!==i||t[18]!==o||t[19]!==c?(u=y.jsxs("button",{type:"button",className:c,...o,children:[i,n]}),t[16]=n,t[17]=i,t[18]=o,t[19]=c,t[20]=u):u=t[20],u}return null},aD="_icon-button_15e26_1",sD="_sm_15e26_14",lD="_md_15e26_23",cD="_lg_15e26_32",nu={"icon-button":"_icon-button_15e26_1",iconButton:aD,sm:sD,md:lD,lg:cD},Sc=e=>{const t=je.c(23);let n,r,i,o,a,s;t[0]!==e?({type:o,color:a,size:s,children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6]);const l=o===void 0?"button":o,c=a===void 0?"primary":a,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-icon-button btn text-${c} ${r??""}`,h=nu[u];let p;t[7]!==f||t[8]!==h?(p=se(f,nu.iconButton,h),t[7]=f,t[8]=h,t[9]=p):p=t[9];let m;return t[10]!==n||t[11]!==i||t[12]!==d||t[13]!==p?(m=y.jsx(us.Link,{to:d,className:p,...i,children:n}),t[10]=n,t[11]=i,t[12]=d,t[13]=p,t[14]=m):m=t[14],m}if(i.as==="button"||i.as===void 0){const d=`luminus-icon-button btn text-${c} ${r??""}`,f=nu[u];let h;t[15]!==d||t[16]!==f?(h=se(d,nu.iconButton,f),t[15]=d,t[16]=f,t[17]=h):h=t[17];let p;return t[18]!==n||t[19]!==i||t[20]!==h||t[21]!==l?(p=y.jsx("button",{type:l,className:h,...i,children:n}),t[18]=n,t[19]=i,t[20]=h,t[21]=l,t[22]=p):p=t[22],p}return null};var d0={},ed={exports:{}};ed.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",g="[object Number]",x="[object Null]",_="[object Object]",w="[object Promise]",C="[object Proxy]",b="[object RegExp]",S="[object Set]",M="[object String]",$="[object Symbol]",k="[object Undefined]",R="[object WeakMap]",T="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",D="[object Int16Array]",O="[object Int32Array]",L="[object Uint8Array]",z="[object Uint8ClampedArray]",N="[object Uint16Array]",H="[object Uint32Array]",Y=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,X={};X[A]=X[I]=X[j]=X[D]=X[O]=X[L]=X[z]=X[N]=X[H]=!0,X[s]=X[l]=X[T]=X[u]=X[E]=X[d]=X[f]=X[h]=X[m]=X[g]=X[_]=X[b]=X[S]=X[M]=X[R]=!1;var J=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,ee=typeof self=="object"&&self&&self.Object===Object&&self,W=J||ee||Function("return this")(),F=t&&!t.nodeType&&t,B=F&&!0&&e&&!e.nodeType&&e,V=B&&B.exports===F,P=V&&J.process,te=function(){try{return P&&P.binding&&P.binding("util")}catch{}}(),K=te&&te.isTypedArray;function G(U,Q){for(var ue=-1,ke=U==null?0:U.length,Xt=0,dt=[];++ue<ke;){var an=U[ue];Q(an,ue,U)&&(dt[Xt++]=an)}return dt}function ae(U,Q){for(var ue=-1,ke=Q.length,Xt=U.length;++ue<ke;)U[Xt+ue]=Q[ue];return U}function ne(U,Q){for(var ue=-1,ke=U==null?0:U.length;++ue<ke;)if(Q(U[ue],ue,U))return!0;return!1}function re(U,Q){for(var ue=-1,ke=Array(U);++ue<U;)ke[ue]=Q(ue);return ke}function oe(U){return function(Q){return U(Q)}}function le(U,Q){return U.has(Q)}function ye(U,Q){return U==null?void 0:U[Q]}function ge(U){var Q=-1,ue=Array(U.size);return U.forEach(function(ke,Xt){ue[++Q]=[Xt,ke]}),ue}function be(U,Q){return function(ue){return U(Q(ue))}}function Me(U){var Q=-1,ue=Array(U.size);return U.forEach(function(ke){ue[++Q]=ke}),ue}var ce=Array.prototype,de=Function.prototype,Ce=Object.prototype,Ge=W["__core-js_shared__"],we=de.toString,ve=Ce.hasOwnProperty,Ne=function(){var U=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),Ze=Ce.toString,_t=RegExp("^"+we.call(ve).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=V?W.Buffer:void 0,Re=W.Symbol,ot=W.Uint8Array,Ue=Ce.propertyIsEnumerable,mt=ce.splice,ut=Re?Re.toStringTag:void 0,At=Object.getOwnPropertySymbols,Ke=Te?Te.isBuffer:void 0,Le=be(Object.keys,Object),Ve=fa(W,"DataView"),et=fa(W,"Map"),Fe=fa(W,"Promise"),tt=fa(W,"Set"),vt=fa(W,"WeakMap"),at=fa(Object,"create"),Pe=fo(Ve),Ee=fo(et),Ye=fo(Fe),xt=fo(tt),nt=fo(vt),bt=Re?Re.prototype:void 0,Jt=bt?bt.valueOf:void 0;function Ft(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var ke=U[Q];this.set(ke[0],ke[1])}}function zt(){this.__data__=at?at(null):{},this.size=0}function fn(U){var Q=this.has(U)&&delete this.__data__[U];return this.size-=Q?1:0,Q}function qt(U){var Q=this.__data__;if(at){var ue=Q[U];return ue===r?void 0:ue}return ve.call(Q,U)?Q[U]:void 0}function $e(U){var Q=this.__data__;return at?Q[U]!==void 0:ve.call(Q,U)}function Je(U,Q){var ue=this.__data__;return this.size+=this.has(U)?0:1,ue[U]=at&&Q===void 0?r:Q,this}Ft.prototype.clear=zt,Ft.prototype.delete=fn,Ft.prototype.get=qt,Ft.prototype.has=$e,Ft.prototype.set=Je;function St(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var ke=U[Q];this.set(ke[0],ke[1])}}function on(){this.__data__=[],this.size=0}function Yt(U){var Q=this.__data__,ue=ei(Q,U);if(ue<0)return!1;var ke=Q.length-1;return ue==ke?Q.pop():mt.call(Q,ue,1),--this.size,!0}function Be(U){var Q=this.__data__,ue=ei(Q,U);return ue<0?void 0:Q[ue][1]}function ze(U){return ei(this.__data__,U)>-1}function ht(U,Q){var ue=this.__data__,ke=ei(ue,U);return ke<0?(++this.size,ue.push([U,Q])):ue[ke][1]=Q,this}St.prototype.clear=on,St.prototype.delete=Yt,St.prototype.get=Be,St.prototype.has=ze,St.prototype.set=ht;function Rt(U){var Q=-1,ue=U==null?0:U.length;for(this.clear();++Q<ue;){var ke=U[Q];this.set(ke[0],ke[1])}}function Tt(){this.size=0,this.__data__={hash:new Ft,map:new(et||St),string:new Ft}}function Qe(U){var Q=Mi(this,U).delete(U);return this.size-=Q?1:0,Q}function $t(U){return Mi(this,U).get(U)}function br(U){return Mi(this,U).has(U)}function ln(U,Q){var ue=Mi(this,U),ke=ue.size;return ue.set(U,Q),this.size+=ue.size==ke?0:1,this}Rt.prototype.clear=Tt,Rt.prototype.delete=Qe,Rt.prototype.get=$t,Rt.prototype.has=br,Rt.prototype.set=ln;function cn(U){var Q=-1,ue=U==null?0:U.length;for(this.__data__=new Rt;++Q<ue;)this.add(U[Q])}function An(U){return this.__data__.set(U,r),this}function ao(U){return this.__data__.has(U)}cn.prototype.add=cn.prototype.push=An,cn.prototype.has=ao;function Ct(U){var Q=this.__data__=new St(U);this.size=Q.size}function so(){this.__data__=new St,this.size=0}function Ae(U){var Q=this.__data__,ue=Q.delete(U);return this.size=Q.size,ue}function Ar(U){return this.__data__.get(U)}function lo(U){return this.__data__.has(U)}function ua(U,Q){var ue=this.__data__;if(ue instanceof St){var ke=ue.__data__;if(!et||ke.length<n-1)return ke.push([U,Q]),this.size=++ue.size,this;ue=this.__data__=new Rt(ke)}return ue.set(U,Q),this.size=ue.size,this}Ct.prototype.clear=so,Ct.prototype.delete=Ae,Ct.prototype.get=Ar,Ct.prototype.has=lo,Ct.prototype.set=ua;function da(U,Q){var ue=Hc(U),ke=!ue&&mT(U),Xt=!ue&&!ke&&Rh(U),dt=!ue&&!ke&&!Xt&&c1(U),an=ue||ke||Xt||dt,vn=an?re(U.length,String):[],wn=vn.length;for(var Qt in U)ve.call(U,Qt)&&!(an&&(Qt=="length"||Xt&&(Qt=="offset"||Qt=="parent")||dt&&(Qt=="buffer"||Qt=="byteLength"||Qt=="byteOffset")||uT(Qt,wn)))&&vn.push(Qt);return vn}function ei(U,Q){for(var ue=U.length;ue--;)if(o1(U[ue][0],Q))return ue;return-1}function zc(U,Q,ue){var ke=Q(U);return Hc(U)?ke:ae(ke,ue(U))}function ti(U){return U==null?U===void 0?k:x:ut&&ut in Object(U)?lT(U):pT(U)}function Is(U){return Ps(U)&&ti(U)==s}function co(U,Q,ue,ke,Xt){return U===Q?!0:U==null||Q==null||!Ps(U)&&!Ps(Q)?U!==U&&Q!==Q:js(U,Q,ue,ke,co,Xt)}function js(U,Q,ue,ke,Xt,dt){var an=Hc(U),vn=Hc(Q),wn=an?l:Ei(U),Qt=vn?l:Ei(Q);wn=wn==s?_:wn,Qt=Qt==s?_:Qt;var Jn=wn==_,yr=Qt==_,Cn=wn==Qt;if(Cn&&Rh(U)){if(!Rh(Q))return!1;an=!0,Jn=!1}if(Cn&&!Jn)return dt||(dt=new Ct),an||c1(U)?Rn(U,Q,ue,ke,Xt,dt):Oh(U,Q,wn,ue,ke,Xt,dt);if(!(ue&i)){var rr=Jn&&ve.call(U,"__wrapped__"),ir=yr&&ve.call(Q,"__wrapped__");if(rr||ir){var Oi=rr?U.value():U,ni=ir?Q.value():Q;return dt||(dt=new Ct),Xt(Oi,ni,ue,ke,dt)}}return Cn?(dt||(dt=new Ct),Ah(U,Q,ue,ke,Xt,dt)):!1}function Wc(U){if(!l1(U)||fT(U))return!1;var Q=a1(U)?_t:q;return Q.test(fo(U))}function uo(U){return Ps(U)&&s1(U.length)&&!!X[ti(U)]}function Uc(U){if(!hT(U))return Le(U);var Q=[];for(var ue in Object(U))ve.call(U,ue)&&ue!="constructor"&&Q.push(ue);return Q}function Rn(U,Q,ue,ke,Xt,dt){var an=ue&i,vn=U.length,wn=Q.length;if(vn!=wn&&!(an&&wn>vn))return!1;var Qt=dt.get(U);if(Qt&&dt.get(Q))return Qt==Q;var Jn=-1,yr=!0,Cn=ue&o?new cn:void 0;for(dt.set(U,Q),dt.set(Q,U);++Jn<vn;){var rr=U[Jn],ir=Q[Jn];if(ke)var Oi=an?ke(ir,rr,Jn,Q,U,dt):ke(rr,ir,Jn,U,Q,dt);if(Oi!==void 0){if(Oi)continue;yr=!1;break}if(Cn){if(!ne(Q,function(ni,ho){if(!le(Cn,ho)&&(rr===ni||Xt(rr,ni,ue,ke,dt)))return Cn.push(ho)})){yr=!1;break}}else if(!(rr===ir||Xt(rr,ir,ue,ke,dt))){yr=!1;break}}return dt.delete(U),dt.delete(Q),yr}function Oh(U,Q,ue,ke,Xt,dt,an){switch(ue){case E:if(U.byteLength!=Q.byteLength||U.byteOffset!=Q.byteOffset)return!1;U=U.buffer,Q=Q.buffer;case T:return!(U.byteLength!=Q.byteLength||!dt(new ot(U),new ot(Q)));case u:case d:case g:return o1(+U,+Q);case f:return U.name==Q.name&&U.message==Q.message;case b:case M:return U==Q+"";case m:var vn=ge;case S:var wn=ke&i;if(vn||(vn=Me),U.size!=Q.size&&!wn)return!1;var Qt=an.get(U);if(Qt)return Qt==Q;ke|=o,an.set(U,Q);var Jn=Rn(vn(U),vn(Q),ke,Xt,dt,an);return an.delete(U),Jn;case $:if(Jt)return Jt.call(U)==Jt.call(Q)}return!1}function Ah(U,Q,ue,ke,Xt,dt){var an=ue&i,vn=Rr(U),wn=vn.length,Qt=Rr(Q),Jn=Qt.length;if(wn!=Jn&&!an)return!1;for(var yr=wn;yr--;){var Cn=vn[yr];if(!(an?Cn in Q:ve.call(Q,Cn)))return!1}var rr=dt.get(U);if(rr&&dt.get(Q))return rr==Q;var ir=!0;dt.set(U,Q),dt.set(Q,U);for(var Oi=an;++yr<wn;){Cn=vn[yr];var ni=U[Cn],ho=Q[Cn];if(ke)var u1=an?ke(ho,ni,Cn,Q,U,dt):ke(ni,ho,Cn,U,Q,dt);if(!(u1===void 0?ni===ho||Xt(ni,ho,ue,ke,dt):u1)){ir=!1;break}Oi||(Oi=Cn=="constructor")}if(ir&&!Oi){var Vc=U.constructor,qc=Q.constructor;Vc!=qc&&"constructor"in U&&"constructor"in Q&&!(typeof Vc=="function"&&Vc instanceof Vc&&typeof qc=="function"&&qc instanceof qc)&&(ir=!1)}return dt.delete(U),dt.delete(Q),ir}function Rr(U){return zc(U,bT,cT)}function Mi(U,Q){var ue=U.__data__;return dT(Q)?ue[typeof Q=="string"?"string":"hash"]:ue.map}function fa(U,Q){var ue=ye(U,Q);return Wc(ue)?ue:void 0}function lT(U){var Q=ve.call(U,ut),ue=U[ut];try{U[ut]=void 0;var ke=!0}catch{}var Xt=Ze.call(U);return ke&&(Q?U[ut]=ue:delete U[ut]),Xt}var cT=At?function(U){return U==null?[]:(U=Object(U),G(At(U),function(Q){return Ue.call(U,Q)}))}:yT,Ei=ti;(Ve&&Ei(new Ve(new ArrayBuffer(1)))!=E||et&&Ei(new et)!=m||Fe&&Ei(Fe.resolve())!=w||tt&&Ei(new tt)!=S||vt&&Ei(new vt)!=R)&&(Ei=function(U){var Q=ti(U),ue=Q==_?U.constructor:void 0,ke=ue?fo(ue):"";if(ke)switch(ke){case Pe:return E;case Ee:return m;case Ye:return w;case xt:return S;case nt:return R}return Q});function uT(U,Q){return Q=Q??a,!!Q&&(typeof U=="number"||Z.test(U))&&U>-1&&U%1==0&&U<Q}function dT(U){var Q=typeof U;return Q=="string"||Q=="number"||Q=="symbol"||Q=="boolean"?U!=="__proto__":U===null}function fT(U){return!!Ne&&Ne in U}function hT(U){var Q=U&&U.constructor,ue=typeof Q=="function"&&Q.prototype||Ce;return U===ue}function pT(U){return Ze.call(U)}function fo(U){if(U!=null){try{return we.call(U)}catch{}try{return U+""}catch{}}return""}function o1(U,Q){return U===Q||U!==U&&Q!==Q}var mT=Is(function(){return arguments}())?Is:function(U){return Ps(U)&&ve.call(U,"callee")&&!Ue.call(U,"callee")},Hc=Array.isArray;function gT(U){return U!=null&&s1(U.length)&&!a1(U)}var Rh=Ke||xT;function vT(U,Q){return co(U,Q)}function a1(U){if(!l1(U))return!1;var Q=ti(U);return Q==h||Q==p||Q==c||Q==C}function s1(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=a}function l1(U){var Q=typeof U;return U!=null&&(Q=="object"||Q=="function")}function Ps(U){return U!=null&&typeof U=="object"}var c1=K?oe(K):uo;function bT(U){return gT(U)?da(U):Uc(U)}function yT(){return[]}function xT(){return!1}e.exports=vT})(ed,ed.exports);var uD=ed.exports,fC={exports:{}};(function(e,t){var n=function(){var r=function(b,S){var M=236,$=17,k=b,R=o[S],T=null,E=0,A=null,I=[],j={},D=function(W,F){E=k*4+17,T=function(B){for(var V=new Array(B),P=0;P<B;P+=1){V[P]=new Array(B);for(var te=0;te<B;te+=1)V[P][te]=null}return V}(E),O(0,0),O(E-7,0),O(0,E-7),N(),z(),Y(W,F),k>=7&&H(W),A==null&&(A=X(k,R,I)),q(A,F)},O=function(W,F){for(var B=-1;B<=7;B+=1)if(!(W+B<=-1||E<=W+B))for(var V=-1;V<=7;V+=1)F+V<=-1||E<=F+V||(0<=B&&B<=6&&(V==0||V==6)||0<=V&&V<=6&&(B==0||B==6)||2<=B&&B<=4&&2<=V&&V<=4?T[W+B][F+V]=!0:T[W+B][F+V]=!1)},L=function(){for(var W=0,F=0,B=0;B<8;B+=1){D(!0,B);var V=s.getLostPoint(j);(B==0||W>V)&&(W=V,F=B)}return F},z=function(){for(var W=8;W<E-8;W+=1)T[W][6]==null&&(T[W][6]=W%2==0);for(var F=8;F<E-8;F+=1)T[6][F]==null&&(T[6][F]=F%2==0)},N=function(){for(var W=s.getPatternPosition(k),F=0;F<W.length;F+=1)for(var B=0;B<W.length;B+=1){var V=W[F],P=W[B];if(T[V][P]==null)for(var te=-2;te<=2;te+=1)for(var K=-2;K<=2;K+=1)te==-2||te==2||K==-2||K==2||te==0&&K==0?T[V+te][P+K]=!0:T[V+te][P+K]=!1}},H=function(W){for(var F=s.getBCHTypeNumber(k),B=0;B<18;B+=1){var V=!W&&(F>>B&1)==1;T[Math.floor(B/3)][B%3+E-8-3]=V}for(var B=0;B<18;B+=1){var V=!W&&(F>>B&1)==1;T[B%3+E-8-3][Math.floor(B/3)]=V}},Y=function(W,F){for(var B=R<<3|F,V=s.getBCHTypeInfo(B),P=0;P<15;P+=1){var te=!W&&(V>>P&1)==1;P<6?T[P][8]=te:P<8?T[P+1][8]=te:T[E-15+P][8]=te}for(var P=0;P<15;P+=1){var te=!W&&(V>>P&1)==1;P<8?T[8][E-P-1]=te:P<9?T[8][15-P-1+1]=te:T[8][15-P-1]=te}T[E-8][8]=!W},q=function(W,F){for(var B=-1,V=E-1,P=7,te=0,K=s.getMaskFunction(F),G=E-1;G>0;G-=2)for(G==6&&(G-=1);;){for(var ae=0;ae<2;ae+=1)if(T[V][G-ae]==null){var ne=!1;te<W.length&&(ne=(W[te]>>>P&1)==1);var re=K(V,G-ae);re&&(ne=!ne),T[V][G-ae]=ne,P-=1,P==-1&&(te+=1,P=7)}if(V+=B,V<0||E<=V){V-=B,B=-B;break}}},Z=function(W,F){for(var B=0,V=0,P=0,te=new Array(F.length),K=new Array(F.length),G=0;G<F.length;G+=1){var ae=F[G].dataCount,ne=F[G].totalCount-ae;V=Math.max(V,ae),P=Math.max(P,ne),te[G]=new Array(ae);for(var re=0;re<te[G].length;re+=1)te[G][re]=255&W.getBuffer()[re+B];B+=ae;var oe=s.getErrorCorrectPolynomial(ne),le=c(te[G],oe.getLength()-1),ye=le.mod(oe);K[G]=new Array(oe.getLength()-1);for(var re=0;re<K[G].length;re+=1){var ge=re+ye.getLength()-K[G].length;K[G][re]=ge>=0?ye.getAt(ge):0}}for(var be=0,re=0;re<F.length;re+=1)be+=F[re].totalCount;for(var Me=new Array(be),ce=0,re=0;re<V;re+=1)for(var G=0;G<F.length;G+=1)re<te[G].length&&(Me[ce]=te[G][re],ce+=1);for(var re=0;re<P;re+=1)for(var G=0;G<F.length;G+=1)re<K[G].length&&(Me[ce]=K[G][re],ce+=1);return Me},X=function(W,F,B){for(var V=u.getRSBlocks(W,F),P=d(),te=0;te<B.length;te+=1){var K=B[te];P.put(K.getMode(),4),P.put(K.getLength(),s.getLengthInBits(K.getMode(),W)),K.write(P)}for(var G=0,te=0;te<V.length;te+=1)G+=V[te].dataCount;if(P.getLengthInBits()>G*8)throw"code length overflow. ("+P.getLengthInBits()+">"+G*8+")";for(P.getLengthInBits()+4<=G*8&&P.put(0,4);P.getLengthInBits()%8!=0;)P.putBit(!1);for(;!(P.getLengthInBits()>=G*8||(P.put(M,8),P.getLengthInBits()>=G*8));)P.put($,8);return Z(P,V)};j.addData=function(W,F){F=F||"Byte";var B=null;switch(F){case"Numeric":B=f(W);break;case"Alphanumeric":B=h(W);break;case"Byte":B=p(W);break;case"Kanji":B=m(W);break;default:throw"mode:"+F}I.push(B),A=null},j.isDark=function(W,F){if(W<0||E<=W||F<0||E<=F)throw W+","+F;return T[W][F]},j.getModuleCount=function(){return E},j.make=function(){if(k<1){for(var W=1;W<40;W++){for(var F=u.getRSBlocks(W,R),B=d(),V=0;V<I.length;V++){var P=I[V];B.put(P.getMode(),4),B.put(P.getLength(),s.getLengthInBits(P.getMode(),W)),P.write(B)}for(var te=0,V=0;V<F.length;V++)te+=F[V].dataCount;if(B.getLengthInBits()<=te*8)break}k=W}D(!1,L())},j.createTableTag=function(W,F){W=W||2,F=typeof F>"u"?W*4:F;var B="";B+='<table style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: "+F+"px;",B+='">',B+="<tbody>";for(var V=0;V<j.getModuleCount();V+=1){B+="<tr>";for(var P=0;P<j.getModuleCount();P+=1)B+='<td style="',B+=" border-width: 0px; border-style: none;",B+=" border-collapse: collapse;",B+=" padding: 0px; margin: 0px;",B+=" width: "+W+"px;",B+=" height: "+W+"px;",B+=" background-color: ",B+=j.isDark(V,P)?"#000000":"#ffffff",B+=";",B+='"/>';B+="</tr>"}return B+="</tbody>",B+="</table>",B},j.createSvgTag=function(W,F,B,V){var P={};typeof arguments[0]=="object"&&(P=arguments[0],W=P.cellSize,F=P.margin,B=P.alt,V=P.title),W=W||2,F=typeof F>"u"?W*4:F,B=typeof B=="string"?{text:B}:B||{},B.text=B.text||null,B.id=B.text?B.id||"qrcode-description":null,V=typeof V=="string"?{text:V}:V||{},V.text=V.text||null,V.id=V.text?V.id||"qrcode-title":null;var te=j.getModuleCount()*W+F*2,K,G,ae,ne,re="",oe;for(oe="l"+W+",0 0,"+W+" -"+W+",0 0,-"+W+"z ",re+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',re+=P.scalable?"":' width="'+te+'px" height="'+te+'px"',re+=' viewBox="0 0 '+te+" "+te+'" ',re+=' preserveAspectRatio="xMinYMin meet"',re+=V.text||B.text?' role="img" aria-labelledby="'+J([V.id,B.id].join(" ").trim())+'"':"",re+=">",re+=V.text?'<title id="'+J(V.id)+'">'+J(V.text)+"</title>":"",re+=B.text?'<description id="'+J(B.id)+'">'+J(B.text)+"</description>":"",re+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',re+='<path d="',ae=0;ae<j.getModuleCount();ae+=1)for(ne=ae*W+F,K=0;K<j.getModuleCount();K+=1)j.isDark(ae,K)&&(G=K*W+F,re+="M"+G+","+ne+oe);return re+='" stroke="transparent" fill="black"/>',re+="</svg>",re},j.createDataURL=function(W,F){W=W||2,F=typeof F>"u"?W*4:F;var B=j.getModuleCount()*W+F*2,V=F,P=B-F;return C(B,B,function(te,K){if(V<=te&&te<P&&V<=K&&K<P){var G=Math.floor((te-V)/W),ae=Math.floor((K-V)/W);return j.isDark(ae,G)?0:1}else return 1})},j.createImgTag=function(W,F,B){W=W||2,F=typeof F>"u"?W*4:F;var V=j.getModuleCount()*W+F*2,P="";return P+="<img",P+=' src="',P+=j.createDataURL(W,F),P+='"',P+=' width="',P+=V,P+='"',P+=' height="',P+=V,P+='"',B&&(P+=' alt="',P+=J(B),P+='"'),P+="/>",P};var J=function(W){for(var F="",B=0;B<W.length;B+=1){var V=W.charAt(B);switch(V){case"<":F+="<";break;case">":F+=">";break;case"&":F+="&";break;case'"':F+=""";break;default:F+=V;break}}return F},ee=function(W){var F=1;W=typeof W>"u"?F*2:W;var B=j.getModuleCount()*F+W*2,V=W,P=B-W,te,K,G,ae,ne,re={"██":"█","█ ":"▀"," █":"▄"," ":" "},oe={"██":"▀","█ ":"▀"," █":" "," ":" "},le="";for(te=0;te<B;te+=2){for(G=Math.floor((te-V)/F),ae=Math.floor((te+1-V)/F),K=0;K<B;K+=1)ne="█",V<=K&&K<P&&V<=te&&te<P&&j.isDark(G,Math.floor((K-V)/F))&&(ne=" "),V<=K&&K<P&&V<=te+1&&te+1<P&&j.isDark(ae,Math.floor((K-V)/F))?ne+=" ":ne+="█",le+=W<1&&te+1>=P?oe[ne]:re[ne];le+=`
|
|
245
|
+
`}return B%2&&W>0?le.substring(0,le.length-B-1)+Array(B+1).join("▀"):le.substring(0,le.length-1)};return j.createASCII=function(W,F){if(W=W||1,W<2)return ee(F);W-=1,F=typeof F>"u"?W*2:F;var B=j.getModuleCount()*W+F*2,V=F,P=B-F,te,K,G,ae,ne=Array(W+1).join("██"),re=Array(W+1).join(" "),oe="",le="";for(te=0;te<B;te+=1){for(G=Math.floor((te-V)/W),le="",K=0;K<B;K+=1)ae=1,V<=K&&K<P&&V<=te&&te<P&&j.isDark(G,Math.floor((K-V)/W))&&(ae=0),le+=ae?ne:re;for(G=0;G<W;G+=1)oe+=le+`
|
|
246
|
+
`}return oe.substring(0,oe.length-1)},j.renderTo2dContext=function(W,F){F=F||2;for(var B=j.getModuleCount(),V=0;V<B;V++)for(var P=0;P<B;P++)W.fillStyle=j.isDark(V,P)?"black":"white",W.fillRect(V*F,P*F,F,F)},j};r.stringToBytesFuncs={default:function(b){for(var S=[],M=0;M<b.length;M+=1){var $=b.charCodeAt(M);S.push($&255)}return S}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(b,S){var M=function(){for(var k=_(b),R=function(){var z=k.read();if(z==-1)throw"eof";return z},T=0,E={};;){var A=k.read();if(A==-1)break;var I=R(),j=R(),D=R(),O=String.fromCharCode(A<<8|I),L=j<<8|D;E[O]=L,T+=1}if(T!=S)throw T+" != "+S;return E}(),$=63;return function(k){for(var R=[],T=0;T<k.length;T+=1){var E=k.charCodeAt(T);if(E<128)R.push(E);else{var A=M[k.charAt(T)];typeof A=="number"?(A&255)==A?R.push(A):(R.push(A>>>8),R.push(A&255)):R.push($)}}return R}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},o={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var b=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],S=1335,M=7973,$=21522,k={},R=function(T){for(var E=0;T!=0;)E+=1,T>>>=1;return E};return k.getBCHTypeInfo=function(T){for(var E=T<<10;R(E)-R(S)>=0;)E^=S<<R(E)-R(S);return(T<<10|E)^$},k.getBCHTypeNumber=function(T){for(var E=T<<12;R(E)-R(M)>=0;)E^=M<<R(E)-R(M);return T<<12|E},k.getPatternPosition=function(T){return b[T-1]},k.getMaskFunction=function(T){switch(T){case a.PATTERN000:return function(E,A){return(E+A)%2==0};case a.PATTERN001:return function(E,A){return E%2==0};case a.PATTERN010:return function(E,A){return A%3==0};case a.PATTERN011:return function(E,A){return(E+A)%3==0};case a.PATTERN100:return function(E,A){return(Math.floor(E/2)+Math.floor(A/3))%2==0};case a.PATTERN101:return function(E,A){return E*A%2+E*A%3==0};case a.PATTERN110:return function(E,A){return(E*A%2+E*A%3)%2==0};case a.PATTERN111:return function(E,A){return(E*A%3+(E+A)%2)%2==0};default:throw"bad maskPattern:"+T}},k.getErrorCorrectPolynomial=function(T){for(var E=c([1],0),A=0;A<T;A+=1)E=E.multiply(c([1,l.gexp(A)],0));return E},k.getLengthInBits=function(T,E){if(1<=E&&E<10)switch(T){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:return 8;case i.MODE_KANJI:return 8;default:throw"mode:"+T}else if(E<27)switch(T){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw"mode:"+T}else if(E<41)switch(T){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw"mode:"+T}else throw"type:"+E},k.getLostPoint=function(T){for(var E=T.getModuleCount(),A=0,I=0;I<E;I+=1)for(var j=0;j<E;j+=1){for(var D=0,O=T.isDark(I,j),L=-1;L<=1;L+=1)if(!(I+L<0||E<=I+L))for(var z=-1;z<=1;z+=1)j+z<0||E<=j+z||L==0&&z==0||O==T.isDark(I+L,j+z)&&(D+=1);D>5&&(A+=3+D-5)}for(var I=0;I<E-1;I+=1)for(var j=0;j<E-1;j+=1){var N=0;T.isDark(I,j)&&(N+=1),T.isDark(I+1,j)&&(N+=1),T.isDark(I,j+1)&&(N+=1),T.isDark(I+1,j+1)&&(N+=1),(N==0||N==4)&&(A+=3)}for(var I=0;I<E;I+=1)for(var j=0;j<E-6;j+=1)T.isDark(I,j)&&!T.isDark(I,j+1)&&T.isDark(I,j+2)&&T.isDark(I,j+3)&&T.isDark(I,j+4)&&!T.isDark(I,j+5)&&T.isDark(I,j+6)&&(A+=40);for(var j=0;j<E;j+=1)for(var I=0;I<E-6;I+=1)T.isDark(I,j)&&!T.isDark(I+1,j)&&T.isDark(I+2,j)&&T.isDark(I+3,j)&&T.isDark(I+4,j)&&!T.isDark(I+5,j)&&T.isDark(I+6,j)&&(A+=40);for(var H=0,j=0;j<E;j+=1)for(var I=0;I<E;I+=1)T.isDark(I,j)&&(H+=1);var Y=Math.abs(100*H/E/E-50)/5;return A+=Y*10,A},k}(),l=function(){for(var b=new Array(256),S=new Array(256),M=0;M<8;M+=1)b[M]=1<<M;for(var M=8;M<256;M+=1)b[M]=b[M-4]^b[M-5]^b[M-6]^b[M-8];for(var M=0;M<255;M+=1)S[b[M]]=M;var $={};return $.glog=function(k){if(k<1)throw"glog("+k+")";return S[k]},$.gexp=function(k){for(;k<0;)k+=255;for(;k>=256;)k-=255;return b[k]},$}();function c(b,S){if(typeof b.length>"u")throw b.length+"/"+S;var M=function(){for(var k=0;k<b.length&&b[k]==0;)k+=1;for(var R=new Array(b.length-k+S),T=0;T<b.length-k;T+=1)R[T]=b[T+k];return R}(),$={};return $.getAt=function(k){return M[k]},$.getLength=function(){return M.length},$.multiply=function(k){for(var R=new Array($.getLength()+k.getLength()-1),T=0;T<$.getLength();T+=1)for(var E=0;E<k.getLength();E+=1)R[T+E]^=l.gexp(l.glog($.getAt(T))+l.glog(k.getAt(E)));return c(R,0)},$.mod=function(k){if($.getLength()-k.getLength()<0)return $;for(var R=l.glog($.getAt(0))-l.glog(k.getAt(0)),T=new Array($.getLength()),E=0;E<$.getLength();E+=1)T[E]=$.getAt(E);for(var E=0;E<k.getLength();E+=1)T[E]^=l.gexp(l.glog(k.getAt(E))+R);return c(T,0).mod(k)},$}var u=function(){var b=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],S=function(k,R){var T={};return T.totalCount=k,T.dataCount=R,T},M={},$=function(k,R){switch(R){case o.L:return b[(k-1)*4+0];case o.M:return b[(k-1)*4+1];case o.Q:return b[(k-1)*4+2];case o.H:return b[(k-1)*4+3];default:return}};return M.getRSBlocks=function(k,R){var T=$(k,R);if(typeof T>"u")throw"bad rs block @ typeNumber:"+k+"/errorCorrectionLevel:"+R;for(var E=T.length/3,A=[],I=0;I<E;I+=1)for(var j=T[I*3+0],D=T[I*3+1],O=T[I*3+2],L=0;L<j;L+=1)A.push(S(D,O));return A},M}(),d=function(){var b=[],S=0,M={};return M.getBuffer=function(){return b},M.getAt=function($){var k=Math.floor($/8);return(b[k]>>>7-$%8&1)==1},M.put=function($,k){for(var R=0;R<k;R+=1)M.putBit(($>>>k-R-1&1)==1)},M.getLengthInBits=function(){return S},M.putBit=function($){var k=Math.floor(S/8);b.length<=k&&b.push(0),$&&(b[k]|=128>>>S%8),S+=1},M},f=function(b){var S=i.MODE_NUMBER,M=b,$={};$.getMode=function(){return S},$.getLength=function(T){return M.length},$.write=function(T){for(var E=M,A=0;A+2<E.length;)T.put(k(E.substring(A,A+3)),10),A+=3;A<E.length&&(E.length-A==1?T.put(k(E.substring(A,A+1)),4):E.length-A==2&&T.put(k(E.substring(A,A+2)),7))};var k=function(T){for(var E=0,A=0;A<T.length;A+=1)E=E*10+R(T.charAt(A));return E},R=function(T){if("0"<=T&&T<="9")return T.charCodeAt(0)-48;throw"illegal char :"+T};return $},h=function(b){var S=i.MODE_ALPHA_NUM,M=b,$={};$.getMode=function(){return S},$.getLength=function(R){return M.length},$.write=function(R){for(var T=M,E=0;E+1<T.length;)R.put(k(T.charAt(E))*45+k(T.charAt(E+1)),11),E+=2;E<T.length&&R.put(k(T.charAt(E)),6)};var k=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;if("A"<=R&&R<="Z")return R.charCodeAt(0)-65+10;switch(R){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+R}};return $},p=function(b){var S=i.MODE_8BIT_BYTE,M=r.stringToBytes(b),$={};return $.getMode=function(){return S},$.getLength=function(k){return M.length},$.write=function(k){for(var R=0;R<M.length;R+=1)k.put(M[R],8)},$},m=function(b){var S=i.MODE_KANJI,M=r.stringToBytesFuncs.SJIS;if(!M)throw"sjis not supported.";(function(R,T){var E=M(R);if(E.length!=2||(E[0]<<8|E[1])!=T)throw"sjis not supported."})("友",38726);var $=M(b),k={};return k.getMode=function(){return S},k.getLength=function(R){return~~($.length/2)},k.write=function(R){for(var T=$,E=0;E+1<T.length;){var A=(255&T[E])<<8|255&T[E+1];if(33088<=A&&A<=40956)A-=33088;else if(57408<=A&&A<=60351)A-=49472;else throw"illegal char at "+(E+1)+"/"+A;A=(A>>>8&255)*192+(A&255),R.put(A,13),E+=2}if(E<T.length)throw"illegal char at "+(E+1)},k},g=function(){var b=[],S={};return S.writeByte=function(M){b.push(M&255)},S.writeShort=function(M){S.writeByte(M),S.writeByte(M>>>8)},S.writeBytes=function(M,$,k){$=$||0,k=k||M.length;for(var R=0;R<k;R+=1)S.writeByte(M[R+$])},S.writeString=function(M){for(var $=0;$<M.length;$+=1)S.writeByte(M.charCodeAt($))},S.toByteArray=function(){return b},S.toString=function(){var M="";M+="[";for(var $=0;$<b.length;$+=1)$>0&&(M+=","),M+=b[$];return M+="]",M},S},x=function(){var b=0,S=0,M=0,$="",k={},R=function(E){$+=String.fromCharCode(T(E&63))},T=function(E){if(!(E<0)){if(E<26)return 65+E;if(E<52)return 97+(E-26);if(E<62)return 48+(E-52);if(E==62)return 43;if(E==63)return 47}throw"n:"+E};return k.writeByte=function(E){for(b=b<<8|E&255,S+=8,M+=1;S>=6;)R(b>>>S-6),S-=6},k.flush=function(){if(S>0&&(R(b<<6-S),b=0,S=0),M%3!=0)for(var E=3-M%3,A=0;A<E;A+=1)$+="="},k.toString=function(){return $},k},_=function(b){var S=b,M=0,$=0,k=0,R={};R.read=function(){for(;k<8;){if(M>=S.length){if(k==0)return-1;throw"unexpected end of file./"+k}var E=S.charAt(M);if(M+=1,E=="=")return k=0,-1;if(E.match(/^\s$/))continue;$=$<<6|T(E.charCodeAt(0)),k+=6}var A=$>>>k-8&255;return k-=8,A};var T=function(E){if(65<=E&&E<=90)return E-65;if(97<=E&&E<=122)return E-97+26;if(48<=E&&E<=57)return E-48+52;if(E==43)return 62;if(E==47)return 63;throw"c:"+E};return R},w=function(b,S){var M=b,$=S,k=new Array(b*S),R={};R.setPixel=function(I,j,D){k[j*M+I]=D},R.write=function(I){I.writeString("GIF87a"),I.writeShort(M),I.writeShort($),I.writeByte(128),I.writeByte(0),I.writeByte(0),I.writeByte(0),I.writeByte(0),I.writeByte(0),I.writeByte(255),I.writeByte(255),I.writeByte(255),I.writeString(","),I.writeShort(0),I.writeShort(0),I.writeShort(M),I.writeShort($),I.writeByte(0);var j=2,D=E(j);I.writeByte(j);for(var O=0;D.length-O>255;)I.writeByte(255),I.writeBytes(D,O,255),O+=255;I.writeByte(D.length-O),I.writeBytes(D,O,D.length-O),I.writeByte(0),I.writeString(";")};var T=function(I){var j=I,D=0,O=0,L={};return L.write=function(z,N){if(z>>>N)throw"length over";for(;D+N>=8;)j.writeByte(255&(z<<D|O)),N-=8-D,z>>>=8-D,O=0,D=0;O=z<<D|O,D=D+N},L.flush=function(){D>0&&j.writeByte(O)},L},E=function(I){for(var j=1<<I,D=(1<<I)+1,O=I+1,L=A(),z=0;z<j;z+=1)L.add(String.fromCharCode(z));L.add(String.fromCharCode(j)),L.add(String.fromCharCode(D));var N=g(),H=T(N);H.write(j,O);var Y=0,q=String.fromCharCode(k[Y]);for(Y+=1;Y<k.length;){var Z=String.fromCharCode(k[Y]);Y+=1,L.contains(q+Z)?q=q+Z:(H.write(L.indexOf(q),O),L.size()<4095&&(L.size()==1<<O&&(O+=1),L.add(q+Z)),q=Z)}return H.write(L.indexOf(q),O),H.write(D,O),H.flush(),N.toByteArray()},A=function(){var I={},j=0,D={};return D.add=function(O){if(D.contains(O))throw"dup key:"+O;I[O]=j,j+=1},D.size=function(){return j},D.indexOf=function(O){return I[O]},D.contains=function(O){return typeof I[O]<"u"},D};return R},C=function(b,S,M){for(var $=w(b,S),k=0;k<S;k+=1)for(var R=0;R<b;R+=1)$.setPixel(R,k,M(R,k));var T=g();$.write(T);for(var E=x(),A=T.toByteArray(),I=0;I<A.length;I+=1)E.writeByte(A[I]);return E.flush(),"data:image/gif;base64,"+E};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(o){for(var a=[],s=0;s<o.length;s++){var l=o.charCodeAt(s);l<128?a.push(l):l<2048?a.push(192|l>>6,128|l&63):l<55296||l>=57344?a.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|o.charCodeAt(s)&1023),a.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return a}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(fC);var dD=fC.exports,fD=Hn&&Hn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},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)}}(),Sm=Hn&&Hn.__assign||function(){return Sm=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},Sm.apply(this,arguments)};Object.defineProperty(d0,"__esModule",{value:!0});exports.QRCode_1=d0.QRCode=void 0;var hD=uD,pD=dD,np=v,mD=function(e){fD(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=np.createRef(),r}return t.prototype.download=function(n,r){if(this.canvasRef.current){var i=void 0;switch(n){case"jpg":i="image/jpeg";break;case"webp":i="image/webp";break;case"png":default:i="image/png";break}var o=this.canvasRef.current.toDataURL(i,1),a=document.createElement("a");a.download=r??"react-qrcode-logo",a.href=o,a.click()}},t.prototype.utf16to8=function(n){var r="",i,o,a=n.length;for(i=0;i<a;i++)o=n.charCodeAt(i),o>=1&&o<=127?r+=n.charAt(i):o>2047?(r+=String.fromCharCode(224|o>>12&15),r+=String.fromCharCode(128|o>>6&63),r+=String.fromCharCode(128|o>>0&63)):(r+=String.fromCharCode(192|o>>6&31),r+=String.fromCharCode(128|o>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,o,a,s,l,c){c.lineWidth=n,c.fillStyle=a,c.strokeStyle=a,i+=n/2,r+=n/2,o-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(p){return p=Math.min(p,o/2),p<0?0:p});var u=s[0]||0,d=s[1]||0,f=s[2]||0,h=s[3]||0;c.beginPath(),c.moveTo(r+u,i),c.lineTo(r+o-d,i),d&&c.quadraticCurveTo(r+o,i,r+o,i+d),c.lineTo(r+o,i+o-f),f&&c.quadraticCurveTo(r+o,i+o,r+o-f,i+o),c.lineTo(r+h,i+o),h&&c.quadraticCurveTo(r,i+o,r,i+o-h),c.lineTo(r,i+u),u&&c.quadraticCurveTo(r,i,r+u,i),c.closePath(),c.stroke(),l&&c.fill()},t.prototype.drawPositioningPattern=function(n,r,i,o,a,s,l){l===void 0&&(l=[0,0,0,0]);var c=Math.ceil(r),u,d;typeof l!="number"&&!Array.isArray(l)?(u=l.outer||0,d=l.inner||0):(u=l,d=u);var f,h;typeof s!="string"?(f=s.outer,h=s.inner):(f=s,h=s);var p=o*r+i,m=a*r+i,g=r*7;this.drawRoundedSquare(c,m,p,g,f,u,!1,n),g=r*3,p+=r*2,m+=r*2,this.drawRoundedSquare(c,m,p,g,h,d,!0,n)},t.prototype.isInPositioninZone=function(n,r,i){return i.some(function(o){return r>=o.row&&r<=o.row+7&&n>=o.col&&n<=o.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,o,a,s,l,c){if(c){var u=2,d=this.transformPixelLengthIntoNumberOfCells(a,l),f=this.transformPixelLengthIntoNumberOfCells(s,l),h=this.transformPixelLengthIntoNumberOfCells(i,l)-1,p=this.transformPixelLengthIntoNumberOfCells(o,l)-1;return r>=d-u&&r<=d+h+u&&n>=f-u&&n<=f+p+u}else return!1},t.prototype.shouldComponentUpdate=function(n){return!hD(this.props,n)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var n,r=this.props,i=r.value,o=r.ecLevel,a=r.enableCORS,s=r.bgColor,l=r.fgColor,c=r.logoImage,u=r.logoOpacity,d=r.logoOnLoad,f=r.removeQrCodeBehindLogo,h=r.qrStyle,p=r.eyeRadius,m=r.eyeColor,g=r.logoPaddingStyle,x=+this.props.size,_=+this.props.quietZone,w=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,b=this.props.logoPadding?+this.props.logoPadding:0,S=pD(0,o);S.addData(this.utf16to8(i)),S.make();var M=(n=this.canvasRef)===null||n===void 0?void 0:n.current,$=M.getContext("2d"),k=x+2*_,R=S.getModuleCount(),T=x/R,E=window.devicePixelRatio||1;M.height=M.width=k*E,$.scale(E,E),$.fillStyle=s,$.fillRect(0,0,k,k);var A=_,I=[{row:0,col:0},{row:0,col:R-7},{row:R-7,col:0}];if($.strokeStyle=l,h==="dots"){$.fillStyle=l;for(var j=T/2,D=0;D<R;D++)for(var O=0;O<R;O++)S.isDark(D,O)&&!this.isInPositioninZone(D,O,I)&&($.beginPath(),$.arc(Math.round(O*T)+j+A,Math.round(D*T)+j+A,j/100*75,0,2*Math.PI,!1),$.closePath(),$.fill())}else if(h==="fluid"){for(var j=Math.ceil(T/2),D=0;D<R;D++)for(var O=0;O<R;O++)if(S.isDark(D,O)&&!this.isInPositioninZone(D,O,I)){var L=[!1,!1,!1,!1];D>0&&!S.isDark(D-1,O)&&O>0&&!S.isDark(D,O-1)&&(L[0]=!0),D>0&&!S.isDark(D-1,O)&&O<R-1&&!S.isDark(D,O+1)&&(L[1]=!0),D<R-1&&!S.isDark(D+1,O)&&O<R-1&&!S.isDark(D,O+1)&&(L[2]=!0),D<R-1&&!S.isDark(D+1,O)&&O>0&&!S.isDark(D,O-1)&&(L[3]=!0);var z=Math.ceil((O+1)*T)-Math.floor(O*T),N=Math.ceil((D+1)*T)-Math.floor(D*T);$.fillStyle=l,$.beginPath(),$.arc(Math.round(O*T)+j+A,Math.round(D*T)+j+A,j,0,2*Math.PI,!1),$.closePath(),$.fill(),L[0]||$.fillRect(Math.round(O*T)+A,Math.round(D*T)+A,z/2,N/2),L[1]||$.fillRect(Math.round(O*T)+A+Math.floor(z/2),Math.round(D*T)+A,z/2,N/2),L[2]||$.fillRect(Math.round(O*T)+A+Math.floor(z/2),Math.round(D*T)+A+Math.floor(N/2),z/2,N/2),L[3]||$.fillRect(Math.round(O*T)+A,Math.round(D*T)+A+Math.floor(N/2),z/2,N/2)}}else for(var D=0;D<R;D++)for(var O=0;O<R;O++)if(S.isDark(D,O)&&!this.isInPositioninZone(D,O,I)){$.fillStyle=l;var z=Math.ceil((O+1)*T)-Math.floor(O*T),N=Math.ceil((D+1)*T)-Math.floor(D*T);$.fillRect(Math.round(O*T)+A,Math.round(D*T)+A,z,N)}for(var H=0;H<3;H++){var Y=I[H],D=Y.row,O=Y.col,q=p,Z=void 0;Array.isArray(q)&&(q=q[H]),typeof q=="number"&&(q=[q,q,q,q]),m?Array.isArray(m)?Z=m[H]:Z=m:Z=l,this.drawPositioningPattern($,T,A,D,O,Z,q)}if(c){var X=new Image;a&&(X.crossOrigin="Anonymous"),X.onload=function(J){$.save();var ee=w||x*.2,W=C||ee,F=(x-ee)/2,B=(x-W)/2;if(f||b){$.beginPath(),$.strokeStyle=s,$.fillStyle=s;var V=ee+2*b,P=W+2*b,te=F+A-b,K=B+A-b;if(g==="circle"){var G=te+V/2,ae=K+P/2;$.ellipse(G,ae,V/2,P/2,0,0,2*Math.PI),$.stroke(),$.fill()}else $.fillRect(te,K,V,P)}$.globalAlpha=u,$.drawImage(X,F+A,B+A,ee,W),$.restore(),d&&d(J)},X.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return np.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:Sm({height:r+"px",width:r+"px"},this.props.style),ref:this.canvasRef})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(np.Component);exports.QRCode_1=d0.QRCode=mD;const gD="_floating-label_3xm9u_1",vD="_without-label_3xm9u_21",bD="_floating-label-check_3xm9u_184",rp={floatingLabel:gD,withoutLabel:vD,floatingLabelCheck:bD},yD=e=>{const t=je.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?y.jsx(Jg,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},lf=({ref:e,hidden:t,children:n,className:r,isInvalid:i,isForRadioInput:o,inputContainerClassName:a,isForCheckInput:s,hint:l,required:c,disabled:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(rn),h=d.withoutLabel?"":y.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?y.jsx("span",{className:se("fw-bold",{"text-danger":!u}),style:{fontSize:"16px"},children:"*"}):null,l?y.jsx("div",{className:"d-flex align-items-center",children:y.jsx(f,{icon:"info"})}):null]});return s?y.jsx("div",{className:se("luminus-floating-label-check",rp.floatingLabelCheck),children:n}):y.jsx(yD,{hint:l,children:y.jsx(Ug,{ref:e,label:y.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:se(`luminus-floating-label ${r??""}`,rp.floatingLabel,{[a??""]:a},{[rp.withoutLabel]:d.withoutLabel}),children:n})})};lf.displayName="FloatingLabelInput";const xD="_row-label-input_i295l_1",wD="_label_i295l_4",_D="_input-container_i295l_9",CD="_keep-check-label_i295l_132",SD="_is-invalid_i295l_160",Us={rowLabelInput:xD,label:wD,inputContainer:_D,keepCheckLabel:CD,isInvalid:SD},Tc=({ref:e,hidden:t,children:n,required:r,disabled:i,className:o,isInvalid:a,isForRadioInput:s,isForTextAreaInput:l,inputContainerClassName:c,hint:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(rn),h=d.withoutLabel?y.jsx(y.Fragment,{}):y.jsx("label",{className:se("label col-6",{"col-12":l},Us.label),children:y.jsxs(jn,{variant:"form-label",className:se("d-flex gap-1 align-items-center",a?"text-danger":""),children:[d.label,r?y.jsx("span",{className:se("fw-bold",{"text-danger":!i}),style:{fontSize:"16px"},children:"*"}):null,u?y.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:y.jsx(f,{icon:"info"})}):null]})});return y.jsxs("div",{ref:e,className:se("luminus-row-label row gx-0 gy-0",{"is-invalid":a},{[Us.isInvalid]:a},{[o??""]:o},{"d-none":t},Us.rowLabelInput),children:[u?y.jsx(Jg,{text:u,placement:"top",children:h}):h,y.jsx("div",{className:se("input-container",Us.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[Us.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};Tc.displayName="RowLabelInput";const hC=e=>{const t=je.c(4),{ref:n,children:r,className:i,hidden:o}=e,a=`${o?"d-none":""} ${i}`;let s;return t[0]!==r||t[1]!==n||t[2]!==a?(s=y.jsx("div",{ref:n,className:a,children:r}),t[0]=r,t[1]=n,t[2]=a,t[3]=s):s=t[3],s};hC.displayName="NoInputContainer";const pC=e=>{const t=je.c(8),{currentSelection:n,selectedItemNavigateTo:r,children:i}=e;if(!n||!n.id||!r){let l;return t[0]!==i?(l=y.jsx("div",{className:"luminus-input-container position-relative w-100",children:i}),t[0]=i,t[1]=l):l=t[1],l}let o;t[2]!==n||t[3]!==r?(o=r(n),t[2]=n,t[3]=r,t[4]=o):o=t[4];const a=o;let s;return t[5]!==i||t[6]!==a?(s=y.jsx(us.Link,{to:a,className:"luminus-input-container position-relative w-100 text-decoration-none",children:i}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s},mC=({InputContainer:e=lf,type:t,value:n,onChange:r,debounceMs:i,label:o,withoutLabel:a,placeholder:s,size:l,hidden:c,disabled:u,showClearIcon:d,clearValue:f,list:h,className:p,step:m,minLength:g,maxLength:x,noSelectOnFocus:_,hint:w,onConfirm:C,autoComplete:b})=>{var N,H,Y;const S=t==="number",M=v.useCallback(()=>{if(!r)return;const q=f??null;r(S?q?Number(q):null:(q==null?void 0:q.toString())??"")},[f,S,r]),$=v.useRef(null),[k,R]=v.useState((n==null?void 0:n.toString())??""),T=v.useCallback(q=>{const Z=q;r&&r(S?Z==null||Z===""?null:Number(Z):Z||null)},[S,r]),E=v.useCallback(q=>{var X;const Z=(X=q.target)==null?void 0:X.value;if(!i){T(Z);return}R(Z),$.current!==null&&window.clearTimeout($.current),$.current=window.setTimeout(()=>{T(Z)},i)},[i,T]),A=v.useMemo(()=>{if(C!==void 0)return q=>{q.key==="Enter"&&C&&C()}},[C]);v.useEffect(()=>{R(n===null?"":n.toString())},[n]);const[I,j]=v.useState(!1),D=c0(t,n?n.toString()??null:null,I),O=v.useRef(null),L=(((N=O.current)==null?void 0:N.scrollWidth)??0)>(((H=O.current)==null?void 0:H.clientWidth)??0),z=(Y=O.current)==null?void 0:Y.getBoundingClientRect();return y.jsxs(e,{withoutLabel:a,label:o??"",hidden:c,className:p,hint:w,disabled:u,children:[y.jsx(Xr.Control,{type:D,placeholder:s??o,size:l,value:i?k:(n==null?void 0:n.toString())??"",onChange:E,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:q=>{j(!0),!_&&q.target.select()},onBlur:()=>j(!1),onKeyDown:A,step:m,minLength:g,maxLength:x,autoComplete:b,ref:O}),d&&n!==null&&r&&!u&&y.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:M,children:y.jsx(gc,{})})}),L?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((z==null?void 0:z.top)??0)+((z==null?void 0:z.height)??0),left:(z==null?void 0:z.left)??0},children:i?k:(n==null?void 0:n.toString())??""}):null]})},gC=e=>{const t=je.c(7),{value:n,MiniDetailComponent:r,children:i,miniDetailPlacement:o}=e;if(!n||!r)return i;let a;t[0]!==n?(a=n.toString(),t[0]=n,t[1]=a):a=t[1];let s;return t[2]!==r||t[3]!==i||t[4]!==o||t[5]!==a?(s=y.jsx(r,{id:a,placement:o,children:i}),t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s):s=t[6],s},vC=({InputContainer:e=lf,value:t,options:n,onChange:r,label:i,withoutLabel:o,isNumber:a,size:s,hidden:l,disabled:c,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:p,dropdownWidth:m,hint:g,addNewOptionPath:x,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:C,selectedItemNavigateTo:b,noRemoveButton:S})=>{const{texts:{customSelect:M}}=v.useContext(rn),[$,k]=v.useState(!1),[R,T]=v.useState(""),E=v.useCallback(z=>{T(z)},[]),A=v.useMemo(()=>n.find(z=>z.id===t)??null,[n,t]),I=v.useCallback(z=>{var N;return z===null?"":!z.name||z.name.length===0?((N=z.id)==null?void 0:N.toString())??"":f?`${z.name} (${z.id})`:z.name},[f]),j=v.useMemo(()=>{const z=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(z.some(N=>N.id===t)||z.push({id:t,name:p})),z.map(N=>({id:N.id,name:I(N)})).filter(N=>e0(N.name,R)).sort((N,H)=>u?0:(N.name??"").localeCompare(H.name??""))},[n,u,R,I,p,t]),D=v.useCallback(z=>{var N;r&&r((z==null?void 0:z.id)===void 0||(z==null?void 0:z.id)===null?null:a?Number(z.id):(N=z.id)==null?void 0:N.toString())},[r,a]),O=v.useCallback(z=>{k(!1),D(z)},[D]),L=v.useRef(null);return y.jsx(y.Fragment,{children:y.jsxs(e,{withoutLabel:o,label:i??"",hidden:l,inputContainerClassName:se({"luminus-dropdown-select-open":$}),className:d,hint:g,disabled:c,children:[y.jsx(pC,{currentSelection:A,selectedItemNavigateTo:b,children:y.jsx(gC,{value:t,MiniDetailComponent:w,miniDetailPlacement:C,children:y.jsxs(Xr.Select,{ref:L,size:s,value:t??"",onMouseDown:z=>{z.currentTarget.focus(),z.preventDefault()},onClick:()=>{!c&&k(!0)},onChange:()=>{},className:se("w-100",{"luminus-dropdown-picker-disabled":c}),hidden:l,children:[h&&!(t==null||t==="")?void 0:y.jsx("option",{value:""}),t!=null&&y.jsx("option",{value:t,children:I(A)})]})})}),L.current&&y.jsx(x3,{show:$,onCancel:()=>k(!1),items:j,currentSelection:A??null,onSelectionChange:O,onSearchQueryChange:E,texts:M,disabled:c,inputRef:L,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:x,refreshOptions:_,noRemoveButton:S})]})})};function TD(e){return it({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function $D(e){return it({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function kD(e){return it({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function MD(e){return it({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"},child:[]}]})(e)}const cf=e=>{const t=je.c(66),{InputContainer:n,formField:r,label:i,resetsFields:o,options:a,isNumber:s,size:l,showClearIcon:c,clearValue:u,noSortOptions:d,required:f,hidden:h,disabled:p,withoutLabel:m,hint:g,className:x}=e,_=n===void 0?Tc:n,{control:w,getValues:C,setValue:b}=sn.useFormContext(),{isSubmitted:S}=sn.useFormState();let M;t[0]===Symbol.for("react.memo_cache_sentinel")?(M={falseIfNotInit:!0},t[0]=M):M=t[0];const $=af(M);let k;t[1]!==w||t[2]!==r?(k={name:r,control:w},t[1]=w,t[2]=r,t[3]=k):k=t[3];const{field:R,fieldState:T}=sn.useController(k),{value:E,onChange:A,onBlur:I,ref:j,name:D}=R,{error:O}=T,[L,z]=v.useState(!1);let N;if(t[4]!==d||t[5]!==a){let le;t[7]!==d?(le=(ye,ge)=>d?0:(ye.name??"").localeCompare(ge.name??""),t[7]=d,t[8]=le):le=t[8],N=a.toSorted(le),t[4]=d,t[5]=a,t[6]=N}else N=t[6];const H=N;let Y;t[9]!==u||t[10]!==r||t[11]!==s||t[12]!==b||t[13]!==L?(Y=()=>{const le=u??null;s?b(r,le===null?null:Number(le),{shouldDirty:!0,shouldValidate:L}):b(r,(le==null?void 0:le.toString())??"",{shouldDirty:!0,shouldValidate:L})},t[9]=u,t[10]=r,t[11]=s,t[12]=b,t[13]=L,t[14]=Y):Y=t[14];const q=Y,Z=p||$;let X;t[15]!==r||t[16]!==C||t[17]!==b?(X=()=>{b(r,C(r))},t[15]=r,t[16]=C,t[17]=b,t[18]=X):X=t[18];let J;t[19]!==r||t[20]!==C||t[21]!==H||t[22]!==b?(J=[H,r,C,b],t[19]=r,t[20]=C,t[21]=H,t[22]=b,t[23]=J):J=t[23],v.useEffect(X,J);let ee,W;t[24]!==S?(ee=()=>{S&&z(!0)},W=[S],t[24]=S,t[25]=ee,t[26]=W):(ee=t[25],W=t[26]),v.useEffect(ee,W);const F=O!==void 0;let B;t[27]!==A||t[28]!==s||t[29]!==o||t[30]!==b||t[31]!==L?(B=le=>{const ye=le.target.value;let ge;s?ge=ye===""?null:parseInt(ye,10):ge=ye===""?null:ye,A(ge),o&&o.forEach(be=>b(be,null,{shouldDirty:!0,shouldValidate:L}))},t[27]=A,t[28]=s,t[29]=o,t[30]=b,t[31]=L,t[32]=B):B=t[32];const V=B,P=i??"",te=E??"";let K;t[33]===Symbol.for("react.memo_cache_sentinel")?(K=y.jsx("option",{value:""}),t[33]=K):K=t[33];let G;t[34]!==H?(G=H.map(ED),t[34]=H,t[35]=G):G=t[35];let ae;t[36]!==Z||t[37]!==D||t[38]!==I||t[39]!==j||t[40]!==V||t[41]!==h||t[42]!==F||t[43]!==l||t[44]!==te||t[45]!==G?(ae=y.jsxs(Xr.Select,{size:l,name:D,value:te,onChange:V,onBlur:I,ref:j,isInvalid:F,hidden:h,disabled:Z,className:"w-100",children:[K,G]}),t[36]=Z,t[37]=D,t[38]=I,t[39]=j,t[40]=V,t[41]=h,t[42]=F,t[43]=l,t[44]=te,t[45]=G,t[46]=ae):ae=t[46];let ne;t[47]!==q||t[48]!==E||t[49]!==c?(ne=c&&E!=null&&y.jsx("div",{className:"luminus-input-remove-icon inset",children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:q,children:y.jsx(gc,{})})}),t[47]=q,t[48]=E,t[49]=c,t[50]=ne):ne=t[50];let re;t[51]!==O?(re=O&&y.jsx(gf,{message:O.message}),t[51]=O,t[52]=re):re=t[52];let oe;return t[53]!==_||t[54]!==Z||t[55]!==x||t[56]!==h||t[57]!==g||t[58]!==F||t[59]!==f||t[60]!==P||t[61]!==ae||t[62]!==ne||t[63]!==re||t[64]!==m?(oe=y.jsx(y.Fragment,{children:y.jsxs(_,{label:P,required:f,disabled:Z,hidden:h,withoutLabel:m,isInvalid:F,hint:g,className:x,children:[ae,ne,re]})}),t[53]=_,t[54]=Z,t[55]=x,t[56]=h,t[57]=g,t[58]=F,t[59]=f,t[60]=P,t[61]=ae,t[62]=ne,t[63]=re,t[64]=m,t[65]=oe):oe=t[65],oe};function ED(e){return y.jsx("option",{value:e.id??"",children:e.name},e.id)}const f0=e=>{const t=je.c(61),{InputContainer:n,formField:r,label:i,resetsFields:o,size:a,showClearIcon:s,clearValue:l,required:c,hidden:u,disabled:d,rows:f,withoutLabel:h,customFormControlProps:p,minLength:m,maxLength:g,hint:x,onChange:_,className:w}=e,C=n===void 0?Tc:n,{control:b,setValue:S}=sn.useFormContext(),{isSubmitted:M}=sn.useFormState();let $;t[0]===Symbol.for("react.memo_cache_sentinel")?($={falseIfNotInit:!0},t[0]=$):$=t[0];const k=af($),[R,T]=v.useState(!1);let E;t[1]!==b||t[2]!==r?(E={name:r,control:b},t[1]=b,t[2]=r,t[3]=E):E=t[3];const{field:A,fieldState:I}=sn.useController(E),{onChange:j,onBlur:D,ref:O,value:L,name:z}=A,{error:N}=I;let H;t[4]!==p?(H=p??{},t[4]=p,t[5]=H):H=t[5];let Y,q,Z;t[6]!==H?({onChange:q,onBlur:Y,...Z}=H,t[6]=H,t[7]=Y,t[8]=q,t[9]=Z):(Y=t[7],q=t[8],Z=t[9]);let X;t[10]!==l||t[11]!==r||t[12]!==S||t[13]!==R?(X=()=>{const be=l??null,Me=be==null||be===""?null:be.toString();S(r,Me,{shouldDirty:!0,shouldValidate:R})},t[10]=l,t[11]=r,t[12]=S,t[13]=R,t[14]=X):X=t[14];const J=X,ee=d||k;let W,F;t[15]!==M?(W=()=>{M&&T(!0)},F=[M],t[15]=M,t[16]=W,t[17]=F):(W=t[16],F=t[17]),v.useEffect(W,F);const B=N!==void 0;let V;t[18]!==q||t[19]!==j||t[20]!==_||t[21]!==o||t[22]!==S||t[23]!==R?(V=be=>{const Me=be.target.value,ce=Me==null||Me===""?null:Me;j(ce),o&&o.forEach(de=>S(de,null,{shouldDirty:!0,shouldValidate:R})),_&&_(ce),q&&q(be)},t[18]=q,t[19]=j,t[20]=_,t[21]=o,t[22]=S,t[23]=R,t[24]=V):V=t[24];const P=V;let te;t[25]!==Y||t[26]!==D?(te=be=>{D(),Y&&Y(be)},t[25]=Y,t[26]=D,t[27]=te):te=t[27];const K=te,G=L!=null&&L!=="",ae=i??"",ne=L??"",re=f??2;let oe;t[28]!==ee||t[29]!==z||t[30]!==O||t[31]!==K||t[32]!==P||t[33]!==u||t[34]!==B||t[35]!==g||t[36]!==m||t[37]!==Z||t[38]!==a||t[39]!==ne||t[40]!==re?(oe=y.jsx(Xr.Control,{as:"textarea",name:z,size:a,value:ne,onChange:P,onBlur:K,ref:O,isInvalid:B,hidden:u,disabled:ee,rows:re,className:"w-100",minLength:m,maxLength:g,...Z}),t[28]=ee,t[29]=z,t[30]=O,t[31]=K,t[32]=P,t[33]=u,t[34]=B,t[35]=g,t[36]=m,t[37]=Z,t[38]=a,t[39]=ne,t[40]=re,t[41]=oe):oe=t[41];let le;t[42]!==J||t[43]!==G||t[44]!==s?(le=s&&G&&y.jsx("div",{className:"luminus-input-remove-icon",children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:J,children:y.jsx(gc,{})})}),t[42]=J,t[43]=G,t[44]=s,t[45]=le):le=t[45];let ye;t[46]!==N?(ye=N&&y.jsx(gf,{message:N.message}),t[46]=N,t[47]=ye):ye=t[47];let ge;return t[48]!==C||t[49]!==ee||t[50]!==w||t[51]!==u||t[52]!==x||t[53]!==B||t[54]!==c||t[55]!==ae||t[56]!==oe||t[57]!==le||t[58]!==ye||t[59]!==h?(ge=y.jsxs(C,{label:ae,required:c,disabled:ee,hidden:u,withoutLabel:h,isInvalid:B,className:w,hint:x,isForTextAreaInput:!0,children:[oe,le,ye]}),t[48]=C,t[49]=ee,t[50]=w,t[51]=u,t[52]=x,t[53]=B,t[54]=c,t[55]=ae,t[56]=oe,t[57]=le,t[58]=ye,t[59]=h,t[60]=ge):ge=t[60],ge},rs=({ref:e,InputContainer:t=Tc,type:n,formField:r,label:i,placeholder:o,size:a,resetsFields:s,showClearIcon:l,clearValue:c,required:u,hidden:d,disabled:f,withoutLabel:h,list:p,step:m,CustomOnChangeComponent:g,noSelectOnFocus:x,minLength:_,maxLength:w,hint:C,onChange:b,className:S,autoComplete:M})=>{var V,P,te,K;const{control:$,setValue:k}=sn.useFormContext(),{isSubmitted:R}=sn.useFormState(),T=af({falseIfNotInit:!0}),{field:{value:E,onChange:A,onBlur:I,ref:j,name:D},fieldState:{error:O}}=sn.useController({name:r,control:$}),[L,z]=v.useState(!1),N=v.useCallback(()=>{const G=c??null;n==="number"?k(r,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:L}):k(r,(G==null?void 0:G.toString())??"",{shouldDirty:!0,shouldValidate:L})},[c,n,k,r,L]),H=v.useMemo(()=>f||T,[f,T]),Y=O!==void 0,[q,Z]=v.useState(!1),X=c0(n,E??null,q),J=v.useCallback(G=>{const ae=G.target.value;let ne=ae;n==="number"?ne=ae===""?null:Number(ae):ne=ae===""?null:ae,A(ne),s&&s.forEach(re=>k(re,null,{shouldDirty:!0,shouldValidate:L})),b&&b(ne===null?null:n==="number"?ne??null:ne.toString())},[A,b,s,k,L,n]),ee=v.useCallback(()=>{Z(!1),I()},[I]),W=v.useRef(null),F=(((V=W.current)==null?void 0:V.scrollWidth)??0)>(((P=W.current)==null?void 0:P.clientWidth)??0),B=(te=W.current)==null?void 0:te.getBoundingClientRect();return v.useImperativeHandle(e,()=>W.current,[W]),v.useEffect(()=>{R&&z(!0)},[R]),y.jsxs(t,{label:i,required:u,disabled:H,hidden:d,withoutLabel:h??!1,isInvalid:Y,hint:C,className:S,children:[y.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[y.jsx(Xr.Control,{type:X,placeholder:o??i,size:a,name:D,value:E??"",onChange:J,onBlur:ee,onFocus:G=>{Z(!0),!x&&G.target.select()},ref:G=>{j(G),W.current=G},isInvalid:Y,hidden:d,disabled:H,list:p,className:"w-100",step:m,minLength:_,maxLength:w,autoComplete:M}),g&&y.jsx("div",{className:"custom-picker-button",children:g})]}),l&&E!=null&&y.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:y.jsx(Sc,{color:"secondary",size:"sm",onClick:N,children:y.jsx(gc,{})})}),F?y.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((B==null?void 0:B.top)??0)+((B==null?void 0:B.height)??0),left:(B==null?void 0:B.left)??0,pointerEvents:"none"},children:((K=W.current)==null?void 0:K.value)??""}):null,O&&y.jsx(gf,{message:O.message})]})},OD="_item_1dy8x_1",bC={item:OD},$o=e=>{const t=je.c(17);let n,r,i,o,a,s,l;t[0]!==e?({color:s,icon:i,className:r,children:n,to:l,as:o,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7]);const u=`btn luminus-dropdown-item text-nowrap rounded text-${s===void 0?"primary":s} ${r??""}`;let d;t[8]!==u?(d=se(u,bC.item),t[8]=u,t[9]=d):d=t[9];const f=o==="link"?us.Link:void 0,h=l??"";let p;return t[10]!==n||t[11]!==i||t[12]!==a||t[13]!==d||t[14]!==f||t[15]!==h?(p=y.jsxs(Za.Item,{className:d,as:f,to:h,...a,children:[i,n]}),t[10]=n,t[11]=i,t[12]=a,t[13]=d,t[14]=f,t[15]=h,t[16]=p):p=t[16],p},AD="_button_qhwih_1",RD={button:AD},h0=({ref:e,color:t="primary",icon:n=y.jsx(V_,{size:21}),text:r,onClick:i,className:o,children:a,...s})=>y.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:se(`btn luminus-context-button text-${t} ${o??""}`,RD.button),...s,children:[n,r]}),p0=e=>{const t=je.c(2);let n;return t[0]!==e?(n=y.jsx(Za.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},DD="_divider_1e6rk_1",ID={divider:DD},Tm=e=>{const t=je.c(4),{className:n}=e;let r;t[0]!==n?(r=se("luminus-dropdown-divider",n,ID.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx(Za.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},jD="_dropdown_1lk66_1",PD={dropdown:jD},m0=e=>{const t=je.c(23);let n,r,i,o,a,s,l,c,u,d;if(t[0]!==e){const{toggle:m,children:g,align:x,..._}=e;o=g,i=x;const{menuAlign:w,menuClassName:C,...b}=_.menuProps||{};a=w,s=b,r=Za,c=_,u=i,d=m,n=Za.Menu,l=se("luminus-dropdown rounded shadow",PD.dropdown,C),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t[9]=u,t[10]=d}else n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10];const f=i||a;let h;t[11]!==n||t[12]!==o||t[13]!==s||t[14]!==l||t[15]!==f?(h=y.jsx(n,{className:l,align:f,...s,children:o}),t[11]=n,t[12]=o,t[13]=s,t[14]=l,t[15]=f,t[16]=h):h=t[16];let p;return t[17]!==r||t[18]!==c||t[19]!==u||t[20]!==d||t[21]!==h?(p=y.jsxs(r,{...c,align:u,children:[d,h]}),t[17]=r,t[18]=c,t[19]=u,t[20]=d,t[21]=h,t[22]=p):p=t[22],p},ND="_wrapper_1tb6d_1",LD="_controls_1tb6d_16",FD="_explorerWindow_1tb6d_20",BD="_folderList_1tb6d_28",zD="_fileList_1tb6d_35",WD="_dndText_1tb6d_61",po={wrapper:ND,controls:LD,explorerWindow:FD,folderList:BD,fileList:zD,dndText:WD},mn=v.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),UD="_defaultFolder_8tlxv_1",HD="_names_8tlxv_5",VD="_folderType_8tlxv_9",ip={defaultFolder:UD,names:HD,folderType:VD},yC=e=>{const t=je.c(19),{isActive:n,isDefault:r,folderName:i,typeName:o}=e,{ProjectIconComponent:a}=v.useContext(rn),s=`folder${n?"-filled":""}`,l=r?ip.defaultFolder:"text-primary";let c;t[0]!==l?(c=se("d-inline-block",l),t[0]=l,t[1]=c):c=t[1];let u;t[2]===Symbol.for("react.memo_cache_sentinel")?(u={className:"d-block"},t[2]=u):u=t[2];let d;t[3]!==a||t[4]!==s||t[5]!==c?(d=y.jsx(a,{icon:s,className:c,iconProps:u,size:18}),t[3]=a,t[4]=s,t[5]=c,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=se("d-flex flex-column gap-0 align-items-start",ip.names),t[7]=f):f=t[7];const h=n?"fw-bold":"";let p;t[8]!==i||t[9]!==h?(p=y.jsx("span",{className:h,children:i}),t[8]=i,t[9]=h,t[10]=p):p=t[10];let m;t[11]!==o?(m=o?y.jsxs("span",{className:ip.folderType,children:["(",o,")"]}):null,t[11]=o,t[12]=m):m=t[12];let g;t[13]!==p||t[14]!==m?(g=y.jsxs("div",{className:f,children:[p,m]}),t[13]=p,t[14]=m,t[15]=g):g=t[15];let x;return t[16]!==g||t[17]!==d?(x=y.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[d,g]}),t[16]=g,t[17]=d,t[18]=x):x=t[18],x},qD=e=>{const t=je.c(9),{customText:n}=e,{reducer:r}=v.useContext(mn),[i,o]=r;let a;t[0]!==o?(a=()=>{o({type:"select-folder",folderId:"root"})},t[0]=o,t[1]=a):a=t[1];const s=a;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=se("border-0 bg-transparent"),t[2]=l):l=t[2];const c=n??"root",u=i.activeFolder==="root";let d;t[3]!==c||t[4]!==u?(d=y.jsx(yC,{folderName:c,isActive:u,typeName:"",isDefault:!0}),t[3]=c,t[4]=u,t[5]=d):d=t[5];let f;return t[6]!==s||t[7]!==d?(f=y.jsx("li",{children:y.jsx("button",{onClick:s,type:"button",className:l,children:d})}),t[6]=s,t[7]=d,t[8]=f):f=t[8],f};function YD(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const xC=()=>{const e=nf(),{startLoading:t,stopLoading:n}=v.useContext(qd),{reducer:[,r]}=v.useContext(mn),i=v.useCallback(async(a,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:a,name:s}),r({type:"update-folders",folderIds:[a],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),o=v.useCallback(async a=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",a);r({type:"create-folder",folderData:a,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:o}},Eb=(e,t,n)=>{if(e&&"reportValidity"in e){const r=sn.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},wC=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Eb(r.ref,n,e):r.refs&&r.refs.forEach(i=>Eb(i,n,e))}},GD=(e,t)=>{t.shouldUseNativeValidation&&wC(e,t);const n={};for(const r in e){const i=sn.get(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(ZD(t.names||Object.keys(e),r)){const a=Object.assign({},sn.get(n,r));sn.set(a,"root",o),sn.set(n,r,a)}else sn.set(n,r,o)}return n},ZD=(e,t)=>e.some(n=>n.startsWith(t+"."));var XD=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,o=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:o,type:i};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var l=n[a].types,c=l&&l[r.code];n[a]=sn.appendErrors(a,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},uf=function(e,t,n){return n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return o.shouldUseNativeValidation&&wC({},o),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(a){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(a))return{values:{},errors:GD(XD(a.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw a}))}catch(a){return Promise.reject(a)}}};const KD=()=>{const e=je.c(14),{reducer:t,entityId:n,entityType:r}=v.useContext(mn),[i]=t,{zNumberRequired:o,zStringRequired:a}=of(),{createFolder:s}=xC();let l,c;if(e[0]!==o||e[1]!==a){const m=hi({name:a(),documentTypeId:o()});c=sn.useForm,l=uf(m),e[0]=o,e[1]=a,e[2]=l,e[3]=c}else l=e[2],c=e[3];let u;e[4]!==l?(u={resolver:l},e[4]=l,e[5]=u):u=e[5];const d=c(u);let f;e[6]!==s||e[7]!==n||e[8]!==r||e[9]!==i.activeFolder?(f=async m=>{const g={...m,dbObjectId:n.toString(),entity:r,parentFolderId:i.activeFolder==="root"?null:i.activeFolder};await s(g)},e[6]=s,e[7]=n,e[8]=r,e[9]=i.activeFolder,e[10]=f):f=e[10];const h=f;let p;return e[11]!==d||e[12]!==h?(p={formMethods:d,onSubmit:h},e[11]=d,e[12]=h,e[13]=p):p=e[13],p},JD=e=>{var b;const t=je.c(38),{handleClose:n}=e,{texts:r}=v.useContext(rn),{documents:i}=r,{reducer:o,entityType:a}=v.useContext(mn),[s]=o;if(YD(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=KD();let u;t[0]!==c||t[1]!==l?(u=c.handleSubmit(l),t[0]=c,t[1]=l,t[2]=u):u=t[2];let d;if(t[3]!==i||t[4]!==a||t[5]!==s.chosenFolderId||t[6]!==s.foldersMap){let S;t[8]!==a||t[9]!==s.chosenFolderId||t[10]!==s.foldersMap?(S=((b=s.foldersMap.get(s.chosenFolderId))==null?void 0:b.name)??a,t[8]=a,t[9]=s.chosenFolderId,t[10]=s.foldersMap,t[11]=S):S=t[11],d=i.createFolderInFolder(S),t[3]=i,t[4]=a,t[5]=s.chosenFolderId,t[6]=s.foldersMap,t[7]=d}else d=t[7];let f;t[12]!==d?(f=y.jsx(Vn.Header,{closeButton:!0,children:y.jsx(Vn.Title,{children:d})}),t[12]=d,t[13]=f):f=t[13];let h;t[14]!==i.name?(h=y.jsx(rs,{formField:"name",type:"text",label:i.name,required:!0}),t[14]=i.name,t[15]=h):h=t[15];let p;t[16]!==i.folderType||t[17]!==s.documentTypes?(p=y.jsx(cf,{options:s.documentTypes,formField:"documentTypeId",label:i.folderType,isNumber:!0,required:!0}),t[16]=i.folderType,t[17]=s.documentTypes,t[18]=p):p=t[18];let m;t[19]!==h||t[20]!==p?(m=y.jsxs(Vn.Body,{children:[h,p]}),t[19]=h,t[20]=p,t[21]=m):m=t[21];let g;t[22]!==i.cancel||t[23]!==n?(g=y.jsx(Uo,{onClick:n,variant:"outlined",color:"secondary",children:i.cancel}),t[22]=i.cancel,t[23]=n,t[24]=g):g=t[24];let x;t[25]!==i.createFolder?(x=y.jsx(Uo,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=x):x=t[26];let _;t[27]!==x||t[28]!==g?(_=y.jsxs(Vn.Footer,{children:[g,x]}),t[27]=x,t[28]=g,t[29]=_):_=t[29];let w;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==m?(w=y.jsxs(Xr,{onSubmit:u,children:[f,m,_]}),t[30]=_,t[31]=u,t[32]=f,t[33]=m,t[34]=w):w=t[34];let C;return t[35]!==c||t[36]!==w?(C=y.jsx(y.Fragment,{children:y.jsx(sn.FormProvider,{...c,children:w})}),t[35]=c,t[36]=w,t[37]=C):C=t[37],C},_C=100,QD=(e,t)=>{const n=nf(),{startLoading:r,stopLoading:i}=v.useContext(qd),{loadDocuments:o}=v.useContext(mn),{zStringRequired:a,zString:s,zNumberRequired:l,zDateRequired:c}=of(),u=hi({name:a(),description:s(),validToDate:c(),documentTypeId:l()}),d=sn.useForm({resolver:uf(u),defaultValues:{...e,validToDate:Zd(e.validToDate)}}),f=v.useCallback(async h=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,h),await o(),t()}finally{i("documents-updateProperties")}},[n,e.id,t,o,r,i]);return{formMethods:d,onSubmit:f}},eI=e=>{const t=je.c(38),{handleClose:n,file:r}=e,{texts:i}=v.useContext(rn),{documents:o}=i,{reducer:a}=v.useContext(mn),[s]=a,{formMethods:l,onSubmit:c}=QD(r,n);let u;t[0]!==o.editFileProperties?(u=y.jsx(Vn.Header,{closeButton:!0,children:y.jsx(Vn.Title,{children:o.editFileProperties})}),t[0]=o.editFileProperties,t[1]=u):u=t[1];let d;t[2]!==l||t[3]!==c?(d=l.handleSubmit(c),t[2]=l,t[3]=c,t[4]=d):d=t[4];let f;t[5]!==o.name?(f=y.jsx(rs,{formField:"name",type:"text",label:o.name,required:!0}),t[5]=o.name,t[6]=f):f=t[6];let h;t[7]!==o.validSince?(h=y.jsx(rs,{formField:"validToDate",type:"date",label:o.validSince,required:!0}),t[7]=o.validSince,t[8]=h):h=t[8];let p;t[9]!==o.category||t[10]!==s.documentTypes?(p=y.jsx(cf,{formField:"documentTypeId",label:o.category,options:s.documentTypes,isNumber:!0,required:!0}),t[9]=o.category,t[10]=s.documentTypes,t[11]=p):p=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m={maxLength:_C},t[12]=m):m=t[12];let g;t[13]!==o.description?(g=y.jsx(f0,{formField:"description",label:o.description,customFormControlProps:m}),t[13]=o.description,t[14]=g):g=t[14];let x;t[15]!==f||t[16]!==h||t[17]!==p||t[18]!==g?(x=y.jsxs(Vn.Body,{children:[f,h,p,g]}),t[15]=f,t[16]=h,t[17]=p,t[18]=g,t[19]=x):x=t[19];let _;t[20]!==o.cancel||t[21]!==n?(_=y.jsx(Uo,{onClick:n,color:"secondary",variant:"outlined",children:o.cancel}),t[20]=o.cancel,t[21]=n,t[22]=_):_=t[22];let w;t[23]!==o.save?(w=y.jsx(Uo,{type:"submit",children:o.save}),t[23]=o.save,t[24]=w):w=t[24];let C;t[25]!==_||t[26]!==w?(C=y.jsxs(Vn.Footer,{children:[_,w]}),t[25]=_,t[26]=w,t[27]=C):C=t[27];let b;t[28]!==x||t[29]!==C||t[30]!==d?(b=y.jsxs(Xr,{onSubmit:d,children:[x,C]}),t[28]=x,t[29]=C,t[30]=d,t[31]=b):b=t[31];let S;t[32]!==l||t[33]!==b?(S=y.jsx(sn.FormProvider,{...l,children:b}),t[32]=l,t[33]=b,t[34]=S):S=t[34];let M;return t[35]!==S||t[36]!==u?(M=y.jsxs(y.Fragment,{children:[u,S]}),t[35]=S,t[36]=u,t[37]=M):M=t[37],M},tI=e=>{const t=je.c(9),{handleClose:n}=e,{reducer:r}=v.useContext(mn),[i]=r;let o;e:{if(i.markedFiles.length!==1){o=void 0;break e}let l;if(t[0]!==i.constantFiles||t[1]!==i.markedFiles[0]){let c;t[3]!==i.markedFiles[0]?(c=u=>u.id===i.markedFiles[0],t[3]=i.markedFiles[0],t[4]=c):c=t[4],l=i.constantFiles.find(c),t[0]=i.constantFiles,t[1]=i.markedFiles[0],t[2]=l}else l=t[2];o=l}const a=o;if(a===void 0){n();let l;return t[5]===Symbol.for("react.memo_cache_sentinel")?(l=y.jsx(y.Fragment,{}),t[5]=l):l=t[5],l}let s;return t[6]!==a||t[7]!==n?(s=y.jsx(eI,{file:a,handleClose:n}),t[6]=a,t[7]=n,t[8]=s):s=t[8],s},nI=()=>{const{reducer:[e,t]}=v.useContext(mn),n=v.useCallback(()=>{t({type:"close-modal"})},[t]),r=v.useMemo(()=>{if(e.state!=="openned-modal")return null;switch(e.modalType){case"create-folder":return y.jsx(JD,{handleClose:n});case"edit-file-properties":return y.jsx(tI,{handleClose:n});default:return null}},[e.state,e.modalType]);return y.jsx(Vn,{show:e.state==="openned-modal",onHide:n,children:r})},Ob="documents_drag_image_element",td="drop-container-highlight-class",Ab="data-drop-container-id",Rb="data-draggable-id",rI=()=>{const e=document.getElementById(Ob);if(e!==null)return e;const t=document.createElement("div");return t.id=Ob,t.style.position="absolute",t.style.top=`${-window.outerHeight}px`,t.style.left=`${-window.outerWidth}px`,t.style.width="50px",t.style.height="50px",t.style.backgroundColor="rgba(0, 0, 0, 0.5)",t.style.color="white",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.fontSize="16px",t.style.borderRadius="5px",document.body.appendChild(t),t},g0=()=>{const e=je.c(12),{apiActions:t,reducer:n}=v.useContext(mn),{moveDocuments:r}=t,[i]=n;let o;e[0]!==i.markedFiles?(o=x=>{var _;if(i.markedFiles.length>0){const w=rI();w.innerHTML=i.markedFiles.length.toString(),x.dataTransfer.setDragImage(w,0,0),x.dataTransfer.clearData(),x.dataTransfer.setData("application/json",JSON.stringify(i.markedFiles)),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"}else x.dataTransfer.setData("application/json",JSON.stringify([parseInt(((_=x.currentTarget.attributes.getNamedItem(Rb))==null?void 0:_.nodeValue)??"",10)])),x.dataTransfer.dropEffect="none",x.dataTransfer.effectAllowed="move"},e[0]=i.markedFiles,e[1]=o):o=e[1];const a=o;let s;e[2]!==a||e[3]!==i.markedFiles?(s=x=>({[Rb]:x,draggable:i.markedFiles.length===0||i.markedFiles.includes(x),onDragStart:a}),e[2]=a,e[3]=i.markedFiles,e[4]=s):s=e[4];const l=s;let c;e[5]!==r?(c=x=>_=>{var b;_.preventDefault(),_.stopPropagation(),_.currentTarget.classList.remove(td);const w=_.dataTransfer.files;if(x&&w&&w.length>0){x(w);return}const C=_.dataTransfer.getData("application/json");if(C){const S=JSON.parse(C),M=parseInt(((b=_.currentTarget.attributes.getNamedItem(Ab))==null?void 0:b.value)??"",10);r(M,S)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=oI,f=aI,h=sI;let p;e[7]!==u?(p=(x,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[Ab]:x}),e[7]=u,e[8]=p):p=e[8];const m=p;let g;return e[9]!==l||e[10]!==m?(g={getDraggableProps:l,getDropProps:m},e[9]=l,e[10]=m,e[11]=g):g=e[11],g};function iI(e){e.preventDefault(),e.stopPropagation()}function oI(){return iI}function aI(e){return t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.types.includes("Files")?(t.dataTransfer.dropEffect="copy",t.currentTarget.classList.add(td)):!e&&t.dataTransfer.types.includes("application/json")?(t.dataTransfer.dropEffect="move",t.currentTarget.classList.add(td)):t.dataTransfer.dropEffect="none"}}function sI(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(td))}function CC(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const o=n.get(i);if(o&&CC(o,t,n))return!0}return!1}function lI(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function SC(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${SC(n.parentId,t)}/${n.name}`}const cI=()=>{const e=je.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=of();let i;e[0]!==r||e[1]!==t||e[2]!==n?(i=hi({validToDate:n(),description:t(),name:t(),documentTypeId:r()}),e[0]=r,e[1]=t,e[2]=n,e[3]=i):i=e[3];const o=i;let a;return e[4]!==o?(a={formSchema:o},e[4]=o,e[5]=a):a=e[5],a},v0=e=>{var X;const t=je.c(69),{handleClose:n,files:r,targetFolderId:i}=e,{texts:o}=v.useContext(rn),{documents:a}=o,{reducer:s,apiActions:l}=v.useContext(mn),[c]=s,{uploadFiles:u}=l;let d;t[0]!==r?(d=[...r],t[0]=r,t[1]=d):d=t[1];const f=d,h=i??c.activeFolder;let p;t[2]!==h||t[3]!==c.foldersMap?(p=h==="root"?void 0:c.foldersMap.get(h),t[2]=h,t[3]=c.foldersMap,t[4]=p):p=t[4];const m=p,{formSchema:g}=cI();let x;t[5]!==g?(x=uf(g),t[5]=g,t[6]=x):x=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=Zd(new Date().toISOString()),t[7]=_):_=t[7];let w;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(w=(X=c.documentTypes.find(J=>{var ee;return J.name===((ee=c.foldersMap.get(h))==null?void 0:ee.defaultDocType)}))==null?void 0:X.id,t[8]=h,t[9]=c.documentTypes,t[10]=c.foldersMap,t[11]=w):w=t[11];let C;t[12]!==w?(C={validToDate:_,documentTypeId:w},t[12]=w,t[13]=C):C=t[13];let b;t[14]!==x||t[15]!==C?(b={resolver:x,defaultValues:C},t[14]=x,t[15]=C,t[16]=b):b=t[16];const S=sn.useForm(b);let M;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(M=async J=>{h!=="root"&&(await u(r,{folderId:h,...J}),n())},t[17]=r,t[18]=h,t[19]=n,t[20]=u,t[21]=M):M=t[21];const $=M;let k;t[22]!==a||t[23]!==r.length||t[24]!==m.name?(k=a.uploadFilesPrompt(r.length,m.name),t[22]=a,t[23]=r.length,t[24]=m.name,t[25]=k):k=t[25];let R;t[26]!==f?(R=y.jsx("ul",{children:f.map(uI)}),t[26]=f,t[27]=R):R=t[27];let T;t[28]!==k||t[29]!==R?(T=y.jsx(Vn.Header,{closeButton:!0,children:y.jsxs("div",{children:[k,R]})}),t[28]=k,t[29]=R,t[30]=T):T=t[30];let E;t[31]!==S||t[32]!==$?(E=S.handleSubmit($),t[31]=S,t[32]=$,t[33]=E):E=t[33];let A;t[34]!==a.documentType||t[35]!==c.documentTypes?(A=y.jsx(cf,{formField:"documentTypeId",label:a.documentType,options:c.documentTypes,isNumber:!0,required:!0}),t[34]=a.documentType,t[35]=c.documentTypes,t[36]=A):A=t[36];let I;t[37]!==a.validSince?(I=y.jsx(rs,{formField:"validToDate",label:a.validSince,type:"date",required:!0}),t[37]=a.validSince,t[38]=I):I=t[38];let j;t[39]!==a.name||t[40]!==f.length?(j=f.length===1?y.jsx(rs,{formField:"name",label:a.name,type:"text"}):null,t[39]=a.name,t[40]=f.length,t[41]=j):j=t[41];let D;t[42]===Symbol.for("react.memo_cache_sentinel")?(D={maxLength:_C},t[42]=D):D=t[42];let O;t[43]!==a.description?(O=y.jsx(f0,{formField:"description",label:a.description,customFormControlProps:D}),t[43]=a.description,t[44]=O):O=t[44];let L;t[45]!==A||t[46]!==I||t[47]!==j||t[48]!==O?(L=y.jsxs(Vn.Body,{children:[A,I,j,O]}),t[45]=A,t[46]=I,t[47]=j,t[48]=O,t[49]=L):L=t[49];let z;t[50]!==a.cancel||t[51]!==n?(z=y.jsx(Uo,{variant:"outlined",color:"secondary",onClick:n,children:a.cancel}),t[50]=a.cancel,t[51]=n,t[52]=z):z=t[52];let N;t[53]!==a.upload?(N=y.jsx(Uo,{type:"submit",children:a.upload}),t[53]=a.upload,t[54]=N):N=t[54];let H;t[55]!==z||t[56]!==N?(H=y.jsxs(Vn.Footer,{children:[z,N]}),t[55]=z,t[56]=N,t[57]=H):H=t[57];let Y;t[58]!==E||t[59]!==L||t[60]!==H?(Y=y.jsxs(Xr,{onSubmit:E,children:[L,H]}),t[58]=E,t[59]=L,t[60]=H,t[61]=Y):Y=t[61];let q;t[62]!==S||t[63]!==Y?(q=y.jsx(sn.FormProvider,{...S,children:Y}),t[62]=S,t[63]=Y,t[64]=q):q=t[64];let Z;return t[65]!==n||t[66]!==T||t[67]!==q?(Z=y.jsxs(Vn,{show:!0,onHide:n,children:[T,q]}),t[65]=n,t[66]=T,t[67]=q,t[68]=Z):Z=t[68],Z};function uI(e,t){return y.jsxs("li",{children:[e.name," - ",Xa(e.size)]},`${e.name}-${t}`)}const dI="_folder_1cktt_1",fI="_collapseArrowDiv_1cktt_8",hI="_button_1cktt_20",pI="_nestedList_1cktt_24",mI="_numberOfFiles_1cktt_31",gI="_collapseArrow_1cktt_8",mo={folder:dI,collapseArrowDiv:fI,button:hI,nestedList:pI,numberOfFiles:mI,collapseArrow:gI},TC=e=>{const t=je.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=v.useContext(rn),{reducer:o}=v.useContext(mn),[a,s]=o,{getDropProps:l}=g0(),[c,u]=v.useState(null),[d,f]=v.useState(!0);let h,p;t[0]!==n||t[1]!==a.foldersMap?(p=a.foldersMap.get(n),t[0]=n,t[1]=a.foldersMap,t[2]=p):p=t[2];const m=p;if(m===void 0)throw new Error(`tried to get dir with id ${n}`);h=m;const g=h;let x;t[3]!==n||t[4]!==g||t[5]!==s||t[6]!==a.activeFolder||t[7]!==a.foldersMap?(x=()=>{a.activeFolder!=="root"&&CC(g,a.activeFolder,a.foldersMap)&&s({type:"select-folder",folderId:n}),f(!0)},t[3]=n,t[4]=g,t[5]=s,t[6]=a.activeFolder,t[7]=a.foldersMap,t[8]=x):x=t[8];const _=x,w=g.childrenIds.length>0;let C;t[9]!==n||t[10]!==s?(C=()=>{s({type:"select-folder",folderId:n})},t[9]=n,t[10]=s,t[11]=C):C=t[11];const b=C;let S;if(t[12]!==n||t[13]!==a.filteredFiles){let Y;t[15]!==n?(Y=q=>q.folderId===n&&q.archive===!1,t[15]=n,t[16]=Y):Y=t[16],S=a.filteredFiles.filter(Y),t[12]=n,t[13]=a.filteredFiles,t[14]=S}else S=t[14];const M=S.length;let $;t[17]!==i||t[18]!==_||t[19]!==w||t[20]!==d?($=w?d?y.jsx("button",{onClick:()=>f(!1),type:"button",children:y.jsx(i,{icon:"chevron-right",iconProps:{className:mo.collapseArrow}})}):y.jsx("button",{onClick:_,type:"button",children:y.jsx(i,{icon:"chevron-down",iconProps:{className:mo.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=w,t[20]=d,t[21]=$):$=t[21];let k;t[22]!==$?(k=y.jsx("div",{className:mo.collapseArrowDiv,children:$}),t[22]=$,t[23]=k):k=t[23];let R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R=se(mo.button),t[24]=R):R=t[24];let T;t[25]!==n||t[26]!==g.onlyRead||t[27]!==l||t[28]!==r?(T=r&&!g.onlyRead?l(n,{onFilesDrop:Y=>u(Y)}):{},t[25]=n,t[26]=g.onlyRead,t[27]=l,t[28]=r,t[29]=T):T=t[29];const E=g.defaultDocType??"",A=n===a.activeFolder;let I;t[30]!==g.isDefault||t[31]!==g.name||t[32]!==E||t[33]!==A?(I=y.jsx(yC,{isDefault:g.isDefault,folderName:g.name,typeName:E,isActive:A}),t[30]=g.isDefault,t[31]=g.name,t[32]=E,t[33]=A,t[34]=I):I=t[34];let j;t[35]!==M?(j=M>0?y.jsxs("span",{className:mo.numberOfFiles,children:["[",M,"]"]}):void 0,t[35]=M,t[36]=j):j=t[36];let D;t[37]!==I||t[38]!==j?(D=y.jsxs("div",{className:"d-flex align-items-center gap-2",children:[I,j]}),t[37]=I,t[38]=j,t[39]=D):D=t[39];let O;t[40]!==b||t[41]!==T||t[42]!==D?(O=y.jsx("button",{className:R,onClick:b,type:"button",...T,children:D}),t[40]=b,t[41]=T,t[42]=D,t[43]=O):O=t[43];let L;t[44]!==g.childrenIds||t[45]!==w||t[46]!==d||t[47]!==r?(L=w?d?null:y.jsx("ul",{className:mo.nestedList,children:g==null?void 0:g.childrenIds.map(Y=>y.jsx(TC,{dirId:Y,writePermissions:r},Y))}):void 0,t[44]=g.childrenIds,t[45]=w,t[46]=d,t[47]=r,t[48]=L):L=t[48];let z;t[49]!==O||t[50]!==L||t[51]!==k?(z=y.jsxs("li",{className:mo.folder,children:[k,O,L]}),t[49]=O,t[50]=L,t[51]=k,t[52]=z):z=t[52];let N;t[53]!==n||t[54]!==c?(N=c!==null?y.jsx(v0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=N):N=t[55];let H;return t[56]!==z||t[57]!==N?(H=y.jsxs(y.Fragment,{children:[z,N]}),t[56]=z,t[57]=N,t[58]=H):H=t[58],H},vI="_wrapper_1th2u_1",bI="_downloadButton_1th2u_9",$m={wrapper:vI,downloadButton:bI},$C=6048e5,yI=864e5,Db=Symbol.for("constructDateFrom");function Ci(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Db in e?e[Db](t):e instanceof Date?new e.constructor(t):new Date(t)}function nr(e,t){return Ci(t||e,e)}function kC(e,t){const n=()=>Ci(t==null?void 0:t.in,NaN),r=CI(e);let i;if(r.date){const l=SI(r.date,2);i=TI(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,s;if(r.time&&(a=$I(r.time),isNaN(a)))return n();if(r.timezone){if(s=kI(r.timezone),isNaN(s))return n()}else{const l=new Date(o+a),c=nr(0,t==null?void 0:t.in);return c.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),c.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),c}return nr(o+a+s,t==null?void 0:t.in)}const ru={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},xI=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,wI=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_I=/^([+-])(\d{2})(?::?(\d{2}))?$/;function CI(e){const t={},n=e.split(ru.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],ru.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ru.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=ru.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function SI(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function TI(e,t){if(t===null)return new Date(NaN);const n=e.match(xI);if(!n)return new Date(NaN);const r=!!n[4],i=Hs(n[1]),o=Hs(n[2])-1,a=Hs(n[3]),s=Hs(n[4]),l=Hs(n[5])-1;if(r)return RI(t,s,l)?MI(t,s,l):new Date(NaN);{const c=new Date(0);return!OI(t,o,a)||!AI(t,i)?new Date(NaN):(c.setUTCFullYear(t,o,Math.max(i,a)),c)}}function Hs(e){return e?parseInt(e):1}function $I(e){const t=e.match(wI);if(!t)return NaN;const n=op(t[1]),r=op(t[2]),i=op(t[3]);return DI(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function op(e){return e&&parseFloat(e.replace(",","."))||0}function kI(e){if(e==="Z")return 0;const t=e.match(_I);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return II(r,i)?n*(r*36e5+i*6e4):NaN}function MI(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const EI=[31,null,31,30,31,30,31,31,30,31,30,31];function MC(e){return e%400===0||e%4===0&&e%100!==0}function OI(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(EI[t]||(MC(e)?29:28))}function AI(e,t){return t>=1&&t<=(MC(e)?366:365)}function RI(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function DI(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function II(e,t){return t>=0&&t<=59}let jI={};function df(){return jI}function Ll(e,t){var s,l,c,u;const n=df(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,i=nr(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function nd(e,t){return Ll(e,{...t,weekStartsOn:1})}function EC(e,t){const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ci(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=nd(i),a=Ci(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=nd(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Ib(e){const t=nr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function PI(e,...t){const n=Ci.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function jb(e,t){const n=nr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function NI(e,t,n){const[r,i]=PI(n==null?void 0:n.in,e,t),o=jb(r),a=jb(i),s=+o-Ib(o),l=+a-Ib(a);return Math.round((s-l)/yI)}function LI(e,t){const n=EC(e,t),r=Ci(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),nd(r)}function FI(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function BI(e){return!(!FI(e)&&typeof e!="number"||isNaN(+nr(e)))}function zI(e,t){const n=nr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const WI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},UI=(e,t,n)=>{let r;const i=WI[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function ap(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const HI={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VI={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qI={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YI={date:ap({formats:HI,defaultWidth:"full"}),time:ap({formats:VI,defaultWidth:"full"}),dateTime:ap({formats:qI,defaultWidth:"full"})},GI={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ZI=(e,t,n,r)=>GI[e];function Vs(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const XI={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},KI={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},JI={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},QI={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ej={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},tj={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nj=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},rj={ordinalNumber:nj,era:Vs({values:XI,defaultWidth:"wide"}),quarter:Vs({values:KI,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Vs({values:JI,defaultWidth:"wide"}),day:Vs({values:QI,defaultWidth:"wide"}),dayPeriod:Vs({values:ej,defaultWidth:"wide",formattingValues:tj,defaultFormattingWidth:"wide"})};function qs(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?oj(s,d=>d.test(a)):ij(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function ij(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function oj(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function aj(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const sj=/^(\d+)(th|st|nd|rd)?/i,lj=/\d+/i,cj={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},uj={any:[/^b/i,/^(a|c)/i]},dj={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},fj={any:[/1/i,/2/i,/3/i,/4/i]},hj={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},pj={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mj={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},gj={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vj={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bj={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},yj={ordinalNumber:aj({matchPattern:sj,parsePattern:lj,valueCallback:e=>parseInt(e,10)}),era:qs({matchPatterns:cj,defaultMatchWidth:"wide",parsePatterns:uj,defaultParseWidth:"any"}),quarter:qs({matchPatterns:dj,defaultMatchWidth:"wide",parsePatterns:fj,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qs({matchPatterns:hj,defaultMatchWidth:"wide",parsePatterns:pj,defaultParseWidth:"any"}),day:qs({matchPatterns:mj,defaultMatchWidth:"wide",parsePatterns:gj,defaultParseWidth:"any"}),dayPeriod:qs({matchPatterns:vj,defaultMatchWidth:"any",parsePatterns:bj,defaultParseWidth:"any"})},xj={code:"en-US",formatDistance:UI,formatLong:YI,formatRelative:ZI,localize:rj,match:yj,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wj(e,t){const n=nr(e,t==null?void 0:t.in);return NI(n,zI(n))+1}function _j(e,t){const n=nr(e,t==null?void 0:t.in),r=+nd(n)-+LI(n);return Math.round(r/$C)+1}function OC(e,t){var u,d,f,h;const n=nr(e,t==null?void 0:t.in),r=n.getFullYear(),i=df(),o=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((h=(f=i.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,a=Ci((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Ll(a,t),l=Ci((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Ll(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function Cj(e,t){var a,s,l,c;const n=df(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(a=t==null?void 0:t.locale)==null?void 0:a.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(l=n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??1,i=OC(e,t),o=Ci((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Ll(o,t)}function Sj(e,t){const n=nr(e,t==null?void 0:t.in),r=+Ll(n,t)-+Cj(n,t);return Math.round(r/$C)+1}function Bt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Di={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Bt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Bt(n+1,2)},d(e,t){return Bt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Bt(e.getHours()%12||12,t.length)},H(e,t){return Bt(e.getHours(),t.length)},m(e,t){return Bt(e.getMinutes(),t.length)},s(e,t){return Bt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Bt(i,t.length)}},ba={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Pb={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Di.y(e,t)},Y:function(e,t,n,r){const i=OC(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Bt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Bt(o,t.length)},R:function(e,t){const n=EC(e);return Bt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Bt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Bt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Bt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Di.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Bt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Sj(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Bt(i,t.length)},I:function(e,t,n){const r=_j(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Bt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Di.d(e,t)},D:function(e,t,n){const r=wj(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Bt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Bt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Bt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Bt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=ba.noon:r===0?i=ba.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=ba.evening:r>=12?i=ba.afternoon:r>=4?i=ba.morning:i=ba.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Di.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Di.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Bt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Di.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Di.s(e,t)},S:function(e,t){return Di.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Lb(r);case"XXXX":case"XX":return xo(r);case"XXXXX":case"XXX":default:return xo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Lb(r);case"xxxx":case"xx":return xo(r);case"xxxxx":case"xxx":default:return xo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Nb(r,":");case"OOOO":default:return"GMT"+xo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Nb(r,":");case"zzzz":default:return"GMT"+xo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Bt(r,t.length)},T:function(e,t,n){return Bt(+e,t.length)}};function Nb(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Bt(o,2)}function Lb(e,t){return e%60===0?(e>0?"-":"+")+Bt(Math.abs(e)/60,2):xo(e,t)}function xo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Bt(Math.trunc(r/60),2),o=Bt(r%60,2);return n+i+t+o}const Fb=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},AC=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Tj=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Fb(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Fb(r,t)).replace("{{time}}",AC(i,t))},$j={p:AC,P:Tj},kj=/^D+$/,Mj=/^Y+$/,Ej=["D","DD","YY","YYYY"];function Oj(e){return kj.test(e)}function Aj(e){return Mj.test(e)}function Rj(e,t,n){const r=Dj(e,t,n);if(console.warn(r),Ej.includes(e))throw new RangeError(r)}function Dj(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ij=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jj=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pj=/^'([^]*?)'?$/,Nj=/''/g,Lj=/[a-zA-Z]/;function RC(e,t,n){var u,d,f,h;const r=df(),i=r.locale??xj,o=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,a=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,s=nr(e,n==null?void 0:n.in);if(!BI(s))throw new RangeError("Invalid time value");let l=t.match(jj).map(p=>{const m=p[0];if(m==="p"||m==="P"){const g=$j[m];return g(p,i.formatLong)}return p}).join("").match(Ij).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:Fj(p)};if(Pb[m])return{isToken:!0,value:p};if(m.match(Lj))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:p}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const m=p.value;(Aj(m)||Oj(m))&&Rj(m,t,String(e));const g=Pb[m[0]];return g(s,m,i.localize,c)}).join("")}function Fj(e){const t=e.match(Pj);return t?t[1].replace(Nj,"'"):e}function DC(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Fl;(function(e){e.event="event",e.props="prop"})(Fl||(Fl={}));function Bi(){}function Bj(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(o,a){return o===t[a]})||(t=r,n=e.apply(void 0,r)),n}}function Bl(e){return!!(e||"").match(/\d/)}function Pa(e){return e==null}function zj(e){return typeof e=="number"&&isNaN(e)}function IC(e){return Pa(e)||zj(e)||typeof e=="number"&&!isFinite(e)}function jC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Wj(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Uj(e,t,n){var r=Wj(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,"$1"+t)}function Hj(e){var t=v.useRef(e);t.current=e;var n=v.useRef(function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t.current.apply(t,r)});return n.current}function b0(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),o=i[0],a=i[1]||"";return{beforeDecimal:o,afterDecimal:a,hasNegation:n,addNegation:r}}function Vj(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(t?"-":"")+r+(i?"."+i:"")}function PC(e,t,n){for(var r="",i=n?"0":"",o=0;o<=t-1;o++)r+=e[o]||i;return r}function Bb(e,t){return Array(t+1).join(e)}function NC(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],o=r[1];if(o=Number(o),!o)return n+i;i=i.replace(".","");var a=1+o,s=i.length;return a<0?i="0."+Bb("0",Math.abs(a))+i:a>=s?i=i+Bb("0",a-s):i=(i.substring(0,a)||"0")+"."+i.substring(a),n+i}function zb(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=b0(e),o=i.beforeDecimal,a=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(a||"0")),c=a.length<=t?"0."+a:l.toFixed(t),u=c.split("."),d=o;o&&Number(u[0])&&(d=o.split("").reverse().reduce(function(m,g,x){return m.length>x?(Number(m[0])+Number(g)).toString()+m.substring(1,m.length):g+m},u[0]));var f=PC(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function Co(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var LC=Bj(function(e,t){for(var n=0,r=0,i=e.length,o=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[o-1-r]&&o-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:o-r}}}),qj=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function Yj(e,t,n){return Math.min(Math.max(e,t),n)}function sp(e){return Math.max(e.selectionStart,e.selectionEnd)}function Gj(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Zj(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Xj(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function Kj(e,t,n,r,i,o,a){a===void 0&&(a=Xj);var s=i.findIndex(function(C){return C}),l=e.slice(0,s);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var c=n.length,u=e.length,d={},f=new Array(c),h=0;h<c;h++){f[h]=-1;for(var p=0,m=u;p<m;p++){var g=a({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(g&&d[p]!==!0){f[h]=p,d[p]=!0;break}}}for(var x=r;x<c&&(f[x]===-1||!o(n[x]));)x++;var _=x===c||f[x]===-1?u:f[x];for(x=r-1;x>0&&f[x]===-1;)x--;var w=x===-1||f[x]===-1?0:f[x]+1;return w>_?_:r-w<_-r?w:_}function Wb(e,t,n,r){var i=e.length;if(t=Yj(t,0,i),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function Jj(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Bl(e[n])||Bl(e[n-1]));return t}function FC(e,t,n,r,i,o){o===void 0&&(o=Bi);var a=Hj(function(p,m){var g,x;return IC(p)?(x="",g=""):typeof p=="number"||m?(x=typeof p=="number"?NC(p):p,g=r(x)):(x=i(p,void 0),g=r(x)),{formattedValue:g,numAsString:x}}),s=v.useState(function(){return a(Pa(e)?t:e,n)}),l=s[0],c=s[1],u=function(p,m){p.formattedValue!==l.formattedValue&&c({formattedValue:p.formattedValue,numAsString:p.value}),o(p,m)},d=e,f=n;Pa(e)&&(d=l.numAsString,f=!0);var h=a(d,f);return v.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function Qj(e){return e.replace(/[^0-9]/g,"")}function eP(e){return e}function tP(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,i=e.renderText,o=e.getInputRef,a=e.format;a===void 0&&(a=eP);var s=e.removeFormatting;s===void 0&&(s=Qj);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Bi);var h=e.onKeyDown;h===void 0&&(h=Bi);var p=e.onMouseUp;p===void 0&&(p=Bi);var m=e.onFocus;m===void 0&&(m=Bi);var g=e.onBlur;g===void 0&&(g=Bi);var x=e.value,_=e.getCaretBoundary;_===void 0&&(_=Jj);var w=e.isValidInputCharacter;w===void 0&&(w=Bl);var C=e.isCharacterSame,b=DC(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=FC(x,l,!!c,a,s,u),M=S[0],$=M.formattedValue,k=M.numAsString,R=S[1],T=v.useRef(),E=v.useRef({formattedValue:$,numAsString:k}),A=function(ne,re){E.current={formattedValue:ne.formattedValue,numAsString:ne.value},R(ne,re)},I=v.useState(!1),j=I[0],D=I[1],O=v.useRef(null),L=v.useRef({setCaretTimeout:null,focusTimeout:null});v.useEffect(function(){return D(!0),function(){clearTimeout(L.current.setCaretTimeout),clearTimeout(L.current.focusTimeout)}},[]);var z=a,N=function(ne,re){var oe=parseFloat(re);return{formattedValue:ne,value:re,floatValue:isNaN(oe)?void 0:oe}},H=function(ne,re,oe){ne.selectionStart===0&&ne.selectionEnd===ne.value.length||(Co(ne,re),L.current.setCaretTimeout=setTimeout(function(){ne.value===oe&&ne.selectionStart!==re&&Co(ne,re)},0))},Y=function(ne,re,oe){return Wb(ne,re,_(ne),oe)},q=function(ne,re,oe){var le=_(re),ye=Kj(re,$,ne,oe,le,w,C);return ye=Wb(re,ye,le),ye},Z=function(ne){var re=ne.formattedValue;re===void 0&&(re="");var oe=ne.input,le=ne.source,ye=ne.event,ge=ne.numAsString,be;if(oe){var Me=ne.inputValue||oe.value,ce=sp(oe);oe.value=re,be=q(Me,re,ce),be!==void 0&&H(oe,be,re)}re!==$&&A(N(re,ge),{event:ye,source:le})};v.useEffect(function(){var ne=E.current,re=ne.formattedValue,oe=ne.numAsString;($!==re||k!==oe)&&A(N($,k),{event:void 0,source:Fl.props})},[$,k]);var X=O.current?sp(O.current):void 0,J=typeof window<"u"?v.useLayoutEffect:v.useEffect;J(function(){var ne=O.current;if($!==E.current.formattedValue&&ne){var re=q(E.current.formattedValue,$,X);ne.value=$,H(ne,re,$)}},[$]);var ee=function(ne,re,oe){var le=re.target,ye=T.current?qj(T.current,le.selectionEnd):LC($,ne),ge=Object.assign(Object.assign({},ye),{lastValue:$}),be=s(ne,ge),Me=z(be);if(be=s(Me,void 0),d&&!d(N(Me,be))){var ce=re.target,de=sp(ce),Ce=q(ne,$,de);return ce.value=$,H(ce,Ce,$),!1}return Z({formattedValue:Me,numAsString:be,inputValue:ne,event:re,source:oe,input:re.target}),!0},W=function(ne,re){re===void 0&&(re=0);var oe=ne.selectionStart,le=ne.selectionEnd;T.current={selectionStart:oe,selectionEnd:le+re}},F=function(ne){var re=ne.target,oe=re.value,le=ee(oe,ne,Fl.event);le&&f(ne),T.current=void 0},B=function(ne){var re=ne.target,oe=ne.key,le=re.selectionStart,ye=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be;oe==="ArrowLeft"||oe==="Backspace"?be=Math.max(le-1,0):oe==="ArrowRight"?be=Math.min(le+1,ge.length):oe==="Delete"&&(be=le);var Me=0;oe==="Delete"&&le===ye&&(Me=1);var ce=oe==="ArrowLeft"||oe==="ArrowRight";if(be===void 0||le!==ye&&!ce){h(ne),W(re,Me);return}var de=be;if(ce){var Ce=oe==="ArrowLeft"?"left":"right";de=Y(ge,be,Ce),de!==be&&ne.preventDefault()}else oe==="Delete"&&!w(ge[be])?de=Y(ge,be,"right"):oe==="Backspace"&&!w(ge[be])&&(de=Y(ge,be,"left"));de!==be&&H(re,de,ge),h(ne),W(re,Me)},V=function(ne){var re=ne.target,oe=function(){var le=re.selectionStart,ye=re.selectionEnd,ge=re.value;if(ge===void 0&&(ge=""),le===ye){var be=Y(ge,le);be!==le&&H(re,be,ge)}};oe(),requestAnimationFrame(function(){oe()}),p(ne),W(re)},P=function(ne){ne.persist&&ne.persist();var re=ne.target,oe=ne.currentTarget;O.current=re,L.current.focusTimeout=setTimeout(function(){var le=re.selectionStart,ye=re.selectionEnd,ge=re.value;ge===void 0&&(ge="");var be=Y(ge,le);be!==le&&!(le===0&&ye===ge.length)&&H(re,be,ge),m(Object.assign(Object.assign({},ne),{currentTarget:oe}))},0)},te=function(ne){O.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),g(ne)},K=j&&Gj()?"numeric":void 0,G=Object.assign({inputMode:K},b,{type:t,value:$,onChange:F,onKeyDown:B,onMouseUp:V,onFocus:P,onBlur:te});if(n==="text")return i?v.createElement(v.Fragment,null,i($,b)||null):v.createElement("span",Object.assign({},b,{ref:o}),$);if(r){var ae=r;return v.createElement(ae,Object.assign({},G,{ref:o}))}return v.createElement("input",Object.assign({},G,{ref:o}))}function Ub(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var o=t.suffix;o===void 0&&(o="");var a=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=ff(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=b0(e,a),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=PC(p,n,!!r)),c&&(h=Uj(h,c,s)),i&&(h=i+h),o&&(p=p+o),m&&(h="-"+h),e=h+(d&&u||"")+p,e}function ff(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function nP(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),o=r.test(e);return e=e.replace(/-/g,""),i&&!o&&t&&(e="-"+e),e}function rP(e,t){return new RegExp("(^-)|[0-9]|"+jC(e),"g")}function iP(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function oP(e,t,n){var r;t===void 0&&(t=Zj(e));var i=n.allowNegative,o=n.prefix;o===void 0&&(o="");var a=n.suffix;a===void 0&&(a="");var s=n.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=ff(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,m=e[d]===p;if(Bl(e)&&(e===o||e===a)&&t.lastValue==="")return e;if(d-u===1&&h.indexOf(e[u])!==-1){var g=s===0?"":p;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var x=function(O,L,z){var N=!1,H=!1;o.startsWith("-")?N=!1:O.startsWith("--")?(N=!1,H=!0):a.startsWith("-")&&O.length===a.length?N=!1:O[0]==="-"&&(N=!0);var Y=N?1:0;return H&&(Y=2),Y&&(O=O.substring(Y),L-=Y,z-=Y),{value:O,start:L,end:z,hasNegation:N}},_=x(e,u,d),w=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var C=x(t.lastValue,l.start,l.end),b=C.start,S=C.end,M=C.value,$=e.substring(u,d);e.length&&M.length&&(b>M.length-a.length||S<o.length)&&!($&&a.startsWith($))&&(e=M);var k=0;e.startsWith(o)?k+=o.length:u<o.length&&(k=u),e=e.substring(k),d-=k;var R=e.length,T=e.length-a.length;e.endsWith(a)?R=T:(d>T||d>e.length-a.length)&&(R=d),e=e.substring(0,R),e=nP(w?"-"+e:e,i),e=(e.match(rP(p))||[]).join("");var E=e.indexOf(p);e=e.replace(new RegExp(jC(p),"g"),function(O,L){return L===E?".":""});var A=b0(e,i),I=A.beforeDecimal,j=A.afterDecimal,D=A.addNegation;return c.end-c.start<l.end-l.start&&I===""&&m&&!parseFloat(j)&&(e=D?"-":""),e}function aP(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var i=Array.from({length:e.length+1}).map(function(){return!0}),o=e[0]==="-";i.fill(!1,0,n.length+(o?1:0));var a=e.length;return i.fill(!1,a-r.length+1,a+1),i}function sP(e){var t=ff(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var o=e.allowNegative;if(o===void 0&&(o=!0),n===r)throw new Error(`
|
|
247
|
+
Decimal separator can't be same as thousand separator.
|
|
248
|
+
thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
249
|
+
decimalSeparator: `+r+` (default value for decimalSeparator is .)
|
|
250
|
+
`);return i.startsWith("-")&&o&&(console.error(`
|
|
251
|
+
Prefix can't start with '-' when allowNegative is true.
|
|
252
|
+
prefix: `+i+`
|
|
253
|
+
allowNegative: `+o+`
|
|
254
|
+
`),o=!1),Object.assign(Object.assign({},e),{allowNegative:o})}function lP(e){e=sP(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Bi);var o=e.onBlur;o===void 0&&(o=Bi);var a=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,c=e.prefix;c===void 0&&(c="");var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,h=e.onValueChange,p=DC(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=ff(e),g=m.decimalSeparator,x=m.allowedDecimalSeparators,_=function(D){return Ub(D,e)},w=function(D,O){return oP(D,O,e)},C=Pa(d)?u:d,b=f??iP(C,c,t);Pa(d)?Pa(u)||(b=b||typeof u=="number"):b=b||typeof d=="number";var S=function(D){return IC(D)?D:(typeof D=="number"&&(D=NC(D)),b&&typeof s=="number"?zb(D,s,!!l):D)},M=FC(S(d),S(u),!!b,_,w,h),$=M[0],k=$.numAsString,R=$.formattedValue,T=M[1],E=function(D){var O=D.target,L=D.key,z=O.selectionStart,N=O.selectionEnd,H=O.value;if(H===void 0&&(H=""),(L==="Backspace"||L==="Delete")&&N<c.length){D.preventDefault();return}if(z!==N){i(D);return}L==="Backspace"&&H[0]==="-"&&z===c.length+1&&n&&Co(O,1),s&&l&&(L==="Backspace"&&H[z-1]===g?(Co(O,z-1),D.preventDefault()):L==="Delete"&&H[z]===g&&D.preventDefault()),x!=null&&x.includes(L)&&H[z]===g&&Co(O,z+1);var Y=a===!0?",":a;L==="Backspace"&&H[z-1]===Y&&Co(O,z-1),L==="Delete"&&H[z]===Y&&Co(O,z+1),i(D)},A=function(D){var O=k;if(O.match(/\d/g)||(O=""),r||(O=Vj(O)),l&&s&&(O=zb(O,s,l)),O!==k){var L=Ub(O,e);T({formattedValue:L,value:O,floatValue:parseFloat(O)},{event:D,source:Fl.event})}o(D)},I=function(D){return D===g?!0:Bl(D)},j=function(D){var O=D.currentValue,L=D.lastValue,z=D.formattedValue,N=D.currentValueIndex,H=D.formattedValueIndex,Y=O[N],q=z[H],Z=LC(L,O),X=Z.to,J=function(ee){return w(ee).indexOf(".")+c.length};return d===0&&l&&s&&O[X.start]===g&&J(O)<N&&J(z)>H?!1:N>=X.start&&N<X.end&&x&&x.includes(Y)&&q===g?!0:Y===q};return Object.assign(Object.assign({},p),{value:R,valueIsNumericString:!1,isValidInputCharacter:I,isCharacterSame:j,onValueChange:T,format:_,removeFormatting:w,getCaretBoundary:function(D){return aP(D,e)},onKeyDown:E,onBlur:A})}function cP(e){var t=lP(e);return v.createElement(tP,Object.assign({},t))}const uP=(e,t)=>{var i,o;const n=e.getValue(),r=((o=(i=e.column.columnDef)==null?void 0:i.meta)==null?void 0:o.alignment)??"center";return n===!0||n===!1?y.jsx(t,{align:r,color:n?"success":"secondary",icon:n?"boolean-yes":"boolean-no"}):null},dP=e=>{const t=e.getValue();return t?RC(kC(t.toString()),"dd.MM.yyyy"):null},fP=e=>{const t=e.getValue();return t?RC(kC(t.toString()),"dd.MM.yyyy HH:mm"):null},hP=e=>{const t=e.getValue(),n=e.column.columnDef,r=n.type==="number"?n.numericMeta:void 0;return t==null||t===void 0||t===""?null:r!=null&&r.noFormatting?(t==null?void 0:t.toString())??null:y.jsx(cP,{decimalScale:(r==null?void 0:r.decimalScale)??2,decimalSeparator:",",defaultValue:"",displayType:"text",fixedDecimalScale:r==null?void 0:r.fixedDecimalScale,prefix:r==null?void 0:r.prefix,suffix:r==null?void 0:r.suffix,thousandSeparator:" ",value:t.toString()})},pP=e=>{const t=e,n=e.meta;return n!=null&&n.filterVariant?(n==null?void 0:n.filterVariant)==="select"?(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":"multiselect":(t==null?void 0:t.type)==="string"?"text":t==null?void 0:t.type:(t==null?void 0:t.type)==="string"?"text":(t==null?void 0:t.type)==="boolean"?"multiselectBoolean":t==null?void 0:t.type};function mP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hb={exports:{}},Vb;function gP(){return Vb||(Vb=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Hb)),Hb.exports}var vP=gP();const Ie=mP(vP),bP="_container_1jre8_1",yP="_no-value_1jre8_6",xP="_input_1jre8_21",wP="_no-value-button-container_1jre8_24",iu={container:bP,noValue:yP,input:xP,noValueButtonContainer:wP},_P=({column:e,filterValue:t,IconComponent:n,InputComponent:r,texts:i})=>{const[o,a]=v.useState(t??""),[s,l]=v.useState(!1),[c,u]=v.useState(!1);v.useEffect(()=>{a(t??"")},[t]),v.useEffect(()=>{if((o||null)===(t||null))return;const f=setTimeout(()=>{e.setFilterValue(o??null)},500);return()=>clearTimeout(f)},[o,e,t]);const d=v.useMemo(()=>o==="no_value_filter_value",[o]);return y.jsx("div",{className:iu.container,children:d?y.jsx("div",{className:iu.noValue,role:"button",onClick:()=>{a(""),u(!1),l(!1)},children:i.noValue}):y.jsxs(y.Fragment,{children:[y.jsx(r,{className:Ie("filter",iu.input,{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:o,onChange:f=>{a(f.target.value??"")},onKeyDown:f=>{f.key==="Escape"&&a("")},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)}),d?null:y.jsx("div",{className:Ie(iu.noValueButtonContainer),style:{opacity:s||c?1:0},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:y.jsx("div",{role:"button",onClick:()=>{a(d?"":"no_value_filter_value"),l(!1)},children:y.jsx(n,{className:"no-value-icon",icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function is(e,t=is.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}is.characters={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",Dz:"D",Dž:"D",Đ:"D",Ð:"D",Ƌ:"D",DZ:"DZ",DŽ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I",І:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",Lj:"L",Ł:"L",LJ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",Nj:"N",Ñ:"N",NJ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",ß:"ss",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ї:"YI",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Þ:"TH",IJ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ð:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",dz:"dz",dž:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i",і:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",lj:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",nj:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ї:"yi",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",þ:"th",ff:"ff",ffi:"ffi",ffl:"ffl",fi:"fi",fl:"fl",ij:"ij",œ:"oe",st:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x",Ё:"YO",Й:"I",Ц:"TS",У:"U",К:"K",Е:"E",Н:"N",Г:"G",Ґ:"G",Ш:"SH",Щ:"SCH",З:"Z",Х:"H",Ъ:"'",ё:"yo",й:"i",ц:"ts",у:"u",к:"k",е:"e",н:"n",г:"g",ґ:"g",ш:"sh",щ:"sch",з:"z",х:"h",ъ:"'",Ф:"F",Ы:"I",В:"V",А:"a",П:"P",Р:"R",О:"O",Л:"L",Д:"D",Ж:"ZH",Э:"E",ф:"f",ы:"i",в:"v",а:"a",п:"p",р:"r",о:"o",л:"l",д:"d",ж:"zh",э:"e",Я:"Ya",Ч:"CH",С:"S",М:"M",И:"I",Т:"T",Ь:"'",Б:"B",Ю:"YU",я:"ya",ч:"ch",с:"s",м:"m",и:"i",т:"t",ь:"'",б:"b",ю:"yu"};const CP="_multiselect_1gflo_1",SP="_multiselect-menu_1gflo_35",TP="_dropdown-menu-item_1gflo_42",$P="_search-item_1gflo_45",kP="_search-input_1gflo_49",MP="_special-option_1gflo_52",go={multiselect:CP,multiselectMenu:SP,dropdownMenuItem:TP,searchItem:$P,searchInput:kP,specialOption:MP},qb=10,EP=({column:e,filterValue:t,texts:n,InputComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:o,DropdownMenuItemComponent:a,CheckComponent:s,DropdownTriggerComponent:l})=>{var b,S,M;const[c,u]=v.useState(""),d=e.getFacetedUniqueValues().keys(),f=v.useMemo(()=>Array.from(d).map($=>$===!0||$===!1?$:($==null?void 0:$.toString())??"").sort(),[d]),h=v.useMemo(()=>f.some($=>$===""||$===null||$===void 0),[f]),p=v.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),m=$=>{const k=$===""?[]:p.includes($)?p.filter(R=>R!==$):[...p,$];e.setFilterValue(!k||k.length<1?"":k.join(";"))},g=v.useMemo(()=>{const $=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return h&&$.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),f.forEach(k=>{$.push({value:(k==null?void 0:k.toString())||"",label:k===!0?n.booleanYes||"ano":k===!1?n.booleanNo||"ne":k,specialOption:!1})}),p.forEach(k=>{k&&k!=="no_value_filter_value"&&!f.some(R=>R.toString()===k.toString())&&$.push({value:k,label:k,specialOption:!1})}),Array.from(new Set($.map(k=>k.value))).map(k=>$.find(R=>R.value===k))},[f,p,h,n]),x=v.useRef(null),_=v.useRef(null),[w,C]=v.useState(!1);return v.useEffect(()=>{w&&_.current&&_.current.focus()},[w]),v.useEffect(()=>{g.length<qb&&u("")},[g]),y.jsxs(i,{onToggleOpen:$=>C($),children:[y.jsx(l,{className:Ie("filter multiselect",go.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:x,role:"filter-input",onKeyDown:$=>{$.key==="Escape"&&e.setFilterValue("")},children:p.length>1?n.multiselect.xValues?n.multiselect.xValues(p.length):`${p.length} hodnoty`:p.length===1?(b=g.find($=>$.value===t))==null?void 0:b.label:n.multiselect.all||"vše"}),y.jsxs(o,{className:Ie("multiselect-menu",go.multiselectMenu),style:{position:"relative",left:(S=x.current)==null?void 0:S.getBoundingClientRect().left,top:(M=x.current)==null?void 0:M.getBoundingClientRect().bottom},children:[g.length>=qb?y.jsx(a,{className:Ie("search-item",go.dropdownMenuItem,go.searchItem),children:y.jsx(r,{className:go.searchInput,ref:_,size:"sm",type:"search",value:c,onChange:$=>u($.target.value??"")})}):null,g.filter($=>$.specialOption?!0:c?is($.value).toLowerCase().includes(is(c.toLowerCase())):!0).map($=>y.jsx(a,{className:Ie(go.dropdownMenuItem,{"special-option":$.specialOption},{[go.specialOption]:$.specialOption}),onClick:k=>{k.preventDefault(),k.stopPropagation(),m($.value)},children:y.jsx(s,{checked:$.value===""?p.length<1:p.includes($.value),label:$.label,onChange:()=>{}})},$.value))]})]})},OP=({column:e,IconComponent:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:o,DropdownTriggerComponent:a,CheckComponent:s,texts:l})=>{const c=e.getFilterValue(),u=pP(e.columnDef);return["text","number","date","datetime"].includes(u)?y.jsx(_P,{column:e,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l}):y.jsx(EP,{CheckComponent:s,column:e,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:o,DropdownTriggerComponent:a,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l})};function AP(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function BC(e,t){return e?RP(e)?fe.createElement(e,t):e:null}function RP(e){return DP(e)||typeof e=="function"||IP(e)}function DP(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function IP(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const jP="_table-scroll-container_wu79d_1",PP="_full-screen_wu79d_8",NP="_table_wu79d_1",LP="_thead_wu79d_24",FP="_tbody_wu79d_25",BP="_th_wu79d_24",zP="_pinned_wu79d_38",WP="_sorted_wu79d_41",UP="_heading_wu79d_44",HP="_can-sort_wu79d_50",VP="_content_wu79d_53",qP="_resizer_wu79d_59",YP="_resizer-bar_wu79d_73",GP="_reorder-handle_wu79d_79",ZP="_dragging_wu79d_84",XP="_row-selection-info_wu79d_88",KP="_tr_wu79d_92",JP="_td_wu79d_100",QP="_left_wu79d_117",eN="_center_wu79d_121",tN="_right_wu79d_125",nN="_first-right_wu79d_134",rN="_grouped_wu79d_142",iN="_expanded_wu79d_147",oN="_selected-cell_wu79d_151",aN="_sm_wu79d_155",sN="_lg_wu79d_160",lN="_clickable_wu79d_168",cN="_cell-selected-row_wu79d_172",uN="_cell-selection-disabled_wu79d_180",dN="_own-click_wu79d_203",fN="_expander-button_wu79d_211",hN="_empty-table-alert_wu79d_217",pN="_remove-filters-button-wrapper_wu79d_225",mN="_remove-filters-button_wu79d_225",gN="_bottom-bar_wu79d_255",vN="_left-items_wu79d_271",bN="_pagination_wu79d_277",yN="_page-info-text_wu79d_283",xN="_right-items_wu79d_289",wN="_sizing-menu_wu79d_310",_N="_sizing-menu-item_wu79d_315",We={tableScrollContainer:jP,fullScreen:PP,table:NP,thead:LP,tbody:FP,th:BP,pinned:zP,sorted:WP,heading:UP,canSort:HP,content:VP,resizer:qP,resizerBar:YP,reorderHandle:GP,dragging:ZP,rowSelectionInfo:XP,tr:KP,td:JP,left:QP,center:eN,right:tN,firstRight:nN,grouped:rN,expanded:iN,selectedCell:oN,sm:aN,lg:sN,clickable:lN,cellSelectedRow:cN,cellSelectionDisabled:uN,ownClick:dN,expanderButton:fN,emptyTableAlert:hN,removeFiltersButtonWrapper:pN,removeFiltersButton:mN,bottomBar:gN,leftItems:vN,pagination:bN,pageInfoText:yN,rightItems:xN,sizingMenu:wN,sizingMenuItem:_N};function CN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>r=>{t.forEach(i=>i(r))},t)}const hf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function y0(e){return"nodeType"in e}function Xn(e){var t,n;return e?vs(e)?e:y0(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function x0(e){const{Document:t}=Xn(e);return e instanceof t}function $c(e){return vs(e)?!1:e instanceof Xn(e).HTMLElement}function zC(e){return e instanceof Xn(e).SVGElement}function bs(e){return e?vs(e)?e.document:y0(e)?x0(e)?e:$c(e)||zC(e)?e.ownerDocument:document:document:document}const Vr=hf?v.useLayoutEffect:v.useEffect;function w0(e){const t=v.useRef(e);return Vr(()=>{t.current=e}),v.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 SN(){const e=v.useRef(null),t=v.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function zl(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return Vr(()=>{n.current!==e&&(n.current=e)},t),n}function kc(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function rd(e){const t=w0(e),n=v.useRef(null),r=v.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function km(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let lp={};function Mc(e,t){return v.useMemo(()=>{if(t)return t;const n=lp[e]==null?0:lp[e]+1;return lp[e]=n,e+"-"+n},[e,t])}function WC(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const s=Object.entries(a);for(const[l,c]of s){const u=o[l];u!=null&&(o[l]=u+e*c)}return o},{...t})}}const Na=WC(1),id=WC(-1);function TN(e){return"clientX"in e&&"clientY"in e}function _0(e){if(!e)return!1;const{KeyboardEvent:t}=Xn(e.target);return t&&e instanceof t}function $N(e){if(!e)return!1;const{TouchEvent:t}=Xn(e.target);return t&&e instanceof t}function Mm(e){if($N(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return TN(e)?{x:e.clientX,y:e.clientY}:null}const Wl=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Wl.Translate.toString(e),Wl.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Yb="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function kN(e){return e.matches(Yb)?e:e.querySelector(Yb)}const MN={display:"none"};function EN(e){let{id:t,value:n}=e;return v.createElement("div",{id:t,style:MN},n)}function ON(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return v.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function AN(){const[e,t]=v.useState("");return{announce:v.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const UC=v.createContext(null);function RN(e){const t=v.useContext(UC);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function DN(){const[e]=v.useState(()=>new Set),t=v.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[v.useCallback(n=>{let{type:r,event:i}=n;e.forEach(o=>{var a;return(a=o[r])==null?void 0:a.call(o,i)})},[e]),t]}const IN={draggable:`
|
|
255
|
+
To pick up a draggable item, press the space bar.
|
|
256
|
+
While dragging, use the arrow keys to move the item.
|
|
257
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
258
|
+
`},jN={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function PN(e){let{announcements:t=jN,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=IN}=e;const{announce:o,announcement:a}=AN(),s=Mc("DndLiveRegion"),[l,c]=v.useState(!1);if(v.useEffect(()=>{c(!0)},[]),RN(v.useMemo(()=>({onDragStart(d){let{active:f}=d;o(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&o(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;o(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;o(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;o(t.onDragCancel({active:f,over:h}))}}),[o,t])),!l)return null;const u=v.createElement(v.Fragment,null,v.createElement(EN,{id:r,value:i.draggable}),v.createElement(ON,{id:s,announcement:a}));return n?Un.createPortal(u,n):u}var hn;(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"})(hn||(hn={}));function od(){}function cp(e,t){return v.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function NN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const kr=Object.freeze({x:0,y:0});function LN(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function FN(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function BN(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function zN(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Gb(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const WN=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=Gb(t,t.left,t.top),o=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=LN(Gb(l),i);o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(FN)};function UN(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,c=e.width*e.height,u=a*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const HN=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=UN(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(BN)};function VN(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function HC(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:kr}function qN(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>({...o,top:o.top+e*a.y,bottom:o.bottom+e*a.y,left:o.left+e*a.x,right:o.right+e*a.x}),{...t})}}const YN=qN(1);function GN(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function ZN(e,t,n){const r=GN(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const XN={ignoreTransform:!1};function ys(e,t){t===void 0&&(t=XN);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Xn(e).getComputedStyle(e);c&&(n=ZN(n,c,u))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function Zb(e){return ys(e,{ignoreTransform:!0})}function KN(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function JN(e,t){return t===void 0&&(t=Xn(e).getComputedStyle(e)),t.position==="fixed"}function QN(e,t){t===void 0&&(t=Xn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const i=t[r];return typeof i=="string"?n.test(i):!1})}function C0(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(x0(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!$c(i)||zC(i)||n.includes(i))return n;const o=Xn(e).getComputedStyle(i);return i!==e&&QN(i,o)&&n.push(i),JN(i,o)?n:r(i.parentNode)}return e?r(e):n}function VC(e){const[t]=C0(e,1);return t??null}function up(e){return!hf||!e?null:vs(e)?e:y0(e)?x0(e)||e===bs(e).scrollingElement?window:$c(e)?e:null:null}function qC(e){return vs(e)?e.scrollX:e.scrollLeft}function YC(e){return vs(e)?e.scrollY:e.scrollTop}function Em(e){return{x:qC(e),y:YC(e)}}var yn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(yn||(yn={}));function GC(e){return!hf||!e?!1:e===document.scrollingElement}function ZC(e){const t={x:0,y:0},n=GC(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const eL={x:.2,y:.2};function tL(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=eL);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=ZC(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+m.height?(h.y=yn.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!u&&l>=t.bottom-m.height&&(h.y=yn.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=yn.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&a<=t.left+m.width&&(h.x=yn.Backward,p.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:h,speed:p}}function nL(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function XC(e){return e.reduce((t,n)=>Na(t,Em(n)),kr)}function rL(e){return e.reduce((t,n)=>t+qC(n),0)}function iL(e){return e.reduce((t,n)=>t+YC(n),0)}function oL(e,t){if(t===void 0&&(t=ys),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);VC(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const aL=[["x",["left","right"],rL],["y",["top","bottom"],iL]];class S0{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=C0(n),i=XC(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of aL)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[o]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let hl=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function sL(e){const{EventTarget:t}=Xn(e);return e instanceof t?e:bs(e)}function dp(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var or;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(or||(or={}));function Xb(e){e.preventDefault()}function lL(e){e.stopPropagation()}var Ot;(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"})(Ot||(Ot={}));const KC={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},cL=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ot.Right:return{...n,x:n.x+25};case Ot.Left:return{...n,x:n.x-25};case Ot.Down:return{...n,y:n.y+25};case Ot.Up:return{...n,y:n.y-25}}};let T0=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new hl(bs(n)),this.windowListeners=new hl(Xn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(or.Resize,this.handleCancel),this.windowListeners.add(or.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(or.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&oL(r),n(kr)}handleKeyDown(t){if(_0(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=KC,coordinateGetter:a=cL,scrollBehavior:s="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:kr;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=id(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const g=t.code,{isTop:x,isRight:_,isLeft:w,isBottom:C,maxScroll:b,minScroll:S}=ZC(m),M=nL(m),$={x:Math.min(g===Ot.Right?M.right-M.width/2:M.right,Math.max(g===Ot.Right?M.left:M.left+M.width/2,d.x)),y:Math.min(g===Ot.Down?M.bottom-M.height/2:M.bottom,Math.max(g===Ot.Down?M.top:M.top+M.height/2,d.y))},k=g===Ot.Right&&!_||g===Ot.Left&&!w,R=g===Ot.Down&&!C||g===Ot.Up&&!x;if(k&&$.x!==d.x){const T=m.scrollLeft+f.x,E=g===Ot.Right&&T<=b.x||g===Ot.Left&&T>=S.x;if(E&&!f.y){m.scrollTo({left:T,behavior:s});return}E?h.x=m.scrollLeft-T:h.x=g===Ot.Right?m.scrollLeft-b.x:m.scrollLeft-S.x,h.x&&m.scrollBy({left:-h.x,behavior:s});break}else if(R&&$.y!==d.y){const T=m.scrollTop+f.y,E=g===Ot.Down&&T<=b.y||g===Ot.Up&&T>=S.y;if(E&&!f.x){m.scrollTo({top:T,behavior:s});return}E?h.y=m.scrollTop-T:h.y=g===Ot.Down?m.scrollTop-b.y:m.scrollTop-S.y,h.y&&m.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Na(id(d,this.referenceCoordinates),h))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};T0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=KC,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function Kb(e){return!!(e&&"distance"in e)}function Jb(e){return!!(e&&"delay"in e)}let $0=class{constructor(t,n,r){var i;r===void 0&&(r=sL(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:a}=o;this.props=t,this.events=n,this.document=bs(a),this.documentListeners=new hl(this.document),this.listeners=new hl(r),this.windowListeners=new hl(Xn(a)),this.initialCoordinates=(i=Mm(o))!=null?i:kr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(or.Resize,this.handleCancel),this.windowListeners.add(or.DragStart,Xb),this.windowListeners.add(or.VisibilityChange,this.handleCancel),this.windowListeners.add(or.ContextMenu,Xb),this.documentListeners.add(or.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Jb(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Kb(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(or.Click,lL,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(or.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const l=(n=Mm(t))!=null?n:kr,c=id(i,l);if(!r&&s){if(Kb(s)){if(s.tolerance!=null&&dp(c,s.tolerance))return this.handleCancel();if(dp(c,s.distance))return this.handleStart()}if(Jb(s)&&dp(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ot.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}};const uL={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let JC=class extends $0{constructor(t){const{event:n}=t,r=bs(n.target);super(t,uL,r)}};JC.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const dL={move:{name:"mousemove"},end:{name:"mouseup"}};var Om;(function(e){e[e.RightClick=2]="RightClick"})(Om||(Om={}));let QC=class extends $0{constructor(t){super(t,dL,bs(t.event.target))}};QC.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Om.RightClick?!1:(r==null||r({event:n}),!0)}}];const fp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let e3=class extends $0{constructor(t){super(t,fp)}static setup(){return window.addEventListener(fp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(fp.move.name,t)};function t(){}}};e3.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var pl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(pl||(pl={}));var ad;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ad||(ad={}));function fL(e){let{acceleration:t,activator:n=pl.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=ad.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=pL({delta:d,disabled:!o}),[p,m]=SN(),g=v.useRef({x:0,y:0}),x=v.useRef({x:0,y:0}),_=v.useMemo(()=>{switch(n){case pl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case pl.DraggableRect:return i}},[n,i,l]),w=v.useRef(null),C=v.useCallback(()=>{const S=w.current;if(!S)return;const M=g.current.x*x.current.x,$=g.current.y*x.current.y;S.scrollBy(M,$)},[]),b=v.useMemo(()=>s===ad.TreeOrder?[...c].reverse():c,[s,c]);v.useEffect(()=>{if(!o||!c.length||!_){m();return}for(const S of b){if((r==null?void 0:r(S))===!1)continue;const M=c.indexOf(S),$=u[M];if(!$)continue;const{direction:k,speed:R}=tL(S,$,_,t,f);for(const T of["x","y"])h[T][k[T]]||(R[T]=0,k[T]=0);if(R.x>0||R.y>0){m(),w.current=S,p(C,a),g.current=R,x.current=k;return}}g.current={x:0,y:0},x.current={x:0,y:0},m()},[t,C,r,m,o,a,JSON.stringify(_),JSON.stringify(h),p,c,b,u,JSON.stringify(f)])}const hL={x:{[yn.Backward]:!1,[yn.Forward]:!1},y:{[yn.Backward]:!1,[yn.Forward]:!1}};function pL(e){let{delta:t,disabled:n}=e;const r=km(t);return kc(i=>{if(n||!r||!i)return hL;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[yn.Backward]:i.x[yn.Backward]||o.x===-1,[yn.Forward]:i.x[yn.Forward]||o.x===1},y:{[yn.Backward]:i.y[yn.Backward]||o.y===-1,[yn.Forward]:i.y[yn.Forward]||o.y===1}}},[n,t,r])}function mL(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return kc(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function gL(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var Ul;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ul||(Ul={}));var Am;(function(e){e.Optimized="optimized"})(Am||(Am={}));const Qb=new Map;function vL(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=v.useState(null),{frequency:s,measure:l,strategy:c}=i,u=v.useRef(e),d=g(),f=zl(d),h=v.useCallback(function(x){x===void 0&&(x=[]),!f.current&&a(_=>_===null?x:_.concat(x.filter(w=>!_.includes(w))))},[f]),p=v.useRef(null),m=kc(x=>{if(d&&!n)return Qb;if(!x||x===Qb||u.current!==e||o!=null){const _=new Map;for(let w of e){if(!w)continue;if(o&&o.length>0&&!o.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const C=w.node.current,b=C?new S0(l(C),C):null;w.rect.current=b,b&&_.set(w.id,b)}return _}return x},[e,o,n,d,l]);return v.useEffect(()=>{u.current=e},[e]),v.useEffect(()=>{d||h()},[n,d]),v.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),v.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:o!=null};function g(){switch(c){case Ul.Always:return!1;case Ul.BeforeDragging:return n;default:return!n}}}function t3(e,t){return kc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function bL(e,t){return t3(e,t)}function yL(e){let{callback:t,disabled:n}=e;const r=w0(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function pf(e){let{callback:t,disabled:n}=e;const r=w0(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function xL(e){return new S0(ys(e),e)}function ey(e,t,n){t===void 0&&(t=xL);const[r,i]=v.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=yL({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){o();break}}}}),s=pf({callback:o});return Vr(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function wL(e){const t=t3(e);return HC(e,t)}const ty=[];function _L(e){const t=v.useRef(e),n=kc(r=>e?r&&r!==ty&&e&&t.current&&e.parentNode===t.current.parentNode?r:C0(e):ty,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function CL(e){const[t,n]=v.useState(null),r=v.useRef(e),i=v.useCallback(o=>{const a=up(o.target);a&&n(s=>s?(s.set(a,Em(a)),new Map(s)):null)},[]);return v.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const c=up(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,Em(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};function a(s){s.forEach(l=>{const c=up(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>Na(o,a),kr):XC(e):kr,[e,t])}function ny(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==kr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?id(e,n.current):kr}function SL(e){v.useEffect(()=>{if(!hf)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function TL(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function n3(e){return v.useMemo(()=>e?KN(e):null,[e])}const ry=[];function $L(e,t){t===void 0&&(t=ys);const[n]=e,r=n3(n?Xn(n):null),[i,o]=v.useState(ry);function a(){o(()=>e.length?e.map(l=>GC(l)?r:new S0(t(l),l)):ry)}const s=pf({callback:a});return Vr(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function kL(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return $c(t)?t:e}function ML(e){let{measure:t}=e;const[n,r]=v.useState(null),i=v.useCallback(c=>{for(const{target:u}of c)if($c(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),o=pf({callback:i}),a=v.useCallback(c=>{const u=kL(c);o==null||o.disconnect(),u&&(o==null||o.observe(u)),r(u?t(u):null)},[t,o]),[s,l]=rd(a);return v.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const EL=[{sensor:JC,options:{}},{sensor:T0,options:{}}],OL={current:{}},Mu={draggable:{measure:Zb},droppable:{measure:Zb,strategy:Ul.WhileDragging,frequency:Am.Optimized},dragOverlay:{measure:ys}};let ml=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}};const AL={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new ml,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:od},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mu,measureDroppableContainers:od,windowRect:null,measuringScheduled:!1},RL={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:od,draggableNodes:new Map,over:null,measureDroppableContainers:od},mf=v.createContext(RL),r3=v.createContext(AL);function DL(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new ml}}}function IL(e,t){switch(t.type){case hn.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case hn.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case hn.DragEnd:case hn.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case hn.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new ml(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case hn.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new ml(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case hn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new ml(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function jL(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=v.useContext(mf),o=km(r),a=km(n==null?void 0:n.id);return v.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!_0(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=kN(u);if(d){d.focus();break}}})}},[r,t,i,a,o]),null}function PL(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function NL(e){return v.useMemo(()=>({draggable:{...Mu.draggable,...e==null?void 0:e.draggable},droppable:{...Mu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Mu.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function LL(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=v.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;Vr(()=>{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=HC(c,r);if(a||(u.x=0),s||(u.y=0),o.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=VC(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,a,s,r,n])}const i3=v.createContext({...kr,scaleX:1,scaleY:1});var Ni;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ni||(Ni={}));const FL=v.memo(function(e){var t,n,r,i;let{id:o,accessibility:a,autoScroll:s=!0,children:l,sensors:c=EL,collisionDetection:u=HN,measuring:d,modifiers:f,...h}=e;const p=v.useReducer(IL,void 0,DL),[m,g]=p,[x,_]=DN(),[w,C]=v.useState(Ni.Uninitialized),b=w===Ni.Initialized,{draggable:{active:S,nodes:M,translate:$},droppable:{containers:k}}=m,R=S!=null?M.get(S):null,T=v.useRef({initial:null,translated:null}),E=v.useMemo(()=>{var Ke;return S!=null?{id:S,data:(Ke=R==null?void 0:R.data)!=null?Ke:OL,rect:T}:null},[S,R]),A=v.useRef(null),[I,j]=v.useState(null),[D,O]=v.useState(null),L=zl(h,Object.values(h)),z=Mc("DndDescribedBy",o),N=v.useMemo(()=>k.getEnabled(),[k]),H=NL(d),{droppableRects:Y,measureDroppableContainers:q,measuringScheduled:Z}=vL(N,{dragging:b,dependencies:[$.x,$.y],config:H.droppable}),X=mL(M,S),J=v.useMemo(()=>D?Mm(D):null,[D]),ee=At(),W=bL(X,H.draggable.measure);LL({activeNode:S!=null?M.get(S):null,config:ee.layoutShiftCompensation,initialRect:W,measure:H.draggable.measure});const F=ey(X,H.draggable.measure,W),B=ey(X?X.parentElement:null),V=v.useRef({activatorEvent:null,active:null,activeNode:X,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:M,draggingNode:null,draggingNodeRect:null,droppableContainers:k,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),P=k.getNodeFor((t=V.current.over)==null?void 0:t.id),te=ML({measure:H.dragOverlay.measure}),K=(n=te.nodeRef.current)!=null?n:X,G=b?(r=te.rect)!=null?r:F:null,ae=!!(te.nodeRef.current&&te.rect),ne=wL(ae?null:F),re=n3(K?Xn(K):null),oe=_L(b?P??X:null),le=$L(oe),ye=PL(f,{transform:{x:$.x-ne.x,y:$.y-ne.y,scaleX:1,scaleY:1},activatorEvent:D,active:E,activeNodeRect:F,containerNodeRect:B,draggingNodeRect:G,over:V.current.over,overlayNodeRect:te.rect,scrollableAncestors:oe,scrollableAncestorRects:le,windowRect:re}),ge=J?Na(J,$):null,be=CL(oe),Me=ny(be),ce=ny(be,[F]),de=Na(ye,Me),Ce=G?YN(G,ye):null,Ge=E&&Ce?u({active:E,collisionRect:Ce,droppableRects:Y,droppableContainers:N,pointerCoordinates:ge}):null,we=zN(Ge,"id"),[ve,Ne]=v.useState(null),Ze=ae?ye:Na(ye,ce),_t=VN(Ze,(i=ve==null?void 0:ve.rect)!=null?i:null,F),Te=v.useRef(null),Re=v.useCallback((Ke,Le)=>{let{sensor:Ve,options:et}=Le;if(A.current==null)return;const Fe=M.get(A.current);if(!Fe)return;const tt=Ke.nativeEvent,vt=new Ve({active:A.current,activeNode:Fe,event:tt,options:et,context:V,onAbort(Pe){if(!M.get(Pe))return;const{onDragAbort:Ee}=L.current,Ye={id:Pe};Ee==null||Ee(Ye),x({type:"onDragAbort",event:Ye})},onPending(Pe,Ee,Ye,xt){if(!M.get(Pe))return;const{onDragPending:nt}=L.current,bt={id:Pe,constraint:Ee,initialCoordinates:Ye,offset:xt};nt==null||nt(bt),x({type:"onDragPending",event:bt})},onStart(Pe){const Ee=A.current;if(Ee==null)return;const Ye=M.get(Ee);if(!Ye)return;const{onDragStart:xt}=L.current,nt={activatorEvent:tt,active:{id:Ee,data:Ye.data,rect:T}};Un.unstable_batchedUpdates(()=>{xt==null||xt(nt),C(Ni.Initializing),g({type:hn.DragStart,initialCoordinates:Pe,active:Ee}),x({type:"onDragStart",event:nt}),j(Te.current),O(tt)})},onMove(Pe){g({type:hn.DragMove,coordinates:Pe})},onEnd:at(hn.DragEnd),onCancel:at(hn.DragCancel)});Te.current=vt;function at(Pe){return async function(){const{active:Ee,collisions:Ye,over:xt,scrollAdjustedTranslate:nt}=V.current;let bt=null;if(Ee&&nt){const{cancelDrop:Jt}=L.current;bt={activatorEvent:tt,active:Ee,collisions:Ye,delta:nt,over:xt},Pe===hn.DragEnd&&typeof Jt=="function"&&await Promise.resolve(Jt(bt))&&(Pe=hn.DragCancel)}A.current=null,Un.unstable_batchedUpdates(()=>{g({type:Pe}),C(Ni.Uninitialized),Ne(null),j(null),O(null),Te.current=null;const Jt=Pe===hn.DragEnd?"onDragEnd":"onDragCancel";if(bt){const Ft=L.current[Jt];Ft==null||Ft(bt),x({type:Jt,event:bt})}})}}},[M]),ot=v.useCallback((Ke,Le)=>(Ve,et)=>{const Fe=Ve.nativeEvent,tt=M.get(et);if(A.current!==null||!tt||Fe.dndKit||Fe.defaultPrevented)return;const vt={active:tt};Ke(Ve,Le.options,vt)===!0&&(Fe.dndKit={capturedBy:Le.sensor},A.current=et,Re(Ve,Le))},[M,Re]),Ue=gL(c,ot);SL(c),Vr(()=>{F&&w===Ni.Initializing&&C(Ni.Initialized)},[F,w]),v.useEffect(()=>{const{onDragMove:Ke}=L.current,{active:Le,activatorEvent:Ve,collisions:et,over:Fe}=V.current;if(!Le||!Ve)return;const tt={active:Le,activatorEvent:Ve,collisions:et,delta:{x:de.x,y:de.y},over:Fe};Un.unstable_batchedUpdates(()=>{Ke==null||Ke(tt),x({type:"onDragMove",event:tt})})},[de.x,de.y]),v.useEffect(()=>{const{active:Ke,activatorEvent:Le,collisions:Ve,droppableContainers:et,scrollAdjustedTranslate:Fe}=V.current;if(!Ke||A.current==null||!Le||!Fe)return;const{onDragOver:tt}=L.current,vt=et.get(we),at=vt&&vt.rect.current?{id:vt.id,rect:vt.rect.current,data:vt.data,disabled:vt.disabled}:null,Pe={active:Ke,activatorEvent:Le,collisions:Ve,delta:{x:Fe.x,y:Fe.y},over:at};Un.unstable_batchedUpdates(()=>{Ne(at),tt==null||tt(Pe),x({type:"onDragOver",event:Pe})})},[we]),Vr(()=>{V.current={activatorEvent:D,active:E,activeNode:X,collisionRect:Ce,collisions:Ge,droppableRects:Y,draggableNodes:M,draggingNode:K,draggingNodeRect:G,droppableContainers:k,over:ve,scrollableAncestors:oe,scrollAdjustedTranslate:de},T.current={initial:G,translated:Ce}},[E,X,Ge,Ce,M,K,G,Y,k,ve,oe,de]),fL({...ee,delta:$,draggingRect:Ce,pointerCoordinates:ge,scrollableAncestors:oe,scrollableAncestorRects:le});const mt=v.useMemo(()=>({active:E,activeNode:X,activeNodeRect:F,activatorEvent:D,collisions:Ge,containerNodeRect:B,dragOverlay:te,draggableNodes:M,droppableContainers:k,droppableRects:Y,over:ve,measureDroppableContainers:q,scrollableAncestors:oe,scrollableAncestorRects:le,measuringConfiguration:H,measuringScheduled:Z,windowRect:re}),[E,X,F,D,Ge,B,te,M,k,Y,ve,q,oe,le,H,Z,re]),ut=v.useMemo(()=>({activatorEvent:D,activators:Ue,active:E,activeNodeRect:F,ariaDescribedById:{draggable:z},dispatch:g,draggableNodes:M,over:ve,measureDroppableContainers:q}),[D,Ue,E,F,g,z,M,ve,q]);return v.createElement(UC.Provider,{value:_},v.createElement(mf.Provider,{value:ut},v.createElement(r3.Provider,{value:mt},v.createElement(i3.Provider,{value:_t},l)),v.createElement(jL,{disabled:(a==null?void 0:a.restoreFocus)===!1})),v.createElement(PN,{...a,hiddenTextDescribedById:z}));function At(){const Ke=(I==null?void 0:I.autoScrollEnabled)===!1,Le=typeof s=="object"?s.enabled===!1:s===!1,Ve=b&&!Ke&&!Le;return typeof s=="object"?{...s,enabled:Ve}:{enabled:Ve}}}),BL=v.createContext(null),iy="button",zL="Draggable";function WL(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=Mc(zL),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=v.useContext(mf),{role:h=iy,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,x=v.useContext(g?i3:BL),[_,w]=rd(),[C,b]=rd(),S=TL(a,t),M=zl(n);Vr(()=>(d.set(t,{id:t,key:o,node:_,activatorNode:C,data:M}),()=>{const k=d.get(t);k&&k.key===o&&d.delete(t)}),[d,t]);const $=v.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":g&&h===iy?!0:void 0,"aria-roledescription":p,"aria-describedby":u.draggable}),[r,h,m,g,p,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:$,isDragging:g,listeners:r?void 0:S,node:_,over:f,setNodeRef:w,setActivatorNodeRef:b,transform:x}}function UL(){return v.useContext(r3)}const HL="Droppable",VL={timeout:25};function qL(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=Mc(HL),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=v.useContext(mf),u=v.useRef({disabled:n}),d=v.useRef(!1),f=v.useRef(null),h=v.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...VL,...i},x=zl(m??r),_=v.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(x.current)?x.current:[x.current]),h.current=null},g)},[g]),w=pf({callback:_,disabled:p||!a}),C=v.useCallback(($,k)=>{w&&(k&&(w.unobserve(k),d.current=!1),$&&w.observe($))},[w]),[b,S]=rd(C),M=zl(t);return v.useEffect(()=>{!w||!b.current||(w.disconnect(),d.current=!1,w.observe(b.current))},[b,w]),v.useEffect(()=>(s({type:hn.RegisterDroppable,element:{id:r,key:o,disabled:n,node:b,rect:f,data:M}}),()=>s({type:hn.UnregisterDroppable,key:o,id:r})),[r]),v.useEffect(()=>{n!==u.current.disabled&&(s({type:hn.SetDroppableDisabled,id:r,key:o,disabled:n}),u.current.disabled=n)},[r,o,n,s]),{active:a,rect:f,isOver:(l==null?void 0:l.id)===r,node:b,over:l,setNodeRef:S}}function k0(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function YL(e,t){return e.reduce((n,r,i)=>{const o=t.get(r);return o&&(n[i]=o),n},Array(e.length))}function ou(e){return e!==null&&e>=0}function GL(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ZL(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const au={scaleX:1,scaleY:1},XL=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:o,index:a}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const l=KL(n,a,i);if(a===i){const c=n[o];return c?{x:i<o?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...au}:null}return a>i&&a<=o?{x:-s.width-l,y:0,...au}:a<i&&a>=o?{x:s.width+l,y:0,...au}:{x:0,y:0,...au}};function KL(e,t,n){const r=e[t],i=e[t-1],o=e[t+1];return!r||!i&&!o?0:n<t?i?r.left-(i.left+i.width):o.left-(r.left+r.width):o?o.left-(r.left+r.width):r.left-(i.left+i.width)}const o3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=k0(t,r,n),a=t[i],s=o[i];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},a3="Sortable",s3=v.createContext({activeIndex:-1,containerId:a3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:o3,disabled:{draggable:!1,droppable:!1}});function JL(e){let{children:t,id:n,items:r,strategy:i=o3,disabled:o=!1}=e;const{active:a,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=UL(),d=Mc(a3,n),f=s.rect!==null,h=v.useMemo(()=>r.map(S=>typeof S=="object"&&"id"in S?S.id:S),[r]),p=a!=null,m=a?h.indexOf(a.id):-1,g=c?h.indexOf(c.id):-1,x=v.useRef(h),_=!GL(h,x.current),w=g!==-1&&m===-1||_,C=ZL(o);Vr(()=>{_&&p&&u(h)},[_,h,p,u]),v.useEffect(()=>{x.current=h},[h]);const b=v.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:w,items:h,overIndex:g,useDragOverlay:f,sortedRects:YL(h,l),strategy:i}),[m,d,C.draggable,C.droppable,w,h,g,l,f,i]);return v.createElement(s3.Provider,{value:b},t)}const QL=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return k0(n,r,i).indexOf(t)},eF=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:o,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==o&&i===a?!1:n?!0:a!==i&&t===l},tF={duration:200,easing:"ease"},l3="transform",nF=Wl.Transition.toString({property:l3,duration:0,easing:"linear"}),rF={roleDescription:"sortable"};function iF(e){let{disabled:t,index:n,node:r,rect:i}=e;const[o,a]=v.useState(null),s=v.useRef(n);return Vr(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=ys(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),v.useEffect(()=>{o&&a(null)},[o]),o}function oF(e){let{animateLayoutChanges:t=eF,attributes:n,disabled:r,data:i,getNewIndex:o=QL,id:a,strategy:s,resizeObserverConfig:l,transition:c=tF}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:x,strategy:_}=v.useContext(s3),w=aF(r,h),C=u.indexOf(a),b=v.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),S=v.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:M,node:$,isOver:k,setNodeRef:R}=qL({id:a,data:b,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:T,activatorEvent:E,activeNodeRect:A,attributes:I,setNodeRef:j,listeners:D,isDragging:O,over:L,setActivatorNodeRef:z,transform:N}=WL({id:a,data:b,attributes:{...rF,...n},disabled:w.draggable}),H=CN(R,j),Y=!!T,q=Y&&!p&&ou(f)&&ou(g),Z=!x&&O,X=Z&&q?N:null,J=q?X??(s??_)({rects:m,activeNodeRect:A,activeIndex:f,overIndex:g,index:C}):null,ee=ou(f)&&ou(g)?o({id:a,items:u,activeIndex:f,overIndex:g}):C,W=T==null?void 0:T.id,F=v.useRef({activeId:W,items:u,newIndex:ee,containerId:d}),B=u!==F.current.items,V=t({active:T,containerId:d,isDragging:O,isSorting:Y,id:a,index:C,items:u,newIndex:F.current.newIndex,previousItems:F.current.items,previousContainerId:F.current.containerId,transition:c,wasDragging:F.current.activeId!=null}),P=iF({disabled:!V,index:C,node:$,rect:M});return v.useEffect(()=>{Y&&F.current.newIndex!==ee&&(F.current.newIndex=ee),d!==F.current.containerId&&(F.current.containerId=d),u!==F.current.items&&(F.current.items=u)},[Y,ee,d,u]),v.useEffect(()=>{if(W===F.current.activeId)return;if(W!=null&&F.current.activeId==null){F.current.activeId=W;return}const K=setTimeout(()=>{F.current.activeId=W},50);return()=>clearTimeout(K)},[W]),{active:T,activeIndex:f,attributes:I,data:b,rect:M,index:C,newIndex:ee,items:u,isOver:k,isSorting:Y,isDragging:O,listeners:D,node:$,overIndex:g,over:L,setNodeRef:H,setActivatorNodeRef:z,setDroppableNodeRef:R,setDraggableNodeRef:j,transform:P??J,transition:te()};function te(){if(P||B&&F.current.newIndex===C)return nF;if(!(Z&&!_0(E)||!c)&&(Y||V))return Wl.Transition.toString({...c,property:l3})}}function aF(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Ot.Down,Ot.Right,Ot.Up,Ot.Left;const sF="_column-menu_wt2wp_1",lF="_column-menu-item_wt2wp_4",cF="_danger_wt2wp_8",Ii={columnMenu:sF,columnMenuItem:lF,danger:cF},uF=({header:e,table:t,className:n,IconComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:o,DropdownMenuItemComponent:a,DropdownTriggerComponent:s,InputComponent:l,CheckComponent:c,texts:u,columnMenuPos:d,onColumnMenu:f,dragEnabled:h,style:p})=>{var I,j,D;const{attributes:m,listeners:g,setNodeRef:x,transform:_,isDragging:w}=oF({id:e.id,disabled:!h}),C={...p??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...h?{transform:Wl.Translate.toString(_)}:{}},b=O=>O.column.getCanSort()?"button":void 0,S=O=>{var N,H;const L=O.column.getIsSorted(),z=O.column.getIsGrouped();return Ie("th",We.th,{sorted:L,[We.sorted]:L},{grouped:z,[We.grouped]:z},(N=O.column.columnDef.meta)==null?void 0:N.className,(H=O.column.columnDef.meta)==null?void 0:H.headerClassName)},M=O=>{const L=O.column.getCanSort();return Ie(We.heading,"heading",{[We.canSort]:L})},$=O=>{O.preventDefault(),f({id:e.id,x:O.clientX,y:O.clientY})},k=()=>f(null),R=(d==null?void 0:d.id)===e.id,T=e.column.getIsPinned(),E=e.column.getIsGrouped(),A=(j=(I=e.column.columnDef)==null?void 0:I.meta)==null?void 0:j.alwaysPinned;return y.jsxs("div",{className:Ie(n,S(e.getContext())),ref:x,style:C,onContextMenu:$,children:[Un.createPortal(y.jsxs(i,{isOpen:R,onToggleOpen:O=>!O&&k(),children:[y.jsx(s,{style:{position:"fixed",top:R?d.y??0:0,left:R?d.x??0:0,display:R?"block":"none",transform:"none",opacity:0}}),y.jsxs(o,{className:Ie("column-menu",Ii.columnMenu),style:{position:"fixed",top:R?d.y??0:0,left:R?d.x??0:0,zIndex:9999,display:R?"block":"none",transform:"none"},onClick:k,children:[T!=="right"&&e.column.getCanPin()&&!A?y.jsx(a,{className:Ie(Ii.columnMenuItem,{[Ii.danger]:T}),onClick:()=>e.column.pin(T==="left"?!1:"left"),children:T==="left"?u.columnUnpin:u.columnPinLeft}):null,T!=="left"&&e.column.getCanPin()&&!A?y.jsx(a,{className:Ie(Ii.columnMenuItem,{[Ii.danger]:T}),onClick:()=>e.column.pin(T==="right"?!1:"right"),children:T==="right"?u.columnUnpin:u.columnPinRight}):null,e.column.getCanGroup()?y.jsx(a,{className:Ie(Ii.columnMenuItem,{[Ii.danger]:E}),onClick:e.column.getToggleGroupingHandler(),children:E?u.columnUngroup:u.columnGroup}):null,e.column.getCanHide()&&((D=e.column.columnDef.meta)==null?void 0:D.hidden)!==!0?y.jsx(a,{className:Ie(Ii.columnMenuItem),onClick:()=>e.column.toggleVisibility(),children:u.columnHide}):null]})]}),document.body),e.isPlaceholder?null:y.jsxs("div",{children:[y.jsxs("div",{className:M(e.getContext()),role:b(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[y.jsxs("div",{className:Ie("content",We.content),children:[h?y.jsx("div",{...g,...m,className:Ie("reorder-handle",We.reorderHandle,{dragging:w,[We.dragging]:w}),children:y.jsx(r,{icon:"drag-handle"})}):null,BC(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?y.jsx(r,{className:"sort-icon",icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?y.jsx(OP,{CheckComponent:c,column:e.column,DropdownMenuComponent:i,DropdownMenuContentComponent:o,DropdownMenuItemComponent:a,DropdownTriggerComponent:s,IconComponent:r,InputComponent:l,texts:u}):e.column.id==="select-col"?y.jsx("div",{className:Ie("row-selection-info",We.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?y.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:Ie("resizer",We.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?We.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:y.jsx("div",{className:Ie("resizer-bar",We.resizerBar)})}):null]})},oy=e=>{var n,r,i,o,a;const t=(n=e==null?void 0:e.columnDef)==null?void 0:n.header;if(!t)return e==null?void 0:e.id;if(typeof t=="string")return t;if(typeof t=="function"){const s=t({column:e});return typeof s=="string"?s:v.isValidElement(s)&&typeof((r=s.props)==null?void 0:r.children)=="string"?(i=s.props)==null?void 0:i.children:e==null?void 0:e.id}return v.isValidElement(t)&&typeof((o=t==null?void 0:t.props)==null?void 0:o.children)=="string"?(a=t==null?void 0:t.props)==null?void 0:a.children:e==null?void 0:e.id},dF="_columns-dropdown_ot346_1",fF="_columns-dropdown-menu_ot346_35",hF="_dropdown-menu-item_ot346_42",pF="_search-item_ot346_45",mF="_search-input_ot346_49",ya={columnsDropdown:dF,columnsDropdownMenu:fF,dropdownMenuItem:hF,searchItem:pF,searchInput:mF},gF=({triggerText:e,columns:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:o,CheckComponent:a,DropdownTriggerComponent:s})=>{var p,m,g;const[l,c]=v.useState(""),u=v.useRef(null),d=v.useRef(null),[f,h]=v.useState(!1);return v.useEffect(()=>{f||c("")},[f]),v.useEffect(()=>{f&&d.current&&d.current.focus()},[f]),y.jsxs(r,{onToggleOpen:x=>h(x),children:[y.jsx(s,{className:Ie("columns-dropdown",ya.columnsDropdown),id:"column-visibility-dropdown",ref:u,children:e}),y.jsxs(i,{className:Ie("columns-dropdown-menu",ya.columnsDropdownMenu),style:{position:"relative",left:(p=u.current)==null?void 0:p.getBoundingClientRect().left,top:(m=u.current)==null?void 0:m.getBoundingClientRect().bottom,minWidth:(g=u.current)==null?void 0:g.getBoundingClientRect().width},children:[y.jsx(o,{className:Ie("search-item",ya.dropdownMenuItem,ya.searchItem),onClick:x=>{x.preventDefault(),x.stopPropagation()},children:y.jsx(n,{className:ya.searchInput,ref:d,size:"sm",type:"search",value:l,onChange:x=>c(x.target.value??"")})}),t.filter(x=>l?is(oy(x).toLowerCase()).includes(is(l.toLowerCase())):!0).map(x=>y.jsx(o,{className:Ie(ya.dropdownMenuItem),onClick:_=>{_.preventDefault(),_.stopPropagation(),x.toggleVisibility()},children:y.jsx(a,{checked:x.getIsVisible(),label:oy(x),onChange:()=>{}})},x.id))]})]})},vF="_modal_13qph_1",bF="_modal-body_13qph_1",yF="_settings-item_13qph_6",xF="_label_13qph_13",wF="_content_13qph_17",_F="_modal-footer_13qph_46",ii={modal:vF,modalBody:bF,settingsItem:yF,label:xF,content:wF,modalFooter:_F},CF=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,ButtonComponent:o,resetToDefault:a,ModalComponent:s,ModalHeaderComponent:l,ModalTitleComponent:c,ModalBodyComponent:u,ModalFooterComponent:d,InputComponent:f,DropdownMenuComponent:h,DropdownTriggerComponent:p,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,CheckComponent:x})=>{const[_,w]=v.useState(r.value?r.value.toString():"");return v.useEffect(()=>{e&&w(r.value?r.value.toString():"")},[e,r.value]),y.jsxs(s,{className:Ie("tanstack-bnf-table-settings-modal",ii.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[y.jsx(l,{closeButton:!0,children:y.jsx(c,{children:n==null?void 0:n.settingsModal.title})}),y.jsxs(u,{className:ii.modalBody,children:[r.enabled?y.jsxs("div",{className:ii.settingsItem,children:[y.jsx("div",{className:Ie(ii.label),children:n==null?void 0:n.settingsModal.pageSize}),y.jsxs("div",{className:Ie(ii.content),children:[y.jsx(f,{"data-testId":"page-size-input",list:"pageSizes",max:1e3,min:0,size:"sm",type:"number",value:_,onChange:C=>{w(C.target.value),C.target.value&&r.onChange(Number(C.target.value))}}),y.jsxs("datalist",{id:"pageSizes",children:[y.jsx("option",{value:"10"}),y.jsx("option",{value:"20"}),y.jsx("option",{value:"30"}),y.jsx("option",{value:"50"}),y.jsx("option",{value:"100"})]})]})]}):null,y.jsx("div",{children:y.jsxs("div",{className:Ie(ii.settingsItem),children:[y.jsx("div",{className:Ie("text-nowrap",ii.label),children:"Sloupce tabulky"}),y.jsx("div",{className:Ie("text-nowrap",ii.content),children:y.jsx(gF,{CheckComponent:x,columns:i.allColumns.filter(C=>{var b;return C.getCanHide()&&((b=C.columnDef.meta)==null?void 0:b.hidden)!==!0}),DropdownMenuComponent:h,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,DropdownTriggerComponent:p,InputComponent:f,triggerText:n==null?void 0:n.settingsModal.columnVisibility})})]})})]}),y.jsxs(d,{className:ii.modalFooter,children:[y.jsx(o,{variant:"outline-secondary",onClick:()=>{a(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),y.jsx(o,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},SF=e=>e.type==="number"?"sum":"uniqueCount",TF=(e,t,n)=>{var i;const r=t.column.columnDef;return(i=r.meta)!=null&&i.customCellRender?r.meta.customCellRender(t):r.type==="boolean"?n.boolean(t):r.type==="date"?n.date(t):r.type==="datetime"?n.datetime(t):r.type==="number"?n.number(t):BC(e,t)},$F=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(SF(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},kF=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:o,onCellInteraction:a,...s})=>t&&n?y.jsx(i,{ref:e,to:n,onAuxClick:l=>{l.button===1&&(a==null||a())},onClick:()=>{o==null||o(),a==null||a()},onContextMenu:()=>{a==null||a()},...s,children:r}):y.jsx("div",{ref:e,onAuxClick:o||a?l=>{l.button===1&&(a==null||a())}:void 0,onClick:o||a?()=>{o==null||o(),a==null||a()}:void 0,onContextMenu:o||a?()=>{a==null||a()}:void 0,...s,children:r}),MF=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:o,IconButtonComponent:a,texts:s,formatters:l,LinkComponent:c,onRowClick:u,rowNavigation:d,onCellInteraction:f},h)=>{var g,x,_;const p=t.column.columnDef,m=v.useMemo(()=>{var w,C,b,S,M;if(!((w=p.meta)!=null&&w.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((C=p.meta)!=null&&C.onCellClick)return["onClickOwn",()=>{var $,k;return(k=($=p.meta)==null?void 0:$.onCellClick)==null?void 0:k.call($,e.original)}];if((b=p.meta)!=null&&b.cellNavigation){const $=(M=(S=p.meta)==null?void 0:S.cellNavigation)==null?void 0:M.call(S,e.original);if($)return["navigateOwn",$]}if(u)return["onClick",()=>u==null?void 0:u(e.original)];if(d){const $=d==null?void 0:d(e.original);if($)return["navigate",$]}}},[p,e,u,d,t]);return y.jsxs(kF,{className:Ie((w=>{var $,k,R,T,E,A,I;const C=(($=p==null?void 0:p.meta)==null?void 0:$.alignment)??"left",b=w.column.getIsSorted(),S=w.cell.getIsGrouped(),M=w.row.getIsExpanded();return Ie("td",We.td,{[We.left]:C==="left",[We.center]:C==="center",[We.right]:C==="right"||p.type==="number"&&((k=p.numericMeta)==null?void 0:k.noFormatting)!==!0},{sorted:b,[We.sorted]:b},{grouped:S,[We.grouped]:S},{expanded:M,[We.expanded]:M},{clickable:!!m,[We.clickable]:!!m},{"own-click":(R=m==null?void 0:m[0])==null?void 0:R.endsWith("Own"),[We.ownClick]:(T=m==null?void 0:m[0])==null?void 0:T.endsWith("Own")},r,(E=p.meta)==null?void 0:E.className,(I=(A=p.meta)==null?void 0:A.rowClassName)==null?void 0:I.call(A,e.original))})(t.getContext()),n),isLink:!!((g=m==null?void 0:m[0])!=null&&g.startsWith("navigate")),LinkComponent:c,ref:h,style:{flex:`${t.column.getSize()} 1 0`,minWidth:t.column.getSize(),...i??{}},to:(x=m==null?void 0:m[0])!=null&&x.startsWith("navigate")?m[1]:void 0,onCellInteraction:f?()=>f==null?void 0:f(e.original):void 0,onClick:(_=m==null?void 0:m[0])!=null&&_.startsWith("onClick")?m[1]:void 0,children:[t.getIsGrouped()&&e.getCanExpand()?y.jsx(a,{className:Ie("expander-button",We.expanderButton),size:"sm",onClick:w=>{w.stopPropagation(),e.getToggleExpandedHandler()()},children:y.jsx(o,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?$F(t.column.columnDef,t.getContext(),s):t.getIsPlaceholder()?null:TF(t.column.columnDef.cell,t.getContext(),l)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},EF=v.forwardRef(MF),OF=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],ay=new Map(OF),AF=(e,t,n,r,i,o)=>{const a=v.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??a,[c,u]=v.useState(),[d,f]=v.useState(),h=v.useCallback(g=>{e!=null&&e.disabled||l(g)},[e==null?void 0:e.disabled,l]),p=({fieldName:g,dataIndex:x})=>{u(g),f(x)},m=v.useCallback(g=>{if(e!=null&&e.disabled)return;const x=g.target;if(!(["INPUT","TEXTAREA"].includes(x.tagName)||x.isContentEditable))switch(g.code){case"Space":case"Enter":{g.preventDefault();const _=t.get(s[0]);if(e!=null&&e.onlyRowSelection){n[s[1]].toggleSelected();break}if(!_)return;_==="selection"&&n[s[1]].toggleSelected();break}case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":{g.preventDefault(),h(_=>{const w=[Math.min(Math.max(_[0]+ay.get(g.code)[0],0),t.size-1),Math.min(Math.max(_[1]+ay.get(g.code)[1],0),n.length-1)];if(r!==void 0){const C=Math.floor(w[1]/r);i(C)}return w});break}case"Tab":if(g.preventDefault(),g.shiftKey)h(_=>_[0]<=0?_[1]<=0?_:[t.size-1,_[1]-1]:[_[0]-1,_[1]]);else{h(_=>_[0]>=t.size-1?_[1]>=n.length-1?_:[0,_[1]+1]:[_[0]+1,_[1]]);break}}},[e==null?void 0:e.disabled,e==null?void 0:e.onlyRowSelection,t,s,n,h,r,i]);return v.useEffect(()=>{if(c===void 0)return;u(void 0);const g=[...t.entries()].findIndex(x=>x[1]===c);l(x=>[g,x[1]])},[c,l,t]),v.useEffect(()=>{if(d===void 0)return;f(void 0);const g=n.findIndex(x=>x.index===d);if(l(x=>[x[0],g]),r!==void 0){const x=Math.floor(g/r);i(x)}},[i,r,d,n,l]),v.useEffect(()=>{if((e==null?void 0:e.onCellSelect)===void 0)return;const g=new AbortController;return window.addEventListener("keydown",m,{signal:g.signal}),()=>g.abort()},[m,e==null?void 0:e.onCellSelect]),v.useEffect(()=>{var g;(g=o.current)==null||g.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[o,s]),v.useEffect(()=>{var x;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((x=n[s[1]])==null?void 0:x.index)===void 0){n.length>0&&h(_=>[_[0],0]);return}const g=t.get(s[0]);if(g===void 0){console.error(`Tried to access non-existing key ${s[0]} from following map: `,t);return}e==null||e.onCellSelect(n[s[1]].index,g)},[e,h,n,s,t]),{selectedCoords:s,changeSelectedCoords:h,setSelectedCellByFNDI:p}},RF=e=>{const t=v.useRef([]),n=(r,i)=>{var o;t.current[i]=r,r&&(r.style.transform=`translateY(${((o=e.current)==null?void 0:o.scrollTop)??0}px)`)};return v.useEffect(()=>{const r=e.current;if(!r)return;const i=()=>{const o=r.scrollTop;for(const a of t.current)a&&(a.style.transform=`translateY(${o}px)`)};return r.addEventListener("scroll",i),()=>r.removeEventListener("scroll",i)},[e]),{registerSticky:n}},DF=e=>{let{transform:t}=e;return{...t,y:0}},IF=({table:e,additionalOptions:t,IconComponent:n,ButtonComponent:r,IconButtonComponent:i,DropdownMenuComponent:o,DropdownTriggerComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,InputComponent:c,ModalComponent:u,ModalHeaderComponent:d,ModalTitleComponent:f,ModalBodyComponent:h,ModalFooterComponent:p,texts:m,formatters:g,bottomBar:x,testId:_,LinkComponent:w,className:C,rowsClassName:b,onRowClick:S,rowNavigation:M,onCellInteraction:$,cellSelection:k,getRowProps:R,UI:{CheckComponent:T}},E)=>{var le,ye,ge,be,Me,ce,de,Ce,Ge;const A={boolean:we=>uP(we,n),date:dP,datetime:fP,number:hP,...g},[I,j]=v.useState(!1),D=t.isPaginated,O=NN(cp(QC,{}),cp(e3,{}),cp(T0,{})),L=e.getState().columnOrder,z=we=>{const{active:ve,over:Ne}=we;ve&&Ne&&ve.id!==Ne.id&&e.setColumnOrder(Ze=>{const _t=Ze.indexOf(ve.id),Te=Ze.indexOf(Ne.id);return _t===-1||Te===-1?Ze:k0(Ze,_t,Te)})},[N,H]=v.useState(null),Y=we=>{H(we)},q=we=>{if(!we.getCanPin())return"";const ve=we.getIsPinned(),Ne=ve==="right"&&we.getIsFirstColumn("right"),Ze=ve==="left"&&we.getIsLastColumn("left");return Ie({pinned:ve,[We.pinned]:ve,"first-right":Ne,[We.firstRight]:Ne,"last-left":Ze,[We.lastLeft]:Ze})},Z=we=>{if(!we.getCanPin())return{};const ve=we.getIsPinned();return{left:ve==="left"?`${we.getStart("left")}px`:void 0,right:ve==="right"?`${we.getAfter("right")}px`:void 0}},X=e.getState().sorting;v.useEffect(()=>{var we,ve;if(X.length>0){const Ne=X[0];if((we=document.activeElement)!=null&&we.classList.contains("filter"))return;(ve=document.getElementById(`filter-${Ne.id}`))==null||ve.focus()}},[X]);const J=e.getPrePaginationRowModel().rows,ee=new Map(e.getVisibleLeafColumns().map((we,ve)=>[ve,we.id])),W=v.useRef(null),{selectedCoords:F,changeSelectedCoords:B,setSelectedCellByFNDI:V}=AF(k,ee,J,D?((le=e.getState().pagination)==null?void 0:le.pageSize)??0:void 0,e.setPageIndex,W);v.useImperativeHandle(E,()=>({setSelectedCell:V}));const P=we=>{var ve;return k!=null&&k.onlyRowSelection&&((ve=J[F[1]])==null?void 0:ve.index)===we.index?Ie(We.cellSelectedRow,"cell-selected-row",{[We.cellSelectionDisabled]:k.disabled}):""},te=(we,ve)=>{var Ne;return(k==null?void 0:k.onCellSelect)===void 0||F[0]!==we||((Ne=J[F[1]])==null?void 0:Ne.index)!==ve||k.onlyRowSelection?"":k.disabled?"bg-primary-subtle":Ie("selected-cell",We.selectedCell)},K=t.fullScreen.canFullScreen?((ye=t.fullScreen)==null?void 0:ye.isFullScreen)??!1:!1,G=(ge=t.sizing)!=null&&ge.canSize?((be=t.sizing)==null?void 0:be.size)??"md":"md",ae=e.getState().columnFilters,ne=v.useRef(null),{registerSticky:re}=RF(ne),oe=(we,ve,Ne)=>{var Ze;return y.jsx("div",{className:Ie("tr",We.tr,P(we),{pinned:we.getIsPinned()!==!1,[We.pinned]:we.getIsPinned()!==!1},R?(Ze=R(we.original))==null?void 0:Ze.className:null),role:"data-row",...R?R(we.original):{},ref:Ne!==void 0?_t=>re(_t,Ne):void 0,children:we.getVisibleCells().map((_t,Te)=>{var Re;return y.jsx(EF,{cell:_t,className:Ie(q(_t.column),te(Te,we.index)),formatters:A,IconButtonComponent:i,IconComponent:n,LinkComponent:w,ref:(k==null?void 0:k.onCellSelect)!==void 0&&F[0]===Te&&((Re=J[F[1]])==null?void 0:Re.index)===we.index?W:null,row:we,rowClassName:Ie(...(b==null?void 0:b.filter(ot=>ot.selector(we.original)).map(ot=>ot.className))??[]),rowNavigation:M,style:Z(_t.column),texts:m,onCellInteraction:(k==null?void 0:k.onCellSelect)===void 0?$:ot=>{var Ue,mt;B([Te,((Ue=e.getState().pagination)==null?void 0:Ue.pageIndex)*((mt=e.getState().pagination)==null?void 0:mt.pageSize)+ve]),$==null||$(ot)},onRowClick:S},_t.id)})},we.id)};return y.jsx(FL,{collisionDetection:WN,modifiers:[DF],sensors:O,onDragEnd:z,children:y.jsxs("div",{className:Ie("tanstack-bnf-table-container",We.tableScrollContainer,{"full-screen":K,[We.fullScreen]:K}),ref:ne,children:[ae&&ae.length>0?y.jsx("div",{className:Ie("remove-filters-button-wrapper",We.removeFiltersButtonWrapper),children:y.jsxs("button",{className:Ie(We.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[y.jsx(n,{icon:"remove-filters"}),(m==null?void 0:m.removeFilters)??"Zrušit filtry"]})}):null,y.jsxs("div",{className:Ie("tanstack-bnf-table",We.table,{sm:G==="sm",lg:G==="lg",[We.sm]:G==="sm",[We.lg]:G==="lg"},C),"data-testid":_,children:[y.jsx("div",{className:Ie("thead",We.thead),children:e.getHeaderGroups().map(we=>y.jsx("div",{className:Ie("tr",We.tr),children:y.jsx(JL,{items:L,strategy:XL,children:we.headers.map(ve=>{var Ne,Ze;return y.jsx(uF,{CheckComponent:T,className:q(ve.column),columnMenuPos:N,dragEnabled:t.enableReordering&&((Ze=(Ne=ve.column.columnDef)==null?void 0:Ne.meta)==null?void 0:Ze.enableReordering)!==!1,DropdownMenuComponent:o,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:a,header:ve,IconComponent:n,InputComponent:c,style:Z(ve.column),table:e,texts:m,onColumnMenu:Y},ve.id)})})},we.id))}),y.jsxs("div",{className:Ie("tbody",We.tbody),children:[(((ce=(Me=e.options)==null?void 0:Me.data)==null?void 0:ce.length)??0)===0?y.jsx("div",{className:Ie("empty-table-alert",We.emptyTableAlert),children:m.emptyTable}):null,e.getTopRows().map((we,ve)=>oe(we,ve,ve)),e.getCenterRows().map((we,ve)=>oe(we,ve))]}),y.jsx(CF,{ButtonComponent:r,CheckComponent:T,columns:{allColumns:e.getAllColumns()},DropdownMenuComponent:o,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:a,handleClose:()=>j(!1),IconComponent:n,InputComponent:c,ModalBodyComponent:h,ModalComponent:u,ModalFooterComponent:p,ModalHeaderComponent:d,ModalTitleComponent:f,pageSize:{enabled:D,value:((de=e.getState().pagination)==null?void 0:de.pageSize)??0,onChange:we=>e.setPageSize(we)},resetToDefault:t.resetToInitialValues,show:I,texts:m})]}),x!=null&&x.hidden?null:y.jsxs("div",{className:Ie("bottom-bar",We.bottomBar),children:[y.jsxs("div",{className:Ie("left-items",We.leftItems),children:[D?y.jsxs("div",{className:Ie("pagination",We.pagination),children:[y.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:y.jsx(n,{icon:"page-first"})}),y.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:y.jsx(n,{icon:"page-previous"})}),y.jsx("div",{className:Ie("page-info-text",We.pageInfoText),children:m.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),y.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:y.jsx(n,{icon:"page-next"})}),y.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:y.jsx(n,{icon:"page-last"})})]}):null,y.jsx("div",{className:Ie("row-count-text",We.rowCountText),children:m.rowCountText(e.getRowCount())})]}),y.jsxs("div",{className:Ie("right-items",We.rightItems),children:[(Ce=t.fullScreen)!=null&&Ce.canFullScreen?y.jsx(i,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:y.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(Ge=t.sizing)!=null&&Ge.canSize?y.jsxs(o,{drop:"up",children:[y.jsx(a,{id:"table-sizing-button",children:y.jsx(n,{icon:"density"})}),y.jsxs(s,{className:Ie("shadow-lg sizing-menu",We.sizingMenu),children:[y.jsxs(l,{className:Ie("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[G==="sm"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.sm]}),y.jsxs(l,{className:Ie("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[G==="md"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.md]}),y.jsxs(l,{className:Ie("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[G==="lg"?y.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.lg]})]})]}):null,t.excelExport.canExport?y.jsx(i,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(m),children:y.jsx(n,{icon:"excel-export"})}):null,y.jsx(i,{"data-testId":"table-settings-button",onClick:()=>j(!0),children:y.jsx(n,{icon:"settings"})})]})]})]})})};v.forwardRef(IF);const jF=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),c3=()=>{const e=AP();return{accessor:(t,n)=>{const r=i=>jF(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function PF(e){return it({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"},child:[]}]})(e)}function NF(e){return it({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"},child:[]}]})(e)}function LF(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M238.15,78.54,177.46,17.86a20,20,0,0,0-28.3,0L97.2,70c-12.43-3.33-36.68-5.72-61.74,14.5a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.91,228c.46,0,.93,0,1.4-.05A20,20,0,0,0,171.87,220c4.69-6.23,11-16.13,14.44-28s3.45-22.88.16-33.4l51.7-51.87A20,20,0,0,0,238.15,78.54Zm-74.26,68.79a12,12,0,0,0-2.23,13.84c3.43,6.86,6.9,21-6.28,40.65L54.08,100.53c21.09-14.59,39.53-6.64,41-6a11.67,11.67,0,0,0,13.81-2.29l54.43-54.61,55,55Z"},child:[]}]})(e)}function FF(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M56.88,31.93A12,12,0,1,0,39.12,48.07L60,71A76,76,0,0,0,35.46,84.51a20,20,0,0,0-1.6,29.73l45.46,45.47-39.8,39.8a12,12,0,0,0,17,17l39.8-39.81,45.47,45.46A20,20,0,0,0,155.9,228c.47,0,.94,0,1.41-.05A20,20,0,0,0,171.87,220a97.47,97.47,0,0,0,9.54-15.46l17.72,19.49a12,12,0,1,0,17.76-16.14Zm98.49,169.88L54.08,100.52C62,95,70.31,92.12,78.91,91.83l84.51,93A62,62,0,0,1,155.37,201.81Zm82.78-95-39,39.11a12,12,0,1,1-17-16.95l36.19-36.3-55-55L130.59,70.5a12,12,0,0,1-17-16.94l35.57-35.69a20,20,0,0,1,28.3,0l60.69,60.68A20,20,0,0,1,238.15,106.83Z"},child:[]}]})(e)}function BF(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM72,160a8,8,0,0,1-6.15-13.12L81.59,128,65.85,109.12a8,8,0,0,1,12.3-10.24L92,115.5l13.85-16.62a8,8,0,1,1,12.3,10.24L102.41,128l15.74,18.88a8,8,0,0,1-12.3,10.24L92,140.5,78.15,157.12A8,8,0,0,1,72,160Zm56,56H72V192h56Zm0-152H72V40h56Zm72,152H144V192a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16V40h56Z"},child:[]}]})(e)}function zF(e){return it({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M200,24H72A16,16,0,0,0,56,40V64H40A16,16,0,0,0,24,80v96a16,16,0,0,0,16,16H56v24a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V40A16,16,0,0,0,200,24ZM68.24,153.94l-12-48a8,8,0,1,1,15.52-3.88l6.76,27,6.32-12.66a8,8,0,0,1,14.32,0l6.32,12.66,6.76-27a8,8,0,0,1,15.52,3.88l-12,48a8,8,0,0,1-6.89,6,8.46,8.46,0,0,1-.87.05,8,8,0,0,1-7.16-4.42L92,137.89l-8.84,17.69a8,8,0,0,1-14.92-1.64ZM200,216H72V192h72a16,16,0,0,0,16-16v-8h40Zm0-64H160V104h40Zm0-64H160V80a16,16,0,0,0-16-16H72V40H200Z"},child:[]}]})(e)}const WF="_excel_18ggp_1",UF="_word_18ggp_5",HF="_pdf_18ggp_9",VF="_image_18ggp_13",su={excel:WF,word:UF,pdf:HF,image:VF},u3=e=>{const t=je.c(27);let n,r,i;switch(t[0]!==e?({fileExtension:r,className:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]),r==null?void 0:r.toUpperCase()){case"JPG":case"JPEG":case"BMP":case"PNG":{let o;t[4]!==n?(o=se(n,su.image),t[4]=n,t[5]=o):o=t[5];let a;t[6]!==i?(a=y.jsx(NF,{...i}),t[6]=i,t[7]=a):a=t[7];let s;return t[8]!==o||t[9]!==a?(s=y.jsx("span",{className:o,children:a}),t[8]=o,t[9]=a,t[10]=s):s=t[10],s}case"XLS":case"XLSX":case"CSV":{let o;t[11]!==n?(o=se(n,su.excel),t[11]=n,t[12]=o):o=t[12];let a;return t[13]!==i||t[14]!==o?(a=y.jsx(BF,{className:o,...i}),t[13]=i,t[14]=o,t[15]=a):a=t[15],a}case"DOC":case"DOCM":case"DOCX":{let o;t[16]!==n?(o=se(n,su.word),t[16]=n,t[17]=o):o=t[17];let a;return t[18]!==i||t[19]!==o?(a=y.jsx(zF,{className:o,...i}),t[18]=i,t[19]=o,t[20]=a):a=t[20],a}case"PDF":{let o;t[21]!==n?(o=se(n,su.pdf),t[21]=n,t[22]=o):o=t[22];let a;return t[23]!==i||t[24]!==o?(a=y.jsx(MD,{className:o,...i}),t[23]=i,t[24]=o,t[25]=a):a=t[25],a}default:{let o;return t[26]===Symbol.for("react.memo_cache_sentinel")?(o=y.jsx(PF,{}),t[26]=o):o=t[26],o}}},qF=()=>{const e=je.c(47),{ProjectIconComponent:t,texts:n}=v.useContext(rn),{documents:r}=n,{apiActions:i,reducer:o}=v.useContext(mn),{downloadFile:a}=i,[s]=o,l=s.activeFolder==="root";let c;e[0]!==a?(c=(T,E,A)=>T?b4(E??"")&&localStorage.getItem("file-download-try-opening")!=="false"?y.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:j=>{j.stopPropagation(),a(A,!0)},children:T}):T:"",e[0]=a,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=c3(),e[2]=d):d=e[2];const f=d;let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=f.accessor("id",{header:"id",type:"number",meta:{hidden:!0}}),e[3]=h):h=e[3];let p;e[4]!==r.folder||e[5]!==l?(p=l?[f.accessor("folderName",{header:r.folder,type:"string"})]:[],e[4]=r.folder,e[5]=l,e[6]=p):p=e[6];let m;e[7]!==u?(m=f.accessor("--icon",{header:"",type:"string",size:36,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:T=>{const E=T.row.getValue("fileExtension"),A=T.row.getValue("id");return u(y.jsx(u3,{fileExtension:(E==null?void 0:E.toString())??"",className:$m.extensionIcon,size:18}),(E==null?void 0:E.toString())??"",Number((A==null?void 0:A.toString())??""))}}}),e[7]=u,e[8]=m):m=e[8];let g;if(e[9]!==r.name||e[10]!==u){let T;e[12]!==u?(T=E=>{const A=E.row.getValue("name"),I=E.row.getValue("fileExtension"),j=E.row.getValue("id");return u((A==null?void 0:A.toString())??"",(I==null?void 0:I.toString())??"",Number((j==null?void 0:j.toString())??""))},e[12]=u,e[13]=T):T=e[13],g=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:T}}),e[9]=r.name,e[10]=u,e[11]=g}else g=e[11];let x;e[14]!==r.description?(x=f.accessor("description",{header:r.description,type:"string"}),e[14]=r.description,e[15]=x):x=e[15];let _;e[16]!==r.fileExtension?(_=f.accessor("fileExtension",{header:r.fileExtension,type:"string",size:50,meta:{filterVariant:"select"}}),e[16]=r.fileExtension,e[17]=_):_=e[17];let w;e[18]!==t||e[19]!==a?(w=f.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:T=>{const E=T.row.getValue("id");return y.jsx(sf,{className:$m.downloadButton,onClick:()=>a(Number((E==null?void 0:E.toString())??""),!1),children:y.jsx(t,{icon:"file-download",size:18})})}}}),e[18]=t,e[19]=a,e[20]=w):w=e[20];let C;e[21]!==r.documentType?(C=f.accessor("documentTypeName",{header:r.documentType,type:"string",meta:{filterVariant:"select"}}),e[21]=r.documentType,e[22]=C):C=e[22];let b;e[23]!==r.validSince?(b=f.accessor("validToDate",{header:r.validSince,type:"date"}),e[23]=r.validSince,e[24]=b):b=e[24];let S;e[25]!==r.size?(S=f.accessor("size",{header:r.size,type:"number",meta:{filterVariant:"none",customCellRender:YF}}),e[25]=r.size,e[26]=S):S=e[26];let M;if(e[27]!==r.archived||e[28]!==r.no||e[29]!==r.yes){let T;e[31]!==r.no||e[32]!==r.yes?(T=E=>E.getValue()?r.yes[0]:r.no[0],e[31]=r.no,e[32]=r.yes,e[33]=T):T=e[33],M=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:T}}),e[27]=r.archived,e[28]=r.no,e[29]=r.yes,e[30]=M}else M=e[30];let $;e[34]!==_||e[35]!==w||e[36]!==C||e[37]!==b||e[38]!==S||e[39]!==M||e[40]!==p||e[41]!==m||e[42]!==g||e[43]!==x?($=[h,...p,m,g,x,_,w,C,b,S,M],e[34]=_,e[35]=w,e[36]=C,e[37]=b,e[38]=S,e[39]=M,e[40]=p,e[41]=m,e[42]=g,e[43]=x,e[44]=$):$=e[44];const k=$;let R;return e[45]!==k?(R={columns:k},e[45]=k,e[46]=R):R=e[46],R};function YF(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?Xa(t*1024*1024):""}const GF=e=>{var E;const t=je.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:o}=v.useContext(mn),[a,s]=o,{columns:l}=qF();let c;t[0]!==s?(c=A=>{s({type:"mark-files-by-action",setStateAction:A})},t[0]=s,t[1]=c):c=t[1];const u=c,d=a.activeFolder==="root";let f;e:{if(a.activeFolder==="root"){f=!1;break e}let A;t[2]!==a.activeFolder||t[3]!==a.foldersMap?(A=((E=a.foldersMap.get(a.activeFolder))==null?void 0:E.onlyRead)??!1,t[2]=a.activeFolder,t[3]=a.foldersMap,t[4]=A):A=t[4],f=A}const h=f,p=i&&!d;let m;t[5]!==a.markedFiles?(m=Object.fromEntries(a.markedFiles.map(ZF)),t[5]=a.markedFiles,t[6]=m):m=t[6];let g;t[7]!==u?(g=A=>{const I=Object.keys(A).filter(j=>A[j]).map(XF);u(I)},t[7]=u,t[8]=g):g=t[8];let x;t[9]!==p||t[10]!==m||t[11]!==g?(x={enabled:p,selectedRows:m,setSelectedRows:g},t[9]=p,t[10]=m,t[11]=g,t[12]=x):x=t[12];const _=x;let w;e:{if(a.activeFolder==="root"){w=a.filteredFiles;break e}let A;if(t[13]!==a.activeFolder||t[14]!==a.filteredFiles){let I;t[16]!==a.activeFolder?(I=j=>j.folderId===a.activeFolder,t[16]=a.activeFolder,t[17]=I):I=t[17],A=a.filteredFiles.filter(I),t[13]=a.activeFolder,t[14]=a.filteredFiles,t[15]=A}else A=t[15];w=A}const C=w,{getDraggableProps:b}=g0();let S;t[18]!==b||t[19]!==h||t[20]!==i?(S=A=>i===!1||h?{}:b(A.id),t[18]=b,t[19]=h,t[20]=i,t[21]=S):S=t[21];const M=S;console.log("rowSelection.selectedRows",_.selectedRows);let $;t[22]===Symbol.for("react.memo_cache_sentinel")?($=se($m.wrapper),t[22]=$):$=t[22];let k;t[23]===Symbol.for("react.memo_cache_sentinel")?(k={columnFilters:[{id:"archive",value:"false"}]},t[23]=k):k=t[23];let R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R={hidden:!0},t[24]=R):R=t[24];let T;return t[25]!==n||t[26]!==l||t[27]!==C||t[28]!==M||t[29]!==_||t[30]!==a.activeFolder||t[31]!==r?(T=y.jsx("div",{className:$,children:y.jsx(n,{data:C,columns:l,rowSelection:_,getRowProps:M,initState:k,tableId:r,bottomBar:R,getRowId:KF},a.activeFolder)}),t[25]=n,t[26]=l,t[27]=C,t[28]=M,t[29]=_,t[30]=a.activeFolder,t[31]=r,t[32]=T):T=t[32],T};function ZF(e){return[e.toString(),!0]}function XF(e){return Number(e)}function KF(e){var t;return((t=e.id)==null?void 0:t.toString())??""}const JF="_wrapper_1q562_1",QF="_divButtons_1q562_10",hp={wrapper:JF,divButtons:QF},eB="_wrapper_1bpdd_1",tB="_fileInput_1bpdd_5",sy={wrapper:eB,fileInput:tB},nB=e=>{const t=je.c(17),{entityId:n,entityType:r,children:i,disabled:o}=e,a=v.useRef(null),[s,l]=v.useState(null),{reducer:c}=v.useContext(mn),[u]=c;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=M=>{var $;((($=M.target.files)==null?void 0:$.length)??0)>0&&l(M.target.files)},t[0]=d):d=t[0];const f=d;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(null),a.current&&(a.current.value="")},t[1]=h):h=t[1];const p=h,m=`documents-upload-${r}-${n}`,g=o||u.activeFolder==="root",x=g?"disabled":void 0;let _;t[2]!==x?(_=se("btn btn-context luminus-context-button",x),t[2]=x,t[3]=_):_=t[3];let w;t[4]!==i||t[5]!==m||t[6]!==_?(w=y.jsx("label",{htmlFor:m,className:_,children:i}),t[4]=i,t[5]=m,t[6]=_,t[7]=w):w=t[7];let C;t[8]!==m||t[9]!==g?(C=y.jsx("input",{id:m,type:"file",multiple:!0,onChange:f,className:sy.fileInput,ref:a,disabled:g}),t[8]=m,t[9]=g,t[10]=C):C=t[10];let b;t[11]!==s?(b=s!==null?y.jsx(v0,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=b):b=t[12];let S;return t[13]!==w||t[14]!==C||t[15]!==b?(S=y.jsxs("div",{className:sy.wrapper,children:[w,C,b]}),t[13]=w,t[14]=C,t[15]=b,t[16]=S):S=t[16],S},Ir=e=>{const t=je.c(5),{children:n,onClick:r,className:i,disabled:o}=e,a=o===void 0?!1:o;let s;return t[0]!==n||t[1]!==i||t[2]!==a||t[3]!==r?(s=y.jsx(sf,{onClick:r,className:i,disabled:a,children:n}),t[0]=n,t[1]=i,t[2]=a,t[3]=r,t[4]=s):s=t[4],s},rB=e=>{var N,H,Y;const t=je.c(51),{className:n,entityId:r,entityType:i}=e,{texts:o}=v.useContext(rn),{documents:a}=o,{prompt:s}=G_(),{confirm:l}=a0(),{apiActions:c,reducer:u}=v.useContext(mn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:m,archivateFiles:g,deleteDirectory:x}=c,{renameFolder:_}=xC(),w=d.markedFiles.length===0,C=d.markedFiles.length===1;let b;t[0]!==a.enterNewFolderName||t[1]!==s||t[2]!==_||t[3]!==d.activeFolder?(b=async()=>{if(d.activeFolder==="root")return;const q=await s(a.enterNewFolderName,{input:"input"});q!==null&&_(d.activeFolder,q)},t[0]=a.enterNewFolderName,t[1]=s,t[2]=_,t[3]=d.activeFolder,t[4]=b):b=t[4];const S=b;let M;t[5]!==a.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(M=async()=>{if(d.activeFolder==="root")return;const q=await s(a.enterNewFileName,{input:"input"});q!==null&&p(q)},t[5]=a.enterNewFileName,t[6]=s,t[7]=p,t[8]=d.activeFolder,t[9]=M):M=t[9];const $=M,k=d.activeFolder==="root";let R;e:{if(d.activeFolder==="root"){R=!1;break e}let q;t[10]!==d.activeFolder||t[11]!==d.foldersMap?(q=((N=d.foldersMap.get(d.activeFolder))==null?void 0:N.onlyRead)??!1,t[10]=d.activeFolder,t[11]=d.foldersMap,t[12]=q):q=t[12],R=q}const T=R;let E;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let q;t[16]!==d.constantFiles?(q=Z=>{var X;return((X=d.constantFiles.find(J=>J.id===Z))==null?void 0:X.archive)===!1},t[16]=d.constantFiles,t[17]=q):q=t[17],E=d.markedFiles.every(q),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=E}else E=t[15];const A=E;let I;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let q;t[21]!==d.constantFiles?(q=Z=>{var X;return((X=d.constantFiles.find(J=>J.id===Z))==null?void 0:X.archive)===!0},t[21]=d.constantFiles,t[22]=q):q=t[22],I=d.markedFiles.every(q),t[18]=d.constantFiles,t[19]=d.markedFiles,t[20]=I}else I=t[20];const j=I,D=d.state==="folder-choosing"?"ignore-dim":void 0;let O;t[23]!==n||t[24]!==D?(O=se(n,hp.wrapper,D,"d-flex justify-content-between"),t[23]=n,t[24]=D,t[25]=O):O=t[25];let L;t[26]!==A||t[27]!==g||t[28]!==l||t[29]!==j||t[30]!==x||t[31]!==h||t[32]!==f||t[33]!==a||t[34]!==m||t[35]!==r||t[36]!==i||t[37]!==$||t[38]!==S||t[39]!==w||t[40]!==C||t[41]!==T||t[42]!==k||t[43]!==d.activeFolder||t[44]!==d.foldersMap||t[45]!==d.markedFiles||t[46]!==d.state?(L=d.state!=="folder-choosing"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:hp.divButtons,children:[y.jsx(nB,{entityId:r,entityType:i,disabled:T,children:a.uploadFiles}),y.jsx(Ir,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:T,children:a.createFolder}),y.jsx(Ir,{disabled:d.activeFolder==="root"||((H=d.foldersMap.get(d.activeFolder))==null?void 0:H.isDefault),onClick:async()=>{var Z;await l(`${a.deleteFolder} ${(Z=d.foldersMap.get(d.activeFolder))==null?void 0:Z.name}?`)&&x(d.activeFolder)},children:a.deleteFolder}),y.jsx(Ir,{disabled:d.activeFolder==="root"||((Y=d.foldersMap.get(d.activeFolder))==null?void 0:Y.isDefault),onClick:S,children:a.renameFolder})]}),!k&&!T?y.jsxs("div",{className:hp.divButtons,children:[y.jsx(Ir,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!C,children:a.editFileProperties}),y.jsx(Ir,{onClick:async()=>{await l(a.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:w,children:a.delete}),j?y.jsx(Ir,{onClick:async()=>{await l(a.confirmDearchiveFile(d.markedFiles.length))&&await g(!0)},disabled:w,children:a.dearchivate}):y.jsx(Ir,{onClick:async()=>{await l(a.confirmArchiveFile(d.markedFiles.length))&&await g()},disabled:w||!A,children:a.archivate}),y.jsx(Ir,{onClick:$,disabled:w,children:a.rename}),y.jsx(Ir,{onClick:m,disabled:w,children:a.downloadZip})]}):null]}):d.state==="folder-choosing"?y.jsx(y.Fragment,{children:y.jsx(Ir,{onClick:()=>f({type:"return-from-folder-choosing"}),className:se("ignore-dim","body-background-color"),children:a.back})}):void 0,t[26]=A,t[27]=g,t[28]=l,t[29]=j,t[30]=x,t[31]=h,t[32]=f,t[33]=a,t[34]=m,t[35]=r,t[36]=i,t[37]=$,t[38]=S,t[39]=w,t[40]=C,t[41]=T,t[42]=k,t[43]=d.activeFolder,t[44]=d.foldersMap,t[45]=d.markedFiles,t[46]=d.state,t[47]=L):L=t[47];let z;return t[48]!==L||t[49]!==O?(z=y.jsx("div",{className:O,children:L}),t[48]=L,t[49]=O,t[50]=z):z=t[50],z},iB=e=>{const t=je.c(25),{file:n}=e,{confirm:r}=a0(),{reducer:i,apiActions:o}=v.useContext(mn),[a]=i,{downloadFile:s}=o,{texts:l}=v.useContext(rn),{documents:c}=l;let u;t[0]!==r||t[1]!==c||t[2]!==s||t[3]!==n.id||t[4]!==n.name||t[5]!==n.size?(u=async()=>{await r(c.confirmFileDownload(n.name,n.size==null?void 0:Xa(n.size*1024*1024)))&&s(n.id)},t[0]=r,t[1]=c,t[2]=s,t[3]=n.id,t[4]=n.name,t[5]=n.size,t[6]=u):u=t[6];const d=u;let f;t[7]!==n.folderId||t[8]!==a.foldersMap?(f=SC(n.folderId,a.foldersMap),t[7]=n.folderId,t[8]=a.foldersMap,t[9]=f):f=t[9];let h;t[10]!==f?(h=y.jsx(jn,{variant:"body",className:"text-muted",children:f}),t[10]=f,t[11]=h):h=t[11];let p;t[12]!==n.name?(p=y.jsx(jn,{variant:"body",children:n.name}),t[12]=n.name,t[13]=p):p=t[13];let m;t[14]!==n.size?(m=n.size==null?null:Xa(n.size*1024*1024),t[14]=n.size,t[15]=m):m=t[15];let g;t[16]!==m?(g=y.jsx(jn,{variant:"body",children:m}),t[16]=m,t[17]=g):g=t[17];let x;t[18]!==p||t[19]!==g?(x=y.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[p,g]}),t[18]=p,t[19]=g,t[20]=x):x=t[20];let _;return t[21]!==d||t[22]!==x||t[23]!==h?(_=y.jsxs(Ud,{action:!0,onClick:d,children:[h,x]}),t[21]=d,t[22]=x,t[23]=h,t[24]=_):_=t[24],_},oB="_typeSelect_m3myk_1",aB={typeSelect:oB},sB=()=>{const e=je.c(34),{reducer:t}=v.useContext(mn),[n]=t,{texts:r}=v.useContext(rn),{documents:i}=r,[o,a]=v.useState(""),[s,l]=v.useState(null);let c;e[0]!==n.filteredFiles?(c=new Map,n.filteredFiles.forEach($=>{c.get($.documentTypeId)===void 0&&c.set($.documentTypeId,$.documentTypeName)}),e[0]=n.filteredFiles,e[1]=c):c=e[1];let u;e[2]!==i.all?(u={id:null,name:i.all},e[2]=i.all,e[3]=u):u=e[3];let d;e[4]!==c?(d=Array.from(c).map(lB),e[4]=c,e[5]=d):d=e[5];let f;e[6]!==u||e[7]!==d?(f=[u,...d],e[6]=u,e[7]=d,e[8]=f):f=e[8];const p=f;let m;if(e[9]!==o||e[10]!==s||e[11]!==n.filteredFiles){let $;e[13]!==o||e[14]!==s?($=k=>e0(k.name,o)&&(s===null||k.documentTypeId===s),e[13]=o,e[14]=s,e[15]=$):$=e[15],m=n.filteredFiles.filter($),e[9]=o,e[10]=s,e[11]=n.filteredFiles,e[12]=m}else m=e[12];const g=m;let x;e[16]!==i.documentType||e[17]!==p||e[18]!==s?(x=y.jsx(vC,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:aB.typeSelect}),e[16]=i.documentType,e[17]=p,e[18]=s,e[19]=x):x=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=$=>a($===null?"":$),e[20]=_):_=e[20];let w;e[21]!==i.search||e[22]!==o?(w=y.jsx(mC,{label:i.search,type:"text",value:o,onChange:_,className:"flex-grow-1",size:"sm"}),e[21]=i.search,e[22]=o,e[23]=w):w=e[23];let C;e[24]!==x||e[25]!==w?(C=y.jsxs("div",{className:"d-flex gap-1 mb-1",children:[x,w]}),e[24]=x,e[25]=w,e[26]=C):C=e[26];let b;e[27]!==g?(b=g.map(cB),e[27]=g,e[28]=b):b=e[28];let S;e[29]!==b?(S=y.jsx(__,{className:"overflow-y-auto",children:b}),e[29]=b,e[30]=S):S=e[30];let M;return e[31]!==S||e[32]!==C?(M=y.jsxs("div",{className:"d-flex h-100 flex-column",children:[C,S]}),e[31]=S,e[32]=C,e[33]=M):M=e[33],M};function lB(e){return{id:e[0],name:e[1]}}function cB(e){return y.jsx(iB,{file:e},e.id)}function uB(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function dB(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,uB(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,o)=>{const a=n.get(i);if(a===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${o}`);a.childrenIds.push(o)}),{dirsMap:n,rootIds:t}}function ly(e,t){const n=t.toUpperCase();return e.filter(r=>{var o;const i=(o=r.name)==null?void 0:o.toUpperCase();return i==null?void 0:i.includes(n)})}function fB(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const hB=([e,t],n,r)=>{const{texts:{documents:i}}=v.useContext(rn),{startLoading:o,stopLoading:a}=v.useContext(qd),{addNotification:s}=tf(),l=nf(),c=v.useCallback(async w=>{o("documentList");try{const b=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:M}=dB(b.folders),$=fB(b.documents,S);t({type:"load-data",files:$,foldersMap:S,rootFolderIds:M,setActiveFolder:w})}finally{a("documentList")}},[l,t,r,n,o,a]);v.useEffect(()=>{c(!0)},[c]);const u=v.useCallback(async()=>{o("documents-types");try{const w=await l.get(`/documents/types/${n}`);if(w.status!==200)throw new Error(`Unexpected status code: ${w.status}`);t({type:"load-document-types",documentTypes:w.data})}finally{a("documents-types")}},[l,t,n,o,a]);v.useEffect(()=>{u()},[u]);const d=v.useCallback(async(w,C)=>{const b=C??e.markedFiles;o("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${w}`,b),t({type:"update-files",fileIds:b,newProperties:{folderId:w}}),s(i.fileMoveSuccessful(b.length,e.foldersMap.get(w).name),"success")}finally{a("documentsMove")}},[e.markedFiles,e.foldersMap,o,l,t,s,i,a]),f=v.useCallback(async w=>{const C=w??e.markedFiles;o("documentsFilesDelete");try{const b=await l.delete(`/documents/delete?${dm(C,"documentIds")}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{a("documentsFilesDelete")}},[e.markedFiles,o,l,t,s,i,a]),h=v.useCallback(async w=>{var C;if(!(w==="root"||(C=e.foldersMap.get(w))!=null&&C.isDefault)){o("documentsFolderDelete");try{const b=await l.delete(`/documents/folder/${w}`);if(b.status!==200)throw new Error(`Unexpected status code: ${b.status}`);t({type:"delete-folder",folderId:w}),s(i.folderDeleteSuccessful(e.foldersMap.get(w).name),"success")}finally{a("documentsFolderDelete")}}},[e.foldersMap,o,l,t,s,i,a]),p=v.useCallback(async w=>{o("documentsRename");try{const C=await l.put("/documents/update-name",{documentIds:e.markedFiles,name:w});if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);c()}finally{a("documentsRename")}},[o,l,e.markedFiles,c,a]),m=v.useCallback(async w=>{o("documents-archivate");try{const C=await l.put(`/documents/${w?"dearchive":"archive"}`,e.markedFiles);if(C.status!==200)throw new Error(`Unexpected status code: ${C.status}`);t({type:"update-files",fileIds:e.markedFiles,newProperties:{archive:!w}}),s((w?i.dearchivateSuccessful:i.archivateSuccessful)(e.markedFiles.length),"success")}finally{a("documents-archivate")}},[o,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,a]),g=v.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),o("documents-ZIP_download");try{const b=await l.get(`/documents/download-zip?${dm(e.markedFiles,"documentIds")}`,{responseType:"blob"});Vu(b.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{a("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,o,l,a]),x=v.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),o("documents-downloading_file");try{const b=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find($=>$.id===w),M=`${(S==null?void 0:S.name)??w.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;Vu(b.data,M,C)}finally{a("documents-downloading_file")}},[s,i.downloadingFile,o,l,e.constantFiles,a]),_=v.useCallback(async(w,C)=>{o("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...C}),await c()}finally{a("documents-upload")}},[o,s,i.uploadingDocuments,l,c,a]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:p,archivateFiles:m,downloadAsZip:g,downloadFile:x,uploadFiles:_}},pB=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:ly(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const o=t.rootFolderIds.find(a=>t.files.some(s=>s.archive===!1&&s.folderId===a))??"root";i.activeFolder=o}return i}case"load-document-types":return{...e,documentTypes:t.documentTypes};case"select-folder":return{...e,activeFolder:t.folderId,markedFiles:[]};case"mark-file":{const i=e.markedFiles.includes(t.fileId)?[...e.markedFiles.filter(o=>o!==t.fileId)]:[...e.markedFiles,t.fileId];return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-files-by-action":{const i=typeof t.setStateAction=="function"?t.setStateAction(e.markedFiles):t.setStateAction;return{...e,state:i.length>0?"selection-file":"explorer",markedFiles:i}}case"mark-all-files":return e.markedFiles.length<e.filteredFiles.filter(i=>i.folderId===e.activeFolder).length?{...e,markedFiles:e.filteredFiles.filter(i=>i.folderId===e.activeFolder).map(i=>i.id),state:"explorer"}:{...e,markedFiles:[],state:"explorer"};case"enter-folder-choosing":return e.state==="folder-choosing"||e.state==="openned-modal"?e:{...e,state:"folder-choosing",canTargetRoot:t.canTargetRoot??!1,previousState:e.state,choosingType:t.choosingType};case"return-from-folder-choosing":return e.state!=="folder-choosing"?e:{...e,state:e.previousState};case"update-files":return{...e,filteredFiles:[...e.filteredFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],constantFiles:[...e.constantFiles.map(i=>t.fileIds.includes(i.id)?{...i,...t.newProperties}:i)],markedFiles:[],state:"explorer"};case"update-folders":{const i=new Map(e.foldersMap);return t.folderIds.forEach(o=>{i.set(o,{...e.foldersMap.get(o),...t.newProperties})}),{...e,foldersMap:i}}case"delete-files":return{...e,filteredFiles:[...e.filteredFiles.filter(i=>!t.fileIds.includes(i.id))],constantFiles:[...e.constantFiles.filter(i=>!t.fileIds.includes(i.id))],markedFiles:e.markedFiles.filter(i=>!t.fileIds.includes(i)),state:"explorer"};case"open-modal":switch(t.modalType){case"create-folder":return{...e,state:"openned-modal",modalType:t.modalType,chosenFolderId:t.chosenFolderId};default:return{...e,state:"openned-modal",modalType:t.modalType}}case"close-modal":return{...e,state:"explorer"};case"delete-folder":{const i=new Map(e.foldersMap),o=(n=i.get(t.folderId))==null?void 0:n.parentId;let a=[...e.rootFolderIds];if(o){const s=JSON.parse(JSON.stringify(i.get(o)));s.childrenIds=s.childrenIds.filter(l=>l!==t.folderId),i.set(o,s)}else a=a.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:a,foldersMap:i,activeFolder:"root"}}case"create-folder":{const i=new Map(e.foldersMap);i.set(t.folderId,{name:t.folderData.name,defaultDocType:(r=e.documentTypes.find(a=>a.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const o=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)o.push(t.folderId);else{const a=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(a));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:o,foldersMap:i}}case"search-files":{const i=ly(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(o=>i.map(a=>a.id).includes(o))}}default:throw new Error("Wrong action.type specified.")}},mB=()=>{const e=je.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={state:"explorer",activeFolder:"root",searchString:"",filteredFiles:[],constantFiles:[],foldersMap:new Map,rootFolderIds:[],markedFiles:[],documentTypes:[]},e[0]=t):t=e[0];const n=t,[r,i]=v.useReducer(pB,n);let o;return e[1]!==r?(o=[r,i],e[1]=r,e[2]=o):o=e[2],o},gB=v.memo(e=>{const t=je.c(86);let n,r,i,o,a,s,l,c;t[0]!==e?({entityType:a,entityId:o,className:r,BnfTableComponent:n,tableIdentifier:c,customRootFolderName:i,writePermissions:l,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=c):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8]);const u=l===void 0?!0:l,{isMobile:d}=Cc(),{ProjectIconComponent:f,texts:h}=v.useContext(rn),{documents:p}=h,[m,g]=mB(),[x,_]=v.useState(null);let w;t[9]!==g||t[10]!==m?(w=[m,g],t[9]=g,t[10]=m,t[11]=w):w=t[11];const C=hB(w,a,o);let b,S;t[12]!==C?({loadDocuments:S,...b}=C,t[12]=C,t[13]=b,t[14]=S):(b=t[13],S=t[14]);let M;t[15]!==g||t[16]!==m?(M=[m,g],t[15]=g,t[16]=m,t[17]=M):M=t[17];let $;t[18]!==b||t[19]!==o||t[20]!==a||t[21]!==S||t[22]!==M?($={entityId:o,entityType:a,apiActions:b,loadDocuments:S,reducer:M},t[18]=b,t[19]=o,t[20]=a,t[21]=S,t[22]=M,t[23]=$):$=t[23];const k=$,{getDropProps:R}=g0();if(d){let K;t[24]===Symbol.for("react.memo_cache_sentinel")?(K=y.jsx(sB,{}),t[24]=K):K=t[24];let G;return t[25]!==k?(G=y.jsx(mn.Provider,{value:k,children:K}),t[25]=k,t[26]=G):G=t[26],G}let T;t[27]!==r?(T=se(po.wrapper,r),t[27]=r,t[28]=T):T=t[28];const E=m.state==="folder-choosing"?"dim-others":void 0;let A;t[29]!==E?(A=se(E,po.explorerWindow),t[29]=E,t[30]=A):A=t[30];const I=i??a;let j;t[31]!==I?(j=y.jsx(qD,{customText:I}),t[31]=I,t[32]=j):j=t[32];let D;if(t[33]!==m.rootFolderIds||t[34]!==u){let K;t[36]!==u?(K=G=>y.jsx(TC,{dirId:G,writePermissions:u},G),t[36]=u,t[37]=K):K=t[37],D=m.rootFolderIds.map(K),t[33]=m.rootFolderIds,t[34]=u,t[35]=D}else D=t[35];let O;t[38]!==j||t[39]!==D?(O=y.jsxs("ul",{className:po.folderList,children:[j,D]}),t[38]=j,t[39]=D,t[40]=O):O=t[40];let L;t[41]!==O||t[42]!==A?(L=y.jsx("div",{className:A,children:O}),t[41]=O,t[42]=A,t[43]=L):L=t[43];let z;t[44]===Symbol.for("react.memo_cache_sentinel")?(z=se(po.explorerWindow,po.fileList),t[44]=z):z=t[44];let N;t[45]!==R||t[46]!==m||t[47]!==u?(N=u&&lI(m)?R(m.activeFolder,{onFilesDrop:K=>_(K),ignoreInner:!0}):{},t[45]=R,t[46]=m,t[47]=u,t[48]=N):N=t[48];let H;t[49]===Symbol.for("react.memo_cache_sentinel")?(H={style:{marginRight:0}},t[49]=H):H=t[49];let Y;t[50]!==f?(Y=y.jsx(f,{icon:"file-upload",iconProps:H}),t[50]=f,t[51]=Y):Y=t[51];let q;t[52]!==p.dropToUpload?(q=y.jsx("span",{children:p.dropToUpload}),t[52]=p.dropToUpload,t[53]=q):q=t[53];let Z;t[54]!==Y||t[55]!==q?(Z=y.jsxs("div",{className:po.dndText,children:[Y,q]}),t[54]=Y,t[55]=q,t[56]=Z):Z=t[56];const X=m.activeFolder==="root";let J;t[57]!==X?(J=X.toString(),t[57]=X,t[58]=J):J=t[58];let ee;t[59]!==n||t[60]!==J||t[61]!==c||t[62]!==u?(ee=y.jsx(GF,{tableIdentifier:c,BnfTableComponent:n,writePermissions:u},J),t[59]=n,t[60]=J,t[61]=c,t[62]=u,t[63]=ee):ee=t[63];let W;t[64]!==N||t[65]!==Z||t[66]!==ee?(W=y.jsxs("div",{className:z,...N,children:[Z,ee]}),t[64]=N,t[65]=Z,t[66]=ee,t[67]=W):W=t[67];let F;t[68]!==o||t[69]!==a||t[70]!==u?(F=u?y.jsx(rB,{className:po.controls,entityType:a,entityId:o}):null,t[68]=o,t[69]=a,t[70]=u,t[71]=F):F=t[71];let B;t[72]===Symbol.for("react.memo_cache_sentinel")?(B=y.jsx(nI,{}),t[72]=B):B=t[72];let V;t[73]!==m.activeFolder||t[74]!==x?(V=x!==null?y.jsx(v0,{files:x,handleClose:()=>_(null),targetFolderId:m.activeFolder==="root"?void 0:m.activeFolder}):null,t[73]=m.activeFolder,t[74]=x,t[75]=V):V=t[75];let P;t[76]!==k||t[77]!==L||t[78]!==W||t[79]!==F||t[80]!==V?(P=y.jsxs(mn.Provider,{value:k,children:[L,W,F,B,V]}),t[76]=k,t[77]=L,t[78]=W,t[79]=F,t[80]=V,t[81]=P):P=t[81];let te;return t[82]!==s||t[83]!==P||t[84]!==T?(te=y.jsx("div",{...s,className:T,onDragOver:vB,onDragEnter:bB,children:P}),t[82]=s,t[83]=P,t[84]=T,t[85]=te):te=t[85],te});function vB(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function bB(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const yB="Left",xB="Right",wB="Up",_B="Down",Oa={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Rm={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},cy="mousemove",uy="mouseup",CB="touchend",SB="touchmove",TB="touchstart";function $B(e,t,n,r){return e>t?n>0?xB:yB:r>0?_B:wB}function dy(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function kB(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(cy,r),document.addEventListener(uy,a));const{clientX:p,clientY:m}=d?u.touches[0]:u,g=dy([p,m],h.rotationAngle);return h.onTouchStartOrOnMouseDown&&h.onTouchStartOrOnMouseDown({event:u}),Object.assign(Object.assign(Object.assign({},f),Rm),{initial:g.slice(),xy:g,start:u.timeStamp||0})})},r=u=>{e((d,f)=>{const h="touches"in u;if(h&&u.touches.length>1)return d;if(u.timeStamp-d.start>f.swipeDuration)return d.swiping?Object.assign(Object.assign({},d),{swiping:!1}):d;const{clientX:p,clientY:m}=h?u.touches[0]:u,[g,x]=dy([p,m],f.rotationAngle),_=g-d.xy[0],w=x-d.xy[1],C=Math.abs(_),b=Math.abs(w),S=(u.timeStamp||0)-d.start,M=Math.sqrt(C*C+b*b)/(S||1),$=[_/(S||1),w/(S||1)],k=$B(C,b,_,w),R=typeof f.delta=="number"?f.delta:f.delta[k.toLowerCase()]||Oa.delta;if(C<R&&b<R&&!d.swiping)return d;const T={absX:C,absY:b,deltaX:_,deltaY:w,dir:k,event:u,first:d.first,initial:d.initial,velocity:M,vxvy:$};T.first&&f.onSwipeStart&&f.onSwipeStart(T),f.onSwiping&&f.onSwiping(T);let E=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${k}`])&&(E=!0),E&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:T,swiping:!0})})},i=u=>{e((d,f)=>{let h;if(d.swiping&&d.eventData){if(u.timeStamp-d.start<f.swipeDuration){h=Object.assign(Object.assign({},d.eventData),{event:u}),f.onSwiped&&f.onSwiped(h);const p=f[`onSwiped${h.dir}`];p&&p(h)}}else f.onTap&&f.onTap({event:u});return f.onTouchEndOrOnMouseUp&&f.onTouchEndOrOnMouseUp({event:u}),Object.assign(Object.assign(Object.assign({},d),Rm),{eventData:h})})},o=()=>{document.removeEventListener(cy,r),document.removeEventListener(uy,a)},a=u=>{o(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},Oa.touchEventOptions),d.touchEventOptions),p=[[TB,n,h],[SB,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[CB,i,h]];p.forEach(([m,g,x])=>u.addEventListener(m,g,x)),f=()=>p.forEach(([m,g])=>u.removeEventListener(m,g))}return f},c={ref:u=>{u!==null&&e((d,f)=>{if(d.el===u)return d;const h={};return d.el&&d.el!==u&&d.cleanUpTouch&&(d.cleanUpTouch(),h.cleanUpTouch=void 0),f.trackTouch&&u&&(h.cleanUpTouch=s(u,f)),Object.assign(Object.assign(Object.assign({},d),{el:u}),h)})}};return t.trackMouse&&(c.onMouseDown=n),[c,s]}function MB(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function M0(e){const{trackMouse:t}=e,n=fe.useRef(Object.assign({},Rm)),r=fe.useRef(Object.assign({},Oa)),i=fe.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Oa),e);let o;for(o in Oa)r.current[o]===void 0&&(r.current[o]=Oa[o]);const[a,s]=fe.useMemo(()=>kB(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=MB(n.current,r.current,i.current,s),a}const EB="_side-content-bar_16o0s_1",OB="_mobile_16o0s_12",AB="_expanded_16o0s_20",RB="_content-container_16o0s_23",DB="_resizer_16o0s_31",IB="_expander_16o0s_46",jB="_icon_16o0s_65",oi={sideContentBar:EB,mobile:OB,expanded:AB,contentContainer:RB,resizer:DB,expander:IB,icon:jB},d3=e=>{const t=je.c(34),{width:n,children:r,isExpandedOnMobileState:i,resizeable:o,onResize:a}=e,[s,l]=i,c=o===void 0?!0:o,{ProjectIconComponent:u}=v.useContext(rn),{isMobile:d}=Cc();let f;t[0]!==l?(f=R=>{R.velocity>.8&&l(!1)},t[0]=l,t[1]=f):f=t[1];let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h={delta:100},t[2]=h):h=t[2];let p;t[3]!==f?(p={onSwipedRight:f,...h},t[3]=f,t[4]=p):p=t[4];const m=M0(p),[g,x]=v.useState(null);let _;t[5]!==s||t[6]!==d?(_=se("luminus-side-content-bar shadow",oi.sideContentBar,{[oi.mobile]:d},{[oi.expanded]:s}),t[5]=s,t[6]=d,t[7]=_):_=t[7];const w=`${n}px`;let C;t[8]!==w?(C={width:w},t[8]=w,t[9]=C):C=t[9];let b;t[10]!==u||t[11]!==(g==null?void 0:g.startX)||t[12]!==(g==null?void 0:g.widthStart)||t[13]!==d||t[14]!==a||t[15]!==c||t[16]!==n?(b=c&&!d?y.jsx("div",{role:"button",className:se(oi.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:R=>x({startX:R.clientX,widthStart:n}),onDrag:R=>a(((g==null?void 0:g.widthStart)??0)+(((g==null?void 0:g.startX)??0)-R.clientX)),onDragEnd:()=>x(null),children:y.jsx(u,{className:oi.icon,icon:"resizer-horizontal"})}):null,t[10]=u,t[11]=g==null?void 0:g.startX,t[12]=g==null?void 0:g.widthStart,t[13]=d,t[14]=a,t[15]=c,t[16]=n,t[17]=b):b=t[17];let S;t[18]!==r?(S=y.jsx("div",{className:oi.contentContainer,children:r}),t[18]=r,t[19]=S):S=t[19];let M;t[20]!==m||t[21]!==S||t[22]!==_||t[23]!==C||t[24]!==b?(M=y.jsxs("section",{className:_,style:C,...m,children:[b,S]}),t[20]=m,t[21]=S,t[22]=_,t[23]=C,t[24]=b,t[25]=M):M=t[25];let $;t[26]!==u||t[27]!==s||t[28]!==d||t[29]!==l?($=d?y.jsx("div",{role:"button",onClick:()=>l(!s),className:se(oi.expander,{[oi.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:y.jsx(u,{className:oi.icon,icon:"chevron-left"})}):null,t[26]=u,t[27]=s,t[28]=d,t[29]=l,t[30]=$):$=t[30];let k;return t[31]!==M||t[32]!==$?(k=y.jsxs(y.Fragment,{children:[M,$]}),t[31]=M,t[32]=$,t[33]=k):k=t[33],k},PB=e=>{const t=je.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?y.jsx(jn,{variant:"h3",children:n}):n,t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=y.jsx("div",{className:"mb-3",children:r}),t[2]=r,t[3]=i):i=t[3],i},NB="_full-screen-container_1rm4r_1",f3={fullScreenContainer:NB},LB=se("overflow-hidden luminus-full-screen-container",f3.fullScreenContainer),FB="container-fluid",BB=e=>{const t=je.c(45),{title:n,children:r,sideContent:i,sideContentWidth:o,sideContentResizeable:a,noPadding:s,className:l,variant:c,helmet:u,unavailableOnMobile:d}=e,f=o===void 0?250:o,h=a===void 0?!0:a,p=c===void 0?"main":c,{addHelmet:m,removeHelmet:g}=v.useContext(lC),{texts:x}=v.useContext(rn),{container:_}=x,[w,C]=v.useState(f),[b,S]=v.useState(!1);let M;e:switch(p){case"fullScreen":{M=LB;break e}case"main":{M=FB;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const $=M;let k,R;t[0]!==m||t[1]!==u||t[2]!==g||t[3]!==n?(k=()=>(u?m(u):typeof n=="string"&&n&&m(n),()=>g()),R=[u,m,g,n],t[0]=m,t[1]=u,t[2]=g,t[3]=n,t[4]=k,t[5]=R):(k=t[4],R=t[5]),v.useEffect(k,R);let T;t[6]===Symbol.for("react.memo_cache_sentinel")?(T={onSwipedLeft:ee=>{ee.velocity>.8&&S(!0)},delta:100},t[6]=T):T=t[6];const E=M0(T),{isMobile:A}=Cc(),I=A&&d;let j,D;t[7]!==f?(D=()=>{C(f)},j=[f],t[7]=f,t[8]=j,t[9]=D):(j=t[8],D=t[9]),v.useEffect(D,j);const O=s?"p-0":"p-3";let L;t[10]!==l||t[11]!==O||t[12]!==$?(L=se($,O,l),t[10]=l,t[11]=O,t[12]=$,t[13]=L):L=t[13];let z;t[14]!==i||t[15]!==w||t[16]!==p?(z=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=z):z=t[17];const N=p==="fullScreen"?f3.fullScreenContainer:void 0;let H;t[18]!==i||t[19]!==w||t[20]!==p?(H=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=H):H=t[21];let Y;t[22]!==I||t[23]!==r||t[24]!==_||t[25]!==n?(Y=I?y.jsx(I0,{variant:"warning",children:_.unavailableOnMobile}):y.jsxs(y.Fragment,{children:[n?y.jsx(PB,{title:n}):null,r]}),t[22]=I,t[23]=r,t[24]=_,t[25]=n,t[26]=Y):Y=t[26];let q;t[27]!==N||t[28]!==H||t[29]!==Y?(q=y.jsx("div",{className:N,style:H,children:Y}),t[27]=N,t[28]=H,t[29]=Y,t[30]=q):q=t[30];let Z;t[31]!==E||t[32]!==L||t[33]!==z||t[34]!==q?(Z=y.jsx("div",{className:L,style:z,...E,children:q}),t[31]=E,t[32]=L,t[33]=z,t[34]=q,t[35]=Z):Z=t[35];let X;t[36]!==I||t[37]!==b||t[38]!==i||t[39]!==h||t[40]!==w?(X=i&&!I?y.jsx(d3,{width:w,isExpandedOnMobileState:[b,S],resizeable:h,onResize:ee=>h?C(ee):{},children:i}):null,t[36]=I,t[37]=b,t[38]=i,t[39]=h,t[40]=w,t[41]=X):X=t[41];let J;return t[42]!==Z||t[43]!==X?(J=y.jsxs(y.Fragment,{children:[Z,X]}),t[42]=Z,t[43]=X,t[44]=J):J=t[44],J};var E0={};E0.match=qB;E0.parse=h3;var zB=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,WB=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,UB=/^(?:(min|max)-)?(.+)/,HB=/(em|rem|px|cm|mm|in|pt|pc)?$/,VB=/(dpi|dpcm|dppx)?$/;function qB(e,t){return h3(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var o=n.expressions.every(function(a){var s=a.feature,l=a.modifier,c=a.value,u=t[s];if(!u)return!1;switch(s){case"orientation":case"scan":return u.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=py(c),u=py(u);break;case"resolution":c=hy(c),u=hy(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=fy(c),u=fy(u);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,u=parseInt(u,10)||0;break}switch(l){case"min":return u>=c;case"max":return u<=c;default:return u===c}});return o&&!r||!o&&r})}function h3(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(zB),r=n[1],i=n[2],o=n[3]||"",a={};return a.inverse=!!r&&r.toLowerCase()==="not",a.type=i?i.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],a.expressions=o.map(function(s){var l=s.match(WB),c=l[1].toLowerCase().match(UB);return{modifier:c[1],feature:c[2],value:l[2]}}),a})}function fy(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function hy(e){var t=parseFloat(e),n=String(e).match(VB)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function py(e){var t=parseFloat(e),n=String(e).match(HB)[1];switch(n){case"em":return t*16;case"rem":return t*16;case"cm":return t*96/2.54;case"mm":return t*96/2.54/10;case"in":return t*96;case"pt":return t*72;case"pc":return t*72/12;default:return t}}var YB=E0.match,my=typeof window<"u"?window.matchMedia:null;function GB(e,t,n){var r=this,i;my&&!n&&(i=my.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=YB(e,t),this.media=e),this.addListener=o,this.removeListener=a,this.dispose=l;function o(c){i&&i.addListener(c)}function a(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function ZB(e,t,n){return new GB(e,t,n)}var XB=ZB;const KB=nn(XB);var JB=/[A-Z]/g,QB=/^ms-/,pp={};function ez(e){return"-"+e.toLowerCase()}function p3(e){if(pp.hasOwnProperty(e))return pp[e];var t=e.replace(JB,ez);return pp[e]=QB.test(t)?"-"+t:t}function tz(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(let o=0;o<i;o++){const a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}const In=xe.oneOfType([xe.string,xe.number]),m3={all:xe.bool,grid:xe.bool,aural:xe.bool,braille:xe.bool,handheld:xe.bool,print:xe.bool,projection:xe.bool,screen:xe.bool,tty:xe.bool,tv:xe.bool,embossed:xe.bool},nz={orientation:xe.oneOf(["portrait","landscape"]),scan:xe.oneOf(["progressive","interlace"]),aspectRatio:xe.string,deviceAspectRatio:xe.string,height:In,deviceHeight:In,width:In,deviceWidth:In,color:xe.bool,colorIndex:xe.bool,monochrome:xe.bool,resolution:In,type:Object.keys(m3)},{type:vpe,...rz}=nz,iz={minAspectRatio:xe.string,maxAspectRatio:xe.string,minDeviceAspectRatio:xe.string,maxDeviceAspectRatio:xe.string,minHeight:In,maxHeight:In,minDeviceHeight:In,maxDeviceHeight:In,minWidth:In,maxWidth:In,minDeviceWidth:In,maxDeviceWidth:In,minColor:xe.number,maxColor:xe.number,minColorIndex:xe.number,maxColorIndex:xe.number,minMonochrome:xe.number,maxMonochrome:xe.number,minResolution:In,maxResolution:In,...rz},oz={...m3,...iz};var az={all:oz};const sz=e=>`not ${e}`,lz=(e,t)=>{const n=p3(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?sz(n):`(${n}: ${t})`},cz=e=>e.join(" and "),uz=e=>{const t=[];return Object.keys(az.all).forEach(n=>{const r=e[n];r!=null&&t.push(lz(n,r))}),cz(t)},dz=v.createContext(void 0),fz=e=>e.query||uz(e),gy=e=>e?Object.keys(e).reduce((n,r)=>(n[p3(r)]=e[r],n),{}):void 0,g3=()=>{const e=v.useRef(!1);return v.useEffect(()=>{e.current=!0},[]),e.current},hz=e=>{const t=v.useContext(dz),n=()=>gy(e)||gy(t),[r,i]=v.useState(n);return v.useEffect(()=>{const o=n();tz(r,o)||i(o)},[e,t]),r},pz=e=>{const t=()=>fz(e),[n,r]=v.useState(t);return v.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},mz=(e,t)=>{const n=()=>KB(e,t||{},!!t),[r,i]=v.useState(n),o=g3();return v.useEffect(()=>{if(o){const a=n();return i(a),()=>{a&&a.dispose()}}},[e,t]),r},gz=e=>{const[t,n]=v.useState(e.matches);return v.useEffect(()=>{const r=i=>{n(i.matches)};return e.addListener(r),n(e.matches),()=>{e.removeListener(r)}},[e]),t},mp=(e,t,n)=>{const r=hz(t),i=pz(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const o=mz(i,r),a=gz(o);return g3(),v.useEffect(()=>{},[a]),v.useEffect(()=>()=>{o&&o.dispose()},[]),a},vz=["sm","md","lg","always"],v3="ResponsiveContextDropdownItem",bz=e=>e.type.displayName===v3,O0=e=>({});O0.displayName=v3;function yz(e){return e.type&&e.type===v.Fragment}const b3=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(yz(r)){n.push(...b3(r.props.children));return}n.push(r)}}),n},xz=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return us.generatePath(e,r)+"?"+n},wz="_disabled_9mp5v_1",_z={disabled:wz},Cz=()=>{const e=je.c(5),{ProjectIconComponent:t}=v.useContext(rn),{checkUserHasPermissions:n}=oC();let r;e[0]!==t||e[1]!==n?(r=(a,s)=>{const l=[],c=[];let u=null;const d=h=>{const{hideOn:p,children:m,cKey:g,to:x,toRoute:_,disabled:w,icon:C,pathParams:b,...S}=h.props,M=(_==null?void 0:_.permissions)!=null,$=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),k=(w??!1)||M&&!$,R=x??(_==null?void 0:xz(_==null?void 0:_.route,b)),T=m??(_==null?void 0:_.name),E=C??(_!=null?y.jsx(t,{icon:"link"}):void 0);if(p==="always"||vz.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const A=se(S.className,{[_z.disabled]:k});R!=null?c.push(y.jsx($o,{...S,as:"link",to:R,disabled:k,icon:E,className:A,children:T},g)):c.push(y.jsx($o,{...S,icon:E,className:A,children:T},g))}else{const A=R!=null?{as:"link",href:R}:{};l.push(y.jsx(sf,{...S,...A,icon:E,className:se(k?"disabled":void 0,S.className),children:T},g))}};return b3(a).forEach(h=>{h&&v.isValidElement(h)&&(bz(h)?d(h):u=h)}),{buttons:l,dropdownItems:c}},e[0]=t,e[1]=n,e[2]=r):r=e[2];const i=r;let o;return e[3]!==i?(o={getProcessedChildren:i},e[3]=i,e[4]=o):o=e[4],o},y3=e=>{const t=je.c(18),{children:n}=e,{getProcessedChildren:r}=Cz();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const o=mp(i);let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a={minWidth:769,maxWidth:1200},t[1]=a):a=t[1];const s=mp(a);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=mp(l);let u;t[3]!==c||t[4]!==s||t[5]!==o?(u=[o,s,c],t[3]=c,t[4]=s,t[5]=o,t[6]=u):u=t[6];const d=u.indexOf(!0);let f;t[7]!==n||t[8]!==r||t[9]!==d?(f=r(n,d),t[7]=n,t[8]=r,t[9]=d,t[10]=f):f=t[10];const{buttons:h,dropdownItems:p}=f;let m;t[11]!==h?(m=y.jsx(y.Fragment,{children:h}),t[11]=h,t[12]=m):m=t[12];let g;t[13]!==p?(g=p.length>0?y.jsx(m0,{toggle:y.jsx(p0,{as:h0}),children:p}):null,t[13]=p,t[14]=g):g=t[14];let x;return t[15]!==m||t[16]!==g?(x=y.jsxs("div",{className:"d-flex gap-1",children:[m,g]}),t[15]=m,t[16]=g,t[17]=x):x=t[17],x};y3.Item=O0;const Sz=v.createContext(void 0);function Tz(e,t,n,r){var i=this,o=v.useRef(null),a=v.useRef(0),s=v.useRef(0),l=v.useRef(null),c=v.useRef([]),u=v.useRef(),d=v.useRef(),f=v.useRef(e),h=v.useRef(!0);f.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,x=!("trailing"in n)||!!n.trailing,_="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,C=_?Math.max(+n.maxWait||0,t):null;v.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var b=v.useMemo(function(){var S=function(A){var I=c.current,j=u.current;return c.current=u.current=null,a.current=A,s.current=s.current||A,d.current=f.current.apply(j,I)},M=function(A,I){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(A):setTimeout(A,I)},$=function(A){if(!h.current)return!1;var I=A-o.current;return!o.current||I>=t||I<0||_&&A-a.current>=C},k=function(A){return l.current=null,x&&c.current?S(A):(c.current=u.current=null,d.current)},R=function A(){var I=Date.now();if(g&&s.current===a.current&&T(),$(I))return k(I);if(h.current){var j=t-(I-o.current),D=_?Math.min(j,C-(I-a.current)):j;M(A,D)}},T=function(){r&&r({})},E=function(){if(p||w){var A=Date.now(),I=$(A);if(c.current=[].slice.call(arguments),u.current=i,o.current=A,I){if(!l.current&&h.current)return a.current=o.current,M(R,t),g?S(o.current):d.current;if(_)return M(R,t),S(o.current)}return l.current||M(R,t),d.current}};return E.cancel=function(){var A=l.current;A&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),a.current=0,c.current=o.current=u.current=l.current=null,A&&r&&r({})},E.isPending=function(){return!!l.current},E.flush=function(){return l.current?k(Date.now()):d.current},E},[g,_,t,C,x,m,p,w,r]);return b}function $z(e,t){return e===t}function A0(e,t,n){var r=n&&n.equalityFn||$z,i=v.useRef(e),o=v.useState({})[1],a=Tz(v.useCallback(function(l){i.current=l,o({})},[o]),t,n,o),s=v.useRef(e);return r(s.current,e)||(a(e),s.current=e),[i.current,a]}const kz="_feedback_esh1j_1",Mz="_feedback-spacer_esh1j_8",vy={feedback:kz,feedbackSpacer:Mz},gf=e=>{const t=je.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=se("invalid-feedback luminus-invalid-feedback",vy.feedback),t[0]=r):r=t[0];let i;t[1]!==n?(i=y.jsx("div",{className:r,children:n}),t[1]=n,t[2]=i):i=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=se("invalid-feedback-spacer",vy.feedbackSpacer),t[3]=o):o=t[3];let a;t[4]!==n?(a=y.jsx("div",{className:o,children:n}),t[4]=n,t[5]=a):a=t[5];let s;return t[6]!==i||t[7]!==a?(s=y.jsxs(y.Fragment,{children:[i,a]}),t[6]=i,t[7]=a,t[8]=s):s=t[8],s},Ez="_wrapper_1mvyk_1",Oz="_open_1mvyk_9",Az="_dropdown_1mvyk_13",Rz="_search-input-container_1mvyk_19",Dz="_search-input_1mvyk_19",Iz="_loading-container_1mvyk_25",jz="_items-container_1mvyk_32",Pz="_header-row_1mvyk_38",Nz="_name_1mvyk_49",Lz="_item_1mvyk_32",Fz="_column-item_1mvyk_65",Bz="_action-buttons-container_1mvyk_89",zz="_reverse_1mvyk_97",Wz="_action-button_1mvyk_89",Uz="_actions-dropdown_1mvyk_110",bn={wrapper:Ez,open:Oz,dropdown:Az,searchInputContainer:Rz,searchInput:Dz,loadingContainer:Iz,itemsContainer:jz,headerRow:Pz,name:Nz,item:Lz,columnItem:Fz,actionButtonsContainer:Bz,reverse:zz,actionButton:Wz,actionsDropdown:Uz},x3=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:o,onSelectionChange:a,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:p,isLoading:m=!1,inputRef:g,archiveColumn:x="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1,customEllipsisOptions:b})=>{var Me;const{texts:{customSelect:S}}=v.useContext(rn),M=v.useRef(null),$=v.useRef(null),k=v.useRef(null),R=v.useRef(null),T=v.useRef(null),[E,A]=v.useState(""),[I]=A0(E,500),[,j]=v.useState(!1),{copyToClipboard:D}=sC(),O=(Me=g.current)==null?void 0:Me.getBoundingClientRect(),L=(O==null?void 0:O.x)??0,z=((O==null?void 0:O.x)??0)+((O==null?void 0:O.width)??0),N=(O==null?void 0:O.y)??0,H=((O==null?void 0:O.y)??0)+((O==null?void 0:O.height)??0),Y=(O==null?void 0:O.width)??0,q=(O==null?void 0:O.height)??0,Z=5,{isMobile:X}=Cc(),J=8,ee=v.useMemo(()=>L?L>window.innerWidth/2-J:!1,[L]),W=v.useMemo(()=>N?N>window.innerHeight/2-J:!1,[N]);v.useEffect(()=>{var ce;e&&((ce=k.current)==null||ce.focus())},[k,e]),v.useEffect(()=>{e||A("")},[e]),v.useEffect(()=>{s&&s(I)},[I,s]);const[F,B]=v.useState(null);v.useEffect(()=>{e&&n.length>0?B(0):B(null)},[n,e]);const V=v.useMemo(()=>F!==null?n.at(F)??null:null,[F,n]),P=v.useCallback((ce,de)=>{var Ge,we;const Ce=document.getElementById(`item-${ce}`);if(Ce){const ve=Ce.clientHeight??0;de==="down"?(Ge=R.current)==null||Ge.scrollBy({left:0,top:ve,behavior:"smooth"}):(we=R.current)==null||we.scrollBy({left:0,top:-ve,behavior:"smooth"})}},[]),te=v.useCallback(ce=>{if(F===null||p)return;const de=F+ce;de<0||de>=n.length||B(Ce=>(Ce!==null&&P(Ce,ce>0?"down":"up"),de))},[F,n,p,P]),K=v.useCallback(ce=>{if(e)switch(ce.key){case"Escape":ce.stopPropagation(),ce.preventDefault(),t();break;case"Enter":ce.stopPropagation(),ce.preventDefault(),p||a(V);break;case"ArrowUp":ce.stopPropagation(),ce.preventDefault(),te(-1);break;case"ArrowDown":ce.stopPropagation(),ce.preventDefault(),te(1);break}},[t,e,te,V,p,a]),G=v.useCallback(()=>{j(ce=>!ce)},[]);v.useEffect(()=>(window.addEventListener("scroll",G),()=>{window.removeEventListener("scroll",G)}),[G]),v.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]),aC(K),iC([M,$,T],t);const ae=c??(u&&u.length>0?250:0),ne=(u==null?void 0:u.reduce((ce,de)=>ce+(de.width??100),0))??0,re=v.useMemo(()=>(o&&e&&!p&&!C)??!1,[o,e,p,C]),oe=v.useMemo(()=>(o&&e)??!1,[o,e]),le=v.useMemo(()=>e&&(oe||_!==void 0||w!==void 0||b!=null&&b.length>0),[e,oe,_,w,b]),ye=32,ge=X?`calc(100vw - ${ye}px)`:`calc(max(${Y}px, calc(${ae}px + ${ne}px)))`,be=v.useMemo(()=>(E.length<1&&r&&r.length>0?r:n).map(ce=>{var de,Ce;return d?((de=ce.id)==null?void 0:de.toString())??"":((Ce=ce.name)==null?void 0:Ce.toString())??""}).reduce((ce,de)=>ce.length>de.length?ce:de,""),[E,r,n,d]);return y.jsxs(y.Fragment,{children:[y.jsx(w3,{show:e,onClick:t}),y.jsxs("div",{className:se("luminus-dropdown-picker-actions",bn.actionButtonsContainer,{[bn.reverse]:ee}),style:{top:`calc(${N}px + ${q/2}px - 12px)`,left:ee?re&&oe?`calc(${L}px - 24px - 8px - 24px - 4px)`:`calc(${L}px - 24px - 8px)`:`calc(${z}px + 8px)`},children:[re&&y.jsx("button",{ref:$,type:"button",className:se("luminus-dropdown-picker-clear-button",bn.actionButton),onClick:()=>!p&&a(null),children:y.jsx(jn,{variant:"caption",className:"text-danger",children:y.jsx(U_,{size:16})})}),le?y.jsx("div",{ref:T,children:y.jsxs(m0,{toggle:y.jsx(p0,{as:h0,className:se("luminus-dropdown-picker-actions-dropdown",bn.actionsDropdown),icon:y.jsx(jn,{variant:"caption",className:"text-primary",children:y.jsx(V_,{size:16})})}),children:[oe?y.jsx($o,{icon:y.jsx(R8,{}),onClick:()=>{var ce,de;D(d?((ce=o==null?void 0:o.id)==null?void 0:ce.toString())??"":((de=o==null?void 0:o.name)==null?void 0:de.toString())??"")},children:S.copySelection}):null,oe&&(_||w)?y.jsx(Tm,{}):null,_?y.jsx($o,{icon:y.jsx(A8,{}),onClick:()=>{window.open(_,"_blank")},children:S.addNewOption}):null,w?y.jsx($o,{icon:y.jsx(W8,{}),onClick:()=>{w()},children:S.refreshOptions}):null,b&&b.length>0?y.jsx(Tm,{}):null,b==null?void 0:b.map(ce=>y.jsxs($o,{onClick:()=>{ce.onClick(),t()},children:[ce.icon??null,ce.label]},ce.label))]})}):null]}),y.jsx("div",{className:se("luminus-dropdown-picker",bn.wrapper,{[bn.open]:e}),style:{top:W?`calc(${N}px - 50vh - 8px)`:`calc(${H}px + 8px)`,left:X?`${ye/2}px`:ee?`calc(${z}px - ${ge})`:L,right:X?`${ye/2}px`:ee?`${z}px`:`calc(${L}px + ${ge})`,width:ge,justifyContent:W?"flex-end":"flex-start"},children:y.jsx("div",{ref:M,className:se("shadow rounded",bn.dropdown),children:!p&&y.jsxs(y.Fragment,{children:[!s||f&&(h??n.length)<=Z?null:y.jsx("div",{className:se("search-input-container border-bottom",bn.searchInputContainer),children:y.jsx(Xr.Control,{ref:k,type:"search",size:"sm",className:bn.searchInput,placeholder:l.searchPlaceholder,value:E,onChange:ce=>{var de;return A(((de=ce.target)==null?void 0:de.value)??"")}})}),E.length<1&&r&&r.length>0?y.jsx(I0,{variant:"info",size:"sm",children:i??S.suggestedItemsTitle}):null,m?y.jsx("div",{className:bn.loadingContainer,children:y.jsx(Xg,{animation:"border",variant:"primary"})}):(E.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&y.jsxs("div",{ref:R,className:se("items",bn.itemsContainer),children:[u&&u.length>0&&y.jsxs("div",{className:se("header-row border-bottom",bn.headerRow),children:[y.jsx("div",{className:bn.name,children:y.jsx(jn,{variant:"body2",children:be})}),u==null?void 0:u.filter(ce=>ce.key!==x).map(ce=>y.jsx("div",{className:bn.columnItem,style:{width:`${ce.width??100}px`,minWidth:`${ce.width??100}px`,maxWidth:`${ce.width??100}px`},children:y.jsx(jn,{variant:"caption",children:ce.name})},ce.key))]}),(E.length<1&&r&&r.length>0?r:n).map((ce,de)=>y.jsxs("button",{id:`item-${de}`,type:"button",className:se("item cursor-pointer",bn.item,{[bn.focused]:F===de},{focused:F===de},{archive:ce.additionalColumns?ce.additionalColumns[x]:!1}),onClick:()=>!p&&a(ce),onMouseEnter:()=>B(de),children:[y.jsx("div",{className:bn.name,children:y.jsx(jn,{variant:"body2",children:d?ce.id:ce.name})}),u==null?void 0:u.filter(Ce=>Ce.key!==x).map(Ce=>y.jsx("div",{className:bn.columnItem,style:{width:`${Ce.width??100}px`,minWidth:`${Ce.width??100}px`,maxWidth:`${Ce.width??100}px`},children:y.jsx(jn,{variant:"caption",className:se("text-muted"),children:ce.additionalColumns&&ce.additionalColumns[Ce.key]})},Ce.key))]},ce.id))]})]})})})]})},Hz="_backdrop_3huvf_1",Vz="_show_3huvf_11",by={backdrop:Hz,show:Vz},w3=e=>{const t=je.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=se("luminus-backdrop",by.backdrop,{[by.show]:n}),t[0]=n,t[1]=i):i=t[1];let o;t[2]!==r?(o=()=>r&&r(),t[2]=r,t[3]=o):o=t[3];let a;return t[4]!==i||t[5]!==o?(a=y.jsx("div",{className:i,onClick:o}),t[4]=i,t[5]=o,t[6]=a):a=t[6],a};var R0={},Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});Ec.bind=void 0;function qz(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}Ec.bind=qz;var vf={},Aa=Hn&&Hn.__assign||function(){return Aa=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},Aa.apply(this,arguments)};Object.defineProperty(vf,"__esModule",{value:!0});vf.bindAll=void 0;var Yz=Ec;function yy(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function Gz(e,t){if(t==null)return e;var n=Aa(Aa({},e),{options:Aa(Aa({},yy(t)),yy(e.options))});return n}function Zz(e,t,n){var r=t.map(function(i){var o=Gz(i,n);return(0,Yz.bind)(e,o)});return function(){r.forEach(function(o){return o()})}}vf.bindAll=Zz;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=Ec;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=vf;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(R0);function _3(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=e.apply(this,i);t={result:a}}return t.result}}var D0=_3(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),Dm={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function Xz(e){var t=e.dragLeave;return D0()?t.hasOwnProperty(Dm.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!D0())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}R0.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(o){!n.isOverWindow&&n.enterCount===0&&(o[Dm.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(o){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(o[Dm.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var Kz=function(t){var n=[],r=null,i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s,!r&&(r=requestAnimationFrame(function(){r=null,t.apply(void 0,n)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i},gp=Kz(function(e){return e()}),lu=function(){var e=null;function t(r){var i=requestAnimationFrame(function(){e=null,r()});e={frameId:i,fn:r}}function n(){e&&(cancelAnimationFrame(e.frameId),e.fn(),e=null)}return{schedule:t,flush:n}}();function Jz(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function o(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var a={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};o({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),lu.schedule(function(){o({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;lu.flush(),gp.cancel(),o({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;gp(function(){lu.flush();var u={initial:n,previous:i,current:c};o({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;lu.flush(),gp.cancel(),o({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return a}const I0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:o=i==="sm"?"body2":"body",...a}={...e};return y.jsx(Fk,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...a,children:y.jsx(jn,{variant:o,children:n})})};var j0=Ac(),rt=e=>Oc(e,j0),P0=Ac();rt.write=e=>Oc(e,P0);var bf=Ac();rt.onStart=e=>Oc(e,bf);var N0=Ac();rt.onFrame=e=>Oc(e,N0);var L0=Ac();rt.onFinish=e=>Oc(e,L0);var La=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const o=La.findIndex(a=>a.cancel==r);~o&&La.splice(o,1),Wi-=~o?1:0},i={time:n,handler:e,cancel:r};return La.splice(C3(n),0,i),Wi+=1,S3(),i};var C3=e=>~(~La.findIndex(t=>t.time>e)||~La.length);rt.cancel=e=>{bf.delete(e),N0.delete(e),L0.delete(e),j0.delete(e),P0.delete(e)};rt.sync=e=>{Im=!0,rt.batchedUpdates(e),Im=!1};rt.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,rt.onStart(n)}return r.handler=e,r.cancel=()=>{bf.delete(n),t=null},r};var F0=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>F0=e;rt.now=typeof performance<"u"?()=>performance.now():Date.now;rt.batchedUpdates=e=>e();rt.catch=console.error;rt.frameLoop="always";rt.advance=()=>{rt.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):$3()};var zi=-1,Wi=0,Im=!1;function Oc(e,t){Im?(t.delete(e),e(0)):(t.add(e),S3())}function S3(){zi<0&&(zi=0,rt.frameLoop!=="demand"&&F0(T3))}function Qz(){zi=-1}function T3(){~zi&&(F0(T3),rt.batchedUpdates($3))}function $3(){const e=zi;zi=rt.now();const t=C3(zi);if(t&&(k3(La.splice(0,t),n=>n.handler()),Wi-=t),!Wi){Qz();return}bf.flush(),j0.flush(e?Math.min(64,zi-e):16.667),N0.flush(),P0.flush(),L0.flush()}function Ac(){let e=new Set,t=e;return{add(n){Wi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Wi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Wi-=t.size,k3(t,r=>r(n)&&e.add(r)),Wi+=e.size,t=e)}}}function k3(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var eW=Object.defineProperty,tW=(e,t)=>{for(var n in t)eW(e,n,{get:t[n],enumerable:!0})},Mr={};tW(Mr,{assign:()=>rW,colors:()=>Vi,createStringInterpolator:()=>z0,skipAnimation:()=>E3,to:()=>M3,willAdvance:()=>W0});function jm(){}var nW=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pe={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function si(e,t){if(pe.arr(e)){if(!pe.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Xe=(e,t)=>e.forEach(t);function qr(e,t,n){if(pe.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var Pn=e=>pe.und(e)?[]:pe.arr(e)?e:[e];function gl(e,t){if(e.size){const n=Array.from(e);e.clear(),Xe(n,t)}}var ll=(e,...t)=>gl(e,n=>n(...t)),B0=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),z0,M3,Vi=null,E3=!1,W0=jm,rW=e=>{e.to&&(M3=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Vi=e.colors),e.skipAnimation!=null&&(E3=e.skipAnimation),e.createStringInterpolator&&(z0=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(W0=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},vl=new Set,sr=[],vp=[],sd=0,yf={get idle(){return!vl.size&&!sr.length},start(e){sd>e.priority?(vl.add(e),rt.onStart(iW)):(O3(e),rt(Pm))},advance:Pm,sort(e){if(sd)rt.onFrame(()=>yf.sort(e));else{const t=sr.indexOf(e);~t&&(sr.splice(t,1),A3(e))}},clear(){sr=[],vl.clear()}};function iW(){vl.forEach(O3),vl.clear(),rt(Pm)}function O3(e){sr.includes(e)||A3(e)}function A3(e){sr.splice(oW(sr,t=>t.priority>e.priority),0,e)}function Pm(e){const t=vp;for(let n=0;n<sr.length;n++){const r=sr[n];sd=r.priority,r.idle||(W0(r),r.advance(e),r.idle||t.push(r))}return sd=0,vp=sr,vp.length=0,sr=t,sr.length>0}function oW(e,t){const n=e.findIndex(t);return n<0?e.length:n}var aW={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Cr="[-+]?\\d*\\.?\\d+",ld=Cr+"%";function xf(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var sW=new RegExp("rgb"+xf(Cr,Cr,Cr)),lW=new RegExp("rgba"+xf(Cr,Cr,Cr,Cr)),cW=new RegExp("hsl"+xf(Cr,ld,ld)),uW=new RegExp("hsla"+xf(Cr,ld,ld,Cr)),dW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fW=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hW=/^#([0-9a-fA-F]{6})$/,pW=/^#([0-9a-fA-F]{8})$/;function mW(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hW.exec(e))?parseInt(t[1]+"ff",16)>>>0:Vi&&Vi[e]!==void 0?Vi[e]:(t=sW.exec(e))?(xa(t[1])<<24|xa(t[2])<<16|xa(t[3])<<8|255)>>>0:(t=lW.exec(e))?(xa(t[1])<<24|xa(t[2])<<16|xa(t[3])<<8|_y(t[4]))>>>0:(t=dW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=pW.exec(e))?parseInt(t[1],16)>>>0:(t=fW.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=cW.exec(e))?(xy(wy(t[1]),cu(t[2]),cu(t[3]))|255)>>>0:(t=uW.exec(e))?(xy(wy(t[1]),cu(t[2]),cu(t[3]))|_y(t[4]))>>>0:null}function bp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xy(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=bp(i,r,e+1/3),a=bp(i,r,e),s=bp(i,r,e-1/3);return Math.round(o*255)<<24|Math.round(a*255)<<16|Math.round(s*255)<<8}function xa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function wy(e){return(parseFloat(e)%360+360)%360/360}function _y(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function cu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Cy(e){let t=mW(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,o=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var Hl=(e,t,n)=>{if(pe.fun(e))return e;if(pe.arr(e))return Hl({range:e,output:t,extrapolate:n});if(pe.str(e.output[0]))return z0(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=vW(c,o);return gW(c,o[u],o[u+1],i[u],i[u+1],l,a,s,r.map)}};function gW(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if(a==="identity")return c;a==="clamp"&&(c=t)}if(c>n){if(s==="identity")return c;s==="clamp"&&(c=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?c=-c:n===1/0?c=c-t:c=(c-t)/(n-t),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function vW(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var bW={linear:e=>e},Vl=Symbol.for("FluidValue.get"),os=Symbol.for("FluidValue.observers"),ar=e=>!!(e&&e[Vl]),Bn=e=>e&&e[Vl]?e[Vl]():e,Sy=e=>e[os]||null;function yW(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ql(e,t){const n=e[os];n&&n.forEach(r=>{yW(r,t)})}var R3=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");xW(this,e)}},xW=(e,t)=>D3(e,Vl,t);function xs(e,t){if(e[Vl]){let n=e[os];n||D3(e,os,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Yl(e,t){const n=e[os];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[os]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var D3=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Eu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,wW=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ty=new RegExp(`(${Eu.source})(%|[a-z]+)`,"i"),_W=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,wf=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,I3=e=>{const[t,n]=CW(e);if(!t||B0())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&wf.test(n))return I3(n);if(n)return n}return e},CW=e=>{const t=wf.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},yp,SW=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,j3=e=>{yp||(yp=Vi?new RegExp(`(${Object.keys(Vi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(o=>Bn(o).replace(wf,I3).replace(wW,Cy).replace(yp,Cy)),n=t.map(o=>o.match(Eu).map(Number)),i=n[0].map((o,a)=>n.map(s=>{if(!(a in s))throw Error('The arity of each "output" value must be equal');return s[a]})).map(o=>Hl({...e,output:o}));return o=>{var l;const a=!Ty.test(t[0])&&((l=t.find(c=>Ty.test(c)))==null?void 0:l.replace(Eu,""));let s=0;return t[0].replace(Eu,()=>`${i[s++](o)}${a||""}`).replace(_W,SW)}},U0="react-spring: ",P3=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${U0}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},TW=P3(console.warn);function $W(){TW(`${U0}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var kW=P3(console.warn);function MW(){kW(`${U0}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function _f(e){return pe.str(e)&&(e[0]=="#"||/\d/.test(e)||!B0()&&wf.test(e)||e in(Vi||{}))}var ko=B0()?v.useEffect:v.useLayoutEffect,EW=()=>{const e=v.useRef(!1);return ko(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function H0(){const e=v.useState()[1],t=EW();return()=>{t.current&&e(Math.random())}}var V0=e=>v.useEffect(e,OW),OW=[];function Nm(e){const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current}var Gl=Symbol.for("Animated:node"),AW=e=>!!e&&e[Gl]===e,Pr=e=>e&&e[Gl],q0=(e,t)=>nW(e,Gl,t),Cf=e=>e&&e[Gl]&&e[Gl].getPayload(),N3=class{constructor(){q0(this,this)}getPayload(){return this.payload||[]}},Sf=class L3 extends N3{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,pe.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new L3(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return pe.num(t)&&(this.lastPosition=t,n&&(t=Math.round(t/n)*n,this.done&&(this.lastPosition=t))),this._value===t?!1:(this._value=t,!0)}reset(){const{done:t}=this;this.done=!1,pe.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},cd=class F3 extends Sf{constructor(t){super(0),this._string=null,this._toString=Hl({output:[t,t]})}static create(t){return new F3(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(pe.str(t)){if(t==this._string)return!1;this._string=t,this._value=1}else if(super.setValue(t))this._string=null;else return!1;return!0}reset(t){t&&(this._toString=Hl({output:[this.getValue(),t]})),this._value=0,super.reset()}},ud={dependencies:null},Tf=class extends N3{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return qr(this.source,(n,r)=>{AW(n)?t[r]=n.getValue(e):ar(n)?t[r]=Bn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Xe(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return qr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ud.dependencies&&ar(e)&&ud.dependencies.add(e);const t=Cf(e);t&&Xe(t,n=>this.add(n))}},RW=class B3 extends Tf{constructor(t){super(t)}static create(t){return new B3(t)}getValue(){return this.source.map(t=>t.getValue())}setValue(t){const n=this.getPayload();return t.length==n.length?n.map((r,i)=>r.setValue(t[i])).some(Boolean):(super.setValue(t.map(DW)),!0)}};function DW(e){return(_f(e)?cd:Sf).create(e)}function Lm(e){const t=Pr(e);return t?t.constructor:pe.arr(e)?RW:_f(e)?cd:Sf}var $y=(e,t)=>{const n=!pe.fun(e)||e.prototype&&e.prototype.isReactComponent;return v.forwardRef((r,i)=>{const o=v.useRef(null),a=n&&v.useCallback(p=>{o.current=PW(i,p)},[i]),[s,l]=jW(r,t),c=H0(),u=()=>{const p=o.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new IW(u,l),f=v.useRef(void 0);ko(()=>(f.current=d,Xe(l,p=>xs(p,d)),()=>{f.current&&(Xe(f.current.deps,p=>Yl(p,f.current)),rt.cancel(f.current.update))})),v.useEffect(u,[]),V0(()=>()=>{const p=f.current;Xe(p.deps,m=>Yl(m,p))});const h=t.getComponentProps(s.getValue());return fe.createElement(e,{...h,ref:a})})},IW=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function jW(e,t){const n=new Set;return ud.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Tf(e),ud.dependencies=null,[e,n]}function PW(e,t){return e&&(pe.fun(e)?e(t):e.current=t),t}var ky=Symbol.for("AnimatedComponent"),NW=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new Tf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=a=>{const s=My(a)||"Anonymous";return pe.str(a)?a=o[a]||(o[a]=$y(a,i)):a=a[ky]||(a[ky]=$y(a,i)),a.displayName=`Animated(${s})`,a};return qr(e,(a,s)=>{pe.arr(e)&&(s=My(a)),o[s]=o(a)}),{animated:o}},My=e=>pe.str(e)?e:e&&pe.str(e.displayName)?e.displayName:pe.fun(e)&&e.name||null;function zn(e,...t){return pe.fun(e)?e(...t):e}var bl=(e,t)=>e===!0||!!(t&&e&&(pe.fun(e)?e(t):Pn(e).includes(t))),z3=(e,t)=>pe.obj(e)?t&&e[t]:e,W3=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,LW=e=>e,$f=(e,t=LW)=>{let n=FW;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const o=t(e[i],i);pe.und(o)||(r[i]=o)}return r},FW=["config","onProps","onStart","onChange","onPause","onResume","onRest"],BW={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function zW(e){const t={};let n=0;if(qr(e,(r,i)=>{BW[i]||(t[i]=r,n++)}),n)return t}function Y0(e){const t=zW(e);if(t){const n={to:t};return qr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Zl(e){return e=Bn(e),pe.arr(e)?e.map(Zl):_f(e)?Mr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function U3(e){for(const t in e)return!0;return!1}function Fm(e){return pe.fun(e)||pe.arr(e)&&pe.obj(e[0])}function Bm(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function H3(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var V3={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},zm={...V3.default,mass:1,damping:1,easing:bW.linear,clamp:!1},WW=class{constructor(){this.velocity=0,Object.assign(this,zm)}};function UW(e,t,n){n&&(n={...n},Ey(n,t),t={...n,...t}),Ey(e,t),Object.assign(e,t);for(const a in zm)e[a]==null&&(e[a]=zm[a]);let{frequency:r,damping:i}=e;const{mass:o}=e;return pe.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r),e}function Ey(e,t){if(!pe.und(t.decay))e.duration=void 0;else{const n=!pe.und(t.tension)||!pe.und(t.friction);(n||!pe.und(t.frequency)||!pe.und(t.damping)||!pe.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Oy=[],HW=class{constructor(){this.changed=!1,this.values=Oy,this.toValues=null,this.fromValues=Oy,this.config=new WW,this.immediate=!1}};function q3(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{let l,c,u=bl(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{pe.und(n.pause)||(i.paused=bl(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||bl(p,t)),l=zn(n.delay||0,t),p?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-rt.now()}function f(){l>0&&!Mr.skipAnimation?(i.delayed=!0,c=rt.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),e<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:e,cancel:u},a)}catch(p){s(p)}}})}var G0=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fa(e.get()):t.every(n=>n.noop)?Y3(e.get()):xr(e.get(),t.every(n=>n.finished)),Y3=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fa=e=>({value:e,cancelled:!0,finished:!1});function G3(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return!o&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=$f(t,(g,x)=>x==="onRest"?void 0:g);let u,d;const f=new Promise((g,x)=>(u=g,d=x)),h=g=>{const x=i<=(n.cancelId||0)&&Fa(r)||i!==n.asyncId&&xr(r,!1);if(x)throw g.result=x,d(g),g},p=(g,x)=>{const _=new Ay,w=new Ry;return(async()=>{if(Mr.skipAnimation)throw Xl(n),w.result=xr(r,!1),d(w),w;h(_);const C=pe.obj(g)?{...g}:{...x,to:g};C.parentId=i,qr(c,(S,M)=>{pe.und(C[M])&&(C[M]=S)});const b=await r.start(C);return h(_),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),b})()};let m;if(Mr.skipAnimation)return Xl(n),xr(r,!1);try{let g;pe.arr(e)?g=(async x=>{for(const _ of x)await p(_)})(e):g=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([g.then(u),f]),m=xr(r.get(),!0,!1)}catch(g){if(g instanceof Ay)m=g.result;else if(g instanceof Ry)m=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return pe.fun(a)&&rt.batchedUpdates(()=>{a(m,r,r.item)}),m})()}function Xl(e,t){gl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ay=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Ry=class extends Error{constructor(){super("SkipAnimationSignal")}},Wm=e=>e instanceof Z0,VW=1,Z0=class extends R3{constructor(){super(...arguments),this.id=VW++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Pr(this);return e&&e.getValue()}to(...e){return Mr.to(this,e)}interpolate(...e){return $W(),Mr.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ql(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||yf.sort(this),ql(this,{type:"priority",parent:this,priority:e})}},Ho=Symbol.for("SpringPhase"),Z3=1,Um=2,Hm=4,xp=e=>(e[Ho]&Z3)>0,ji=e=>(e[Ho]&Um)>0,Ys=e=>(e[Ho]&Hm)>0,Dy=(e,t)=>t?e[Ho]|=Um|Z3:e[Ho]&=~Um,Iy=(e,t)=>t?e[Ho]|=Hm:e[Ho]&=~Hm,qW=class extends Z0{constructor(e,t){if(super(),this.animation=new HW,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!pe.und(e)||!pe.und(t)){const n=pe.obj(e)?{...e}:{...t,from:e};pe.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ji(this)||this._state.asyncTo)||Ys(this)}get goal(){return Bn(this.animation.to)}get velocity(){const e=Pr(this);return e instanceof Sf?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return xp(this)}get isAnimating(){return ji(this)}get isPaused(){return Ys(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,a=Cf(r.to);!a&&ar(r.to)&&(i=Pn(Bn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==cd?1:a?a[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,o.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const m=r.fromValues[u],g=c.v0!=null?c.v0:c.v0=pe.arr(o.velocity)?o.velocity[u]:o.velocity;let x;const _=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(pe.und(o.duration))if(o.decay){const w=o.decay===!0?.998:o.decay,C=Math.exp(-(1-w)*p);h=m+g/(1-w)*(1-C),f=Math.abs(c.lastPosition-h)<=_,x=g*C}else{x=c.lastVelocity==null?g:c.lastVelocity;const w=o.restVelocity||_/10,C=o.clamp?0:o.bounce,b=!pe.und(C),S=m==d?c.v0>0:m<d;let M,$=!1;const k=1,R=Math.ceil(e/k);for(let T=0;T<R&&(M=Math.abs(x)>w,!(!M&&(f=Math.abs(d-h)<=_,f)));++T){b&&($=h==d||h>d==S,$&&(x=-x*C,h=d));const E=-o.tension*1e-6*(h-d),A=-o.friction*.001*x,I=(E+A)/o.mass;x=x+I*k,h=h+x*k}}else{let w=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,p=c.elapsedTime+=e)),w=(o.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),h=m+o.easing(w)*(d-m),x=(h-c.lastPosition)/e,f=w==1}c.lastVelocity=x,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}a&&!a[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,o.round)&&(n=!0)});const s=Pr(this),l=s.getValue();if(t){const c=Bn(r.to);(l!==c||n)&&!o.decay?(s.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return rt.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ji(this)){const{to:e,config:t}=this.animation;rt.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return pe.und(e)?(n=this.queue||[],this.queue=[]):n=[pe.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>G0(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Xl(this._state,e&&this._lastCallId),rt.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=pe.obj(n)?n[t]:n,(n==null||Fm(n))&&(n=void 0),r=pe.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return xp(this)||(e.reverse&&([n,r]=[r,n]),r=Bn(r),pe.und(r)?Pr(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,$f(e,(a,s)=>/^on/.test(s)?z3(a,n):a)),Py(this,e,"onProps"),Zs(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return q3(++this._lastCallId,{key:n,props:e,defaultProps:r,state:o,actions:{pause:()=>{Ys(this)||(Iy(this,!0),ll(o.pauseQueue),Zs(this,"onPause",xr(this,Gs(this,this.animation.to)),this))},resume:()=>{Ys(this)&&(Iy(this,!1),ji(this)&&this._resume(),ll(o.resumeQueue),Zs(this,"onResume",xr(this,Gs(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(a=>{if(e.loop&&a.finished&&!(t&&a.noop)){const s=X3(e);if(s)return this._update(s,!0)}return a})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fa(this));const r=!pe.und(e.to),i=!pe.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fa(this));const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||pe.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);const f=!si(d,c);f&&(s.from=d),d=Bn(d);const h=!si(u,l);h&&this._focus(u);const p=Fm(t.to),{config:m}=s,{decay:g,velocity:x}=m;(r||i)&&(m.velocity=0),t.config&&!p&&UW(m,zn(t.config,o),t.config!==a.config?zn(a.config,o):void 0);let _=Pr(this);if(!_||pe.und(u))return n(xr(this,!0));const w=pe.und(t.reset)?i&&!t.default:!pe.und(d)&&bl(t.reset,o),C=w?d:this.get(),b=Zl(u),S=pe.num(b)||pe.arr(b)||_f(b),M=!p&&(!S||bl(a.immediate||t.immediate,o));if(h){const T=Lm(u);if(T!==_.constructor)if(M)_=this._set(b);else throw Error(`Cannot animate between ${_.constructor.name} and ${T.name}, as the "to" prop suggests`)}const $=_.constructor;let k=ar(u),R=!1;if(!k){const T=w||!xp(this)&&f;(h||T)&&(R=si(Zl(C),b),k=!R),(!si(s.immediate,M)&&!M||!si(m.decay,g)||!si(m.velocity,x))&&(k=!0)}if(R&&ji(this)&&(s.changed&&!w?k=!0:k||this._stop(l)),!p&&((k||ar(l))&&(s.values=_.getPayload(),s.toValues=ar(u)?null:$==cd?[1]:Pn(b)),s.immediate!=M&&(s.immediate=M,!M&&!w&&this._set(l)),k)){const{onRest:T}=s;Xe(GW,A=>Py(this,t,A));const E=xr(this,Gs(this,l));ll(this._pendingCalls,E),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var A;s.changed=!w,T==null||T(E,this),w?zn(a.onRest,E):(A=s.onStart)==null||A.call(s,E,this)})}w&&this._set(C),p?n(G3(t.to,t,this._state,this)):k?this._start():ji(this)&&!h?this._pendingCalls.add(n):n(Y3(C))}_focus(e){const t=this.animation;e!==t.to&&(Sy(this)&&this._detach(),t.to=e,Sy(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ar(t)&&(xs(t,this),Wm(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ar(e)&&Yl(e,this)}_set(e,t=!0){const n=Bn(e);if(!pe.und(n)){const r=Pr(this);if(!r||!si(n,r.getValue())){const i=Lm(n);!r||r.constructor!=i?q0(this,i.create(n)):r.setValue(n),r&&rt.batchedUpdates(()=>{this._onChange(n,t)})}}return Pr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Zs(this,"onStart",xr(this,Gs(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zn(this.animation.onChange,e,this)),zn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Pr(this).reset(Bn(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),ji(this)||(Dy(this,!0),Ys(this)||this._resume())}_resume(){Mr.skipAnimation?this.finish():yf.start(this)}_stop(e,t){if(ji(this)){Dy(this,!1);const n=this.animation;Xe(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ql(this,{type:"idle",parent:this});const r=t?Fa(this.get()):xr(this.get(),Gs(this,e??n.to));ll(this._pendingCalls,r),n.changed&&(n.changed=!1,Zs(this,"onRest",r,this))}}};function Gs(e,t){const n=Zl(t),r=Zl(e.get());return si(r,n)}function X3(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&Y0(r),o=(i||e).reverse,a=!i||i.reset;return Kl({...e,loop:t,default:!1,pause:void 0,to:!o||Fm(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function Kl(e){const{to:t,from:n}=e=Y0(e),r=new Set;return pe.obj(t)&&jy(t,r),pe.obj(n)&&jy(n,r),e.keys=r.size?Array.from(r):null,e}function YW(e){const t=Kl(e);return pe.und(t.default)&&(t.default=$f(t)),t}function jy(e,t){qr(e,(n,r)=>n!=null&&t.add(r))}var GW=["onStart","onRest","onChange","onPause","onResume"];function Py(e,t,n){e.animation[n]=t[n]!==W3(t,n)?z3(t[n],e.key):void 0}function Zs(e,t,...n){var r,i,o,a;(i=(r=e.animation)[t])==null||i.call(r,...n),(a=(o=e.defaultProps)[t])==null||a.call(o,...n)}var ZW=["onStart","onChange","onRest"],XW=1,K3=class{constructor(e,t){this.id=XW++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];pe.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Kl(e)),this}start(e){let{queue:t}=this;return e?t=Pn(e).map(Kl):this.queue=[],this._flush?this._flush(this,t):(nS(this,t),Vm(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Xe(Pn(t),r=>n[r].stop(!!e))}else Xl(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(pe.und(e))this.start({pause:!0});else{const t=this.springs;Xe(Pn(e),n=>t[n].pause())}return this}resume(e){if(pe.und(e))this.start({pause:!1});else{const t=this.springs;Xe(Pn(e),n=>t[n].resume())}return this}each(e){qr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,gl(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&gl(t,([s,l])=>{l.value=a,s(l,this,this._item)}),o&&(this._started=!1,gl(n,([s,l])=>{l.value=a,s(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;rt.onFrame(this._onFrame)}};function Vm(e,t){return Promise.all(t.map(n=>J3(e,n))).then(n=>G0(e,n))}async function J3(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=pe.obj(t.default)&&t.default;a&&(t.loop=!1),i===!1&&(t.to=null),o===!1&&(t.from=null);const u=pe.arr(i)||pe.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Xe(ZW,m=>{const g=t[m];if(pe.fun(g)){const x=e._events[m];t[m]=({finished:_,cancelled:w})=>{const C=x.get(g);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):x.set(g,{value:null,finished:_||!1,cancelled:w||!1})},c&&(c[m]=t[m])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,ll(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map(m=>e.springs[m].start(t)),h=t.cancel===!0||W3(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(q3(++e._lastAsyncId,{props:t,state:d,actions:{pause:jm,resume:jm,start(m,g){h?(Xl(d,e._lastAsyncId),g(Fa(e))):(m.onRest=s,g(G3(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=G0(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){const m=X3(t,a,i);if(m)return nS(e,[m]),J3(e,m,!0)}return l&&rt.batchedUpdates(()=>l(p,e,e.item)),p}function qm(e,t){const n={...e.springs};return t&&Xe(Pn(t),r=>{pe.und(r.keys)&&(r=Kl(r)),pe.obj(r.to)||(r={...r,to:void 0}),tS(n,r,i=>eS(i))}),Q3(e,n),n}function Q3(e,t){qr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,xs(n,e))})}function eS(e,t){const n=new qW;return n.key=e,t&&xs(n,t),n}function tS(e,t,n){t.keys&&Xe(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function nS(e,t){Xe(t,n=>{tS(e.springs,n,r=>eS(r,e))})}var rS=fe.createContext({pause:!1,immediate:!1}),iS=()=>{const e=[],t=function(r){MW();const i=[];return Xe(e,(o,a)=>{if(pe.und(r))i.push(o.start());else{const s=n(r,o,a);s&&i.push(o.start(s))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return Xe(e,r=>r.pause(...arguments)),this},t.resume=function(){return Xe(e,r=>r.resume(...arguments)),this},t.set=function(r){Xe(e,(i,o)=>{const a=pe.fun(r)?r(o,i):r;a&&i.set(a)})},t.start=function(r){const i=[];return Xe(e,(o,a)=>{if(pe.und(r))i.push(o.start());else{const s=this._getProps(r,o,a);s&&i.push(o.start(s))}}),i},t.stop=function(){return Xe(e,r=>r.stop(...arguments)),this},t.update=function(r){return Xe(e,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return pe.fun(r)?r(o,i):r};return t._getProps=n,t};function KW(e,t,n){const r=pe.fun(t)&&t;r&&!n&&(n=[]);const i=v.useMemo(()=>r||arguments.length==3?iS():void 0,[]),o=v.useRef(0),a=H0(),s=v.useMemo(()=>({ctrls:[],queue:[],flush(x,_){const w=qm(x,_);return o.current>0&&!s.queue.length&&!Object.keys(w).some(b=>!x.springs[b])?Vm(x,_):new Promise(b=>{Q3(x,w),s.queue.push(()=>{b(Vm(x,_))}),a()})}}),[]),l=v.useRef([...s.ctrls]),c=v.useRef([]),u=Nm(e)||0;v.useMemo(()=>{Xe(l.current.slice(e,u),x=>{Bm(x,i),x.stop(!0)}),l.current.length=e,d(u,e)},[e]),v.useMemo(()=>{d(0,Math.min(u,e))},n);function d(x,_){for(let w=x;w<_;w++){const C=l.current[w]||(l.current[w]=new K3(null,s.flush)),b=r?r(w,C):t[w];b&&(c.current[w]=YW(b))}}const f=l.current.map((x,_)=>qm(x,c.current[_])),h=v.useContext(rS),p=Nm(h),m=h!==p&&U3(h);ko(()=>{o.current++,s.ctrls=l.current;const{queue:x}=s;x.length&&(s.queue=[],Xe(x,_=>_())),Xe(l.current,(_,w)=>{i==null||i.add(_),m&&_.start({default:h});const C=c.current[w];C&&(H3(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),V0(()=>()=>{Xe(s.ctrls,x=>x.stop(!0))});const g=f.map(x=>({...x}));return i?[g,i]:g}function Kr(e,t){const n=pe.fun(e),[[r],i]=KW(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function ea(e,t,n){const r=pe.fun(t)&&t,{reset:i,sort:o,trail:a=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=v.useMemo(()=>r||arguments.length==3?iS():void 0,[]),h=Pn(e),p=[],m=v.useRef(null),g=i?null:m.current;ko(()=>{m.current=p}),V0(()=>(Xe(p,I=>{f==null||f.add(I.ctrl),I.ctrl.ref=f}),()=>{Xe(m.current,I=>{I.expired&&clearTimeout(I.expirationId),Bm(I.ctrl,f),I.ctrl.stop(!0)})}));const x=QW(h,r?r():t,g),_=i&&m.current||[];ko(()=>Xe(_,({ctrl:I,item:j,key:D})=>{Bm(I,f),zn(c,j,D)}));const w=[];if(g&&Xe(g,(I,j)=>{I.expired?(clearTimeout(I.expirationId),_.push(I)):(j=w[j]=x.indexOf(I.key),~j&&(p[j]=I))}),Xe(h,(I,j)=>{p[j]||(p[j]={key:x[j],item:I,phase:"mount",ctrl:new K3},p[j].ctrl.item=I)}),w.length){let I=-1;const{leave:j}=r?r():t;Xe(w,(D,O)=>{const L=g[O];~D?(I=p.indexOf(L),p[I]={...L,item:h[D]}):j&&p.splice(++I,0,L)})}pe.fun(o)&&p.sort((I,j)=>o(I.item,j.item));let C=-a;const b=H0(),S=$f(t),M=new Map,$=v.useRef(new Map),k=v.useRef(!1);Xe(p,(I,j)=>{const D=I.key,O=I.phase,L=r?r():t;let z,N;const H=zn(L.delay||0,D);if(O=="mount")z=L.enter,N="enter";else{const X=x.indexOf(D)<0;if(O!="leave")if(X)z=L.leave,N="leave";else if(z=L.update)N="update";else return;else if(!X)z=L.enter,N="enter";else return}if(z=zn(z,I.item,j),z=pe.obj(z)?Y0(z):{to:z},!z.config){const X=d||S.config;z.config=zn(X,I.item,j,N)}C+=a;const Y={...S,delay:H+C,ref:u,immediate:L.immediate,reset:!1,...z};if(N=="enter"&&pe.und(Y.from)){const X=r?r():t,J=pe.und(X.initial)||g?X.from:X.initial;Y.from=zn(J,I.item,j)}const{onResolve:q}=Y;Y.onResolve=X=>{zn(q,X);const J=m.current,ee=J.find(W=>W.key===D);if(ee&&!(X.cancelled&&ee.phase!="update")&&ee.ctrl.idle){const W=J.every(F=>F.ctrl.idle);if(ee.phase=="leave"){const F=zn(s,ee.item);if(F!==!1){const B=F===!0?0:F;if(ee.expired=!0,!W&&B>0){B<=2147483647&&(ee.expirationId=setTimeout(b,B));return}}}W&&J.some(F=>F.expired)&&($.current.delete(ee),l&&(k.current=!0),b())}};const Z=qm(I.ctrl,Y);N==="leave"&&l?$.current.set(I,{phase:N,springs:Z,payload:Y}):M.set(I,{phase:N,springs:Z,payload:Y})});const R=v.useContext(rS),T=Nm(R),E=R!==T&&U3(R);ko(()=>{E&&Xe(p,I=>{I.ctrl.start({default:R})})},[R]),Xe(M,(I,j)=>{if($.current.size){const D=p.findIndex(O=>O.key===j.key);p.splice(D,1)}}),ko(()=>{Xe($.current.size?$.current:M,({phase:I,payload:j},D)=>{const{ctrl:O}=D;D.phase=I,f==null||f.add(O),E&&I=="enter"&&O.start({default:R}),j&&(H3(O,j.ref),(O.ref||f)&&!k.current?O.update(j):(O.start(j),k.current&&(k.current=!1)))})},i?void 0:n);const A=I=>fe.createElement(fe.Fragment,null,p.map((j,D)=>{const{springs:O}=M.get(j)||j.ctrl,L=I({...O},j.item,j,D),z=pe.str(j.key)||pe.num(j.key)?j.key:j.ctrl.id,N=fe.version<"19.0.0",H=(L==null?void 0:L.props)??{},Y=N?L==null?void 0:L.ref:H==null?void 0:H.ref;return L&&L.type?fe.createElement(L.type,{...H,key:z,ref:Y}):L}));return f?[A,f]:A}var JW=1;function QW(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(o=>{const a=r&&r.find(s=>s.item===o&&s.phase!=="leave"&&!i.has(s));return a?(i.add(a),a.key):JW++})}return pe.und(n)?e:pe.fun(n)?e.map(n):Pn(n)}var oS=class extends Z0{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Hl(...t);const n=this._get(),r=Lm(n);q0(this,r.create(n))}advance(e){const t=this._get(),n=this.get();si(t,n)||(Pr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ny(this._active)&&wp(this)}_get(){const e=pe.arr(this.source)?this.source.map(Bn):Pn(Bn(this.source));return this.calc(...e)}_start(){this.idle&&!Ny(this._active)&&(this.idle=!1,Xe(Cf(this),e=>{e.done=!1}),Mr.skipAnimation?(rt.batchedUpdates(()=>this.advance()),wp(this)):yf.start(this))}_attach(){let e=1;Xe(Pn(this.source),t=>{ar(t)&&xs(t,this),Wm(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Xe(Pn(this.source),e=>{ar(e)&&Yl(e,this)}),this._active.clear(),wp(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=Pn(this.source).reduce((t,n)=>Math.max(t,(Wm(n)?n.priority:0)+1),0))}};function eU(e){return e.idle!==!1}function Ny(e){return!e.size||Array.from(e).every(eU)}function wp(e){e.idle||(e.idle=!0,Xe(Cf(e),t=>{t.done=!0}),ql(e,{type:"idle",parent:e}))}var Qi=(e,...t)=>new oS(e,t);Mr.assign({createStringInterpolator:j3,to:(e,t)=>new oS(e,t)});var aS=/^--/;function tU(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!aS.test(e)&&!(yl.hasOwnProperty(e)&&yl[e])?t+"px":(""+t).trim()}var Ly={};function nU(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:Ly[f]||(Ly[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(e.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const h=tU(f,i[f]);aS.test(f)?e.style.setProperty(f,h):e.style[f]=h}d.forEach((f,h)=>{e.setAttribute(f,u[h])}),r!==void 0&&(e.className=r),a!==void 0&&(e.scrollTop=a),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var yl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rU=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),iU=["Webkit","Ms","Moz","O"];yl=Object.keys(yl).reduce((e,t)=>(iU.forEach(n=>e[rU(n,t)]=e[t]),e),yl);var oU=/^(matrix|translate|scale|rotate|skew)/,aU=/^(translate)/,sU=/^(rotate|skew)/,_p=(e,t)=>pe.num(e)&&e!==0?e+t:e,Ou=(e,t)=>pe.arr(e)?e.every(n=>Ou(n,t)):pe.num(e)?e===t:parseFloat(e)===t,lU=class extends Tf{constructor({x:e,y:t,z:n,...r}){const i=[],o=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),o.push(a=>[`translate3d(${a.map(s=>_p(s,"px")).join(",")})`,Ou(a,0)])),qr(r,(a,s)=>{if(s==="transform")i.push([a||""]),o.push(l=>[l,l===""]);else if(oU.test(s)){if(delete r[s],pe.und(a))return;const l=aU.test(s)?"px":sU.test(s)?"deg":"";i.push(Pn(a)),o.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${_p(f,l)})`,Ou(f,0)]:c=>[`${s}(${c.map(u=>_p(u,l)).join(",")})`,Ou(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new cU(i,o)),super(r)}},cU=class extends R3{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Xe(this.inputs,(n,r)=>{const i=Bn(n[0]),[o,a]=this.transforms[r](pe.arr(i)?i:n.map(Bn));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){e==1&&Xe(this.inputs,t=>Xe(t,n=>ar(n)&&xs(n,this)))}observerRemoved(e){e==0&&Xe(this.inputs,t=>Xe(t,n=>ar(n)&&Yl(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ql(this,e)}},uU=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];Mr.assign({batchedUpdates:Un.unstable_batchedUpdates,createStringInterpolator:j3,colors:aW});var dU=NW(uU,{applyAnimatedValues:nU,createAnimatedStyle:e=>new lU(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ht=dU.animated;function fU(){this.__data__=[],this.size=0}var hU=fU;function pU(e,t){return e===t||e!==e&&t!==t}var Rc=pU,mU=Rc;function gU(e,t){for(var n=e.length;n--;)if(mU(e[n][0],t))return n;return-1}var kf=gU,vU=kf,bU=Array.prototype,yU=bU.splice;function xU(e){var t=this.__data__,n=vU(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yU.call(t,n,1),--this.size,!0}var wU=xU,_U=kf;function CU(e){var t=this.__data__,n=_U(t,e);return n<0?void 0:t[n][1]}var SU=CU,TU=kf;function $U(e){return TU(this.__data__,e)>-1}var kU=$U,MU=kf;function EU(e,t){var n=this.__data__,r=MU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var OU=EU,AU=hU,RU=wU,DU=SU,IU=kU,jU=OU;function ws(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ws.prototype.clear=AU;ws.prototype.delete=RU;ws.prototype.get=DU;ws.prototype.has=IU;ws.prototype.set=jU;var Mf=ws,PU=Mf;function NU(){this.__data__=new PU,this.size=0}var LU=NU;function FU(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var BU=FU;function zU(e){return this.__data__.get(e)}var WU=zU;function UU(e){return this.__data__.has(e)}var HU=UU,VU=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,sS=VU,qU=sS,YU=typeof self=="object"&&self&&self.Object===Object&&self,GU=qU||YU||Function("return this")(),Jr=GU,ZU=Jr,XU=ZU.Symbol,_s=XU,Fy=_s,lS=Object.prototype,KU=lS.hasOwnProperty,JU=lS.toString,Xs=Fy?Fy.toStringTag:void 0;function QU(e){var t=KU.call(e,Xs),n=e[Xs];try{e[Xs]=void 0;var r=!0}catch{}var i=JU.call(e);return r&&(t?e[Xs]=n:delete e[Xs]),i}var eH=QU,tH=Object.prototype,nH=tH.toString;function rH(e){return nH.call(e)}var iH=rH,By=_s,oH=eH,aH=iH,sH="[object Null]",lH="[object Undefined]",zy=By?By.toStringTag:void 0;function cH(e){return e==null?e===void 0?lH:sH:zy&&zy in Object(e)?oH(e):aH(e)}var $i=cH;function uH(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=uH,dH=$i,fH=Qr,hH="[object AsyncFunction]",pH="[object Function]",mH="[object GeneratorFunction]",gH="[object Proxy]";function vH(e){if(!fH(e))return!1;var t=dH(e);return t==pH||t==mH||t==hH||t==gH}var Ef=vH;const X0=nn(Ef);var bH=Jr,yH=bH["__core-js_shared__"],xH=yH,Cp=xH,Wy=function(){var e=/[^.]+$/.exec(Cp&&Cp.keys&&Cp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function wH(e){return!!Wy&&Wy in e}var _H=wH,CH=Function.prototype,SH=CH.toString;function TH(e){if(e!=null){try{return SH.call(e)}catch{}try{return e+""}catch{}}return""}var cS=TH,$H=Ef,kH=_H,MH=Qr,EH=cS,OH=/[\\^$.*+?()[\]{}|]/g,AH=/^\[object .+?Constructor\]$/,RH=Function.prototype,DH=Object.prototype,IH=RH.toString,jH=DH.hasOwnProperty,PH=RegExp("^"+IH.call(jH).replace(OH,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function NH(e){if(!MH(e)||kH(e))return!1;var t=$H(e)?PH:AH;return t.test(EH(e))}var LH=NH;function FH(e,t){return e==null?void 0:e[t]}var BH=FH,zH=LH,WH=BH;function UH(e,t){var n=WH(e,t);return zH(n)?n:void 0}var ta=UH,HH=ta,VH=Jr,qH=HH(VH,"Map"),K0=qH,YH=ta,GH=YH(Object,"create"),Of=GH,Uy=Of;function ZH(){this.__data__=Uy?Uy(null):{},this.size=0}var XH=ZH;function KH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JH=KH,QH=Of,eV="__lodash_hash_undefined__",tV=Object.prototype,nV=tV.hasOwnProperty;function rV(e){var t=this.__data__;if(QH){var n=t[e];return n===eV?void 0:n}return nV.call(t,e)?t[e]:void 0}var iV=rV,oV=Of,aV=Object.prototype,sV=aV.hasOwnProperty;function lV(e){var t=this.__data__;return oV?t[e]!==void 0:sV.call(t,e)}var cV=lV,uV=Of,dV="__lodash_hash_undefined__";function fV(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uV&&t===void 0?dV:t,this}var hV=fV,pV=XH,mV=JH,gV=iV,vV=cV,bV=hV;function Cs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Cs.prototype.clear=pV;Cs.prototype.delete=mV;Cs.prototype.get=gV;Cs.prototype.has=vV;Cs.prototype.set=bV;var yV=Cs,Hy=yV,xV=Mf,wV=K0;function _V(){this.size=0,this.__data__={hash:new Hy,map:new(wV||xV),string:new Hy}}var CV=_V;function SV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var TV=SV,$V=TV;function kV(e,t){var n=e.__data__;return $V(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Af=kV,MV=Af;function EV(e){var t=MV(this,e).delete(e);return this.size-=t?1:0,t}var OV=EV,AV=Af;function RV(e){return AV(this,e).get(e)}var DV=RV,IV=Af;function jV(e){return IV(this,e).has(e)}var PV=jV,NV=Af;function LV(e,t){var n=NV(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var FV=LV,BV=CV,zV=OV,WV=DV,UV=PV,HV=FV;function Ss(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ss.prototype.clear=BV;Ss.prototype.delete=zV;Ss.prototype.get=WV;Ss.prototype.has=UV;Ss.prototype.set=HV;var J0=Ss,VV=Mf,qV=K0,YV=J0,GV=200;function ZV(e,t){var n=this.__data__;if(n instanceof VV){var r=n.__data__;if(!qV||r.length<GV-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new YV(r)}return n.set(e,t),this.size=n.size,this}var XV=ZV,KV=Mf,JV=LU,QV=BU,eq=WU,tq=HU,nq=XV;function Ts(e){var t=this.__data__=new KV(e);this.size=t.size}Ts.prototype.clear=JV;Ts.prototype.delete=QV;Ts.prototype.get=eq;Ts.prototype.has=tq;Ts.prototype.set=nq;var Rf=Ts,rq=ta,iq=function(){try{var e=rq(Object,"defineProperty");return e({},"",{}),e}catch{}}(),uS=iq,Vy=uS;function oq(e,t,n){t=="__proto__"&&Vy?Vy(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Q0=oq,aq=Q0,sq=Rc;function lq(e,t,n){(n!==void 0&&!sq(e[t],n)||n===void 0&&!(t in e))&&aq(e,t,n)}var dS=lq;function cq(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var uq=cq,dq=uq,fq=dq(),fS=fq,dd={exports:{}};dd.exports;(function(e,t){var n=Jr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,f=s?s(d):new c.constructor(d);return c.copy(f),f}e.exports=l})(dd,dd.exports);var hS=dd.exports,hq=Jr,pq=hq.Uint8Array,pS=pq,qy=pS;function mq(e){var t=new e.constructor(e.byteLength);return new qy(t).set(new qy(e)),t}var ev=mq,gq=ev;function vq(e,t){var n=t?gq(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var mS=vq;function bq(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var gS=bq,yq=Qr,Yy=Object.create,xq=function(){function e(){}return function(t){if(!yq(t))return{};if(Yy)return Yy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),wq=xq;function _q(e,t){return function(n){return e(t(n))}}var vS=_q,Cq=vS,Sq=Cq(Object.getPrototypeOf,Object),tv=Sq,Tq=Object.prototype;function $q(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Tq;return e===n}var nv=$q,kq=wq,Mq=tv,Eq=nv;function Oq(e){return typeof e.constructor=="function"&&!Eq(e)?kq(Mq(e)):{}}var bS=Oq;function Aq(e){return e!=null&&typeof e=="object"}var vr=Aq,Rq=$i,Dq=vr,Iq="[object Arguments]";function jq(e){return Dq(e)&&Rq(e)==Iq}var Pq=jq,Gy=Pq,Nq=vr,yS=Object.prototype,Lq=yS.hasOwnProperty,Fq=yS.propertyIsEnumerable,Bq=Gy(function(){return arguments}())?Gy:function(e){return Nq(e)&&Lq.call(e,"callee")&&!Fq.call(e,"callee")},Df=Bq,zq=Array.isArray,Kn=zq,Wq=9007199254740991;function Uq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wq}var rv=Uq,Hq=Ef,Vq=rv;function qq(e){return e!=null&&Vq(e.length)&&!Hq(e)}var $s=qq,Yq=$s,Gq=vr;function Zq(e){return Gq(e)&&Yq(e)}var xS=Zq,fd={exports:{}};function Xq(){return!1}var Kq=Xq;fd.exports;(function(e,t){var n=Jr,r=Kq,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(fd,fd.exports);var If=fd.exports,Jq=$i,Qq=tv,eY=vr,tY="[object Object]",nY=Function.prototype,rY=Object.prototype,wS=nY.toString,iY=rY.hasOwnProperty,oY=wS.call(Object);function aY(e){if(!eY(e)||Jq(e)!=tY)return!1;var t=Qq(e);if(t===null)return!0;var n=iY.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wS.call(n)==oY}var iv=aY;const ov=nn(iv);var sY=$i,lY=rv,cY=vr,uY="[object Arguments]",dY="[object Array]",fY="[object Boolean]",hY="[object Date]",pY="[object Error]",mY="[object Function]",gY="[object Map]",vY="[object Number]",bY="[object Object]",yY="[object RegExp]",xY="[object Set]",wY="[object String]",_Y="[object WeakMap]",CY="[object ArrayBuffer]",SY="[object DataView]",TY="[object Float32Array]",$Y="[object Float64Array]",kY="[object Int8Array]",MY="[object Int16Array]",EY="[object Int32Array]",OY="[object Uint8Array]",AY="[object Uint8ClampedArray]",RY="[object Uint16Array]",DY="[object Uint32Array]",Kt={};Kt[TY]=Kt[$Y]=Kt[kY]=Kt[MY]=Kt[EY]=Kt[OY]=Kt[AY]=Kt[RY]=Kt[DY]=!0;Kt[uY]=Kt[dY]=Kt[CY]=Kt[fY]=Kt[SY]=Kt[hY]=Kt[pY]=Kt[mY]=Kt[gY]=Kt[vY]=Kt[bY]=Kt[yY]=Kt[xY]=Kt[wY]=Kt[_Y]=!1;function IY(e){return cY(e)&&lY(e.length)&&!!Kt[sY(e)]}var jY=IY;function PY(e){return function(t){return e(t)}}var ks=PY,hd={exports:{}};hd.exports;(function(e,t){var n=sS,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(hd,hd.exports);var jf=hd.exports,NY=jY,LY=ks,Zy=jf,Xy=Zy&&Zy.isTypedArray,FY=Xy?LY(Xy):NY,av=FY;function BY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _S=BY,zY=Q0,WY=Rc,UY=Object.prototype,HY=UY.hasOwnProperty;function VY(e,t,n){var r=e[t];(!(HY.call(e,t)&&WY(r,n))||n===void 0&&!(t in e))&&zY(e,t,n)}var sv=VY,qY=sv,YY=Q0;function GY(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?YY(n,s,l):qY(n,s,l)}return n}var Ms=GY;function ZY(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var XY=ZY,KY=9007199254740991,JY=/^(?:0|[1-9]\d*)$/;function QY(e,t){var n=typeof e;return t=t??KY,!!t&&(n=="number"||n!="symbol"&&JY.test(e))&&e>-1&&e%1==0&&e<t}var Pf=QY,eG=XY,tG=Df,nG=Kn,rG=If,iG=Pf,oG=av,aG=Object.prototype,sG=aG.hasOwnProperty;function lG(e,t){var n=nG(e),r=!n&&tG(e),i=!n&&!r&&rG(e),o=!n&&!r&&!i&&oG(e),a=n||r||i||o,s=a?eG(e.length,String):[],l=s.length;for(var c in e)(t||sG.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||iG(c,l)))&&s.push(c);return s}var CS=lG;function cG(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var uG=cG,dG=Qr,fG=nv,hG=uG,pG=Object.prototype,mG=pG.hasOwnProperty;function gG(e){if(!dG(e))return hG(e);var t=fG(e),n=[];for(var r in e)r=="constructor"&&(t||!mG.call(e,r))||n.push(r);return n}var vG=gG,bG=CS,yG=vG,xG=$s;function wG(e){return xG(e)?bG(e,!0):yG(e)}var Dc=wG,_G=Ms,CG=Dc;function SG(e){return _G(e,CG(e))}var TG=SG,Ky=dS,$G=hS,kG=mS,MG=gS,EG=bS,Jy=Df,Qy=Kn,OG=xS,AG=If,RG=Ef,DG=Qr,IG=iv,jG=av,e2=_S,PG=TG;function NG(e,t,n,r,i,o,a){var s=e2(e,n),l=e2(t,n),c=a.get(l);if(c){Ky(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var f=Qy(l),h=!f&&AG(l),p=!f&&!h&&jG(l);u=l,f||h||p?Qy(s)?u=s:OG(s)?u=MG(s):h?(d=!1,u=$G(l,!0)):p?(d=!1,u=kG(l,!0)):u=[]:IG(l)||Jy(l)?(u=s,Jy(s)?u=PG(s):(!DG(s)||RG(s))&&(u=EG(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Ky(e,n,u)}var LG=NG,FG=Rf,BG=dS,zG=fS,WG=LG,UG=Qr,HG=Dc,VG=_S;function SS(e,t,n,r,i){e!==t&&zG(t,function(o,a){if(i||(i=new FG),UG(o))WG(e,t,a,n,SS,r,i);else{var s=r?r(VG(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),BG(e,a,s)}},HG)}var qG=SS;function YG(e){return e}var Nf=YG;function GG(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ZG=GG,XG=ZG,t2=Math.max;function KG(e,t,n){return t=t2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=t2(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),XG(e,this,s)}}var TS=KG;function JG(e){return function(){return e}}var QG=JG,eZ=QG,n2=uS,tZ=Nf,nZ=n2?function(e,t){return n2(e,"toString",{configurable:!0,enumerable:!1,value:eZ(t),writable:!0})}:tZ,rZ=nZ,iZ=800,oZ=16,aZ=Date.now;function sZ(e){var t=0,n=0;return function(){var r=aZ(),i=oZ-(r-n);if(n=r,i>0){if(++t>=iZ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lZ=sZ,cZ=rZ,uZ=lZ,dZ=uZ(cZ),$S=dZ,fZ=Nf,hZ=TS,pZ=$S;function mZ(e,t){return pZ(hZ(e,t,fZ),e+"")}var lv=mZ,gZ=Rc,vZ=$s,bZ=Pf,yZ=Qr;function xZ(e,t,n){if(!yZ(n))return!1;var r=typeof t;return(r=="number"?vZ(n)&&bZ(t,n.length):r=="string"&&t in n)?gZ(n[t],e):!1}var kS=xZ,wZ=lv,_Z=kS;function CZ(e){return wZ(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&_Z(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var SZ=CZ,TZ=qG,$Z=SZ,kZ=$Z(function(e,t,n){TZ(e,t,n)}),MZ=kZ;const MS=nn(MZ);var EZ=$i,OZ=vr,AZ="[object Symbol]";function RZ(e){return typeof e=="symbol"||OZ(e)&&EZ(e)==AZ}var Lf=RZ,DZ=Kn,IZ=Lf,jZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PZ=/^\w*$/;function NZ(e,t){if(DZ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||IZ(e)?!0:PZ.test(e)||!jZ.test(e)||t!=null&&e in Object(t)}var cv=NZ,ES=J0,LZ="Expected a function";function uv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LZ);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(uv.Cache||ES),n}uv.Cache=ES;var FZ=uv,BZ=FZ,zZ=500;function WZ(e){var t=BZ(e,function(r){return n.size===zZ&&n.clear(),r}),n=t.cache;return t}var UZ=WZ,HZ=UZ,VZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qZ=/\\(\\)?/g,YZ=HZ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VZ,function(n,r,i,o){t.push(i?o.replace(qZ,"$1"):r||n)}),t}),GZ=YZ;function ZZ(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Ff=ZZ,r2=_s,XZ=Ff,KZ=Kn,JZ=Lf,i2=r2?r2.prototype:void 0,o2=i2?i2.toString:void 0;function OS(e){if(typeof e=="string")return e;if(KZ(e))return XZ(e,OS)+"";if(JZ(e))return o2?o2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var QZ=OS,eX=QZ;function tX(e){return e==null?"":eX(e)}var AS=tX,nX=Kn,rX=cv,iX=GZ,oX=AS;function aX(e,t){return nX(e)?e:rX(e,t)?[e]:iX(oX(e))}var Es=aX,sX=Lf;function lX(e){if(typeof e=="string"||sX(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Os=lX,cX=Es,uX=Os;function dX(e,t){t=cX(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[uX(t[n++])];return n&&n==r?e:void 0}var Ic=dX,fX=Ic;function hX(e,t,n){var r=e==null?void 0:fX(e,t);return r===void 0?n:r}var RS=hX;const Yr=nn(RS);var pX=sv,mX=Es,gX=Pf,a2=Qr,vX=Os;function bX(e,t,n,r){if(!a2(e))return e;t=mX(t,e);for(var i=-1,o=t.length,a=o-1,s=e;s!=null&&++i<o;){var l=vX(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=a2(u)?u:gX(t[i+1])?[]:{})}pX(s,l,c),s=s[l]}return e}var DS=bX,yX=DS;function xX(e,t,n){return e==null?e:yX(e,t,n)}var wX=xX;const cl=nn(wX);function Ym(){return Ym=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},Ym.apply(null,arguments)}function _X(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 CX=["outlineWidth","outlineColor","outlineOpacity"],SX=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,_X(e,CX)},TX=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],$X=function(e,t){return Ym({},t,e)},kX=function(e,t){var n=MS({},e,t);return TX.forEach(function(r){cl(n,r,$X(Yr(n,r),n.text))}),n},IS=function(e,t){return t?MS({},e,t):e},MX={background:"transparent",text:{fontFamily:"sans-serif",fontSize:11,fill:"#333333",outlineWidth:0,outlineColor:"#ffffff",outlineOpacity:1},axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}},EX=function(e){return v.useMemo(function(){return kX(MX,e)},[e])},OX=function(e,t){return v.useMemo(function(){return IS(e,t)},[e,t])},jS=v.createContext(null),AX={},RX=function(e){var t=e.theme,n=t===void 0?AX:t,r=e.children,i=EX(n);return y.jsx(jS.Provider,{value:i,children:r})},Lt=function(){var e=v.useContext(jS);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function Vo(){return Vo=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},Vo.apply(null,arguments)}var DX=["basic","chip","container","table","tableCell","tableCellValue"],IX={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},s2=function(e,t){return"translate("+e+"px, "+t+"px)"},PS=v.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=Nie(),u=c[0],d=c[1],f=v.useRef(!1),h=void 0,p=!1,m=d.width>0&&d.height>0,g=Math.round(n[0]),x=Math.round(n[1]);m&&(r==="top"?(g-=d.width/2,x-=d.height+14):r==="right"?(g+=14,x-=d.height/2):r==="bottom"?(g-=d.width/2,x+=14):r==="left"?(g-=d.width+14,x-=d.height/2):r==="center"&&(g-=d.width/2,x-=d.height/2),h={transform:s2(g,x)},f.current||(p=!0),f.current=[g,x]);var _=Kr({to:h,config:l,immediate:!s||p}),w=o.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var C=function(S,M){if(S==null)return{};var $={};for(var k in S)if({}.hasOwnProperty.call(S,k)){if(M.indexOf(k)!==-1)continue;$[k]=S[k]}return $}(w,DX),b=Vo({},IX,C,{transform:(t=_.transform)!=null?t:s2(g,x),opacity:_.transform?1:0});return y.jsx(Ht.div,{ref:u,style:b,children:i})});PS.displayName="TooltipWrapper";var NS=v.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return y.jsx("span",{style:Vo({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),dv=v.memo(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=o!==void 0&&o,s=e.color,l=e.renderContent,c=Lt(),u=cs(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=y.jsxs("div",{style:c.tooltip.basic,children:[a&&y.jsx(NS,{color:s,style:c.tooltip.chip}),d!==void 0?y.jsxs("span",{children:[n,": ",y.jsx("strong",{children:""+d})]}):n]})}return y.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),jX={width:"100%",borderCollapse:"collapse"},LS=v.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,o=e.renderContent,a=Lt();return i.length?(t=typeof o=="function"?o():y.jsxs("div",{children:[n&&n,y.jsx("table",{style:Vo({},jX,a.tooltip.table),children:y.jsx("tbody",{children:i.map(function(s,l){return y.jsx("tr",{children:s.map(function(c,u){return y.jsx("td",{style:a.tooltip.tableCell,children:c},u)})},l)})})})]}),y.jsx("div",{style:a.tooltip.container,children:t})):null});LS.displayName="TableTooltip";var Gm=v.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=v.useMemo(function(){return Vo({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),u=Kr({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return y.jsx(Ht.line,Vo({},u,{fill:"none",style:c}))});Gm.displayName="CrosshairLine";var Zm=v.memo(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return o==="cross"?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):o==="top-left"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):o==="top"?t={x0:a,x1:a,y0:0,y1:s}:o==="top-right"?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):o==="right"?n={x0:a,x1:r,y0:s,y1:s}:o==="bottom-right"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):o==="bottom"?t={x0:a,x1:a,y0:s,y1:i}:o==="bottom-left"?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):o==="left"?n={x0:0,x1:a,y0:s,y1:s}:o==="x"?t={x0:a,x1:a,y0:0,y1:i}:o==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),y.jsxs(y.Fragment,{children:[t&&y.jsx(Gm,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&y.jsx(Gm,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});Zm.displayName="Crosshair";var FS=v.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),Xm={isVisible:!1,position:[null,null],content:null,anchor:null},BS=v.createContext(Xm),PX=function(e){var t=v.useState(Xm),n=t[0],r=t[1],i=v.useCallback(function(s,l,c){var u=l[0],d=l[1];c===void 0&&(c="top"),r({isVisible:!0,position:[u,d],anchor:c,content:s})},[r]),o=v.useCallback(function(s,l,c){c===void 0&&(c="top");var u=e.current.getBoundingClientRect(),d=e.current.offsetWidth,f=d===u.width?1:d/u.width,h="touches"in l?l.touches[0]:l,p=h.clientX,m=h.clientY,g=(p-u.left)*f,x=(m-u.top)*f;c!=="left"&&c!=="right"||(c=g<u.width/2?"right":"left"),r({isVisible:!0,position:[g,x],anchor:c,content:s})},[e,r]),a=v.useCallback(function(){r(Xm)},[r]);return{actions:v.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:o,hideTooltip:a}},[i,o,a]),state:n}},ki=function(){var e=v.useContext(FS);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},NX=function(){var e=v.useContext(BS);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},LX=function(e){return e.isVisible},FX=function(){var e=NX();return LX(e)?y.jsx(PS,{position:e.position,anchor:e.anchor,children:e.content}):null},BX=function(e){var t=e.container,n=e.children,r=PX(t),i=r.actions,o=r.state;return y.jsx(FS.Provider,{value:i,children:y.jsx(BS.Provider,{value:o,children:n})})},zX=$i,WX=Kn,UX=vr,HX="[object String]";function VX(e){return typeof e=="string"||!WX(e)&&UX(e)&&zX(e)==HX}var qX=VX;const YX=nn(qX);let dr;typeof window<"u"?dr=window:typeof self<"u"?dr=self:dr=global;let Km=null,Jm=null;const l2=20,Sp=dr.clearTimeout,c2=dr.setTimeout,Tp=dr.cancelAnimationFrame||dr.mozCancelAnimationFrame||dr.webkitCancelAnimationFrame,u2=dr.requestAnimationFrame||dr.mozRequestAnimationFrame||dr.webkitRequestAnimationFrame;Tp==null||u2==null?(Km=Sp,Jm=function(t){return c2(t,l2)}):(Km=function([t,n]){Tp(t),Sp(n)},Jm=function(t){const n=u2(function(){Sp(r),t()}),r=c2(function(){Tp(n),t()},l2);return[n,r]});function GX(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(x){const _=x.__resizeTriggers__,w=_.firstElementChild,C=_.lastElementChild,b=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,b.style.width=w.offsetWidth+1+"px",b.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},o=function(x){return x.offsetWidth!==x.__resizeLast__.width||x.offsetHeight!==x.__resizeLast__.height},s=function(x){if(x.target.className&&typeof x.target.className.indexOf=="function"&&x.target.className.indexOf("contract-trigger")<0&&x.target.className.indexOf("expand-trigger")<0)return;const _=this;a(this),this.__resizeRAF__&&Km(this.__resizeRAF__),this.__resizeRAF__=Jm(function(){o(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(b){b.call(_,x)}))})};let f=!1,h="";r="animationstart";const p="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{const x=document.createElement("fakeelement");if(x.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<p.length;_++)if(x.style[p[_]+"AnimationName"]!==void 0){g=p[_],h="-"+g.toLowerCase()+"-",r=m[_],f=!0;break}}}n="resizeanim",t="@"+h+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=h+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const h=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',p=f.head||f.getElementsByTagName("head")[0],m=f.createElement("style");m.id="detectElementResize",m.type="text/css",e!=null&&m.setAttribute("nonce",e),m.styleSheet?m.styleSheet.cssText=h:m.appendChild(f.createTextNode(h)),p.appendChild(m)}};return{addResizeListener:function(f,h){if(l)f.attachEvent("onresize",h);else{if(!f.__resizeTriggers__){const p=f.ownerDocument,m=dr.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(p),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const g=p.createElement("div");g.className="expand-trigger",g.appendChild(p.createElement("div"));const x=p.createElement("div");x.className="contract-trigger",f.__resizeTriggers__.appendChild(g),f.__resizeTriggers__.appendChild(x),f.appendChild(f.__resizeTriggers__),a(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&a(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(h)}},removeResizeListener:function(f,h){if(l)f.detachEvent("onresize",h);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(h),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",s,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class ZX extends v.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},a=parseFloat(o.paddingLeft||"0"),s=parseFloat(o.paddingRight||"0"),l=parseFloat(o.paddingTop||"0"),c=parseFloat(o.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-a-s;if(!n&&this.state.height!==d||!r&&this.state.width!==f){this.setState({height:d,width:f});const h=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof i=="function"&&i({height:d,width:f,get scaledHeight(){return h(),d},get scaledWidth(){return h(),f}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=GX(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:h}=this.state,p={overflow:"visible"},m={};let g=!1;return i||(f===0&&(g=!0),p.height=0,m.height=f,m.scaledHeight=f),o||(h===0&&(g=!0),p.width=0,m.width=h,m.scaledWidth=h),a&&(g=!1),v.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!g&&t(m))}}function Bf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function fv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function As(){}var qo=.7,as=1/qo,Ba="\\s*([+-]?\\d+)\\s*",Jl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",XX=/^#([0-9a-f]{3,8})$/,KX=new RegExp(`^rgb\\(${Ba},${Ba},${Ba}\\)$`),JX=new RegExp(`^rgb\\(${zr},${zr},${zr}\\)$`),QX=new RegExp(`^rgba\\(${Ba},${Ba},${Ba},${Jl}\\)$`),eK=new RegExp(`^rgba\\(${zr},${zr},${zr},${Jl}\\)$`),tK=new RegExp(`^hsl\\(${Jl},${zr},${zr}\\)$`),nK=new RegExp(`^hsla\\(${Jl},${zr},${zr},${Jl}\\)$`),d2={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};Bf(As,Ql,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:f2,formatHex:f2,formatHex8:rK,formatHsl:iK,formatRgb:h2,toString:h2});function f2(){return this.rgb().formatHex()}function rK(){return this.rgb().formatHex8()}function iK(){return WS(this).formatHsl()}function h2(){return this.rgb().formatRgb()}function Ql(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=XX.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?p2(t):n===3?new Mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?uu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?uu(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=KX.exec(e))?new Mn(t[1],t[2],t[3],1):(t=JX.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QX.exec(e))?uu(t[1],t[2],t[3],t[4]):(t=eK.exec(e))?uu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tK.exec(e))?v2(t[1],t[2]/100,t[3]/100,1):(t=nK.exec(e))?v2(t[1],t[2]/100,t[3]/100,t[4]):d2.hasOwnProperty(e)?p2(d2[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function p2(e){return new Mn(e>>16&255,e>>8&255,e&255,1)}function uu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function zS(e){return e instanceof As||(e=Ql(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function ss(e,t,n,r){return arguments.length===1?zS(e):new Mn(e,t,n,r??1)}function Mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Bf(Mn,ss,fv(As,{brighter(e){return e=e==null?as:Math.pow(as,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mn(jo(this.r),jo(this.g),jo(this.b),pd(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:m2,formatHex:m2,formatHex8:oK,formatRgb:g2,toString:g2}));function m2(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}`}function oK(){return`#${Mo(this.r)}${Mo(this.g)}${Mo(this.b)}${Mo((isNaN(this.opacity)?1:this.opacity)*255)}`}function g2(){const e=pd(this.opacity);return`${e===1?"rgb(":"rgba("}${jo(this.r)}, ${jo(this.g)}, ${jo(this.b)}${e===1?")":`, ${e})`}`}function pd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Mo(e){return e=jo(e),(e<16?"0":"")+e.toString(16)}function v2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,n,r)}function WS(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof As||(e=Ql(e)),!e)return new wr;if(e instanceof wr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new wr(a,s,l,e.opacity)}function aK(e,t,n,r){return arguments.length===1?WS(e):new wr(e,t,n,r??1)}function wr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Bf(wr,aK,fv(As,{brighter(e){return e=e==null?as:Math.pow(as,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new wr(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 Mn($p(e>=240?e-240:e+120,i,r),$p(e,i,r),$p(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wr(b2(this.h),du(this.s),du(this.l),pd(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=pd(this.opacity);return`${e===1?"hsl(":"hsla("}${b2(this.h)}, ${du(this.s)*100}%, ${du(this.l)*100}%${e===1?")":`, ${e})`}`}}));function b2(e){return e=(e||0)%360,e<0?e+360:e}function du(e){return Math.max(0,Math.min(1,e||0))}function $p(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 sK=Math.PI/180,lK=180/Math.PI;var US=-.14861,hv=1.78277,pv=-.29227,zf=-.90649,ec=1.97294,y2=ec*zf,x2=ec*hv,w2=hv*pv-zf*US;function cK(e){if(e instanceof Po)return new Po(e.h,e.s,e.l,e.opacity);e instanceof Mn||(e=zS(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(w2*r+y2*t-x2*n)/(w2+y2-x2),o=r-i,a=(ec*(n-i)-pv*o)/zf,s=Math.sqrt(a*a+o*o)/(ec*i*(1-i)),l=s?Math.atan2(a,o)*lK-120:NaN;return new Po(l<0?l+360:l,s,i,e.opacity)}function Gr(e,t,n,r){return arguments.length===1?cK(e):new Po(e,t,n,r??1)}function Po(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Bf(Po,Gr,fv(As,{brighter(e){return e=e==null?as:Math.pow(as,e),new Po(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qo:Math.pow(qo,e),new Po(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*sK,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Mn(255*(t+n*(US*r+hv*i)),255*(t+n*(pv*r+zf*i)),255*(t+n*(ec*r)),this.opacity)}}));function uK(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function dK(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],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return uK((n-r/t)*t,a,i,o,s)}}const Wf=e=>()=>e;function HS(e,t){return function(n){return e+n*t}}function fK(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 hK(e,t){var n=t-e;return n?HS(e,n>180||n<-180?n-360*Math.round(n/360):n):Wf(isNaN(e)?t:e)}function pK(e){return(e=+e)==1?za:function(t,n){return n-t?fK(t,n,e):Wf(isNaN(t)?n:t)}}function za(e,t){var n=t-e;return n?HS(e,n):Wf(isNaN(e)?t:e)}const _2=function e(t){var n=pK(t);function r(i,o){var a=n((i=ss(i)).r,(o=ss(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),c=za(i.opacity,o.opacity);return function(u){return i.r=a(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function mK(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=ss(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=o(l),s+""}}}var gK=mK(dK);function vK(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function bK(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yK(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=mv(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function xK(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function tc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function wK(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]=mv(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Qm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kp=new RegExp(Qm.source,"g");function _K(e){return function(){return e}}function CK(e){return function(t){return e(t)+""}}function VS(e,t){var n=Qm.lastIndex=kp.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Qm.exec(e))&&(i=kp.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:tc(r,i)})),n=kp.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?CK(l[0].x):_K(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function mv(e,t){var n=typeof t,r;return t==null||n==="boolean"?Wf(t):(n==="number"?tc:n==="string"?(r=Ql(t))?(t=r,_2):VS:t instanceof Ql?_2:t instanceof Date?xK:bK(t)?vK:Array.isArray(t)?yK:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?wK:tc)(e,t)}function qS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function YS(e){return function t(n){n=+n;function r(i,o){var a=e((i=Gr(i)).h,(o=Gr(o)).h),s=za(i.s,o.s),l=za(i.l,o.l),c=za(i.opacity,o.opacity);return function(u){return i.h=a(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}YS(hK);var gv=YS(za),SK="__lodash_hash_undefined__";function TK(e){return this.__data__.set(e,SK),this}var $K=TK;function kK(e){return this.__data__.has(e)}var MK=kK,EK=J0,OK=$K,AK=MK;function md(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new EK;++t<n;)this.add(e[t])}md.prototype.add=md.prototype.push=OK;md.prototype.has=AK;var vv=md;function RK(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var DK=RK;function IK(e){return e!==e}var jK=IK;function PK(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var NK=PK,LK=DK,FK=jK,BK=NK;function zK(e,t,n){return t===t?BK(e,t,n):LK(e,FK,n)}var WK=zK,UK=WK;function HK(e,t){var n=e==null?0:e.length;return!!n&&UK(e,t,0)>-1}var GS=HK;function VK(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var ZS=VK;function qK(e,t){return e.has(t)}var bv=qK,YK=vv,GK=GS,ZK=ZS,XK=Ff,KK=ks,JK=bv,QK=200;function eJ(e,t,n,r){var i=-1,o=GK,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=XK(t,KK(n))),r?(o=ZK,a=!1):t.length>=QK&&(o=JK,a=!1,t=new YK(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,a&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l}var tJ=eJ,nJ=tJ,rJ=lv,iJ=xS,oJ=rJ(function(e,t){return iJ(e)?nJ(e,t):[]}),aJ=oJ;const XS=nn(aJ);function yt(e){return function(){return e}}const C2=Math.abs,Sn=Math.atan2,vo=Math.cos,sJ=Math.max,Mp=Math.min,jr=Math.sin,Ra=Math.sqrt,$n=1e-12,nc=Math.PI,gd=nc/2,Au=2*nc;function lJ(e){return e>1?0:e<-1?nc:Math.acos(e)}function S2(e){return e>=1?gd:e<=-1?-gd:Math.asin(e)}const eg=Math.PI,tg=2*eg,wo=1e-6,cJ=tg-wo;function KS(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function uJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KS;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let dJ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?KS:uJ(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,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,c=i-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>wo)if(!(Math.abs(d*l-c*u)>wo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=i-s,m=l*l+c*c,g=h*h+p*p,x=Math.sqrt(m),_=Math.sqrt(f),w=o*Math.tan((eg-Math.acos((m+f-g)/(2*x*_)))/2),C=w/_,b=w/x;Math.abs(C-1)>wo&&this._append`L${t+C*u},${n+C*d}`,this._append`A${o},${o},0,0,${+(d*h>u*p)},${this._x1=t+b*l},${this._y1=n+b*c}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^a,f=a?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>wo||Math.abs(this._y1-u)>wo)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%tg+tg),f>cJ?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>wo&&this._append`A${r},${r},0,${+(f>=eg)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}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 yv(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 dJ(t)}function fJ(e){return e.innerRadius}function hJ(e){return e.outerRadius}function pJ(e){return e.startAngle}function mJ(e){return e.endAngle}function gJ(e){return e&&e.padAngle}function vJ(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,f=d*l-u*c;if(!(f*f<$n))return f=(u*(t-o)-d*(e-i))/f,[e+f*l,t+f*c]}function fu(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/Ra(s*s+l*l),u=c*l,d=-c*s,f=e+u,h=t+d,p=n+u,m=r+d,g=(f+p)/2,x=(h+m)/2,_=p-f,w=m-h,C=_*_+w*w,b=i-o,S=f*m-p*h,M=(w<0?-1:1)*Ra(sJ(0,b*b*C-S*S)),$=(S*w-_*M)/C,k=(-S*_-w*M)/C,R=(S*w+_*M)/C,T=(-S*_+w*M)/C,E=$-g,A=k-x,I=R-g,j=T-x;return E*E+A*A>I*I+j*j&&($=R,k=T),{cx:$,cy:k,x01:-u,y01:-d,x11:$*(i/b-1),y11:k*(i/b-1)}}function bJ(){var e=fJ,t=hJ,n=yt(0),r=null,i=pJ,o=mJ,a=gJ,s=null,l=yv(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-gd,m=o.apply(this,arguments)-gd,g=C2(m-p),x=m>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>$n))s.moveTo(0,0);else if(g>Au-$n)s.moveTo(h*vo(p),h*jr(p)),s.arc(0,0,h,p,m,!x),f>$n&&(s.moveTo(f*vo(m),f*jr(m)),s.arc(0,0,f,m,p,x));else{var _=p,w=m,C=p,b=m,S=g,M=g,$=a.apply(this,arguments)/2,k=$>$n&&(r?+r.apply(this,arguments):Ra(f*f+h*h)),R=Mp(C2(h-f)/2,+n.apply(this,arguments)),T=R,E=R,A,I;if(k>$n){var j=S2(k/f*jr($)),D=S2(k/h*jr($));(S-=j*2)>$n?(j*=x?1:-1,C+=j,b-=j):(S=0,C=b=(p+m)/2),(M-=D*2)>$n?(D*=x?1:-1,_+=D,w-=D):(M=0,_=w=(p+m)/2)}var O=h*vo(_),L=h*jr(_),z=f*vo(b),N=f*jr(b);if(R>$n){var H=h*vo(w),Y=h*jr(w),q=f*vo(C),Z=f*jr(C),X;if(g<nc)if(X=vJ(O,L,q,Z,H,Y,z,N)){var J=O-X[0],ee=L-X[1],W=H-X[0],F=Y-X[1],B=1/jr(lJ((J*W+ee*F)/(Ra(J*J+ee*ee)*Ra(W*W+F*F)))/2),V=Ra(X[0]*X[0]+X[1]*X[1]);T=Mp(R,(f-V)/(B-1)),E=Mp(R,(h-V)/(B+1))}else T=E=0}M>$n?E>$n?(A=fu(q,Z,O,L,h,E,x),I=fu(H,Y,z,N,h,E,x),s.moveTo(A.cx+A.x01,A.cy+A.y01),E<R?s.arc(A.cx,A.cy,E,Sn(A.y01,A.x01),Sn(I.y01,I.x01),!x):(s.arc(A.cx,A.cy,E,Sn(A.y01,A.x01),Sn(A.y11,A.x11),!x),s.arc(0,0,h,Sn(A.cy+A.y11,A.cx+A.x11),Sn(I.cy+I.y11,I.cx+I.x11),!x),s.arc(I.cx,I.cy,E,Sn(I.y11,I.x11),Sn(I.y01,I.x01),!x))):(s.moveTo(O,L),s.arc(0,0,h,_,w,!x)):s.moveTo(O,L),!(f>$n)||!(S>$n)?s.lineTo(z,N):T>$n?(A=fu(z,N,H,Y,f,-T,x),I=fu(O,L,q,Z,f,-T,x),s.lineTo(A.cx+A.x01,A.cy+A.y01),T<R?s.arc(A.cx,A.cy,T,Sn(A.y01,A.x01),Sn(I.y01,I.x01),!x):(s.arc(A.cx,A.cy,T,Sn(A.y01,A.x01),Sn(A.y11,A.x11),!x),s.arc(0,0,f,Sn(A.cy+A.y11,A.cx+A.x11),Sn(I.cy+I.y11,I.cx+I.x11),x),s.arc(I.cx,I.cy,T,Sn(I.y11,I.x11),Sn(I.y01,I.x01),!x))):s.arc(0,0,f,b,C,x)}if(s.closePath(),u)return s=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-nc/2;return[vo(d)*u,jr(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:yt(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:yt(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:yt(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:yt(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:yt(+u),c):i},c.endAngle=function(u){return arguments.length?(o=typeof u=="function"?u:yt(+u),c):o},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:yt(+u),c):a},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Uf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function JS(e){this._context=e}JS.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 xv(e){return new JS(e)}function QS(e){return e[0]}function e6(e){return e[1]}function wv(e,t){var n=yt(!0),r=null,i=xv,o=null,a=yv(s);e=typeof e=="function"?e:e===void 0?QS:yt(e),t=typeof t=="function"?t:t===void 0?e6:yt(t);function s(l){var c,u=(l=Uf(l)).length,d,f=!1,h;for(r==null&&(o=i(h=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(d,c,l),+t(d,c,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:yt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:yt(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:yt(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function yJ(e,t,n){var r=null,i=yt(!0),o=null,a=xv,s=null,l=yv(c);e=typeof e=="function"?e:e===void 0?QS:yt(+e),t=typeof t=="function"?t:yt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?e6:yt(+n);function c(d){var f,h,p,m=(d=Uf(d)).length,g,x=!1,_,w=new Array(m),C=new Array(m);for(o==null&&(s=a(_=l())),f=0;f<=m;++f){if(!(f<m&&i(g=d[f],f,d))===x)if(x=!x)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=f-1;p>=h;--p)s.point(w[p],C[p]);s.lineEnd(),s.areaEnd()}x&&(w[f]=+e(g,f,d),C[f]=+t(g,f,d),s.point(r?+r(g,f,d):w[f],n?+n(g,f,d):C[f]))}if(_)return s=null,_+""||null}function u(){return wv().defined(i).curve(a).context(o)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:yt(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:yt(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:yt(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:yt(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:yt(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,o!=null&&(s=a(o)),c):a},c.context=function(d){return arguments.length?(d==null?o=s=null:s=a(o=d),c):o},c}function xJ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function wJ(e){return e}function _J(){var e=wJ,t=xJ,n=null,r=yt(0),i=yt(Au),o=yt(0);function a(s){var l,c=(s=Uf(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(Au,Math.max(-Au,i.apply(this,arguments)-m)),x,_=Math.min(Math.abs(g)/c,o.apply(this,arguments)),w=_*(g<0?-1:1),C;for(l=0;l<c;++l)(C=p[h[l]=l]=+e(s[l],l,s))>0&&(f+=C);for(t!=null?h.sort(function(b,S){return t(p[b],p[S])}):n!=null&&h.sort(function(b,S){return n(s[b],s[S])}),l=0,d=f?(g-c*w)/f:0;l<c;++l,m=x)u=h[l],C=p[u],x=m+(C>0?C*d:0)+w,p[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:x,padAngle:_};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:yt(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:yt(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:yt(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:yt(+s),a):o},a}function eo(){}function vd(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 Hf(e){this._context=e}Hf.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:vd(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:vd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CJ(e){return new Hf(e)}function t6(e){this._context=e}t6.prototype={areaStart:eo,areaEnd:eo,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:vd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SJ(e){return new t6(e)}function n6(e){this._context=e}n6.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:vd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function TJ(e){return new n6(e)}function r6(e,t){this._basis=new Hf(e),this._beta=t}r6.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],o=e[n]-r,a=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*o),this._beta*t[s]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const $J=function e(t){function n(r){return t===1?new Hf(r):new r6(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function bd(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 _v(e,t){this._context=e,this._k=(1-t)/6}_v.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:bd(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:bd(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 kJ=function e(t){function n(r){return new _v(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Cv(e,t){this._context=e,this._k=(1-t)/6}Cv.prototype={areaStart:eo,areaEnd:eo,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:bd(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 MJ=function e(t){function n(r){return new Cv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Sv(e,t){this._context=e,this._k=(1-t)/6}Sv.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:bd(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 EJ=function e(t){function n(r){return new Sv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Tv(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>$n){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>$n){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function i6(e,t){this._context=e,this._alpha=t}i6.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:Tv(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 OJ=function e(t){function n(r){return t?new i6(r,t):new _v(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function o6(e,t){this._context=e,this._alpha=t}o6.prototype={areaStart:eo,areaEnd:eo,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:Tv(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 AJ=function e(t){function n(r){return t?new o6(r,t):new Cv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function a6(e,t){this._context=e,this._alpha=t}a6.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:Tv(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 RJ=function e(t){function n(r){return t?new a6(r,t):new Sv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function s6(e){this._context=e}s6.prototype={areaStart:eo,areaEnd:eo,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 DJ(e){return new s6(e)}function T2(e){return e<0?-1:1}function $2(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(T2(o)+T2(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function k2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ep(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function yd(e){this._context=e}yd.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:Ep(this,this._t0,k2(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,Ep(this,k2(this,n=$2(this,e,t)),n);break;default:Ep(this,this._t0,n=$2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function l6(e){this._context=new c6(e)}(l6.prototype=Object.create(yd.prototype)).point=function(e,t){yd.prototype.point.call(this,t,e)};function c6(e){this._context=e}c6.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function IJ(e){return new yd(e)}function jJ(e){return new l6(e)}function u6(e){this._context=e}u6.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=M2(e),i=M2(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(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 M2(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function PJ(e){return new u6(e)}function Vf(e,t){this._context=e,this._t=t}Vf.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 NJ(e){return new Vf(e,.5)}function LJ(e){return new Vf(e,0)}function FJ(e){return new Vf(e,1)}function E2(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function O2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function BJ(e,t){return e[t]}function zJ(e){const t=[];return t.key=e,t}function WJ(){var e=yt([]),t=O2,n=E2,r=BJ;function i(o){var a=Array.from(e.apply(this,arguments),zJ),s,l=a.length,c=-1,u;for(const d of o)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,o)]).data=d;for(s=0,u=Uf(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:yt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:yt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?O2:typeof o=="function"?o:yt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??E2,i):n},i}function UJ(e,t){if((l=e.length)>0)for(var n,r=0,i,o,a,s,l,c=e[t[0]].length;r<c;++r)for(a=s=0,n=0;n<l;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Ru(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function HJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $v(e){let t,n,r;e.length!==2?(t=Ru,n=(s,l)=>Ru(e(s),l),r=(s,l)=>e(s)-l):(t=e===Ru||e===HJ?e:VJ,n=e,r=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=i(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:i,center:a,right:o}}function VJ(){return 0}function qJ(e){return e===null?NaN:+e}const YJ=$v(Ru),GJ=YJ.right;$v(qJ).center;class A2 extends Map{constructor(t,n=KJ){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(R2(this,t))}has(t){return super.has(R2(this,t))}set(t,n){return super.set(ZJ(this,t),n)}delete(t){return super.delete(XJ(this,t))}}function R2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ZJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function XJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function KJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}const JJ=Math.sqrt(50),QJ=Math.sqrt(10),eQ=Math.sqrt(2);function xd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=JJ?10:o>=QJ?5:o>=eQ?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?xd(e,t,n*2):[s,l,c]}function ng(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?xd(t,e,n):xd(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function rg(e,t,n){return t=+t,e=+e,n=+n,xd(e,t,n)[2]}function ig(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?rg(t,e,n):rg(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function tQ(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,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function na(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const D2=Symbol("implicit");function Eo(){var e=new A2,t=[],n=[],r=D2;function i(o){let a=e.get(o);if(a===void 0){if(r!==D2)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new A2;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Eo(t,n).unknown(r)},na.apply(i,arguments),i}function kv(){var e=Eo().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,h=i<r,p=h?i:r,m=h?r:i;o=(m-p)/Math.max(1,f-l+c*2),s&&(o=Math.floor(o)),p+=(m-p-o*(f-l))*u,a=o*(1-l),s&&(p=Math.round(p),a=Math.round(a));var g=tQ(f).map(function(x){return p+o*x});return n(h?g.reverse():g)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,i]=f,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(f){return[r,i]=f,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return kv(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},na.apply(d(),arguments)}function d6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return d6(t())},e}function nQ(){return d6(kv.apply(null,arguments).paddingInner(1))}function rQ(e){return function(){return e}}function iQ(e){return+e}var I2=[0,1];function Da(e){return e}function og(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:rQ(isNaN(t)?NaN:.5)}function oQ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function aQ(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=og(i,r),o=n(a,o)):(r=og(r,i),o=n(o,a)),function(s){return o(r(s))}}function sQ(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=og(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=GJ(e,s,1,r)-1;return o[l](i[l](s))}}function qf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Mv(){var e=I2,t=I2,n=mv,r,i,o,a=Da,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Da&&(a=oQ(e[0],e[f-1])),s=f>2?sQ:aQ,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?o:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(i((c||(c=s(t,e.map(r),tc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,iQ),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=qS,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Da,u()):a!==Da},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(o=f,d):o},function(f,h){return r=f,i=h,u()}}function f6(){return Mv()(Da,Da)}function lQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function wd(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 ls(e){return e=wd(Math.abs(e)),e?e[1]:NaN}function cQ(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function uQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var dQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rc(e){if(!(t=dQ.exec(e)))throw new Error("invalid format: "+e);var t;return new Ev({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]})}rc.prototype=Ev.prototype;function Ev(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+""}Ev.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 fQ(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 h6;function hQ(e,t){var n=wd(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(h6=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+wd(e,Math.max(0,t+o-1))[0]}function j2(e,t){var n=wd(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 P2={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:lQ,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return j2(e*100,t)},r:j2,s:hQ,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function N2(e){return e}var L2=Array.prototype.map,F2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pQ(e){var t=e.grouping===void 0||e.thousands===void 0?N2:cQ(L2.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+"",o=e.numerals===void 0?N2:uQ(L2.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=rc(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,g=d.zero,x=d.width,_=d.comma,w=d.precision,C=d.trim,b=d.type;b==="n"?(_=!0,b="g"):P2[b]||(w===void 0&&(w=12),C=!0,b="g"),(g||f==="0"&&h==="=")&&(g=!0,f="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",M=m==="$"?r:/[%p]/.test(b)?a:"",$=P2[b],k=/[defgprs%]/.test(b);w=w===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function R(T){var E=S,A=M,I,j,D;if(b==="c")A=$(T)+A,T="";else{T=+T;var O=T<0||1/T<0;if(T=isNaN(T)?l:$(Math.abs(T),w),C&&(T=fQ(T)),O&&+T==0&&p!=="+"&&(O=!1),E=(O?p==="("?p:s:p==="-"||p==="("?"":p)+E,A=(b==="s"?F2[8+h6/3]:"")+A+(O&&p==="("?")":""),k){for(I=-1,j=T.length;++I<j;)if(D=T.charCodeAt(I),48>D||D>57){A=(D===46?i+T.slice(I+1):T.slice(I))+A,T=T.slice(0,I);break}}}_&&!g&&(T=t(T,1/0));var L=E.length+T.length+A.length,z=L<x?new Array(x-L+1).join(f):"";switch(_&&g&&(T=t(z+T,z.length?x-A.length:1/0),z=""),h){case"<":T=E+T+A+z;break;case"=":T=E+z+T+A;break;case"^":T=z.slice(0,L=z.length>>1)+E+T+A+z.slice(L);break;default:T=z+E+T+A;break}return o(T)}return R.toString=function(){return d+""},R}function u(d,f){var h=c((d=rc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(ls(f)/3)))*3,m=Math.pow(10,-p),g=F2[8+p/3];return function(x){return h(m*x)+g}}return{format:c,formatPrefix:u}}var hu,jc,p6;mQ({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function mQ(e){return hu=pQ(e),jc=hu.format,p6=hu.formatPrefix,hu}function gQ(e){return Math.max(0,-ls(Math.abs(e)))}function vQ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ls(t)/3)))*3-ls(Math.abs(e)))}function bQ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ls(t)-ls(e))+1}function yQ(e,t,n,r){var i=ig(e,t,n),o;switch(r=rc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=vQ(i,a))&&(r.precision=o),p6(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=bQ(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=gQ(i))&&(r.precision=o-(r.type==="%")*2);break}}return jc(r)}function m6(e){var t=e.domain;return e.ticks=function(n){var r=t();return ng(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return yQ(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=i,i=o,o=c);u-- >0;){if(c=rg(a,s,n),c===l)return r[i]=a,r[o]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function _d(){var e=f6();return e.copy=function(){return qf(e,_d())},na.apply(e,arguments),m6(e)}function g6(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function B2(e){return Math.log(e)}function z2(e){return Math.exp(e)}function xQ(e){return-Math.log(-e)}function wQ(e){return-Math.exp(-e)}function _Q(e){return isFinite(e)?+("1e"+e):e<0?0:e}function CQ(e){return e===10?_Q:e===Math.E?Math.exp:t=>Math.pow(e,t)}function SQ(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 W2(e){return(t,n)=>-e(-t,n)}function TQ(e){const t=e(B2,z2),n=t.domain;let r=10,i,o;function a(){return i=SQ(r),o=CQ(r),n()[0]<0?(i=W2(i),o=W2(o),e(xQ,wQ)):e(B2,z2),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=i(c),h=i(u),p,m;const g=s==null?10:+s;let x=[];if(!(r%1)&&h-f<g){if(f=Math.floor(f),h=Math.ceil(h),c>0){for(;f<=h;++f)for(p=1;p<r;++p)if(m=f<0?p/o(-f):p*o(f),!(m<c)){if(m>u)break;x.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/o(-f):p*o(f),!(m<c)){if(m>u)break;x.push(m)}x.length*2<g&&(x=ng(c,u,g))}else x=ng(f,h,Math.min(h-f,g)).map(o);return d?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=rc(l)).precision==null&&(l.trim=!0),l=jc(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/o(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(g6(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function v6(){const e=TQ(Mv()).domain([1,10]);return e.copy=()=>qf(e,v6()).base(e.base()),na.apply(e,arguments),e}function U2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function H2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function $Q(e){var t=1,n=e(U2(t),H2(t));return n.constant=function(r){return arguments.length?e(U2(t=+r),H2(t)):t},m6(n)}function b6(){var e=$Q(Mv());return e.copy=function(){return qf(e,b6()).constant(e.constant())},na.apply(e,arguments)}const Op=new Date,Ap=new Date;function gn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let c;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=o=>gn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Op.setTime(+o),Ap.setTime(+a),e(Op),e(Ap),Math.floor(n(Op,Ap))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Cd=gn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Cd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?gn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Cd);Cd.range;const pi=1e3,ur=pi*60,mi=ur*60,Si=mi*24,Ov=Si*7,V2=Si*30,Rp=Si*365,Oo=gn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCSeconds());Oo.range;const Av=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getMinutes());Av.range;const Rv=gn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getUTCMinutes());Rv.range;const Dv=gn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi-e.getMinutes()*ur)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getHours());Dv.range;const Iv=gn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());Iv.range;const jv=gn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ur)/Si,e=>e.getDate()-1);jv.range;const y6=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>e.getUTCDate()-1);y6.range;const x6=gn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>Math.floor(e/Si));x6.range;function ra(e){return gn(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())*ur)/Ov)}const Pv=ra(0),kQ=ra(1),MQ=ra(2),EQ=ra(3),OQ=ra(4),AQ=ra(5),RQ=ra(6);Pv.range;kQ.range;MQ.range;EQ.range;OQ.range;AQ.range;RQ.range;function ia(e){return gn(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)/Ov)}const Nv=ia(0),DQ=ia(1),IQ=ia(2),jQ=ia(3),PQ=ia(4),NQ=ia(5),LQ=ia(6);Nv.range;DQ.range;IQ.range;jQ.range;PQ.range;NQ.range;LQ.range;const Lv=gn(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());Lv.range;const Fv=gn(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());Fv.range;const Yf=gn(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());Yf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});Yf.range;const Gf=gn(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());Gf.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:gn(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)});Gf.range;function w6(e,t,n,r,i,o){const a=[[Oo,1,pi],[Oo,5,5*pi],[Oo,15,15*pi],[Oo,30,30*pi],[o,1,ur],[o,5,5*ur],[o,15,15*ur],[o,30,30*ur],[i,1,mi],[i,3,3*mi],[i,6,6*mi],[i,12,12*mi],[r,1,Si],[r,2,2*Si],[n,1,Ov],[t,1,V2],[t,3,3*V2],[e,1,Rp]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const h=d&&typeof d.range=="function"?d:l(c,u,d),p=h?h.range(c,+u+1):[];return f?p.reverse():p}function l(c,u,d){const f=Math.abs(u-c)/d,h=$v(([,,g])=>g).right(a,f);if(h===a.length)return e.every(ig(c/Rp,u/Rp,d));if(h===0)return Cd.every(Math.max(ig(c,u,d),1));const[p,m]=a[f/a[h-1][2]<a[h][2]/f?h-1:h];return p.every(m)}return[s,l]}const[FQ,BQ]=w6(Gf,Fv,Nv,x6,Iv,Rv),[zQ,WQ]=w6(Yf,Lv,Pv,jv,Dv,Av);var Dp=new Date,Ip=new Date;function dn(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var l=[],c;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;do l.push(c=new Date(+o)),t(o,s),e(o);while(c<o&&o<a);return l},i.filter=function(o){return dn(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return Dp.setTime(+o),Ip.setTime(+a),e(Dp),e(Ip),Math.floor(n(Dp,Ip))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var ic=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ic.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?dn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):ic};ic.range;var Sd=1e3,Yo=6e4,Td=36e5,_6=864e5,C6=6048e5,ag=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Sd)},function(e,t){return(t-e)/Sd},function(e){return e.getUTCSeconds()});ag.range;var S6=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sd)},function(e,t){e.setTime(+e+t*Yo)},function(e,t){return(t-e)/Yo},function(e){return e.getMinutes()});S6.range;var T6=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sd-e.getMinutes()*Yo)},function(e,t){e.setTime(+e+t*Td)},function(e,t){return(t-e)/Td},function(e){return e.getHours()});T6.range;var Bv=dn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yo)/_6},function(e){return e.getDate()-1});Bv.range;function oa(e){return dn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yo)/C6})}var $d=oa(0),oc=oa(1),$6=oa(2),k6=oa(3),Go=oa(4),M6=oa(5),E6=oa(6);$d.range;oc.range;$6.range;k6.range;Go.range;M6.range;E6.range;var O6=dn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});O6.range;var to=dn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});to.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})};to.range;var A6=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Yo)},function(e,t){return(t-e)/Yo},function(e){return e.getUTCMinutes()});A6.range;var R6=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Td)},function(e,t){return(t-e)/Td},function(e){return e.getUTCHours()});R6.range;var zv=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/_6},function(e){return e.getUTCDate()-1});zv.range;function aa(e){return dn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/C6})}var kd=aa(0),ac=aa(1),D6=aa(2),I6=aa(3),Zo=aa(4),j6=aa(5),P6=aa(6);kd.range;ac.range;D6.range;I6.range;Zo.range;j6.range;P6.range;var N6=dn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});N6.range;var no=dn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});no.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:dn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})};no.range;function jp(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 Pp(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 Ks(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function UQ(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=Js(i),u=Qs(i),d=Js(o),f=Qs(o),h=Js(a),p=Qs(a),m=Js(s),g=Qs(s),x=Js(l),_=Qs(l),w={a:O,A:L,b:z,B:N,c:null,d:K2,e:K2,f:fee,g:_ee,G:See,H:cee,I:uee,j:dee,L:L6,m:hee,M:pee,p:H,q:Y,Q:ex,s:tx,S:mee,u:gee,U:vee,V:bee,w:yee,W:xee,x:null,X:null,y:wee,Y:Cee,Z:Tee,"%":Q2},C={a:q,A:Z,b:X,B:J,c:null,d:J2,e:J2,f:Eee,g:Fee,G:zee,H:$ee,I:kee,j:Mee,L:B6,m:Oee,M:Aee,p:ee,q:W,Q:ex,s:tx,S:Ree,u:Dee,U:Iee,V:jee,w:Pee,W:Nee,x:null,X:null,y:Lee,Y:Bee,Z:Wee,"%":Q2},b={a:R,A:T,b:E,B:A,c:I,d:Z2,e:Z2,f:oee,g:G2,G:Y2,H:X2,I:X2,j:tee,L:iee,m:eee,M:nee,p:k,q:QQ,Q:see,s:lee,S:ree,u:GQ,U:ZQ,V:XQ,w:YQ,W:KQ,x:j,X:D,y:G2,Y:Y2,Z:JQ,"%":aee};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),C.x=S(n,C),C.X=S(r,C),C.c=S(t,C);function S(F,B){return function(V){var P=[],te=-1,K=0,G=F.length,ae,ne,re;for(V instanceof Date||(V=new Date(+V));++te<G;)F.charCodeAt(te)===37&&(P.push(F.slice(K,te)),(ne=q2[ae=F.charAt(++te)])!=null?ae=F.charAt(++te):ne=ae==="e"?" ":"0",(re=B[ae])&&(ae=re(V,ne)),P.push(ae),K=te+1);return P.push(F.slice(K,te)),P.join("")}}function M(F,B){return function(V){var P=Ks(1900,void 0,1),te=$(P,F,V+="",0),K,G;if(te!=V.length)return null;if("Q"in P)return new Date(P.Q);if("s"in P)return new Date(P.s*1e3+("L"in P?P.L:0));if(B&&!("Z"in P)&&(P.Z=0),"p"in P&&(P.H=P.H%12+P.p*12),P.m===void 0&&(P.m="q"in P?P.q:0),"V"in P){if(P.V<1||P.V>53)return null;"w"in P||(P.w=1),"Z"in P?(K=Pp(Ks(P.y,0,1)),G=K.getUTCDay(),K=G>4||G===0?ac.ceil(K):ac(K),K=zv.offset(K,(P.V-1)*7),P.y=K.getUTCFullYear(),P.m=K.getUTCMonth(),P.d=K.getUTCDate()+(P.w+6)%7):(K=jp(Ks(P.y,0,1)),G=K.getDay(),K=G>4||G===0?oc.ceil(K):oc(K),K=Bv.offset(K,(P.V-1)*7),P.y=K.getFullYear(),P.m=K.getMonth(),P.d=K.getDate()+(P.w+6)%7)}else("W"in P||"U"in P)&&("w"in P||(P.w="u"in P?P.u%7:"W"in P?1:0),G="Z"in P?Pp(Ks(P.y,0,1)).getUTCDay():jp(Ks(P.y,0,1)).getDay(),P.m=0,P.d="W"in P?(P.w+6)%7+P.W*7-(G+5)%7:P.w+P.U*7-(G+6)%7);return"Z"in P?(P.H+=P.Z/100|0,P.M+=P.Z%100,Pp(P)):jp(P)}}function $(F,B,V,P){for(var te=0,K=B.length,G=V.length,ae,ne;te<K;){if(P>=G)return-1;if(ae=B.charCodeAt(te++),ae===37){if(ae=B.charAt(te++),ne=b[ae in q2?B.charAt(te++):ae],!ne||(P=ne(F,V,P))<0)return-1}else if(ae!=V.charCodeAt(P++))return-1}return P}function k(F,B,V){var P=c.exec(B.slice(V));return P?(F.p=u.get(P[0].toLowerCase()),V+P[0].length):-1}function R(F,B,V){var P=h.exec(B.slice(V));return P?(F.w=p.get(P[0].toLowerCase()),V+P[0].length):-1}function T(F,B,V){var P=d.exec(B.slice(V));return P?(F.w=f.get(P[0].toLowerCase()),V+P[0].length):-1}function E(F,B,V){var P=x.exec(B.slice(V));return P?(F.m=_.get(P[0].toLowerCase()),V+P[0].length):-1}function A(F,B,V){var P=m.exec(B.slice(V));return P?(F.m=g.get(P[0].toLowerCase()),V+P[0].length):-1}function I(F,B,V){return $(F,t,B,V)}function j(F,B,V){return $(F,n,B,V)}function D(F,B,V){return $(F,r,B,V)}function O(F){return a[F.getDay()]}function L(F){return o[F.getDay()]}function z(F){return l[F.getMonth()]}function N(F){return s[F.getMonth()]}function H(F){return i[+(F.getHours()>=12)]}function Y(F){return 1+~~(F.getMonth()/3)}function q(F){return a[F.getUTCDay()]}function Z(F){return o[F.getUTCDay()]}function X(F){return l[F.getUTCMonth()]}function J(F){return s[F.getUTCMonth()]}function ee(F){return i[+(F.getUTCHours()>=12)]}function W(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var B=S(F+="",w);return B.toString=function(){return F},B},parse:function(F){var B=M(F+="",!1);return B.toString=function(){return F},B},utcFormat:function(F){var B=S(F+="",C);return B.toString=function(){return F},B},utcParse:function(F){var B=M(F+="",!0);return B.toString=function(){return F},B}}}var q2={"-":"",_:" ",0:"0"},xn=/^\s*\d+/,HQ=/^%/,VQ=/[\\^$*+?|[\]().{}]/g;function Mt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function qQ(e){return e.replace(VQ,"\\$&")}function Js(e){return new RegExp("^(?:"+e.map(qQ).join("|")+")","i")}function Qs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function YQ(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function GQ(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function XQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function KQ(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Y2(e,t,n){var r=xn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function G2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function JQ(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 QQ(e,t,n){var r=xn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function eee(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Z2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tee(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function X2(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nee(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ree(e,t,n){var r=xn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function iee(e,t,n){var r=xn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function oee(e,t,n){var r=xn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function aee(e,t,n){var r=HQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function see(e,t,n){var r=xn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lee(e,t,n){var r=xn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function K2(e,t){return Mt(e.getDate(),t,2)}function cee(e,t){return Mt(e.getHours(),t,2)}function uee(e,t){return Mt(e.getHours()%12||12,t,2)}function dee(e,t){return Mt(1+Bv.count(to(e),e),t,3)}function L6(e,t){return Mt(e.getMilliseconds(),t,3)}function fee(e,t){return L6(e,t)+"000"}function hee(e,t){return Mt(e.getMonth()+1,t,2)}function pee(e,t){return Mt(e.getMinutes(),t,2)}function mee(e,t){return Mt(e.getSeconds(),t,2)}function gee(e){var t=e.getDay();return t===0?7:t}function vee(e,t){return Mt($d.count(to(e)-1,e),t,2)}function F6(e){var t=e.getDay();return t>=4||t===0?Go(e):Go.ceil(e)}function bee(e,t){return e=F6(e),Mt(Go.count(to(e),e)+(to(e).getDay()===4),t,2)}function yee(e){return e.getDay()}function xee(e,t){return Mt(oc.count(to(e)-1,e),t,2)}function wee(e,t){return Mt(e.getFullYear()%100,t,2)}function _ee(e,t){return e=F6(e),Mt(e.getFullYear()%100,t,2)}function Cee(e,t){return Mt(e.getFullYear()%1e4,t,4)}function See(e,t){var n=e.getDay();return e=n>=4||n===0?Go(e):Go.ceil(e),Mt(e.getFullYear()%1e4,t,4)}function Tee(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Mt(t/60|0,"0",2)+Mt(t%60,"0",2)}function J2(e,t){return Mt(e.getUTCDate(),t,2)}function $ee(e,t){return Mt(e.getUTCHours(),t,2)}function kee(e,t){return Mt(e.getUTCHours()%12||12,t,2)}function Mee(e,t){return Mt(1+zv.count(no(e),e),t,3)}function B6(e,t){return Mt(e.getUTCMilliseconds(),t,3)}function Eee(e,t){return B6(e,t)+"000"}function Oee(e,t){return Mt(e.getUTCMonth()+1,t,2)}function Aee(e,t){return Mt(e.getUTCMinutes(),t,2)}function Ree(e,t){return Mt(e.getUTCSeconds(),t,2)}function Dee(e){var t=e.getUTCDay();return t===0?7:t}function Iee(e,t){return Mt(kd.count(no(e)-1,e),t,2)}function z6(e){var t=e.getUTCDay();return t>=4||t===0?Zo(e):Zo.ceil(e)}function jee(e,t){return e=z6(e),Mt(Zo.count(no(e),e)+(no(e).getUTCDay()===4),t,2)}function Pee(e){return e.getUTCDay()}function Nee(e,t){return Mt(ac.count(no(e)-1,e),t,2)}function Lee(e,t){return Mt(e.getUTCFullYear()%100,t,2)}function Fee(e,t){return e=z6(e),Mt(e.getUTCFullYear()%100,t,2)}function Bee(e,t){return Mt(e.getUTCFullYear()%1e4,t,4)}function zee(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Zo(e):Zo.ceil(e),Mt(e.getUTCFullYear()%1e4,t,4)}function Wee(){return"+0000"}function Q2(){return"%"}function ex(e){return+e}function tx(e){return Math.floor(+e/1e3)}var wa,Zf,W6,U6,H6;Uee({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 Uee(e){return wa=UQ(e),Zf=wa.format,W6=wa.parse,U6=wa.utcFormat,H6=wa.utcParse,wa}function Hee(e){return new Date(e)}function Vee(e){return e instanceof Date?+e:+new Date(+e)}function Wv(e,t,n,r,i,o,a,s,l,c){var u=f6(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),x=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function b(S){return(l(S)<S?h:s(S)<S?p:a(S)<S?m:o(S)<S?g:r(S)<S?i(S)<S?x:_:n(S)<S?w:C)(S)}return u.invert=function(S){return new Date(d(S))},u.domain=function(S){return arguments.length?f(Array.from(S,Vee)):f().map(Hee)},u.ticks=function(S){var M=f();return e(M[0],M[M.length-1],S??10)},u.tickFormat=function(S,M){return M==null?b:c(M)},u.nice=function(S){var M=f();return(!S||typeof S.range!="function")&&(S=t(M[0],M[M.length-1],S??10)),S?f(g6(M,S)):u},u.copy=function(){return qf(u,Wv(e,t,n,r,i,o,a,s,l,c))},u}function qee(){return na.apply(Wv(zQ,WQ,Yf,Lv,Pv,jv,Dv,Av,Oo,Zf).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Yee(){return na.apply(Wv(FQ,BQ,Gf,Fv,Nv,y6,Iv,Rv,Oo,U6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ft(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const Gee=ft("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Zee=ft("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Xee=ft("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Kee=ft("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Jee=ft("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Qee=ft("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),ete=ft("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),tte=ft("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),V6=ft("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),nte=ft("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Vt=e=>gK(e[e.length-1]);var Xf=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ft);const rte=Vt(Xf);var Kf=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ft);const ite=Vt(Kf);var Jf=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ft);const ote=Vt(Jf);var Qf=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ft);const ate=Vt(Qf);var eh=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ft);const ste=Vt(eh);var th=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ft);const lte=Vt(th);var nh=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ft);const cte=Vt(nh);var rh=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ft);const ute=Vt(rh);var ih=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ft);const dte=Vt(ih);var oh=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ft);const fte=Vt(oh);var ah=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ft);const hte=Vt(ah);var sh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ft);const pte=Vt(sh);var lh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ft);const mte=Vt(lh);var ch=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ft);const gte=Vt(ch);var uh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ft);const vte=Vt(uh);var dh=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ft);const bte=Vt(dh);var fh=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ft);const yte=Vt(fh);var hh=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ft);const xte=Vt(hh);var ph=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ft);const wte=Vt(ph);var mh=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ft);const _te=Vt(mh);var gh=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ft);const Cte=Vt(gh);var vh=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ft);const Ste=Vt(vh);var bh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ft);const Tte=Vt(bh);var yh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ft);const $te=Vt(yh);var xh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ft);const kte=Vt(xh);var wh=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ft);const Mte=Vt(wh);var _h=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ft);const Ete=Vt(_h);function Ote(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const Ate=gv(Gr(300,.5,0),Gr(-240,.5,1));var Rte=gv(Gr(-100,.75,.35),Gr(80,1.5,.8)),Dte=gv(Gr(260,.75,.35),Gr(80,1.5,.8)),pu=Gr();function Ite(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return pu.h=360*e-100,pu.s=1.5-1.5*t,pu.l=.8-.9*t,pu+""}var mu=ss(),jte=Math.PI/3,Pte=Math.PI*2/3;function Nte(e){var t;return e=(.5-e)*Math.PI,mu.r=255*(t=Math.sin(e))*t,mu.g=255*(t=Math.sin(e+jte))*t,mu.b=255*(t=Math.sin(e+Pte))*t,mu+""}function Lte(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Ch(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const Fte=Ch(ft("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Bte=Ch(ft("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),zte=Ch(ft("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Wte=Ch(ft("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Ute(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var q6=Ute;const De=nn(q6);var Hte=Ic,Vte=DS,qte=Es;function Yte(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Hte(e,a);n(s,a)&&Vte(o,qte(a,e),s)}return o}var Gte=Yte;function Zte(e,t){return e!=null&&t in Object(e)}var Xte=Zte,Kte=Es,Jte=Df,Qte=Kn,ene=Pf,tne=rv,nne=Os;function rne(e,t,n){t=Kte(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=nne(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&tne(i)&&ene(a,i)&&(Qte(e)||Jte(e)))}var ine=rne,one=Xte,ane=ine;function sne(e,t){return e!=null&&ane(e,t,one)}var Y6=sne,lne=Gte,cne=Y6;function une(e,t){return lne(e,t,function(n,r){return cne(e,r)})}var dne=une;function fne(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Uv=fne,nx=_s,hne=Df,pne=Kn,rx=nx?nx.isConcatSpreadable:void 0;function mne(e){return pne(e)||hne(e)||!!(rx&&e&&e[rx])}var gne=mne,vne=Uv,bne=gne;function G6(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bne),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?G6(s,t-1,n,r,i):vne(i,s):r||(i[i.length]=s)}return i}var Z6=G6,yne=Z6;function xne(e){var t=e==null?0:e.length;return t?yne(e,1):[]}var wne=xne,_ne=wne,Cne=TS,Sne=$S;function Tne(e){return Sne(Cne(e,void 0,_ne),e+"")}var X6=Tne,$ne=dne,kne=X6,Mne=kne(function(e,t){return e==null?{}:$ne(e,t)}),Ene=Mne;const One=nn(Ene);function Ane(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Rne=Ane,Dne=vv,Ine=Rne,jne=bv,Pne=1,Nne=2;function Lne(e,t,n,r,i,o){var a=n&Pne,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&Nne?new Dne:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(g!==void 0){if(g)continue;f=!1;break}if(h){if(!Ine(t,function(x,_){if(!jne(h,_)&&(p===x||i(p,x,n,r,o)))return h.push(_)})){f=!1;break}}else if(!(p===m||i(p,m,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var K6=Lne;function Fne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Bne=Fne;function zne(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Hv=zne,ix=_s,ox=pS,Wne=Rc,Une=K6,Hne=Bne,Vne=Hv,qne=1,Yne=2,Gne="[object Boolean]",Zne="[object Date]",Xne="[object Error]",Kne="[object Map]",Jne="[object Number]",Qne="[object RegExp]",ere="[object Set]",tre="[object String]",nre="[object Symbol]",rre="[object ArrayBuffer]",ire="[object DataView]",ax=ix?ix.prototype:void 0,Np=ax?ax.valueOf:void 0;function ore(e,t,n,r,i,o,a){switch(n){case ire:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rre:return!(e.byteLength!=t.byteLength||!o(new ox(e),new ox(t)));case Gne:case Zne:case Jne:return Wne(+e,+t);case Xne:return e.name==t.name&&e.message==t.message;case Qne:case tre:return e==t+"";case Kne:var s=Hne;case ere:var l=r&qne;if(s||(s=Vne),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Yne,a.set(e,t);var u=Une(s(e),s(t),r,i,o,a);return a.delete(e),u;case nre:if(Np)return Np.call(e)==Np.call(t)}return!1}var are=ore,sre=Uv,lre=Kn;function cre(e,t,n){var r=t(e);return lre(e)?r:sre(r,n(e))}var J6=cre;function ure(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var Q6=ure;function dre(){return[]}var e5=dre,fre=Q6,hre=e5,pre=Object.prototype,mre=pre.propertyIsEnumerable,sx=Object.getOwnPropertySymbols,gre=sx?function(e){return e==null?[]:(e=Object(e),fre(sx(e),function(t){return mre.call(e,t)}))}:hre,Vv=gre,vre=vS,bre=vre(Object.keys,Object),yre=bre,xre=nv,wre=yre,_re=Object.prototype,Cre=_re.hasOwnProperty;function Sre(e){if(!xre(e))return wre(e);var t=[];for(var n in Object(e))Cre.call(e,n)&&n!="constructor"&&t.push(n);return t}var Tre=Sre,$re=CS,kre=Tre,Mre=$s;function Ere(e){return Mre(e)?$re(e):kre(e)}var Pc=Ere,Ore=J6,Are=Vv,Rre=Pc;function Dre(e){return Ore(e,Rre,Are)}var t5=Dre,lx=t5,Ire=1,jre=Object.prototype,Pre=jre.hasOwnProperty;function Nre(e,t,n,r,i,o){var a=n&Ire,s=lx(e),l=s.length,c=lx(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var f=s[d];if(!(a?f in t:Pre.call(t,f)))return!1}var h=o.get(e),p=o.get(t);if(h&&p)return h==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=a;++d<l;){f=s[d];var x=e[f],_=t[f];if(r)var w=a?r(_,x,f,t,e,o):r(x,_,f,e,t,o);if(!(w===void 0?x===_||i(x,_,n,r,o):w)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var C=e.constructor,b=t.constructor;C!=b&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof b=="function"&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}var Lre=Nre,Fre=ta,Bre=Jr,zre=Fre(Bre,"DataView"),Wre=zre,Ure=ta,Hre=Jr,Vre=Ure(Hre,"Promise"),qre=Vre,Yre=ta,Gre=Jr,Zre=Yre(Gre,"Set"),n5=Zre,Xre=ta,Kre=Jr,Jre=Xre(Kre,"WeakMap"),Qre=Jre,sg=Wre,lg=K0,cg=qre,ug=n5,dg=Qre,r5=$i,Rs=cS,cx="[object Map]",eie="[object Object]",ux="[object Promise]",dx="[object Set]",fx="[object WeakMap]",hx="[object DataView]",tie=Rs(sg),nie=Rs(lg),rie=Rs(cg),iie=Rs(ug),oie=Rs(dg),_o=r5;(sg&&_o(new sg(new ArrayBuffer(1)))!=hx||lg&&_o(new lg)!=cx||cg&&_o(cg.resolve())!=ux||ug&&_o(new ug)!=dx||dg&&_o(new dg)!=fx)&&(_o=function(e){var t=r5(e),n=t==eie?e.constructor:void 0,r=n?Rs(n):"";if(r)switch(r){case tie:return hx;case nie:return cx;case rie:return ux;case iie:return dx;case oie:return fx}return t});var Sh=_o,Lp=Rf,aie=K6,sie=are,lie=Lre,px=Sh,mx=Kn,gx=If,cie=av,uie=1,vx="[object Arguments]",bx="[object Array]",gu="[object Object]",die=Object.prototype,yx=die.hasOwnProperty;function fie(e,t,n,r,i,o){var a=mx(e),s=mx(t),l=a?bx:px(e),c=s?bx:px(t);l=l==vx?gu:l,c=c==vx?gu:c;var u=l==gu,d=c==gu,f=l==c;if(f&&gx(e)){if(!gx(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Lp),a||cie(e)?aie(e,t,n,r,i,o):sie(e,t,l,n,r,i,o);if(!(n&uie)){var h=u&&yx.call(e,"__wrapped__"),p=d&&yx.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return o||(o=new Lp),i(m,g,n,r,o)}}return f?(o||(o=new Lp),lie(e,t,n,r,i,o)):!1}var hie=fie,pie=hie,xx=vr;function i5(e,t,n,r,i){return e===t?!0:e==null||t==null||!xx(e)&&!xx(t)?e!==e&&t!==t:pie(e,t,n,r,i5,i)}var qv=i5,mie=qv;function gie(e,t){return mie(e,t)}var vie=gie;const bie=nn(vie);var o5=v.createContext(),yie=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,o=i===void 0?"default":i,a=v.useMemo(function(){var s=YX(o)?V3[o]:o;return{animate:r,config:s}},[r,o]);return y.jsx(o5.Provider,{value:a,children:t})},Fn=function(){return v.useContext(o5)},xie=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?v.cloneElement(r,{},t):t},wie={position:"relative"},sa=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,o=e.isInteractive,a=o===void 0||o,s=e.animate,l=e.motionConfig,c=v.useRef(null);return y.jsx(RX,{theme:n,children:y.jsx(yie,{animate:s,config:l,children:y.jsx(BX,{container:c,children:y.jsxs(xie,{condition:i,wrapper:y.jsx("div",{style:wie,ref:c}),children:[t,a&&y.jsx(FX,{})]})})})})},_ie=function(e,t){return e.width===t.width&&e.height===t.height},Cie=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,o=e.debounceResize,a=A0({width:n,height:r},o,{equalityFn:_ie})[0];return v.useEffect(function(){i==null||i(a)},[a,i]),y.jsx(y.Fragment,{children:t(a)})},la=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=o===void 0?0:o;return y.jsx(ZX,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return y.jsx(Cie,{width:l,height:c,onResize:i,debounceResize:a,children:t})}})};function wx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sie(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,o){if(i){if(typeof i=="string")return wx(i,o);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?wx(i,o):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
259
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wr(){return Wr=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},Wr.apply(null,arguments)}function a5(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 Tie=["id","colors"],$ie=function(e){var t=e.id,n=e.colors,r=a5(e,Tie);return y.jsx("linearGradient",Wr({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var o=i.offset,a=i.color,s=i.opacity;return y.jsx("stop",{offset:o+"%",stopColor:a,stopOpacity:s!==void 0?s:1},o)})}))},s5={linearGradient:$ie},el={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},kie=v.memo(function(e){var t=e.id,n=e.background,r=n===void 0?el.background:n,i=e.color,o=i===void 0?el.color:i,a=e.size,s=a===void 0?el.size:a,l=e.padding,c=l===void 0?el.padding:l,u=e.stagger,d=u===void 0?el.stagger:u,f=s+c,h=s/2,p=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:r}),y.jsx("circle",{cx:p+h,cy:p+h,r:h,fill:o}),d&&y.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:o})]})}),fr=function(e){return e*Math.PI/180},Nc=function(e){return 180*e/Math.PI},Mie=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},No=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Eie=function(e){var t=e%360;return t<0&&(t+=360),t},l5={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},tl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Oie=v.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?tl.spacing:n,i=e.rotation,o=i===void 0?tl.rotation:i,a=e.background,s=a===void 0?tl.background:a,l=e.color,c=l===void 0?tl.color:l,u=e.lineWidth,d=u===void 0?tl.lineWidth:u,f=Math.round(o)%360,h=Math.abs(r);f>180?f-=360:f>90?f-=180:f<-180?f+=360:f<-90&&(f+=180);var p,m=h,g=h;return f===0?p=`
|
|
260
|
+
M 0 0 L `+m+` 0
|
|
261
|
+
M 0 `+g+" L "+m+" "+g+`
|
|
262
|
+
`:f===90?p=`
|
|
263
|
+
M 0 0 L 0 `+g+`
|
|
264
|
+
M `+m+" 0 L "+m+" "+g+`
|
|
265
|
+
`:(m=Math.abs(h/Math.sin(fr(f))),g=h/Math.sin(fr(90-f)),p=f>0?`
|
|
266
|
+
M 0 `+-g+" L "+2*m+" "+g+`
|
|
267
|
+
M `+-m+" "+-g+" L "+m+" "+g+`
|
|
268
|
+
M `+-m+" 0 L "+m+" "+2*g+`
|
|
269
|
+
`:`
|
|
270
|
+
M `+-m+" "+g+" L "+m+" "+-g+`
|
|
271
|
+
M `+-m+" "+2*g+" L "+2*m+" "+-g+`
|
|
272
|
+
M 0 `+2*g+" L "+2*m+` 0
|
|
273
|
+
`),y.jsxs("pattern",{id:t,width:m,height:g,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:m,height:g,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),y.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),nl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Aie=v.memo(function(e){var t=e.id,n=e.color,r=n===void 0?nl.color:n,i=e.background,o=i===void 0?nl.background:i,a=e.size,s=a===void 0?nl.size:a,l=e.padding,c=l===void 0?nl.padding:l,u=e.stagger,d=u===void 0?nl.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),y.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[y.jsx("rect",{width:f,height:f,fill:o}),y.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&y.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})}),c5={patternDots:kie,patternLines:Oie,patternSquares:Aie},Rie=["type"],_x=Wr({},s5,c5),Die=v.memo(function(e){var t=e.defs;return!t||t.length<1?null:y.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=a5(n,Rie);return _x[r]?v.createElement(_x[r],Wr({key:i.id},i)):null})})}),Th=v.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,o=e.defs,a=e.children,s=e.role,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=Lt();return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:n,height:r,role:s,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,focusable:d,tabIndex:d?0:void 0,ref:t,children:[y.jsx(Die,{defs:o}),y.jsx("rect",{width:n,height:r,fill:f.background}),y.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:a})]})}),Iie=v.memo(function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return y.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})}),jie=v.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Iie:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,c=e.borderColor,u=e.label,d=e.labelTextAnchor,f=d===void 0?"middle":d,h=e.labelYOffset,p=h===void 0?-12:h,m=e.ariaLabel,g=e.ariaLabelledBy,x=e.ariaDescribedBy,_=e.ariaHidden,w=e.ariaDisabled,C=e.isFocusable,b=C!==void 0&&C,S=e.tabIndex,M=S===void 0?0:S,$=e.onFocus,k=e.onBlur,R=e.testId,T=Lt(),E=Fn(),A=E.animate,I=E.config,j=Kr({transform:"translate("+t+", "+n+")",config:I,immediate:!A}),D=v.useCallback(function(L){$==null||$(a,L)},[$,a]),O=v.useCallback(function(L){k==null||k(a,L)},[k,a]);return y.jsxs(Ht.g,{transform:j.transform,style:{pointerEvents:"none"},focusable:b,tabIndex:b?M:void 0,"aria-label":m,"aria-labelledby":g,"aria-describedby":x,"aria-disabled":w,"aria-hidden":_,onFocus:b&&$?D:void 0,onBlur:b&&k?O:void 0,"data-testid":R,children:[v.createElement(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:c}),u&&y.jsx("text",{textAnchor:f,y:p,style:SX(T.dots.text),children:u})]})}),Pie=v.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,c=e.legendNode,u=e.legendPosition,d=u===void 0?"top-right":u,f=e.legendOffsetX,h=f===void 0?14:f,p=e.legendOffsetY,m=p===void 0?14:p,g=e.legendOrientation,x=g===void 0?"horizontal":g,_=Lt(),w=0,C=0,b=0,S=0;if(r==="y"?(b=i(o),C=t):(w=i(o),S=n),l&&!c){var M=function($){var k=$.axis,R=$.width,T=$.height,E=$.position,A=$.offsetX,I=$.offsetY,j=$.orientation,D=0,O=0,L=j==="vertical"?-90:0,z="start";if(k==="x")switch(E){case"top-left":D=-A,O=I,z="end";break;case"top":O=-I,z=j==="horizontal"?"middle":"start";break;case"top-right":D=A,O=I,z=j==="horizontal"?"start":"end";break;case"right":D=A,O=T/2,z=j==="horizontal"?"start":"middle";break;case"bottom-right":D=A,O=T-I,z="start";break;case"bottom":O=T+I,z=j==="horizontal"?"middle":"end";break;case"bottom-left":O=T-I,D=-A,z=j==="horizontal"?"end":"start";break;case"left":D=-A,O=T/2,z=j==="horizontal"?"end":"middle"}else switch(E){case"top-left":D=A,O=-I,z="start";break;case"top":D=R/2,O=-I,z=j==="horizontal"?"middle":"start";break;case"top-right":D=R-A,O=-I,z=j==="horizontal"?"end":"start";break;case"right":D=R+A,z=j==="horizontal"?"start":"middle";break;case"bottom-right":D=R-A,O=I,z="end";break;case"bottom":D=R/2,O=I,z=j==="horizontal"?"middle":"end";break;case"bottom-left":D=A,O=I,z=j==="horizontal"?"start":"end";break;case"left":D=-A,z=j==="horizontal"?"end":"middle"}return{x:D,y:O,rotation:L,textAnchor:z}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:m,orientation:x});c=y.jsx("text",{transform:"translate("+M.x+", "+M.y+") rotate("+M.rotation+")",textAnchor:M.textAnchor,dominantBaseline:"central",style:s,children:l})}return y.jsxs("g",{transform:"translate("+w+", "+b+")",children:[y.jsx("line",{x1:0,x2:C,y1:0,y2:S,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:a}),c]})}),u5=v.memo(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&t.length!==0?t.map(function(a,s){return y.jsx(Pie,Wr({},a,{width:n,height:r,scale:a.axis==="y"?o:i}),s)}):null}),Yv=function(e){var t=Fn(),n=t.animate,r=t.config,i=function(s){var l=v.useRef();return v.useEffect(function(){l.current=s},[s]),l.current}(e),o=v.useMemo(function(){return VS(i,e)},[i,e]),a=Kr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return Qi(a,o)};v.createContext(void 0);var fg={basis:CJ,basisClosed:SJ,basisOpen:TJ,bundle:$J,cardinal:kJ,cardinalClosed:MJ,cardinalOpen:EJ,catmullRom:OJ,catmullRomClosed:AJ,catmullRomOpen:RJ,linear:xv,linearClosed:DJ,monotoneX:IJ,monotoneY:jJ,natural:PJ,step:NJ,stepAfter:FJ,stepBefore:LJ},Gv=Object.keys(fg);Gv.filter(function(e){return e.endsWith("Closed")});XS(Gv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");XS(Gv,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var d5=function(e){if(!fg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return fg[e]};De(Xf),De(Kf),De(Jf),De(Qf),De(eh),De(th),De(nh),De(rh),De(ih),De(vh),De(bh),De(yh),De(_h),De(xh),De(wh),De(oh),De(ah),De(sh),De(lh),De(ch),De(uh),De(dh),De(fh),De(hh),De(ph),De(mh),De(gh);De(Xf),De(Kf),De(Jf),De(Qf),De(eh),De(th),De(nh),De(rh),De(ih),De(vh),De(bh),De(yh),De(_h),De(xh),De(wh),De(oh),De(ah),De(sh),De(lh),De(ch),De(uh),De(dh),De(fh),De(hh),De(ph),De(mh),De(gh);Eo(V6);var f5={top:0,right:0,bottom:0,left:0},ca=function(e,t,n){return n===void 0&&(n={}),v.useMemo(function(){var r=Wr({},f5,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},Nie=function(){var e=v.useRef(null),t=v.useState({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=v.useState(function(){return typeof ResizeObserver>"u"?null:new ResizeObserver(function(o){var a=o[0];return r(a.contentRect)})})[0];return v.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},Lie=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?Zf(e.slice("5")):jc(e):function(t){return""+t}},cs=function(e){return v.useMemo(function(){return Lie(e)},[e])},Fie=function(e,t){var n=X0(e)?e:function(r){return Yr(r,e)};return n},h5=function(e){return X0(e)?e:function(t){return Yr(t,e)}},gi=function(e){return v.useMemo(function(){return h5(e)},[e])},p5=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},Bie=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},m5=function(e,t,n,r,i,o){return e<=i&&i<=e+n&&t<=o&&o<=t+r},Wa=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,o=r.clientY,a=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===a.width?1:n.width/a.width;return[(i-a.left)*s,(o-a.top)*s]},zie=Object.keys(s5),Wie=Object.keys(c5),Uie=function(e,t,n){if(e==="*")return!0;if(X0(e))return e(t);if(ov(e)){var r=n?Yr(t,n):t;return bie(One(r,Object.keys(e)),e)}return!1},Zv=function(e,t,n,r){var i=r===void 0?{}:r,o=i.dataKey,a=i.colorKey,s=a===void 0?"color":a,l=i.targetKey,c=l===void 0?"fill":l,u=[],d={};return e.length&&t.length&&(u=[].concat(e),t.forEach(function(f){for(var h,p=function(){var g=h.value,x=g.id,_=g.match;if(Uie(_,f,o)){var w=e.find(function(T){return T.id===x});if(w){if(Wie.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var C=Yr(f,s),b=w.background,S=w.color,M=x;w.background==="inherit"&&(M=M+".bg."+C,b=C),w.color==="inherit"&&(M=M+".fg."+C,S=C),cl(f,c,"url(#"+M+")"),d[M]||(u.push(Wr({},w,{id:M,background:b,color:S})),d[M]=1)}else cl(f,c,"url(#"+x+")");else if(zie.includes(w.type))if(w.colors.map(function(T){return T.color}).includes("inherit")){var $=Yr(f,s),k=x,R=Wr({},w,{colors:w.colors.map(function(T,E){return T.color!=="inherit"?T:(k=k+"."+E+"."+$,Wr({},T,{color:T.color==="inherit"?$:T.color}))})});R.id=k,cl(f,c,"url(#"+k+")"),d[k]||(u.push(R),d[k]=1)}else cl(f,c,"url(#"+x+")")}return 1}},m=Sie(n);!(h=m()).done&&!p(););})),u};function Xv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=0,o=t;i<o.length;i++){var a=o[i];typeof a=="function"?a(r):a!=null&&(a.current=r)}}}var Xo=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},Ko=function(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),t.outlineWidth>0&&(e.strokeStyle=t.outlineColor,e.lineWidth=2*t.outlineWidth,e.lineJoin="round",e.strokeText(n,r,i)),e.fillStyle=t.fill,e.fillText(n,r,i)};function xl(){return xl=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},xl.apply(null,arguments)}function Cx(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 Hie=["style","children"],Vie=["outlineWidth","outlineColor","outlineOpacity"],Ds=function(e){var t=e.style,n=e.children,r=Cx(e,Hie),i=t.outlineWidth,o=t.outlineColor,a=t.outlineOpacity,s=Cx(t,Vie);return y.jsxs(y.Fragment,{children:[i>0&&y.jsx(Ht.text,xl({},r,{style:xl({},s,{strokeWidth:2*i,stroke:o,strokeOpacity:a,strokeLinejoin:"round"}),children:n})),y.jsx(Ht.text,xl({},r,{style:s,children:n}))]})};function Sx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qie(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(i,o){if(i){if(typeof i=="string")return Sx(i,o);var a={}.toString.call(i).slice(8,-1);return a==="Object"&&i.constructor&&(a=i.constructor.name),a==="Map"||a==="Set"?Array.from(i):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Sx(i,o):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
274
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Md(){return Md=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},Md.apply(null,arguments)}var g5={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:Gee,accent:Zee,dark2:Xee,paired:Kee,pastel1:Jee,pastel2:Qee,set1:ete,set2:tte,set3:V6,tableau10:nte},Yie=Object.keys(g5),v5={brown_blueGreen:Xf,purpleRed_green:Kf,pink_yellowGreen:Jf,purple_orange:Qf,red_blue:eh,red_grey:th,red_yellow_blue:nh,red_yellow_green:rh,spectral:ih},Gie=Object.keys(v5),Zie={brown_blueGreen:rte,purpleRed_green:ite,pink_yellowGreen:ote,purple_orange:ate,red_blue:ste,red_grey:lte,red_yellow_blue:cte,red_yellow_green:ute,spectral:dte},b5={blues:vh,greens:bh,greys:yh,oranges:_h,purples:xh,reds:wh,blue_green:oh,blue_purple:ah,green_blue:sh,orange_red:lh,purple_blue_green:ch,purple_blue:uh,purple_red:dh,red_purple:fh,yellow_green_blue:hh,yellow_green:ph,yellow_orange_brown:mh,yellow_orange_red:gh},Xie=Object.keys(b5),Kie={blues:Ste,greens:Tte,greys:$te,oranges:Ete,purples:kte,reds:Mte,turbo:Lte,viridis:Fte,inferno:zte,magma:Bte,plasma:Wte,cividis:Ote,warm:Rte,cool:Dte,cubehelixDefault:Ate,blue_green:fte,blue_purple:hte,green_blue:pte,orange_red:mte,purple_blue_green:gte,purple_blue:vte,purple_red:bte,red_purple:yte,yellow_green_blue:xte,yellow_green:wte,yellow_orange_brown:_te,yellow_orange_red:Cte},Fp=Md({},g5,v5,b5),Jie=function(e){return Yie.includes(e)},Qie=function(e){return Gie.includes(e)},eoe=function(e){return Xie.includes(e)},toe={rainbow:Ite,sinebow:Nte};Md({},Zie,Kie,toe);var noe=function(e){return e.theme!==void 0},roe=function(e){return e.from!==void 0},ioe=function(e,t){if(typeof e=="function")return e;if(ov(e)){if(noe(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Yr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(roe(e)){var r=function(l){return Yr(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")o.push(function(d){return d.brighter(u)});else if(c==="darker")o.push(function(d){return d.darker(u)});else{if(c!=="opacity")throw new Error("Invalid color modifier: '"+c+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(d){return d.opacity=u,d})}},s=qie(e.modifiers);!(i=s()).done;)a();return o.length===0?r:function(l){return o.reduce(function(c,u){return u(c)},ss(r(l))).toString()}}return r}throw new Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}},mr=function(e,t){return v.useMemo(function(){return ioe(e,t)},[e,t])},ooe=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Yr(d,t)};if(Array.isArray(e)){var r=Eo(e),i=function(d){return r(n(d))};return i.scale=r,i}if(ov(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return Yr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(Jie(e.scheme)){var o=Eo(Fp[e.scheme]),a=function(d){return o(n(d))};return a.scale=o,a}if(Qie(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>11))throw new Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var s=Eo(Fp[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(eoe(e.scheme)){if(e.size!==void 0&&(e.size<3||e.size>9))throw new Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var c=Eo(Fp[e.scheme][e.size||9]),u=function(d){return c(n(d))};return u.scale=c,u}}throw new Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}},Kv=function(e,t){return v.useMemo(function(){return ooe(e,t)},[e,t])};function Et(){return Et=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},Et.apply(null,arguments)}var aoe={pointerEvents:"none"},soe=function(e){var t=e.label,n=e.style,r=Lt();return y.jsx(Ht.g,{transform:n.transform,opacity:n.progress,style:aoe,children:y.jsx(Ds,{textAnchor:"middle",dominantBaseline:"central",style:Et({},r.labels.text,{fill:n.textColor}),children:t})})},y5=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},x5=function(e,t){return e.filter(function(n){return Math.abs(Nc(n.arc.endAngle-n.arc.startAngle))>=t})},loe={startAngle:{enter:function(e){return Et({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Et({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Et({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Et({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Et({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Et({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Et({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Et({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Et({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Et({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Et({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Et({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Et({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},w5=function(e,t){return v.useMemo(function(){var n=loe[e];return{enter:function(r){return Et({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Et({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Et({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},_5=function(e,t){var n=Mie(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return No(n,r)},coe=function(e){return function(t,n,r,i){return Qi([t,n,r,i],function(o,a,s,l){var c=_5({startAngle:o,endAngle:a,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},uoe=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),o=i.animate,a=i.config,s=w5(n,r);return{transition:ea(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:a,immediate:!o}),interpolate:coe(t)}},doe=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,o=i===void 0?0:i,a=e.computeExtraProps,s=a===void 0?function(){return{}}:a;return v.useMemo(function(){return x5(t,o).map(function(l){var c=_5(l.arc,r);return Et({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,o,s])},foe=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,o=e.radiusOffset,a=e.skipAngle,s=e.skipRadius,l=e.textColor,c=e.component,u=c===void 0?soe:c,d=gi(i),f=Lt(),h=mr(l,f),p=v.useMemo(function(){return n.filter(function(w){var C=Math.abs(Nc(w.arc.endAngle-w.arc.startAngle)),b=Math.abs(w.arc.outerRadius-w.arc.innerRadius);return C>=a&&b>=s})},[n,a,s]),m=uoe(p,o,r),g=m.transition,x=m.interpolate,_=u;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,label:d(C),style:{progress:w.progress,transform:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:h(C)}})})})},hoe=function(e,t,n){Xo(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){Ko(e,Et({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},poe=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,o=e.textColor,a=gi(i),s=Lt(),l=mr(o,s),c=v.useCallback(function(u){return{label:a(u),textColor:l(u)}},[a,l]);return doe({data:t,offset:n,skipAngle:r,computeExtraProps:c})},moe=function(e){var t=e.label,n=e.style,r=Lt();return y.jsxs(Ht.g,{opacity:n.opacity,children:[y.jsx(Ht.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),y.jsx(Ds,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Et({},r.labels.text,{fill:n.textColor}),children:t})]})},goe=function(e){var t=y5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Jv=function(e,t,n,r){var i,o,a=y5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=No(a,e.outerRadius+t),l=No(a,e.outerRadius+t+n);return a<Math.PI/2||a>1.5*Math.PI?(i="after",o={x:l.x+r,y:l.y}):(i="before",o={x:l.x-r,y:l.y}),{side:i,points:[s,l,o]}},voe=wv().x(function(e){return e.x}).y(function(e){return e.y}),boe=function(e,t,n,r,i,o,a){return Qi([e,t,n,r,i,o,a],function(s,l,c,u,d,f,h){var p=Jv({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return voe(p)})},yoe=function(e,t,n,r){return Qi([e,t,n,r],function(i,o,a,s){return goe({startAngle:i,endAngle:o})})},xoe=function(e,t,n,r,i,o,a,s){return Qi([e,t,n,r,i,o,a,s],function(l,c,u,d,f,h,p,m){var g=Jv({startAngle:l,endAngle:c,outerRadius:d},f,h,p),x=g.points,_=g.side,w=x[2];return _==="before"?w.x-=m:w.x+=m,"translate("+w.x+","+w.y+")"})},woe=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,o=e.straightLength,a=e.skipAngle,s=a===void 0?0:a,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,h=d.config,p=Lt(),m=mr(c,p),g=mr(u,p),x=function(w,C){return v.useMemo(function(){return x5(w,C)},[w,C])}(t,s),_=function(w){var C=w.offset,b=w.diagonalLength,S=w.straightLength,M=w.textOffset,$=w.getLinkColor,k=w.getTextColor;return v.useMemo(function(){return{enter:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:M,linkColor:$(R),textColor:k(R),opacity:0}},update:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:b,straightLength:S,textOffset:M,linkColor:$(R),textColor:k(R),opacity:1}},leave:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:M,linkColor:$(R),textColor:k(R),opacity:0}}}},[b,S,M,$,k,C])}({offset:r,diagonalLength:i,straightLength:o,textOffset:l,getLinkColor:m,getTextColor:g});return{transition:ea(x,{keys:function(w){return w.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:boe,interpolateTextAnchor:yoe,interpolateTextPosition:xoe}},_oe=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,o=e.offset,a=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?moe:f,p=gi(r),m=woe({data:n,skipAngle:i,offset:o,diagonalLength:a,straightLength:s,textOffset:c,linkColor:d,textColor:u}),g=m.transition,x=m.interpolateLink,_=m.interpolateTextAnchor,w=m.interpolateTextPosition,C=h;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(b,S){return v.createElement(C,{key:S.id,datum:S,label:p(S),style:Et({},b,{thickness:l,path:x(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength),textAnchor:_(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius),textPosition:w(b.startAngle,b.endAngle,b.innerRadius,b.outerRadius,b.offset,b.diagonalLength,b.straightLength,b.textOffset)})})})})},Coe=function(e,t,n,r){e.textBaseline="middle",Xo(e,n.labels.text),t.forEach(function(i){e.textAlign=l5.canvas.align[i.textAnchor],Ko(e,Et({},n.labels.text,{fill:i.textColor}),String(i.label),i.x,i.y),e.beginPath(),e.strokeStyle=i.linkColor,e.lineWidth=r,i.points.forEach(function(o,a){a===0?e.moveTo(o.x,o.y):e.lineTo(o.x,o.y)}),e.stroke()})},Soe=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,o=i===void 0?.5:i,a=e.diagonalLength,s=e.straightLength,l=e.computeExtraProps,c=l===void 0?function(){return{}}:l,u=v.useMemo(function(){return t.filter(function(d){return Math.abs(Nc(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Et({},Jv(d.arc,o,a,s),{data:d})})},[t,r,o,a,s]);return v.useMemo(function(){return u.map(function(d){return Et({},c(d),d)})},[u,c])},Toe=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,o=e.straightLength,a=e.textOffset,s=a===void 0?0:a,l=e.label,c=e.linkColor,u=e.textColor,d=gi(l),f=Lt(),h=mr(c,f),p=mr(u,f),m=v.useCallback(function(g){var x,_={x:g.points[2].x,y:g.points[2].y};return g.side==="before"?(_.x-=s,x="end"):(_.x+=s,x="start"),Et({},_,{label:d(g.data),linkColor:h(g.data),textAnchor:x,textColor:p(g.data)})},[d,h,p,s]);return Soe({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:o,computeExtraProps:m})},$oe=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,o=e.onMouseMove,a=e.onMouseLeave,s=v.useCallback(function(d){return r==null?void 0:r(t,d)},[r,t]),l=v.useCallback(function(d){return i==null?void 0:i(t,d)},[i,t]),c=v.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]),u=v.useCallback(function(d){return a==null?void 0:a(t,d)},[a,t]);return y.jsx(Ht.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:r?s:void 0,onMouseEnter:i?l:void 0,onMouseMove:o?c:void 0,onMouseLeave:a?u:void 0,"data-testid":"arc."+t.id})},koe=function(e,t,n,r,i){return Qi([e,t,n,r],function(o,a,s,l){return i({startAngle:o,endAngle:a,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},Moe=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,o=r.config,a=w5(t,n);return{transition:ea(e,{keys:function(s){return s.id},initial:a.update,from:a.enter,enter:a.update,update:a.update,leave:a.leave,config:o,immediate:!i}),interpolate:koe}},Eoe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?$oe:d,h=Lt(),p=mr(o,h),m=Moe(n,u,{enter:function(w){return{opacity:0,color:w.color,borderColor:p(w)}},update:function(w){return{opacity:1,color:w.color,borderColor:p(w)}},leave:function(w){return{opacity:0,color:w.color,borderColor:p(w)}}}),g=m.transition,x=m.interpolate,_=f;return y.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,style:Et({},w,{borderWidth:i,path:x(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,r)}),onClick:a,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},Ooe=function(e,t,n,r,i,o){o===void 0&&(o=!0);var a=[],s=No(fr(r),n);a.push([s.x,s.y]);var l=No(fr(i),n);a.push([l.x,l.y]);for(var c=Math.round(Math.min(r,i));c<=Math.round(Math.max(r,i));c++)if(c%90==0){var u=No(fr(c),n);a.push([u.x,u.y])}a=a.map(function(g){var x=g[0],_=g[1];return[e+x,t+_]}),o&&a.push([e,t]);var d=a.map(function(g){return g[0]}),f=a.map(function(g){return g[1]}),h=Math.min.apply(Math,d),p=Math.max.apply(Math,d),m=Math.min.apply(Math,f);return{points:a,x:h,y:m,width:p-h,height:Math.max.apply(Math,f)-m}},Aoe=function(e,t,n,r,i,o){var a=p5(i,o,e,t);return a<n&&a>r},Roe=function(e,t,n,r,i,o,a){if(Aoe(e,t,n,r,o,a)){var s=Bie(o,a,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},Doe=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,o=i===void 0?0:i;return v.useMemo(function(){return bJ().innerRadius(function(a){return a.innerRadius}).outerRadius(function(a){return a.outerRadius}).cornerRadius(r).padAngle(o)},[r,o])},Ioe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},joe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
|
|
275
|
+
M`+r/2+` 0
|
|
276
|
+
L`+.8*r+" "+r/2+`
|
|
277
|
+
L`+r/2+" "+r+`
|
|
278
|
+
L`+.2*r+" "+r/2+`
|
|
279
|
+
L`+r/2+` 0
|
|
280
|
+
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},Poe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("rect",{x:t,y:n,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},Noe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,o=e.opacity,a=o===void 0?1:o,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return y.jsx("g",{transform:"translate("+t+","+n+")",children:y.jsx("path",{d:`
|
|
281
|
+
M`+r/2+` 0
|
|
282
|
+
L`+r+" "+r+`
|
|
283
|
+
L0 `+r+`
|
|
284
|
+
L`+r/2+` 0
|
|
285
|
+
`,fill:i,opacity:a,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function Ui(){return Ui=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},Ui.apply(null,arguments)}var lr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},Loe={top:0,right:0,bottom:0,left:0},Qv=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,o=e.itemCount,a=e.itemWidth,s=e.itemHeight;if(typeof i!="number"&&(typeof(t=i)!="object"||Array.isArray(t)||t===null))throw new Error("Invalid property padding, must be one of: number, object");var l=typeof i=="number"?{top:i,right:i,bottom:i,left:i}:Ui({},Loe,i),c=l.left+l.right,u=l.top+l.bottom,d=a+c,f=s+u,h=(o-1)*r;return n==="row"?d=a*o+h+c:n==="column"&&(f=s*o+h+u),{width:d,height:f,padding:l}},C5=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,o=e.containerHeight,a=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-a)/2;break;case"top-right":l+=i-a;break;case"right":l+=i-a,c+=(o-s)/2;break;case"bottom-right":l+=i-a,c+=o-s;break;case"bottom":l+=(i-a)/2,c+=o-s;break;case"bottom-left":c+=o-s;break;case"left":c+=(o-s)/2;break;case"center":l+=(i-a)/2,c+=(o-s)/2}return{x:l,y:c}},S5=function(e){var t,n,r,i,o,a,s=e.direction,l=e.justify,c=e.symbolSize,u=e.symbolSpacing,d=e.width,f=e.height;switch(s){case"left-to-right":t=0,n=(f-c)/2,i=f/2,a="central",l?(r=d,o="end"):(r=c+u,o="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,a="central",l?(r=0,o="start"):(r=d-c-u,o="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,o="middle",l?(i=f,a="alphabetic"):(i=c+u,a="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,o="middle",l?(i=0,a="text-before-edge"):(i=f-c-u,a="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:o,labelAlignment:a}},Foe={circle:Ioe,diamond:joe,square:Poe,triangle:Noe},Boe=function(e){var t,n,r,i,o,a,s,l,c,u,d,f=e.x,h=e.y,p=e.width,m=e.height,g=e.data,x=e.direction,_=x===void 0?lr.itemDirection:x,w=e.justify,C=w===void 0?lr.justify:w,b=e.textColor,S=e.background,M=S===void 0?"transparent":S,$=e.opacity,k=$===void 0?1:$,R=e.symbolShape,T=R===void 0?lr.symbolShape:R,E=e.symbolSize,A=E===void 0?lr.symbolSize:E,I=e.symbolSpacing,j=I===void 0?lr.symbolSpacing:I,D=e.symbolBorderWidth,O=D===void 0?0:D,L=e.symbolBorderColor,z=L===void 0?"transparent":L,N=e.onClick,H=e.onMouseEnter,Y=e.onMouseLeave,q=e.toggleSerie,Z=e.effects,X=v.useState({}),J=X[0],ee=X[1],W=Lt(),F=v.useCallback(function(le){if(Z){var ye=Z.filter(function(ge){return ge.on==="hover"}).reduce(function(ge,be){return Ui({},ge,be.style)},{});ee(ye)}H==null||H(g,le)},[H,g,Z]),B=v.useCallback(function(le){if(Z){var ye=Z.filter(function(ge){return ge.on!=="hover"}).reduce(function(ge,be){return Ui({},ge,be.style)},{});ee(ye)}Y==null||Y(g,le)},[Y,g,Z]),V=S5({direction:_,justify:C,symbolSize:(t=J.symbolSize)!=null?t:A,symbolSpacing:j,width:p,height:m}),P=V.symbolX,te=V.symbolY,K=V.labelX,G=V.labelY,ae=V.labelAnchor,ne=V.labelAlignment,re=[N,H,Y,q].some(function(le){return le!==void 0}),oe=typeof T=="function"?T:Foe[T];return y.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=J.itemOpacity)!=null?n:k},children:[y.jsx("rect",{width:p,height:m,fill:(r=J.itemBackground)!=null?r:M,style:{cursor:re?"pointer":"auto"},onClick:function(le){N==null||N(g,le),q==null||q(g.id)},onMouseEnter:F,onMouseLeave:B}),fe.createElement(oe,Ui({id:g.id,x:P,y:te,size:(i=J.symbolSize)!=null?i:A,fill:(o=(a=g.fill)!=null?a:g.color)!=null?o:"black",borderWidth:(s=J.symbolBorderWidth)!=null?s:O,borderColor:(l=J.symbolBorderColor)!=null?l:z},g.hidden?W.legends.hidden.symbol:void 0)),y.jsx(Ds,{textAnchor:ae,style:Ui({},W.legends.text,{fill:(c=(u=(d=J.itemTextColor)!=null?d:b)!=null?u:W.legends.text.fill)!=null?c:"black",dominantBaseline:ne,pointerEvents:"none",userSelect:"none"},g.hidden?W.legends.hidden.text:void 0),x:K,y:G,children:g.label})]})},zoe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,o=e.padding,a=o===void 0?lr.padding:o,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?lr.itemDirection:d,h=e.itemsSpacing,p=h===void 0?lr.itemsSpacing:h,m=e.itemTextColor,g=e.itemBackground,x=g===void 0?"transparent":g,_=e.itemOpacity,w=_===void 0?1:_,C=e.symbolShape,b=e.symbolSize,S=e.symbolSpacing,M=e.symbolBorderWidth,$=e.symbolBorderColor,k=e.onClick,R=e.onMouseEnter,T=e.onMouseLeave,E=e.toggleSerie,A=Qv({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:a}).padding,I=i==="row"?c+p:0,j=i==="column"?u+p:0;return y.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(D,O){return y.jsx(Boe,{data:D,x:O*I+A.left,y:O*j+A.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:m,background:x,opacity:w,symbolShape:C,symbolSize:b,symbolSpacing:S,symbolBorderWidth:M,symbolBorderColor:$,onClick:k,onMouseEnter:R,onMouseLeave:T,toggleSerie:E},O)})})},e1=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,o=i===void 0?lr.translateX:i,a=e.translateY,s=a===void 0?lr.translateY:a,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?lr.padding:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?lr.itemsSpacing:h,m=e.itemWidth,g=e.itemHeight,x=e.itemDirection,_=e.itemTextColor,w=e.itemBackground,C=e.itemOpacity,b=e.symbolShape,S=e.symbolSize,M=e.symbolSpacing,$=e.symbolBorderWidth,k=e.symbolBorderColor,R=e.onClick,T=e.onMouseEnter,E=e.onMouseLeave,A=e.toggleSerie,I=e.effects,j=Qv({itemCount:t.length,itemsSpacing:p,itemWidth:m,itemHeight:g,direction:c,padding:d}),D=j.width,O=j.height,L=C5({anchor:l,translateX:o,translateY:s,containerWidth:n,containerHeight:r,width:D,height:O}),z=L.x,N=L.y;return y.jsx(zoe,{data:t,x:z,y:N,direction:c,padding:d,justify:f,effects:I,itemsSpacing:p,itemWidth:m,itemHeight:g,itemDirection:x,itemTextColor:_,itemBackground:w,itemOpacity:C,symbolShape:b,symbolSize:S,symbolSpacing:M,symbolBorderWidth:$,symbolBorderColor:k,onClick:R,onMouseEnter:T,onMouseLeave:E,toggleSerie:typeof A=="boolean"?void 0:A})},Woe={start:"left",middle:"center",end:"right"},t1=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,o=t.translateX,a=o===void 0?0:o,s=t.translateY,l=s===void 0?0:s,c=t.anchor,u=t.direction,d=t.padding,f=d===void 0?0:d,h=t.justify,p=h!==void 0&&h,m=t.itemsSpacing,g=m===void 0?0:m,x=t.itemWidth,_=t.itemHeight,w=t.itemDirection,C=w===void 0?"left-to-right":w,b=t.itemTextColor,S=t.symbolSize,M=S===void 0?16:S,$=t.symbolSpacing,k=$===void 0?8:$,R=t.theme,T=Qv({itemCount:n.length,itemWidth:x,itemHeight:_,itemsSpacing:g,direction:u,padding:f}),E=T.width,A=T.height,I=T.padding,j=C5({anchor:c,translateX:a,translateY:l,containerWidth:r,containerHeight:i,width:E,height:A}),D=j.x,O=j.y,L=u==="row"?x+g:0,z=u==="column"?_+g:0;e.save(),e.translate(D,O),Xo(e,R.legends.text),n.forEach(function(N,H){var Y,q=H*L+I.left,Z=H*z+I.top,X=S5({direction:C,justify:p,symbolSize:M,symbolSpacing:k,width:x,height:_}),J=X.symbolX,ee=X.symbolY,W=X.labelX,F=X.labelY,B=X.labelAnchor,V=X.labelAlignment;e.fillStyle=(Y=N.color)!=null?Y:"black",e.fillRect(q+J,Z+ee,M,M),e.textAlign=Woe[B],V==="central"&&(e.textBaseline="middle"),Ko(e,Ui({},R.legends.text,{fill:b??R.legends.text.fill}),String(N.label),q+W,Z+F)}),e.restore()};function gr(){return gr=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},gr.apply(null,arguments)}function Lc(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 Tx,Uoe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,o=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(a,s){var l;return y.jsx(e1,gr({},a,{containerWidth:t,containerHeight:n,data:(l=a.data)!=null?l:i,toggleSerie:a.toggleSerie?o:void 0}),s)})})},me={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsSkipRadius:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return y.jsx(dv,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(Tx=window.devicePixelRatio)!=null?Tx:1},Hoe=["points"],T5=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,o=i===void 0?me.value:i,a=e.valueFormat,s=e.colors,l=s===void 0?me.colors:s,c=gi(r),u=gi(o),d=cs(a),f=Kv(l,"id");return v.useMemo(function(){return t.map(function(h){var p,m=c(h),g=u(h),x={id:m,label:(p=h.label)!=null?p:m,hidden:!1,value:g,formattedValue:d(g),data:h};return gr({},x,{color:f(x)})})},[t,c,u,d,f])},Voe=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,o=e.outerRadius,a=e.padAngle,s=e.sortByValue,l=e.activeId,c=e.activeInnerRadiusOffset,u=e.activeOuterRadiusOffset,d=e.hiddenIds,f=e.forwardLegendData,h=v.useMemo(function(){var x=_J().value(function(_){return _.value}).startAngle(fr(n)).endAngle(fr(r)).padAngle(fr(a));return s||x.sortValues(null),x},[n,r,a,s]),p=v.useMemo(function(){var x=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(x).map(function(_){var w=Math.abs(_.endAngle-_.startAngle);return gr({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:l===_.data.id?i-c:i,outerRadius:l===_.data.id?o+u:o,thickness:o-i,padAngle:_.padAngle,angle:w,angleDeg:Nc(w)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,l,i,c,o,u]),m=p.legendData,g=v.useRef(f);return v.useEffect(function(){typeof g.current=="function"&&g.current(m)},[g,m]),p},qoe=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,o=v.useState(i||r===void 0?null:r),a=o[0],s=o[1];return{activeId:i?t:a,setActiveId:v.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},$5=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,o=i===void 0?me.innerRadius:i,a=e.startAngle,s=a===void 0?me.startAngle:a,l=e.endAngle,c=l===void 0?me.endAngle:l,u=e.padAngle,d=u===void 0?me.padAngle:u,f=e.sortByValue,h=f===void 0?me.sortByValue:f,p=e.cornerRadius,m=p===void 0?me.cornerRadius:p,g=e.fit,x=g===void 0?me.fit:g,_=e.activeInnerRadiusOffset,w=_===void 0?me.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,b=C===void 0?me.activeOuterRadiusOffset:C,S=e.activeId,M=e.onActiveIdChange,$=e.defaultActiveId,k=e.forwardLegendData,R=qoe({activeId:S,onActiveIdChange:M,defaultActiveId:$}),T=R.activeId,E=R.setActiveId,A=v.useState([]),I=A[0],j=A[1],D=v.useMemo(function(){var z,N=Math.min(n,r)/2,H=N*Math.min(o,1),Y=n/2,q=r/2;if(x){var Z=Ooe(Y,q,N,s-90,c-90),X=Z.points,J=Lc(Z,Hoe),ee=Math.min(n/J.width,r/J.height),W={width:J.width*ee,height:J.height*ee};W.x=(n-W.width)/2,W.y=(r-W.height)/2,Y=(Y-J.x)/J.width*J.width*ee+W.x,q=(q-J.y)/J.height*J.height*ee+W.y,z={box:J,ratio:ee,points:X},N*=ee,H*=ee}return{centerX:Y,centerY:q,radius:N,innerRadius:H,debug:z}},[n,r,o,s,c,x]),O=Voe({data:t,startAngle:s,endAngle:c,innerRadius:D.innerRadius,outerRadius:D.radius,padAngle:d,sortByValue:h,activeId:T,activeInnerRadiusOffset:w,activeOuterRadiusOffset:b,hiddenIds:I,forwardLegendData:k}),L=v.useCallback(function(z){j(function(N){return N.indexOf(z)>-1?N.filter(function(H){return H!==z}):[].concat(N,[z])})},[]);return gr({arcGenerator:Doe({cornerRadius:m,padAngle:fr(d)}),activeId:T,setActiveId:E,toggleSerie:L},O,D)},Yoe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,o=e.radius,a=e.innerRadius;return v.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:o,innerRadius:a}},[t,n,r,i,o,a])},Goe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,o=e.borderColor,a=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=ki(),m=p.showTooltipFromEvent,g=p.hideTooltip,x=v.useMemo(function(){if(a)return function(b,S){s==null||s(b,S)}},[a,s]),_=v.useMemo(function(){if(a)return function(b,S){m(v.createElement(f,{datum:b}),S),d(b.id),l==null||l(b,S)}},[a,m,d,l,f]),w=v.useMemo(function(){if(a)return function(b,S){m(v.createElement(f,{datum:b}),S),c==null||c(b,S)}},[a,m,c,f]),C=v.useMemo(function(){if(a)return function(b,S){g(),d(null),u==null||u(b,S)}},[a,g,d,u]);return y.jsx(Eoe,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:o,transitionMode:h,onClick:x,onMouseEnter:_,onMouseMove:w,onMouseLeave:C})},Zoe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Xoe=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,o=i===void 0?me.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?me.sortByValue:s,c=e.layers,u=c===void 0?me.layers:c,d=e.startAngle,f=d===void 0?me.startAngle:d,h=e.endAngle,p=h===void 0?me.endAngle:h,m=e.padAngle,g=m===void 0?me.padAngle:m,x=e.fit,_=x===void 0?me.fit:x,w=e.innerRadius,C=w===void 0?me.innerRadius:w,b=e.cornerRadius,S=b===void 0?me.cornerRadius:b,M=e.activeInnerRadiusOffset,$=M===void 0?me.activeInnerRadiusOffset:M,k=e.activeOuterRadiusOffset,R=k===void 0?me.activeOuterRadiusOffset:k,T=e.width,E=e.height,A=e.margin,I=e.colors,j=I===void 0?me.colors:I,D=e.borderWidth,O=D===void 0?me.borderWidth:D,L=e.borderColor,z=L===void 0?me.borderColor:L,N=e.enableArcLabels,H=N===void 0?me.enableArcLabels:N,Y=e.arcLabel,q=Y===void 0?me.arcLabel:Y,Z=e.arcLabelsSkipAngle,X=Z===void 0?me.arcLabelsSkipAngle:Z,J=e.arcLabelsSkipRadius,ee=J===void 0?me.arcLabelsSkipRadius:J,W=e.arcLabelsTextColor,F=W===void 0?me.arcLabelsTextColor:W,B=e.arcLabelsRadiusOffset,V=B===void 0?me.arcLabelsRadiusOffset:B,P=e.arcLabelsComponent,te=e.enableArcLinkLabels,K=te===void 0?me.enableArcLinkLabels:te,G=e.arcLinkLabel,ae=G===void 0?me.arcLinkLabel:G,ne=e.arcLinkLabelsSkipAngle,re=ne===void 0?me.arcLinkLabelsSkipAngle:ne,oe=e.arcLinkLabelsOffset,le=oe===void 0?me.arcLinkLabelsOffset:oe,ye=e.arcLinkLabelsDiagonalLength,ge=ye===void 0?me.arcLinkLabelsDiagonalLength:ye,be=e.arcLinkLabelsStraightLength,Me=be===void 0?me.arcLinkLabelsStraightLength:be,ce=e.arcLinkLabelsThickness,de=ce===void 0?me.arcLinkLabelsThickness:ce,Ce=e.arcLinkLabelsTextOffset,Ge=Ce===void 0?me.arcLinkLabelsTextOffset:Ce,we=e.arcLinkLabelsTextColor,ve=we===void 0?me.arcLinkLabelsTextColor:we,Ne=e.arcLinkLabelsColor,Ze=Ne===void 0?me.arcLinkLabelsColor:Ne,_t=e.arcLinkLabelComponent,Te=e.defs,Re=Te===void 0?me.defs:Te,ot=e.fill,Ue=ot===void 0?me.fill:ot,mt=e.isInteractive,ut=mt===void 0?me.isInteractive:mt,At=e.onClick,Ke=e.onMouseEnter,Le=e.onMouseMove,Ve=e.onMouseLeave,et=e.tooltip,Fe=et===void 0?me.tooltip:et,tt=e.activeId,vt=e.onActiveIdChange,at=e.defaultActiveId,Pe=e.transitionMode,Ee=Pe===void 0?me.transitionMode:Pe,Ye=e.legends,xt=Ye===void 0?me.legends:Ye,nt=e.forwardLegendData,bt=e.role,Jt=bt===void 0?me.role:bt,Ft=e.forwardedRef,zt=ca(T,E,A),fn=zt.outerWidth,qt=zt.outerHeight,$e=zt.margin,Je=zt.innerWidth,St=zt.innerHeight,on=T5({data:t,id:r,value:o,valueFormat:a,colors:j}),Yt=$5({data:on,width:Je,height:St,fit:_,innerRadius:C,startAngle:f,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:S,activeInnerRadiusOffset:$,activeOuterRadiusOffset:R,activeId:tt,onActiveIdChange:vt,defaultActiveId:at,forwardLegendData:nt}),Be=Yt.dataWithArc,ze=Yt.legendData,ht=Yt.arcGenerator,Rt=Yt.centerX,Tt=Yt.centerY,Qe=Yt.radius,$t=Yt.innerRadius,br=Yt.setActiveId,ln=Yt.toggleSerie,cn=Zv(Re,Be,Ue),An={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(An.arcs=y.jsx(Goe,{center:[Rt,Tt],data:Be,arcGenerator:ht,borderWidth:O,borderColor:z,isInteractive:ut,onClick:At,onMouseEnter:Ke,onMouseMove:Le,onMouseLeave:Ve,setActiveId:br,tooltip:Fe,transitionMode:Ee},"arcs")),K&&u.includes("arcLinkLabels")&&(An.arcLinkLabels=y.jsx(_oe,{center:[Rt,Tt],data:Be,label:ae,skipAngle:re,offset:le,diagonalLength:ge,straightLength:Me,strokeWidth:de,textOffset:Ge,textColor:ve,linkColor:Ze,component:_t},"arcLinkLabels")),H&&u.includes("arcLabels")&&(An.arcLabels=y.jsx(foe,{center:[Rt,Tt],data:Be,label:q,radiusOffset:V,skipAngle:X,skipRadius:ee,textColor:F,transitionMode:Ee,component:P},"arcLabels")),xt.length>0&&u.includes("legends")&&(An.legends=y.jsx(Uoe,{width:Je,height:St,data:ze,legends:xt,toggleSerie:ln},"legends"));var ao=Yoe({dataWithArc:Be,arcGenerator:ht,centerX:Rt,centerY:Tt,radius:Qe,innerRadius:$t});return y.jsx(Th,{width:fn,height:qt,margin:$e,defs:cn,role:Jt,ref:Ft,children:u.map(function(Ct,so){return An[Ct]!==void 0?An[Ct]:typeof Ct=="function"?y.jsx(v.Fragment,{children:v.createElement(Ct,ao)},so):null})})},Koe=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?me.isInteractive:n,i=e.animate,o=i===void 0?me.animate:i,a=e.motionConfig,s=a===void 0?me.motionConfig:a,l=e.theme,c=e.renderWrapper,u=Lc(e,Zoe);return y.jsx(sa,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Xoe,gr({isInteractive:r},u,{forwardedRef:t}))})}),Joe=["defaultWidth","defaultHeight","onResize","debounceResize"],Qoe=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Lc(e,Joe);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Koe,gr({width:l,height:c},a,{ref:t}))}})}),eae=["isInteractive","theme","renderWrapper"],tae=function(e){var t=e.data,n=e.id,r=n===void 0?me.id:n,i=e.value,o=i===void 0?me.value:i,a=e.valueFormat,s=e.sortByValue,l=s===void 0?me.sortByValue:s,c=e.startAngle,u=c===void 0?me.startAngle:c,d=e.endAngle,f=d===void 0?me.endAngle:d,h=e.padAngle,p=h===void 0?me.padAngle:h,m=e.fit,g=m===void 0?me.fit:m,x=e.innerRadius,_=x===void 0?me.innerRadius:x,w=e.cornerRadius,C=w===void 0?me.cornerRadius:w,b=e.activeInnerRadiusOffset,S=b===void 0?me.activeInnerRadiusOffset:b,M=e.activeOuterRadiusOffset,$=M===void 0?me.activeOuterRadiusOffset:M,k=e.width,R=e.height,T=e.margin,E=e.pixelRatio,A=E===void 0?me.pixelRatio:E,I=e.colors,j=I===void 0?me.colors:I,D=e.borderWidth,O=D===void 0?me.borderWidth:D,L=e.borderColor,z=L===void 0?me.borderColor:L,N=e.enableArcLabels,H=N===void 0?me.enableArcLabels:N,Y=e.arcLabel,q=Y===void 0?me.arcLabel:Y,Z=e.arcLabelsSkipAngle,X=Z===void 0?me.arcLabelsSkipAngle:Z,J=e.arcLabelsTextColor,ee=J===void 0?me.arcLabelsTextColor:J,W=e.arcLabelsRadiusOffset,F=W===void 0?me.arcLabelsRadiusOffset:W,B=e.enableArcLinkLabels,V=B===void 0?me.enableArcLinkLabels:B,P=e.arcLinkLabel,te=P===void 0?me.arcLinkLabel:P,K=e.arcLinkLabelsSkipAngle,G=K===void 0?me.arcLinkLabelsSkipAngle:K,ae=e.arcLinkLabelsOffset,ne=ae===void 0?me.arcLinkLabelsOffset:ae,re=e.arcLinkLabelsDiagonalLength,oe=re===void 0?me.arcLinkLabelsDiagonalLength:re,le=e.arcLinkLabelsStraightLength,ye=le===void 0?me.arcLinkLabelsStraightLength:le,ge=e.arcLinkLabelsThickness,be=ge===void 0?me.arcLinkLabelsThickness:ge,Me=e.arcLinkLabelsTextOffset,ce=Me===void 0?me.arcLinkLabelsTextOffset:Me,de=e.arcLinkLabelsTextColor,Ce=de===void 0?me.arcLinkLabelsTextColor:de,Ge=e.arcLinkLabelsColor,we=Ge===void 0?me.arcLinkLabelsColor:Ge,ve=e.isInteractive,Ne=ve===void 0?me.isInteractive:ve,Ze=e.onClick,_t=e.onMouseMove,Te=e.tooltip,Re=Te===void 0?me.tooltip:Te,ot=e.activeId,Ue=e.onActiveIdChange,mt=e.defaultActiveId,ut=e.legends,At=ut===void 0?me.legends:ut,Ke=e.forwardLegendData,Le=e.role,Ve=e.forwardedRef,et=v.useRef(null),Fe=Lt(),tt=ca(k,R,T),vt=tt.margin,at=tt.innerWidth,Pe=tt.innerHeight,Ee=tt.outerWidth,Ye=tt.outerHeight,xt=T5({data:t,id:r,value:o,valueFormat:a,colors:j}),nt=$5({data:xt,width:at,height:Pe,fit:g,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:S,activeOuterRadiusOffset:$,activeId:ot,onActiveIdChange:Ue,defaultActiveId:mt,forwardLegendData:Ke}),bt=nt.dataWithArc,Jt=nt.arcGenerator,Ft=nt.centerX,zt=nt.centerY,fn=nt.radius,qt=nt.innerRadius,$e=nt.setActiveId,Je=mr(z,Fe),St=poe({data:bt,label:q,skipAngle:X,offset:F,textColor:ee}),on=Toe({data:bt,skipAngle:G,offset:ne,diagonalLength:oe,straightLength:ye,label:te,linkColor:we,textOffset:ce,textColor:Ce});v.useEffect(function(){if(et.current){et.current.width=Ee*A,et.current.height=Ye*A;var Qe=et.current.getContext("2d");Qe.scale(A,A),Qe.fillStyle=Fe.background,Qe.fillRect(0,0,Ee,Ye),Qe.save(),Qe.translate(vt.left,vt.top),Jt.context(Qe),Qe.save(),Qe.translate(Ft,zt),bt.forEach(function($t){Qe.beginPath(),Qe.fillStyle=$t.color,Qe.strokeStyle=Je($t),Qe.lineWidth=O,Jt($t.arc),Qe.fill(),O>0&&Qe.stroke()}),V===!0&&Coe(Qe,on,Fe,be),H===!0&&hoe(Qe,St,Fe),Qe.restore(),At.forEach(function($t){t1(Qe,gr({},$t,{data:bt,containerWidth:at,containerHeight:Pe,theme:Fe}))})}},[et,at,Pe,Ee,Ye,vt.top,vt.left,A,Ft,zt,Jt,bt,O,Je,H,St,V,on,be,At,Fe]);var Yt=v.useMemo(function(){return bt.map(function(Qe){return gr({id:Qe.id},Qe.arc)})},[bt]),Be=function(Qe){if(!et.current)return null;var $t=Wa(et.current,Qe),br=$t[0],ln=$t[1],cn=Roe(vt.left+Ft,vt.top+zt,fn,qt,Yt,br,ln);return cn?bt.find(function(An){return An.id===cn.id}):null},ze=ki(),ht=ze.showTooltipFromEvent,Rt=ze.hideTooltip,Tt=function(Qe){var $t=Be(Qe);$t?(_t==null||_t($t,Qe),$e($t.id),ht(v.createElement(Re,{datum:$t}),Qe)):($e(null),Rt())};return y.jsx("canvas",{ref:Xv(et,Ve),width:Ee*A,height:Ye*A,style:{width:Ee,height:Ye,cursor:Ne?"auto":"normal"},onMouseEnter:Ne?Tt:void 0,onMouseMove:Ne?Tt:void 0,onMouseLeave:Ne?function(){Rt()}:void 0,onClick:Ne?function(Qe){if(Ze){var $t=Be(Qe);$t&&Ze($t,Qe)}}:void 0,role:Le})},nae=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?me.isInteractive:n,i=e.theme,o=e.renderWrapper,a=Lc(e,eae);return y.jsx(sa,{isInteractive:r,renderWrapper:o,theme:i,children:y.jsx(tae,gr({isInteractive:r},a,{forwardedRef:t}))})}),rae=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=Lc(e,rae);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(nae,gr({width:l,height:c},a,{ref:t}))}})});function iae(){}var oae=iae,Bp=n5,aae=oae,sae=Hv,lae=1/0,cae=Bp&&1/sae(new Bp([,-0]))[1]==lae?function(e){return new Bp(e)}:aae,uae=cae,dae=vv,fae=GS,hae=ZS,pae=bv,mae=uae,gae=Hv,vae=200;function bae(e,t,n){var r=-1,i=fae,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=hae;else if(o>=vae){var c=t?null:mae(e);if(c)return gae(c);a=!1,i=pae,l=new dae}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var k5=bae,yae=k5;function xae(e){return e&&e.length?yae(e):[]}var wae=xae;const $x=nn(wae);var _ae=Rf,Cae=qv,Sae=1,Tae=2;function $ae(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new _ae;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Cae(u,c,Sae|Tae,r,d):f))return!1}}return!0}var kae=$ae,Mae=Qr;function Eae(e){return e===e&&!Mae(e)}var M5=Eae,Oae=M5,Aae=Pc;function Rae(e){for(var t=Aae(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Oae(i)]}return t}var Dae=Rae;function Iae(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var E5=Iae,jae=kae,Pae=Dae,Nae=E5;function Lae(e){var t=Pae(e);return t.length==1&&t[0][2]?Nae(t[0][0],t[0][1]):function(n){return n===e||jae(n,e,t)}}var Fae=Lae,Bae=qv,zae=RS,Wae=Y6,Uae=cv,Hae=M5,Vae=E5,qae=Os,Yae=1,Gae=2;function Zae(e,t){return Uae(e)&&Hae(t)?Vae(qae(e),t):function(n){var r=zae(n,e);return r===void 0&&r===t?Wae(n,e):Bae(t,r,Yae|Gae)}}var Xae=Zae;function Kae(e){return function(t){return t==null?void 0:t[e]}}var Jae=Kae,Qae=Ic;function ese(e){return function(t){return Qae(t,e)}}var tse=ese,nse=Jae,rse=tse,ise=cv,ose=Os;function ase(e){return ise(e)?nse(ose(e)):rse(e)}var sse=ase,lse=Fae,cse=Xae,use=Nf,dse=Kn,fse=sse;function hse(e){return typeof e=="function"?e:e==null?use:typeof e=="object"?dse(e)?cse(e[0],e[1]):lse(e):fse(e)}var n1=hse,pse=n1,mse=k5;function gse(e,t){return e&&e.length?mse(e,pse(t)):[]}var vse=gse;const hg=nn(vse);var bse=fS,yse=Pc;function xse(e,t){return e&&bse(e,t,yse)}var wse=xse,_se=$s;function Cse(e,t){return function(n,r){if(n==null)return n;if(!_se(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Sse=Cse,Tse=wse,$se=Sse,kse=$se(Tse),O5=kse,Mse=O5,Ese=$s;function Ose(e,t){var n=-1,r=Ese(e)?Array(e.length):[];return Mse(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Ase=Ose;function Rse(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Dse=Rse,kx=Lf;function Ise(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=kx(e),a=t!==void 0,s=t===null,l=t===t,c=kx(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var jse=Ise,Pse=jse;function Nse(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Pse(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Lse=Nse,zp=Ff,Fse=Ic,Bse=n1,zse=Ase,Wse=Dse,Use=ks,Hse=Lse,Vse=Nf,qse=Kn;function Yse(e,t,n){t.length?t=zp(t,function(o){return qse(o)?function(a){return Fse(a,o.length===1?o[0]:o)}:o}):t=[Vse];var r=-1;t=zp(t,Use(Bse));var i=zse(e,function(o,a,s){var l=zp(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return Wse(i,function(o,a){return Hse(o,a,n)})}var Gse=Yse,Zse=Z6,Xse=Gse,Kse=lv,Mx=kS,Jse=Kse(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Mx(e,t[0],t[1])?t=[]:n>2&&Mx(t[0],t[1],t[2])&&(t=[t[0]]),Xse(e,Zse(t,1),[])}),Qse=Jse;const ele=nn(Qse);var tle=$i,nle=vr,rle="[object Date]";function ile(e){return nle(e)&&tle(e)==rle}var ole=ile,ale=ole,sle=ks,Ex=jf,Ox=Ex&&Ex.isDate,lle=Ox?sle(Ox):ale,cle=lle;const ule=nn(cle);function So(){return So=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},So.apply(null,arguments)}var _a=[function(e){return e.setMilliseconds(0)},function(e){return e.setSeconds(0)},function(e){return e.setMinutes(0)},function(e){return e.setHours(0)},function(e){return e.setDate(1)},function(e){return e.setMonth(0)}],dle={millisecond:[],second:_a.slice(0,1),minute:_a.slice(0,2),hour:_a.slice(0,3),day:_a.slice(0,4),month:_a.slice(0,5),year:_a.slice(0,6)},fle=function(e){return function(t){return dle[e].forEach(function(n){n(t)}),t}},A5=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,o=e.useUTC,a=o===void 0||o,s=fle(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=a?H6(n):W6(n);return s(c(l))}},bo={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},hle=function(e,t,n,r){var i,o,a,s,l=e.min,c=l===void 0?bo.min:l,u=e.max,d=u===void 0?bo.max:u,f=e.stacked,h=f===void 0?bo.stacked:f,p=e.reverse,m=p===void 0?bo.reverse:p,g=e.clamp,x=g===void 0?bo.clamp:g,_=e.nice,w=_===void 0?bo.nice:_,C=e.round,b=C===void 0?bo.round:C;c==="auto"?i=h===!0?(o=t.minStacked)!=null?o:0:t.min:i=c,d==="auto"?a=h===!0?(s=t.maxStacked)!=null?s:0:t.max:a=d;var S=_d().range(r==="x"?[0,n]:[n,0]).interpolate(b?qS:tc).domain(m?[a,i]:[i,a]).clamp(x);return w===!0?S.nice():typeof w=="number"&&S.nice(w),ple(S,h)},ple=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},mle=function(e,t,n){var r=nQ().range([0,n]).domain(t.all);return r.type="point",r},gle={round:!1},vle=function(e,t,n,r){var i=e.round,o=i===void 0?gle.round:i,a=kv().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(o);return ble(a)},ble=function(e){var t=e;return t.type="band",t},Ca={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},yle=function(e,t,n){var r,i,o=e.format,a=o===void 0?Ca.format:o,s=e.precision,l=s===void 0?Ca.precision:s,c=e.min,u=c===void 0?Ca.min:c,d=e.max,f=d===void 0?Ca.max:d,h=e.useUTC,p=h===void 0?Ca.useUTC:h,m=e.nice,g=m===void 0?Ca.nice:m,x=A5({format:a,precision:l,useUTC:p});r=u==="auto"?x(t.min):a!=="native"?x(u):u,i=f==="auto"?x(t.max):a!=="native"?x(f):f;var _=p?Yee():qee();_.range([0,n]),r&&i&&_.domain([r,i]),g===!0?_.nice():typeof g!="object"&&typeof g!="number"||_.nice(g);var w=_;return w.type="time",w.useUTC=p,w},Sa={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},xle=function(e,t,n,r){var i,o=e.base,a=o===void 0?Sa.base:o,s=e.min,l=s===void 0?Sa.min:s,c=e.max,u=c===void 0?Sa.max:c,d=e.round,f=d===void 0?Sa.round:d,h=e.reverse,p=h===void 0?Sa.reverse:h,m=e.nice,g=m===void 0?Sa.nice:m;if(t.all.some(function(M){return M===0}))throw new Error("a log scale domain must not include or cross zero");var x,_,w=!1;if(t.all.filter(function(M){return M!=null}).forEach(function(M){w||(i===void 0?i=Math.sign(M):Math.sign(M)!==i&&(w=!0))}),w)throw new Error("a log scale domain must be strictly-positive or strictly-negative");x=l==="auto"?t.min:l,_=u==="auto"?t.max:u;var C=v6().base(a),b=r==="x"?[0,n]:[n,0];f===!0?C.rangeRound(b):C.range(b),p===!0?C.domain([_,x]):C.domain([x,_]),g===!0?C.nice():typeof g=="number"&&C.nice(g);var S=C;return S.type="log",S},Ta={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},wle=function(e,t,n,r){var i,o,a=e.constant,s=a===void 0?Ta.constant:a,l=e.min,c=l===void 0?Ta.min:l,u=e.max,d=u===void 0?Ta.max:u,f=e.round,h=f===void 0?Ta.round:f,p=e.reverse,m=p===void 0?Ta.reverse:p,g=e.nice,x=g===void 0?Ta.nice:g;i=c==="auto"?t.min:c,o=d==="auto"?t.max:d;var _=b6().constant(s),w=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(w):_.range(w),m===!0?_.domain([o,i]):_.domain([i,o]),x===!0?_.nice():typeof x=="number"&&_.nice(x);var C=_;return C.type="symlog",C},_le=function(e){return e==="x"?"y":"x"},Cle=function(e,t){return e===t},Sle=function(e,t){return e.getTime()===t.getTime()};function sc(e,t,n,r){switch(e.type){case"linear":return hle(e,t,n,r);case"point":return mle(0,t,n);case"band":return vle(e,t,n,r);case"time":return yle(e,t,n);case"log":return xle(e,t,n,r);case"symlog":return wle(e,t,n,r);default:throw new Error("invalid scale spec")}}var Ax=function(e,t,n){var r;if("stacked"in n&&n.stacked){var i=e.data[t==="x"?"xStacked":"yStacked"];return i==null?null:n(i)}return(r=n(e.data[t]))!=null?r:null},Tle=function(e,t,n,r,i){var o=e.map(function(u){return function(d){return So({},d,{data:d.data.map(function(f){return{data:So({},f)}})})}(u)}),a=$le(o,t,n);"stacked"in t&&t.stacked===!0&&kle(a,o),"stacked"in n&&n.stacked===!0&&Mle(a,o);var s=sc(t,a.x,r,"x"),l=sc(n,a.y,i,"y"),c=o.map(function(u){return So({},u,{data:u.data.map(function(d){return So({},d,{position:{x:Ax(d,"x",s),y:Ax(d,"y",l)}})})})});return So({},a,{series:c,xScale:s,yScale:l})},$le=function(e,t,n){return{x:Rx(e,"x",t),y:Rx(e,"y",n)}},Rx=function(e,t,n,r){var i={},o=i.getValue,a=o===void 0?function(p){return p.data[t]}:o,s=i.setValue,l=s===void 0?function(p,m){p.data[t]=m}:s;if(n.type==="linear")e.forEach(function(p){p.data.forEach(function(m){var g=a(m);g&&l(m,parseFloat(String(g)))})});else if(n.type==="time"&&n.format!=="native"){var c=A5(n);e.forEach(function(p){p.data.forEach(function(m){var g=a(m);g&&l(m,c(g))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(m){u.push(a(m))})}),n.type){case"linear":var d=ele($x(u).filter(function(p){return p!==null}),function(p){return p});return{all:d,min:Math.min.apply(Math,d),max:Math.max.apply(Math,d)};case"time":var f=hg(u,function(p){return p.getTime()}).slice(0).sort(function(p,m){return m.getTime()-p.getTime()}).reverse();return{all:f,min:f[0],max:De(f)};default:var h=$x(u);return{all:h,min:h[0],max:De(h)}}},R5=function(e,t,n){var r=_le(e),i=[];t[r].all.forEach(function(o){var a=ule(o)?Sle:Cle,s=[];n.forEach(function(l){var c=l.data.find(function(h){return a(h.data[r],o)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=De(s);f===void 0?d=u:f!==null&&(d=f+u)}c.data[e==="x"?"xStacked":"yStacked"]=d}s.push(d),d!==null&&i.push(d)})}),t[e].minStacked=Math.min.apply(Math,i),t[e].maxStacked=Math.max.apply(Math,i)},kle=function(e,t){return R5("x",e,t)},Mle=function(e,t){return R5("y",e,t)},D5=function(e){var t=e.bandwidth();if(t===0)return e;var n=t/2;return e.round()&&(n=Math.round(n)),function(r){var i;return((i=e(r))!=null?i:0)+n}},I5={millisecond:[ic,ic],second:[ag,ag],minute:[S6,A6],hour:[T6,R6],day:[dn(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)}),dn(function(e){return e.setUTCHours(0,0,0,0)},function(e,t){return e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t.getTime()-e.getTime())/864e5},function(e){return Math.floor(e.getTime()/864e5)})],week:[$d,kd],sunday:[$d,kd],monday:[oc,ac],tuesday:[$6,D6],wednesday:[k6,I6],thursday:[Go,Zo],friday:[M6,j6],saturday:[E6,P6],month:[O6,N6],year:[to,no]},Ele=Object.keys(I5),Ole=new RegExp("^every\\s*(\\d+)?\\s*("+Ele.join("|")+")s?$","i"),j5=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Ole);if(n){var r=n[1],i=n[2],o=I5[i][e.useUTC?1:0];if(i==="day"){var a,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(a=(s=o.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?a:[]}if(r===void 0)return e.ticks(o);var f=o.every(Number(r));if(f)return e.ticks(f)}throw new Error("Invalid tickValues: "+t)}if("ticks"in e){if(t===void 0)return e.ticks();if(typeof(h=t)=="number"&&isFinite(h)&&Math.floor(h)===h)return e.ticks(t)}var h;return e.domain()};function Er(){return Er=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},Er.apply(null,arguments)}var P5=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,o=e.tickValues,a=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=j5(r,o),h=l5[d],p="bandwidth"in r?D5(r):r,m={lineX:0,lineY:0},g={textX:0,textY:0},x=typeof document=="object"&&document.dir==="rtl",_=h.align.center,w=h.baseline.center;return n==="x"?(t=function(C){var b;return{x:(b=p(C))!=null?b:0,y:0}},m.lineY=a*(i==="after"?1:-1),g.textY=(a+s)*(i==="after"?1:-1),w=i==="after"?h.baseline.top:h.baseline.bottom,l===0?_=h.align.center:i==="after"&&l<0||i==="before"&&l>0?(_=h.align[x?"left":"right"],w=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(_=h.align[x?"right":"left"],w=h.baseline.center)):(t=function(C){var b;return{x:0,y:(b=p(C))!=null?b:0}},m.lineX=a*(i==="after"?1:-1),g.textX=(a+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(C){var b=typeof C=="string"?function(S){var M=String(S).length;return c&&c>0&&M>c?""+String(S).slice(0,c).concat("..."):""+S}(C):C;return Er({key:C instanceof Date?""+C.valueOf():""+C,value:b},t(C),m,g)}),textAlign:_,textBaseline:w}},N5=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=Zf(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return jc(e)},pg=function(e){var t,n=e.width,r=e.height,i=e.scale,o=e.axis,a=e.values,s=(t=a,(Array.isArray(t)?a:void 0)||j5(i,a)),l="bandwidth"in i?D5(i):i,c=o==="x"?s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:(d=l(u))!=null?d:0,x2:(f=l(u))!=null?f:0,y1:0,y2:r}}):s.map(function(u){var d,f;return{key:u instanceof Date?""+u.valueOf():""+u,x1:0,x2:n,y1:(d=l(u))!=null?d:0,y2:(f=l(u))!=null?f:0}});return c},Ale=v.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,c=e.theme,u=e.animatedProps,d=(t=r==null?void 0:r(n))!=null?t:n,f=v.useMemo(function(){var h={opacity:u.opacity};return a?{style:Er({},h,{cursor:"pointer"}),onClick:function(p){return a(p,d)}}:{style:h}},[u.opacity,a,d]);return y.jsxs(Ht.g,Er({transform:u.transform},f,{children:[y.jsx("line",{x1:0,x2:i,y1:0,y2:o,style:c.line}),y.jsx(Ds,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Wn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},Rle=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,o=e.y,a=o===void 0?0:o,s=e.length,l=e.ticksPosition,c=e.tickValues,u=e.tickSize,d=u===void 0?Wn.tickSize:u,f=e.tickPadding,h=f===void 0?Wn.tickPadding:f,p=e.tickRotation,m=p===void 0?Wn.tickRotation:p,g=e.format,x=e.renderTick,_=x===void 0?Ale:x,w=e.truncateTickAt,C=e.legend,b=e.legendPosition,S=b===void 0?Wn.legendPosition:b,M=e.legendOffset,$=M===void 0?Wn.legendOffset:M,k=e.style,R=e.onClick,T=e.ariaHidden,E=Lt(),A=OX(E.axis,k),I=v.useMemo(function(){return N5(g,n)},[g,n]),j=P5({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m,truncateTickAt:w}),D=j.ticks,O=j.textAlign,L=j.textBaseline,z=null;if(C!==void 0){var N,H=0,Y=0,q=0;t==="y"?(q=-90,H=$,S==="start"?(N="start",Y=s):S==="middle"?(N="middle",Y=s/2):S==="end"&&(N="end")):(Y=$,S==="start"?N="start":S==="middle"?(N="middle",H=s/2):S==="end"&&(N="end",H=s)),z=y.jsx(y.Fragment,{children:y.jsx(Ds,{transform:"translate("+H+", "+Y+") rotate("+q+")",textAnchor:N,style:Er({},A.legend.text,{dominantBaseline:"central"}),children:C})})}var Z=Fn(),X=Z.animate,J=Z.config,ee=Kr({transform:"translate("+i+","+a+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:J,immediate:!X}),W=v.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),F=v.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),B=ea(D,{keys:function(V){return V.key},initial:W,from:F,enter:W,update:W,leave:{opacity:0},config:J,immediate:!X});return y.jsxs(Ht.g,{transform:ee.transform,"aria-hidden":T,children:[B(function(V,P,te,K){return fe.createElement(_,Er({tickIndex:K,format:I,rotate:m,textBaseline:L,textAnchor:O,truncateTickAt:w,animatedProps:V,theme:A.ticks},P,R?{onClick:R}:{}))}),y.jsx(Ht.line,{style:A.domain.line,x1:0,x2:ee.lineX2,y1:0,y2:ee.lineY2}),z]})},Dle=v.memo(Rle),L5=["top","right","bottom","left"],F5=v.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return y.jsx(y.Fragment,{children:L5.map(function(a){var s=o[a];if(!s)return null;var l=a==="top"||a==="bottom";return y.jsx(Dle,Er({},s,{axis:l?"x":"y",x:a==="right"?r:0,y:a==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:a==="top"||a==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),a)})})}),Ile=v.memo(function(e){var t=e.animatedProps,n=Lt();return y.jsx(Ht.line,Er({},t,n.grid.line))}),Dx=v.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,o=ea(t,{keys:function(a){return a.key},initial:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},from:function(a){return{opacity:0,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},enter:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},update:function(a){return{opacity:1,x1:a.x1,x2:a.x2,y1:a.y1,y2:a.y2}},leave:{opacity:0},config:i,immediate:!r});return y.jsx("g",{children:o(function(a,s){return v.createElement(Ile,Er({},s,{key:s.key,animatedProps:a}))})})}),B5=v.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=v.useMemo(function(){return!!r&&pg({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=v.useMemo(function(){return!!i&&pg({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return y.jsxs(y.Fragment,{children:[s&&y.jsx(Dx,{lines:s}),l&&y.jsx(Dx,{lines:l})]})}),jle=function(e,t){var n,r,i=t.axis,o=t.scale,a=t.x,s=a===void 0?0:a,l=t.y,c=l===void 0?0:l,u=t.length,d=t.ticksPosition,f=t.tickValues,h=t.tickSize,p=h===void 0?Wn.tickSize:h,m=t.tickPadding,g=m===void 0?Wn.tickPadding:m,x=t.tickRotation,_=x===void 0?Wn.tickRotation:x,w=t.format,C=t.legend,b=t.legendPosition,S=b===void 0?Wn.legendPosition:b,M=t.legendOffset,$=M===void 0?Wn.legendOffset:M,k=t.theme,R=t.style,T=P5({axis:i,scale:o,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:g,tickRotation:_,engine:"canvas"}),E=T.ticks,A=T.textAlign,I=T.textBaseline;e.save(),e.translate(s,c);var j=IS(k.axis,R);e.textAlign=A,e.textBaseline=I,Xo(e,j.ticks.text);var D=(n=j.domain.line.strokeWidth)!=null?n:0;typeof D!="string"&&D>0&&(e.lineWidth=D,e.lineCap="square",j.domain.line.stroke&&(e.strokeStyle=j.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo(i==="x"?u:0,i==="x"?0:u),e.stroke());var O=typeof w=="function"?w:function(Z){return""+Z},L=(r=j.ticks.line.strokeWidth)!=null?r:0,z=typeof L!="string"&&L>0;if(E.forEach(function(Z){z&&(e.lineWidth=L,e.lineCap="square",j.ticks.line.stroke&&(e.strokeStyle=j.ticks.line.stroke),e.beginPath(),e.moveTo(Z.x,Z.y),e.lineTo(Z.x+Z.lineX,Z.y+Z.lineY),e.stroke());var X=O(Z.value);e.save(),e.translate(Z.x+Z.textX,Z.y+Z.textY),e.rotate(fr(_)),Ko(e,j.ticks.text,""+X),e.fillText(""+X,0,0),e.restore()}),C!==void 0){var N=0,H=0,Y=0,q="center";i==="y"?(Y=-90,N=$,S==="start"?(q="start",H=u):S==="middle"?(q="center",H=u/2):S==="end"&&(q="end")):(H=$,S==="start"?q="start":S==="middle"?(q="center",N=u/2):S==="end"&&(q="end",N=u)),e.translate(N,H),e.rotate(fr(Y)),Xo(e,j.legend.text),j.legend.text.fill&&(e.fillStyle=j.legend.text.fill),e.textAlign=q,e.textBaseline="middle",Ko(e,j.legend.text,C)}e.restore()},z5=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:a,right:s,bottom:l,left:c};L5.forEach(function(f){var h=d[f];if(!h)return null;var p=f==="top"||f==="bottom",m=f==="top"||f==="left"?"before":"after",g=p?n:r,x=N5(h.format,g);jle(e,Er({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?o:0,scale:g,format:x,length:p?i:o,ticksPosition:m,theme:u}))})},Ed=function(e,t){var n=t.width,r=t.height,i=t.scale,o=t.axis,a=t.values;pg({width:n,height:r,scale:i,axis:o,values:a}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},Ple=AS,Nle=0;function Lle(e){var t=++Nle;return Ple(e)+t}var Fle=Lle;const Ble=nn(Fle),vi=11102230246251565e-32,Tn=134217729,zle=(3+8*vi)*vi;function Wp(e,t,n,r,i){let o,a,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(o=c,c=t[++d]):(o=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(a=c+o,s=o-(a-c),c=t[++d]):(a=u+o,s=o-(a-u),u=r[++f]),o=a,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d]):(a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f]),o=a,s!==0&&(i[h++]=s);for(;d<e;)a=o+c,l=a-o,s=o-(a-l)+(c-l),c=t[++d],o=a,s!==0&&(i[h++]=s);for(;f<n;)a=o+u,l=a-o,s=o-(a-l)+(u-l),u=r[++f],o=a,s!==0&&(i[h++]=s);return(o!==0||h===0)&&(i[h++]=o),h}function Wle(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Fc(e){return new Float64Array(e)}const Ule=(3+16*vi)*vi,Hle=(2+12*vi)*vi,Vle=(9+64*vi)*vi*vi,$a=Fc(4),Ix=Fc(8),jx=Fc(12),Px=Fc(16),Dn=Fc(4);function qle(e,t,n,r,i,o,a){let s,l,c,u,d,f,h,p,m,g,x,_,w,C,b,S,M,$;const k=e-i,R=n-i,T=t-o,E=r-o;C=k*E,f=Tn*k,h=f-(f-k),p=k-h,f=Tn*E,m=f-(f-E),g=E-m,b=p*g-(C-h*m-p*m-h*g),S=T*R,f=Tn*T,h=f-(f-T),p=T-h,f=Tn*R,m=f-(f-R),g=R-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,$a[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,$a[1]=w-(x+d)+(d-S),$=_+x,d=$-_,$a[2]=_-($-d)+(x-d),$a[3]=$;let A=Wle(4,$a),I=Hle*a;if(A>=I||-A>=I||(d=e-k,s=e-(k+d)+(d-i),d=n-R,c=n-(R+d)+(d-i),d=t-T,l=t-(T+d)+(d-o),d=r-E,u=r-(E+d)+(d-o),s===0&&l===0&&c===0&&u===0)||(I=Vle*a+zle*Math.abs(A),A+=k*u+E*s-(T*c+R*l),A>=I||-A>=I))return A;C=s*E,f=Tn*s,h=f-(f-s),p=s-h,f=Tn*E,m=f-(f-E),g=E-m,b=p*g-(C-h*m-p*m-h*g),S=l*R,f=Tn*l,h=f-(f-l),p=l-h,f=Tn*R,m=f-(f-R),g=R-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),$=_+x,d=$-_,Dn[2]=_-($-d)+(x-d),Dn[3]=$;const j=Wp(4,$a,4,Dn,Ix);C=k*u,f=Tn*k,h=f-(f-k),p=k-h,f=Tn*u,m=f-(f-u),g=u-m,b=p*g-(C-h*m-p*m-h*g),S=T*c,f=Tn*T,h=f-(f-T),p=T-h,f=Tn*c,m=f-(f-c),g=c-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),$=_+x,d=$-_,Dn[2]=_-($-d)+(x-d),Dn[3]=$;const D=Wp(j,Ix,4,Dn,jx);C=s*u,f=Tn*s,h=f-(f-s),p=s-h,f=Tn*u,m=f-(f-u),g=u-m,b=p*g-(C-h*m-p*m-h*g),S=l*c,f=Tn*l,h=f-(f-l),p=l-h,f=Tn*c,m=f-(f-c),g=c-m,M=p*g-(S-h*m-p*m-h*g),x=b-M,d=b-x,Dn[0]=b-(x+d)+(d-M),_=C+x,d=_-C,w=C-(_-d)+(x-d),x=w-S,d=w-x,Dn[1]=w-(x+d)+(d-S),$=_+x,d=$-_,Dn[2]=_-($-d)+(x-d),Dn[3]=$;const O=Wp(D,jx,4,Dn,Px);return Px[O-1]}function vu(e,t,n,r,i,o){const a=(t-o)*(n-i),s=(e-i)*(r-o),l=a-s,c=Math.abs(a+s);return Math.abs(l)>=Ule*c?l:-qle(e,t,n,r,i,o,c)}const Nx=Math.pow(2,-52),bu=new Uint32Array(512);class Od{static from(t,n=Kle,r=Jle){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new Od(o)}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:o}=this,a=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let k=0;k<a;k++){const R=t[2*k],T=t[2*k+1];R<s&&(s=R),T<l&&(l=T),R>c&&(c=R),T>u&&(u=T),this._ids[k]=k}const d=(s+c)/2,f=(l+u)/2;let h,p,m;for(let k=0,R=1/0;k<a;k++){const T=Up(d,f,t[2*k],t[2*k+1]);T<R&&(h=k,R=T)}const g=t[2*h],x=t[2*h+1];for(let k=0,R=1/0;k<a;k++){if(k===h)continue;const T=Up(g,x,t[2*k],t[2*k+1]);T<R&&T>0&&(p=k,R=T)}let _=t[2*p],w=t[2*p+1],C=1/0;for(let k=0;k<a;k++){if(k===h||k===p)continue;const R=Zle(g,x,_,w,t[2*k],t[2*k+1]);R<C&&(m=k,C=R)}let b=t[2*m],S=t[2*m+1];if(C===1/0){for(let T=0;T<a;T++)this._dists[T]=t[2*T]-t[0]||t[2*T+1]-t[1];Ia(this._ids,this._dists,0,a-1);const k=new Uint32Array(a);let R=0;for(let T=0,E=-1/0;T<a;T++){const A=this._ids[T],I=this._dists[A];I>E&&(k[R++]=A,E=I)}this.hull=k.subarray(0,R),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(vu(g,x,_,w,b,S)<0){const k=p,R=_,T=w;p=m,_=b,w=S,m=k,b=R,S=T}const M=Xle(g,x,_,w,b,S);this._cx=M.x,this._cy=M.y;for(let k=0;k<a;k++)this._dists[k]=Up(t[2*k],t[2*k+1],M.x,M.y);Ia(this._ids,this._dists,0,a-1),this._hullStart=h;let $=3;r[h]=n[m]=p,r[p]=n[h]=m,r[m]=n[p]=h,i[h]=0,i[p]=1,i[m]=2,o.fill(-1),o[this._hashKey(g,x)]=h,o[this._hashKey(_,w)]=p,o[this._hashKey(b,S)]=m,this.trianglesLen=0,this._addTriangle(h,p,m,-1,-1,-1);for(let k=0,R,T;k<this._ids.length;k++){const E=this._ids[k],A=t[2*E],I=t[2*E+1];if(k>0&&Math.abs(A-R)<=Nx&&Math.abs(I-T)<=Nx||(R=A,T=I,E===h||E===p||E===m))continue;let j=0;for(let N=0,H=this._hashKey(A,I);N<this._hashSize&&(j=o[(H+N)%this._hashSize],!(j!==-1&&j!==r[j]));N++);j=n[j];let D=j,O;for(;O=r[D],vu(A,I,t[2*D],t[2*D+1],t[2*O],t[2*O+1])>=0;)if(D=O,D===j){D=-1;break}if(D===-1)continue;let L=this._addTriangle(D,E,r[D],-1,-1,i[D]);i[E]=this._legalize(L+2),i[D]=L,$++;let z=r[D];for(;O=r[z],vu(A,I,t[2*z],t[2*z+1],t[2*O],t[2*O+1])<0;)L=this._addTriangle(z,E,O,i[E],-1,i[z]),i[E]=this._legalize(L+2),r[z]=z,$--,z=O;if(D===j)for(;O=n[D],vu(A,I,t[2*O],t[2*O+1],t[2*D],t[2*D+1])<0;)L=this._addTriangle(O,E,D,-1,i[D],i[O]),this._legalize(L+2),i[O]=L,r[D]=D,$--,D=O;this._hullStart=n[E]=D,r[D]=n[z]=E,r[E]=z,o[this._hashKey(A,I)]=E,o[this._hashKey(t[2*D],t[2*D+1])]=D}this.hull=new Uint32Array($);for(let k=0,R=this._hullStart;k<$;k++)this.hull[k]=R,R=r[R];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Yle(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],l=t-t%3;if(a=l+(t+2)%3,s===-1){if(o===0)break;t=bu[--o];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[a],h=n[t],p=n[u],m=n[d];if(Gle(i[2*f],i[2*f+1],i[2*h],i[2*h+1],i[2*p],i[2*p+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=f;const x=r[d];if(x===-1){let w=this._hullStart;do{if(this._hullTri[w]===d){this._hullTri[w]=t;break}w=this._hullPrev[w]}while(w!==this._hullStart)}this._link(t,x),this._link(s,r[a]),this._link(a,d);const _=c+(s+1)%3;o<bu.length&&(bu[o++]=_)}else{if(o===0)break;t=bu[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){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,o),this._link(s+2,a),this.trianglesLen+=3,s}}function Yle(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function Up(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function Gle(e,t,n,r,i,o,a,s){const l=e-a,c=t-s,u=n-a,d=r-s,f=i-a,h=o-s,p=l*l+c*c,m=u*u+d*d,g=f*f+h*h;return l*(d*g-m*h)-c*(u*g-m*f)+p*(u*h-d*f)<0}function Zle(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=(c*u-s*d)*f,p=(a*d-l*u)*f;return h*h+p*p}function Xle(e,t,n,r,i,o){const a=n-e,s=r-t,l=i-e,c=o-t,u=a*a+s*s,d=l*l+c*c,f=.5/(a*c-s*l),h=e+(c*u-s*d)*f,p=t+(a*d-l*u)*f;return{x:h,y:p}}function Ia(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;rl(e,i,o),t[e[n]]>t[e[r]]&&rl(e,n,r),t[e[o]]>t[e[r]]&&rl(e,o,r),t[e[n]]>t[e[o]]&&rl(e,n,o);const s=e[o],l=t[s];for(;;){do o++;while(t[e[o]]<l);do a--;while(t[e[a]]>l);if(a<o)break;rl(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(Ia(e,t,o,r),Ia(e,t,n,a-1)):(Ia(e,t,n,a-1),Ia(e,t,o,r))}}function rl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Kle(e){return e[0]}function Jle(e){return e[1]}const Lx=1e-6;class Ao{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,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>Lx||Math.abs(this._y1-o)>Lx)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}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 mg{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 Qle{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(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=o,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 o,a;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,g=0,x=r.length,_,w;m<x;m+=3,g+=2){const C=r[m]*2,b=r[m+1]*2,S=r[m+2]*2,M=t[C],$=t[C+1],k=t[b],R=t[b+1],T=t[S],E=t[S+1],A=k-M,I=R-$,j=T-M,D=E-$,O=(A*D-I*j)*2;if(Math.abs(O)<1e-9){if(o===void 0){o=a=0;for(const z of n)o+=t[z*2],a+=t[z*2+1];o/=n.length,a/=n.length}const L=1e9*Math.sign((o-M)*D-(a-$)*j);_=(M+T)/2-L*D,w=($+E)/2+L*j}else{const L=1/O,z=A*A+I*I,N=j*j+D*D;_=M+(D*z-I*N)*L,w=$+(A*N-j*z)*L}s[g]=_,s[g+1]=w}let l=n[n.length-1],c,u=l*4,d,f=t[2*l],h,p=t[2*l+1];i.fill(0);for(let m=0;m<n.length;++m)l=n[m],c=u,d=f,h=p,u=l*4,f=t[2*l],p=t[2*l+1],i[c+2]=i[u]=h-p,i[c+3]=i[u+1]=f-d}render(t){const n=t==null?t=new Ao:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let u=0,d=r.length;u<d;++u){const f=r[u];if(f<u)continue;const h=Math.floor(u/3)*2,p=Math.floor(f/3)*2,m=a[h],g=a[h+1],x=a[p],_=a[p+1];this._renderSegment(m,g,x,_,t)}let l,c=o[o.length-1];for(let u=0;u<o.length;++u){l=c,c=o[u];const d=Math.floor(i[c]/3)*2,f=a[d],h=a[d+1],p=l*4,m=this._project(f,h,s[p+2],s[p+3]);m&&this._renderSegment(f,h,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Ao: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 Ao:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+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 mg;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,l))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[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 o=0,a=n.length;o<a;o+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[o]===i[s]&&n[o+1]===i[s+1]&&n[(o+2)%a]===i[(s+l-2)%l]&&n[(o+3)%a]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let l=a;do{const c=Math.floor(l/3);if(s.push(n[c*2],n[c*2+1]),l=l%3===2?l-2:l+1,o[l]!==t)break;l=i[l]}while(l!==a&&l!==-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,o,a,s=n[r-2],l=n[r-1],c,u=this._regioncode(s,l),d,f=0;for(let h=0;h<r;h+=2)if(o=s,a=l,s=n[h],l=n[h+1],c=u,u=this._regioncode(s,l),c===0&&u===0)d=f,f=0,i?i.push(s,l):i=[s,l];else{let p,m,g,x,_;if(c===0){if((p=this._clipSegment(o,a,s,l,c,u))===null)continue;[m,g,x,_]=p}else{if((p=this._clipSegment(s,l,o,a,u,c))===null)continue;[x,_,m,g]=p,d=f,f=this._edgecode(m,g),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(m,g):i=[m,g]}d=f,f=this._edgecode(x,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(x,_):i=[x,_]}if(i)d=f,f=this._edgecode(i[0],i[1]),d&&f&&this._edge(t,d,f,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,o,a){const s=o<a;for(s&&([t,n,r,i,o,a]=[r,i,t,n,a,o]);;){if(o===0&&a===0)return s?[r,i,t,n]:[t,n,r,i];if(o&a)return null;let l,c,u=o||a;u&8?(l=t+(r-t)*(this.ymax-n)/(i-n),c=this.ymax):u&4?(l=t+(r-t)*(this.ymin-n)/(i-n),c=this.ymin):u&2?(c=n+(i-n)*(this.xmax-t)/(r-t),l=this.xmax):(c=n+(i-n)*(this.xmin-t)/(r-t),l=this.xmin),o?(t=l,n=c,o=this._regioncode(t,n)):(r=l,i=c,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),l;if((l=this._project(s[0],s[1],r,i))&&s.unshift(l[0],l[1]),(l=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(l[0],l[1]),s=this._clipFinite(t,s))for(let c=0,u=s.length,d,f=this._edgecode(s[u-2],s[u-1]);c<u;c+=2)d=f,f=this._edgecode(s[c],s[c+1]),d&&f&&(c=this._edge(t,d,f,s,c),u=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,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}return o}_project(t,n,r,i){let o=1/0,a,s,l;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(l=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(l=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,l=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,l=n+(o=a)*i)}return[s,l]}_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 ece=2*Math.PI,ka=Math.pow;function tce(e){return e[0]}function nce(e){return e[1]}function rce(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function ice(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class $h{static from(t,n=tce,r=nce,i){return new $h("length"in t?oce(t,n,r,i):Float64Array.from(ace(t,n,r,i)))}constructor(t){this._delaunator=new Od(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&&rce(t)){this.collinear=Int32Array.from({length:n.length/2},(f,h)=>h).sort((f,h)=>n[2*f]-n[2*h]||n[2*f+1]-n[2*h+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],u=[n[2*l],n[2*l+1],n[2*c],n[2*c+1]],d=1e-8*Math.hypot(u[3]-u[1],u[2]-u[0]);for(let f=0,h=n.length/2;f<h;++f){const p=ice(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Od(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=o[l%3===2?l-2:l+1];(r[l]===-1||a[u]===-1)&&(a[u]=l)}for(let l=0,c=i.length;l<c;++l)s[i[l]]=l;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],a[i[0]]=1,i.length===2&&(a[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new Qle(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,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 l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=a[c],c=c%3===2?c-2:c+1,a[c]!==t)return;if(c=o[c],c===-1){const d=r[(i[t]+1)%r.length];d!==u&&(yield d);return}}while(c!==l)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=ka(n-c[t*2],2)+ka(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const m=ka(n-c[p*2],2)+ka(r-c[p*2+1],2);if(m<d&&(d=m,u=p),h=h%3===2?h-2:h+1,l[h]!==t)break;if(h=s[h],h===-1){if(h=o[(a[t]+1)%o.length],h!==p&&ka(n-c[h*2],2)+ka(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Ao:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const l=i[a];if(l<a)continue;const c=o[a]*2,u=o[l]*2;t.moveTo(r[c],r[c+1]),t.lineTo(r[u],r[u+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 Ao:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],l=i[o+1];t.moveTo(s+n,l),t.arc(s,l,n,0,ece)}return r&&r.value()}renderHull(t){const n=t==null?t=new Ao:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new mg;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Ao:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,l=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[l],i[l+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 mg;return this.renderTriangle(t,n),n.value()}}function oce(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*ace(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}function Ad(){return Ad=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},Ad.apply(null,arguments)}function W5(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 Qn={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},r1=function(e){return[e.x,e.y]},Bc=f5,U5="cursor",H5="top",sce=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?r1:n,i=e.margin,o=i===void 0?Bc:i;return t.map(function(a){var s=r(a),l=s[0],c=s[1];return[l+o.left,c+o.top]})},lce=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=i===void 0?Bc:i,a=e.debug,s=$h.from(t),l=a?s.voronoi([0,0,o.left+n+o.right,o.top+r+o.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},V5=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?r1:n,i=e.width,o=e.height,a=e.margin,s=a===void 0?Bc:a,l=e.debug;return v.useMemo(function(){return lce({points:sce({points:t,margin:s,getNodePosition:r}),width:i,height:o,margin:s,debug:l})},[r,t,i,o,s,l])},cce=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,o=e.yDomain,a=v.useMemo(function(){return _d().domain(i).range([0,n])},[i,n]),s=v.useMemo(function(){return _d().domain(o).range([0,r])},[o,r]),l=v.useMemo(function(){return t.map(function(c){return{x:a(c.x),y:s(c.y),data:c}})},[t,a,s]);return v.useMemo(function(){var c=$h.from(l.map(function(d){return[d.x,d.y]})),u=c.voronoi([0,0,n,r]);return{points:l,delaunay:c,voronoi:u}},[l,n,r])},uce=function(e){var t=e.points,n=e.delaunay,r=e.voronoi;return v.useMemo(function(){return{points:t,delaunay:n,voronoi:r}},[t,n,r])},dce=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?r1:r,o=e.delaunay,a=e.setCurrent,s=e.margin,l=s===void 0?Bc:s,c=e.detectionRadius,u=c===void 0?1/0:c,d=e.isInteractive,f=d===void 0||d,h=e.onMouseEnter,p=e.onMouseMove,m=e.onMouseLeave,g=e.onMouseDown,x=e.onMouseUp,_=e.onClick,w=e.onDoubleClick,C=e.onTouchStart,b=e.onTouchMove,S=e.onTouchEnd,M=e.enableTouchCrosshair,$=M!==void 0&&M,k=e.tooltip,R=e.tooltipPosition,T=R===void 0?U5:R,E=e.tooltipAnchor,A=E===void 0?H5:E,I=v.useState(null),j=I[0],D=I[1],O=v.useRef(null);v.useEffect(function(){O.current=j},[O,j]);var L=v.useCallback(function(K){if(!t.current||n.length===0)return null;var G=Wa(t.current,K),ae=G[0],ne=G[1],re=o.find(ae,ne),oe=re!==void 0?n[re]:null;if(oe&&u!==1/0){var le=i(oe),ye=le[0],ge=le[1];p5(ae,ne,ye+l.left,ge+l.top)>u&&(re=null,oe=null)}return re===null||oe===null?null:[re,oe]},[t,o,n,i,l,u]),z=ki(),N=z.showTooltipAt,H=z.showTooltipFromEvent,Y=z.hideTooltip,q=v.useMemo(function(){if(k)return T==="cursor"?function(K,G){H(k(K),G,A)}:function(K){var G=i(K),ae=G[0],ne=G[1];N(k(K),[ae+l.left,ne+l.top],A)}},[N,H,k,T,A,i,l]),Z=v.useCallback(function(K){var G=L(K);if(D(G),a==null||a(G?G[1]:null),G){var ae=G[1];q==null||q(ae,K),h==null||h(G[1],K)}},[L,D,a,q,h]),X=v.useCallback(function(K){var G=L(K);if(D(G),G){var ae=G[0],ne=G[1];if(a==null||a(ne),q==null||q(ne,K),O.current){var re=O.current,oe=re[0],le=re[1];ae!==oe?m==null||m(le,K):p==null||p(ne,K)}else h==null||h(ne,K)}else a==null||a(null),Y==null||Y(),O.current&&(m==null||m(O.current[1],K))},[L,D,a,O,h,p,m,q,Y]),J=v.useCallback(function(K){D(null),a==null||a(null),Y(),m&&O.current&&m(O.current[1],K)},[D,a,O,Y,m]),ee=v.useCallback(function(K){var G=L(K);D(G),G&&(g==null||g(G[1],K))},[L,D,g]),W=v.useCallback(function(K){var G=L(K);D(G),G&&(x==null||x(G[1],K))},[L,D,x]),F=v.useCallback(function(K){var G=L(K);D(G),G&&(_==null||_(G[1],K))},[L,D,_]),B=v.useCallback(function(K){var G=L(K);D(G),G&&(w==null||w(G[1],K))},[L,D,w]),V=v.useCallback(function(K){var G=L(K);$&&(D(G),a==null||a(G?G[1]:null)),G&&(C==null||C(G[1],K))},[L,D,a,$,C]),P=v.useCallback(function(K){var G=L(K);$&&(D(G),a==null||a(G?G[1]:null)),G&&(b==null||b(G[1],K))},[L,D,a,$,b]),te=v.useCallback(function(K){$&&(D(null),a==null||a(null)),S&&O.current&&S(O.current[1],K)},[$,D,a,S,O]);return{current:j,handleMouseEnter:f?Z:void 0,handleMouseMove:f?X:void 0,handleMouseLeave:f?J:void 0,handleMouseDown:f?ee:void 0,handleMouseUp:f?W:void 0,handleClick:f?F:void 0,handleDoubleClick:f?B:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?P:void 0,handleTouchEnd:f?te:void 0}},fce=["theme"],hce=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,o=e.layers,a=o===void 0?Qn.layers:o,s=e.xDomain,l=s===void 0?Qn.xDomain:s,c=e.yDomain,u=c===void 0?Qn.yDomain:c,d=e.enableLinks,f=d===void 0?Qn.enableLinks:d,h=e.linkLineWidth,p=h===void 0?Qn.linkLineWidth:h,m=e.linkLineColor,g=m===void 0?Qn.linkLineColor:m,x=e.enableCells,_=x===void 0?Qn.enableCells:x,w=e.cellLineWidth,C=w===void 0?Qn.cellLineWidth:w,b=e.cellLineColor,S=b===void 0?Qn.cellLineColor:b,M=e.enablePoints,$=M===void 0?Qn.enableCells:M,k=e.pointSize,R=k===void 0?Qn.pointSize:k,T=e.pointColor,E=T===void 0?Qn.pointColor:T,A=e.role,I=A===void 0?Qn.role:A,j=e.forwardedRef,D=ca(n,r,i),O=D.outerWidth,L=D.outerHeight,z=D.margin,N=D.innerWidth,H=D.innerHeight,Y=cce({data:t,width:N,height:H,xDomain:l,yDomain:u}),q=Y.points,Z=Y.delaunay,X=Y.voronoi,J={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(J.links=y.jsx("path",{stroke:g,strokeWidth:p,fill:"none",d:Z.render()},"links")),_&&a.includes("cells")&&(J.cells=y.jsx("path",{d:X.render(),fill:"none",stroke:S,strokeWidth:C},"cells")),$&&a.includes("points")&&(J.points=y.jsx("path",{stroke:"none",fill:E,d:Z.renderPoints(void 0,R/2)},"points")),a.includes("bounds")&&(J.bounds=y.jsx("path",{fill:"none",stroke:S,strokeWidth:C,d:X.renderBounds()},"bounds"));var ee=uce({points:q,delaunay:Z,voronoi:X});return y.jsx(Th,{width:O,height:L,margin:z,role:I,ref:j,children:a.map(function(W,F){return J[W]!==void 0?J[W]:typeof W=="function"?y.jsx(v.Fragment,{children:v.createElement(W,ee)},F):null})})},pce=v.forwardRef(function(e,t){var n=e.theme,r=W5(e,fce);return y.jsx(sa,{isInteractive:!1,animate:!1,theme:n,children:y.jsx(hce,Ad({},r,{forwardedRef:t}))})}),mce=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=W5(e,mce);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(pce,Ad({},a,{width:l,height:c,ref:t}))}})});var gce=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,o=i===void 0?Bc:i,a=e.getNodePosition,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,m=e.onTouchStart,g=e.onTouchMove,x=e.onTouchEnd,_=e.enableTouchCrosshair,w=_!==void 0&&_,C=e.detectionRadius,b=C===void 0?1/0:C,S=e.tooltip,M=e.tooltipPosition,$=M===void 0?U5:M,k=e.tooltipAnchor,R=k===void 0?H5:k,T=e.debug,E=v.useRef(null),A=V5({points:t,getNodePosition:a,width:n,height:r,margin:o,debug:T}),I=A.delaunay,j=A.voronoi,D=dce({elementRef:E,nodes:t,delaunay:I,margin:o,detectionRadius:b,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:m,onTouchMove:g,onTouchEnd:x,enableTouchCrosshair:w,tooltip:S,tooltipPosition:$,tooltipAnchor:R}),O=D.current,L=D.handleMouseEnter,z=D.handleMouseMove,N=D.handleMouseLeave,H=D.handleMouseDown,Y=D.handleMouseUp,q=D.handleClick,Z=D.handleDoubleClick,X=D.handleTouchStart,J=D.handleTouchMove,ee=D.handleTouchEnd,W=v.useMemo(function(){if(T&&j)return j.render()},[T,j]);return y.jsxs("g",{ref:E,transform:"translate("+-o.left+","+-o.top+")",children:[T&&j&&y.jsxs(y.Fragment,{children:[y.jsx("path",{d:W,stroke:"red",strokeWidth:1,opacity:.75}),b<1/0&&y.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:I.renderPoints(void 0,b)}),O&&y.jsx("path",{fill:"pink",opacity:.35,d:j.renderCell(O[0])})]}),y.jsx("rect",{"data-ref":"mesh-interceptor",width:o.left+n+o.right,height:o.top+r+o.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:L,onMouseMove:z,onMouseLeave:N,onMouseDown:H,onMouseUp:Y,onTouchStart:X,onTouchMove:J,onTouchEnd:ee,onClick:q,onDoubleClick:Z})]})},vce=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},bce=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function En(){return En=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},En.apply(null,arguments)}function kh(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 Fx,li={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:v.memo(function(e){var t=e.point;return y.jsx(dv,{id:y.jsxs("span",{children:["x: ",y.jsx("strong",{children:t.data.xFormatted}),", y:"," ",y.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})}),sliceTooltip:v.memo(function(e){var t=e.slice,n=e.axis,r=Lt(),i=n==="x"?"y":"x";return y.jsx(LS,{rows:t.points.map(function(o){return[y.jsx(NS,{color:o.seriesColor,style:r.tooltip.chip},"chip"),o.seriesId,y.jsx("span",{style:r.tooltip.tableCellValue,children:o.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},st=En({},li,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),en=En({},li,{pixelRatio:typeof window<"u"&&(Fx=window.devicePixelRatio)!=null?Fx:1,axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn});function yce(e){return v.useMemo(function(){return wv().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(d5(e))},[e])}function xce(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return v.useMemo(function(){return yJ().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(d5(t)).y0(n(r))},[t,n,r])}var wce=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,o=e.height;return v.useMemo(function(){if(n==="x"){var a=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(a.has(l.x)?a.get(l.x).push(l):a.set(l.x,[l]))}),Array.from(a.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],g=u[c+1];return d=m?h-(h-m[0])/2:h,f=g?h-d+(g[0]-h)/2:i-d,{id:"slice:"+t+":"+h,x0:d,x:h,y0:0,y:0,width:f,height:o,points:p.reverse()}})}if(n==="y"){var s=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(s.has(l.y)?s.get(l.y).push(l):s.set(l.y,[l]))}),Array.from(s.entries()).sort(function(l,c){return l[0]-c[0]}).map(function(l,c,u){var d,f,h=l[0],p=l[1],m=u[c-1],g=u[c+1];return d=m?h-(h-m[0])/2:h,f=g?h-d+(g[0]-h)/2:o-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:p.reverse()}})}return[]},[t,n,o,r,i])},_ce="line",q5=function(e){var t=e.data,n=e.xScale,r=n===void 0?li.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?li.yScale:o,s=e.yFormat,l=e.width,c=e.height,u=e.colors,d=u===void 0?li.colors:u,f=e.curve,h=f===void 0?li.curve:f,p=e.areaBaselineValue,m=p===void 0?li.areaBaselineValue:p,g=e.pointColor,x=g===void 0?li.pointColor:g,_=e.pointBorderColor,w=_===void 0?li.pointBorderColor:_,C=e.enableSlices,b=C===void 0?st.enableSlices:C,S=e.initialHiddenIds,M=S===void 0?st.initialHiddenIds:S,$=v.useState(Ble(_ce))[0],k=cs(i),R=cs(s),T=Kv(d,"id"),E=Lt(),A=mr(x,E),I=mr(w,E),j=v.useState(M??[]),D=j[0],O=j[1],L=v.useMemo(function(){return Tle(t.filter(function(W){return D.indexOf(W.id)===-1}),r,a,l,c)},[t,D,r,a,l,c]),z=L.xScale,N=L.yScale,H=L.series,Y=v.useMemo(function(){var W=t.map(function(B){return{id:B.id,label:""+B.id,color:T(B)}}),F=W.map(function(B){return En({},H.find(function(V){return V.id===B.id}),{color:B.color})}).filter(function(B){return!!B.id});return{legendData:W.map(function(B){return En({},B,{hidden:!F.find(function(V){return V.id===B.id})})}).reverse(),series:F}},[t,H,T]),q=Y.legendData,Z=Y.series,X=v.useCallback(function(W){O(function(F){return F.indexOf(W)>-1?F.filter(function(B){return B!==W}):[].concat(F,[W])})},[]),J=function(W){var F=W.series,B=W.getPointColor,V=W.getPointBorderColor,P=W.formatX,te=W.formatY;return v.useMemo(function(){return F.reduce(function(K,G,ae){return[].concat(K,G.data.filter(function(ne){return ne.position.x!==null&&ne.position.y!==null}).map(function(ne,re){var oe={id:G.id+"."+re,indexInSeries:re,absIndex:K.length+re,seriesIndex:ae,seriesId:G.id,seriesColor:G.color,x:ne.position.x,y:ne.position.y,data:En({},ne.data,{xFormatted:P(ne.data.x),yFormatted:te(ne.data.y)})};return oe.color=B({series:G,point:oe}),oe.borderColor=V(oe),oe}))},[])},[F,B,V,P,te])}({series:Z,getPointColor:A,getPointBorderColor:I,formatX:k,formatY:R}),ee=wce({componentId:$,enableSlices:b,points:J,width:l,height:c});return{legendData:q,toggleSeries:X,lineGenerator:yce(h),areaGenerator:xce({curve:h,yScale:N,areaBaselineValue:m}),getColor:T,series:Z,xScale:z,yScale:N,slices:ee,points:J}},Cce=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=Fn(),s=a.animate,l=a.config,c=Yv(o),u=Kr({color:r,config:l,immediate:!s});return y.jsx(Ht.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},Sce=v.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return y.jsx("g",{children:i.map(function(o){return y.jsx(Cce,En({path:t(o.data.map(function(a){return a.position}))},En({areaOpacity:n,areaBlendMode:r},o)),""+o.id)})})}),Tce=v.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=v.useMemo(function(){return t(n)},[t,n]),a=Yv(o);return y.jsx(Ht.path,{d:a,fill:"none",strokeWidth:i,stroke:r})}),$ce=v.memo(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return y.jsx(y.Fragment,{children:t.slice(0).reverse().map(function(i){var o=i.id,a=i.data,s=i.color;return y.jsx(Tce,{points:a.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},o)})})}),kce=v.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,o=e.tooltip,a=e.isCurrent,s=e.setCurrent,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,h=e.onClick,p=e.onDoubleClick,m=e.onTouchStart,g=e.onTouchMove,x=e.onTouchEnd,_=ki(),w=_.showTooltipFromEvent,C=_.hideTooltip,b=v.useCallback(function(j){w(v.createElement(o,{slice:t,axis:r}),j,"right"),s(t),l==null||l(t,j)},[w,o,t,r,s,l]),S=v.useCallback(function(j){w(v.createElement(o,{slice:t,axis:r}),j,"right"),c==null||c(t,j)},[w,o,t,r,c]),M=v.useCallback(function(j){C(),s(null),u==null||u(t,j)},[C,s,u,t]),$=v.useCallback(function(j){d==null||d(t,j)},[t,d]),k=v.useCallback(function(j){f==null||f(t,j)},[t,f]),R=v.useCallback(function(j){h==null||h(t,j)},[t,h]),T=v.useCallback(function(j){p==null||p(t,j)},[t,p]),E=v.useCallback(function(j){w(v.createElement(o,{slice:t,axis:r}),j,"right"),s(t),m==null||m(t,j)},[r,m,s,w,t,o]),A=v.useCallback(function(j){var D=j.touches[0],O=document.elementFromPoint(D.clientX,D.clientY),L=O==null?void 0:O.getAttribute("data-ref");if(L){var z=n.find(function(N){return N.id===L});z&&(w(v.createElement(o,{slice:z,axis:r}),j,"right"),s(z))}g==null||g(t,j)},[r,g,s,w,t,n,o]),I=v.useCallback(function(j){C(),s(null),x==null||x(t,j)},[C,s,x,t]);return y.jsx("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:i?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&i?.35:0,onMouseEnter:b,onMouseMove:S,onMouseLeave:M,onMouseDown:$,onMouseUp:k,onClick:R,onDoubleClick:T,onTouchStart:E,onTouchMove:A,onTouchEnd:I,"data-ref":t.id})}),Mce=v.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.tooltip,o=e.current,a=e.setCurrent,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.onMouseDown,d=e.onMouseUp,f=e.onClick,h=e.onDoubleClick,p=e.onTouchStart,m=e.onTouchMove,g=e.onTouchEnd;return y.jsx(y.Fragment,{children:t.map(function(x){return y.jsx(kce,{slice:x,slices:t,axis:n,debug:r,tooltip:i,setCurrent:a,isCurrent:o!==null&&o.id===x.id,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onMouseDown:u,onMouseUp:d,onClick:f,onDoubleClick:h,onTouchStart:p,onTouchMove:m,onTouchEnd:g},x.id)})})}),Ece=v.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,l=e.isFocusable,c=e.setCurrentPoint,u=e.tooltip,d=e.margin,f=e.ariaLabel,h=e.ariaLabelledBy,p=e.ariaDescribedBy,m=e.ariaHidden,g=e.ariaDisabled,x=Fie(a),_=ki(),w=_.showTooltipAt,C=_.hideTooltip,b=t.slice(0).sort(function(S,M){return S.indexInSeries-M.indexInSeries}).sort(function(S,M){return M.seriesIndex-S.seriesIndex}).map(function(S){return{id:S.id,x:S.x,y:S.y,datum:S.data,fill:S.color,stroke:S.borderColor,label:o?x(S):null,ariaLabel:f?f(S):void 0,ariaLabelledBy:h?h(S):void 0,ariaDescribedBy:p?p(S):void 0,ariaHidden:m?m(S):void 0,ariaDisabled:g?g(S):void 0,onFocus:l?function(){c(S),w(v.createElement(u,{point:S}),[d.left+S.x,d.top+S.y],"top")}:void 0,onBlur:l?function(){c(null),C()}:void 0}});return y.jsx("g",{children:b.map(function(S){return y.jsx(jie,{x:S.x,y:S.y,datum:S.datum,symbol:n,size:r,color:S.fill,borderWidth:i,borderColor:S.stroke,label:S.label,labelYOffset:s,ariaLabel:S.ariaLabel,ariaLabelledBy:S.ariaLabelledBy,ariaDescribedBy:S.ariaDescribedBy,ariaHidden:S.ariaHidden,ariaDisabled:S.ariaDisabled,isFocusable:l,onFocus:S.onFocus,onBlur:S.onBlur,testId:"line.point."+S.id},S.id)})})}),Oce=v.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,c=e.onMouseDown,u=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,h=e.onTouchStart,p=e.onTouchMove,m=e.onTouchEnd,g=e.tooltip,x=e.debug,_=e.enableTouchCrosshair,w=ki(),C=w.showTooltipAt,b=w.hideTooltip,S=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),a==null||a(D,O)},[C,g,a,i]),M=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),s==null||s(D,O)},[C,g,i.left,i.top,s]),$=v.useCallback(function(D,O){b(),l==null||l(D,O)},[b,l]),k=v.useCallback(function(D,O){c==null||c(D,O)},[c]),R=v.useCallback(function(D,O){u==null||u(D,O)},[u]),T=v.useCallback(function(D,O){d==null||d(D,O)},[d]),E=v.useCallback(function(D,O){f==null||f(D,O)},[f]),A=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),h==null||h(D,O)},[i.left,i.top,h,C,g]),I=v.useCallback(function(D,O){C(v.createElement(g,{point:D}),[D.x+i.left,D.y+i.top],"top"),p==null||p(D,O)},[i.left,i.top,p,C,g]),j=v.useCallback(function(D,O){b(),m==null||m(D,O)},[m,b]);return y.jsx(gce,{nodes:t,width:n,height:r,setCurrent:o,onMouseEnter:S,onMouseMove:M,onMouseLeave:$,onMouseDown:k,onMouseUp:R,onClick:T,onDoubleClick:E,onTouchStart:A,onTouchMove:I,onTouchEnd:j,enableTouchCrosshair:_,debug:x})}),Ace=["isInteractive","animate","motionConfig","theme","renderWrapper"];function Rce(e){var t=e.data,n=e.xScale,r=n===void 0?st.xScale:n,i=e.xFormat,o=e.yScale,a=o===void 0?st.yScale:o,s=e.yFormat,l=e.curve,c=l===void 0?st.curve:l,u=e.margin,d=e.width,f=e.height,h=e.colors,p=h===void 0?st.colors:h,m=e.lineWidth,g=m===void 0?st.lineWidth:m,x=e.layers,_=x===void 0?st.layers:x,w=e.enableArea,C=w===void 0?st.enableArea:w,b=e.areaBaselineValue,S=b===void 0?st.areaBaselineValue:b,M=e.areaOpacity,$=M===void 0?st.areaOpacity:M,k=e.areaBlendMode,R=k===void 0?st.areaBlendMode:k,T=e.enablePoints,E=T===void 0?st.enablePoints:T,A=e.pointSymbol,I=e.pointSize,j=I===void 0?st.pointSize:I,D=e.pointColor,O=D===void 0?st.pointColor:D,L=e.pointBorderWidth,z=L===void 0?st.pointBorderWidth:L,N=e.pointBorderColor,H=N===void 0?st.pointBorderColor:N,Y=e.enablePointLabel,q=Y===void 0?st.enablePointLabel:Y,Z=e.pointLabel,X=Z===void 0?st.pointLabel:Z,J=e.pointLabelYOffset,ee=e.enableGridX,W=ee===void 0?st.enableGridX:ee,F=e.gridXValues,B=e.enableGridY,V=B===void 0?st.enableGridY:B,P=e.gridYValues,te=e.axisTop,K=e.axisRight,G=e.axisBottom,ae=G===void 0?st.axisBottom:G,ne=e.axisLeft,re=ne===void 0?st.axisLeft:ne,oe=e.defs,le=oe===void 0?st.defs:oe,ye=e.fill,ge=ye===void 0?st.fill:ye,be=e.markers,Me=e.legends,ce=Me===void 0?st.legends:Me,de=e.isInteractive,Ce=de===void 0?st.isInteractive:de,Ge=e.useMesh,we=Ge===void 0?st.useMesh:Ge,ve=e.debugMesh,Ne=ve===void 0?st.debugMesh:ve,Ze=e.onMouseEnter,_t=e.onMouseMove,Te=e.onMouseLeave,Re=e.onMouseDown,ot=e.onMouseUp,Ue=e.onClick,mt=e.onDoubleClick,ut=e.onTouchStart,At=e.onTouchMove,Ke=e.onTouchEnd,Le=e.tooltip,Ve=Le===void 0?st.tooltip:Le,et=e.enableSlices,Fe=et===void 0?st.enableSlices:et,tt=e.debugSlices,vt=tt===void 0?st.debugSlices:tt,at=e.sliceTooltip,Pe=at===void 0?st.sliceTooltip:at,Ee=e.enableCrosshair,Ye=Ee===void 0?st.enableCrosshair:Ee,xt=e.crosshairType,nt=xt===void 0?st.crosshairType:xt,bt=e.enableTouchCrosshair,Jt=bt===void 0?st.enableTouchCrosshair:bt,Ft=e.role,zt=Ft===void 0?st.role:Ft,fn=e.ariaLabel,qt=e.ariaLabelledBy,$e=e.ariaDescribedBy,Je=e.isFocusable,St=Je===void 0?st.isFocusable:Je,on=e.pointAriaLabel,Yt=e.pointAriaLabelledBy,Be=e.pointAriaDescribedBy,ze=e.pointAriaHidden,ht=e.pointAriaDisabled,Rt=e.initialHiddenIds,Tt=Rt===void 0?st.initialHiddenIds:Rt,Qe=e.forwardedRef,$t=ca(d,f,u),br=$t.margin,ln=$t.innerWidth,cn=$t.innerHeight,An=$t.outerWidth,ao=$t.outerHeight,Ct=q5({data:t,xScale:r,xFormat:i,yScale:a,yFormat:s,width:ln,height:cn,colors:p,curve:c,areaBaselineValue:S,pointColor:O,pointBorderColor:H,enableSlices:Fe,initialHiddenIds:Tt}),so=Ct.legendData,Ae=Ct.toggleSeries,Ar=Ct.lineGenerator,lo=Ct.areaGenerator,ua=Ct.series,da=Ct.xScale,ei=Ct.yScale,zc=Ct.slices,ti=Ct.points,Is=v.useState(null),co=Is[0],js=Is[1],Wc=v.useState(null),uo=Wc[0],Uc=Wc[1],Rn={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(W||V)&&(Rn.grid=y.jsx(B5,{width:ln,height:cn,xScale:W?da:null,yScale:V?ei:null,xValues:F,yValues:P},"grid")),_.includes("markers")&&Array.isArray(be)&&be.length>0&&(Rn.markers=y.jsx(u5,{markers:be,width:ln,height:cn,xScale:da,yScale:ei},"markers")),_.includes("axes")&&(Rn.axes=y.jsx(F5,{xScale:da,yScale:ei,width:ln,height:cn,top:te,right:K,bottom:ae,left:re},"axes")),_.includes("lines")&&(Rn.lines=y.jsx($ce,{series:ua,lineGenerator:Ar,lineWidth:g},"lines")),_.includes("legends")&&ce.length>0&&(Rn.legends=y.jsx(v.Fragment,{children:ce.map(function(Rr,Mi){return y.jsx(e1,En({},Rr,{containerWidth:ln,containerHeight:cn,data:Rr.data||so,toggleSerie:Rr.toggleSerie?Ae:void 0}),Mi)})},"legends"));var Oh=Zv(le,ua,ge);C&&(Rn.areas=y.jsx(Sce,{areaGenerator:lo,areaOpacity:$,areaBlendMode:R,series:ua},"areas")),Ce&&Fe!==!1&&(Rn.slices=y.jsx(Mce,{slices:zc,axis:Fe,debug:vt,tooltip:Pe,current:uo,setCurrent:Uc,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:Te,onMouseDown:Re,onMouseUp:ot,onClick:Ue,onDoubleClick:mt,onTouchStart:ut,onTouchMove:At,onTouchEnd:Ke},"slices")),E&&(Rn.points=y.jsx(Ece,{points:ti,symbol:A,size:j,borderWidth:z,enableLabel:q,label:X,labelYOffset:J,isFocusable:St,setCurrentPoint:js,tooltip:Ve,margin:br,ariaLabel:on,ariaLabelledBy:Yt,ariaDescribedBy:Be,ariaHidden:ze,ariaDisabled:ht},"points")),Ce&&Ye&&(co!==null&&(Rn.crosshair=y.jsx(Zm,{width:ln,height:cn,x:co.x,y:co.y,type:nt},"crosshair")),uo!==null&&Fe&&(Rn.crosshair=y.jsx(Zm,{width:ln,height:cn,x:uo.x,y:uo.y,type:Fe},"crosshair"))),Ce&&we&&Fe===!1&&(Rn.mesh=y.jsx(Oce,{points:ti,width:ln,height:cn,margin:br,setCurrent:js,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:Te,onMouseDown:Re,onMouseUp:ot,onClick:Ue,onDoubleClick:mt,onTouchStart:ut,onTouchMove:At,onTouchEnd:Ke,tooltip:Ve,enableTouchCrosshair:Jt,debug:Ne},"mesh"));var Ah=En({},e,{innerWidth:ln,innerHeight:cn,series:ua,slices:zc,points:ti,xScale:da,yScale:ei,lineGenerator:Ar,areaGenerator:lo,currentPoint:co,setCurrentPoint:js,currentSlice:uo,setCurrentSlice:Uc});return y.jsx(Th,{defs:Oh,width:An,height:ao,margin:br,role:zt,ariaLabel:fn,ariaLabelledBy:qt,ariaDescribedBy:$e,isFocusable:St,ref:Qe,children:_.map(function(Rr,Mi){return typeof Rr=="function"?y.jsx(v.Fragment,{children:Rr(Ah)},Mi):Rn[Rr]})})}var Dce=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?st.isInteractive:n,i=e.animate,o=i===void 0?st.animate:i,a=e.motionConfig,s=a===void 0?st.motionConfig:a,l=e.theme,c=e.renderWrapper,u=kh(e,Ace);return y.jsx(sa,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Rce,En({isInteractive:r},u,{forwardedRef:t}))})}),Ice=["defaultWidth","defaultHeight","onResize","debounceResize"],jce=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=kh(e,Ice);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Dce,En({width:l,height:c},a,{ref:t}))}})}),Pce=["isInteractive","renderWrapper","theme"],Nce=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=i===void 0?en.pixelRatio:i,a=e.data,s=e.xScale,l=s===void 0?en.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?en.yScale:u,f=e.yFormat,h=e.curve,p=h===void 0?en.curve:h,m=e.layers,g=m===void 0?en.layers:m,x=e.colors,_=x===void 0?en.colors:x,w=e.lineWidth,C=w===void 0?en.lineWidth:w,b=e.enableArea,S=b===void 0?en.enableArea:b,M=e.areaBaselineValue,$=M===void 0?en.areaBaselineValue:M,k=e.areaOpacity,R=k===void 0?en.areaOpacity:k,T=e.enablePoints,E=T===void 0?en.enablePoints:T,A=e.pointSize,I=A===void 0?en.pointSize:A,j=e.pointColor,D=j===void 0?en.pointColor:j,O=e.pointBorderWidth,L=O===void 0?en.pointBorderWidth:O,z=e.pointBorderColor,N=z===void 0?en.pointBorderColor:z,H=e.enableGridX,Y=H===void 0?en.enableGridX:H,q=e.gridXValues,Z=e.enableGridY,X=Z===void 0?en.enableGridY:Z,J=e.gridYValues,ee=e.axisTop,W=e.axisRight,F=e.axisBottom,B=F===void 0?en.axisBottom:F,V=e.axisLeft,P=V===void 0?en.axisLeft:V,te=e.legends,K=te===void 0?en.legends:te,G=e.isInteractive,ae=G===void 0?en.isInteractive:G,ne=e.debugMesh,re=ne===void 0?en.debugMesh:ne,oe=e.onMouseLeave,le=e.onMouseDown,ye=e.onMouseUp,ge=e.onClick,be=e.onDoubleClick,Me=e.tooltip,ce=Me===void 0?en.tooltip:Me,de=e.role,Ce=e.forwardedRef,Ge=v.useRef(null),we=ca(t,n,r),ve=we.margin,Ne=we.innerWidth,Ze=we.innerHeight,_t=we.outerWidth,Te=we.outerHeight,Re=Lt(),ot=v.useState(null),Ue=ot[0],mt=ot[1],ut=q5({data:a,xScale:l,xFormat:c,yScale:d,yFormat:f,width:Ne,height:Ze,colors:_,curve:p,areaBaselineValue:$,pointColor:D,pointBorderColor:N}),At=ut.lineGenerator,Ke=ut.areaGenerator,Le=ut.series,Ve=ut.xScale,et=ut.yScale,Fe=ut.points,tt=v.useMemo(function(){return{innerWidth:Ne,innerHeight:Ze,series:Le,points:Fe,xScale:Ve,yScale:et,lineWidth:C,lineGenerator:At,areaGenerator:Ke,currentPoint:Ue,setCurrentPoint:mt}},[Ne,Ze,Le,Fe,Ve,et,C,At,Ke,Ue,mt]),vt=V5({points:Fe,width:Ne,height:Ze,debug:re}),at=vt.delaunay,Pe=vt.voronoi;v.useEffect(function(){if(Ge.current!==null){Ge.current.width=_t*o,Ge.current.height=Te*o;var $e=Ge.current.getContext("2d");$e.scale(o,o),$e.fillStyle=Re.background,$e.fillRect(0,0,_t,Te),$e.translate(ve.left,ve.top),g.forEach(function(Je){var St;typeof Je=="function"&&Je($e,tt);var on=(St=Re.grid.line.strokeWidth)!=null?St:0;if(Je==="grid"&&typeof on!="string"&&on>0&&($e.lineWidth=on,$e.strokeStyle=Re.grid.line.stroke,Y&&Ed($e,{width:Ne,height:Ze,scale:Ve,axis:"x",values:q}),X&&Ed($e,{width:Ne,height:Ze,scale:et,axis:"y",values:J})),Je==="axes"&&z5($e,{xScale:Ve,yScale:et,width:Ne,height:Ze,top:ee,right:W,bottom:B,left:P,theme:Re}),Je==="areas"&&S===!0){$e.save(),$e.globalAlpha=R,Ke.context($e);for(var Yt=Le.length-1;Yt>=0;Yt--)$e.fillStyle=Le[Yt].color,$e.beginPath(),Ke(Le[Yt].data.map(function(ze){return ze.position})),$e.fill();$e.restore()}if(Je==="lines"&&(At.context($e),Le.forEach(function(ze){$e.strokeStyle=ze.color,$e.lineWidth=C,$e.beginPath(),At(ze.data.map(function(ht){return ht.position})),$e.stroke()})),Je==="points"&&E===!0&&I>0&&Fe.forEach(function(ze){$e.fillStyle=ze.color,$e.beginPath(),$e.arc(ze.x,ze.y,I/2,0,2*Math.PI),$e.fill(),L>0&&($e.strokeStyle=ze.borderColor,$e.lineWidth=L,$e.stroke())}),Je==="mesh"&&re===!0&&Pe!==void 0&&(vce($e,Pe),Ue&&bce($e,Pe,Ue.absIndex)),Je==="legends"){var Be=Le.map(function(ze){return{id:ze.id,label:ze.id,color:ze.color}}).reverse();K.forEach(function(ze){t1($e,En({},ze,{data:ze.data||Be,containerWidth:Ne,containerHeight:Ze,theme:Re}))})}})}},[Ge,Ne,_t,Ze,Te,ve.left,ve.top,o,g,Re,At,Le,Ve,et,Y,q,X,J,ee,W,B,P,K,Fe,E,I,L,Ue,tt,re,S,Ke,R,C,Pe]);var Ee=v.useCallback(function($e){if(!Ge.current)return null;var Je=Wa(Ge.current,$e),St=Je[0],on=Je[1];if(!m5(ve.left,ve.top,Ne,Ze,St,on))return null;var Yt=at.find(St-ve.left,on-ve.top);return Fe[Yt]},[Ge,ve,Ne,Ze,at,Fe]),Ye=ki(),xt=Ye.showTooltipFromEvent,nt=Ye.hideTooltip,bt=v.useCallback(function($e){var Je=Ee($e);mt(Je),Je?xt(v.createElement(ce,{point:Je}),$e):nt()},[Ee,mt,xt,nt,ce]),Jt=v.useCallback(function($e){nt(),mt(null),Ue&&(oe==null||oe(Ue,$e))},[nt,mt,oe,Ue]),Ft=v.useCallback(function($e){if(le){var Je=Ee($e);Je&&le(Je,$e)}},[Ee,le]),zt=v.useCallback(function($e){if(ye){var Je=Ee($e);Je&&ye(Je,$e)}},[Ee,ye]),fn=v.useCallback(function($e){if(ge){var Je=Ee($e);Je&&ge(Je,$e)}},[Ee,ge]),qt=v.useCallback(function($e){if(be){var Je=Ee($e);Je&&be(Je,$e)}},[Ee,be]);return y.jsx("canvas",{ref:Xv(Ge,Ce),width:_t*o,height:Te*o,style:{width:_t,height:Te,cursor:ae?"auto":"normal"},onMouseEnter:ae?bt:void 0,onMouseMove:ae?bt:void 0,onMouseLeave:ae?Jt:void 0,onMouseDown:ae?Ft:void 0,onMouseUp:ae?zt:void 0,onClick:ae?fn:void 0,onDoubleClick:ae?qt:void 0,role:de})},Lce=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=kh(e,Pce);return y.jsx(sa,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(Nce,En({},o,{forwardedRef:t}))})}),Fce=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,o=kh(e,Fce);return y.jsx(la,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(a){var s=a.width,l=a.height;return y.jsx(Lce,En({width:s,height:l},o,{ref:t}))}})});var Bce=O5;function zce(e,t){var n=[];return Bce(e,function(r,i,o){t(r,i,o)&&n.push(r)}),n}var Wce=zce,Uce=Q6,Hce=Wce,Vce=n1,qce=Kn;function Yce(e,t){var n=qce(e)?Uce:Hce;return n(e,Vce(t))}var Gce=Yce;const Zce=nn(Gce);var Xce=$i,Kce=vr,Jce="[object Number]";function Qce(e){return typeof e=="number"||Kce(e)&&Xce(e)==Jce}var eue=Qce;const Bx=nn(eue);function tue(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var nue=tue,rue=Ms,iue=Pc;function oue(e,t){return e&&rue(t,iue(t),e)}var aue=oue,sue=Ms,lue=Dc;function cue(e,t){return e&&sue(t,lue(t),e)}var uue=cue,due=Ms,fue=Vv;function hue(e,t){return due(e,fue(e),t)}var pue=hue,mue=Uv,gue=tv,vue=Vv,bue=e5,yue=Object.getOwnPropertySymbols,xue=yue?function(e){for(var t=[];e;)mue(t,vue(e)),e=gue(e);return t}:bue,Y5=xue,wue=Ms,_ue=Y5;function Cue(e,t){return wue(e,_ue(e),t)}var Sue=Cue,Tue=J6,$ue=Y5,kue=Dc;function Mue(e){return Tue(e,kue,$ue)}var G5=Mue,Eue=Object.prototype,Oue=Eue.hasOwnProperty;function Aue(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Oue.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Rue=Aue,Due=ev;function Iue(e,t){var n=t?Due(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var jue=Iue,Pue=/\w*$/;function Nue(e){var t=new e.constructor(e.source,Pue.exec(e));return t.lastIndex=e.lastIndex,t}var Lue=Nue,zx=_s,Wx=zx?zx.prototype:void 0,Ux=Wx?Wx.valueOf:void 0;function Fue(e){return Ux?Object(Ux.call(e)):{}}var Bue=Fue,zue=ev,Wue=jue,Uue=Lue,Hue=Bue,Vue=mS,que="[object Boolean]",Yue="[object Date]",Gue="[object Map]",Zue="[object Number]",Xue="[object RegExp]",Kue="[object Set]",Jue="[object String]",Que="[object Symbol]",ede="[object ArrayBuffer]",tde="[object DataView]",nde="[object Float32Array]",rde="[object Float64Array]",ide="[object Int8Array]",ode="[object Int16Array]",ade="[object Int32Array]",sde="[object Uint8Array]",lde="[object Uint8ClampedArray]",cde="[object Uint16Array]",ude="[object Uint32Array]";function dde(e,t,n){var r=e.constructor;switch(t){case ede:return zue(e);case que:case Yue:return new r(+e);case tde:return Wue(e,n);case nde:case rde:case ide:case ode:case ade:case sde:case lde:case cde:case ude:return Vue(e,n);case Gue:return new r;case Zue:case Jue:return new r(e);case Xue:return Uue(e);case Kue:return new r;case Que:return Hue(e)}}var fde=dde,hde=Sh,pde=vr,mde="[object Map]";function gde(e){return pde(e)&&hde(e)==mde}var vde=gde,bde=vde,yde=ks,Hx=jf,Vx=Hx&&Hx.isMap,xde=Vx?yde(Vx):bde,wde=xde,_de=Sh,Cde=vr,Sde="[object Set]";function Tde(e){return Cde(e)&&_de(e)==Sde}var $de=Tde,kde=$de,Mde=ks,qx=jf,Yx=qx&&qx.isSet,Ede=Yx?Mde(Yx):kde,Ode=Ede,Ade=Rf,Rde=nue,Dde=sv,Ide=aue,jde=uue,Pde=hS,Nde=gS,Lde=pue,Fde=Sue,Bde=t5,zde=G5,Wde=Sh,Ude=Rue,Hde=fde,Vde=bS,qde=Kn,Yde=If,Gde=wde,Zde=Qr,Xde=Ode,Kde=Pc,Jde=Dc,Qde=1,efe=2,tfe=4,Z5="[object Arguments]",nfe="[object Array]",rfe="[object Boolean]",ife="[object Date]",ofe="[object Error]",X5="[object Function]",afe="[object GeneratorFunction]",sfe="[object Map]",lfe="[object Number]",K5="[object Object]",cfe="[object RegExp]",ufe="[object Set]",dfe="[object String]",ffe="[object Symbol]",hfe="[object WeakMap]",pfe="[object ArrayBuffer]",mfe="[object DataView]",gfe="[object Float32Array]",vfe="[object Float64Array]",bfe="[object Int8Array]",yfe="[object Int16Array]",xfe="[object Int32Array]",wfe="[object Uint8Array]",_fe="[object Uint8ClampedArray]",Cfe="[object Uint16Array]",Sfe="[object Uint32Array]",Gt={};Gt[Z5]=Gt[nfe]=Gt[pfe]=Gt[mfe]=Gt[rfe]=Gt[ife]=Gt[gfe]=Gt[vfe]=Gt[bfe]=Gt[yfe]=Gt[xfe]=Gt[sfe]=Gt[lfe]=Gt[K5]=Gt[cfe]=Gt[ufe]=Gt[dfe]=Gt[ffe]=Gt[wfe]=Gt[_fe]=Gt[Cfe]=Gt[Sfe]=!0;Gt[ofe]=Gt[X5]=Gt[hfe]=!1;function Du(e,t,n,r,i,o){var a,s=t&Qde,l=t&efe,c=t&tfe;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Zde(e))return e;var u=qde(e);if(u){if(a=Ude(e),!s)return Nde(e,a)}else{var d=Wde(e),f=d==X5||d==afe;if(Yde(e))return Pde(e,s);if(d==K5||d==Z5||f&&!i){if(a=l||f?{}:Vde(e),!s)return l?Fde(e,jde(a,e)):Lde(e,Ide(a,e))}else{if(!Gt[d])return i?e:{};a=Hde(e,d,s)}}o||(o=new Ade);var h=o.get(e);if(h)return h;o.set(e,a),Xde(e)?e.forEach(function(g){a.add(Du(g,t,n,g,e,o))}):Gde(e)&&e.forEach(function(g,x){a.set(x,Du(g,t,n,x,e,o))});var p=c?l?zde:Bde:l?Jde:Kde,m=u?void 0:p(e);return Rde(m||e,function(g,x){m&&(x=g,g=e[x]),Dde(a,x,Du(g,t,n,x,e,o))}),a}var Tfe=Du;function $fe(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var kfe=$fe,Mfe=Ic,Efe=kfe;function Ofe(e,t){return t.length<2?e:Mfe(e,Efe(t,0,-1))}var Afe=Ofe,Rfe=Es,Dfe=q6,Ife=Afe,jfe=Os;function Pfe(e,t){return t=Rfe(t,e),e=Ife(e,t),e==null||delete e[jfe(Dfe(t))]}var Nfe=Pfe,Lfe=iv;function Ffe(e){return Lfe(e)?void 0:e}var Bfe=Ffe,zfe=Ff,Wfe=Tfe,Ufe=Nfe,Hfe=Es,Vfe=Ms,qfe=Bfe,Yfe=X6,Gfe=G5,Zfe=1,Xfe=2,Kfe=4,Jfe=Yfe(function(e,t){var n={};if(e==null)return n;var r=!1;t=zfe(t,function(o){return o=Hfe(o,e),r||(r=o.length>1),o}),Vfe(e,Gfe(e),n),r&&(n=Wfe(n,Zfe|Xfe|Kfe,qfe));for(var i=t.length;i--;)Ufe(n,t[i]);return n}),Qfe=Jfe;const J5=nn(Qfe);function Zr(){return Zr=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},Zr.apply(null,arguments)}var gg={dotSize:4,noteWidth:120,noteTextOffset:8},ehe=function(e){var t=typeof e;return v.isValidElement(e)||t==="string"||t==="function"||t==="object"},the=function(e){var t=typeof e;return t==="string"||t==="function"},lc=function(e){return e.type==="circle"},vg=function(e){return e.type==="dot"},cc=function(e){return e.type==="rect"},nhe=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(o,a){var s=a.offset||0;return[].concat(o,Zce(t,a.match).map(function(l){var c=r(l),u=i(l);return(lc(a)||cc(a))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Zr({},J5(a,["match","offset"]),c,u,{size:a.size||u.size,datum:l})}))},[])},rhe=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Eie(Nc(i))},Q5=function(e){var t,n,r=e.x,i=e.y,o=e.noteX,a=e.noteY,s=e.noteWidth,l=s===void 0?gg.noteWidth:s,c=e.noteTextOffset,u=c===void 0?gg.noteTextOffset:c;if(Bx(o))t=r+o;else{if(o.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=o.abs}if(Bx(a))n=i+a;else{if(a.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=a.abs}var d=r,f=i,h=rhe(r,i,t,n);if(lc(e)){var p=No(fr(h),e.size/2);d+=p.x,f+=p.y}if(cc(e)){var m=Math.round((h+90)/45)%8;m===0&&(f-=e.height/2),m===1&&(d+=e.width/2,f-=e.height/2),m===2&&(d+=e.width/2),m===3&&(d+=e.width/2,f+=e.height/2),m===4&&(f+=e.height/2),m===5&&(d-=e.width/2,f+=e.height/2),m===6&&(d-=e.width/2),m===7&&(d-=e.width/2,f-=e.height/2)}var g=t,x=t;return(h+90)%360>180?(g-=l,x-=l):x+=l,{points:[[d,f],[t,n],[x,n]],text:[g,n-u],angle:h+90}},eT=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return v.useMemo(function(){return nhe({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},ihe=function(e){var t=e.annotations;return v.useMemo(function(){return t.map(function(n){return Zr({},n,{computed:Q5(Zr({},n))})})},[t])},ohe=function(e){return v.useMemo(function(){return Q5(e)},[e])},ahe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=Kr({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?v.createElement(i,{x:n,y:r,datum:t}):y.jsxs(y.Fragment,{children:[o.annotations.text.outlineWidth>0&&y.jsx(Ht.text,{x:c.x,y:c.y,style:Zr({},o.annotations.text,{strokeLinejoin:"round",strokeWidth:2*o.annotations.text.outlineWidth,stroke:o.annotations.text.outlineColor}),children:i}),y.jsx(Ht.text,{x:c.x,y:c.y,style:J5(o.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},Gx=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Lt(),o=v.useMemo(function(){var l=t[0];return t.slice(1).reduce(function(c,u){return c+" L"+u[0]+","+u[1]},"M"+l[0]+","+l[1])},[t]),a=Yv(o);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Zr({},i.annotations.link);return r&&(s.strokeLinecap="square",s.strokeWidth=i.annotations.link.strokeWidth+2*i.annotations.link.outlineWidth,s.stroke=i.annotations.link.outlineColor,s.opacity=i.annotations.link.outlineOpacity),y.jsx(Ht.path,{fill:"none",d:a,style:s})},she=function(e){var t=e.x,n=e.y,r=e.size,i=Lt(),o=Fn(),a=o.animate,s=o.config,l=Kr({x:t,y:n,radius:r/2,config:s,immediate:!a});return y.jsxs(y.Fragment,{children:[i.annotations.outline.outlineWidth>0&&y.jsx(Ht.circle,{cx:l.x,cy:l.y,r:l.radius,style:Zr({},i.annotations.outline,{fill:"none",strokeWidth:i.annotations.outline.strokeWidth+2*i.annotations.outline.outlineWidth,stroke:i.annotations.outline.outlineColor,opacity:i.annotations.outline.outlineOpacity})}),y.jsx(Ht.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},lhe=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?gg.dotSize:r,o=Lt(),a=Fn(),s=a.animate,l=a.config,c=Kr({x:t,y:n,radius:i/2,config:l,immediate:!s});return y.jsxs(y.Fragment,{children:[o.annotations.outline.outlineWidth>0&&y.jsx(Ht.circle,{cx:c.x,cy:c.y,r:c.radius,style:Zr({},o.annotations.outline,{fill:"none",strokeWidth:2*o.annotations.outline.outlineWidth,stroke:o.annotations.outline.outlineColor,opacity:o.annotations.outline.outlineOpacity})}),y.jsx(Ht.circle,{cx:c.x,cy:c.y,r:c.radius,style:o.annotations.symbol})]})},che=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o=e.borderRadius,a=o===void 0?6:o,s=Lt(),l=Fn(),c=l.animate,u=l.config,d=Kr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return y.jsxs(y.Fragment,{children:[s.annotations.outline.outlineWidth>0&&y.jsx(Ht.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:Zr({},s.annotations.outline,{fill:"none",strokeWidth:s.annotations.outline.strokeWidth+2*s.annotations.outline.outlineWidth,stroke:s.annotations.outline.outlineColor,opacity:s.annotations.outline.outlineOpacity})}),y.jsx(Ht.rect,{x:d.x,y:d.y,rx:a,ry:a,width:d.width,height:d.height,style:s.annotations.outline})]})},uhe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,o=ohe(e);if(!ehe(i))throw new Error("note should be a valid react element");return y.jsxs(y.Fragment,{children:[y.jsx(Gx,{points:o.points,isOutline:!0}),lc(e)&&y.jsx(she,{x:n,y:r,size:e.size}),vg(e)&&y.jsx(lhe,{x:n,y:r,size:e.size}),cc(e)&&y.jsx(che,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),y.jsx(Gx,{points:o.points}),y.jsx(ahe,{datum:t,x:o.text[0],y:o.text[1],note:i})]})},Zx=function(e,t){t.forEach(function(n,r){var i=n[0],o=n[1];r===0?e.moveTo(i,o):e.lineTo(i,o)})},dhe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!the(i.note))throw new Error("note is invalid for canvas implementation");r.annotations.link.outlineWidth>0&&(e.lineCap="square",e.strokeStyle=r.annotations.link.outlineColor,e.lineWidth=r.annotations.link.strokeWidth+2*r.annotations.link.outlineWidth,e.beginPath(),Zx(e,i.computed.points),e.stroke(),e.lineCap="butt"),lc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),vg(i)&&r.annotations.symbol.outlineWidth>0&&(e.strokeStyle=r.annotations.symbol.outlineColor,e.lineWidth=2*r.annotations.symbol.outlineWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),cc(i)&&r.annotations.outline.outlineWidth>0&&(e.strokeStyle=r.annotations.outline.outlineColor,e.lineWidth=r.annotations.outline.strokeWidth+2*r.annotations.outline.outlineWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),e.strokeStyle=r.annotations.link.stroke,e.lineWidth=r.annotations.link.strokeWidth,e.beginPath(),Zx(e,i.computed.points),e.stroke(),lc(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.stroke()),vg(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),cc(i)&&(e.strokeStyle=r.annotations.outline.stroke,e.lineWidth=r.annotations.outline.strokeWidth,e.beginPath(),e.rect(i.x-i.width/2,i.y-i.height/2,i.width,i.height),e.stroke()),typeof i.note=="function"?i.note(e,{datum:i.datum,x:i.computed.text[0],y:i.computed.text[1],theme:r}):(e.font=r.annotations.text.fontSize+"px "+r.annotations.text.fontFamily,e.textAlign="left",e.textBaseline="alphabetic",e.fillStyle=r.annotations.text.fill,e.strokeStyle=r.annotations.text.outlineColor,e.lineWidth=2*r.annotations.text.outlineWidth,r.annotations.text.outlineWidth>0&&(e.lineJoin="round",e.strokeText(i.note,i.computed.text[0],i.computed.text[1]),e.lineJoin="miter"),e.fillText(i.note,i.computed.text[0],i.computed.text[1]))}),e.restore())},fhe=function(e,t,n,r,i,o){o>0?(e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()):e.rect(t,n,r,i)};function kt(){return kt=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},kt.apply(null,arguments)}function oo(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 Xx,hhe=function(e){var t=e.bars,n=e.annotations,r=eT({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var o=i.height,a=i.width;return{width:a,height:o,size:Math.max(a,o)}}});return y.jsx(y.Fragment,{children:r.map(function(i,o){return y.jsx(uhe,kt({},i),o)})})},phe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return y.jsx(y.Fragment,{children:r.map(function(o,a){var s,l=o[0],c=o[1];return y.jsx(e1,kt({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),a)})})},mhe=["data"],ghe=function(e){var t,n=e.bar,r=n.data,i=oo(n,mhe),o=e.style,a=o.borderColor,s=o.color,l=o.height,c=o.labelColor,u=o.labelOpacity,d=o.labelX,f=o.labelY,h=o.transform,p=o.width,m=o.textAnchor,g=e.borderRadius,x=e.borderWidth,_=e.label,w=e.shouldRenderLabel,C=e.isInteractive,b=e.onClick,S=e.onMouseEnter,M=e.onMouseLeave,$=e.tooltip,k=e.isFocusable,R=e.ariaLabel,T=e.ariaLabelledBy,E=e.ariaDescribedBy,A=e.ariaDisabled,I=e.ariaHidden,j=Lt(),D=ki(),O=D.showTooltipFromEvent,L=D.showTooltipAt,z=D.hideTooltip,N=v.useMemo(function(){return function(){return v.createElement($,kt({},i,r))}},[$,i,r]),H=v.useCallback(function(ee){b==null||b(kt({color:i.color},r),ee)},[i,r,b]),Y=v.useCallback(function(ee){return O(N(),ee)},[O,N]),q=v.useCallback(function(ee){S==null||S(r,ee),O(N(),ee)},[r,S,O,N]),Z=v.useCallback(function(ee){M==null||M(r,ee),z()},[r,z,M]),X=v.useCallback(function(){L(N(),[i.absX+i.width/2,i.absY])},[L,N,i]),J=v.useCallback(function(){z()},[z]);return y.jsxs(Ht.g,{transform:h,children:[y.jsx(Ht.rect,{width:Qi(p,function(ee){return Math.max(ee,0)}),height:Qi(l,function(ee){return Math.max(ee,0)}),rx:g,ry:g,fill:(t=r.fill)!=null?t:s,strokeWidth:x,stroke:a,focusable:k,tabIndex:k?0:void 0,"aria-label":R?R(r):void 0,"aria-labelledby":T?T(r):void 0,"aria-describedby":E?E(r):void 0,"aria-disabled":A?A(r):void 0,"aria-hidden":I?I(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?Y:void 0,onMouseLeave:C?Z:void 0,onClick:C?H:void 0,onFocus:C&&k?X:void 0,onBlur:C&&k?J:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),w&&y.jsx(Ds,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:kt({},j.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},vhe=["color","label"],bhe=function(e){var t=e.color,n=e.label,r=oo(e,vhe);return y.jsx(dv,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Ut={indexBy:"id",keys:["value"],groupMode:"stacked",layout:"vertical",valueScale:{type:"linear",nice:!0,round:!1},indexScale:{type:"band",round:!1},padding:.1,innerPadding:0,enableGridX:!1,enableGridY:!0,enableLabel:!0,label:"formattedValue",labelPosition:"middle",labelOffset:0,labelSkipWidth:0,labelSkipHeight:0,labelTextColor:{theme:"labels.text.fill"},colorBy:"id",colors:{scheme:"nivo"},borderRadius:0,borderWidth:0,borderColor:{from:"color"},isInteractive:!0,tooltip:bhe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Wt=kt({},Ut,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:ghe,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),un=kt({},Ut,{layers:["grid","axes","bars","totals","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},renderBar:function(e,t){var n=t.bar,r=n.color,i=n.height,o=n.width,a=n.x,s=n.y,l=t.borderColor,c=t.borderRadius,u=t.borderWidth,d=t.label,f=t.shouldRenderLabel,h=t.labelStyle,p=t.labelX,m=t.labelY,g=t.textAnchor;e.fillStyle=r,u>0&&(e.strokeStyle=l,e.lineWidth=u),e.beginPath(),fhe(e,a,s,o,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=g==="middle"?"center":g,Ko(e,h,d,a+p,s+m))},pixelRatio:typeof window<"u"&&(Xx=window.devicePixelRatio)!=null?Xx:1}),tT=function(e,t,n,r,i,o){return sc(r,{all:e.map(t),min:0,max:0},i,o).padding(n)},nT=function(e,t){return e.map(function(n){return kt({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Mh=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Eh=function(e){return[e,Number(e)]};function rT(e,t,n,r){return e===void 0&&(e=Ut.layout),n===void 0&&(n=Ut.labelPosition),r===void 0&&(r=Ut.labelOffset),function(i,o){var a=r*(t?-1:1);if(e==="horizontal"){var s=i/2;return n==="start"?s=t?i:0:n==="end"&&(s=t?0:i),{labelX:s+a,labelY:o/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=o/2;return n==="start"?l=t?0:o:n==="end"&&(l=t?o:0),{labelX:i/2,labelY:l-a,textAnchor:"middle"}}}var yhe=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],i1=function(e,t){return e>t},iT=function(e,t){return e<t},oT=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},xhe=function(e){return i1(e,0)?0:e},whe=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getColor,s=e.getIndex,l=e.getTooltipLabel,c=e.innerPadding,u=c===void 0?0:c,d=e.keys,f=e.xScale,h=e.yScale,p=e.margin,m=n?iT:i1,g=i.map(Mh),x=[];return d.forEach(function(_,w){return oT(0,f.domain().length).forEach(function(C){var b,S,M,$=Eh(i[C][_]),k=$[0],R=$[1],T=s(i[C]),E=((b=f(T))!=null?b:0)+t*w+u*w,A=m(S=R,0)?(M=h(S))!=null?M:0:r,I=function(D,O){var L;return m(D,0)?r-O:((L=h(D))!=null?L:0)-r}(R,A),j={id:_,value:k===null?k:R,formattedValue:o(R),hidden:!1,index:C,indexValue:T,data:g[C]};x.push({key:_+"."+j.indexValue,index:x.length,data:j,x:E,y:A,absX:p.left+E,absY:p.top+A,width:t,height:I,color:a(j),label:l(j)})})}),x},_he=function(e,t,n,r){var i=e.data,o=e.formatValue,a=e.getIndex,s=e.getColor,l=e.getTooltipLabel,c=e.keys,u=e.innerPadding,d=u===void 0?0:u,f=e.xScale,h=e.yScale,p=e.margin,m=n?iT:i1,g=i.map(Mh),x=[];return c.forEach(function(_,w){return oT(0,h.domain().length).forEach(function(C){var b,S,M,$=Eh(i[C][_]),k=$[0],R=$[1],T=a(i[C]),E=m(S=R,0)?r:(M=f(S))!=null?M:0,A=((b=h(T))!=null?b:0)+t*w+d*w,I=function(D,O){var L;return m(D,0)?((L=f(D))!=null?L:0)-r:r-O}(R,E),j={id:_,value:k===null?k:R,formattedValue:o(R),hidden:!1,index:C,indexValue:T,data:g[C]};x.push({key:_+"."+j.indexValue,index:x.length,data:j,x:E,y:A,absX:p.left+E,absY:p.top+A,width:I,height:t,color:s(j),label:l(j)})})}),x},Che=function(e){var t,n,r,i=e.layout,o=e.width,a=e.height,s=e.padding,l=s===void 0?0:s,c=e.innerPadding,u=c===void 0?0:c,d=e.valueScale,f=e.indexScale,h=e.hiddenIds,p=h===void 0?[]:h,m=oo(e,yhe),g=m.keys.filter(function(O){return!p.includes(O)}),x=nT(m.data,g),_=i==="vertical"?["y","x",o]:["x","y",a],w=_[0],C=_[1],b=_[2],S=tT(x,m.getIndex,l,f,b,C),M=d.min==="auto"?xhe:function(O){return O},$=x.reduce(function(O,L){return[].concat(O,g.map(function(z){return L[z]}))},[]).filter(Boolean),k=M(Math.min.apply(Math,$)),R=(r=Math.max.apply(Math,$),isFinite(r)?r:0),T=sc(d,{all:$,min:k,max:R},w==="x"?o:a,w),E=i==="vertical"?[S,T]:[T,S],A=E[0],I=E[1],j=(S.bandwidth()-u*(g.length-1))/g.length,D=[kt({},m,{data:x,keys:g,innerPadding:u,xScale:A,yScale:I}),j,(t=d.reverse)!=null&&t,(n=T(0))!=null?n:0];return{xScale:A,yScale:I,bars:j>0?i==="vertical"?whe.apply(void 0,D):_he.apply(void 0,D):[]}},She=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],aT=function(e){var t;return e.some(Array.isArray)?aT((t=[]).concat.apply(t,e)):e},The=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return c.domain().forEach(function(p,m){var g,x,_=h[m],w=(g=c(o(_.data)))!=null?g:0,C=((x=function(R){return u(R[n?0:1])}(_))!=null?x:0)+.5*s,b=function(R,T){var E;return((E=u(R[n?1:0]))!=null?E:0)-T}(_,C)-s,S=Eh(_.data[h.key]),M=S[0],$=S[1],k={id:h.key,value:M===null?M:$,formattedValue:r($),hidden:!1,index:m,indexValue:p,data:Mh(_.data)};f.push({key:h.key+"."+p,index:f.length,data:k,x:w,y:C,absX:d.left+w,absY:d.top+C,width:t,height:b,color:i(k),label:a(k)})})}),f},$he=function(e,t,n){var r=e.formatValue,i=e.getColor,o=e.getIndex,a=e.getTooltipLabel,s=e.innerPadding,l=e.stackedData,c=e.xScale,u=e.yScale,d=e.margin,f=[];return l.forEach(function(h){return u.domain().forEach(function(p,m){var g,x,_=h[m],w=(g=u(o(_.data)))!=null?g:0,C=((x=function(R){return c(R[n?1:0])}(_))!=null?x:0)+.5*s,b=function(R,T){var E;return((E=c(R[n?0:1]))!=null?E:0)-T}(_,C)-s,S=Eh(_.data[h.key]),M=S[0],$=S[1],k={id:h.key,value:M===null?M:$,formattedValue:r($),hidden:!1,index:m,indexValue:p,data:Mh(_.data)};f.push({key:h.key+"."+p,index:f.length,data:k,x:C,y:w,absX:d.left+C,absY:d.top+w,width:b,height:t,color:i(k),label:a(k)})})}),f},khe=function(e){var t,n,r=e.data,i=e.layout,o=e.width,a=e.height,s=e.padding,l=s===void 0?0:s,c=e.valueScale,u=e.indexScale,d=e.hiddenIds,f=d===void 0?[]:d,h=oo(e,She),p=h.keys.filter(function(j){return!f.includes(j)}),m=WJ().keys(p).offset(UJ)(nT(r,p)),g=i==="vertical"?["y","x",o]:["x","y",a],x=g[0],_=g[1],w=g[2],C=tT(r,h.getIndex,l,u,w,_),b=(n=aT(m),c.type==="log"?n.filter(function(j){return j!==0}):n),S=Math.min.apply(Math,b),M=Math.max.apply(Math,b),$=sc(c,{all:b,min:S,max:M},x==="x"?o:a,x),k=i==="vertical"?[C,$]:[$,C],R=k[0],T=k[1],E=h.innerPadding>0?h.innerPadding:0,A=C.bandwidth(),I=[kt({},h,{innerPadding:E,stackedData:m,xScale:R,yScale:T}),A,(t=c.reverse)!=null&&t];return{xScale:R,yScale:T,bars:A>0?i==="vertical"?The.apply(void 0,I):$he.apply(void 0,I):[]}},Mhe=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,o=e.layout,a=e.legendLabel,s=e.reverse,l=h5(a??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=hg(c.map(function(h){var p,m;return{id:(p=h.data.indexValue)!=null?p:"",label:d(h.data),hidden:h.data.hidden,color:(m=h.color)!=null?m:"#000"}}),function(h){return h.id});return u==="horizontal"&&f.reverse(),f}(t,o,l):function(c,u,d,f,h,p){var m=hg(c.map(function(g){var x;return{id:g.data.id,label:p(g.data),hidden:g.data.hidden,color:(x=g.color)!=null?x:"#000"}}),function(g){return g.id});return(u==="vertical"&&f==="stacked"&&d==="column"&&h!==!0||u==="horizontal"&&f==="stacked"&&h===!0)&&m.reverse(),m}(t,o,n,i,s,l)},Kx=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},Ehe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Ohe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Ahe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},sT=function(e){var t,n=e.indexBy,r=n===void 0?Ut.indexBy:n,i=e.keys,o=i===void 0?Ut.keys:i,a=e.label,s=a===void 0?Ut.label:a,l=e.tooltipLabel,c=l===void 0?Ut.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?Ut.colors:d,h=e.colorBy,p=h===void 0?Ut.colorBy:h,m=e.borderColor,g=m===void 0?Ut.borderColor:m,x=e.labelTextColor,_=x===void 0?Ut.labelTextColor:x,w=e.groupMode,C=w===void 0?Ut.groupMode:w,b=e.layout,S=b===void 0?Ut.layout:b,M=e.data,$=e.margin,k=e.width,R=e.height,T=e.padding,E=T===void 0?Ut.padding:T,A=e.innerPadding,I=A===void 0?Ut.innerPadding:A,j=e.valueScale,D=j===void 0?Ut.valueScale:j,O=e.indexScale,L=O===void 0?Ut.indexScale:O,z=e.initialHiddenIds,N=z===void 0?Ut.initialHiddenIds:z,H=e.enableLabel,Y=H===void 0?Ut.enableLabel:H,q=e.labelSkipWidth,Z=q===void 0?Ut.labelSkipWidth:q,X=e.labelSkipHeight,J=X===void 0?Ut.labelSkipHeight:X,ee=e.legends,W=ee===void 0?Ut.legends:ee,F=e.legendLabel,B=e.totalsOffset,V=B===void 0?Ut.totalsOffset:B,P=v.useState(N??[]),te=P[0],K=P[1],G=v.useCallback(function(Te){K(function(Re){return Re.indexOf(Te)>-1?Re.filter(function(ot){return ot!==Te}):[].concat(Re,[Te])})},[]),ae=gi(r),ne=gi(s),re=gi(c),oe=cs(u),le=Lt(),ye=Kv(f,p),ge=mr(g,le),be=mr(_,le),Me=(C==="grouped"?Che:khe)({layout:S,data:M,getIndex:ae,keys:o,width:k,height:R,getColor:ye,padding:E,innerPadding:I,valueScale:D,indexScale:L,hiddenIds:te,formatValue:oe,getTooltipLabel:re,margin:$}),ce=Me.bars,de=Me.xScale,Ce=Me.yScale,Ge=v.useMemo(function(){return ce.filter(function(Te){return Te.data.value!==null}).map(function(Te,Re){return kt({},Te,{index:Re})})},[ce]),we=v.useCallback(function(Te){var Re=Te.width,ot=Te.height;return!!Y&&!(Z>0&&Re<Z)&&!(J>0&&ot<J)},[Y,Z,J]),ve=v.useMemo(function(){return o.map(function(Te){var Re=ce.find(function(ot){return ot.data.id===Te});return kt({},Re,{data:kt({id:Te},Re==null?void 0:Re.data,{hidden:te.includes(Te)})})})},[te,o,ce]),Ne=(t=D.reverse)!=null&&t,Ze=v.useMemo(function(){return W.map(function(Te){return[Te,Mhe({bars:Te.dataFrom==="keys"?ve:ce,direction:Te.direction,from:Te.dataFrom,groupMode:C,layout:S,legendLabel:F,reverse:Ne})]})},[W,ve,ce,C,S,F,Ne]),_t=v.useMemo(function(){return function(Te,Re,ot,Ue,mt,ut,At){Ue===void 0&&(Ue=Ut.layout),mt===void 0&&(mt=Ut.groupMode);var Ke=[];if(Te.length===0)return Ke;var Le=new Map,Ve=Te[0].width,et=Te[0].height;if(mt==="stacked"){var Fe=new Map;Te.forEach(function(at){var Pe=at.data,Ee=Pe.indexValue,Ye=Pe.value;Kx(Le,Ee,Number(Ye)),Ehe(Fe,Ee,Number(Ye))}),Fe.forEach(function(at,Pe){var Ee,Ye,xt,nt=Le.get(Pe)||0;Ue==="vertical"?(Ee=Re(Pe),Ye=ot(at),xt=ot(at/2)):(Ee=Re(at),Ye=ot(Pe),xt=Re(at/2)),Ee+=Ue==="vertical"?Ve/2:ut,Ye+=Ue==="vertical"?-ut:et/2,Ke.push({key:"total_"+Pe,x:Ee,y:Ye,value:nt,formattedValue:At(nt),animationOffset:xt})})}else if(mt==="grouped"){var tt=new Map,vt=new Map;Te.forEach(function(at){var Pe=at.data,Ee=Pe.indexValue,Ye=Pe.value;Kx(Le,Ee,Number(Ye)),Ohe(tt,Ee,Number(Ye)),Ahe(vt,Ee)}),tt.forEach(function(at,Pe){var Ee,Ye,xt,nt=Le.get(Pe)||0,bt=vt.get(Pe);Ue==="vertical"?(Ee=Re(Pe),Ye=ot(at),xt=ot(at/2)):(Ee=Re(at),Ye=ot(Pe),xt=Re(at/2)),Ee+=Ue==="vertical"?bt*Ve/2:ut,Ye+=Ue==="vertical"?-ut:bt*et/2,Ke.push({key:"total_"+Pe,x:Ee,y:Ye,value:nt,formattedValue:At(nt),animationOffset:xt})})}return Ke}(ce,de,Ce,S,C,V,oe)},[ce,de,Ce,S,C,V,oe]);return{bars:ce,barsWithValue:Ge,xScale:de,yScale:Ce,getIndex:ae,getLabel:ne,getTooltipLabel:re,formatValue:oe,getColor:ye,getBorderColor:ge,getLabelColor:be,shouldRenderBarLabel:we,hiddenIds:te,toggleSerie:G,legendsWithData:Ze,barTotals:_t}},Rhe=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,o=i===void 0?Wt.layout:i,a=Lt();return ea(t,{keys:function(s){return s.key},from:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},enter:function(s){return{x:s.x,y:s.y,labelOpacity:1}},update:function(s){return{x:s.x,y:s.y,labelOpacity:1}},leave:function(s){return{x:o==="vertical"?s.x:s.animationOffset,y:o==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,l){return y.jsx(Ht.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:kt({},a.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:a.labels.text.fontSize,fontFamily:a.labels.text.fontFamily,textAnchor:o==="vertical"?"middle":"start",alignmentBaseline:o==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},Dhe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Ihe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,s=e.height,l=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,m=e.axisRight,g=e.axisBottom,x=g===void 0?Wt.axisBottom:g,_=e.axisLeft,w=_===void 0?Wt.axisLeft:_,C=e.enableGridX,b=C===void 0?Wt.enableGridX:C,S=e.enableGridY,M=S===void 0?Wt.enableGridY:S,$=e.gridXValues,k=e.gridYValues,R=e.layers,T=R===void 0?Wt.layers:R,E=e.barComponent,A=E===void 0?Wt.barComponent:E,I=e.enableLabel,j=I===void 0?Wt.enableLabel:I,D=e.label,O=e.labelSkipWidth,L=O===void 0?Wt.labelSkipWidth:O,z=e.labelSkipHeight,N=z===void 0?Wt.labelSkipHeight:z,H=e.labelTextColor,Y=e.labelPosition,q=Y===void 0?Wt.labelPosition:Y,Z=e.labelOffset,X=Z===void 0?Wt.labelOffset:Z,J=e.markers,ee=J===void 0?Wt.markers:J,W=e.colorBy,F=e.colors,B=e.defs,V=B===void 0?Wt.defs:B,P=e.fill,te=P===void 0?Wt.fill:P,K=e.borderRadius,G=K===void 0?Wt.borderRadius:K,ae=e.borderWidth,ne=ae===void 0?Wt.borderWidth:ae,re=e.borderColor,oe=e.annotations,le=oe===void 0?Wt.annotations:oe,ye=e.legendLabel,ge=e.tooltipLabel,be=e.valueFormat,Me=e.isInteractive,ce=Me===void 0?Wt.isInteractive:Me,de=e.tooltip,Ce=de===void 0?Wt.tooltip:de,Ge=e.onClick,we=e.onMouseEnter,ve=e.onMouseLeave,Ne=e.legends,Ze=e.role,_t=Ze===void 0?Wt.role:Ze,Te=e.ariaLabel,Re=e.ariaLabelledBy,ot=e.ariaDescribedBy,Ue=e.isFocusable,mt=Ue===void 0?Wt.isFocusable:Ue,ut=e.barAriaLabel,At=e.barAriaLabelledBy,Ke=e.barAriaDescribedBy,Le=e.barAriaHidden,Ve=e.barAriaDisabled,et=e.initialHiddenIds,Fe=e.enableTotals,tt=Fe===void 0?Wt.enableTotals:Fe,vt=e.totalsOffset,at=vt===void 0?Wt.totalsOffset:vt,Pe=e.forwardedRef,Ee=Fn(),Ye=Ee.animate,xt=Ee.config,nt=ca(a,s,o),bt=nt.outerWidth,Jt=nt.outerHeight,Ft=nt.margin,zt=nt.innerWidth,fn=nt.innerHeight,qt=sT({indexBy:r,label:D,tooltipLabel:ge,valueFormat:be,colors:F,colorBy:W,borderColor:re,labelTextColor:H,groupMode:l,layout:c,data:n,keys:i,margin:Ft,width:zt,height:fn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:j,labelSkipWidth:L,labelSkipHeight:N,legends:Ne,legendLabel:ye,initialHiddenIds:et,totalsOffset:at}),$e=qt.bars,Je=qt.barsWithValue,St=qt.xScale,on=qt.yScale,Yt=qt.getLabel,Be=qt.getTooltipLabel,ze=qt.getBorderColor,ht=qt.getLabelColor,Rt=qt.shouldRenderBarLabel,Tt=qt.toggleSerie,Qe=qt.legendsWithData,$t=qt.barTotals,br=qt.getColor,ln=rT(c,(t=u==null?void 0:u.reverse)!=null&&t,q,X),cn=ea(Je,{keys:function(Ae){return Ae.key},from:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ht(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:{height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0})},enter:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ht(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},update:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ht(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},leave:function(Ae){return kt({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ht(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{labelY:0,transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:kt({},ln(Ae.width,Ae.height),{labelX:0,height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0}))},config:xt,immediate:!Ye,initial:Ye?void 0:null}),An=v.useMemo(function(){return{borderRadius:G,borderWidth:ne,enableLabel:j,isInteractive:ce,labelSkipWidth:L,labelSkipHeight:N,onClick:Ge,onMouseEnter:we,onMouseLeave:ve,getTooltipLabel:Be,tooltip:Ce,isFocusable:mt,ariaLabel:ut,ariaLabelledBy:At,ariaDescribedBy:Ke,ariaHidden:Le,ariaDisabled:Ve}},[G,ne,j,Be,ce,N,L,Ge,we,ve,Ce,mt,ut,At,Ke,Le,Ve]),ao=Zv(V,$e,te,{dataKey:"data",targetKey:"data.fill"}),Ct={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};T.includes("annotations")&&(Ct.annotations=y.jsx(hhe,{bars:$e,annotations:le},"annotations")),T.includes("axes")&&(Ct.axes=y.jsx(F5,{xScale:St,yScale:on,width:zt,height:fn,top:p,right:m,bottom:x,left:w},"axes")),T.includes("bars")&&(Ct.bars=y.jsx(v.Fragment,{children:cn(function(Ae,Ar){return v.createElement(A,kt({},An,{bar:Ar,style:Ae,shouldRenderLabel:Rt(Ar),label:Yt(Ar.data)}))})},"bars")),T.includes("grid")&&(Ct.grid=y.jsx(B5,{width:zt,height:fn,xScale:b?St:null,yScale:M?on:null,xValues:$,yValues:k},"grid")),T.includes("legends")&&(Ct.legends=y.jsx(phe,{width:zt,height:fn,legends:Qe,toggleSerie:Tt},"legends")),T.includes("markers")&&(Ct.markers=y.jsx(u5,{markers:ee,width:zt,height:fn,xScale:St,yScale:on},"markers")),T.includes("totals")&&tt&&(Ct.totals=y.jsx(Rhe,{data:$t,springConfig:xt,animate:Ye,layout:c},"totals"));var so=kt({},An,{margin:Ft,width:a,height:s,innerWidth:zt,innerHeight:fn,bars:$e,legendData:Qe,enableLabel:j,xScale:St,yScale:on,tooltip:Ce,getTooltipLabel:Be,onClick:Ge,onMouseEnter:we,onMouseLeave:ve,getColor:br});return y.jsx(Th,{width:bt,height:Jt,margin:Ft,defs:ao,role:_t,ariaLabel:Te,ariaLabelledBy:Re,ariaDescribedBy:ot,isFocusable:mt,ref:Pe,children:T.map(function(Ae,Ar){var lo;return typeof Ae=="function"?y.jsx(v.Fragment,{children:v.createElement(Ae,so)},Ar):(lo=Ct==null?void 0:Ct[Ae])!=null?lo:null})})},jhe=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Wt.isInteractive:n,i=e.animate,o=i===void 0?Wt.animate:i,a=e.motionConfig,s=a===void 0?Wt.motionConfig:a,l=e.theme,c=e.renderWrapper,u=oo(e,Dhe);return y.jsx(sa,{animate:o,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:y.jsx(Ihe,kt({},u,{isInteractive:r,forwardedRef:t}))})}),Phe=["isInteractive","renderWrapper","theme"],Hp=function(e,t,n,r){return e.find(function(i){return m5(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},Nhe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,o=e.margin,a=e.width,s=e.height,l=e.groupMode,c=e.layout,u=e.valueScale,d=e.indexScale,f=e.padding,h=e.innerPadding,p=e.axisTop,m=e.axisRight,g=e.axisBottom,x=g===void 0?un.axisBottom:g,_=e.axisLeft,w=_===void 0?un.axisLeft:_,C=e.enableGridX,b=C===void 0?un.enableGridX:C,S=e.enableGridY,M=S===void 0?un.enableGridY:S,$=e.gridXValues,k=e.gridYValues,R=e.labelPosition,T=R===void 0?un.labelPosition:R,E=e.labelOffset,A=E===void 0?un.labelOffset:E,I=e.layers,j=I===void 0?un.layers:I,D=e.renderBar,O=D===void 0?un.renderBar:D,L=e.enableLabel,z=L===void 0?un.enableLabel:L,N=e.label,H=e.labelSkipWidth,Y=H===void 0?un.labelSkipWidth:H,q=e.labelSkipHeight,Z=q===void 0?un.labelSkipHeight:q,X=e.labelTextColor,J=e.colorBy,ee=e.colors,W=e.borderRadius,F=W===void 0?un.borderRadius:W,B=e.borderWidth,V=B===void 0?un.borderWidth:B,P=e.borderColor,te=e.annotations,K=te===void 0?un.annotations:te,G=e.legendLabel,ae=e.tooltipLabel,ne=e.valueFormat,re=e.isInteractive,oe=re===void 0?un.isInteractive:re,le=e.tooltip,ye=le===void 0?un.tooltip:le,ge=e.onClick,be=e.onMouseEnter,Me=e.onMouseLeave,ce=e.legends,de=e.pixelRatio,Ce=de===void 0?un.pixelRatio:de,Ge=e.role,we=e.forwardedRef,ve=e.enableTotals,Ne=ve===void 0?un.enableTotals:ve,Ze=e.totalsOffset,_t=Ze===void 0?un.totalsOffset:Ze,Te=v.useRef(null),Re=Lt(),ot=ca(a,s,o),Ue=ot.margin,mt=ot.innerWidth,ut=ot.innerHeight,At=ot.outerWidth,Ke=ot.outerHeight,Le=sT({indexBy:r,label:N,tooltipLabel:ae,valueFormat:ne,colors:ee,colorBy:J,borderColor:P,labelTextColor:X,groupMode:l,layout:c,data:n,keys:i,margin:Ue,width:mt,height:ut,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:z,labelSkipWidth:Y,labelSkipHeight:Z,legends:ce,legendLabel:G,totalsOffset:_t}),Ve=Le.bars,et=Le.barsWithValue,Fe=Le.xScale,tt=Le.yScale,vt=Le.getLabel,at=Le.getTooltipLabel,Pe=Le.getBorderColor,Ee=Le.getLabelColor,Ye=Le.shouldRenderBarLabel,xt=Le.legendsWithData,nt=Le.barTotals,bt=Le.getColor,Jt=ki(),Ft=Jt.showTooltipFromEvent,zt=Jt.hideTooltip,fn=ihe({annotations:eT({data:Ve,annotations:K,getPosition:function(Be){return{x:Be.x,y:Be.y}},getDimensions:function(Be){var ze=Be.width,ht=Be.height;return{width:ze,height:ht,size:Math.max(ze,ht)}}})}),qt=v.useMemo(function(){return{borderRadius:F,borderWidth:V,isInteractive:oe,isFocusable:!1,labelSkipWidth:Y,labelSkipHeight:Z,margin:Ue,width:a,height:s,innerWidth:mt,innerHeight:ut,bars:Ve,legendData:xt,enableLabel:z,xScale:Fe,yScale:tt,tooltip:ye,getTooltipLabel:at,onClick:ge,onMouseEnter:be,onMouseLeave:Me,getColor:bt}},[F,V,oe,Y,Z,Ue,a,s,mt,ut,Ve,xt,z,Fe,tt,ye,at,ge,be,Me,bt]),$e=cs(ne),Je=rT(c,(t=u==null?void 0:u.reverse)!=null&&t,T,A);v.useEffect(function(){if(Te.current){Te.current.width=At*Ce,Te.current.height=Ke*Ce;var Be=Te.current.getContext("2d");Be.scale(Ce,Ce),Be.fillStyle=Re.background,Be.fillRect(0,0,At,Ke),Be.translate(Ue.left,Ue.top),j.forEach(function(ze){ze==="grid"?typeof Re.grid.line.strokeWidth=="number"&&Re.grid.line.strokeWidth>0&&(Be.lineWidth=Re.grid.line.strokeWidth,Be.strokeStyle=Re.grid.line.stroke,b&&Ed(Be,{width:mt,height:ut,scale:Fe,axis:"x",values:$}),M&&Ed(Be,{width:mt,height:ut,scale:tt,axis:"y",values:k})):ze==="axes"?z5(Be,{xScale:Fe,yScale:tt,width:mt,height:ut,top:p,right:m,bottom:x,left:w,theme:Re}):ze==="bars"?(Xo(Be,Re.text),et.forEach(function(ht){O(Be,kt({bar:ht,borderColor:Pe(ht),borderRadius:F,borderWidth:V,label:vt(ht.data),shouldRenderLabel:Ye(ht),labelStyle:kt({},Re.labels.text,{fill:Ee(ht)})},Je(ht.width,ht.height)))})):ze==="legends"?xt.forEach(function(ht){var Rt=ht[0],Tt=ht[1];t1(Be,kt({},Rt,{data:Tt,containerWidth:mt,containerHeight:ut,theme:Re}))}):ze==="annotations"?dhe(Be,{annotations:fn,theme:Re}):ze==="totals"&&Ne?function(ht,Rt,Tt,Qe){Qe===void 0&&(Qe=un.layout),Xo(ht,Tt.labels.text),ht.textBaseline=Qe==="vertical"?"alphabetic":"middle",ht.textAlign=Qe==="vertical"?"center":"start",Rt.forEach(function($t){Ko(ht,Tt.labels.text,$t.formattedValue,$t.x,$t.y)})}(Be,nt,Re,c):typeof ze=="function"&&ze(Be,qt)}),Be.save()}},[x,w,m,p,et,F,V,fn,b,M,Pe,vt,Ee,$,k,l,s,ut,mt,qt,j,c,xt,Ue.left,Ue.top,Ke,At,Ce,O,Fe,tt,Ye,Re,a,nt,Ne,$e,Je]);var St=v.useCallback(function(Be){if(Ve&&Te.current){var ze=Wa(Te.current,Be),ht=ze[0],Rt=ze[1],Tt=Hp(Ve,Ue,ht,Rt);Tt!==void 0?(Ft(v.createElement(ye,kt({},Tt.data,{color:Tt.color,label:Tt.label,value:Number(Tt.data.value)})),Be),Be.type==="mouseenter"&&(be==null||be(Tt.data,Be))):zt()}},[zt,Ue,be,Ve,Ft,ye]),on=v.useCallback(function(Be){if(Ve&&Te.current){zt();var ze=Wa(Te.current,Be),ht=ze[0],Rt=ze[1],Tt=Hp(Ve,Ue,ht,Rt);Tt&&(Me==null||Me(Tt.data,Be))}},[zt,Ue,Me,Ve]),Yt=v.useCallback(function(Be){if(Ve&&Te.current){var ze=Wa(Te.current,Be),ht=ze[0],Rt=ze[1],Tt=Hp(Ve,Ue,ht,Rt);Tt!==void 0&&(ge==null||ge(kt({},Tt.data,{color:Tt.color}),Be))}},[Ue,ge,Ve]);return y.jsx("canvas",{ref:Xv(Te,we),width:At*Ce,height:Ke*Ce,style:{width:At,height:Ke,cursor:oe?"auto":"normal"},onMouseEnter:oe?St:void 0,onMouseMove:oe?St:void 0,onMouseLeave:oe?on:void 0,onClick:oe?Yt:void 0,role:Ge})},Lhe=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,o=oo(e,Phe);return y.jsx(sa,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:y.jsx(Nhe,kt({},o,{isInteractive:n,forwardedRef:t}))})}),Fhe=["defaultWidth","defaultHeight","onResize","debounceResize"],Bhe=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=oo(e,Fhe);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(jhe,kt({},a,{width:l,height:c,ref:t}))}})}),zhe=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,o=e.debounceResize,a=oo(e,zhe);return y.jsx(la,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:o,children:function(s){var l=s.width,c=s.height;return y.jsx(Lhe,kt({},a,{width:l,height:c,ref:t}))}})});exports.AbortError=wm;exports.AbstractModalHeader=Gg;exports.AggregateErrors=j9;exports.Alert=I0;exports.ApiWebSocketContext=Q9;exports.ApprovalState=DO;exports.Arg=ku;exports.AuthContext=Yd;exports.Backdrop=w3;exports.BaseModal=S_;exports.BootstrapModalManager=T_;exports.Button=Og;exports.Col=Ag;exports.ConfirmContext=q_;exports.ConsoleLogger=_m;exports.ContextButton=sf;exports.CustomSelectInput=vC;exports.DelegationContext=i4;exports.DisabledTransportError=R9;exports.Documents=gB;exports.Dropdown=m0;exports.Dropdown$1=Za;exports.DropdownDivider=Tm;exports.DropdownItem=$o;exports.DropdownToggle=p0;exports.ENTERED=Li;exports.ENTERING=ci;exports.EXITED=Pi;exports.EXITING=ju;exports.FaMinus=TD;exports.FaPlus=$D;exports.FaSearch=kD;exports.Fade=Yi;exports.FailedToNegotiateWithServerError=I9;exports.FailedToStartTransportError=D9;exports.Fe=RO;exports.FileExtensionIcon=u3;exports.FloatingLabelInput=lf;exports.Form=Xr;exports.FormCheckInput=Wd;exports.FormControl=d_;exports.FormDisabledContext=cC;exports.FormSelect=Wg;exports.HelmetContext=lC;exports.HookFormSelectInput=cf;exports.HookFormTextAreaInput=f0;exports.HookFormTextInput=rs;exports.HtmlTooltip=c4;exports.HttpError=E9;exports.HubConnection=u0;exports.IconButton=Sc;exports.InputAnchorContainer=pC;exports.InvalidFeedback=gf;exports.ListGroup=__;exports.ListGroupItem=Ud;exports.LoadingContext=qd;exports.LoginState=n4;exports.LuminusComponentsContext=rn;exports.MdCheck=x8;exports.MdCircle=y8;exports.MdClear=gc;exports.MdOutlineAddCircleOutline=O8;exports.MdOutlineArrowOutward=w8;exports.MdOutlineCallMade=M8;exports.MdOutlineCameraAlt=P8;exports.MdOutlineChevronRight=B8;exports.MdOutlineClose=H_;exports.MdOutlineDelete=U_;exports.MdOutlineEdit=N8;exports.MdOutlineExpand=C8;exports.MdOutlineFileUpload=D8;exports.MdOutlineKeyboardArrowLeft=I8;exports.MdOutlineKeyboardArrowRight=j8;exports.MdOutlineMenu=z8;exports.MdOutlineMessage=E8;exports.MdOutlinePhotoLibrary=L8;exports.MdOutlineSource=T8;exports.MdOutlineStar=H8;exports.MdOutlineSubdirectoryArrowRight=U8;exports.MdSave=b8;exports.MdSaveAs=v8;exports.MdSearch=g8;exports.Me=jce;exports.MiniDetailWrapper=gC;exports.Modal=Vn;exports.ModalContext=qg;exports.NoInputContainer=hC;exports.NullLogger=Qu;exports.OverlayTrigger=B_;exports.PageContainer=BB;exports.PiPushPinBold=LF;exports.PiPushPinSlashBold=FF;exports.Platform=Tr;exports.PrimaryButton=Uo;exports.PromptContext=Y_;exports.PropTypes=xe;exports.ResponsiveContextDropdown=y3;exports.ResponsiveContextDropdownItem=O0;exports.RowLabelInput=Tc;exports.ShortcutLinksContext=Sz;exports.SideContentBar=d3;exports.SimpleDropdownToggle=h0;exports.SimplePicker=x3;exports.SimpleTooltip=Jg;exports.Spinner=Xg;exports.TextInput=mC;exports.TextMessageFormat=cr;exports.TimeoutError=O9;exports.Tooltip=L_;exports.TransitionWrapper=Tg;exports.Typography=jn;exports.UnsupportedTransportError=A9;exports.UserContext=r4;exports.Xe=Bhe;exports.ZodIssueCode=he;exports.a=A0;exports.addLeadingZeros=Nt;exports.addMilliseconds=Qx;exports.arrayType=tC;exports.atobUtf8=d4;exports.axios=Zt;exports.buildEmployeeNameString=KO;exports.buildOrgUnitString=JO;exports.buildVehicleNameString=XO;exports.cancelToken=lR;exports.capitalizeFirstLetter=ZO;exports.classNames=se;exports.classes=Cm;exports.classes$1=bC;exports.compareDate=t7;exports.compareDateTime=n7;exports.compilerRuntimeExports=je;exports.constructFrom=bi;exports.context=Bd;exports.createLogger=F9;exports.differenceInCalendarDays=ow;exports.dist=R0;exports.divWithClassName=$g;exports.extractErrorsFromBlobResponse=s4;exports.extractErrorsFromResponse=Gd;exports.extractFilename=g4;exports.extractPermissionsFromResponse=l4;exports.fixNameIdNulls=o4;exports.format=wg;exports.formatDate=YO;exports.formatDateTime=GO;exports.formatFileSize=Xa;exports.getChildRef=fs;exports.getDataDetail=uC;exports.getDateString=l7;exports.getDaysDifference=r7;exports.getFirstDayOfMonth=p4;exports.getFirstDayOfOffsetMonth=i7;exports.getFirstDayOfYear=a7;exports.getGlobalThis=V9;exports.getLastDayOfMonth=m4;exports.getLastDayOfOffsetMonth=o7;exports.getLastDayOfYear=s7;exports.getSharedManager=$_;exports.getTimezoneOffsetInMilliseconds=Yp;exports.getUserAgentHeader=dC;exports.hasOnlyNullValues=a4;exports.hookFormSetServerErrors=jO;exports.isArrayBuffer=ns;exports.isExtensionOpenable=b4;exports.isFileOpenable=v4;exports.isISODate=f4;exports.isISODateInValidRange=h4;exports.isLeavingWindowInSafari=Xz;exports.isPast=lw;exports.isPrimitive=Hu;exports.isSafari=D0;exports.isValidDate=e7;exports.joinStrings=Qg;exports.makeDispatch=Jz;exports.millisecondsInHour=Rd;exports.millisecondsInMinute=yg;exports.millisecondsInWeek=bg;exports.msToStartOfNextDay=QO;exports.objectType=hi;exports.once=_3;exports.parseISO=uc;exports.replaceNullValuesOnlyObjectsWithNulls=IO;exports.saveFile=Vu;exports.saveFileFromResponse=d7;exports.secondsInDay=xg;exports.secondsInHour=ew;exports.secondsInMinute=MT;exports.secondsInMonth=nw;exports.secondsInQuarter=OT;exports.secondsInWeek=ET;exports.secondsInYear=tw;exports.sendMessage=L9;exports.shortenText=qO;exports.startOfDay=qp;exports.startOfWeek=Ua;exports.stringContains=fm;exports.stringSearchWithin=e0;exports.stringStartsWith=y4;exports.stringType=l0;exports.style=Hi;exports.t=uf;exports.te=Qoe;exports.toDate=Ln;exports.transitionEndListener=yw;exports.triggerBrowserReflow=xw;exports.trimIsoDate=Zd;exports.truncateText=u4;exports.u=c3;exports.urlfyArray=dm;exports.useAuth=V4;exports.useAxios=nf;exports.useBootstrapBreakpoints=fw;exports.useBootstrapMinBreakpoint=hw;exports.useBootstrapPrefix=gt;exports.useClickOutside=iC;exports.useClipboard=sC;exports.useCol=Ew;exports.useConfirm=a0;exports.useCookies=o0;exports.useEventCallback=qi;exports.useFormControlType=c0;exports.useFormDisabledContext=af;exports.useIsomorphicEffect=Bg;exports.useKeyPress=aC;exports.useNotifications=tf;exports.usePermissions=oC;exports.usePrompt=G_;exports.useSwipeable=M0;exports.useWindowSize=Cc;exports.useZodSchemaTypes=of;exports.z=sl;
|