react-luminus-components 2.1.3 → 2.1.4

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.
Files changed (31) hide show
  1. package/README.md +349 -349
  2. package/dist/.vite/manifest.json +38 -38
  3. package/dist/{FormDisabledProvider-9PRnBdWU.js → FormDisabledProvider-BlA7oC25.js} +1 -1
  4. package/dist/FormDisabledProvider-CECmrBJd.cjs +1 -0
  5. package/dist/components/Form/DropdownPicker/DropdownPicker.d.ts +1 -1
  6. package/dist/components/HookForm/DropdownPicker/HookFormDropdownPicker.d.ts +1 -1
  7. package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
  8. package/dist/contexts.cjs.js +1 -1
  9. package/dist/contexts.es.js +77 -77
  10. package/dist/hooks.cjs.js +1 -1
  11. package/dist/hooks.es.js +47 -47
  12. package/dist/layout.cjs.js +1 -1
  13. package/dist/layout.es.js +52 -52
  14. package/dist/main.cjs.js +7 -7
  15. package/dist/main.es.js +11713 -11712
  16. package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -0
  17. package/dist/{ShortcutLinksContext-BY-R5-zs.js → nivo-bar-D2xeG6Ps.js} +21213 -21210
  18. package/dist/nivo-bar-DKJ66whl.cjs +293 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{useIsFormDirty-COyiQoVZ.js → useIsFormDirty-BDa_BKvX.js} +5 -5
  21. package/dist/useIsFormDirty-CgvxOtfe.cjs +1 -0
  22. package/dist/useLocalStorageState-BJQMZg4Q.cjs +1 -0
  23. package/dist/{useLocalStorageState-BC8nJ4qt.js → useLocalStorageState-lCgUtRKF.js} +1 -1
  24. package/dist/utils.cjs.js +1 -1
  25. package/dist/utils.es.js +18 -18
  26. package/dist/variables.scss +165 -165
  27. package/package.json +128 -128
  28. package/dist/FormDisabledProvider-BC1rYj84.cjs +0 -1
  29. package/dist/ShortcutLinksContext-BrP3e2lp.cjs +0 -293
  30. package/dist/useIsFormDirty-CXJBlN5Q.cjs +0 -1
  31. package/dist/useLocalStorageState-DzGRXMpR.cjs +0 -1
@@ -0,0 +1,293 @@
1
+ "use strict";const b=require("react/jsx-runtime"),v=require("react"),QT=require("@azure/msal-browser"),no=require("react-router"),$1=require("@azure/msal-react"),Un=require("react-dom"),At=require("react-hook-form");require("react-flexmonster");function ek(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 he=ek(v);var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function an(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nm={exports:{}},Uh={};/**
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 E1;function tk(){if(E1)return Uh;E1=1;var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Uh.c=function(t){return e.H.useMemoCache(t)},Uh}var Hh={};/**
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 M1;function nk(){return M1||(M1=1,process.env.NODE_ENV!=="production"&&function(){var e=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Hh.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)}}()),Hh}process.env.NODE_ENV==="production"?nm.exports=tk():nm.exports=nk();var De=nm.exports,xw={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 a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(xw);var rk=xw.exports;const le=an(rk);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 ww(e,t){const n=+Ln(e);return bi(e,n+t)}const ik=365.2425,Og=6048e5,ak=864e5,Ag=6e4,Hd=36e5,_w=3600,ok=60,Rg=_w*24,sk=Rg*7,Cw=Rg*ik,Sw=Cw/12,lk=Sw*3;function Tw(e,t){return ww(e,t*Hd)}let ck={};function Vd(){return ck}function Qo(e,t){var s,l,c,u;const n=Vd(),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),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function qu(e){return Qo(e,{weekStartsOn:1})}function kw(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=qu(r),a=bi(e,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const o=qu(a);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function rm(e){const t=Ln(e);return t.setHours(0,0,0,0),t}function im(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 $w(e,t){const n=rm(e),r=rm(t),i=+n-im(n),a=+r-im(r);return Math.round((i-a)/ak)}function uk(e){const t=kw(e),n=bi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),qu(n)}function dk(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function fk(e){if(!dk(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function hk(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function pk(e){const t=Ln(e),n=bi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const mk={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},gk=(e,t,n)=>{let r;const i=mk[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 Vh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const vk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},bk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},yk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},xk={date:Vh({formats:vk,defaultWidth:"full"}),time:Vh({formats:bk,defaultWidth:"full"}),dateTime:Vh({formats:yk,defaultWidth:"full"})},wk={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_k=(e,t,n,r)=>wk[e];function Gs(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Ck={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Tk={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"]},kk={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"]},$k={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"}},Ek={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"}},Mk=(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"},Ok={ordinalNumber:Mk,era:Gs({values:Ck,defaultWidth:"wide"}),quarter:Gs({values:Sk,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Gs({values:Tk,defaultWidth:"wide"}),day:Gs({values:kk,defaultWidth:"wide"}),dayPeriod:Gs({values:$k,defaultWidth:"wide",formattingValues:Ek,defaultFormattingWidth:"wide"})};function Zs(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Rk(s,d=>d.test(o)):Ak(s,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function Ak(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Rk(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Dk(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const Ik=/^(\d+)(th|st|nd|rd)?/i,jk=/\d+/i,Nk={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},Pk={any:[/^b/i,/^(a|c)/i]},Lk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Fk={any:[/1/i,/2/i,/3/i,/4/i]},Bk={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},zk={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]},Wk={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},Uk={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hk={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Vk={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},qk={ordinalNumber:Dk({matchPattern:Ik,parsePattern:jk,valueCallback:e=>parseInt(e,10)}),era:Zs({matchPatterns:Nk,defaultMatchWidth:"wide",parsePatterns:Pk,defaultParseWidth:"any"}),quarter:Zs({matchPatterns:Lk,defaultMatchWidth:"wide",parsePatterns:Fk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Zs({matchPatterns:Bk,defaultMatchWidth:"wide",parsePatterns:zk,defaultParseWidth:"any"}),day:Zs({matchPatterns:Wk,defaultMatchWidth:"wide",parsePatterns:Uk,defaultParseWidth:"any"}),dayPeriod:Zs({matchPatterns:Hk,defaultMatchWidth:"any",parsePatterns:Vk,defaultParseWidth:"any"})},Yk={code:"en-US",formatDistance:gk,formatLong:xk,formatRelative:_k,localize:Ok,match:qk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Gk(e){const t=Ln(e);return $w(t,pk(t))+1}function Zk(e){const t=Ln(e),n=+qu(t)-+uk(t);return Math.round(n/Og)+1}function Ew(e,t){var u,d,f,h;const n=Ln(e),r=n.getFullYear(),i=Vd(),a=(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,o=bi(e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=Qo(o,t),l=bi(e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Qo(l,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Kk(e,t){var s,l,c,u;const n=Vd(),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=Ew(e,t),a=bi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Qo(a,t)}function Xk(e,t){const n=Ln(e),r=+Qo(n,t)-+Kk(n,t);return Math.round(r/Og)+1}function Lt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ri={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Lt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Lt(n+1,2)},d(e,t){return Lt(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 Lt(e.getHours()%12||12,t.length)},H(e,t){return Lt(e.getHours(),t.length)},m(e,t){return Lt(e.getMinutes(),t.length)},s(e,t){return Lt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Lt(i,t.length)}},wo={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},O1={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 Ri.y(e,t)},Y:function(e,t,n,r){const i=Ew(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Lt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Lt(a,t.length)},R:function(e,t){const n=kw(e);return Lt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Lt(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 Lt(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 Lt(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 Ri.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 Lt(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=Xk(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Lt(i,t.length)},I:function(e,t,n){const r=Zk(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Lt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ri.d(e,t)},D:function(e,t,n){const r=Gk(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Lt(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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Lt(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Lt(a,t.length);case"co":return n.ordinalNumber(a,{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 Lt(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=wo.noon:r===0?i=wo.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=wo.evening:r>=12?i=wo.afternoon:r>=4?i=wo.morning:i=wo.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 Ri.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ri.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Lt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Lt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ri.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ri.s(e,t)},S:function(e,t){return Ri.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return R1(r);case"XXXX":case"XX":return wa(r);case"XXXXX":case"XXX":default:return wa(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return R1(r);case"xxxx":case"xx":return wa(r);case"xxxxx":case"xxx":default:return wa(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A1(r,":");case"OOOO":default:return"GMT"+wa(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A1(r,":");case"zzzz":default:return"GMT"+wa(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Lt(r,t.length)},T:function(e,t,n){const r=e.getTime();return Lt(r,t.length)}};function A1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Lt(a,2)}function R1(e,t){return e%60===0?(e>0?"-":"+")+Lt(Math.abs(e)/60,2):wa(e,t)}function wa(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Lt(Math.trunc(r/60),2),a=Lt(r%60,2);return n+i+t+a}const D1=(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"})}},Mw=(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"})}},Jk=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return D1(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",D1(r,t)).replace("{{time}}",Mw(i,t))},Qk={p:Mw,P:Jk},e$=/^D+$/,t$=/^Y+$/,n$=["D","DD","YY","YYYY"];function r$(e){return e$.test(e)}function i$(e){return t$.test(e)}function a$(e,t,n){const r=o$(e,t,n);if(console.warn(r),n$.includes(e))throw new RangeError(r)}function o$(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 s$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c$=/^'([^]*?)'?$/,u$=/''/g,d$=/[a-zA-Z]/;function Dg(e,t,n){var u,d,f,h,p,m,g,y;const r=Vd(),i=(n==null?void 0:n.locale)??r.locale??Yk,a=(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,o=(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??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,s=Ln(e);if(!fk(s))throw new RangeError("Invalid time value");let l=t.match(l$).map(_=>{const w=_[0];if(w==="p"||w==="P"){const C=Qk[w];return C(_,i.formatLong)}return _}).join("").match(s$).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:f$(_)};if(O1[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:a,weekStartsOn:o,locale:i};return l.map(_=>{if(!_.isToken)return _.value;const w=_.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&i$(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&r$(w))&&a$(w,t,String(e));const C=O1[w[0]];return C(s,w,i.localize,c)}).join("")}function f$(e){const t=e.match(c$);return t?t[1].replace(u$,"'"):e}function Ow(e){return+Ln(e)<Date.now()}function Cc(e,t){const r=g$(e);let i;if(r.date){const l=v$(r.date,2);i=b$(l.restDateString,l.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);const a=i.getTime();let o=0,s;if(r.time&&(o=y$(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=x$(r.timezone),isNaN(s))return new Date(NaN)}else{const l=new Date(a+o),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(a+o+s)}const au={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},h$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,p$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,m$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function g$(e){const t={},n=e.split(au.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],au.timeZoneDelimiter.test(t.date)&&(t.date=e.split(au.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=au.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function v$(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,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function b$(e,t){if(t===null)return new Date(NaN);const n=e.match(h$);if(!n)return new Date(NaN);const r=!!n[4],i=Ks(n[1]),a=Ks(n[2])-1,o=Ks(n[3]),s=Ks(n[4]),l=Ks(n[5])-1;if(r)return T$(t,s,l)?w$(t,s,l):new Date(NaN);{const c=new Date(0);return!C$(t,a,o)||!S$(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function Ks(e){return e?parseInt(e):1}function y$(e){const t=e.match(p$);if(!t)return NaN;const n=qh(t[1]),r=qh(t[2]),i=qh(t[3]);return k$(n,r,i)?n*Hd+r*Ag+i*1e3:NaN}function qh(e){return e&&parseFloat(e.replace(",","."))||0}function x$(e){if(e==="Z")return 0;const t=e.match(m$);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return $$(r,i)?n*(r*Hd+i*Ag):NaN}function w$(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const _$=[31,null,31,30,31,30,31,31,30,31,30,31];function Aw(e){return e%400===0||e%4===0&&e%100!==0}function C$(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(_$[t]||(Aw(e)?29:28))}function S$(e,t){return t>=1&&t<=(Aw(e)?366:365)}function T$(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function k$(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function $$(e,t){return t>=0&&t<=59}function am(){return am=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},am.apply(null,arguments)}function Rw(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 E$=function(e,t,n,r,i,a,o,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,a,o,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},M$=E$;const I1=an(M$);function j1(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function O$(e){var t=A$(e,"string");return typeof t=="symbol"?t:String(t)}function A$(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),a=i[0],o=i[1],s=e!==void 0,l=r.current;return r.current=s,!s&&l&&a!==t&&o(t),[s?e:a,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)),o(c)},[n])]}function Ig(e,t){return Object.keys(t).reduce(function(n,r){var i,a=n,o=a[j1(r)],s=a[r],l=Rw(a,[j1(r),r].map(O$)),c=t[r],u=Dw(s,o,e[c]),d=u[0],f=u[1];return am({},l,(i={},i[r]=d,i[c]=f,i))},e)}function om(e,t){return om=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},om(e,t)}function R$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,om(e,t)}const D$=["xxl","xl","lg","md","sm","xs"],I$="xs",Sc=he.createContext({prefixes:{},breakpoints:D$,minBreakpoint:I$}),{Consumer:Vpe,Provider:qpe}=Sc;function gt(e,t){const{prefixes:n}=v.useContext(Sc);return e||n[t]||t}function Iw(){const{breakpoints:e}=v.useContext(Sc);return e}function jw(){const{minBreakpoint:e}=v.useContext(Sc);return e}function qd(){const{dir:e}=v.useContext(Sc);return e==="rtl"}function xs(e){return e&&e.ownerDocument||document}function j$(e){var t=xs(e);return t&&t.defaultView||window}function N$(e,t){return j$(e).getComputedStyle(e,t)}var P$=/([A-Z])/g;function L$(e){return e.replace(P$,"-$1").toLowerCase()}var F$=/^ms-/;function ou(e){return L$(e).replace(F$,"-ms-")}var B$=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function z$(e){return!!(e&&B$.test(e))}function qi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(ou(t))||N$(e).getPropertyValue(ou(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(ou(i)):z$(i)?r+=i+"("+a+") ":n+=ou(i)+": "+a+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var sm={exports:{}},su={exports:{}},It={};/** @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 N1;function W$(){if(N1)return It;N1=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,a=e?Symbol.for("react.profiler"):60114,o=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,y=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case t:switch(x=x.type,x){case l:case c:case r:case a:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case u:case p:case h:case o:return x;default:return S}}case n:return S}}}function C(x){return w(x)===c}return It.AsyncMode=l,It.ConcurrentMode=c,It.ContextConsumer=s,It.ContextProvider=o,It.Element=t,It.ForwardRef=u,It.Fragment=r,It.Lazy=p,It.Memo=h,It.Portal=n,It.Profiler=a,It.StrictMode=i,It.Suspense=d,It.isAsyncMode=function(x){return C(x)||w(x)===l},It.isConcurrentMode=C,It.isContextConsumer=function(x){return w(x)===s},It.isContextProvider=function(x){return w(x)===o},It.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},It.isForwardRef=function(x){return w(x)===u},It.isFragment=function(x){return w(x)===r},It.isLazy=function(x){return w(x)===p},It.isMemo=function(x){return w(x)===h},It.isPortal=function(x){return w(x)===n},It.isProfiler=function(x){return w(x)===a},It.isStrictMode=function(x){return w(x)===i},It.isSuspense=function(x){return w(x)===d},It.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===a||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===h||x.$$typeof===o||x.$$typeof===s||x.$$typeof===u||x.$$typeof===g||x.$$typeof===y||x.$$typeof===_||x.$$typeof===m)},It.typeOf=w,It}var jt={};/** @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 P1;function U$(){return P1||(P1=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,a=e?Symbol.for("react.profiler"):60114,o=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,y=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===a||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===o||N.$$typeof===s||N.$$typeof===u||N.$$typeof===g||N.$$typeof===y||N.$$typeof===_||N.$$typeof===m)}function C(N){if(typeof N=="object"&&N!==null){var ee=N.$$typeof;switch(ee){case t:var Q=N.type;switch(Q){case l:case c:case r:case a:case i:case d:return Q;default:var X=Q&&Q.$$typeof;switch(X){case s:case u:case p:case h:case o:return X;default:return ee}}case n:return ee}}}var x=l,S=c,E=s,k=o,T=t,D=u,$=r,M=p,R=h,I=n,j=a,A=i,O=d,L=!1;function F(N){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.")),P(N)||C(N)===l}function P(N){return C(N)===c}function W(N){return C(N)===s}function H(N){return C(N)===o}function q(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Z(N){return C(N)===u}function K(N){return C(N)===r}function te(N){return C(N)===p}function ne(N){return C(N)===h}function U(N){return C(N)===n}function B(N){return C(N)===a}function z(N){return C(N)===i}function V(N){return C(N)===d}jt.AsyncMode=x,jt.ConcurrentMode=S,jt.ContextConsumer=E,jt.ContextProvider=k,jt.Element=T,jt.ForwardRef=D,jt.Fragment=$,jt.Lazy=M,jt.Memo=R,jt.Portal=I,jt.Profiler=j,jt.StrictMode=A,jt.Suspense=O,jt.isAsyncMode=F,jt.isConcurrentMode=P,jt.isContextConsumer=W,jt.isContextProvider=H,jt.isElement=q,jt.isForwardRef=Z,jt.isFragment=K,jt.isLazy=te,jt.isMemo=ne,jt.isPortal=U,jt.isProfiler=B,jt.isStrictMode=z,jt.isSuspense=V,jt.isValidElementType=w,jt.typeOf=C}()),jt}var L1;function Nw(){return L1||(L1=1,process.env.NODE_ENV==="production"?su.exports=W$():su.exports=U$()),su.exports}/*
40
+ object-assign
41
+ (c) Sindre Sorhus
42
+ @license MIT
43
+ */var Yh,F1;function H$(){if(F1)return Yh;F1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(u){return o[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 Yh=i()?Object.assign:function(a,o){for(var s,l=r(a),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},Yh}var Gh,B1;function jg(){if(B1)return Gh;B1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gh=e,Gh}var Zh,z1;function Pw(){return z1||(z1=1,Zh=Function.call.bind(Object.prototype.hasOwnProperty)),Zh}var Kh,W1;function V$(){if(W1)return Kh;W1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=jg(),n={},r=Pw();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var d;try{if(typeof a[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 a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=a[u](o,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={})},Kh=i,Kh}var Xh,U1;function q$(){if(U1)return Xh;U1=1;var e=Nw(),t=H$(),n=jg(),r=Pw(),i=V$(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Xh=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(P){var W=P&&(c&&P[c]||P[u]);if(typeof W=="function")return W}var f="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:_(),arrayOf:w,element:C(),elementType:x(),instanceOf:S,node:D(),objectOf:k,oneOf:E,oneOfType:T,shape:M,exact:R};function p(P,W){return P===W?P!==0||1/P===1/W:P!==P&&W!==W}function m(P,W){this.message=P,this.data=W&&typeof W=="object"?W:{},this.stack=""}m.prototype=Error.prototype;function g(P){if(process.env.NODE_ENV!=="production")var W={},H=0;function q(K,te,ne,U,B,z,V){if(U=U||f,z=z||ne,V!==n){if(l){var N=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 N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=U+":"+ne;!W[ee]&&H<3&&(a("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+U+"`. 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."),W[ee]=!0,H++)}}return te[ne]==null?K?te[ne]===null?new m("The "+B+" `"+z+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new m("The "+B+" `"+z+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:P(te,ne,U,B,z)}var Z=q.bind(null,!1);return Z.isRequired=q.bind(null,!0),Z}function y(P){function W(H,q,Z,K,te,ne){var U=H[q],B=A(U);if(B!==P){var z=O(U);return new m("Invalid "+K+" `"+te+"` of type "+("`"+z+"` supplied to `"+Z+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return g(W)}function _(){return g(o)}function w(P){function W(H,q,Z,K,te){if(typeof P!="function")return new m("Property `"+te+"` of component `"+Z+"` has invalid PropType notation inside arrayOf.");var ne=H[q];if(!Array.isArray(ne)){var U=A(ne);return new m("Invalid "+K+" `"+te+"` of type "+("`"+U+"` supplied to `"+Z+"`, expected an array."))}for(var B=0;B<ne.length;B++){var z=P(ne,B,Z,K,te+"["+B+"]",n);if(z instanceof Error)return z}return null}return g(W)}function C(){function P(W,H,q,Z,K){var te=W[H];if(!s(te)){var ne=A(te);return new m("Invalid "+Z+" `"+K+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return g(P)}function x(){function P(W,H,q,Z,K){var te=W[H];if(!e.isValidElementType(te)){var ne=A(te);return new m("Invalid "+Z+" `"+K+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return g(P)}function S(P){function W(H,q,Z,K,te){if(!(H[q]instanceof P)){var ne=P.name||f,U=F(H[q]);return new m("Invalid "+K+" `"+te+"` of type "+("`"+U+"` supplied to `"+Z+"`, expected ")+("instance of `"+ne+"`."))}return null}return g(W)}function E(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function W(H,q,Z,K,te){for(var ne=H[q],U=0;U<P.length;U++)if(p(ne,P[U]))return null;var B=JSON.stringify(P,function(V,N){var ee=O(N);return ee==="symbol"?String(N):N});return new m("Invalid "+K+" `"+te+"` of value `"+String(ne)+"` "+("supplied to `"+Z+"`, expected one of "+B+"."))}return g(W)}function k(P){function W(H,q,Z,K,te){if(typeof P!="function")return new m("Property `"+te+"` of component `"+Z+"` has invalid PropType notation inside objectOf.");var ne=H[q],U=A(ne);if(U!=="object")return new m("Invalid "+K+" `"+te+"` of type "+("`"+U+"` supplied to `"+Z+"`, expected an object."));for(var B in ne)if(r(ne,B)){var z=P(ne,B,Z,K,te+"."+B,n);if(z instanceof Error)return z}return null}return g(W)}function T(P){if(!Array.isArray(P))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var W=0;W<P.length;W++){var H=P[W];if(typeof H!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(H)+" at index "+W+"."),o}function q(Z,K,te,ne,U){for(var B=[],z=0;z<P.length;z++){var V=P[z],N=V(Z,K,te,ne,U,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&B.push(N.data.expectedType)}var ee=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new m("Invalid "+ne+" `"+U+"` supplied to "+("`"+te+"`"+ee+"."))}return g(q)}function D(){function P(W,H,q,Z,K){return I(W[H])?null:new m("Invalid "+Z+" `"+K+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return g(P)}function $(P,W,H,q,Z){return new m((P||"React class")+": "+W+" type `"+H+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Z+"`.")}function M(P){function W(H,q,Z,K,te){var ne=H[q],U=A(ne);if(U!=="object")return new m("Invalid "+K+" `"+te+"` of type `"+U+"` "+("supplied to `"+Z+"`, expected `object`."));for(var B in P){var z=P[B];if(typeof z!="function")return $(Z,K,te,B,O(z));var V=z(ne,B,Z,K,te+"."+B,n);if(V)return V}return null}return g(W)}function R(P){function W(H,q,Z,K,te){var ne=H[q],U=A(ne);if(U!=="object")return new m("Invalid "+K+" `"+te+"` of type `"+U+"` "+("supplied to `"+Z+"`, expected `object`."));var B=t({},H[q],P);for(var z in B){var V=P[z];if(r(P,z)&&typeof V!="function")return $(Z,K,te,z,O(V));if(!V)return new m("Invalid "+K+" `"+te+"` key `"+z+"` supplied to `"+Z+"`.\nBad object: "+JSON.stringify(H[q],null," ")+`
44
+ Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=V(ne,z,Z,K,te+"."+z,n);if(N)return N}return null}return g(W)}function I(P){switch(typeof P){case"number":case"string":case"undefined":return!0;case"boolean":return!P;case"object":if(Array.isArray(P))return P.every(I);if(P===null||s(P))return!0;var W=d(P);if(W){var H=W.call(P),q;if(W!==P.entries){for(;!(q=H.next()).done;)if(!I(q.value))return!1}else for(;!(q=H.next()).done;){var Z=q.value;if(Z&&!I(Z[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,W){return P==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function A(P){var W=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(W,P)?"symbol":W}function O(P){if(typeof P>"u"||P===null)return""+P;var W=A(P);if(W==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return W}function L(P){var W=O(P);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function F(P){return!P.constructor||!P.constructor.name?f:P.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Xh}var Jh,H1;function Y$(){if(H1)return Jh;H1=1;var e=jg();function t(){}function n(){}return n.resetWarningCache=t,Jh=function(){function r(o,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 a={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 a.PropTypes=a,a},Jh}if(process.env.NODE_ENV!=="production"){var G$=Nw(),Z$=!0;sm.exports=q$()(G$.isElement,Z$)}else sm.exports=Y$()();var K$=sm.exports;const we=an(K$),V1={disabled:!1};var X$=process.env.NODE_ENV!=="production"?we.oneOfType([we.number,we.shape({enter:we.number,exit:we.number,appear:we.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&we.oneOfType([we.string,we.shape({enter:we.string,exit:we.string,active:we.string}),we.shape({enter:we.string,enterDone:we.string,enterActive:we.string,exit:we.string,exitDone:we.string,exitActive:we.string})]);const Lw=v.createContext(null);var J$=function(t){return t.scrollTop},ml="unmounted",Pi="exited",ci="entering",Fi="entered",Yu="exiting",Ti=function(e){R$(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,s=o&&!o.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?s?(l=Pi,a.appearStatus=ci):l=Fi:r.unmountOnExit||r.mountOnEnter?l=ml:l=Pi,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ml?{status:Pi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==ci&&o!==Fi&&(a=ci):(o===ci||o===Fi)&&(a=Yu)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===ci){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this);o&&J$(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pi&&this.setState({status:ml})},n.performEnter=function(i){var a=this,o=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&&!o||V1.disabled){this.safeSetState({status:Fi},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:ci},function(){a.props.onEntering(c,u),a.onTransitionEnd(f,function(){a.safeSetState({status:Fi},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Un.findDOMNode(this);if(!a||V1.disabled){this.safeSetState({status:Pi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Yu},function(){i.props.onExiting(s),i.onTransitionEnd(o.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,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Un.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,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===ml)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=Rw(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Lw.Provider,{value:null},typeof o=="function"?o(i,s):v.cloneElement(v.Children.only(o),s))},t}(v.Component);Ti.contextType=Lw;Ti.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:we.shape({current:typeof Element>"u"?we.any:function(e,t,n,r,i,a){var o=e[t];return we.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:we.oneOfType([we.func.isRequired,we.element.isRequired]).isRequired,in:we.bool,mountOnEnter:we.bool,unmountOnExit:we.bool,appear:we.bool,enter:we.bool,exit:we.bool,timeout:function(t){var n=X$;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[t].concat(i))},addEndListener:we.func,onEnter:we.func,onEntering:we.func,onEntered:we.func,onExit:we.func,onExiting:we.func,onExited:we.func}:{};function _o(){}Ti.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_o,onEntering:_o,onEntered:_o,onExit:_o,onExiting:_o,onExited:_o};Ti.UNMOUNTED=ml;Ti.EXITED=Pi;Ti.ENTERING=ci;Ti.ENTERED=Fi;Ti.EXITING=Yu;function Fw(e){return e.code==="Escape"||e.keyCode===27}function Q$(){const e=he.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function ws(e){if(!e||typeof e=="function")return null;const{major:t}=Q$();return t>=19?e.props.ref:e.ref}const _s=!!(typeof window<"u"&&window.document&&window.document.createElement);var lm=!1,cm=!1;try{var Qh={get passive(){return lm=!0},get once(){return cm=lm=!0}};_s&&(window.addEventListener("test",Qh,Qh),window.removeEventListener("test",Qh,!0))}catch{}function Ng(e,t,n,r){if(r&&typeof r!="boolean"&&!cm){var i=r.once,a=r.capture,o=n;!cm&&i&&(o=n.__once||function s(l){this.removeEventListener(t,s,a),n.call(this,l)},n.__once=o),e.addEventListener(t,o,lm?r:a)}e.addEventListener(t,n,r)}function um(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 Ng(e,t,n,r),function(){um(e,t,n,r)}}function eE(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 tE(e){var t=qi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function nE(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||eE(e,"transitionend",!0)},t+n),a=fi(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Bw(e,t,n,r){n==null&&(n=tE(e)||0);var i=nE(e,n,r),a=fi(e,"transitionend",t);return function(){i(),a()}}function q1(e,t){const n=qi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function zw(e,t){const n=q1(e,"transitionDuration"),r=q1(e,"transitionDelay"),i=Bw(e,a=>{a.target===e&&(i(),t(a))},n+r)}function Ww(e){e.offsetHeight}const Y1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function rE(e,t){const n=Y1(e),r=Y1(t);return i=>{n&&n(i),r&&r(i)}}function ro(e,t){return v.useMemo(()=>rE(e,t),[e,t])}function Gu(e){return e&&"setState"in e?Un.findDOMNode(e):e??null}const Pg=v.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:a,addEndListener:o,children:s,childRef:l,...c},u)=>{const d=v.useRef(null),f=ro(d,l),h=S=>{f(Gu(S))},p=S=>E=>{S&&d.current&&S(d.current,E)},m=v.useCallback(p(e),[e]),g=v.useCallback(p(t),[t]),y=v.useCallback(p(n),[n]),_=v.useCallback(p(r),[r]),w=v.useCallback(p(i),[i]),C=v.useCallback(p(a),[a]),x=v.useCallback(p(o),[o]);return b.jsx(Ti,{ref:u,...c,onEnter:m,onEntered:y,onEntering:g,onExit:_,onExited:C,onExiting:w,addEndListener:x,nodeRef:d,children:typeof s=="function"?(S,E)=>s(S,{...E,ref:h}):v.cloneElement(s,{ref:h})})});Pg.displayName="TransitionWrapper";function iE(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function Gi(e){const t=iE(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Lg=e=>he.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:le(t.className,e)})),Uw=Lg("h4");Uw.displayName="DivStyledAsH4";const Hw=he.forwardRef(({className:e,bsPrefix:t,as:n=Uw,...r},i)=>(t=gt(t,"alert-heading"),b.jsx(n,{ref:i,className:le(e,t),...r})));Hw.displayName="AlertHeading";function dm(){return v.useState(null)}function aE(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function Cn(e){const t=aE(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function oE(e,t,n,r=!1){const i=Cn(n);v.useEffect(()=>{const a=typeof e=="function"?e():e;return a.addEventListener(t,i,r),()=>a.removeEventListener(t,i,r)},[e])}function Vw(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function qw(e){const t=v.useRef(null);return v.useEffect(()=>{t.current=e}),t.current}const sE=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",lE=typeof document<"u",G1=lE||sE?v.useLayoutEffect:v.useEffect,cE=["as","disabled"];function uE(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 dE(e){return!e||e.trim()==="#"}function Fg({tagName:e,disabled:t,href:n,target:r,rel:i,role:a,onClick:o,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"&&dE(n))&&f.preventDefault(),t){f.stopPropagation();return}o==null||o(f)},d=f=>{f.key===" "&&(f.preventDefault(),u(f))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:a??"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 Bg=he.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=uE(e,cE);const[a,{tagName:o}]=Fg(Object.assign({tagName:n,disabled:r},i));return b.jsx(o,Object.assign({},i,a,{ref:t}))});Bg.displayName="Button";const fE=["onKeyDown"];function hE(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 pE(e){return!e||e.trim()==="#"}const zg=he.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=hE(e,fE);const[i]=Fg(Object.assign({tagName:"a"},r)),a=Cn(o=>{i.onKeyDown(o),n==null||n(o)});return pE(r.href)||r.role==="button"?b.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:a})):b.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});zg.displayName="Anchor";const Yw=he.forwardRef(({className:e,bsPrefix:t,as:n=zg,...r},i)=>(t=gt(t,"alert-link"),b.jsx(n,{ref:i,className:le(e,t),...r})));Yw.displayName="AlertLink";const mE={[ci]:"show",[Fi]:"show"},Zi=he.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},a)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},s=v.useCallback((l,c)=>{Ww(l),r==null||r(l,c)},[r]);return b.jsx(Pg,{ref:a,addEndListener:zw,...o,onEnter:s,childRef:ws(t),children:(l,c)=>he.cloneElement(t,{...c,className:le("fade",e,t.props.className,mE[l],n[l])})})});Zi.displayName="Fade";const gE={"aria-label":we.string,onClick:we.func,variant:we.oneOf(["white"])},Yd=he.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:le("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Yd.displayName="CloseButton";Yd.propTypes=gE;const Gw=he.forwardRef((e,t)=>{const{bsPrefix:n,show:r=!0,closeLabel:i="Close alert",closeVariant:a,className:o,children:s,variant:l="primary",onClose:c,dismissible:u,transition:d=Zi,...f}=Ig(e,{show:"onClose"}),h=gt(n,"alert"),p=Gi(y=>{c&&c(!1,y)}),m=d===!0?Zi:d,g=b.jsxs("div",{role:"alert",...m?void 0:f,ref:t,className:le(o,h,l&&`${h}-${l}`,u&&`${h}-dismissible`),children:[u&&b.jsx(Yd,{onClick:p,"aria-label":i,variant:a}),s]});return m?b.jsx(m,{unmountOnExit:!0,...f,ref:void 0,in:r,children:g}):r?g:null});Gw.displayName="Alert";const vE=Object.assign(Gw,{Link:Yw,Heading:Hw}),Wg=he.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:a=!1,className:o,...s},l)=>{const c=gt(t,"btn"),[u,{tagName:d}]=Fg({tagName:e,disabled:a,...s}),f=d;return b.jsx(f,{...u,...s,ref:l,disabled:a,className:le(o,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&a&&"disabled")})});Wg.displayName="Button";function bE(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function yE(e){const t=v.useRef(e);return t.current=e,t}function Zw(e){const t=yE(e);v.useEffect(()=>()=>t.current(),[])}const fm=2**31-1;function Kw(e,t,n){const r=n-Date.now();e.current=r<=fm?setTimeout(t,r):setTimeout(()=>Kw(e,t,n),fm)}function xE(){const e=bE(),t=v.useRef();return Zw(()=>clearTimeout(t.current)),v.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=fm?t.current=setTimeout(i,a):Kw(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function wE(e,t){return he.Children.toArray(e).some(n=>he.isValidElement(n)&&n.type===t)}function Xw({as:e,bsPrefix:t,className:n,...r}){t=gt(t,"col");const i=Iw(),a=jw(),o=[],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!==a?`-${l}`:"";u&&o.push(u===!0?`${t}${h}`:`${t}${h}-${u}`),f!=null&&s.push(`order${h}-${f}`),d!=null&&s.push(`offset${h}-${d}`)}),[{...r,className:le(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const Ug=he.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=Xw(e);return b.jsx(i,{...r,ref:t,className:le(n,!o.length&&a)})});Ug.displayName="Col";var _E=Function.prototype.bind.call(Function.prototype.call,[].slice);function ui(e,t){return _E(e.querySelectorAll(t))}function CE(e,t,n){const r=v.useRef(e!==void 0),[i,a]=v.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&i!==t&&a(t),[o?e:i,v.useCallback((...l)=>{const[c,...u]=l;let d=n==null?void 0:n(c,...u);return a(c),d},[n])]}function Jw(){const[,e]=v.useReducer(t=>t+1,0);return e}const Gd=he.createContext(null);var Z1=Object.prototype.hasOwnProperty;function K1(e,t,n){for(n of e.keys())if(wl(n,t))return n}function wl(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--&&wl(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=K1(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=K1(t,i),!i)||!wl(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(Z1.call(e,n)&&++r&&!Z1.call(t,n)||!(n in t)||!wl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function SE(e){const t=Vw();return[e[0],v.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var qn="top",pr="bottom",mr="right",Yn="left",Hg="auto",Tc=[qn,pr,mr,Yn],es="start",Rl="end",TE="clippingParents",Qw="viewport",Xs="popper",kE="reference",X1=Tc.reduce(function(e,t){return e.concat([t+"-"+es,t+"-"+Rl])},[]),e_=[].concat(Tc,[Hg]).reduce(function(e,t){return e.concat([t,t+"-"+es,t+"-"+Rl])},[]),$E="beforeRead",EE="read",ME="afterRead",OE="beforeMain",AE="main",RE="afterMain",DE="beforeWrite",IE="write",jE="afterWrite",NE=[$E,EE,ME,OE,AE,RE,DE,IE,jE];function Fr(e){return e.split("-")[0]}function nr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wa(e){var t=nr(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=nr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vg(e){if(typeof ShadowRoot>"u")return!1;var t=nr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ja=Math.max,Zu=Math.min,ts=Math.round;function hm(){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 t_(){return!/^((?!chrome|android).)*safari/i.test(hm())}function ns(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Br(e)&&(i=e.offsetWidth>0&&ts(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ts(r.height)/e.offsetHeight||1);var o=Wa(e)?nr(e):window,s=o.visualViewport,l=!t_()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,d=r.width/i,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function qg(e){var t=ns(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 n_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ki(e){return e?(e.nodeName||"").toLowerCase():null}function yi(e){return nr(e).getComputedStyle(e)}function PE(e){return["table","td","th"].indexOf(Ki(e))>=0}function aa(e){return((Wa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return Ki(e)==="html"?e:e.assignedSlot||e.parentNode||(Vg(e)?e.host:null)||aa(e)}function J1(e){return!Br(e)||yi(e).position==="fixed"?null:e.offsetParent}function LE(e){var t=/firefox/i.test(hm()),n=/Trident/i.test(hm());if(n&&Br(e)){var r=yi(e);if(r.position==="fixed")return null}var i=Zd(e);for(Vg(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(Ki(i))<0;){var a=yi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function kc(e){for(var t=nr(e),n=J1(e);n&&PE(n)&&yi(n).position==="static";)n=J1(n);return n&&(Ki(n)==="html"||Ki(n)==="body"&&yi(n).position==="static")?t:n||LE(e)||t}function Yg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _l(e,t,n){return ja(e,Zu(t,n))}function FE(e,t,n){var r=_l(e,t,n);return r>n?n:r}function r_(){return{top:0,right:0,bottom:0,left:0}}function i_(e){return Object.assign({},r_(),e)}function a_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var BE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,i_(typeof t!="number"?t:a_(t,Tc))};function zE(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Fr(n.placement),l=Yg(s),c=[Yn,mr].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=BE(i.padding,n),f=qg(a),h=l==="y"?qn:Yn,p=l==="y"?pr:mr,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],y=kc(a),_=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,w=m/2-g/2,C=d[h],x=_-f[u]-d[p],S=_/2-f[u]/2+w,E=_l(C,S,x),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function WE(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)||n_(t.elements.popper,i)&&(t.elements.arrow=i))}const UE={name:"arrow",enabled:!0,phase:"main",fn:zE,effect:WE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rs(e){return e.split("-")[1]}var HE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VE(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ts(n*i)/i||0,y:ts(r*i)/i||0}}function Q1(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,h=f===void 0?0:f,p=o.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 y=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),w=Yn,C=qn,x=window;if(c){var S=kc(n),E="clientHeight",k="clientWidth";if(S===nr(n)&&(S=aa(n),yi(S).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),S=S,i===qn||(i===Yn||i===mr)&&a===Rl){C=pr;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[E];m-=T-r.height,m*=l?1:-1}if(i===Yn||(i===qn||i===pr)&&a===Rl){w=mr;var D=d&&S===x&&x.visualViewport?x.visualViewport.width:S[k];h-=D-r.width,h*=l?1:-1}}var $=Object.assign({position:s},c&&HE),M=u===!0?VE({x:h,y:m},nr(n)):{x:h,y:m};if(h=M.x,m=M.y,l){var R;return Object.assign({},$,(R={},R[C]=_?"0":"",R[w]=y?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",R))}return Object.assign({},$,(t={},t[C]=_?m+"px":"",t[w]=y?h+"px":"",t.transform="",t))}function qE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Fr(t.placement),variation:rs(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,Q1(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q1(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 YE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qE,data:{}};var lu={passive:!0};function GE(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=nr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,lu)}),s&&l.addEventListener("resize",n.update,lu),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,lu)}),s&&l.removeEventListener("resize",n.update,lu)}}const ZE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GE,data:{}};var KE={left:"right",right:"left",bottom:"top",top:"bottom"};function Au(e){return e.replace(/left|right|bottom|top/g,function(t){return KE[t]})}var XE={start:"end",end:"start"};function eb(e){return e.replace(/start|end/g,function(t){return XE[t]})}function Gg(e){var t=nr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Zg(e){return ns(aa(e)).left+Gg(e).scrollLeft}function JE(e,t){var n=nr(e),r=aa(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=t_();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Zg(e),y:l}}function QE(e){var t,n=aa(e),r=Gg(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ja(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ja(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Zg(e),l=-r.scrollTop;return yi(i||n).direction==="rtl"&&(s+=ja(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Kg(e){var t=yi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function o_(e){return["html","body","#document"].indexOf(Ki(e))>=0?e.ownerDocument.body:Br(e)&&Kg(e)?e:o_(Zd(e))}function Cl(e,t){var n;t===void 0&&(t=[]);var r=o_(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=nr(r),o=i?[a].concat(a.visualViewport||[],Kg(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Cl(Zd(o)))}function pm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eM(e,t){var n=ns(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 tb(e,t,n){return t===Qw?pm(JE(e,n)):Wa(t)?eM(t,n):pm(QE(aa(e)))}function tM(e){var t=Cl(Zd(e)),n=["absolute","fixed"].indexOf(yi(e).position)>=0,r=n&&Br(e)?kc(e):e;return Wa(r)?t.filter(function(i){return Wa(i)&&n_(i,r)&&Ki(i)!=="body"}):[]}function nM(e,t,n,r){var i=t==="clippingParents"?tM(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=tb(e,c,r);return l.top=ja(u.top,l.top),l.right=Zu(u.right,l.right),l.bottom=Zu(u.bottom,l.bottom),l.left=ja(u.left,l.left),l},tb(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function s_(e){var t=e.reference,n=e.element,r=e.placement,i=r?Fr(r):null,a=r?rs(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case qn:l={x:o,y:t.y-n.height};break;case pr:l={x:o,y:t.y+t.height};break;case mr: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?Yg(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case es:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Rl:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Dl(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?TE:s,c=n.rootBoundary,u=c===void 0?Qw:c,d=n.elementContext,f=d===void 0?Xs:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,y=i_(typeof g!="number"?g:a_(g,Tc)),_=f===Xs?kE:Xs,w=e.rects.popper,C=e.elements[p?_:f],x=nM(Wa(C)?C:C.contextElement||aa(e.elements.popper),l,u,o),S=ns(e.elements.reference),E=s_({reference:S,element:w,placement:i}),k=pm(Object.assign({},w,E)),T=f===Xs?k:S,D={top:x.top-T.top+y.top,bottom:T.bottom-x.bottom+y.bottom,left:x.left-T.left+y.left,right:T.right-x.right+y.right},$=e.modifiersData.offset;if(f===Xs&&$){var M=$[i];Object.keys(D).forEach(function(R){var I=[mr,pr].indexOf(R)>=0?1:-1,j=[qn,pr].indexOf(R)>=0?"y":"x";D[R]+=M[j]*I})}return D}function rM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?e_:l,u=rs(r),d=u?s?X1:X1.filter(function(p){return rs(p)===u}):Tc,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]=Dl(e,{placement:m,boundary:i,rootBoundary:a,padding:o})[Fr(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function iM(e){if(Fr(e)===Hg)return[];var t=Au(e);return[eb(e),t,eb(t)]}function aM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,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,y=Fr(g),_=y===g,w=l||(_||!p?[Au(g)]:iM(g)),C=[g].concat(w).reduce(function(Z,K){return Z.concat(Fr(K)===Hg?rM(t,{placement:K,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):K)},[]),x=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,T=C[0],D=0;D<C.length;D++){var $=C[D],M=Fr($),R=rs($)===es,I=[qn,pr].indexOf(M)>=0,j=I?"width":"height",A=Dl(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),O=I?R?mr:Yn:R?pr:qn;x[j]>S[j]&&(O=Au(O));var L=Au(O),F=[];if(a&&F.push(A[M]<=0),s&&F.push(A[O]<=0,A[L]<=0),F.every(function(Z){return Z})){T=$,k=!1;break}E.set($,F)}if(k)for(var P=p?3:1,W=function(K){var te=C.find(function(ne){var U=E.get(ne);if(U)return U.slice(0,K).every(function(B){return B})});if(te)return T=te,"break"},H=P;H>0;H--){var q=W(H);if(q==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const oM={name:"flip",enabled:!0,phase:"main",fn:aM,requiresIfExists:["offset"],data:{_skip:!1}};function nb(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 rb(e){return[qn,mr,pr,Yn].some(function(t){return e[t]>=0})}function sM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Dl(t,{elementContext:"reference"}),s=Dl(t,{altBoundary:!0}),l=nb(o,r),c=nb(s,i,a),u=rb(l),d=rb(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 lM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sM};function cM(e,t,n){var r=Fr(e),i=[Yn,qn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Yn,mr].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function uM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=e_.reduce(function(u,d){return u[d]=cM(d,t.rects,a),u},{}),s=o[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]=o}const dM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uM};function fM(e){var t=e.state,n=e.name;t.modifiersData[n]=s_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hM={name:"popperOffsets",enabled:!0,phase:"read",fn:fM,data:{}};function pM(e){return e==="x"?"y":"x"}function mM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,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=Dl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Fr(t.placement),_=rs(t.placement),w=!_,C=Yg(y),x=pM(C),S=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,T=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,D=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(a){var R,I=C==="y"?qn:Yn,j=C==="y"?pr:mr,A=C==="y"?"height":"width",O=S[C],L=O+g[I],F=O-g[j],P=h?-k[A]/2:0,W=_===es?E[A]:k[A],H=_===es?-k[A]:-E[A],q=t.elements.arrow,Z=h&&q?qg(q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:r_(),te=K[I],ne=K[j],U=_l(0,E[A],Z[A]),B=w?E[A]/2-P-U-te-D.mainAxis:W-U-te-D.mainAxis,z=w?-E[A]/2+P+U+ne+D.mainAxis:H+U+ne+D.mainAxis,V=t.elements.arrow&&kc(t.elements.arrow),N=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,ee=(R=$==null?void 0:$[C])!=null?R:0,Q=O+B-ee-N,X=O+z-ee,se=_l(h?Zu(L,Q):L,O,h?ja(F,X):F);S[C]=se,M[C]=se-O}if(s){var G,J=C==="x"?qn:Yn,ie=C==="x"?pr:mr,oe=S[x],be=x==="y"?"height":"width",ce=oe+g[J],ue=oe-g[ie],Ce=[qn,Yn].indexOf(y)!==-1,ke=(G=$==null?void 0:$[x])!=null?G:0,ye=Ce?ce:oe-E[be]-k[be]-ke+D.altAxis,Me=Ce?oe+E[be]+k[be]-ke-D.altAxis:ue,pe=h&&Ce?FE(ye,oe,Me):_l(h?ye:ce,oe,h?Me:ue);S[x]=pe,M[x]=pe-oe}t.modifiersData[r]=M}}const gM={name:"preventOverflow",enabled:!0,phase:"main",fn:mM,requiresIfExists:["offset"]};function vM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bM(e){return e===nr(e)||!Br(e)?Gg(e):vM(e)}function yM(e){var t=e.getBoundingClientRect(),n=ts(t.width)/e.offsetWidth||1,r=ts(t.height)/e.offsetHeight||1;return n!==1||r!==1}function xM(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&yM(t),a=aa(t),o=ns(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ki(t)!=="body"||Kg(a))&&(s=bM(t)),Br(t)?(l=ns(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Zg(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function wM(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function _M(e){var t=wM(e);return NE.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function CM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function SM(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 ib={placement:"bottom",modifiers:[],strategy:"absolute"};function ab(){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 TM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?ib:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ib,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(y){var _=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},a,u.options,_),u.scrollParents={reference:Wa(s)?Cl(s):s.contextElement?Cl(s.contextElement):[],popper:Cl(l)};var w=_M(SM([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(C){return C.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var y=u.elements,_=y.reference,w=y.popper;if(ab(_,w)){u.rects={reference:xM(_,kc(w),u.options.strategy==="fixed"),popper:qg(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var x=u.orderedModifiers[C],S=x.fn,E=x.options,k=E===void 0?{}:E,T=x.name;typeof S=="function"&&(u=S({state:u,options:k,name:T,instance:h})||u)}}}},update:CM(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!ab(s,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var y=g.name,_=g.options,w=_===void 0?{}:_,C=g.effect;if(typeof C=="function"){var x=C({state:u,name:y,instance:h,options:w}),S=function(){};d.push(x||S)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}const kM=TM({defaultModifiers:[lM,hM,YE,ZE,dM,oM,gM,UE]}),$M=["enabled","placement","strategy","modifiers"];function EM(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 MM={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},OM={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 a=r.getAttribute("aria-describedby");if(a&&a.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",a?`${a},${n.id}`:n.id)}}},AM=[];function l_(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=AM}=n,s=EM(n,$M);const l=v.useRef(o),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]=SE(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 y={},_={};Object.keys(g.elements).forEach(w=>{y[w]=g.styles[w],_[w]=g.attributes[w]}),h({state:g,styles:y,attributes:_,update:u,forceUpdate:d,placement:g.placement})}}),[u,d,h]),m=v.useMemo(()=>(wl(l.current,o)||(l.current=o),l.current),[o]);return v.useEffect(()=>{!c.current||!r||c.current.setOptions({placement:i,strategy:a,modifiers:[...m,p,MM]})},[a,i,p,r,m]),v.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=kM(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...m,OM,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(g=>Object.assign({},g,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Il(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var RM=process.env.NODE_ENV!=="production",c_=function(){};if(RM){var DM=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 a=0,o="Warning: "+t.replace(/%s/g,function(){return n[a++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};c_=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||DM.apply(null,[t].concat(n))}}var IM=c_;const io=an(IM),ob=()=>{};function jM(e){return e.button===0}function NM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ru=e=>e&&("current"in e?e.current:e),sb={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function u_(e,t=ob,{disabled:n,clickTrigger:r="click"}={}){const i=v.useRef(!1),a=v.useRef(!1),o=v.useCallback(c=>{const u=Ru(e);io(!!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||NM(c)||!jM(c)||!!Il(u,c.target)||a.current,a.current=!1},[e]),s=Cn(c=>{const u=Ru(e);u&&Il(u,c.target)?a.current=!0:a.current=!1}),l=Cn(c=>{i.current||t(c)});v.useEffect(()=>{var c,u;if(n||e==null)return;const d=xs(Ru(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;sb[r]&&(p=fi(d,sb[r],s,!0));const m=fi(d,r,o,!0),g=fi(d,r,_=>{if(_===h){h=void 0;return}l(_)});let y=[];return"ontouchstart"in d.documentElement&&(y=[].slice.call(d.body.children).map(_=>fi(_,"mousemove",ob))),()=>{p==null||p(),m(),g(),y.forEach(_=>_())}},[e,n,r,o,s,l])}function PM(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function LM(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function d_({enabled:e,enableEvents:t,placement:n,flip:r,offset:i,fixed:a,containerPadding:o,arrowElement:s,popperConfig:l={}}){var c,u,d,f,h;const p=PM(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:LM(Object.assign({},p,{eventListeners:{enabled:t,options:(c=p.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},p.preventOverflow,{options:o?Object.assign({padding:o},(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 FM=["children","usePopper"];function BM(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 zM=()=>{};function f_(e={}){const t=v.useContext(Gd),[n,r]=dm(),i=v.useRef(!1),{flip:a,offset:o,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:y,toggleElement:_}=t||{},w=l_(_,y,d_({placement:c||m||"bottom-start",enabled:f,enableEvents:d??h,offset:o,flip:a,fixed:l,arrowElement:n,popperConfig:u})),C=Object.assign({ref:g||zM,"aria-labelledby":_==null?void 0:_.id},w.attributes.popper,{style:w.styles.popper}),x={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 u_(y,p,{clickTrigger:s,disabled:!h}),[C,x]}function h_(e){let{children:t,usePopper:n=!0}=e,r=BM(e,FM);const[i,a]=f_(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,a)})}h_.displayName="DropdownMenu";const Ku={prefix:String(Math.round(Math.random()*1e10)),current:0},p_=v.createContext(Ku),WM=v.createContext(!1);let UM=!!(typeof window<"u"&&window.document&&window.document.createElement),ep=new WeakMap;function HM(e=!1){let t=v.useContext(p_),n=v.useRef(null);if(n.current===null&&!e){var r,i;let a=(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(a){let o=ep.get(a);o==null?ep.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,ep.delete(a))}n.current=++t.current}return n.current}function VM(e){let t=v.useContext(p_);t===Ku&&!UM&&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=HM(!!e),r=t===Ku&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function qM(e){let t=v.useId(),[n]=v.useState(XM()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ku.prefix}`;return e||`${r}-${t}`}const YM=typeof v.useId=="function"?qM:VM;function GM(){return!1}function ZM(){return!0}function KM(e){return()=>{}}function XM(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(KM,GM,ZM):v.useContext(WM)}const m_=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},lb=()=>{};function g_(){const e=YM(),{show:t=!1,toggle:n=lb,setToggle:r,menuElement:i}=v.useContext(Gd)||{},a=v.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||lb,onClick:a,"aria-expanded":!!t};return i&&m_(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function v_({children:e}){const[t,n]=g_();return b.jsx(b.Fragment,{children:e(t,n)})}v_.displayName="DropdownToggle";const is=he.createContext(null),jl=(e,t=null)=>e!=null?String(e):t||null,Kd=he.createContext(null);Kd.displayName="NavContext";const JM="data-rr-ui-",QM="rrUi";function Cs(e){return`${JM}${e}`}function e8(e){return`${QM}${e}`}const t8=["eventKey","disabled","onClick","active","as"];function n8(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,href:t,active:n,disabled:r,onClick:i}){const a=v.useContext(is),o=v.useContext(Kd),{activeKey:s}=o||{},l=jl(e,t),c=n==null&&e!=null?jl(s)===l:n;return[{onClick:Cn(d=>{r||(i==null||i(d),a&&!d.isPropagationStopped()&&a(l,d))}),"aria-disabled":r||void 0,"aria-selected":c,[Cs("dropdown-item")]:""},{isActive:c}]}const y_=he.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=Bg}=e,s=n8(e,t8);const[l]=b_({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,Object.assign({},s,{ref:t},l))});y_.displayName="DropdownItem";const x_=v.createContext(_s?window:void 0);x_.Provider;function Xd(){return v.useContext(x_)}function cb(){const e=Jw(),t=v.useRef(null),n=v.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function $c({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:i=`* [${Cs("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const l=Xd(),[c,u]=CE(t,e,r),[d,f]=cb(),h=d.current,[p,m]=cb(),g=p.current,y=qw(c),_=v.useRef(null),w=v.useRef(!1),C=v.useContext(is),x=v.useCallback(($,M,R=M==null?void 0:M.type)=>{u($,{originalEvent:M,source:R})},[u]),S=Cn(($,M)=>{n==null||n($,M),x(!1,M,"select"),M.isPropagationStopped()||C==null||C($,M)}),E=v.useMemo(()=>({toggle:x,placement:o,show:c,menuElement:h,toggleElement:g,setMenu:f,setToggle:m}),[x,o,c,h,g,f,m]);h&&y&&!c&&(w.current=h.contains(h.ownerDocument.activeElement));const k=Cn(()=>{g&&g.focus&&g.focus()}),T=Cn(()=>{const $=_.current;let M=a;if(M==null&&(M=d.current&&m_(d.current)?"keyboard":!1),M===!1||M==="keyboard"&&!/^key.+$/.test($))return;const R=ui(d.current,i)[0];R&&R.focus&&R.focus()});v.useEffect(()=>{c?T():w.current&&(w.current=!1,k())},[c,w,k,T]),v.useEffect(()=>{_.current=null});const D=($,M)=>{if(!d.current)return null;const R=ui(d.current,i);let I=R.indexOf($)+M;return I=Math.max(0,Math.min(I,R.length)),R[I]};return oE(v.useCallback(()=>l.document,[l]),"keydown",$=>{var M,R;const{key:I}=$,j=$.target,A=(M=d.current)==null?void 0:M.contains(j),O=(R=p.current)==null?void 0:R.contains(j);if(/input|textarea/i.test(j.tagName)&&(I===" "||I!=="Escape"&&A||I==="Escape"&&j.type==="search")||!A&&!O||I==="Tab"&&(!d.current||!c))return;_.current=$.type;const F={originalEvent:$,source:$.type};switch(I){case"ArrowUp":{const P=D(j,-1);P&&P.focus&&P.focus(),$.preventDefault();return}case"ArrowDown":if($.preventDefault(),!c)u(!0,F);else{const P=D(j,1);P&&P.focus&&P.focus()}return;case"Tab":Ng(j.ownerDocument,"keyup",P=>{var W;(P.key==="Tab"&&!P.target||!((W=d.current)!=null&&W.contains(P.target)))&&u(!1,F)},{once:!0});break;case"Escape":I==="Escape"&&($.preventDefault(),$.stopPropagation()),u(!1,F);break}}),b.jsx(is.Provider,{value:S,children:b.jsx(Gd.Provider,{value:E,children:s})})}$c.displayName="Dropdown";$c.Menu=h_;$c.Toggle=v_;$c.Item=y_;const Xg=he.createContext({});Xg.displayName="DropdownContext";const w_=he.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=gt(t,"dropdown-divider"),b.jsx(n,{ref:a,className:le(e,t),role:r,...i})));w_.displayName="DropdownDivider";const __=he.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=gt(t,"dropdown-header"),b.jsx(n,{ref:a,className:le(e,t),role:r,...i})));__.displayName="DropdownHeader";const C_=he.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:i,active:a,as:o=zg,...s},l)=>{const c=gt(e,"dropdown-item"),[u,d]=b_({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,{...s,...u,ref:l,className:le(t,c,d.isActive&&"active",r&&"disabled")})});C_.displayName="DropdownItem";const S_=he.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=gt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:le(e,t),...r})));S_.displayName="DropdownItemText";const r8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",i8=typeof document<"u",Jg=i8||r8?v.useLayoutEffect:v.useEffect,Jd=he.createContext(null);Jd.displayName="InputGroupContext";const T_=he.createContext(null);T_.displayName="NavbarContext";function k_(e,t){if(process.env.NODE_ENV==="production")return e;const n=v.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?I1(!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`):I1(!1))},[t]);return ro(n,e)}function $_(e,t,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",a=n?"bottom-end":"bottom-start",o=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?o:a;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 E_=he.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:i=!0,show:a,renderOnMount:o,as:s="div",popperConfig:l,variant:c,...u},d)=>{let f=!1;const h=v.useContext(T_),p=gt(e,"dropdown-menu"),{align:m,drop:g,isRTL:y}=v.useContext(Xg);n=n||m;const _=v.useContext(Jd),w=[];if(n)if(typeof n=="object"){const $=Object.keys(n);if(process.env.NODE_ENV!=="production"&&io($.length===1,"There should only be 1 breakpoint when passing an object to `align`"),$.length){const M=$[0],R=n[M];f=R==="start",w.push(`${p}-${M}-${R}`)}}else n==="end"&&(f=!0);const C=$_(f,g,y),[x,{hasShown:S,popper:E,show:k,toggle:T}]=f_({flip:i,rootCloseEvent:r,show:a,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(x.ref=ro(k_(d,"DropdownMenu"),x.ref),Jg(()=>{k&&(E==null||E.update())},[k]),!S&&!o&&!_)return null;typeof s!="string"&&(x.show=k,x.close=()=>T==null?void 0:T(!1),x.align=n);let D=u.style;return E!=null&&E.placement&&(D={...u.style,...x.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...x,style:D,...(w.length||h)&&{"data-bs-popper":"static"},className:le(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});E_.displayName="DropdownMenu";const M_=he.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:i=Wg,...a},o)=>{const s=gt(e,"dropdown-toggle"),l=v.useContext(Gd);r!==void 0&&(a.bsPrefix=r);const[c]=g_();return c.ref=ro(c.ref,k_(o,"DropdownToggle")),b.jsx(i,{className:le(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...a})});M_.displayName="DropdownToggle";const O_=he.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:i,className:a,align:o="start",onSelect:s,onToggle:l,focusFirstItemOnShow:c,as:u="div",navbar:d,autoClose:f=!0,...h}=Ig(e,{show:"onToggle"}),p=v.useContext(Jd),m=gt(n,"dropdown"),g=qd(),y=E=>f===!1?E==="click":f==="inside"?E!=="rootClose":f==="outside"?E!=="select":!0,_=Gi((E,k)=>{var T;!((T=k.originalEvent)==null||(T=T.target)==null)&&T.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),y(k.source)&&(l==null||l(E,k)))}),C=$_(o==="end",r,g),x=v.useMemo(()=>({align:o,drop:r,isRTL:g}),[o,r,g]),S={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return b.jsx(Xg.Provider,{value:x,children:b.jsx($c,{placement:C,show:i,onSelect:s,onToggle:_,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:p?h.children:b.jsx(u,{...h,ref:t,className:le(a,i&&"show",S[r])})})})});O_.displayName="Dropdown";const as=Object.assign(O_,{Toggle:M_,Menu:E_,Item:C_,ItemText:S_,Divider:w_,Header:__}),a8={type:we.string,tooltip:we.bool,as:we.elementType},Qd=he.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>b.jsx(e,{...i,ref:a,className:le(t,`${n}-${r?"tooltip":"feedback"}`)}));Qd.displayName="Feedback";Qd.propTypes=a8;const xi=he.createContext({}),ef=he.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:a=!1,as:o="input",...s},l)=>{const{controlId:c}=v.useContext(xi);return t=gt(t,"form-check-input"),b.jsx(o,{...s,ref:l,type:r,id:e||c,className:le(n,t,i&&"is-valid",a&&"is-invalid")})});ef.displayName="FormCheckInput";const Xu=he.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:a}=v.useContext(xi);return e=gt(e,"form-check-label"),b.jsx("label",{...r,ref:i,htmlFor:n||a,className:le(t,e)})});Xu.displayName="FormCheckLabel";const A_=he.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:a=!1,isValid:o=!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:y="input",..._},w)=>{t=gt(t,"form-check"),n=gt(n,"form-switch");const{controlId:C}=v.useContext(xi),x=v.useMemo(()=>({controlId:e||C}),[C,e]),S=!g&&m!=null&&m!==!1||wE(g,Xu),E=b.jsx(ef,{..._,type:p==="switch"?"checkbox":p,ref:w,isValid:o,isInvalid:s,disabled:a,as:y});return b.jsx(xi.Provider,{value:x,children:b.jsx("div",{style:f,className:le(d,S&&t,r&&`${t}-inline`,i&&`${t}-reverse`,p==="switch"&&n),children:g||b.jsxs(b.Fragment,{children:[E,S&&b.jsx(Xu,{title:h,children:m}),c&&b.jsx(Qd,{type:u,tooltip:l,children:c})]})})})});A_.displayName="FormCheck";const Ju=Object.assign(A_,{Input:ef,Label:Xu}),R_=he.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:a,isValid:o=!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"&&io(h==null||!i,"`controlId` is ignored on `<FormControl>` when `id` is specified."),b.jsx(u,{...d,type:t,size:r,ref:f,readOnly:c,id:i||h,className:le(a,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});R_.displayName="FormControl";const D_=Object.assign(R_,{Feedback:Qd}),I_=he.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"form-floating"),b.jsx(n,{ref:i,className:le(e,t),...r})));I_.displayName="FormFloating";const Qg=he.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=v.useMemo(()=>({controlId:e}),[e]);return b.jsx(xi.Provider,{value:i,children:b.jsx(t,{...n,ref:r})})});Qg.displayName="FormGroup";const j_=he.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:a,...o},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=le(i,t,r&&"visually-hidden",n&&c);return process.env.NODE_ENV!=="production"&&io(l==null||!a,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),a=a||l,n?b.jsx(Ug,{ref:s,as:"label",className:u,htmlFor:a,...o}):b.jsx(e,{ref:s,className:u,htmlFor:a,...o})});j_.displayName="FormLabel";const N_=he.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:a}=v.useContext(xi);return e=gt(e,"form-range"),b.jsx("input",{...r,type:"range",ref:i,className:le(t,e),id:n||a})});N_.displayName="FormRange";const e0=he.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:a=!1,id:o,...s},l)=>{const{controlId:c}=v.useContext(xi);return e=gt(e,"form-select"),b.jsx("select",{...s,size:n,ref:l,className:le(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||c})});e0.displayName="FormSelect";const P_=he.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=gt(e,"form-text"),b.jsx(n,{...i,ref:a,className:le(t,e,r&&"text-muted")})));P_.displayName="FormText";const L_=he.forwardRef((e,t)=>b.jsx(Ju,{...e,ref:t,type:"switch"}));L_.displayName="Switch";const o8=Object.assign(L_,{Input:Ju.Input,Label:Ju.Label}),t0=he.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=gt(e,"form-floating"),b.jsxs(Qg,{ref:o,className:le(t,e),controlId:r,...a,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));t0.displayName="FloatingLabel";const s8={_ref:we.any,validated:we.bool,as:we.elementType},n0=he.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:le(e,t&&"was-validated")}));n0.displayName="Form";n0.propTypes=s8;const Kn=Object.assign(n0,{Group:Qg,Control:D_,Floating:I_,Check:Ju,Switch:o8,Label:j_,Text:P_,Range:N_,Select:e0,FloatingLabel:t0}),ub=e=>!e||typeof e=="function"?e:t=>{e.current=t};function l8(e,t){const n=ub(e),r=ub(t);return i=>{n&&n(i),r&&r(i)}}function Ec(e,t){return v.useMemo(()=>l8(e,t),[e,t])}const F_=he.createContext(null),c8=["as","active","eventKey"];function u8(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:a}){const o=v.useContext(is),s=v.useContext(Kd),l=v.useContext(F_);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[Cs("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),a&&(u.tabIndex=-1,u["aria-disabled"]=!0)),u.onClick=Cn(d=>{a||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[u,{isActive:c}]}const z_=he.forwardRef((e,t)=>{let{as:n=Bg,active:r,eventKey:i}=e,a=u8(e,c8);const[o,s]=B_(Object.assign({key:jl(i,a.href),active:r},a));return o[Cs("active")]=s.isActive,b.jsx(n,Object.assign({},a,o,{ref:t}))});z_.displayName="NavItem";const d8=["as","onSelect","activeKey","role","onKeyDown"];function f8(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 db=()=>{},fb=Cs("event-key"),W_=he.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=f8(e,d8);const l=Jw(),c=v.useRef(!1),u=v.useContext(is),d=v.useContext(F_);let f,h;d&&(a=a||"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 x=ui(C,`[${fb}]:not([aria-disabled=true])`),S=C.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const E=x.indexOf(S);if(E===-1)return null;let k=E+w;return k>=x.length&&(k=0),k<0&&(k=x.length-1),x[k]},g=(w,C)=>{w!=null&&(r==null||r(w,C),u==null||u(w,C))},y=w=>{if(o==null||o(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[e8("EventKey")]||null,w),c.current=!0,l())};v.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${fb}][aria-selected=true]`);w==null||w.focus()}c.current=!1});const _=Ec(t,p);return b.jsx(is.Provider,{value:g,children:b.jsx(Kd.Provider,{value:{role:a,activeKey:jl(i),getControlledId:f||db,getControllerId:h||db},children:b.jsx(n,Object.assign({},s,{onKeyDown:y,ref:_,role:a}))})})});W_.displayName="Nav";const h8=Object.assign(W_,{Item:z_}),tf=he.forwardRef(({bsPrefix:e,active:t,disabled:n,eventKey:r,className:i,variant:a,action:o,as:s,...l},c)=>{e=gt(e,"list-group-item");const[u,d]=B_({key:jl(r,l.href),active:t,...l}),f=Gi(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||(o?l.href?"a":"button":"div");return process.env.NODE_ENV!=="production"&&io(s||!(!o&&l.href),"`action=false` and `href` should not be used together."),b.jsx(h,{ref:c,...l,...u,onClick:f,className:le(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});tf.displayName="ListGroupItem";const U_=he.forwardRef((e,t)=>{const{className:n,bsPrefix:r,variant:i,horizontal:a,numbered:o,as:s="div",...l}=Ig(e,{activeKey:"onSelect"}),c=gt(r,"list-group");let u;return a&&(u=a===!0?"horizontal":`horizontal-${a}`),process.env.NODE_ENV!=="production"&&io(!(a&&i==="flush"),'`variant="flush"` and `horizontal` should not be used together.'),b.jsx(h8,{ref:t,...l,as:s,className:le(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,o&&`${c}-numbered`)})});U_.displayName="ListGroup";const H_=Object.assign(U_,{Item:tf});var cu;function hb(e){if((!cu&&cu!==0||e)&&_s){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),cu=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cu}function p8(){return v.useState(null)}function tp(e){e===void 0&&(e=xs());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function m8(e){const t=v.useRef(e);return t.current=e,t}function g8(e){const t=m8(e);v.useEffect(()=>()=>t.current(),[])}function v8(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const pb=Cs("modal-open");class r0{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return v8(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(qi(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(pb,""),qi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(pb),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 np=(e,t)=>_s?e==null?(t||xs()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function mm(e,t){const n=Xd(),[r,i]=v.useState(()=>np(e,n==null?void 0:n.document));if(!r){const a=np(e);a&&i(a)}return v.useEffect(()=>{},[t,r]),v.useEffect(()=>{const a=np(e);a!==r&&i(a)},[e,r]),r}function b8({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const a=v.useRef(null),o=v.useRef(t),s=Cn(n);v.useEffect(()=>{t?o.current=!0:s(a.current)},[t,s]);const l=Ec(a,ws(e)),c=v.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const y8=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function x8(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 w8(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=x8(e,y8);const u=v.useRef(null),d=Ec(u,ws(l)),f=C=>x=>{C&&u.current&&C(u.current,x)},h=v.useCallback(f(t),[t]),p=v.useCallback(f(n),[n]),m=v.useCallback(f(r),[r]),g=v.useCallback(f(i),[i]),y=v.useCallback(f(a),[a]),_=v.useCallback(f(o),[o]),w=v.useCallback(f(s),[s]);return Object.assign({},c,{nodeRef:u},t&&{onEnter:h},n&&{onEntering:p},r&&{onEntered:m},i&&{onExit:g},a&&{onExiting:y},o&&{onExited:_},s&&{addEndListener:w},{children:typeof l=="function"?(C,x)=>l(C,Object.assign({},x,{ref:d})):v.cloneElement(l,{ref:d})})}const _8=["component"];function C8(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 S8=he.forwardRef((e,t)=>{let{component:n}=e,r=C8(e,_8);const i=w8(r);return b.jsx(n,Object.assign({ref:t},i))});function T8({in:e,onTransition:t}){const n=v.useRef(null),r=v.useRef(!0),i=Cn(t);return G1(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),G1(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function k8({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=v.useState(!t);t&&a&&o(!1);const s=T8({in:!!t,onTransition:c=>{const u=()=>{c.isStale()||(c.in?r==null||r(c.element,c.initial):(o(!0),n==null||n(c.element)))};Promise.resolve(i(c)).then(u,d=>{throw c.in||o(!0),d})}}),l=Ec(s,ws(e));return a&&!t?null:v.cloneElement(e,{ref:l})}function gm(e,t,n){return e?b.jsx(S8,Object.assign({},n,{component:e})):t?b.jsx(k8,Object.assign({},n,{transition:t})):b.jsx(b8,Object.assign({},n))}const $8=["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 E8(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 rp;function M8(e){return rp||(rp=new r0({ownerDocument:e==null?void 0:e.document})),rp}function O8(e){const t=Xd(),n=e||M8(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 V_=v.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:a,children:o,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:y=!0,restoreFocusOptions:_,renderDialog:w,renderBackdrop:C=X=>b.jsx("div",Object.assign({},X)),manager:x,container:S,onShow:E,onHide:k=()=>{},onExit:T,onExited:D,onExiting:$,onEnter:M,onEntering:R,onEntered:I}=e,j=E8(e,$8);const A=Xd(),O=mm(S),L=O8(x),F=Vw(),P=qw(n),[W,H]=v.useState(!n),q=v.useRef(null);v.useImperativeHandle(t,()=>L,[L]),_s&&!P&&n&&(q.current=tp(A==null?void 0:A.document)),n&&W&&H(!1);const Z=Cn(()=>{if(L.add(),z.current=fi(document,"keydown",U),B.current=fi(document,"focus",()=>setTimeout(te),!0),E&&E(),m){var X,se;const G=tp((X=(se=L.dialog)==null?void 0:se.ownerDocument)!=null?X:A==null?void 0:A.document);L.dialog&&G&&!Il(L.dialog,G)&&(q.current=G,L.dialog.focus())}}),K=Cn(()=>{if(L.remove(),z.current==null||z.current(),B.current==null||B.current(),y){var X;(X=q.current)==null||X.focus==null||X.focus(_),q.current=null}});v.useEffect(()=>{!n||!O||Z()},[n,O,Z]),v.useEffect(()=>{W&&K()},[W,K]),g8(()=>{K()});const te=Cn(()=>{if(!g||!F()||!L.isTopModal())return;const X=tp(A==null?void 0:A.document);L.dialog&&X&&!Il(L.dialog,X)&&L.dialog.focus()}),ne=Cn(X=>{X.target===X.currentTarget&&(c==null||c(X),s===!0&&k())}),U=Cn(X=>{l&&Fw(X)&&L.isTopModal()&&(u==null||u(X),X.defaultPrevented||k())}),B=v.useRef(),z=v.useRef(),V=(...X)=>{H(!0),D==null||D(...X)};if(!O)return null;const N=Object.assign({role:r,ref:L.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},j,{style:a,className:i,tabIndex:-1});let ee=w?w(N):b.jsx("div",Object.assign({},N,{children:he.cloneElement(o,{role:"document"})}));ee=gm(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:$,onExited:V,onEnter:M,onEntering:R,onEntered:I,children:ee});let Q=null;return s&&(Q=C({ref:L.setBackdropRef,onClick:ne}),Q=gm(h,p,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Q})),b.jsx(b.Fragment,{children:Un.createPortal(b.jsxs(b.Fragment,{children:[Q,ee]}),O)})});V_.displayName="Modal";const q_=Object.assign(V_,{Manager:r0});function vm(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function A8(e,t){e.classList?e.classList.add(t):vm(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function R8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mb(e.className,t):e.setAttribute("class",mb(e.className&&e.className.baseVal||"",t))}const Co={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Y_ extends r0{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,qi(n,{[t]:`${parseFloat(qi(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],qi(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(A8(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ui(n,Co.FIXED_CONTENT).forEach(a=>this.adjustAndStore(r,a,t.scrollBarWidth)),ui(n,Co.STICKY_CONTENT).forEach(a=>this.adjustAndStore(i,a,-t.scrollBarWidth)),ui(n,Co.NAVBAR_TOGGLER).forEach(a=>this.adjustAndStore(i,a,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();R8(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";ui(n,Co.FIXED_CONTENT).forEach(a=>this.restore(r,a)),ui(n,Co.STICKY_CONTENT).forEach(a=>this.restore(i,a)),ui(n,Co.NAVBAR_TOGGLER).forEach(a=>this.restore(i,a))}}let ip;function G_(e){return ip||(ip=new Y_(e)),ip}const Z_=he.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-body"),b.jsx(n,{ref:i,className:le(e,t),...r})));Z_.displayName="ModalBody";const i0=he.createContext({onHide(){}}),a0=he.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:a,children:o,scrollable:s,...l},c)=>{e=gt(e,"modal");const u=`${e}-dialog`,d=typeof a=="string"?`${e}-fullscreen-${a}`:`${e}-fullscreen`;return b.jsx("div",{...l,ref:c,className:le(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:b.jsx("div",{className:le(`${e}-content`,n),children:o})})});a0.displayName="ModalDialog";const K_=he.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-footer"),b.jsx(n,{ref:i,className:le(e,t),...r})));K_.displayName="ModalFooter";const o0=he.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...a},o)=>{const s=v.useContext(i0),l=Gi(()=>{s==null||s.onHide(),r==null||r()});return b.jsxs("div",{ref:o,...a,children:[i,n&&b.jsx(Yd,{"aria-label":e,variant:t,onClick:l})]})});o0.displayName="AbstractModalHeader";const X_=he.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},a)=>(e=gt(e,"modal-header"),b.jsx(o0,{ref:a,...i,className:le(t,e),closeLabel:n,closeButton:r})));X_.displayName="ModalHeader";const D8=Lg("h4"),J_=he.forwardRef(({className:e,bsPrefix:t,as:n=D8,...r},i)=>(t=gt(t,"modal-title"),b.jsx(n,{ref:i,className:le(e,t),...r})));J_.displayName="ModalTitle";function I8(e){return b.jsx(Zi,{...e,timeout:null})}function j8(e){return b.jsx(Zi,{...e,timeout:null})}const Q_=he.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:a,dialogAs:o=a0,"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:y,container:_,autoFocus:w=!0,enforceFocus:C=!0,restoreFocus:x=!0,restoreFocusOptions:S,onEntered:E,onExit:k,onExiting:T,onEnter:D,onEntering:$,onExited:M,backdropClassName:R,manager:I,...j},A)=>{const[O,L]=v.useState({}),[F,P]=v.useState(!1),W=v.useRef(!1),H=v.useRef(!1),q=v.useRef(null),[Z,K]=p8(),te=ro(A,K),ne=Gi(y),U=qd();e=gt(e,"modal");const B=v.useMemo(()=>({onHide:ne}),[ne]);function z(){return I||G_({isRTL:U})}function V(ye){if(!_s)return;const Me=z().getScrollbarWidth()>0,pe=ye.scrollHeight>xs(ye).documentElement.clientHeight;L({paddingRight:Me&&!pe?hb():void 0,paddingLeft:!Me&&pe?hb():void 0})}const N=Gi(()=>{Z&&V(Z.dialog)});Zw(()=>{um(window,"resize",N),q.current==null||q.current()});const ee=()=>{W.current=!0},Q=ye=>{W.current&&Z&&ye.target===Z.dialog&&(H.current=!0),W.current=!1},X=()=>{P(!0),q.current=Bw(Z.dialog,()=>{P(!1)})},se=ye=>{ye.target===ye.currentTarget&&X()},G=ye=>{if(h==="static"){se(ye);return}if(H.current||ye.target!==ye.currentTarget){H.current=!1;return}y==null||y()},J=ye=>{p?m==null||m(ye):(ye.preventDefault(),h==="static"&&X())},ie=(ye,Me)=>{ye&&V(ye),D==null||D(ye,Me)},oe=ye=>{q.current==null||q.current(),k==null||k(ye)},be=(ye,Me)=>{$==null||$(ye,Me),Ng(window,"resize",N)},ce=ye=>{ye&&(ye.style.display=""),M==null||M(ye),um(window,"resize",N)},ue=v.useCallback(ye=>b.jsx("div",{...ye,className:le(`${e}-backdrop`,R,!f&&"show")}),[f,R,e]),Ce={...n,...O};Ce.display="block";const ke=ye=>b.jsx("div",{role:"dialog",...ye,style:Ce,className:le(t,e,F&&`${e}-static`,!f&&"show"),onClick:h?G:void 0,onMouseUp:Q,"data-bs-theme":s,"aria-label":u,"aria-labelledby":l,"aria-describedby":c,children:b.jsx(o,{...j,onMouseDown:ee,className:r,contentClassName:i,children:a})});return b.jsx(i0.Provider,{value:B,children:b.jsx(q_,{show:d,ref:te,backdrop:h,container:_,keyboard:!0,autoFocus:w,enforceFocus:C,restoreFocus:x,restoreFocusOptions:S,onEscapeKeyDown:J,onShow:g,onHide:y,onEnter:ie,onEntering:be,onEntered:E,onExit:oe,onExiting:T,onExited:ce,manager:z(),transition:f?I8:void 0,backdropTransition:f?j8:void 0,renderBackdrop:ue,renderDialog:ke})})});Q_.displayName="Modal";const Vn=Object.assign(Q_,{Body:Z_,Header:X_,Title:J_,Footer:K_,Dialog:a0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),N8=()=>{};function P8(e,t,{disabled:n,clickTrigger:r}={}){const i=t||N8;u_(e,i,{disabled:n,clickTrigger:r});const a=Cn(o=>{Fw(o)&&i(o)});v.useEffect(()=>{if(n||e==null)return;const o=xs(Ru(e));let s=(o.defaultView||window).event;const l=fi(o,"keyup",c=>{if(c===s){s=void 0;return}a(c)});return()=>{l()}},[e,n,a])}const e4=he.forwardRef((e,t)=>{const{flip:n,offset:r,placement:i,containerPadding:a,popperConfig:o={},transition:s,runTransition:l}=e,[c,u]=dm(),[d,f]=dm(),h=Ec(u,t),p=mm(e.container),m=mm(e.target),[g,y]=v.useState(!e.show),_=l_(m,c,d_({placement:i,enableEvents:!!e.show,containerPadding:a||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&g&&y(!1);const w=(...$)=>{y(!0),e.onExited&&e.onExited(...$)},C=e.show||!g;if(P8(c,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:x,onExiting:S,onEnter:E,onEntering:k,onEntered:T}=e;let D=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 D=gm(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:D,onExit:x,onExiting:S,onExited:w,onEnter:E,onEntering:k,onEntered:T}),p?Un.createPortal(D,p):null});e4.displayName="Overlay";const t4=he.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-header"),b.jsx(n,{ref:i,className:le(e,t),...r})));t4.displayName="PopoverHeader";const s0=he.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-body"),b.jsx(n,{ref:i,className:le(e,t),...r})));s0.displayName="PopoverBody";function n4(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function r4(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const i4=he.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,body:a,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:c,...u},d)=>{const f=gt(e,"popover"),h=qd(),[p]=(t==null?void 0:t.split("-"))||[],m=n4(p,h);let g=r;return c&&!s&&(g={...r,...r4(l==null?void 0:l.strategy)}),b.jsxs("div",{ref:d,role:"tooltip",style:g,"x-placement":p,className:le(n,f,p&&`bs-popover-${m}`),...u,children:[b.jsx("div",{className:"popover-arrow",...o}),a?b.jsx(s0,{children:i}):i]})});i4.displayName="Popover";const Du=Object.assign(i4,{Header:t4,Body:s0,POPPER_OFFSET:[0,8]}),a4=he.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:i,arrowProps:a,hasDoneInitialMeasure:o,popper:s,show:l,...c},u)=>{e=gt(e,"tooltip");const d=qd(),[f]=(t==null?void 0:t.split("-"))||[],h=n4(f,d);let p=r;return l&&!o&&(p={...r,...r4(s==null?void 0:s.strategy)}),b.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:le(n,e,`bs-tooltip-${h}`),...c,children:[b.jsx("div",{className:"tooltip-arrow",...a}),b.jsx("div",{className:`${e}-inner`,children:i})]})});a4.displayName="Tooltip";const o4=Object.assign(a4,{TOOLTIP_OFFSET:[0,6]});function L8(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(vm(t.current,n))return Du.POPPER_OFFSET;if(vm(t.current,r))return o4.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function F8(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=i=>n(Gu(i))),t.ref=r.__wrapped||(r.__wrapped=i=>r(Gu(i)))}const s4=he.forwardRef(({children:e,transition:t=Zi,popperConfig:n={},rootClose:r=!1,placement:i="top",show:a=!1,...o},s)=>{const l=v.useRef({}),[c,u]=v.useState(null),[d,f]=L8(o.offset),h=ro(s,d),p=t===!0?Zi:t||void 0,m=Gi(g=>{u(g),n==null||n.onFirstUpdate==null||n.onFirstUpdate(g)});return Jg(()=>{c&&o.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[c,o.target]),v.useEffect(()=>{a||u(null)},[a]),b.jsx(e4,{...o,ref:h,popperConfig:{...n,modifiers:f.concat(n.modifiers||[]),onFirstUpdate:m},transition:p,rootClose:r,placement:i,show:a,children:(g,{arrowProps:y,popper:_,show:w})=>{var C;F8(g,y);const x=_==null?void 0:_.placement,S=Object.assign(l.current,{state:_==null?void 0:_.state,scheduleUpdate:_==null?void 0:_.update,placement:x,outOfBoundaries:(_==null||(C=_.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),E=!!c;return typeof e=="function"?e({...g,placement:x,show:w,...!t&&w&&{className:"show"},popper:S,arrowProps:y,hasDoneInitialMeasure:E}):he.cloneElement(e,{...g,placement:x,arrowProps:y,popper:S,hasDoneInitialMeasure:E,className:le(e.props.className,!t&&w&&"show"),style:{...e.props.style,...g.style}})}})});s4.displayName="Overlay";function B8(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function gb(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!Il(i,a)&&e(...t)}we.oneOf(["click","hover","focus"]);const l4=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:i,defaultShow:a=!1,onToggle:o,delay:s,placement:l,flip:c=l&&l.indexOf("auto")!==-1,...u})=>{const d=v.useRef(null),f=ro(d,ws(n)),h=xE(),p=v.useRef(""),[m,g]=Dw(i,a,o),y=B8(s),{onFocus:_,onBlur:w,onClick:C}=typeof n!="function"?he.Children.only(n).props:{},x=j=>{f(Gu(j))},S=v.useCallback(()=>{if(h.clear(),p.current="show",!y.show){g(!0);return}h.set(()=>{p.current==="show"&&g(!0)},y.show)},[y.show,g,h]),E=v.useCallback(()=>{if(h.clear(),p.current="hide",!y.hide){g(!1);return}h.set(()=>{p.current==="hide"&&g(!1)},y.hide)},[y.hide,g,h]),k=v.useCallback((...j)=>{S(),_==null||_(...j)},[S,_]),T=v.useCallback((...j)=>{E(),w==null||w(...j)},[E,w]),D=v.useCallback((...j)=>{g(!m),C==null||C(...j)},[C,g,m]),$=v.useCallback((...j)=>{gb(S,j,"fromElement")},[S]),M=v.useCallback((...j)=>{gb(E,j,"toElement")},[E]),R=e==null?[]:[].concat(e),I={ref:x};return R.indexOf("click")!==-1&&(I.onClick=D),R.indexOf("focus")!==-1&&(I.onFocus=k,I.onBlur=T),R.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&io(R.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=$,I.onMouseOut=M),b.jsxs(b.Fragment,{children:[typeof n=="function"?n(I):v.cloneElement(n,I),b.jsx(s4,{...u,show:m,onHide:E,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},l0=he.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:a,...o},s)=>{e=gt(e,"spinner");const l=`${e}-${n}`;return b.jsx(i,{ref:s,...o,className:le(a,l,r&&`${l}-${r}`,t&&`text-${t}`)})});l0.displayName="Spinner";var c4={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},vb=v.createContext&&v.createContext(c4),z8=["attr","size","title"];function W8(e,t){if(e==null)return{};var n=U8(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U8(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 Qu(){return Qu=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},Qu.apply(this,arguments)}function bb(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 ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(n),!0).forEach(function(r){H8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H8(e,t,n){return t=V8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V8(e){var t=q8(e,"string");return typeof t=="symbol"?t:t+""}function q8(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 u4(e){return e&&e.map((t,n)=>v.createElement(t.tag,ed({key:n},t.attr),u4(t.child)))}function it(e){return t=>v.createElement(Y8,Qu({attr:ed({},e.attr)},t),u4(e.child))}function Y8(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=W8(e,z8),s=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),v.createElement("svg",Qu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:l,style:ed(ed({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&v.createElement("title",null,a),e.children)};return vb!==void 0?v.createElement(vb.Consumer,null,n=>t(n)):t(c4)}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 Ss(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 Z8(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 K8(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 X8(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 J8(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 Q8(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 eO(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 d4(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 tO(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 nO(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 rO(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 iO(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 aO(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 oO(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 sO(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 lO(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 cO(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 uO(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 dO(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 fO(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 hO(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 pO(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 f4(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 mO(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 gO(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 vO(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 h4(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 bO(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 p4(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 yO(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 xO(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 wO(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 Qt=v.createContext({cookieDomain:"",axiosOptions:{},language:"",localizationContext:{},texts:{},ProjectIconComponent:{},chartColorPalette:void 0}),m4=v.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),g4=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),v4=()=>{const e=De.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:a,setOptions:o}=v.useContext(g4);let s;e[0]!==i||e[1]!==a?(s=f=>{i(),a.current(f)},e[0]=i,e[1]=a,e[2]=s):s=e[2];const l=s;let c;e[3]!==a||e[4]!==o||e[5]!==r?(c=async(f,h)=>(o(p=>({...p,...h})),r(f),new Promise(p=>{a.current=p})),e[3]=a,e[4]=o,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 _O={data:""},CO=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||_O},SO=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,TO=/\/\*[^]*?\*\/| +/g,yb=/\n+/g,Bi=(e,t)=>{let n="",r="",i="";for(let a in e){let o=e[a];a[0]=="@"?a[1]=="i"?n=a+" "+o+";":r+=a[1]=="f"?Bi(o,a):a+"{"+Bi(o,a[1]=="k"?"":t)+"}":typeof o=="object"?r+=Bi(o,t?t.replace(/([^,])+/g,s=>a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):a):o!=null&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Bi.p?Bi.p(a,o):a+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},ri={},b4=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+b4(e[n]);return t}return e},kO=(e,t,n,r,i)=>{let a=b4(e),o=ri[a]||(ri[a]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(a));if(!ri[o]){let l=a!==e?e:(c=>{let u,d,f=[{}];for(;u=SO.exec(c.replace(TO,""));)u[4]?f.shift():u[3]?(d=u[3].replace(yb," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(yb," ").trim();return f[0]})(e);ri[o]=Bi(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let s=n&&ri.g?ri.g:null;return n&&(ri.g=ri[o]),((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[o],t,r,s),o},$O=(e,t,n)=>e.reduce((r,i,a)=>{let o=t[a];if(o&&o.call){let s=o(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=l?"."+l:s&&typeof s=="object"?s.props?"":Bi(s,""):s===!1?"":s}return r+i+(o??"")},"");function nf(e){let t=this||{},n=e.call?e(t.p):e;return kO(n.unshift?n.raw?$O(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,CO(t.target),t.g,t.o,t.k)}let y4,bm,ym;nf.bind({g:1});let wi=nf.bind({k:1});function EO(e,t,n,r){Bi.p=t,y4=e,bm=n,ym=r}function oa(e,t){let n=this||{};return function(){let r=arguments;function i(a,o){let s=Object.assign({},a),l=s.className||i.className;n.p=Object.assign({theme:bm&&bm()},s),n.o=/ *go\d+/.test(l),s.className=nf.apply(n,r)+(l?" "+l:"");let c=e;return e[0]&&(c=s.as||e,delete s.as),ym&&c[0]&&ym(s),y4(c,s)}return i}}var MO=e=>typeof e=="function",td=(e,t)=>MO(e)?e(t):e,OO=(()=>{let e=0;return()=>(++e).toString()})(),x4=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),AO=20,c0="default",w4=(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(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:r}=t;return w4(e,{type:e.toasts.find(o=>o.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(o=>o.id===i||i===void 0?{...o,dismissed:!0,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let a=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+a}))}}},Iu=[],_4={toasts:[],pausedAt:void 0,settings:{toastLimit:AO}},Lr={},C4=(e,t=c0)=>{Lr[t]=w4(Lr[t]||_4,e),Iu.forEach(([n,r])=>{n===t&&r(Lr[t])})},S4=e=>Object.keys(Lr).forEach(t=>C4(e,t)),RO=e=>Object.keys(Lr).find(t=>Lr[t].toasts.some(n=>n.id===e)),rf=(e=c0)=>t=>{C4(t,e)},DO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},IO=(e={},t=c0)=>{let[n,r]=v.useState(Lr[t]||_4),i=v.useRef(Lr[t]);v.useEffect(()=>(i.current!==Lr[t]&&r(Lr[t]),Iu.push([t,r]),()=>{let o=Iu.findIndex(([s])=>s===t);o>-1&&Iu.splice(o,1)}),[t]);let a=n.toasts.map(o=>{var s,l,c;return{...e,...e[o.type],...o,removeDelay:o.removeDelay||((s=e[o.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:o.duration||((l=e[o.type])==null?void 0:l.duration)||(e==null?void 0:e.duration)||DO[o.type],style:{...e.style,...(c=e[o.type])==null?void 0:c.style,...o.style}}});return{...n,toasts:a}},jO=(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)||OO()}),Mc=e=>(t,n)=>{let r=jO(t,e,n);return rf(r.toasterId||RO(r.id))({type:2,toast:r}),r.id},pn=(e,t)=>Mc("blank")(e,t);pn.error=Mc("error");pn.success=Mc("success");pn.loading=Mc("loading");pn.custom=Mc("custom");pn.dismiss=(e,t)=>{let n={type:3,toastId:e};t?rf(t)(n):S4(n)};pn.dismissAll=e=>pn.dismiss(void 0,e);pn.remove=(e,t)=>{let n={type:4,toastId:e};t?rf(t)(n):S4(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 a=t.success?td(t.success,i):void 0;return a?pn.success(a,{id:r,...n,...n==null?void 0:n.success}):pn.dismiss(r),i}).catch(i=>{let a=t.error?td(t.error,i):void 0;a?pn.error(a,{id:r,...n,...n==null?void 0:n.error}):pn.dismiss(r)}),e};var NO=1e3,PO=(e,t="default")=>{let{toasts:n,pausedAt:r}=IO(e,t),i=v.useRef(new Map).current,a=v.useCallback((d,f=NO)=>{if(i.has(d))return;let h=setTimeout(()=>{i.delete(d),o({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 o=v.useCallback(rf(t),[t]),s=v.useCallback(()=>{o({type:5,time:Date.now()})},[o]),l=v.useCallback((d,f)=>{o({type:1,toast:{id:d,height:f}})},[o]),c=v.useCallback(()=>{r&&o({type:6,time:Date.now()})},[r,o]),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),y=g.findIndex(w=>w.id===d.id),_=g.filter((w,C)=>C<y&&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)a(d.id,d.removeDelay);else{let f=i.get(d.id);f&&(clearTimeout(f),i.delete(d.id))}})},[n,a]),{toasts:n,handlers:{updateHeight:l,startPause:s,endPause:c,calculateOffset:u}}},LO=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
+ }`,FO=wi`
53
+ from {
54
+ transform: scale(0);
55
+ opacity: 0;
56
+ }
57
+ to {
58
+ transform: scale(1);
59
+ opacity: 1;
60
+ }`,BO=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
+ }`,zO=oa("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: ${LO} 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: ${FO} 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: ${BO} 0.15s ease-out forwards;
98
+ animation-delay: 180ms;
99
+ transform: rotate(90deg);
100
+ }
101
+ `,WO=wi`
102
+ from {
103
+ transform: rotate(0deg);
104
+ }
105
+ to {
106
+ transform: rotate(360deg);
107
+ }
108
+ `,UO=oa("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: ${WO} 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
+ }`,VO=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
+ }`,qO=oa("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: ${VO} 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
+ `,YO=oa("div")`
167
+ position: absolute;
168
+ `,GO=oa("div")`
169
+ position: relative;
170
+ display: flex;
171
+ justify-content: center;
172
+ align-items: center;
173
+ min-width: 20px;
174
+ min-height: 20px;
175
+ `,ZO=wi`
176
+ from {
177
+ transform: scale(0.6);
178
+ opacity: 0.4;
179
+ }
180
+ to {
181
+ transform: scale(1);
182
+ opacity: 1;
183
+ }`,KO=oa("div")`
184
+ position: relative;
185
+ transform: scale(0.6);
186
+ opacity: 0.4;
187
+ min-width: 20px;
188
+ animation: ${ZO} 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"?he.createElement(KO,null,t):t:n==="blank"?null:he.createElement(GO,null,he.createElement(UO,{...r}),n!=="loading"&&he.createElement(YO,null,n==="error"?he.createElement(zO,{...r}):he.createElement(qO,{...r})))},JO=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
+ `,QO=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
+ `,e7="0%{opacity:0;} 100%{opacity:1;}",t7="0%{opacity:1;} 100%{opacity:0;}",n7=oa("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
+ `,r7=oa("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
+ `,i7=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=x4()?[e7,t7]:[JO(n),QO(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)`}},a7=he.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?i7(e.position||t||"top-center",e.visible):{opacity:0},a=he.createElement(XO,{toast:e}),o=he.createElement(r7,{...e.ariaProps},td(e.message,e));return he.createElement(n7,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):he.createElement(he.Fragment,null,a,o))});EO(he.createElement);var o7=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=he.useCallback(o=>{if(o){let s=()=>{let l=o.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return he.createElement("div",{ref:a,className:t,style:n},i)},s7=(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:x4()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},l7=nf`
216
+ z-index: 9999;
217
+ > * {
218
+ pointer-events: auto;
219
+ }
220
+ `,uu=16,c7=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:a,containerStyle:o,containerClassName:s})=>{let{toasts:l,handlers:c}=PO(n,a);return he.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:uu,left:uu,right:uu,bottom:uu,pointerEvents:"none",...o},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=s7(d,f);return he.createElement(o7,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?l7:"",style:h},u.type==="custom"?td(u.message,u):i?i(u):he.createElement(a7,{toast:u,position:d}))}))},So=pn;const Oc=v.createContext({isLoading:!1,startLoading:e=>{},stopLoading:e=>{}});var xm;(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"})(xm||(xm={}));const T4=xm;var wm;(function(e){e[e.Odebrano=-2]="Odebrano",e[e.Zamitnuto=-1]="Zamitnuto",e[e.Nevyrizeno=0]="Nevyrizeno",e[e.Schvaleno=1]="Schvaleno"})(wm||(wm={}));const u7=wm,u0=v.createContext({user:null,userLoginState:{state:T4.LOGGED_OUT,user:null},loginUser:()=>Promise.resolve(!0),logoutUser:()=>{}}),af=v.createContext({useMsal:!1,msalInstance:null,msalScopes:[],msalExtraScopes:[],getToken:async()=>null,authState:"NO_AUTH"}),k4=v.createContext({delegation:null,setDelegation:()=>{},availableDelegations:null,setAvailableDelegations:()=>{},refreshAvailableDelegations:async()=>{}}),nd=e=>e==null?!0:!(typeof e=="object"||typeof e=="function"),$4=e=>{nd(e)||Object.keys(e).forEach(t=>{const n=e[t];if(nd(n))return;const r=Object.keys(n);r.includes("id")&&r.length===1&&n.id===null?e[t]=null:$4(n)})},E4=e=>Object.values(e).every(t=>t===null),d7=e=>{const t={};return Object.entries(e).forEach(([n,r])=>{r&&typeof r=="object"&&E4(r)?t[n]=null:t[n]=r}),t},of=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})):[],M4=async e=>{if(e.type==null||!e.type.includes("json"))return[];try{const t=await e.text(),n=JSON.parse(t);return of(n)}catch(t){return console.error("Error parsing blob response:",t),[]}},O4=(e,t)=>{of(t.response.data).forEach(r=>{e.setError(r.name,{message:r.errors,type:"server"},{shouldFocus:!0}),nd(e.getValues(r.name))||e.setError(`${r.name}.id`,{message:r.errors,type:"server"},{shouldFocus:!0})})},A4=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},R4=e=>{const t=De.c(35);let n,r,i,a,o,s,l,c,u;t[0]!==e?({heading:a,content:r,placement:o,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]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=c,t[9]=u):(n=t[1],r=t[2],i=t[3],a=t[4],o=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=le("luminus-popover",{"luminus-popover-sm":c},s),t[14]=s,t[15]=c,t[16]=m):m=t[16];let g;t[17]!==a?(g=a&&b.jsx(Du.Header,{children:typeof a=="string"?b.jsx(mn,{variant:"h6",className:"text-primary",children:a}):a}),t[17]=a,t[18]=g):g=t[18];let y;t[19]!==r?(y=b.jsx(Du.Body,{children:r}),t[19]=r,t[20]=y):y=t[20];let _;t[21]!==m||t[22]!==g||t[23]!==y?(_=b.jsxs(Du,{className:m,onClick:f7,children:[g,y]}),t[21]=m,t[22]=g,t[23]=y,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 x;return t[27]!==n||t[28]!==i||t[29]!==o||t[30]!==_||t[31]!==w||t[32]!==C||t[33]!==p?(x=b.jsx(l4,{placement:o,overlay:_,trigger:p,rootClose:!0,show:w,onToggle:C,delay:i,children:n}),t[27]=n,t[28]=i,t[29]=o,t[30]=_,t[31]=w,t[32]=C,t[33]=p,t[34]=x):x=t[34],x};function f7(e){return e.stopPropagation()}const h7="_h1_14r4v_1",p7="_h3_14r4v_8",m7="_h6_14r4v_15",g7="_subtitle_14r4v_22",v7="_body_14r4v_29",b7="_body2_14r4v_36",y7="_caption_14r4v_43",x7="_form-label_14r4v_50",Di={h1:h7,h3:p7,h6:m7,subtitle:g7,body:v7,body2:b7,caption:y7,formLabel:x7},w7=e=>{const t=De.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let a;t[0]!==r?(a=le("luminus-text-primary luminus-h1",Di.h1,r),t[0]=r,t[1]=a):a=t[1];let o;return t[2]!==i||t[3]!==a?(o=b.jsx("h1",{className:a,children:i}),t[2]=i,t[3]=a,t[4]=o):o=t[4],o}case"h3":{let a;t[5]!==r?(a=le("luminus-text luminus-h3",Di.h3,r),t[5]=r,t[6]=a):a=t[6];let o;return t[7]!==i||t[8]!==a?(o=b.jsx("h3",{className:a,children:i}),t[7]=i,t[8]=a,t[9]=o):o=t[9],o}case"h6":{let a;t[10]!==r?(a=le("luminus-text luminus-h6",Di.h6,r),t[10]=r,t[11]=a):a=t[11];let o;return t[12]!==i||t[13]!==a?(o=b.jsx("h6",{className:a,children:i}),t[12]=i,t[13]=a,t[14]=o):o=t[14],o}case"subtitle":{let a;t[15]!==r?(a=le("luminus-text luminus-subtitle",Di.subtitle,r),t[15]=r,t[16]=a):a=t[16];let o;return t[17]!==i||t[18]!==a?(o=b.jsx("div",{className:a,children:i}),t[17]=i,t[18]=a,t[19]=o):o=t[19],o}case"body":{let a;t[20]!==r?(a=le("luminus-text luminus-body",Di.body,r),t[20]=r,t[21]=a):a=t[21];let o;return t[22]!==i||t[23]!==a?(o=b.jsx("div",{className:a,children:i}),t[22]=i,t[23]=a,t[24]=o):o=t[24],o}case"body2":{let a;t[25]!==r?(a=le("luminus-text luminus-body2",Di.body2,r),t[25]=r,t[26]=a):a=t[26];let o;return t[27]!==i||t[28]!==a?(o=b.jsx("div",{className:a,children:i}),t[27]=i,t[28]=a,t[29]=o):o=t[29],o}case"caption":{let a;t[30]!==r?(a=le("luminus-text-muted luminus-caption",Di.caption,r),t[30]=r,t[31]=a):a=t[31];let o;return t[32]!==i||t[33]!==a?(o=b.jsx("div",{className:a,children:i}),t[32]=i,t[33]=a,t[34]=o):o=t[34],o}case"form-label":{let a;t[35]!==r?(a=le("luminus-text luminus-form-label",Di.formLabel,r),t[35]=r,t[36]=a):a=t[36];let o;return t[37]!==i||t[38]!==a?(o=b.jsx("div",{className:a,children:i}),t[37]=i,t[38]=a,t[39]=o):o=t[39],o}default:{let a;return t[40]!==i?(a=b.jsx(b.Fragment,{children:i}),t[40]=i,t[41]=a):a=t[41],a}}},mn=e=>{const t=De.c(4),{variant:n,className:r,children:i}=e;let a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=b.jsx(w7,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a},d0=e=>{const t=De.c(7),{text:n,placement:r,children:i,delay:a}=e;let o;t[0]!==n?(o=b.jsx(mn,{variant:"body2",className:"text-center",children:n}),t[0]=n,t[1]=o):o=t[1];let s;return t[2]!==i||t[3]!==a||t[4]!==r||t[5]!==o?(s=b.jsx(R4,{content:o,placement:r,delay:a,small:!0,children:i}),t[2]=i,t[3]=a,t[4]=r,t[5]=o,t[6]=s):s=t[6],s},D4=e=>e.length<300?e:e.substring(0,300)+"...",os=e=>e<1024?`${e.toFixed(2)} bytes`:e>=1024&&e<1048576?`${(e/1024).toFixed(1)} kB`:`${(e/1048576).toFixed(1)} MB`;function f0(e=" ",...t){return t.filter(n=>n!=null&&n.length>0).join(e)}const _m=(e,t)=>e.map(n=>`&${t}=${n}`).join("").substring(1),_7=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function C7(e){return e==null?"":Dg(Cc(e),"dd.MM.yyyy")}function ss(e){return(e==null?void 0:e.toString().split("T")[0])??""}function S7(e){return e==null?"":Dg(Cc(e),"dd.MM.yyyy HH:mm")}function T7(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const k7=(e,t)=>f0(" ",e?`${e},`:void 0,t),$7=(e,t)=>`${t}${e!=null?` (${e})`:""}`,E7=(e,t)=>`[${e??""}] ${t??""}`,I4=e=>decodeURIComponent(atob(e).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")),j4=e=>{const t=Cc(e);return!Number.isNaN(t.getTime())},N4=e=>{if(!j4(e))return!1;const n=Cc(e).getUTCFullYear();return n>=1900&&n<=2100};function M7(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function O7(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function A7(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 R7(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function D7(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 L4(e=new Date){return hk(e)}function I7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),P4(t)}function j7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),L4(t)}function N7(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function P7(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 ss(e.toISOString())}function F4(e){const t=/filename\*?=(?:UTF-8''|")?(.*?)(?:''|")?(?:;|$)/i,n=e.match(t);if(n&&n[1]){let r=n[1];const i=/=\?([^?]+)\?([BbQq])\?([^?]+)\?=/,a=r.match(i);if(a){const o=a[2].toUpperCase(),s=a[3];try{return o==="B"?r=I4(s):o==="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(o){return console.error("Error decoding filename:",o),r}}return null}function rd(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 F7=["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"],B7=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],B4=e=>F7.includes(e.type),z4=e=>B7.includes(e.toLowerCase());function z7(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 a=e.headers.get("Content-disposition");typeof a=="string"&&a.length>0&&(n=F4(e.headers.get("Content-disposition"))??n)}const r=B4(e.data),i=(t==null?void 0:t.tryToOpen)===void 0?localStorage.getItem("file-download-try-opening")!=="false":t.tryToOpen;rd(e.data,n,r?i:!1)}function ls(e,t=ls.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ls.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 Cm=(e,t)=>t?e?ls(e).toLowerCase().includes(ls(t.toLowerCase())):!1:!0,W4=(e,t)=>t?e?ls(e).toLowerCase().startsWith(ls(t.toLowerCase())):!1:!0,sf=(e,t,n)=>{const r=localStorage.getItem("search-use-asterisk")!=="false",i=n!=null&&n.trimSpaces?t==null?void 0:t.replaceAll(" ",""):t,a=n!=null&&n.trimSpaces?e==null?void 0:e.replaceAll(" ",""):e;return i?r?i.startsWith("*")?Cm(a,i.substring(1)):W4(a,i):Cm(a,i):!0},xb=(e,t,n=!0)=>Object.keys(e).reduce((r,i)=>{const a=e[i];return n&&a==null||(r[i]=t(a,i)),r},{}),U4=(e,t)=>{const n=t!=null&&t.query?new URLSearchParams(xb(t.query,r=>(r==null?void 0:r.toString())??"")):null;return`${no.generatePath(e,t!=null&&t.path?xb(t.path,r=>(r==null?void 0:r.toString())??null):void 0)}${n&&n.size>0?`?${n.toString()}`:""}`};function H4(e,t){return function(){return e.apply(t,arguments)}}const{toString:W7}=Object.prototype,{getPrototypeOf:h0}=Object,{iterator:lf,toStringTag:V4}=Symbol,cf=(e=>t=>{const n=W7.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ar=e=>(e=e.toLowerCase(),t=>cf(t)===e),uf=e=>t=>typeof t===e,{isArray:Ts}=Array,cs=uf("undefined");function Ac(e){return e!==null&&!cs(e)&&e.constructor!==null&&!cs(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const q4=Ar("ArrayBuffer");function U7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&q4(e.buffer),t}const H7=uf("string"),Gn=uf("function"),Y4=uf("number"),Rc=e=>e!==null&&typeof e=="object",V7=e=>e===!0||e===!1,ju=e=>{if(cf(e)!=="object")return!1;const t=h0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(V4 in e)&&!(lf in e)},q7=e=>{if(!Rc(e)||Ac(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Y7=Ar("Date"),G7=Ar("File"),Z7=Ar("Blob"),K7=Ar("FileList"),X7=e=>Rc(e)&&Gn(e.pipe),J7=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gn(e.append)&&((t=cf(e))==="formdata"||t==="object"&&Gn(e.toString)&&e.toString()==="[object FormData]"))},Q7=Ar("URLSearchParams"),[eA,tA,nA,rA]=["ReadableStream","Request","Response","Headers"].map(Ar),iA=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Dc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Ts(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Ac(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(r=0;r<o;r++)s=a[r],t.call(null,e[s],s,e)}}function G4(e,t){if(Ac(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 Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Z4=e=>!cs(e)&&e!==Ea;function Sm(){const{caseless:e,skipUndefined:t}=Z4(this)&&this||{},n={},r=(i,a)=>{const o=e&&G4(n,a)||a;ju(n[o])&&ju(i)?n[o]=Sm(n[o],i):ju(i)?n[o]=Sm({},i):Ts(i)?n[o]=i.slice():(!t||!cs(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Dc(arguments[i],r);return n}const aA=(e,t,n,{allOwnKeys:r}={})=>(Dc(t,(i,a)=>{n&&Gn(i)?e[a]=H4(i,n):e[a]=i},{allOwnKeys:r}),e),oA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sA=(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)},lA=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&h0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cA=(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},uA=e=>{if(!e)return null;if(Ts(e))return e;let t=e.length;if(!Y4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},dA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&h0(Uint8Array)),fA=(e,t)=>{const r=(e&&e[lf]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},hA=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},pA=Ar("HTMLFormElement"),mA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),wb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gA=Ar("RegExp"),K4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Dc(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},vA=e=>{K4(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+"'")})}})},bA=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Ts(e)?r(e):r(String(e).split(t)),n},yA=()=>{},xA=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wA(e){return!!(e&&Gn(e.append)&&e[V4]==="FormData"&&e[lf])}const _A=e=>{const t=new Array(10),n=(r,i)=>{if(Rc(r)){if(t.indexOf(r)>=0)return;if(Ac(r))return r;if(!("toJSON"in r)){t[i]=r;const a=Ts(r)?[]:{};return Dc(r,(o,s)=>{const l=n(o,i+1);!cs(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},CA=Ar("AsyncFunction"),SA=e=>e&&(Rc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),X4=((e,t)=>e?setImmediate:t?((n,r)=>(Ea.addEventListener("message",({source:i,data:a})=>{i===Ea&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ea.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Gn(Ea.postMessage)),TA=typeof queueMicrotask<"u"?queueMicrotask.bind(Ea):typeof process<"u"&&process.nextTick||X4,kA=e=>e!=null&&Gn(e[lf]),ae={isArray:Ts,isArrayBuffer:q4,isBuffer:Ac,isFormData:J7,isArrayBufferView:U7,isString:H7,isNumber:Y4,isBoolean:V7,isObject:Rc,isPlainObject:ju,isEmptyObject:q7,isReadableStream:eA,isRequest:tA,isResponse:nA,isHeaders:rA,isUndefined:cs,isDate:Y7,isFile:G7,isBlob:Z7,isRegExp:gA,isFunction:Gn,isStream:X7,isURLSearchParams:Q7,isTypedArray:dA,isFileList:K7,forEach:Dc,merge:Sm,extend:aA,trim:iA,stripBOM:oA,inherits:sA,toFlatObject:lA,kindOf:cf,kindOfTest:Ar,endsWith:cA,toArray:uA,forEachEntry:fA,matchAll:hA,isHTMLForm:pA,hasOwnProperty:wb,hasOwnProp:wb,reduceDescriptors:K4,freezeMethods:vA,toObjectSet:bA,toCamelCase:mA,noop:yA,toFiniteNumber:xA,findKey:G4,global:Ea,isContextDefined:Z4,isSpecCompliantForm:wA,toJSONObject:_A,isAsyncFn:CA,isThenable:SA,setImmediate:X4,asap:TA,isIterable:kA};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)}ae.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:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const J4=lt.prototype,Q4={};["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=>{Q4[e]={value:e}});Object.defineProperties(lt,Q4);Object.defineProperty(J4,"isAxiosError",{value:!0});lt.from=(e,t,n,r,i,a)=>{const o=Object.create(J4);ae.toFlatObject(e,o,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(o,s,l,n,r,i),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const $A=null;function Tm(e){return ae.isPlainObject(e)||ae.isArray(e)}function eC(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function _b(e,t,n){return e?e.concat(t).map(function(i,a){return i=eC(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function EA(e){return ae.isArray(e)&&!e.some(Tm)}const MA=ae.toFlatObject(ae,{},null,function(t){return/^is[A-Z]/.test(t)});function df(e,t,n){if(!ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ae.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!ae.isUndefined(g[m])});const r=n.metaTokens,i=n.visitor||u,a=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(ae.isDate(p))return p.toISOString();if(ae.isBoolean(p))return p.toString();if(!l&&ae.isBlob(p))throw new lt("Blob is not supported. Use a Buffer instead.");return ae.isArrayBuffer(p)||ae.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let y=p;if(p&&!g&&typeof p=="object"){if(ae.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(ae.isArray(p)&&EA(p)||(ae.isFileList(p)||ae.endsWith(m,"[]"))&&(y=ae.toArray(p)))return m=eC(m),y.forEach(function(w,C){!(ae.isUndefined(w)||w===null)&&t.append(o===!0?_b([m],C,a):o===null?m:m+"[]",c(w))}),!1}return Tm(p)?!0:(t.append(_b(g,m,a),c(p)),!1)}const d=[],f=Object.assign(MA,{defaultVisitor:u,convertValue:c,isVisitable:Tm});function h(p,m){if(!ae.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),ae.forEach(p,function(y,_){(!(ae.isUndefined(y)||y===null)&&i.call(t,y,ae.isString(_)?_.trim():_,m,f))===!0&&h(y,m?m.concat(_):[_])}),d.pop()}}if(!ae.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Cb(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function p0(e,t){this._pairs=[],e&&df(e,this,t)}const tC=p0.prototype;tC.append=function(t,n){this._pairs.push([t,n])};tC.toString=function(t){const n=t?function(r){return t.call(this,r,Cb)}:Cb;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function OA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nC(e,t,n){if(!t)return e;const r=n&&n.encode||OA;ae.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(i?a=i(t,n):a=ae.isURLSearchParams(t)?t.toString():new p0(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}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){ae.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AA=typeof URLSearchParams<"u"?URLSearchParams:p0,RA=typeof FormData<"u"?FormData:null,DA=typeof Blob<"u"?Blob:null,IA={isBrowser:!0,classes:{URLSearchParams:AA,FormData:RA,Blob:DA},protocols:["http","https","file","blob","url","data"]},m0=typeof window<"u"&&typeof document<"u",km=typeof navigator=="object"&&navigator||void 0,jA=m0&&(!km||["ReactNative","NativeScript","NS"].indexOf(km.product)<0),NA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PA=m0&&window.location.href||"http://localhost",LA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:m0,hasStandardBrowserEnv:jA,hasStandardBrowserWebWorkerEnv:NA,navigator:km,origin:PA},Symbol.toStringTag,{value:"Module"})),En={...LA,...IA};function FA(e,t){return df(e,new En.classes.URLSearchParams,{visitor:function(n,r,i,a){return En.isNode&&ae.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function BA(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zA(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function iC(e){function t(n,r,i,a){let o=n[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=n.length;return o=!o&&ae.isArray(i)?i.length:o,l?(ae.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!ae.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&ae.isArray(i[o])&&(i[o]=zA(i[o])),!s)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,i)=>{t(BA(r),i,n,0)}),n}return null}function WA(e,t,n){if(ae.isString(e))try{return(t||JSON.parse)(e),ae.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ic={transitional:rC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=ae.isObject(t);if(a&&ae.isHTMLForm(t)&&(t=new FormData(t)),ae.isFormData(t))return i?JSON.stringify(iC(t)):t;if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t))return t;if(ae.isArrayBufferView(t))return t.buffer;if(ae.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return FA(t,this.formSerializer).toString();if((s=ae.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return df(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),WA(t)):t}],transformResponse:[function(t){const n=this.transitional||Ic.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(ae.isResponse(t)||ae.isReadableStream(t))return t;if(t&&ae.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)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:En.classes.FormData,Blob:En.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ae.forEach(["delete","get","head","post","put","patch"],e=>{Ic.headers[e]={}});const UA=ae.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"]),HA=e=>{const t={};let n,r,i;return e&&e.split(`
221
+ `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&UA[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Tb=Symbol("internals");function Js(e){return e&&String(e).trim().toLowerCase()}function Nu(e){return e===!1||e==null?e:ae.isArray(e)?e.map(Nu):String(e)}function VA(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 qA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ap(e,t,n,r,i){if(ae.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ae.isString(t)){if(ae.isString(r))return t.indexOf(r)!==-1;if(ae.isRegExp(r))return r.test(t)}}function YA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function GA(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}let Zn=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=Js(l);if(!u)throw new Error("header name must be a non-empty string");const d=ae.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Nu(s))}const o=(s,l)=>ae.forEach(s,(c,u)=>a(c,u,l));if(ae.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(ae.isString(t)&&(t=t.trim())&&!qA(t))o(HA(t),n);else if(ae.isObject(t)&&ae.isIterable(t)){let s={},l,c;for(const u of t){if(!ae.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?ae.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}o(s,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=Js(t),t){const r=ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return VA(i);if(ae.isFunction(n))return n.call(this,i,r);if(ae.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Js(t),t){const r=ae.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ap(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=Js(o),o){const s=ae.findKey(r,o);s&&(!n||ap(r,r[s],s,n))&&(delete r[s],i=!0)}}return ae.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||ap(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return ae.forEach(this,(i,a)=>{const o=ae.findKey(r,a);if(o){n[o]=Nu(i),delete n[a];return}const s=t?YA(a):String(a).trim();s!==a&&delete n[a],n[s]=Nu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ae.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ae.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[Tb]=this[Tb]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Js(o);r[s]||(GA(i,o),r[s]=!0)}return ae.isArray(t)?t.forEach(a):a(t),this}};Zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(Zn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ae.freezeMethods(Zn);function op(e,t){const n=this||Ic,r=t||n,i=Zn.from(r.headers);let a=r.data;return ae.forEach(e,function(s){a=s.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function aC(e){return!!(e&&e.__CANCEL__)}function ks(e,t,n){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(ks,lt,{__CANCEL__:!0});function oC(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 ZA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function KA(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[a];o||(o=c),n[i]=l,r[i]=c;let d=a,f=0;for(;d!==i;)f+=n[d++],d=d%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(f*1e3/h):void 0}}function XA(e,t){let n=0,r=1e3/t,i,a;const o=(c,u=Date.now())=>{n=u,i=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?o(c,u):(i=c,a||(a=setTimeout(()=>{a=null,o(i)},r-d)))},()=>i&&o(i)]}const id=(e,t,n=3)=>{let r=0;const i=KA(50,250);return XA(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},kb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},$b=e=>(...t)=>ae.asap(()=>e(...t)),JA=En.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,En.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(En.origin),En.navigator&&/(msie|trident)/i.test(En.navigator.userAgent)):()=>!0,QA=En.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];ae.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ae.isString(r)&&s.push(`path=${r}`),ae.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),ae.isString(o)&&s.push(`SameSite=${o}`),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 eR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sC(e,t,n){let r=!eR(t);return e&&(r||n==!1)?tR(e,t):t}const Eb=e=>e instanceof Zn?{...e}:e;function Ua(e,t){t=t||{};const n={};function r(c,u,d,f){return ae.isPlainObject(c)&&ae.isPlainObject(u)?ae.merge.call({caseless:f},c,u):ae.isPlainObject(u)?ae.merge({},u):ae.isArray(u)?u.slice():u}function i(c,u,d,f){if(ae.isUndefined(u)){if(!ae.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function a(c,u){if(!ae.isUndefined(u))return r(void 0,u)}function o(c,u){if(ae.isUndefined(u)){if(!ae.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:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,d)=>i(Eb(c),Eb(u),d,!0)};return ae.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,f=d(e[u],t[u],u);ae.isUndefined(f)&&d!==s||(n[u]=f)}),n}const lC=e=>{const t=Ua({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Zn.from(o),t.url=nC(sC(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ae.isFormData(n)){if(En.hasStandardBrowserEnv||En.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(ae.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&o.set(u,d)})}}if(En.hasStandardBrowserEnv&&(r&&ae.isFunction(r)&&(r=r(t)),r||r!==!1&&JA(t.url))){const l=i&&a&&QA.read(a);l&&o.set(i,l)}return t},nR=typeof XMLHttpRequest<"u",rR=nR&&function(e){return new Promise(function(n,r){const i=lC(e);let a=i.data;const o=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 y(){if(!g)return;const w=Zn.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};oC(function(E){n(E),m()},function(E){r(E),m()},x),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new lt("Request aborted",lt.ECONNABORTED,e,g)),g=null)},g.onerror=function(C){const x=C&&C.message?C.message:"Network Error",S=new lt(x,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 x=i.transitional||rC;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new lt(C,x.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,e,g)),g=null},a===void 0&&o.setContentType(null),"setRequestHeader"in g&&ae.forEach(o.toJSON(),function(C,x){g.setRequestHeader(x,C)}),ae.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&([f,p]=id(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([d,h]=id(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(u=w=>{g&&(r(!w||w.type?new ks(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 _=ZA(i.url);if(_&&En.protocols.indexOf(_)===-1){r(new lt("Unsupported protocol "+_+":",lt.ERR_BAD_REQUEST,e));return}g.send(a||null)})},iR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const a=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof lt?u:new ks(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new lt(`timeout ${t} of ms exceeded`,lt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:l}=r;return l.unsubscribe=()=>ae.asap(s),l}},aR=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},oR=async function*(e,t){for await(const n of sR(e))yield*aR(n,t)},sR=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()}},Mb=(e,t,n,r)=>{const i=oR(e,t);let a=0,o,s=l=>{o||(o=!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=a+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},Ob=64*1024,{isFunction:du}=ae,lR=(({Request:e,Response:t})=>({Request:e,Response:t}))(ae.global),{ReadableStream:Ab,TextEncoder:Rb}=ae.global,Db=(e,...t)=>{try{return!!e(...t)}catch{return!1}},cR=e=>{e=ae.merge.call({skipUndefined:!0},lR,e);const{fetch:t,Request:n,Response:r}=e,i=t?du(t):typeof fetch=="function",a=du(n),o=du(r);if(!i)return!1;const s=i&&du(Ab),l=i&&(typeof Rb=="function"?(p=>m=>p.encode(m))(new Rb):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=a&&s&&Db(()=>{let p=!1;const m=new n(En.origin,{body:new Ab,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=o&&s&&Db(()=>ae.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 y=m&&m[p];if(y)return y.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(ae.isBlob(p))return p.size;if(ae.isSpecCompliantForm(p))return(await new n(En.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(ae.isArrayBufferView(p)||ae.isArrayBuffer(p))return p.byteLength;if(ae.isURLSearchParams(p)&&(p=p+""),ae.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const g=ae.toFiniteNumber(p.getContentLength());return g??f(m)};return async p=>{let{url:m,method:g,data:y,signal:_,cancelToken:w,timeout:C,onDownloadProgress:x,onUploadProgress:S,responseType:E,headers:k,withCredentials:T="same-origin",fetchOptions:D}=lC(p),$=t||fetch;E=E?(E+"").toLowerCase():"text";let M=iR([_,w&&w.toAbortSignal()],C),R=null;const I=M&&M.unsubscribe&&(()=>{M.unsubscribe()});let j;try{if(S&&c&&g!=="get"&&g!=="head"&&(j=await h(k,y))!==0){let W=new n(m,{method:"POST",body:y,duplex:"half"}),H;if(ae.isFormData(y)&&(H=W.headers.get("content-type"))&&k.setContentType(H),W.body){const[q,Z]=kb(j,id($b(S)));y=Mb(W.body,Ob,q,Z)}}ae.isString(T)||(T=T?"include":"omit");const A=a&&"credentials"in n.prototype,O={...D,signal:M,method:g.toUpperCase(),headers:k.normalize().toJSON(),body:y,duplex:"half",credentials:A?T:void 0};R=a&&new n(m,O);let L=await(a?$(R,D):$(m,O));const F=u&&(E==="stream"||E==="response");if(u&&(x||F&&I)){const W={};["status","statusText","headers"].forEach(K=>{W[K]=L[K]});const H=ae.toFiniteNumber(L.headers.get("content-length")),[q,Z]=x&&kb(H,id($b(x),!0))||[];L=new r(Mb(L.body,Ob,q,()=>{Z&&Z(),I&&I()}),W)}E=E||"text";let P=await d[ae.findKey(d,E)||"text"](L,p);return!F&&I&&I(),await new Promise((W,H)=>{oC(W,H,{data:P,headers:Zn.from(L.headers),status:L.status,statusText:L.statusText,config:p,request:R})})}catch(A){throw I&&I(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,p,R),{cause:A.cause||A}):lt.from(A,A&&A.code,p,R)}}},uR=new Map,cC=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let o=a.length,s=o,l,c,u=uR;for(;s--;)l=a[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:cR(t)),u=c;return c};cC();const g0={http:$A,xhr:rR,fetch:{get:cC}};ae.forEach(g0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ib=e=>`- ${e}`,dR=e=>ae.isFunction(e)||e===null||e===!1;function fR(e,t){e=ae.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let o=0;o<n;o++){r=e[o];let s;if(i=r,!dR(r)&&(i=g0[(s=String(r)).toLowerCase()],i===void 0))throw new lt(`Unknown adapter '${s}'`);if(i&&(ae.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?o.length>1?`since :
223
+ `+o.map(Ib).join(`
224
+ `):" "+Ib(o[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const uC={getAdapter:fR,adapters:g0};function sp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ks(null,e)}function jb(e){return sp(e),e.headers=Zn.from(e.headers),e.data=op.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),uC.getAdapter(e.adapter||Ic.adapter,e)(e).then(function(r){return sp(e),r.data=op.call(e,e.transformResponse,r),r.headers=Zn.from(r.headers),r},function(r){return aC(r)||(sp(e),r&&r.response&&(r.response.data=op.call(e,e.transformResponse,r.response),r.response.headers=Zn.from(r.response.headers))),Promise.reject(r)})}const dC="1.13.2",ff={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ff[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Nb={};ff.transitional=function(t,n,r){function i(a,o){return"[Axios v"+dC+"] Transitional option '"+a+"'"+o+(r?". "+r:"")}return(a,o,s)=>{if(t===!1)throw new lt(i(o," has been removed"+(n?" in "+n:"")),lt.ERR_DEPRECATED);return n&&!Nb[o]&&(Nb[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,s):!0}};ff.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hR(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 a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new lt("option "+a+" must be "+l,lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new lt("Unknown option "+a,lt.ERR_BAD_OPTION)}}const Pu={assertOptions:hR,validators:ff},Ir=Pu.validators;let Na=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 a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
225
+ `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ua(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Pu.assertOptions(r,{silentJSONParsing:Ir.transitional(Ir.boolean),forcedJSONParsing:Ir.transitional(Ir.boolean),clarifyTimeoutError:Ir.transitional(Ir.boolean)},!1),i!=null&&(ae.isFunction(i)?n.paramsSerializer={serialize:i}:Pu.assertOptions(i,{encode:Ir.function,serialize:Ir.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Pu.assertOptions(n,{baseUrl:Ir.spelling("baseURL"),withXsrfToken:Ir.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&ae.merge(a.common,a[n.method]);a&&ae.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),n.headers=Zn.concat(o,a);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=[jb.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=jb.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=Ua(this.defaults,t);const n=sC(t.baseURL,t.url,t.allowAbsoluteUrls);return nC(n,t.params,t.paramsSerializer)}};ae.forEach(["delete","get","head","options"],function(t){Na.prototype[t]=function(n,r){return this.request(Ua(r||{},{method:t,url:n,data:(r||{}).data}))}});ae.forEach(["post","put","patch"],function(t){function n(r){return function(a,o,s){return this.request(Ua(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Na.prototype[t]=n(),Na.prototype[t+"Form"]=n(!0)});let pR=class fC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(i=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(a,o,s){r.reason||(r.reason=new ks(a,o,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 fC(function(i){t=i}),cancel:t}}};function mR(e){return function(n){return e.apply(null,n)}}function gR(e){return ae.isObject(e)&&e.isAxiosError===!0}const $m={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($m).forEach(([e,t])=>{$m[t]=e});function hC(e){const t=new Na(e),n=H4(Na.prototype.request,t);return ae.extend(n,Na.prototype,t,{allOwnKeys:!0}),ae.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return hC(Ua(e,i))},n}const Jt=hC(Ic);Jt.Axios=Na;Jt.CanceledError=ks;Jt.CancelToken=pR;Jt.isCancel=aC;Jt.VERSION=dC;Jt.toFormData=df;Jt.AxiosError=lt;Jt.Cancel=Jt.CanceledError;Jt.all=function(t){return Promise.all(t)};Jt.spread=mR;Jt.isAxiosError=gR;Jt.mergeConfig=Ua;Jt.AxiosHeaders=Zn;Jt.formToJSON=e=>iC(ae.isHTMLForm(e)?new FormData(e):e);Jt.getAdapter=uC.getAdapter;Jt.HttpStatusCode=$m;Jt.default=Jt;const{Axios:Zpe,AxiosError:Kpe,CanceledError:Xpe,isCancel:Jpe,CancelToken:Qpe,VERSION:eme,all:tme,Cancel:nme,isAxiosError:rme,spread:ime,toFormData:ame,AxiosHeaders:ome,HttpStatusCode:sme,formToJSON:lme,getAdapter:cme,mergeConfig:ume}=Jt;var fu={};/*!
226
+ * cookie
227
+ * Copyright(c) 2012-2014 Roman Shtylman
228
+ * Copyright(c) 2015 Douglas Christopher Wilson
229
+ * MIT Licensed
230
+ */var Pb;function vR(){if(Pb)return fu;Pb=1,fu.parse=o,fu.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,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function o(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 y=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 x=s(h,_,w),S=l(h,w,x),E=h.slice(x,S);if(!t.call(m,E)){var k=s(h,w+1,C),T=l(h,C,k);h.charCodeAt(k)===34&&h.charCodeAt(T-1)===34&&(k++,T--);var D=h.slice(k,T);m[E]=f(D,y)}_=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 y=g(p);if(!r.test(y))throw new TypeError("argument val is invalid");var _=h+"="+y;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(!a.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 x=typeof m.priority=="string"?m.priority.toLowerCase():m.priority;switch(x){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 fu}var Lu=vR();function bR(){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 yR(e){return typeof e=="string"?Lu.parse(e):typeof e=="object"&&e!==null?e:{}}function lp(e,t={}){const n=xR(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function xR(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class wR{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Lu.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=yR(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=bR()}_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:lp(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),lp(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=lp(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=Lu.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=Lu.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 pC=he.createContext(new wR),{Provider:dme,Consumer:fme}=pC;var hu={exports:{}},Nt={};/** @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 Lb;function _R(){if(Lb)return Nt;Lb=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,a=e?Symbol.for("react.profiler"):60114,o=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,y=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case t:switch(x=x.type,x){case l:case c:case r:case a:case i:case d:return x;default:switch(x=x&&x.$$typeof,x){case s:case u:case p:case h:case o:return x;default:return S}}case n:return S}}}function C(x){return w(x)===c}return Nt.AsyncMode=l,Nt.ConcurrentMode=c,Nt.ContextConsumer=s,Nt.ContextProvider=o,Nt.Element=t,Nt.ForwardRef=u,Nt.Fragment=r,Nt.Lazy=p,Nt.Memo=h,Nt.Portal=n,Nt.Profiler=a,Nt.StrictMode=i,Nt.Suspense=d,Nt.isAsyncMode=function(x){return C(x)||w(x)===l},Nt.isConcurrentMode=C,Nt.isContextConsumer=function(x){return w(x)===s},Nt.isContextProvider=function(x){return w(x)===o},Nt.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},Nt.isForwardRef=function(x){return w(x)===u},Nt.isFragment=function(x){return w(x)===r},Nt.isLazy=function(x){return w(x)===p},Nt.isMemo=function(x){return w(x)===h},Nt.isPortal=function(x){return w(x)===n},Nt.isProfiler=function(x){return w(x)===a},Nt.isStrictMode=function(x){return w(x)===i},Nt.isSuspense=function(x){return w(x)===d},Nt.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===c||x===a||x===i||x===d||x===f||typeof x=="object"&&x!==null&&(x.$$typeof===p||x.$$typeof===h||x.$$typeof===o||x.$$typeof===s||x.$$typeof===u||x.$$typeof===g||x.$$typeof===y||x.$$typeof===_||x.$$typeof===m)},Nt.typeOf=w,Nt}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 Fb;function CR(){return Fb||(Fb=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,a=e?Symbol.for("react.profiler"):60114,o=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,y=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function w(N){return typeof N=="string"||typeof N=="function"||N===r||N===c||N===a||N===i||N===d||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===p||N.$$typeof===h||N.$$typeof===o||N.$$typeof===s||N.$$typeof===u||N.$$typeof===g||N.$$typeof===y||N.$$typeof===_||N.$$typeof===m)}function C(N){if(typeof N=="object"&&N!==null){var ee=N.$$typeof;switch(ee){case t:var Q=N.type;switch(Q){case l:case c:case r:case a:case i:case d:return Q;default:var X=Q&&Q.$$typeof;switch(X){case s:case u:case p:case h:case o:return X;default:return ee}}case n:return ee}}}var x=l,S=c,E=s,k=o,T=t,D=u,$=r,M=p,R=h,I=n,j=a,A=i,O=d,L=!1;function F(N){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.")),P(N)||C(N)===l}function P(N){return C(N)===c}function W(N){return C(N)===s}function H(N){return C(N)===o}function q(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Z(N){return C(N)===u}function K(N){return C(N)===r}function te(N){return C(N)===p}function ne(N){return C(N)===h}function U(N){return C(N)===n}function B(N){return C(N)===a}function z(N){return C(N)===i}function V(N){return C(N)===d}Pt.AsyncMode=x,Pt.ConcurrentMode=S,Pt.ContextConsumer=E,Pt.ContextProvider=k,Pt.Element=T,Pt.ForwardRef=D,Pt.Fragment=$,Pt.Lazy=M,Pt.Memo=R,Pt.Portal=I,Pt.Profiler=j,Pt.StrictMode=A,Pt.Suspense=O,Pt.isAsyncMode=F,Pt.isConcurrentMode=P,Pt.isContextConsumer=W,Pt.isContextProvider=H,Pt.isElement=q,Pt.isForwardRef=Z,Pt.isFragment=K,Pt.isLazy=te,Pt.isMemo=ne,Pt.isPortal=U,Pt.isProfiler=B,Pt.isStrictMode=z,Pt.isSuspense=V,Pt.isValidElementType=w,Pt.typeOf=C}()),Pt}var Bb;function SR(){return Bb||(Bb=1,process.env.NODE_ENV==="production"?hu.exports=_R():hu.exports=CR()),hu.exports}var cp,zb;function TR(){if(zb)return cp;zb=1;var e=SR(),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},a={};a[e.ForwardRef]=r,a[e.Memo]=i;function o(p){return e.isMemo(p)?i:a[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 y=d(m);y&&y!==f&&h(p,y,g)}var _=l(m);c&&(_=_.concat(c(m)));for(var w=o(p),C=o(m),x=0;x<_.length;++x){var S=_[x];if(!n[S]&&!(g&&g[S])&&!(C&&C[S])&&!(w&&w[S])){var E=u(m,S);try{s(p,S,E)}catch{}}}}return p}return cp=h,cp}TR();function kR(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function v0(e,t){const n=v.useContext(pC);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=v.useState(()=>n.getAll(i));kR()&&v.useLayoutEffect(()=>{function u(){const d=n.getAll(i);$R(e||null,d,a)&&o(d)}return n.addChangeListener(u),()=>{n.removeChangeListener(u)}},[n,a]);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[a,s,l,c]}function $R(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const ER=()=>{const e=De.c(12),{axiosOptions:t,cookieDomain:n}=v.useContext(Qt);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=["Authorization"],e[0]=r):r=e[0];const[,i,a]=v0(r);let o;e[1]!==t?(o=Jt.create(t),e[1]=t,e[2]=o):o=e[2];const s=o,l=MR;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:window.location.protocol==="https:",sameSite:"none",domain:n,expires:Tw(new Date(Date.now()),24)}),g.data)).catch(OR),e[3]=s,e[4]=n,e[5]=i,e[6]=c):c=e[6];const u=c;let d;e[7]!==a?(d=()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),window.dispatchEvent(new Event("dev-auth-change")),a("Authorization")},e[7]=a,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 MR(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function OR(e){return console.log(e),null}const AR=()=>{const e=De.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=v0(t),{msalScopes:r,msalExtraScopes:i}=v.useContext(af),{instance:a,inProgress:o}=$1.useMsal(),s=$1.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]!==o?(u=()=>!c()&&o!==QT.InteractionStatus.None,e[3]=c,e[4]=o,e[5]=u):u=e[5];const d=u;let f;e[6]!==a||e[7]!==i||e[8]!==r?(f=async()=>a.loginRedirect({scopes:r,extraScopesToConsent:i}).then(RR).catch(DR),e[6]=a,e[7]=i,e[8]=r,e[9]=f):f=e[9];const h=f;let p;e[10]!==a||e[11]!==n?(p=()=>{a.logout(),localStorage.removeItem("user"),n("Authorization")},e[10]=a,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 RR(){return""}function DR(){return null}const b0=()=>{const e=De.c(12),{useMsal:t}=v.useContext(af),n=ER(),r=AR();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 a=i,o=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]!==o||e[8]!==s||e[9]!==l||e[10]!==a?(c={isAuthenticated:o,isAuthenticating:s,login:a,logout:l},e[7]=o,e[8]=s,e[9]=l,e[10]=a,e[11]=c):c=e[11],c};function IR(){return!1}const jR="_toast_1s57i_1",Qs={toast:jR},NR=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}},hf=()=>{const e=De.c(1),t=PR;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function PR(e,t){const n=D4(e),r=NR(t),i=b.jsxs(b.Fragment,{children:[n,b.jsx(h4,{onClick:()=>So.dismiss(n),type:"button",style:{position:"absolute",fontSize:"12px",top:"calc(50% - 6px)",right:"8px"}})]});e:switch(t){case"success":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(gO,{size:12}),className:le("luminus-toast-success rounded shadow bg-success",Qs.toast)});break e}case"danger":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(aO,{size:12}),className:le("luminus-toast-danger rounded shadow bg-danger",Qs.toast)});break e}case"warning":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(eO,{size:12}),className:le("luminus-toast-warning rounded shadow bg-warning",Qs.toast)});break e}case"info":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(nO,{size:12}),className:le("luminus-toast-info rounded shadow bg-info",Qs.toast)});break e}case"prompt":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(iO,{size:12}),className:le("luminus-toast-prompt rounded shadow bg-light",Qs.toast)});break e}}}const LR=Jt.CancelToken,jc=e=>{const{authenticated:t=!0,differentBaseUrl:n,silent:r=!1,customToken:i,ignoreDelegation:a,noToastOnStatus:o}={...e},{language:s,axiosOptions:l,texts:{axios:c}}=v.useContext(Qt),{delegation:u}=v.useContext(k4),{getToken:d}=v.useContext(af),f=v.useMemo(()=>(u==null?void 0:u.id)??null,[u==null?void 0:u.id]),{addNotification:h}=hf(),{isAuthenticating:p,isAuthenticated:m}=b0(),g=v.useRef(null),y=v.useRef(null),_=v.useMemo(()=>{const x=Jt.create(l);return x.interceptors.request.use(S=>g.current(S),S=>Promise.reject(S)),x.interceptors.response.use(S=>S,S=>y.current(S)),x},[l]),w=v.useCallback(async x=>{var E,k,T;if(t&&!x.headers.Authorization){if(p())return Promise.reject(new Error("Authentication in progress"));if(!m())return Promise.reject(new Error("Not authenticated"));const D=i?{token:i,expiresOn:Tw(new Date(Date.now()),1)}:await d();if(!D)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(Ow(D.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));x.headers.Authorization=`Bearer ${D.token}`}f!==null&&!a&&(x.headers.DelegationId=f.toString());const S=localStorage.getItem("search-use-asterisk")!=="false";return x.headers["Search-Use-Asterisk"]=S?"true":"false",(E=x.url)!=null&&E.includes("culture=")?x.url=(k=x.url)==null?void 0:k.replace(/culture=[a-z]{2}/,`culture=${s}`):x.url=`${x.url}${(T=x.url)!=null&&T.includes("?")?"&":"?"}culture=${s}`,x},[t,d,s,i,f,a,p,m]),C=v.useCallback(async x=>{if(Jt.isCancel(x)||x.message==="Authentication in progress"||x.message==="No bearer token"||x.message==="Token expired")return Promise.reject(x);if(!x.response)return x.message==="Network Error"?!r&&h(c.networkError,"danger"):!r&&h(c.unexpectedError,"danger"),Promise.reject(x);let S;if(x.response.data instanceof Blob?S=await M4(x.response.data):S=of(x.response.data),S.length>0){const k=S.find(T=>T.name.toLowerCase()==="others");return k?(!r&&h(k.errors,"danger"),Promise.reject(x)):(!r&&h(c.validationError,"warning"),Promise.reject(x))}const E=A4(x);return E!==null?(!r&&h(`${c.permissionError}: ${f0(", ",...E)}`,"danger"),Promise.reject(x)):(o??[]).includes(x.response.status)?Promise.reject(x):x.response.status===403?(!r&&h(c.forbiddenError,"danger"),Promise.reject(x)):(!r&&h(c.unexpectedError,"danger"),Promise.reject(x))},[h,c.forbiddenError,c.networkError,c.permissionError,c.unexpectedError,c.validationError,r,o]);return g.current=w,y.current=C,v.useEffect(()=>{n&&(_.defaults.baseURL=n)},[n,_.defaults]),_};let gl;const y0=()=>{const e=De.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:a}=v.useContext(m4);let o;e[0]!==i?(o=()=>{i()},e[0]=i,e[1]=o):o=e[1];const s=o;let l;e[2]!==s?(l=()=>{s(),gl&&gl(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),gl&&gl(!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(FR)),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]!==a?(p={confirm:h,onConfirm:c,onCancel:d,show:t,text:n,textSm:a},e[8]=h,e[9]=d,e[10]=c,e[11]=t,e[12]=n,e[13]=a,e[14]=p):p=e[14],p};function FR(e){gl=e}var _t;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const o of i)a[o]=o;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(s=>typeof i[i[s]]!="number"),o={};for(const s of a)o[s]=i[s];return e.objectValues(o)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&a.push(o);return a},e.find=(i,a)=>{for(const o of i)if(a(o))return o},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(_t||(_t={}));var Em;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Em||(Em={}));const Se=_t.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}},ge=_t.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"]),BR=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class tr 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(a){return a.message},r={_errors:[]},i=a=>{for(const o of a.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let s=r,l=0;for(;l<o.path.length;){const c=o.path[l];l===o.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(n(o))):s[c]=s[c]||{_errors:[]},s=s[c],l++}}};return i(this),r}static assert(t){if(!(t instanceof tr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,_t.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 a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}tr.create=e=>new tr(e);const us=(e,t)=>{let n;switch(e.code){case ge.invalid_type:e.received===Se.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ge.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,_t.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:n=`Unrecognized key(s) in object: ${_t.joinValues(e.keys,", ")}`;break;case ge.invalid_union:n="Invalid input";break;case ge.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${_t.joinValues(e.options)}`;break;case ge.invalid_enum_value:n=`Invalid enum value. Expected ${_t.joinValues(e.options)}, received '${e.received}'`;break;case ge.invalid_arguments:n="Invalid function arguments";break;case ge.invalid_return_type:n="Invalid function return type";break;case ge.invalid_date:n="Invalid date";break;case ge.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}"`:_t.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ge.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 ge.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 ge.custom:n="Invalid input";break;case ge.invalid_intersection_types:n="Intersection results could not be merged";break;case ge.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ge.not_finite:n="Number must be finite";break;default:n=t.defaultError,_t.assertNever(e)}return{message:n}};let mC=us;function zR(e){mC=e}function ad(){return mC}const od=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s="";const l=r.filter(c=>!!c).slice().reverse();for(const c of l)s=c(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},WR=[];function _e(e,t){const n=ad(),r=od({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===us?void 0:us].filter(i=>!!i)});e.common.issues.push(r)}class An{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 Ve;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 a=await i.key,o=await i.value;r.push({key:a,value:o})}return An.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:o}=i;if(a.status==="aborted"||o.status==="aborted")return Ve;a.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(r[a.value]=o.value)}return{status:t.value,value:r}}}const Ve=Object.freeze({status:"aborted"}),Lo=e=>({status:"dirty",value:e}),Pn=e=>({status:"valid",value:e}),Mm=e=>e.status==="aborted",Om=e=>e.status==="dirty",Ha=e=>e.status==="valid",Nl=e=>typeof Promise<"u"&&e instanceof Promise;var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ae||(Ae={}));class Hr{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 Wb=(e,t)=>{if(Ha(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 tr(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:(o,s)=>{const{message:l}=e;return o.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??r??s.defaultError}:o.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 An,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(Nl(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 Wb(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 a=this._parseSync({data:t,path:[],parent:n});return Ha(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.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(a=>Ha(a)?{value:a.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}),a=await(Nl(i)?i:Promise.resolve(i));return Wb(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const o=t(i),s=()=>a.addIssue({code:ge.custom,...r(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(l=>l?!0:(s(),!1)):o?!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:Ge.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 zr.create(this,this._def)}nullable(){return ea.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tr.create(this)}promise(){return fs.create(this,this._def)}or(t){return Bl.create([this,t],this._def)}and(t){return zl.create(this,t,this._def)}transform(t){return new $r({...ct(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ql({...ct(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new x0({typeName:Ge.ZodBranded,type:this,...ct(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Yl({...ct(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Nc.create(this,t)}readonly(){return Gl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const UR=/^c[^\s-]{8,}$/i,HR=/^[0-9a-z]+$/,VR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,qR=/^[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,YR=/^[a-z0-9_-]{21}$/i,GR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ZR=/^[-+]?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)?)??$/,KR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,XR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let up;const JR=/^(?:(?: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])$/,QR=/^(?:(?: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])$/,e9=/^(([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]))$/,t9=/^(([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])$/,n9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,r9=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,gC="((\\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])))",i9=new RegExp(`^${gC}$`);function vC(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 a9(e){return new RegExp(`^${vC(e)}$`)}function bC(e){let t=`${gC}T${vC(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 o9(e,t){return!!((t==="v4"||!t)&&JR.test(e)||(t==="v6"||!t)&&e9.test(e))}function s9(e,t){if(!GR.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 l9(e,t){return!!((t==="v4"||!t)&&QR.test(e)||(t==="v6"||!t)&&t9.test(e))}class Cr extends pt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){const a=this._getOrReturnCtx(t);return _e(a,{code:ge.invalid_type,expected:Se.string,received:a.parsedType}),Ve}const r=new An;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const o=t.data.length>a.value,s=t.data.length<a.value;(o||s)&&(i=this._getOrReturnCtx(t,i),o?_e(i,{code:ge.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&_e(i,{code:ge.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")KR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"email",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")up||(up=new RegExp(XR,"u")),up.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"emoji",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")qR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"uuid",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")YR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"nanoid",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")UR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")HR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cuid2",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")VR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ulid",code:ge.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),_e(i,{validation:"url",code:ge.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"regex",code:ge.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?bC(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?i9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?a9(a).test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?ZR.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"duration",code:ge.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?o9(t.data,a.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"ip",code:ge.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?s9(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"jwt",code:ge.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?l9(t.data,a.version)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"cidr",code:ge.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?n9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64",code:ge.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?r9.test(t.data)||(i=this._getOrReturnCtx(t,i),_e(i,{validation:"base64url",code:ge.invalid_string,message:a.message}),r.dirty()):_t.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ge.invalid_string,...Ae.errToObj(r)})}_addCheck(t){return new Cr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ae.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ae.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,...Ae.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,...Ae.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ae.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new Cr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cr({...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}}Cr.create=e=>new Cr({checks:[],typeName:Ge.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});function c9(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),o=Number.parseInt(t.toFixed(i).replace(".",""));return a%o/10**i}class Xi 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 a=this._getOrReturnCtx(t);return _e(a,{code:ge.invalid_type,expected:Se.number,received:a.parsedType}),Ve}let r;const i=new An;for(const a of this._def.checks)a.kind==="int"?_t.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?c9(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.not_finite,message:a.message}),i.dirty()):_t.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,r,i){return new Xi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ae.toString(i)}]})}_addCheck(t){return new Xi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.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"&&_t.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)}}Xi.create=e=>new Xi({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ct(e)});class Ji 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 An;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),_e(r,{code:ge.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):_t.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:ge.invalid_type,expected:Se.bigint,received:n.parsedType}),Ve}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,r,i){return new Ji({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Ae.toString(i)}]})}_addCheck(t){return new Ji({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.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}}Ji.create=e=>new Ji({checks:[],typeName:Ge.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});class Pl 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:ge.invalid_type,expected:Se.boolean,received:r.parsedType}),Ve}return Pn(t.data)}}Pl.create=e=>new Pl({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ct(e)});class Va extends pt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){const a=this._getOrReturnCtx(t);return _e(a,{code:ge.invalid_type,expected:Se.date,received:a.parsedType}),Ve}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return _e(a,{code:ge.invalid_date}),Ve}const r=new An;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),_e(i,{code:ge.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):_t.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Va({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.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}}Va.create=e=>new Va({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...ct(e)});class sd extends pt{_parse(t){if(this._getType(t)!==Se.symbol){const r=this._getOrReturnCtx(t);return _e(r,{code:ge.invalid_type,expected:Se.symbol,received:r.parsedType}),Ve}return Pn(t.data)}}sd.create=e=>new sd({typeName:Ge.ZodSymbol,...ct(e)});class Ll extends pt{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:ge.invalid_type,expected:Se.undefined,received:r.parsedType}),Ve}return Pn(t.data)}}Ll.create=e=>new Ll({typeName:Ge.ZodUndefined,...ct(e)});class Fl extends pt{_parse(t){if(this._getType(t)!==Se.null){const r=this._getOrReturnCtx(t);return _e(r,{code:ge.invalid_type,expected:Se.null,received:r.parsedType}),Ve}return Pn(t.data)}}Fl.create=e=>new Fl({typeName:Ge.ZodNull,...ct(e)});class ds extends pt{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}}ds.create=e=>new ds({typeName:Ge.ZodAny,...ct(e)});class Pa extends pt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Pn(t.data)}}Pa.create=e=>new Pa({typeName:Ge.ZodUnknown,...ct(e)});class _i extends pt{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:ge.invalid_type,expected:Se.never,received:n.parsedType}),Ve}}_i.create=e=>new _i({typeName:Ge.ZodNever,...ct(e)});class ld extends pt{_parse(t){if(this._getType(t)!==Se.undefined){const r=this._getOrReturnCtx(t);return _e(r,{code:ge.invalid_type,expected:Se.void,received:r.parsedType}),Ve}return Pn(t.data)}}ld.create=e=>new ld({typeName:Ge.ZodVoid,...ct(e)});class Tr extends pt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Se.array)return _e(n,{code:ge.invalid_type,expected:Se.array,received:n.parsedType}),Ve;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(_e(n,{code:o?ge.too_big:ge.too_small,minimum:s?i.exactLength.value:void 0,maximum:o?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:ge.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:ge.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((o,s)=>i.type._parseAsync(new Hr(n,o,n.path,s)))).then(o=>An.mergeArray(r,o));const a=[...n.data].map((o,s)=>i.type._parseSync(new Hr(n,o,n.path,s)));return An.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new Tr({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new Tr({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new Tr({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Tr.create=(e,t)=>new Tr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...ct(t)});function Po(e){if(e instanceof rn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=zr.create(Po(r))}return new rn({...e._def,shape:()=>t})}else return e instanceof Tr?new Tr({...e._def,type:Po(e.element)}):e instanceof zr?zr.create(Po(e.unwrap())):e instanceof ea?ea.create(Po(e.unwrap())):e instanceof Vr?Vr.create(e.items.map(t=>Po(t))):e}class rn 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=_t.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:ge.invalid_type,expected:Se.object,received:c.parsedType}),Ve}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:o}=this._getCached(),s=[];if(!(this._def.catchall instanceof _i&&this._def.unknownKeys==="strip"))for(const c in i.data)o.includes(c)||s.push(c);const l=[];for(const c of o){const u=a[c],d=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Hr(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:ge.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 Hr(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=>An.mergeObjectSync(r,c)):An.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return Ae.errToObj,new rn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,o;const i=((o=(a=this._def).errorMap)==null?void 0:o.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:Ae.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new rn({...this._def,unknownKeys:"strip"})}passthrough(){return new rn({...this._def,unknownKeys:"passthrough"})}extend(t){return new rn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new rn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new rn({...this._def,catchall:t})}pick(t){const n={};for(const r of _t.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new rn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of _t.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new rn({...this._def,shape:()=>n})}deepPartial(){return Po(this)}partial(t){const n={};for(const r of _t.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new rn({...this._def,shape:()=>n})}required(t){const n={};for(const r of _t.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof zr;)a=a._def.innerType;n[r]=a}return new rn({...this._def,shape:()=>n})}keyof(){return yC(_t.objectKeys(this.shape))}}rn.create=(e,t)=>new rn({shape:()=>e,unknownKeys:"strip",catchall:_i.create(),typeName:Ge.ZodObject,...ct(t)});rn.strictCreate=(e,t)=>new rn({shape:()=>e,unknownKeys:"strict",catchall:_i.create(),typeName:Ge.ZodObject,...ct(t)});rn.lazycreate=(e,t)=>new rn({shape:e,unknownKeys:"strip",catchall:_i.create(),typeName:Ge.ZodObject,...ct(t)});class Bl extends pt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const s of a)if(s.result.status==="valid")return s.result;for(const s of a)if(s.result.status==="dirty")return n.common.issues.push(...s.ctx.common.issues),s.result;const o=a.map(s=>new tr(s.ctx.common.issues));return _e(n,{code:ge.invalid_union,unionErrors:o}),Ve}if(n.common.async)return Promise.all(r.map(async a=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(i);{let a;const o=[];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"&&!a&&(a={result:u,ctx:c}),c.common.issues.length&&o.push(c.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(l=>new tr(l));return _e(n,{code:ge.invalid_union,unionErrors:s}),Ve}}get options(){return this._def.options}}Bl.create=(e,t)=>new Bl({options:e,typeName:Ge.ZodUnion,...ct(t)});const oi=e=>e instanceof Ul?oi(e.schema):e instanceof $r?oi(e.innerType()):e instanceof Hl?[e.value]:e instanceof Qi?e.options:e instanceof Vl?_t.objectValues(e.enum):e instanceof ql?oi(e._def.innerType):e instanceof Ll?[void 0]:e instanceof Fl?[null]:e instanceof zr?[void 0,...oi(e.unwrap())]:e instanceof ea?[null,...oi(e.unwrap())]:e instanceof x0||e instanceof Gl?oi(e.unwrap()):e instanceof Yl?oi(e._def.innerType):[];class pf extends pt{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Se.object)return _e(n,{code:ge.invalid_type,expected:Se.object,received:n.parsedType}),Ve;const r=this.discriminator,i=n.data[r],a=this.optionsMap.get(i);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(_e(n,{code:ge.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ve)}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 a of n){const o=oi(a.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const s of o){if(i.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);i.set(s,a)}}return new pf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...ct(r)})}}function Am(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=_t.objectKeys(t),a=_t.objectKeys(e).filter(s=>i.indexOf(s)!==-1),o={...e,...t};for(const s of a){const l=Am(e[s],t[s]);if(!l.valid)return{valid:!1};o[s]=l.data}return{valid:!0,data:o}}else if(n===Se.array&&r===Se.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const o=e[a],s=t[a],l=Am(o,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 zl extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,o)=>{if(Mm(a)||Mm(o))return Ve;const s=Am(a.value,o.value);return s.valid?((Om(a)||Om(o))&&n.dirty(),{status:n.value,value:s.data}):(_e(r,{code:ge.invalid_intersection_types}),Ve)};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(([a,o])=>i(a,o)):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}))}}zl.create=(e,t,n)=>new zl({left:e,right:t,typeName:Ge.ZodIntersection,...ct(n)});class Vr extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.array)return _e(r,{code:ge.invalid_type,expected:Se.array,received:r.parsedType}),Ve;if(r.data.length<this._def.items.length)return _e(r,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ve;!this._def.rest&&r.data.length>this._def.items.length&&(_e(r,{code:ge.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((o,s)=>{const l=this._def.items[s]||this._def.rest;return l?l._parse(new Hr(r,o,r.path,s)):null}).filter(o=>!!o);return r.common.async?Promise.all(a).then(o=>An.mergeArray(n,o)):An.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Vr({...this._def,rest:t})}}Vr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Vr({items:e,typeName:Ge.ZodTuple,rest:null,...ct(t)})};class Wl 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:ge.invalid_type,expected:Se.object,received:r.parsedType}),Ve;const i=[],a=this._def.keyType,o=this._def.valueType;for(const s in r.data)i.push({key:a._parse(new Hr(r,s,r.path,s)),value:o._parse(new Hr(r,r.data[s],r.path,s)),alwaysSet:s in r.data});return r.common.async?An.mergeObjectAsync(n,i):An.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof pt?new Wl({keyType:t,valueType:n,typeName:Ge.ZodRecord,...ct(r)}):new Wl({keyType:Cr.create(),valueType:t,typeName:Ge.ZodRecord,...ct(n)})}}class cd 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:ge.invalid_type,expected:Se.map,received:r.parsedType}),Ve;const i=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([s,l],c)=>({key:i._parse(new Hr(r,s,r.path,[c,"key"])),value:a._parse(new Hr(r,l,r.path,[c,"value"]))}));if(r.common.async){const s=new Map;return Promise.resolve().then(async()=>{for(const l of o){const c=await l.key,u=await l.value;if(c.status==="aborted"||u.status==="aborted")return Ve;(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 o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return Ve;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}cd.create=(e,t,n)=>new cd({valueType:t,keyType:e,typeName:Ge.ZodMap,...ct(n)});class qa extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.set)return _e(r,{code:ge.invalid_type,expected:Se.set,received:r.parsedType}),Ve;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(_e(r,{code:ge.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:ge.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function o(l){const c=new Set;for(const u of l){if(u.status==="aborted")return Ve;u.status==="dirty"&&n.dirty(),c.add(u.value)}return{status:n.value,value:c}}const s=[...r.data.values()].map((l,c)=>a._parse(new Hr(r,l,r.path,c)));return r.common.async?Promise.all(s).then(l=>o(l)):o(s)}min(t,n){return new qa({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new qa({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}qa.create=(e,t)=>new qa({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...ct(t)});class Ho 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:ge.invalid_type,expected:Se.function,received:n.parsedType}),Ve;function r(s,l){return od({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ad(),us].filter(c=>!!c),issueData:{code:ge.invalid_arguments,argumentsError:l}})}function i(s,l){return od({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ad(),us].filter(c=>!!c),issueData:{code:ge.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof fs){const s=this;return Pn(async function(...l){const c=new tr([]),u=await s._def.args.parseAsync(l,a).catch(h=>{throw c.addIssue(r(l,h)),c}),d=await Reflect.apply(o,this,u);return await s._def.returns._def.type.parseAsync(d,a).catch(h=>{throw c.addIssue(i(d,h)),c})})}else{const s=this;return Pn(function(...l){const c=s._def.args.safeParse(l,a);if(!c.success)throw new tr([r(l,c.error)]);const u=Reflect.apply(o,this,c.data),d=s._def.returns.safeParse(u,a);if(!d.success)throw new tr([i(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ho({...this._def,args:Vr.create(t).rest(Pa.create())})}returns(t){return new Ho({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ho({args:t||Vr.create([]).rest(Pa.create()),returns:n||Pa.create(),typeName:Ge.ZodFunction,...ct(r)})}}class Ul 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})}}Ul.create=(e,t)=>new Ul({getter:e,typeName:Ge.ZodLazy,...ct(t)});class Hl extends pt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:ge.invalid_literal,expected:this._def.value}),Ve}return{status:"valid",value:t.data}}get value(){return this._def.value}}Hl.create=(e,t)=>new Hl({value:e,typeName:Ge.ZodLiteral,...ct(t)});function yC(e,t){return new Qi({values:e,typeName:Ge.ZodEnum,...ct(t)})}class Qi extends pt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return _e(n,{expected:_t.joinValues(r),received:n.parsedType,code:ge.invalid_type}),Ve}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:ge.invalid_enum_value,options:r}),Ve}return Pn(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 Qi.create(t,{...this._def,...n})}exclude(t,n=this._def){return Qi.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Qi.create=yC;class Vl extends pt{_parse(t){const n=_t.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Se.string&&r.parsedType!==Se.number){const i=_t.objectValues(n);return _e(r,{expected:_t.joinValues(i),received:r.parsedType,code:ge.invalid_type}),Ve}if(this._cache||(this._cache=new Set(_t.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=_t.objectValues(n);return _e(r,{received:r.data,code:ge.invalid_enum_value,options:i}),Ve}return Pn(t.data)}get enum(){return this._def.values}}Vl.create=(e,t)=>new Vl({values:e,typeName:Ge.ZodNativeEnum,...ct(t)});class fs 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:ge.invalid_type,expected:Se.promise,received:n.parsedType}),Ve;const r=n.parsedType===Se.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}fs.create=(e,t)=>new fs({type:e,typeName:Ge.ZodPromise,...ct(t)});class $r extends pt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{_e(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const o=i.transform(r.data,a);if(r.common.async)return Promise.resolve(o).then(async s=>{if(n.value==="aborted")return Ve;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?Ve:l.status==="dirty"||n.value==="dirty"?Lo(l.value):l});{if(n.value==="aborted")return Ve;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?Ve:s.status==="dirty"||n.value==="dirty"?Lo(s.value):s}}if(i.type==="refinement"){const o=s=>{const l=i.refinement(s,a);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"?Ve:(s.status==="dirty"&&n.dirty(),o(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"?Ve:(s.status==="dirty"&&n.dirty(),o(s.value).then(()=>({status:n.value,value:s.value}))))}if(i.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ha(o))return Ve;const s=i.transform(o.value,a);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(o=>Ha(o)?Promise.resolve(i.transform(o.value,a)).then(s=>({status:n.value,value:s})):Ve);_t.assertNever(i)}}$r.create=(e,t,n)=>new $r({schema:e,typeName:Ge.ZodEffects,effect:t,...ct(n)});$r.createWithPreprocess=(e,t,n)=>new $r({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...ct(n)});class zr extends pt{_parse(t){return this._getType(t)===Se.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:Ge.ZodOptional,...ct(t)});class ea extends pt{_parse(t){return this._getType(t)===Se.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ea.create=(e,t)=>new ea({innerType:e,typeName:Ge.ZodNullable,...ct(t)});class ql 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}}ql.create=(e,t)=>new ql({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ct(t)});class Yl 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 Nl(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new tr(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new tr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Yl.create=(e,t)=>new Yl({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ct(t)});class ud extends pt{_parse(t){if(this._getType(t)!==Se.nan){const r=this._getOrReturnCtx(t);return _e(r,{code:ge.invalid_type,expected:Se.nan,received:r.parsedType}),Ve}return{status:"valid",value:t.data}}}ud.create=e=>new ud({typeName:Ge.ZodNaN,...ct(e)});const u9=Symbol("zod_brand");class x0 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 Nc extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ve:a.status==="dirty"?(n.dirty(),Lo(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Ve: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 Nc({in:t,out:n,typeName:Ge.ZodPipeline})}}class Gl extends pt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Ha(i)&&(i.value=Object.freeze(i.value)),i);return Nl(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Gl.create=(e,t)=>new Gl({innerType:e,typeName:Ge.ZodReadonly,...ct(t)});function Ub(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function xC(e,t={},n){return e?ds.create().superRefine((r,i)=>{const a=e(r);if(a instanceof Promise)return a.then(o=>{if(!o){const s=Ub(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!a){const o=Ub(t,r),s=o.fatal??n??!0;i.addIssue({code:"custom",...o,fatal:s})}}):ds.create()}const d9={object:rn.lazycreate};var Ge;(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"})(Ge||(Ge={}));const f9=(e,t={message:`Input not instance of ${e.name}`})=>xC(n=>n instanceof e,t),w0=Cr.create,wC=Xi.create,h9=ud.create,p9=Ji.create,_C=Pl.create,m9=Va.create,g9=sd.create,v9=Ll.create,b9=Fl.create,CC=ds.create,y9=Pa.create,x9=_i.create,w9=ld.create,SC=Tr.create,hi=rn.create,_9=rn.strictCreate,C9=Bl.create,S9=pf.create,T9=zl.create,k9=Vr.create,$9=Wl.create,E9=cd.create,M9=qa.create,O9=Ho.create,A9=Ul.create,R9=Hl.create,TC=Qi.create,D9=Vl.create,I9=fs.create,Hb=$r.create,j9=zr.create,N9=ea.create,kC=$r.createWithPreprocess,P9=Nc.create,L9=()=>w0().optional(),F9=()=>wC().optional(),B9=()=>_C().optional(),vl={string:e=>Cr.create({...e,coerce:!0}),number:e=>Xi.create({...e,coerce:!0}),boolean:e=>Pl.create({...e,coerce:!0}),bigint:e=>Ji.create({...e,coerce:!0}),date:e=>Va.create({...e,coerce:!0})},z9=Ve,bl=Object.freeze(Object.defineProperty({__proto__:null,BRAND:u9,DIRTY:Lo,EMPTY_PATH:WR,INVALID:Ve,NEVER:z9,OK:Pn,ParseStatus:An,Schema:pt,ZodAny:ds,ZodArray:Tr,ZodBigInt:Ji,ZodBoolean:Pl,ZodBranded:x0,ZodCatch:Yl,ZodDate:Va,ZodDefault:ql,ZodDiscriminatedUnion:pf,ZodEffects:$r,ZodEnum:Qi,ZodError:tr,get ZodFirstPartyTypeKind(){return Ge},ZodFunction:Ho,ZodIntersection:zl,ZodIssueCode:ge,ZodLazy:Ul,ZodLiteral:Hl,ZodMap:cd,ZodNaN:ud,ZodNativeEnum:Vl,ZodNever:_i,ZodNull:Fl,ZodNullable:ea,ZodNumber:Xi,ZodObject:rn,ZodOptional:zr,ZodParsedType:Se,ZodPipeline:Nc,ZodPromise:fs,ZodReadonly:Gl,ZodRecord:Wl,ZodSchema:pt,ZodSet:qa,ZodString:Cr,ZodSymbol:sd,ZodTransformer:$r,ZodTuple:Vr,ZodType:pt,ZodUndefined:Ll,ZodUnion:Bl,ZodUnknown:Pa,ZodVoid:ld,addIssueToContext:_e,any:CC,array:SC,bigint:p9,boolean:_C,coerce:vl,custom:xC,date:m9,datetimeRegex:bC,defaultErrorMap:us,discriminatedUnion:S9,effect:Hb,enum:TC,function:O9,getErrorMap:ad,getParsedType:di,instanceof:f9,intersection:T9,isAborted:Mm,isAsync:Nl,isDirty:Om,isValid:Ha,late:d9,lazy:A9,literal:R9,makeIssue:od,map:E9,nan:h9,nativeEnum:D9,never:x9,null:b9,nullable:N9,number:wC,object:hi,get objectUtil(){return Em},oboolean:B9,onumber:F9,optional:j9,ostring:L9,pipeline:P9,preprocess:kC,promise:I9,quotelessJson:BR,record:$9,set:M9,setErrorMap:zR,strictObject:_9,string:w0,symbol:g9,transformer:Hb,tuple:k9,undefined:v9,union:C9,unknown:y9,get util(){return _t},void:w9},Symbol.toStringTag,{value:"Module"})),mf=()=>{const e=De.c(43),{texts:t}=v.useContext(Qt),{formValidation:n}=t;let r;e[0]!==n?(r=(O,L)=>{const F=L===void 0?!1:L;let P=(O!=null&&O.useCoerce?vl:bl).string({invalid_type_error:n.required,required_error:n.required});return F||(P=P.min(1,n.required)),O!=null&&O.email&&(P=P.email(n.invalidEmail)),O!=null&&O.length&&(P=P.min(O.length,n.length(O.length))),O!=null&&O.minLength&&(P=P.min(O.minLength,n.minLength(O.minLength))),O!=null&&O.maxLength&&(P=P.max(O.maxLength,n.maxLength(O.maxLength))),O!=null&&O.numeric&&(P=P.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),O!=null&&O.regex&&(P=P.regex(O.regex,n.invalidFormat)),P.transform(W9)},e[0]=n,e[1]=r):r=e[1];const i=r;let a;e[2]!==i?(a=O=>i(O,!1),e[2]=i,e[3]=a):a=e[3];const o=a;let s;e[4]!==i?(s=O=>i(O,!0).nullable().optional().transform(U9),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,F=(O==null?void 0:O.max)??Number.MAX_SAFE_INTEGER,P=(O!=null&&O.useCoerce?vl:bl).number({invalid_type_error:n.required,required_error:n.required}).min(L,n.lessThanMin(L)).max(F,n.moreThanMax(F));return P.transform(H9),P},e[6]=n,e[7]=c):c=e[7];const u=c;let d;e[8]!==u?(d=O=>u(O).nullable().optional().transform(V9),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?bl:vl).boolean({invalid_type_error:n.required,required_error:n.required}).transform(q9),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?vl:bl).string({invalid_type_error:n.required,required_error:n.required}).refine(N4,{message:n.invalidDate}).transform(Y9),e[12]=n.invalidDate,e[13]=n.required,e[14]=m):m=e[14];const g=m;let y;e[15]!==g?(y=O=>kC(G9,g(O).nullable().optional()).transform(Z9),e[15]=g,e[16]=y):y=e[16];const _=y;let w;e[17]!==n.required?(w=(O,L)=>TC(O,{invalid_type_error:n.required,required_error:n.required}).transform(K9),e[17]=n.required,e[18]=w):w=e[18];const C=w;let x;e[19]!==C?(x=(O,L)=>C(O,L).nullable().transform(X9),e[19]=C,e[20]=x):x=e[20];const S=x;let E;e[21]!==f?(E=O=>hi({id:f({useCoerce:!0})}).nullable().transform(J9),e[21]=f,e[22]=E):E=e[22];const k=E;let T;e[23]!==u?(T=O=>hi({id:u()}).transform(Q9),e[23]=u,e[24]=T):T=e[24];const D=T;let $;e[25]!==l?($=O=>hi({id:l({useCoerce:!0})}).nullable().transform(eD),e[25]=l,e[26]=$):$=e[26];const M=$;let R;e[27]!==o?(R=O=>hi({id:o()}).transform(tD),e[27]=o,e[28]=R):R=e[28];const I=R,j=rD;let A;return e[29]!==p||e[30]!==_||e[31]!==g||e[32]!==S||e[33]!==C||e[34]!==f||e[35]!==u||e[36]!==k||e[37]!==D||e[38]!==M||e[39]!==I||e[40]!==l||e[41]!==o?(A={zString:l,zStringRequired:o,zNumber:f,zNumberRequired:u,zBool:p,zDate:_,zDateRequired:g,zEnum:S,zEnumRequired:C,zObjectIdInt:k,zObjectIdIntRequired:D,zObjectIdStr:M,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]=k,e[37]=D,e[38]=M,e[39]=I,e[40]=l,e[41]=o,e[42]=A):A=e[42],A};function W9(e){return e??null}function U9(e){return e??null}function H9(e){return e??null}function V9(e){return e??null}function q9(e){return e??null}function Y9(e){return e??null}function G9(e){return e===""?null:e}function Z9(e){return e??null}function K9(e){return e??null}function X9(e){return e??null}function J9(e){return e??null}function Q9(e){return e??null}function eD(e){return e??null}function tD(e){return e??null}function nD(e){return Array.from(e??[])}function rD(e){const{required:t,multiple:n,maxFileSize:r}=e;return CC().transform(nD).refine(a=>!t||(a==null?void 0:a.length)>0,"File is required.").refine(a=>n||(a==null?void 0:a.length)<=1,"Multiple files not allowed.").refine(a=>a.every(o=>o.size<=r),`Maximum file size is ${os(r)}.`).transform(a=>(n?a:a==null?void 0:a[0])??null)}const $C=(e,t)=>{const n=De.c(4);let r,i;n[0]!==t||n[1]!==e?(r=()=>{const a=o=>{e.some(s=>s.current&&s.current.contains(o.target))||t()};return document.addEventListener("mouseup",a),()=>{document.removeEventListener("mouseup",a)}},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)},EC=()=>{const e=De.c(4),{user:t}=v.useContext(u0);let n;e[0]!==(t==null?void 0:t.permissions)?(n=(a,o)=>{const s=o===void 0?"any":o;return a.length===0?!0:s==="any"?a.some(l=>{var c;return(c=t==null?void 0:t.permissions)==null?void 0:c.includes(l)}):a.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},MC=(e,t)=>{const n=De.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 a,o;n[3]!==t?(a=()=>t===void 0?iD:(document.addEventListener("keyup",t),()=>{document.removeEventListener("keyup",t)}),o=[t],n[3]=t,n[4]=a,n[5]=o):(a=n[4],o=n[5]),v.useEffect(a,o)};function iD(){}const To={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},OC=(e,{loadOnInit:t=To.loadOnInit,enabled:n=To.enabled,silent:r=To.silent,nullStateBeforeLoad:i=To.nullStateBeforeLoad,nullStateOnFail:a=To.nullStateOnFail,customApiUrl:o,customBearerToken:s,dataTransformer:l}=To)=>{const c=jc({silent:r,customToken:s,differentBaseUrl:o}),[u,d]=v.useState(0),{startLoading:f,stopLoading:h}=v.useContext(Oc),p=v.useRef(0),{isAuthenticated:m}=b0(),[g,y]=v.useState(null),_=v.useRef(t??!1),w=v.useCallback(async(S,E)=>{if(!m()||n===!1)return null;d(T=>T+1),!r&&f(`loadData-${e}-${E}`),i&&y(null);let k;try{const T=await c.get(e,{signal:S}),D=l?l(T.data):T.data;y(D),k=D}catch(T){throw a&&y(null),T}finally{_.current=!1,d(T=>T-1),!r&&h(`loadData-${e}-${E}`)}return k},[m,n,r,f,e,i,c,l,a,h]),C=v.useCallback(async()=>{w()},[w]),x=v.useCallback(async()=>w(),[w]);return v.useEffect(()=>{if(t===!1)return;const S=new AbortController;return w(S.signal,++p.current),()=>{S.abort()}},[w,t]),{data:g,setData:y,reloadData:C,isLoading:_.current||u>0,reloadDataWithReturn:x}},_0=(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},AC=()=>{const{addNotification:e}=hf(),{texts:{clipboard:t}}=v.useContext(Qt);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(a){console.error(a),e(t.copyError,"danger")}},[e,t])}},Pc=()=>{const e=De.c(7),[t,n]=v.useState(window.innerWidth),[r,i]=v.useState(window.innerHeight);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{n(window.innerWidth),i(window.innerHeight)},e[0]=a):a=e[0];const o=a;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=()=>(window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)),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},RC=v.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),DC=v.createContext(void 0),Vb={falseIfNotInit:!1},ao=e=>{const{falseIfNotInit:t}=e===void 0?Vb:e,n=t===void 0?Vb.falseIfNotInit:t,r=v.useContext(DC);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1};class aD extends Error{constructor(t,n){const r=new.target.prototype;super(`${t}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class oD extends Error{constructor(t="A timeout occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class Rm extends Error{constructor(t="An abort occurred."){const n=new.target.prototype;super(t),this.__proto__=n}}class sD extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class lD extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class cD extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class uD extends Error{constructor(t){const n=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class dD 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 dd{constructor(){}log(t,n){}}dd.instance=new dd;const fD="10.0.0";class Fu{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 kr{static get isBrowser(){return!kr.isNode&&typeof window=="object"&&typeof window.document=="object"}static get isWebWorker(){return!kr.isNode&&typeof self=="object"&&"importScripts"in self}static get isReactNative(){return!kr.isNode&&typeof window=="object"&&typeof window.document>"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function IC(e,t){let n="";return hs(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${hD(e)}'`)):typeof e=="string"&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function hD(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 hs(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function pD(e,t,n,r,i,a){const o={},[s,l]=jC();o[s]=l,e.log(exports.LogLevel.Trace,`(${t} transport) sending data. ${IC(i,a.logMessageContent)}.`);const c=hs(i)?"arraybuffer":"text",u=await n.post(r,{content:i,headers:{...o,...a.headers},responseType:c,timeout:a.timeout,withCredentials:a.withCredentials});e.log(exports.LogLevel.Trace,`(${t} transport) request complete. Response status: ${u.statusCode}.`)}function mD(e){return e===void 0?new Dm(exports.LogLevel.Information):e===null?dd.instance:e.log!==void 0?e:new Dm(e)}class gD{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 Dm{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 jC(){let e="X-SignalR-User-Agent";return kr.isNode&&(e="User-Agent"),[e,vD(fD,bD(),xD(),yD())]}function vD(e,t,n,r){let i="Microsoft SignalR/";const a=e.split(".");return i+=`${a[0]}.${a[1]}`,i+=` (${e}; `,t&&t!==""?i+=`${t}; `:i+="Unknown OS; ",i+=`${n}`,r?i+=`; ${r}`:i+="; Unknown Runtime Version",i+=")",i}function bD(){if(kr.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function yD(){if(kr.isNode)return process.versions.node}function xD(){return kr.isNode?"NodeJS":"Browser"}function dp(e){return e.stack?e.stack:e.message?e.message:`${e}`}function wD(){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 ur{static write(t){return`${t}${ur.RecordSeparator}`}static parse(t){if(t[t.length-1]!==ur.RecordSeparator)throw new Error("Message is incomplete.");const n=t.split(ur.RecordSeparator);return n.pop(),n}}ur.RecordSeparatorCode=30;ur.RecordSeparator=String.fromCharCode(ur.RecordSeparatorCode);class _D{writeHandshakeRequest(t){return ur.write(JSON.stringify(t))}parseHandshakeResponse(t){let n,r;if(hs(t)){const s=new Uint8Array(t),l=s.indexOf(ur.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(ur.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=ur.parse(n),a=JSON.parse(i[0]);if(a.type)throw new Error("Expected a handshake response from the server.");return[r,a]}}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 CD{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 gD(this,t)}}class SD{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=()=>{},a=()=>{};hs(n)?this._bufferedByteCount+=n.byteLength:this._bufferedByteCount+=n.length,this._bufferedByteCount>=this._bufferSize&&(r=new Promise((o,s)=>{i=o,a=s})),this._messages.push(new TD(n,this._totalMessageCount,i,a))}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,hs(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 TD{constructor(t,n,r,i){this._message=t,this._id=n,this._resolver=r,this._rejector=i}}const kD=30*1e3,$D=15*1e3,ED=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 C0{static create(t,n,r,i,a,o,s){return new C0(t,n,r,i,a,o,s)}constructor(t,n,r,i,a,o,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")},Fu.isRequired(t,"connection"),Fu.isRequired(n,"logger"),Fu.isRequired(r,"protocol"),this.serverTimeoutInMilliseconds=a??kD,this.keepAliveIntervalInMilliseconds=o??$D,this._statefulReconnectBufferSize=s??ED,this._logger=n,this._protocol=r,this.connection=t,this._reconnectPolicy=i,this._handshakeProtocol=new _D,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(),kr.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 SD(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 Rm("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),a=this._createStreamInvocation(t,n,i);let o;const s=new CD;return s.cancelCallback=()=>{const l=this._createCancelInvocation(a.invocationId);return delete this._callbacks[a.invocationId],o.then(()=>this._sendWithProtocol(l))},this._callbacks[a.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))},o=this._sendWithProtocol(a).catch(l=>{s.error(l),delete this._callbacks[a.invocationId]}),this._launchStreams(r,o),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),a=this._sendWithProtocol(this._createInvocation(t,n,!0,i));return this._launchStreams(r,a),a}invoke(t,...n){const[r,i]=this._replaceStreamingParams(n),a=this._createInvocation(t,n,!1,i);return new Promise((s,l)=>{this._callbacks[a.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(a).catch(u=>{l(u),delete this._callbacks[a.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: ${dp(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(a){this._logger.log(exports.LogLevel.Error,`Stream callback threw error: ${dp(a)}`)}}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 a="Error parsing handshake response: "+i;this._logger.log(exports.LogLevel.Error,a);const o=new Error(a);throw this._handshakeRejecter(o),o}if(n.error){const i="Server returned handshake error: "+n.error;this._logger.log(exports.LogLevel.Error,i);const a=new Error(i);throw this._handshakeRejecter(a),a}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(),a=!!t.invocationId;let o,s,l;for(const c of i)try{const u=o;o=await c.apply(this,t.arguments),a&&o&&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):a?(s?l=this._createCompletionMessage(t.invocationId,`${s}`,null):o!==void 0?l=this._createCompletionMessage(t.invocationId,null,o):(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)):o&&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 Rm("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),kr.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."),a=this._getNextRetryDelay(r,0,i);if(a===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(o=>o.apply(this,[t]))}catch(o){this._logger.log(exports.LogLevel.Error,`An onreconnecting callback called with error '${t}' threw error '${o}'.`)}if(this._connectionState!==exports.HubConnectionState.Reconnecting){this._logger.log(exports.LogLevel.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;a!==null;){if(this._logger.log(exports.LogLevel.Information,`Reconnect attempt number ${r+1} will start in ${a} ms.`),await new Promise(o=>{this._reconnectDelayHandle=setTimeout(o,a)}),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(o=>o.apply(this,[this.connection.connectionId]))}catch(o){this._logger.log(exports.LogLevel.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${o}'.`)}return}catch(o){if(this._logger.log(exports.LogLevel.Information,`Reconnect attempt failed because of error '${o}'.`),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=o instanceof Error?o:new Error(o.toString()),a=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(a){this._logger.log(exports.LogLevel.Error,`Stream 'error' callback called with '${t}' threw error: ${dp(a)}`)}})}_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 a=this._invocationId;return this._invocationId++,i.length!==0?{target:t,arguments:n,invocationId:a.toString(),streamIds:i,type:exports.MessageType.Invocation}:{target:t,arguments:n,invocationId:a.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 a;i instanceof Error?a=i.message:i&&i.toString?a=i.toString():a="Unknown error",n=n.then(()=>this._sendWithProtocol(this._createCompletionMessage(r,a)))},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 a=t[i];if(this._isObservable(a)){const o=this._invocationId;this._invocationId++,n[o]=a,r.push(o.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 MD=v.createContext({isAlive:!1,shouldBeAlive:!1,connectionState:exports.HubConnectionState.Disconnected,hasLastConnectionEnded:!1}),OD="_button_1wjon_1",AD="_filled_1wjon_7",RD="_sm_1wjon_13",DD="_md_1wjon_18",ID="_lg_1wjon_23",ko={button:OD,filled:AD,sm:RD,md:DD,lg:ID},Ya=e=>{const t=De.c(24);let n,r,i,a,o,s;t[0]!==e?({variant:a,color:o,size:s,className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]);const l=a===void 0?"filled":a,c=o===void 0?"primary":o,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=ko[l],p=ko[u];let m;t[7]!==f||t[8]!==h||t[9]!==p?(m=le(f,ko.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=b.jsx(no.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=ko[l],h=ko[u];let p;t[16]!==d||t[17]!==f||t[18]!==h?(p=le(d,ko.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=b.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},jD="_button_1r3i0_1",Im={button:jD},gf=e=>{const t=De.c(21);let n,r,i,a,o;t[0]!==e?({color:o,icon:i,className:r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]);const s=o===void 0?"primary":o;if(a.as==="link"){const l=a.href??"/",c=`luminus-context-button btn text-${s} ${r??""}`;let u;t[6]!==c?(u=le(c,Im.button),t[6]=c,t[7]=u):u=t[7];let d;return t[8]!==n||t[9]!==i||t[10]!==a||t[11]!==l||t[12]!==u?(d=b.jsxs(no.Link,{to:l,className:u,...a,children:[i,n]}),t[8]=n,t[9]=i,t[10]=a,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}if(a.as==="button"||a.as===void 0){const l=`luminus-context-button btn text-${s} ${r??""}`;let c;t[14]!==l?(c=le(l,Im.button),t[14]=l,t[15]=c):c=t[15];let u;return t[16]!==n||t[17]!==i||t[18]!==a||t[19]!==c?(u=b.jsxs("button",{type:"button",className:c,...a,children:[i,n]}),t[16]=n,t[17]=i,t[18]=a,t[19]=c,t[20]=u):u=t[20],u}return null},ND="_icon-button_15e26_1",PD="_sm_15e26_14",LD="_md_15e26_23",FD="_lg_15e26_32",pu={"icon-button":"_icon-button_15e26_1",iconButton:ND,sm:PD,md:LD,lg:FD},sa=e=>{const t=De.c(23);let n,r,i,a,o,s;t[0]!==e?({type:a,color:o,size:s,children:n,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]);const l=a===void 0?"button":a,c=o===void 0?"primary":o,u=s===void 0?"md":s;if(i.as==="link"){const d=i.href??"/",f=`luminus-icon-button btn text-${c} ${r??""}`,h=pu[u];let p;t[7]!==f||t[8]!==h?(p=le(f,pu.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=b.jsx(no.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=pu[u];let h;t[15]!==d||t[16]!==f?(h=le(d,pu.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=b.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 S0={},fd={exports:{}};fd.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,a=2,o=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]",y="[object Null]",_="[object Object]",w="[object Promise]",C="[object Proxy]",x="[object RegExp]",S="[object Set]",E="[object String]",k="[object Symbol]",T="[object Undefined]",D="[object WeakMap]",$="[object ArrayBuffer]",M="[object DataView]",R="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",A="[object Int16Array]",O="[object Int32Array]",L="[object Uint8Array]",F="[object Uint8ClampedArray]",P="[object Uint16Array]",W="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,K={};K[R]=K[I]=K[j]=K[A]=K[O]=K[L]=K[F]=K[P]=K[W]=!0,K[s]=K[l]=K[$]=K[u]=K[M]=K[d]=K[f]=K[h]=K[m]=K[g]=K[_]=K[x]=K[S]=K[E]=K[D]=!1;var te=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,ne=typeof self=="object"&&self&&self.Object===Object&&self,U=te||ne||Function("return this")(),B=t&&!t.nodeType&&t,z=B&&!0&&e&&!e.nodeType&&e,V=z&&z.exports===B,N=V&&te.process,ee=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),Q=ee&&ee.isTypedArray;function X(Y,re){for(var de=-1,Ee=Y==null?0:Y.length,Kt=0,dt=[];++de<Ee;){var sn=Y[de];re(sn,de,Y)&&(dt[Kt++]=sn)}return dt}function se(Y,re){for(var de=-1,Ee=re.length,Kt=Y.length;++de<Ee;)Y[Kt+de]=re[de];return Y}function G(Y,re){for(var de=-1,Ee=Y==null?0:Y.length;++de<Ee;)if(re(Y[de],de,Y))return!0;return!1}function J(Y,re){for(var de=-1,Ee=Array(Y);++de<Y;)Ee[de]=re(de);return Ee}function ie(Y){return function(re){return Y(re)}}function oe(Y,re){return Y.has(re)}function be(Y,re){return Y==null?void 0:Y[re]}function ce(Y){var re=-1,de=Array(Y.size);return Y.forEach(function(Ee,Kt){de[++re]=[Kt,Ee]}),de}function ue(Y,re){return function(de){return Y(re(de))}}function Ce(Y){var re=-1,de=Array(Y.size);return Y.forEach(function(Ee){de[++re]=Ee}),de}var ke=Array.prototype,ye=Function.prototype,Me=Object.prototype,pe=U["__core-js_shared__"],me=ye.toString,fe=Me.hasOwnProperty,je=function(){var Y=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return Y?"Symbol(src)_1."+Y:""}(),qe=Me.toString,xt=RegExp("^"+me.call(fe).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=V?U.Buffer:void 0,Ie=U.Symbol,at=U.Uint8Array,He=Me.propertyIsEnumerable,mt=ke.splice,ut=Ie?Ie.toStringTag:void 0,Rt=Object.getOwnPropertySymbols,Xe=Te?Te.isBuffer:void 0,Fe=ue(Object.keys,Object),Ye=xo(U,"DataView"),et=xo(U,"Map"),Be=xo(U,"Promise"),tt=xo(U,"Set"),vt=xo(U,"WeakMap"),ot=xo(Object,"create"),Le=pa(Ye),Oe=pa(et),Ze=pa(Be),wt=pa(tt),nt=pa(vt),bt=Ie?Ie.prototype:void 0,en=bt?bt.valueOf:void 0;function Bt(Y){var re=-1,de=Y==null?0:Y.length;for(this.clear();++re<de;){var Ee=Y[re];this.set(Ee[0],Ee[1])}}function Wt(){this.__data__=ot?ot(null):{},this.size=0}function fn(Y){var re=this.has(Y)&&delete this.__data__[Y];return this.size-=re?1:0,re}function Yt(Y){var re=this.__data__;if(ot){var de=re[Y];return de===r?void 0:de}return fe.call(re,Y)?re[Y]:void 0}function $e(Y){var re=this.__data__;return ot?re[Y]!==void 0:fe.call(re,Y)}function Je(Y,re){var de=this.__data__;return this.size+=this.has(Y)?0:1,de[Y]=ot&&re===void 0?r:re,this}Bt.prototype.clear=Wt,Bt.prototype.delete=fn,Bt.prototype.get=Yt,Bt.prototype.has=$e,Bt.prototype.set=Je;function St(Y){var re=-1,de=Y==null?0:Y.length;for(this.clear();++re<de;){var Ee=Y[re];this.set(Ee[0],Ee[1])}}function on(){this.__data__=[],this.size=0}function Gt(Y){var re=this.__data__,de=ei(re,Y);if(de<0)return!1;var Ee=re.length-1;return de==Ee?re.pop():mt.call(re,de,1),--this.size,!0}function ze(Y){var re=this.__data__,de=ei(re,Y);return de<0?void 0:re[de][1]}function We(Y){return ei(this.__data__,Y)>-1}function ht(Y,re){var de=this.__data__,Ee=ei(de,Y);return Ee<0?(++this.size,de.push([Y,re])):de[Ee][1]=re,this}St.prototype.clear=on,St.prototype.delete=Gt,St.prototype.get=ze,St.prototype.has=We,St.prototype.set=ht;function Dt(Y){var re=-1,de=Y==null?0:Y.length;for(this.clear();++re<de;){var Ee=Y[re];this.set(Ee[0],Ee[1])}}function Tt(){this.size=0,this.__data__={hash:new Bt,map:new(et||St),string:new Bt}}function Qe(Y){var re=Mi(this,Y).delete(Y);return this.size-=re?1:0,re}function kt(Y){return Mi(this,Y).get(Y)}function yr(Y){return Mi(this,Y).has(Y)}function ln(Y,re){var de=Mi(this,Y),Ee=de.size;return de.set(Y,re),this.size+=de.size==Ee?0:1,this}Dt.prototype.clear=Tt,Dt.prototype.delete=Qe,Dt.prototype.get=kt,Dt.prototype.has=yr,Dt.prototype.set=ln;function cn(Y){var re=-1,de=Y==null?0:Y.length;for(this.__data__=new Dt;++re<de;)this.add(Y[re])}function Rn(Y){return this.__data__.set(Y,r),this}function ca(Y){return this.__data__.has(Y)}cn.prototype.add=cn.prototype.push=Rn,cn.prototype.has=ca;function Ct(Y){var re=this.__data__=new St(Y);this.size=re.size}function ua(){this.__data__=new St,this.size=0}function Re(Y){var re=this.__data__,de=re.delete(Y);return this.size=re.size,de}function Rr(Y){return this.__data__.get(Y)}function da(Y){return this.__data__.has(Y)}function bo(Y,re){var de=this.__data__;if(de instanceof St){var Ee=de.__data__;if(!et||Ee.length<n-1)return Ee.push([Y,re]),this.size=++de.size,this;de=this.__data__=new Dt(Ee)}return de.set(Y,re),this.size=de.size,this}Ct.prototype.clear=ua,Ct.prototype.delete=Re,Ct.prototype.get=Rr,Ct.prototype.has=da,Ct.prototype.set=bo;function yo(Y,re){var de=nu(Y),Ee=!de&&YT(Y),Kt=!de&&!Ee&&Wh(Y),dt=!de&&!Ee&&!Kt&&T1(Y),sn=de||Ee||Kt||dt,bn=sn?J(Y.length,String):[],_n=bn.length;for(var tn in Y)fe.call(Y,tn)&&!(sn&&(tn=="length"||Kt&&(tn=="offset"||tn=="parent")||dt&&(tn=="buffer"||tn=="byteLength"||tn=="byteOffset")||WT(tn,_n)))&&bn.push(tn);return bn}function ei(Y,re){for(var de=Y.length;de--;)if(w1(Y[de][0],re))return de;return-1}function Qc(Y,re,de){var Ee=re(Y);return nu(Y)?Ee:se(Ee,de(Y))}function ti(Y){return Y==null?Y===void 0?T:y:ut&&ut in Object(Y)?BT(Y):qT(Y)}function Vs(Y){return Ys(Y)&&ti(Y)==s}function fa(Y,re,de,Ee,Kt){return Y===re?!0:Y==null||re==null||!Ys(Y)&&!Ys(re)?Y!==Y&&re!==re:qs(Y,re,de,Ee,fa,Kt)}function qs(Y,re,de,Ee,Kt,dt){var sn=nu(Y),bn=nu(re),_n=sn?l:Oi(Y),tn=bn?l:Oi(re);_n=_n==s?_:_n,tn=tn==s?_:tn;var Qn=_n==_,xr=tn==_,Sn=_n==tn;if(Sn&&Wh(Y)){if(!Wh(re))return!1;sn=!0,Qn=!1}if(Sn&&!Qn)return dt||(dt=new Ct),sn||T1(Y)?Dn(Y,re,de,Ee,Kt,dt):Bh(Y,re,_n,de,Ee,Kt,dt);if(!(de&i)){var ir=Qn&&fe.call(Y,"__wrapped__"),ar=xr&&fe.call(re,"__wrapped__");if(ir||ar){var Ai=ir?Y.value():Y,ni=ar?re.value():re;return dt||(dt=new Ct),Kt(Ai,ni,de,Ee,dt)}}return Sn?(dt||(dt=new Ct),zh(Y,re,de,Ee,Kt,dt)):!1}function eu(Y){if(!S1(Y)||HT(Y))return!1;var re=_1(Y)?xt:q;return re.test(pa(Y))}function ha(Y){return Ys(Y)&&C1(Y.length)&&!!K[ti(Y)]}function tu(Y){if(!VT(Y))return Fe(Y);var re=[];for(var de in Object(Y))fe.call(Y,de)&&de!="constructor"&&re.push(de);return re}function Dn(Y,re,de,Ee,Kt,dt){var sn=de&i,bn=Y.length,_n=re.length;if(bn!=_n&&!(sn&&_n>bn))return!1;var tn=dt.get(Y);if(tn&&dt.get(re))return tn==re;var Qn=-1,xr=!0,Sn=de&a?new cn:void 0;for(dt.set(Y,re),dt.set(re,Y);++Qn<bn;){var ir=Y[Qn],ar=re[Qn];if(Ee)var Ai=sn?Ee(ar,ir,Qn,re,Y,dt):Ee(ir,ar,Qn,Y,re,dt);if(Ai!==void 0){if(Ai)continue;xr=!1;break}if(Sn){if(!G(re,function(ni,ma){if(!oe(Sn,ma)&&(ir===ni||Kt(ir,ni,de,Ee,dt)))return Sn.push(ma)})){xr=!1;break}}else if(!(ir===ar||Kt(ir,ar,de,Ee,dt))){xr=!1;break}}return dt.delete(Y),dt.delete(re),xr}function Bh(Y,re,de,Ee,Kt,dt,sn){switch(de){case M:if(Y.byteLength!=re.byteLength||Y.byteOffset!=re.byteOffset)return!1;Y=Y.buffer,re=re.buffer;case $:return!(Y.byteLength!=re.byteLength||!dt(new at(Y),new at(re)));case u:case d:case g:return w1(+Y,+re);case f:return Y.name==re.name&&Y.message==re.message;case x:case E:return Y==re+"";case m:var bn=ce;case S:var _n=Ee&i;if(bn||(bn=Ce),Y.size!=re.size&&!_n)return!1;var tn=sn.get(Y);if(tn)return tn==re;Ee|=a,sn.set(Y,re);var Qn=Dn(bn(Y),bn(re),Ee,Kt,dt,sn);return sn.delete(Y),Qn;case k:if(en)return en.call(Y)==en.call(re)}return!1}function zh(Y,re,de,Ee,Kt,dt){var sn=de&i,bn=Dr(Y),_n=bn.length,tn=Dr(re),Qn=tn.length;if(_n!=Qn&&!sn)return!1;for(var xr=_n;xr--;){var Sn=bn[xr];if(!(sn?Sn in re:fe.call(re,Sn)))return!1}var ir=dt.get(Y);if(ir&&dt.get(re))return ir==re;var ar=!0;dt.set(Y,re),dt.set(re,Y);for(var Ai=sn;++xr<_n;){Sn=bn[xr];var ni=Y[Sn],ma=re[Sn];if(Ee)var k1=sn?Ee(ma,ni,Sn,re,Y,dt):Ee(ni,ma,Sn,Y,re,dt);if(!(k1===void 0?ni===ma||Kt(ni,ma,de,Ee,dt):k1)){ar=!1;break}Ai||(Ai=Sn=="constructor")}if(ar&&!Ai){var ru=Y.constructor,iu=re.constructor;ru!=iu&&"constructor"in Y&&"constructor"in re&&!(typeof ru=="function"&&ru instanceof ru&&typeof iu=="function"&&iu instanceof iu)&&(ar=!1)}return dt.delete(Y),dt.delete(re),ar}function Dr(Y){return Qc(Y,KT,zT)}function Mi(Y,re){var de=Y.__data__;return UT(re)?de[typeof re=="string"?"string":"hash"]:de.map}function xo(Y,re){var de=be(Y,re);return eu(de)?de:void 0}function BT(Y){var re=fe.call(Y,ut),de=Y[ut];try{Y[ut]=void 0;var Ee=!0}catch{}var Kt=qe.call(Y);return Ee&&(re?Y[ut]=de:delete Y[ut]),Kt}var zT=Rt?function(Y){return Y==null?[]:(Y=Object(Y),X(Rt(Y),function(re){return He.call(Y,re)}))}:XT,Oi=ti;(Ye&&Oi(new Ye(new ArrayBuffer(1)))!=M||et&&Oi(new et)!=m||Be&&Oi(Be.resolve())!=w||tt&&Oi(new tt)!=S||vt&&Oi(new vt)!=D)&&(Oi=function(Y){var re=ti(Y),de=re==_?Y.constructor:void 0,Ee=de?pa(de):"";if(Ee)switch(Ee){case Le:return M;case Oe:return m;case Ze:return w;case wt:return S;case nt:return D}return re});function WT(Y,re){return re=re??o,!!re&&(typeof Y=="number"||Z.test(Y))&&Y>-1&&Y%1==0&&Y<re}function UT(Y){var re=typeof Y;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?Y!=="__proto__":Y===null}function HT(Y){return!!je&&je in Y}function VT(Y){var re=Y&&Y.constructor,de=typeof re=="function"&&re.prototype||Me;return Y===de}function qT(Y){return qe.call(Y)}function pa(Y){if(Y!=null){try{return me.call(Y)}catch{}try{return Y+""}catch{}}return""}function w1(Y,re){return Y===re||Y!==Y&&re!==re}var YT=Vs(function(){return arguments}())?Vs:function(Y){return Ys(Y)&&fe.call(Y,"callee")&&!He.call(Y,"callee")},nu=Array.isArray;function GT(Y){return Y!=null&&C1(Y.length)&&!_1(Y)}var Wh=Xe||JT;function ZT(Y,re){return fa(Y,re)}function _1(Y){if(!S1(Y))return!1;var re=ti(Y);return re==h||re==p||re==c||re==C}function C1(Y){return typeof Y=="number"&&Y>-1&&Y%1==0&&Y<=o}function S1(Y){var re=typeof Y;return Y!=null&&(re=="object"||re=="function")}function Ys(Y){return Y!=null&&typeof Y=="object"}var T1=Q?ie(Q):ha;function KT(Y){return GT(Y)?yo(Y):tu(Y)}function XT(){return[]}function JT(){return!1}e.exports=ZT})(fd,fd.exports);var BD=fd.exports,NC={exports:{}};(function(e,t){var n=function(){var r=function(x,S){var E=236,k=17,T=x,D=a[S],$=null,M=0,R=null,I=[],j={},A=function(U,B){M=T*4+17,$=function(z){for(var V=new Array(z),N=0;N<z;N+=1){V[N]=new Array(z);for(var ee=0;ee<z;ee+=1)V[N][ee]=null}return V}(M),O(0,0),O(M-7,0),O(0,M-7),P(),F(),H(U,B),T>=7&&W(U),R==null&&(R=K(T,D,I)),q(R,B)},O=function(U,B){for(var z=-1;z<=7;z+=1)if(!(U+z<=-1||M<=U+z))for(var V=-1;V<=7;V+=1)B+V<=-1||M<=B+V||(0<=z&&z<=6&&(V==0||V==6)||0<=V&&V<=6&&(z==0||z==6)||2<=z&&z<=4&&2<=V&&V<=4?$[U+z][B+V]=!0:$[U+z][B+V]=!1)},L=function(){for(var U=0,B=0,z=0;z<8;z+=1){A(!0,z);var V=s.getLostPoint(j);(z==0||U>V)&&(U=V,B=z)}return B},F=function(){for(var U=8;U<M-8;U+=1)$[U][6]==null&&($[U][6]=U%2==0);for(var B=8;B<M-8;B+=1)$[6][B]==null&&($[6][B]=B%2==0)},P=function(){for(var U=s.getPatternPosition(T),B=0;B<U.length;B+=1)for(var z=0;z<U.length;z+=1){var V=U[B],N=U[z];if($[V][N]==null)for(var ee=-2;ee<=2;ee+=1)for(var Q=-2;Q<=2;Q+=1)ee==-2||ee==2||Q==-2||Q==2||ee==0&&Q==0?$[V+ee][N+Q]=!0:$[V+ee][N+Q]=!1}},W=function(U){for(var B=s.getBCHTypeNumber(T),z=0;z<18;z+=1){var V=!U&&(B>>z&1)==1;$[Math.floor(z/3)][z%3+M-8-3]=V}for(var z=0;z<18;z+=1){var V=!U&&(B>>z&1)==1;$[z%3+M-8-3][Math.floor(z/3)]=V}},H=function(U,B){for(var z=D<<3|B,V=s.getBCHTypeInfo(z),N=0;N<15;N+=1){var ee=!U&&(V>>N&1)==1;N<6?$[N][8]=ee:N<8?$[N+1][8]=ee:$[M-15+N][8]=ee}for(var N=0;N<15;N+=1){var ee=!U&&(V>>N&1)==1;N<8?$[8][M-N-1]=ee:N<9?$[8][15-N-1+1]=ee:$[8][15-N-1]=ee}$[M-8][8]=!U},q=function(U,B){for(var z=-1,V=M-1,N=7,ee=0,Q=s.getMaskFunction(B),X=M-1;X>0;X-=2)for(X==6&&(X-=1);;){for(var se=0;se<2;se+=1)if($[V][X-se]==null){var G=!1;ee<U.length&&(G=(U[ee]>>>N&1)==1);var J=Q(V,X-se);J&&(G=!G),$[V][X-se]=G,N-=1,N==-1&&(ee+=1,N=7)}if(V+=z,V<0||M<=V){V-=z,z=-z;break}}},Z=function(U,B){for(var z=0,V=0,N=0,ee=new Array(B.length),Q=new Array(B.length),X=0;X<B.length;X+=1){var se=B[X].dataCount,G=B[X].totalCount-se;V=Math.max(V,se),N=Math.max(N,G),ee[X]=new Array(se);for(var J=0;J<ee[X].length;J+=1)ee[X][J]=255&U.getBuffer()[J+z];z+=se;var ie=s.getErrorCorrectPolynomial(G),oe=c(ee[X],ie.getLength()-1),be=oe.mod(ie);Q[X]=new Array(ie.getLength()-1);for(var J=0;J<Q[X].length;J+=1){var ce=J+be.getLength()-Q[X].length;Q[X][J]=ce>=0?be.getAt(ce):0}}for(var ue=0,J=0;J<B.length;J+=1)ue+=B[J].totalCount;for(var Ce=new Array(ue),ke=0,J=0;J<V;J+=1)for(var X=0;X<B.length;X+=1)J<ee[X].length&&(Ce[ke]=ee[X][J],ke+=1);for(var J=0;J<N;J+=1)for(var X=0;X<B.length;X+=1)J<Q[X].length&&(Ce[ke]=Q[X][J],ke+=1);return Ce},K=function(U,B,z){for(var V=u.getRSBlocks(U,B),N=d(),ee=0;ee<z.length;ee+=1){var Q=z[ee];N.put(Q.getMode(),4),N.put(Q.getLength(),s.getLengthInBits(Q.getMode(),U)),Q.write(N)}for(var X=0,ee=0;ee<V.length;ee+=1)X+=V[ee].dataCount;if(N.getLengthInBits()>X*8)throw"code length overflow. ("+N.getLengthInBits()+">"+X*8+")";for(N.getLengthInBits()+4<=X*8&&N.put(0,4);N.getLengthInBits()%8!=0;)N.putBit(!1);for(;!(N.getLengthInBits()>=X*8||(N.put(E,8),N.getLengthInBits()>=X*8));)N.put(k,8);return Z(N,V)};j.addData=function(U,B){B=B||"Byte";var z=null;switch(B){case"Numeric":z=f(U);break;case"Alphanumeric":z=h(U);break;case"Byte":z=p(U);break;case"Kanji":z=m(U);break;default:throw"mode:"+B}I.push(z),R=null},j.isDark=function(U,B){if(U<0||M<=U||B<0||M<=B)throw U+","+B;return $[U][B]},j.getModuleCount=function(){return M},j.make=function(){if(T<1){for(var U=1;U<40;U++){for(var B=u.getRSBlocks(U,D),z=d(),V=0;V<I.length;V++){var N=I[V];z.put(N.getMode(),4),z.put(N.getLength(),s.getLengthInBits(N.getMode(),U)),N.write(z)}for(var ee=0,V=0;V<B.length;V++)ee+=B[V].dataCount;if(z.getLengthInBits()<=ee*8)break}T=U}A(!1,L())},j.createTableTag=function(U,B){U=U||2,B=typeof B>"u"?U*4:B;var z="";z+='<table style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: "+B+"px;",z+='">',z+="<tbody>";for(var V=0;V<j.getModuleCount();V+=1){z+="<tr>";for(var N=0;N<j.getModuleCount();N+=1)z+='<td style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: 0px;",z+=" width: "+U+"px;",z+=" height: "+U+"px;",z+=" background-color: ",z+=j.isDark(V,N)?"#000000":"#ffffff",z+=";",z+='"/>';z+="</tr>"}return z+="</tbody>",z+="</table>",z},j.createSvgTag=function(U,B,z,V){var N={};typeof arguments[0]=="object"&&(N=arguments[0],U=N.cellSize,B=N.margin,z=N.alt,V=N.title),U=U||2,B=typeof B>"u"?U*4:B,z=typeof z=="string"?{text:z}:z||{},z.text=z.text||null,z.id=z.text?z.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 ee=j.getModuleCount()*U+B*2,Q,X,se,G,J="",ie;for(ie="l"+U+",0 0,"+U+" -"+U+",0 0,-"+U+"z ",J+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',J+=N.scalable?"":' width="'+ee+'px" height="'+ee+'px"',J+=' viewBox="0 0 '+ee+" "+ee+'" ',J+=' preserveAspectRatio="xMinYMin meet"',J+=V.text||z.text?' role="img" aria-labelledby="'+te([V.id,z.id].join(" ").trim())+'"':"",J+=">",J+=V.text?'<title id="'+te(V.id)+'">'+te(V.text)+"</title>":"",J+=z.text?'<description id="'+te(z.id)+'">'+te(z.text)+"</description>":"",J+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',J+='<path d="',se=0;se<j.getModuleCount();se+=1)for(G=se*U+B,Q=0;Q<j.getModuleCount();Q+=1)j.isDark(se,Q)&&(X=Q*U+B,J+="M"+X+","+G+ie);return J+='" stroke="transparent" fill="black"/>',J+="</svg>",J},j.createDataURL=function(U,B){U=U||2,B=typeof B>"u"?U*4:B;var z=j.getModuleCount()*U+B*2,V=B,N=z-B;return C(z,z,function(ee,Q){if(V<=ee&&ee<N&&V<=Q&&Q<N){var X=Math.floor((ee-V)/U),se=Math.floor((Q-V)/U);return j.isDark(se,X)?0:1}else return 1})},j.createImgTag=function(U,B,z){U=U||2,B=typeof B>"u"?U*4:B;var V=j.getModuleCount()*U+B*2,N="";return N+="<img",N+=' src="',N+=j.createDataURL(U,B),N+='"',N+=' width="',N+=V,N+='"',N+=' height="',N+=V,N+='"',z&&(N+=' alt="',N+=te(z),N+='"'),N+="/>",N};var te=function(U){for(var B="",z=0;z<U.length;z+=1){var V=U.charAt(z);switch(V){case"<":B+="&lt;";break;case">":B+="&gt;";break;case"&":B+="&amp;";break;case'"':B+="&quot;";break;default:B+=V;break}}return B},ne=function(U){var B=1;U=typeof U>"u"?B*2:U;var z=j.getModuleCount()*B+U*2,V=U,N=z-U,ee,Q,X,se,G,J={"██":"█","█ ":"▀"," █":"▄"," ":" "},ie={"██":"▀","█ ":"▀"," █":" "," ":" "},oe="";for(ee=0;ee<z;ee+=2){for(X=Math.floor((ee-V)/B),se=Math.floor((ee+1-V)/B),Q=0;Q<z;Q+=1)G="█",V<=Q&&Q<N&&V<=ee&&ee<N&&j.isDark(X,Math.floor((Q-V)/B))&&(G=" "),V<=Q&&Q<N&&V<=ee+1&&ee+1<N&&j.isDark(se,Math.floor((Q-V)/B))?G+=" ":G+="█",oe+=U<1&&ee+1>=N?ie[G]:J[G];oe+=`
245
+ `}return z%2&&U>0?oe.substring(0,oe.length-z-1)+Array(z+1).join("▀"):oe.substring(0,oe.length-1)};return j.createASCII=function(U,B){if(U=U||1,U<2)return ne(B);U-=1,B=typeof B>"u"?U*2:B;var z=j.getModuleCount()*U+B*2,V=B,N=z-B,ee,Q,X,se,G=Array(U+1).join("██"),J=Array(U+1).join(" "),ie="",oe="";for(ee=0;ee<z;ee+=1){for(X=Math.floor((ee-V)/U),oe="",Q=0;Q<z;Q+=1)se=1,V<=Q&&Q<N&&V<=ee&&ee<N&&j.isDark(X,Math.floor((Q-V)/U))&&(se=0),oe+=se?G:J;for(X=0;X<U;X+=1)ie+=oe+`
246
+ `}return ie.substring(0,ie.length-1)},j.renderTo2dContext=function(U,B){B=B||2;for(var z=j.getModuleCount(),V=0;V<z;V++)for(var N=0;N<z;N++)U.fillStyle=j.isDark(V,N)?"black":"white",U.fillRect(V*B,N*B,B,B)},j};r.stringToBytesFuncs={default:function(x){for(var S=[],E=0;E<x.length;E+=1){var k=x.charCodeAt(E);S.push(k&255)}return S}},r.stringToBytes=r.stringToBytesFuncs.default,r.createStringToBytes=function(x,S){var E=function(){for(var T=_(x),D=function(){var F=T.read();if(F==-1)throw"eof";return F},$=0,M={};;){var R=T.read();if(R==-1)break;var I=D(),j=D(),A=D(),O=String.fromCharCode(R<<8|I),L=j<<8|A;M[O]=L,$+=1}if($!=S)throw $+" != "+S;return M}(),k=63;return function(T){for(var D=[],$=0;$<T.length;$+=1){var M=T.charCodeAt($);if(M<128)D.push(M);else{var R=E[T.charAt($)];typeof R=="number"?(R&255)==R?D.push(R):(D.push(R>>>8),D.push(R&255)):D.push(k)}}return D}};var i={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},a={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var x=[[],[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,E=7973,k=21522,T={},D=function($){for(var M=0;$!=0;)M+=1,$>>>=1;return M};return T.getBCHTypeInfo=function($){for(var M=$<<10;D(M)-D(S)>=0;)M^=S<<D(M)-D(S);return($<<10|M)^k},T.getBCHTypeNumber=function($){for(var M=$<<12;D(M)-D(E)>=0;)M^=E<<D(M)-D(E);return $<<12|M},T.getPatternPosition=function($){return x[$-1]},T.getMaskFunction=function($){switch($){case o.PATTERN000:return function(M,R){return(M+R)%2==0};case o.PATTERN001:return function(M,R){return M%2==0};case o.PATTERN010:return function(M,R){return R%3==0};case o.PATTERN011:return function(M,R){return(M+R)%3==0};case o.PATTERN100:return function(M,R){return(Math.floor(M/2)+Math.floor(R/3))%2==0};case o.PATTERN101:return function(M,R){return M*R%2+M*R%3==0};case o.PATTERN110:return function(M,R){return(M*R%2+M*R%3)%2==0};case o.PATTERN111:return function(M,R){return(M*R%3+(M+R)%2)%2==0};default:throw"bad maskPattern:"+$}},T.getErrorCorrectPolynomial=function($){for(var M=c([1],0),R=0;R<$;R+=1)M=M.multiply(c([1,l.gexp(R)],0));return M},T.getLengthInBits=function($,M){if(1<=M&&M<10)switch($){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:"+$}else if(M<27)switch($){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:"+$}else if(M<41)switch($){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:"+$}else throw"type:"+M},T.getLostPoint=function($){for(var M=$.getModuleCount(),R=0,I=0;I<M;I+=1)for(var j=0;j<M;j+=1){for(var A=0,O=$.isDark(I,j),L=-1;L<=1;L+=1)if(!(I+L<0||M<=I+L))for(var F=-1;F<=1;F+=1)j+F<0||M<=j+F||L==0&&F==0||O==$.isDark(I+L,j+F)&&(A+=1);A>5&&(R+=3+A-5)}for(var I=0;I<M-1;I+=1)for(var j=0;j<M-1;j+=1){var P=0;$.isDark(I,j)&&(P+=1),$.isDark(I+1,j)&&(P+=1),$.isDark(I,j+1)&&(P+=1),$.isDark(I+1,j+1)&&(P+=1),(P==0||P==4)&&(R+=3)}for(var I=0;I<M;I+=1)for(var j=0;j<M-6;j+=1)$.isDark(I,j)&&!$.isDark(I,j+1)&&$.isDark(I,j+2)&&$.isDark(I,j+3)&&$.isDark(I,j+4)&&!$.isDark(I,j+5)&&$.isDark(I,j+6)&&(R+=40);for(var j=0;j<M;j+=1)for(var I=0;I<M-6;I+=1)$.isDark(I,j)&&!$.isDark(I+1,j)&&$.isDark(I+2,j)&&$.isDark(I+3,j)&&$.isDark(I+4,j)&&!$.isDark(I+5,j)&&$.isDark(I+6,j)&&(R+=40);for(var W=0,j=0;j<M;j+=1)for(var I=0;I<M;I+=1)$.isDark(I,j)&&(W+=1);var H=Math.abs(100*W/M/M-50)/5;return R+=H*10,R},T}(),l=function(){for(var x=new Array(256),S=new Array(256),E=0;E<8;E+=1)x[E]=1<<E;for(var E=8;E<256;E+=1)x[E]=x[E-4]^x[E-5]^x[E-6]^x[E-8];for(var E=0;E<255;E+=1)S[x[E]]=E;var k={};return k.glog=function(T){if(T<1)throw"glog("+T+")";return S[T]},k.gexp=function(T){for(;T<0;)T+=255;for(;T>=256;)T-=255;return x[T]},k}();function c(x,S){if(typeof x.length>"u")throw x.length+"/"+S;var E=function(){for(var T=0;T<x.length&&x[T]==0;)T+=1;for(var D=new Array(x.length-T+S),$=0;$<x.length-T;$+=1)D[$]=x[$+T];return D}(),k={};return k.getAt=function(T){return E[T]},k.getLength=function(){return E.length},k.multiply=function(T){for(var D=new Array(k.getLength()+T.getLength()-1),$=0;$<k.getLength();$+=1)for(var M=0;M<T.getLength();M+=1)D[$+M]^=l.gexp(l.glog(k.getAt($))+l.glog(T.getAt(M)));return c(D,0)},k.mod=function(T){if(k.getLength()-T.getLength()<0)return k;for(var D=l.glog(k.getAt(0))-l.glog(T.getAt(0)),$=new Array(k.getLength()),M=0;M<k.getLength();M+=1)$[M]=k.getAt(M);for(var M=0;M<T.getLength();M+=1)$[M]^=l.gexp(l.glog(T.getAt(M))+D);return c($,0).mod(T)},k}var u=function(){var x=[[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(T,D){var $={};return $.totalCount=T,$.dataCount=D,$},E={},k=function(T,D){switch(D){case a.L:return x[(T-1)*4+0];case a.M:return x[(T-1)*4+1];case a.Q:return x[(T-1)*4+2];case a.H:return x[(T-1)*4+3];default:return}};return E.getRSBlocks=function(T,D){var $=k(T,D);if(typeof $>"u")throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+D;for(var M=$.length/3,R=[],I=0;I<M;I+=1)for(var j=$[I*3+0],A=$[I*3+1],O=$[I*3+2],L=0;L<j;L+=1)R.push(S(A,O));return R},E}(),d=function(){var x=[],S=0,E={};return E.getBuffer=function(){return x},E.getAt=function(k){var T=Math.floor(k/8);return(x[T]>>>7-k%8&1)==1},E.put=function(k,T){for(var D=0;D<T;D+=1)E.putBit((k>>>T-D-1&1)==1)},E.getLengthInBits=function(){return S},E.putBit=function(k){var T=Math.floor(S/8);x.length<=T&&x.push(0),k&&(x[T]|=128>>>S%8),S+=1},E},f=function(x){var S=i.MODE_NUMBER,E=x,k={};k.getMode=function(){return S},k.getLength=function($){return E.length},k.write=function($){for(var M=E,R=0;R+2<M.length;)$.put(T(M.substring(R,R+3)),10),R+=3;R<M.length&&(M.length-R==1?$.put(T(M.substring(R,R+1)),4):M.length-R==2&&$.put(T(M.substring(R,R+2)),7))};var T=function($){for(var M=0,R=0;R<$.length;R+=1)M=M*10+D($.charAt(R));return M},D=function($){if("0"<=$&&$<="9")return $.charCodeAt(0)-48;throw"illegal char :"+$};return k},h=function(x){var S=i.MODE_ALPHA_NUM,E=x,k={};k.getMode=function(){return S},k.getLength=function(D){return E.length},k.write=function(D){for(var $=E,M=0;M+1<$.length;)D.put(T($.charAt(M))*45+T($.charAt(M+1)),11),M+=2;M<$.length&&D.put(T($.charAt(M)),6)};var T=function(D){if("0"<=D&&D<="9")return D.charCodeAt(0)-48;if("A"<=D&&D<="Z")return D.charCodeAt(0)-65+10;switch(D){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 :"+D}};return k},p=function(x){var S=i.MODE_8BIT_BYTE,E=r.stringToBytes(x),k={};return k.getMode=function(){return S},k.getLength=function(T){return E.length},k.write=function(T){for(var D=0;D<E.length;D+=1)T.put(E[D],8)},k},m=function(x){var S=i.MODE_KANJI,E=r.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(D,$){var M=E(D);if(M.length!=2||(M[0]<<8|M[1])!=$)throw"sjis not supported."})("友",38726);var k=E(x),T={};return T.getMode=function(){return S},T.getLength=function(D){return~~(k.length/2)},T.write=function(D){for(var $=k,M=0;M+1<$.length;){var R=(255&$[M])<<8|255&$[M+1];if(33088<=R&&R<=40956)R-=33088;else if(57408<=R&&R<=60351)R-=49472;else throw"illegal char at "+(M+1)+"/"+R;R=(R>>>8&255)*192+(R&255),D.put(R,13),M+=2}if(M<$.length)throw"illegal char at "+(M+1)},T},g=function(){var x=[],S={};return S.writeByte=function(E){x.push(E&255)},S.writeShort=function(E){S.writeByte(E),S.writeByte(E>>>8)},S.writeBytes=function(E,k,T){k=k||0,T=T||E.length;for(var D=0;D<T;D+=1)S.writeByte(E[D+k])},S.writeString=function(E){for(var k=0;k<E.length;k+=1)S.writeByte(E.charCodeAt(k))},S.toByteArray=function(){return x},S.toString=function(){var E="";E+="[";for(var k=0;k<x.length;k+=1)k>0&&(E+=","),E+=x[k];return E+="]",E},S},y=function(){var x=0,S=0,E=0,k="",T={},D=function(M){k+=String.fromCharCode($(M&63))},$=function(M){if(!(M<0)){if(M<26)return 65+M;if(M<52)return 97+(M-26);if(M<62)return 48+(M-52);if(M==62)return 43;if(M==63)return 47}throw"n:"+M};return T.writeByte=function(M){for(x=x<<8|M&255,S+=8,E+=1;S>=6;)D(x>>>S-6),S-=6},T.flush=function(){if(S>0&&(D(x<<6-S),x=0,S=0),E%3!=0)for(var M=3-E%3,R=0;R<M;R+=1)k+="="},T.toString=function(){return k},T},_=function(x){var S=x,E=0,k=0,T=0,D={};D.read=function(){for(;T<8;){if(E>=S.length){if(T==0)return-1;throw"unexpected end of file./"+T}var M=S.charAt(E);if(E+=1,M=="=")return T=0,-1;if(M.match(/^\s$/))continue;k=k<<6|$(M.charCodeAt(0)),T+=6}var R=k>>>T-8&255;return T-=8,R};var $=function(M){if(65<=M&&M<=90)return M-65;if(97<=M&&M<=122)return M-97+26;if(48<=M&&M<=57)return M-48+52;if(M==43)return 62;if(M==47)return 63;throw"c:"+M};return D},w=function(x,S){var E=x,k=S,T=new Array(x*S),D={};D.setPixel=function(I,j,A){T[j*E+I]=A},D.write=function(I){I.writeString("GIF87a"),I.writeShort(E),I.writeShort(k),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(E),I.writeShort(k),I.writeByte(0);var j=2,A=M(j);I.writeByte(j);for(var O=0;A.length-O>255;)I.writeByte(255),I.writeBytes(A,O,255),O+=255;I.writeByte(A.length-O),I.writeBytes(A,O,A.length-O),I.writeByte(0),I.writeString(";")};var $=function(I){var j=I,A=0,O=0,L={};return L.write=function(F,P){if(F>>>P)throw"length over";for(;A+P>=8;)j.writeByte(255&(F<<A|O)),P-=8-A,F>>>=8-A,O=0,A=0;O=F<<A|O,A=A+P},L.flush=function(){A>0&&j.writeByte(O)},L},M=function(I){for(var j=1<<I,A=(1<<I)+1,O=I+1,L=R(),F=0;F<j;F+=1)L.add(String.fromCharCode(F));L.add(String.fromCharCode(j)),L.add(String.fromCharCode(A));var P=g(),W=$(P);W.write(j,O);var H=0,q=String.fromCharCode(T[H]);for(H+=1;H<T.length;){var Z=String.fromCharCode(T[H]);H+=1,L.contains(q+Z)?q=q+Z:(W.write(L.indexOf(q),O),L.size()<4095&&(L.size()==1<<O&&(O+=1),L.add(q+Z)),q=Z)}return W.write(L.indexOf(q),O),W.write(A,O),W.flush(),P.toByteArray()},R=function(){var I={},j=0,A={};return A.add=function(O){if(A.contains(O))throw"dup key:"+O;I[O]=j,j+=1},A.size=function(){return j},A.indexOf=function(O){return I[O]},A.contains=function(O){return typeof I[O]<"u"},A};return D},C=function(x,S,E){for(var k=w(x,S),T=0;T<S;T+=1)for(var D=0;D<x;D+=1)k.setPixel(D,T,E(D,T));var $=g();k.write($);for(var M=y(),R=$.toByteArray(),I=0;I<R.length;I+=1)M.writeByte(R[I]);return M.flush(),"data:image/gif;base64,"+M};return r}();(function(){n.stringToBytesFuncs["UTF-8"]=function(r){function i(a){for(var o=[],s=0;s<a.length;s++){var l=a.charCodeAt(s);l<128?o.push(l):l<2048?o.push(192|l>>6,128|l&63):l<55296||l>=57344?o.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|a.charCodeAt(s)&1023),o.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return o}return i(r)}})(),function(r){e.exports=r()}(function(){return n})})(NC);var zD=NC.exports,WD=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 a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),jm=Hn&&Hn.__assign||function(){return jm=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},jm.apply(this,arguments)};Object.defineProperty(S0,"__esModule",{value:!0});exports.QRCode_1=S0.QRCode=void 0;var UD=BD,HD=zD,fp=v,VD=function(e){WD(t,e);function t(n){var r=e.call(this,n)||this;return r.canvasRef=fp.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 a=this.canvasRef.current.toDataURL(i,1),o=document.createElement("a");o.download=r??"react-qrcode-logo",o.href=a,o.click()}},t.prototype.utf16to8=function(n){var r="",i,a,o=n.length;for(i=0;i<o;i++)a=n.charCodeAt(i),a>=1&&a<=127?r+=n.charAt(i):a>2047?(r+=String.fromCharCode(224|a>>12&15),r+=String.fromCharCode(128|a>>6&63),r+=String.fromCharCode(128|a>>0&63)):(r+=String.fromCharCode(192|a>>6&31),r+=String.fromCharCode(128|a>>0&63));return r},t.prototype.drawRoundedSquare=function(n,r,i,a,o,s,l,c){c.lineWidth=n,c.fillStyle=o,c.strokeStyle=o,i+=n/2,r+=n/2,a-=n,Array.isArray(s)||(s=[s,s,s,s]),s=s.map(function(p){return p=Math.min(p,a/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+a-d,i),d&&c.quadraticCurveTo(r+a,i,r+a,i+d),c.lineTo(r+a,i+a-f),f&&c.quadraticCurveTo(r+a,i+a,r+a-f,i+a),c.lineTo(r+h,i+a),h&&c.quadraticCurveTo(r,i+a,r,i+a-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,a,o,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=a*r+i,m=o*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(a){return r>=a.row&&r<=a.row+7&&n>=a.col&&n<=a.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(n,r){return n/r},t.prototype.isCoordinateInImage=function(n,r,i,a,o,s,l,c){if(c){var u=2,d=this.transformPixelLengthIntoNumberOfCells(o,l),f=this.transformPixelLengthIntoNumberOfCells(s,l),h=this.transformPixelLengthIntoNumberOfCells(i,l)-1,p=this.transformPixelLengthIntoNumberOfCells(a,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!UD(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,a=r.ecLevel,o=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,y=+this.props.size,_=+this.props.quietZone,w=this.props.logoWidth?+this.props.logoWidth:0,C=this.props.logoHeight?+this.props.logoHeight:0,x=this.props.logoPadding?+this.props.logoPadding:0,S=HD(0,a);S.addData(this.utf16to8(i)),S.make();var E=(n=this.canvasRef)===null||n===void 0?void 0:n.current,k=E.getContext("2d"),T=y+2*_,D=S.getModuleCount(),$=y/D,M=window.devicePixelRatio||1;E.height=E.width=T*M,k.scale(M,M),k.fillStyle=s,k.fillRect(0,0,T,T);var R=_,I=[{row:0,col:0},{row:0,col:D-7},{row:D-7,col:0}];if(k.strokeStyle=l,h==="dots"){k.fillStyle=l;for(var j=$/2,A=0;A<D;A++)for(var O=0;O<D;O++)S.isDark(A,O)&&!this.isInPositioninZone(A,O,I)&&(k.beginPath(),k.arc(Math.round(O*$)+j+R,Math.round(A*$)+j+R,j/100*75,0,2*Math.PI,!1),k.closePath(),k.fill())}else if(h==="fluid"){for(var j=Math.ceil($/2),A=0;A<D;A++)for(var O=0;O<D;O++)if(S.isDark(A,O)&&!this.isInPositioninZone(A,O,I)){var L=[!1,!1,!1,!1];A>0&&!S.isDark(A-1,O)&&O>0&&!S.isDark(A,O-1)&&(L[0]=!0),A>0&&!S.isDark(A-1,O)&&O<D-1&&!S.isDark(A,O+1)&&(L[1]=!0),A<D-1&&!S.isDark(A+1,O)&&O<D-1&&!S.isDark(A,O+1)&&(L[2]=!0),A<D-1&&!S.isDark(A+1,O)&&O>0&&!S.isDark(A,O-1)&&(L[3]=!0);var F=Math.ceil((O+1)*$)-Math.floor(O*$),P=Math.ceil((A+1)*$)-Math.floor(A*$);k.fillStyle=l,k.beginPath(),k.arc(Math.round(O*$)+j+R,Math.round(A*$)+j+R,j,0,2*Math.PI,!1),k.closePath(),k.fill(),L[0]||k.fillRect(Math.round(O*$)+R,Math.round(A*$)+R,F/2,P/2),L[1]||k.fillRect(Math.round(O*$)+R+Math.floor(F/2),Math.round(A*$)+R,F/2,P/2),L[2]||k.fillRect(Math.round(O*$)+R+Math.floor(F/2),Math.round(A*$)+R+Math.floor(P/2),F/2,P/2),L[3]||k.fillRect(Math.round(O*$)+R,Math.round(A*$)+R+Math.floor(P/2),F/2,P/2)}}else for(var A=0;A<D;A++)for(var O=0;O<D;O++)if(S.isDark(A,O)&&!this.isInPositioninZone(A,O,I)){k.fillStyle=l;var F=Math.ceil((O+1)*$)-Math.floor(O*$),P=Math.ceil((A+1)*$)-Math.floor(A*$);k.fillRect(Math.round(O*$)+R,Math.round(A*$)+R,F,P)}for(var W=0;W<3;W++){var H=I[W],A=H.row,O=H.col,q=p,Z=void 0;Array.isArray(q)&&(q=q[W]),typeof q=="number"&&(q=[q,q,q,q]),m?Array.isArray(m)?Z=m[W]:Z=m:Z=l,this.drawPositioningPattern(k,$,R,A,O,Z,q)}if(c){var K=new Image;o&&(K.crossOrigin="Anonymous"),K.onload=function(te){k.save();var ne=w||y*.2,U=C||ne,B=(y-ne)/2,z=(y-U)/2;if(f||x){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var V=ne+2*x,N=U+2*x,ee=B+R-x,Q=z+R-x;if(g==="circle"){var X=ee+V/2,se=Q+N/2;k.ellipse(X,se,V/2,N/2,0,0,2*Math.PI),k.stroke(),k.fill()}else k.fillRect(ee,Q,V,N)}k.globalAlpha=u,k.drawImage(K,B+R,z+R,ne,U),k.restore(),d&&d(te)},K.src=c}},t.prototype.render=function(){var n,r=+this.props.size+2*+this.props.quietZone;return fp.createElement("canvas",{id:(n=this.props.id)!==null&&n!==void 0?n:"react-qrcode-logo",height:r,width:r,style:jm({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}(fp.Component);exports.QRCode_1=S0.QRCode=VD;const qD="_floating-label_3xm9u_1",YD="_without-label_3xm9u_21",GD="_floating-label-check_3xm9u_184",hp={floatingLabel:qD,withoutLabel:YD,floatingLabelCheck:GD},ZD=e=>{const t=De.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?b.jsx(d0,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},$s=({ref:e,hidden:t,children:n,className:r,isInvalid:i,isForRadioInput:a,inputContainerClassName:o,isForCheckInput:s,hint:l,required:c,disabled:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(Qt),h=d.withoutLabel?"":b.jsxs("div",{className:"d-flex gap-1 align-items-center",children:[d.label,c?b.jsx("span",{className:le("fw-bold",{"text-danger":!u}),style:{fontSize:"16px"},children:"*"}):null,l?b.jsx("div",{className:"d-flex align-items-center",children:b.jsx(f,{icon:"info"})}):null]});return s?b.jsx("div",{className:le("luminus-floating-label-check",hp.floatingLabelCheck),children:n}):b.jsx(ZD,{hint:l,children:b.jsx(t0,{ref:e,label:b.jsx("div",{className:"d-flex gap-1 align-items-center",children:h}),hidden:t??!1,className:le(`luminus-floating-label ${r??""}`,hp.floatingLabel,{[o??""]:o},{[hp.withoutLabel]:d.withoutLabel}),children:n})})};$s.displayName="FloatingLabelInput";const KD="_row-label-input_i295l_1",XD="_label_i295l_4",JD="_input-container_i295l_9",QD="_keep-check-label_i295l_132",eI="_is-invalid_i295l_160",el={rowLabelInput:KD,label:XD,inputContainer:JD,keepCheckLabel:QD,isInvalid:eI},ki=({ref:e,hidden:t,children:n,required:r,disabled:i,className:a,isInvalid:o,isForRadioInput:s,isForTextAreaInput:l,inputContainerClassName:c,hint:u,...d})=>{const{ProjectIconComponent:f}=v.useContext(Qt),h=d.withoutLabel?b.jsx(b.Fragment,{}):b.jsx("label",{className:le("label col-6",{"col-12":l},el.label),children:b.jsxs(mn,{variant:"form-label",className:le("d-flex gap-1 align-items-center",o?"text-danger":""),children:[d.label,r?b.jsx("span",{className:le("fw-bold",{"text-danger":!i}),style:{fontSize:"16px"},children:"*"}):null,u?b.jsx("div",{className:"d-flex align-items-center",style:{paddingTop:"2px"},children:b.jsx(f,{icon:"info"})}):null]})});return b.jsxs("div",{ref:e,className:le("luminus-row-label row gx-0 gy-0",{"is-invalid":o},{[el.isInvalid]:o},{[a??""]:a},{"d-none":t},el.rowLabelInput),children:[u?b.jsx(d0,{text:u,placement:"top",children:h}):h,b.jsx("div",{className:le("input-container",el.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[el.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};ki.displayName="RowLabelInput";const T0=e=>{const t=De.c(4),{ref:n,children:r,className:i,hidden:a}=e,o=`${a?"d-none":""} ${i}`;let s;return t[0]!==r||t[1]!==n||t[2]!==o?(s=b.jsx("div",{ref:n,className:o,children:r}),t[0]=r,t[1]=n,t[2]=o,t[3]=s):s=t[3],s};T0.displayName="NoInputContainer";const vf=e=>{const t=De.c(8),{currentSelection:n,selectedItemNavigateTo:r,children:i}=e;if(!n||!n.id||!r){let l;return t[0]!==i?(l=b.jsx("div",{className:"luminus-input-container position-relative w-100",children:i}),t[0]=i,t[1]=l):l=t[1],l}let a;t[2]!==n||t[3]!==r?(a=r(n),t[2]=n,t[3]=r,t[4]=a):a=t[4];const o=a;let s;return t[5]!==i||t[6]!==o?(s=b.jsx(no.Link,{to:o,className:"luminus-input-container position-relative w-100 text-decoration-none",children:i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s},PC=e=>{const t=De.c(23),{InputContainer:n,label:r,value:i,onChange:a,hidden:o,disabled:s,className:l,type:c,withoutLabel:u,indeterminate:d,hint:f}=e,h=n===void 0?$s:n,p=v.useRef(null);let m,g;t[0]!==d?(m=()=>{p.current&&(p.current.indeterminate=d??!1)},g=[p,d],t[0]=d,t[1]=m,t[2]=g):(m=t[1],g=t[2]),v.useEffect(m,g);const y=r??"",_=`check-${r}`,w=c??"checkbox",C=r??"";let x;t[3]!==a?(x=$=>{var M;a&&a(((M=$.target)==null?void 0:M.checked)??!1)},t[3]=a,t[4]=x):x=t[4];const S=l??"",E=o??!1,k=s??!1;let T;t[5]!==E||t[6]!==k||t[7]!==_||t[8]!==w||t[9]!==C||t[10]!==x||t[11]!==S||t[12]!==i?(T=b.jsx(Kn.Check,{ref:p,id:_,type:w,label:C,checked:i,onChange:x,className:S,hidden:E,disabled:k}),t[5]=E,t[6]=k,t[7]=_,t[8]=w,t[9]=C,t[10]=x,t[11]=S,t[12]=i,t[13]=T):T=t[13];let D;return t[14]!==h||t[15]!==l||t[16]!==s||t[17]!==o||t[18]!==f||t[19]!==T||t[20]!==y||t[21]!==u?(D=b.jsx(h,{isForCheckInput:!0,hidden:o,label:y,withoutLabel:u,className:l,hint:f,disabled:s,children:T}),t[14]=h,t[15]=l,t[16]=s,t[17]=o,t[18]=f,t[19]=T,t[20]=y,t[21]=u,t[22]=D):D=t[22],D},LC=({InputContainer:e=$s,type:t,value:n,onChange:r,debounceMs:i,label:a,withoutLabel:o,placeholder:s,size:l,hidden:c,disabled:u,showClearIcon:d,clearValue:f,list:h,className:p,step:m,minLength:g,maxLength:y,noSelectOnFocus:_,hint:w,onConfirm:C,autoComplete:x})=>{var P,W,H;const S=t==="number",E=v.useCallback(()=>{if(!r)return;const q=f??null;r(S?q?Number(q):null:(q==null?void 0:q.toString())??"")},[f,S,r]),k=v.useRef(null),[T,D]=v.useState((n==null?void 0:n.toString())??""),$=v.useCallback(q=>{const Z=q;r&&r(S?Z==null||Z===""?null:Number(Z):Z||null)},[S,r]),M=v.useCallback(q=>{var K;const Z=(K=q.target)==null?void 0:K.value;if(!i){$(Z);return}D(Z),k.current!==null&&window.clearTimeout(k.current),k.current=window.setTimeout(()=>{$(Z)},i)},[i,$]),R=v.useMemo(()=>{if(C!==void 0)return q=>{q.key==="Enter"&&C&&C()}},[C]);v.useEffect(()=>{D(n===null?"":n.toString())},[n]);const[I,j]=v.useState(!1),A=_0(t,n?n.toString()??null:null,I),O=v.useRef(null),L=(((P=O.current)==null?void 0:P.scrollWidth)??0)>(((W=O.current)==null?void 0:W.clientWidth)??0),F=(H=O.current)==null?void 0:H.getBoundingClientRect();return b.jsxs(e,{withoutLabel:o,label:a??"",hidden:c,className:p,hint:w,disabled:u,children:[b.jsx(Kn.Control,{type:A,placeholder:s??a,size:l,value:i?T:(n==null?void 0:n.toString())??"",onChange:M,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:q=>{j(!0),!_&&q.target.select()},onBlur:()=>j(!1),onKeyDown:R,step:m,minLength:g,maxLength:y,autoComplete:x,ref:O}),d&&n!==null&&r&&!u&&b.jsx("div",{className:`luminus-input-remove-icon ${t!=="text"?"inset":""}`,children:b.jsx(sa,{color:"secondary",size:"sm",onClick:E,children:b.jsx(Ss,{})})}),L?b.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((F==null?void 0:F.top)??0)+((F==null?void 0:F.height)??0),left:(F==null?void 0:F.left)??0},children:i?T:(n==null?void 0:n.toString())??""}):null]})},bf=e=>{const t=De.c(7),{value:n,MiniDetailComponent:r,children:i,miniDetailPlacement:a}=e;if(!n||!r)return i;let o;t[0]!==n?(o=n.toString(),t[0]=n,t[1]=o):o=t[1];let s;return t[2]!==r||t[3]!==i||t[4]!==a||t[5]!==o?(s=b.jsx(r,{id:o,placement:a,children:i}),t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s):s=t[6],s},FC=({InputContainer:e=$s,value:t,options:n,onChange:r,label:i,withoutLabel:a,isNumber:o,size:s,hidden:l,disabled:c,noSortOptions:u,className:d,suffixIdToName:f,noEmptyOption:h,appendCurrentSelectionWithName:p,dropdownWidth:m,hint:g,addNewOptionPath:y,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:C,selectedItemNavigateTo:x,noRemoveButton:S})=>{const{texts:{customSelect:E}}=v.useContext(Qt),[k,T]=v.useState(!1),[D,$]=v.useState(""),M=v.useCallback(F=>{$(F)},[]),R=v.useMemo(()=>n.find(F=>F.id===t)??null,[n,t]),I=v.useCallback(F=>{var P;return F===null?"":!F.name||F.name.length===0?((P=F.id)==null?void 0:P.toString())??"":f?`${F.name} (${F.id})`:F.name},[f]),j=v.useMemo(()=>{const F=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(F.some(P=>P.id===t)||F.push({id:t,name:p})),F.map(P=>({id:P.id,name:I(P)})).filter(P=>sf(P.name,D)).sort((P,W)=>u?0:(P.name??"").localeCompare(W.name??""))},[n,u,D,I,p,t]),A=v.useCallback(F=>{var P;r&&r((F==null?void 0:F.id)===void 0||(F==null?void 0:F.id)===null?null:o?Number(F.id):(P=F.id)==null?void 0:P.toString())},[r,o]),O=v.useCallback(F=>{T(!1),A(F)},[A]),L=v.useRef(null);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:a,label:i??"",hidden:l,inputContainerClassName:le({"luminus-dropdown-select-open":k}),className:d,hint:g,disabled:c,children:[b.jsx(vf,{currentSelection:R,selectedItemNavigateTo:x,children:b.jsx(bf,{value:t,MiniDetailComponent:w,miniDetailPlacement:C,children:b.jsxs(Kn.Select,{ref:L,size:s,value:t??"",onMouseDown:F=>{F.currentTarget.focus(),F.preventDefault()},onClick:()=>{!c&&T(!0)},onChange:()=>{},className:le("w-100",{"luminus-dropdown-picker-disabled":c}),hidden:l,children:[h&&!(t==null||t==="")?void 0:b.jsx("option",{value:""}),t!=null&&b.jsx("option",{value:t,children:I(R)})]})})}),L.current&&b.jsx(kf,{show:k,onCancel:()=>T(!1),items:j,currentSelection:R??null,onSelectionChange:O,onSearchQueryChange:M,texts:E,disabled:c,inputRef:L,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:y,refreshOptions:_,noRemoveButton:S})]})})},BC=({InputContainer:e=$s,items:t,selectedItemNavigateTo:n,onSearchQueryChange:r,texts:i,isLoading:a,value:o,onSelect:s,label:l,withoutLabel:c,size:u,dropdownItemsNameWidth:d,additionalColumns:f,hidden:h,disabled:p,displayIdAsName:m,CustomOnChangeComponent:g,className:y,archiveColumn:_,icon:w,hint:C,addNewOptionPath:x,refreshOptions:S,MiniDetailComponent:E,miniDetailPlacement:k,suggestedItems:T,suggestedItemsTitle:D,customEllipsisOptions:$,CustomButtons:M})=>{const[R,I]=v.useState(!1),j=v.useCallback(W=>{s&&s(W)},[s]),A=v.useCallback(W=>{I(!1),j(W)},[j]),O=v.useRef(null),L=n!==void 0,F=L&&o!==null,P=v.useMemo(()=>{var W,H;return m?((W=o==null?void 0:o.id)==null?void 0:W.toString())??"":o!=null&&o.name&&o.name.length>0?o.name:((H=o==null?void 0:o.id)==null?void 0:H.toString())??""},[o,m]);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:c,label:l??"",hidden:h,inputContainerClassName:le({"luminus-dropdown-select-open":R}),className:y,hint:C,disabled:p,children:[b.jsxs(vf,{currentSelection:o,selectedItemNavigateTo:n,children:[m&&(o==null?void 0:o.name)&&b.jsx(mn,{variant:"caption",className:"d-flex justify-content-end mt-2 luminus-dropdown-selection-name",children:o.name}),b.jsx(bf,{value:(o==null?void 0:o.id)??null,MiniDetailComponent:E,miniDetailPlacement:k,children:b.jsxs(Kn.Select,{ref:O,size:u,value:(o==null?void 0:o.id)??"",onMouseDown:W=>{W.currentTarget.focus(),W.preventDefault()},onClick:()=>{!L&&!p&&I(!0)},onChange:()=>{},className:le("w-100",{"luminus-dropdown-picker-disabled":p,"luminus-dropdown-picker-link":F}),hidden:h,children:[b.jsx("option",{value:""}),o&&b.jsx("option",{value:o.id??void 0,children:P})]})}),g||!p&&L?b.jsxs("div",{className:"custom-picker-button",children:[!g&&!p&&L&&b.jsx(sa,{size:"sm",color:"secondary",onClick:W=>{W.preventDefault(),W.stopPropagation(),I(!0)},children:w??b.jsx(f4,{})}),g??null]}):null]}),O.current&&b.jsx(kf,{CustomButtons:M,show:R,onCancel:()=>I(!1),items:t,currentSelection:o,onSelectionChange:A,onSearchQueryChange:r,texts:i,itemsNameWidth:d,additionalColumns:f,isLoading:a,disabled:p,inputRef:O,archiveColumn:_,displayIdAsName:m,addNewOptionPath:x,refreshOptions:S,suggestedItems:T,suggestedItemsTitle:D,customEllipsisOptions:$})]})})};function tI(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 nI(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 rI(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 iI(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)}function zC(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 Zl;(function(e){e.event="event",e.props="prop"})(Zl||(Zl={}));function zi(){}function aI(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(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Kl(e){return!!(e||"").match(/\d/)}function Vo(e){return e==null}function oI(e){return typeof e=="number"&&isNaN(e)}function WC(e){return Vo(e)||oI(e)||typeof e=="number"&&!isFinite(e)}function UC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function sI(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 lI(e,t,n){var r=sI(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 cI(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 k0(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function uI(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 HC(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function qb(e,t){return Array(t+1).join(e)}function VC(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+qb("0",Math.abs(o))+i:o>=s?i=i+qb("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function Yb(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=k0(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),c=o.length<=t?"0."+o:l.toFixed(t),u=c.split("."),d=a;a&&Number(u[0])&&(d=a.split("").reverse().reduce(function(m,g,y){return m.length>y?(Number(m[0])+Number(g)).toString()+m.substring(1,m.length):g+m},u[0]));var f=HC(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function Ta(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 qC=aI(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),dI=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function fI(e,t,n){return Math.min(Math.max(e,t),n)}function pp(e){return Math.max(e.selectionStart,e.selectionEnd)}function hI(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function pI(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function mI(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function gI(e,t,n,r,i,a,o){o===void 0&&(o=mI);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=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(g&&d[p]!==!0){f[h]=p,d[p]=!0;break}}}for(var y=r;y<c&&(f[y]===-1||!a(n[y]));)y++;var _=y===c||f[y]===-1?u:f[y];for(y=r-1;y>0&&f[y]===-1;)y--;var w=y===-1||f[y]===-1?0:f[y]+1;return w>_?_:r-w<_-r?w:_}function Gb(e,t,n,r){var i=e.length;if(t=fI(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 vI(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Kl(e[n])||Kl(e[n-1]));return t}function YC(e,t,n,r,i,a){a===void 0&&(a=zi);var o=cI(function(p,m){var g,y;return WC(p)?(y="",g=""):typeof p=="number"||m?(y=typeof p=="number"?VC(p):p,g=r(y)):(y=i(p,void 0),g=r(y)),{formattedValue:g,numAsString:y}}),s=v.useState(function(){return o(Vo(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}),a(p,m)},d=e,f=n;Vo(e)&&(d=l.numAsString,f=!0);var h=o(d,f);return v.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function bI(e){return e.replace(/[^0-9]/g,"")}function yI(e){return e}function xI(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,a=e.getInputRef,o=e.format;o===void 0&&(o=yI);var s=e.removeFormatting;s===void 0&&(s=bI);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=zi);var h=e.onKeyDown;h===void 0&&(h=zi);var p=e.onMouseUp;p===void 0&&(p=zi);var m=e.onFocus;m===void 0&&(m=zi);var g=e.onBlur;g===void 0&&(g=zi);var y=e.value,_=e.getCaretBoundary;_===void 0&&(_=vI);var w=e.isValidInputCharacter;w===void 0&&(w=Kl);var C=e.isCharacterSame,x=zC(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=YC(y,l,!!c,o,s,u),E=S[0],k=E.formattedValue,T=E.numAsString,D=S[1],$=v.useRef(),M=v.useRef({formattedValue:k,numAsString:T}),R=function(G,J){M.current={formattedValue:G.formattedValue,numAsString:G.value},D(G,J)},I=v.useState(!1),j=I[0],A=I[1],O=v.useRef(null),L=v.useRef({setCaretTimeout:null,focusTimeout:null});v.useEffect(function(){return A(!0),function(){clearTimeout(L.current.setCaretTimeout),clearTimeout(L.current.focusTimeout)}},[]);var F=o,P=function(G,J){var ie=parseFloat(J);return{formattedValue:G,value:J,floatValue:isNaN(ie)?void 0:ie}},W=function(G,J,ie){G.selectionStart===0&&G.selectionEnd===G.value.length||(Ta(G,J),L.current.setCaretTimeout=setTimeout(function(){G.value===ie&&G.selectionStart!==J&&Ta(G,J)},0))},H=function(G,J,ie){return Gb(G,J,_(G),ie)},q=function(G,J,ie){var oe=_(J),be=gI(J,k,G,ie,oe,w,C);return be=Gb(J,be,oe),be},Z=function(G){var J=G.formattedValue;J===void 0&&(J="");var ie=G.input,oe=G.source,be=G.event,ce=G.numAsString,ue;if(ie){var Ce=G.inputValue||ie.value,ke=pp(ie);ie.value=J,ue=q(Ce,J,ke),ue!==void 0&&W(ie,ue,J)}J!==k&&R(P(J,ce),{event:be,source:oe})};v.useEffect(function(){var G=M.current,J=G.formattedValue,ie=G.numAsString;(k!==J||T!==ie)&&R(P(k,T),{event:void 0,source:Zl.props})},[k,T]);var K=O.current?pp(O.current):void 0,te=typeof window<"u"?v.useLayoutEffect:v.useEffect;te(function(){var G=O.current;if(k!==M.current.formattedValue&&G){var J=q(M.current.formattedValue,k,K);G.value=k,W(G,J,k)}},[k]);var ne=function(G,J,ie){var oe=J.target,be=$.current?dI($.current,oe.selectionEnd):qC(k,G),ce=Object.assign(Object.assign({},be),{lastValue:k}),ue=s(G,ce),Ce=F(ue);if(ue=s(Ce,void 0),d&&!d(P(Ce,ue))){var ke=J.target,ye=pp(ke),Me=q(G,k,ye);return ke.value=k,W(ke,Me,k),!1}return Z({formattedValue:Ce,numAsString:ue,inputValue:G,event:J,source:ie,input:J.target}),!0},U=function(G,J){J===void 0&&(J=0);var ie=G.selectionStart,oe=G.selectionEnd;$.current={selectionStart:ie,selectionEnd:oe+J}},B=function(G){var J=G.target,ie=J.value,oe=ne(ie,G,Zl.event);oe&&f(G),$.current=void 0},z=function(G){var J=G.target,ie=G.key,oe=J.selectionStart,be=J.selectionEnd,ce=J.value;ce===void 0&&(ce="");var ue;ie==="ArrowLeft"||ie==="Backspace"?ue=Math.max(oe-1,0):ie==="ArrowRight"?ue=Math.min(oe+1,ce.length):ie==="Delete"&&(ue=oe);var Ce=0;ie==="Delete"&&oe===be&&(Ce=1);var ke=ie==="ArrowLeft"||ie==="ArrowRight";if(ue===void 0||oe!==be&&!ke){h(G),U(J,Ce);return}var ye=ue;if(ke){var Me=ie==="ArrowLeft"?"left":"right";ye=H(ce,ue,Me),ye!==ue&&G.preventDefault()}else ie==="Delete"&&!w(ce[ue])?ye=H(ce,ue,"right"):ie==="Backspace"&&!w(ce[ue])&&(ye=H(ce,ue,"left"));ye!==ue&&W(J,ye,ce),h(G),U(J,Ce)},V=function(G){var J=G.target,ie=function(){var oe=J.selectionStart,be=J.selectionEnd,ce=J.value;if(ce===void 0&&(ce=""),oe===be){var ue=H(ce,oe);ue!==oe&&W(J,ue,ce)}};ie(),requestAnimationFrame(function(){ie()}),p(G),U(J)},N=function(G){G.persist&&G.persist();var J=G.target,ie=G.currentTarget;O.current=J,L.current.focusTimeout=setTimeout(function(){var oe=J.selectionStart,be=J.selectionEnd,ce=J.value;ce===void 0&&(ce="");var ue=H(ce,oe);ue!==oe&&!(oe===0&&be===ce.length)&&W(J,ue,ce),m(Object.assign(Object.assign({},G),{currentTarget:ie}))},0)},ee=function(G){O.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),g(G)},Q=j&&hI()?"numeric":void 0,X=Object.assign({inputMode:Q},x,{type:t,value:k,onChange:B,onKeyDown:z,onMouseUp:V,onFocus:N,onBlur:ee});if(n==="text")return i?v.createElement(v.Fragment,null,i(k,x)||null):v.createElement("span",Object.assign({},x,{ref:a}),k);if(r){var se=r;return v.createElement(se,Object.assign({},X,{ref:a}))}return v.createElement("input",Object.assign({},X,{ref:a}))}function Zb(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=yf(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=k0(e,o),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=HC(p,n,!!r)),c&&(h=lI(h,c,s)),i&&(h=i+h),a&&(p=p+a),m&&(h="-"+h),e=h+(d&&u||"")+p,e}function yf(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 wI(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function _I(e,t){return new RegExp("(^-)|[0-9]|"+UC(e),"g")}function CI(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function SI(e,t,n){var r;t===void 0&&(t=pI(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=yf(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,m=e[d]===p;if(Kl(e)&&(e===a||e===o)&&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 y=function(O,L,F){var P=!1,W=!1;a.startsWith("-")?P=!1:O.startsWith("--")?(P=!1,W=!0):o.startsWith("-")&&O.length===o.length?P=!1:O[0]==="-"&&(P=!0);var H=P?1:0;return W&&(H=2),H&&(O=O.substring(H),L-=H,F-=H),{value:O,start:L,end:F,hasNegation:P}},_=y(e,u,d),w=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var C=y(t.lastValue,l.start,l.end),x=C.start,S=C.end,E=C.value,k=e.substring(u,d);e.length&&E.length&&(x>E.length-o.length||S<a.length)&&!(k&&o.startsWith(k))&&(e=E);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var D=e.length,$=e.length-o.length;e.endsWith(o)?D=$:(d>$||d>e.length-o.length)&&(D=d),e=e.substring(0,D),e=wI(w?"-"+e:e,i),e=(e.match(_I(p))||[]).join("");var M=e.indexOf(p);e=e.replace(new RegExp(UC(p),"g"),function(O,L){return L===M?".":""});var R=k0(e,i),I=R.beforeDecimal,j=R.afterDecimal,A=R.addNegation;return c.end-c.start<l.end-l.start&&I===""&&m&&!parseFloat(j)&&(e=A?"-":""),e}function TI(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}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function kI(e){var t=yf(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!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("-")&&a&&(console.error(`
251
+ Prefix can't start with '-' when allowNegative is true.
252
+ prefix: `+i+`
253
+ allowNegative: `+a+`
254
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function $I(e){e=kI(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=zi);var a=e.onBlur;a===void 0&&(a=zi);var o=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=zC(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=yf(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,_=function(A){return Zb(A,e)},w=function(A,O){return SI(A,O,e)},C=Vo(d)?u:d,x=f??CI(C,c,t);Vo(d)?Vo(u)||(x=x||typeof u=="number"):x=x||typeof d=="number";var S=function(A){return WC(A)?A:(typeof A=="number"&&(A=VC(A)),x&&typeof s=="number"?Yb(A,s,!!l):A)},E=YC(S(d),S(u),!!x,_,w,h),k=E[0],T=k.numAsString,D=k.formattedValue,$=E[1],M=function(A){var O=A.target,L=A.key,F=O.selectionStart,P=O.selectionEnd,W=O.value;if(W===void 0&&(W=""),(L==="Backspace"||L==="Delete")&&P<c.length){A.preventDefault();return}if(F!==P){i(A);return}L==="Backspace"&&W[0]==="-"&&F===c.length+1&&n&&Ta(O,1),s&&l&&(L==="Backspace"&&W[F-1]===g?(Ta(O,F-1),A.preventDefault()):L==="Delete"&&W[F]===g&&A.preventDefault()),y!=null&&y.includes(L)&&W[F]===g&&Ta(O,F+1);var H=o===!0?",":o;L==="Backspace"&&W[F-1]===H&&Ta(O,F-1),L==="Delete"&&W[F]===H&&Ta(O,F+1),i(A)},R=function(A){var O=T;if(O.match(/\d/g)||(O=""),r||(O=uI(O)),l&&s&&(O=Yb(O,s,l)),O!==T){var L=Zb(O,e);$({formattedValue:L,value:O,floatValue:parseFloat(O)},{event:A,source:Zl.event})}a(A)},I=function(A){return A===g?!0:Kl(A)},j=function(A){var O=A.currentValue,L=A.lastValue,F=A.formattedValue,P=A.currentValueIndex,W=A.formattedValueIndex,H=O[P],q=F[W],Z=qC(L,O),K=Z.to,te=function(ne){return w(ne).indexOf(".")+c.length};return d===0&&l&&s&&O[K.start]===g&&te(O)<P&&te(F)>W?!1:P>=K.start&&P<K.end&&y&&y.includes(H)&&q===g?!0:H===q};return Object.assign(Object.assign({},p),{value:D,valueIsNumericString:!1,isValidInputCharacter:I,isCharacterSame:j,onValueChange:$,format:_,removeFormatting:w,getCaretBoundary:function(A){return TI(A,e)},onKeyDown:M,onBlur:R})}function GC(e){var t=$I(e);return v.createElement(xI,Object.assign({},t))}const ZC=e=>{const t=De.c(41),{InputContainer:n,formField:r,label:i,resetsFields:a,type:o,required:s,hidden:l,disabled:c,withoutLabel:u,hint:d,onChange:f,className:h}=e,p=n===void 0?ki:n,{control:m,setValue:g}=At.useFormContext(),{isSubmitted:y}=At.useFormState();let _;t[0]===Symbol.for("react.memo_cache_sentinel")?(_={falseIfNotInit:!0},t[0]=_):_=t[0];const w=ao(_),[C,x]=v.useState(!1);let S;t[1]!==m||t[2]!==r?(S={name:r,control:m},t[1]=m,t[2]=r,t[3]=S):S=t[3];const{field:E,fieldState:k}=At.useController(S),{error:T}=k,{onChange:D,onBlur:$,ref:M,value:R,name:I}=E,j=c||w;let A,O;t[4]!==y?(A=()=>{y&&x(!0)},O=[y],t[4]=y,t[5]=A,t[6]=O):(A=t[5],O=t[6]),v.useEffect(A,O);const L=T!==void 0;let F;t[7]!==D||t[8]!==f||t[9]!==a||t[10]!==g||t[11]!==C?(F=V=>{const N=V.target.checked??!1;D(N),a&&a.forEach(ee=>g(ee,null,{shouldDirty:!0,shouldValidate:C})),f&&f(N)},t[7]=D,t[8]=f,t[9]=a,t[10]=g,t[11]=C,t[12]=F):F=t[12];const P=F;let W;t[13]!==$?(W=()=>{$()},t[13]=$,t[14]=W):W=t[14];const H=W,q=i??"",Z=`check-${r}`,K=o??"checkbox",te=`${i}${s?" *":""}`,ne=R??!1;let U;t[15]!==j||t[16]!==I||t[17]!==M||t[18]!==H||t[19]!==P||t[20]!==l||t[21]!==L||t[22]!==Z||t[23]!==K||t[24]!==te||t[25]!==ne?(U=b.jsx(Kn.Check,{id:Z,type:K,label:te,name:I,checked:ne,onChange:P,onBlur:H,ref:M,isInvalid:L,hidden:l,disabled:j,className:"w-100"}),t[15]=j,t[16]=I,t[17]=M,t[18]=H,t[19]=P,t[20]=l,t[21]=L,t[22]=Z,t[23]=K,t[24]=te,t[25]=ne,t[26]=U):U=t[26];let B;t[27]!==T?(B=T&&b.jsx(oo,{message:T.message}),t[27]=T,t[28]=B):B=t[28];let z;return t[29]!==p||t[30]!==j||t[31]!==h||t[32]!==l||t[33]!==d||t[34]!==L||t[35]!==s||t[36]!==U||t[37]!==B||t[38]!==q||t[39]!==u?(z=b.jsxs(p,{isForCheckInput:!0,hidden:l,label:q,required:s,disabled:j,isInvalid:L,withoutLabel:u,hint:d,className:h,children:[U,B]}),t[29]=p,t[30]=j,t[31]=h,t[32]=l,t[33]=d,t[34]=L,t[35]=s,t[36]=U,t[37]=B,t[38]=q,t[39]=u,t[40]=z):z=t[40],z},$0=e=>{const t=De.c(66),{InputContainer:n,formField:r,label:i,resetsFields:a,options:o,isNumber:s,size:l,showClearIcon:c,clearValue:u,noSortOptions:d,required:f,hidden:h,disabled:p,withoutLabel:m,hint:g,className:y}=e,_=n===void 0?ki:n,{control:w,getValues:C,setValue:x}=At.useFormContext(),{isSubmitted:S}=At.useFormState();let E;t[0]===Symbol.for("react.memo_cache_sentinel")?(E={falseIfNotInit:!0},t[0]=E):E=t[0];const k=ao(E);let T;t[1]!==w||t[2]!==r?(T={name:r,control:w},t[1]=w,t[2]=r,t[3]=T):T=t[3];const{field:D,fieldState:$}=At.useController(T),{value:M,onChange:R,onBlur:I,ref:j,name:A}=D,{error:O}=$,[L,F]=v.useState(!1);let P;if(t[4]!==d||t[5]!==o){let oe;t[7]!==d?(oe=(be,ce)=>d?0:(be.name??"").localeCompare(ce.name??""),t[7]=d,t[8]=oe):oe=t[8],P=o.toSorted(oe),t[4]=d,t[5]=o,t[6]=P}else P=t[6];const W=P;let H;t[9]!==u||t[10]!==r||t[11]!==s||t[12]!==x||t[13]!==L?(H=()=>{const oe=u??null;s?x(r,oe===null?null:Number(oe),{shouldDirty:!0,shouldValidate:L}):x(r,(oe==null?void 0:oe.toString())??"",{shouldDirty:!0,shouldValidate:L})},t[9]=u,t[10]=r,t[11]=s,t[12]=x,t[13]=L,t[14]=H):H=t[14];const q=H,Z=p||k;let K;t[15]!==r||t[16]!==C||t[17]!==x?(K=()=>{x(r,C(r))},t[15]=r,t[16]=C,t[17]=x,t[18]=K):K=t[18];let te;t[19]!==r||t[20]!==C||t[21]!==W||t[22]!==x?(te=[W,r,C,x],t[19]=r,t[20]=C,t[21]=W,t[22]=x,t[23]=te):te=t[23],v.useEffect(K,te);let ne,U;t[24]!==S?(ne=()=>{S&&F(!0)},U=[S],t[24]=S,t[25]=ne,t[26]=U):(ne=t[25],U=t[26]),v.useEffect(ne,U);const B=O!==void 0;let z;t[27]!==R||t[28]!==s||t[29]!==a||t[30]!==x||t[31]!==L?(z=oe=>{const be=oe.target.value;let ce;s?ce=be===""?null:parseInt(be,10):ce=be===""?null:be,R(ce),a&&a.forEach(ue=>x(ue,null,{shouldDirty:!0,shouldValidate:L}))},t[27]=R,t[28]=s,t[29]=a,t[30]=x,t[31]=L,t[32]=z):z=t[32];const V=z,N=i??"",ee=M??"";let Q;t[33]===Symbol.for("react.memo_cache_sentinel")?(Q=b.jsx("option",{value:""}),t[33]=Q):Q=t[33];let X;t[34]!==W?(X=W.map(EI),t[34]=W,t[35]=X):X=t[35];let se;t[36]!==Z||t[37]!==A||t[38]!==I||t[39]!==j||t[40]!==V||t[41]!==h||t[42]!==B||t[43]!==l||t[44]!==ee||t[45]!==X?(se=b.jsxs(Kn.Select,{size:l,name:A,value:ee,onChange:V,onBlur:I,ref:j,isInvalid:B,hidden:h,disabled:Z,className:"w-100",children:[Q,X]}),t[36]=Z,t[37]=A,t[38]=I,t[39]=j,t[40]=V,t[41]=h,t[42]=B,t[43]=l,t[44]=ee,t[45]=X,t[46]=se):se=t[46];let G;t[47]!==q||t[48]!==M||t[49]!==c?(G=c&&M!=null&&b.jsx("div",{className:"luminus-input-remove-icon inset",children:b.jsx(sa,{color:"secondary",size:"sm",onClick:q,children:b.jsx(Ss,{})})}),t[47]=q,t[48]=M,t[49]=c,t[50]=G):G=t[50];let J;t[51]!==O?(J=O&&b.jsx(oo,{message:O.message}),t[51]=O,t[52]=J):J=t[52];let ie;return t[53]!==_||t[54]!==Z||t[55]!==y||t[56]!==h||t[57]!==g||t[58]!==B||t[59]!==f||t[60]!==N||t[61]!==se||t[62]!==G||t[63]!==J||t[64]!==m?(ie=b.jsx(b.Fragment,{children:b.jsxs(_,{label:N,required:f,disabled:Z,hidden:h,withoutLabel:m,isInvalid:B,hint:g,className:y,children:[se,G,J]})}),t[53]=_,t[54]=Z,t[55]=y,t[56]=h,t[57]=g,t[58]=B,t[59]=f,t[60]=N,t[61]=se,t[62]=G,t[63]=J,t[64]=m,t[65]=ie):ie=t[65],ie};function EI(e){return b.jsx("option",{value:e.id??"",children:e.name},e.id)}const E0=e=>{const t=De.c(61),{InputContainer:n,formField:r,label:i,resetsFields:a,size:o,showClearIcon:s,clearValue:l,required:c,hidden:u,disabled:d,rows:f,withoutLabel:h,customFormControlProps:p,minLength:m,maxLength:g,hint:y,onChange:_,className:w}=e,C=n===void 0?ki:n,{control:x,setValue:S}=At.useFormContext(),{isSubmitted:E}=At.useFormState();let k;t[0]===Symbol.for("react.memo_cache_sentinel")?(k={falseIfNotInit:!0},t[0]=k):k=t[0];const T=ao(k),[D,$]=v.useState(!1);let M;t[1]!==x||t[2]!==r?(M={name:r,control:x},t[1]=x,t[2]=r,t[3]=M):M=t[3];const{field:R,fieldState:I}=At.useController(M),{onChange:j,onBlur:A,ref:O,value:L,name:F}=R,{error:P}=I;let W;t[4]!==p?(W=p??{},t[4]=p,t[5]=W):W=t[5];let H,q,Z;t[6]!==W?({onChange:q,onBlur:H,...Z}=W,t[6]=W,t[7]=H,t[8]=q,t[9]=Z):(H=t[7],q=t[8],Z=t[9]);let K;t[10]!==l||t[11]!==r||t[12]!==S||t[13]!==D?(K=()=>{const ue=l??null,Ce=ue==null||ue===""?null:ue.toString();S(r,Ce,{shouldDirty:!0,shouldValidate:D})},t[10]=l,t[11]=r,t[12]=S,t[13]=D,t[14]=K):K=t[14];const te=K,ne=d||T;let U,B;t[15]!==E?(U=()=>{E&&$(!0)},B=[E],t[15]=E,t[16]=U,t[17]=B):(U=t[16],B=t[17]),v.useEffect(U,B);const z=P!==void 0;let V;t[18]!==q||t[19]!==j||t[20]!==_||t[21]!==a||t[22]!==S||t[23]!==D?(V=ue=>{const Ce=ue.target.value,ke=Ce==null||Ce===""?null:Ce;j(ke),a&&a.forEach(ye=>S(ye,null,{shouldDirty:!0,shouldValidate:D})),_&&_(ke),q&&q(ue)},t[18]=q,t[19]=j,t[20]=_,t[21]=a,t[22]=S,t[23]=D,t[24]=V):V=t[24];const N=V;let ee;t[25]!==H||t[26]!==A?(ee=ue=>{A(),H&&H(ue)},t[25]=H,t[26]=A,t[27]=ee):ee=t[27];const Q=ee,X=L!=null&&L!=="",se=i??"",G=L??"",J=f??2;let ie;t[28]!==ne||t[29]!==F||t[30]!==O||t[31]!==Q||t[32]!==N||t[33]!==u||t[34]!==z||t[35]!==g||t[36]!==m||t[37]!==Z||t[38]!==o||t[39]!==G||t[40]!==J?(ie=b.jsx(Kn.Control,{as:"textarea",name:F,size:o,value:G,onChange:N,onBlur:Q,ref:O,isInvalid:z,hidden:u,disabled:ne,rows:J,className:"w-100",minLength:m,maxLength:g,...Z}),t[28]=ne,t[29]=F,t[30]=O,t[31]=Q,t[32]=N,t[33]=u,t[34]=z,t[35]=g,t[36]=m,t[37]=Z,t[38]=o,t[39]=G,t[40]=J,t[41]=ie):ie=t[41];let oe;t[42]!==te||t[43]!==X||t[44]!==s?(oe=s&&X&&b.jsx("div",{className:"luminus-input-remove-icon",children:b.jsx(sa,{color:"secondary",size:"sm",onClick:te,children:b.jsx(Ss,{})})}),t[42]=te,t[43]=X,t[44]=s,t[45]=oe):oe=t[45];let be;t[46]!==P?(be=P&&b.jsx(oo,{message:P.message}),t[46]=P,t[47]=be):be=t[47];let ce;return t[48]!==C||t[49]!==ne||t[50]!==w||t[51]!==u||t[52]!==y||t[53]!==z||t[54]!==c||t[55]!==se||t[56]!==ie||t[57]!==oe||t[58]!==be||t[59]!==h?(ce=b.jsxs(C,{label:se,required:c,disabled:ne,hidden:u,withoutLabel:h,isInvalid:z,className:w,hint:y,isForTextAreaInput:!0,children:[ie,oe,be]}),t[48]=C,t[49]=ne,t[50]=w,t[51]=u,t[52]=y,t[53]=z,t[54]=c,t[55]=se,t[56]=ie,t[57]=oe,t[58]=be,t[59]=h,t[60]=ce):ce=t[60],ce},La=({ref:e,InputContainer:t=ki,type:n,formField:r,label:i,placeholder:a,size:o,resetsFields:s,showClearIcon:l,clearValue:c,required:u,hidden:d,disabled:f,withoutLabel:h,list:p,step:m,CustomOnChangeComponent:g,noSelectOnFocus:y,minLength:_,maxLength:w,hint:C,onChange:x,className:S,autoComplete:E})=>{var V,N,ee,Q;const{control:k,setValue:T}=At.useFormContext(),{isSubmitted:D}=At.useFormState(),$=ao({falseIfNotInit:!0}),{field:{value:M,onChange:R,onBlur:I,ref:j,name:A},fieldState:{error:O}}=At.useController({name:r,control:k}),[L,F]=v.useState(!1),P=v.useCallback(()=>{const X=c??null;n==="number"?T(r,X!==null?Number(X):null,{shouldDirty:!0,shouldValidate:L}):T(r,(X==null?void 0:X.toString())??"",{shouldDirty:!0,shouldValidate:L})},[c,n,T,r,L]),W=v.useMemo(()=>f||$,[f,$]),H=O!==void 0,[q,Z]=v.useState(!1),K=_0(n,M??null,q),te=v.useCallback(X=>{const se=X.target.value;let G=se;n==="number"?G=se===""?null:Number(se):G=se===""?null:se,R(G),s&&s.forEach(J=>T(J,null,{shouldDirty:!0,shouldValidate:L})),x&&x(G===null?null:n==="number"?G??null:G.toString())},[R,x,s,T,L,n]),ne=v.useCallback(()=>{Z(!1),I()},[I]),U=v.useRef(null),B=(((V=U.current)==null?void 0:V.scrollWidth)??0)>(((N=U.current)==null?void 0:N.clientWidth)??0),z=(ee=U.current)==null?void 0:ee.getBoundingClientRect();return v.useImperativeHandle(e,()=>U.current,[U]),v.useEffect(()=>{D&&F(!0)},[D]),b.jsxs(t,{label:i,required:u,disabled:W,hidden:d,withoutLabel:h??!1,isInvalid:H,hint:C,className:S,children:[b.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[b.jsx(Kn.Control,{type:K,placeholder:a??i,size:o,name:A,value:M??"",onChange:te,onBlur:ne,onFocus:X=>{Z(!0),!y&&X.target.select()},ref:X=>{j(X),U.current=X},isInvalid:H,hidden:d,disabled:W,list:p,className:"w-100",step:m,minLength:_,maxLength:w,autoComplete:E}),g&&b.jsx("div",{className:"custom-picker-button",children:g})]}),l&&M!=null&&b.jsx("div",{className:`luminus-input-remove-icon ${n!=="text"?"inset":""}`,children:b.jsx(sa,{color:"secondary",size:"sm",onClick:P,children:b.jsx(Ss,{})})}),B?b.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,pointerEvents:"none"},children:((Q=U.current)==null?void 0:Q.value)??""}):null,O&&b.jsx(oo,{message:O.message})]})},Nm=({InputContainer:e=ki,options:t,formField:n,label:r,size:i,resetsFields:a,isNumber:o,required:s,hidden:l,disabled:c,withoutLabel:u,noSortOptions:d,suffixIdToName:f,onSelect:h,className:p,appendCurrentSelectionWithName:m,hint:g,addNewOptionPath:y,refreshOptions:_,MiniDetailComponent:w,miniDetailPlacement:C,selectedItemNavigateTo:x,noRemoveButton:S})=>{const{texts:{customSelect:E}}=v.useContext(Qt),{control:k,setValue:T}=At.useFormContext(),{isSubmitted:D}=At.useFormState(),$=ao({falseIfNotInit:!0}),{field:{value:M,ref:R,name:I},fieldState:{error:j}}=At.useController({name:n,control:k}),[A,O]=v.useState(!1),[L,F]=v.useState(!1),[P,W]=v.useState(""),H=M,q=v.useMemo(()=>t.find(N=>N.id===H)??null,[t,H]),Z=v.useCallback(N=>{if((N==null?void 0:N.id)===H)return;if(h&&h(N),a&&a.forEach(Q=>T(Q,null,{shouldDirty:!0,shouldValidate:L})),N===null){T(n,null,{shouldDirty:!0,shouldValidate:L});return}let ee=null;o?ee=(N==null?void 0:N.id)!==null&&(N==null?void 0:N.id)!==""?parseInt(N.id.toString(),10):null:ee=N.id===null||N.id===void 0||N.id===""?null:N.id,T(n,ee,{shouldDirty:!0,shouldValidate:L})},[T,n,o,a,H,L,h]),K=v.useCallback(N=>{O(!1),Z(N)},[Z]),te=v.useCallback(N=>{W(N)},[]),ne=v.useMemo(()=>c||$,[c,$]);v.useEffect(()=>{D&&F(!0)},[D]);const U=v.useCallback(N=>{var ee;return N===null?"":!N.name||N.name.length===0?((ee=N.id)==null?void 0:ee.toString())??"":f?`${N.name} (${N.id})`:N.name},[f]),B=v.useMemo(()=>{const N=t?[...t]:[];return m!==void 0&&H&&(N.some(ee=>ee.id===H)||N.push({id:H,name:m})),N.map(ee=>({id:ee.id,name:U(ee)})).filter(ee=>sf(ee.name,P)).sort((ee,Q)=>d?0:(ee.name??"").localeCompare(Q.name??""))},[t,d,P,U,m,H]),z=v.useRef(null),V=j!==void 0;return b.jsx(b.Fragment,{children:b.jsxs(e,{label:r??"",required:s,disabled:ne,hidden:l,withoutLabel:u,isInvalid:V,inputContainerClassName:le({"luminus-dropdown-select-open":A}),hint:g,className:p,children:[b.jsxs(vf,{currentSelection:q,selectedItemNavigateTo:x,children:[b.jsx("input",{type:"hidden",name:I,value:M??"",ref:R}),b.jsx(bf,{value:H,MiniDetailComponent:w,miniDetailPlacement:C,children:b.jsx(Kn.Select,{size:i,onMouseDown:N=>{N.currentTarget.focus(),N.preventDefault()},onClick:()=>{O(!0)},ref:z,value:H??"",onChange:()=>{},isInvalid:V,hidden:l,disabled:ne,className:"w-100",children:b.jsx("option",{value:(q==null?void 0:q.id)??"",children:U(q)})})})]}),j&&b.jsx(oo,{message:j.message}),z.current&&b.jsx(kf,{show:A,onCancel:()=>O(!1),items:B,currentSelection:q??null,onSelectionChange:K,onSearchQueryChange:te,texts:E,disabled:ne,inputRef:z,autoHideSearch:!0,allItemsLength:t.length,addNewOptionPath:y,refreshOptions:_,noRemoveButton:S})]})})},KC=({InputContainer:e=ki,formField:t,label:n,placeholder:r,resetsFields:i,showClearIcon:a,clearValue:o,required:s,hidden:l,disabled:c,withoutLabel:u,step:d,size:f,CustomOnChangeComponent:h,noSelectOnFocus:p,className:m,decimalScale:g=2,fixedDecimalScale:y=!1,numberPrefix:_,numberSuffix:w,min:C,max:x,onChange:S,hint:E})=>{const{control:k,setValue:T}=At.useFormContext(),{isSubmitted:D}=At.useFormState(),$=ao({falseIfNotInit:!0}),{field:{value:M,onChange:R,onBlur:I,ref:j,name:A},fieldState:{error:O}}=At.useController({name:t,control:k}),[L,F]=v.useState(!1),P=v.useCallback(()=>{const Z=o??null;T(t,Z!==null?Number(Z):null,{shouldDirty:!0,shouldValidate:L})},[o,T,t,L]),W=v.useMemo(()=>c||$,[c,$]);v.useEffect(()=>{D&&F(!0)},[D]);const H=M;v.useEffect(()=>{x!==void 0&&H>x&&T(t,x),C!==void 0&&H<C&&T(t,C)},[t,H,x,C,T]);const q=O!==void 0;return b.jsxs(e,{label:n??"",required:s,disabled:W,hidden:l,withoutLabel:u,isInvalid:q,hint:E,className:m,children:[b.jsxs("div",{className:"luminus-input-container position-relative w-100",children:[b.jsx(GC,{displayType:"input",thousandSeparator:" ",decimalSeparator:",",decimalScale:g,fixedDecimalScale:y,prefix:_,suffix:w,defaultValue:"",name:A,value:M??"",placeholder:r??n,onFocus:Z=>{!p&&Z.target.select()},onChange:Z=>{var ne,U;const K=parseFloat(((U=(ne=Z.target)==null?void 0:ne.value)==null?void 0:U.replaceAll(" ","").replaceAll(",","."))??"0");i&&i.forEach(B=>T(B,null,{shouldDirty:!0,shouldValidate:L}));const te=Number.isNaN(K)?null:Number(K);R(te),S&&S(te)},onBlur:()=>I(),hidden:l,disabled:W,className:le("form-control text-end w-100",{"is-invalid":q},{[`form-control-${f}`]:f}),step:d,getInputRef:j,min:C,max:x}),h&&b.jsx("div",{className:"custom-picker-button",children:h})]}),a&&H!=null&&b.jsx("div",{className:"luminus-input-remove-icon inset",children:b.jsx(sa,{color:"secondary",size:"sm",onClick:P,children:b.jsx(Ss,{})})}),O&&b.jsx(oo,{message:O.message})]})},MI="_item_1dy8x_1",XC={item:MI},Ma=e=>{const t=De.c(17);let n,r,i,a,o,s,l;t[0]!==e?({color:s,icon:i,className:r,children:n,to:l,as:a,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l):(n=t[1],r=t[2],i=t[3],a=t[4],o=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=le(u,XC.item),t[8]=u,t[9]=d):d=t[9];const f=a==="link"?no.Link:void 0,h=l??"";let p;return t[10]!==n||t[11]!==i||t[12]!==o||t[13]!==d||t[14]!==f||t[15]!==h?(p=b.jsxs(as.Item,{className:d,as:f,to:h,...o,children:[i,n]}),t[10]=n,t[11]=i,t[12]=o,t[13]=d,t[14]=f,t[15]=h,t[16]=p):p=t[16],p},OI="_button_qhwih_1",AI={button:OI},M0=({ref:e,color:t="primary",icon:n=b.jsx(p4,{size:21}),text:r,onClick:i,className:a,children:o,...s})=>b.jsxs("button",{type:"button",ref:e,onClick:l=>{l.preventDefault(),i(l)},"aria-label":"dropdown toggle",className:le(`btn luminus-context-button text-${t} ${a??""}`,AI.button),...s,children:[n,r]}),O0=e=>{const t=De.c(2);let n;return t[0]!==e?(n=b.jsx(as.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},RI="_divider_1e6rk_1",DI={divider:RI},Pm=e=>{const t=De.c(4),{className:n}=e;let r;t[0]!==n?(r=le("luminus-dropdown-divider",n,DI.divider),t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=b.jsx(as.Divider,{className:r}),t[2]=r,t[3]=i):i=t[3],i},II="_dropdown_1lk66_1",jI={dropdown:II},A0=e=>{const t=De.c(23);let n,r,i,a,o,s,l,c,u,d;if(t[0]!==e){const{toggle:m,children:g,align:y,..._}=e;a=g,i=y;const{menuAlign:w,menuClassName:C,...x}=_.menuProps||{};o=w,s=x,r=as,c=_,u=i,d=m,n=as.Menu,l=le("luminus-dropdown rounded shadow",jI.dropdown,C),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,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],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10];const f=i||o;let h;t[11]!==n||t[12]!==a||t[13]!==s||t[14]!==l||t[15]!==f?(h=b.jsx(n,{className:l,align:f,...s,children:a}),t[11]=n,t[12]=a,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=b.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},NI="_wrapper_1tb6d_1",PI="_controls_1tb6d_16",LI="_explorerWindow_1tb6d_20",FI="_folderList_1tb6d_28",BI="_fileList_1tb6d_35",zI="_dndText_1tb6d_61",ga={wrapper:NI,controls:PI,explorerWindow:LI,folderList:FI,fileList:BI,dndText:zI},gn=v.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),WI="_defaultFolder_8tlxv_1",UI="_names_8tlxv_5",HI="_folderType_8tlxv_9",mp={defaultFolder:WI,names:UI,folderType:HI},JC=e=>{const t=De.c(19),{isActive:n,isDefault:r,folderName:i,typeName:a}=e,{ProjectIconComponent:o}=v.useContext(Qt),s=`folder${n?"-filled":""}`,l=r?mp.defaultFolder:"text-primary";let c;t[0]!==l?(c=le("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]!==o||t[4]!==s||t[5]!==c?(d=b.jsx(o,{icon:s,className:c,iconProps:u,size:18}),t[3]=o,t[4]=s,t[5]=c,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=le("d-flex flex-column gap-0 align-items-start",mp.names),t[7]=f):f=t[7];const h=n?"fw-bold":"";let p;t[8]!==i||t[9]!==h?(p=b.jsx("span",{className:h,children:i}),t[8]=i,t[9]=h,t[10]=p):p=t[10];let m;t[11]!==a?(m=a?b.jsxs("span",{className:mp.folderType,children:["(",a,")"]}):null,t[11]=a,t[12]=m):m=t[12];let g;t[13]!==p||t[14]!==m?(g=b.jsxs("div",{className:f,children:[p,m]}),t[13]=p,t[14]=m,t[15]=g):g=t[15];let y;return t[16]!==g||t[17]!==d?(y=b.jsxs("div",{className:"d-flex gap-2 align-items-center",children:[d,g]}),t[16]=g,t[17]=d,t[18]=y):y=t[18],y},VI=e=>{const t=De.c(9),{customText:n}=e,{reducer:r}=v.useContext(gn),[i,a]=r;let o;t[0]!==a?(o=()=>{a({type:"select-folder",folderId:"root"})},t[0]=a,t[1]=o):o=t[1];const s=o;let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=le("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=b.jsx(JC,{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=b.jsx("li",{children:b.jsx("button",{onClick:s,type:"button",className:l,children:d})}),t[6]=s,t[7]=d,t[8]=f):f=t[8],f};function qI(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const QC=()=>{const e=jc(),{startLoading:t,stopLoading:n}=v.useContext(Oc),{reducer:[,r]}=v.useContext(gn),i=v.useCallback(async(o,s)=>{t("documents-renameFolder");try{await e.put("/documents/folder/rename",{folderId:o,name:s}),r({type:"update-folders",folderIds:[o],newProperties:{name:s}})}finally{n("documents-renameFolder")}},[e,r,t,n]),a=v.useCallback(async o=>{t("documentsFolderCreate");try{const s=await e.post("/documents/folder",o);r({type:"create-folder",folderData:o,folderId:s.data.id,isOnlyRead:s.data.onlyRead})}finally{n("documentsFolderCreate")}},[e,r,t,n]);return{renameFolder:i,createFolder:a}},Kb=(e,t,n)=>{if(e&&"reportValidity"in e){const r=At.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},e3=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Kb(r.ref,n,e):r.refs&&r.refs.forEach(i=>Kb(i,n,e))}},YI=(e,t)=>{t.shouldUseNativeValidation&&e3(e,t);const n={};for(const r in e){const i=At.get(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(GI(t.names||Object.keys(e),r)){const o=Object.assign({},At.get(n,r));At.set(o,"root",a),At.set(n,r,o)}else At.set(n,r,a)}return n},GI=(e,t)=>e.some(n=>n.startsWith(t+"."));var ZI=function(e,t){for(var n={};e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[o]={message:s.message,type:s.code}}else n[o]={message:a,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[o].types,c=l&&l[r.code];n[o]=At.appendErrors(o,t,n,i,c?[].concat(c,r.message):r.message)}e.shift()}return n},xf=function(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,s){try{var l=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(c){return a.shouldUseNativeValidation&&e3({},a),{errors:{},values:n.raw?r:c}})}catch(c){return s(c)}return l&&l.then?l.then(void 0,s):l}(0,function(o){if(function(s){return Array.isArray(s==null?void 0:s.errors)}(o))return{values:{},errors:YI(ZI(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const KI=()=>{const e=De.c(14),{reducer:t,entityId:n,entityType:r}=v.useContext(gn),[i]=t,{zNumberRequired:a,zStringRequired:o}=mf(),{createFolder:s}=QC();let l,c;if(e[0]!==a||e[1]!==o){const m=hi({name:o(),documentTypeId:a()});c=At.useForm,l=xf(m),e[0]=a,e[1]=o,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},XI=e=>{var x;const t=De.c(38),{handleClose:n}=e,{texts:r}=v.useContext(Qt),{documents:i}=r,{reducer:a,entityType:o}=v.useContext(gn),[s]=a;if(qI(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=KI();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]!==o||t[5]!==s.chosenFolderId||t[6]!==s.foldersMap){let S;t[8]!==o||t[9]!==s.chosenFolderId||t[10]!==s.foldersMap?(S=((x=s.foldersMap.get(s.chosenFolderId))==null?void 0:x.name)??o,t[8]=o,t[9]=s.chosenFolderId,t[10]=s.foldersMap,t[11]=S):S=t[11],d=i.createFolderInFolder(S),t[3]=i,t[4]=o,t[5]=s.chosenFolderId,t[6]=s.foldersMap,t[7]=d}else d=t[7];let f;t[12]!==d?(f=b.jsx(Vn.Header,{closeButton:!0,children:b.jsx(Vn.Title,{children:d})}),t[12]=d,t[13]=f):f=t[13];let h;t[14]!==i.name?(h=b.jsx(La,{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=b.jsx($0,{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=b.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=b.jsx(Ya,{onClick:n,variant:"outlined",color:"secondary",children:i.cancel}),t[22]=i.cancel,t[23]=n,t[24]=g):g=t[24];let y;t[25]!==i.createFolder?(y=b.jsx(Ya,{type:"submit",children:i.createFolder}),t[25]=i.createFolder,t[26]=y):y=t[26];let _;t[27]!==y||t[28]!==g?(_=b.jsxs(Vn.Footer,{children:[g,y]}),t[27]=y,t[28]=g,t[29]=_):_=t[29];let w;t[30]!==_||t[31]!==u||t[32]!==f||t[33]!==m?(w=b.jsxs(Kn,{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=b.jsx(b.Fragment,{children:b.jsx(At.FormProvider,{...c,children:w})}),t[35]=c,t[36]=w,t[37]=C):C=t[37],C},t3=100,Xb={getEmployeeLookupUrl:"/employee/lookup"},JI=e=>{const t=De.c(30),{canExpire:n,invalidInput:r,getEmployeeLookupUrl:i,recipients:a,setRecipients:o}=e,{texts:s,ProjectIconComponent:l}=v.useContext(Qt),{documents:c}=s,[u,d]=v.useState();let f;t[0]!==i||t[1]!==u?(f=U4(i,{query:{q:u,archived:!1,onlyManagers:!1,includeFuture:!1,type:"S"}}),t[0]=i,t[1]=u,t[2]=f):f=t[2];const h=u!=null&&u.length>2;let p;t[3]!==h?(p={enabled:h},t[3]=h,t[4]=p):p=t[4];const{data:m}=OC(f,p);let g;t[5]===Symbol.for("react.memo_cache_sentinel")?(g=M=>{d(M)},t[5]=g):g=t[5];const y=g,_=`d-flex flex-wrap gap-2 col p-1 border rounded ${r?"":"border-danger"}`;let w;t[6]!==l||t[7]!==c.addRecipients||t[8]!==a||t[9]!==o?(w=a.some(QI)?a.map(M=>b.jsxs("div",{className:"d-flex align-items-center gap-1 px-1 bg-darker text-nowrap rounded",children:[b.jsx(mn,{variant:"body",children:M.name}),b.jsx(sa,{size:"sm",onClick:()=>o([...a.filter(R=>R.id!==M.id)]),children:b.jsx(l,{icon:"cancel-simple",className:"text-danger"})})]},M.id)):b.jsx(mn,{variant:"body",className:"text-muted ms-2",children:c.addRecipients}),t[6]=l,t[7]=c.addRecipients,t[8]=a,t[9]=o,t[10]=w):w=t[10];let C;t[11]!==_||t[12]!==w?(C=b.jsx("div",{className:_,children:w}),t[11]=_,t[12]=w,t[13]=C):C=t[13];const x=!n;let S;t[14]!==m?(S=(m==null?void 0:m.map(ej))??[],t[14]=m,t[15]=S):S=t[15];let E;t[16]===Symbol.for("react.memo_cache_sentinel")?(E=[{key:"personalNumber",name:"personalNumber",width:200}],t[16]=E):E=t[16];let k;t[17]!==c.search?(k={searchPlaceholder:c.search,clearSelection:""},t[17]=c.search,t[18]=k):k=t[18];let T;t[19]!==a||t[20]!==o?(T=M=>{M&&o([...a,{id:Number(M.id),name:M.name}])},t[19]=a,t[20]=o,t[21]=T):T=t[21];let D;t[22]!==S||t[23]!==k||t[24]!==T||t[25]!==x?(D=b.jsx("div",{className:"col-xs",children:b.jsx(BC,{disabled:x,InputContainer:T0,items:S,additionalColumns:E,onSearchQueryChange:y,size:"sm",texts:k,value:null,onSelect:T})}),t[22]=S,t[23]=k,t[24]=T,t[25]=x,t[26]=D):D=t[26];let $;return t[27]!==D||t[28]!==C?($=b.jsxs("div",{className:"d-flex gap-1 align-items-center mb-1",children:[C,D]}),t[27]=D,t[28]=C,t[29]=$):$=t[29],$};function QI(e){return e}function ej(e){return{id:e.id,name:e.fullName,additionalColumns:{personalNumber:e.id}}}const tj=(e,t)=>{const n=jc(),{startLoading:r,stopLoading:i}=v.useContext(Oc),{loadDocuments:a}=v.useContext(gn),{zStringRequired:o,zString:s,zNumber:l,zBool:c,zNumberRequired:u,zDateRequired:d}=mf(),f=hi({name:o(),description:s(),validToDate:d(),documentTypeId:u(),expirationDate:s(),archiveOnExpired:c().nullable(),notifDaysBeforeExpired:l(),notifChannel:l(),recipients:s()}).superRefine((m,g)=>{const y=["expirationDate","notifDaysBeforeExpired","notifChannel","archiveOnExpired","recipients"];y.every(_=>m[_]!=null)||y.every(_=>m[_]==null)||g.addIssue({code:ge.custom,message:"Expiration info must be set",path:[y.find(_=>m[_]==null)??""]})}),h=At.useForm({resolver:xf(f),defaultValues:{...e,validToDate:ss(e.validToDate),expirationDate:ss(e.expirationDate)}}),p=v.useCallback(async m=>{r("documents-updateProperties");try{await n.put(`/documents/${e.id}/update-info`,m),await a(),t()}catch(g){O4(h,g)}finally{i("documents-updateProperties")}},[n,e.id,h,t,a,r,i]);return{formMethods:h,onSubmit:p}},nj=e=>{const t=De.c(106),{handleClose:n,file:r,getEmployeeLookupUrl:i}=e,{user:a}=v.useContext(u0),{texts:o}=v.useContext(Qt),{documents:s,notifCentrum:l}=o,{reducer:c}=v.useContext(gn),[u]=c;let d;t[0]!==r.recipientsList?(d=r.recipientsList??[],t[0]=r.recipientsList,t[1]=d):d=t[1];const[f,h]=v.useState(d),[p,m]=v.useState(r.expirationDate!=null),{formMethods:g,onSubmit:y}=tj(r,n);let _;t[2]!==p||t[3]!==r.archiveOnExpired||t[4]!==r.expirationDate||t[5]!==r.notifChannel||t[6]!==r.notifDaysBeforeExpired||t[7]!==r.recipients||t[8]!==r.recipientsList||t[9]!==g||t[10]!==(a==null?void 0:a.name)||t[11]!==(a==null?void 0:a.personalNumber)?(_=()=>{g.reset({expirationDate:p?ss(r.expirationDate??new Date(new Date().setFullYear(new Date().getFullYear()+1)).toISOString()):null,notifDaysBeforeExpired:p?r.notifDaysBeforeExpired??1:null,notifChannel:p?r.notifChannel??1:null,archiveOnExpired:p?r.archiveOnExpired??!0:null,recipients:p?r.recipients??(a==null?void 0:a.personalNumber.toString()):null}),g.clearErrors(),h(p?r.recipientsList??[{id:(a==null?void 0:a.personalNumber)??0,name:(a==null?void 0:a.name)??""}]:[])},t[2]=p,t[3]=r.archiveOnExpired,t[4]=r.expirationDate,t[5]=r.notifChannel,t[6]=r.notifDaysBeforeExpired,t[7]=r.recipients,t[8]=r.recipientsList,t[9]=g,t[10]=a==null?void 0:a.name,t[11]=a==null?void 0:a.personalNumber,t[12]=_):_=t[12];let w;t[13]!==p||t[14]!==r||t[15]!==g||t[16]!==a?(w=[p,r,g,a],t[13]=p,t[14]=r,t[15]=g,t[16]=a,t[17]=w):w=t[17],v.useEffect(_,w);let C,x;t[18]!==g||t[19]!==f?(C=()=>{g.setValue("recipients",f.length>0?f.map(rj).join(";"):null)},x=[g,f],t[18]=g,t[19]=f,t[20]=C,t[21]=x):(C=t[20],x=t[21]),v.useEffect(C,x);let S;t[22]!==s.editFileProperties?(S=b.jsx(Vn.Header,{closeButton:!0,children:b.jsx(Vn.Title,{children:s.editFileProperties})}),t[22]=s.editFileProperties,t[23]=S):S=t[23];let E;t[24]!==g||t[25]!==y?(E=g.handleSubmit(y),t[24]=g,t[25]=y,t[26]=E):E=t[26];let k;t[27]!==s.name?(k=b.jsx(La,{formField:"name",type:"text",label:s.name,required:!0}),t[27]=s.name,t[28]=k):k=t[28];let T;t[29]!==s.validSince?(T=b.jsx(La,{formField:"validToDate",type:"date",label:s.validSince,required:!0}),t[29]=s.validSince,t[30]=T):T=t[30];let D;t[31]!==s.category||t[32]!==u.documentTypes?(D=b.jsx(Nm,{formField:"documentTypeId",label:s.category,options:u.documentTypes,isNumber:!0,required:!0}),t[31]=s.category,t[32]=u.documentTypes,t[33]=D):D=t[33];let $;t[34]!==p||t[35]!==s.withExpirationDate?($=b.jsx(PC,{size:"sm",InputContainer:ki,value:p,label:s.withExpirationDate,onChange:m}),t[34]=p,t[35]=s.withExpirationDate,t[36]=$):$=t[36];const M=!p;let R;t[37]!==p||t[38]!==s.expirationDate||t[39]!==M?(R=b.jsx(La,{size:"sm",formField:"expirationDate",type:"date",label:s.expirationDate,required:p,disabled:M}),t[37]=p,t[38]=s.expirationDate,t[39]=M,t[40]=R):R=t[40];const I=!p;let j;t[41]!==p||t[42]!==s.days||t[43]!==s.notifDaysBeforeExpired||t[44]!==I?(j=b.jsx(KC,{size:"sm",formField:"notifDaysBeforeExpired",label:s.notifDaysBeforeExpired,required:p,disabled:I,numberSuffix:s.days}),t[41]=p,t[42]=s.days,t[43]=s.notifDaysBeforeExpired,t[44]=I,t[45]=j):j=t[45];let A;t[46]===Symbol.for("react.memo_cache_sentinel")?(A={id:1,name:"Email"},t[46]=A):A=t[46];let O;t[47]!==l.dashboard?(O=[A,{id:2,name:l.dashboard}],t[47]=l.dashboard,t[48]=O):O=t[48];const L=!p;let F;t[49]!==p||t[50]!==s.notifChannel||t[51]!==O||t[52]!==L?(F=b.jsx(Nm,{formField:"notifChannel",label:s.notifChannel,size:"sm",options:O,isNumber:!0,required:p,disabled:L}),t[49]=p,t[50]=s.notifChannel,t[51]=O,t[52]=L,t[53]=F):F=t[53];const P=!p;let W;t[54]!==p||t[55]!==s.archiveOnExpired||t[56]!==P?(W=b.jsx(ZC,{size:"sm",formField:"archiveOnExpired",label:s.archiveOnExpired,required:p,disabled:P}),t[54]=p,t[55]=s.archiveOnExpired,t[56]=P,t[57]=W):W=t[57];const H=`mt-2 ${p?"":"text-muted"}`;let q;t[58]!==p?(q=p&&b.jsx("span",{className:"text-danger",children:"*"}),t[58]=p,t[59]=q):q=t[59];let Z;t[60]!==s.recipients||t[61]!==H||t[62]!==q?(Z=b.jsxs(mn,{variant:"body",className:H,children:[s.recipients,q]}),t[60]=s.recipients,t[61]=H,t[62]=q,t[63]=Z):Z=t[63];let K;t[64]!==g?(K=g.getFieldState("recipients").error==null||g.getFieldState("recipients").invalid,t[64]=g,t[65]=K):K=t[65];let te;t[66]!==p||t[67]!==i||t[68]!==f||t[69]!==K?(te=b.jsx(JI,{canExpire:p,invalidInput:K,getEmployeeLookupUrl:i,recipients:f,setRecipients:h}),t[66]=p,t[67]=i,t[68]=f,t[69]=K,t[70]=te):te=t[70];let ne;t[71]!==R||t[72]!==j||t[73]!==F||t[74]!==W||t[75]!==Z||t[76]!==te?(ne=b.jsxs(b.Fragment,{children:[R,j,F,W,Z,te]}),t[71]=R,t[72]=j,t[73]=F,t[74]=W,t[75]=Z,t[76]=te,t[77]=ne):ne=t[77];let U;t[78]===Symbol.for("react.memo_cache_sentinel")?(U={maxLength:t3},t[78]=U):U=t[78];let B;t[79]!==s.description?(B=b.jsx(E0,{formField:"description",label:s.description,customFormControlProps:U}),t[79]=s.description,t[80]=B):B=t[80];let z;t[81]!==k||t[82]!==T||t[83]!==D||t[84]!==$||t[85]!==ne||t[86]!==B?(z=b.jsxs(Vn.Body,{children:[k,T,D,$,ne,B]}),t[81]=k,t[82]=T,t[83]=D,t[84]=$,t[85]=ne,t[86]=B,t[87]=z):z=t[87];let V;t[88]!==s.cancel||t[89]!==n?(V=b.jsx(Ya,{onClick:n,color:"secondary",variant:"outlined",children:s.cancel}),t[88]=s.cancel,t[89]=n,t[90]=V):V=t[90];let N;t[91]!==s.save?(N=b.jsx(Ya,{type:"submit",children:s.save}),t[91]=s.save,t[92]=N):N=t[92];let ee;t[93]!==V||t[94]!==N?(ee=b.jsxs(Vn.Footer,{children:[V,N]}),t[93]=V,t[94]=N,t[95]=ee):ee=t[95];let Q;t[96]!==z||t[97]!==ee||t[98]!==E?(Q=b.jsxs(Kn,{onSubmit:E,children:[z,ee]}),t[96]=z,t[97]=ee,t[98]=E,t[99]=Q):Q=t[99];let X;t[100]!==g||t[101]!==Q?(X=b.jsx(At.FormProvider,{...g,children:Q}),t[100]=g,t[101]=Q,t[102]=X):X=t[102];let se;return t[103]!==X||t[104]!==S?(se=b.jsxs(b.Fragment,{children:[S,X]}),t[103]=X,t[104]=S,t[105]=se):se=t[105],se};function rj(e){return e.id}const ij=e=>{const t=De.c(10),{handleClose:n,getEmployeeLookupUrl:r}=e,{reducer:i}=v.useContext(gn),[a]=i;let o;e:{if(a.markedFiles.length!==1){o=void 0;break e}let c;if(t[0]!==a.constantFiles||t[1]!==a.markedFiles[0]){let u;t[3]!==a.markedFiles[0]?(u=d=>d.id===a.markedFiles[0],t[3]=a.markedFiles[0],t[4]=u):u=t[4],c=a.constantFiles.find(u),t[0]=a.constantFiles,t[1]=a.markedFiles[0],t[2]=c}else c=t[2];o=c}const s=o;if(s===void 0){n();let c;return t[5]===Symbol.for("react.memo_cache_sentinel")?(c=b.jsx(b.Fragment,{}),t[5]=c):c=t[5],c}let l;return t[6]!==s||t[7]!==r||t[8]!==n?(l=b.jsx(nj,{file:s,handleClose:n,getEmployeeLookupUrl:r}),t[6]=s,t[7]=r,t[8]=n,t[9]=l):l=t[9],l},aj=({getEmployeeLookupUrl:e})=>{const{reducer:[t,n]}=v.useContext(gn),r=v.useCallback(()=>{n({type:"close-modal"})},[n]),i=v.useMemo(()=>{if(t.state!=="openned-modal")return null;switch(t.modalType){case"create-folder":return b.jsx(XI,{handleClose:r});case"edit-file-properties":return b.jsx(ij,{handleClose:r,getEmployeeLookupUrl:e});default:return null}},[t.state,t.modalType]);return b.jsx(Vn,{show:t.state==="openned-modal",onHide:r,children:i})},Jb="documents_drag_image_element",hd="drop-container-highlight-class",Qb="data-drop-container-id",ey="data-draggable-id",oj=()=>{const e=document.getElementById(Jb);if(e!==null)return e;const t=document.createElement("div");return t.id=Jb,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},R0=()=>{const e=De.c(12),{apiActions:t,reducer:n}=v.useContext(gn),{moveDocuments:r}=t,[i]=n;let a;e[0]!==i.markedFiles?(a=y=>{var _;if(i.markedFiles.length>0){const w=oj();w.innerHTML=i.markedFiles.length.toString(),y.dataTransfer.setDragImage(w,0,0),y.dataTransfer.clearData(),y.dataTransfer.setData("application/json",JSON.stringify(i.markedFiles)),y.dataTransfer.dropEffect="none",y.dataTransfer.effectAllowed="move"}else y.dataTransfer.setData("application/json",JSON.stringify([parseInt(((_=y.currentTarget.attributes.getNamedItem(ey))==null?void 0:_.nodeValue)??"",10)])),y.dataTransfer.dropEffect="none",y.dataTransfer.effectAllowed="move"},e[0]=i.markedFiles,e[1]=a):a=e[1];const o=a;let s;e[2]!==o||e[3]!==i.markedFiles?(s=y=>({[ey]:y,draggable:i.markedFiles.length===0||i.markedFiles.includes(y),onDragStart:o}),e[2]=o,e[3]=i.markedFiles,e[4]=s):s=e[4];const l=s;let c;e[5]!==r?(c=y=>_=>{var x;_.preventDefault(),_.stopPropagation(),_.currentTarget.classList.remove(hd);const w=_.dataTransfer.files;if(y&&w&&w.length>0){y(w);return}const C=_.dataTransfer.getData("application/json");if(C){const S=JSON.parse(C),E=parseInt(((x=_.currentTarget.attributes.getNamedItem(Qb))==null?void 0:x.value)??"",10);r(E,S)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=lj,f=cj,h=uj;let p;e[7]!==u?(p=(y,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[Qb]:y}),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 sj(e){e.preventDefault(),e.stopPropagation()}function lj(){return sj}function cj(e){return t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.types.includes("Files")?(t.dataTransfer.dropEffect="copy",t.currentTarget.classList.add(hd)):!e&&t.dataTransfer.types.includes("application/json")?(t.dataTransfer.dropEffect="move",t.currentTarget.classList.add(hd)):t.dataTransfer.dropEffect="none"}}function uj(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(hd))}function n3(e,t,n){for(let r=0;r<e.childrenIds.length;r++){const i=e.childrenIds[r];if(i===t)return!0;const a=n.get(i);if(a&&n3(a,t,n))return!0}return!1}function dj(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function r3(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${r3(n.parentId,t)}/${n.name}`}const fj=()=>{const e=De.c(6),{zString:t,zStringRequired:n,zNumberRequired:r}=mf();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 a=i;let o;return e[4]!==a?(o={formSchema:a},e[4]=a,e[5]=o):o=e[5],o},D0=e=>{var K;const t=De.c(69),{handleClose:n,files:r,targetFolderId:i}=e,{texts:a}=v.useContext(Qt),{documents:o}=a,{reducer:s,apiActions:l}=v.useContext(gn),[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}=fj();let y;t[5]!==g?(y=xf(g),t[5]=g,t[6]=y):y=t[6];let _;t[7]===Symbol.for("react.memo_cache_sentinel")?(_=ss(new Date().toISOString()),t[7]=_):_=t[7];let w;t[8]!==h||t[9]!==c.documentTypes||t[10]!==c.foldersMap?(w=(K=c.documentTypes.find(te=>{var ne;return te.name===((ne=c.foldersMap.get(h))==null?void 0:ne.defaultDocType)}))==null?void 0:K.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 x;t[14]!==y||t[15]!==C?(x={resolver:y,defaultValues:C},t[14]=y,t[15]=C,t[16]=x):x=t[16];const S=At.useForm(x);let E;t[17]!==r||t[18]!==h||t[19]!==n||t[20]!==u?(E=async te=>{h!=="root"&&(await u(r,{folderId:h,...te}),n())},t[17]=r,t[18]=h,t[19]=n,t[20]=u,t[21]=E):E=t[21];const k=E;let T;t[22]!==o||t[23]!==r.length||t[24]!==m.name?(T=o.uploadFilesPrompt(r.length,m.name),t[22]=o,t[23]=r.length,t[24]=m.name,t[25]=T):T=t[25];let D;t[26]!==f?(D=b.jsx("ul",{children:f.map(hj)}),t[26]=f,t[27]=D):D=t[27];let $;t[28]!==T||t[29]!==D?($=b.jsx(Vn.Header,{closeButton:!0,children:b.jsxs("div",{children:[T,D]})}),t[28]=T,t[29]=D,t[30]=$):$=t[30];let M;t[31]!==S||t[32]!==k?(M=S.handleSubmit(k),t[31]=S,t[32]=k,t[33]=M):M=t[33];let R;t[34]!==o.documentType||t[35]!==c.documentTypes?(R=b.jsx($0,{formField:"documentTypeId",label:o.documentType,options:c.documentTypes,isNumber:!0,required:!0}),t[34]=o.documentType,t[35]=c.documentTypes,t[36]=R):R=t[36];let I;t[37]!==o.validSince?(I=b.jsx(La,{formField:"validToDate",label:o.validSince,type:"date",required:!0}),t[37]=o.validSince,t[38]=I):I=t[38];let j;t[39]!==o.name||t[40]!==f.length?(j=f.length===1?b.jsx(La,{formField:"name",label:o.name,type:"text"}):null,t[39]=o.name,t[40]=f.length,t[41]=j):j=t[41];let A;t[42]===Symbol.for("react.memo_cache_sentinel")?(A={maxLength:t3},t[42]=A):A=t[42];let O;t[43]!==o.description?(O=b.jsx(E0,{formField:"description",label:o.description,customFormControlProps:A}),t[43]=o.description,t[44]=O):O=t[44];let L;t[45]!==R||t[46]!==I||t[47]!==j||t[48]!==O?(L=b.jsxs(Vn.Body,{children:[R,I,j,O]}),t[45]=R,t[46]=I,t[47]=j,t[48]=O,t[49]=L):L=t[49];let F;t[50]!==o.cancel||t[51]!==n?(F=b.jsx(Ya,{variant:"outlined",color:"secondary",onClick:n,children:o.cancel}),t[50]=o.cancel,t[51]=n,t[52]=F):F=t[52];let P;t[53]!==o.upload?(P=b.jsx(Ya,{type:"submit",children:o.upload}),t[53]=o.upload,t[54]=P):P=t[54];let W;t[55]!==F||t[56]!==P?(W=b.jsxs(Vn.Footer,{children:[F,P]}),t[55]=F,t[56]=P,t[57]=W):W=t[57];let H;t[58]!==M||t[59]!==L||t[60]!==W?(H=b.jsxs(Kn,{onSubmit:M,children:[L,W]}),t[58]=M,t[59]=L,t[60]=W,t[61]=H):H=t[61];let q;t[62]!==S||t[63]!==H?(q=b.jsx(At.FormProvider,{...S,children:H}),t[62]=S,t[63]=H,t[64]=q):q=t[64];let Z;return t[65]!==n||t[66]!==$||t[67]!==q?(Z=b.jsxs(Vn,{show:!0,onHide:n,children:[$,q]}),t[65]=n,t[66]=$,t[67]=q,t[68]=Z):Z=t[68],Z};function hj(e,t){return b.jsxs("li",{children:[e.name," - ",os(e.size)]},`${e.name}-${t}`)}const pj="_folder_1cktt_1",mj="_collapseArrowDiv_1cktt_8",gj="_button_1cktt_20",vj="_nestedList_1cktt_24",bj="_numberOfFiles_1cktt_31",yj="_collapseArrow_1cktt_8",va={folder:pj,collapseArrowDiv:mj,button:gj,nestedList:vj,numberOfFiles:bj,collapseArrow:yj},i3=e=>{const t=De.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=v.useContext(Qt),{reducer:a}=v.useContext(gn),[o,s]=a,{getDropProps:l}=R0(),[c,u]=v.useState(null),[d,f]=v.useState(!0);let h,p;t[0]!==n||t[1]!==o.foldersMap?(p=o.foldersMap.get(n),t[0]=n,t[1]=o.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 y;t[3]!==n||t[4]!==g||t[5]!==s||t[6]!==o.activeFolder||t[7]!==o.foldersMap?(y=()=>{o.activeFolder!=="root"&&n3(g,o.activeFolder,o.foldersMap)&&s({type:"select-folder",folderId:n}),f(!0)},t[3]=n,t[4]=g,t[5]=s,t[6]=o.activeFolder,t[7]=o.foldersMap,t[8]=y):y=t[8];const _=y,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 x=C;let S;if(t[12]!==n||t[13]!==o.filteredFiles){let H;t[15]!==n?(H=q=>q.folderId===n&&q.archive===!1,t[15]=n,t[16]=H):H=t[16],S=o.filteredFiles.filter(H),t[12]=n,t[13]=o.filteredFiles,t[14]=S}else S=t[14];const E=S.length;let k;t[17]!==i||t[18]!==_||t[19]!==w||t[20]!==d?(k=w?d?b.jsx("button",{onClick:()=>f(!1),type:"button",children:b.jsx(i,{icon:"chevron-right",iconProps:{className:va.collapseArrow}})}):b.jsx("button",{onClick:_,type:"button",children:b.jsx(i,{icon:"chevron-down",iconProps:{className:va.collapseArrow}})}):null,t[17]=i,t[18]=_,t[19]=w,t[20]=d,t[21]=k):k=t[21];let T;t[22]!==k?(T=b.jsx("div",{className:va.collapseArrowDiv,children:k}),t[22]=k,t[23]=T):T=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D=le(va.button),t[24]=D):D=t[24];let $;t[25]!==n||t[26]!==g.onlyRead||t[27]!==l||t[28]!==r?($=r&&!g.onlyRead?l(n,{onFilesDrop:H=>u(H)}):{},t[25]=n,t[26]=g.onlyRead,t[27]=l,t[28]=r,t[29]=$):$=t[29];const M=g.defaultDocType??"",R=n===o.activeFolder;let I;t[30]!==g.isDefault||t[31]!==g.name||t[32]!==M||t[33]!==R?(I=b.jsx(JC,{isDefault:g.isDefault,folderName:g.name,typeName:M,isActive:R}),t[30]=g.isDefault,t[31]=g.name,t[32]=M,t[33]=R,t[34]=I):I=t[34];let j;t[35]!==E?(j=E>0?b.jsxs("span",{className:va.numberOfFiles,children:["[",E,"]"]}):void 0,t[35]=E,t[36]=j):j=t[36];let A;t[37]!==I||t[38]!==j?(A=b.jsxs("div",{className:"d-flex align-items-center gap-2",children:[I,j]}),t[37]=I,t[38]=j,t[39]=A):A=t[39];let O;t[40]!==x||t[41]!==$||t[42]!==A?(O=b.jsx("button",{className:D,onClick:x,type:"button",...$,children:A}),t[40]=x,t[41]=$,t[42]=A,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:b.jsx("ul",{className:va.nestedList,children:g==null?void 0:g.childrenIds.map(H=>b.jsx(i3,{dirId:H,writePermissions:r},H))}):void 0,t[44]=g.childrenIds,t[45]=w,t[46]=d,t[47]=r,t[48]=L):L=t[48];let F;t[49]!==O||t[50]!==L||t[51]!==T?(F=b.jsxs("li",{className:va.folder,children:[T,O,L]}),t[49]=O,t[50]=L,t[51]=T,t[52]=F):F=t[52];let P;t[53]!==n||t[54]!==c?(P=c!==null?b.jsx(D0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=P):P=t[55];let W;return t[56]!==F||t[57]!==P?(W=b.jsxs(b.Fragment,{children:[F,P]}),t[56]=F,t[57]=P,t[58]=W):W=t[58],W},xj="_wrapper_1th2u_1",wj="_downloadButton_1th2u_9",Lm={wrapper:xj,downloadButton:wj},a3=6048e5,_j=864e5,ty=Symbol.for("constructDateFrom");function Ci(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ty in e?e[ty](t):e instanceof Date?new e.constructor(t):new Date(t)}function rr(e,t){return Ci(t||e,e)}function o3(e,t){const n=()=>Ci(t==null?void 0:t.in,NaN),r=kj(e);let i;if(r.date){const l=$j(r.date,2);i=Ej(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const a=+i;let o=0,s;if(r.time&&(o=Mj(r.time),isNaN(o)))return n();if(r.timezone){if(s=Oj(r.timezone),isNaN(s))return n()}else{const l=new Date(a+o),c=rr(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 rr(a+o+s,t==null?void 0:t.in)}const mu={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Cj=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Sj=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Tj=/^([+-])(\d{2})(?::?(\d{2}))?$/;function kj(e){const t={},n=e.split(mu.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],mu.timeZoneDelimiter.test(t.date)&&(t.date=e.split(mu.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=mu.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function $j(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,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Ej(e,t){if(t===null)return new Date(NaN);const n=e.match(Cj);if(!n)return new Date(NaN);const r=!!n[4],i=tl(n[1]),a=tl(n[2])-1,o=tl(n[3]),s=tl(n[4]),l=tl(n[5])-1;if(r)return jj(t,s,l)?Aj(t,s,l):new Date(NaN);{const c=new Date(0);return!Dj(t,a,o)||!Ij(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function tl(e){return e?parseInt(e):1}function Mj(e){const t=e.match(Sj);if(!t)return NaN;const n=gp(t[1]),r=gp(t[2]),i=gp(t[3]);return Nj(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function gp(e){return e&&parseFloat(e.replace(",","."))||0}function Oj(e){if(e==="Z")return 0;const t=e.match(Tj);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Pj(r,i)?n*(r*36e5+i*6e4):NaN}function Aj(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const Rj=[31,null,31,30,31,30,31,31,30,31,30,31];function s3(e){return e%400===0||e%4===0&&e%100!==0}function Dj(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Rj[t]||(s3(e)?29:28))}function Ij(e,t){return t>=1&&t<=(s3(e)?366:365)}function jj(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Nj(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Pj(e,t){return t>=0&&t<=59}let Lj={};function wf(){return Lj}function Xl(e,t){var s,l,c,u;const n=wf(),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=rr(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function pd(e,t){return Xl(e,{...t,weekStartsOn:1})}function l3(e,t){const n=rr(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 a=pd(i),o=Ci(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const s=pd(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function ny(e){const t=rr(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 Fj(e,...t){const n=Ci.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ry(e,t){const n=rr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Bj(e,t,n){const[r,i]=Fj(n==null?void 0:n.in,e,t),a=ry(r),o=ry(i),s=+a-ny(a),l=+o-ny(o);return Math.round((s-l)/_j)}function zj(e,t){const n=l3(e,t),r=Ci(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),pd(r)}function Wj(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Uj(e){return!(!Wj(e)&&typeof e!="number"||isNaN(+rr(e)))}function Hj(e,t){const n=rr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Vj={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"}},qj=(e,t,n)=>{let r;const i=Vj[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 vp(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Zj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kj={date:vp({formats:Yj,defaultWidth:"full"}),time:vp({formats:Gj,defaultWidth:"full"}),dateTime:vp({formats:Zj,defaultWidth:"full"})},Xj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jj=(e,t,n,r)=>Xj[e];function nl(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Qj={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},eN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tN={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"]},nN={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"]},rN={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"}},iN={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"}},aN=(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"},oN={ordinalNumber:aN,era:nl({values:Qj,defaultWidth:"wide"}),quarter:nl({values:eN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:nl({values:tN,defaultWidth:"wide"}),day:nl({values:nN,defaultWidth:"wide"}),dayPeriod:nl({values:rN,defaultWidth:"wide",formattingValues:iN,defaultFormattingWidth:"wide"})};function rl(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?lN(s,d=>d.test(o)):sN(s,d=>d.test(o));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(o.length);return{value:c,rest:u}}}function sN(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lN(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function cN(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const uN=/^(\d+)(th|st|nd|rd)?/i,dN=/\d+/i,fN={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},hN={any:[/^b/i,/^(a|c)/i]},pN={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mN={any:[/1/i,/2/i,/3/i,/4/i]},gN={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},vN={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]},bN={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},yN={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]},xN={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},wN={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}},_N={ordinalNumber:cN({matchPattern:uN,parsePattern:dN,valueCallback:e=>parseInt(e,10)}),era:rl({matchPatterns:fN,defaultMatchWidth:"wide",parsePatterns:hN,defaultParseWidth:"any"}),quarter:rl({matchPatterns:pN,defaultMatchWidth:"wide",parsePatterns:mN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:rl({matchPatterns:gN,defaultMatchWidth:"wide",parsePatterns:vN,defaultParseWidth:"any"}),day:rl({matchPatterns:bN,defaultMatchWidth:"wide",parsePatterns:yN,defaultParseWidth:"any"}),dayPeriod:rl({matchPatterns:xN,defaultMatchWidth:"any",parsePatterns:wN,defaultParseWidth:"any"})},CN={code:"en-US",formatDistance:qj,formatLong:Kj,formatRelative:Jj,localize:oN,match:_N,options:{weekStartsOn:0,firstWeekContainsDate:1}};function SN(e,t){const n=rr(e,t==null?void 0:t.in);return Bj(n,Hj(n))+1}function TN(e,t){const n=rr(e,t==null?void 0:t.in),r=+pd(n)-+zj(n);return Math.round(r/a3)+1}function c3(e,t){var u,d,f,h;const n=rr(e,t==null?void 0:t.in),r=n.getFullYear(),i=wf(),a=(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,o=Ci((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const s=Xl(o,t),l=Ci((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,a),l.setHours(0,0,0,0);const c=Xl(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function kN(e,t){var o,s,l,c;const n=wf(),r=(t==null?void 0:t.firstWeekContainsDate)??((s=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:s.firstWeekContainsDate)??n.firstWeekContainsDate??((c=(l=n.locale)==null?void 0:l.options)==null?void 0:c.firstWeekContainsDate)??1,i=c3(e,t),a=Ci((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Xl(a,t)}function $N(e,t){const n=rr(e,t==null?void 0:t.in),r=+Xl(n,t)-+kN(n,t);return Math.round(r/a3)+1}function zt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ii={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return zt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):zt(n+1,2)},d(e,t){return zt(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 zt(e.getHours()%12||12,t.length)},H(e,t){return zt(e.getHours(),t.length)},m(e,t){return zt(e.getMinutes(),t.length)},s(e,t){return zt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return zt(i,t.length)}},$o={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},iy={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 Ii.y(e,t)},Y:function(e,t,n,r){const i=c3(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return zt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):zt(a,t.length)},R:function(e,t){const n=l3(e);return zt(n,t.length)},u:function(e,t){const n=e.getFullYear();return zt(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 zt(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 zt(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 Ii.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 zt(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=$N(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):zt(i,t.length)},I:function(e,t,n){const r=TN(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):zt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ii.d(e,t)},D:function(e,t,n){const r=SN(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):zt(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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return zt(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return zt(a,t.length);case"co":return n.ordinalNumber(a,{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 zt(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=$o.noon:r===0?i=$o.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=$o.evening:r>=12?i=$o.afternoon:r>=4?i=$o.morning:i=$o.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 Ii.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ii.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):zt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):zt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ii.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ii.s(e,t)},S:function(e,t){return Ii.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return oy(r);case"XXXX":case"XX":return _a(r);case"XXXXX":case"XXX":default:return _a(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return oy(r);case"xxxx":case"xx":return _a(r);case"xxxxx":case"xxx":default:return _a(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ay(r,":");case"OOOO":default:return"GMT"+_a(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ay(r,":");case"zzzz":default:return"GMT"+_a(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return zt(r,t.length)},T:function(e,t,n){return zt(+e,t.length)}};function ay(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+zt(a,2)}function oy(e,t){return e%60===0?(e>0?"-":"+")+zt(Math.abs(e)/60,2):_a(e,t)}function _a(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=zt(Math.trunc(r/60),2),a=zt(r%60,2);return n+i+t+a}const sy=(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"})}},u3=(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"})}},EN=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return sy(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",sy(r,t)).replace("{{time}}",u3(i,t))},MN={p:u3,P:EN},ON=/^D+$/,AN=/^Y+$/,RN=["D","DD","YY","YYYY"];function DN(e){return ON.test(e)}function IN(e){return AN.test(e)}function jN(e,t,n){const r=NN(e,t,n);if(console.warn(r),RN.includes(e))throw new RangeError(r)}function NN(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 PN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,LN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,FN=/^'([^]*?)'?$/,BN=/''/g,zN=/[a-zA-Z]/;function d3(e,t,n){var u,d,f,h;const r=wf(),i=r.locale??CN,a=r.firstWeekContainsDate??((d=(u=r.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.weekStartsOn)??0,s=rr(e,n==null?void 0:n.in);if(!Uj(s))throw new RangeError("Invalid time value");let l=t.match(LN).map(p=>{const m=p[0];if(m==="p"||m==="P"){const g=MN[m];return g(p,i.formatLong)}return p}).join("").match(PN).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:WN(p)};if(iy[m])return{isToken:!0,value:p};if(m.match(zN))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:a,weekStartsOn:o,locale:i};return l.map(p=>{if(!p.isToken)return p.value;const m=p.value;(IN(m)||DN(m))&&jN(m,t,String(e));const g=iy[m[0]];return g(s,m,i.localize,c)}).join("")}function WN(e){const t=e.match(FN);return t?t[1].replace(BN,"'"):e}function f3(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 Jl;(function(e){e.event="event",e.props="prop"})(Jl||(Jl={}));function Wi(){}function UN(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(a,o){return a===t[o]})||(t=r,n=e.apply(void 0,r)),n}}function Ql(e){return!!(e||"").match(/\d/)}function qo(e){return e==null}function HN(e){return typeof e=="number"&&isNaN(e)}function h3(e){return qo(e)||HN(e)||typeof e=="number"&&!isFinite(e)}function p3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function VN(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 qN(e,t,n){var r=VN(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 YN(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 I0(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var i=e.split("."),a=i[0],o=i[1]||"";return{beforeDecimal:a,afterDecimal:o,hasNegation:n,addNegation:r}}function GN(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 m3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function ly(e,t){return Array(t+1).join(e)}function g3(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(".","");var o=1+a,s=i.length;return o<0?i="0."+ly("0",Math.abs(o))+i:o>=s?i=i+ly("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function cy(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=I0(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,l=parseFloat("0."+(o||"0")),c=o.length<=t?"0."+o:l.toFixed(t),u=c.split("."),d=a;a&&Number(u[0])&&(d=a.split("").reverse().reduce(function(m,g,y){return m.length>y?(Number(m[0])+Number(g)).toString()+m.substring(1,m.length):g+m},u[0]));var f=m3(u[1]||"",t,n),h=s?"-":"",p=r?".":"";return""+h+d+p+f}function ka(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 v3=UN(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),ZN=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function KN(e,t,n){return Math.min(Math.max(e,t),n)}function bp(e){return Math.max(e.selectionStart,e.selectionEnd)}function XN(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function JN(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function QN(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function eP(e,t,n,r,i,a,o){o===void 0&&(o=QN);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=o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(g&&d[p]!==!0){f[h]=p,d[p]=!0;break}}}for(var y=r;y<c&&(f[y]===-1||!a(n[y]));)y++;var _=y===c||f[y]===-1?u:f[y];for(y=r-1;y>0&&f[y]===-1;)y--;var w=y===-1||f[y]===-1?0:f[y]+1;return w>_?_:r-w<_-r?w:_}function uy(e,t,n,r){var i=e.length;if(t=KN(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 tP(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Ql(e[n])||Ql(e[n-1]));return t}function b3(e,t,n,r,i,a){a===void 0&&(a=Wi);var o=YN(function(p,m){var g,y;return h3(p)?(y="",g=""):typeof p=="number"||m?(y=typeof p=="number"?g3(p):p,g=r(y)):(y=i(p,void 0),g=r(y)),{formattedValue:g,numAsString:y}}),s=v.useState(function(){return o(qo(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}),a(p,m)},d=e,f=n;qo(e)&&(d=l.numAsString,f=!0);var h=o(d,f);return v.useMemo(function(){c(h)},[h.formattedValue]),[l,u]}function nP(e){return e.replace(/[^0-9]/g,"")}function rP(e){return e}function iP(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,a=e.getInputRef,o=e.format;o===void 0&&(o=rP);var s=e.removeFormatting;s===void 0&&(s=nP);var l=e.defaultValue,c=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Wi);var h=e.onKeyDown;h===void 0&&(h=Wi);var p=e.onMouseUp;p===void 0&&(p=Wi);var m=e.onFocus;m===void 0&&(m=Wi);var g=e.onBlur;g===void 0&&(g=Wi);var y=e.value,_=e.getCaretBoundary;_===void 0&&(_=tP);var w=e.isValidInputCharacter;w===void 0&&(w=Ql);var C=e.isCharacterSame,x=f3(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=b3(y,l,!!c,o,s,u),E=S[0],k=E.formattedValue,T=E.numAsString,D=S[1],$=v.useRef(),M=v.useRef({formattedValue:k,numAsString:T}),R=function(G,J){M.current={formattedValue:G.formattedValue,numAsString:G.value},D(G,J)},I=v.useState(!1),j=I[0],A=I[1],O=v.useRef(null),L=v.useRef({setCaretTimeout:null,focusTimeout:null});v.useEffect(function(){return A(!0),function(){clearTimeout(L.current.setCaretTimeout),clearTimeout(L.current.focusTimeout)}},[]);var F=o,P=function(G,J){var ie=parseFloat(J);return{formattedValue:G,value:J,floatValue:isNaN(ie)?void 0:ie}},W=function(G,J,ie){G.selectionStart===0&&G.selectionEnd===G.value.length||(ka(G,J),L.current.setCaretTimeout=setTimeout(function(){G.value===ie&&G.selectionStart!==J&&ka(G,J)},0))},H=function(G,J,ie){return uy(G,J,_(G),ie)},q=function(G,J,ie){var oe=_(J),be=eP(J,k,G,ie,oe,w,C);return be=uy(J,be,oe),be},Z=function(G){var J=G.formattedValue;J===void 0&&(J="");var ie=G.input,oe=G.source,be=G.event,ce=G.numAsString,ue;if(ie){var Ce=G.inputValue||ie.value,ke=bp(ie);ie.value=J,ue=q(Ce,J,ke),ue!==void 0&&W(ie,ue,J)}J!==k&&R(P(J,ce),{event:be,source:oe})};v.useEffect(function(){var G=M.current,J=G.formattedValue,ie=G.numAsString;(k!==J||T!==ie)&&R(P(k,T),{event:void 0,source:Jl.props})},[k,T]);var K=O.current?bp(O.current):void 0,te=typeof window<"u"?v.useLayoutEffect:v.useEffect;te(function(){var G=O.current;if(k!==M.current.formattedValue&&G){var J=q(M.current.formattedValue,k,K);G.value=k,W(G,J,k)}},[k]);var ne=function(G,J,ie){var oe=J.target,be=$.current?ZN($.current,oe.selectionEnd):v3(k,G),ce=Object.assign(Object.assign({},be),{lastValue:k}),ue=s(G,ce),Ce=F(ue);if(ue=s(Ce,void 0),d&&!d(P(Ce,ue))){var ke=J.target,ye=bp(ke),Me=q(G,k,ye);return ke.value=k,W(ke,Me,k),!1}return Z({formattedValue:Ce,numAsString:ue,inputValue:G,event:J,source:ie,input:J.target}),!0},U=function(G,J){J===void 0&&(J=0);var ie=G.selectionStart,oe=G.selectionEnd;$.current={selectionStart:ie,selectionEnd:oe+J}},B=function(G){var J=G.target,ie=J.value,oe=ne(ie,G,Jl.event);oe&&f(G),$.current=void 0},z=function(G){var J=G.target,ie=G.key,oe=J.selectionStart,be=J.selectionEnd,ce=J.value;ce===void 0&&(ce="");var ue;ie==="ArrowLeft"||ie==="Backspace"?ue=Math.max(oe-1,0):ie==="ArrowRight"?ue=Math.min(oe+1,ce.length):ie==="Delete"&&(ue=oe);var Ce=0;ie==="Delete"&&oe===be&&(Ce=1);var ke=ie==="ArrowLeft"||ie==="ArrowRight";if(ue===void 0||oe!==be&&!ke){h(G),U(J,Ce);return}var ye=ue;if(ke){var Me=ie==="ArrowLeft"?"left":"right";ye=H(ce,ue,Me),ye!==ue&&G.preventDefault()}else ie==="Delete"&&!w(ce[ue])?ye=H(ce,ue,"right"):ie==="Backspace"&&!w(ce[ue])&&(ye=H(ce,ue,"left"));ye!==ue&&W(J,ye,ce),h(G),U(J,Ce)},V=function(G){var J=G.target,ie=function(){var oe=J.selectionStart,be=J.selectionEnd,ce=J.value;if(ce===void 0&&(ce=""),oe===be){var ue=H(ce,oe);ue!==oe&&W(J,ue,ce)}};ie(),requestAnimationFrame(function(){ie()}),p(G),U(J)},N=function(G){G.persist&&G.persist();var J=G.target,ie=G.currentTarget;O.current=J,L.current.focusTimeout=setTimeout(function(){var oe=J.selectionStart,be=J.selectionEnd,ce=J.value;ce===void 0&&(ce="");var ue=H(ce,oe);ue!==oe&&!(oe===0&&be===ce.length)&&W(J,ue,ce),m(Object.assign(Object.assign({},G),{currentTarget:ie}))},0)},ee=function(G){O.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),g(G)},Q=j&&XN()?"numeric":void 0,X=Object.assign({inputMode:Q},x,{type:t,value:k,onChange:B,onKeyDown:z,onMouseUp:V,onFocus:N,onBlur:ee});if(n==="text")return i?v.createElement(v.Fragment,null,i(k,x)||null):v.createElement("span",Object.assign({},x,{ref:a}),k);if(r){var se=r;return v.createElement(se,Object.assign({},X,{ref:a}))}return v.createElement("input",Object.assign({},X,{ref:a}))}function dy(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var a=t.suffix;a===void 0&&(a="");var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s="thousand"),e===""||e==="-")return e;var l=_f(t),c=l.thousandSeparator,u=l.decimalSeparator,d=n!==0&&e.indexOf(".")!==-1||n&&r,f=I0(e,o),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=m3(p,n,!!r)),c&&(h=qN(h,c,s)),i&&(h=i+h),a&&(p=p+a),m&&(h="-"+h),e=h+(d&&u||"")+p,e}function _f(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 aP(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),i&&!a&&t&&(e="-"+e),e}function oP(e,t){return new RegExp("(^-)|[0-9]|"+p3(e),"g")}function sP(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function lP(e,t,n){var r;t===void 0&&(t=JN(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a="");var o=n.suffix;o===void 0&&(o="");var s=n.decimalScale,l=t.from,c=t.to,u=c.start,d=c.end,f=_f(n),h=f.allowedDecimalSeparators,p=f.decimalSeparator,m=e[d]===p;if(Ql(e)&&(e===a||e===o)&&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 y=function(O,L,F){var P=!1,W=!1;a.startsWith("-")?P=!1:O.startsWith("--")?(P=!1,W=!0):o.startsWith("-")&&O.length===o.length?P=!1:O[0]==="-"&&(P=!0);var H=P?1:0;return W&&(H=2),H&&(O=O.substring(H),L-=H,F-=H),{value:O,start:L,end:F,hasNegation:P}},_=y(e,u,d),w=_.hasNegation;r=_,e=r.value,u=r.start,d=r.end;var C=y(t.lastValue,l.start,l.end),x=C.start,S=C.end,E=C.value,k=e.substring(u,d);e.length&&E.length&&(x>E.length-o.length||S<a.length)&&!(k&&o.startsWith(k))&&(e=E);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var D=e.length,$=e.length-o.length;e.endsWith(o)?D=$:(d>$||d>e.length-o.length)&&(D=d),e=e.substring(0,D),e=aP(w?"-"+e:e,i),e=(e.match(oP(p))||[]).join("");var M=e.indexOf(p);e=e.replace(new RegExp(p3(p),"g"),function(O,L){return L===M?".":""});var R=I0(e,i),I=R.beforeDecimal,j=R.afterDecimal,A=R.addNegation;return c.end-c.start<l.end-l.start&&I===""&&m&&!parseFloat(j)&&(e=A?"-":""),e}function cP(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}),a=e[0]==="-";i.fill(!1,0,n.length+(a?1:0));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function uP(e){var t=_f(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
255
+ Decimal separator can't be same as thousand separator.
256
+ thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
257
+ decimalSeparator: `+r+` (default value for decimalSeparator is .)
258
+ `);return i.startsWith("-")&&a&&(console.error(`
259
+ Prefix can't start with '-' when allowNegative is true.
260
+ prefix: `+i+`
261
+ allowNegative: `+a+`
262
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function dP(e){e=uP(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Wi);var a=e.onBlur;a===void 0&&(a=Wi);var o=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=f3(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),m=_f(e),g=m.decimalSeparator,y=m.allowedDecimalSeparators,_=function(A){return dy(A,e)},w=function(A,O){return lP(A,O,e)},C=qo(d)?u:d,x=f??sP(C,c,t);qo(d)?qo(u)||(x=x||typeof u=="number"):x=x||typeof d=="number";var S=function(A){return h3(A)?A:(typeof A=="number"&&(A=g3(A)),x&&typeof s=="number"?cy(A,s,!!l):A)},E=b3(S(d),S(u),!!x,_,w,h),k=E[0],T=k.numAsString,D=k.formattedValue,$=E[1],M=function(A){var O=A.target,L=A.key,F=O.selectionStart,P=O.selectionEnd,W=O.value;if(W===void 0&&(W=""),(L==="Backspace"||L==="Delete")&&P<c.length){A.preventDefault();return}if(F!==P){i(A);return}L==="Backspace"&&W[0]==="-"&&F===c.length+1&&n&&ka(O,1),s&&l&&(L==="Backspace"&&W[F-1]===g?(ka(O,F-1),A.preventDefault()):L==="Delete"&&W[F]===g&&A.preventDefault()),y!=null&&y.includes(L)&&W[F]===g&&ka(O,F+1);var H=o===!0?",":o;L==="Backspace"&&W[F-1]===H&&ka(O,F-1),L==="Delete"&&W[F]===H&&ka(O,F+1),i(A)},R=function(A){var O=T;if(O.match(/\d/g)||(O=""),r||(O=GN(O)),l&&s&&(O=cy(O,s,l)),O!==T){var L=dy(O,e);$({formattedValue:L,value:O,floatValue:parseFloat(O)},{event:A,source:Jl.event})}a(A)},I=function(A){return A===g?!0:Ql(A)},j=function(A){var O=A.currentValue,L=A.lastValue,F=A.formattedValue,P=A.currentValueIndex,W=A.formattedValueIndex,H=O[P],q=F[W],Z=v3(L,O),K=Z.to,te=function(ne){return w(ne).indexOf(".")+c.length};return d===0&&l&&s&&O[K.start]===g&&te(O)<P&&te(F)>W?!1:P>=K.start&&P<K.end&&y&&y.includes(H)&&q===g?!0:H===q};return Object.assign(Object.assign({},p),{value:D,valueIsNumericString:!1,isValidInputCharacter:I,isCharacterSame:j,onValueChange:$,format:_,removeFormatting:w,getCaretBoundary:function(A){return cP(A,e)},onKeyDown:M,onBlur:R})}function fP(e){var t=dP(e);return v.createElement(iP,Object.assign({},t))}const hP=(e,t)=>{var i,a;const n=e.getValue(),r=((a=(i=e.column.columnDef)==null?void 0:i.meta)==null?void 0:a.alignment)??"center";return n===!0||n===!1?b.jsx(t,{align:r,color:n?"success":"secondary",icon:n?"boolean-yes":"boolean-no"}):null},pP=e=>{const t=e.getValue();return t?d3(o3(t.toString()),"dd.MM.yyyy"):null},mP=e=>{const t=e.getValue();return t?d3(o3(t.toString()),"dd.MM.yyyy HH:mm"):null},gP=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:b.jsx(fP,{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()})},vP=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 bP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fy={exports:{}},hy;function yP(){return hy||(hy=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(fy)),fy.exports}var xP=yP();const Pe=bP(xP),wP="_container_1jre8_1",_P="_no-value_1jre8_6",CP="_input_1jre8_21",SP="_no-value-button-container_1jre8_24",gu={container:wP,noValue:_P,input:CP,noValueButtonContainer:SP},TP=({column:e,filterValue:t,IconComponent:n,InputComponent:r,texts:i})=>{const[a,o]=v.useState(t??""),[s,l]=v.useState(!1),[c,u]=v.useState(!1);v.useEffect(()=>{o(t??"")},[t]),v.useEffect(()=>{if((a||null)===(t||null))return;const f=setTimeout(()=>{e.setFilterValue(a??null)},500);return()=>clearTimeout(f)},[a,e,t]);const d=v.useMemo(()=>a==="no_value_filter_value",[a]);return b.jsx("div",{className:gu.container,children:d?b.jsx("div",{className:gu.noValue,role:"button",onClick:()=>{o(""),u(!1),l(!1)},children:i.noValue}):b.jsxs(b.Fragment,{children:[b.jsx(r,{className:Pe("filter",gu.input,{filtered:!!t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,role:"filter-input",size:"sm",type:"text",value:a,onChange:f=>{o(f.target.value??"")},onKeyDown:f=>{f.key==="Escape"&&o("")},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)}),d?null:b.jsx("div",{className:Pe(gu.noValueButtonContainer),style:{opacity:s||c?1:0},onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:b.jsx("div",{role:"button",onClick:()=>{o(d?"":"no_value_filter_value"),l(!1)},children:b.jsx(n,{className:"no-value-icon",icon:"no-value",iconProps:{style:{fontSize:"13px",background:"transparent"}}})})})]})})};function ps(e,t=ps.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ps.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 kP="_multiselect_1gflo_1",$P="_multiselect-menu_1gflo_35",EP="_dropdown-menu-item_1gflo_42",MP="_search-item_1gflo_45",OP="_search-input_1gflo_49",AP="_special-option_1gflo_52",ba={multiselect:kP,multiselectMenu:$P,dropdownMenuItem:EP,searchItem:MP,searchInput:OP,specialOption:AP},py=10,RP=({column:e,filterValue:t,texts:n,InputComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:a,DropdownMenuItemComponent:o,CheckComponent:s,DropdownTriggerComponent:l})=>{var x,S,E;const[c,u]=v.useState(""),d=e.getFacetedUniqueValues().keys(),f=v.useMemo(()=>Array.from(d).map(k=>k===!0||k===!1?k:(k==null?void 0:k.toString())??"").sort(),[d]),h=v.useMemo(()=>f.some(k=>k===""||k===null||k===void 0),[f]),p=v.useMemo(()=>(t==null?void 0:t.split(";"))??[],[t]),m=k=>{const T=k===""?[]:p.includes(k)?p.filter(D=>D!==k):[...p,k];e.setFilterValue(!T||T.length<1?"":T.join(";"))},g=v.useMemo(()=>{const k=[{value:"",label:n.multiselect.all||"vše",specialOption:!0}];return h&&k.push({value:"no_value_filter_value",label:n.multiselect.noValue||"bez hodnoty",specialOption:!0}),f.forEach(T=>{k.push({value:(T==null?void 0:T.toString())||"",label:T===!0?n.booleanYes||"ano":T===!1?n.booleanNo||"ne":T,specialOption:!1})}),p.forEach(T=>{T&&T!=="no_value_filter_value"&&!f.some(D=>D.toString()===T.toString())&&k.push({value:T,label:T,specialOption:!1})}),Array.from(new Set(k.map(T=>T.value))).map(T=>k.find(D=>D.value===T))},[f,p,h,n]),y=v.useRef(null),_=v.useRef(null),[w,C]=v.useState(!1);return v.useEffect(()=>{w&&_.current&&_.current.focus()},[w]),v.useEffect(()=>{g.length<py&&u("")},[g]),b.jsxs(i,{onToggleOpen:k=>C(k),children:[b.jsx(l,{className:Pe("filter multiselect",ba.multiselect,{filtered:t}),"data-testId":`filter-${e.id}`,id:`filter-${e.id}`,ref:y,role:"filter-input",onKeyDown:k=>{k.key==="Escape"&&e.setFilterValue("")},children:p.length>1?n.multiselect.xValues?n.multiselect.xValues(p.length):`${p.length} hodnoty`:p.length===1?(x=g.find(k=>k.value===t))==null?void 0:x.label:n.multiselect.all||"vše"}),b.jsxs(a,{className:Pe("multiselect-menu",ba.multiselectMenu),style:{position:"relative",left:(S=y.current)==null?void 0:S.getBoundingClientRect().left,top:(E=y.current)==null?void 0:E.getBoundingClientRect().bottom},children:[g.length>=py?b.jsx(o,{className:Pe("search-item",ba.dropdownMenuItem,ba.searchItem),children:b.jsx(r,{className:ba.searchInput,ref:_,size:"sm",type:"search",value:c,onChange:k=>u(k.target.value??"")})}):null,g.filter(k=>k.specialOption?!0:c?ps(k.value).toLowerCase().includes(ps(c.toLowerCase())):!0).map(k=>b.jsx(o,{className:Pe(ba.dropdownMenuItem,{"special-option":k.specialOption},{[ba.specialOption]:k.specialOption}),onClick:T=>{T.preventDefault(),T.stopPropagation(),m(k.value)},children:b.jsx(s,{checked:k.value===""?p.length<1:p.includes(k.value),label:k.label,onChange:()=>{}})},k.value))]})]})},DP=({column:e,IconComponent:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,DropdownTriggerComponent:o,CheckComponent:s,texts:l})=>{const c=e.getFilterValue(),u=vP(e.columnDef);return["text","number","date","datetime"].includes(u)?b.jsx(TP,{column:e,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l}):b.jsx(RP,{CheckComponent:s,column:e,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,DropdownTriggerComponent:o,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l})};function IP(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function y3(e,t){return e?jP(e)?he.createElement(e,t):e:null}function jP(e){return NP(e)||typeof e=="function"||PP(e)}function NP(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function PP(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const LP="_table-scroll-container_wu79d_1",FP="_full-screen_wu79d_8",BP="_table_wu79d_1",zP="_thead_wu79d_24",WP="_tbody_wu79d_25",UP="_th_wu79d_24",HP="_pinned_wu79d_38",VP="_sorted_wu79d_41",qP="_heading_wu79d_44",YP="_can-sort_wu79d_50",GP="_content_wu79d_53",ZP="_resizer_wu79d_59",KP="_resizer-bar_wu79d_73",XP="_reorder-handle_wu79d_79",JP="_dragging_wu79d_84",QP="_row-selection-info_wu79d_88",eL="_tr_wu79d_92",tL="_td_wu79d_100",nL="_left_wu79d_117",rL="_center_wu79d_121",iL="_right_wu79d_125",aL="_first-right_wu79d_134",oL="_grouped_wu79d_142",sL="_expanded_wu79d_147",lL="_selected-cell_wu79d_151",cL="_sm_wu79d_155",uL="_lg_wu79d_160",dL="_clickable_wu79d_168",fL="_cell-selected-row_wu79d_172",hL="_cell-selection-disabled_wu79d_180",pL="_own-click_wu79d_203",mL="_expander-button_wu79d_211",gL="_empty-table-alert_wu79d_217",vL="_remove-filters-button-wrapper_wu79d_225",bL="_remove-filters-button_wu79d_225",yL="_bottom-bar_wu79d_255",xL="_left-items_wu79d_271",wL="_pagination_wu79d_277",_L="_page-info-text_wu79d_283",CL="_right-items_wu79d_289",SL="_sizing-menu_wu79d_310",TL="_sizing-menu-item_wu79d_315",Ue={tableScrollContainer:LP,fullScreen:FP,table:BP,thead:zP,tbody:WP,th:UP,pinned:HP,sorted:VP,heading:qP,canSort:YP,content:GP,resizer:ZP,resizerBar:KP,reorderHandle:XP,dragging:JP,rowSelectionInfo:QP,tr:eL,td:tL,left:nL,center:rL,right:iL,firstRight:aL,grouped:oL,expanded:sL,selectedCell:lL,sm:cL,lg:uL,clickable:dL,cellSelectedRow:fL,cellSelectionDisabled:hL,ownClick:pL,expanderButton:mL,emptyTableAlert:gL,removeFiltersButtonWrapper:vL,removeFiltersButton:bL,bottomBar:yL,leftItems:xL,pagination:wL,pageInfoText:_L,rightItems:CL,sizingMenu:SL,sizingMenuItem:TL};function kL(){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 Cf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Es(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function j0(e){return"nodeType"in e}function Xn(e){var t,n;return e?Es(e)?e:j0(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function N0(e){const{Document:t}=Xn(e);return e instanceof t}function Lc(e){return Es(e)?!1:e instanceof Xn(e).HTMLElement}function x3(e){return e instanceof Xn(e).SVGElement}function Ms(e){return e?Es(e)?e.document:j0(e)?N0(e)?e:Lc(e)||x3(e)?e.ownerDocument:document:document:document}const qr=Cf?v.useLayoutEffect:v.useEffect;function P0(e){const t=v.useRef(e);return qr(()=>{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 $L(){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 ec(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return qr(()=>{n.current!==e&&(n.current=e)},t),n}function Fc(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function md(e){const t=P0(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 Fm(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let yp={};function Bc(e,t){return v.useMemo(()=>{if(t)return t;const n=yp[e]==null?0:yp[e]+1;return yp[e]=n,e+"-"+n},[e,t])}function w3(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((a,o)=>{const s=Object.entries(o);for(const[l,c]of s){const u=a[l];u!=null&&(a[l]=u+e*c)}return a},{...t})}}const Yo=w3(1),gd=w3(-1);function EL(e){return"clientX"in e&&"clientY"in e}function L0(e){if(!e)return!1;const{KeyboardEvent:t}=Xn(e.target);return t&&e instanceof t}function ML(e){if(!e)return!1;const{TouchEvent:t}=Xn(e.target);return t&&e instanceof t}function Bm(e){if(ML(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 EL(e)?{x:e.clientX,y:e.clientY}:null}const tc=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[tc.Translate.toString(e),tc.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),my="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function OL(e){return e.matches(my)?e:e.querySelector(my)}const AL={display:"none"};function RL(e){let{id:t,value:n}=e;return v.createElement("div",{id:t,style:AL},n)}function DL(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 IL(){const[e,t]=v.useState("");return{announce:v.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const _3=v.createContext(null);function jL(e){const t=v.useContext(_3);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function NL(){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(a=>{var o;return(o=a[r])==null?void 0:o.call(a,i)})},[e]),t]}const PL={draggable:`
263
+ To pick up a draggable item, press the space bar.
264
+ While dragging, use the arrow keys to move the item.
265
+ Press space again to drop the item in its new position, or press escape to cancel.
266
+ `},LL={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 FL(e){let{announcements:t=LL,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=PL}=e;const{announce:a,announcement:o}=IL(),s=Bc("DndLiveRegion"),[l,c]=v.useState(!1);if(v.useEffect(()=>{c(!0)},[]),jL(v.useMemo(()=>({onDragStart(d){let{active:f}=d;a(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;t.onDragMove&&a(t.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;a(t.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;a(t.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;a(t.onDragCancel({active:f,over:h}))}}),[a,t])),!l)return null;const u=v.createElement(v.Fragment,null,v.createElement(RL,{id:r,value:i.draggable}),v.createElement(DL,{id:s,announcement:o}));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 vd(){}function xp(e,t){return v.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function BL(){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 Er=Object.freeze({x:0,y:0});function zL(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function WL(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function UL(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function HL(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function gy(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 VL=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=gy(t,t.left,t.top),a=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const c=zL(gy(l),i);a.push({id:s,data:{droppableContainer:o,value:c}})}}return a.sort(WL)};function qL(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),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){const l=t.width*t.height,c=e.width*e.height,u=o*s,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const YL=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const a of r){const{id:o}=a,s=n.get(o);if(s){const l=qL(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(UL)};function GL(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function C3(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Er}function ZL(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((a,o)=>({...a,top:a.top+e*o.y,bottom:a.bottom+e*o.y,left:a.left+e*o.x,right:a.right+e*o.x}),{...t})}}const KL=ZL(1);function XL(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 JL(e,t,n){const r=XL(t);if(!r)return e;const{scaleX:i,scaleY:a,x:o,y:s}=r,l=e.left-o-(1-i)*parseFloat(n),c=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const QL={ignoreTransform:!1};function Os(e,t){t===void 0&&(t=QL);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Xn(e).getComputedStyle(e);c&&(n=JL(n,c,u))}const{top:r,left:i,width:a,height:o,bottom:s,right:l}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:l}}function vy(e){return Os(e,{ignoreTransform:!0})}function eF(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function tF(e,t){return t===void 0&&(t=Xn(e).getComputedStyle(e)),t.position==="fixed"}function nF(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 F0(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(N0(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Lc(i)||x3(i)||n.includes(i))return n;const a=Xn(e).getComputedStyle(i);return i!==e&&nF(i,a)&&n.push(i),tF(i,a)?n:r(i.parentNode)}return e?r(e):n}function S3(e){const[t]=F0(e,1);return t??null}function wp(e){return!Cf||!e?null:Es(e)?e:j0(e)?N0(e)||e===Ms(e).scrollingElement?window:Lc(e)?e:null:null}function T3(e){return Es(e)?e.scrollX:e.scrollLeft}function k3(e){return Es(e)?e.scrollY:e.scrollTop}function zm(e){return{x:T3(e),y:k3(e)}}var xn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xn||(xn={}));function $3(e){return!Cf||!e?!1:e===document.scrollingElement}function E3(e){const t={x:0,y:0},n=$3(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,a=e.scrollLeft<=t.x,o=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:a,isBottom:o,isRight:s,maxScroll:r,minScroll:t}}const rF={x:.2,y:.2};function iF(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=rF);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=E3(e),h={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!c&&a<=t.top+m.height?(h.y=xn.Backward,p.y=r*Math.abs((t.top+m.height-a)/m.height)):!u&&l>=t.bottom-m.height&&(h.y=xn.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!f&&s>=t.right-m.width?(h.x=xn.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!d&&o<=t.left+m.width&&(h.x=xn.Backward,p.x=r*Math.abs((t.left+m.width-o)/m.width)),{direction:h,speed:p}}function aF(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}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 M3(e){return e.reduce((t,n)=>Yo(t,zm(n)),Er)}function oF(e){return e.reduce((t,n)=>t+T3(n),0)}function sF(e){return e.reduce((t,n)=>t+k3(n),0)}function lF(e,t){if(t===void 0&&(t=Os),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);S3(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const cF=[["x",["left","right"],oF],["y",["top","bottom"],sF]];class B0{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=F0(n),i=M3(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of cF)for(const l of o)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=i[a]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}let Sl=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 uF(e){const{EventTarget:t}=Xn(e);return e instanceof t?e:Ms(e)}function _p(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 by(e){e.preventDefault()}function dF(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 O3={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},fF=(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 z0=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 Sl(Ms(n)),this.windowListeners=new Sl(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&&lF(r),n(Er)}handleKeyDown(t){if(L0(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=O3,coordinateGetter:o=fF,scrollBehavior:s="smooth"}=i,{code:l}=t;if(a.end.includes(l)){this.handleEnd(t);return}if(a.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:Er;this.referenceCoordinates||(this.referenceCoordinates=u);const d=o(t,{active:n,context:r.current,currentCoordinates:u});if(d){const f=gd(d,u),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const g=t.code,{isTop:y,isRight:_,isLeft:w,isBottom:C,maxScroll:x,minScroll:S}=E3(m),E=aF(m),k={x:Math.min(g===Ot.Right?E.right-E.width/2:E.right,Math.max(g===Ot.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(g===Ot.Down?E.bottom-E.height/2:E.bottom,Math.max(g===Ot.Down?E.top:E.top+E.height/2,d.y))},T=g===Ot.Right&&!_||g===Ot.Left&&!w,D=g===Ot.Down&&!C||g===Ot.Up&&!y;if(T&&k.x!==d.x){const $=m.scrollLeft+f.x,M=g===Ot.Right&&$<=x.x||g===Ot.Left&&$>=S.x;if(M&&!f.y){m.scrollTo({left:$,behavior:s});return}M?h.x=m.scrollLeft-$:h.x=g===Ot.Right?m.scrollLeft-x.x:m.scrollLeft-S.x,h.x&&m.scrollBy({left:-h.x,behavior:s});break}else if(D&&k.y!==d.y){const $=m.scrollTop+f.y,M=g===Ot.Down&&$<=x.y||g===Ot.Up&&$>=S.y;if(M&&!f.x){m.scrollTo({top:$,behavior:s});return}M?h.y=m.scrollTop-$:h.y=g===Ot.Down?m.scrollTop-x.y:m.scrollTop-S.y,h.y&&m.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Yo(gd(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()}};z0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=O3,onActivation:i}=t,{active:a}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const s=a.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function yy(e){return!!(e&&"distance"in e)}function xy(e){return!!(e&&"delay"in e)}let W0=class{constructor(t,n,r){var i;r===void 0&&(r=uF(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:a}=t,{target:o}=a;this.props=t,this.events=n,this.document=Ms(o),this.documentListeners=new Sl(this.document),this.listeners=new Sl(r),this.windowListeners=new Sl(Xn(o)),this.initialCoordinates=(i=Bm(a))!=null?i:Er,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,by),this.windowListeners.add(or.VisibilityChange,this.handleCancel),this.windowListeners.add(or.ContextMenu,by),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(xy(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(yy(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,dF,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(or.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:s}}=a;if(!i)return;const l=(n=Bm(t))!=null?n:Er,c=gd(i,l);if(!r&&s){if(yy(s)){if(s.tolerance!=null&&_p(c,s.tolerance))return this.handleCancel();if(_p(c,s.distance))return this.handleStart()}if(xy(s)&&_p(c,s.tolerance))return this.handleCancel();this.handlePending(s,c);return}t.cancelable&&t.preventDefault(),o(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 hF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let A3=class extends W0{constructor(t){const{event:n}=t,r=Ms(n.target);super(t,hF,r)}};A3.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 pF={move:{name:"mousemove"},end:{name:"mouseup"}};var Wm;(function(e){e[e.RightClick=2]="RightClick"})(Wm||(Wm={}));let R3=class extends W0{constructor(t){super(t,pF,Ms(t.event.target))}};R3.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Wm.RightClick?!1:(r==null||r({event:n}),!0)}}];const Cp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};let D3=class extends W0{constructor(t){super(t,Cp)}static setup(){return window.addEventListener(Cp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Cp.move.name,t)};function t(){}}};D3.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 Tl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Tl||(Tl={}));var bd;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(bd||(bd={}));function mF(e){let{acceleration:t,activator:n=Tl.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=bd.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const h=vF({delta:d,disabled:!a}),[p,m]=$L(),g=v.useRef({x:0,y:0}),y=v.useRef({x:0,y:0}),_=v.useMemo(()=>{switch(n){case Tl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Tl.DraggableRect:return i}},[n,i,l]),w=v.useRef(null),C=v.useCallback(()=>{const S=w.current;if(!S)return;const E=g.current.x*y.current.x,k=g.current.y*y.current.y;S.scrollBy(E,k)},[]),x=v.useMemo(()=>s===bd.TreeOrder?[...c].reverse():c,[s,c]);v.useEffect(()=>{if(!a||!c.length||!_){m();return}for(const S of x){if((r==null?void 0:r(S))===!1)continue;const E=c.indexOf(S),k=u[E];if(!k)continue;const{direction:T,speed:D}=iF(S,k,_,t,f);for(const $ of["x","y"])h[$][T[$]]||(D[$]=0,T[$]=0);if(D.x>0||D.y>0){m(),w.current=S,p(C,o),g.current=D,y.current=T;return}}g.current={x:0,y:0},y.current={x:0,y:0},m()},[t,C,r,m,a,o,JSON.stringify(_),JSON.stringify(h),p,c,x,u,JSON.stringify(f)])}const gF={x:{[xn.Backward]:!1,[xn.Forward]:!1},y:{[xn.Backward]:!1,[xn.Forward]:!1}};function vF(e){let{delta:t,disabled:n}=e;const r=Fm(t);return Fc(i=>{if(n||!r||!i)return gF;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[xn.Backward]:i.x[xn.Backward]||a.x===-1,[xn.Forward]:i.x[xn.Forward]||a.x===1},y:{[xn.Backward]:i.y[xn.Backward]||a.y===-1,[xn.Forward]:i.y[xn.Forward]||a.y===1}}},[n,t,r])}function bF(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Fc(i=>{var a;return t==null?null:(a=r??i)!=null?a:null},[r,t])}function yF(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,r)}));return[...n,...a]},[]),[e,t])}var nc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(nc||(nc={}));var Um;(function(e){e.Optimized="optimized"})(Um||(Um={}));const wy=new Map;function xF(e,t){let{dragging:n,dependencies:r,config:i}=t;const[a,o]=v.useState(null),{frequency:s,measure:l,strategy:c}=i,u=v.useRef(e),d=g(),f=ec(d),h=v.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(_=>_===null?y:_.concat(y.filter(w=>!_.includes(w))))},[f]),p=v.useRef(null),m=Fc(y=>{if(d&&!n)return wy;if(!y||y===wy||u.current!==e||a!=null){const _=new Map;for(let w of e){if(!w)continue;if(a&&a.length>0&&!a.includes(w.id)&&w.rect.current){_.set(w.id,w.rect.current);continue}const C=w.node.current,x=C?new B0(l(C),C):null;w.rect.current=x,x&&_.set(w.id,x)}return _}return y},[e,a,n,d,l]);return v.useEffect(()=>{u.current=e},[e]),v.useEffect(()=>{d||h()},[n,d]),v.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),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:a!=null};function g(){switch(c){case nc.Always:return!1;case nc.BeforeDragging:return n;default:return!n}}}function I3(e,t){return Fc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function wF(e,t){return I3(e,t)}function _F(e){let{callback:t,disabled:n}=e;const r=P0(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(r)},[r,n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Sf(e){let{callback:t,disabled:n}=e;const r=P0(t),i=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(r)},[n]);return v.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function CF(e){return new B0(Os(e),e)}function _y(e,t,n){t===void 0&&(t=CF);const[r,i]=v.useState(null);function a(){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 o=_F({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),s=Sf({callback:a});return qr(()=>{a(),e?(s==null||s.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),o==null||o.disconnect())},[e]),r}function SF(e){const t=I3(e);return C3(e,t)}const Cy=[];function TF(e){const t=v.useRef(e),n=Fc(r=>e?r&&r!==Cy&&e&&t.current&&e.parentNode===t.current.parentNode?r:F0(e):Cy,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function kF(e){const[t,n]=v.useState(null),r=v.useRef(e),i=v.useCallback(a=>{const o=wp(a.target);o&&n(s=>s?(s.set(o,zm(o)),new Map(s)):null)},[]);return v.useEffect(()=>{const a=r.current;if(e!==a){o(a);const s=e.map(l=>{const c=wp(l);return c?(c.addEventListener("scroll",i,{passive:!0}),[c,zm(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{o(e),o(a)};function o(s){s.forEach(l=>{const c=wp(l);c==null||c.removeEventListener("scroll",i)})}},[i,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Yo(a,o),Er):M3(e):Er,[e,t])}function Sy(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==Er;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?gd(e,n.current):Er}function $F(e){v.useEffect(()=>{if(!Cf)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 EF(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:a}=r;return n[i]=o=>{a(o,t)},n},{}),[e,t])}function j3(e){return v.useMemo(()=>e?eF(e):null,[e])}const Ty=[];function MF(e,t){t===void 0&&(t=Os);const[n]=e,r=j3(n?Xn(n):null),[i,a]=v.useState(Ty);function o(){a(()=>e.length?e.map(l=>$3(l)?r:new B0(t(l),l)):Ty)}const s=Sf({callback:o});return qr(()=>{s==null||s.disconnect(),o(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function OF(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Lc(t)?t:e}function AF(e){let{measure:t}=e;const[n,r]=v.useState(null),i=v.useCallback(c=>{for(const{target:u}of c)if(Lc(u)){r(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),a=Sf({callback:i}),o=v.useCallback(c=>{const u=OF(c);a==null||a.disconnect(),u&&(a==null||a.observe(u)),r(u?t(u):null)},[t,a]),[s,l]=md(o);return v.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const RF=[{sensor:A3,options:{}},{sensor:z0,options:{}}],DF={current:{}},Bu={draggable:{measure:vy},droppable:{measure:vy,strategy:nc.WhileDragging,frequency:Um.Optimized},dragOverlay:{measure:Os}};let kl=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 IF={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new kl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:vd},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Bu,measureDroppableContainers:vd,windowRect:null,measuringScheduled:!1},jF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vd,draggableNodes:new Map,over:null,measureDroppableContainers:vd},Tf=v.createContext(jF),N3=v.createContext(IF);function NF(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new kl}}}function PF(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 kl(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,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new kl(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case hn.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new kl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function LF(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=v.useContext(Tf),a=Fm(r),o=Fm(n==null?void 0:n.id);return v.useEffect(()=>{if(!t&&!r&&a&&o!=null){if(!L0(a)||document.activeElement===a.target)return;const s=i.get(o);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=OL(u);if(d){d.focus();break}}})}},[r,t,i,o,a]),null}function FF(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function BF(e){return v.useMemo(()=>({draggable:{...Bu.draggable,...e==null?void 0:e.draggable},droppable:{...Bu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Bu.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 zF(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const a=v.useRef(!1),{x:o,y:s}=typeof i=="boolean"?{x:i,y:i}:i;qr(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;const l=t==null?void 0:t.node.current;if(!l||l.isConnected===!1)return;const c=n(l),u=C3(c,r);if(o||(u.x=0),s||(u.y=0),a.current=!0,Math.abs(u.x)>0||Math.abs(u.y)>0){const d=S3(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,o,s,r,n])}const P3=v.createContext({...Er,scaleX:1,scaleY:1});var Li;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Li||(Li={}));const WF=v.memo(function(e){var t,n,r,i;let{id:a,accessibility:o,autoScroll:s=!0,children:l,sensors:c=RF,collisionDetection:u=YL,measuring:d,modifiers:f,...h}=e;const p=v.useReducer(PF,void 0,NF),[m,g]=p,[y,_]=NL(),[w,C]=v.useState(Li.Uninitialized),x=w===Li.Initialized,{draggable:{active:S,nodes:E,translate:k},droppable:{containers:T}}=m,D=S!=null?E.get(S):null,$=v.useRef({initial:null,translated:null}),M=v.useMemo(()=>{var Xe;return S!=null?{id:S,data:(Xe=D==null?void 0:D.data)!=null?Xe:DF,rect:$}:null},[S,D]),R=v.useRef(null),[I,j]=v.useState(null),[A,O]=v.useState(null),L=ec(h,Object.values(h)),F=Bc("DndDescribedBy",a),P=v.useMemo(()=>T.getEnabled(),[T]),W=BF(d),{droppableRects:H,measureDroppableContainers:q,measuringScheduled:Z}=xF(P,{dragging:x,dependencies:[k.x,k.y],config:W.droppable}),K=bF(E,S),te=v.useMemo(()=>A?Bm(A):null,[A]),ne=Rt(),U=wF(K,W.draggable.measure);zF({activeNode:S!=null?E.get(S):null,config:ne.layoutShiftCompensation,initialRect:U,measure:W.draggable.measure});const B=_y(K,W.draggable.measure,U),z=_y(K?K.parentElement:null),V=v.useRef({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:H,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),N=T.getNodeFor((t=V.current.over)==null?void 0:t.id),ee=AF({measure:W.dragOverlay.measure}),Q=(n=ee.nodeRef.current)!=null?n:K,X=x?(r=ee.rect)!=null?r:B:null,se=!!(ee.nodeRef.current&&ee.rect),G=SF(se?null:B),J=j3(Q?Xn(Q):null),ie=TF(x?N??K:null),oe=MF(ie),be=FF(f,{transform:{x:k.x-G.x,y:k.y-G.y,scaleX:1,scaleY:1},activatorEvent:A,active:M,activeNodeRect:B,containerNodeRect:z,draggingNodeRect:X,over:V.current.over,overlayNodeRect:ee.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:J}),ce=te?Yo(te,k):null,ue=kF(ie),Ce=Sy(ue),ke=Sy(ue,[B]),ye=Yo(be,Ce),Me=X?KL(X,be):null,pe=M&&Me?u({active:M,collisionRect:Me,droppableRects:H,droppableContainers:P,pointerCoordinates:ce}):null,me=HL(pe,"id"),[fe,je]=v.useState(null),qe=se?be:Yo(be,ke),xt=GL(qe,(i=fe==null?void 0:fe.rect)!=null?i:null,B),Te=v.useRef(null),Ie=v.useCallback((Xe,Fe)=>{let{sensor:Ye,options:et}=Fe;if(R.current==null)return;const Be=E.get(R.current);if(!Be)return;const tt=Xe.nativeEvent,vt=new Ye({active:R.current,activeNode:Be,event:tt,options:et,context:V,onAbort(Le){if(!E.get(Le))return;const{onDragAbort:Oe}=L.current,Ze={id:Le};Oe==null||Oe(Ze),y({type:"onDragAbort",event:Ze})},onPending(Le,Oe,Ze,wt){if(!E.get(Le))return;const{onDragPending:nt}=L.current,bt={id:Le,constraint:Oe,initialCoordinates:Ze,offset:wt};nt==null||nt(bt),y({type:"onDragPending",event:bt})},onStart(Le){const Oe=R.current;if(Oe==null)return;const Ze=E.get(Oe);if(!Ze)return;const{onDragStart:wt}=L.current,nt={activatorEvent:tt,active:{id:Oe,data:Ze.data,rect:$}};Un.unstable_batchedUpdates(()=>{wt==null||wt(nt),C(Li.Initializing),g({type:hn.DragStart,initialCoordinates:Le,active:Oe}),y({type:"onDragStart",event:nt}),j(Te.current),O(tt)})},onMove(Le){g({type:hn.DragMove,coordinates:Le})},onEnd:ot(hn.DragEnd),onCancel:ot(hn.DragCancel)});Te.current=vt;function ot(Le){return async function(){const{active:Oe,collisions:Ze,over:wt,scrollAdjustedTranslate:nt}=V.current;let bt=null;if(Oe&&nt){const{cancelDrop:en}=L.current;bt={activatorEvent:tt,active:Oe,collisions:Ze,delta:nt,over:wt},Le===hn.DragEnd&&typeof en=="function"&&await Promise.resolve(en(bt))&&(Le=hn.DragCancel)}R.current=null,Un.unstable_batchedUpdates(()=>{g({type:Le}),C(Li.Uninitialized),je(null),j(null),O(null),Te.current=null;const en=Le===hn.DragEnd?"onDragEnd":"onDragCancel";if(bt){const Bt=L.current[en];Bt==null||Bt(bt),y({type:en,event:bt})}})}}},[E]),at=v.useCallback((Xe,Fe)=>(Ye,et)=>{const Be=Ye.nativeEvent,tt=E.get(et);if(R.current!==null||!tt||Be.dndKit||Be.defaultPrevented)return;const vt={active:tt};Xe(Ye,Fe.options,vt)===!0&&(Be.dndKit={capturedBy:Fe.sensor},R.current=et,Ie(Ye,Fe))},[E,Ie]),He=yF(c,at);$F(c),qr(()=>{B&&w===Li.Initializing&&C(Li.Initialized)},[B,w]),v.useEffect(()=>{const{onDragMove:Xe}=L.current,{active:Fe,activatorEvent:Ye,collisions:et,over:Be}=V.current;if(!Fe||!Ye)return;const tt={active:Fe,activatorEvent:Ye,collisions:et,delta:{x:ye.x,y:ye.y},over:Be};Un.unstable_batchedUpdates(()=>{Xe==null||Xe(tt),y({type:"onDragMove",event:tt})})},[ye.x,ye.y]),v.useEffect(()=>{const{active:Xe,activatorEvent:Fe,collisions:Ye,droppableContainers:et,scrollAdjustedTranslate:Be}=V.current;if(!Xe||R.current==null||!Fe||!Be)return;const{onDragOver:tt}=L.current,vt=et.get(me),ot=vt&&vt.rect.current?{id:vt.id,rect:vt.rect.current,data:vt.data,disabled:vt.disabled}:null,Le={active:Xe,activatorEvent:Fe,collisions:Ye,delta:{x:Be.x,y:Be.y},over:ot};Un.unstable_batchedUpdates(()=>{je(ot),tt==null||tt(Le),y({type:"onDragOver",event:Le})})},[me]),qr(()=>{V.current={activatorEvent:A,active:M,activeNode:K,collisionRect:Me,collisions:pe,droppableRects:H,draggableNodes:E,draggingNode:Q,draggingNodeRect:X,droppableContainers:T,over:fe,scrollableAncestors:ie,scrollAdjustedTranslate:ye},$.current={initial:X,translated:Me}},[M,K,pe,Me,E,Q,X,H,T,fe,ie,ye]),mF({...ne,delta:k,draggingRect:Me,pointerCoordinates:ce,scrollableAncestors:ie,scrollableAncestorRects:oe});const mt=v.useMemo(()=>({active:M,activeNode:K,activeNodeRect:B,activatorEvent:A,collisions:pe,containerNodeRect:z,dragOverlay:ee,draggableNodes:E,droppableContainers:T,droppableRects:H,over:fe,measureDroppableContainers:q,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:W,measuringScheduled:Z,windowRect:J}),[M,K,B,A,pe,z,ee,E,T,H,fe,q,ie,oe,W,Z,J]),ut=v.useMemo(()=>({activatorEvent:A,activators:He,active:M,activeNodeRect:B,ariaDescribedById:{draggable:F},dispatch:g,draggableNodes:E,over:fe,measureDroppableContainers:q}),[A,He,M,B,g,F,E,fe,q]);return v.createElement(_3.Provider,{value:_},v.createElement(Tf.Provider,{value:ut},v.createElement(N3.Provider,{value:mt},v.createElement(P3.Provider,{value:xt},l)),v.createElement(LF,{disabled:(o==null?void 0:o.restoreFocus)===!1})),v.createElement(FL,{...o,hiddenTextDescribedById:F}));function Rt(){const Xe=(I==null?void 0:I.autoScrollEnabled)===!1,Fe=typeof s=="object"?s.enabled===!1:s===!1,Ye=x&&!Xe&&!Fe;return typeof s=="object"?{...s,enabled:Ye}:{enabled:Ye}}}),UF=v.createContext(null),ky="button",HF="Draggable";function VF(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=Bc(HF),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=v.useContext(Tf),{role:h=ky,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,y=v.useContext(g?P3:UF),[_,w]=md(),[C,x]=md(),S=EF(o,t),E=ec(n);qr(()=>(d.set(t,{id:t,key:a,node:_,activatorNode:C,data:E}),()=>{const T=d.get(t);T&&T.key===a&&d.delete(t)}),[d,t]);const k=v.useMemo(()=>({role:h,tabIndex:m,"aria-disabled":r,"aria-pressed":g&&h===ky?!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:k,isDragging:g,listeners:r?void 0:S,node:_,over:f,setNodeRef:w,setActivatorNodeRef:x,transform:y}}function qF(){return v.useContext(N3)}const YF="Droppable",GF={timeout:25};function ZF(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=Bc(YF),{active:o,dispatch:s,over:l,measureDroppableContainers:c}=v.useContext(Tf),u=v.useRef({disabled:n}),d=v.useRef(!1),f=v.useRef(null),h=v.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...GF,...i},y=ec(m??r),_=v.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),h.current=null},g)},[g]),w=Sf({callback:_,disabled:p||!o}),C=v.useCallback((k,T)=>{w&&(T&&(w.unobserve(T),d.current=!1),k&&w.observe(k))},[w]),[x,S]=md(C),E=ec(t);return v.useEffect(()=>{!w||!x.current||(w.disconnect(),d.current=!1,w.observe(x.current))},[x,w]),v.useEffect(()=>(s({type:hn.RegisterDroppable,element:{id:r,key:a,disabled:n,node:x,rect:f,data:E}}),()=>s({type:hn.UnregisterDroppable,key:a,id:r})),[r]),v.useEffect(()=>{n!==u.current.disabled&&(s({type:hn.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:x,over:l,setNodeRef:S}}function U0(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function KF(e,t){return e.reduce((n,r,i)=>{const a=t.get(r);return a&&(n[i]=a),n},Array(e.length))}function vu(e){return e!==null&&e>=0}function XF(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 JF(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const bu={scaleX:1,scaleY:1},QF=e=>{var t;let{rects:n,activeNodeRect:r,activeIndex:i,overIndex:a,index:o}=e;const s=(t=n[i])!=null?t:r;if(!s)return null;const l=eB(n,o,i);if(o===i){const c=n[a];return c?{x:i<a?c.left+c.width-(s.left+s.width):c.left-s.left,y:0,...bu}:null}return o>i&&o<=a?{x:-s.width-l,y:0,...bu}:o<i&&o>=a?{x:s.width+l,y:0,...bu}:{x:0,y:0,...bu}};function eB(e,t,n){const r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n<t?i?r.left-(i.left+i.width):a.left-(r.left+r.width):a?a.left-(r.left+r.width):r.left-(i.left+i.width)}const L3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=U0(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},F3="Sortable",B3=v.createContext({activeIndex:-1,containerId:F3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:L3,disabled:{draggable:!1,droppable:!1}});function tB(e){let{children:t,id:n,items:r,strategy:i=L3,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=qF(),d=Bc(F3,n),f=s.rect!==null,h=v.useMemo(()=>r.map(S=>typeof S=="object"&&"id"in S?S.id:S),[r]),p=o!=null,m=o?h.indexOf(o.id):-1,g=c?h.indexOf(c.id):-1,y=v.useRef(h),_=!XF(h,y.current),w=g!==-1&&m===-1||_,C=JF(a);qr(()=>{_&&p&&u(h)},[_,h,p,u]),v.useEffect(()=>{y.current=h},[h]);const x=v.useMemo(()=>({activeIndex:m,containerId:d,disabled:C,disableTransforms:w,items:h,overIndex:g,useDragOverlay:f,sortedRects:KF(h,l),strategy:i}),[m,d,C.draggable,C.droppable,w,h,g,l,f,i]);return v.createElement(B3.Provider,{value:x},t)}const nB=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return U0(n,r,i).indexOf(t)},rB=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===l},iB={duration:200,easing:"ease"},z3="transform",aB=tc.Transition.toString({property:z3,duration:0,easing:"linear"}),oB={roleDescription:"sortable"};function sB(e){let{disabled:t,index:n,node:r,rect:i}=e;const[a,o]=v.useState(null),s=v.useRef(n);return qr(()=>{if(!t&&n!==s.current&&r.current){const l=i.current;if(l){const c=Os(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)&&o(u)}}n!==s.current&&(s.current=n)},[t,n,r,i]),v.useEffect(()=>{a&&o(null)},[a]),a}function lB(e){let{animateLayoutChanges:t=rB,attributes:n,disabled:r,data:i,getNewIndex:a=nB,id:o,strategy:s,resizeObserverConfig:l,transition:c=iB}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:y,strategy:_}=v.useContext(B3),w=cB(r,h),C=u.indexOf(o),x=v.useMemo(()=>({sortable:{containerId:d,index:C,items:u},...i}),[d,i,C,u]),S=v.useMemo(()=>u.slice(u.indexOf(o)),[u,o]),{rect:E,node:k,isOver:T,setNodeRef:D}=ZF({id:o,data:x,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:$,activatorEvent:M,activeNodeRect:R,attributes:I,setNodeRef:j,listeners:A,isDragging:O,over:L,setActivatorNodeRef:F,transform:P}=VF({id:o,data:x,attributes:{...oB,...n},disabled:w.draggable}),W=kL(D,j),H=!!$,q=H&&!p&&vu(f)&&vu(g),Z=!y&&O,K=Z&&q?P:null,te=q?K??(s??_)({rects:m,activeNodeRect:R,activeIndex:f,overIndex:g,index:C}):null,ne=vu(f)&&vu(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,U=$==null?void 0:$.id,B=v.useRef({activeId:U,items:u,newIndex:ne,containerId:d}),z=u!==B.current.items,V=t({active:$,containerId:d,isDragging:O,isSorting:H,id:o,index:C,items:u,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:c,wasDragging:B.current.activeId!=null}),N=sB({disabled:!V,index:C,node:k,rect:E});return v.useEffect(()=>{H&&B.current.newIndex!==ne&&(B.current.newIndex=ne),d!==B.current.containerId&&(B.current.containerId=d),u!==B.current.items&&(B.current.items=u)},[H,ne,d,u]),v.useEffect(()=>{if(U===B.current.activeId)return;if(U!=null&&B.current.activeId==null){B.current.activeId=U;return}const Q=setTimeout(()=>{B.current.activeId=U},50);return()=>clearTimeout(Q)},[U]),{active:$,activeIndex:f,attributes:I,data:x,rect:E,index:C,newIndex:ne,items:u,isOver:T,isSorting:H,isDragging:O,listeners:A,node:k,overIndex:g,over:L,setNodeRef:W,setActivatorNodeRef:F,setDroppableNodeRef:D,setDraggableNodeRef:j,transform:N??te,transition:ee()};function ee(){if(N||z&&B.current.newIndex===C)return aB;if(!(Z&&!L0(M)||!c)&&(H||V))return tc.Transition.toString({...c,property:z3})}}function cB(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 uB="_column-menu_wt2wp_1",dB="_column-menu-item_wt2wp_4",fB="_danger_wt2wp_8",ji={columnMenu:uB,columnMenuItem:dB,danger:fB},hB=({header:e,table:t,className:n,IconComponent:r,DropdownMenuComponent:i,DropdownMenuContentComponent:a,DropdownMenuItemComponent:o,DropdownTriggerComponent:s,InputComponent:l,CheckComponent:c,texts:u,columnMenuPos:d,onColumnMenu:f,dragEnabled:h,style:p})=>{var I,j,A;const{attributes:m,listeners:g,setNodeRef:y,transform:_,isDragging:w}=lB({id:e.id,disabled:!h}),C={...p??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...h?{transform:tc.Translate.toString(_)}:{}},x=O=>O.column.getCanSort()?"button":void 0,S=O=>{var P,W;const L=O.column.getIsSorted(),F=O.column.getIsGrouped();return Pe("th",Ue.th,{sorted:L,[Ue.sorted]:L},{grouped:F,[Ue.grouped]:F},(P=O.column.columnDef.meta)==null?void 0:P.className,(W=O.column.columnDef.meta)==null?void 0:W.headerClassName)},E=O=>{const L=O.column.getCanSort();return Pe(Ue.heading,"heading",{[Ue.canSort]:L})},k=O=>{O.preventDefault(),f({id:e.id,x:O.clientX,y:O.clientY})},T=()=>f(null),D=(d==null?void 0:d.id)===e.id,$=e.column.getIsPinned(),M=e.column.getIsGrouped(),R=(j=(I=e.column.columnDef)==null?void 0:I.meta)==null?void 0:j.alwaysPinned;return b.jsxs("div",{className:Pe(n,S(e.getContext())),ref:y,style:C,onContextMenu:k,children:[Un.createPortal(b.jsxs(i,{isOpen:D,onToggleOpen:O=>!O&&T(),children:[b.jsx(s,{style:{position:"fixed",top:D?d.y??0:0,left:D?d.x??0:0,display:D?"block":"none",transform:"none",opacity:0}}),b.jsxs(a,{className:Pe("column-menu",ji.columnMenu),style:{position:"fixed",top:D?d.y??0:0,left:D?d.x??0:0,zIndex:9999,display:D?"block":"none",transform:"none"},onClick:T,children:[$!=="right"&&e.column.getCanPin()&&!R?b.jsx(o,{className:Pe(ji.columnMenuItem,{[ji.danger]:$}),onClick:()=>e.column.pin($==="left"?!1:"left"),children:$==="left"?u.columnUnpin:u.columnPinLeft}):null,$!=="left"&&e.column.getCanPin()&&!R?b.jsx(o,{className:Pe(ji.columnMenuItem,{[ji.danger]:$}),onClick:()=>e.column.pin($==="right"?!1:"right"),children:$==="right"?u.columnUnpin:u.columnPinRight}):null,e.column.getCanGroup()?b.jsx(o,{className:Pe(ji.columnMenuItem,{[ji.danger]:M}),onClick:e.column.getToggleGroupingHandler(),children:M?u.columnUngroup:u.columnGroup}):null,e.column.getCanHide()&&((A=e.column.columnDef.meta)==null?void 0:A.hidden)!==!0?b.jsx(o,{className:Pe(ji.columnMenuItem),onClick:()=>e.column.toggleVisibility(),children:u.columnHide}):null]})]}),document.body),e.isPlaceholder?null:b.jsxs("div",{children:[b.jsxs("div",{className:E(e.getContext()),role:x(e.getContext()),onClick:e.column.getToggleSortingHandler(),children:[b.jsxs("div",{className:Pe("content",Ue.content),children:[h?b.jsx("div",{...g,...m,className:Pe("reorder-handle",Ue.reorderHandle,{dragging:w,[Ue.dragging]:w}),children:b.jsx(r,{icon:"drag-handle"})}):null,y3(e.column.columnDef.header,e.getContext())]}),e.column.getCanSort()&&e.column.getIsSorted()?b.jsx(r,{className:"sort-icon",icon:`sort-${e.column.getIsSorted()||"asc"}`}):null]}),e.column.getCanFilter()?b.jsx(DP,{CheckComponent:c,column:e.column,DropdownMenuComponent:i,DropdownMenuContentComponent:a,DropdownMenuItemComponent:o,DropdownTriggerComponent:s,IconComponent:r,InputComponent:l,texts:u}):e.column.id==="select-col"?b.jsx("div",{className:Pe("row-selection-info",Ue.rowSelectionInfo),children:`[${Object.values(t.getState().rowSelection).filter(Boolean).length}]`}):null]}),e.column.getCanResize()?b.jsx("div",{onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:Pe("resizer",Ue.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?Ue.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:Pe("resizer-bar",Ue.resizerBar)})}):null]})},$y=e=>{var n,r,i,a,o;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((a=t==null?void 0:t.props)==null?void 0:a.children)=="string"?(o=t==null?void 0:t.props)==null?void 0:o.children:e==null?void 0:e.id},pB="_columns-dropdown_ot346_1",mB="_columns-dropdown-menu_ot346_35",gB="_dropdown-menu-item_ot346_42",vB="_search-item_ot346_45",bB="_search-input_ot346_49",Eo={columnsDropdown:pB,columnsDropdownMenu:mB,dropdownMenuItem:gB,searchItem:vB,searchInput:bB},yB=({triggerText:e,columns:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,CheckComponent:o,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]),b.jsxs(r,{onToggleOpen:y=>h(y),children:[b.jsx(s,{className:Pe("columns-dropdown",Eo.columnsDropdown),id:"column-visibility-dropdown",ref:u,children:e}),b.jsxs(i,{className:Pe("columns-dropdown-menu",Eo.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:[b.jsx(a,{className:Pe("search-item",Eo.dropdownMenuItem,Eo.searchItem),onClick:y=>{y.preventDefault(),y.stopPropagation()},children:b.jsx(n,{className:Eo.searchInput,ref:d,size:"sm",type:"search",value:l,onChange:y=>c(y.target.value??"")})}),t.filter(y=>l?ps($y(y).toLowerCase()).includes(ps(l.toLowerCase())):!0).map(y=>b.jsx(a,{className:Pe(Eo.dropdownMenuItem),onClick:_=>{_.preventDefault(),_.stopPropagation(),y.toggleVisibility()},children:b.jsx(o,{checked:y.getIsVisible(),label:$y(y),onChange:()=>{}})},y.id))]})]})},xB="_modal_13qph_1",wB="_modal-body_13qph_1",_B="_settings-item_13qph_6",CB="_label_13qph_13",SB="_content_13qph_17",TB="_modal-footer_13qph_46",ii={modal:xB,modalBody:wB,settingsItem:_B,label:CB,content:SB,modalFooter:TB},kB=({show:e,handleClose:t,texts:n,pageSize:r,columns:i,ButtonComponent:a,resetToDefault:o,ModalComponent:s,ModalHeaderComponent:l,ModalTitleComponent:c,ModalBodyComponent:u,ModalFooterComponent:d,InputComponent:f,DropdownMenuComponent:h,DropdownTriggerComponent:p,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,CheckComponent:y})=>{const[_,w]=v.useState(r.value?r.value.toString():"");return v.useEffect(()=>{e&&w(r.value?r.value.toString():"")},[e,r.value]),b.jsxs(s,{className:Pe("tanstack-bnf-table-settings-modal",ii.modal),"data-testId":"settings-modal",show:e,onHide:t,children:[b.jsx(l,{closeButton:!0,children:b.jsx(c,{children:n==null?void 0:n.settingsModal.title})}),b.jsxs(u,{className:ii.modalBody,children:[r.enabled?b.jsxs("div",{className:ii.settingsItem,children:[b.jsx("div",{className:Pe(ii.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:Pe(ii.content),children:[b.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))}}),b.jsxs("datalist",{id:"pageSizes",children:[b.jsx("option",{value:"10"}),b.jsx("option",{value:"20"}),b.jsx("option",{value:"30"}),b.jsx("option",{value:"50"}),b.jsx("option",{value:"100"})]})]})]}):null,b.jsx("div",{children:b.jsxs("div",{className:Pe(ii.settingsItem),children:[b.jsx("div",{className:Pe("text-nowrap",ii.label),children:"Sloupce tabulky"}),b.jsx("div",{className:Pe("text-nowrap",ii.content),children:b.jsx(yB,{CheckComponent:y,columns:i.allColumns.filter(C=>{var x;return C.getCanHide()&&((x=C.columnDef.meta)==null?void 0:x.hidden)!==!0}),DropdownMenuComponent:h,DropdownMenuContentComponent:m,DropdownMenuItemComponent:g,DropdownTriggerComponent:p,InputComponent:f,triggerText:n==null?void 0:n.settingsModal.columnVisibility})})]})})]}),b.jsxs(d,{className:ii.modalFooter,children:[b.jsx(a,{variant:"outline-secondary",onClick:()=>{o(),t()},children:n==null?void 0:n.settingsModal.revertDefaultSettings}),b.jsx(a,{onClick:t,children:n==null?void 0:n.settingsModal.done})]})]})},$B=e=>e.type==="number"?"sum":"uniqueCount",EB=(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):y3(e,t)},MB=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):($B(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},OB=({ref:e,isLink:t,to:n,children:r,LinkComponent:i,onClick:a,onCellInteraction:o,...s})=>t&&n?b.jsx(i,{ref:e,to:n,onAuxClick:l=>{l.button===1&&(o==null||o())},onClick:()=>{a==null||a(),o==null||o()},onContextMenu:()=>{o==null||o()},...s,children:r}):b.jsx("div",{ref:e,onAuxClick:a||o?l=>{l.button===1&&(o==null||o())}:void 0,onClick:a||o?()=>{a==null||a(),o==null||o()}:void 0,onContextMenu:a||o?()=>{o==null||o()}:void 0,...s,children:r}),AB=({row:e,cell:t,className:n,rowClassName:r,style:i,IconComponent:a,IconButtonComponent:o,texts:s,formatters:l,LinkComponent:c,onRowClick:u,rowNavigation:d,onCellInteraction:f},h)=>{var g,y,_;const p=t.column.columnDef,m=v.useMemo(()=>{var w,C,x,S,E;if(!((w=p.meta)!=null&&w.disableCellClick)&&!t.getIsGrouped()&&!t.getIsAggregated()){if((C=p.meta)!=null&&C.onCellClick)return["onClickOwn",()=>{var k,T;return(T=(k=p.meta)==null?void 0:k.onCellClick)==null?void 0:T.call(k,e.original)}];if((x=p.meta)!=null&&x.cellNavigation){const k=(E=(S=p.meta)==null?void 0:S.cellNavigation)==null?void 0:E.call(S,e.original);if(k)return["navigateOwn",k]}if(u)return["onClick",()=>u==null?void 0:u(e.original)];if(d){const k=d==null?void 0:d(e.original);if(k)return["navigate",k]}}},[p,e,u,d,t]);return b.jsxs(OB,{className:Pe((w=>{var k,T,D,$,M,R,I;const C=((k=p==null?void 0:p.meta)==null?void 0:k.alignment)??"left",x=w.column.getIsSorted(),S=w.cell.getIsGrouped(),E=w.row.getIsExpanded();return Pe("td",Ue.td,{[Ue.left]:C==="left",[Ue.center]:C==="center",[Ue.right]:C==="right"||p.type==="number"&&((T=p.numericMeta)==null?void 0:T.noFormatting)!==!0},{sorted:x,[Ue.sorted]:x},{grouped:S,[Ue.grouped]:S},{expanded:E,[Ue.expanded]:E},{clickable:!!m,[Ue.clickable]:!!m},{"own-click":(D=m==null?void 0:m[0])==null?void 0:D.endsWith("Own"),[Ue.ownClick]:($=m==null?void 0:m[0])==null?void 0:$.endsWith("Own")},r,(M=p.meta)==null?void 0:M.className,(I=(R=p.meta)==null?void 0:R.rowClassName)==null?void 0:I.call(R,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:(y=m==null?void 0:m[0])!=null&&y.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()?b.jsx(o,{className:Pe("expander-button",Ue.expanderButton),size:"sm",onClick:w=>{w.stopPropagation(),e.getToggleExpandedHandler()()},children:b.jsx(a,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?MB(t.column.columnDef,t.getContext(),s):t.getIsPlaceholder()?null:EB(t.column.columnDef.cell,t.getContext(),l)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},RB=v.forwardRef(AB),DB=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],Ey=new Map(DB),IB=(e,t,n,r,i,a)=>{const o=v.useState([0,0]),[s,l]=(e==null?void 0:e.cellSelectionState)??o,[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:y})=>{u(g),f(y)},m=v.useCallback(g=>{if(e!=null&&e.disabled)return;const y=g.target;if(!(["INPUT","TEXTAREA"].includes(y.tagName)||y.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]+Ey.get(g.code)[0],0),t.size-1),Math.min(Math.max(_[1]+Ey.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(y=>y[1]===c);l(y=>[g,y[1]])},[c,l,t]),v.useEffect(()=>{if(d===void 0)return;f(void 0);const g=n.findIndex(y=>y.index===d);if(l(y=>[y[0],g]),r!==void 0){const y=Math.floor(g/r);i(y)}},[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=a.current)==null||g.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"})},[a,s]),v.useEffect(()=>{var y;if((e==null?void 0:e.onCellSelect)===void 0)return;if(((y=n[s[1]])==null?void 0:y.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}},jB=e=>{const t=v.useRef([]),n=(r,i)=>{var a;t.current[i]=r,r&&(r.style.transform=`translateY(${((a=e.current)==null?void 0:a.scrollTop)??0}px)`)};return v.useEffect(()=>{const r=e.current;if(!r)return;const i=()=>{const a=r.scrollTop;for(const o of t.current)o&&(o.style.transform=`translateY(${a}px)`)};return r.addEventListener("scroll",i),()=>r.removeEventListener("scroll",i)},[e]),{registerSticky:n}},NB=e=>{let{transform:t}=e;return{...t,y:0}},PB=({table:e,additionalOptions:t,IconComponent:n,ButtonComponent:r,IconButtonComponent:i,DropdownMenuComponent:a,DropdownTriggerComponent:o,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,InputComponent:c,ModalComponent:u,ModalHeaderComponent:d,ModalTitleComponent:f,ModalBodyComponent:h,ModalFooterComponent:p,texts:m,formatters:g,bottomBar:y,testId:_,LinkComponent:w,className:C,rowsClassName:x,onRowClick:S,rowNavigation:E,onCellInteraction:k,cellSelection:T,getRowProps:D,UI:{CheckComponent:$}},M)=>{var oe,be,ce,ue,Ce,ke,ye,Me,pe;const R={boolean:me=>hP(me,n),date:pP,datetime:mP,number:gP,...g},[I,j]=v.useState(!1),A=t.isPaginated,O=BL(xp(R3,{}),xp(D3,{}),xp(z0,{})),L=e.getState().columnOrder,F=me=>{const{active:fe,over:je}=me;fe&&je&&fe.id!==je.id&&e.setColumnOrder(qe=>{const xt=qe.indexOf(fe.id),Te=qe.indexOf(je.id);return xt===-1||Te===-1?qe:U0(qe,xt,Te)})},[P,W]=v.useState(null),H=me=>{W(me)},q=me=>{if(!me.getCanPin())return"";const fe=me.getIsPinned(),je=fe==="right"&&me.getIsFirstColumn("right"),qe=fe==="left"&&me.getIsLastColumn("left");return Pe({pinned:fe,[Ue.pinned]:fe,"first-right":je,[Ue.firstRight]:je,"last-left":qe,[Ue.lastLeft]:qe})},Z=me=>{if(!me.getCanPin())return{};const fe=me.getIsPinned();return{left:fe==="left"?`${me.getStart("left")}px`:void 0,right:fe==="right"?`${me.getAfter("right")}px`:void 0}},K=e.getState().sorting;v.useEffect(()=>{var me,fe;if(K.length>0){const je=K[0];if((me=document.activeElement)!=null&&me.classList.contains("filter"))return;(fe=document.getElementById(`filter-${je.id}`))==null||fe.focus()}},[K]);const te=e.getPrePaginationRowModel().rows,ne=new Map(e.getVisibleLeafColumns().map((me,fe)=>[fe,me.id])),U=v.useRef(null),{selectedCoords:B,changeSelectedCoords:z,setSelectedCellByFNDI:V}=IB(T,ne,te,A?((oe=e.getState().pagination)==null?void 0:oe.pageSize)??0:void 0,e.setPageIndex,U);v.useImperativeHandle(M,()=>({setSelectedCell:V}));const N=me=>{var fe;return T!=null&&T.onlyRowSelection&&((fe=te[B[1]])==null?void 0:fe.index)===me.index?Pe(Ue.cellSelectedRow,"cell-selected-row",{[Ue.cellSelectionDisabled]:T.disabled}):""},ee=(me,fe)=>{var je;return(T==null?void 0:T.onCellSelect)===void 0||B[0]!==me||((je=te[B[1]])==null?void 0:je.index)!==fe||T.onlyRowSelection?"":T.disabled?"bg-primary-subtle":Pe("selected-cell",Ue.selectedCell)},Q=t.fullScreen.canFullScreen?((be=t.fullScreen)==null?void 0:be.isFullScreen)??!1:!1,X=(ce=t.sizing)!=null&&ce.canSize?((ue=t.sizing)==null?void 0:ue.size)??"md":"md",se=e.getState().columnFilters,G=v.useRef(null),{registerSticky:J}=jB(G),ie=(me,fe,je)=>{var qe;return b.jsx("div",{className:Pe("tr",Ue.tr,N(me),{pinned:me.getIsPinned()!==!1,[Ue.pinned]:me.getIsPinned()!==!1},D?(qe=D(me.original))==null?void 0:qe.className:null),role:"data-row",...D?D(me.original):{},ref:je!==void 0?xt=>J(xt,je):void 0,children:me.getVisibleCells().map((xt,Te)=>{var Ie;return b.jsx(RB,{cell:xt,className:Pe(q(xt.column),ee(Te,me.index)),formatters:R,IconButtonComponent:i,IconComponent:n,LinkComponent:w,ref:(T==null?void 0:T.onCellSelect)!==void 0&&B[0]===Te&&((Ie=te[B[1]])==null?void 0:Ie.index)===me.index?U:null,row:me,rowClassName:Pe(...(x==null?void 0:x.filter(at=>at.selector(me.original)).map(at=>at.className))??[]),rowNavigation:E,style:Z(xt.column),texts:m,onCellInteraction:(T==null?void 0:T.onCellSelect)===void 0?k:at=>{var He,mt;z([Te,((He=e.getState().pagination)==null?void 0:He.pageIndex)*((mt=e.getState().pagination)==null?void 0:mt.pageSize)+fe]),k==null||k(at)},onRowClick:S},xt.id)})},me.id)};return b.jsx(WF,{collisionDetection:VL,modifiers:[NB],sensors:O,onDragEnd:F,children:b.jsxs("div",{className:Pe("tanstack-bnf-table-container",Ue.tableScrollContainer,{"full-screen":Q,[Ue.fullScreen]:Q}),ref:G,children:[se&&se.length>0?b.jsx("div",{className:Pe("remove-filters-button-wrapper",Ue.removeFiltersButtonWrapper),children:b.jsxs("button",{className:Pe(Ue.removeFiltersButton,"remove-filters-button"),type:"button",onClick:()=>e.resetColumnFilters(),children:[b.jsx(n,{icon:"remove-filters"}),(m==null?void 0:m.removeFilters)??"Zrušit filtry"]})}):null,b.jsxs("div",{className:Pe("tanstack-bnf-table",Ue.table,{sm:X==="sm",lg:X==="lg",[Ue.sm]:X==="sm",[Ue.lg]:X==="lg"},C),"data-testid":_,children:[b.jsx("div",{className:Pe("thead",Ue.thead),children:e.getHeaderGroups().map(me=>b.jsx("div",{className:Pe("tr",Ue.tr),children:b.jsx(tB,{items:L,strategy:QF,children:me.headers.map(fe=>{var je,qe;return b.jsx(hB,{CheckComponent:$,className:q(fe.column),columnMenuPos:P,dragEnabled:t.enableReordering&&((qe=(je=fe.column.columnDef)==null?void 0:je.meta)==null?void 0:qe.enableReordering)!==!1,DropdownMenuComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:o,header:fe,IconComponent:n,InputComponent:c,style:Z(fe.column),table:e,texts:m,onColumnMenu:H},fe.id)})})},me.id))}),b.jsxs("div",{className:Pe("tbody",Ue.tbody),children:[(((ke=(Ce=e.options)==null?void 0:Ce.data)==null?void 0:ke.length)??0)===0?b.jsx("div",{className:Pe("empty-table-alert",Ue.emptyTableAlert),children:m.emptyTable}):null,e.getTopRows().map((me,fe)=>ie(me,fe,fe)),e.getCenterRows().map((me,fe)=>ie(me,fe))]}),b.jsx(kB,{ButtonComponent:r,CheckComponent:$,columns:{allColumns:e.getAllColumns()},DropdownMenuComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:o,handleClose:()=>j(!1),IconComponent:n,InputComponent:c,ModalBodyComponent:h,ModalComponent:u,ModalFooterComponent:p,ModalHeaderComponent:d,ModalTitleComponent:f,pageSize:{enabled:A,value:((ye=e.getState().pagination)==null?void 0:ye.pageSize)??0,onChange:me=>e.setPageSize(me)},resetToDefault:t.resetToInitialValues,show:I,texts:m})]}),y!=null&&y.hidden?null:b.jsxs("div",{className:Pe("bottom-bar",Ue.bottomBar),children:[b.jsxs("div",{className:Pe("left-items",Ue.leftItems),children:[A?b.jsxs("div",{className:Pe("pagination",Ue.pagination),children:[b.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.firstPage(),children:b.jsx(n,{icon:"page-first"})}),b.jsx(i,{disabled:!e.getCanPreviousPage(),onClick:()=>e.previousPage(),children:b.jsx(n,{icon:"page-previous"})}),b.jsx("div",{className:Pe("page-info-text",Ue.pageInfoText),children:m.pagination.infoText(e.getState().pagination.pageIndex+1,e.getPageCount())}),b.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.nextPage(),children:b.jsx(n,{icon:"page-next"})}),b.jsx(i,{disabled:!e.getCanNextPage(),onClick:()=>e.lastPage(),children:b.jsx(n,{icon:"page-last"})})]}):null,b.jsx("div",{className:Pe("row-count-text",Ue.rowCountText),children:m.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:Pe("right-items",Ue.rightItems),children:[(Me=t.fullScreen)!=null&&Me.canFullScreen?b.jsx(i,{color:t.fullScreen.isFullScreen?"danger":"primary","data-testId":"table-fullscreen-button",onClick:()=>t.fullScreen.toggleFullScreen(),children:b.jsx(n,{icon:t.fullScreen.isFullScreen?"fullscreen-exit":"fullscreen"})}):null,(pe=t.sizing)!=null&&pe.canSize?b.jsxs(a,{drop:"up",children:[b.jsx(o,{id:"table-sizing-button",children:b.jsx(n,{icon:"density"})}),b.jsxs(s,{className:Pe("shadow-lg sizing-menu",Ue.sizingMenu),children:[b.jsxs(l,{className:Pe("sizing-menu-item",Ue.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[X==="sm"?b.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.sm]}),b.jsxs(l,{className:Pe("sizing-menu-item",Ue.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[X==="md"?b.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.md]}),b.jsxs(l,{className:Pe("sizing-menu-item",Ue.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[X==="lg"?b.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.lg]})]})]}):null,t.excelExport.canExport?b.jsx(i,{"data-testId":"table-excel-export-button",onClick:()=>t.excelExport.onExport(m),children:b.jsx(n,{icon:"excel-export"})}):null,b.jsx(i,{"data-testId":"table-settings-button",onClick:()=>j(!0),children:b.jsx(n,{icon:"settings"})})]})]})]})})};v.forwardRef(PB);const LB=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),W3=()=>{const e=IP();return{accessor:(t,n)=>{const r=i=>LB(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function FB(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 BB(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 zB(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 WB(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 UB(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 HB(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 VB="_excel_18ggp_1",qB="_word_18ggp_5",YB="_pdf_18ggp_9",GB="_image_18ggp_13",yu={excel:VB,word:qB,pdf:YB,image:GB},U3=e=>{const t=De.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 a;t[4]!==n?(a=le(n,yu.image),t[4]=n,t[5]=a):a=t[5];let o;t[6]!==i?(o=b.jsx(BB,{...i}),t[6]=i,t[7]=o):o=t[7];let s;return t[8]!==a||t[9]!==o?(s=b.jsx("span",{className:a,children:o}),t[8]=a,t[9]=o,t[10]=s):s=t[10],s}case"XLS":case"XLSX":case"CSV":{let a;t[11]!==n?(a=le(n,yu.excel),t[11]=n,t[12]=a):a=t[12];let o;return t[13]!==i||t[14]!==a?(o=b.jsx(UB,{className:a,...i}),t[13]=i,t[14]=a,t[15]=o):o=t[15],o}case"DOC":case"DOCM":case"DOCX":{let a;t[16]!==n?(a=le(n,yu.word),t[16]=n,t[17]=a):a=t[17];let o;return t[18]!==i||t[19]!==a?(o=b.jsx(HB,{className:a,...i}),t[18]=i,t[19]=a,t[20]=o):o=t[20],o}case"PDF":{let a;t[21]!==n?(a=le(n,yu.pdf),t[21]=n,t[22]=a):a=t[22];let o;return t[23]!==i||t[24]!==a?(o=b.jsx(iI,{className:a,...i}),t[23]=i,t[24]=a,t[25]=o):o=t[25],o}default:{let a;return t[26]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx(FB,{}),t[26]=a):a=t[26],a}}},ZB=()=>{const e=De.c(50),{ProjectIconComponent:t,texts:n}=v.useContext(Qt),{documents:r}=n,{apiActions:i,reducer:a}=v.useContext(gn),{downloadFile:o}=i,[s]=a,l=s.activeFolder==="root";let c;e[0]!==o?(c=(M,R,I)=>M?z4(R??"")&&localStorage.getItem("file-download-try-opening")!=="false"?b.jsx("span",{role:"button",className:"link link-primary d-flex align-items-center",onClick:A=>{A.stopPropagation(),o(I,!0)},children:M}):M:"",e[0]=o,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=W3(),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:M=>{const R=M.row.getValue("fileExtension"),I=M.row.getValue("id");return u(b.jsx(U3,{fileExtension:(R==null?void 0:R.toString())??"",className:Lm.extensionIcon,size:18}),(R==null?void 0:R.toString())??"",Number((I==null?void 0:I.toString())??""))}}}),e[7]=u,e[8]=m):m=e[8];let g;if(e[9]!==r.name||e[10]!==u){let M;e[12]!==u?(M=R=>{const I=R.row.getValue("name"),j=R.row.getValue("fileExtension"),A=R.row.getValue("id");return u((I==null?void 0:I.toString())??"",(j==null?void 0:j.toString())??"",Number((A==null?void 0:A.toString())??""))},e[12]=u,e[13]=M):M=e[13],g=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:M}}),e[9]=r.name,e[10]=u,e[11]=g}else g=e[11];let y;e[14]!==r.description?(y=f.accessor("description",{header:r.description,type:"string"}),e[14]=r.description,e[15]=y):y=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]!==o?(w=f.accessor("--downloadButton",{header:"",type:"number",size:38,enableSorting:!1,meta:{alignment:"center",filterVariant:"none",customCellRender:M=>{const R=M.row.getValue("id");return b.jsx(gf,{className:Lm.downloadButton,onClick:()=>o(Number((R==null?void 0:R.toString())??""),!1),children:b.jsx(t,{icon:"file-download",size:18})})}}}),e[18]=t,e[19]=o,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 x;e[23]!==r.validSince?(x=f.accessor("validToDate",{header:r.validSince,type:"date"}),e[23]=r.validSince,e[24]=x):x=e[24];let S;e[25]!==r.expirationDate?(S=f.accessor("expirationDate",{header:r.expirationDate,type:"date"}),e[25]=r.expirationDate,e[26]=S):S=e[26];let E;e[27]!==r.size?(E=f.accessor("size",{header:r.size,type:"number",meta:{filterVariant:"none",customCellRender:KB}}),e[27]=r.size,e[28]=E):E=e[28];let k;if(e[29]!==r.archived||e[30]!==r.no||e[31]!==r.yes){let M;e[33]!==r.no||e[34]!==r.yes?(M=R=>R.getValue()?r.yes[0]:r.no[0],e[33]=r.no,e[34]=r.yes,e[35]=M):M=e[35],k=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:M}}),e[29]=r.archived,e[30]=r.no,e[31]=r.yes,e[32]=k}else k=e[32];let T;e[36]!==_||e[37]!==w||e[38]!==C||e[39]!==x||e[40]!==S||e[41]!==E||e[42]!==k||e[43]!==p||e[44]!==m||e[45]!==g||e[46]!==y?(T=[h,...p,m,g,y,_,w,C,x,S,E,k],e[36]=_,e[37]=w,e[38]=C,e[39]=x,e[40]=S,e[41]=E,e[42]=k,e[43]=p,e[44]=m,e[45]=g,e[46]=y,e[47]=T):T=e[47];const D=T;let $;return e[48]!==D?($={columns:D},e[48]=D,e[49]=$):$=e[49],$};function KB(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?os(t*1024*1024):""}const XB=e=>{var M;const t=De.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:a}=v.useContext(gn),[o,s]=a,{columns:l}=ZB();let c;t[0]!==s?(c=R=>{s({type:"mark-files-by-action",setStateAction:R})},t[0]=s,t[1]=c):c=t[1];const u=c,d=o.activeFolder==="root";let f;e:{if(o.activeFolder==="root"){f=!1;break e}let R;t[2]!==o.activeFolder||t[3]!==o.foldersMap?(R=((M=o.foldersMap.get(o.activeFolder))==null?void 0:M.onlyRead)??!1,t[2]=o.activeFolder,t[3]=o.foldersMap,t[4]=R):R=t[4],f=R}const h=f,p=i&&!d;let m;t[5]!==o.markedFiles?(m=Object.fromEntries(o.markedFiles.map(JB)),t[5]=o.markedFiles,t[6]=m):m=t[6];let g;t[7]!==u?(g=R=>{const I=Object.keys(R).filter(j=>R[j]).map(QB);u(I)},t[7]=u,t[8]=g):g=t[8];let y;t[9]!==p||t[10]!==m||t[11]!==g?(y={enabled:p,selectedRows:m,setSelectedRows:g},t[9]=p,t[10]=m,t[11]=g,t[12]=y):y=t[12];const _=y;let w;e:{if(o.activeFolder==="root"){w=o.filteredFiles;break e}let R;if(t[13]!==o.activeFolder||t[14]!==o.filteredFiles){let I;t[16]!==o.activeFolder?(I=j=>j.folderId===o.activeFolder,t[16]=o.activeFolder,t[17]=I):I=t[17],R=o.filteredFiles.filter(I),t[13]=o.activeFolder,t[14]=o.filteredFiles,t[15]=R}else R=t[15];w=R}const C=w,{getDraggableProps:x}=R0();let S;t[18]!==x||t[19]!==h||t[20]!==i?(S=R=>i===!1||h?{}:x(R.id),t[18]=x,t[19]=h,t[20]=i,t[21]=S):S=t[21];const E=S;console.log("rowSelection.selectedRows",_.selectedRows);let k;t[22]===Symbol.for("react.memo_cache_sentinel")?(k=le(Lm.wrapper),t[22]=k):k=t[22];let T;t[23]===Symbol.for("react.memo_cache_sentinel")?(T={columnFilters:[{id:"archive",value:"false"}]},t[23]=T):T=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D={hidden:!0},t[24]=D):D=t[24];let $;return t[25]!==n||t[26]!==l||t[27]!==C||t[28]!==E||t[29]!==_||t[30]!==o.activeFolder||t[31]!==r?($=b.jsx("div",{className:k,children:b.jsx(n,{data:C,columns:l,rowSelection:_,getRowProps:E,initState:T,tableId:r,bottomBar:D,getRowId:ez},o.activeFolder)}),t[25]=n,t[26]=l,t[27]=C,t[28]=E,t[29]=_,t[30]=o.activeFolder,t[31]=r,t[32]=$):$=t[32],$};function JB(e){return[e.toString(),!0]}function QB(e){return Number(e)}function ez(e){var t;return((t=e.id)==null?void 0:t.toString())??""}const tz="_wrapper_1q562_1",nz="_divButtons_1q562_10",Sp={wrapper:tz,divButtons:nz},rz="_wrapper_1bpdd_1",iz="_fileInput_1bpdd_5",My={wrapper:rz,fileInput:iz},az=e=>{const t=De.c(17),{entityId:n,entityType:r,children:i,disabled:a}=e,o=v.useRef(null),[s,l]=v.useState(null),{reducer:c}=v.useContext(gn),[u]=c;let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=E=>{var k;(((k=E.target.files)==null?void 0:k.length)??0)>0&&l(E.target.files)},t[0]=d):d=t[0];const f=d;let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{l(null),o.current&&(o.current.value="")},t[1]=h):h=t[1];const p=h,m=`documents-upload-${r}-${n}`,g=a||u.activeFolder==="root",y=g?"disabled":void 0;let _;t[2]!==y?(_=le("btn btn-context luminus-context-button",y),t[2]=y,t[3]=_):_=t[3];let w;t[4]!==i||t[5]!==m||t[6]!==_?(w=b.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=b.jsx("input",{id:m,type:"file",multiple:!0,onChange:f,className:My.fileInput,ref:o,disabled:g}),t[8]=m,t[9]=g,t[10]=C):C=t[10];let x;t[11]!==s?(x=s!==null?b.jsx(D0,{handleClose:p,files:s}):void 0,t[11]=s,t[12]=x):x=t[12];let S;return t[13]!==w||t[14]!==C||t[15]!==x?(S=b.jsxs("div",{className:My.wrapper,children:[w,C,x]}),t[13]=w,t[14]=C,t[15]=x,t[16]=S):S=t[16],S},jr=e=>{const t=De.c(5),{children:n,onClick:r,className:i,disabled:a}=e,o=a===void 0?!1:a;let s;return t[0]!==n||t[1]!==i||t[2]!==o||t[3]!==r?(s=b.jsx(gf,{onClick:r,className:i,disabled:o,children:n}),t[0]=n,t[1]=i,t[2]=o,t[3]=r,t[4]=s):s=t[4],s},oz=e=>{var P,W,H;const t=De.c(51),{className:n,entityId:r,entityType:i}=e,{texts:a}=v.useContext(Qt),{documents:o}=a,{prompt:s}=v4(),{confirm:l}=y0(),{apiActions:c,reducer:u}=v.useContext(gn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:m,archivateFiles:g,deleteDirectory:y}=c,{renameFolder:_}=QC(),w=d.markedFiles.length===0,C=d.markedFiles.length===1;let x;t[0]!==o.enterNewFolderName||t[1]!==s||t[2]!==_||t[3]!==d.activeFolder?(x=async()=>{if(d.activeFolder==="root")return;const q=await s(o.enterNewFolderName,{input:"input"});q!==null&&_(d.activeFolder,q)},t[0]=o.enterNewFolderName,t[1]=s,t[2]=_,t[3]=d.activeFolder,t[4]=x):x=t[4];const S=x;let E;t[5]!==o.enterNewFileName||t[6]!==s||t[7]!==p||t[8]!==d.activeFolder?(E=async()=>{if(d.activeFolder==="root")return;const q=await s(o.enterNewFileName,{input:"input"});q!==null&&p(q)},t[5]=o.enterNewFileName,t[6]=s,t[7]=p,t[8]=d.activeFolder,t[9]=E):E=t[9];const k=E,T=d.activeFolder==="root";let D;e:{if(d.activeFolder==="root"){D=!1;break e}let q;t[10]!==d.activeFolder||t[11]!==d.foldersMap?(q=((P=d.foldersMap.get(d.activeFolder))==null?void 0:P.onlyRead)??!1,t[10]=d.activeFolder,t[11]=d.foldersMap,t[12]=q):q=t[12],D=q}const $=D;let M;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let q;t[16]!==d.constantFiles?(q=Z=>{var K;return((K=d.constantFiles.find(te=>te.id===Z))==null?void 0:K.archive)===!1},t[16]=d.constantFiles,t[17]=q):q=t[17],M=d.markedFiles.every(q),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=M}else M=t[15];const R=M;let I;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let q;t[21]!==d.constantFiles?(q=Z=>{var K;return((K=d.constantFiles.find(te=>te.id===Z))==null?void 0:K.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,A=d.state==="folder-choosing"?"ignore-dim":void 0;let O;t[23]!==n||t[24]!==A?(O=le(n,Sp.wrapper,A,"d-flex justify-content-between"),t[23]=n,t[24]=A,t[25]=O):O=t[25];let L;t[26]!==R||t[27]!==g||t[28]!==l||t[29]!==j||t[30]!==y||t[31]!==h||t[32]!==f||t[33]!==o||t[34]!==m||t[35]!==r||t[36]!==i||t[37]!==k||t[38]!==S||t[39]!==w||t[40]!==C||t[41]!==$||t[42]!==T||t[43]!==d.activeFolder||t[44]!==d.foldersMap||t[45]!==d.markedFiles||t[46]!==d.state?(L=d.state!=="folder-choosing"?b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:Sp.divButtons,children:[b.jsx(az,{entityId:r,entityType:i,disabled:$,children:o.uploadFiles}),b.jsx(jr,{onClick:()=>{f({type:"open-modal",modalType:"create-folder",chosenFolderId:d.activeFolder??"root"})},disabled:$,children:o.createFolder}),b.jsx(jr,{disabled:d.activeFolder==="root"||((W=d.foldersMap.get(d.activeFolder))==null?void 0:W.isDefault),onClick:async()=>{var Z;await l(`${o.deleteFolder} ${(Z=d.foldersMap.get(d.activeFolder))==null?void 0:Z.name}?`)&&y(d.activeFolder)},children:o.deleteFolder}),b.jsx(jr,{disabled:d.activeFolder==="root"||((H=d.foldersMap.get(d.activeFolder))==null?void 0:H.isDefault),onClick:S,children:o.renameFolder})]}),!T&&!$?b.jsxs("div",{className:Sp.divButtons,children:[b.jsx(jr,{onClick:()=>{f({type:"open-modal",modalType:"edit-file-properties"})},disabled:!C,children:o.editFileProperties}),b.jsx(jr,{onClick:async()=>{await l(o.confirmDeleteFile(d.markedFiles.length))&&h(d.markedFiles)},disabled:w,children:o.delete}),j?b.jsx(jr,{onClick:async()=>{await l(o.confirmDearchiveFile(d.markedFiles.length))&&await g(!0)},disabled:w,children:o.dearchivate}):b.jsx(jr,{onClick:async()=>{await l(o.confirmArchiveFile(d.markedFiles.length))&&await g()},disabled:w||!R,children:o.archivate}),b.jsx(jr,{onClick:k,disabled:w,children:o.rename}),b.jsx(jr,{onClick:m,disabled:w,children:o.downloadZip})]}):null]}):d.state==="folder-choosing"?b.jsx(b.Fragment,{children:b.jsx(jr,{onClick:()=>f({type:"return-from-folder-choosing"}),className:le("ignore-dim","body-background-color"),children:o.back})}):void 0,t[26]=R,t[27]=g,t[28]=l,t[29]=j,t[30]=y,t[31]=h,t[32]=f,t[33]=o,t[34]=m,t[35]=r,t[36]=i,t[37]=k,t[38]=S,t[39]=w,t[40]=C,t[41]=$,t[42]=T,t[43]=d.activeFolder,t[44]=d.foldersMap,t[45]=d.markedFiles,t[46]=d.state,t[47]=L):L=t[47];let F;return t[48]!==L||t[49]!==O?(F=b.jsx("div",{className:O,children:L}),t[48]=L,t[49]=O,t[50]=F):F=t[50],F},sz=e=>{const t=De.c(25),{file:n}=e,{confirm:r}=y0(),{reducer:i,apiActions:a}=v.useContext(gn),[o]=i,{downloadFile:s}=a,{texts:l}=v.useContext(Qt),{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:os(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]!==o.foldersMap?(f=r3(n.folderId,o.foldersMap),t[7]=n.folderId,t[8]=o.foldersMap,t[9]=f):f=t[9];let h;t[10]!==f?(h=b.jsx(mn,{variant:"body",className:"text-muted",children:f}),t[10]=f,t[11]=h):h=t[11];let p;t[12]!==n.name?(p=b.jsx(mn,{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:os(n.size*1024*1024),t[14]=n.size,t[15]=m):m=t[15];let g;t[16]!==m?(g=b.jsx(mn,{variant:"body",children:m}),t[16]=m,t[17]=g):g=t[17];let y;t[18]!==p||t[19]!==g?(y=b.jsxs("div",{className:"d-flex justify-content-between gap-2",children:[p,g]}),t[18]=p,t[19]=g,t[20]=y):y=t[20];let _;return t[21]!==d||t[22]!==y||t[23]!==h?(_=b.jsxs(tf,{action:!0,onClick:d,children:[h,y]}),t[21]=d,t[22]=y,t[23]=h,t[24]=_):_=t[24],_},lz="_typeSelect_m3myk_1",cz={typeSelect:lz},uz=()=>{const e=De.c(34),{reducer:t}=v.useContext(gn),[n]=t,{texts:r}=v.useContext(Qt),{documents:i}=r,[a,o]=v.useState(""),[s,l]=v.useState(null);let c;e[0]!==n.filteredFiles?(c=new Map,n.filteredFiles.forEach(k=>{c.get(k.documentTypeId)===void 0&&c.set(k.documentTypeId,k.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(dz),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]!==a||e[10]!==s||e[11]!==n.filteredFiles){let k;e[13]!==a||e[14]!==s?(k=T=>sf(T.name,a)&&(s===null||T.documentTypeId===s),e[13]=a,e[14]=s,e[15]=k):k=e[15],m=n.filteredFiles.filter(k),e[9]=a,e[10]=s,e[11]=n.filteredFiles,e[12]=m}else m=e[12];const g=m;let y;e[16]!==i.documentType||e[17]!==p||e[18]!==s?(y=b.jsx(FC,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:cz.typeSelect}),e[16]=i.documentType,e[17]=p,e[18]=s,e[19]=y):y=e[19];let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=k=>o(k===null?"":k),e[20]=_):_=e[20];let w;e[21]!==i.search||e[22]!==a?(w=b.jsx(LC,{label:i.search,type:"text",value:a,onChange:_,className:"flex-grow-1",size:"sm"}),e[21]=i.search,e[22]=a,e[23]=w):w=e[23];let C;e[24]!==y||e[25]!==w?(C=b.jsxs("div",{className:"d-flex gap-1 mb-1",children:[y,w]}),e[24]=y,e[25]=w,e[26]=C):C=e[26];let x;e[27]!==g?(x=g.map(fz),e[27]=g,e[28]=x):x=e[28];let S;e[29]!==x?(S=b.jsx(H_,{className:"overflow-y-auto",children:x}),e[29]=x,e[30]=S):S=e[30];let E;return e[31]!==S||e[32]!==C?(E=b.jsxs("div",{className:"d-flex h-100 flex-column",children:[C,S]}),e[31]=S,e[32]=C,e[33]=E):E=e[33],E};function dz(e){return{id:e[0],name:e[1]}}function fz(e){return b.jsx(sz,{file:e},e.id)}function hz(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function pz(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,hz(i)),i.parentId===null?t.push(i.id):r.set(i.id,i.parentId)}),r.forEach((i,a)=>{const o=n.get(i);if(o===void 0)throw new Error(`Did not get folder with ID ${i}, which is supposed to be parent directory of folder with ID ${a}`);o.childrenIds.push(a)}),{dirsMap:n,rootIds:t}}function Oy(e,t){const n=t.toUpperCase();return e.filter(r=>{var a;const i=(a=r.name)==null?void 0:a.toUpperCase();return i==null?void 0:i.includes(n)})}function mz(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const gz=([e,t],n,r)=>{const{texts:{documents:i}}=v.useContext(Qt),{startLoading:a,stopLoading:o}=v.useContext(Oc),{addNotification:s}=hf(),l=jc(),c=v.useCallback(async w=>{a("documentList");try{const x=(await l.get(`/documents/${n}/${r}`)).data,{dirsMap:S,rootIds:E}=pz(x.folders),k=mz(x.documents,S);t({type:"load-data",files:k,foldersMap:S,rootFolderIds:E,setActiveFolder:w})}finally{o("documentList")}},[l,t,r,n,a,o]);v.useEffect(()=>{c(!0)},[c]);const u=v.useCallback(async()=>{a("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{o("documents-types")}},[l,t,n,a,o]);v.useEffect(()=>{u()},[u]);const d=v.useCallback(async(w,C)=>{const x=C??e.markedFiles;a("documentsMove");try{await l.put(`/documents/move-to-folder?folderId=${w}`,x),t({type:"update-files",fileIds:x,newProperties:{folderId:w}}),s(i.fileMoveSuccessful(x.length,e.foldersMap.get(w).name),"success")}finally{o("documentsMove")}},[e.markedFiles,e.foldersMap,a,l,t,s,i,o]),f=v.useCallback(async w=>{const C=w??e.markedFiles;a("documentsFilesDelete");try{const x=await l.delete(`/documents/delete?${_m(C,"documentIds")}`);if(x.status!==200)throw new Error(`Unexpected status code: ${x.status}`);t({type:"delete-files",fileIds:C}),s(i.fileDeleteSuccessful(C.length),"success")}finally{o("documentsFilesDelete")}},[e.markedFiles,a,l,t,s,i,o]),h=v.useCallback(async w=>{var C;if(!(w==="root"||(C=e.foldersMap.get(w))!=null&&C.isDefault)){a("documentsFolderDelete");try{const x=await l.delete(`/documents/folder/${w}`);if(x.status!==200)throw new Error(`Unexpected status code: ${x.status}`);t({type:"delete-folder",folderId:w}),s(i.folderDeleteSuccessful(e.foldersMap.get(w).name),"success")}finally{o("documentsFolderDelete")}}},[e.foldersMap,a,l,t,s,i,o]),p=v.useCallback(async w=>{a("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{o("documentsRename")}},[a,l,e.markedFiles,c,o]),m=v.useCallback(async w=>{a("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{o("documents-archivate")}},[a,l,e.markedFiles,t,s,i.archivateSuccessful,i.dearchivateSuccessful,o]),g=v.useCallback(async()=>{var C;if(e.activeFolder==="root")return;const w=e.markedFiles.length;s(i.downloadAsZip(w),"info"),a("documents-ZIP_download");try{const x=await l.get(`/documents/download-zip?${_m(e.markedFiles,"documentIds")}`,{responseType:"blob"});rd(x.data,(((C=e.foldersMap.get(e.activeFolder))==null?void 0:C.name)??"")+"_files")}finally{o("documents-ZIP_download")}},[e.activeFolder,e.markedFiles,e.foldersMap,s,i,a,l,o]),y=v.useCallback(async(w,C)=>{s(i.downloadingFile,"info"),a("documents-downloading_file");try{const x=await l.get(`/documents/${w}?isSmall=true`,{responseType:"blob"}),S=e.constantFiles.find(k=>k.id===w),E=`${(S==null?void 0:S.name)??w.toString()}.${S!=null&&S.fileExtension?S==null?void 0:S.fileExtension.toLowerCase():"unknown"}`;rd(x.data,E,C)}finally{o("documents-downloading_file")}},[s,i.downloadingFile,a,l,e.constantFiles,o]),_=v.useCallback(async(w,C)=>{a("documents-upload"),s(i.uploadingDocuments,"info");try{await l.postForm("/documents/upload",{files:w,...C}),await c()}finally{o("documents-upload")}},[a,s,i.uploadingDocuments,l,c,o]);return{loadDocuments:c,moveDocuments:d,deleteFiles:f,deleteDirectory:h,renameFiles:p,archivateFiles:m,downloadAsZip:g,downloadFile:y,uploadFiles:_}},vz=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:Oy(t.files,e.searchString),foldersMap:t.foldersMap,rootFolderIds:t.rootFolderIds};if(t.setActiveFolder){const a=t.rootFolderIds.find(o=>t.files.some(s=>s.archive===!1&&s.folderId===o))??"root";i.activeFolder=a}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(a=>a!==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(a=>{i.set(a,{...e.foldersMap.get(a),...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),a=(n=i.get(t.folderId))==null?void 0:n.parentId;let o=[...e.rootFolderIds];if(a){const s=JSON.parse(JSON.stringify(i.get(a)));s.childrenIds=s.childrenIds.filter(l=>l!==t.folderId),i.set(a,s)}else o=o.filter(s=>s!==t.folderId);return i.delete(t.folderId),{...e,rootFolderIds:o,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(o=>o.id===t.folderData.documentTypeId))==null?void 0:r.name,childrenIds:[],parentId:t.folderData.parentFolderId,isDefault:!1,onlyRead:t.isOnlyRead});const a=[...e.rootFolderIds];if(t.folderData.parentFolderId===null)a.push(t.folderId);else{const o=i.get(t.folderData.parentFolderId),s=JSON.parse(JSON.stringify(o));s.childrenIds.push(t.folderId),i.set(t.folderData.parentFolderId,s)}return{...e,state:"explorer",rootFolderIds:a,foldersMap:i}}case"search-files":{const i=Oy(e.constantFiles,t.searchString);return{...e,searchString:t.searchString,filteredFiles:i,markedFiles:e.markedFiles.filter(a=>i.map(o=>o.id).includes(a))}}default:throw new Error("Wrong action.type specified.")}},bz=()=>{const e=De.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(vz,n);let a;return e[1]!==r?(a=[r,i],e[1]=r,e[2]=a):a=e[2],a},yz=v.memo(e=>{const t=De.c(89);let n,r,i,a,o,s,l,c,u;t[0]!==e?({entityType:o,entityId:a,className:r,BnfTableComponent:n,tableIdentifier:u,customRootFolderName:i,writePermissions:l,urls:c,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=c,t[9]=u):(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9]);const d=l===void 0?!0:l,{getEmployeeLookupUrl:f}=c===void 0?Xb:c,h=f===void 0?Xb.getEmployeeLookupUrl:f,{isMobile:p}=Pc(),{ProjectIconComponent:m,texts:g}=v.useContext(Qt),{documents:y}=g,[_,w]=bz(),[C,x]=v.useState(null);let S;t[10]!==w||t[11]!==_?(S=[_,w],t[10]=w,t[11]=_,t[12]=S):S=t[12];const E=gz(S,o,a);let k,T;t[13]!==E?({loadDocuments:T,...k}=E,t[13]=E,t[14]=k,t[15]=T):(k=t[14],T=t[15]);let D;t[16]!==w||t[17]!==_?(D=[_,w],t[16]=w,t[17]=_,t[18]=D):D=t[18];let $;t[19]!==k||t[20]!==a||t[21]!==o||t[22]!==T||t[23]!==D?($={entityId:a,entityType:o,apiActions:k,loadDocuments:T,reducer:D},t[19]=k,t[20]=a,t[21]=o,t[22]=T,t[23]=D,t[24]=$):$=t[24];const M=$,{getDropProps:R}=R0();if(p){let G;t[25]===Symbol.for("react.memo_cache_sentinel")?(G=b.jsx(uz,{}),t[25]=G):G=t[25];let J;return t[26]!==M?(J=b.jsx(gn.Provider,{value:M,children:G}),t[26]=M,t[27]=J):J=t[27],J}let I;t[28]!==r?(I=le(ga.wrapper,r),t[28]=r,t[29]=I):I=t[29];const j=_.state==="folder-choosing"?"dim-others":void 0;let A;t[30]!==j?(A=le(j,ga.explorerWindow),t[30]=j,t[31]=A):A=t[31];const O=i??o;let L;t[32]!==O?(L=b.jsx(VI,{customText:O}),t[32]=O,t[33]=L):L=t[33];let F;if(t[34]!==_.rootFolderIds||t[35]!==d){let G;t[37]!==d?(G=J=>b.jsx(i3,{dirId:J,writePermissions:d},J),t[37]=d,t[38]=G):G=t[38],F=_.rootFolderIds.map(G),t[34]=_.rootFolderIds,t[35]=d,t[36]=F}else F=t[36];let P;t[39]!==L||t[40]!==F?(P=b.jsxs("ul",{className:ga.folderList,children:[L,F]}),t[39]=L,t[40]=F,t[41]=P):P=t[41];let W;t[42]!==A||t[43]!==P?(W=b.jsx("div",{className:A,children:P}),t[42]=A,t[43]=P,t[44]=W):W=t[44];let H;t[45]===Symbol.for("react.memo_cache_sentinel")?(H=le(ga.explorerWindow,ga.fileList),t[45]=H):H=t[45];let q;t[46]!==R||t[47]!==_||t[48]!==d?(q=d&&dj(_)?R(_.activeFolder,{onFilesDrop:G=>x(G),ignoreInner:!0}):{},t[46]=R,t[47]=_,t[48]=d,t[49]=q):q=t[49];let Z;t[50]===Symbol.for("react.memo_cache_sentinel")?(Z={style:{marginRight:0}},t[50]=Z):Z=t[50];let K;t[51]!==m?(K=b.jsx(m,{icon:"file-upload",iconProps:Z}),t[51]=m,t[52]=K):K=t[52];let te;t[53]!==y.dropToUpload?(te=b.jsx("span",{children:y.dropToUpload}),t[53]=y.dropToUpload,t[54]=te):te=t[54];let ne;t[55]!==K||t[56]!==te?(ne=b.jsxs("div",{className:ga.dndText,children:[K,te]}),t[55]=K,t[56]=te,t[57]=ne):ne=t[57];const U=_.activeFolder==="root";let B;t[58]!==U?(B=U.toString(),t[58]=U,t[59]=B):B=t[59];let z;t[60]!==n||t[61]!==B||t[62]!==u||t[63]!==d?(z=b.jsx(XB,{tableIdentifier:u,BnfTableComponent:n,writePermissions:d},B),t[60]=n,t[61]=B,t[62]=u,t[63]=d,t[64]=z):z=t[64];let V;t[65]!==q||t[66]!==ne||t[67]!==z?(V=b.jsxs("div",{className:H,...q,children:[ne,z]}),t[65]=q,t[66]=ne,t[67]=z,t[68]=V):V=t[68];let N;t[69]!==a||t[70]!==o||t[71]!==d?(N=d?b.jsx(oz,{className:ga.controls,entityType:o,entityId:a}):null,t[69]=a,t[70]=o,t[71]=d,t[72]=N):N=t[72];let ee;t[73]!==h?(ee=b.jsx(aj,{getEmployeeLookupUrl:h}),t[73]=h,t[74]=ee):ee=t[74];let Q;t[75]!==_.activeFolder||t[76]!==C?(Q=C!==null?b.jsx(D0,{files:C,handleClose:()=>x(null),targetFolderId:_.activeFolder==="root"?void 0:_.activeFolder}):null,t[75]=_.activeFolder,t[76]=C,t[77]=Q):Q=t[77];let X;t[78]!==M||t[79]!==W||t[80]!==V||t[81]!==N||t[82]!==ee||t[83]!==Q?(X=b.jsxs(gn.Provider,{value:M,children:[W,V,N,ee,Q]}),t[78]=M,t[79]=W,t[80]=V,t[81]=N,t[82]=ee,t[83]=Q,t[84]=X):X=t[84];let se;return t[85]!==s||t[86]!==X||t[87]!==I?(se=b.jsx("div",{...s,className:I,onDragOver:xz,onDragEnter:wz,children:X}),t[85]=s,t[86]=X,t[87]=I,t[88]=se):se=t[88],se});function xz(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function wz(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const _z="Left",Cz="Right",Sz="Up",Tz="Down",Fo={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Hm={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},Ay="mousemove",Ry="mouseup",kz="touchend",$z="touchmove",Ez="touchstart";function Mz(e,t,n,r){return e>t?n>0?Cz:_z:r>0?Tz:Sz}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 Oz(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(Ay,r),document.addEventListener(Ry,o));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),Hm),{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,y]=Dy([p,m],f.rotationAngle),_=g-d.xy[0],w=y-d.xy[1],C=Math.abs(_),x=Math.abs(w),S=(u.timeStamp||0)-d.start,E=Math.sqrt(C*C+x*x)/(S||1),k=[_/(S||1),w/(S||1)],T=Mz(C,x,_,w),D=typeof f.delta=="number"?f.delta:f.delta[T.toLowerCase()]||Fo.delta;if(C<D&&x<D&&!d.swiping)return d;const $={absX:C,absY:x,deltaX:_,deltaY:w,dir:T,event:u,first:d.first,initial:d.initial,velocity:E,vxvy:k};$.first&&f.onSwipeStart&&f.onSwipeStart($),f.onSwiping&&f.onSwiping($);let M=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${T}`])&&(M=!0),M&&f.preventScrollOnSwipe&&f.trackTouch&&u.cancelable&&u.preventDefault(),Object.assign(Object.assign({},d),{first:!1,eventData:$,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),Hm),{eventData:h})})},a=()=>{document.removeEventListener(Ay,r),document.removeEventListener(Ry,o)},o=u=>{a(),i(u)},s=(u,d)=>{let f=()=>{};if(u&&u.addEventListener){const h=Object.assign(Object.assign({},Fo.touchEventOptions),d.touchEventOptions),p=[[Ez,n,h],[$z,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[kz,i,h]];p.forEach(([m,g,y])=>u.addEventListener(m,g,y)),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 Az(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 H0(e){const{trackMouse:t}=e,n=he.useRef(Object.assign({},Hm)),r=he.useRef(Object.assign({},Fo)),i=he.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Fo),e);let a;for(a in Fo)r.current[a]===void 0&&(r.current[a]=Fo[a]);const[o,s]=he.useMemo(()=>Oz(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Az(n.current,r.current,i.current,s),o}const Rz="_side-content-bar_16o0s_1",Dz="_mobile_16o0s_12",Iz="_expanded_16o0s_20",jz="_content-container_16o0s_23",Nz="_resizer_16o0s_31",Pz="_expander_16o0s_46",Lz="_icon_16o0s_65",ai={sideContentBar:Rz,mobile:Dz,expanded:Iz,contentContainer:jz,resizer:Nz,expander:Pz,icon:Lz},H3=e=>{const t=De.c(34),{width:n,children:r,isExpandedOnMobileState:i,resizeable:a,onResize:o}=e,[s,l]=i,c=a===void 0?!0:a,{ProjectIconComponent:u}=v.useContext(Qt),{isMobile:d}=Pc();let f;t[0]!==l?(f=D=>{D.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=H0(p),[g,y]=v.useState(null);let _;t[5]!==s||t[6]!==d?(_=le("luminus-side-content-bar shadow",ai.sideContentBar,{[ai.mobile]:d},{[ai.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 x;t[10]!==u||t[11]!==(g==null?void 0:g.startX)||t[12]!==(g==null?void 0:g.widthStart)||t[13]!==d||t[14]!==o||t[15]!==c||t[16]!==n?(x=c&&!d?b.jsx("div",{role:"button",className:le(ai.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:D=>y({startX:D.clientX,widthStart:n}),onDrag:D=>o(((g==null?void 0:g.widthStart)??0)+(((g==null?void 0:g.startX)??0)-D.clientX)),onDragEnd:()=>y(null),children:b.jsx(u,{className:ai.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]=o,t[15]=c,t[16]=n,t[17]=x):x=t[17];let S;t[18]!==r?(S=b.jsx("div",{className:ai.contentContainer,children:r}),t[18]=r,t[19]=S):S=t[19];let E;t[20]!==m||t[21]!==S||t[22]!==_||t[23]!==C||t[24]!==x?(E=b.jsxs("section",{className:_,style:C,...m,children:[x,S]}),t[20]=m,t[21]=S,t[22]=_,t[23]=C,t[24]=x,t[25]=E):E=t[25];let k;t[26]!==u||t[27]!==s||t[28]!==d||t[29]!==l?(k=d?b.jsx("div",{role:"button",onClick:()=>l(!s),className:le(ai.expander,{[ai.expanded]:s},"luminus-side-content-bar-expander","shadow"),children:b.jsx(u,{className:ai.icon,icon:"chevron-left"})}):null,t[26]=u,t[27]=s,t[28]=d,t[29]=l,t[30]=k):k=t[30];let T;return t[31]!==E||t[32]!==k?(T=b.jsxs(b.Fragment,{children:[E,k]}),t[31]=E,t[32]=k,t[33]=T):T=t[33],T},Fz=e=>{const t=De.c(4),{title:n}=e;let r;t[0]!==n?(r=typeof n=="string"?b.jsx(mn,{variant:"h3",children:n}):n,t[0]=n,t[1]=r):r=t[1];let i;return t[2]!==r?(i=b.jsx("div",{className:"mb-3",children:r}),t[2]=r,t[3]=i):i=t[3],i},Bz="_full-screen-container_1rm4r_1",V3={fullScreenContainer:Bz},zz=le("overflow-hidden luminus-full-screen-container",V3.fullScreenContainer),Wz="container-fluid",Uz=e=>{const t=De.c(45),{title:n,children:r,sideContent:i,sideContentWidth:a,sideContentResizeable:o,noPadding:s,className:l,variant:c,helmet:u,unavailableOnMobile:d}=e,f=a===void 0?250:a,h=o===void 0?!0:o,p=c===void 0?"main":c,{addHelmet:m,removeHelmet:g}=v.useContext(RC),{texts:y}=v.useContext(Qt),{container:_}=y,[w,C]=v.useState(f),[x,S]=v.useState(!1);let E;e:switch(p){case"fullScreen":{E=zz;break e}case"main":{E=Wz;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const k=E;let T,D;t[0]!==m||t[1]!==u||t[2]!==g||t[3]!==n?(T=()=>(u?m(u):typeof n=="string"&&n&&m(n),()=>g()),D=[u,m,g,n],t[0]=m,t[1]=u,t[2]=g,t[3]=n,t[4]=T,t[5]=D):(T=t[4],D=t[5]),v.useEffect(T,D);let $;t[6]===Symbol.for("react.memo_cache_sentinel")?($={onSwipedLeft:ne=>{ne.velocity>.8&&S(!0)},delta:100},t[6]=$):$=t[6];const M=H0($),{isMobile:R}=Pc(),I=R&&d;let j,A;t[7]!==f?(A=()=>{C(f)},j=[f],t[7]=f,t[8]=j,t[9]=A):(j=t[8],A=t[9]),v.useEffect(A,j);const O=s?"p-0":"p-3";let L;t[10]!==l||t[11]!==O||t[12]!==k?(L=le(k,O,l),t[10]=l,t[11]=O,t[12]=k,t[13]=L):L=t[13];let F;t[14]!==i||t[15]!==w||t[16]!==p?(F=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=F):F=t[17];const P=p==="fullScreen"?V3.fullScreenContainer:void 0;let W;t[18]!==i||t[19]!==w||t[20]!==p?(W=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=W):W=t[21];let H;t[22]!==I||t[23]!==r||t[24]!==_||t[25]!==n?(H=I?b.jsx(K0,{variant:"warning",children:_.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[n?b.jsx(Fz,{title:n}):null,r]}),t[22]=I,t[23]=r,t[24]=_,t[25]=n,t[26]=H):H=t[26];let q;t[27]!==P||t[28]!==W||t[29]!==H?(q=b.jsx("div",{className:P,style:W,children:H}),t[27]=P,t[28]=W,t[29]=H,t[30]=q):q=t[30];let Z;t[31]!==M||t[32]!==L||t[33]!==F||t[34]!==q?(Z=b.jsx("div",{className:L,style:F,...M,children:q}),t[31]=M,t[32]=L,t[33]=F,t[34]=q,t[35]=Z):Z=t[35];let K;t[36]!==I||t[37]!==x||t[38]!==i||t[39]!==h||t[40]!==w?(K=i&&!I?b.jsx(H3,{width:w,isExpandedOnMobileState:[x,S],resizeable:h,onResize:ne=>h?C(ne):{},children:i}):null,t[36]=I,t[37]=x,t[38]=i,t[39]=h,t[40]=w,t[41]=K):K=t[41];let te;return t[42]!==Z||t[43]!==K?(te=b.jsxs(b.Fragment,{children:[Z,K]}),t[42]=Z,t[43]=K,t[44]=te):te=t[44],te};var V0={};V0.match=Zz;V0.parse=q3;var Hz=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,Vz=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,qz=/^(?:(min|max)-)?(.+)/,Yz=/(em|rem|px|cm|mm|in|pt|pc)?$/,Gz=/(dpi|dpcm|dppx)?$/;function Zz(e,t){return q3(e).some(function(n){var r=n.inverse,i=n.type==="all"||t.type===n.type;if(i&&r||!(i||r))return!1;var a=n.expressions.every(function(o){var s=o.feature,l=o.modifier,c=o.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=Ny(c),u=Ny(u);break;case"resolution":c=jy(c),u=jy(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Iy(c),u=Iy(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 a&&!r||!a&&r})}function q3(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(Hz),r=n[1],i=n[2],a=n[3]||"",o={};return o.inverse=!!r&&r.toLowerCase()==="not",o.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],o.expressions=a.map(function(s){var l=s.match(Vz),c=l[1].toLowerCase().match(qz);return{modifier:c[1],feature:c[2],value:l[2]}}),o})}function Iy(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function jy(e){var t=parseFloat(e),n=String(e).match(Gz)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function Ny(e){var t=parseFloat(e),n=String(e).match(Yz)[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 Kz=V0.match,Py=typeof window<"u"?window.matchMedia:null;function Xz(e,t,n){var r=this,i;Py&&!n&&(i=Py.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=Kz(e,t),this.media=e),this.addListener=a,this.removeListener=o,this.dispose=l;function a(c){i&&i.addListener(c)}function o(c){i&&i.removeListener(c)}function s(c){r.matches=c.matches,r.media=c.media}function l(){i&&i.removeListener(s)}}function Jz(e,t,n){return new Xz(e,t,n)}var Qz=Jz;const eW=an(Qz);var tW=/[A-Z]/g,nW=/^ms-/,Tp={};function rW(e){return"-"+e.toLowerCase()}function Y3(e){if(Tp.hasOwnProperty(e))return Tp[e];var t=e.replace(tW,rW);return Tp[e]=nW.test(t)?"-"+t:t}function iW(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 a=0;a<i;a++){const o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}const jn=we.oneOfType([we.string,we.number]),G3={all:we.bool,grid:we.bool,aural:we.bool,braille:we.bool,handheld:we.bool,print:we.bool,projection:we.bool,screen:we.bool,tty:we.bool,tv:we.bool,embossed:we.bool},aW={orientation:we.oneOf(["portrait","landscape"]),scan:we.oneOf(["progressive","interlace"]),aspectRatio:we.string,deviceAspectRatio:we.string,height:jn,deviceHeight:jn,width:jn,deviceWidth:jn,color:we.bool,colorIndex:we.bool,monochrome:we.bool,resolution:jn,type:Object.keys(G3)},{type:xme,...oW}=aW,sW={minAspectRatio:we.string,maxAspectRatio:we.string,minDeviceAspectRatio:we.string,maxDeviceAspectRatio:we.string,minHeight:jn,maxHeight:jn,minDeviceHeight:jn,maxDeviceHeight:jn,minWidth:jn,maxWidth:jn,minDeviceWidth:jn,maxDeviceWidth:jn,minColor:we.number,maxColor:we.number,minColorIndex:we.number,maxColorIndex:we.number,minMonochrome:we.number,maxMonochrome:we.number,minResolution:jn,maxResolution:jn,...oW},lW={...G3,...sW};var cW={all:lW};const uW=e=>`not ${e}`,dW=(e,t)=>{const n=Y3(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?uW(n):`(${n}: ${t})`},fW=e=>e.join(" and "),hW=e=>{const t=[];return Object.keys(cW.all).forEach(n=>{const r=e[n];r!=null&&t.push(dW(n,r))}),fW(t)},pW=v.createContext(void 0),mW=e=>e.query||hW(e),Ly=e=>e?Object.keys(e).reduce((n,r)=>(n[Y3(r)]=e[r],n),{}):void 0,Z3=()=>{const e=v.useRef(!1);return v.useEffect(()=>{e.current=!0},[]),e.current},gW=e=>{const t=v.useContext(pW),n=()=>Ly(e)||Ly(t),[r,i]=v.useState(n);return v.useEffect(()=>{const a=n();iW(r,a)||i(a)},[e,t]),r},vW=e=>{const t=()=>mW(e),[n,r]=v.useState(t);return v.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},bW=(e,t)=>{const n=()=>eW(e,t||{},!!t),[r,i]=v.useState(n),a=Z3();return v.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},yW=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},kp=(e,t,n)=>{const r=gW(t),i=vW(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=bW(i,r),o=yW(a);return Z3(),v.useEffect(()=>{},[o]),v.useEffect(()=>()=>{a&&a.dispose()},[]),o},xW=["sm","md","lg","always"],K3="ResponsiveContextDropdownItem",wW=e=>e.type.displayName===K3,q0=e=>({});q0.displayName=K3;function _W(e){return e.type&&e.type===v.Fragment}const X3=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(_W(r)){n.push(...X3(r.props.children));return}n.push(r)}}),n},CW=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return no.generatePath(e,r)+"?"+n},SW="_disabled_9mp5v_1",TW={disabled:SW},kW=()=>{const e=De.c(5),{ProjectIconComponent:t}=v.useContext(Qt),{checkUserHasPermissions:n}=EC();let r;e[0]!==t||e[1]!==n?(r=(o,s)=>{const l=[],c=[];let u=null;const d=h=>{const{hideOn:p,children:m,cKey:g,to:y,toRoute:_,disabled:w,icon:C,pathParams:x,...S}=h.props,E=(_==null?void 0:_.permissions)!=null,k=(_==null?void 0:_.permissions)!=null&&n(_==null?void 0:_.permissions),T=(w??!1)||E&&!k,D=y??(_==null?void 0:CW(_==null?void 0:_.route,x)),$=m??(_==null?void 0:_.name),M=C??(_!=null?b.jsx(t,{icon:"link"}):void 0);if(p==="always"||xW.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const R=le(S.className,{[TW.disabled]:T});D!=null?c.push(b.jsx(Ma,{...S,as:"link",to:D,disabled:T,icon:M,className:R,children:$},g)):c.push(b.jsx(Ma,{...S,icon:M,className:R,children:$},g))}else{const R=D!=null?{as:"link",href:D}:{};l.push(b.jsx(gf,{...S,...R,icon:M,className:le(T?"disabled":void 0,S.className),children:$},g))}};return X3(o).forEach(h=>{h&&v.isValidElement(h)&&(wW(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 a;return e[3]!==i?(a={getProcessedChildren:i},e[3]=i,e[4]=a):a=e[4],a},J3=e=>{const t=De.c(18),{children:n}=e,{getProcessedChildren:r}=kW();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={maxWidth:768},t[0]=i):i=t[0];const a=kp(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={minWidth:769,maxWidth:1200},t[1]=o):o=t[1];const s=kp(o);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:1201},t[2]=l):l=t[2];const c=kp(l);let u;t[3]!==c||t[4]!==s||t[5]!==a?(u=[a,s,c],t[3]=c,t[4]=s,t[5]=a,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=b.jsx(b.Fragment,{children:h}),t[11]=h,t[12]=m):m=t[12];let g;t[13]!==p?(g=p.length>0?b.jsx(A0,{toggle:b.jsx(O0,{as:M0}),children:p}):null,t[13]=p,t[14]=g):g=t[14];let y;return t[15]!==m||t[16]!==g?(y=b.jsxs("div",{className:"d-flex gap-1",children:[m,g]}),t[15]=m,t[16]=g,t[17]=y):y=t[17],y};J3.Item=q0;const $W=v.createContext(void 0);function EW(e,t,n,r){var i=this,a=v.useRef(null),o=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,y=!("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 x=v.useMemo(function(){var S=function(R){var I=c.current,j=u.current;return c.current=u.current=null,o.current=R,s.current=s.current||R,d.current=f.current.apply(j,I)},E=function(R,I){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(R):setTimeout(R,I)},k=function(R){if(!h.current)return!1;var I=R-a.current;return!a.current||I>=t||I<0||_&&R-o.current>=C},T=function(R){return l.current=null,y&&c.current?S(R):(c.current=u.current=null,d.current)},D=function R(){var I=Date.now();if(g&&s.current===o.current&&$(),k(I))return T(I);if(h.current){var j=t-(I-a.current),A=_?Math.min(j,C-(I-o.current)):j;E(R,A)}},$=function(){r&&r({})},M=function(){if(p||w){var R=Date.now(),I=k(R);if(c.current=[].slice.call(arguments),u.current=i,a.current=R,I){if(!l.current&&h.current)return o.current=a.current,E(D,t),g?S(a.current):d.current;if(_)return E(D,t),S(a.current)}return l.current||E(D,t),d.current}};return M.cancel=function(){var R=l.current;R&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,c.current=a.current=u.current=l.current=null,R&&r&&r({})},M.isPending=function(){return!!l.current},M.flush=function(){return l.current?T(Date.now()):d.current},M},[g,_,t,C,y,m,p,w,r]);return x}function MW(e,t){return e===t}function Y0(e,t,n){var r=n&&n.equalityFn||MW,i=v.useRef(e),a=v.useState({})[1],o=EW(v.useCallback(function(l){i.current=l,a({})},[a]),t,n,a),s=v.useRef(e);return r(s.current,e)||(o(e),s.current=e),[i.current,o]}const OW="_feedback_esh1j_1",AW="_feedback-spacer_esh1j_8",Fy={feedback:OW,feedbackSpacer:AW},oo=e=>{const t=De.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=le("invalid-feedback luminus-invalid-feedback",Fy.feedback),t[0]=r):r=t[0];let i;t[1]!==n?(i=b.jsx("div",{className:r,children:n}),t[1]=n,t[2]=i):i=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=le("invalid-feedback-spacer",Fy.feedbackSpacer),t[3]=a):a=t[3];let o;t[4]!==n?(o=b.jsx("div",{className:a,children:n}),t[4]=n,t[5]=o):o=t[5];let s;return t[6]!==i||t[7]!==o?(s=b.jsxs(b.Fragment,{children:[i,o]}),t[6]=i,t[7]=o,t[8]=s):s=t[8],s},RW="_wrapper_1mvyk_1",DW="_open_1mvyk_9",IW="_dropdown_1mvyk_13",jW="_search-input-container_1mvyk_19",NW="_search-input_1mvyk_19",PW="_loading-container_1mvyk_25",LW="_items-container_1mvyk_32",FW="_header-row_1mvyk_38",BW="_name_1mvyk_49",zW="_item_1mvyk_32",WW="_column-item_1mvyk_65",UW="_action-buttons-container_1mvyk_89",HW="_reverse_1mvyk_97",VW="_action-button_1mvyk_89",qW="_actions-dropdown_1mvyk_110",yn={wrapper:RW,open:DW,dropdown:IW,searchInputContainer:jW,searchInput:NW,loadingContainer:PW,itemsContainer:LW,headerRow:FW,name:BW,item:zW,columnItem:WW,actionButtonsContainer:UW,reverse:HW,actionButton:VW,actionsDropdown:qW},kf=({show:e,onCancel:t,items:n,suggestedItems:r,suggestedItemsTitle:i,currentSelection:a,onSelectionChange:o,onSearchQueryChange:s,texts:l,itemsNameWidth:c,additionalColumns:u,displayIdAsName:d=!1,autoHideSearch:f=!1,allItemsLength:h,disabled:p,isLoading:m=!1,inputRef:g,archiveColumn:y="archive",addNewOptionPath:_,refreshOptions:w,noRemoveButton:C=!1,customEllipsisOptions:x,CustomButtons:S})=>{var Me;const{texts:{customSelect:E}}=v.useContext(Qt),k=v.useRef(null),T=v.useRef(null),D=v.useRef(null),$=v.useRef(null),M=v.useRef(null),R=v.useRef(null),[I,j]=v.useState(""),[A]=Y0(I,500),[,O]=v.useState(!1),{copyToClipboard:L}=AC(),F=(Me=g.current)==null?void 0:Me.getBoundingClientRect(),P=(F==null?void 0:F.x)??0,W=((F==null?void 0:F.x)??0)+((F==null?void 0:F.width)??0),H=(F==null?void 0:F.y)??0,q=((F==null?void 0:F.y)??0)+((F==null?void 0:F.height)??0),Z=(F==null?void 0:F.width)??0,K=(F==null?void 0:F.height)??0,te=5,{isMobile:ne}=Pc(),U=8,B=v.useMemo(()=>P?P>window.innerWidth/2-U:!1,[P]),z=v.useMemo(()=>H?H>window.innerHeight/2-U:!1,[H]);v.useEffect(()=>{var pe;e&&((pe=D.current)==null||pe.focus())},[D,e]),v.useEffect(()=>{e||j("")},[e]),v.useEffect(()=>{s&&s(A)},[A,s]);const[V,N]=v.useState(null);v.useEffect(()=>{e&&n.length>0?N(0):N(null)},[n,e]);const ee=v.useMemo(()=>V!==null?n.at(V)??null:null,[V,n]),Q=v.useCallback((pe,me)=>{var je,qe;const fe=document.getElementById(`item-${pe}`);if(fe){const xt=fe.clientHeight??0;me==="down"?(je=$.current)==null||je.scrollBy({left:0,top:xt,behavior:"smooth"}):(qe=$.current)==null||qe.scrollBy({left:0,top:-xt,behavior:"smooth"})}},[]),X=v.useCallback(pe=>{if(V===null||p)return;const me=V+pe;me<0||me>=n.length||N(fe=>(fe!==null&&Q(fe,pe>0?"down":"up"),me))},[V,n,p,Q]),se=v.useCallback(pe=>{if(e)switch(pe.key){case"Escape":pe.stopPropagation(),pe.preventDefault(),t();break;case"Enter":pe.stopPropagation(),pe.preventDefault(),p||o(ee);break;case"ArrowUp":pe.stopPropagation(),pe.preventDefault(),X(-1);break;case"ArrowDown":pe.stopPropagation(),pe.preventDefault(),X(1);break}},[t,e,X,ee,p,o]),G=v.useCallback(()=>{O(pe=>!pe)},[]);v.useEffect(()=>(window.addEventListener("scroll",G),()=>{window.removeEventListener("scroll",G)}),[G]),v.useEffect(()=>(window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}),[G]),MC(se),$C([k,T,M,R],t);const J=c??(u&&u.length>0?250:0),ie=(u==null?void 0:u.reduce((pe,me)=>pe+(me.width??100),0))??0,oe=v.useMemo(()=>(a&&e&&!!S)??!1,[S,a,e]),be=v.useMemo(()=>(a&&e&&!p&&!C)??!1,[a,e,p,C]),ce=v.useMemo(()=>(a&&e)??!1,[a,e]),ue=v.useMemo(()=>e&&(ce||_!==void 0||w!==void 0||x!=null&&x.length>0),[e,ce,_,w,x]),Ce=32,ke=ne?`calc(100vw - ${Ce}px)`:`calc(max(${Z}px, calc(${J}px + ${ie}px)))`,ye=v.useMemo(()=>(I.length<1&&r&&r.length>0?r:n).map(pe=>{var me,fe;return d?((me=pe.id)==null?void 0:me.toString())??"":((fe=pe.name)==null?void 0:fe.toString())??""}).reduce((pe,me)=>pe.length>me.length?pe:me,""),[I,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(Q3,{show:e,onClick:t}),b.jsxs("div",{className:le("luminus-dropdown-picker-actions",yn.actionButtonsContainer,{[yn.reverse]:B}),style:{top:`calc(${H}px + ${K/2}px - 12px)`,left:B?be&&ce?`calc(${P}px - 24px - 8px - 24px - 4px)`:`calc(${P}px - 24px - 8px)`:`calc(${W}px + 8px)`},children:[oe?b.jsx("div",{ref:R,children:S}):null,be&&b.jsx("button",{ref:T,type:"button",className:le("luminus-dropdown-picker-clear-button",yn.actionButton),onClick:()=>!p&&o(null),children:b.jsx(mn,{variant:"caption",className:"text-danger",children:b.jsx(d4,{size:16})})}),ue?b.jsx("div",{ref:M,children:b.jsxs(A0,{toggle:b.jsx(O0,{as:M0,className:le("luminus-dropdown-picker-actions-dropdown",yn.actionsDropdown),icon:b.jsx(mn,{variant:"caption",className:"text-primary",children:b.jsx(p4,{size:16})})}),children:[ce?b.jsx(Ma,{icon:b.jsx(uO,{}),onClick:()=>{var pe,me;L(d?((pe=a==null?void 0:a.id)==null?void 0:pe.toString())??"":((me=a==null?void 0:a.name)==null?void 0:me.toString())??"")},children:E.copySelection}):null,ce&&(_||w)?b.jsx(Pm,{}):null,_?b.jsx(Ma,{icon:b.jsx(cO,{}),onClick:()=>{window.open(_,"_blank")},children:E.addNewOption}):null,w?b.jsx(Ma,{icon:b.jsx(yO,{}),onClick:()=>{w()},children:E.refreshOptions}):null,x&&x.length>0?b.jsx(Pm,{}):null,x==null?void 0:x.map(pe=>b.jsxs(Ma,{onClick:()=>{pe.onClick(),t()},children:[pe.icon??null,pe.label]},pe.label))]})}):null]}),b.jsx("div",{className:le("luminus-dropdown-picker",yn.wrapper,{[yn.open]:e}),style:{top:z?`calc(${H}px - 50vh - 8px)`:`calc(${q}px + 8px)`,left:ne?`${Ce/2}px`:B?`calc(${W}px - ${ke})`:P,right:ne?`${Ce/2}px`:B?`${W}px`:`calc(${P}px + ${ke})`,width:ke,justifyContent:z?"flex-end":"flex-start"},children:b.jsx("div",{ref:k,className:le("shadow rounded",yn.dropdown),children:!p&&b.jsxs(b.Fragment,{children:[!s||f&&(h??n.length)<=te?null:b.jsx("div",{className:le("search-input-container border-bottom",yn.searchInputContainer),children:b.jsx(Kn.Control,{ref:D,type:"search",size:"sm",className:yn.searchInput,placeholder:l.searchPlaceholder,value:I,onChange:pe=>{var me;return j(((me=pe.target)==null?void 0:me.value)??"")}})}),I.length<1&&r&&r.length>0?b.jsx(K0,{variant:"info",size:"sm",children:i??E.suggestedItemsTitle}):null,m?b.jsx("div",{className:yn.loadingContainer,children:b.jsx(l0,{animation:"border",variant:"primary"})}):(I.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:$,className:le("items",yn.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:le("header-row border-bottom",yn.headerRow),children:[b.jsx("div",{className:yn.name,children:b.jsx(mn,{variant:"body2",children:ye})}),u==null?void 0:u.filter(pe=>pe.key!==y).map(pe=>b.jsx("div",{className:yn.columnItem,style:{width:`${pe.width??100}px`,minWidth:`${pe.width??100}px`,maxWidth:`${pe.width??100}px`},children:b.jsx(mn,{variant:"caption",children:pe.name})},pe.key))]}),(I.length<1&&r&&r.length>0?r:n).map((pe,me)=>b.jsxs("button",{id:`item-${me}`,type:"button",className:le("item cursor-pointer",yn.item,{[yn.focused]:V===me},{focused:V===me},{archive:pe.additionalColumns?pe.additionalColumns[y]:!1}),onClick:()=>!p&&o(pe),onMouseEnter:()=>N(me),children:[b.jsx("div",{className:yn.name,children:b.jsx(mn,{variant:"body2",children:d?pe.id:pe.name})}),u==null?void 0:u.filter(fe=>fe.key!==y).map(fe=>b.jsx("div",{className:yn.columnItem,style:{width:`${fe.width??100}px`,minWidth:`${fe.width??100}px`,maxWidth:`${fe.width??100}px`},children:b.jsx(mn,{variant:"caption",className:le("text-muted"),children:pe.additionalColumns&&pe.additionalColumns[fe.key]})},fe.key))]},pe.id))]})]})})})]})},YW="_backdrop_3huvf_1",GW="_show_3huvf_11",By={backdrop:YW,show:GW},Q3=e=>{const t=De.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=le("luminus-backdrop",By.backdrop,{[By.show]:n}),t[0]=n,t[1]=i):i=t[1];let a;t[2]!==r?(a=()=>r&&r(),t[2]=r,t[3]=a):a=t[3];let o;return t[4]!==i||t[5]!==a?(o=b.jsx("div",{className:i,onClick:a}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o};var G0={},zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.bind=void 0;function ZW(e,t){var n=t.type,r=t.listener,i=t.options;return e.addEventListener(n,r,i),function(){e.removeEventListener(n,r,i)}}zc.bind=ZW;var $f={},Bo=Hn&&Hn.__assign||function(){return Bo=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},Bo.apply(this,arguments)};Object.defineProperty($f,"__esModule",{value:!0});$f.bindAll=void 0;var KW=zc;function zy(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function XW(e,t){if(t==null)return e;var n=Bo(Bo({},e),{options:Bo(Bo({},zy(t)),zy(e.options))});return n}function JW(e,t,n){var r=t.map(function(i){var a=XW(i,n);return(0,KW.bind)(e,a)});return function(){r.forEach(function(a){return a()})}}$f.bindAll=JW;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.bindAll=e.bind=void 0;var t=zc;Object.defineProperty(e,"bind",{enumerable:!0,get:function(){return t.bind}});var n=$f;Object.defineProperty(e,"bindAll",{enumerable:!0,get:function(){return n.bindAll}})})(G0);function eS(e){var t=null;return function(){if(!t){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=e.apply(this,i);t={result:o}}return t.result}}var Z0=eS(function(){if(process.env.NODE_ENV==="test")return!1;var t=navigator,n=t.userAgent;return n.includes("AppleWebKit")&&!n.includes("Chrome")}),Vm={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};function QW(e){var t=e.dragLeave;return Z0()?t.hasOwnProperty(Vm.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!Z0())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}G0.bindAll(window,[{type:"dragstart",listener:function(){n.enterCount=0,n.isOverWindow=!0}},{type:"drop",listener:r},{type:"dragend",listener:r},{type:"dragenter",listener:function(a){!n.isOverWindow&&n.enterCount===0&&(a[Vm.isEnteringWindow]=!0),n.isOverWindow=!0,n.enterCount++}},{type:"dragleave",listener:function(a){n.enterCount--,n.isOverWindow&&n.enterCount===0&&(a[Vm.isLeavingWindow]=!0,n.isOverWindow=!1)}}],{capture:!0})})();var eU=function(t){var n=[],r=null,i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;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},$p=eU(function(e){return e()}),xu=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 tU(e){var t=e.source,n=e.initial,r=e.dispatchEvent,i={dropTargets:[]};function a(s){r(s),i={dropTargets:s.payload.location.current.dropTargets}}var o={start:function(l){var c=l.nativeSetDragImage,u={current:n,previous:i,initial:n};a({eventName:"onGenerateDragPreview",payload:{source:t,location:u,nativeSetDragImage:c}}),xu.schedule(function(){a({eventName:"onDragStart",payload:{source:t,location:u}})})},dragUpdate:function(l){var c=l.current;xu.flush(),$p.cancel(),a({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:i,current:c}}})},drag:function(l){var c=l.current;$p(function(){xu.flush();var u={initial:n,previous:i,current:c};a({eventName:"onDrag",payload:{source:t,location:u}})})},drop:function(l){var c=l.current,u=l.updatedSourcePayload;xu.flush(),$p.cancel(),a({eventName:"onDrop",payload:{source:u??t,location:{current:c,previous:i,initial:n}}})}};return o}const K0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return b.jsx(vE,{variant:t,className:`text-center ${i==="sm"?"p-1":i==="md"?"p-3":"p-4"} bg-${t} bg-opacity-10 border-none ${r??""}`,...o,children:b.jsx(mn,{variant:a,children:n})})};var X0=Uc(),rt=e=>Wc(e,X0),J0=Uc();rt.write=e=>Wc(e,J0);var Ef=Uc();rt.onStart=e=>Wc(e,Ef);var Q0=Uc();rt.onFrame=e=>Wc(e,Q0);var ev=Uc();rt.onFinish=e=>Wc(e,ev);var Go=[];rt.setTimeout=(e,t)=>{const n=rt.now()+t,r=()=>{const a=Go.findIndex(o=>o.cancel==r);~a&&Go.splice(a,1),Hi-=~a?1:0},i={time:n,handler:e,cancel:r};return Go.splice(tS(n),0,i),Hi+=1,nS(),i};var tS=e=>~(~Go.findIndex(t=>t.time>e)||~Go.length);rt.cancel=e=>{Ef.delete(e),Q0.delete(e),ev.delete(e),X0.delete(e),J0.delete(e)};rt.sync=e=>{qm=!0,rt.batchedUpdates(e),qm=!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=()=>{Ef.delete(n),t=null},r};var tv=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>tv=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"):iS()};var Ui=-1,Hi=0,qm=!1;function Wc(e,t){qm?(t.delete(e),e(0)):(t.add(e),nS())}function nS(){Ui<0&&(Ui=0,rt.frameLoop!=="demand"&&tv(rS))}function nU(){Ui=-1}function rS(){~Ui&&(tv(rS),rt.batchedUpdates(iS))}function iS(){const e=Ui;Ui=rt.now();const t=tS(Ui);if(t&&(aS(Go.splice(0,t),n=>n.handler()),Hi-=t),!Hi){nU();return}Ef.flush(),X0.flush(e?Math.min(64,Ui-e):16.667),Q0.flush(),J0.flush(),ev.flush()}function Uc(){let e=new Set,t=e;return{add(n){Hi+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Hi-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Hi-=t.size,aS(t,r=>r(n)&&e.add(r)),Hi+=e.size,t=e)}}}function aS(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var rU=Object.defineProperty,iU=(e,t)=>{for(var n in t)rU(e,n,{get:t[n],enumerable:!0})},Mr={};iU(Mr,{assign:()=>oU,colors:()=>Yi,createStringInterpolator:()=>rv,skipAnimation:()=>sS,to:()=>oS,willAdvance:()=>iv});function Ym(){}var aU=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ve={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(ve.arr(e)){if(!ve.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 Ke=(e,t)=>e.forEach(t);function Yr(e,t,n){if(ve.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 Nn=e=>ve.und(e)?[]:ve.arr(e)?e:[e];function $l(e,t){if(e.size){const n=Array.from(e);e.clear(),Ke(n,t)}}var yl=(e,...t)=>$l(e,n=>n(...t)),nv=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),rv,oS,Yi=null,sS=!1,iv=Ym,oU=e=>{e.to&&(oS=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Yi=e.colors),e.skipAnimation!=null&&(sS=e.skipAnimation),e.createStringInterpolator&&(rv=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(iv=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},El=new Set,lr=[],Ep=[],yd=0,Mf={get idle(){return!El.size&&!lr.length},start(e){yd>e.priority?(El.add(e),rt.onStart(sU)):(lS(e),rt(Gm))},advance:Gm,sort(e){if(yd)rt.onFrame(()=>Mf.sort(e));else{const t=lr.indexOf(e);~t&&(lr.splice(t,1),cS(e))}},clear(){lr=[],El.clear()}};function sU(){El.forEach(lS),El.clear(),rt(Gm)}function lS(e){lr.includes(e)||cS(e)}function cS(e){lr.splice(lU(lr,t=>t.priority>e.priority),0,e)}function Gm(e){const t=Ep;for(let n=0;n<lr.length;n++){const r=lr[n];yd=r.priority,r.idle||(iv(r),r.advance(e),r.idle||t.push(r))}return yd=0,Ep=lr,Ep.length=0,lr=t,lr.length>0}function lU(e,t){const n=e.findIndex(t);return n<0?e.length:n}var cU={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},Sr="[-+]?\\d*\\.?\\d+",xd=Sr+"%";function Of(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var uU=new RegExp("rgb"+Of(Sr,Sr,Sr)),dU=new RegExp("rgba"+Of(Sr,Sr,Sr,Sr)),fU=new RegExp("hsl"+Of(Sr,xd,xd)),hU=new RegExp("hsla"+Of(Sr,xd,xd,Sr)),pU=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,mU=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gU=/^#([0-9a-fA-F]{6})$/,vU=/^#([0-9a-fA-F]{8})$/;function bU(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gU.exec(e))?parseInt(t[1]+"ff",16)>>>0:Yi&&Yi[e]!==void 0?Yi[e]:(t=uU.exec(e))?(Mo(t[1])<<24|Mo(t[2])<<16|Mo(t[3])<<8|255)>>>0:(t=dU.exec(e))?(Mo(t[1])<<24|Mo(t[2])<<16|Mo(t[3])<<8|Hy(t[4]))>>>0:(t=pU.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=vU.exec(e))?parseInt(t[1],16)>>>0:(t=mU.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=fU.exec(e))?(Wy(Uy(t[1]),wu(t[2]),wu(t[3]))|255)>>>0:(t=hU.exec(e))?(Wy(Uy(t[1]),wu(t[2]),wu(t[3]))|Hy(t[4]))>>>0:null}function Mp(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 Wy(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=Mp(i,r,e+1/3),o=Mp(i,r,e),s=Mp(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function Mo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Uy(e){return(parseFloat(e)%360+360)%360/360}function Hy(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function wu(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Vy(e){let t=bU(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,a=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${a})`}var rc=(e,t,n)=>{if(ve.fun(e))return e;if(ve.arr(e))return rc({range:e,output:t,extrapolate:n});if(ve.str(e.output[0]))return rv(e);const r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=xU(c,a);return yU(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function yU(e,t,n,r,i,a,o,s,l){let c=l?l(e):e;if(c<t){if(o==="identity")return c;o==="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=a(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function xU(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var wU={linear:e=>e},ic=Symbol.for("FluidValue.get"),ms=Symbol.for("FluidValue.observers"),sr=e=>!!(e&&e[ic]),Bn=e=>e&&e[ic]?e[ic]():e,qy=e=>e[ms]||null;function _U(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ac(e,t){const n=e[ms];n&&n.forEach(r=>{_U(r,t)})}var uS=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");CU(this,e)}},CU=(e,t)=>dS(e,ic,t);function As(e,t){if(e[ic]){let n=e[ms];n||dS(e,ms,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function oc(e,t){const n=e[ms];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ms]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var dS=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),zu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,SU=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Yy=new RegExp(`(${zu.source})(%|[a-z]+)`,"i"),TU=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Af=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fS=e=>{const[t,n]=kU(e);if(!t||nv())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&&Af.test(n))return fS(n);if(n)return n}return e},kU=e=>{const t=Af.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Op,$U=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,hS=e=>{Op||(Op=Yi?new RegExp(`(${Object.keys(Yi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Bn(a).replace(Af,fS).replace(SU,Vy).replace(Op,Vy)),n=t.map(a=>a.match(zu).map(Number)),i=n[0].map((a,o)=>n.map(s=>{if(!(o in s))throw Error('The arity of each "output" value must be equal');return s[o]})).map(a=>rc({...e,output:a}));return a=>{var l;const o=!Yy.test(t[0])&&((l=t.find(c=>Yy.test(c)))==null?void 0:l.replace(zu,""));let s=0;return t[0].replace(zu,()=>`${i[s++](a)}${o||""}`).replace(TU,$U)}},av="react-spring: ",pS=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${av}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},EU=pS(console.warn);function MU(){EU(`${av}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var OU=pS(console.warn);function AU(){OU(`${av}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 Rf(e){return ve.str(e)&&(e[0]=="#"||/\d/.test(e)||!nv()&&Af.test(e)||e in(Yi||{}))}var Oa=nv()?v.useEffect:v.useLayoutEffect,RU=()=>{const e=v.useRef(!1);return Oa(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function ov(){const e=v.useState()[1],t=RU();return()=>{t.current&&e(Math.random())}}var sv=e=>v.useEffect(e,DU),DU=[];function Zm(e){const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current}var sc=Symbol.for("Animated:node"),IU=e=>!!e&&e[sc]===e,Pr=e=>e&&e[sc],lv=(e,t)=>aU(e,sc,t),Df=e=>e&&e[sc]&&e[sc].getPayload(),mS=class{constructor(){lv(this,this)}getPayload(){return this.payload||[]}},If=class gS extends mS{constructor(t){super(),this._value=t,this.done=!0,this.durationProgress=0,ve.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new gS(t)}getPayload(){return[this]}getValue(){return this._value}setValue(t,n){return ve.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,ve.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,t&&(this.lastVelocity=null),this.v0=null)}},wd=class vS extends If{constructor(t){super(0),this._string=null,this._toString=rc({output:[t,t]})}static create(t){return new vS(t)}getValue(){const t=this._string;return t??(this._string=this._toString(this._value))}setValue(t){if(ve.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=rc({output:[this.getValue(),t]})),this._value=0,super.reset()}},_d={dependencies:null},jf=class extends mS{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Yr(this.source,(n,r)=>{IU(n)?t[r]=n.getValue(e):sr(n)?t[r]=Bn(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ke(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Yr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){_d.dependencies&&sr(e)&&_d.dependencies.add(e);const t=Df(e);t&&Ke(t,n=>this.add(n))}},jU=class bS extends jf{constructor(t){super(t)}static create(t){return new bS(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(NU)),!0)}};function NU(e){return(Rf(e)?wd:If).create(e)}function Km(e){const t=Pr(e);return t?t.constructor:ve.arr(e)?jU:Rf(e)?wd:If}var Gy=(e,t)=>{const n=!ve.fun(e)||e.prototype&&e.prototype.isReactComponent;return v.forwardRef((r,i)=>{const a=v.useRef(null),o=n&&v.useCallback(p=>{a.current=FU(i,p)},[i]),[s,l]=LU(r,t),c=ov(),u=()=>{const p=a.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new PU(u,l),f=v.useRef(void 0);Oa(()=>(f.current=d,Ke(l,p=>As(p,d)),()=>{f.current&&(Ke(f.current.deps,p=>oc(p,f.current)),rt.cancel(f.current.update))})),v.useEffect(u,[]),sv(()=>()=>{const p=f.current;Ke(p.deps,m=>oc(m,p))});const h=t.getComponentProps(s.getValue());return he.createElement(e,{...h,ref:o})})},PU=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function LU(e,t){const n=new Set;return _d.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new jf(e),_d.dependencies=null,[e,n]}function FU(e,t){return e&&(ve.fun(e)?e(t):e.current=t),t}var Zy=Symbol.for("AnimatedComponent"),BU=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new jf(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=o=>{const s=Ky(o)||"Anonymous";return ve.str(o)?o=a[o]||(a[o]=Gy(o,i)):o=o[Zy]||(o[Zy]=Gy(o,i)),o.displayName=`Animated(${s})`,o};return Yr(e,(o,s)=>{ve.arr(e)&&(s=Ky(o)),a[s]=a(o)}),{animated:a}},Ky=e=>ve.str(e)?e:e&&ve.str(e.displayName)?e.displayName:ve.fun(e)&&e.name||null;function zn(e,...t){return ve.fun(e)?e(...t):e}var Ml=(e,t)=>e===!0||!!(t&&e&&(ve.fun(e)?e(t):Nn(e).includes(t))),yS=(e,t)=>ve.obj(e)?t&&e[t]:e,xS=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,zU=e=>e,Nf=(e,t=zU)=>{let n=WU;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const a=t(e[i],i);ve.und(a)||(r[i]=a)}return r},WU=["config","onProps","onStart","onChange","onPause","onResume","onRest"],UU={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 HU(e){const t={};let n=0;if(Yr(e,(r,i)=>{UU[i]||(t[i]=r,n++)}),n)return t}function cv(e){const t=HU(e);if(t){const n={to:t};return Yr(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function lc(e){return e=Bn(e),ve.arr(e)?e.map(lc):Rf(e)?Mr.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wS(e){for(const t in e)return!0;return!1}function Xm(e){return ve.fun(e)||ve.arr(e)&&ve.obj(e[0])}function Jm(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function _S(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var CS={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}},Qm={...CS.default,mass:1,damping:1,easing:wU.linear,clamp:!1},VU=class{constructor(){this.velocity=0,Object.assign(this,Qm)}};function qU(e,t,n){n&&(n={...n},Xy(n,t),t={...n,...t}),Xy(e,t),Object.assign(e,t);for(const o in Qm)e[o]==null&&(e[o]=Qm[o]);let{frequency:r,damping:i}=e;const{mass:a}=e;return ve.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*i*a/r),e}function Xy(e,t){if(!ve.und(t.decay))e.duration=void 0;else{const n=!ve.und(t.tension)||!ve.und(t.friction);(n||!ve.und(t.frequency)||!ve.und(t.damping)||!ve.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Jy=[],YU=class{constructor(){this.changed=!1,this.values=Jy,this.toValues=null,this.fromValues=Jy,this.config=new VU,this.immediate=!1}};function SS(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=Ml(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{ve.und(n.pause)||(i.paused=Ml(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Ml(p,t)),l=zn(n.delay||0,t),p?(i.resumeQueue.add(f),a.pause()):(a.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{a.start({...n,callId:e,cancel:u},o)}catch(p){s(p)}}})}var uv=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zo(e.get()):t.every(n=>n.noop)?TS(e.get()):wr(e.get(),t.every(n=>n.finished)),TS=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),wr=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Zo=e=>({value:e,cancelled:!0,finished:!1});function kS(e,t,n,r){const{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:l}=n;return!a&&e===s&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=Nf(t,(g,y)=>y==="onRest"?void 0:g);let u,d;const f=new Promise((g,y)=>(u=g,d=y)),h=g=>{const y=i<=(n.cancelId||0)&&Zo(r)||i!==n.asyncId&&wr(r,!1);if(y)throw g.result=y,d(g),g},p=(g,y)=>{const _=new Qy,w=new e2;return(async()=>{if(Mr.skipAnimation)throw cc(n),w.result=wr(r,!1),d(w),w;h(_);const C=ve.obj(g)?{...g}:{...y,to:g};C.parentId=i,Yr(c,(S,E)=>{ve.und(C[E])&&(C[E]=S)});const x=await r.start(C);return h(_),n.paused&&await new Promise(S=>{n.resumeQueue.add(S)}),x})()};let m;if(Mr.skipAnimation)return cc(n),wr(r,!1);try{let g;ve.arr(e)?g=(async y=>{for(const _ of y)await p(_)})(e):g=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([g.then(u),f]),m=wr(r.get(),!0,!1)}catch(g){if(g instanceof Qy)m=g.result;else if(g instanceof e2)m=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?l:void 0)}return ve.fun(o)&&rt.batchedUpdates(()=>{o(m,r,r.item)}),m})()}function cc(e,t){$l(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Qy=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.")}},e2=class extends Error{constructor(){super("SkipAnimationSignal")}},eg=e=>e instanceof dv,GU=1,dv=class extends uS{constructor(){super(...arguments),this.id=GU++,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 MU(),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){ac(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Mf.sort(this),ac(this,{type:"priority",parent:this,priority:e})}},Ga=Symbol.for("SpringPhase"),$S=1,tg=2,ng=4,Ap=e=>(e[Ga]&$S)>0,Ni=e=>(e[Ga]&tg)>0,il=e=>(e[Ga]&ng)>0,t2=(e,t)=>t?e[Ga]|=tg|$S:e[Ga]&=~tg,n2=(e,t)=>t?e[Ga]|=ng:e[Ga]&=~ng,ZU=class extends dv{constructor(e,t){if(super(),this.animation=new YU,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,!ve.und(e)||!ve.und(t)){const n=ve.obj(e)?{...e}:{...t,from:e};ve.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ni(this)||this._state.asyncTo)||il(this)}get goal(){return Bn(this.animation.to)}get velocity(){const e=Pr(this);return e instanceof If?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Ap(this)}get isAnimating(){return Ni(this)}get isPaused(){return il(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:a}=r,o=Df(r.to);!o&&sr(r.to)&&(i=Nn(Bn(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==wd?1:o?o[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,a.tension<=0){c.done=!0;return}let p=c.elapsedTime+=e;const m=r.fromValues[u],g=c.v0!=null?c.v0:c.v0=ve.arr(a.velocity)?a.velocity[u]:a.velocity;let y;const _=a.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(ve.und(a.duration))if(a.decay){const w=a.decay===!0?.998:a.decay,C=Math.exp(-(1-w)*p);h=m+g/(1-w)*(1-C),f=Math.abs(c.lastPosition-h)<=_,y=g*C}else{y=c.lastVelocity==null?g:c.lastVelocity;const w=a.restVelocity||_/10,C=a.clamp?0:a.bounce,x=!ve.und(C),S=m==d?c.v0>0:m<d;let E,k=!1;const T=1,D=Math.ceil(e/T);for(let $=0;$<D&&(E=Math.abs(y)>w,!(!E&&(f=Math.abs(d-h)<=_,f)));++$){x&&(k=h==d||h>d==S,k&&(y=-y*C,h=d));const M=-a.tension*1e-6*(h-d),R=-a.friction*.001*y,I=(M+R)/a.mass;y=y+I*T,h=h+y*T}}else{let w=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,c.durationProgress>0&&(c.elapsedTime=a.duration*c.durationProgress,p=c.elapsedTime+=e)),w=(a.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,c.durationProgress=w),h=m+a.easing(w)*(d-m),y=(h-c.lastPosition)/e,f=w==1}c.lastVelocity=y,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}o&&!o[u].done&&(f=!1),f?c.done=!0:t=!1,c.setValue(h,a.round)&&(n=!0)});const s=Pr(this),l=s.getValue();if(t){const c=Bn(r.to);(l!==c||n)&&!a.decay?(s.setValue(c),this._onChange(c)):n&&a.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(Ni(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 ve.und(e)?(n=this.queue||[],this.queue=[]):n=[ve.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>uv(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),cc(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=ve.obj(n)?n[t]:n,(n==null||Xm(n))&&(n=void 0),r=ve.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return Ap(this)||(e.reverse&&([n,r]=[r,n]),r=Bn(r),ve.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,Nf(e,(o,s)=>/^on/.test(s)?yS(o,n):o)),i2(this,e,"onProps"),ol(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 a=this._state;return SS(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{il(this)||(n2(this,!0),yl(a.pauseQueue),ol(this,"onPause",wr(this,al(this,this.animation.to)),this))},resume:()=>{il(this)&&(n2(this,!1),Ni(this)&&this._resume(),yl(a.resumeQueue),ol(this,"onResume",wr(this,al(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=ES(e);if(s)return this._update(s,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Zo(this));const r=!ve.und(e.to),i=!ve.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Zo(this));const{key:a,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;i&&!r&&(!t.default||ve.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=Xm(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||i)&&(m.velocity=0),t.config&&!p&&qU(m,zn(t.config,a),t.config!==o.config?zn(o.config,a):void 0);let _=Pr(this);if(!_||ve.und(u))return n(wr(this,!0));const w=ve.und(t.reset)?i&&!t.default:!ve.und(d)&&Ml(t.reset,a),C=w?d:this.get(),x=lc(u),S=ve.num(x)||ve.arr(x)||Rf(x),E=!p&&(!S||Ml(o.immediate||t.immediate,a));if(h){const $=Km(u);if($!==_.constructor)if(E)_=this._set(x);else throw Error(`Cannot animate between ${_.constructor.name} and ${$.name}, as the "to" prop suggests`)}const k=_.constructor;let T=sr(u),D=!1;if(!T){const $=w||!Ap(this)&&f;(h||$)&&(D=si(lc(C),x),T=!D),(!si(s.immediate,E)&&!E||!si(m.decay,g)||!si(m.velocity,y))&&(T=!0)}if(D&&Ni(this)&&(s.changed&&!w?T=!0:T||this._stop(l)),!p&&((T||sr(l))&&(s.values=_.getPayload(),s.toValues=sr(u)?null:k==wd?[1]:Nn(x)),s.immediate!=E&&(s.immediate=E,!E&&!w&&this._set(l)),T)){const{onRest:$}=s;Ke(XU,R=>i2(this,t,R));const M=wr(this,al(this,l));yl(this._pendingCalls,M),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var R;s.changed=!w,$==null||$(M,this),w?zn(o.onRest,M):(R=s.onStart)==null||R.call(s,M,this)})}w&&this._set(C),p?n(kS(t.to,t,this._state,this)):T?this._start():Ni(this)&&!h?this._pendingCalls.add(n):n(TS(C))}_focus(e){const t=this.animation;e!==t.to&&(qy(this)&&this._detach(),t.to=e,qy(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;sr(t)&&(As(t,this),eg(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;sr(e)&&oc(e,this)}_set(e,t=!0){const n=Bn(e);if(!ve.und(n)){const r=Pr(this);if(!r||!si(n,r.getValue())){const i=Km(n);!r||r.constructor!=i?lv(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,ol(this,"onStart",wr(this,al(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)),Ni(this)||(t2(this,!0),il(this)||this._resume())}_resume(){Mr.skipAnimation?this.finish():Mf.start(this)}_stop(e,t){if(Ni(this)){t2(this,!1);const n=this.animation;Ke(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ac(this,{type:"idle",parent:this});const r=t?Zo(this.get()):wr(this.get(),al(this,e??n.to));yl(this._pendingCalls,r),n.changed&&(n.changed=!1,ol(this,"onRest",r,this))}}};function al(e,t){const n=lc(t),r=lc(e.get());return si(r,n)}function ES(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&cv(r),a=(i||e).reverse,o=!i||i.reset;return uc({...e,loop:t,default:!1,pause:void 0,to:!a||Xm(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function uc(e){const{to:t,from:n}=e=cv(e),r=new Set;return ve.obj(t)&&r2(t,r),ve.obj(n)&&r2(n,r),e.keys=r.size?Array.from(r):null,e}function KU(e){const t=uc(e);return ve.und(t.default)&&(t.default=Nf(t)),t}function r2(e,t){Yr(e,(n,r)=>n!=null&&t.add(r))}var XU=["onStart","onRest","onChange","onPause","onResume"];function i2(e,t,n){e.animation[n]=t[n]!==xS(t,n)?yS(t[n],e.key):void 0}function ol(e,t,...n){var r,i,a,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(a=e.defaultProps)[t])==null||o.call(a,...n)}var JU=["onStart","onChange","onRest"],QU=1,MS=class{constructor(e,t){this.id=QU++,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];ve.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(uc(e)),this}start(e){let{queue:t}=this;return e?t=Nn(e).map(uc):this.queue=[],this._flush?this._flush(this,t):(IS(this,t),rg(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ke(Nn(t),r=>n[r].stop(!!e))}else cc(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(ve.und(e))this.start({pause:!0});else{const t=this.springs;Ke(Nn(e),n=>t[n].pause())}return this}resume(e){if(ve.und(e))this.start({pause:!1});else{const t=this.springs;Ke(Nn(e),n=>t[n].resume())}return this}each(e){Yr(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,$l(e,([s,l])=>{l.value=this.get(),s(l,this,this._item)}));const a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&$l(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,$l(n,([s,l])=>{l.value=o,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 rg(e,t){return Promise.all(t.map(n=>OS(e,n))).then(n=>uv(e,n))}async function OS(e,t,n){const{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:l}=t,c=ve.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),a===!1&&(t.from=null);const u=ve.arr(i)||ve.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ke(JU,m=>{const g=t[m];if(ve.fun(g)){const y=e._events[m];t[m]=({finished:_,cancelled:w})=>{const C=y.get(g);C?(_||(C.finished=!1),w&&(C.cancelled=!0)):y.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,yl(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||xS(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(SS(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ym,resume:Ym,start(m,g){h?(cc(d,e._lastAsyncId),g(Zo(e))):(m.onRest=s,g(kS(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=uv(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){const m=ES(t,o,i);if(m)return IS(e,[m]),OS(e,m,!0)}return l&&rt.batchedUpdates(()=>l(p,e,e.item)),p}function ig(e,t){const n={...e.springs};return t&&Ke(Nn(t),r=>{ve.und(r.keys)&&(r=uc(r)),ve.obj(r.to)||(r={...r,to:void 0}),DS(n,r,i=>RS(i))}),AS(e,n),n}function AS(e,t){Yr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,As(n,e))})}function RS(e,t){const n=new ZU;return n.key=e,t&&As(n,t),n}function DS(e,t,n){t.keys&&Ke(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function IS(e,t){Ke(t,n=>{DS(e.springs,n,r=>RS(r,e))})}var jS=he.createContext({pause:!1,immediate:!1}),NS=()=>{const e=[],t=function(r){AU();const i=[];return Ke(e,(a,o)=>{if(ve.und(r))i.push(a.start());else{const s=n(r,a,o);s&&i.push(a.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 Ke(e,r=>r.pause(...arguments)),this},t.resume=function(){return Ke(e,r=>r.resume(...arguments)),this},t.set=function(r){Ke(e,(i,a)=>{const o=ve.fun(r)?r(a,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return Ke(e,(a,o)=>{if(ve.und(r))i.push(a.start());else{const s=this._getProps(r,a,o);s&&i.push(a.start(s))}}),i},t.stop=function(){return Ke(e,r=>r.stop(...arguments)),this},t.update=function(r){return Ke(e,(i,a)=>i.update(this._getProps(r,i,a))),this};const n=function(r,i,a){return ve.fun(r)?r(a,i):r};return t._getProps=n,t};function eH(e,t,n){const r=ve.fun(t)&&t;r&&!n&&(n=[]);const i=v.useMemo(()=>r||arguments.length==3?NS():void 0,[]),a=v.useRef(0),o=ov(),s=v.useMemo(()=>({ctrls:[],queue:[],flush(y,_){const w=ig(y,_);return a.current>0&&!s.queue.length&&!Object.keys(w).some(x=>!y.springs[x])?rg(y,_):new Promise(x=>{AS(y,w),s.queue.push(()=>{x(rg(y,_))}),o()})}}),[]),l=v.useRef([...s.ctrls]),c=v.useRef([]),u=Zm(e)||0;v.useMemo(()=>{Ke(l.current.slice(e,u),y=>{Jm(y,i),y.stop(!0)}),l.current.length=e,d(u,e)},[e]),v.useMemo(()=>{d(0,Math.min(u,e))},n);function d(y,_){for(let w=y;w<_;w++){const C=l.current[w]||(l.current[w]=new MS(null,s.flush)),x=r?r(w,C):t[w];x&&(c.current[w]=KU(x))}}const f=l.current.map((y,_)=>ig(y,c.current[_])),h=v.useContext(jS),p=Zm(h),m=h!==p&&wS(h);Oa(()=>{a.current++,s.ctrls=l.current;const{queue:y}=s;y.length&&(s.queue=[],Ke(y,_=>_())),Ke(l.current,(_,w)=>{i==null||i.add(_),m&&_.start({default:h});const C=c.current[w];C&&(_S(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),sv(()=>()=>{Ke(s.ctrls,y=>y.stop(!0))});const g=f.map(y=>({...y}));return i?[g,i]:g}function Xr(e,t){const n=ve.fun(e),[[r],i]=eH(1,n?e:[e],n?[]:t);return n||arguments.length==2?[r,i]:r}function so(e,t,n){const r=ve.fun(t)&&t,{reset:i,sort:a,trail:o=0,expires:s=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():t,f=v.useMemo(()=>r||arguments.length==3?NS():void 0,[]),h=Nn(e),p=[],m=v.useRef(null),g=i?null:m.current;Oa(()=>{m.current=p}),sv(()=>(Ke(p,I=>{f==null||f.add(I.ctrl),I.ctrl.ref=f}),()=>{Ke(m.current,I=>{I.expired&&clearTimeout(I.expirationId),Jm(I.ctrl,f),I.ctrl.stop(!0)})}));const y=nH(h,r?r():t,g),_=i&&m.current||[];Oa(()=>Ke(_,({ctrl:I,item:j,key:A})=>{Jm(I,f),zn(c,j,A)}));const w=[];if(g&&Ke(g,(I,j)=>{I.expired?(clearTimeout(I.expirationId),_.push(I)):(j=w[j]=y.indexOf(I.key),~j&&(p[j]=I))}),Ke(h,(I,j)=>{p[j]||(p[j]={key:y[j],item:I,phase:"mount",ctrl:new MS},p[j].ctrl.item=I)}),w.length){let I=-1;const{leave:j}=r?r():t;Ke(w,(A,O)=>{const L=g[O];~A?(I=p.indexOf(L),p[I]={...L,item:h[A]}):j&&p.splice(++I,0,L)})}ve.fun(a)&&p.sort((I,j)=>a(I.item,j.item));let C=-o;const x=ov(),S=Nf(t),E=new Map,k=v.useRef(new Map),T=v.useRef(!1);Ke(p,(I,j)=>{const A=I.key,O=I.phase,L=r?r():t;let F,P;const W=zn(L.delay||0,A);if(O=="mount")F=L.enter,P="enter";else{const K=y.indexOf(A)<0;if(O!="leave")if(K)F=L.leave,P="leave";else if(F=L.update)P="update";else return;else if(!K)F=L.enter,P="enter";else return}if(F=zn(F,I.item,j),F=ve.obj(F)?cv(F):{to:F},!F.config){const K=d||S.config;F.config=zn(K,I.item,j,P)}C+=o;const H={...S,delay:W+C,ref:u,immediate:L.immediate,reset:!1,...F};if(P=="enter"&&ve.und(H.from)){const K=r?r():t,te=ve.und(K.initial)||g?K.from:K.initial;H.from=zn(te,I.item,j)}const{onResolve:q}=H;H.onResolve=K=>{zn(q,K);const te=m.current,ne=te.find(U=>U.key===A);if(ne&&!(K.cancelled&&ne.phase!="update")&&ne.ctrl.idle){const U=te.every(B=>B.ctrl.idle);if(ne.phase=="leave"){const B=zn(s,ne.item);if(B!==!1){const z=B===!0?0:B;if(ne.expired=!0,!U&&z>0){z<=2147483647&&(ne.expirationId=setTimeout(x,z));return}}}U&&te.some(B=>B.expired)&&(k.current.delete(ne),l&&(T.current=!0),x())}};const Z=ig(I.ctrl,H);P==="leave"&&l?k.current.set(I,{phase:P,springs:Z,payload:H}):E.set(I,{phase:P,springs:Z,payload:H})});const D=v.useContext(jS),$=Zm(D),M=D!==$&&wS(D);Oa(()=>{M&&Ke(p,I=>{I.ctrl.start({default:D})})},[D]),Ke(E,(I,j)=>{if(k.current.size){const A=p.findIndex(O=>O.key===j.key);p.splice(A,1)}}),Oa(()=>{Ke(k.current.size?k.current:E,({phase:I,payload:j},A)=>{const{ctrl:O}=A;A.phase=I,f==null||f.add(O),M&&I=="enter"&&O.start({default:D}),j&&(_S(O,j.ref),(O.ref||f)&&!T.current?O.update(j):(O.start(j),T.current&&(T.current=!1)))})},i?void 0:n);const R=I=>he.createElement(he.Fragment,null,p.map((j,A)=>{const{springs:O}=E.get(j)||j.ctrl,L=I({...O},j.item,j,A),F=ve.str(j.key)||ve.num(j.key)?j.key:j.ctrl.id,P=he.version<"19.0.0",W=(L==null?void 0:L.props)??{},H=P?L==null?void 0:L.ref:W==null?void 0:W.ref;return L&&L.type?he.createElement(L.type,{...W,key:F,ref:H}):L}));return f?[R,f]:R}var tH=1;function nH(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(a=>{const o=r&&r.find(s=>s.item===a&&s.phase!=="leave"&&!i.has(s));return o?(i.add(o),o.key):tH++})}return ve.und(n)?e:ve.fun(n)?e.map(n):Nn(n)}var PS=class extends dv{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=rc(...t);const n=this._get(),r=Km(n);lv(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&&a2(this._active)&&Rp(this)}_get(){const e=ve.arr(this.source)?this.source.map(Bn):Nn(Bn(this.source));return this.calc(...e)}_start(){this.idle&&!a2(this._active)&&(this.idle=!1,Ke(Df(this),e=>{e.done=!1}),Mr.skipAnimation?(rt.batchedUpdates(()=>this.advance()),Rp(this)):Mf.start(this))}_attach(){let e=1;Ke(Nn(this.source),t=>{sr(t)&&As(t,this),eg(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){Ke(Nn(this.source),e=>{sr(e)&&oc(e,this)}),this._active.clear(),Rp(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=Nn(this.source).reduce((t,n)=>Math.max(t,(eg(n)?n.priority:0)+1),0))}};function rH(e){return e.idle!==!1}function a2(e){return!e.size||Array.from(e).every(rH)}function Rp(e){e.idle||(e.idle=!0,Ke(Df(e),t=>{t.done=!0}),ac(e,{type:"idle",parent:e}))}var ta=(e,...t)=>new PS(e,t);Mr.assign({createStringInterpolator:hS,to:(e,t)=>new PS(e,t)});var LS=/^--/;function iH(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!LS.test(e)&&!(Ol.hasOwnProperty(e)&&Ol[e])?t+"px":(""+t).trim()}var o2={};function aH(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:a,scrollTop:o,scrollLeft:s,viewBox:l,...c}=t,u=Object.values(c),d=Object.keys(c).map(f=>n||e.hasAttribute(f)?f:o2[f]||(o2[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));a!==void 0&&(e.textContent=a);for(const f in i)if(i.hasOwnProperty(f)){const h=iH(f,i[f]);LS.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),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),l!==void 0&&e.setAttribute("viewBox",l)}var Ol={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},oH=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),sH=["Webkit","Ms","Moz","O"];Ol=Object.keys(Ol).reduce((e,t)=>(sH.forEach(n=>e[oH(n,t)]=e[t]),e),Ol);var lH=/^(matrix|translate|scale|rotate|skew)/,cH=/^(translate)/,uH=/^(rotate|skew)/,Dp=(e,t)=>ve.num(e)&&e!==0?e+t:e,Wu=(e,t)=>ve.arr(e)?e.every(n=>Wu(n,t)):ve.num(e)?e===t:parseFloat(e)===t,dH=class extends jf{constructor({x:e,y:t,z:n,...r}){const i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(o=>[`translate3d(${o.map(s=>Dp(s,"px")).join(",")})`,Wu(o,0)])),Yr(r,(o,s)=>{if(s==="transform")i.push([o||""]),a.push(l=>[l,l===""]);else if(lH.test(s)){if(delete r[s],ve.und(o))return;const l=cH.test(s)?"px":uH.test(s)?"deg":"";i.push(Nn(o)),a.push(s==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${Dp(f,l)})`,Wu(f,0)]:c=>[`${s}(${c.map(u=>Dp(u,l)).join(",")})`,Wu(c,s.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new fH(i,a)),super(r)}},fH=class extends uS{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 Ke(this.inputs,(n,r)=>{const i=Bn(n[0]),[a,o]=this.transforms[r](ve.arr(i)?i:n.map(Bn));e+=" "+a,t=t&&o}),t?"none":e}observerAdded(e){e==1&&Ke(this.inputs,t=>Ke(t,n=>sr(n)&&As(n,this)))}observerRemoved(e){e==0&&Ke(this.inputs,t=>Ke(t,n=>sr(n)&&oc(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ac(this,e)}},hH=["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:hS,colors:cU});var pH=BU(hH,{applyAnimatedValues:aH,createAnimatedStyle:e=>new dH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Vt=pH.animated;function mH(){this.__data__=[],this.size=0}var gH=mH;function vH(e,t){return e===t||e!==e&&t!==t}var Hc=vH,bH=Hc;function yH(e,t){for(var n=e.length;n--;)if(bH(e[n][0],t))return n;return-1}var Pf=yH,xH=Pf,wH=Array.prototype,_H=wH.splice;function CH(e){var t=this.__data__,n=xH(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():_H.call(t,n,1),--this.size,!0}var SH=CH,TH=Pf;function kH(e){var t=this.__data__,n=TH(t,e);return n<0?void 0:t[n][1]}var $H=kH,EH=Pf;function MH(e){return EH(this.__data__,e)>-1}var OH=MH,AH=Pf;function RH(e,t){var n=this.__data__,r=AH(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DH=RH,IH=gH,jH=SH,NH=$H,PH=OH,LH=DH;function Rs(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])}}Rs.prototype.clear=IH;Rs.prototype.delete=jH;Rs.prototype.get=NH;Rs.prototype.has=PH;Rs.prototype.set=LH;var Lf=Rs,FH=Lf;function BH(){this.__data__=new FH,this.size=0}var zH=BH;function WH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var UH=WH;function HH(e){return this.__data__.get(e)}var VH=HH;function qH(e){return this.__data__.has(e)}var YH=qH,GH=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,FS=GH,ZH=FS,KH=typeof self=="object"&&self&&self.Object===Object&&self,XH=ZH||KH||Function("return this")(),Jr=XH,JH=Jr,QH=JH.Symbol,Ds=QH,s2=Ds,BS=Object.prototype,eV=BS.hasOwnProperty,tV=BS.toString,sl=s2?s2.toStringTag:void 0;function nV(e){var t=eV.call(e,sl),n=e[sl];try{e[sl]=void 0;var r=!0}catch{}var i=tV.call(e);return r&&(t?e[sl]=n:delete e[sl]),i}var rV=nV,iV=Object.prototype,aV=iV.toString;function oV(e){return aV.call(e)}var sV=oV,l2=Ds,lV=rV,cV=sV,uV="[object Null]",dV="[object Undefined]",c2=l2?l2.toStringTag:void 0;function fV(e){return e==null?e===void 0?dV:uV:c2&&c2 in Object(e)?lV(e):cV(e)}var $i=fV;function hV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=hV,pV=$i,mV=Qr,gV="[object AsyncFunction]",vV="[object Function]",bV="[object GeneratorFunction]",yV="[object Proxy]";function xV(e){if(!mV(e))return!1;var t=pV(e);return t==vV||t==bV||t==gV||t==yV}var Ff=xV;const fv=an(Ff);var wV=Jr,_V=wV["__core-js_shared__"],CV=_V,Ip=CV,u2=function(){var e=/[^.]+$/.exec(Ip&&Ip.keys&&Ip.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SV(e){return!!u2&&u2 in e}var TV=SV,kV=Function.prototype,$V=kV.toString;function EV(e){if(e!=null){try{return $V.call(e)}catch{}try{return e+""}catch{}}return""}var zS=EV,MV=Ff,OV=TV,AV=Qr,RV=zS,DV=/[\\^$.*+?()[\]{}|]/g,IV=/^\[object .+?Constructor\]$/,jV=Function.prototype,NV=Object.prototype,PV=jV.toString,LV=NV.hasOwnProperty,FV=RegExp("^"+PV.call(LV).replace(DV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BV(e){if(!AV(e)||OV(e))return!1;var t=MV(e)?FV:IV;return t.test(RV(e))}var zV=BV;function WV(e,t){return e==null?void 0:e[t]}var UV=WV,HV=zV,VV=UV;function qV(e,t){var n=VV(e,t);return HV(n)?n:void 0}var lo=qV,YV=lo,GV=Jr,ZV=YV(GV,"Map"),hv=ZV,KV=lo,XV=KV(Object,"create"),Bf=XV,d2=Bf;function JV(){this.__data__=d2?d2(null):{},this.size=0}var QV=JV;function eq(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tq=eq,nq=Bf,rq="__lodash_hash_undefined__",iq=Object.prototype,aq=iq.hasOwnProperty;function oq(e){var t=this.__data__;if(nq){var n=t[e];return n===rq?void 0:n}return aq.call(t,e)?t[e]:void 0}var sq=oq,lq=Bf,cq=Object.prototype,uq=cq.hasOwnProperty;function dq(e){var t=this.__data__;return lq?t[e]!==void 0:uq.call(t,e)}var fq=dq,hq=Bf,pq="__lodash_hash_undefined__";function mq(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hq&&t===void 0?pq:t,this}var gq=mq,vq=QV,bq=tq,yq=sq,xq=fq,wq=gq;function Is(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])}}Is.prototype.clear=vq;Is.prototype.delete=bq;Is.prototype.get=yq;Is.prototype.has=xq;Is.prototype.set=wq;var _q=Is,f2=_q,Cq=Lf,Sq=hv;function Tq(){this.size=0,this.__data__={hash:new f2,map:new(Sq||Cq),string:new f2}}var kq=Tq;function $q(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Eq=$q,Mq=Eq;function Oq(e,t){var n=e.__data__;return Mq(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zf=Oq,Aq=zf;function Rq(e){var t=Aq(this,e).delete(e);return this.size-=t?1:0,t}var Dq=Rq,Iq=zf;function jq(e){return Iq(this,e).get(e)}var Nq=jq,Pq=zf;function Lq(e){return Pq(this,e).has(e)}var Fq=Lq,Bq=zf;function zq(e,t){var n=Bq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Wq=zq,Uq=kq,Hq=Dq,Vq=Nq,qq=Fq,Yq=Wq;function js(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])}}js.prototype.clear=Uq;js.prototype.delete=Hq;js.prototype.get=Vq;js.prototype.has=qq;js.prototype.set=Yq;var pv=js,Gq=Lf,Zq=hv,Kq=pv,Xq=200;function Jq(e,t){var n=this.__data__;if(n instanceof Gq){var r=n.__data__;if(!Zq||r.length<Xq-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kq(r)}return n.set(e,t),this.size=n.size,this}var Qq=Jq,eY=Lf,tY=zH,nY=UH,rY=VH,iY=YH,aY=Qq;function Ns(e){var t=this.__data__=new eY(e);this.size=t.size}Ns.prototype.clear=tY;Ns.prototype.delete=nY;Ns.prototype.get=rY;Ns.prototype.has=iY;Ns.prototype.set=aY;var Wf=Ns,oY=lo,sY=function(){try{var e=oY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),WS=sY,h2=WS;function lY(e,t,n){t=="__proto__"&&h2?h2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mv=lY,cY=mv,uY=Hc;function dY(e,t,n){(n!==void 0&&!uY(e[t],n)||n===void 0&&!(t in e))&&cY(e,t,n)}var US=dY;function fY(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var hY=fY,pY=hY,mY=pY(),HS=mY,Cd={exports:{}};Cd.exports;(function(e,t){var n=Jr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.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})(Cd,Cd.exports);var VS=Cd.exports,gY=Jr,vY=gY.Uint8Array,qS=vY,p2=qS;function bY(e){var t=new e.constructor(e.byteLength);return new p2(t).set(new p2(e)),t}var gv=bY,yY=gv;function xY(e,t){var n=t?yY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var YS=xY;function wY(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var GS=wY,_Y=Qr,m2=Object.create,CY=function(){function e(){}return function(t){if(!_Y(t))return{};if(m2)return m2(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),SY=CY;function TY(e,t){return function(n){return e(t(n))}}var ZS=TY,kY=ZS,$Y=kY(Object.getPrototypeOf,Object),vv=$Y,EY=Object.prototype;function MY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||EY;return e===n}var bv=MY,OY=SY,AY=vv,RY=bv;function DY(e){return typeof e.constructor=="function"&&!RY(e)?OY(AY(e)):{}}var KS=DY;function IY(e){return e!=null&&typeof e=="object"}var br=IY,jY=$i,NY=br,PY="[object Arguments]";function LY(e){return NY(e)&&jY(e)==PY}var FY=LY,g2=FY,BY=br,XS=Object.prototype,zY=XS.hasOwnProperty,WY=XS.propertyIsEnumerable,UY=g2(function(){return arguments}())?g2:function(e){return BY(e)&&zY.call(e,"callee")&&!WY.call(e,"callee")},Uf=UY,HY=Array.isArray,Jn=HY,VY=9007199254740991;function qY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=VY}var yv=qY,YY=Ff,GY=yv;function ZY(e){return e!=null&&GY(e.length)&&!YY(e)}var Ps=ZY,KY=Ps,XY=br;function JY(e){return XY(e)&&KY(e)}var JS=JY,Sd={exports:{}};function QY(){return!1}var eG=QY;Sd.exports;(function(e,t){var n=Jr,r=eG,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(Sd,Sd.exports);var Hf=Sd.exports,tG=$i,nG=vv,rG=br,iG="[object Object]",aG=Function.prototype,oG=Object.prototype,QS=aG.toString,sG=oG.hasOwnProperty,lG=QS.call(Object);function cG(e){if(!rG(e)||tG(e)!=iG)return!1;var t=nG(e);if(t===null)return!0;var n=sG.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&QS.call(n)==lG}var xv=cG;const wv=an(xv);var uG=$i,dG=yv,fG=br,hG="[object Arguments]",pG="[object Array]",mG="[object Boolean]",gG="[object Date]",vG="[object Error]",bG="[object Function]",yG="[object Map]",xG="[object Number]",wG="[object Object]",_G="[object RegExp]",CG="[object Set]",SG="[object String]",TG="[object WeakMap]",kG="[object ArrayBuffer]",$G="[object DataView]",EG="[object Float32Array]",MG="[object Float64Array]",OG="[object Int8Array]",AG="[object Int16Array]",RG="[object Int32Array]",DG="[object Uint8Array]",IG="[object Uint8ClampedArray]",jG="[object Uint16Array]",NG="[object Uint32Array]",Xt={};Xt[EG]=Xt[MG]=Xt[OG]=Xt[AG]=Xt[RG]=Xt[DG]=Xt[IG]=Xt[jG]=Xt[NG]=!0;Xt[hG]=Xt[pG]=Xt[kG]=Xt[mG]=Xt[$G]=Xt[gG]=Xt[vG]=Xt[bG]=Xt[yG]=Xt[xG]=Xt[wG]=Xt[_G]=Xt[CG]=Xt[SG]=Xt[TG]=!1;function PG(e){return fG(e)&&dG(e.length)&&!!Xt[uG(e)]}var LG=PG;function FG(e){return function(t){return e(t)}}var Ls=FG,Td={exports:{}};Td.exports;(function(e,t){var n=FS,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Td,Td.exports);var Vf=Td.exports,BG=LG,zG=Ls,v2=Vf,b2=v2&&v2.isTypedArray,WG=b2?zG(b2):BG,_v=WG;function UG(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var e6=UG,HG=mv,VG=Hc,qG=Object.prototype,YG=qG.hasOwnProperty;function GG(e,t,n){var r=e[t];(!(YG.call(e,t)&&VG(r,n))||n===void 0&&!(t in e))&&HG(e,t,n)}var Cv=GG,ZG=Cv,KG=mv;function XG(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?KG(n,s,l):ZG(n,s,l)}return n}var Fs=XG;function JG(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var QG=JG,eZ=9007199254740991,tZ=/^(?:0|[1-9]\d*)$/;function nZ(e,t){var n=typeof e;return t=t??eZ,!!t&&(n=="number"||n!="symbol"&&tZ.test(e))&&e>-1&&e%1==0&&e<t}var qf=nZ,rZ=QG,iZ=Uf,aZ=Jn,oZ=Hf,sZ=qf,lZ=_v,cZ=Object.prototype,uZ=cZ.hasOwnProperty;function dZ(e,t){var n=aZ(e),r=!n&&iZ(e),i=!n&&!r&&oZ(e),a=!n&&!r&&!i&&lZ(e),o=n||r||i||a,s=o?rZ(e.length,String):[],l=s.length;for(var c in e)(t||uZ.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||sZ(c,l)))&&s.push(c);return s}var t6=dZ;function fZ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var hZ=fZ,pZ=Qr,mZ=bv,gZ=hZ,vZ=Object.prototype,bZ=vZ.hasOwnProperty;function yZ(e){if(!pZ(e))return gZ(e);var t=mZ(e),n=[];for(var r in e)r=="constructor"&&(t||!bZ.call(e,r))||n.push(r);return n}var xZ=yZ,wZ=t6,_Z=xZ,CZ=Ps;function SZ(e){return CZ(e)?wZ(e,!0):_Z(e)}var Vc=SZ,TZ=Fs,kZ=Vc;function $Z(e){return TZ(e,kZ(e))}var EZ=$Z,y2=US,MZ=VS,OZ=YS,AZ=GS,RZ=KS,x2=Uf,w2=Jn,DZ=JS,IZ=Hf,jZ=Ff,NZ=Qr,PZ=xv,LZ=_v,_2=e6,FZ=EZ;function BZ(e,t,n,r,i,a,o){var s=_2(e,n),l=_2(t,n),c=o.get(l);if(c){y2(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=w2(l),h=!f&&IZ(l),p=!f&&!h&&LZ(l);u=l,f||h||p?w2(s)?u=s:DZ(s)?u=AZ(s):h?(d=!1,u=MZ(l,!0)):p?(d=!1,u=OZ(l,!0)):u=[]:PZ(l)||x2(l)?(u=s,x2(s)?u=FZ(s):(!NZ(s)||jZ(s))&&(u=RZ(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),y2(e,n,u)}var zZ=BZ,WZ=Wf,UZ=US,HZ=HS,VZ=zZ,qZ=Qr,YZ=Vc,GZ=e6;function n6(e,t,n,r,i){e!==t&&HZ(t,function(a,o){if(i||(i=new WZ),qZ(a))VZ(e,t,o,n,n6,r,i);else{var s=r?r(GZ(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),UZ(e,o,s)}},YZ)}var ZZ=n6;function KZ(e){return e}var Yf=KZ;function XZ(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 JZ=XZ,QZ=JZ,C2=Math.max;function eK(e,t,n){return t=C2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=C2(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),QZ(e,this,s)}}var r6=eK;function tK(e){return function(){return e}}var nK=tK,rK=nK,S2=WS,iK=Yf,aK=S2?function(e,t){return S2(e,"toString",{configurable:!0,enumerable:!1,value:rK(t),writable:!0})}:iK,oK=aK,sK=800,lK=16,cK=Date.now;function uK(e){var t=0,n=0;return function(){var r=cK(),i=lK-(r-n);if(n=r,i>0){if(++t>=sK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dK=uK,fK=oK,hK=dK,pK=hK(fK),i6=pK,mK=Yf,gK=r6,vK=i6;function bK(e,t){return vK(gK(e,t,mK),e+"")}var Sv=bK,yK=Hc,xK=Ps,wK=qf,_K=Qr;function CK(e,t,n){if(!_K(n))return!1;var r=typeof t;return(r=="number"?xK(n)&&wK(t,n.length):r=="string"&&t in n)?yK(n[t],e):!1}var a6=CK,SK=Sv,TK=a6;function kK(e){return SK(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&TK(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var $K=kK,EK=ZZ,MK=$K,OK=MK(function(e,t,n){EK(e,t,n)}),AK=OK;const o6=an(AK);var RK=$i,DK=br,IK="[object Symbol]";function jK(e){return typeof e=="symbol"||DK(e)&&RK(e)==IK}var Gf=jK,NK=Jn,PK=Gf,LK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FK=/^\w*$/;function BK(e,t){if(NK(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||PK(e)?!0:FK.test(e)||!LK.test(e)||t!=null&&e in Object(t)}var Tv=BK,s6=pv,zK="Expected a function";function kv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zK);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(kv.Cache||s6),n}kv.Cache=s6;var WK=kv,UK=WK,HK=500;function VK(e){var t=UK(e,function(r){return n.size===HK&&n.clear(),r}),n=t.cache;return t}var qK=VK,YK=qK,GK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZK=/\\(\\)?/g,KK=YK(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(GK,function(n,r,i,a){t.push(i?a.replace(ZK,"$1"):r||n)}),t}),XK=KK;function JK(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 Zf=JK,T2=Ds,QK=Zf,eX=Jn,tX=Gf,k2=T2?T2.prototype:void 0,$2=k2?k2.toString:void 0;function l6(e){if(typeof e=="string")return e;if(eX(e))return QK(e,l6)+"";if(tX(e))return $2?$2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var nX=l6,rX=nX;function iX(e){return e==null?"":rX(e)}var c6=iX,aX=Jn,oX=Tv,sX=XK,lX=c6;function cX(e,t){return aX(e)?e:oX(e,t)?[e]:sX(lX(e))}var Bs=cX,uX=Gf;function dX(e){if(typeof e=="string"||uX(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var zs=dX,fX=Bs,hX=zs;function pX(e,t){t=fX(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[hX(t[n++])];return n&&n==r?e:void 0}var qc=pX,mX=qc;function gX(e,t,n){var r=e==null?void 0:mX(e,t);return r===void 0?n:r}var u6=gX;const Gr=an(u6);var vX=Cv,bX=Bs,yX=qf,E2=Qr,xX=zs;function wX(e,t,n,r){if(!E2(e))return e;t=bX(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=xX(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=E2(u)?u:yX(t[i+1])?[]:{})}vX(s,l,c),s=s[l]}return e}var d6=wX,_X=d6;function CX(e,t,n){return e==null?e:_X(e,t,n)}var SX=CX;const xl=an(SX);function ag(){return ag=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},ag.apply(null,arguments)}function TX(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 kX=["outlineWidth","outlineColor","outlineOpacity"],$X=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,TX(e,kX)},EX=["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"],MX=function(e,t){return ag({},t,e)},OX=function(e,t){var n=o6({},e,t);return EX.forEach(function(r){xl(n,r,MX(Gr(n,r),n.text))}),n},f6=function(e,t){return t?o6({},e,t):e},AX={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}}},RX=function(e){return v.useMemo(function(){return OX(AX,e)},[e])},DX=function(e,t){return v.useMemo(function(){return f6(e,t)},[e,t])},h6=v.createContext(null),IX={},jX=function(e){var t=e.theme,n=t===void 0?IX:t,r=e.children,i=RX(n);return b.jsx(h6.Provider,{value:i,children:r})},Ft=function(){var e=v.useContext(h6);if(e===null)throw new Error("Unable to find the theme, did you forget to wrap your component with ThemeProvider?");return e};function Za(){return Za=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},Za.apply(null,arguments)}var NX=["basic","chip","container","table","tableCell","tableCellValue"],PX={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},M2=function(e,t){return"translate("+e+"px, "+t+"px)"},p6=v.memo(function(e){var t,n=e.position,r=e.anchor,i=e.children,a=Ft(),o=Fn(),s=o.animate,l=o.config,c=Bae(),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]),y=Math.round(n[1]);m&&(r==="top"?(g-=d.width/2,y-=d.height+14):r==="right"?(g+=14,y-=d.height/2):r==="bottom"?(g-=d.width/2,y+=14):r==="left"?(g-=d.width+14,y-=d.height/2):r==="center"&&(g-=d.width/2,y-=d.height/2),h={transform:M2(g,y)},f.current||(p=!0),f.current=[g,y]);var _=Xr({to:h,config:l,immediate:!s||p}),w=a.tooltip;w.basic,w.chip,w.container,w.table,w.tableCell,w.tableCellValue;var C=function(S,E){if(S==null)return{};var k={};for(var T in S)if({}.hasOwnProperty.call(S,T)){if(E.indexOf(T)!==-1)continue;k[T]=S[T]}return k}(w,NX),x=Za({},PX,C,{transform:(t=_.transform)!=null?t:M2(g,y),opacity:_.transform?1:0});return b.jsx(Vt.div,{ref:u,style:x,children:i})});p6.displayName="TooltipWrapper";var m6=v.memo(function(e){var t=e.size,n=t===void 0?12:t,r=e.color,i=e.style;return b.jsx("span",{style:Za({display:"block",width:n,height:n,background:r},i===void 0?{}:i)})}),$v=v.memo(function(e){var t,n=e.id,r=e.value,i=e.format,a=e.enableChip,o=a!==void 0&&a,s=e.color,l=e.renderContent,c=Ft(),u=ys(i);if(typeof l=="function")t=l();else{var d=r;u!==void 0&&d!==void 0&&(d=u(d)),t=b.jsxs("div",{style:c.tooltip.basic,children:[o&&b.jsx(m6,{color:s,style:c.tooltip.chip}),d!==void 0?b.jsxs("span",{children:[n,": ",b.jsx("strong",{children:""+d})]}):n]})}return b.jsx("div",{style:c.tooltip.container,role:"tooltip",children:t})}),LX={width:"100%",borderCollapse:"collapse"},g6=v.memo(function(e){var t,n=e.title,r=e.rows,i=r===void 0?[]:r,a=e.renderContent,o=Ft();return i.length?(t=typeof a=="function"?a():b.jsxs("div",{children:[n&&n,b.jsx("table",{style:Za({},LX,o.tooltip.table),children:b.jsx("tbody",{children:i.map(function(s,l){return b.jsx("tr",{children:s.map(function(c,u){return b.jsx("td",{style:o.tooltip.tableCell,children:c},u)})},l)})})})]}),b.jsx("div",{style:o.tooltip.container,children:t})):null});g6.displayName="TableTooltip";var og=v.memo(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,a=Ft(),o=Fn(),s=o.animate,l=o.config,c=v.useMemo(function(){return Za({},a.crosshair.line,{pointerEvents:"none"})},[a.crosshair.line]),u=Xr({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return b.jsx(Vt.line,Za({},u,{fill:"none",style:c}))});og.displayName="CrosshairLine";var sg=v.memo(function(e){var t,n,r=e.width,i=e.height,a=e.type,o=e.x,s=e.y;return a==="cross"?(t={x0:o,x1:o,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):a==="top-left"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:0,x1:o,y0:s,y1:s}):a==="top"?t={x0:o,x1:o,y0:0,y1:s}:a==="top-right"?(t={x0:o,x1:o,y0:0,y1:s},n={x0:o,x1:r,y0:s,y1:s}):a==="right"?n={x0:o,x1:r,y0:s,y1:s}:a==="bottom-right"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:o,x1:r,y0:s,y1:s}):a==="bottom"?t={x0:o,x1:o,y0:s,y1:i}:a==="bottom-left"?(t={x0:o,x1:o,y0:s,y1:i},n={x0:0,x1:o,y0:s,y1:s}):a==="left"?n={x0:0,x1:o,y0:s,y1:s}:a==="x"?t={x0:o,x1:o,y0:0,y1:i}:a==="y"&&(n={x0:0,x1:r,y0:s,y1:s}),b.jsxs(b.Fragment,{children:[t&&b.jsx(og,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&b.jsx(og,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});sg.displayName="Crosshair";var v6=v.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),lg={isVisible:!1,position:[null,null],content:null,anchor:null},b6=v.createContext(lg),FX=function(e){var t=v.useState(lg),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]),a=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,y=(m-u.top)*f;c!=="left"&&c!=="right"||(c=g<u.width/2?"right":"left"),r({isVisible:!0,position:[g,y],anchor:c,content:s})},[e,r]),o=v.useCallback(function(){r(lg)},[r]);return{actions:v.useMemo(function(){return{showTooltipAt:i,showTooltipFromEvent:a,hideTooltip:o}},[i,a,o]),state:n}},Ei=function(){var e=v.useContext(v6);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},BX=function(){var e=v.useContext(b6);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},zX=function(e){return e.isVisible},WX=function(){var e=BX();return zX(e)?b.jsx(p6,{position:e.position,anchor:e.anchor,children:e.content}):null},UX=function(e){var t=e.container,n=e.children,r=FX(t),i=r.actions,a=r.state;return b.jsx(v6.Provider,{value:i,children:b.jsx(b6.Provider,{value:a,children:n})})},HX=$i,VX=Jn,qX=br,YX="[object String]";function GX(e){return typeof e=="string"||!VX(e)&&qX(e)&&HX(e)==YX}var ZX=GX;const KX=an(ZX);let fr;typeof window<"u"?fr=window:typeof self<"u"?fr=self:fr=global;let cg=null,ug=null;const O2=20,jp=fr.clearTimeout,A2=fr.setTimeout,Np=fr.cancelAnimationFrame||fr.mozCancelAnimationFrame||fr.webkitCancelAnimationFrame,R2=fr.requestAnimationFrame||fr.mozRequestAnimationFrame||fr.webkitRequestAnimationFrame;Np==null||R2==null?(cg=jp,ug=function(t){return A2(t,O2)}):(cg=function([t,n]){Np(t),jp(n)},ug=function(t){const n=R2(function(){jp(r),t()}),r=A2(function(){Np(n),t()},O2);return[n,r]});function XX(e){let t,n,r,i,a,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(y){const _=y.__resizeTriggers__,w=_.firstElementChild,C=_.lastElementChild,x=w.firstElementChild;C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight,x.style.width=w.offsetWidth+1+"px",x.style.height=w.offsetHeight+1+"px",w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight},a=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},s=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const _=this;o(this),this.__resizeRAF__&&cg(this.__resizeRAF__),this.__resizeRAF__=ug(function(){a(_)&&(_.__resizeLast__.width=_.offsetWidth,_.__resizeLast__.height=_.offsetHeight,_.__resizeListeners__.forEach(function(x){x.call(_,y)}))})};let f=!1,h="";r="animationstart";const p="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(f=!0),f===!1){for(let _=0;_<p.length;_++)if(y.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=fr.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 y=p.createElement("div");y.className="contract-trigger",f.__resizeTriggers__.appendChild(g),f.__resizeTriggers__.appendChild(y),f.appendChild(f.__resizeTriggers__),o(f),f.addEventListener("scroll",s,!0),r&&(f.__resizeTriggers__.__animationListener__=function(w){w.animationName===n&&o(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 JX 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 a=window.getComputedStyle(this._parentNode)||{},o=parseFloat(a.paddingLeft||"0"),s=parseFloat(a.paddingRight||"0"),l=parseFloat(a.paddingTop||"0"),c=parseFloat(a.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-o-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=XX(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:a=!1,doNotBailOutOnEmptyChildren:o=!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),a||(h===0&&(g=!0),p.width=0,m.width=h,m.scaledWidth=h),o&&(g=!1),v.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!g&&t(m))}}function Kf(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ev(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ws(){}var Ka=.7,gs=1/Ka,Ko="\\s*([+-]?\\d+)\\s*",dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QX=/^#([0-9a-f]{3,8})$/,eJ=new RegExp(`^rgb\\(${Ko},${Ko},${Ko}\\)$`),tJ=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),nJ=new RegExp(`^rgba\\(${Ko},${Ko},${Ko},${dc}\\)$`),rJ=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${dc}\\)$`),iJ=new RegExp(`^hsl\\(${dc},${Wr},${Wr}\\)$`),aJ=new RegExp(`^hsla\\(${dc},${Wr},${Wr},${dc}\\)$`),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};Kf(Ws,fc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:I2,formatHex:I2,formatHex8:oJ,formatHsl:sJ,formatRgb:j2,toString:j2});function I2(){return this.rgb().formatHex()}function oJ(){return this.rgb().formatHex8()}function sJ(){return x6(this).formatHsl()}function j2(){return this.rgb().formatRgb()}function fc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=QX.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?N2(t):n===3?new Mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_u(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_u(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=eJ.exec(e))?new Mn(t[1],t[2],t[3],1):(t=tJ.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nJ.exec(e))?_u(t[1],t[2],t[3],t[4]):(t=rJ.exec(e))?_u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iJ.exec(e))?F2(t[1],t[2]/100,t[3]/100,1):(t=aJ.exec(e))?F2(t[1],t[2]/100,t[3]/100,t[4]):D2.hasOwnProperty(e)?N2(D2[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function N2(e){return new Mn(e>>16&255,e>>8&255,e&255,1)}function _u(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function y6(e){return e instanceof Ws||(e=fc(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function vs(e,t,n,r){return arguments.length===1?y6(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}Kf(Mn,vs,Ev(Ws,{brighter(e){return e=e==null?gs:Math.pow(gs,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ka:Math.pow(Ka,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mn(Fa(this.r),Fa(this.g),Fa(this.b),kd(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:P2,formatHex:P2,formatHex8:lJ,formatRgb:L2,toString:L2}));function P2(){return`#${Aa(this.r)}${Aa(this.g)}${Aa(this.b)}`}function lJ(){return`#${Aa(this.r)}${Aa(this.g)}${Aa(this.b)}${Aa((isNaN(this.opacity)?1:this.opacity)*255)}`}function L2(){const e=kd(this.opacity);return`${e===1?"rgb(":"rgba("}${Fa(this.r)}, ${Fa(this.g)}, ${Fa(this.b)}${e===1?")":`, ${e})`}`}function kd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Aa(e){return e=Fa(e),(e<16?"0":"")+e.toString(16)}function F2(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _r(e,t,n,r)}function x6(e){if(e instanceof _r)return new _r(e.h,e.s,e.l,e.opacity);if(e instanceof Ws||(e=fc(e)),!e)return new _r;if(e instanceof _r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new _r(o,s,l,e.opacity)}function cJ(e,t,n,r){return arguments.length===1?x6(e):new _r(e,t,n,r??1)}function _r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kf(_r,cJ,Ev(Ws,{brighter(e){return e=e==null?gs:Math.pow(gs,e),new _r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ka:Math.pow(Ka,e),new _r(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(Pp(e>=240?e-240:e+120,i,r),Pp(e,i,r),Pp(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _r(B2(this.h),Cu(this.s),Cu(this.l),kd(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=kd(this.opacity);return`${e===1?"hsl(":"hsla("}${B2(this.h)}, ${Cu(this.s)*100}%, ${Cu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function B2(e){return e=(e||0)%360,e<0?e+360:e}function Cu(e){return Math.max(0,Math.min(1,e||0))}function Pp(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 uJ=Math.PI/180,dJ=180/Math.PI;var w6=-.14861,Mv=1.78277,Ov=-.29227,Xf=-.90649,hc=1.97294,z2=hc*Xf,W2=hc*Mv,U2=Mv*Ov-Xf*w6;function fJ(e){if(e instanceof Ba)return new Ba(e.h,e.s,e.l,e.opacity);e instanceof Mn||(e=y6(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(U2*r+z2*t-W2*n)/(U2+z2-W2),a=r-i,o=(hc*(n-i)-Ov*a)/Xf,s=Math.sqrt(o*o+a*a)/(hc*i*(1-i)),l=s?Math.atan2(o,a)*dJ-120:NaN;return new Ba(l<0?l+360:l,s,i,e.opacity)}function Zr(e,t,n,r){return arguments.length===1?fJ(e):new Ba(e,t,n,r??1)}function Ba(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Kf(Ba,Zr,Ev(Ws,{brighter(e){return e=e==null?gs:Math.pow(gs,e),new Ba(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ka:Math.pow(Ka,e),new Ba(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*uJ,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*(w6*r+Mv*i)),255*(t+n*(Ov*r+Xf*i)),255*(t+n*(hc*r)),this.opacity)}}));function hJ(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function pJ(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return hJ((n-r/t)*t,o,i,a,s)}}const Jf=e=>()=>e;function _6(e,t){return function(n){return e+n*t}}function mJ(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 gJ(e,t){var n=t-e;return n?_6(e,n>180||n<-180?n-360*Math.round(n/360):n):Jf(isNaN(e)?t:e)}function vJ(e){return(e=+e)==1?Xo:function(t,n){return n-t?mJ(t,n,e):Jf(isNaN(t)?n:t)}}function Xo(e,t){var n=t-e;return n?_6(e,n):Jf(isNaN(e)?t:e)}const H2=function e(t){var n=vJ(t);function r(i,a){var o=n((i=vs(i)).r,(a=vs(a)).r),s=n(i.g,a.g),l=n(i.b,a.b),c=Xo(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function bJ(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=vs(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(l){return s.r=r(l),s.g=i(l),s.b=a(l),s+""}}}var yJ=bJ(pJ);function xJ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function wJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function _J(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Av(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function CJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function pc(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function SJ(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]=Av(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var dg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Lp=new RegExp(dg.source,"g");function TJ(e){return function(){return e}}function kJ(e){return function(t){return e(t)+""}}function C6(e,t){var n=dg.lastIndex=Lp.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(r=dg.exec(e))&&(i=Lp.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:pc(r,i)})),n=Lp.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?kJ(l[0].x):TJ(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 Av(e,t){var n=typeof t,r;return t==null||n==="boolean"?Jf(t):(n==="number"?pc:n==="string"?(r=fc(t))?(t=r,H2):C6:t instanceof fc?H2:t instanceof Date?CJ:wJ(t)?xJ:Array.isArray(t)?_J:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?SJ:pc)(e,t)}function S6(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function T6(e){return function t(n){n=+n;function r(i,a){var o=e((i=Zr(i)).h,(a=Zr(a)).h),s=Xo(i.s,a.s),l=Xo(i.l,a.l),c=Xo(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=t,r}(1)}T6(gJ);var Rv=T6(Xo),$J="__lodash_hash_undefined__";function EJ(e){return this.__data__.set(e,$J),this}var MJ=EJ;function OJ(e){return this.__data__.has(e)}var AJ=OJ,RJ=pv,DJ=MJ,IJ=AJ;function $d(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new RJ;++t<n;)this.add(e[t])}$d.prototype.add=$d.prototype.push=DJ;$d.prototype.has=IJ;var Dv=$d;function jJ(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var NJ=jJ;function PJ(e){return e!==e}var LJ=PJ;function FJ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var BJ=FJ,zJ=NJ,WJ=LJ,UJ=BJ;function HJ(e,t,n){return t===t?UJ(e,t,n):zJ(e,WJ,n)}var VJ=HJ,qJ=VJ;function YJ(e,t){var n=e==null?0:e.length;return!!n&&qJ(e,t,0)>-1}var k6=YJ;function GJ(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 $6=GJ;function ZJ(e,t){return e.has(t)}var Iv=ZJ,KJ=Dv,XJ=k6,JJ=$6,QJ=Zf,eQ=Ls,tQ=Iv,nQ=200;function rQ(e,t,n,r){var i=-1,a=XJ,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=QJ(t,eQ(n))),r?(a=JJ,o=!1):t.length>=nQ&&(a=tQ,o=!1,t=new KJ(t));e:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else a(t,d,r)||l.push(u)}return l}var iQ=rQ,aQ=iQ,oQ=Sv,sQ=JS,lQ=oQ(function(e,t){return sQ(e)?aQ(e,t):[]}),cQ=lQ;const E6=an(cQ);function yt(e){return function(){return e}}const V2=Math.abs,Tn=Math.atan2,ya=Math.cos,uQ=Math.max,Fp=Math.min,Nr=Math.sin,zo=Math.sqrt,$n=1e-12,mc=Math.PI,Ed=mc/2,Uu=2*mc;function dQ(e){return e>1?0:e<-1?mc:Math.acos(e)}function q2(e){return e>=1?Ed:e<=-1?-Ed:Math.asin(e)}const fg=Math.PI,hg=2*fg,Ca=1e-6,fQ=hg-Ca;function M6(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hQ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return M6;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let pQ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?M6:hQ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=r-t,c=i-n,u=o-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>Ca)if(!(Math.abs(d*l-c*u)>Ca)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=i-s,m=l*l+c*c,g=h*h+p*p,y=Math.sqrt(m),_=Math.sqrt(f),w=a*Math.tan((fg-Math.acos((m+f-g)/(2*y*_)))/2),C=w/_,x=w/y;Math.abs(C-1)>Ca&&this._append`L${t+C*u},${n+C*d}`,this._append`A${a},${a},0,0,${+(d*h>u*p)},${this._x1=t+x*l},${this._y1=n+x*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),c=t+s,u=n+l,d=1^o,f=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ca||Math.abs(this._y1-u)>Ca)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%hg+hg),f>fQ?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>Ca&&this._append`A${r},${r},0,${+(f>=fg)},${d},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jv(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 pQ(t)}function mQ(e){return e.innerRadius}function gQ(e){return e.outerRadius}function vQ(e){return e.startAngle}function bQ(e){return e.endAngle}function yQ(e){return e&&e.padAngle}function xQ(e,t,n,r,i,a,o,s){var l=n-e,c=r-t,u=o-i,d=s-a,f=d*l-u*c;if(!(f*f<$n))return f=(u*(t-a)-d*(e-i))/f,[e+f*l,t+f*c]}function Su(e,t,n,r,i,a,o){var s=e-n,l=t-r,c=(o?a:-a)/zo(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,y=(h+m)/2,_=p-f,w=m-h,C=_*_+w*w,x=i-a,S=f*m-p*h,E=(w<0?-1:1)*zo(uQ(0,x*x*C-S*S)),k=(S*w-_*E)/C,T=(-S*_-w*E)/C,D=(S*w+_*E)/C,$=(-S*_+w*E)/C,M=k-g,R=T-y,I=D-g,j=$-y;return M*M+R*R>I*I+j*j&&(k=D,T=$),{cx:k,cy:T,x01:-u,y01:-d,x11:k*(i/x-1),y11:T*(i/x-1)}}function wQ(){var e=mQ,t=gQ,n=yt(0),r=null,i=vQ,a=bQ,o=yQ,s=null,l=jv(c);function c(){var u,d,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-Ed,m=a.apply(this,arguments)-Ed,g=V2(m-p),y=m>p;if(s||(s=u=l()),h<f&&(d=h,h=f,f=d),!(h>$n))s.moveTo(0,0);else if(g>Uu-$n)s.moveTo(h*ya(p),h*Nr(p)),s.arc(0,0,h,p,m,!y),f>$n&&(s.moveTo(f*ya(m),f*Nr(m)),s.arc(0,0,f,m,p,y));else{var _=p,w=m,C=p,x=m,S=g,E=g,k=o.apply(this,arguments)/2,T=k>$n&&(r?+r.apply(this,arguments):zo(f*f+h*h)),D=Fp(V2(h-f)/2,+n.apply(this,arguments)),$=D,M=D,R,I;if(T>$n){var j=q2(T/f*Nr(k)),A=q2(T/h*Nr(k));(S-=j*2)>$n?(j*=y?1:-1,C+=j,x-=j):(S=0,C=x=(p+m)/2),(E-=A*2)>$n?(A*=y?1:-1,_+=A,w-=A):(E=0,_=w=(p+m)/2)}var O=h*ya(_),L=h*Nr(_),F=f*ya(x),P=f*Nr(x);if(D>$n){var W=h*ya(w),H=h*Nr(w),q=f*ya(C),Z=f*Nr(C),K;if(g<mc)if(K=xQ(O,L,q,Z,W,H,F,P)){var te=O-K[0],ne=L-K[1],U=W-K[0],B=H-K[1],z=1/Nr(dQ((te*U+ne*B)/(zo(te*te+ne*ne)*zo(U*U+B*B)))/2),V=zo(K[0]*K[0]+K[1]*K[1]);$=Fp(D,(f-V)/(z-1)),M=Fp(D,(h-V)/(z+1))}else $=M=0}E>$n?M>$n?(R=Su(q,Z,O,L,h,M,y),I=Su(W,H,F,P,h,M,y),s.moveTo(R.cx+R.x01,R.cy+R.y01),M<D?s.arc(R.cx,R.cy,M,Tn(R.y01,R.x01),Tn(I.y01,I.x01),!y):(s.arc(R.cx,R.cy,M,Tn(R.y01,R.x01),Tn(R.y11,R.x11),!y),s.arc(0,0,h,Tn(R.cy+R.y11,R.cx+R.x11),Tn(I.cy+I.y11,I.cx+I.x11),!y),s.arc(I.cx,I.cy,M,Tn(I.y11,I.x11),Tn(I.y01,I.x01),!y))):(s.moveTo(O,L),s.arc(0,0,h,_,w,!y)):s.moveTo(O,L),!(f>$n)||!(S>$n)?s.lineTo(F,P):$>$n?(R=Su(F,P,W,H,f,-$,y),I=Su(O,L,q,Z,f,-$,y),s.lineTo(R.cx+R.x01,R.cy+R.y01),$<D?s.arc(R.cx,R.cy,$,Tn(R.y01,R.x01),Tn(I.y01,I.x01),!y):(s.arc(R.cx,R.cy,$,Tn(R.y01,R.x01),Tn(R.y11,R.x11),!y),s.arc(0,0,f,Tn(R.cy+R.y11,R.cx+R.x11),Tn(I.cy+I.y11,I.cx+I.x11),y),s.arc(I.cx,I.cy,$,Tn(I.y11,I.x11),Tn(I.y01,I.x01),!y))):s.arc(0,0,f,x,C,y)}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)+ +a.apply(this,arguments))/2-mc/2;return[ya(d)*u,Nr(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?(a=typeof u=="function"?u:yt(+u),c):a},c.padAngle=function(u){return arguments.length?(o=typeof u=="function"?u:yt(+u),c):o},c.context=function(u){return arguments.length?(s=u??null,c):s},c}function Qf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function O6(e){this._context=e}O6.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 Nv(e){return new O6(e)}function A6(e){return e[0]}function R6(e){return e[1]}function Pv(e,t){var n=yt(!0),r=null,i=Nv,a=null,o=jv(s);e=typeof e=="function"?e:e===void 0?A6:yt(e),t=typeof t=="function"?t:t===void 0?R6:yt(t);function s(l){var c,u=(l=Qf(l)).length,d,f=!1,h;for(r==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,c,l),+t(d,c,l));if(h)return a=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&&(a=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),s):r},s}function _Q(e,t,n){var r=null,i=yt(!0),a=null,o=Nv,s=null,l=jv(c);e=typeof e=="function"?e:e===void 0?A6:yt(+e),t=typeof t=="function"?t:yt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?R6:yt(+n);function c(d){var f,h,p,m=(d=Qf(d)).length,g,y=!1,_,w=new Array(m),C=new Array(m);for(a==null&&(s=o(_=l())),f=0;f<=m;++f){if(!(f<m&&i(g=d[f],f,d))===y)if(y=!y)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()}y&&(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 Pv().defined(i).curve(o).context(a)}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?(o=d,a!=null&&(s=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=s=null:s=o(a=d),c):a},c}function CQ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function SQ(e){return e}function TQ(){var e=SQ,t=CQ,n=null,r=yt(0),i=yt(Uu),a=yt(0);function o(s){var l,c=(s=Qf(s)).length,u,d,f=0,h=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(Uu,Math.max(-Uu,i.apply(this,arguments)-m)),y,_=Math.min(Math.abs(g)/c,a.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(x,S){return t(p[x],p[S])}):n!=null&&h.sort(function(x,S){return n(s[x],s[S])}),l=0,d=f?(g-c*w)/f:0;l<c;++l,m=y)u=h[l],C=p[u],y=m+(C>0?C*d:0)+w,p[u]={data:s[u],index:l,value:C,startAngle:m,endAngle:y,padAngle:_};return p}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:yt(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:yt(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:yt(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:yt(+s),o):a},o}function na(){}function Md(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 eh(e){this._context=e}eh.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:Md(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:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kQ(e){return new eh(e)}function D6(e){this._context=e}D6.prototype={areaStart:na,areaEnd:na,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:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $Q(e){return new D6(e)}function I6(e){this._context=e}I6.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:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function EQ(e){return new I6(e)}function j6(e,t){this._basis=new eh(e),this._beta=t}j6.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const MQ=function e(t){function n(r){return t===1?new eh(r):new j6(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Od(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 Lv(e,t){this._context=e,this._k=(1-t)/6}Lv.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:Od(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:Od(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 OQ=function e(t){function n(r){return new Lv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Fv(e,t){this._context=e,this._k=(1-t)/6}Fv.prototype={areaStart:na,areaEnd:na,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:Od(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 AQ=function e(t){function n(r){return new Fv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Bv(e,t){this._context=e,this._k=(1-t)/6}Bv.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:Od(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 RQ=function e(t){function n(r){return new Bv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function zv(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=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);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function N6(e,t){this._context=e,this._alpha=t}N6.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:zv(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 DQ=function e(t){function n(r){return t?new N6(r,t):new Lv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function P6(e,t){this._context=e,this._alpha=t}P6.prototype={areaStart:na,areaEnd:na,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:zv(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 IQ=function e(t){function n(r){return t?new P6(r,t):new Fv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function L6(e,t){this._context=e,this._alpha=t}L6.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:zv(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 jQ=function e(t){function n(r){return t?new L6(r,t):new Bv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function F6(e){this._context=e}F6.prototype={areaStart:na,areaEnd:na,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 NQ(e){return new F6(e)}function Y2(e){return e<0?-1:1}function G2(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Y2(a)+Y2(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Z2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Bp(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Ad(e){this._context=e}Ad.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:Bp(this,this._t0,Z2(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,Bp(this,Z2(this,n=G2(this,e,t)),n);break;default:Bp(this,this._t0,n=G2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function B6(e){this._context=new z6(e)}(B6.prototype=Object.create(Ad.prototype)).point=function(e,t){Ad.prototype.point.call(this,t,e)};function z6(e){this._context=e}z6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function PQ(e){return new Ad(e)}function LQ(e){return new B6(e)}function W6(e){this._context=e}W6.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=K2(e),i=K2(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function K2(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function FQ(e){return new W6(e)}function th(e,t){this._context=e,this._t=t}th.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 BQ(e){return new th(e,.5)}function zQ(e){return new th(e,0)}function WQ(e){return new th(e,1)}function X2(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function J2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function UQ(e,t){return e[t]}function HQ(e){const t=[];return t.key=e,t}function VQ(){var e=yt([]),t=J2,n=X2,r=UQ;function i(a){var o=Array.from(e.apply(this,arguments),HQ),s,l=o.length,c=-1,u;for(const d of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+r(d,o[s].key,c,a)]).data=d;for(s=0,u=Qf(t(o));s<l;++s)o[u[s]].index=s;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:yt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:yt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?J2:typeof a=="function"?a:yt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??X2,i):n},i}function qQ(e,t){if((l=e.length)>0)for(var n,r=0,i,a,o,s,l,c=e[t[0]].length;r<c;++r)for(o=s=0,n=0;n<l;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=s,i[0]=s+=a):(i[0]=0,i[1]=a)}function Hu(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function YQ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wv(e){let t,n,r;e.length!==2?(t=Hu,n=(s,l)=>Hu(e(s),l),r=(s,l)=>e(s)-l):(t=e===Hu||e===YQ?e:GQ,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 a(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){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:o,right:a}}function GQ(){return 0}function ZQ(e){return e===null?NaN:+e}const KQ=Wv(Hu),XQ=KQ.right;Wv(ZQ).center;class Q2 extends Map{constructor(t,n=eee){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(ex(this,t))}has(t){return super.has(ex(this,t))}set(t,n){return super.set(JQ(this,t),n)}delete(t){return super.delete(QQ(this,t))}}function ex({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function JQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function QQ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function eee(e){return e!==null&&typeof e=="object"?e.valueOf():e}const tee=Math.sqrt(50),nee=Math.sqrt(10),ree=Math.sqrt(2);function Rd(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=tee?10:a>=nee?5:a>=ree?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,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)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Rd(e,t,n*2):[s,l,c]}function pg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Rd(t,e,n):Rd(e,t,n);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function mg(e,t,n){return t=+t,e=+e,n=+n,Rd(e,t,n)[2]}function gg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?mg(t,e,n):mg(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function iee(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function co(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const tx=Symbol("implicit");function Ra(){var e=new Q2,t=[],n=[],r=tx;function i(a){let o=e.get(a);if(o===void 0){if(r!==tx)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Q2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Ra(t,n).unknown(r)},co.apply(i,arguments),i}function Uv(){var e=Ra().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,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;a=(m-p)/Math.max(1,f-l+c*2),s&&(a=Math.floor(a)),p+=(m-p-a*(f-l))*u,o=a*(1-l),s&&(p=Math.round(p),o=Math.round(o));var g=iee(f).map(function(y){return p+a*y});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 o},e.step=function(){return a},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 Uv(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},co.apply(d(),arguments)}function U6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return U6(t())},e}function aee(){return U6(Uv.apply(null,arguments).paddingInner(1))}function oee(e){return function(){return e}}function see(e){return+e}var nx=[0,1];function Wo(e){return e}function vg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:oee(isNaN(t)?NaN:.5)}function lee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function cee(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=vg(i,r),a=n(o,a)):(r=vg(r,i),a=n(a,o)),function(s){return a(r(s))}}function uee(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=vg(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var l=XQ(e,s,1,r)-1;return a[l](i[l](s))}}function nh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Hv(){var e=nx,t=nx,n=Av,r,i,a,o=Wo,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==Wo&&(o=lee(e[0],e[f-1])),s=f>2?uee:cee,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?a:(l||(l=s(e.map(r),t,n)))(r(o(f)))}return d.invert=function(f){return o(i((c||(c=s(t,e.map(r),pc)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,see),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=S6,u()},d.clamp=function(f){return arguments.length?(o=f?!0:Wo,u()):o!==Wo},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(a=f,d):a},function(f,h){return r=f,i=h,u()}}function H6(){return Hv()(Wo,Wo)}function dee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Dd(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 bs(e){return e=Dd(Math.abs(e)),e?e[1]:NaN}function fee(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function hee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var pee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gc(e){if(!(t=pee.exec(e)))throw new Error("invalid format: "+e);var t;return new Vv({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]})}gc.prototype=Vv.prototype;function Vv(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+""}Vv.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 mee(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 V6;function gee(e,t){var n=Dd(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(V6=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Dd(e,Math.max(0,t+a-1))[0]}function rx(e,t){var n=Dd(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 ix={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:dee,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 rx(e*100,t)},r:rx,s:gee,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function ax(e){return e}var ox=Array.prototype.map,sx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function vee(e){var t=e.grouping===void 0||e.thousands===void 0?ax:fee(ox.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+"",a=e.numerals===void 0?ax:hee(ox.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=gc(d);var f=d.fill,h=d.align,p=d.sign,m=d.symbol,g=d.zero,y=d.width,_=d.comma,w=d.precision,C=d.trim,x=d.type;x==="n"?(_=!0,x="g"):ix[x]||(w===void 0&&(w=12),C=!0,x="g"),(g||f==="0"&&h==="=")&&(g=!0,f="0",h="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",E=m==="$"?r:/[%p]/.test(x)?o:"",k=ix[x],T=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D($){var M=S,R=E,I,j,A;if(x==="c")R=k($)+R,$="";else{$=+$;var O=$<0||1/$<0;if($=isNaN($)?l:k(Math.abs($),w),C&&($=mee($)),O&&+$==0&&p!=="+"&&(O=!1),M=(O?p==="("?p:s:p==="-"||p==="("?"":p)+M,R=(x==="s"?sx[8+V6/3]:"")+R+(O&&p==="("?")":""),T){for(I=-1,j=$.length;++I<j;)if(A=$.charCodeAt(I),48>A||A>57){R=(A===46?i+$.slice(I+1):$.slice(I))+R,$=$.slice(0,I);break}}}_&&!g&&($=t($,1/0));var L=M.length+$.length+R.length,F=L<y?new Array(y-L+1).join(f):"";switch(_&&g&&($=t(F+$,F.length?y-R.length:1/0),F=""),h){case"<":$=M+$+R+F;break;case"=":$=M+F+$+R;break;case"^":$=F.slice(0,L=F.length>>1)+M+$+R+F.slice(L);break;default:$=F+M+$+R;break}return a($)}return D.toString=function(){return d+""},D}function u(d,f){var h=c((d=gc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(bs(f)/3)))*3,m=Math.pow(10,-p),g=sx[8+p/3];return function(y){return h(m*y)+g}}return{format:c,formatPrefix:u}}var Tu,Yc,q6;bee({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function bee(e){return Tu=vee(e),Yc=Tu.format,q6=Tu.formatPrefix,Tu}function yee(e){return Math.max(0,-bs(Math.abs(e)))}function xee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(bs(t)/3)))*3-bs(Math.abs(e)))}function wee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bs(t)-bs(e))+1}function _ee(e,t,n,r){var i=gg(e,t,n),a;switch(r=gc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=xee(i,o))&&(r.precision=a),q6(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=wee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=yee(i))&&(r.precision=a-(r.type==="%")*2);break}}return Yc(r)}function Y6(e){var t=e.domain;return e.ticks=function(n){var r=t();return pg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return _ee(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=mg(o,s,n),c===l)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function Id(){var e=H6();return e.copy=function(){return nh(e,Id())},co.apply(e,arguments),Y6(e)}function G6(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function lx(e){return Math.log(e)}function cx(e){return Math.exp(e)}function Cee(e){return-Math.log(-e)}function See(e){return-Math.exp(-e)}function Tee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function kee(e){return e===10?Tee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function $ee(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 ux(e){return(t,n)=>-e(-t,n)}function Eee(e){const t=e(lx,cx),n=t.domain;let r=10,i,a;function o(){return i=$ee(r),a=kee(r),n()[0]<0?(i=ux(i),a=ux(a),e(Cee,See)):e(lx,cx),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const 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 y=[];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/a(-f):p*a(f),!(m<c)){if(m>u)break;y.push(m)}}else for(;f<=h;++f)for(p=r-1;p>=1;--p)if(m=f>0?p/a(-f):p*a(f),!(m<c)){if(m>u)break;y.push(m)}y.length*2<g&&(y=pg(c,u,g))}else y=pg(f,h,Math.min(h-f,g)).map(a);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=gc(l)).precision==null&&(l.trim=!0),l=Yc(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/a(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(G6(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function Z6(){const e=Eee(Hv()).domain([1,10]);return e.copy=()=>nh(e,Z6()).base(e.base()),co.apply(e,arguments),e}function dx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function fx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Mee(e){var t=1,n=e(dx(t),fx(t));return n.constant=function(r){return arguments.length?e(dx(t=+r),fx(t)):t},Y6(n)}function K6(){var e=Mee(Hv());return e.copy=function(){return nh(e,K6()).constant(e.constant())},co.apply(e,arguments)}const zp=new Date,Wp=new Date;function vn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>vn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(zp.setTime(+a),Wp.setTime(+o),e(zp),e(Wp),Math.floor(n(zp,Wp))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const jd=vn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?vn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jd);jd.range;const pi=1e3,dr=pi*60,mi=dr*60,Si=mi*24,qv=Si*7,hx=Si*30,Up=Si*365,Da=vn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCSeconds());Da.range;const Yv=vn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getMinutes());Yv.range;const Gv=vn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCMinutes());Gv.range;const Zv=vn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*pi-e.getMinutes()*dr)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getHours());Zv.range;const Kv=vn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());Kv.range;const Xv=vn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dr)/Si,e=>e.getDate()-1);Xv.range;const X6=vn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>e.getUTCDate()-1);X6.range;const J6=vn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>Math.floor(e/Si));J6.range;function uo(e){return vn(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())*dr)/qv)}const Jv=uo(0),Oee=uo(1),Aee=uo(2),Ree=uo(3),Dee=uo(4),Iee=uo(5),jee=uo(6);Jv.range;Oee.range;Aee.range;Ree.range;Dee.range;Iee.range;jee.range;function fo(e){return vn(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)/qv)}const Qv=fo(0),Nee=fo(1),Pee=fo(2),Lee=fo(3),Fee=fo(4),Bee=fo(5),zee=fo(6);Qv.range;Nee.range;Pee.range;Lee.range;Fee.range;Bee.range;zee.range;const e1=vn(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());e1.range;const t1=vn(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());t1.range;const rh=vn(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());rh.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vn(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)});rh.range;const ih=vn(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());ih.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:vn(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)});ih.range;function Q6(e,t,n,r,i,a){const o=[[Da,1,pi],[Da,5,5*pi],[Da,15,15*pi],[Da,30,30*pi],[a,1,dr],[a,5,5*dr],[a,15,15*dr],[a,30,30*dr],[i,1,mi],[i,3,3*mi],[i,6,6*mi],[i,12,12*mi],[r,1,Si],[r,2,2*Si],[n,1,qv],[t,1,hx],[t,3,3*hx],[e,1,Up]];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=Wv(([,,g])=>g).right(o,f);if(h===o.length)return e.every(gg(c/Up,u/Up,d));if(h===0)return jd.every(Math.max(gg(c,u,d),1));const[p,m]=o[f/o[h-1][2]<o[h][2]/f?h-1:h];return p.every(m)}return[s,l]}const[Wee,Uee]=Q6(ih,t1,Qv,J6,Kv,Gv),[Hee,Vee]=Q6(rh,e1,Jv,Xv,Zv,Yv);var Hp=new Date,Vp=new Date;function dn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,s){var l=[],c;if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=function(a){return dn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,s){if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););})},n&&(i.count=function(a,o){return Hp.setTime(+a),Vp.setTime(+o),e(Hp),e(Vp),Math.floor(n(Hp,Vp))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?function(o){return r(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var vc=dn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});vc.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}):vc};vc.range;var Nd=1e3,Xa=6e4,Pd=36e5,e5=864e5,t5=6048e5,bg=dn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Nd)},function(e,t){return(t-e)/Nd},function(e){return e.getUTCSeconds()});bg.range;var n5=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nd)},function(e,t){e.setTime(+e+t*Xa)},function(e,t){return(t-e)/Xa},function(e){return e.getMinutes()});n5.range;var r5=dn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nd-e.getMinutes()*Xa)},function(e,t){e.setTime(+e+t*Pd)},function(e,t){return(t-e)/Pd},function(e){return e.getHours()});r5.range;var n1=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())*Xa)/e5},function(e){return e.getDate()-1});n1.range;function ho(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())*Xa)/t5})}var Ld=ho(0),bc=ho(1),i5=ho(2),a5=ho(3),Ja=ho(4),o5=ho(5),s5=ho(6);Ld.range;bc.range;i5.range;a5.range;Ja.range;o5.range;s5.range;var l5=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()});l5.range;var ra=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()});ra.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)})};ra.range;var c5=dn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Xa)},function(e,t){return(t-e)/Xa},function(e){return e.getUTCMinutes()});c5.range;var u5=dn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Pd)},function(e,t){return(t-e)/Pd},function(e){return e.getUTCHours()});u5.range;var r1=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/e5},function(e){return e.getUTCDate()-1});r1.range;function po(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)/t5})}var Fd=po(0),yc=po(1),d5=po(2),f5=po(3),Qa=po(4),h5=po(5),p5=po(6);Fd.range;yc.range;d5.range;f5.range;Qa.range;h5.range;p5.range;var m5=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()});m5.range;var ia=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()});ia.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)})};ia.range;function qp(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 Yp(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 ll(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function qee(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=cl(i),u=ul(i),d=cl(a),f=ul(a),h=cl(o),p=ul(o),m=cl(s),g=ul(s),y=cl(l),_=ul(l),w={a:O,A:L,b:F,B:P,c:null,d:yx,e:yx,f:mte,g:Tte,G:$te,H:fte,I:hte,j:pte,L:g5,m:gte,M:vte,p:W,q:H,Q:_x,s:Cx,S:bte,u:yte,U:xte,V:wte,w:_te,W:Cte,x:null,X:null,y:Ste,Y:kte,Z:Ete,"%":wx},C={a:q,A:Z,b:K,B:te,c:null,d:xx,e:xx,f:Rte,g:Wte,G:Hte,H:Mte,I:Ote,j:Ate,L:b5,m:Dte,M:Ite,p:ne,q:U,Q:_x,s:Cx,S:jte,u:Nte,U:Pte,V:Lte,w:Fte,W:Bte,x:null,X:null,y:zte,Y:Ute,Z:Vte,"%":wx},x={a:D,A:$,b:M,B:R,c:I,d:vx,e:vx,f:lte,g:gx,G:mx,H:bx,I:bx,j:ite,L:ste,m:rte,M:ate,p:T,q:nte,Q:ute,s:dte,S:ote,u:Xee,U:Jee,V:Qee,w:Kee,W:ete,x:j,X:A,y:gx,Y:mx,Z:tte,"%":cte};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(B,z){return function(V){var N=[],ee=-1,Q=0,X=B.length,se,G,J;for(V instanceof Date||(V=new Date(+V));++ee<X;)B.charCodeAt(ee)===37&&(N.push(B.slice(Q,ee)),(G=px[se=B.charAt(++ee)])!=null?se=B.charAt(++ee):G=se==="e"?" ":"0",(J=z[se])&&(se=J(V,G)),N.push(se),Q=ee+1);return N.push(B.slice(Q,ee)),N.join("")}}function E(B,z){return function(V){var N=ll(1900,void 0,1),ee=k(N,B,V+="",0),Q,X;if(ee!=V.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(z&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(Q=Yp(ll(N.y,0,1)),X=Q.getUTCDay(),Q=X>4||X===0?yc.ceil(Q):yc(Q),Q=r1.offset(Q,(N.V-1)*7),N.y=Q.getUTCFullYear(),N.m=Q.getUTCMonth(),N.d=Q.getUTCDate()+(N.w+6)%7):(Q=qp(ll(N.y,0,1)),X=Q.getDay(),Q=X>4||X===0?bc.ceil(Q):bc(Q),Q=n1.offset(Q,(N.V-1)*7),N.y=Q.getFullYear(),N.m=Q.getMonth(),N.d=Q.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),X="Z"in N?Yp(ll(N.y,0,1)).getUTCDay():qp(ll(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(X+5)%7:N.w+N.U*7-(X+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Yp(N)):qp(N)}}function k(B,z,V,N){for(var ee=0,Q=z.length,X=V.length,se,G;ee<Q;){if(N>=X)return-1;if(se=z.charCodeAt(ee++),se===37){if(se=z.charAt(ee++),G=x[se in px?z.charAt(ee++):se],!G||(N=G(B,V,N))<0)return-1}else if(se!=V.charCodeAt(N++))return-1}return N}function T(B,z,V){var N=c.exec(z.slice(V));return N?(B.p=u.get(N[0].toLowerCase()),V+N[0].length):-1}function D(B,z,V){var N=h.exec(z.slice(V));return N?(B.w=p.get(N[0].toLowerCase()),V+N[0].length):-1}function $(B,z,V){var N=d.exec(z.slice(V));return N?(B.w=f.get(N[0].toLowerCase()),V+N[0].length):-1}function M(B,z,V){var N=y.exec(z.slice(V));return N?(B.m=_.get(N[0].toLowerCase()),V+N[0].length):-1}function R(B,z,V){var N=m.exec(z.slice(V));return N?(B.m=g.get(N[0].toLowerCase()),V+N[0].length):-1}function I(B,z,V){return k(B,t,z,V)}function j(B,z,V){return k(B,n,z,V)}function A(B,z,V){return k(B,r,z,V)}function O(B){return o[B.getDay()]}function L(B){return a[B.getDay()]}function F(B){return l[B.getMonth()]}function P(B){return s[B.getMonth()]}function W(B){return i[+(B.getHours()>=12)]}function H(B){return 1+~~(B.getMonth()/3)}function q(B){return o[B.getUTCDay()]}function Z(B){return a[B.getUTCDay()]}function K(B){return l[B.getUTCMonth()]}function te(B){return s[B.getUTCMonth()]}function ne(B){return i[+(B.getUTCHours()>=12)]}function U(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var z=S(B+="",w);return z.toString=function(){return B},z},parse:function(B){var z=E(B+="",!1);return z.toString=function(){return B},z},utcFormat:function(B){var z=S(B+="",C);return z.toString=function(){return B},z},utcParse:function(B){var z=E(B+="",!0);return z.toString=function(){return B},z}}}var px={"-":"",_:" ",0:"0"},wn=/^\s*\d+/,Yee=/^%/,Gee=/[\\^$*+?|[\]().{}]/g;function Et(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Zee(e){return e.replace(Gee,"\\$&")}function cl(e){return new RegExp("^(?:"+e.map(Zee).join("|")+")","i")}function ul(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Kee(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xee(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Jee(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qee(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ete(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function mx(e,t,n){var r=wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gx(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tte(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 nte(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function rte(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function vx(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ite(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bx(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ate(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ote(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ste(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lte(e,t,n){var r=wn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cte(e,t,n){var r=Yee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ute(e,t,n){var r=wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dte(e,t,n){var r=wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function yx(e,t){return Et(e.getDate(),t,2)}function fte(e,t){return Et(e.getHours(),t,2)}function hte(e,t){return Et(e.getHours()%12||12,t,2)}function pte(e,t){return Et(1+n1.count(ra(e),e),t,3)}function g5(e,t){return Et(e.getMilliseconds(),t,3)}function mte(e,t){return g5(e,t)+"000"}function gte(e,t){return Et(e.getMonth()+1,t,2)}function vte(e,t){return Et(e.getMinutes(),t,2)}function bte(e,t){return Et(e.getSeconds(),t,2)}function yte(e){var t=e.getDay();return t===0?7:t}function xte(e,t){return Et(Ld.count(ra(e)-1,e),t,2)}function v5(e){var t=e.getDay();return t>=4||t===0?Ja(e):Ja.ceil(e)}function wte(e,t){return e=v5(e),Et(Ja.count(ra(e),e)+(ra(e).getDay()===4),t,2)}function _te(e){return e.getDay()}function Cte(e,t){return Et(bc.count(ra(e)-1,e),t,2)}function Ste(e,t){return Et(e.getFullYear()%100,t,2)}function Tte(e,t){return e=v5(e),Et(e.getFullYear()%100,t,2)}function kte(e,t){return Et(e.getFullYear()%1e4,t,4)}function $te(e,t){var n=e.getDay();return e=n>=4||n===0?Ja(e):Ja.ceil(e),Et(e.getFullYear()%1e4,t,4)}function Ete(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Et(t/60|0,"0",2)+Et(t%60,"0",2)}function xx(e,t){return Et(e.getUTCDate(),t,2)}function Mte(e,t){return Et(e.getUTCHours(),t,2)}function Ote(e,t){return Et(e.getUTCHours()%12||12,t,2)}function Ate(e,t){return Et(1+r1.count(ia(e),e),t,3)}function b5(e,t){return Et(e.getUTCMilliseconds(),t,3)}function Rte(e,t){return b5(e,t)+"000"}function Dte(e,t){return Et(e.getUTCMonth()+1,t,2)}function Ite(e,t){return Et(e.getUTCMinutes(),t,2)}function jte(e,t){return Et(e.getUTCSeconds(),t,2)}function Nte(e){var t=e.getUTCDay();return t===0?7:t}function Pte(e,t){return Et(Fd.count(ia(e)-1,e),t,2)}function y5(e){var t=e.getUTCDay();return t>=4||t===0?Qa(e):Qa.ceil(e)}function Lte(e,t){return e=y5(e),Et(Qa.count(ia(e),e)+(ia(e).getUTCDay()===4),t,2)}function Fte(e){return e.getUTCDay()}function Bte(e,t){return Et(yc.count(ia(e)-1,e),t,2)}function zte(e,t){return Et(e.getUTCFullYear()%100,t,2)}function Wte(e,t){return e=y5(e),Et(e.getUTCFullYear()%100,t,2)}function Ute(e,t){return Et(e.getUTCFullYear()%1e4,t,4)}function Hte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qa(e):Qa.ceil(e),Et(e.getUTCFullYear()%1e4,t,4)}function Vte(){return"+0000"}function wx(){return"%"}function _x(e){return+e}function Cx(e){return Math.floor(+e/1e3)}var Oo,ah,x5,w5,_5;qte({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 qte(e){return Oo=qee(e),ah=Oo.format,x5=Oo.parse,w5=Oo.utcFormat,_5=Oo.utcParse,Oo}function Yte(e){return new Date(e)}function Gte(e){return e instanceof Date?+e:+new Date(+e)}function i1(e,t,n,r,i,a,o,s,l,c){var u=H6(),d=u.invert,f=u.domain,h=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),_=c("%b %d"),w=c("%B"),C=c("%Y");function x(S){return(l(S)<S?h:s(S)<S?p:o(S)<S?m:a(S)<S?g:r(S)<S?i(S)<S?y:_: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,Gte)):f().map(Yte)},u.ticks=function(S){var E=f();return e(E[0],E[E.length-1],S??10)},u.tickFormat=function(S,E){return E==null?x:c(E)},u.nice=function(S){var E=f();return(!S||typeof S.range!="function")&&(S=t(E[0],E[E.length-1],S??10)),S?f(G6(E,S)):u},u.copy=function(){return nh(u,i1(e,t,n,r,i,a,o,s,l,c))},u}function Zte(){return co.apply(i1(Hee,Vee,rh,e1,Jv,Xv,Zv,Yv,Da,ah).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Kte(){return co.apply(i1(Wee,Uee,ih,t1,Qv,X6,Kv,Gv,Da,w5).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 Xte=ft("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Jte=ft("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Qte=ft("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),ene=ft("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),tne=ft("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),nne=ft("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),rne=ft("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),ine=ft("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),C5=ft("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),ane=ft("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),qt=e=>yJ(e[e.length-1]);var oh=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ft);const one=qt(oh);var sh=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ft);const sne=qt(sh);var lh=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ft);const lne=qt(lh);var ch=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ft);const cne=qt(ch);var uh=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ft);const une=qt(uh);var dh=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ft);const dne=qt(dh);var fh=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ft);const fne=qt(fh);var hh=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ft);const hne=qt(hh);var ph=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ft);const pne=qt(ph);var mh=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ft);const mne=qt(mh);var gh=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ft);const gne=qt(gh);var vh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ft);const vne=qt(vh);var bh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ft);const bne=qt(bh);var yh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ft);const yne=qt(yh);var xh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ft);const xne=qt(xh);var wh=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ft);const wne=qt(wh);var _h=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ft);const _ne=qt(_h);var Ch=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ft);const Cne=qt(Ch);var Sh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ft);const Sne=qt(Sh);var Th=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ft);const Tne=qt(Th);var kh=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ft);const kne=qt(kh);var $h=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ft);const $ne=qt($h);var Eh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ft);const Ene=qt(Eh);var Mh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ft);const Mne=qt(Mh);var Oh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ft);const One=qt(Oh);var Ah=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ft);const Ane=qt(Ah);var Rh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ft);const Rne=qt(Rh);function Dne(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 Ine=Rv(Zr(300,.5,0),Zr(-240,.5,1));var jne=Rv(Zr(-100,.75,.35),Zr(80,1.5,.8)),Nne=Rv(Zr(260,.75,.35),Zr(80,1.5,.8)),ku=Zr();function Pne(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return ku.h=360*e-100,ku.s=1.5-1.5*t,ku.l=.8-.9*t,ku+""}var $u=vs(),Lne=Math.PI/3,Fne=Math.PI*2/3;function Bne(e){var t;return e=(.5-e)*Math.PI,$u.r=255*(t=Math.sin(e))*t,$u.g=255*(t=Math.sin(e+Lne))*t,$u.b=255*(t=Math.sin(e+Fne))*t,$u+""}function zne(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 Dh(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const Wne=Dh(ft("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Une=Dh(ft("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Hne=Dh(ft("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Vne=Dh(ft("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function qne(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var S5=qne;const Ne=an(S5);var Yne=qc,Gne=d6,Zne=Bs;function Kne(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Yne(e,o);n(s,o)&&Gne(a,Zne(o,e),s)}return a}var Xne=Kne;function Jne(e,t){return e!=null&&t in Object(e)}var Qne=Jne,ere=Bs,tre=Uf,nre=Jn,rre=qf,ire=yv,are=zs;function ore(e,t,n){t=ere(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=are(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&ire(i)&&rre(o,i)&&(nre(e)||tre(e)))}var sre=ore,lre=Qne,cre=sre;function ure(e,t){return e!=null&&cre(e,t,lre)}var T5=ure,dre=Xne,fre=T5;function hre(e,t){return dre(e,t,function(n,r){return fre(e,r)})}var pre=hre;function mre(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var a1=mre,Sx=Ds,gre=Uf,vre=Jn,Tx=Sx?Sx.isConcatSpreadable:void 0;function bre(e){return vre(e)||gre(e)||!!(Tx&&e&&e[Tx])}var yre=bre,xre=a1,wre=yre;function k5(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=wre),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?k5(s,t-1,n,r,i):xre(i,s):r||(i[i.length]=s)}return i}var $5=k5,_re=$5;function Cre(e){var t=e==null?0:e.length;return t?_re(e,1):[]}var Sre=Cre,Tre=Sre,kre=r6,$re=i6;function Ere(e){return $re(kre(e,void 0,Tre),e+"")}var E5=Ere,Mre=pre,Ore=E5,Are=Ore(function(e,t){return e==null?{}:Mre(e,t)}),Rre=Are;const Dre=an(Rre);function Ire(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 jre=Ire,Nre=Dv,Pre=jre,Lre=Iv,Fre=1,Bre=2;function zre(e,t,n,r,i,a){var o=n&Fre,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,h=n&Bre?new Nre:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=o?r(m,p,d,t,e,a):r(p,m,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(h){if(!Pre(t,function(y,_){if(!Lre(h,_)&&(p===y||i(p,y,n,r,a)))return h.push(_)})){f=!1;break}}else if(!(p===m||i(p,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var M5=zre;function Wre(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Ure=Wre;function Hre(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var o1=Hre,kx=Ds,$x=qS,Vre=Hc,qre=M5,Yre=Ure,Gre=o1,Zre=1,Kre=2,Xre="[object Boolean]",Jre="[object Date]",Qre="[object Error]",eie="[object Map]",tie="[object Number]",nie="[object RegExp]",rie="[object Set]",iie="[object String]",aie="[object Symbol]",oie="[object ArrayBuffer]",sie="[object DataView]",Ex=kx?kx.prototype:void 0,Gp=Ex?Ex.valueOf:void 0;function lie(e,t,n,r,i,a,o){switch(n){case sie:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case oie:return!(e.byteLength!=t.byteLength||!a(new $x(e),new $x(t)));case Xre:case Jre:case tie:return Vre(+e,+t);case Qre:return e.name==t.name&&e.message==t.message;case nie:case iie:return e==t+"";case eie:var s=Yre;case rie:var l=r&Zre;if(s||(s=Gre),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=Kre,o.set(e,t);var u=qre(s(e),s(t),r,i,a,o);return o.delete(e),u;case aie:if(Gp)return Gp.call(e)==Gp.call(t)}return!1}var cie=lie,uie=a1,die=Jn;function fie(e,t,n){var r=t(e);return die(e)?r:uie(r,n(e))}var O5=fie;function hie(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var A5=hie;function pie(){return[]}var R5=pie,mie=A5,gie=R5,vie=Object.prototype,bie=vie.propertyIsEnumerable,Mx=Object.getOwnPropertySymbols,yie=Mx?function(e){return e==null?[]:(e=Object(e),mie(Mx(e),function(t){return bie.call(e,t)}))}:gie,s1=yie,xie=ZS,wie=xie(Object.keys,Object),_ie=wie,Cie=bv,Sie=_ie,Tie=Object.prototype,kie=Tie.hasOwnProperty;function $ie(e){if(!Cie(e))return Sie(e);var t=[];for(var n in Object(e))kie.call(e,n)&&n!="constructor"&&t.push(n);return t}var Eie=$ie,Mie=t6,Oie=Eie,Aie=Ps;function Rie(e){return Aie(e)?Mie(e):Oie(e)}var Gc=Rie,Die=O5,Iie=s1,jie=Gc;function Nie(e){return Die(e,jie,Iie)}var D5=Nie,Ox=D5,Pie=1,Lie=Object.prototype,Fie=Lie.hasOwnProperty;function Bie(e,t,n,r,i,a){var o=n&Pie,s=Ox(e),l=s.length,c=Ox(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:Fie.call(t,f)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=o;++d<l;){f=s[d];var y=e[f],_=t[f];if(r)var w=o?r(_,y,f,t,e,a):r(y,_,f,e,t,a);if(!(w===void 0?y===_||i(y,_,n,r,a):w)){m=!1;break}g||(g=f=="constructor")}if(m&&!g){var C=e.constructor,x=t.constructor;C!=x&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof x=="function"&&x instanceof x)&&(m=!1)}return a.delete(e),a.delete(t),m}var zie=Bie,Wie=lo,Uie=Jr,Hie=Wie(Uie,"DataView"),Vie=Hie,qie=lo,Yie=Jr,Gie=qie(Yie,"Promise"),Zie=Gie,Kie=lo,Xie=Jr,Jie=Kie(Xie,"Set"),I5=Jie,Qie=lo,eae=Jr,tae=Qie(eae,"WeakMap"),nae=tae,yg=Vie,xg=hv,wg=Zie,_g=I5,Cg=nae,j5=$i,Us=zS,Ax="[object Map]",rae="[object Object]",Rx="[object Promise]",Dx="[object Set]",Ix="[object WeakMap]",jx="[object DataView]",iae=Us(yg),aae=Us(xg),oae=Us(wg),sae=Us(_g),lae=Us(Cg),Sa=j5;(yg&&Sa(new yg(new ArrayBuffer(1)))!=jx||xg&&Sa(new xg)!=Ax||wg&&Sa(wg.resolve())!=Rx||_g&&Sa(new _g)!=Dx||Cg&&Sa(new Cg)!=Ix)&&(Sa=function(e){var t=j5(e),n=t==rae?e.constructor:void 0,r=n?Us(n):"";if(r)switch(r){case iae:return jx;case aae:return Ax;case oae:return Rx;case sae:return Dx;case lae:return Ix}return t});var Ih=Sa,Zp=Wf,cae=M5,uae=cie,dae=zie,Nx=Ih,Px=Jn,Lx=Hf,fae=_v,hae=1,Fx="[object Arguments]",Bx="[object Array]",Eu="[object Object]",pae=Object.prototype,zx=pae.hasOwnProperty;function mae(e,t,n,r,i,a){var o=Px(e),s=Px(t),l=o?Bx:Nx(e),c=s?Bx:Nx(t);l=l==Fx?Eu:l,c=c==Fx?Eu:c;var u=l==Eu,d=c==Eu,f=l==c;if(f&&Lx(e)){if(!Lx(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Zp),o||fae(e)?cae(e,t,n,r,i,a):uae(e,t,l,n,r,i,a);if(!(n&hae)){var h=u&&zx.call(e,"__wrapped__"),p=d&&zx.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return a||(a=new Zp),i(m,g,n,r,a)}}return f?(a||(a=new Zp),dae(e,t,n,r,i,a)):!1}var gae=mae,vae=gae,Wx=br;function N5(e,t,n,r,i){return e===t?!0:e==null||t==null||!Wx(e)&&!Wx(t)?e!==e&&t!==t:vae(e,t,n,r,N5,i)}var l1=N5,bae=l1;function yae(e,t){return bae(e,t)}var xae=yae;const wae=an(xae);var P5=v.createContext(),_ae=function(e){var t=e.children,n=e.animate,r=n===void 0||n,i=e.config,a=i===void 0?"default":i,o=v.useMemo(function(){var s=KX(a)?CS[a]:a;return{animate:r,config:s}},[r,a]);return b.jsx(P5.Provider,{value:o,children:t})},Fn=function(){return v.useContext(P5)},Cae=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?v.cloneElement(r,{},t):t},Sae={position:"relative"},mo=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=r===void 0||r,a=e.isInteractive,o=a===void 0||a,s=e.animate,l=e.motionConfig,c=v.useRef(null);return b.jsx(jX,{theme:n,children:b.jsx(_ae,{animate:s,config:l,children:b.jsx(UX,{container:c,children:b.jsxs(Cae,{condition:i,wrapper:b.jsx("div",{style:Sae,ref:c}),children:[t,o&&b.jsx(WX,{})]})})})})},Tae=function(e,t){return e.width===t.width&&e.height===t.height},kae=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=Y0({width:n,height:r},a,{equalityFn:Tae})[0];return v.useEffect(function(){i==null||i(o)},[o,i]),b.jsx(b.Fragment,{children:t(o)})},go=function(e){var t=e.children,n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=a===void 0?0:a;return b.jsx(JX,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return b.jsx(kae,{width:l,height:c,onResize:i,debounceResize:o,children:t})}})};function Ux(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 $ae(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,a){if(i){if(typeof i=="string")return Ux(i,a);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ux(i,a):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.
267
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ur(){return Ur=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},Ur.apply(null,arguments)}function L5(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 Eae=["id","colors"],Mae=function(e){var t=e.id,n=e.colors,r=L5(e,Eae);return b.jsx("linearGradient",Ur({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(i){var a=i.offset,o=i.color,s=i.opacity;return b.jsx("stop",{offset:a+"%",stopColor:o,stopOpacity:s!==void 0?s:1},a)})}))},F5={linearGradient:Mae},dl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Oae=v.memo(function(e){var t=e.id,n=e.background,r=n===void 0?dl.background:n,i=e.color,a=i===void 0?dl.color:i,o=e.size,s=o===void 0?dl.size:o,l=e.padding,c=l===void 0?dl.padding:l,u=e.stagger,d=u===void 0?dl.stagger:u,f=s+c,h=s/2,p=c/2;return d===!0&&(f=2*s+2*c),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:r}),b.jsx("circle",{cx:p+h,cy:p+h,r:h,fill:a}),d&&b.jsx("circle",{cx:1.5*c+s+h,cy:1.5*c+s+h,r:h,fill:a})]})}),hr=function(e){return e*Math.PI/180},Zc=function(e){return 180*e/Math.PI},Aae=function(e){return e.startAngle+(e.endAngle-e.startAngle)/2},za=function(e,t){return{x:Math.cos(e)*t,y:Math.sin(e)*t}},Rae=function(e){var t=e%360;return t<0&&(t+=360),t},B5={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"}}},fl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},Dae=v.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?fl.spacing:n,i=e.rotation,a=i===void 0?fl.rotation:i,o=e.background,s=o===void 0?fl.background:o,l=e.color,c=l===void 0?fl.color:l,u=e.lineWidth,d=u===void 0?fl.lineWidth:u,f=Math.round(a)%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=`
268
+ M 0 0 L `+m+` 0
269
+ M 0 `+g+" L "+m+" "+g+`
270
+ `:f===90?p=`
271
+ M 0 0 L 0 `+g+`
272
+ M `+m+" 0 L "+m+" "+g+`
273
+ `:(m=Math.abs(h/Math.sin(hr(f))),g=h/Math.sin(hr(90-f)),p=f>0?`
274
+ M 0 `+-g+" L "+2*m+" "+g+`
275
+ M `+-m+" "+-g+" L "+m+" "+g+`
276
+ M `+-m+" 0 L "+m+" "+2*g+`
277
+ `:`
278
+ M `+-m+" "+g+" L "+m+" "+-g+`
279
+ M `+-m+" "+2*g+" L "+2*m+" "+-g+`
280
+ M 0 `+2*g+" L "+2*m+` 0
281
+ `),b.jsxs("pattern",{id:t,width:m,height:g,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:m,height:g,fill:s,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),b.jsx("path",{d:p,strokeWidth:d,stroke:c,strokeLinecap:"square"})]})}),hl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Iae=v.memo(function(e){var t=e.id,n=e.color,r=n===void 0?hl.color:n,i=e.background,a=i===void 0?hl.background:i,o=e.size,s=o===void 0?hl.size:o,l=e.padding,c=l===void 0?hl.padding:l,u=e.stagger,d=u===void 0?hl.stagger:u,f=s+c,h=c/2;return d===!0&&(f=2*s+2*c),b.jsxs("pattern",{id:t,width:f,height:f,patternUnits:"userSpaceOnUse",children:[b.jsx("rect",{width:f,height:f,fill:a}),b.jsx("rect",{x:h,y:h,width:s,height:s,fill:r}),d&&b.jsx("rect",{x:1.5*c+s,y:1.5*c+s,width:s,height:s,fill:r})]})}),z5={patternDots:Oae,patternLines:Dae,patternSquares:Iae},jae=["type"],Hx=Ur({},F5,z5),Nae=v.memo(function(e){var t=e.defs;return!t||t.length<1?null:b.jsx("defs",{"aria-hidden":!0,children:t.map(function(n){var r=n.type,i=L5(n,jae);return Hx[r]?v.createElement(Hx[r],Ur({key:i.id},i)):null})})}),jh=v.forwardRef(function(e,t){var n=e.width,r=e.height,i=e.margin,a=e.defs,o=e.children,s=e.role,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.isFocusable,f=Ft();return b.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:[b.jsx(Nae,{defs:a}),b.jsx("rect",{width:n,height:r,fill:f.background}),b.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:o})]})}),Pae=v.memo(function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return b.jsx("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})}),Lae=v.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Pae:r,a=e.size,o=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,y=e.ariaDescribedBy,_=e.ariaHidden,w=e.ariaDisabled,C=e.isFocusable,x=C!==void 0&&C,S=e.tabIndex,E=S===void 0?0:S,k=e.onFocus,T=e.onBlur,D=e.testId,$=Ft(),M=Fn(),R=M.animate,I=M.config,j=Xr({transform:"translate("+t+", "+n+")",config:I,immediate:!R}),A=v.useCallback(function(L){k==null||k(o,L)},[k,o]),O=v.useCallback(function(L){T==null||T(o,L)},[T,o]);return b.jsxs(Vt.g,{transform:j.transform,style:{pointerEvents:"none"},focusable:x,tabIndex:x?E:void 0,"aria-label":m,"aria-labelledby":g,"aria-describedby":y,"aria-disabled":w,"aria-hidden":_,onFocus:x&&k?A:void 0,onBlur:x&&T?O:void 0,"data-testid":D,children:[v.createElement(i,{size:a,color:s,datum:o,borderWidth:l,borderColor:c}),u&&b.jsx("text",{textAnchor:f,y:p,style:$X($.dots.text),children:u})]})}),Fae=v.memo(function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,a=e.value,o=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,y=g===void 0?"horizontal":g,_=Ft(),w=0,C=0,x=0,S=0;if(r==="y"?(x=i(a),C=t):(w=i(a),S=n),l&&!c){var E=function(k){var T=k.axis,D=k.width,$=k.height,M=k.position,R=k.offsetX,I=k.offsetY,j=k.orientation,A=0,O=0,L=j==="vertical"?-90:0,F="start";if(T==="x")switch(M){case"top-left":A=-R,O=I,F="end";break;case"top":O=-I,F=j==="horizontal"?"middle":"start";break;case"top-right":A=R,O=I,F=j==="horizontal"?"start":"end";break;case"right":A=R,O=$/2,F=j==="horizontal"?"start":"middle";break;case"bottom-right":A=R,O=$-I,F="start";break;case"bottom":O=$+I,F=j==="horizontal"?"middle":"end";break;case"bottom-left":O=$-I,A=-R,F=j==="horizontal"?"end":"start";break;case"left":A=-R,O=$/2,F=j==="horizontal"?"end":"middle"}else switch(M){case"top-left":A=R,O=-I,F="start";break;case"top":A=D/2,O=-I,F=j==="horizontal"?"middle":"start";break;case"top-right":A=D-R,O=-I,F=j==="horizontal"?"end":"start";break;case"right":A=D+R,F=j==="horizontal"?"start":"middle";break;case"bottom-right":A=D-R,O=I,F="end";break;case"bottom":A=D/2,O=I,F=j==="horizontal"?"middle":"end";break;case"bottom-left":A=R,O=I,F=j==="horizontal"?"start":"end";break;case"left":A=-R,F=j==="horizontal"?"end":"middle"}return{x:A,y:O,rotation:L,textAnchor:F}}({axis:r,width:t,height:n,position:d,offsetX:h,offsetY:m,orientation:y});c=b.jsx("text",{transform:"translate("+E.x+", "+E.y+") rotate("+E.rotation+")",textAnchor:E.textAnchor,dominantBaseline:"central",style:s,children:l})}return b.jsxs("g",{transform:"translate("+w+", "+x+")",children:[b.jsx("line",{x1:0,x2:C,y1:0,y2:S,stroke:_.markers.lineColor,strokeWidth:_.markers.lineStrokeWidth,style:o}),c]})}),W5=v.memo(function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,a=e.yScale;return t&&t.length!==0?t.map(function(o,s){return b.jsx(Fae,Ur({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null}),c1=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),a=v.useMemo(function(){return C6(i,e)},[i,e]),o=Xr({from:{value:0},to:{value:1},reset:!0,config:r,immediate:!n}).value;return ta(o,a)};v.createContext(void 0);var Sg={basis:kQ,basisClosed:$Q,basisOpen:EQ,bundle:MQ,cardinal:OQ,cardinalClosed:AQ,cardinalOpen:RQ,catmullRom:DQ,catmullRomClosed:IQ,catmullRomOpen:jQ,linear:Nv,linearClosed:NQ,monotoneX:PQ,monotoneY:LQ,natural:FQ,step:BQ,stepAfter:WQ,stepBefore:zQ},u1=Object.keys(Sg);u1.filter(function(e){return e.endsWith("Closed")});E6(u1,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");E6(u1,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var U5=function(e){if(!Sg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Sg[e]};Ne(oh),Ne(sh),Ne(lh),Ne(ch),Ne(uh),Ne(dh),Ne(fh),Ne(hh),Ne(ph),Ne($h),Ne(Eh),Ne(Mh),Ne(Rh),Ne(Oh),Ne(Ah),Ne(mh),Ne(gh),Ne(vh),Ne(bh),Ne(yh),Ne(xh),Ne(wh),Ne(_h),Ne(Ch),Ne(Sh),Ne(Th),Ne(kh);Ne(oh),Ne(sh),Ne(lh),Ne(ch),Ne(uh),Ne(dh),Ne(fh),Ne(hh),Ne(ph),Ne($h),Ne(Eh),Ne(Mh),Ne(Rh),Ne(Oh),Ne(Ah),Ne(mh),Ne(gh),Ne(vh),Ne(bh),Ne(yh),Ne(xh),Ne(wh),Ne(_h),Ne(Ch),Ne(Sh),Ne(Th),Ne(kh);Ra(C5);var H5={top:0,right:0,bottom:0,left:0},vo=function(e,t,n){return n===void 0&&(n={}),v.useMemo(function(){var r=Ur({},H5,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},Bae=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(a){var o=a[0];return r(o.contentRect)})})[0];return v.useEffect(function(){return e.current&&i!==null&&i.observe(e.current),function(){i!==null&&i.disconnect()}},[i]),[e,n]},zae=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?ah(e.slice("5")):Yc(e):function(t){return""+t}},ys=function(e){return v.useMemo(function(){return zae(e)},[e])},Wae=function(e,t){var n=fv(e)?e:function(r){return Gr(r,e)};return n},V5=function(e){return fv(e)?e:function(t){return Gr(t,e)}},gi=function(e){return v.useMemo(function(){return V5(e)},[e])},q5=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},Uae=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},Y5=function(e,t,n,r,i,a){return e<=i&&i<=e+n&&t<=a&&a<=t+r},Jo=function(e,t){var n,r="touches"in t?t.touches[0]:t,i=r.clientX,a=r.clientY,o=e.getBoundingClientRect(),s=(n=e.getBBox!==void 0?e.getBBox():{width:e.offsetWidth||0,height:e.offsetHeight||0}).width===o.width?1:n.width/o.width;return[(i-o.left)*s,(a-o.top)*s]},Hae=Object.keys(F5),Vae=Object.keys(z5),qae=function(e,t,n){if(e==="*")return!0;if(fv(e))return e(t);if(wv(e)){var r=n?Gr(t,n):t;return wae(Dre(r,Object.keys(e)),e)}return!1},d1=function(e,t,n,r){var i=r===void 0?{}:r,a=i.dataKey,o=i.colorKey,s=o===void 0?"color":o,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,y=g.id,_=g.match;if(qae(_,f,a)){var w=e.find(function($){return $.id===y});if(w){if(Vae.includes(w.type))if(w.background==="inherit"||w.color==="inherit"){var C=Gr(f,s),x=w.background,S=w.color,E=y;w.background==="inherit"&&(E=E+".bg."+C,x=C),w.color==="inherit"&&(E=E+".fg."+C,S=C),xl(f,c,"url(#"+E+")"),d[E]||(u.push(Ur({},w,{id:E,background:x,color:S})),d[E]=1)}else xl(f,c,"url(#"+y+")");else if(Hae.includes(w.type))if(w.colors.map(function($){return $.color}).includes("inherit")){var k=Gr(f,s),T=y,D=Ur({},w,{colors:w.colors.map(function($,M){return $.color!=="inherit"?$:(T=T+"."+M+"."+k,Ur({},$,{color:$.color==="inherit"?k:$.color}))})});D.id=T,xl(f,c,"url(#"+T+")"),d[T]||(u.push(D),d[T]=1)}else xl(f,c,"url(#"+y+")")}return 1}},m=$ae(n);!(h=m()).done&&!p(););})),u};function f1(){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,a=t;i<a.length;i++){var o=a[i];typeof o=="function"?o(r):o!=null&&(o.current=r)}}}var eo=function(e,t){e.font=(t.fontWeight?t.fontWeight+" ":"")+t.fontSize+"px "+t.fontFamily},to=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 Al(){return Al=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},Al.apply(null,arguments)}function Vx(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 Yae=["style","children"],Gae=["outlineWidth","outlineColor","outlineOpacity"],Hs=function(e){var t=e.style,n=e.children,r=Vx(e,Yae),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=Vx(t,Gae);return b.jsxs(b.Fragment,{children:[i>0&&b.jsx(Vt.text,Al({},r,{style:Al({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:"round"}),children:n})),b.jsx(Vt.text,Al({},r,{style:s,children:n}))]})};function qx(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 Zae(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,a){if(i){if(typeof i=="string")return qx(i,a);var o={}.toString.call(i).slice(8,-1);return o==="Object"&&i.constructor&&(o=i.constructor.name),o==="Map"||o==="Set"?Array.from(i):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qx(i,a):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.
282
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bd(){return Bd=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},Bd.apply(null,arguments)}var G5={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:Xte,accent:Jte,dark2:Qte,paired:ene,pastel1:tne,pastel2:nne,set1:rne,set2:ine,set3:C5,tableau10:ane},Kae=Object.keys(G5),Z5={brown_blueGreen:oh,purpleRed_green:sh,pink_yellowGreen:lh,purple_orange:ch,red_blue:uh,red_grey:dh,red_yellow_blue:fh,red_yellow_green:hh,spectral:ph},Xae=Object.keys(Z5),Jae={brown_blueGreen:one,purpleRed_green:sne,pink_yellowGreen:lne,purple_orange:cne,red_blue:une,red_grey:dne,red_yellow_blue:fne,red_yellow_green:hne,spectral:pne},K5={blues:$h,greens:Eh,greys:Mh,oranges:Rh,purples:Oh,reds:Ah,blue_green:mh,blue_purple:gh,green_blue:vh,orange_red:bh,purple_blue_green:yh,purple_blue:xh,purple_red:wh,red_purple:_h,yellow_green_blue:Ch,yellow_green:Sh,yellow_orange_brown:Th,yellow_orange_red:kh},Qae=Object.keys(K5),eoe={blues:$ne,greens:Ene,greys:Mne,oranges:Rne,purples:One,reds:Ane,turbo:zne,viridis:Wne,inferno:Hne,magma:Une,plasma:Vne,cividis:Dne,warm:jne,cool:Nne,cubehelixDefault:Ine,blue_green:mne,blue_purple:gne,green_blue:vne,orange_red:bne,purple_blue_green:yne,purple_blue:xne,purple_red:wne,red_purple:_ne,yellow_green_blue:Cne,yellow_green:Sne,yellow_orange_brown:Tne,yellow_orange_red:kne},Kp=Bd({},G5,Z5,K5),toe=function(e){return Kae.includes(e)},noe=function(e){return Xae.includes(e)},roe=function(e){return Qae.includes(e)},ioe={rainbow:Pne,sinebow:Bne};Bd({},Jae,eoe,ioe);var aoe=function(e){return e.theme!==void 0},ooe=function(e){return e.from!==void 0},soe=function(e,t){if(typeof e=="function")return e;if(wv(e)){if(aoe(e)){if(t===void 0)throw new Error("Unable to use color from theme as no theme was provided");var n=Gr(t,e.theme);if(n===void 0)throw new Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(ooe(e)){var r=function(l){return Gr(l,e.from)};if(Array.isArray(e.modifiers)){for(var i,a=[],o=function(){var l=i.value,c=l[0],u=l[1];if(c==="brighter")a.push(function(d){return d.brighter(u)});else if(c==="darker")a.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'");a.push(function(d){return d.opacity=u,d})}},s=Zae(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(l){return a.reduce(function(c,u){return u(c)},vs(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}},gr=function(e,t){return v.useMemo(function(){return soe(e,t)},[e,t])},loe=function(e,t){if(typeof e=="function")return e;var n=typeof t=="function"?t:function(d){return Gr(d,t)};if(Array.isArray(e)){var r=Ra(e),i=function(d){return r(n(d))};return i.scale=r,i}if(wv(e)){if(function(d){return d.datum!==void 0}(e))return function(d){return Gr(d,e.datum)};if(function(d){return d.scheme!==void 0}(e)){if(toe(e.scheme)){var a=Ra(Kp[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(noe(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=Ra(Kp[e.scheme][e.size||11]),l=function(d){return s(n(d))};return l.scale=s,l}if(roe(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=Ra(Kp[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}},h1=function(e,t){return v.useMemo(function(){return loe(e,t)},[e,t])};function Mt(){return Mt=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},Mt.apply(null,arguments)}var coe={pointerEvents:"none"},uoe=function(e){var t=e.label,n=e.style,r=Ft();return b.jsx(Vt.g,{transform:n.transform,opacity:n.progress,style:coe,children:b.jsx(Hs,{textAnchor:"middle",dominantBaseline:"central",style:Mt({},r.labels.text,{fill:n.textColor}),children:t})})},X5=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},J5=function(e,t){return e.filter(function(n){return Math.abs(Zc(n.arc.endAngle-n.arc.startAngle))>=t})},doe={startAngle:{enter:function(e){return Mt({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return Mt({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Mt({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return Mt({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return Mt({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return Mt({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return Mt({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Mt({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Mt({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return Mt({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return Mt({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return Mt({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return Mt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return Mt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return Mt({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return Mt({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},Q5=function(e,t){return v.useMemo(function(){var n=doe[e];return{enter:function(r){return Mt({progress:0},n.enter(r.arc),t?t.enter(r):{})},update:function(r){return Mt({progress:1},n.update(r.arc),t?t.update(r):{})},leave:function(r){return Mt({progress:0},n.leave(r.arc),t?t.leave(r):{})}}},[e,t])},eT=function(e,t){var n=Aae(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return za(n,r)},foe=function(e){return function(t,n,r,i){return ta([t,n,r,i],function(a,o,s,l){var c=eT({startAngle:a,endAngle:o,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},hoe=function(e,t,n,r){t===void 0&&(t=.5),n===void 0&&(n="innerRadius");var i=Fn(),a=i.animate,o=i.config,s=Q5(n,r);return{transition:so(e,{keys:function(l){return l.id},initial:s.update,from:s.enter,enter:s.update,update:s.update,leave:s.leave,config:o,immediate:!a}),interpolate:foe(t)}},poe=function(e){var t=e.data,n=e.offset,r=n===void 0?.5:n,i=e.skipAngle,a=i===void 0?0:i,o=e.computeExtraProps,s=o===void 0?function(){return{}}:o;return v.useMemo(function(){return J5(t,a).map(function(l){var c=eT(l.arc,r);return Mt({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,a,s])},moe=function(e){var t=e.center,n=e.data,r=e.transitionMode,i=e.label,a=e.radiusOffset,o=e.skipAngle,s=e.skipRadius,l=e.textColor,c=e.component,u=c===void 0?uoe:c,d=gi(i),f=Ft(),h=gr(l,f),p=v.useMemo(function(){return n.filter(function(w){var C=Math.abs(Zc(w.arc.endAngle-w.arc.startAngle)),x=Math.abs(w.arc.outerRadius-w.arc.innerRadius);return C>=o&&x>=s})},[n,o,s]),m=hoe(p,a,r),g=m.transition,y=m.interpolate,_=u;return b.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:y(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius),textColor:h(C)}})})})},goe=function(e,t,n){eo(e,n.labels.text),e.textAlign="center",e.textBaseline="middle",t.forEach(function(r){to(e,Mt({},n.labels.text,{fill:r.textColor}),String(r.label),r.x,r.y)})},voe=function(e){var t=e.data,n=e.offset,r=e.skipAngle,i=e.label,a=e.textColor,o=gi(i),s=Ft(),l=gr(a,s),c=v.useCallback(function(u){return{label:o(u),textColor:l(u)}},[o,l]);return poe({data:t,offset:n,skipAngle:r,computeExtraProps:c})},boe=function(e){var t=e.label,n=e.style,r=Ft();return b.jsxs(Vt.g,{opacity:n.opacity,children:[b.jsx(Vt.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),b.jsx(Hs,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Mt({},r.labels.text,{fill:n.textColor}),children:t})]})},yoe=function(e){var t=X5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},p1=function(e,t,n,r){var i,a,o=X5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),s=za(o,e.outerRadius+t),l=za(o,e.outerRadius+t+n);return o<Math.PI/2||o>1.5*Math.PI?(i="after",a={x:l.x+r,y:l.y}):(i="before",a={x:l.x-r,y:l.y}),{side:i,points:[s,l,a]}},xoe=Pv().x(function(e){return e.x}).y(function(e){return e.y}),woe=function(e,t,n,r,i,a,o){return ta([e,t,n,r,i,a,o],function(s,l,c,u,d,f,h){var p=p1({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return xoe(p)})},_oe=function(e,t,n,r){return ta([e,t,n,r],function(i,a,o,s){return yoe({startAngle:i,endAngle:a})})},Coe=function(e,t,n,r,i,a,o,s){return ta([e,t,n,r,i,a,o,s],function(l,c,u,d,f,h,p,m){var g=p1({startAngle:l,endAngle:c,outerRadius:d},f,h,p),y=g.points,_=g.side,w=y[2];return _==="before"?w.x-=m:w.x+=m,"translate("+w.x+","+w.y+")"})},Soe=function(e){var t=e.data,n=e.offset,r=n===void 0?0:n,i=e.diagonalLength,a=e.straightLength,o=e.skipAngle,s=o===void 0?0:o,l=e.textOffset,c=e.linkColor,u=e.textColor,d=Fn(),f=d.animate,h=d.config,p=Ft(),m=gr(c,p),g=gr(u,p),y=function(w,C){return v.useMemo(function(){return J5(w,C)},[w,C])}(t,s),_=function(w){var C=w.offset,x=w.diagonalLength,S=w.straightLength,E=w.textOffset,k=w.getLinkColor,T=w.getTextColor;return v.useMemo(function(){return{enter:function(D){return{startAngle:D.arc.startAngle,endAngle:D.arc.endAngle,innerRadius:D.arc.innerRadius,outerRadius:D.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:k(D),textColor:T(D),opacity:0}},update:function(D){return{startAngle:D.arc.startAngle,endAngle:D.arc.endAngle,innerRadius:D.arc.innerRadius,outerRadius:D.arc.outerRadius,offset:C,diagonalLength:x,straightLength:S,textOffset:E,linkColor:k(D),textColor:T(D),opacity:1}},leave:function(D){return{startAngle:D.arc.startAngle,endAngle:D.arc.endAngle,innerRadius:D.arc.innerRadius,outerRadius:D.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:k(D),textColor:T(D),opacity:0}}}},[x,S,E,k,T,C])}({offset:r,diagonalLength:i,straightLength:a,textOffset:l,getLinkColor:m,getTextColor:g});return{transition:so(y,{keys:function(w){return w.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:h,immediate:!f}),interpolateLink:woe,interpolateTextAnchor:_oe,interpolateTextPosition:Coe}},Toe=function(e){var t=e.center,n=e.data,r=e.label,i=e.skipAngle,a=e.offset,o=e.diagonalLength,s=e.straightLength,l=e.strokeWidth,c=e.textOffset,u=e.textColor,d=e.linkColor,f=e.component,h=f===void 0?boe:f,p=gi(r),m=Soe({data:n,skipAngle:i,offset:a,diagonalLength:o,straightLength:s,textOffset:c,linkColor:d,textColor:u}),g=m.transition,y=m.interpolateLink,_=m.interpolateTextAnchor,w=m.interpolateTextPosition,C=h;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(x,S){return v.createElement(C,{key:S.id,datum:S,label:p(S),style:Mt({},x,{thickness:l,path:y(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,x.offset,x.diagonalLength,x.straightLength),textAnchor:_(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius),textPosition:w(x.startAngle,x.endAngle,x.innerRadius,x.outerRadius,x.offset,x.diagonalLength,x.straightLength,x.textOffset)})})})})},koe=function(e,t,n,r){e.textBaseline="middle",eo(e,n.labels.text),t.forEach(function(i){e.textAlign=B5.canvas.align[i.textAnchor],to(e,Mt({},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(a,o){o===0?e.moveTo(a.x,a.y):e.lineTo(a.x,a.y)}),e.stroke()})},$oe=function(e){var t=e.data,n=e.skipAngle,r=n===void 0?0:n,i=e.offset,a=i===void 0?.5:i,o=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(Zc(d.arc.endAngle-d.arc.startAngle))>=r}).map(function(d){return Mt({},p1(d.arc,a,o,s),{data:d})})},[t,r,a,o,s]);return v.useMemo(function(){return u.map(function(d){return Mt({},c(d),d)})},[u,c])},Eoe=function(e){var t=e.data,n=e.skipAngle,r=e.offset,i=e.diagonalLength,a=e.straightLength,o=e.textOffset,s=o===void 0?0:o,l=e.label,c=e.linkColor,u=e.textColor,d=gi(l),f=Ft(),h=gr(c,f),p=gr(u,f),m=v.useCallback(function(g){var y,_={x:g.points[2].x,y:g.points[2].y};return g.side==="before"?(_.x-=s,y="end"):(_.x+=s,y="start"),Mt({},_,{label:d(g.data),linkColor:h(g.data),textAnchor:y,textColor:p(g.data)})},[d,h,p,s]);return $oe({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:m})},Moe=function(e){var t=e.datum,n=e.style,r=e.onClick,i=e.onMouseEnter,a=e.onMouseMove,o=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 a==null?void 0:a(t,d)},[a,t]),u=v.useCallback(function(d){return o==null?void 0:o(t,d)},[o,t]);return b.jsx(Vt.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:a?c:void 0,onMouseLeave:o?u:void 0,"data-testid":"arc."+t.id})},Ooe=function(e,t,n,r,i){return ta([e,t,n,r],function(a,o,s,l){return i({startAngle:a,endAngle:o,innerRadius:Math.max(0,s),outerRadius:Math.max(0,l)})})},Aoe=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,a=r.config,o=Q5(t,n);return{transition:so(e,{keys:function(s){return s.id},initial:o.update,from:o.enter,enter:o.update,update:o.update,leave:o.leave,config:a,immediate:!i}),interpolate:Ooe}},Roe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.onClick,s=e.onMouseEnter,l=e.onMouseMove,c=e.onMouseLeave,u=e.transitionMode,d=e.component,f=d===void 0?Moe:d,h=Ft(),p=gr(a,h),m=Aoe(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,y=m.interpolate,_=f;return b.jsx("g",{transform:"translate("+t[0]+","+t[1]+")",children:g(function(w,C){return v.createElement(_,{key:C.id,datum:C,style:Mt({},w,{borderWidth:i,path:y(w.startAngle,w.endAngle,w.innerRadius,w.outerRadius,r)}),onClick:o,onMouseEnter:s,onMouseMove:l,onMouseLeave:c})})})},Doe=function(e,t,n,r,i,a){a===void 0&&(a=!0);var o=[],s=za(hr(r),n);o.push([s.x,s.y]);var l=za(hr(i),n);o.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=za(hr(c),n);o.push([u.x,u.y])}o=o.map(function(g){var y=g[0],_=g[1];return[e+y,t+_]}),a&&o.push([e,t]);var d=o.map(function(g){return g[0]}),f=o.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:o,x:h,y:m,width:p-h,height:Math.max.apply(Math,f)-m}},Ioe=function(e,t,n,r,i,a){var o=q5(i,a,e,t);return o<n&&o>r},joe=function(e,t,n,r,i,a,o){if(Ioe(e,t,n,r,a,o)){var s=Uae(a,o,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},Noe=function(e){var t=e===void 0?{}:e,n=t.cornerRadius,r=n===void 0?0:n,i=t.padAngle,a=i===void 0?0:i;return v.useMemo(function(){return wQ().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},Poe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return b.jsx("circle",{r:r/2,cx:t+r/2,cy:n+r/2,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})},Loe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
283
+ M`+r/2+` 0
284
+ L`+.8*r+" "+r/2+`
285
+ L`+r/2+" "+r+`
286
+ L`+.2*r+" "+r/2+`
287
+ L`+r/2+` 0
288
+ `,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})},Foe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return b.jsx("rect",{x:t,y:n,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,width:r,height:r,style:{pointerEvents:"none"}})},Boe=function(e){var t=e.x,n=e.y,r=e.size,i=e.fill,a=e.opacity,o=a===void 0?1:a,s=e.borderWidth,l=s===void 0?0:s,c=e.borderColor;return b.jsx("g",{transform:"translate("+t+","+n+")",children:b.jsx("path",{d:`
289
+ M`+r/2+` 0
290
+ L`+r+" "+r+`
291
+ L0 `+r+`
292
+ L`+r/2+` 0
293
+ `,fill:i,opacity:o,strokeWidth:l,stroke:c===void 0?"transparent":c,style:{pointerEvents:"none"}})})};function Vi(){return Vi=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},Vi.apply(null,arguments)}var cr={translateX:0,translateY:0,padding:0,itemsSpacing:0,itemDirection:"left-to-right",justify:!1,symbolShape:"square",symbolSize:16,symbolSpacing:8},zoe={top:0,right:0,bottom:0,left:0},m1=function(e){var t,n=e.direction,r=e.itemsSpacing,i=e.padding,a=e.itemCount,o=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}:Vi({},zoe,i),c=l.left+l.right,u=l.top+l.bottom,d=o+c,f=s+u,h=(a-1)*r;return n==="row"?d=o*a+h+c:n==="column"&&(f=s*a+h+u),{width:d,height:f,padding:l}},tT=function(e){var t=e.anchor,n=e.translateX,r=e.translateY,i=e.containerWidth,a=e.containerHeight,o=e.width,s=e.height,l=n,c=r;switch(t){case"top":l+=(i-o)/2;break;case"top-right":l+=i-o;break;case"right":l+=i-o,c+=(a-s)/2;break;case"bottom-right":l+=i-o,c+=a-s;break;case"bottom":l+=(i-o)/2,c+=a-s;break;case"bottom-left":c+=a-s;break;case"left":c+=(a-s)/2;break;case"center":l+=(i-o)/2,c+=(a-s)/2}return{x:l,y:c}},nT=function(e){var t,n,r,i,a,o,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,o="central",l?(r=d,a="end"):(r=c+u,a="start");break;case"right-to-left":t=d-c,n=(f-c)/2,i=f/2,o="central",l?(r=0,a="start"):(r=d-c-u,a="end");break;case"top-to-bottom":t=(d-c)/2,n=0,r=d/2,a="middle",l?(i=f,o="alphabetic"):(i=c+u,o="text-before-edge");break;case"bottom-to-top":t=(d-c)/2,n=f-c,r=d/2,a="middle",l?(i=0,o="text-before-edge"):(i=f-c-u,o="alphabetic")}return{symbolX:t,symbolY:n,labelX:r,labelY:i,labelAnchor:a,labelAlignment:o}},Woe={circle:Poe,diamond:Loe,square:Foe,triangle:Boe},Uoe=function(e){var t,n,r,i,a,o,s,l,c,u,d,f=e.x,h=e.y,p=e.width,m=e.height,g=e.data,y=e.direction,_=y===void 0?cr.itemDirection:y,w=e.justify,C=w===void 0?cr.justify:w,x=e.textColor,S=e.background,E=S===void 0?"transparent":S,k=e.opacity,T=k===void 0?1:k,D=e.symbolShape,$=D===void 0?cr.symbolShape:D,M=e.symbolSize,R=M===void 0?cr.symbolSize:M,I=e.symbolSpacing,j=I===void 0?cr.symbolSpacing:I,A=e.symbolBorderWidth,O=A===void 0?0:A,L=e.symbolBorderColor,F=L===void 0?"transparent":L,P=e.onClick,W=e.onMouseEnter,H=e.onMouseLeave,q=e.toggleSerie,Z=e.effects,K=v.useState({}),te=K[0],ne=K[1],U=Ft(),B=v.useCallback(function(oe){if(Z){var be=Z.filter(function(ce){return ce.on==="hover"}).reduce(function(ce,ue){return Vi({},ce,ue.style)},{});ne(be)}W==null||W(g,oe)},[W,g,Z]),z=v.useCallback(function(oe){if(Z){var be=Z.filter(function(ce){return ce.on!=="hover"}).reduce(function(ce,ue){return Vi({},ce,ue.style)},{});ne(be)}H==null||H(g,oe)},[H,g,Z]),V=nT({direction:_,justify:C,symbolSize:(t=te.symbolSize)!=null?t:R,symbolSpacing:j,width:p,height:m}),N=V.symbolX,ee=V.symbolY,Q=V.labelX,X=V.labelY,se=V.labelAnchor,G=V.labelAlignment,J=[P,W,H,q].some(function(oe){return oe!==void 0}),ie=typeof $=="function"?$:Woe[$];return b.jsxs("g",{transform:"translate("+f+","+h+")",style:{opacity:(n=te.itemOpacity)!=null?n:T},children:[b.jsx("rect",{width:p,height:m,fill:(r=te.itemBackground)!=null?r:E,style:{cursor:J?"pointer":"auto"},onClick:function(oe){P==null||P(g,oe),q==null||q(g.id)},onMouseEnter:B,onMouseLeave:z}),he.createElement(ie,Vi({id:g.id,x:N,y:ee,size:(i=te.symbolSize)!=null?i:R,fill:(a=(o=g.fill)!=null?o:g.color)!=null?a:"black",borderWidth:(s=te.symbolBorderWidth)!=null?s:O,borderColor:(l=te.symbolBorderColor)!=null?l:F},g.hidden?U.legends.hidden.symbol:void 0)),b.jsx(Hs,{textAnchor:se,style:Vi({},U.legends.text,{fill:(c=(u=(d=te.itemTextColor)!=null?d:x)!=null?u:U.legends.text.fill)!=null?c:"black",dominantBaseline:G,pointerEvents:"none",userSelect:"none"},g.hidden?U.legends.hidden.text:void 0),x:Q,y:X,children:g.label})]})},Hoe=function(e){var t=e.data,n=e.x,r=e.y,i=e.direction,a=e.padding,o=a===void 0?cr.padding:a,s=e.justify,l=e.effects,c=e.itemWidth,u=e.itemHeight,d=e.itemDirection,f=d===void 0?cr.itemDirection:d,h=e.itemsSpacing,p=h===void 0?cr.itemsSpacing:h,m=e.itemTextColor,g=e.itemBackground,y=g===void 0?"transparent":g,_=e.itemOpacity,w=_===void 0?1:_,C=e.symbolShape,x=e.symbolSize,S=e.symbolSpacing,E=e.symbolBorderWidth,k=e.symbolBorderColor,T=e.onClick,D=e.onMouseEnter,$=e.onMouseLeave,M=e.toggleSerie,R=m1({itemCount:t.length,itemWidth:c,itemHeight:u,itemsSpacing:p,direction:i,padding:o}).padding,I=i==="row"?c+p:0,j=i==="column"?u+p:0;return b.jsx("g",{transform:"translate("+n+","+r+")",children:t.map(function(A,O){return b.jsx(Uoe,{data:A,x:O*I+R.left,y:O*j+R.top,width:c,height:u,direction:f,justify:s,effects:l,textColor:m,background:y,opacity:w,symbolShape:C,symbolSize:x,symbolSpacing:S,symbolBorderWidth:E,symbolBorderColor:k,onClick:T,onMouseEnter:D,onMouseLeave:$,toggleSerie:M},O)})})},g1=function(e){var t=e.data,n=e.containerWidth,r=e.containerHeight,i=e.translateX,a=i===void 0?cr.translateX:i,o=e.translateY,s=o===void 0?cr.translateY:o,l=e.anchor,c=e.direction,u=e.padding,d=u===void 0?cr.padding:u,f=e.justify,h=e.itemsSpacing,p=h===void 0?cr.itemsSpacing:h,m=e.itemWidth,g=e.itemHeight,y=e.itemDirection,_=e.itemTextColor,w=e.itemBackground,C=e.itemOpacity,x=e.symbolShape,S=e.symbolSize,E=e.symbolSpacing,k=e.symbolBorderWidth,T=e.symbolBorderColor,D=e.onClick,$=e.onMouseEnter,M=e.onMouseLeave,R=e.toggleSerie,I=e.effects,j=m1({itemCount:t.length,itemsSpacing:p,itemWidth:m,itemHeight:g,direction:c,padding:d}),A=j.width,O=j.height,L=tT({anchor:l,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:A,height:O}),F=L.x,P=L.y;return b.jsx(Hoe,{data:t,x:F,y:P,direction:c,padding:d,justify:f,effects:I,itemsSpacing:p,itemWidth:m,itemHeight:g,itemDirection:y,itemTextColor:_,itemBackground:w,itemOpacity:C,symbolShape:x,symbolSize:S,symbolSpacing:E,symbolBorderWidth:k,symbolBorderColor:T,onClick:D,onMouseEnter:$,onMouseLeave:M,toggleSerie:typeof R=="boolean"?void 0:R})},Voe={start:"left",middle:"center",end:"right"},v1=function(e,t){var n=t.data,r=t.containerWidth,i=t.containerHeight,a=t.translateX,o=a===void 0?0:a,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,y=t.itemWidth,_=t.itemHeight,w=t.itemDirection,C=w===void 0?"left-to-right":w,x=t.itemTextColor,S=t.symbolSize,E=S===void 0?16:S,k=t.symbolSpacing,T=k===void 0?8:k,D=t.theme,$=m1({itemCount:n.length,itemWidth:y,itemHeight:_,itemsSpacing:g,direction:u,padding:f}),M=$.width,R=$.height,I=$.padding,j=tT({anchor:c,translateX:o,translateY:l,containerWidth:r,containerHeight:i,width:M,height:R}),A=j.x,O=j.y,L=u==="row"?y+g:0,F=u==="column"?_+g:0;e.save(),e.translate(A,O),eo(e,D.legends.text),n.forEach(function(P,W){var H,q=W*L+I.left,Z=W*F+I.top,K=nT({direction:C,justify:p,symbolSize:E,symbolSpacing:T,width:y,height:_}),te=K.symbolX,ne=K.symbolY,U=K.labelX,B=K.labelY,z=K.labelAnchor,V=K.labelAlignment;e.fillStyle=(H=P.color)!=null?H:"black",e.fillRect(q+te,Z+ne,E,E),e.textAlign=Voe[z],V==="central"&&(e.textBaseline="middle"),to(e,Vi({},D.legends.text,{fill:x??D.legends.text.fill}),String(P.label),q+U,Z+B)}),e.restore()};function vr(){return vr=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},vr.apply(null,arguments)}function Kc(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 Yx,qoe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(o,s){var l;return b.jsx(g1,vr({},o,{containerWidth:t,containerHeight:n,data:(l=o.data)!=null?l:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},xe={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 b.jsx($v,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(Yx=window.devicePixelRatio)!=null?Yx:1},Yoe=["points"],rT=function(e){var t=e.data,n=e.id,r=n===void 0?xe.id:n,i=e.value,a=i===void 0?xe.value:i,o=e.valueFormat,s=e.colors,l=s===void 0?xe.colors:s,c=gi(r),u=gi(a),d=ys(o),f=h1(l,"id");return v.useMemo(function(){return t.map(function(h){var p,m=c(h),g=u(h),y={id:m,label:(p=h.label)!=null?p:m,hidden:!1,value:g,formattedValue:d(g),data:h};return vr({},y,{color:f(y)})})},[t,c,u,d,f])},Goe=function(e){var t=e.data,n=e.startAngle,r=e.endAngle,i=e.innerRadius,a=e.outerRadius,o=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 y=TQ().value(function(_){return _.value}).startAngle(hr(n)).endAngle(hr(r)).padAngle(hr(o));return s||y.sortValues(null),y},[n,r,o,s]),p=v.useMemo(function(){var y=t.filter(function(_){return!d.includes(_.id)});return{dataWithArc:h(y).map(function(_){var w=Math.abs(_.endAngle-_.startAngle);return vr({},_.data,{arc:{index:_.index,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:l===_.data.id?i-c:i,outerRadius:l===_.data.id?a+u:a,thickness:a-i,padAngle:_.padAngle,angle:w,angleDeg:Zc(w)}})}),legendData:t.map(function(_){return{id:_.id,label:_.label,color:_.color,hidden:d.includes(_.id),data:_}})}},[h,t,d,l,i,c,a,u]),m=p.legendData,g=v.useRef(f);return v.useEffect(function(){typeof g.current=="function"&&g.current(m)},[g,m]),p},Zoe=function(e){var t=e.activeId,n=e.onActiveIdChange,r=e.defaultActiveId,i=t!==void 0,a=v.useState(i||r===void 0?null:r),o=a[0],s=a[1];return{activeId:i?t:o,setActiveId:v.useCallback(function(l){n&&n(l),i||s(l)},[i,n,s])}},iT=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?xe.innerRadius:i,o=e.startAngle,s=o===void 0?xe.startAngle:o,l=e.endAngle,c=l===void 0?xe.endAngle:l,u=e.padAngle,d=u===void 0?xe.padAngle:u,f=e.sortByValue,h=f===void 0?xe.sortByValue:f,p=e.cornerRadius,m=p===void 0?xe.cornerRadius:p,g=e.fit,y=g===void 0?xe.fit:g,_=e.activeInnerRadiusOffset,w=_===void 0?xe.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,x=C===void 0?xe.activeOuterRadiusOffset:C,S=e.activeId,E=e.onActiveIdChange,k=e.defaultActiveId,T=e.forwardLegendData,D=Zoe({activeId:S,onActiveIdChange:E,defaultActiveId:k}),$=D.activeId,M=D.setActiveId,R=v.useState([]),I=R[0],j=R[1],A=v.useMemo(function(){var F,P=Math.min(n,r)/2,W=P*Math.min(a,1),H=n/2,q=r/2;if(y){var Z=Doe(H,q,P,s-90,c-90),K=Z.points,te=Kc(Z,Yoe),ne=Math.min(n/te.width,r/te.height),U={width:te.width*ne,height:te.height*ne};U.x=(n-U.width)/2,U.y=(r-U.height)/2,H=(H-te.x)/te.width*te.width*ne+U.x,q=(q-te.y)/te.height*te.height*ne+U.y,F={box:te,ratio:ne,points:K},P*=ne,W*=ne}return{centerX:H,centerY:q,radius:P,innerRadius:W,debug:F}},[n,r,a,s,c,y]),O=Goe({data:t,startAngle:s,endAngle:c,innerRadius:A.innerRadius,outerRadius:A.radius,padAngle:d,sortByValue:h,activeId:$,activeInnerRadiusOffset:w,activeOuterRadiusOffset:x,hiddenIds:I,forwardLegendData:T}),L=v.useCallback(function(F){j(function(P){return P.indexOf(F)>-1?P.filter(function(W){return W!==F}):[].concat(P,[F])})},[]);return vr({arcGenerator:Noe({cornerRadius:m,padAngle:hr(d)}),activeId:$,setActiveId:M,toggleSerie:L},O,A)},Koe=function(e){var t=e.dataWithArc,n=e.arcGenerator,r=e.centerX,i=e.centerY,a=e.radius,o=e.innerRadius;return v.useMemo(function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:i,radius:a,innerRadius:o}},[t,n,r,i,a,o])},Xoe=function(e){var t=e.center,n=e.data,r=e.arcGenerator,i=e.borderWidth,a=e.borderColor,o=e.isInteractive,s=e.onClick,l=e.onMouseEnter,c=e.onMouseMove,u=e.onMouseLeave,d=e.setActiveId,f=e.tooltip,h=e.transitionMode,p=Ei(),m=p.showTooltipFromEvent,g=p.hideTooltip,y=v.useMemo(function(){if(o)return function(x,S){s==null||s(x,S)}},[o,s]),_=v.useMemo(function(){if(o)return function(x,S){m(v.createElement(f,{datum:x}),S),d(x.id),l==null||l(x,S)}},[o,m,d,l,f]),w=v.useMemo(function(){if(o)return function(x,S){m(v.createElement(f,{datum:x}),S),c==null||c(x,S)}},[o,m,c,f]),C=v.useMemo(function(){if(o)return function(x,S){g(),d(null),u==null||u(x,S)}},[o,g,d,u]);return b.jsx(Roe,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:y,onMouseEnter:_,onMouseMove:w,onMouseLeave:C})},Joe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Qoe=function(e){var t=e.data,n=e.id,r=n===void 0?xe.id:n,i=e.value,a=i===void 0?xe.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?xe.sortByValue:s,c=e.layers,u=c===void 0?xe.layers:c,d=e.startAngle,f=d===void 0?xe.startAngle:d,h=e.endAngle,p=h===void 0?xe.endAngle:h,m=e.padAngle,g=m===void 0?xe.padAngle:m,y=e.fit,_=y===void 0?xe.fit:y,w=e.innerRadius,C=w===void 0?xe.innerRadius:w,x=e.cornerRadius,S=x===void 0?xe.cornerRadius:x,E=e.activeInnerRadiusOffset,k=E===void 0?xe.activeInnerRadiusOffset:E,T=e.activeOuterRadiusOffset,D=T===void 0?xe.activeOuterRadiusOffset:T,$=e.width,M=e.height,R=e.margin,I=e.colors,j=I===void 0?xe.colors:I,A=e.borderWidth,O=A===void 0?xe.borderWidth:A,L=e.borderColor,F=L===void 0?xe.borderColor:L,P=e.enableArcLabels,W=P===void 0?xe.enableArcLabels:P,H=e.arcLabel,q=H===void 0?xe.arcLabel:H,Z=e.arcLabelsSkipAngle,K=Z===void 0?xe.arcLabelsSkipAngle:Z,te=e.arcLabelsSkipRadius,ne=te===void 0?xe.arcLabelsSkipRadius:te,U=e.arcLabelsTextColor,B=U===void 0?xe.arcLabelsTextColor:U,z=e.arcLabelsRadiusOffset,V=z===void 0?xe.arcLabelsRadiusOffset:z,N=e.arcLabelsComponent,ee=e.enableArcLinkLabels,Q=ee===void 0?xe.enableArcLinkLabels:ee,X=e.arcLinkLabel,se=X===void 0?xe.arcLinkLabel:X,G=e.arcLinkLabelsSkipAngle,J=G===void 0?xe.arcLinkLabelsSkipAngle:G,ie=e.arcLinkLabelsOffset,oe=ie===void 0?xe.arcLinkLabelsOffset:ie,be=e.arcLinkLabelsDiagonalLength,ce=be===void 0?xe.arcLinkLabelsDiagonalLength:be,ue=e.arcLinkLabelsStraightLength,Ce=ue===void 0?xe.arcLinkLabelsStraightLength:ue,ke=e.arcLinkLabelsThickness,ye=ke===void 0?xe.arcLinkLabelsThickness:ke,Me=e.arcLinkLabelsTextOffset,pe=Me===void 0?xe.arcLinkLabelsTextOffset:Me,me=e.arcLinkLabelsTextColor,fe=me===void 0?xe.arcLinkLabelsTextColor:me,je=e.arcLinkLabelsColor,qe=je===void 0?xe.arcLinkLabelsColor:je,xt=e.arcLinkLabelComponent,Te=e.defs,Ie=Te===void 0?xe.defs:Te,at=e.fill,He=at===void 0?xe.fill:at,mt=e.isInteractive,ut=mt===void 0?xe.isInteractive:mt,Rt=e.onClick,Xe=e.onMouseEnter,Fe=e.onMouseMove,Ye=e.onMouseLeave,et=e.tooltip,Be=et===void 0?xe.tooltip:et,tt=e.activeId,vt=e.onActiveIdChange,ot=e.defaultActiveId,Le=e.transitionMode,Oe=Le===void 0?xe.transitionMode:Le,Ze=e.legends,wt=Ze===void 0?xe.legends:Ze,nt=e.forwardLegendData,bt=e.role,en=bt===void 0?xe.role:bt,Bt=e.forwardedRef,Wt=vo($,M,R),fn=Wt.outerWidth,Yt=Wt.outerHeight,$e=Wt.margin,Je=Wt.innerWidth,St=Wt.innerHeight,on=rT({data:t,id:r,value:a,valueFormat:o,colors:j}),Gt=iT({data:on,width:Je,height:St,fit:_,innerRadius:C,startAngle:f,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:S,activeInnerRadiusOffset:k,activeOuterRadiusOffset:D,activeId:tt,onActiveIdChange:vt,defaultActiveId:ot,forwardLegendData:nt}),ze=Gt.dataWithArc,We=Gt.legendData,ht=Gt.arcGenerator,Dt=Gt.centerX,Tt=Gt.centerY,Qe=Gt.radius,kt=Gt.innerRadius,yr=Gt.setActiveId,ln=Gt.toggleSerie,cn=d1(Ie,ze,He),Rn={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Rn.arcs=b.jsx(Xoe,{center:[Dt,Tt],data:ze,arcGenerator:ht,borderWidth:O,borderColor:F,isInteractive:ut,onClick:Rt,onMouseEnter:Xe,onMouseMove:Fe,onMouseLeave:Ye,setActiveId:yr,tooltip:Be,transitionMode:Oe},"arcs")),Q&&u.includes("arcLinkLabels")&&(Rn.arcLinkLabels=b.jsx(Toe,{center:[Dt,Tt],data:ze,label:se,skipAngle:J,offset:oe,diagonalLength:ce,straightLength:Ce,strokeWidth:ye,textOffset:pe,textColor:fe,linkColor:qe,component:xt},"arcLinkLabels")),W&&u.includes("arcLabels")&&(Rn.arcLabels=b.jsx(moe,{center:[Dt,Tt],data:ze,label:q,radiusOffset:V,skipAngle:K,skipRadius:ne,textColor:B,transitionMode:Oe,component:N},"arcLabels")),wt.length>0&&u.includes("legends")&&(Rn.legends=b.jsx(qoe,{width:Je,height:St,data:We,legends:wt,toggleSerie:ln},"legends"));var ca=Koe({dataWithArc:ze,arcGenerator:ht,centerX:Dt,centerY:Tt,radius:Qe,innerRadius:kt});return b.jsx(jh,{width:fn,height:Yt,margin:$e,defs:cn,role:en,ref:Bt,children:u.map(function(Ct,ua){return Rn[Ct]!==void 0?Rn[Ct]:typeof Ct=="function"?b.jsx(v.Fragment,{children:v.createElement(Ct,ca)},ua):null})})},ese=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?xe.isInteractive:n,i=e.animate,a=i===void 0?xe.animate:i,o=e.motionConfig,s=o===void 0?xe.motionConfig:o,l=e.theme,c=e.renderWrapper,u=Kc(e,Joe);return b.jsx(mo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(Qoe,vr({isInteractive:r},u,{forwardedRef:t}))})}),tse=["defaultWidth","defaultHeight","onResize","debounceResize"],nse=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Kc(e,tse);return b.jsx(go,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(ese,vr({width:l,height:c},o,{ref:t}))}})}),rse=["isInteractive","theme","renderWrapper"],ise=function(e){var t=e.data,n=e.id,r=n===void 0?xe.id:n,i=e.value,a=i===void 0?xe.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?xe.sortByValue:s,c=e.startAngle,u=c===void 0?xe.startAngle:c,d=e.endAngle,f=d===void 0?xe.endAngle:d,h=e.padAngle,p=h===void 0?xe.padAngle:h,m=e.fit,g=m===void 0?xe.fit:m,y=e.innerRadius,_=y===void 0?xe.innerRadius:y,w=e.cornerRadius,C=w===void 0?xe.cornerRadius:w,x=e.activeInnerRadiusOffset,S=x===void 0?xe.activeInnerRadiusOffset:x,E=e.activeOuterRadiusOffset,k=E===void 0?xe.activeOuterRadiusOffset:E,T=e.width,D=e.height,$=e.margin,M=e.pixelRatio,R=M===void 0?xe.pixelRatio:M,I=e.colors,j=I===void 0?xe.colors:I,A=e.borderWidth,O=A===void 0?xe.borderWidth:A,L=e.borderColor,F=L===void 0?xe.borderColor:L,P=e.enableArcLabels,W=P===void 0?xe.enableArcLabels:P,H=e.arcLabel,q=H===void 0?xe.arcLabel:H,Z=e.arcLabelsSkipAngle,K=Z===void 0?xe.arcLabelsSkipAngle:Z,te=e.arcLabelsTextColor,ne=te===void 0?xe.arcLabelsTextColor:te,U=e.arcLabelsRadiusOffset,B=U===void 0?xe.arcLabelsRadiusOffset:U,z=e.enableArcLinkLabels,V=z===void 0?xe.enableArcLinkLabels:z,N=e.arcLinkLabel,ee=N===void 0?xe.arcLinkLabel:N,Q=e.arcLinkLabelsSkipAngle,X=Q===void 0?xe.arcLinkLabelsSkipAngle:Q,se=e.arcLinkLabelsOffset,G=se===void 0?xe.arcLinkLabelsOffset:se,J=e.arcLinkLabelsDiagonalLength,ie=J===void 0?xe.arcLinkLabelsDiagonalLength:J,oe=e.arcLinkLabelsStraightLength,be=oe===void 0?xe.arcLinkLabelsStraightLength:oe,ce=e.arcLinkLabelsThickness,ue=ce===void 0?xe.arcLinkLabelsThickness:ce,Ce=e.arcLinkLabelsTextOffset,ke=Ce===void 0?xe.arcLinkLabelsTextOffset:Ce,ye=e.arcLinkLabelsTextColor,Me=ye===void 0?xe.arcLinkLabelsTextColor:ye,pe=e.arcLinkLabelsColor,me=pe===void 0?xe.arcLinkLabelsColor:pe,fe=e.isInteractive,je=fe===void 0?xe.isInteractive:fe,qe=e.onClick,xt=e.onMouseMove,Te=e.tooltip,Ie=Te===void 0?xe.tooltip:Te,at=e.activeId,He=e.onActiveIdChange,mt=e.defaultActiveId,ut=e.legends,Rt=ut===void 0?xe.legends:ut,Xe=e.forwardLegendData,Fe=e.role,Ye=e.forwardedRef,et=v.useRef(null),Be=Ft(),tt=vo(T,D,$),vt=tt.margin,ot=tt.innerWidth,Le=tt.innerHeight,Oe=tt.outerWidth,Ze=tt.outerHeight,wt=rT({data:t,id:r,value:a,valueFormat:o,colors:j}),nt=iT({data:wt,width:ot,height:Le,fit:g,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:S,activeOuterRadiusOffset:k,activeId:at,onActiveIdChange:He,defaultActiveId:mt,forwardLegendData:Xe}),bt=nt.dataWithArc,en=nt.arcGenerator,Bt=nt.centerX,Wt=nt.centerY,fn=nt.radius,Yt=nt.innerRadius,$e=nt.setActiveId,Je=gr(F,Be),St=voe({data:bt,label:q,skipAngle:K,offset:B,textColor:ne}),on=Eoe({data:bt,skipAngle:X,offset:G,diagonalLength:ie,straightLength:be,label:ee,linkColor:me,textOffset:ke,textColor:Me});v.useEffect(function(){if(et.current){et.current.width=Oe*R,et.current.height=Ze*R;var Qe=et.current.getContext("2d");Qe.scale(R,R),Qe.fillStyle=Be.background,Qe.fillRect(0,0,Oe,Ze),Qe.save(),Qe.translate(vt.left,vt.top),en.context(Qe),Qe.save(),Qe.translate(Bt,Wt),bt.forEach(function(kt){Qe.beginPath(),Qe.fillStyle=kt.color,Qe.strokeStyle=Je(kt),Qe.lineWidth=O,en(kt.arc),Qe.fill(),O>0&&Qe.stroke()}),V===!0&&koe(Qe,on,Be,ue),W===!0&&goe(Qe,St,Be),Qe.restore(),Rt.forEach(function(kt){v1(Qe,vr({},kt,{data:bt,containerWidth:ot,containerHeight:Le,theme:Be}))})}},[et,ot,Le,Oe,Ze,vt.top,vt.left,R,Bt,Wt,en,bt,O,Je,W,St,V,on,ue,Rt,Be]);var Gt=v.useMemo(function(){return bt.map(function(Qe){return vr({id:Qe.id},Qe.arc)})},[bt]),ze=function(Qe){if(!et.current)return null;var kt=Jo(et.current,Qe),yr=kt[0],ln=kt[1],cn=joe(vt.left+Bt,vt.top+Wt,fn,Yt,Gt,yr,ln);return cn?bt.find(function(Rn){return Rn.id===cn.id}):null},We=Ei(),ht=We.showTooltipFromEvent,Dt=We.hideTooltip,Tt=function(Qe){var kt=ze(Qe);kt?(xt==null||xt(kt,Qe),$e(kt.id),ht(v.createElement(Ie,{datum:kt}),Qe)):($e(null),Dt())};return b.jsx("canvas",{ref:f1(et,Ye),width:Oe*R,height:Ze*R,style:{width:Oe,height:Ze,cursor:je?"auto":"normal"},onMouseEnter:je?Tt:void 0,onMouseMove:je?Tt:void 0,onMouseLeave:je?function(){Dt()}:void 0,onClick:je?function(Qe){if(qe){var kt=ze(Qe);kt&&qe(kt,Qe)}}:void 0,role:Fe})},ase=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?xe.isInteractive:n,i=e.theme,a=e.renderWrapper,o=Kc(e,rse);return b.jsx(mo,{isInteractive:r,renderWrapper:a,theme:i,children:b.jsx(ise,vr({isInteractive:r},o,{forwardedRef:t}))})}),ose=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Kc(e,ose);return b.jsx(go,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(ase,vr({width:l,height:c},o,{ref:t}))}})});function sse(){}var lse=sse,Xp=I5,cse=lse,use=o1,dse=1/0,fse=Xp&&1/use(new Xp([,-0]))[1]==dse?function(e){return new Xp(e)}:cse,hse=fse,pse=Dv,mse=k6,gse=$6,vse=Iv,bse=hse,yse=o1,xse=200;function wse(e,t,n){var r=-1,i=mse,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=gse;else if(a>=xse){var c=t?null:bse(e);if(c)return yse(c);o=!1,i=vse,l=new pse}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&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 aT=wse,_se=aT;function Cse(e){return e&&e.length?_se(e):[]}var Sse=Cse;const Gx=an(Sse);var Tse=Wf,kse=l1,$se=1,Ese=2;function Mse(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Tse;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?kse(u,c,$se|Ese,r,d):f))return!1}}return!0}var Ose=Mse,Ase=Qr;function Rse(e){return e===e&&!Ase(e)}var oT=Rse,Dse=oT,Ise=Gc;function jse(e){for(var t=Ise(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Dse(i)]}return t}var Nse=jse;function Pse(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var sT=Pse,Lse=Ose,Fse=Nse,Bse=sT;function zse(e){var t=Fse(e);return t.length==1&&t[0][2]?Bse(t[0][0],t[0][1]):function(n){return n===e||Lse(n,e,t)}}var Wse=zse,Use=l1,Hse=u6,Vse=T5,qse=Tv,Yse=oT,Gse=sT,Zse=zs,Kse=1,Xse=2;function Jse(e,t){return qse(e)&&Yse(t)?Gse(Zse(e),t):function(n){var r=Hse(n,e);return r===void 0&&r===t?Vse(n,e):Use(t,r,Kse|Xse)}}var Qse=Jse;function ele(e){return function(t){return t==null?void 0:t[e]}}var tle=ele,nle=qc;function rle(e){return function(t){return nle(t,e)}}var ile=rle,ale=tle,ole=ile,sle=Tv,lle=zs;function cle(e){return sle(e)?ale(lle(e)):ole(e)}var ule=cle,dle=Wse,fle=Qse,hle=Yf,ple=Jn,mle=ule;function gle(e){return typeof e=="function"?e:e==null?hle:typeof e=="object"?ple(e)?fle(e[0],e[1]):dle(e):mle(e)}var b1=gle,vle=b1,ble=aT;function yle(e,t){return e&&e.length?ble(e,vle(t)):[]}var xle=yle;const Tg=an(xle);var wle=HS,_le=Gc;function Cle(e,t){return e&&wle(e,t,_le)}var Sle=Cle,Tle=Ps;function kle(e,t){return function(n,r){if(n==null)return n;if(!Tle(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var $le=kle,Ele=Sle,Mle=$le,Ole=Mle(Ele),lT=Ole,Ale=lT,Rle=Ps;function Dle(e,t){var n=-1,r=Rle(e)?Array(e.length):[];return Ale(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var Ile=Dle;function jle(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Nle=jle,Zx=Gf;function Ple(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Zx(e),o=t!==void 0,s=t===null,l=t===t,c=Zx(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var Lle=Ple,Fle=Lle;function Ble(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=Fle(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var zle=Ble,Jp=Zf,Wle=qc,Ule=b1,Hle=Ile,Vle=Nle,qle=Ls,Yle=zle,Gle=Yf,Zle=Jn;function Kle(e,t,n){t.length?t=Jp(t,function(a){return Zle(a)?function(o){return Wle(o,a.length===1?a[0]:a)}:a}):t=[Gle];var r=-1;t=Jp(t,qle(Ule));var i=Hle(e,function(a,o,s){var l=Jp(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return Vle(i,function(a,o){return Yle(a,o,n)})}var Xle=Kle,Jle=$5,Qle=Xle,ece=Sv,Kx=a6,tce=ece(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Kx(e,t[0],t[1])?t=[]:n>2&&Kx(t[0],t[1],t[2])&&(t=[t[0]]),Qle(e,Jle(t,1),[])}),nce=tce;const rce=an(nce);var ice=$i,ace=br,oce="[object Date]";function sce(e){return ace(e)&&ice(e)==oce}var lce=sce,cce=lce,uce=Ls,Xx=Vf,Jx=Xx&&Xx.isDate,dce=Jx?uce(Jx):cce,fce=dce;const hce=an(fce);function $a(){return $a=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},$a.apply(null,arguments)}var Ao=[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)}],pce={millisecond:[],second:Ao.slice(0,1),minute:Ao.slice(0,2),hour:Ao.slice(0,3),day:Ao.slice(0,4),month:Ao.slice(0,5),year:Ao.slice(0,6)},mce=function(e){return function(t){return pce[e].forEach(function(n){n(t)}),t}},cT=function(e){var t=e.format,n=t===void 0?"native":t,r=e.precision,i=r===void 0?"millisecond":r,a=e.useUTC,o=a===void 0||a,s=mce(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=o?_5(n):x5(n);return s(c(l))}},xa={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},gce=function(e,t,n,r){var i,a,o,s,l=e.min,c=l===void 0?xa.min:l,u=e.max,d=u===void 0?xa.max:u,f=e.stacked,h=f===void 0?xa.stacked:f,p=e.reverse,m=p===void 0?xa.reverse:p,g=e.clamp,y=g===void 0?xa.clamp:g,_=e.nice,w=_===void 0?xa.nice:_,C=e.round,x=C===void 0?xa.round:C;c==="auto"?i=h===!0?(a=t.minStacked)!=null?a:0:t.min:i=c,d==="auto"?o=h===!0?(s=t.maxStacked)!=null?s:0:t.max:o=d;var S=Id().range(r==="x"?[0,n]:[n,0]).interpolate(x?S6:pc).domain(m?[o,i]:[i,o]).clamp(y);return w===!0?S.nice():typeof w=="number"&&S.nice(w),vce(S,h)},vce=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},bce=function(e,t,n){var r=aee().range([0,n]).domain(t.all);return r.type="point",r},yce={round:!1},xce=function(e,t,n,r){var i=e.round,a=i===void 0?yce.round:i,o=Uv().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return wce(o)},wce=function(e){var t=e;return t.type="band",t},Ro={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},_ce=function(e,t,n){var r,i,a=e.format,o=a===void 0?Ro.format:a,s=e.precision,l=s===void 0?Ro.precision:s,c=e.min,u=c===void 0?Ro.min:c,d=e.max,f=d===void 0?Ro.max:d,h=e.useUTC,p=h===void 0?Ro.useUTC:h,m=e.nice,g=m===void 0?Ro.nice:m,y=cT({format:o,precision:l,useUTC:p});r=u==="auto"?y(t.min):o!=="native"?y(u):u,i=f==="auto"?y(t.max):o!=="native"?y(f):f;var _=p?Kte():Zte();_.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},Do={base:10,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Cce=function(e,t,n,r){var i,a=e.base,o=a===void 0?Do.base:a,s=e.min,l=s===void 0?Do.min:s,c=e.max,u=c===void 0?Do.max:c,d=e.round,f=d===void 0?Do.round:d,h=e.reverse,p=h===void 0?Do.reverse:h,m=e.nice,g=m===void 0?Do.nice:m;if(t.all.some(function(E){return E===0}))throw new Error("a log scale domain must not include or cross zero");var y,_,w=!1;if(t.all.filter(function(E){return E!=null}).forEach(function(E){w||(i===void 0?i=Math.sign(E):Math.sign(E)!==i&&(w=!0))}),w)throw new Error("a log scale domain must be strictly-positive or strictly-negative");y=l==="auto"?t.min:l,_=u==="auto"?t.max:u;var C=Z6().base(o),x=r==="x"?[0,n]:[n,0];f===!0?C.rangeRound(x):C.range(x),p===!0?C.domain([_,y]):C.domain([y,_]),g===!0?C.nice():typeof g=="number"&&C.nice(g);var S=C;return S.type="log",S},Io={constant:1,min:"auto",max:"auto",round:!1,reverse:!1,nice:!0},Sce=function(e,t,n,r){var i,a,o=e.constant,s=o===void 0?Io.constant:o,l=e.min,c=l===void 0?Io.min:l,u=e.max,d=u===void 0?Io.max:u,f=e.round,h=f===void 0?Io.round:f,p=e.reverse,m=p===void 0?Io.reverse:p,g=e.nice,y=g===void 0?Io.nice:g;i=c==="auto"?t.min:c,a=d==="auto"?t.max:d;var _=K6().constant(s),w=r==="x"?[0,n]:[n,0];h===!0?_.rangeRound(w):_.range(w),m===!0?_.domain([a,i]):_.domain([i,a]),y===!0?_.nice():typeof y=="number"&&_.nice(y);var C=_;return C.type="symlog",C},Tce=function(e){return e==="x"?"y":"x"},kce=function(e,t){return e===t},$ce=function(e,t){return e.getTime()===t.getTime()};function xc(e,t,n,r){switch(e.type){case"linear":return gce(e,t,n,r);case"point":return bce(0,t,n);case"band":return xce(e,t,n,r);case"time":return _ce(e,t,n);case"log":return Cce(e,t,n,r);case"symlog":return Sce(e,t,n,r);default:throw new Error("invalid scale spec")}}var Qx=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},Ece=function(e,t,n,r,i){var a=e.map(function(u){return function(d){return $a({},d,{data:d.data.map(function(f){return{data:$a({},f)}})})}(u)}),o=Mce(a,t,n);"stacked"in t&&t.stacked===!0&&Oce(o,a),"stacked"in n&&n.stacked===!0&&Ace(o,a);var s=xc(t,o.x,r,"x"),l=xc(n,o.y,i,"y"),c=a.map(function(u){return $a({},u,{data:u.data.map(function(d){return $a({},d,{position:{x:Qx(d,"x",s),y:Qx(d,"y",l)}})})})});return $a({},o,{series:c,xScale:s,yScale:l})},Mce=function(e,t,n){return{x:ew(e,"x",t),y:ew(e,"y",n)}},ew=function(e,t,n,r){var i={},a=i.getValue,o=a===void 0?function(p){return p.data[t]}:a,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=o(m);g&&l(m,parseFloat(String(g)))})});else if(n.type==="time"&&n.format!=="native"){var c=cT(n);e.forEach(function(p){p.data.forEach(function(m){var g=o(m);g&&l(m,c(g))})})}var u=[];switch(e.forEach(function(p){p.data.forEach(function(m){u.push(o(m))})}),n.type){case"linear":var d=rce(Gx(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=Tg(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:Ne(f)};default:var h=Gx(u);return{all:h,min:h[0],max:Ne(h)}}},uT=function(e,t,n){var r=Tce(e),i=[];t[r].all.forEach(function(a){var o=hce(a)?$ce:kce,s=[];n.forEach(function(l){var c=l.data.find(function(h){return o(h.data[r],a)}),u=null,d=null;if(c!==void 0){if((u=c.data[e])!==null){var f=Ne(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)},Oce=function(e,t){return uT("x",e,t)},Ace=function(e,t){return uT("y",e,t)},dT=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}},fT={millisecond:[vc,vc],second:[bg,bg],minute:[n5,c5],hour:[r5,u5],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:[Ld,Fd],sunday:[Ld,Fd],monday:[bc,yc],tuesday:[i5,d5],wednesday:[a5,f5],thursday:[Ja,Qa],friday:[o5,h5],saturday:[s5,p5],month:[l5,m5],year:[ra,ia]},Rce=Object.keys(fT),Dce=new RegExp("^every\\s*(\\d+)?\\s*("+Rce.join("|")+")s?$","i"),hT=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(Dce);if(n){var r=n[1],i=n[2],a=fT[i][e.useUTC?1:0];if(i==="day"){var o,s,l=e.domain(),c=l[0],u=l[1],d=new Date(u);return d.setDate(d.getDate()+1),(o=(s=a.every(Number(r??1)))==null?void 0:s.range(c,d))!=null?o:[]}if(r===void 0)return e.ticks(a);var f=a.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 Or(){return Or=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},Or.apply(null,arguments)}var pT=function(e){var t,n=e.axis,r=e.scale,i=e.ticksPosition,a=e.tickValues,o=e.tickSize,s=e.tickPadding,l=e.tickRotation,c=e.truncateTickAt,u=e.engine,d=u===void 0?"svg":u,f=hT(r,a),h=B5[d],p="bandwidth"in r?dT(r):r,m={lineX:0,lineY:0},g={textX:0,textY:0},y=typeof document=="object"&&document.dir==="rtl",_=h.align.center,w=h.baseline.center;return n==="x"?(t=function(C){var x;return{x:(x=p(C))!=null?x:0,y:0}},m.lineY=o*(i==="after"?1:-1),g.textY=(o+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[y?"left":"right"],w=h.baseline.center):(i==="after"&&l>0||i==="before"&&l<0)&&(_=h.align[y?"right":"left"],w=h.baseline.center)):(t=function(C){var x;return{x:0,y:(x=p(C))!=null?x:0}},m.lineX=o*(i==="after"?1:-1),g.textX=(o+s)*(i==="after"?1:-1),_=i==="after"?h.align.left:h.align.right),{ticks:f.map(function(C){var x=typeof C=="string"?function(S){var E=String(S).length;return c&&c>0&&E>c?""+String(S).slice(0,c).concat("..."):""+S}(C):C;return Or({key:C instanceof Date?""+C.valueOf():""+C,value:x},t(C),m,g)}),textAlign:_,textBaseline:w}},mT=function(e,t){if(e===void 0||typeof e=="function")return e;if(t.type==="time"){var n=ah(e);return function(r){return n(r instanceof Date?r:new Date(r))}}return Yc(e)},kg=function(e){var t,n=e.width,r=e.height,i=e.scale,a=e.axis,o=e.values,s=(t=o,(Array.isArray(t)?o:void 0)||hT(i,o)),l="bandwidth"in i?dT(i):i,c=a==="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},Ice=v.memo(function(e){var t,n=e.value,r=e.format,i=e.lineX,a=e.lineY,o=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 o?{style:Or({},h,{cursor:"pointer"}),onClick:function(p){return o(p,d)}}:{style:h}},[u.opacity,o,d]);return b.jsxs(Vt.g,Or({transform:u.transform},f,{children:[b.jsx("line",{x1:0,x2:i,y1:0,y2:a,style:c.line}),b.jsx(Hs,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Wn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},jce=function(e){var t=e.axis,n=e.scale,r=e.x,i=r===void 0?0:r,a=e.y,o=a===void 0?0:a,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,y=e.renderTick,_=y===void 0?Ice:y,w=e.truncateTickAt,C=e.legend,x=e.legendPosition,S=x===void 0?Wn.legendPosition:x,E=e.legendOffset,k=E===void 0?Wn.legendOffset:E,T=e.style,D=e.onClick,$=e.ariaHidden,M=Ft(),R=DX(M.axis,T),I=v.useMemo(function(){return mT(g,n)},[g,n]),j=pT({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m,truncateTickAt:w}),A=j.ticks,O=j.textAlign,L=j.textBaseline,F=null;if(C!==void 0){var P,W=0,H=0,q=0;t==="y"?(q=-90,W=k,S==="start"?(P="start",H=s):S==="middle"?(P="middle",H=s/2):S==="end"&&(P="end")):(H=k,S==="start"?P="start":S==="middle"?(P="middle",W=s/2):S==="end"&&(P="end",W=s)),F=b.jsx(b.Fragment,{children:b.jsx(Hs,{transform:"translate("+W+", "+H+") rotate("+q+")",textAnchor:P,style:Or({},R.legend.text,{dominantBaseline:"central"}),children:C})})}var Z=Fn(),K=Z.animate,te=Z.config,ne=Xr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:te,immediate:!K}),U=v.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),B=v.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),z=so(A,{keys:function(V){return V.key},initial:U,from:B,enter:U,update:U,leave:{opacity:0},config:te,immediate:!K});return b.jsxs(Vt.g,{transform:ne.transform,"aria-hidden":$,children:[z(function(V,N,ee,Q){return he.createElement(_,Or({tickIndex:Q,format:I,rotate:m,textBaseline:L,textAnchor:O,truncateTickAt:w,animatedProps:V,theme:R.ticks},N,D?{onClick:D}:{}))}),b.jsx(Vt.line,{style:R.domain.line,x1:0,x2:ne.lineX2,y1:0,y2:ne.lineY2}),F]})},Nce=v.memo(jce),gT=["top","right","bottom","left"],vT=v.memo(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,a={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return b.jsx(b.Fragment,{children:gT.map(function(o){var s=a[o];if(!s)return null;var l=o==="top"||o==="bottom";return b.jsx(Nce,Or({},s,{axis:l?"x":"y",x:o==="right"?r:0,y:o==="bottom"?i:0,scale:l?t:n,length:l?r:i,ticksPosition:o==="top"||o==="left"?"before":"after",truncateTickAt:s.truncateTickAt}),o)})})}),Pce=v.memo(function(e){var t=e.animatedProps,n=Ft();return b.jsx(Vt.line,Or({},t,n.grid.line))}),tw=v.memo(function(e){var t=e.lines,n=Fn(),r=n.animate,i=n.config,a=so(t,{keys:function(o){return o.key},initial:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},from:function(o){return{opacity:0,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},enter:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},update:function(o){return{opacity:1,x1:o.x1,x2:o.x2,y1:o.y1,y2:o.y2}},leave:{opacity:0},config:i,immediate:!r});return b.jsx("g",{children:a(function(o,s){return v.createElement(Pce,Or({},s,{key:s.key,animatedProps:o}))})})}),bT=v.memo(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,a=e.xValues,o=e.yValues,s=v.useMemo(function(){return!!r&&kg({width:t,height:n,scale:r,axis:"x",values:a})},[r,a,t,n]),l=v.useMemo(function(){return!!i&&kg({width:t,height:n,scale:i,axis:"y",values:o})},[n,t,i,o]);return b.jsxs(b.Fragment,{children:[s&&b.jsx(tw,{lines:s}),l&&b.jsx(tw,{lines:l})]})}),Lce=function(e,t){var n,r,i=t.axis,a=t.scale,o=t.x,s=o===void 0?0:o,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,y=t.tickRotation,_=y===void 0?Wn.tickRotation:y,w=t.format,C=t.legend,x=t.legendPosition,S=x===void 0?Wn.legendPosition:x,E=t.legendOffset,k=E===void 0?Wn.legendOffset:E,T=t.theme,D=t.style,$=pT({axis:i,scale:a,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:g,tickRotation:_,engine:"canvas"}),M=$.ticks,R=$.textAlign,I=$.textBaseline;e.save(),e.translate(s,c);var j=f6(T.axis,D);e.textAlign=R,e.textBaseline=I,eo(e,j.ticks.text);var A=(n=j.domain.line.strokeWidth)!=null?n:0;typeof A!="string"&&A>0&&(e.lineWidth=A,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,F=typeof L!="string"&&L>0;if(M.forEach(function(Z){F&&(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 K=O(Z.value);e.save(),e.translate(Z.x+Z.textX,Z.y+Z.textY),e.rotate(hr(_)),to(e,j.ticks.text,""+K),e.fillText(""+K,0,0),e.restore()}),C!==void 0){var P=0,W=0,H=0,q="center";i==="y"?(H=-90,P=k,S==="start"?(q="start",W=u):S==="middle"?(q="center",W=u/2):S==="end"&&(q="end")):(W=k,S==="start"?q="start":S==="middle"?(q="center",P=u/2):S==="end"&&(q="end",P=u)),e.translate(P,W),e.rotate(hr(H)),eo(e,j.legend.text),j.legend.text.fill&&(e.fillStyle=j.legend.text.fill),e.textAlign=q,e.textBaseline="middle",to(e,j.legend.text,C)}e.restore()},yT=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,a=t.height,o=t.top,s=t.right,l=t.bottom,c=t.left,u=t.theme,d={top:o,right:s,bottom:l,left:c};gT.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,y=mT(h.format,g);Lce(e,Or({},h,{axis:p?"x":"y",x:f==="right"?i:0,y:f==="bottom"?a:0,scale:g,format:y,length:p?i:a,ticksPosition:m,theme:u}))})},zd=function(e,t){var n=t.width,r=t.height,i=t.scale,a=t.axis,o=t.values;kg({width:n,height:r,scale:i,axis:a,values:o}).forEach(function(s){e.beginPath(),e.moveTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.stroke()})},Fce=c6,Bce=0;function zce(e){var t=++Bce;return Fce(e)+t}var Wce=zce;const Uce=an(Wce),vi=11102230246251565e-32,kn=134217729,Hce=(3+8*vi)*vi;function Qp(e,t,n,r,i){let a,o,s,l,c=t[0],u=r[0],d=0,f=0;u>c==u>-c?(a=c,c=t[++d]):(a=u,u=r[++f]);let h=0;if(d<e&&f<n)for(u>c==u>-c?(o=c+a,s=a-(o-c),c=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[h++]=s);d<e&&f<n;)u>c==u>-c?(o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d]):(o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f]),a=o,s!==0&&(i[h++]=s);for(;d<e;)o=a+c,l=o-a,s=a-(o-l)+(c-l),c=t[++d],a=o,s!==0&&(i[h++]=s);for(;f<n;)o=a+u,l=o-a,s=a-(o-l)+(u-l),u=r[++f],a=o,s!==0&&(i[h++]=s);return(a!==0||h===0)&&(i[h++]=a),h}function Vce(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Xc(e){return new Float64Array(e)}const qce=(3+16*vi)*vi,Yce=(2+12*vi)*vi,Gce=(9+64*vi)*vi*vi,jo=Xc(4),nw=Xc(8),rw=Xc(12),iw=Xc(16),In=Xc(4);function Zce(e,t,n,r,i,a,o){let s,l,c,u,d,f,h,p,m,g,y,_,w,C,x,S,E,k;const T=e-i,D=n-i,$=t-a,M=r-a;C=T*M,f=kn*T,h=f-(f-T),p=T-h,f=kn*M,m=f-(f-M),g=M-m,x=p*g-(C-h*m-p*m-h*g),S=$*D,f=kn*$,h=f-(f-$),p=$-h,f=kn*D,m=f-(f-D),g=D-m,E=p*g-(S-h*m-p*m-h*g),y=x-E,d=x-y,jo[0]=x-(y+d)+(d-E),_=C+y,d=_-C,w=C-(_-d)+(y-d),y=w-S,d=w-y,jo[1]=w-(y+d)+(d-S),k=_+y,d=k-_,jo[2]=_-(k-d)+(y-d),jo[3]=k;let R=Vce(4,jo),I=Yce*o;if(R>=I||-R>=I||(d=e-T,s=e-(T+d)+(d-i),d=n-D,c=n-(D+d)+(d-i),d=t-$,l=t-($+d)+(d-a),d=r-M,u=r-(M+d)+(d-a),s===0&&l===0&&c===0&&u===0)||(I=Gce*o+Hce*Math.abs(R),R+=T*u+M*s-($*c+D*l),R>=I||-R>=I))return R;C=s*M,f=kn*s,h=f-(f-s),p=s-h,f=kn*M,m=f-(f-M),g=M-m,x=p*g-(C-h*m-p*m-h*g),S=l*D,f=kn*l,h=f-(f-l),p=l-h,f=kn*D,m=f-(f-D),g=D-m,E=p*g-(S-h*m-p*m-h*g),y=x-E,d=x-y,In[0]=x-(y+d)+(d-E),_=C+y,d=_-C,w=C-(_-d)+(y-d),y=w-S,d=w-y,In[1]=w-(y+d)+(d-S),k=_+y,d=k-_,In[2]=_-(k-d)+(y-d),In[3]=k;const j=Qp(4,jo,4,In,nw);C=T*u,f=kn*T,h=f-(f-T),p=T-h,f=kn*u,m=f-(f-u),g=u-m,x=p*g-(C-h*m-p*m-h*g),S=$*c,f=kn*$,h=f-(f-$),p=$-h,f=kn*c,m=f-(f-c),g=c-m,E=p*g-(S-h*m-p*m-h*g),y=x-E,d=x-y,In[0]=x-(y+d)+(d-E),_=C+y,d=_-C,w=C-(_-d)+(y-d),y=w-S,d=w-y,In[1]=w-(y+d)+(d-S),k=_+y,d=k-_,In[2]=_-(k-d)+(y-d),In[3]=k;const A=Qp(j,nw,4,In,rw);C=s*u,f=kn*s,h=f-(f-s),p=s-h,f=kn*u,m=f-(f-u),g=u-m,x=p*g-(C-h*m-p*m-h*g),S=l*c,f=kn*l,h=f-(f-l),p=l-h,f=kn*c,m=f-(f-c),g=c-m,E=p*g-(S-h*m-p*m-h*g),y=x-E,d=x-y,In[0]=x-(y+d)+(d-E),_=C+y,d=_-C,w=C-(_-d)+(y-d),y=w-S,d=w-y,In[1]=w-(y+d)+(d-S),k=_+y,d=k-_,In[2]=_-(k-d)+(y-d),In[3]=k;const O=Qp(A,rw,4,In,iw);return iw[O-1]}function Mu(e,t,n,r,i,a){const o=(t-a)*(n-i),s=(e-i)*(r-a),l=o-s,c=Math.abs(o+s);return Math.abs(l)>=qce*c?l:-Zce(e,t,n,r,i,a,c)}const aw=Math.pow(2,-52),Ou=new Uint32Array(512);class Wd{static from(t,n=eue,r=tue){const i=t.length,a=new Float64Array(i*2);for(let o=0;o<i;o++){const s=t[o];a[2*o]=n(s),a[2*o+1]=r(s)}return new Wd(a)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:a}=this,o=t.length>>1;let s=1/0,l=1/0,c=-1/0,u=-1/0;for(let T=0;T<o;T++){const D=t[2*T],$=t[2*T+1];D<s&&(s=D),$<l&&(l=$),D>c&&(c=D),$>u&&(u=$),this._ids[T]=T}const d=(s+c)/2,f=(l+u)/2;let h,p,m;for(let T=0,D=1/0;T<o;T++){const $=em(d,f,t[2*T],t[2*T+1]);$<D&&(h=T,D=$)}const g=t[2*h],y=t[2*h+1];for(let T=0,D=1/0;T<o;T++){if(T===h)continue;const $=em(g,y,t[2*T],t[2*T+1]);$<D&&$>0&&(p=T,D=$)}let _=t[2*p],w=t[2*p+1],C=1/0;for(let T=0;T<o;T++){if(T===h||T===p)continue;const D=Jce(g,y,_,w,t[2*T],t[2*T+1]);D<C&&(m=T,C=D)}let x=t[2*m],S=t[2*m+1];if(C===1/0){for(let $=0;$<o;$++)this._dists[$]=t[2*$]-t[0]||t[2*$+1]-t[1];Uo(this._ids,this._dists,0,o-1);const T=new Uint32Array(o);let D=0;for(let $=0,M=-1/0;$<o;$++){const R=this._ids[$],I=this._dists[R];I>M&&(T[D++]=R,M=I)}this.hull=T.subarray(0,D),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Mu(g,y,_,w,x,S)<0){const T=p,D=_,$=w;p=m,_=x,w=S,m=T,x=D,S=$}const E=Qce(g,y,_,w,x,S);this._cx=E.x,this._cy=E.y;for(let T=0;T<o;T++)this._dists[T]=em(t[2*T],t[2*T+1],E.x,E.y);Uo(this._ids,this._dists,0,o-1),this._hullStart=h;let k=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,a.fill(-1),a[this._hashKey(g,y)]=h,a[this._hashKey(_,w)]=p,a[this._hashKey(x,S)]=m,this.trianglesLen=0,this._addTriangle(h,p,m,-1,-1,-1);for(let T=0,D,$;T<this._ids.length;T++){const M=this._ids[T],R=t[2*M],I=t[2*M+1];if(T>0&&Math.abs(R-D)<=aw&&Math.abs(I-$)<=aw||(D=R,$=I,M===h||M===p||M===m))continue;let j=0;for(let P=0,W=this._hashKey(R,I);P<this._hashSize&&(j=a[(W+P)%this._hashSize],!(j!==-1&&j!==r[j]));P++);j=n[j];let A=j,O;for(;O=r[A],Mu(R,I,t[2*A],t[2*A+1],t[2*O],t[2*O+1])>=0;)if(A=O,A===j){A=-1;break}if(A===-1)continue;let L=this._addTriangle(A,M,r[A],-1,-1,i[A]);i[M]=this._legalize(L+2),i[A]=L,k++;let F=r[A];for(;O=r[F],Mu(R,I,t[2*F],t[2*F+1],t[2*O],t[2*O+1])<0;)L=this._addTriangle(F,M,O,i[M],-1,i[F]),i[M]=this._legalize(L+2),r[F]=F,k--,F=O;if(A===j)for(;O=n[A],Mu(R,I,t[2*O],t[2*O+1],t[2*A],t[2*A+1])<0;)L=this._addTriangle(O,M,A,-1,i[A],i[O]),this._legalize(L+2),i[O]=L,r[A]=A,k--,A=O;this._hullStart=n[M]=A,r[A]=n[F]=M,r[M]=F,a[this._hashKey(R,I)]=M,a[this._hashKey(t[2*A],t[2*A+1])]=A}this.hull=new Uint32Array(k);for(let T=0,D=this._hullStart;T<k;T++)this.hull[T]=D,D=r[D];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Kce(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let a=0,o=0;for(;;){const s=r[t],l=t-t%3;if(o=l+(t+2)%3,s===-1){if(a===0)break;t=Ou[--a];continue}const c=s-s%3,u=l+(t+1)%3,d=c+(s+2)%3,f=n[o],h=n[t],p=n[u],m=n[d];if(Xce(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 y=r[d];if(y===-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,y),this._link(s,r[o]),this._link(o,d);const _=c+(s+1)%3;a<Ou.length&&(Ou[a++]=_)}else{if(a===0)break;t=Ou[--a]}}return o}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,a,o){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,a),this._link(s+2,o),this.trianglesLen+=3,s}}function Kce(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function em(e,t,n,r){const i=e-n,a=t-r;return i*i+a*a}function Xce(e,t,n,r,i,a,o,s){const l=e-o,c=t-s,u=n-o,d=r-s,f=i-o,h=a-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 Jce(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,c=a-t,u=o*o+s*s,d=l*l+c*c,f=.5/(o*c-s*l),h=(c*u-s*d)*f,p=(o*d-l*u)*f;return h*h+p*p}function Qce(e,t,n,r,i,a){const o=n-e,s=r-t,l=i-e,c=a-t,u=o*o+s*s,d=l*l+c*c,f=.5/(o*c-s*l),h=e+(c*u-s*d)*f,p=t+(o*d-l*u)*f;return{x:h,y:p}}function Uo(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const a=e[i],o=t[a];let s=i-1;for(;s>=n&&t[e[s]]>o;)e[s+1]=e[s--];e[s+1]=a}else{const i=n+r>>1;let a=n+1,o=r;pl(e,i,a),t[e[n]]>t[e[r]]&&pl(e,n,r),t[e[a]]>t[e[r]]&&pl(e,a,r),t[e[n]]>t[e[a]]&&pl(e,n,a);const s=e[a],l=t[s];for(;;){do a++;while(t[e[a]]<l);do o--;while(t[e[o]]>l);if(o<a)break;pl(e,a,o)}e[n+1]=e[o],e[o]=s,r-a+1>=o-n?(Uo(e,t,a,r),Uo(e,t,n,o-1)):(Uo(e,t,n,o-1),Uo(e,t,a,r))}}function pl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function eue(e){return e[0]}function tue(e){return e[1]}const ow=1e-6;class Ia{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,a=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${a}`:(Math.abs(this._x1-i)>ow||Math.abs(this._y1-a)>ow)&&(this._+="L"+i+","+a),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=a}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class $g{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 nue{constructor(t,[n,r,i,a]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((a=+a)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=a,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this;let a,o;const s=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let m=0,g=0,y=r.length,_,w;m<y;m+=3,g+=2){const C=r[m]*2,x=r[m+1]*2,S=r[m+2]*2,E=t[C],k=t[C+1],T=t[x],D=t[x+1],$=t[S],M=t[S+1],R=T-E,I=D-k,j=$-E,A=M-k,O=(R*A-I*j)*2;if(Math.abs(O)<1e-9){if(a===void 0){a=o=0;for(const F of n)a+=t[F*2],o+=t[F*2+1];a/=n.length,o/=n.length}const L=1e9*Math.sign((a-E)*A-(o-k)*j);_=(E+$)/2-L*A,w=(k+M)/2+L*j}else{const L=1/O,F=R*R+I*I,P=j*j+A*A;_=E+(A*F-I*P)*L,w=k+(R*P-j*F)*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 Ia:void 0,{delaunay:{halfedges:r,inedges:i,hull:a},circumcenters:o,vectors:s}=this;if(a.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=o[h],g=o[h+1],y=o[p],_=o[p+1];this._renderSegment(m,g,y,_,t)}let l,c=a[a.length-1];for(let u=0;u<a.length;++u){l=c,c=a[u];const d=Math.floor(i[c]/3)*2,f=o[d],h=o[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 Ia: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 Ia:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let a=i.length;for(;i[0]===i[a-2]&&i[1]===i[a-1]&&a>1;)a-=2;for(let o=2;o<a;o+=2)(i[o]!==i[o-2]||i[o+1]!==i[o-1])&&n.lineTo(i[o],i[o+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new $g;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,a){let o;const s=this._regioncode(t,n),l=this._regioncode(r,i);s===0&&l===0?(a.moveTo(t,n),a.lineTo(r,i)):(o=this._clipSegment(t,n,r,i,s,l))&&(a.moveTo(o[0],o[1]),a.lineTo(o[2],o[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let a=0,o=n.length;a<o;a+=2)for(let s=0,l=i.length;s<l;s+=2)if(n[a]===i[s]&&n[a+1]===i[s+1]&&n[(a+2)%o]===i[(s+l-2)%l]&&n[(a+3)%o]===i[(s+l-1)%l]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:a}}=this,o=r[t];if(o===-1)return null;const s=[];let l=o;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,a[l]!==t)break;l=i[l]}while(l!==o&&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,a,o,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(a=s,o=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,y,_;if(c===0){if((p=this._clipSegment(a,o,s,l,c,u))===null)continue;[m,g,y,_]=p}else{if((p=this._clipSegment(s,l,a,o,u,c))===null)continue;[y,_,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(y,_),d&&f&&this._edge(t,d,f,i,i.length),i?i.push(y,_):i=[y,_]}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,a,o){const s=a<o;for(s&&([t,n,r,i,a,o]=[r,i,t,n,o,a]);;){if(a===0&&o===0)return s?[r,i,t,n]:[t,n,r,i];if(a&o)return null;let l,c,u=a||o;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),a?(t=l,n=c,a=this._regioncode(t,n)):(r=l,i=c,o=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,a,o){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],a,o))&&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,a){for(;n!==r;){let o,s;switch(n){case 5:n=4;continue;case 4:n=6,o=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,o=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,o=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,o=this.xmin,s=this.ymin;break}(i[a]!==o||i[a+1]!==s)&&this.contains(t,o,s)&&(i.splice(a,0,o,s),a+=2)}return a}_project(t,n,r,i){let a=1/0,o,s,l;if(i<0){if(n<=this.ymin)return null;(o=(this.ymin-n)/i)<a&&(l=this.ymin,s=t+(a=o)*r)}else if(i>0){if(n>=this.ymax)return null;(o=(this.ymax-n)/i)<a&&(l=this.ymax,s=t+(a=o)*r)}if(r>0){if(t>=this.xmax)return null;(o=(this.xmax-t)/r)<a&&(s=this.xmax,l=n+(a=o)*i)}else if(r<0){if(t<=this.xmin)return null;(o=(this.xmin-t)/r)<a&&(s=this.xmin,l=n+(a=o)*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 rue=2*Math.PI,No=Math.pow;function iue(e){return e[0]}function aue(e){return e[1]}function oue(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],a=2*t[r+1],o=2*t[r+2];if((n[o]-n[i])*(n[a+1]-n[i+1])-(n[a]-n[i])*(n[o+1]-n[i+1])>1e-10)return!1}return!0}function sue(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Nh{static from(t,n=iue,r=aue,i){return new Nh("length"in t?lue(t,n,r,i):Float64Array.from(cue(t,n,r,i)))}constructor(t){this._delaunator=new Wd(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&&oue(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=sue(n[2*f],n[2*f+1],d);n[2*f]=p[0],n[2*f+1]=p[1]}this._delaunator=new Wd(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,a=this.triangles=this._delaunator.triangles,o=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let l=0,c=r.length;l<c;++l){const u=a[l%3===2?l-2:l+1];(r[l]===-1||o[u]===-1)&&(o[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],o[i[0]]=1,i.length===2&&(o[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(t){return new nue(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:a,triangles:o,collinear:s}=this;if(s){const d=s.indexOf(t);d>0&&(yield s[d-1]),d<s.length-1&&(yield s[d+1]);return}const l=n[t];if(l===-1)return;let c=l,u=-1;do{if(yield u=o[c],c=c%3===2?c-2:c+1,o[c]!==t)return;if(c=a[c],c===-1){const d=r[(i[t]+1)%r.length];d!==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 a;for(;(a=this._step(r,t,n))>=0&&a!==r&&a!==i;)r=a;return a}_step(t,n,r){const{inedges:i,hull:a,_hullIndex:o,halfedges:s,triangles:l,points:c}=this;if(i[t]===-1||!c.length)return(t+1)%(c.length>>1);let u=t,d=No(n-c[t*2],2)+No(r-c[t*2+1],2);const f=i[t];let h=f;do{let p=l[h];const m=No(n-c[p*2],2)+No(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=a[(o[t]+1)%a.length],h!==p&&No(n-c[h*2],2)+No(r-c[h*2+1],2)<d)return h;break}}while(h!==f);return u}render(t){const n=t==null?t=new Ia:void 0,{points:r,halfedges:i,triangles:a}=this;for(let o=0,s=i.length;o<s;++o){const l=i[o];if(l<o)continue;const c=a[o]*2,u=a[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 Ia:void 0,{points:i}=this;for(let a=0,o=i.length;a<o;a+=2){const s=i[a],l=i[a+1];t.moveTo(s+n,l),t.arc(s,l,n,0,rue)}return r&&r.value()}renderHull(t){const n=t==null?t=new Ia:void 0,{hull:r,points:i}=this,a=r[0]*2,o=r.length;t.moveTo(i[a],i[a+1]);for(let s=1;s<o;++s){const l=2*r[s];t.lineTo(i[l],i[l+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new $g;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Ia:void 0,{points:i,triangles:a}=this,o=a[t*=3]*2,s=a[t+1]*2,l=a[t+2]*2;return n.moveTo(i[o],i[o+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 $g;return this.renderTriangle(t,n),n.value()}}function lue(e,t,n,r){const i=e.length,a=new Float64Array(i*2);for(let o=0;o<i;++o){const s=e[o];a[o*2]=t.call(r,s,o,e),a[o*2+1]=n.call(r,s,o,e)}return a}function*cue(e,t,n,r){let i=0;for(const a of e)yield t.call(r,a,i,e),yield n.call(r,a,i,e),++i}function Ud(){return Ud=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},Ud.apply(null,arguments)}function xT(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 er={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"},y1=function(e){return[e.x,e.y]},Jc=H5,wT="cursor",_T="top",uue=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?y1:n,i=e.margin,a=i===void 0?Jc:i;return t.map(function(o){var s=r(o),l=s[0],c=s[1];return[l+a.left,c+a.top]})},due=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=i===void 0?Jc:i,o=e.debug,s=Nh.from(t),l=o?s.voronoi([0,0,a.left+n+a.right,a.top+r+a.bottom]):void 0;return{points:t,delaunay:s,voronoi:l}},CT=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?y1:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?Jc:o,l=e.debug;return v.useMemo(function(){return due({points:uue({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:l})},[r,t,i,a,s,l])},fue=function(e){var t=e.data,n=e.width,r=e.height,i=e.xDomain,a=e.yDomain,o=v.useMemo(function(){return Id().domain(i).range([0,n])},[i,n]),s=v.useMemo(function(){return Id().domain(a).range([0,r])},[a,r]),l=v.useMemo(function(){return t.map(function(c){return{x:o(c.x),y:s(c.y),data:c}})},[t,o,s]);return v.useMemo(function(){var c=Nh.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])},hue=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])},pue=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?y1:r,a=e.delaunay,o=e.setCurrent,s=e.margin,l=s===void 0?Jc: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,y=e.onMouseUp,_=e.onClick,w=e.onDoubleClick,C=e.onTouchStart,x=e.onTouchMove,S=e.onTouchEnd,E=e.enableTouchCrosshair,k=E!==void 0&&E,T=e.tooltip,D=e.tooltipPosition,$=D===void 0?wT:D,M=e.tooltipAnchor,R=M===void 0?_T:M,I=v.useState(null),j=I[0],A=I[1],O=v.useRef(null);v.useEffect(function(){O.current=j},[O,j]);var L=v.useCallback(function(Q){if(!t.current||n.length===0)return null;var X=Jo(t.current,Q),se=X[0],G=X[1],J=a.find(se,G),ie=J!==void 0?n[J]:null;if(ie&&u!==1/0){var oe=i(ie),be=oe[0],ce=oe[1];q5(se,G,be+l.left,ce+l.top)>u&&(J=null,ie=null)}return J===null||ie===null?null:[J,ie]},[t,a,n,i,l,u]),F=Ei(),P=F.showTooltipAt,W=F.showTooltipFromEvent,H=F.hideTooltip,q=v.useMemo(function(){if(T)return $==="cursor"?function(Q,X){W(T(Q),X,R)}:function(Q){var X=i(Q),se=X[0],G=X[1];P(T(Q),[se+l.left,G+l.top],R)}},[P,W,T,$,R,i,l]),Z=v.useCallback(function(Q){var X=L(Q);if(A(X),o==null||o(X?X[1]:null),X){var se=X[1];q==null||q(se,Q),h==null||h(X[1],Q)}},[L,A,o,q,h]),K=v.useCallback(function(Q){var X=L(Q);if(A(X),X){var se=X[0],G=X[1];if(o==null||o(G),q==null||q(G,Q),O.current){var J=O.current,ie=J[0],oe=J[1];se!==ie?m==null||m(oe,Q):p==null||p(G,Q)}else h==null||h(G,Q)}else o==null||o(null),H==null||H(),O.current&&(m==null||m(O.current[1],Q))},[L,A,o,O,h,p,m,q,H]),te=v.useCallback(function(Q){A(null),o==null||o(null),H(),m&&O.current&&m(O.current[1],Q)},[A,o,O,H,m]),ne=v.useCallback(function(Q){var X=L(Q);A(X),X&&(g==null||g(X[1],Q))},[L,A,g]),U=v.useCallback(function(Q){var X=L(Q);A(X),X&&(y==null||y(X[1],Q))},[L,A,y]),B=v.useCallback(function(Q){var X=L(Q);A(X),X&&(_==null||_(X[1],Q))},[L,A,_]),z=v.useCallback(function(Q){var X=L(Q);A(X),X&&(w==null||w(X[1],Q))},[L,A,w]),V=v.useCallback(function(Q){var X=L(Q);k&&(A(X),o==null||o(X?X[1]:null)),X&&(C==null||C(X[1],Q))},[L,A,o,k,C]),N=v.useCallback(function(Q){var X=L(Q);k&&(A(X),o==null||o(X?X[1]:null)),X&&(x==null||x(X[1],Q))},[L,A,o,k,x]),ee=v.useCallback(function(Q){k&&(A(null),o==null||o(null)),S&&O.current&&S(O.current[1],Q)},[k,A,o,S,O]);return{current:j,handleMouseEnter:f?Z:void 0,handleMouseMove:f?K:void 0,handleMouseLeave:f?te:void 0,handleMouseDown:f?ne:void 0,handleMouseUp:f?U:void 0,handleClick:f?B:void 0,handleDoubleClick:f?z:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?N:void 0,handleTouchEnd:f?ee:void 0}},mue=["theme"],gue=function(e){var t=e.data,n=e.width,r=e.height,i=e.margin,a=e.layers,o=a===void 0?er.layers:a,s=e.xDomain,l=s===void 0?er.xDomain:s,c=e.yDomain,u=c===void 0?er.yDomain:c,d=e.enableLinks,f=d===void 0?er.enableLinks:d,h=e.linkLineWidth,p=h===void 0?er.linkLineWidth:h,m=e.linkLineColor,g=m===void 0?er.linkLineColor:m,y=e.enableCells,_=y===void 0?er.enableCells:y,w=e.cellLineWidth,C=w===void 0?er.cellLineWidth:w,x=e.cellLineColor,S=x===void 0?er.cellLineColor:x,E=e.enablePoints,k=E===void 0?er.enableCells:E,T=e.pointSize,D=T===void 0?er.pointSize:T,$=e.pointColor,M=$===void 0?er.pointColor:$,R=e.role,I=R===void 0?er.role:R,j=e.forwardedRef,A=vo(n,r,i),O=A.outerWidth,L=A.outerHeight,F=A.margin,P=A.innerWidth,W=A.innerHeight,H=fue({data:t,width:P,height:W,xDomain:l,yDomain:u}),q=H.points,Z=H.delaunay,K=H.voronoi,te={links:null,cells:null,points:null,bounds:null};f&&o.includes("links")&&(te.links=b.jsx("path",{stroke:g,strokeWidth:p,fill:"none",d:Z.render()},"links")),_&&o.includes("cells")&&(te.cells=b.jsx("path",{d:K.render(),fill:"none",stroke:S,strokeWidth:C},"cells")),k&&o.includes("points")&&(te.points=b.jsx("path",{stroke:"none",fill:M,d:Z.renderPoints(void 0,D/2)},"points")),o.includes("bounds")&&(te.bounds=b.jsx("path",{fill:"none",stroke:S,strokeWidth:C,d:K.renderBounds()},"bounds"));var ne=hue({points:q,delaunay:Z,voronoi:K});return b.jsx(jh,{width:O,height:L,margin:F,role:I,ref:j,children:o.map(function(U,B){return te[U]!==void 0?te[U]:typeof U=="function"?b.jsx(v.Fragment,{children:v.createElement(U,ne)},B):null})})},vue=v.forwardRef(function(e,t){var n=e.theme,r=xT(e,mue);return b.jsx(mo,{isInteractive:!1,animate:!1,theme:n,children:b.jsx(gue,Ud({},r,{forwardedRef:t}))})}),bue=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=xT(e,bue);return b.jsx(go,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(vue,Ud({},o,{width:l,height:c,ref:t}))}})});var yue=function(e){var t=e.nodes,n=e.width,r=e.height,i=e.margin,a=i===void 0?Jc:i,o=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,y=e.onTouchEnd,_=e.enableTouchCrosshair,w=_!==void 0&&_,C=e.detectionRadius,x=C===void 0?1/0:C,S=e.tooltip,E=e.tooltipPosition,k=E===void 0?wT:E,T=e.tooltipAnchor,D=T===void 0?_T:T,$=e.debug,M=v.useRef(null),R=CT({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:$}),I=R.delaunay,j=R.voronoi,A=pue({elementRef:M,nodes:t,delaunay:I,margin:a,detectionRadius:x,setCurrent:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:u,onMouseDown:d,onMouseUp:f,onClick:h,onDoubleClick:p,onTouchStart:m,onTouchMove:g,onTouchEnd:y,enableTouchCrosshair:w,tooltip:S,tooltipPosition:k,tooltipAnchor:D}),O=A.current,L=A.handleMouseEnter,F=A.handleMouseMove,P=A.handleMouseLeave,W=A.handleMouseDown,H=A.handleMouseUp,q=A.handleClick,Z=A.handleDoubleClick,K=A.handleTouchStart,te=A.handleTouchMove,ne=A.handleTouchEnd,U=v.useMemo(function(){if($&&j)return j.render()},[$,j]);return b.jsxs("g",{ref:M,transform:"translate("+-a.left+","+-a.top+")",children:[$&&j&&b.jsxs(b.Fragment,{children:[b.jsx("path",{d:U,stroke:"red",strokeWidth:1,opacity:.75}),x<1/0&&b.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:I.renderPoints(void 0,x)}),O&&b.jsx("path",{fill:"pink",opacity:.35,d:j.renderCell(O[0])})]}),b.jsx("rect",{"data-ref":"mesh-interceptor",width:a.left+n+a.right,height:a.top+r+a.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:L,onMouseMove:F,onMouseLeave:P,onMouseDown:W,onMouseUp:H,onTouchStart:K,onTouchMove:te,onTouchEnd:ne,onClick:q,onDoubleClick:Z})]})},xue=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},wue=function(e,t,n){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(n,e),e.fillStyle="pink",e.fill(),e.restore()};function On(){return On=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},On.apply(null,arguments)}function Ph(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 sw,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 b.jsx($v,{id:b.jsxs("span",{children:["x: ",b.jsx("strong",{children:t.data.xFormatted}),", y:"," ",b.jsx("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})}),sliceTooltip:v.memo(function(e){var t=e.slice,n=e.axis,r=Ft(),i=n==="x"?"y":"x";return b.jsx(g6,{rows:t.points.map(function(a){return[b.jsx(m6,{color:a.seriesColor,style:r.tooltip.chip},"chip"),a.seriesId,b.jsx("span",{style:r.tooltip.tableCellValue,children:a.data[i+"Formatted"]},"value")]})})}),debugMesh:!1,renderWrapper:!0},st=On({},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}),nn=On({},li,{pixelRatio:typeof window<"u"&&(sw=window.devicePixelRatio)!=null?sw:1,axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn});function _ue(e){return v.useMemo(function(){return Pv().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(U5(e))},[e])}function Cue(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return v.useMemo(function(){return _Q().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(U5(t)).y0(n(r))},[t,n,r])}var Sue=function(e){var t=e.componentId,n=e.enableSlices,r=e.points,i=e.width,a=e.height;return v.useMemo(function(){if(n==="x"){var o=new Map;return r.forEach(function(l){l.data.x!==null&&l.data.y!==null&&(o.has(l.x)?o.get(l.x).push(l):o.set(l.x,[l]))}),Array.from(o.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:a,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:a-d,{id:h,x0:0,x:0,y0:d,y:h,width:i,height:f,points:p.reverse()}})}return[]},[t,n,a,r,i])},Tue="line",ST=function(e){var t=e.data,n=e.xScale,r=n===void 0?li.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?li.yScale:a,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,y=g===void 0?li.pointColor:g,_=e.pointBorderColor,w=_===void 0?li.pointBorderColor:_,C=e.enableSlices,x=C===void 0?st.enableSlices:C,S=e.initialHiddenIds,E=S===void 0?st.initialHiddenIds:S,k=v.useState(Uce(Tue))[0],T=ys(i),D=ys(s),$=h1(d,"id"),M=Ft(),R=gr(y,M),I=gr(w,M),j=v.useState(E??[]),A=j[0],O=j[1],L=v.useMemo(function(){return Ece(t.filter(function(U){return A.indexOf(U.id)===-1}),r,o,l,c)},[t,A,r,o,l,c]),F=L.xScale,P=L.yScale,W=L.series,H=v.useMemo(function(){var U=t.map(function(z){return{id:z.id,label:""+z.id,color:$(z)}}),B=U.map(function(z){return On({},W.find(function(V){return V.id===z.id}),{color:z.color})}).filter(function(z){return!!z.id});return{legendData:U.map(function(z){return On({},z,{hidden:!B.find(function(V){return V.id===z.id})})}).reverse(),series:B}},[t,W,$]),q=H.legendData,Z=H.series,K=v.useCallback(function(U){O(function(B){return B.indexOf(U)>-1?B.filter(function(z){return z!==U}):[].concat(B,[U])})},[]),te=function(U){var B=U.series,z=U.getPointColor,V=U.getPointBorderColor,N=U.formatX,ee=U.formatY;return v.useMemo(function(){return B.reduce(function(Q,X,se){return[].concat(Q,X.data.filter(function(G){return G.position.x!==null&&G.position.y!==null}).map(function(G,J){var ie={id:X.id+"."+J,indexInSeries:J,absIndex:Q.length+J,seriesIndex:se,seriesId:X.id,seriesColor:X.color,x:G.position.x,y:G.position.y,data:On({},G.data,{xFormatted:N(G.data.x),yFormatted:ee(G.data.y)})};return ie.color=z({series:X,point:ie}),ie.borderColor=V(ie),ie}))},[])},[B,z,V,N,ee])}({series:Z,getPointColor:R,getPointBorderColor:I,formatX:T,formatY:D}),ne=Sue({componentId:k,enableSlices:x,points:te,width:l,height:c});return{legendData:q,toggleSeries:K,lineGenerator:_ue(h),areaGenerator:Cue({curve:h,yScale:P,areaBaselineValue:m}),getColor:$,series:Z,xScale:F,yScale:P,slices:ne,points:te}},kue=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,a=e.path,o=Fn(),s=o.animate,l=o.config,c=c1(a),u=Xr({color:r,config:l,immediate:!s});return b.jsx(Vt.path,{d:c,fill:i||u.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})},$ue=v.memo(function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.series.slice(0).reverse();return b.jsx("g",{children:i.map(function(a){return b.jsx(kue,On({path:t(a.data.map(function(o){return o.position}))},On({areaOpacity:n,areaBlendMode:r},a)),""+a.id)})})}),Eue=v.memo(function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,a=v.useMemo(function(){return t(n)},[t,n]),o=c1(a);return b.jsx(Vt.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),Mue=v.memo(function(e){var t=e.series,n=e.lineGenerator,r=e.lineWidth;return b.jsx(b.Fragment,{children:t.slice(0).reverse().map(function(i){var a=i.id,o=i.data,s=i.color;return b.jsx(Eue,{points:o.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},a)})})}),Oue=v.memo(function(e){var t=e.slice,n=e.slices,r=e.axis,i=e.debug,a=e.tooltip,o=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,y=e.onTouchEnd,_=Ei(),w=_.showTooltipFromEvent,C=_.hideTooltip,x=v.useCallback(function(j){w(v.createElement(a,{slice:t,axis:r}),j,"right"),s(t),l==null||l(t,j)},[w,a,t,r,s,l]),S=v.useCallback(function(j){w(v.createElement(a,{slice:t,axis:r}),j,"right"),c==null||c(t,j)},[w,a,t,r,c]),E=v.useCallback(function(j){C(),s(null),u==null||u(t,j)},[C,s,u,t]),k=v.useCallback(function(j){d==null||d(t,j)},[t,d]),T=v.useCallback(function(j){f==null||f(t,j)},[t,f]),D=v.useCallback(function(j){h==null||h(t,j)},[t,h]),$=v.useCallback(function(j){p==null||p(t,j)},[t,p]),M=v.useCallback(function(j){w(v.createElement(a,{slice:t,axis:r}),j,"right"),s(t),m==null||m(t,j)},[r,m,s,w,t,a]),R=v.useCallback(function(j){var A=j.touches[0],O=document.elementFromPoint(A.clientX,A.clientY),L=O==null?void 0:O.getAttribute("data-ref");if(L){var F=n.find(function(P){return P.id===L});F&&(w(v.createElement(a,{slice:F,axis:r}),j,"right"),s(F))}g==null||g(t,j)},[r,g,s,w,t,n,a]),I=v.useCallback(function(j){C(),s(null),y==null||y(t,j)},[C,s,y,t]);return b.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:o&&i?.35:0,onMouseEnter:x,onMouseMove:S,onMouseLeave:E,onMouseDown:k,onMouseUp:T,onClick:D,onDoubleClick:$,onTouchStart:M,onTouchMove:R,onTouchEnd:I,"data-ref":t.id})}),Aue=v.memo(function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.tooltip,a=e.current,o=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 b.jsx(b.Fragment,{children:t.map(function(y){return b.jsx(Oue,{slice:y,slices:t,axis:n,debug:r,tooltip:i,setCurrent:o,isCurrent:a!==null&&a.id===y.id,onMouseEnter:s,onMouseMove:l,onMouseLeave:c,onMouseDown:u,onMouseUp:d,onClick:f,onDoubleClick:h,onTouchStart:p,onTouchMove:m,onTouchEnd:g},y.id)})})}),Rue=v.memo(function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,a=e.enableLabel,o=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,y=Wae(o),_=Ei(),w=_.showTooltipAt,C=_.hideTooltip,x=t.slice(0).sort(function(S,E){return S.indexInSeries-E.indexInSeries}).sort(function(S,E){return E.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:a?y(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 b.jsx("g",{children:x.map(function(S){return b.jsx(Lae,{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)})})}),Due=v.memo(function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,a=e.setCurrent,o=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,y=e.debug,_=e.enableTouchCrosshair,w=Ei(),C=w.showTooltipAt,x=w.hideTooltip,S=v.useCallback(function(A,O){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),o==null||o(A,O)},[C,g,o,i]),E=v.useCallback(function(A,O){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),s==null||s(A,O)},[C,g,i.left,i.top,s]),k=v.useCallback(function(A,O){x(),l==null||l(A,O)},[x,l]),T=v.useCallback(function(A,O){c==null||c(A,O)},[c]),D=v.useCallback(function(A,O){u==null||u(A,O)},[u]),$=v.useCallback(function(A,O){d==null||d(A,O)},[d]),M=v.useCallback(function(A,O){f==null||f(A,O)},[f]),R=v.useCallback(function(A,O){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),h==null||h(A,O)},[i.left,i.top,h,C,g]),I=v.useCallback(function(A,O){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),p==null||p(A,O)},[i.left,i.top,p,C,g]),j=v.useCallback(function(A,O){x(),m==null||m(A,O)},[m,x]);return b.jsx(yue,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:S,onMouseMove:E,onMouseLeave:k,onMouseDown:T,onMouseUp:D,onClick:$,onDoubleClick:M,onTouchStart:R,onTouchMove:I,onTouchEnd:j,enableTouchCrosshair:_,debug:y})}),Iue=["isInteractive","animate","motionConfig","theme","renderWrapper"];function jue(e){var t=e.data,n=e.xScale,r=n===void 0?st.xScale:n,i=e.xFormat,a=e.yScale,o=a===void 0?st.yScale:a,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,y=e.layers,_=y===void 0?st.layers:y,w=e.enableArea,C=w===void 0?st.enableArea:w,x=e.areaBaselineValue,S=x===void 0?st.areaBaselineValue:x,E=e.areaOpacity,k=E===void 0?st.areaOpacity:E,T=e.areaBlendMode,D=T===void 0?st.areaBlendMode:T,$=e.enablePoints,M=$===void 0?st.enablePoints:$,R=e.pointSymbol,I=e.pointSize,j=I===void 0?st.pointSize:I,A=e.pointColor,O=A===void 0?st.pointColor:A,L=e.pointBorderWidth,F=L===void 0?st.pointBorderWidth:L,P=e.pointBorderColor,W=P===void 0?st.pointBorderColor:P,H=e.enablePointLabel,q=H===void 0?st.enablePointLabel:H,Z=e.pointLabel,K=Z===void 0?st.pointLabel:Z,te=e.pointLabelYOffset,ne=e.enableGridX,U=ne===void 0?st.enableGridX:ne,B=e.gridXValues,z=e.enableGridY,V=z===void 0?st.enableGridY:z,N=e.gridYValues,ee=e.axisTop,Q=e.axisRight,X=e.axisBottom,se=X===void 0?st.axisBottom:X,G=e.axisLeft,J=G===void 0?st.axisLeft:G,ie=e.defs,oe=ie===void 0?st.defs:ie,be=e.fill,ce=be===void 0?st.fill:be,ue=e.markers,Ce=e.legends,ke=Ce===void 0?st.legends:Ce,ye=e.isInteractive,Me=ye===void 0?st.isInteractive:ye,pe=e.useMesh,me=pe===void 0?st.useMesh:pe,fe=e.debugMesh,je=fe===void 0?st.debugMesh:fe,qe=e.onMouseEnter,xt=e.onMouseMove,Te=e.onMouseLeave,Ie=e.onMouseDown,at=e.onMouseUp,He=e.onClick,mt=e.onDoubleClick,ut=e.onTouchStart,Rt=e.onTouchMove,Xe=e.onTouchEnd,Fe=e.tooltip,Ye=Fe===void 0?st.tooltip:Fe,et=e.enableSlices,Be=et===void 0?st.enableSlices:et,tt=e.debugSlices,vt=tt===void 0?st.debugSlices:tt,ot=e.sliceTooltip,Le=ot===void 0?st.sliceTooltip:ot,Oe=e.enableCrosshair,Ze=Oe===void 0?st.enableCrosshair:Oe,wt=e.crosshairType,nt=wt===void 0?st.crosshairType:wt,bt=e.enableTouchCrosshair,en=bt===void 0?st.enableTouchCrosshair:bt,Bt=e.role,Wt=Bt===void 0?st.role:Bt,fn=e.ariaLabel,Yt=e.ariaLabelledBy,$e=e.ariaDescribedBy,Je=e.isFocusable,St=Je===void 0?st.isFocusable:Je,on=e.pointAriaLabel,Gt=e.pointAriaLabelledBy,ze=e.pointAriaDescribedBy,We=e.pointAriaHidden,ht=e.pointAriaDisabled,Dt=e.initialHiddenIds,Tt=Dt===void 0?st.initialHiddenIds:Dt,Qe=e.forwardedRef,kt=vo(d,f,u),yr=kt.margin,ln=kt.innerWidth,cn=kt.innerHeight,Rn=kt.outerWidth,ca=kt.outerHeight,Ct=ST({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:ln,height:cn,colors:p,curve:c,areaBaselineValue:S,pointColor:O,pointBorderColor:W,enableSlices:Be,initialHiddenIds:Tt}),ua=Ct.legendData,Re=Ct.toggleSeries,Rr=Ct.lineGenerator,da=Ct.areaGenerator,bo=Ct.series,yo=Ct.xScale,ei=Ct.yScale,Qc=Ct.slices,ti=Ct.points,Vs=v.useState(null),fa=Vs[0],qs=Vs[1],eu=v.useState(null),ha=eu[0],tu=eu[1],Dn={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};_.includes("grid")&&(U||V)&&(Dn.grid=b.jsx(bT,{width:ln,height:cn,xScale:U?yo:null,yScale:V?ei:null,xValues:B,yValues:N},"grid")),_.includes("markers")&&Array.isArray(ue)&&ue.length>0&&(Dn.markers=b.jsx(W5,{markers:ue,width:ln,height:cn,xScale:yo,yScale:ei},"markers")),_.includes("axes")&&(Dn.axes=b.jsx(vT,{xScale:yo,yScale:ei,width:ln,height:cn,top:ee,right:Q,bottom:se,left:J},"axes")),_.includes("lines")&&(Dn.lines=b.jsx(Mue,{series:bo,lineGenerator:Rr,lineWidth:g},"lines")),_.includes("legends")&&ke.length>0&&(Dn.legends=b.jsx(v.Fragment,{children:ke.map(function(Dr,Mi){return b.jsx(g1,On({},Dr,{containerWidth:ln,containerHeight:cn,data:Dr.data||ua,toggleSerie:Dr.toggleSerie?Re:void 0}),Mi)})},"legends"));var Bh=d1(oe,bo,ce);C&&(Dn.areas=b.jsx($ue,{areaGenerator:da,areaOpacity:k,areaBlendMode:D,series:bo},"areas")),Me&&Be!==!1&&(Dn.slices=b.jsx(Aue,{slices:Qc,axis:Be,debug:vt,tooltip:Le,current:ha,setCurrent:tu,onMouseEnter:qe,onMouseMove:xt,onMouseLeave:Te,onMouseDown:Ie,onMouseUp:at,onClick:He,onDoubleClick:mt,onTouchStart:ut,onTouchMove:Rt,onTouchEnd:Xe},"slices")),M&&(Dn.points=b.jsx(Rue,{points:ti,symbol:R,size:j,borderWidth:F,enableLabel:q,label:K,labelYOffset:te,isFocusable:St,setCurrentPoint:qs,tooltip:Ye,margin:yr,ariaLabel:on,ariaLabelledBy:Gt,ariaDescribedBy:ze,ariaHidden:We,ariaDisabled:ht},"points")),Me&&Ze&&(fa!==null&&(Dn.crosshair=b.jsx(sg,{width:ln,height:cn,x:fa.x,y:fa.y,type:nt},"crosshair")),ha!==null&&Be&&(Dn.crosshair=b.jsx(sg,{width:ln,height:cn,x:ha.x,y:ha.y,type:Be},"crosshair"))),Me&&me&&Be===!1&&(Dn.mesh=b.jsx(Due,{points:ti,width:ln,height:cn,margin:yr,setCurrent:qs,onMouseEnter:qe,onMouseMove:xt,onMouseLeave:Te,onMouseDown:Ie,onMouseUp:at,onClick:He,onDoubleClick:mt,onTouchStart:ut,onTouchMove:Rt,onTouchEnd:Xe,tooltip:Ye,enableTouchCrosshair:en,debug:je},"mesh"));var zh=On({},e,{innerWidth:ln,innerHeight:cn,series:bo,slices:Qc,points:ti,xScale:yo,yScale:ei,lineGenerator:Rr,areaGenerator:da,currentPoint:fa,setCurrentPoint:qs,currentSlice:ha,setCurrentSlice:tu});return b.jsx(jh,{defs:Bh,width:Rn,height:ca,margin:yr,role:Wt,ariaLabel:fn,ariaLabelledBy:Yt,ariaDescribedBy:$e,isFocusable:St,ref:Qe,children:_.map(function(Dr,Mi){return typeof Dr=="function"?b.jsx(v.Fragment,{children:Dr(zh)},Mi):Dn[Dr]})})}var Nue=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?st.isInteractive:n,i=e.animate,a=i===void 0?st.animate:i,o=e.motionConfig,s=o===void 0?st.motionConfig:o,l=e.theme,c=e.renderWrapper,u=Ph(e,Iue);return b.jsx(mo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(jue,On({isInteractive:r},u,{forwardedRef:t}))})}),Pue=["defaultWidth","defaultHeight","onResize","debounceResize"],Lue=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Ph(e,Pue);return b.jsx(go,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(Nue,On({width:l,height:c},o,{ref:t}))}})}),Fue=["isInteractive","renderWrapper","theme"],Bue=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,a=i===void 0?nn.pixelRatio:i,o=e.data,s=e.xScale,l=s===void 0?nn.xScale:s,c=e.xFormat,u=e.yScale,d=u===void 0?nn.yScale:u,f=e.yFormat,h=e.curve,p=h===void 0?nn.curve:h,m=e.layers,g=m===void 0?nn.layers:m,y=e.colors,_=y===void 0?nn.colors:y,w=e.lineWidth,C=w===void 0?nn.lineWidth:w,x=e.enableArea,S=x===void 0?nn.enableArea:x,E=e.areaBaselineValue,k=E===void 0?nn.areaBaselineValue:E,T=e.areaOpacity,D=T===void 0?nn.areaOpacity:T,$=e.enablePoints,M=$===void 0?nn.enablePoints:$,R=e.pointSize,I=R===void 0?nn.pointSize:R,j=e.pointColor,A=j===void 0?nn.pointColor:j,O=e.pointBorderWidth,L=O===void 0?nn.pointBorderWidth:O,F=e.pointBorderColor,P=F===void 0?nn.pointBorderColor:F,W=e.enableGridX,H=W===void 0?nn.enableGridX:W,q=e.gridXValues,Z=e.enableGridY,K=Z===void 0?nn.enableGridY:Z,te=e.gridYValues,ne=e.axisTop,U=e.axisRight,B=e.axisBottom,z=B===void 0?nn.axisBottom:B,V=e.axisLeft,N=V===void 0?nn.axisLeft:V,ee=e.legends,Q=ee===void 0?nn.legends:ee,X=e.isInteractive,se=X===void 0?nn.isInteractive:X,G=e.debugMesh,J=G===void 0?nn.debugMesh:G,ie=e.onMouseLeave,oe=e.onMouseDown,be=e.onMouseUp,ce=e.onClick,ue=e.onDoubleClick,Ce=e.tooltip,ke=Ce===void 0?nn.tooltip:Ce,ye=e.role,Me=e.forwardedRef,pe=v.useRef(null),me=vo(t,n,r),fe=me.margin,je=me.innerWidth,qe=me.innerHeight,xt=me.outerWidth,Te=me.outerHeight,Ie=Ft(),at=v.useState(null),He=at[0],mt=at[1],ut=ST({data:o,xScale:l,xFormat:c,yScale:d,yFormat:f,width:je,height:qe,colors:_,curve:p,areaBaselineValue:k,pointColor:A,pointBorderColor:P}),Rt=ut.lineGenerator,Xe=ut.areaGenerator,Fe=ut.series,Ye=ut.xScale,et=ut.yScale,Be=ut.points,tt=v.useMemo(function(){return{innerWidth:je,innerHeight:qe,series:Fe,points:Be,xScale:Ye,yScale:et,lineWidth:C,lineGenerator:Rt,areaGenerator:Xe,currentPoint:He,setCurrentPoint:mt}},[je,qe,Fe,Be,Ye,et,C,Rt,Xe,He,mt]),vt=CT({points:Be,width:je,height:qe,debug:J}),ot=vt.delaunay,Le=vt.voronoi;v.useEffect(function(){if(pe.current!==null){pe.current.width=xt*a,pe.current.height=Te*a;var $e=pe.current.getContext("2d");$e.scale(a,a),$e.fillStyle=Ie.background,$e.fillRect(0,0,xt,Te),$e.translate(fe.left,fe.top),g.forEach(function(Je){var St;typeof Je=="function"&&Je($e,tt);var on=(St=Ie.grid.line.strokeWidth)!=null?St:0;if(Je==="grid"&&typeof on!="string"&&on>0&&($e.lineWidth=on,$e.strokeStyle=Ie.grid.line.stroke,H&&zd($e,{width:je,height:qe,scale:Ye,axis:"x",values:q}),K&&zd($e,{width:je,height:qe,scale:et,axis:"y",values:te})),Je==="axes"&&yT($e,{xScale:Ye,yScale:et,width:je,height:qe,top:ne,right:U,bottom:z,left:N,theme:Ie}),Je==="areas"&&S===!0){$e.save(),$e.globalAlpha=D,Xe.context($e);for(var Gt=Fe.length-1;Gt>=0;Gt--)$e.fillStyle=Fe[Gt].color,$e.beginPath(),Xe(Fe[Gt].data.map(function(We){return We.position})),$e.fill();$e.restore()}if(Je==="lines"&&(Rt.context($e),Fe.forEach(function(We){$e.strokeStyle=We.color,$e.lineWidth=C,$e.beginPath(),Rt(We.data.map(function(ht){return ht.position})),$e.stroke()})),Je==="points"&&M===!0&&I>0&&Be.forEach(function(We){$e.fillStyle=We.color,$e.beginPath(),$e.arc(We.x,We.y,I/2,0,2*Math.PI),$e.fill(),L>0&&($e.strokeStyle=We.borderColor,$e.lineWidth=L,$e.stroke())}),Je==="mesh"&&J===!0&&Le!==void 0&&(xue($e,Le),He&&wue($e,Le,He.absIndex)),Je==="legends"){var ze=Fe.map(function(We){return{id:We.id,label:We.id,color:We.color}}).reverse();Q.forEach(function(We){v1($e,On({},We,{data:We.data||ze,containerWidth:je,containerHeight:qe,theme:Ie}))})}})}},[pe,je,xt,qe,Te,fe.left,fe.top,a,g,Ie,Rt,Fe,Ye,et,H,q,K,te,ne,U,z,N,Q,Be,M,I,L,He,tt,J,S,Xe,D,C,Le]);var Oe=v.useCallback(function($e){if(!pe.current)return null;var Je=Jo(pe.current,$e),St=Je[0],on=Je[1];if(!Y5(fe.left,fe.top,je,qe,St,on))return null;var Gt=ot.find(St-fe.left,on-fe.top);return Be[Gt]},[pe,fe,je,qe,ot,Be]),Ze=Ei(),wt=Ze.showTooltipFromEvent,nt=Ze.hideTooltip,bt=v.useCallback(function($e){var Je=Oe($e);mt(Je),Je?wt(v.createElement(ke,{point:Je}),$e):nt()},[Oe,mt,wt,nt,ke]),en=v.useCallback(function($e){nt(),mt(null),He&&(ie==null||ie(He,$e))},[nt,mt,ie,He]),Bt=v.useCallback(function($e){if(oe){var Je=Oe($e);Je&&oe(Je,$e)}},[Oe,oe]),Wt=v.useCallback(function($e){if(be){var Je=Oe($e);Je&&be(Je,$e)}},[Oe,be]),fn=v.useCallback(function($e){if(ce){var Je=Oe($e);Je&&ce(Je,$e)}},[Oe,ce]),Yt=v.useCallback(function($e){if(ue){var Je=Oe($e);Je&&ue(Je,$e)}},[Oe,ue]);return b.jsx("canvas",{ref:f1(pe,Me),width:xt*a,height:Te*a,style:{width:xt,height:Te,cursor:se?"auto":"normal"},onMouseEnter:se?bt:void 0,onMouseMove:se?bt:void 0,onMouseLeave:se?en:void 0,onMouseDown:se?Bt:void 0,onMouseUp:se?Wt:void 0,onClick:se?fn:void 0,onDoubleClick:se?Yt:void 0,role:ye})},zue=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Ph(e,Fue);return b.jsx(mo,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(Bue,On({},a,{forwardedRef:t}))})}),Wue=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth;e.defaultHeight;var r=e.onResize,i=e.debounceResize,a=Ph(e,Wue);return b.jsx(go,{defaultWidth:n,defaultHeight:n,onResize:r,debounceResize:i,children:function(o){var s=o.width,l=o.height;return b.jsx(zue,On({width:s,height:l},a,{ref:t}))}})});var Uue=lT;function Hue(e,t){var n=[];return Uue(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var Vue=Hue,que=A5,Yue=Vue,Gue=b1,Zue=Jn;function Kue(e,t){var n=Zue(e)?que:Yue;return n(e,Gue(t))}var Xue=Kue;const Jue=an(Xue);var Que=$i,ede=br,tde="[object Number]";function nde(e){return typeof e=="number"||ede(e)&&Que(e)==tde}var rde=nde;const lw=an(rde);function ide(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ade=ide,ode=Fs,sde=Gc;function lde(e,t){return e&&ode(t,sde(t),e)}var cde=lde,ude=Fs,dde=Vc;function fde(e,t){return e&&ude(t,dde(t),e)}var hde=fde,pde=Fs,mde=s1;function gde(e,t){return pde(e,mde(e),t)}var vde=gde,bde=a1,yde=vv,xde=s1,wde=R5,_de=Object.getOwnPropertySymbols,Cde=_de?function(e){for(var t=[];e;)bde(t,xde(e)),e=yde(e);return t}:wde,TT=Cde,Sde=Fs,Tde=TT;function kde(e,t){return Sde(e,Tde(e),t)}var $de=kde,Ede=O5,Mde=TT,Ode=Vc;function Ade(e){return Ede(e,Ode,Mde)}var kT=Ade,Rde=Object.prototype,Dde=Rde.hasOwnProperty;function Ide(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Dde.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var jde=Ide,Nde=gv;function Pde(e,t){var n=t?Nde(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Lde=Pde,Fde=/\w*$/;function Bde(e){var t=new e.constructor(e.source,Fde.exec(e));return t.lastIndex=e.lastIndex,t}var zde=Bde,cw=Ds,uw=cw?cw.prototype:void 0,dw=uw?uw.valueOf:void 0;function Wde(e){return dw?Object(dw.call(e)):{}}var Ude=Wde,Hde=gv,Vde=Lde,qde=zde,Yde=Ude,Gde=YS,Zde="[object Boolean]",Kde="[object Date]",Xde="[object Map]",Jde="[object Number]",Qde="[object RegExp]",efe="[object Set]",tfe="[object String]",nfe="[object Symbol]",rfe="[object ArrayBuffer]",ife="[object DataView]",afe="[object Float32Array]",ofe="[object Float64Array]",sfe="[object Int8Array]",lfe="[object Int16Array]",cfe="[object Int32Array]",ufe="[object Uint8Array]",dfe="[object Uint8ClampedArray]",ffe="[object Uint16Array]",hfe="[object Uint32Array]";function pfe(e,t,n){var r=e.constructor;switch(t){case rfe:return Hde(e);case Zde:case Kde:return new r(+e);case ife:return Vde(e,n);case afe:case ofe:case sfe:case lfe:case cfe:case ufe:case dfe:case ffe:case hfe:return Gde(e,n);case Xde:return new r;case Jde:case tfe:return new r(e);case Qde:return qde(e);case efe:return new r;case nfe:return Yde(e)}}var mfe=pfe,gfe=Ih,vfe=br,bfe="[object Map]";function yfe(e){return vfe(e)&&gfe(e)==bfe}var xfe=yfe,wfe=xfe,_fe=Ls,fw=Vf,hw=fw&&fw.isMap,Cfe=hw?_fe(hw):wfe,Sfe=Cfe,Tfe=Ih,kfe=br,$fe="[object Set]";function Efe(e){return kfe(e)&&Tfe(e)==$fe}var Mfe=Efe,Ofe=Mfe,Afe=Ls,pw=Vf,mw=pw&&pw.isSet,Rfe=mw?Afe(mw):Ofe,Dfe=Rfe,Ife=Wf,jfe=ade,Nfe=Cv,Pfe=cde,Lfe=hde,Ffe=VS,Bfe=GS,zfe=vde,Wfe=$de,Ufe=D5,Hfe=kT,Vfe=Ih,qfe=jde,Yfe=mfe,Gfe=KS,Zfe=Jn,Kfe=Hf,Xfe=Sfe,Jfe=Qr,Qfe=Dfe,ehe=Gc,the=Vc,nhe=1,rhe=2,ihe=4,$T="[object Arguments]",ahe="[object Array]",ohe="[object Boolean]",she="[object Date]",lhe="[object Error]",ET="[object Function]",che="[object GeneratorFunction]",uhe="[object Map]",dhe="[object Number]",MT="[object Object]",fhe="[object RegExp]",hhe="[object Set]",phe="[object String]",mhe="[object Symbol]",ghe="[object WeakMap]",vhe="[object ArrayBuffer]",bhe="[object DataView]",yhe="[object Float32Array]",xhe="[object Float64Array]",whe="[object Int8Array]",_he="[object Int16Array]",Che="[object Int32Array]",She="[object Uint8Array]",The="[object Uint8ClampedArray]",khe="[object Uint16Array]",$he="[object Uint32Array]",Zt={};Zt[$T]=Zt[ahe]=Zt[vhe]=Zt[bhe]=Zt[ohe]=Zt[she]=Zt[yhe]=Zt[xhe]=Zt[whe]=Zt[_he]=Zt[Che]=Zt[uhe]=Zt[dhe]=Zt[MT]=Zt[fhe]=Zt[hhe]=Zt[phe]=Zt[mhe]=Zt[She]=Zt[The]=Zt[khe]=Zt[$he]=!0;Zt[lhe]=Zt[ET]=Zt[ghe]=!1;function Vu(e,t,n,r,i,a){var o,s=t&nhe,l=t&rhe,c=t&ihe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!Jfe(e))return e;var u=Zfe(e);if(u){if(o=qfe(e),!s)return Bfe(e,o)}else{var d=Vfe(e),f=d==ET||d==che;if(Kfe(e))return Ffe(e,s);if(d==MT||d==$T||f&&!i){if(o=l||f?{}:Gfe(e),!s)return l?Wfe(e,Lfe(o,e)):zfe(e,Pfe(o,e))}else{if(!Zt[d])return i?e:{};o=Yfe(e,d,s)}}a||(a=new Ife);var h=a.get(e);if(h)return h;a.set(e,o),Qfe(e)?e.forEach(function(g){o.add(Vu(g,t,n,g,e,a))}):Xfe(e)&&e.forEach(function(g,y){o.set(y,Vu(g,t,n,y,e,a))});var p=c?l?Hfe:Ufe:l?the:ehe,m=u?void 0:p(e);return jfe(m||e,function(g,y){m&&(y=g,g=e[y]),Nfe(o,y,Vu(g,t,n,y,e,a))}),o}var Ehe=Vu;function Mhe(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 a=Array(i);++r<i;)a[r]=e[r+t];return a}var Ohe=Mhe,Ahe=qc,Rhe=Ohe;function Dhe(e,t){return t.length<2?e:Ahe(e,Rhe(t,0,-1))}var Ihe=Dhe,jhe=Bs,Nhe=S5,Phe=Ihe,Lhe=zs;function Fhe(e,t){return t=jhe(t,e),e=Phe(e,t),e==null||delete e[Lhe(Nhe(t))]}var Bhe=Fhe,zhe=xv;function Whe(e){return zhe(e)?void 0:e}var Uhe=Whe,Hhe=Zf,Vhe=Ehe,qhe=Bhe,Yhe=Bs,Ghe=Fs,Zhe=Uhe,Khe=E5,Xhe=kT,Jhe=1,Qhe=2,epe=4,tpe=Khe(function(e,t){var n={};if(e==null)return n;var r=!1;t=Hhe(t,function(a){return a=Yhe(a,e),r||(r=a.length>1),a}),Ghe(e,Xhe(e),n),r&&(n=Vhe(n,Jhe|Qhe|epe,Zhe));for(var i=t.length;i--;)qhe(n,t[i]);return n}),npe=tpe;const OT=an(npe);function Kr(){return Kr=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},Kr.apply(null,arguments)}var Eg={dotSize:4,noteWidth:120,noteTextOffset:8},rpe=function(e){var t=typeof e;return v.isValidElement(e)||t==="string"||t==="function"||t==="object"},ipe=function(e){var t=typeof e;return t==="string"||t==="function"},wc=function(e){return e.type==="circle"},Mg=function(e){return e.type==="dot"},_c=function(e){return e.type==="rect"},ape=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return n.reduce(function(a,o){var s=o.offset||0;return[].concat(a,Jue(t,o.match).map(function(l){var c=r(l),u=i(l);return(wc(o)||_c(o))&&(u.size=u.size+2*s,u.width=u.width+2*s,u.height=u.height+2*s),Kr({},OT(o,["match","offset"]),c,u,{size:o.size||u.size,datum:l})}))},[])},ope=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Rae(Zc(i))},AT=function(e){var t,n,r=e.x,i=e.y,a=e.noteX,o=e.noteY,s=e.noteWidth,l=s===void 0?Eg.noteWidth:s,c=e.noteTextOffset,u=c===void 0?Eg.noteTextOffset:c;if(lw(a))t=r+a;else{if(a.abs===void 0)throw new Error("noteX should be either a number or an object containing an 'abs' property");t=a.abs}if(lw(o))n=i+o;else{if(o.abs===void 0)throw new Error("noteY should be either a number or an object containing an 'abs' property");n=o.abs}var d=r,f=i,h=ope(r,i,t,n);if(wc(e)){var p=za(hr(h),e.size/2);d+=p.x,f+=p.y}if(_c(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,y=t;return(h+90)%360>180?(g-=l,y-=l):y+=l,{points:[[d,f],[t,n],[y,n]],text:[g,n-u],angle:h+90}},RT=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return v.useMemo(function(){return ape({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},spe=function(e){var t=e.annotations;return v.useMemo(function(){return t.map(function(n){return Kr({},n,{computed:AT(Kr({},n))})})},[t])},lpe=function(e){return v.useMemo(function(){return AT(e)},[e])},cpe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=Ft(),o=Fn(),s=o.animate,l=o.config,c=Xr({x:n,y:r,config:l,immediate:!s});return typeof i=="function"?v.createElement(i,{x:n,y:r,datum:t}):b.jsxs(b.Fragment,{children:[a.annotations.text.outlineWidth>0&&b.jsx(Vt.text,{x:c.x,y:c.y,style:Kr({},a.annotations.text,{strokeLinejoin:"round",strokeWidth:2*a.annotations.text.outlineWidth,stroke:a.annotations.text.outlineColor}),children:i}),b.jsx(Vt.text,{x:c.x,y:c.y,style:OT(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},gw=function(e){var t=e.points,n=e.isOutline,r=n!==void 0&&n,i=Ft(),a=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]),o=c1(a);if(r&&i.annotations.link.outlineWidth<=0)return null;var s=Kr({},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),b.jsx(Vt.path,{fill:"none",d:o,style:s})},upe=function(e){var t=e.x,n=e.y,r=e.size,i=Ft(),a=Fn(),o=a.animate,s=a.config,l=Xr({x:t,y:n,radius:r/2,config:s,immediate:!o});return b.jsxs(b.Fragment,{children:[i.annotations.outline.outlineWidth>0&&b.jsx(Vt.circle,{cx:l.x,cy:l.y,r:l.radius,style:Kr({},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})}),b.jsx(Vt.circle,{cx:l.x,cy:l.y,r:l.radius,style:i.annotations.outline})]})},dpe=function(e){var t=e.x,n=e.y,r=e.size,i=r===void 0?Eg.dotSize:r,a=Ft(),o=Fn(),s=o.animate,l=o.config,c=Xr({x:t,y:n,radius:i/2,config:l,immediate:!s});return b.jsxs(b.Fragment,{children:[a.annotations.outline.outlineWidth>0&&b.jsx(Vt.circle,{cx:c.x,cy:c.y,r:c.radius,style:Kr({},a.annotations.outline,{fill:"none",strokeWidth:2*a.annotations.outline.outlineWidth,stroke:a.annotations.outline.outlineColor,opacity:a.annotations.outline.outlineOpacity})}),b.jsx(Vt.circle,{cx:c.x,cy:c.y,r:c.radius,style:a.annotations.symbol})]})},fpe=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.borderRadius,o=a===void 0?6:a,s=Ft(),l=Fn(),c=l.animate,u=l.config,d=Xr({x:t-r/2,y:n-i/2,width:r,height:i,config:u,immediate:!c});return b.jsxs(b.Fragment,{children:[s.annotations.outline.outlineWidth>0&&b.jsx(Vt.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:Kr({},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})}),b.jsx(Vt.rect,{x:d.x,y:d.y,rx:o,ry:o,width:d.width,height:d.height,style:s.annotations.outline})]})},hpe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=lpe(e);if(!rpe(i))throw new Error("note should be a valid react element");return b.jsxs(b.Fragment,{children:[b.jsx(gw,{points:a.points,isOutline:!0}),wc(e)&&b.jsx(upe,{x:n,y:r,size:e.size}),Mg(e)&&b.jsx(dpe,{x:n,y:r,size:e.size}),_c(e)&&b.jsx(fpe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),b.jsx(gw,{points:a.points}),b.jsx(cpe,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},vw=function(e,t){t.forEach(function(n,r){var i=n[0],a=n[1];r===0?e.moveTo(i,a):e.lineTo(i,a)})},ppe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!ipe(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(),vw(e,i.computed.points),e.stroke(),e.lineCap="butt"),wc(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()),Mg(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()),_c(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(),vw(e,i.computed.points),e.stroke(),wc(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()),Mg(i)&&(e.fillStyle=r.annotations.symbol.fill,e.beginPath(),e.arc(i.x,i.y,i.size/2,0,2*Math.PI),e.fill()),_c(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())},mpe=function(e,t,n,r,i,a){a>0?(e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.quadraticCurveTo(t+r,n,t+r,n+a),e.lineTo(t+r,n+i-a),e.quadraticCurveTo(t+r,n+i,t+r-a,n+i),e.lineTo(t+a,n+i),e.quadraticCurveTo(t,n+i,t,n+i-a),e.lineTo(t,n+a),e.quadraticCurveTo(t,n,t+a,n),e.closePath()):e.rect(t,n,r,i)};function $t(){return $t=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},$t.apply(null,arguments)}function la(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 bw,gpe=function(e){var t=e.bars,n=e.annotations,r=RT({data:t,annotations:n,getPosition:function(i){return{x:i.x+i.width/2,y:i.y+i.height/2}},getDimensions:function(i){var a=i.height,o=i.width;return{width:o,height:a,size:Math.max(o,a)}}});return b.jsx(b.Fragment,{children:r.map(function(i,a){return b.jsx(hpe,$t({},i),a)})})},vpe=function(e){var t=e.width,n=e.height,r=e.legends,i=e.toggleSerie;return b.jsx(b.Fragment,{children:r.map(function(a,o){var s,l=a[0],c=a[1];return b.jsx(g1,$t({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),o)})})},bpe=["data"],ype=function(e){var t,n=e.bar,r=n.data,i=la(n,bpe),a=e.style,o=a.borderColor,s=a.color,l=a.height,c=a.labelColor,u=a.labelOpacity,d=a.labelX,f=a.labelY,h=a.transform,p=a.width,m=a.textAnchor,g=e.borderRadius,y=e.borderWidth,_=e.label,w=e.shouldRenderLabel,C=e.isInteractive,x=e.onClick,S=e.onMouseEnter,E=e.onMouseLeave,k=e.tooltip,T=e.isFocusable,D=e.ariaLabel,$=e.ariaLabelledBy,M=e.ariaDescribedBy,R=e.ariaDisabled,I=e.ariaHidden,j=Ft(),A=Ei(),O=A.showTooltipFromEvent,L=A.showTooltipAt,F=A.hideTooltip,P=v.useMemo(function(){return function(){return v.createElement(k,$t({},i,r))}},[k,i,r]),W=v.useCallback(function(ne){x==null||x($t({color:i.color},r),ne)},[i,r,x]),H=v.useCallback(function(ne){return O(P(),ne)},[O,P]),q=v.useCallback(function(ne){S==null||S(r,ne),O(P(),ne)},[r,S,O,P]),Z=v.useCallback(function(ne){E==null||E(r,ne),F()},[r,F,E]),K=v.useCallback(function(){L(P(),[i.absX+i.width/2,i.absY])},[L,P,i]),te=v.useCallback(function(){F()},[F]);return b.jsxs(Vt.g,{transform:h,children:[b.jsx(Vt.rect,{width:ta(p,function(ne){return Math.max(ne,0)}),height:ta(l,function(ne){return Math.max(ne,0)}),rx:g,ry:g,fill:(t=r.fill)!=null?t:s,strokeWidth:y,stroke:o,focusable:T,tabIndex:T?0:void 0,"aria-label":D?D(r):void 0,"aria-labelledby":$?$(r):void 0,"aria-describedby":M?M(r):void 0,"aria-disabled":R?R(r):void 0,"aria-hidden":I?I(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?H:void 0,onMouseLeave:C?Z:void 0,onClick:C?W:void 0,onFocus:C&&T?K:void 0,onBlur:C&&T?te:void 0,"data-testid":"bar.item."+r.id+"."+r.index}),w&&b.jsx(Hs,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:$t({},j.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},xpe=["color","label"],wpe=function(e){var t=e.color,n=e.label,r=la(e,xpe);return b.jsx($v,{id:n,value:r.formattedValue,enableChip:!0,color:t})},Ht={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:wpe,tooltipLabel:function(e){return e.id+" - "+e.indexValue},legends:[],initialHiddenIds:[],annotations:[],enableTotals:!1,totalsOffset:10},Ut=$t({},Ht,{layers:["grid","axes","bars","totals","markers","legends","annotations"],axisTop:null,axisRight:null,axisBottom:{},axisLeft:{},barComponent:ype,defs:[],fill:[],markers:[],animate:!0,animateOnMount:!1,motionConfig:"default",role:"img",isFocusable:!1}),un=$t({},Ht,{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,a=n.width,o=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(),mpe(e,o,s,a,i,Math.min(c,i)),e.fill(),u>0&&e.stroke(),f&&(e.textBaseline="middle",e.textAlign=g==="middle"?"center":g,to(e,h,d,o+p,s+m))},pixelRatio:typeof window<"u"&&(bw=window.devicePixelRatio)!=null?bw:1}),DT=function(e,t,n,r,i,a){return xc(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},IT=function(e,t){return e.map(function(n){return $t({},t.reduce(function(r,i){return r[i]=null,r},{}),n)})},Lh=function(e){return Object.keys(e).reduce(function(t,n){return e[n]&&(t[n]=e[n]),t},{})},Fh=function(e){return[e,Number(e)]};function jT(e,t,n,r){return e===void 0&&(e=Ht.layout),n===void 0&&(n=Ht.labelPosition),r===void 0&&(r=Ht.labelOffset),function(i,a){var o=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+o,labelY:a/2,textAnchor:n==="middle"?"middle":t?"end":"start"}}var l=a/2;return n==="start"?l=t?0:a:n==="end"&&(l=t?a:0),{labelX:i/2,labelY:l-o,textAnchor:"middle"}}}var _pe=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],x1=function(e,t){return e>t},NT=function(e,t){return e<t},PT=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Cpe=function(e){return x1(e,0)?0:e},Spe=function(e,t,n,r){var i=e.data,a=e.formatValue,o=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?NT:x1,g=i.map(Lh),y=[];return d.forEach(function(_,w){return PT(0,f.domain().length).forEach(function(C){var x,S,E,k=Fh(i[C][_]),T=k[0],D=k[1],$=s(i[C]),M=((x=f($))!=null?x:0)+t*w+u*w,R=m(S=D,0)?(E=h(S))!=null?E:0:r,I=function(A,O){var L;return m(A,0)?r-O:((L=h(A))!=null?L:0)-r}(D,R),j={id:_,value:T===null?T:D,formattedValue:a(D),hidden:!1,index:C,indexValue:$,data:g[C]};y.push({key:_+"."+j.indexValue,index:y.length,data:j,x:M,y:R,absX:p.left+M,absY:p.top+R,width:t,height:I,color:o(j),label:l(j)})})}),y},Tpe=function(e,t,n,r){var i=e.data,a=e.formatValue,o=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?NT:x1,g=i.map(Lh),y=[];return c.forEach(function(_,w){return PT(0,h.domain().length).forEach(function(C){var x,S,E,k=Fh(i[C][_]),T=k[0],D=k[1],$=o(i[C]),M=m(S=D,0)?r:(E=f(S))!=null?E:0,R=((x=h($))!=null?x:0)+t*w+d*w,I=function(A,O){var L;return m(A,0)?((L=f(A))!=null?L:0)-r:r-O}(D,M),j={id:_,value:T===null?T:D,formattedValue:a(D),hidden:!1,index:C,indexValue:$,data:g[C]};y.push({key:_+"."+j.indexValue,index:y.length,data:j,x:M,y:R,absX:p.left+M,absY:p.top+R,width:I,height:t,color:s(j),label:l(j)})})}),y},kpe=function(e){var t,n,r,i=e.layout,a=e.width,o=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=la(e,_pe),g=m.keys.filter(function(O){return!p.includes(O)}),y=IT(m.data,g),_=i==="vertical"?["y","x",a]:["x","y",o],w=_[0],C=_[1],x=_[2],S=DT(y,m.getIndex,l,f,x,C),E=d.min==="auto"?Cpe:function(O){return O},k=y.reduce(function(O,L){return[].concat(O,g.map(function(F){return L[F]}))},[]).filter(Boolean),T=E(Math.min.apply(Math,k)),D=(r=Math.max.apply(Math,k),isFinite(r)?r:0),$=xc(d,{all:k,min:T,max:D},w==="x"?a:o,w),M=i==="vertical"?[S,$]:[$,S],R=M[0],I=M[1],j=(S.bandwidth()-u*(g.length-1))/g.length,A=[$t({},m,{data:y,keys:g,innerPadding:u,xScale:R,yScale:I}),j,(t=d.reverse)!=null&&t,(n=$(0))!=null?n:0];return{xScale:R,yScale:I,bars:j>0?i==="vertical"?Spe.apply(void 0,A):Tpe.apply(void 0,A):[]}},$pe=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],LT=function(e){var t;return e.some(Array.isArray)?LT((t=[]).concat.apply(t,e)):e},Epe=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=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,y,_=h[m],w=(g=c(a(_.data)))!=null?g:0,C=((y=function(D){return u(D[n?0:1])}(_))!=null?y:0)+.5*s,x=function(D,$){var M;return((M=u(D[n?1:0]))!=null?M:0)-$}(_,C)-s,S=Fh(_.data[h.key]),E=S[0],k=S[1],T={id:h.key,value:E===null?E:k,formattedValue:r(k),hidden:!1,index:m,indexValue:p,data:Lh(_.data)};f.push({key:h.key+"."+p,index:f.length,data:T,x:w,y:C,absX:d.left+w,absY:d.top+C,width:t,height:x,color:i(T),label:o(T)})})}),f},Mpe=function(e,t,n){var r=e.formatValue,i=e.getColor,a=e.getIndex,o=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,y,_=h[m],w=(g=u(a(_.data)))!=null?g:0,C=((y=function(D){return c(D[n?1:0])}(_))!=null?y:0)+.5*s,x=function(D,$){var M;return((M=c(D[n?0:1]))!=null?M:0)-$}(_,C)-s,S=Fh(_.data[h.key]),E=S[0],k=S[1],T={id:h.key,value:E===null?E:k,formattedValue:r(k),hidden:!1,index:m,indexValue:p,data:Lh(_.data)};f.push({key:h.key+"."+p,index:f.length,data:T,x:C,y:w,absX:d.left+C,absY:d.top+w,width:x,height:t,color:i(T),label:o(T)})})}),f},Ope=function(e){var t,n,r=e.data,i=e.layout,a=e.width,o=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=la(e,$pe),p=h.keys.filter(function(j){return!f.includes(j)}),m=VQ().keys(p).offset(qQ)(IT(r,p)),g=i==="vertical"?["y","x",a]:["x","y",o],y=g[0],_=g[1],w=g[2],C=DT(r,h.getIndex,l,u,w,_),x=(n=LT(m),c.type==="log"?n.filter(function(j){return j!==0}):n),S=Math.min.apply(Math,x),E=Math.max.apply(Math,x),k=xc(c,{all:x,min:S,max:E},y==="x"?a:o,y),T=i==="vertical"?[C,k]:[k,C],D=T[0],$=T[1],M=h.innerPadding>0?h.innerPadding:0,R=C.bandwidth(),I=[$t({},h,{innerPadding:M,stackedData:m,xScale:D,yScale:$}),R,(t=c.reverse)!=null&&t];return{xScale:D,yScale:$,bars:R>0?i==="vertical"?Epe.apply(void 0,I):Mpe.apply(void 0,I):[]}},Ape=function(e){var t=e.bars,n=e.direction,r=e.from,i=e.groupMode,a=e.layout,o=e.legendLabel,s=e.reverse,l=V5(o??(r==="indexes"?"indexValue":"id"));return r==="indexes"?function(c,u,d){var f=Tg(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,a,l):function(c,u,d,f,h,p){var m=Tg(c.map(function(g){var y;return{id:g.data.id,label:p(g.data),hidden:g.data.hidden,color:(y=g.color)!=null?y:"#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,a,n,i,s,l)},yw=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},Rpe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},Dpe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Ipe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},FT=function(e){var t,n=e.indexBy,r=n===void 0?Ht.indexBy:n,i=e.keys,a=i===void 0?Ht.keys:i,o=e.label,s=o===void 0?Ht.label:o,l=e.tooltipLabel,c=l===void 0?Ht.tooltipLabel:l,u=e.valueFormat,d=e.colors,f=d===void 0?Ht.colors:d,h=e.colorBy,p=h===void 0?Ht.colorBy:h,m=e.borderColor,g=m===void 0?Ht.borderColor:m,y=e.labelTextColor,_=y===void 0?Ht.labelTextColor:y,w=e.groupMode,C=w===void 0?Ht.groupMode:w,x=e.layout,S=x===void 0?Ht.layout:x,E=e.data,k=e.margin,T=e.width,D=e.height,$=e.padding,M=$===void 0?Ht.padding:$,R=e.innerPadding,I=R===void 0?Ht.innerPadding:R,j=e.valueScale,A=j===void 0?Ht.valueScale:j,O=e.indexScale,L=O===void 0?Ht.indexScale:O,F=e.initialHiddenIds,P=F===void 0?Ht.initialHiddenIds:F,W=e.enableLabel,H=W===void 0?Ht.enableLabel:W,q=e.labelSkipWidth,Z=q===void 0?Ht.labelSkipWidth:q,K=e.labelSkipHeight,te=K===void 0?Ht.labelSkipHeight:K,ne=e.legends,U=ne===void 0?Ht.legends:ne,B=e.legendLabel,z=e.totalsOffset,V=z===void 0?Ht.totalsOffset:z,N=v.useState(P??[]),ee=N[0],Q=N[1],X=v.useCallback(function(Te){Q(function(Ie){return Ie.indexOf(Te)>-1?Ie.filter(function(at){return at!==Te}):[].concat(Ie,[Te])})},[]),se=gi(r),G=gi(s),J=gi(c),ie=ys(u),oe=Ft(),be=h1(f,p),ce=gr(g,oe),ue=gr(_,oe),Ce=(C==="grouped"?kpe:Ope)({layout:S,data:E,getIndex:se,keys:a,width:T,height:D,getColor:be,padding:M,innerPadding:I,valueScale:A,indexScale:L,hiddenIds:ee,formatValue:ie,getTooltipLabel:J,margin:k}),ke=Ce.bars,ye=Ce.xScale,Me=Ce.yScale,pe=v.useMemo(function(){return ke.filter(function(Te){return Te.data.value!==null}).map(function(Te,Ie){return $t({},Te,{index:Ie})})},[ke]),me=v.useCallback(function(Te){var Ie=Te.width,at=Te.height;return!!H&&!(Z>0&&Ie<Z)&&!(te>0&&at<te)},[H,Z,te]),fe=v.useMemo(function(){return a.map(function(Te){var Ie=ke.find(function(at){return at.data.id===Te});return $t({},Ie,{data:$t({id:Te},Ie==null?void 0:Ie.data,{hidden:ee.includes(Te)})})})},[ee,a,ke]),je=(t=A.reverse)!=null&&t,qe=v.useMemo(function(){return U.map(function(Te){return[Te,Ape({bars:Te.dataFrom==="keys"?fe:ke,direction:Te.direction,from:Te.dataFrom,groupMode:C,layout:S,legendLabel:B,reverse:je})]})},[U,fe,ke,C,S,B,je]),xt=v.useMemo(function(){return function(Te,Ie,at,He,mt,ut,Rt){He===void 0&&(He=Ht.layout),mt===void 0&&(mt=Ht.groupMode);var Xe=[];if(Te.length===0)return Xe;var Fe=new Map,Ye=Te[0].width,et=Te[0].height;if(mt==="stacked"){var Be=new Map;Te.forEach(function(ot){var Le=ot.data,Oe=Le.indexValue,Ze=Le.value;yw(Fe,Oe,Number(Ze)),Rpe(Be,Oe,Number(Ze))}),Be.forEach(function(ot,Le){var Oe,Ze,wt,nt=Fe.get(Le)||0;He==="vertical"?(Oe=Ie(Le),Ze=at(ot),wt=at(ot/2)):(Oe=Ie(ot),Ze=at(Le),wt=Ie(ot/2)),Oe+=He==="vertical"?Ye/2:ut,Ze+=He==="vertical"?-ut:et/2,Xe.push({key:"total_"+Le,x:Oe,y:Ze,value:nt,formattedValue:Rt(nt),animationOffset:wt})})}else if(mt==="grouped"){var tt=new Map,vt=new Map;Te.forEach(function(ot){var Le=ot.data,Oe=Le.indexValue,Ze=Le.value;yw(Fe,Oe,Number(Ze)),Dpe(tt,Oe,Number(Ze)),Ipe(vt,Oe)}),tt.forEach(function(ot,Le){var Oe,Ze,wt,nt=Fe.get(Le)||0,bt=vt.get(Le);He==="vertical"?(Oe=Ie(Le),Ze=at(ot),wt=at(ot/2)):(Oe=Ie(ot),Ze=at(Le),wt=Ie(ot/2)),Oe+=He==="vertical"?bt*Ye/2:ut,Ze+=He==="vertical"?-ut:bt*et/2,Xe.push({key:"total_"+Le,x:Oe,y:Ze,value:nt,formattedValue:Rt(nt),animationOffset:wt})})}return Xe}(ke,ye,Me,S,C,V,ie)},[ke,ye,Me,S,C,V,ie]);return{bars:ke,barsWithValue:pe,xScale:ye,yScale:Me,getIndex:se,getLabel:G,getTooltipLabel:J,formatValue:ie,getColor:be,getBorderColor:ce,getLabelColor:ue,shouldRenderBarLabel:me,hiddenIds:ee,toggleSerie:X,legendsWithData:qe,barTotals:xt}},jpe=function(e){var t=e.data,n=e.springConfig,r=e.animate,i=e.layout,a=i===void 0?Ut.layout:i,o=Ft();return so(t,{keys:function(s){return s.key},from:function(s){return{x:a==="vertical"?s.x:s.animationOffset,y:a==="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:a==="vertical"?s.x:s.animationOffset,y:a==="vertical"?s.animationOffset:s.y,labelOpacity:0}},config:n,immediate:!r,initial:r?void 0:null})(function(s,l){return b.jsx(Vt.text,{x:s.x,y:s.y,fillOpacity:s.labelOpacity,style:$t({},o.labels.text,{pointerEvents:"none"}),fontWeight:"bold",fontSize:o.labels.text.fontSize,fontFamily:o.labels.text.fontFamily,textAnchor:a==="vertical"?"middle":"start",alignmentBaseline:a==="vertical"?"alphabetic":"middle",children:l.formattedValue},l.key)})},Npe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Ppe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=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,y=g===void 0?Ut.axisBottom:g,_=e.axisLeft,w=_===void 0?Ut.axisLeft:_,C=e.enableGridX,x=C===void 0?Ut.enableGridX:C,S=e.enableGridY,E=S===void 0?Ut.enableGridY:S,k=e.gridXValues,T=e.gridYValues,D=e.layers,$=D===void 0?Ut.layers:D,M=e.barComponent,R=M===void 0?Ut.barComponent:M,I=e.enableLabel,j=I===void 0?Ut.enableLabel:I,A=e.label,O=e.labelSkipWidth,L=O===void 0?Ut.labelSkipWidth:O,F=e.labelSkipHeight,P=F===void 0?Ut.labelSkipHeight:F,W=e.labelTextColor,H=e.labelPosition,q=H===void 0?Ut.labelPosition:H,Z=e.labelOffset,K=Z===void 0?Ut.labelOffset:Z,te=e.markers,ne=te===void 0?Ut.markers:te,U=e.colorBy,B=e.colors,z=e.defs,V=z===void 0?Ut.defs:z,N=e.fill,ee=N===void 0?Ut.fill:N,Q=e.borderRadius,X=Q===void 0?Ut.borderRadius:Q,se=e.borderWidth,G=se===void 0?Ut.borderWidth:se,J=e.borderColor,ie=e.annotations,oe=ie===void 0?Ut.annotations:ie,be=e.legendLabel,ce=e.tooltipLabel,ue=e.valueFormat,Ce=e.isInteractive,ke=Ce===void 0?Ut.isInteractive:Ce,ye=e.tooltip,Me=ye===void 0?Ut.tooltip:ye,pe=e.onClick,me=e.onMouseEnter,fe=e.onMouseLeave,je=e.legends,qe=e.role,xt=qe===void 0?Ut.role:qe,Te=e.ariaLabel,Ie=e.ariaLabelledBy,at=e.ariaDescribedBy,He=e.isFocusable,mt=He===void 0?Ut.isFocusable:He,ut=e.barAriaLabel,Rt=e.barAriaLabelledBy,Xe=e.barAriaDescribedBy,Fe=e.barAriaHidden,Ye=e.barAriaDisabled,et=e.initialHiddenIds,Be=e.enableTotals,tt=Be===void 0?Ut.enableTotals:Be,vt=e.totalsOffset,ot=vt===void 0?Ut.totalsOffset:vt,Le=e.forwardedRef,Oe=Fn(),Ze=Oe.animate,wt=Oe.config,nt=vo(o,s,a),bt=nt.outerWidth,en=nt.outerHeight,Bt=nt.margin,Wt=nt.innerWidth,fn=nt.innerHeight,Yt=FT({indexBy:r,label:A,tooltipLabel:ce,valueFormat:ue,colors:B,colorBy:U,borderColor:J,labelTextColor:W,groupMode:l,layout:c,data:n,keys:i,margin:Bt,width:Wt,height:fn,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:j,labelSkipWidth:L,labelSkipHeight:P,legends:je,legendLabel:be,initialHiddenIds:et,totalsOffset:ot}),$e=Yt.bars,Je=Yt.barsWithValue,St=Yt.xScale,on=Yt.yScale,Gt=Yt.getLabel,ze=Yt.getTooltipLabel,We=Yt.getBorderColor,ht=Yt.getLabelColor,Dt=Yt.shouldRenderBarLabel,Tt=Yt.toggleSerie,Qe=Yt.legendsWithData,kt=Yt.barTotals,yr=Yt.getColor,ln=jT(c,(t=u==null?void 0:u.reverse)!=null&&t,q,K),cn=so(Je,{keys:function(Re){return Re.key},from:function(Re){return $t({borderColor:We(Re),color:Re.color,height:0,labelColor:ht(Re),labelOpacity:0},ln(Re.width,Re.height),{transform:"translate("+Re.x+", "+(Re.y+Re.height)+")",width:Re.width},c==="vertical"?{}:{height:Re.height,transform:"translate("+Re.x+", "+Re.y+")",width:0})},enter:function(Re){return $t({borderColor:We(Re),color:Re.color,height:Re.height,labelColor:ht(Re),labelOpacity:1},ln(Re.width,Re.height),{transform:"translate("+Re.x+", "+Re.y+")",width:Re.width})},update:function(Re){return $t({borderColor:We(Re),color:Re.color,height:Re.height,labelColor:ht(Re),labelOpacity:1},ln(Re.width,Re.height),{transform:"translate("+Re.x+", "+Re.y+")",width:Re.width})},leave:function(Re){return $t({borderColor:We(Re),color:Re.color,height:0,labelColor:ht(Re),labelOpacity:0},ln(Re.width,Re.height),{labelY:0,transform:"translate("+Re.x+", "+(Re.y+Re.height)+")",width:Re.width},c==="vertical"?{}:$t({},ln(Re.width,Re.height),{labelX:0,height:Re.height,transform:"translate("+Re.x+", "+Re.y+")",width:0}))},config:wt,immediate:!Ze,initial:Ze?void 0:null}),Rn=v.useMemo(function(){return{borderRadius:X,borderWidth:G,enableLabel:j,isInteractive:ke,labelSkipWidth:L,labelSkipHeight:P,onClick:pe,onMouseEnter:me,onMouseLeave:fe,getTooltipLabel:ze,tooltip:Me,isFocusable:mt,ariaLabel:ut,ariaLabelledBy:Rt,ariaDescribedBy:Xe,ariaHidden:Fe,ariaDisabled:Ye}},[X,G,j,ze,ke,P,L,pe,me,fe,Me,mt,ut,Rt,Xe,Fe,Ye]),ca=d1(V,$e,ee,{dataKey:"data",targetKey:"data.fill"}),Ct={annotations:null,axes:null,bars:null,grid:null,legends:null,markers:null,totals:null};$.includes("annotations")&&(Ct.annotations=b.jsx(gpe,{bars:$e,annotations:oe},"annotations")),$.includes("axes")&&(Ct.axes=b.jsx(vT,{xScale:St,yScale:on,width:Wt,height:fn,top:p,right:m,bottom:y,left:w},"axes")),$.includes("bars")&&(Ct.bars=b.jsx(v.Fragment,{children:cn(function(Re,Rr){return v.createElement(R,$t({},Rn,{bar:Rr,style:Re,shouldRenderLabel:Dt(Rr),label:Gt(Rr.data)}))})},"bars")),$.includes("grid")&&(Ct.grid=b.jsx(bT,{width:Wt,height:fn,xScale:x?St:null,yScale:E?on:null,xValues:k,yValues:T},"grid")),$.includes("legends")&&(Ct.legends=b.jsx(vpe,{width:Wt,height:fn,legends:Qe,toggleSerie:Tt},"legends")),$.includes("markers")&&(Ct.markers=b.jsx(W5,{markers:ne,width:Wt,height:fn,xScale:St,yScale:on},"markers")),$.includes("totals")&&tt&&(Ct.totals=b.jsx(jpe,{data:kt,springConfig:wt,animate:Ze,layout:c},"totals"));var ua=$t({},Rn,{margin:Bt,width:o,height:s,innerWidth:Wt,innerHeight:fn,bars:$e,legendData:Qe,enableLabel:j,xScale:St,yScale:on,tooltip:Me,getTooltipLabel:ze,onClick:pe,onMouseEnter:me,onMouseLeave:fe,getColor:yr});return b.jsx(jh,{width:bt,height:en,margin:Bt,defs:ca,role:xt,ariaLabel:Te,ariaLabelledBy:Ie,ariaDescribedBy:at,isFocusable:mt,ref:Le,children:$.map(function(Re,Rr){var da;return typeof Re=="function"?b.jsx(v.Fragment,{children:v.createElement(Re,ua)},Rr):(da=Ct==null?void 0:Ct[Re])!=null?da:null})})},Lpe=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?Ut.isInteractive:n,i=e.animate,a=i===void 0?Ut.animate:i,o=e.motionConfig,s=o===void 0?Ut.motionConfig:o,l=e.theme,c=e.renderWrapper,u=la(e,Npe);return b.jsx(mo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(Ppe,$t({},u,{isInteractive:r,forwardedRef:t}))})}),Fpe=["isInteractive","renderWrapper","theme"],tm=function(e,t,n,r){return e.find(function(i){return Y5(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},Bpe=function(e){var t,n=e.data,r=e.indexBy,i=e.keys,a=e.margin,o=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,y=g===void 0?un.axisBottom:g,_=e.axisLeft,w=_===void 0?un.axisLeft:_,C=e.enableGridX,x=C===void 0?un.enableGridX:C,S=e.enableGridY,E=S===void 0?un.enableGridY:S,k=e.gridXValues,T=e.gridYValues,D=e.labelPosition,$=D===void 0?un.labelPosition:D,M=e.labelOffset,R=M===void 0?un.labelOffset:M,I=e.layers,j=I===void 0?un.layers:I,A=e.renderBar,O=A===void 0?un.renderBar:A,L=e.enableLabel,F=L===void 0?un.enableLabel:L,P=e.label,W=e.labelSkipWidth,H=W===void 0?un.labelSkipWidth:W,q=e.labelSkipHeight,Z=q===void 0?un.labelSkipHeight:q,K=e.labelTextColor,te=e.colorBy,ne=e.colors,U=e.borderRadius,B=U===void 0?un.borderRadius:U,z=e.borderWidth,V=z===void 0?un.borderWidth:z,N=e.borderColor,ee=e.annotations,Q=ee===void 0?un.annotations:ee,X=e.legendLabel,se=e.tooltipLabel,G=e.valueFormat,J=e.isInteractive,ie=J===void 0?un.isInteractive:J,oe=e.tooltip,be=oe===void 0?un.tooltip:oe,ce=e.onClick,ue=e.onMouseEnter,Ce=e.onMouseLeave,ke=e.legends,ye=e.pixelRatio,Me=ye===void 0?un.pixelRatio:ye,pe=e.role,me=e.forwardedRef,fe=e.enableTotals,je=fe===void 0?un.enableTotals:fe,qe=e.totalsOffset,xt=qe===void 0?un.totalsOffset:qe,Te=v.useRef(null),Ie=Ft(),at=vo(o,s,a),He=at.margin,mt=at.innerWidth,ut=at.innerHeight,Rt=at.outerWidth,Xe=at.outerHeight,Fe=FT({indexBy:r,label:P,tooltipLabel:se,valueFormat:G,colors:ne,colorBy:te,borderColor:N,labelTextColor:K,groupMode:l,layout:c,data:n,keys:i,margin:He,width:mt,height:ut,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:F,labelSkipWidth:H,labelSkipHeight:Z,legends:ke,legendLabel:X,totalsOffset:xt}),Ye=Fe.bars,et=Fe.barsWithValue,Be=Fe.xScale,tt=Fe.yScale,vt=Fe.getLabel,ot=Fe.getTooltipLabel,Le=Fe.getBorderColor,Oe=Fe.getLabelColor,Ze=Fe.shouldRenderBarLabel,wt=Fe.legendsWithData,nt=Fe.barTotals,bt=Fe.getColor,en=Ei(),Bt=en.showTooltipFromEvent,Wt=en.hideTooltip,fn=spe({annotations:RT({data:Ye,annotations:Q,getPosition:function(ze){return{x:ze.x,y:ze.y}},getDimensions:function(ze){var We=ze.width,ht=ze.height;return{width:We,height:ht,size:Math.max(We,ht)}}})}),Yt=v.useMemo(function(){return{borderRadius:B,borderWidth:V,isInteractive:ie,isFocusable:!1,labelSkipWidth:H,labelSkipHeight:Z,margin:He,width:o,height:s,innerWidth:mt,innerHeight:ut,bars:Ye,legendData:wt,enableLabel:F,xScale:Be,yScale:tt,tooltip:be,getTooltipLabel:ot,onClick:ce,onMouseEnter:ue,onMouseLeave:Ce,getColor:bt}},[B,V,ie,H,Z,He,o,s,mt,ut,Ye,wt,F,Be,tt,be,ot,ce,ue,Ce,bt]),$e=ys(G),Je=jT(c,(t=u==null?void 0:u.reverse)!=null&&t,$,R);v.useEffect(function(){if(Te.current){Te.current.width=Rt*Me,Te.current.height=Xe*Me;var ze=Te.current.getContext("2d");ze.scale(Me,Me),ze.fillStyle=Ie.background,ze.fillRect(0,0,Rt,Xe),ze.translate(He.left,He.top),j.forEach(function(We){We==="grid"?typeof Ie.grid.line.strokeWidth=="number"&&Ie.grid.line.strokeWidth>0&&(ze.lineWidth=Ie.grid.line.strokeWidth,ze.strokeStyle=Ie.grid.line.stroke,x&&zd(ze,{width:mt,height:ut,scale:Be,axis:"x",values:k}),E&&zd(ze,{width:mt,height:ut,scale:tt,axis:"y",values:T})):We==="axes"?yT(ze,{xScale:Be,yScale:tt,width:mt,height:ut,top:p,right:m,bottom:y,left:w,theme:Ie}):We==="bars"?(eo(ze,Ie.text),et.forEach(function(ht){O(ze,$t({bar:ht,borderColor:Le(ht),borderRadius:B,borderWidth:V,label:vt(ht.data),shouldRenderLabel:Ze(ht),labelStyle:$t({},Ie.labels.text,{fill:Oe(ht)})},Je(ht.width,ht.height)))})):We==="legends"?wt.forEach(function(ht){var Dt=ht[0],Tt=ht[1];v1(ze,$t({},Dt,{data:Tt,containerWidth:mt,containerHeight:ut,theme:Ie}))}):We==="annotations"?ppe(ze,{annotations:fn,theme:Ie}):We==="totals"&&je?function(ht,Dt,Tt,Qe){Qe===void 0&&(Qe=un.layout),eo(ht,Tt.labels.text),ht.textBaseline=Qe==="vertical"?"alphabetic":"middle",ht.textAlign=Qe==="vertical"?"center":"start",Dt.forEach(function(kt){to(ht,Tt.labels.text,kt.formattedValue,kt.x,kt.y)})}(ze,nt,Ie,c):typeof We=="function"&&We(ze,Yt)}),ze.save()}},[y,w,m,p,et,B,V,fn,x,E,Le,vt,Oe,k,T,l,s,ut,mt,Yt,j,c,wt,He.left,He.top,Xe,Rt,Me,O,Be,tt,Ze,Ie,o,nt,je,$e,Je]);var St=v.useCallback(function(ze){if(Ye&&Te.current){var We=Jo(Te.current,ze),ht=We[0],Dt=We[1],Tt=tm(Ye,He,ht,Dt);Tt!==void 0?(Bt(v.createElement(be,$t({},Tt.data,{color:Tt.color,label:Tt.label,value:Number(Tt.data.value)})),ze),ze.type==="mouseenter"&&(ue==null||ue(Tt.data,ze))):Wt()}},[Wt,He,ue,Ye,Bt,be]),on=v.useCallback(function(ze){if(Ye&&Te.current){Wt();var We=Jo(Te.current,ze),ht=We[0],Dt=We[1],Tt=tm(Ye,He,ht,Dt);Tt&&(Ce==null||Ce(Tt.data,ze))}},[Wt,He,Ce,Ye]),Gt=v.useCallback(function(ze){if(Ye&&Te.current){var We=Jo(Te.current,ze),ht=We[0],Dt=We[1],Tt=tm(Ye,He,ht,Dt);Tt!==void 0&&(ce==null||ce($t({},Tt.data,{color:Tt.color}),ze))}},[He,ce,Ye]);return b.jsx("canvas",{ref:f1(Te,me),width:Rt*Me,height:Xe*Me,style:{width:Rt,height:Xe,cursor:ie?"auto":"normal"},onMouseEnter:ie?St:void 0,onMouseMove:ie?St:void 0,onMouseLeave:ie?on:void 0,onClick:ie?Gt:void 0,role:pe})},zpe=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=la(e,Fpe);return b.jsx(mo,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(Bpe,$t({},a,{isInteractive:n,forwardedRef:t}))})}),Wpe=["defaultWidth","defaultHeight","onResize","debounceResize"],Upe=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=la(e,Wpe);return b.jsx(go,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(Lpe,$t({},o,{width:l,height:c,ref:t}))}})}),Hpe=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=la(e,Hpe);return b.jsx(go,{defaultWidth:n,defaultHeight:r,onResize:i,debounceResize:a,children:function(s){var l=s.width,c=s.height;return b.jsx(zpe,$t({},o,{width:l,height:c,ref:t}))}})});exports.AbortError=Rm;exports.AbstractModalHeader=o0;exports.AggregateErrors=dD;exports.Alert=K0;exports.ApiWebSocketContext=MD;exports.ApprovalState=u7;exports.Arg=Fu;exports.AuthContext=af;exports.Backdrop=Q3;exports.BaseModal=q_;exports.BootstrapModalManager=Y_;exports.Button=Wg;exports.CheckInput=PC;exports.Col=Ug;exports.ConfirmContext=m4;exports.ConsoleLogger=Dm;exports.ContextButton=gf;exports.CustomSelectInput=FC;exports.CustomSelectInput$1=Nm;exports.DelegationContext=k4;exports.DisabledTransportError=lD;exports.Documents=yz;exports.Dropdown=A0;exports.Dropdown$1=as;exports.DropdownDivider=Pm;exports.DropdownItem=Ma;exports.DropdownPicker=BC;exports.DropdownToggle=O0;exports.ENTERED=Fi;exports.ENTERING=ci;exports.EXITED=Pi;exports.EXITING=Yu;exports.FaMinus=tI;exports.FaPlus=nI;exports.FaSearch=rI;exports.Fade=Zi;exports.FailedToNegotiateWithServerError=uD;exports.FailedToStartTransportError=cD;exports.Fe=c7;exports.FileExtensionIcon=U3;exports.FloatingLabelInput=$s;exports.Form=Kn;exports.FormCheckInput=ef;exports.FormControl=D_;exports.FormDisabledContext=DC;exports.FormSelect=e0;exports.HelmetContext=RC;exports.HookFormCheckInput=ZC;exports.HookFormNumericTextInput=KC;exports.HookFormSelectInput=$0;exports.HookFormTextAreaInput=E0;exports.HookFormTextInput=La;exports.HtmlTooltip=R4;exports.HttpError=aD;exports.HubConnection=C0;exports.IconButton=sa;exports.InputAnchorContainer=vf;exports.InvalidFeedback=oo;exports.ListGroup=H_;exports.ListGroupItem=tf;exports.LoadingContext=Oc;exports.LoginState=T4;exports.LuminusComponentsContext=Qt;exports.MdCheck=J8;exports.MdCircle=X8;exports.MdClear=Ss;exports.MdOutlineAddCircleOutline=lO;exports.MdOutlineArrowOutward=Q8;exports.MdOutlineCallMade=oO;exports.MdOutlineCameraAlt=pO;exports.MdOutlineChevronRight=vO;exports.MdOutlineClose=h4;exports.MdOutlineDelete=d4;exports.MdOutlineEdit=f4;exports.MdOutlineExpand=tO;exports.MdOutlineFileUpload=dO;exports.MdOutlineKeyboardArrowLeft=fO;exports.MdOutlineKeyboardArrowRight=hO;exports.MdOutlineMenu=bO;exports.MdOutlineMessage=sO;exports.MdOutlinePhotoLibrary=mO;exports.MdOutlineSource=rO;exports.MdOutlineStar=wO;exports.MdOutlineSubdirectoryArrowRight=xO;exports.MdSave=K8;exports.MdSaveAs=Z8;exports.MdSearch=G8;exports.Me=Lue;exports.MiniDetailWrapper=bf;exports.Modal=Vn;exports.ModalContext=i0;exports.NoInputContainer=T0;exports.NullLogger=dd;exports.NumericFormat=GC;exports.OverlayTrigger=l4;exports.PageContainer=Uz;exports.PiPushPinBold=zB;exports.PiPushPinSlashBold=WB;exports.Platform=kr;exports.PrimaryButton=Ya;exports.PromptContext=g4;exports.PropTypes=we;exports.ResponsiveContextDropdown=J3;exports.ResponsiveContextDropdownItem=q0;exports.RowLabelInput=ki;exports.ShortcutLinksContext=$W;exports.SideContentBar=H3;exports.SimpleDropdownToggle=M0;exports.SimplePicker=kf;exports.SimpleTooltip=d0;exports.Spinner=l0;exports.TextInput=LC;exports.TextMessageFormat=ur;exports.TimeoutError=oD;exports.Tooltip=o4;exports.TransitionWrapper=Pg;exports.Typography=mn;exports.UnsupportedTransportError=sD;exports.UserContext=u0;exports.Xe=Upe;exports.ZodIssueCode=ge;exports.a=Y0;exports.addLeadingZeros=Lt;exports.addMilliseconds=ww;exports.arrayType=SC;exports.atobUtf8=I4;exports.axios=Jt;exports.buildEmployeeNameString=$7;exports.buildOrgUnitString=E7;exports.buildVehicleNameString=k7;exports.cancelToken=LR;exports.capitalizeFirstLetter=T7;exports.classNames=le;exports.classes=Im;exports.classes$1=XC;exports.compareDate=A7;exports.compareDateTime=R7;exports.compilerRuntimeExports=De;exports.constructFrom=bi;exports.context=Jd;exports.createLogger=mD;exports.differenceInCalendarDays=$w;exports.dist=G0;exports.divWithClassName=Lg;exports.extractErrorsFromBlobResponse=M4;exports.extractErrorsFromResponse=of;exports.extractFilename=F4;exports.extractPermissionsFromResponse=A4;exports.fixNameIdNulls=$4;exports.format=Dg;exports.formatDate=C7;exports.formatDateTime=S7;exports.formatFileSize=os;exports.generateApiPath=U4;exports.getChildRef=ws;exports.getDataDetail=IC;exports.getDateString=L7;exports.getDaysDifference=D7;exports.getFirstDayOfMonth=P4;exports.getFirstDayOfOffsetMonth=I7;exports.getFirstDayOfYear=N7;exports.getGlobalThis=wD;exports.getLastDayOfMonth=L4;exports.getLastDayOfOffsetMonth=j7;exports.getLastDayOfYear=P7;exports.getSharedManager=G_;exports.getTimezoneOffsetInMilliseconds=im;exports.getUserAgentHeader=jC;exports.hasOnlyNullValues=E4;exports.hookFormSetServerErrors=O4;exports.isArrayBuffer=hs;exports.isExtensionOpenable=z4;exports.isFileOpenable=B4;exports.isISODate=j4;exports.isISODateInValidRange=N4;exports.isLeavingWindowInSafari=QW;exports.isPast=Ow;exports.isPrimitive=nd;exports.isSafari=Z0;exports.isValidDate=O7;exports.joinStrings=f0;exports.makeDispatch=tU;exports.millisecondsInHour=Hd;exports.millisecondsInMinute=Ag;exports.millisecondsInWeek=Og;exports.msToStartOfNextDay=M7;exports.objectType=hi;exports.once=eS;exports.parseISO=Cc;exports.replaceNullValuesOnlyObjectsWithNulls=d7;exports.saveFile=rd;exports.saveFileFromResponse=z7;exports.secondsInDay=Rg;exports.secondsInHour=_w;exports.secondsInMinute=ok;exports.secondsInMonth=Sw;exports.secondsInQuarter=lk;exports.secondsInWeek=sk;exports.secondsInYear=Cw;exports.sendMessage=pD;exports.shortenText=_7;exports.startOfDay=rm;exports.startOfWeek=Qo;exports.stringContains=Cm;exports.stringSearchWithin=sf;exports.stringStartsWith=W4;exports.stringType=w0;exports.style=qi;exports.t=xf;exports.te=nse;exports.toDate=Ln;exports.transitionEndListener=zw;exports.triggerBrowserReflow=Ww;exports.trimIsoDate=ss;exports.truncateText=D4;exports.u=W3;exports.urlfyArray=_m;exports.useAuth=b0;exports.useAxios=jc;exports.useBootstrapBreakpoints=Iw;exports.useBootstrapMinBreakpoint=jw;exports.useBootstrapPrefix=gt;exports.useClickOutside=$C;exports.useClipboard=AC;exports.useCol=Xw;exports.useConfirm=y0;exports.useCookies=v0;exports.useEventCallback=Gi;exports.useFormControlType=_0;exports.useFormDisabledContext=ao;exports.useGetApiData=OC;exports.useIsomorphicEffect=Jg;exports.useKeyPress=MC;exports.useNotifications=hf;exports.usePermissions=EC;exports.usePrompt=v4;exports.useSwipeable=H0;exports.useWindowSize=Pc;exports.useZodSchemaTypes=mf;exports.z=bl;