react-luminus-components 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +349 -349
- package/dist/.vite/manifest.json +46 -46
- package/dist/{FormDisabledProvider-faatkj2d.js → FormDisabledProvider-9PRnBdWU.js} +4 -4
- package/dist/FormDisabledProvider-BC1rYj84.cjs +1 -0
- package/dist/{nivo-bar-Dvo_C4bb.js → ShortcutLinksContext-BY-R5-zs.js} +23256 -23256
- package/dist/ShortcutLinksContext-BrP3e2lp.cjs +293 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +77 -77
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +56 -56
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +76 -76
- package/dist/localStorageUtils-CVwJ9FKd.cjs +1 -0
- package/dist/localStorageUtils-TeLq8MHE.js +59 -0
- package/dist/main.cjs.js +7 -7
- package/dist/main.es.js +11620 -11620
- package/dist/models/texts/DocumentsTexts.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{useIsFormDirty-DrM6JmtY.js → useIsFormDirty-COyiQoVZ.js} +5 -5
- package/dist/useIsFormDirty-CXJBlN5Q.cjs +1 -0
- package/dist/{useLocalStorageState-CzdQutCi.js → useLocalStorageState-BC8nJ4qt.js} +1 -1
- package/dist/useLocalStorageState-DzGRXMpR.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +42 -42
- package/dist/variables.scss +165 -165
- package/package.json +128 -128
- package/dist/FormDisabledProvider-BmGT82vd.cjs +0 -1
- package/dist/localStorageUtils-CmHKDfSh.cjs +0 -1
- package/dist/localStorageUtils-Dm59KUwC.js +0 -48
- package/dist/nivo-bar-CYwXuVs2.cjs +0 -293
- package/dist/useIsFormDirty-C53Kh2XN.cjs +0 -1
- package/dist/useLocalStorageState-hUZJI1T5.cjs +0 -1
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
"use strict";const b=require("react/jsx-runtime"),v=require("react"),tk=require("@azure/msal-browser"),no=require("react-router"),k1=require("@azure/msal-react"),Un=require("react-dom"),At=require("react-hook-form");require("react-flexmonster");function nk(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 pe=nk(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 $1;function rk(){if($1)return Uh;$1=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 E1;function ik(){return E1||(E1=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=rk():nm.exports=ik();var Re=nm.exports,yw={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})()})(yw);var ak=yw.exports;const ce=an(ak);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 xw(e,t){const n=+Ln(e);return bi(e,n+t)}const ok=365.2425,Og=6048e5,sk=864e5,Ag=6e4,Hd=36e5,ww=3600,lk=60,Rg=ww*24,ck=Rg*7,_w=Rg*ok,Cw=_w/12,uk=Cw*3;function Sw(e,t){return xw(e,t*Hd)}let dk={};function Vd(){return dk}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 Tw(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 kw(e,t){const n=rm(e),r=rm(t),i=+n-im(n),a=+r-im(r);return Math.round((i-a)/sk)}function fk(e){const t=Tw(e),n=bi(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),qu(n)}function hk(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function pk(e){if(!hk(e)&&typeof e!="number")return!1;const t=Ln(e);return!isNaN(Number(t))}function mk(e){const t=Ln(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function gk(e){const t=Ln(e),n=bi(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const vk={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"}},bk=(e,t,n)=>{let r;const i=vk[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 yk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_k={date:Vh({formats:yk,defaultWidth:"full"}),time:Vh({formats:xk,defaultWidth:"full"}),dateTime:Vh({formats:wk,defaultWidth:"full"})},Ck={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sk=(e,t,n,r)=>Ck[e];function Ys(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 Tk={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kk={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},$k={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"]},Ek={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"]},Mk={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"}},Ok={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"}},Ak=(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"},Rk={ordinalNumber:Ak,era:Ys({values:Tk,defaultWidth:"wide"}),quarter:Ys({values:kk,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ys({values:$k,defaultWidth:"wide"}),day:Ys({values:Ek,defaultWidth:"wide"}),dayPeriod:Ys({values:Mk,defaultWidth:"wide",formattingValues:Ok,defaultFormattingWidth:"wide"})};function Gs(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)?Ik(s,d=>d.test(o)):Dk(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 Dk(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Ik(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function jk(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 Nk=/^(\d+)(th|st|nd|rd)?/i,Pk=/\d+/i,Lk={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},Fk={any:[/^b/i,/^(a|c)/i]},Bk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zk={any:[/1/i,/2/i,/3/i,/4/i]},Wk={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},Uk={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]},Hk={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Vk={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qk={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},Yk={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}},Gk={ordinalNumber:jk({matchPattern:Nk,parsePattern:Pk,valueCallback:e=>parseInt(e,10)}),era:Gs({matchPatterns:Lk,defaultMatchWidth:"wide",parsePatterns:Fk,defaultParseWidth:"any"}),quarter:Gs({matchPatterns:Bk,defaultMatchWidth:"wide",parsePatterns:zk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Gs({matchPatterns:Wk,defaultMatchWidth:"wide",parsePatterns:Uk,defaultParseWidth:"any"}),day:Gs({matchPatterns:Hk,defaultMatchWidth:"wide",parsePatterns:Vk,defaultParseWidth:"any"}),dayPeriod:Gs({matchPatterns:qk,defaultMatchWidth:"any",parsePatterns:Yk,defaultParseWidth:"any"})},Zk={code:"en-US",formatDistance:bk,formatLong:_k,formatRelative:Sk,localize:Rk,match:Gk,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Kk(e){const t=Ln(e);return kw(t,gk(t))+1}function Xk(e){const t=Ln(e),n=+qu(t)-+fk(t);return Math.round(n/Og)+1}function $w(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 Jk(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=$w(e,t),a=bi(e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Qo(a,t)}function Qk(e,t){const n=Ln(e),r=+Qo(n,t)-+Jk(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"},M1={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=$w(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=Tw(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=Qk(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Lt(i,t.length)},I:function(e,t,n){const r=Xk(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=Kk(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 A1(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 A1(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"+O1(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"+O1(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 O1(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 A1(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 R1=(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"})}},Ew=(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"})}},e$=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return R1(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}}",R1(r,t)).replace("{{time}}",Ew(i,t))},t$={p:Ew,P:e$},n$=/^D+$/,r$=/^Y+$/,i$=["D","DD","YY","YYYY"];function a$(e){return n$.test(e)}function o$(e){return r$.test(e)}function s$(e,t,n){const r=l$(e,t,n);if(console.warn(r),i$.includes(e))throw new RangeError(r)}function l$(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 c$=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d$=/^'([^]*?)'?$/,f$=/''/g,h$=/[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??Zk,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(!pk(s))throw new RangeError("Invalid time value");let l=t.match(u$).map(_=>{const w=_[0];if(w==="p"||w==="P"){const C=t$[w];return C(_,i.formatLong)}return _}).join("").match(c$).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const w=_[0];if(w==="'")return{isToken:!1,value:p$(_)};if(M1[w])return{isToken:!0,value:_};if(w.match(h$))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)&&o$(w)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&a$(w))&&s$(w,t,String(e));const C=M1[w[0]];return C(s,w,i.localize,c)}).join("")}function p$(e){const t=e.match(d$);return t?t[1].replace(f$,"'"):e}function Mw(e){return+Ln(e)<Date.now()}function Cc(e,t){const r=b$(e);let i;if(r.date){const l=y$(r.date,2);i=x$(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=w$(r.time),isNaN(o)))return new Date(NaN);if(r.timezone){if(s=_$(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+-].*)$/},m$=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,g$=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,v$=/^([+-])(\d{2})(?::?(\d{2}))?$/;function b$(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 y$(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 x$(e,t){if(t===null)return new Date(NaN);const n=e.match(m$);if(!n)return new Date(NaN);const r=!!n[4],i=Zs(n[1]),a=Zs(n[2])-1,o=Zs(n[3]),s=Zs(n[4]),l=Zs(n[5])-1;if(r)return $$(t,s,l)?C$(t,s,l):new Date(NaN);{const c=new Date(0);return!T$(t,a,o)||!k$(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function Zs(e){return e?parseInt(e):1}function w$(e){const t=e.match(g$);if(!t)return NaN;const n=qh(t[1]),r=qh(t[2]),i=qh(t[3]);return E$(n,r,i)?n*Hd+r*Ag+i*1e3:NaN}function qh(e){return e&&parseFloat(e.replace(",","."))||0}function _$(e){if(e==="Z")return 0;const t=e.match(v$);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return M$(r,i)?n*(r*Hd+i*Ag):NaN}function C$(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 S$=[31,null,31,30,31,30,31,31,30,31,30,31];function Ow(e){return e%400===0||e%4===0&&e%100!==0}function T$(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(S$[t]||(Ow(e)?29:28))}function k$(e,t){return t>=1&&t<=(Ow(e)?366:365)}function $$(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function E$(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function M$(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 Aw(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 O$=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}},A$=O$;const D1=an(A$);function I1(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function R$(e){var t=D$(e,"string");return typeof t=="symbol"?t:String(t)}function D$(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 Rw(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[I1(r)],s=a[r],l=Aw(a,[I1(r),r].map(R$)),c=t[r],u=Rw(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 I$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,om(e,t)}const j$=["xxl","xl","lg","md","sm","xs"],N$="xs",Sc=pe.createContext({prefixes:{},breakpoints:j$,minBreakpoint:N$}),{Consumer:Ype,Provider:Gpe}=Sc;function gt(e,t){const{prefixes:n}=v.useContext(Sc);return e||n[t]||t}function Dw(){const{breakpoints:e}=v.useContext(Sc);return e}function Iw(){const{minBreakpoint:e}=v.useContext(Sc);return e}function qd(){const{dir:e}=v.useContext(Sc);return e==="rtl"}function ys(e){return e&&e.ownerDocument||document}function P$(e){var t=ys(e);return t&&t.defaultView||window}function L$(e,t){return P$(e).getComputedStyle(e,t)}var F$=/([A-Z])/g;function B$(e){return e.replace(F$,"-$1").toLowerCase()}var z$=/^ms-/;function ou(e){return B$(e).replace(z$,"-ms-")}var W$=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function U$(e){return!!(e&&W$.test(e))}function qi(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(ou(t))||L$(e).getPropertyValue(ou(t));Object.keys(t).forEach(function(i){var a=t[i];!a&&a!==0?e.style.removeProperty(ou(i)):U$(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 j1;function H$(){if(j1)return It;j1=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 N1;function V$(){return N1||(N1=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 Z=Q&&Q.$$typeof;switch(Z){case s:case u:case p:case h:case o:return Z;default:return ee}}case n:return ee}}}var x=l,S=c,E=s,k=o,T=t,R=u,$=r,O=p,D=h,I=n,j=a,A=i,M=d,L=!1;function B(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 U(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 G(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 W(N){return C(N)===n}function F(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=R,jt.Fragment=$,jt.Lazy=O,jt.Memo=D,jt.Portal=I,jt.Profiler=j,jt.StrictMode=A,jt.Suspense=M,jt.isAsyncMode=B,jt.isConcurrentMode=P,jt.isContextConsumer=U,jt.isContextProvider=H,jt.isElement=q,jt.isForwardRef=G,jt.isFragment=K,jt.isLazy=te,jt.isMemo=ne,jt.isPortal=W,jt.isProfiler=F,jt.isStrictMode=z,jt.isSuspense=V,jt.isValidElementType=w,jt.typeOf=C}()),jt}var P1;function jw(){return P1||(P1=1,process.env.NODE_ENV==="production"?su.exports=H$():su.exports=V$()),su.exports}/*
|
|
40
|
-
object-assign
|
|
41
|
-
(c) Sindre Sorhus
|
|
42
|
-
@license MIT
|
|
43
|
-
*/var Yh,L1;function q$(){if(L1)return Yh;L1=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,F1;function jg(){if(F1)return Gh;F1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gh=e,Gh}var Zh,B1;function Nw(){return B1||(B1=1,Zh=Function.call.bind(Object.prototype.hasOwnProperty)),Zh}var Kh,z1;function Y$(){if(z1)return Kh;z1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=jg(),n={},r=Nw();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,W1;function G$(){if(W1)return Xh;W1=1;var e=jw(),t=q$(),n=jg(),r=Nw(),i=Y$(),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 U=P&&(c&&P[c]||P[u]);if(typeof U=="function")return U}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:R(),objectOf:k,oneOf:E,oneOfType:T,shape:O,exact:D};function p(P,U){return P===U?P!==0||1/P===1/U:P!==P&&U!==U}function m(P,U){this.message=P,this.data=U&&typeof U=="object"?U:{},this.stack=""}m.prototype=Error.prototype;function g(P){if(process.env.NODE_ENV!=="production")var U={},H=0;function q(K,te,ne,W,F,z,V){if(W=W||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=W+":"+ne;!U[ee]&&H<3&&(a("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+W+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[ee]=!0,H++)}}return te[ne]==null?K?te[ne]===null?new m("The "+F+" `"+z+"` is marked as required "+("in `"+W+"`, but its value is `null`.")):new m("The "+F+" `"+z+"` is marked as required in "+("`"+W+"`, but its value is `undefined`.")):null:P(te,ne,W,F,z)}var G=q.bind(null,!1);return G.isRequired=q.bind(null,!0),G}function y(P){function U(H,q,G,K,te,ne){var W=H[q],F=A(W);if(F!==P){var z=M(W);return new m("Invalid "+K+" `"+te+"` of type "+("`"+z+"` supplied to `"+G+"`, expected ")+("`"+P+"`."),{expectedType:P})}return null}return g(U)}function _(){return g(o)}function w(P){function U(H,q,G,K,te){if(typeof P!="function")return new m("Property `"+te+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var ne=H[q];if(!Array.isArray(ne)){var W=A(ne);return new m("Invalid "+K+" `"+te+"` of type "+("`"+W+"` supplied to `"+G+"`, expected an array."))}for(var F=0;F<ne.length;F++){var z=P(ne,F,G,K,te+"["+F+"]",n);if(z instanceof Error)return z}return null}return g(U)}function C(){function P(U,H,q,G,K){var te=U[H];if(!s(te)){var ne=A(te);return new m("Invalid "+G+" `"+K+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return g(P)}function x(){function P(U,H,q,G,K){var te=U[H];if(!e.isValidElementType(te)){var ne=A(te);return new m("Invalid "+G+" `"+K+"` of type "+("`"+ne+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return g(P)}function S(P){function U(H,q,G,K,te){if(!(H[q]instanceof P)){var ne=P.name||f,W=B(H[q]);return new m("Invalid "+K+" `"+te+"` of type "+("`"+W+"` supplied to `"+G+"`, expected ")+("instance of `"+ne+"`."))}return null}return g(U)}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 U(H,q,G,K,te){for(var ne=H[q],W=0;W<P.length;W++)if(p(ne,P[W]))return null;var F=JSON.stringify(P,function(V,N){var ee=M(N);return ee==="symbol"?String(N):N});return new m("Invalid "+K+" `"+te+"` of value `"+String(ne)+"` "+("supplied to `"+G+"`, expected one of "+F+"."))}return g(U)}function k(P){function U(H,q,G,K,te){if(typeof P!="function")return new m("Property `"+te+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var ne=H[q],W=A(ne);if(W!=="object")return new m("Invalid "+K+" `"+te+"` of type "+("`"+W+"` supplied to `"+G+"`, expected an object."));for(var F in ne)if(r(ne,F)){var z=P(ne,F,G,K,te+"."+F,n);if(z instanceof Error)return z}return null}return g(U)}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 U=0;U<P.length;U++){var H=P[U];if(typeof H!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(H)+" at index "+U+"."),o}function q(G,K,te,ne,W){for(var F=[],z=0;z<P.length;z++){var V=P[z],N=V(G,K,te,ne,W,n);if(N==null)return null;N.data&&r(N.data,"expectedType")&&F.push(N.data.expectedType)}var ee=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+ne+" `"+W+"` supplied to "+("`"+te+"`"+ee+"."))}return g(q)}function R(){function P(U,H,q,G,K){return I(U[H])?null:new m("Invalid "+G+" `"+K+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return g(P)}function $(P,U,H,q,G){return new m((P||"React class")+": "+U+" type `"+H+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function O(P){function U(H,q,G,K,te){var ne=H[q],W=A(ne);if(W!=="object")return new m("Invalid "+K+" `"+te+"` of type `"+W+"` "+("supplied to `"+G+"`, expected `object`."));for(var F in P){var z=P[F];if(typeof z!="function")return $(G,K,te,F,M(z));var V=z(ne,F,G,K,te+"."+F,n);if(V)return V}return null}return g(U)}function D(P){function U(H,q,G,K,te){var ne=H[q],W=A(ne);if(W!=="object")return new m("Invalid "+K+" `"+te+"` of type `"+W+"` "+("supplied to `"+G+"`, expected `object`."));var F=t({},H[q],P);for(var z in F){var V=P[z];if(r(P,z)&&typeof V!="function")return $(G,K,te,z,M(V));if(!V)return new m("Invalid "+K+" `"+te+"` key `"+z+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(H[q],null," ")+`
|
|
44
|
-
Valid keys: `+JSON.stringify(Object.keys(P),null," "));var N=V(ne,z,G,K,te+"."+z,n);if(N)return N}return null}return g(U)}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 U=d(P);if(U){var H=U.call(P),q;if(U!==P.entries){for(;!(q=H.next()).done;)if(!I(q.value))return!1}else for(;!(q=H.next()).done;){var G=q.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function j(P,U){return P==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function A(P){var U=typeof P;return Array.isArray(P)?"array":P instanceof RegExp?"object":j(U,P)?"symbol":U}function M(P){if(typeof P>"u"||P===null)return""+P;var U=A(P);if(U==="object"){if(P instanceof Date)return"date";if(P instanceof RegExp)return"regexp"}return U}function L(P){var U=M(P);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function B(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,U1;function Z$(){if(U1)return Jh;U1=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 K$=jw(),X$=!0;sm.exports=G$()(K$.isElement,X$)}else sm.exports=Z$()();var J$=sm.exports;const xe=an(J$),H1={disabled:!1};var Q$=process.env.NODE_ENV!=="production"?xe.oneOfType([xe.number,xe.shape({enter:xe.number,exit:xe.number,appear:xe.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&xe.oneOfType([xe.string,xe.shape({enter:xe.string,exit:xe.string,active:xe.string}),xe.shape({enter:xe.string,enterDone:xe.string,enterActive:xe.string,exit:xe.string,exitDone:xe.string,exitActive:xe.string})]);const Pw=v.createContext(null);var eE=function(t){return t.scrollTop},pl="unmounted",Pi="exited",ci="entering",Fi="entered",Yu="exiting",Ti=function(e){I$(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=pl:l=Pi,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===pl?{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&&eE(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pi&&this.setState({status:pl})},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||H1.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||H1.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===pl)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=Aw(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Pw.Provider,{value:null},typeof o=="function"?o(i,s):v.cloneElement(v.Children.only(o),s))},t}(v.Component);Ti.contextType=Pw;Ti.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:xe.shape({current:typeof Element>"u"?xe.any:function(e,t,n,r,i,a){var o=e[t];return xe.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:xe.oneOfType([xe.func.isRequired,xe.element.isRequired]).isRequired,in:xe.bool,mountOnEnter:xe.bool,unmountOnExit:xe.bool,appear:xe.bool,enter:xe.bool,exit:xe.bool,timeout:function(t){var n=Q$;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:xe.func,onEnter:xe.func,onEntering:xe.func,onEntered:xe.func,onExit:xe.func,onExiting:xe.func,onExited:xe.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=pl;Ti.EXITED=Pi;Ti.ENTERING=ci;Ti.ENTERED=Fi;Ti.EXITING=Yu;function Lw(e){return e.code==="Escape"||e.keyCode===27}function tE(){const e=pe.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function xs(e){if(!e||typeof e=="function")return null;const{major:t}=tE();return t>=19?e.props.ref:e.ref}const ws=!!(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}};ws&&(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 nE(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 rE(e){var t=qi(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function iE(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||nE(e,"transitionend",!0)},t+n),a=fi(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),a()}}function Fw(e,t,n,r){n==null&&(n=rE(e)||0);var i=iE(e,n,r),a=fi(e,"transitionend",t);return function(){i(),a()}}function V1(e,t){const n=qi(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Bw(e,t){const n=V1(e,"transitionDuration"),r=V1(e,"transitionDelay"),i=Fw(e,a=>{a.target===e&&(i(),t(a))},n+r)}function zw(e){e.offsetHeight}const q1=e=>!e||typeof e=="function"?e:t=>{e.current=t};function aE(e,t){const n=q1(e),r=q1(t);return i=>{n&&n(i),r&&r(i)}}function ro(e,t){return v.useMemo(()=>aE(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 oE(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function Gi(e){const t=oE(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Lg=e=>pe.forwardRef((t,n)=>b.jsx("div",{...t,ref:n,className:ce(t.className,e)})),Ww=Lg("h4");Ww.displayName="DivStyledAsH4";const Uw=pe.forwardRef(({className:e,bsPrefix:t,as:n=Ww,...r},i)=>(t=gt(t,"alert-heading"),b.jsx(n,{ref:i,className:ce(e,t),...r})));Uw.displayName="AlertHeading";function dm(){return v.useState(null)}function sE(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t}function Cn(e){const t=sE(e);return v.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function lE(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 Hw(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Vw(e){const t=v.useRef(null);return v.useEffect(()=>{t.current=e}),t.current}const cE=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",uE=typeof document<"u",Y1=uE||cE?v.useLayoutEffect:v.useEffect,dE=["as","disabled"];function fE(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 hE(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"&&hE(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=pe.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=fE(e,dE);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 pE=["onKeyDown"];function mE(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 gE(e){return!e||e.trim()==="#"}const zg=pe.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=mE(e,pE);const[i]=Fg(Object.assign({tagName:"a"},r)),a=Cn(o=>{i.onKeyDown(o),n==null||n(o)});return gE(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 qw=pe.forwardRef(({className:e,bsPrefix:t,as:n=zg,...r},i)=>(t=gt(t,"alert-link"),b.jsx(n,{ref:i,className:ce(e,t),...r})));qw.displayName="AlertLink";const vE={[ci]:"show",[Fi]:"show"},Zi=pe.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)=>{zw(l),r==null||r(l,c)},[r]);return b.jsx(Pg,{ref:a,addEndListener:Bw,...o,onEnter:s,childRef:xs(t),children:(l,c)=>pe.cloneElement(t,{...c,className:ce("fade",e,t.props.className,vE[l],n[l])})})});Zi.displayName="Fade";const bE={"aria-label":xe.string,onClick:xe.func,variant:xe.oneOf(["white"])},Yd=pe.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>b.jsx("button",{ref:i,type:"button",className:ce("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Yd.displayName="CloseButton";Yd.propTypes=bE;const Yw=pe.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:ce(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});Yw.displayName="Alert";const yE=Object.assign(Yw,{Link:qw,Heading:Uw}),Wg=pe.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:ce(o,c,i&&"active",n&&`${c}-${n}`,r&&`${c}-${r}`,s.href&&a&&"disabled")})});Wg.displayName="Button";function xE(){const e=v.useRef(!0),t=v.useRef(()=>e.current);return v.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function wE(e){const t=v.useRef(e);return t.current=e,t}function Gw(e){const t=wE(e);v.useEffect(()=>()=>t.current(),[])}const fm=2**31-1;function Zw(e,t,n){const r=n-Date.now();e.current=r<=fm?setTimeout(t,r):setTimeout(()=>Zw(e,t,n),fm)}function _E(){const e=xE(),t=v.useRef();return Gw(()=>clearTimeout(t.current)),v.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,a=0){e()&&(n(),a<=fm?t.current=setTimeout(i,a):Zw(t,i,Date.now()+a))}return{set:r,clear:n,handleRef:t}},[])}function CE(e,t){return pe.Children.toArray(e).some(n=>pe.isValidElement(n)&&n.type===t)}function Kw({as:e,bsPrefix:t,className:n,...r}){t=gt(t,"col");const i=Dw(),a=Iw(),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:ce(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const Ug=pe.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:a,spans:o}]=Kw(e);return b.jsx(i,{...r,ref:t,className:ce(n,!o.length&&a)})});Ug.displayName="Col";var SE=Function.prototype.bind.call(Function.prototype.call,[].slice);function ui(e,t){return SE(e.querySelectorAll(t))}function TE(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 Xw(){const[,e]=v.useReducer(t=>t+1,0);return e}const Gd=pe.createContext(null);var G1=Object.prototype.hasOwnProperty;function Z1(e,t,n){for(n of e.keys())if(xl(n,t))return n}function xl(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--&&xl(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=Z1(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=Z1(t,i),!i)||!xl(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(G1.call(e,n)&&++r&&!G1.call(t,n)||!(n in t)||!xl(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function kE(e){const t=Hw();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",Al="end",$E="clippingParents",Jw="viewport",Ks="popper",EE="reference",K1=Tc.reduce(function(e,t){return e.concat([t+"-"+es,t+"-"+Al])},[]),Qw=[].concat(Tc,[Hg]).reduce(function(e,t){return e.concat([t,t+"-"+es,t+"-"+Al])},[]),ME="beforeRead",OE="read",AE="afterRead",RE="beforeMain",DE="main",IE="afterMain",jE="beforeWrite",NE="write",PE="afterWrite",LE=[ME,OE,AE,RE,DE,IE,jE,NE,PE];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 e_(){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=!e_()&&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 t_(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 FE(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 X1(e){return!Br(e)||yi(e).position==="fixed"?null:e.offsetParent}function BE(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=X1(e);n&&FE(n)&&yi(n).position==="static";)n=X1(n);return n&&(Ki(n)==="html"||Ki(n)==="body"&&yi(n).position==="static")?t:n||BE(e)||t}function Yg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wl(e,t,n){return ja(e,Zu(t,n))}function zE(e,t,n){var r=wl(e,t,n);return r>n?n:r}function n_(){return{top:0,right:0,bottom:0,left:0}}function r_(e){return Object.assign({},n_(),e)}function i_(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var WE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,r_(typeof t!="number"?t:i_(t,Tc))};function UE(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=WE(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=wl(C,S,x),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-S,t)}}function HE(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)||t_(t.elements.popper,i)&&(t.elements.arrow=i))}const VE={name:"arrow",enabled:!0,phase:"main",fn:UE,effect:HE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rs(e){return e.split("-")[1]}var qE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YE(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 J1(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===Al){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===Al){w=mr;var R=d&&S===x&&x.visualViewport?x.visualViewport.width:S[k];h-=R-r.width,h*=l?1:-1}}var $=Object.assign({position:s},c&&qE),O=u===!0?YE({x:h,y:m},nr(n)):{x:h,y:m};if(h=O.x,m=O.y,l){var D;return Object.assign({},$,(D={},D[C]=_?"0":"",D[w]=y?"0":"",D.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",D))}return Object.assign({},$,(t={},t[C]=_?m+"px":"",t[w]=y?h+"px":"",t.transform="",t))}function GE(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,J1(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,J1(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 ZE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:GE,data:{}};var lu={passive:!0};function KE(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 XE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KE,data:{}};var JE={left:"right",right:"left",bottom:"top",top:"bottom"};function Au(e){return e.replace(/left|right|bottom|top/g,function(t){return JE[t]})}var QE={start:"end",end:"start"};function Q1(e){return e.replace(/start|end/g,function(t){return QE[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 eM(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=e_();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Zg(e),y:l}}function tM(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 a_(e){return["html","body","#document"].indexOf(Ki(e))>=0?e.ownerDocument.body:Br(e)&&Kg(e)?e:a_(Zd(e))}function _l(e,t){var n;t===void 0&&(t=[]);var r=a_(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(_l(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 nM(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 eb(e,t,n){return t===Jw?pm(eM(e,n)):Wa(t)?nM(t,n):pm(tM(aa(e)))}function rM(e){var t=_l(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)&&t_(i,r)&&Ki(i)!=="body"}):[]}function iM(e,t,n,r){var i=t==="clippingParents"?rM(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=eb(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},eb(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 o_(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 Al:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function Rl(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?$E:s,c=n.rootBoundary,u=c===void 0?Jw:c,d=n.elementContext,f=d===void 0?Ks:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,y=r_(typeof g!="number"?g:i_(g,Tc)),_=f===Ks?EE:Ks,w=e.rects.popper,C=e.elements[p?_:f],x=iM(Wa(C)?C:C.contextElement||aa(e.elements.popper),l,u,o),S=ns(e.elements.reference),E=o_({reference:S,element:w,placement:i}),k=pm(Object.assign({},w,E)),T=f===Ks?k:S,R={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===Ks&&$){var O=$[i];Object.keys(R).forEach(function(D){var I=[mr,pr].indexOf(D)>=0?1:-1,j=[qn,pr].indexOf(D)>=0?"y":"x";R[D]+=O[j]*I})}return R}function aM(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?Qw:l,u=rs(r),d=u?s?K1:K1.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]=Rl(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 oM(e){if(Fr(e)===Hg)return[];var t=Au(e);return[Q1(e),t,Q1(t)]}function sM(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)]:oM(g)),C=[g].concat(w).reduce(function(G,K){return G.concat(Fr(K)===Hg?aM(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],R=0;R<C.length;R++){var $=C[R],O=Fr($),D=rs($)===es,I=[qn,pr].indexOf(O)>=0,j=I?"width":"height",A=Rl(t,{placement:$,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),M=I?D?mr:Yn:D?pr:qn;x[j]>S[j]&&(M=Au(M));var L=Au(M),B=[];if(a&&B.push(A[O]<=0),s&&B.push(A[M]<=0,A[L]<=0),B.every(function(G){return G})){T=$,k=!1;break}E.set($,B)}if(k)for(var P=p?3:1,U=function(K){var te=C.find(function(ne){var W=E.get(ne);if(W)return W.slice(0,K).every(function(F){return F})});if(te)return T=te,"break"},H=P;H>0;H--){var q=U(H);if(q==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const lM={name:"flip",enabled:!0,phase:"main",fn:sM,requiresIfExists:["offset"],data:{_skip:!1}};function tb(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 nb(e){return[qn,mr,pr,Yn].some(function(t){return e[t]>=0})}function cM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Rl(t,{elementContext:"reference"}),s=Rl(t,{altBoundary:!0}),l=tb(o,r),c=tb(s,i,a),u=nb(l),d=nb(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 uM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cM};function dM(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 fM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Qw.reduce(function(u,d){return u[d]=dM(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 hM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fM};function pM(e){var t=e.state,n=e.name;t.modifiersData[n]=o_({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mM={name:"popperOffsets",enabled:!0,phase:"read",fn:pM,data:{}};function gM(e){return e==="x"?"y":"x"}function vM(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=Rl(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Fr(t.placement),_=rs(t.placement),w=!_,C=Yg(y),x=gM(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,R=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var D,I=C==="y"?qn:Yn,j=C==="y"?pr:mr,A=C==="y"?"height":"width",M=S[C],L=M+g[I],B=M-g[j],P=h?-k[A]/2:0,U=_===es?E[A]:k[A],H=_===es?-k[A]:-E[A],q=t.elements.arrow,G=h&&q?qg(q):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:n_(),te=K[I],ne=K[j],W=wl(0,E[A],G[A]),F=w?E[A]/2-P-W-te-R.mainAxis:U-W-te-R.mainAxis,z=w?-E[A]/2+P+W+ne+R.mainAxis:H+W+ne+R.mainAxis,V=t.elements.arrow&&kc(t.elements.arrow),N=V?C==="y"?V.clientTop||0:V.clientLeft||0:0,ee=(D=$==null?void 0:$[C])!=null?D:0,Q=M+F-ee-N,Z=M+z-ee,se=wl(h?Zu(L,Q):L,M,h?ja(B,Z):B);S[C]=se,O[C]=se-M}if(s){var X,J=C==="x"?qn:Yn,ie=C==="x"?pr:mr,oe=S[x],ge=x==="y"?"height":"width",de=oe+g[J],ue=oe-g[ie],Se=[qn,Yn].indexOf(y)!==-1,le=(X=$==null?void 0:$[x])!=null?X:0,fe=Se?de:oe-E[ge]-k[ge]-le+R.altAxis,we=Se?oe+E[ge]+k[ge]-le-R.altAxis:ue,Ge=h&&Se?zE(fe,oe,we):wl(h?fe:de,oe,h?we:ue);S[x]=Ge,O[x]=Ge-oe}t.modifiersData[r]=O}}const bM={name:"preventOverflow",enabled:!0,phase:"main",fn:vM,requiresIfExists:["offset"]};function yM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xM(e){return e===nr(e)||!Br(e)?Gg(e):yM(e)}function wM(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 _M(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&wM(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=xM(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 CM(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 SM(e){var t=CM(e);return LE.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function TM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kM(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 rb={placement:"bottom",modifiers:[],strategy:"absolute"};function ib(){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 $M(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?rb:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},rb,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)?_l(s):s.contextElement?_l(s.contextElement):[],popper:_l(l)};var w=SM(kM([].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(ib(_,w)){u.rects={reference:_M(_,kc(w),u.options.strategy==="fixed"),popper:qg(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var 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:TM(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!ib(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 EM=$M({defaultModifiers:[uM,mM,ZE,XE,hM,lM,bM,VE]}),MM=["enabled","placement","strategy","modifiers"];function OM(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 AM={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},RM={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)}}},DM=[];function s_(e,t,n={}){let{enabled:r=!0,placement:i="bottom",strategy:a="absolute",modifiers:o=DM}=n,s=OM(n,MM);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]=kE(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(()=>(xl(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,AM]})},[a,i,p,r,m]),v.useEffect(()=>{if(!(!r||e==null||t==null))return c.current=EM(e,t,Object.assign({},s,{placement:i,strategy:a,modifiers:[...m,RM,p]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,h(g=>Object.assign({},g,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),f}function Dl(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var IM=process.env.NODE_ENV!=="production",l_=function(){};if(IM){var jM=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{}};l_=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||jM.apply(null,[t].concat(n))}}var NM=l_;const io=an(NM),ab=()=>{};function PM(e){return e.button===0}function LM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ru=e=>e&&("current"in e?e.current:e),ob={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function c_(e,t=ab,{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||LM(c)||!PM(c)||!!Dl(u,c.target)||a.current,a.current=!1},[e]),s=Cn(c=>{const u=Ru(e);u&&Dl(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=ys(Ru(e)),f=d.defaultView||window;let h=(c=f.event)!=null?c:(u=f.parent)==null?void 0:u.event,p=null;ob[r]&&(p=fi(d,ob[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",ab))),()=>{p==null||p(),m(),g(),y.forEach(_=>_())}},[e,n,r,o,s,l])}function FM(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function BM(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function u_({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=FM(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:a?"fixed":l.strategy,modifiers:BM(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 zM=["children","usePopper"];function WM(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 UM=()=>{};function d_(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=s_(_,y,u_({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||UM,"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 c_(y,p,{clickTrigger:s,disabled:!h}),[C,x]}function f_(e){let{children:t,usePopper:n=!0}=e,r=WM(e,zM);const[i,a]=d_(Object.assign({},r,{usePopper:n}));return b.jsx(b.Fragment,{children:t(i,a)})}f_.displayName="DropdownMenu";const Ku={prefix:String(Math.round(Math.random()*1e10)),current:0},h_=v.createContext(Ku),HM=v.createContext(!1);let VM=!!(typeof window<"u"&&window.document&&window.document.createElement),ep=new WeakMap;function qM(e=!1){let t=v.useContext(h_),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 YM(e){let t=v.useContext(h_);t===Ku&&!VM&&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=qM(!!e),r=t===Ku&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function GM(e){let t=v.useId(),[n]=v.useState(QM()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Ku.prefix}`;return e||`${r}-${t}`}const ZM=typeof v.useId=="function"?GM:YM;function KM(){return!1}function XM(){return!0}function JM(e){return()=>{}}function QM(){return typeof v.useSyncExternalStore=="function"?v.useSyncExternalStore(JM,KM,XM):v.useContext(HM)}const p_=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},sb=()=>{};function m_(){const e=ZM(),{show:t=!1,toggle:n=sb,setToggle:r,menuElement:i}=v.useContext(Gd)||{},a=v.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||sb,onClick:a,"aria-expanded":!!t};return i&&p_(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function g_({children:e}){const[t,n]=m_();return b.jsx(b.Fragment,{children:e(t,n)})}g_.displayName="DropdownToggle";const is=pe.createContext(null),Il=(e,t=null)=>e!=null?String(e):t||null,Kd=pe.createContext(null);Kd.displayName="NavContext";const e8="data-rr-ui-",t8="rrUi";function _s(e){return`${e8}${e}`}function n8(e){return`${t8}${e}`}const r8=["eventKey","disabled","onClick","active","as"];function i8(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 v_({key:e,href:t,active:n,disabled:r,onClick:i}){const a=v.useContext(is),o=v.useContext(Kd),{activeKey:s}=o||{},l=Il(e,t),c=n==null&&e!=null?Il(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,[_s("dropdown-item")]:""},{isActive:c}]}const b_=pe.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:i,active:a,as:o=Bg}=e,s=i8(e,r8);const[l]=v_({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,Object.assign({},s,{ref:t},l))});b_.displayName="DropdownItem";const y_=v.createContext(ws?window:void 0);y_.Provider;function Xd(){return v.useContext(y_)}function lb(){const e=Xw(),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=`* [${_s("dropdown-item")}]`,focusFirstItemOnShow:a,placement:o="bottom-start",children:s}){const l=Xd(),[c,u]=TE(t,e,r),[d,f]=lb(),h=d.current,[p,m]=lb(),g=p.current,y=Vw(c),_=v.useRef(null),w=v.useRef(!1),C=v.useContext(is),x=v.useCallback(($,O,D=O==null?void 0:O.type)=>{u($,{originalEvent:O,source:D})},[u]),S=Cn(($,O)=>{n==null||n($,O),x(!1,O,"select"),O.isPropagationStopped()||C==null||C($,O)}),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 O=a;if(O==null&&(O=d.current&&p_(d.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test($))return;const D=ui(d.current,i)[0];D&&D.focus&&D.focus()});v.useEffect(()=>{c?T():w.current&&(w.current=!1,k())},[c,w,k,T]),v.useEffect(()=>{_.current=null});const R=($,O)=>{if(!d.current)return null;const D=ui(d.current,i);let I=D.indexOf($)+O;return I=Math.max(0,Math.min(I,D.length)),D[I]};return lE(v.useCallback(()=>l.document,[l]),"keydown",$=>{var O,D;const{key:I}=$,j=$.target,A=(O=d.current)==null?void 0:O.contains(j),M=(D=p.current)==null?void 0:D.contains(j);if(/input|textarea/i.test(j.tagName)&&(I===" "||I!=="Escape"&&A||I==="Escape"&&j.type==="search")||!A&&!M||I==="Tab"&&(!d.current||!c))return;_.current=$.type;const B={originalEvent:$,source:$.type};switch(I){case"ArrowUp":{const P=R(j,-1);P&&P.focus&&P.focus(),$.preventDefault();return}case"ArrowDown":if($.preventDefault(),!c)u(!0,B);else{const P=R(j,1);P&&P.focus&&P.focus()}return;case"Tab":Ng(j.ownerDocument,"keyup",P=>{var U;(P.key==="Tab"&&!P.target||!((U=d.current)!=null&&U.contains(P.target)))&&u(!1,B)},{once:!0});break;case"Escape":I==="Escape"&&($.preventDefault(),$.stopPropagation()),u(!1,B);break}}),b.jsx(is.Provider,{value:S,children:b.jsx(Gd.Provider,{value:E,children:s})})}$c.displayName="Dropdown";$c.Menu=f_;$c.Toggle=g_;$c.Item=b_;const Xg=pe.createContext({});Xg.displayName="DropdownContext";const x_=pe.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...i},a)=>(t=gt(t,"dropdown-divider"),b.jsx(n,{ref:a,className:ce(e,t),role:r,...i})));x_.displayName="DropdownDivider";const w_=pe.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...i},a)=>(t=gt(t,"dropdown-header"),b.jsx(n,{ref:a,className:ce(e,t),role:r,...i})));w_.displayName="DropdownHeader";const __=pe.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]=v_({key:n,href:s.href,disabled:r,onClick:i,active:a});return b.jsx(o,{...s,...u,ref:l,className:ce(t,c,d.isActive&&"active",r&&"disabled")})});__.displayName="DropdownItem";const C_=pe.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=gt(t,"dropdown-item-text"),b.jsx(n,{ref:i,className:ce(e,t),...r})));C_.displayName="DropdownItemText";const a8=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",o8=typeof document<"u",Jg=o8||a8?v.useLayoutEffect:v.useEffect,Jd=pe.createContext(null);Jd.displayName="InputGroupContext";const S_=pe.createContext(null);S_.displayName="NavbarContext";function T_(e,t){if(process.env.NODE_ENV==="production")return e;const n=v.useCallback(r=>{r==null||!r.isReactComponent||(process.env.NODE_ENV!=="production"?D1(!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`):D1(!1))},[t]);return ro(n,e)}function k_(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 $_=pe.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(S_),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 O=$[0],D=n[O];f=D==="start",w.push(`${p}-${O}-${D}`)}}else n==="end"&&(f=!0);const C=k_(f,g,y),[x,{hasShown:S,popper:E,show:k,toggle:T}]=d_({flip:i,rootCloseEvent:r,show:a,usePopper:!h&&w.length===0,offset:[0,2],popperConfig:l,placement:C});if(x.ref=ro(T_(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 R=u.style;return E!=null&&E.placement&&(R={...u.style,...x.style},u["x-placement"]=E.placement),b.jsx(s,{...u,...x,style:R,...(w.length||h)&&{"data-bs-popper":"static"},className:ce(t,p,k&&"show",f&&`${p}-end`,c&&`${p}-${c}`,...w)})});$_.displayName="DropdownMenu";const E_=pe.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]=m_();return c.ref=ro(c.ref,T_(o,"DropdownToggle")),b.jsx(i,{className:ce(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...c,...a})});E_.displayName="DropdownToggle";const M_=pe.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=k_(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:ce(a,i&&"show",S[r])})})})});M_.displayName="Dropdown";const as=Object.assign(M_,{Toggle:E_,Menu:$_,Item:__,ItemText:C_,Divider:x_,Header:w_}),s8={type:xe.string,tooltip:xe.bool,as:xe.elementType},Qd=pe.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},a)=>b.jsx(e,{...i,ref:a,className:ce(t,`${n}-${r?"tooltip":"feedback"}`)}));Qd.displayName="Feedback";Qd.propTypes=s8;const xi=pe.createContext({}),ef=pe.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:ce(n,t,i&&"is-valid",a&&"is-invalid")})});ef.displayName="FormCheckInput";const Xu=pe.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:ce(t,e)})});Xu.displayName="FormCheckLabel";const O_=pe.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||CE(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:ce(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})]})})})});O_.displayName="FormCheck";const Ju=Object.assign(O_,{Input:ef,Label:Xu}),A_=pe.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:ce(a,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",s&&"is-invalid")})});A_.displayName="FormControl";const R_=Object.assign(A_,{Feedback:Qd}),D_=pe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"form-floating"),b.jsx(n,{ref:i,className:ce(e,t),...r})));D_.displayName="FormFloating";const Qg=pe.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 I_=pe.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=ce(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})});I_.displayName="FormLabel";const j_=pe.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:ce(t,e),id:n||a})});j_.displayName="FormRange";const e0=pe.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:ce(r,e,t&&`${e}-${t}`,i&&"is-valid",a&&"is-invalid"),id:o||c})});e0.displayName="FormSelect";const N_=pe.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},a)=>(e=gt(e,"form-text"),b.jsx(n,{...i,ref:a,className:ce(t,e,r&&"text-muted")})));N_.displayName="FormText";const P_=pe.forwardRef((e,t)=>b.jsx(Ju,{...e,ref:t,type:"switch"}));P_.displayName="Switch";const l8=Object.assign(P_,{Input:Ju.Input,Label:Ju.Label}),t0=pe.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...a},o)=>(e=gt(e,"form-floating"),b.jsxs(Qg,{ref:o,className:ce(t,e),controlId:r,...a,children:[n,b.jsx("label",{htmlFor:r,children:i})]})));t0.displayName="FloatingLabel";const c8={_ref:xe.any,validated:xe.bool,as:xe.elementType},n0=pe.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>b.jsx(n,{...r,ref:i,className:ce(e,t&&"was-validated")}));n0.displayName="Form";n0.propTypes=c8;const Kn=Object.assign(n0,{Group:Qg,Control:R_,Floating:D_,Check:Ju,Switch:l8,Label:I_,Text:N_,Range:j_,Select:e0,FloatingLabel:t0}),cb=e=>!e||typeof e=="function"?e:t=>{e.current=t};function u8(e,t){const n=cb(e),r=cb(t);return i=>{n&&n(i),r&&r(i)}}function Ec(e,t){return v.useMemo(()=>u8(e,t),[e,t])}const L_=pe.createContext(null),d8=["as","active","eventKey"];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}function F_({key:e,onClick:t,active:n,id:r,role:i,disabled:a}){const o=v.useContext(is),s=v.useContext(Kd),l=v.useContext(L_);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[_s("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 B_=pe.forwardRef((e,t)=>{let{as:n=Bg,active:r,eventKey:i}=e,a=f8(e,d8);const[o,s]=F_(Object.assign({key:Il(i,a.href),active:r},a));return o[_s("active")]=s.isActive,b.jsx(n,Object.assign({},a,o,{ref:t}))});B_.displayName="NavItem";const h8=["as","onSelect","activeKey","role","onKeyDown"];function p8(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 ub=()=>{},db=_s("event-key"),z_=pe.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:a,onKeyDown:o}=e,s=p8(e,h8);const l=Xw(),c=v.useRef(!1),u=v.useContext(is),d=v.useContext(L_);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,`[${db}]: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[n8("EventKey")]||null,w),c.current=!0,l())};v.useEffect(()=>{if(p.current&&c.current){const w=p.current.querySelector(`[${db}][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:Il(i),getControlledId:f||ub,getControllerId:h||ub},children:b.jsx(n,Object.assign({},s,{onKeyDown:y,ref:_,role:a}))})})});z_.displayName="Nav";const m8=Object.assign(z_,{Item:B_}),tf=pe.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]=F_({key:Il(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:ce(i,e,d.isActive&&"active",n&&"disabled",a&&`${e}-${a}`,o&&`${e}-action`)})});tf.displayName="ListGroupItem";const W_=pe.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(m8,{ref:t,...l,as:s,className:ce(n,c,i&&`${c}-${i}`,u&&`${c}-${u}`,o&&`${c}-numbered`)})});W_.displayName="ListGroup";const U_=Object.assign(W_,{Item:tf});var cu;function fb(e){if((!cu&&cu!==0||e)&&ws){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 g8(){return v.useState(null)}function tp(e){e===void 0&&(e=ys());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function v8(e){const t=v.useRef(e);return t.current=e,t}function b8(e){const t=v8(e);v.useEffect(()=>()=>t.current(),[])}function y8(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const hb=_s("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 y8(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(hb,""),qi(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(hb),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)=>ws?e==null?(t||ys()).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 x8({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,xs(e)),c=v.cloneElement(e,{ref:l});return t?c:i||!o.current&&r?null:c}const w8=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function _8(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 C8(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:a,onExited:o,addEndListener:s,children:l}=e,c=_8(e,w8);const u=v.useRef(null),d=Ec(u,xs(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 S8=["component"];function T8(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 k8=pe.forwardRef((e,t)=>{let{component:n}=e,r=T8(e,S8);const i=C8(r);return b.jsx(n,Object.assign({ref:t},i))});function $8({in:e,onTransition:t}){const n=v.useRef(null),r=v.useRef(!0),i=Cn(t);return Y1(()=>{if(!n.current)return;let a=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>a}),()=>{a=!0}},[e,i]),Y1(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function E8({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[a,o]=v.useState(!t);t&&a&&o(!1);const s=$8({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,xs(e));return a&&!t?null:v.cloneElement(e,{ref:l})}function gm(e,t,n){return e?b.jsx(k8,Object.assign({},n,{component:e})):t?b.jsx(E8,Object.assign({},n,{transition:t})):b.jsx(x8,Object.assign({},n))}const M8=["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 O8(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 A8(e){return rp||(rp=new r0({ownerDocument:e==null?void 0:e.document})),rp}function R8(e){const t=Xd(),n=e||A8(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 H_=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=Z=>b.jsx("div",Object.assign({},Z)),manager:x,container:S,onShow:E,onHide:k=()=>{},onExit:T,onExited:R,onExiting:$,onEnter:O,onEntering:D,onEntered:I}=e,j=O8(e,M8);const A=Xd(),M=mm(S),L=R8(x),B=Hw(),P=Vw(n),[U,H]=v.useState(!n),q=v.useRef(null);v.useImperativeHandle(t,()=>L,[L]),ws&&!P&&n&&(q.current=tp(A==null?void 0:A.document)),n&&U&&H(!1);const G=Cn(()=>{if(L.add(),z.current=fi(document,"keydown",W),F.current=fi(document,"focus",()=>setTimeout(te),!0),E&&E(),m){var Z,se;const X=tp((Z=(se=L.dialog)==null?void 0:se.ownerDocument)!=null?Z:A==null?void 0:A.document);L.dialog&&X&&!Dl(L.dialog,X)&&(q.current=X,L.dialog.focus())}}),K=Cn(()=>{if(L.remove(),z.current==null||z.current(),F.current==null||F.current(),y){var Z;(Z=q.current)==null||Z.focus==null||Z.focus(_),q.current=null}});v.useEffect(()=>{!n||!M||G()},[n,M,G]),v.useEffect(()=>{U&&K()},[U,K]),b8(()=>{K()});const te=Cn(()=>{if(!g||!B()||!L.isTopModal())return;const Z=tp(A==null?void 0:A.document);L.dialog&&Z&&!Dl(L.dialog,Z)&&L.dialog.focus()}),ne=Cn(Z=>{Z.target===Z.currentTarget&&(c==null||c(Z),s===!0&&k())}),W=Cn(Z=>{l&&Lw(Z)&&L.isTopModal()&&(u==null||u(Z),Z.defaultPrevented||k())}),F=v.useRef(),z=v.useRef(),V=(...Z)=>{H(!0),R==null||R(...Z)};if(!M)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:pe.cloneElement(o,{role:"document"})}));ee=gm(d,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:T,onExiting:$,onExited:V,onEnter:O,onEntering:D,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]}),M)})});H_.displayName="Modal";const V_=Object.assign(H_,{Manager:r0});function vm(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function D8(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 pb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function I8(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=pb(e.className,t):e.setAttribute("class",pb(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 q_ 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(D8(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();I8(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 Y_(e){return ip||(ip=new q_(e)),ip}const G_=pe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-body"),b.jsx(n,{ref:i,className:ce(e,t),...r})));G_.displayName="ModalBody";const i0=pe.createContext({onHide(){}}),a0=pe.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:ce(u,t,i&&`${e}-${i}`,r&&`${u}-centered`,s&&`${u}-scrollable`,a&&d),children:b.jsx("div",{className:ce(`${e}-content`,n),children:o})})});a0.displayName="ModalDialog";const Z_=pe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"modal-footer"),b.jsx(n,{ref:i,className:ce(e,t),...r})));Z_.displayName="ModalFooter";const o0=pe.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 K_=pe.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:ce(t,e),closeLabel:n,closeButton:r})));K_.displayName="ModalHeader";const j8=Lg("h4"),X_=pe.forwardRef(({className:e,bsPrefix:t,as:n=j8,...r},i)=>(t=gt(t,"modal-title"),b.jsx(n,{ref:i,className:ce(e,t),...r})));X_.displayName="ModalTitle";function N8(e){return b.jsx(Zi,{...e,timeout:null})}function P8(e){return b.jsx(Zi,{...e,timeout:null})}const J_=pe.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:R,onEntering:$,onExited:O,backdropClassName:D,manager:I,...j},A)=>{const[M,L]=v.useState({}),[B,P]=v.useState(!1),U=v.useRef(!1),H=v.useRef(!1),q=v.useRef(null),[G,K]=g8(),te=ro(A,K),ne=Gi(y),W=qd();e=gt(e,"modal");const F=v.useMemo(()=>({onHide:ne}),[ne]);function z(){return I||Y_({isRTL:W})}function V(fe){if(!ws)return;const we=z().getScrollbarWidth()>0,Ge=fe.scrollHeight>ys(fe).documentElement.clientHeight;L({paddingRight:we&&!Ge?fb():void 0,paddingLeft:!we&&Ge?fb():void 0})}const N=Gi(()=>{G&&V(G.dialog)});Gw(()=>{um(window,"resize",N),q.current==null||q.current()});const ee=()=>{U.current=!0},Q=fe=>{U.current&&G&&fe.target===G.dialog&&(H.current=!0),U.current=!1},Z=()=>{P(!0),q.current=Fw(G.dialog,()=>{P(!1)})},se=fe=>{fe.target===fe.currentTarget&&Z()},X=fe=>{if(h==="static"){se(fe);return}if(H.current||fe.target!==fe.currentTarget){H.current=!1;return}y==null||y()},J=fe=>{p?m==null||m(fe):(fe.preventDefault(),h==="static"&&Z())},ie=(fe,we)=>{fe&&V(fe),R==null||R(fe,we)},oe=fe=>{q.current==null||q.current(),k==null||k(fe)},ge=(fe,we)=>{$==null||$(fe,we),Ng(window,"resize",N)},de=fe=>{fe&&(fe.style.display=""),O==null||O(fe),um(window,"resize",N)},ue=v.useCallback(fe=>b.jsx("div",{...fe,className:ce(`${e}-backdrop`,D,!f&&"show")}),[f,D,e]),Se={...n,...M};Se.display="block";const le=fe=>b.jsx("div",{role:"dialog",...fe,style:Se,className:ce(t,e,B&&`${e}-static`,!f&&"show"),onClick:h?X: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:F,children:b.jsx(V_,{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:ge,onEntered:E,onExit:oe,onExiting:T,onExited:de,manager:z(),transition:f?N8:void 0,backdropTransition:f?P8:void 0,renderBackdrop:ue,renderDialog:le})})});J_.displayName="Modal";const Vn=Object.assign(J_,{Body:G_,Header:K_,Title:X_,Footer:Z_,Dialog:a0,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),L8=()=>{};function F8(e,t,{disabled:n,clickTrigger:r}={}){const i=t||L8;c_(e,i,{disabled:n,clickTrigger:r});const a=Cn(o=>{Lw(o)&&i(o)});v.useEffect(()=>{if(n||e==null)return;const o=ys(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 Q_=pe.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),_=s_(m,c,u_({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(F8(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 R=e.children(Object.assign({},_.attributes.popper,{style:_.styles.popper,ref:h}),{popper:_,placement:i,show:!!e.show,arrowProps:Object.assign({},_.attributes.arrow,{style:_.styles.arrow,ref:f})});return R=gm(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:x,onExiting:S,onExited:w,onEnter:E,onEntering:k,onEntered:T}),p?Un.createPortal(R,p):null});Q_.displayName="Overlay";const e4=pe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-header"),b.jsx(n,{ref:i,className:ce(e,t),...r})));e4.displayName="PopoverHeader";const s0=pe.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=gt(t,"popover-body"),b.jsx(n,{ref:i,className:ce(e,t),...r})));s0.displayName="PopoverBody";function t4(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function n4(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const r4=pe.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=t4(p,h);let g=r;return c&&!s&&(g={...r,...n4(l==null?void 0:l.strategy)}),b.jsxs("div",{ref:d,role:"tooltip",style:g,"x-placement":p,className:ce(n,f,p&&`bs-popover-${m}`),...u,children:[b.jsx("div",{className:"popover-arrow",...o}),a?b.jsx(s0,{children:i}):i]})});r4.displayName="Popover";const Du=Object.assign(r4,{Header:e4,Body:s0,POPPER_OFFSET:[0,8]}),i4=pe.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=t4(f,d);let p=r;return l&&!o&&(p={...r,...n4(s==null?void 0:s.strategy)}),b.jsxs("div",{ref:u,style:p,role:"tooltip","x-placement":f,className:ce(n,e,`bs-tooltip-${h}`),...c,children:[b.jsx("div",{className:"tooltip-arrow",...a}),b.jsx("div",{className:`${e}-inner`,children:i})]})});i4.displayName="Tooltip";const a4=Object.assign(i4,{TOOLTIP_OFFSET:[0,6]});function B8(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 a4.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[i]]}function z8(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 o4=pe.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]=B8(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(Q_,{...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;z8(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}):pe.cloneElement(e,{...g,placement:x,arrowProps:y,popper:S,hasDoneInitialMeasure:E,className:ce(e.props.className,!t&&w&&"show"),style:{...e.props.style,...g.style}})}})});o4.displayName="Overlay";function W8(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function mb(e,t,n){const[r]=t,i=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];(!a||a!==i)&&!Dl(i,a)&&e(...t)}xe.oneOf(["click","hover","focus"]);const s4=({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,xs(n)),h=_E(),p=v.useRef(""),[m,g]=Rw(i,a,o),y=W8(s),{onFocus:_,onBlur:w,onClick:C}=typeof n!="function"?pe.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]),R=v.useCallback((...j)=>{g(!m),C==null||C(...j)},[C,g,m]),$=v.useCallback((...j)=>{mb(S,j,"fromElement")},[S]),O=v.useCallback((...j)=>{mb(E,j,"toElement")},[E]),D=e==null?[]:[].concat(e),I={ref:x};return D.indexOf("click")!==-1&&(I.onClick=R),D.indexOf("focus")!==-1&&(I.onFocus=k,I.onBlur=T),D.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&io(D.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=O),b.jsxs(b.Fragment,{children:[typeof n=="function"?n(I):v.cloneElement(n,I),b.jsx(o4,{...u,show:m,onHide:E,flip:c,placement:l,popperConfig:r,target:d.current,children:t})]})},l0=pe.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:ce(a,l,r&&`${l}-${r}`,t&&`text-${t}`)})});l0.displayName="Spinner";var l4={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gb=v.createContext&&v.createContext(l4),U8=["attr","size","title"];function H8(e,t){if(e==null)return{};var n=V8(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 V8(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 vb(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?vb(Object(n),!0).forEach(function(r){q8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q8(e,t,n){return t=Y8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y8(e){var t=G8(e,"string");return typeof t=="symbol"?t:t+""}function G8(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 c4(e){return e&&e.map((t,n)=>v.createElement(t.tag,ed({key:n},t.attr),c4(t.child)))}function it(e){return t=>v.createElement(Z8,Qu({attr:ed({},e.attr)},t),c4(e.child))}function Z8(e){var t=n=>{var{attr:r,size:i,title:a}=e,o=H8(e,U8),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 gb!==void 0?v.createElement(gb.Consumer,null,n=>t(n)):t(l4)}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:"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 Cs(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 X8(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 J8(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 Q8(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 eO(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 tO(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 nO(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 u4(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 rO(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 iO(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 aO(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 oO(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 sO(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 lO(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 cO(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 uO(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 dO(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 fO(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 hO(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 pO(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 mO(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 gO(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 d4(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 vO(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 bO(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 yO(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 f4(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 xO(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 h4(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 wO(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 _O(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 CO(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}),p4=v.createContext({show:!1,text:"",textSm:!1,showConfirm:(e,t)=>{},hideConfirm:()=>{}}),m4=v.createContext({isShown:!1,text:"",hidePrompt:()=>{},showPrompt:()=>{},resolveRef:{current:()=>{}},options:{input:"textarea",type:"text"},setOptions:()=>{}}),g4=()=>{const e=Re.c(12),{isShown:t,text:n,showPrompt:r,hidePrompt:i,resolveRef:a,setOptions:o}=v.useContext(m4);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 SO={data:""},TO=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||SO},kO=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,$O=/\/\*[^]*?\*\/| +/g,bb=/\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={},v4=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+v4(e[n]);return t}return e},EO=(e,t,n,r,i)=>{let a=v4(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=kO.exec(c.replace($O,""));)u[4]?f.shift():u[3]?(d=u[3].replace(bb," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(bb," ").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},MO=(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 EO(n.unshift?n.raw?MO(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,TO(t.target),t.g,t.o,t.k)}let b4,bm,ym;nf.bind({g:1});let wi=nf.bind({k:1});function OO(e,t,n,r){Bi.p=t,b4=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),b4(c,s)}return i}}var AO=e=>typeof e=="function",td=(e,t)=>AO(e)?e(t):e,RO=(()=>{let e=0;return()=>(++e).toString()})(),y4=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),DO=20,c0="default",x4=(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 x4(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=[],w4={toasts:[],pausedAt:void 0,settings:{toastLimit:DO}},Lr={},_4=(e,t=c0)=>{Lr[t]=x4(Lr[t]||w4,e),Iu.forEach(([n,r])=>{n===t&&r(Lr[t])})},C4=e=>Object.keys(Lr).forEach(t=>_4(e,t)),IO=e=>Object.keys(Lr).find(t=>Lr[t].toasts.some(n=>n.id===e)),rf=(e=c0)=>t=>{_4(t,e)},jO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},NO=(e={},t=c0)=>{let[n,r]=v.useState(Lr[t]||w4),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)||jO[o.type],style:{...e.style,...(c=e[o.type])==null?void 0:c.style,...o.style}}});return{...n,toasts:a}},PO=(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)||RO()}),Mc=e=>(t,n)=>{let r=PO(t,e,n);return rf(r.toasterId||IO(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):C4(n)};pn.dismissAll=e=>pn.dismiss(void 0,e);pn.remove=(e,t)=>{let n={type:4,toastId:e};t?rf(t)(n):C4(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 LO=1e3,FO=(e,t="default")=>{let{toasts:n,pausedAt:r}=NO(e,t),i=v.useRef(new Map).current,a=v.useCallback((d,f=LO)=>{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}}},BO=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
|
-
}`,zO=wi`
|
|
53
|
-
from {
|
|
54
|
-
transform: scale(0);
|
|
55
|
-
opacity: 0;
|
|
56
|
-
}
|
|
57
|
-
to {
|
|
58
|
-
transform: scale(1);
|
|
59
|
-
opacity: 1;
|
|
60
|
-
}`,WO=wi`
|
|
61
|
-
from {
|
|
62
|
-
transform: scale(0) rotate(90deg);
|
|
63
|
-
opacity: 0;
|
|
64
|
-
}
|
|
65
|
-
to {
|
|
66
|
-
transform: scale(1) rotate(90deg);
|
|
67
|
-
opacity: 1;
|
|
68
|
-
}`,UO=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: ${BO} 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: ${zO} 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: ${WO} 0.15s ease-out forwards;
|
|
98
|
-
animation-delay: 180ms;
|
|
99
|
-
transform: rotate(90deg);
|
|
100
|
-
}
|
|
101
|
-
`,HO=wi`
|
|
102
|
-
from {
|
|
103
|
-
transform: rotate(0deg);
|
|
104
|
-
}
|
|
105
|
-
to {
|
|
106
|
-
transform: rotate(360deg);
|
|
107
|
-
}
|
|
108
|
-
`,VO=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: ${HO} 1s linear infinite;
|
|
117
|
-
`,qO=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
|
-
}`,YO=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
|
-
}`,GO=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: ${qO} 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: ${YO} 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
|
-
`,ZO=oa("div")`
|
|
167
|
-
position: absolute;
|
|
168
|
-
`,KO=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
|
-
`,XO=wi`
|
|
176
|
-
from {
|
|
177
|
-
transform: scale(0.6);
|
|
178
|
-
opacity: 0.4;
|
|
179
|
-
}
|
|
180
|
-
to {
|
|
181
|
-
transform: scale(1);
|
|
182
|
-
opacity: 1;
|
|
183
|
-
}`,JO=oa("div")`
|
|
184
|
-
position: relative;
|
|
185
|
-
transform: scale(0.6);
|
|
186
|
-
opacity: 0.4;
|
|
187
|
-
min-width: 20px;
|
|
188
|
-
animation: ${XO} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
189
|
-
forwards;
|
|
190
|
-
`,QO=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?pe.createElement(JO,null,t):t:n==="blank"?null:pe.createElement(KO,null,pe.createElement(VO,{...r}),n!=="loading"&&pe.createElement(ZO,null,n==="error"?pe.createElement(UO,{...r}):pe.createElement(GO,{...r})))},e7=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
|
-
`,t7=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
|
-
`,n7="0%{opacity:0;} 100%{opacity:1;}",r7="0%{opacity:1;} 100%{opacity:0;}",i7=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
|
-
`,a7=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
|
-
`,o7=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=y4()?[n7,r7]:[e7(n),t7(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)`}},s7=pe.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?o7(e.position||t||"top-center",e.visible):{opacity:0},a=pe.createElement(QO,{toast:e}),o=pe.createElement(a7,{...e.ariaProps},td(e.message,e));return pe.createElement(i7,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:a,message:o}):pe.createElement(pe.Fragment,null,a,o))});OO(pe.createElement);var l7=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let a=pe.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 pe.createElement("div",{ref:a,className:t,style:n},i)},c7=(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:y4()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},u7=nf`
|
|
216
|
-
z-index: 9999;
|
|
217
|
-
> * {
|
|
218
|
-
pointer-events: auto;
|
|
219
|
-
}
|
|
220
|
-
`,uu=16,d7=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,toasterId:a,containerStyle:o,containerClassName:s})=>{let{toasts:l,handlers:c}=FO(n,a);return pe.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=c7(d,f);return pe.createElement(l7,{id:u.id,key:u.id,onHeightUpdate:c.updateHeight,className:u.visible?u7:"",style:h},u.type==="custom"?td(u.message,u):i?i(u):pe.createElement(s7,{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 S4=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 f7=wm,T4=v.createContext({user:null,userLoginState:{state:S4.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),h7=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=Re.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=ce("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:p7,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(s4,{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 p7(e){return e.stopPropagation()}const m7="_h1_14r4v_1",g7="_h3_14r4v_8",v7="_h6_14r4v_15",b7="_subtitle_14r4v_22",y7="_body_14r4v_29",x7="_body2_14r4v_36",w7="_caption_14r4v_43",_7="_form-label_14r4v_50",Di={h1:m7,h3:g7,h6:v7,subtitle:b7,body:y7,body2:x7,caption:w7,formLabel:_7},C7=e=>{const t=Re.c(42),{variant:n,className:r,children:i}=e;switch(n){case"h1":{let a;t[0]!==r?(a=ce("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=ce("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=ce("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=ce("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=ce("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=ce("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=ce("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=ce("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=Re.c(4),{variant:n,className:r,children:i}=e;let a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=b.jsx(C7,{variant:n,className:r,children:i}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a},u0=e=>{const t=Re.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 d0(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),S7=(e,t)=>e===null?null:e.length<=t?e:e.slice(0,t)+"…";function T7(e){return e==null?"":Dg(Cc(e),"dd.MM.yyyy")}function jl(e){return(e==null?void 0:e.toString().split("T")[0])??""}function k7(e){return e==null?"":Dg(Cc(e),"dd.MM.yyyy HH:mm")}function $7(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}const E7=(e,t)=>d0(" ",e?`${e},`:void 0,t),M7=(e,t)=>`${t}${e!=null?` (${e})`:""}`,O7=(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 A7(){const e=new Date,t=new Date(e);return t.setHours(24,0,0,0),t.getTime()-e.getTime()}function R7(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function D7(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 I7(e,t){const n=new Date(e),r=new Date(t);return n.getTime()-r.getTime()}function j7(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 mk(e)}function N7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),P4(t)}function P7(e){const t=new Date;return t.setUTCMonth(t.getUTCMonth()+e),L4(t)}function L7(e){const t=e??new Date().getFullYear(),n=new Date(t,0,1);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function F7(e){const t=e??new Date().getFullYear(),n=new Date(t,11,31);return n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n}function B7(e){return jl(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 z7=["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"],W7=["pdf","txt","html","xml","jpg","jpeg","png","gif","webp","svg","bmp","ico","mp3","wav","ogg","m4a","mp4","webm","ogv"],B4=e=>z7.includes(e.type),z4=e=>W7.includes(e.toLowerCase());function U7(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 W4(e,t){e.setValue(t,null)}function U4(e,t){t.forEach(n=>{W4(e,n)})}function ss(e,t=ss.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}ss.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?ss(e).toLowerCase().includes(ss(t.toLowerCase())):!1:!0,H4=(e,t)=>t?e?ss(e).toLowerCase().startsWith(ss(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)):H4(a,i):Cm(a,i):!0},yb=(e,t,n=!0)=>Object.keys(e).reduce((r,i)=>{const a=e[i];return n&&a==null||(r[i]=t(a,i)),r},{}),V4=(e,t)=>{const n=t!=null&&t.query?new URLSearchParams(yb(t.query,r=>(r==null?void 0:r.toString())??"")):null;return`${no.generatePath(e,t!=null&&t.path?yb(t.path,r=>(r==null?void 0:r.toString())??null):void 0)}${n&&n.size>0?`?${n.toString()}`:""}`};function q4(e,t){return function(){return e.apply(t,arguments)}}const{toString:H7}=Object.prototype,{getPrototypeOf:f0}=Object,{iterator:lf,toStringTag:Y4}=Symbol,cf=(e=>t=>{const n=H7.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:Ss}=Array,ls=uf("undefined");function Ac(e){return e!==null&&!ls(e)&&e.constructor!==null&&!ls(e.constructor)&&Gn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G4=Ar("ArrayBuffer");function V7(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&G4(e.buffer),t}const q7=uf("string"),Gn=uf("function"),Z4=uf("number"),Rc=e=>e!==null&&typeof e=="object",Y7=e=>e===!0||e===!1,ju=e=>{if(cf(e)!=="object")return!1;const t=f0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Y4 in e)&&!(lf in e)},G7=e=>{if(!Rc(e)||Ac(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Z7=Ar("Date"),K7=Ar("File"),X7=Ar("Blob"),J7=Ar("FileList"),Q7=e=>Rc(e)&&Gn(e.pipe),eA=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]"))},tA=Ar("URLSearchParams"),[nA,rA,iA,aA]=["ReadableStream","Request","Response","Headers"].map(Ar),oA=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]),Ss(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 K4(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,X4=e=>!ls(e)&&e!==Ea;function Sm(){const{caseless:e,skipUndefined:t}=X4(this)&&this||{},n={},r=(i,a)=>{const o=e&&K4(n,a)||a;ju(n[o])&&ju(i)?n[o]=Sm(n[o],i):ju(i)?n[o]=Sm({},i):Ss(i)?n[o]=i.slice():(!t||!ls(i))&&(n[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Dc(arguments[i],r);return n}const sA=(e,t,n,{allOwnKeys:r}={})=>(Dc(t,(i,a)=>{n&&Gn(i)?e[a]=q4(i,n):e[a]=i},{allOwnKeys:r}),e),lA=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cA=(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)},uA=(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&&f0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dA=(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},fA=e=>{if(!e)return null;if(Ss(e))return e;let t=e.length;if(!Z4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hA=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&f0(Uint8Array)),pA=(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])}},mA=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gA=Ar("HTMLFormElement"),vA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),xb=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bA=Ar("RegExp"),J4=(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)},yA=e=>{J4(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+"'")})}})},xA=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return Ss(e)?r(e):r(String(e).split(t)),n},wA=()=>{},_A=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function CA(e){return!!(e&&Gn(e.append)&&e[Y4]==="FormData"&&e[lf])}const SA=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=Ss(r)?[]:{};return Dc(r,(o,s)=>{const l=n(o,i+1);!ls(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},TA=Ar("AsyncFunction"),kA=e=>e&&(Rc(e)||Gn(e))&&Gn(e.then)&&Gn(e.catch),Q4=((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)),$A=typeof queueMicrotask<"u"?queueMicrotask.bind(Ea):typeof process<"u"&&process.nextTick||Q4,EA=e=>e!=null&&Gn(e[lf]),ae={isArray:Ss,isArrayBuffer:G4,isBuffer:Ac,isFormData:eA,isArrayBufferView:V7,isString:q7,isNumber:Z4,isBoolean:Y7,isObject:Rc,isPlainObject:ju,isEmptyObject:G7,isReadableStream:nA,isRequest:rA,isResponse:iA,isHeaders:aA,isUndefined:ls,isDate:Z7,isFile:K7,isBlob:X7,isRegExp:bA,isFunction:Gn,isStream:Q7,isURLSearchParams:tA,isTypedArray:hA,isFileList:J7,forEach:Dc,merge:Sm,extend:sA,trim:oA,stripBOM:lA,inherits:cA,toFlatObject:uA,kindOf:cf,kindOfTest:Ar,endsWith:dA,toArray:fA,forEachEntry:pA,matchAll:mA,isHTMLForm:gA,hasOwnProperty:xb,hasOwnProp:xb,reduceDescriptors:J4,freezeMethods:yA,toObjectSet:xA,toCamelCase:vA,noop:wA,toFiniteNumber:_A,findKey:K4,global:Ea,isContextDefined:X4,isSpecCompliantForm:CA,toJSONObject:SA,isAsyncFn:TA,isThenable:kA,setImmediate:Q4,asap:$A,isIterable:EA};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 eC=lt.prototype,tC={};["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=>{tC[e]={value:e}});Object.defineProperties(lt,tC);Object.defineProperty(eC,"isAxiosError",{value:!0});lt.from=(e,t,n,r,i,a)=>{const o=Object.create(eC);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 MA=null;function Tm(e){return ae.isPlainObject(e)||ae.isArray(e)}function nC(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function wb(e,t,n){return e?e.concat(t).map(function(i,a){return i=nC(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function OA(e){return ae.isArray(e)&&!e.some(Tm)}const AA=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)&&OA(p)||(ae.isFileList(p)||ae.endsWith(m,"[]"))&&(y=ae.toArray(p)))return m=nC(m),y.forEach(function(w,C){!(ae.isUndefined(w)||w===null)&&t.append(o===!0?wb([m],C,a):o===null?m:m+"[]",c(w))}),!1}return Tm(p)?!0:(t.append(wb(g,m,a),c(p)),!1)}const d=[],f=Object.assign(AA,{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 _b(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function h0(e,t){this._pairs=[],e&&df(e,this,t)}const rC=h0.prototype;rC.append=function(t,n){this._pairs.push([t,n])};rC.toString=function(t){const n=t?function(r){return t.call(this,r,_b)}:_b;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function RA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function iC(e,t,n){if(!t)return e;const r=n&&n.encode||RA;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 h0(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Cb{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 aC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DA=typeof URLSearchParams<"u"?URLSearchParams:h0,IA=typeof FormData<"u"?FormData:null,jA=typeof Blob<"u"?Blob:null,NA={isBrowser:!0,classes:{URLSearchParams:DA,FormData:IA,Blob:jA},protocols:["http","https","file","blob","url","data"]},p0=typeof window<"u"&&typeof document<"u",km=typeof navigator=="object"&&navigator||void 0,PA=p0&&(!km||["ReactNative","NativeScript","NS"].indexOf(km.product)<0),LA=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",FA=p0&&window.location.href||"http://localhost",BA=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:p0,hasStandardBrowserEnv:PA,hasStandardBrowserWebWorkerEnv:LA,navigator:km,origin:FA},Symbol.toStringTag,{value:"Module"})),En={...BA,...NA};function zA(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 WA(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function UA(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 oC(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]=UA(i[o])),!s)}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};return ae.forEachEntry(e,(r,i)=>{t(WA(r),i,n,0)}),n}return null}function HA(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:aC,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(oC(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 zA(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),HA(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 VA=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"]),qA=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]&&VA[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Sb=Symbol("internals");function Xs(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 YA(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const GA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function 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 ZA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function KA(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=Xs(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())&&!GA(t))o(qA(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=Xs(t),t){const r=ae.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return YA(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=Xs(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=Xs(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?ZA(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[Sb]=this[Sb]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Xs(o);r[s]||(KA(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 sC(e){return!!(e&&e.__CANCEL__)}function Ts(e,t,n){lt.call(this,e??"canceled",lt.ERR_CANCELED,t,n),this.name="CanceledError"}ae.inherits(Ts,lt,{__CANCEL__:!0});function lC(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 XA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function JA(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 QA(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=JA(50,250);return QA(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)},Tb=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kb=e=>(...t)=>ae.asap(()=>e(...t)),eR=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,tR=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 nR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cC(e,t,n){let r=!nR(t);return e&&(r||n==!1)?rR(e,t):t}const $b=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($b(c),$b(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 uC=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=iC(cC(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&&eR(t.url))){const l=i&&a&&tR.read(a);l&&o.set(i,l)}return t},iR=typeof XMLHttpRequest<"u",aR=iR&&function(e){return new Promise(function(n,r){const i=uC(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};lC(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||aC;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 Ts(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 _=XA(i.url);if(_&&En.protocols.indexOf(_)===-1){r(new lt("Unsupported protocol "+_+":",lt.ERR_BAD_REQUEST,e));return}g.send(a||null)})},oR=(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 Ts(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}},sR=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},lR=async function*(e,t){for await(const n of cR(e))yield*sR(n,t)},cR=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()}},Eb=(e,t,n,r)=>{const i=lR(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})},Mb=64*1024,{isFunction:du}=ae,uR=(({Request:e,Response:t})=>({Request:e,Response:t}))(ae.global),{ReadableStream:Ob,TextEncoder:Ab}=ae.global,Rb=(e,...t)=>{try{return!!e(...t)}catch{return!1}},dR=e=>{e=ae.merge.call({skipUndefined:!0},uR,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(Ob),l=i&&(typeof Ab=="function"?(p=>m=>p.encode(m))(new Ab):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=a&&s&&Rb(()=>{let p=!1;const m=new n(En.origin,{body:new Ob,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=o&&s&&Rb(()=>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:R}=uC(p),$=t||fetch;E=E?(E+"").toLowerCase():"text";let O=oR([_,w&&w.toAbortSignal()],C),D=null;const I=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let j;try{if(S&&c&&g!=="get"&&g!=="head"&&(j=await h(k,y))!==0){let U=new n(m,{method:"POST",body:y,duplex:"half"}),H;if(ae.isFormData(y)&&(H=U.headers.get("content-type"))&&k.setContentType(H),U.body){const[q,G]=Tb(j,id(kb(S)));y=Eb(U.body,Mb,q,G)}}ae.isString(T)||(T=T?"include":"omit");const A=a&&"credentials"in n.prototype,M={...R,signal:O,method:g.toUpperCase(),headers:k.normalize().toJSON(),body:y,duplex:"half",credentials:A?T:void 0};D=a&&new n(m,M);let L=await(a?$(D,R):$(m,M));const B=u&&(E==="stream"||E==="response");if(u&&(x||B&&I)){const U={};["status","statusText","headers"].forEach(K=>{U[K]=L[K]});const H=ae.toFiniteNumber(L.headers.get("content-length")),[q,G]=x&&Tb(H,id(kb(x),!0))||[];L=new r(Eb(L.body,Mb,q,()=>{G&&G(),I&&I()}),U)}E=E||"text";let P=await d[ae.findKey(d,E)||"text"](L,p);return!B&&I&&I(),await new Promise((U,H)=>{lC(U,H,{data:P,headers:Zn.from(L.headers),status:L.status,statusText:L.statusText,config:p,request:D})})}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,D),{cause:A.cause||A}):lt.from(A,A&&A.code,p,D)}}},fR=new Map,dC=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=fR;for(;s--;)l=a[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:dR(t)),u=c;return c};dC();const m0={http:MA,xhr:aR,fetch:{get:dC}};ae.forEach(m0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Db=e=>`- ${e}`,hR=e=>ae.isFunction(e)||e===null||e===!1;function pR(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,!hR(r)&&(i=m0[(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(Db).join(`
|
|
224
|
-
`):" "+Db(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 fC={getAdapter:pR,adapters:m0};function sp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ts(null,e)}function Ib(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),fC.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 sC(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 hC="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 jb={};ff.transitional=function(t,n,r){function i(a,o){return"[Axios v"+hC+"] 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&&!jb[o]&&(jb[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 mR(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:mR,validators:ff},Ir=Pu.validators;let Na=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Cb,response:new Cb}}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=[Ib.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=Ib.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=cC(t.baseURL,t.url,t.allowAbsoluteUrls);return iC(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 gR=class pC{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 Ts(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 pC(function(i){t=i}),cancel:t}}};function vR(e){return function(n){return e.apply(null,n)}}function bR(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 mC(e){const t=new Na(e),n=q4(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 mC(Ua(e,i))},n}const Jt=mC(Ic);Jt.Axios=Na;Jt.CanceledError=Ts;Jt.CancelToken=gR;Jt.isCancel=sC;Jt.VERSION=hC;Jt.toFormData=df;Jt.AxiosError=lt;Jt.Cancel=Jt.CanceledError;Jt.all=function(t){return Promise.all(t)};Jt.spread=vR;Jt.isAxiosError=bR;Jt.mergeConfig=Ua;Jt.AxiosHeaders=Zn;Jt.formToJSON=e=>oC(ae.isHTMLForm(e)?new FormData(e):e);Jt.getAdapter=fC.getAdapter;Jt.HttpStatusCode=$m;Jt.default=Jt;const{Axios:Xpe,AxiosError:Jpe,CanceledError:Qpe,isCancel:eme,CancelToken:tme,VERSION:nme,all:rme,Cancel:ime,isAxiosError:ame,spread:ome,toFormData:sme,AxiosHeaders:lme,HttpStatusCode:cme,formToJSON:ume,getAdapter:dme,mergeConfig:fme}=Jt;var fu={};/*!
|
|
226
|
-
* cookie
|
|
227
|
-
* Copyright(c) 2012-2014 Roman Shtylman
|
|
228
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
229
|
-
* MIT Licensed
|
|
230
|
-
*/var Nb;function yR(){if(Nb)return fu;Nb=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 R=h.slice(k,T);m[E]=f(R,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=yR();function xR(){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 wR(e){return typeof e=="string"?Lu.parse(e):typeof e=="object"&&e!==null?e:{}}function lp(e,t={}){const n=_R(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function _R(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class CR{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=wR(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=xR()}_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 gC=pe.createContext(new CR),{Provider:hme,Consumer:pme}=gC;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 Pb;function SR(){if(Pb)return Nt;Pb=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 Lb;function TR(){return Lb||(Lb=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 Z=Q&&Q.$$typeof;switch(Z){case s:case u:case p:case h:case o:return Z;default:return ee}}case n:return ee}}}var x=l,S=c,E=s,k=o,T=t,R=u,$=r,O=p,D=h,I=n,j=a,A=i,M=d,L=!1;function B(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 U(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 G(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 W(N){return C(N)===n}function F(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=R,Pt.Fragment=$,Pt.Lazy=O,Pt.Memo=D,Pt.Portal=I,Pt.Profiler=j,Pt.StrictMode=A,Pt.Suspense=M,Pt.isAsyncMode=B,Pt.isConcurrentMode=P,Pt.isContextConsumer=U,Pt.isContextProvider=H,Pt.isElement=q,Pt.isForwardRef=G,Pt.isFragment=K,Pt.isLazy=te,Pt.isMemo=ne,Pt.isPortal=W,Pt.isProfiler=F,Pt.isStrictMode=z,Pt.isSuspense=V,Pt.isValidElementType=w,Pt.typeOf=C}()),Pt}var Fb;function kR(){return Fb||(Fb=1,process.env.NODE_ENV==="production"?hu.exports=SR():hu.exports=TR()),hu.exports}var cp,Bb;function $R(){if(Bb)return cp;Bb=1;var e=kR(),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}$R();function ER(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function g0(e,t){const n=v.useContext(gC);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),t),[a,o]=v.useState(()=>n.getAll(i));ER()&&v.useLayoutEffect(()=>{function u(){const d=n.getAll(i);MR(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 MR(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}const OR=()=>{const e=Re.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]=g0(r);let o;e[1]!==t?(o=Jt.create(t),e[1]=t,e[2]=o):o=e[2];const s=o,l=AR;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:Sw(new Date(Date.now()),24)}),g.data)).catch(RR),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 AR(){const e=localStorage.getItem("token");return e!==null&&e.length>0}function RR(e){return console.log(e),null}const DR=()=>{const e=Re.c(18);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=["Authorization"],e[0]=t):t=e[0];const[,,n]=g0(t),{msalScopes:r,msalExtraScopes:i}=v.useContext(af),{instance:a,inProgress:o}=k1.useMsal(),s=k1.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!==tk.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(IR).catch(jR),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 IR(){return""}function jR(){return null}const v0=()=>{const e=Re.c(12),{useMsal:t}=v.useContext(af),n=OR(),r=DR();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:NR,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 NR(){return!1}const PR="_toast_1s57i_1",Js={toast:PR},LR=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=Re.c(1),t=FR;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n={addNotification:t},e[0]=n):n=e[0],n};function FR(e,t){const n=D4(e),r=LR(t),i=b.jsxs(b.Fragment,{children:[n,b.jsx(f4,{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(bO,{size:12}),className:ce("luminus-toast-success rounded shadow bg-success",Js.toast)});break e}case"danger":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(sO,{size:12}),className:ce("luminus-toast-danger rounded shadow bg-danger",Js.toast)});break e}case"warning":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(nO,{size:12}),className:ce("luminus-toast-warning rounded shadow bg-warning",Js.toast)});break e}case"info":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(iO,{size:12}),className:ce("luminus-toast-info rounded shadow bg-info",Js.toast)});break e}case"prompt":{So(i,{id:n,duration:r,position:"top-center",icon:b.jsx(oO,{size:12}),className:ce("luminus-toast-prompt rounded shadow bg-light",Js.toast)});break e}}}const BR=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}=v0(),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 R=i?{token:i,expiresOn:Sw(new Date(Date.now()),1)}:await d();if(!R)return console.log("No bearer token"),Promise.reject(new Error("No bearer token"));if(Mw(R.expiresOn))return console.log("Token expired"),Promise.reject(new Error("Token expired"));x.headers.Authorization=`Bearer ${R.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}: ${d0(", ",...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 ml;const b0=()=>{const e=Re.c(15),{show:t,text:n,showConfirm:r,hideConfirm:i,textSm:a}=v.useContext(p4);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(),ml&&ml(!0)},e[2]=s,e[3]=l):l=e[3];const c=l;let u;e[4]!==s?(u=()=>{s(),ml&&ml(!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(zR)),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 zR(e){ml=e}var wt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const 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})(wt||(wt={}));var Em;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Em||(Em={}));const Te=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),di=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return Number.isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},me=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),WR=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,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const 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 cs=(e,t)=>{let n;switch(e.code){case me.invalid_type:e.received===Te.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case me.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case me.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case me.invalid_union:n="Invalid input";break;case me.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case me.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case me.invalid_arguments:n="Invalid function arguments";break;case me.invalid_return_type:n="Invalid function return type";break;case me.invalid_date:n="Invalid date";break;case me.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case me.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 me.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 me.custom:n="Invalid input";break;case me.invalid_intersection_types:n="Intersection results could not be merged";break;case me.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case me.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let vC=cs;function UR(e){vC=e}function ad(){return vC}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}},HR=[];function Ce(e,t){const n=ad(),r=od({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===cs?void 0:cs].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 He;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const 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 He;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 He=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 Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));class 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 zb=(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 zb(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 zb(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:me.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:qe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return zr.create(this,this._def)}nullable(){return ea.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Tr.create(this)}promise(){return ds.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:qe.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:qe.ZodDefault})}brand(){return new y0({typeName:qe.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:qe.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 VR=/^c[^\s-]{8,}$/i,qR=/^[0-9a-z]+$/,YR=/^[0-9A-HJKMNP-TV-Z]{26}$/i,GR=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ZR=/^[a-z0-9_-]{21}$/i,KR=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,XR=/^[-+]?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)?)??$/,JR=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,QR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let up;const e9=/^(?:(?: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])$/,t9=/^(?:(?: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])$/,n9=/^(([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]))$/,r9=/^(([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])$/,i9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,a9=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,bC="((\\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])))",o9=new RegExp(`^${bC}$`);function yC(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 s9(e){return new RegExp(`^${yC(e)}$`)}function xC(e){let t=`${bC}T${yC(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 l9(e,t){return!!((t==="v4"||!t)&&e9.test(e)||(t==="v6"||!t)&&n9.test(e))}function c9(e,t){if(!KR.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 u9(e,t){return!!((t==="v4"||!t)&&t9.test(e)||(t==="v6"||!t)&&r9.test(e))}class Cr extends pt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const a=this._getOrReturnCtx(t);return Ce(a,{code:me.invalid_type,expected:Te.string,received:a.parsedType}),He}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),Ce(i,{code:me.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),Ce(i,{code:me.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?Ce(i,{code:me.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):s&&Ce(i,{code:me.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")JR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"email",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")up||(up=new RegExp(QR,"u")),up.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"emoji",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")GR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"uuid",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")ZR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"nanoid",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")VR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"cuid",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")qR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"cuid2",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")YR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"ulid",code:me.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Ce(i,{validation:"url",code:me.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),Ce(i,{validation:"regex",code:me.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),Ce(i,{code:me.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),Ce(i,{code:me.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:me.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?xC(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:me.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?o9.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:me.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?s9(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{code:me.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?XR.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"duration",code:me.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?l9(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"ip",code:me.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?c9(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"jwt",code:me.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?u9(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"cidr",code:me.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?i9.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"base64",code:me.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?a9.test(t.data)||(i=this._getOrReturnCtx(t,i),Ce(i,{validation:"base64url",code:me.invalid_string,message:a.message}),r.dirty()):wt.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:me.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new Cr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new 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:qe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ct(e)});function d9(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)!==Te.number){const a=this._getOrReturnCtx(t);return Ce(a,{code:me.invalid_type,expected:Te.number,received:a.parsedType}),He}let r;const i=new An;for(const a of this._def.checks)a.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.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),Ce(r,{code:me.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),Ce(r,{code:me.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?d9(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.not_finite,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new Xi({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(i)}]})}_addCheck(t){return new Xi({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Xi.create=e=>new Xi({checks:[],typeName:qe.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)!==Te.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),Ce(r,{code:me.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),Ce(r,{code:me.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),Ce(r,{code:me.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:me.invalid_type,expected:Te.bigint,received:n.parsedType}),He}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,i){return new Ji({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.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:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Ji.create=e=>new Ji({checks:[],typeName:qe.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)!==Te.boolean){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.boolean,received:r.parsedType}),He}return Pn(t.data)}}Pl.create=e=>new Pl({typeName:qe.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)!==Te.date){const a=this._getOrReturnCtx(t);return Ce(a,{code:me.invalid_type,expected:Te.date,received:a.parsedType}),He}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Ce(a,{code:me.invalid_date}),He}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),Ce(i,{code:me.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),Ce(i,{code:me.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):wt.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:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Va.create=e=>new Va({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:qe.ZodDate,...ct(e)});class sd extends pt{_parse(t){if(this._getType(t)!==Te.symbol){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.symbol,received:r.parsedType}),He}return Pn(t.data)}}sd.create=e=>new sd({typeName:qe.ZodSymbol,...ct(e)});class Ll extends pt{_parse(t){if(this._getType(t)!==Te.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.undefined,received:r.parsedType}),He}return Pn(t.data)}}Ll.create=e=>new Ll({typeName:qe.ZodUndefined,...ct(e)});class Fl extends pt{_parse(t){if(this._getType(t)!==Te.null){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.null,received:r.parsedType}),He}return Pn(t.data)}}Fl.create=e=>new Fl({typeName:qe.ZodNull,...ct(e)});class us extends pt{constructor(){super(...arguments),this._any=!0}_parse(t){return Pn(t.data)}}us.create=e=>new us({typeName:qe.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:qe.ZodUnknown,...ct(e)});class _i extends pt{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:me.invalid_type,expected:Te.never,received:n.parsedType}),He}}_i.create=e=>new _i({typeName:qe.ZodNever,...ct(e)});class ld extends pt{_parse(t){if(this._getType(t)!==Te.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.void,received:r.parsedType}),He}return Pn(t.data)}}ld.create=e=>new ld({typeName:qe.ZodVoid,...ct(e)});class Tr extends pt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Te.array)return Ce(n,{code:me.invalid_type,expected:Te.array,received:n.parsedType}),He;if(i.exactLength!==null){const o=n.data.length>i.exactLength.value,s=n.data.length<i.exactLength.value;(o||s)&&(Ce(n,{code:o?me.too_big:me.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&&(Ce(n,{code:me.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&&(Ce(n,{code:me.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:Oe.toString(n)}})}max(t,n){return new Tr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Tr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Tr.create=(e,t)=>new Tr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.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=wt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Te.object){const c=this._getOrReturnCtx(t);return Ce(c,{code:me.invalid_type,expected:Te.object,received:c.parsedType}),He}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&&(Ce(i,{code:me.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 Oe.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:Oe.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:qe.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 wt.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 wt.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 wt.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 wt.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 wC(wt.objectKeys(this.shape))}}rn.create=(e,t)=>new rn({shape:()=>e,unknownKeys:"strip",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});rn.strictCreate=(e,t)=>new rn({shape:()=>e,unknownKeys:"strict",catchall:_i.create(),typeName:qe.ZodObject,...ct(t)});rn.lazycreate=(e,t)=>new rn({shape:e,unknownKeys:"strip",catchall:_i.create(),typeName:qe.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 Ce(n,{code:me.invalid_union,unionErrors:o}),He}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 Ce(n,{code:me.invalid_union,unionErrors:s}),He}}get options(){return this._def.options}}Bl.create=(e,t)=>new Bl({options:e,typeName:qe.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?wt.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 y0||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!==Te.object)return Ce(n,{code:me.invalid_type,expected:Te.object,received:n.parsedType}),He;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}):(Ce(n,{code:me.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),He)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const i=new Map;for(const 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:qe.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===Te.object&&r===Te.object){const i=wt.objectKeys(t),a=wt.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===Te.array&&r===Te.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===Te.date&&r===Te.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 He;const s=Am(a.value,o.value);return s.valid?((Om(a)||Om(o))&&n.dirty(),{status:n.value,value:s.data}):(Ce(r,{code:me.invalid_intersection_types}),He)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([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:qe.ZodIntersection,...ct(n)});class Vr extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.array)return Ce(r,{code:me.invalid_type,expected:Te.array,received:r.parsedType}),He;if(r.data.length<this._def.items.length)return Ce(r,{code:me.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),He;!this._def.rest&&r.data.length>this._def.items.length&&(Ce(r,{code:me.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:qe.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!==Te.object)return Ce(r,{code:me.invalid_type,expected:Te.object,received:r.parsedType}),He;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:qe.ZodRecord,...ct(r)}):new Wl({keyType:Cr.create(),valueType:t,typeName:qe.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!==Te.map)return Ce(r,{code:me.invalid_type,expected:Te.map,received:r.parsedType}),He;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 He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}})}else{const s=new Map;for(const l of o){const c=l.key,u=l.value;if(c.status==="aborted"||u.status==="aborted")return He;(c.status==="dirty"||u.status==="dirty")&&n.dirty(),s.set(c.value,u.value)}return{status:n.value,value:s}}}}cd.create=(e,t,n)=>new cd({valueType:t,keyType:e,typeName:qe.ZodMap,...ct(n)});class qa extends pt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.set)return Ce(r,{code:me.invalid_type,expected:Te.set,received:r.parsedType}),He;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Ce(r,{code:me.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&&(Ce(r,{code:me.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 He;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:Oe.toString(n)}})}max(t,n){return new qa({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}qa.create=(e,t)=>new qa({valueType:e,minSize:null,maxSize:null,typeName:qe.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!==Te.function)return Ce(n,{code:me.invalid_type,expected:Te.function,received:n.parsedType}),He;function r(s,l){return od({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ad(),cs].filter(c=>!!c),issueData:{code:me.invalid_arguments,argumentsError:l}})}function i(s,l){return od({data:s,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ad(),cs].filter(c=>!!c),issueData:{code:me.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ds){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:qe.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:qe.ZodLazy,...ct(t)});class Hl extends pt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:me.invalid_literal,expected:this._def.value}),He}return{status:"valid",value:t.data}}get value(){return this._def.value}}Hl.create=(e,t)=>new Hl({value:e,typeName:qe.ZodLiteral,...ct(t)});function wC(e,t){return new Qi({values:e,typeName:qe.ZodEnum,...ct(t)})}class Qi extends pt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{expected:wt.joinValues(r),received:n.parsedType,code:me.invalid_type}),He}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{received:n.data,code:me.invalid_enum_value,options:r}),He}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=wC;class Vl extends pt{_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Te.string&&r.parsedType!==Te.number){const i=wt.objectValues(n);return Ce(r,{expected:wt.joinValues(i),received:r.parsedType,code:me.invalid_type}),He}if(this._cache||(this._cache=new Set(wt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=wt.objectValues(n);return Ce(r,{received:r.data,code:me.invalid_enum_value,options:i}),He}return Pn(t.data)}get enum(){return this._def.values}}Vl.create=(e,t)=>new Vl({values:e,typeName:qe.ZodNativeEnum,...ct(t)});class ds extends pt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.promise&&n.common.async===!1)return Ce(n,{code:me.invalid_type,expected:Te.promise,received:n.parsedType}),He;const r=n.parsedType===Te.promise?n.data:Promise.resolve(n.data);return Pn(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ds.create=(e,t)=>new ds({type:e,typeName:qe.ZodPromise,...ct(t)});class $r extends pt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:o=>{Ce(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 He;const l=await this._def.schema._parseAsync({data:s,path:r.path,parent:r});return l.status==="aborted"?He:l.status==="dirty"||n.value==="dirty"?Lo(l.value):l});{if(n.value==="aborted")return He;const s=this._def.schema._parseSync({data:o,path:r.path,parent:r});return s.status==="aborted"?He: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"?He:(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"?He:(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 He;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})):He);wt.assertNever(i)}}$r.create=(e,t,n)=>new $r({schema:e,typeName:qe.ZodEffects,effect:t,...ct(n)});$r.createWithPreprocess=(e,t,n)=>new $r({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...ct(n)});class zr extends pt{_parse(t){return this._getType(t)===Te.undefined?Pn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:qe.ZodOptional,...ct(t)});class ea extends pt{_parse(t){return this._getType(t)===Te.null?Pn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ea.create=(e,t)=>new ea({innerType:e,typeName:qe.ZodNullable,...ct(t)});class ql extends pt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Te.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:qe.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:qe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ct(t)});class ud extends pt{_parse(t){if(this._getType(t)!==Te.nan){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.nan,received:r.parsedType}),He}return{status:"valid",value:t.data}}}ud.create=e=>new ud({typeName:qe.ZodNaN,...ct(e)});const f9=Symbol("zod_brand");class y0 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"?He: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"?He:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Nc({in:t,out:n,typeName:qe.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:qe.ZodReadonly,...ct(t)});function Wb(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function _C(e,t={},n){return e?us.create().superRefine((r,i)=>{const a=e(r);if(a instanceof Promise)return a.then(o=>{if(!o){const s=Wb(t,r),l=s.fatal??n??!0;i.addIssue({code:"custom",...s,fatal:l})}});if(!a){const o=Wb(t,r),s=o.fatal??n??!0;i.addIssue({code:"custom",...o,fatal:s})}}):us.create()}const h9={object:rn.lazycreate};var qe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(qe||(qe={}));const p9=(e,t={message:`Input not instance of ${e.name}`})=>_C(n=>n instanceof e,t),x0=Cr.create,CC=Xi.create,m9=ud.create,g9=Ji.create,SC=Pl.create,v9=Va.create,b9=sd.create,y9=Ll.create,x9=Fl.create,TC=us.create,w9=Pa.create,_9=_i.create,C9=ld.create,kC=Tr.create,hi=rn.create,S9=rn.strictCreate,T9=Bl.create,k9=pf.create,$9=zl.create,E9=Vr.create,M9=Wl.create,O9=cd.create,A9=qa.create,R9=Ho.create,D9=Ul.create,I9=Hl.create,$C=Qi.create,j9=Vl.create,N9=ds.create,Ub=$r.create,P9=zr.create,L9=ea.create,EC=$r.createWithPreprocess,F9=Nc.create,B9=()=>x0().optional(),z9=()=>CC().optional(),W9=()=>SC().optional(),gl={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})},U9=He,vl=Object.freeze(Object.defineProperty({__proto__:null,BRAND:f9,DIRTY:Lo,EMPTY_PATH:HR,INVALID:He,NEVER:U9,OK:Pn,ParseStatus:An,Schema:pt,ZodAny:us,ZodArray:Tr,ZodBigInt:Ji,ZodBoolean:Pl,ZodBranded:y0,ZodCatch:Yl,ZodDate:Va,ZodDefault:ql,ZodDiscriminatedUnion:pf,ZodEffects:$r,ZodEnum:Qi,ZodError:tr,get ZodFirstPartyTypeKind(){return qe},ZodFunction:Ho,ZodIntersection:zl,ZodIssueCode:me,ZodLazy:Ul,ZodLiteral:Hl,ZodMap:cd,ZodNaN:ud,ZodNativeEnum:Vl,ZodNever:_i,ZodNull:Fl,ZodNullable:ea,ZodNumber:Xi,ZodObject:rn,ZodOptional:zr,ZodParsedType:Te,ZodPipeline:Nc,ZodPromise:ds,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:Ce,any:TC,array:kC,bigint:g9,boolean:SC,coerce:gl,custom:_C,date:v9,datetimeRegex:xC,defaultErrorMap:cs,discriminatedUnion:k9,effect:Ub,enum:$C,function:R9,getErrorMap:ad,getParsedType:di,instanceof:p9,intersection:$9,isAborted:Mm,isAsync:Nl,isDirty:Om,isValid:Ha,late:h9,lazy:D9,literal:I9,makeIssue:od,map:O9,nan:m9,nativeEnum:j9,never:_9,null:x9,nullable:L9,number:CC,object:hi,get objectUtil(){return Em},oboolean:W9,onumber:z9,optional:P9,ostring:B9,pipeline:F9,preprocess:EC,promise:N9,quotelessJson:WR,record:M9,set:A9,setErrorMap:UR,strictObject:S9,string:x0,symbol:b9,transformer:Ub,tuple:E9,undefined:y9,union:T9,unknown:w9,get util(){return wt},void:C9},Symbol.toStringTag,{value:"Module"})),mf=()=>{const e=Re.c(43),{texts:t}=v.useContext(Qt),{formValidation:n}=t;let r;e[0]!==n?(r=(M,L)=>{const B=L===void 0?!1:L;let P=(M!=null&&M.useCoerce?gl:vl).string({invalid_type_error:n.required,required_error:n.required});return B||(P=P.min(1,n.required)),M!=null&&M.email&&(P=P.email(n.invalidEmail)),M!=null&&M.length&&(P=P.min(M.length,n.length(M.length))),M!=null&&M.minLength&&(P=P.min(M.minLength,n.minLength(M.minLength))),M!=null&&M.maxLength&&(P=P.max(M.maxLength,n.maxLength(M.maxLength))),M!=null&&M.numeric&&(P=P.regex(/^\d+$/,n.noCharactersOtherThanNumbers)),M!=null&&M.regex&&(P=P.regex(M.regex,n.invalidFormat)),P.transform(H9)},e[0]=n,e[1]=r):r=e[1];const i=r;let a;e[2]!==i?(a=M=>i(M,!1),e[2]=i,e[3]=a):a=e[3];const o=a;let s;e[4]!==i?(s=M=>i(M,!0).nullable().optional().transform(V9),e[4]=i,e[5]=s):s=e[5];const l=s;let c;e[6]!==n?(c=M=>{const L=(M==null?void 0:M.min)??Number.MIN_SAFE_INTEGER,B=(M==null?void 0:M.max)??Number.MAX_SAFE_INTEGER,P=(M!=null&&M.useCoerce?gl:vl).number({invalid_type_error:n.required,required_error:n.required}).min(L,n.lessThanMin(L)).max(B,n.moreThanMax(B));return P.transform(q9),P},e[6]=n,e[7]=c):c=e[7];const u=c;let d;e[8]!==u?(d=M=>u(M).nullable().optional().transform(Y9),e[8]=u,e[9]=d):d=e[9];const f=d;let h;e[10]!==n.required?(h=M=>((M==null?void 0:M.useCoerce)===!1?vl:gl).boolean({invalid_type_error:n.required,required_error:n.required}).transform(G9),e[10]=n.required,e[11]=h):h=e[11];const p=h;let m;e[12]!==n.invalidDate||e[13]!==n.required?(m=M=>(M!=null&&M.useCoerce?gl:vl).string({invalid_type_error:n.required,required_error:n.required}).refine(N4,{message:n.invalidDate}).transform(Z9),e[12]=n.invalidDate,e[13]=n.required,e[14]=m):m=e[14];const g=m;let y;e[15]!==g?(y=M=>EC(K9,g(M).nullable().optional()).transform(X9),e[15]=g,e[16]=y):y=e[16];const _=y;let w;e[17]!==n.required?(w=(M,L)=>$C(M,{invalid_type_error:n.required,required_error:n.required}).transform(J9),e[17]=n.required,e[18]=w):w=e[18];const C=w;let x;e[19]!==C?(x=(M,L)=>C(M,L).nullable().transform(Q9),e[19]=C,e[20]=x):x=e[20];const S=x;let E;e[21]!==f?(E=M=>hi({id:f({useCoerce:!0})}).nullable().transform(eD),e[21]=f,e[22]=E):E=e[22];const k=E;let T;e[23]!==u?(T=M=>hi({id:u()}).transform(tD),e[23]=u,e[24]=T):T=e[24];const R=T;let $;e[25]!==l?($=M=>hi({id:l({useCoerce:!0})}).nullable().transform(nD),e[25]=l,e[26]=$):$=e[26];const O=$;let D;e[27]!==o?(D=M=>hi({id:o()}).transform(rD),e[27]=o,e[28]=D):D=e[28];const I=D,j=aD;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]!==R||e[38]!==O||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:R,zObjectIdStr:O,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]=R,e[38]=O,e[39]=I,e[40]=l,e[41]=o,e[42]=A):A=e[42],A};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}function Z9(e){return e??null}function K9(e){return e===""?null:e}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 e??null}function rD(e){return e??null}function iD(e){return Array.from(e??[])}function aD(e){const{required:t,multiple:n,maxFileSize:r}=e;return TC().transform(iD).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 MC=(e,t)=>{const n=Re.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)},OC=()=>{const e=Re.c(4),{user:t}=v.useContext(T4);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},AC=(e,t)=>{const n=Re.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?oD:(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 oD(){}const To={loadOnInit:!0,silent:!1,enabled:!0,nullStateBeforeLoad:!0,nullStateOnFail:!1},RC=(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}=v0(),[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}),R=l?l(T.data):T.data;y(R),k=R}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}},w0=(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},DC=()=>{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=Re.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},IC=v.createContext({addHelmet:e=>{},removeHelmet:()=>{}}),jC=v.createContext(void 0),Hb={falseIfNotInit:!1},ao=e=>{const{falseIfNotInit:t}=e===void 0?Hb:e,n=t===void 0?Hb.falseIfNotInit:t,r=v.useContext(jC);if(!n&&r===void 0)throw new Error("FormDisabledProvider not initilized. Probably tried to use useFormDisabledContext outside FormDisabledProvider.");return r??!1};class sD extends Error{constructor(t,n){const r=new.target.prototype;super(`${t}: Status code '${n}'`),this.statusCode=n,this.__proto__=r}}class lD 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 cD extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="UnsupportedTransportError",this.__proto__=r}}class uD extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="DisabledTransportError",this.__proto__=r}}class dD extends Error{constructor(t,n){const r=new.target.prototype;super(t),this.transport=n,this.errorType="FailedToStartTransportError",this.__proto__=r}}class fD extends Error{constructor(t){const n=new.target.prototype;super(t),this.errorType="FailedToNegotiateWithServerError",this.__proto__=n}}class hD 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 pD="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 NC(e,t){let n="";return fs(e)?(n=`Binary data of length ${e.byteLength}`,t&&(n+=`. Content: '${mD(e)}'`)):typeof e=="string"&&(n=`String data of length ${e.length}`,t&&(n+=`. Content: '${e}'`)),n}function mD(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 fs(e){return e&&typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||e.constructor&&e.constructor.name==="ArrayBuffer")}async function gD(e,t,n,r,i,a){const o={},[s,l]=PC();o[s]=l,e.log(exports.LogLevel.Trace,`(${t} transport) sending data. ${NC(i,a.logMessageContent)}.`);const c=fs(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 vD(e){return e===void 0?new Dm(exports.LogLevel.Information):e===null?dd.instance:e.log!==void 0?e:new Dm(e)}class bD{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 PC(){let e="X-SignalR-User-Agent";return kr.isNode&&(e="User-Agent"),[e,yD(pD,xD(),_D(),wD())]}function yD(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 xD(){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 wD(){if(kr.isNode)return process.versions.node}function _D(){return kr.isNode?"NodeJS":"Browser"}function dp(e){return e.stack?e.stack:e.message?e.message:`${e}`}function CD(){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 SD{writeHandshakeRequest(t){return ur.write(JSON.stringify(t))}parseHandshakeResponse(t){let n,r;if(fs(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 TD{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 bD(this,t)}}class kD{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=()=>{};fs(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 $D(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,fs(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 $D{constructor(t,n,r,i){this._message=t,this._id=n,this._resolver=r,this._rejector=i}}const ED=30*1e3,MD=15*1e3,OD=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 _0{static create(t,n,r,i,a,o,s){return new _0(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??ED,this.keepAliveIntervalInMilliseconds=o??MD,this._statefulReconnectBufferSize=s??OD,this._logger=n,this._protocol=r,this.connection=t,this._reconnectPolicy=i,this._handshakeProtocol=new SD,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 kD(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 TD;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 AD=v.createContext({isAlive:!1,shouldBeAlive:!1,connectionState:exports.HubConnectionState.Disconnected,hasLastConnectionEnded:!1}),RD="_button_1wjon_1",DD="_filled_1wjon_7",ID="_sm_1wjon_13",jD="_md_1wjon_18",ND="_lg_1wjon_23",ko={button:RD,filled:DD,sm:ID,md:jD,lg:ND},Ya=e=>{const t=Re.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=ce(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=ce(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},PD="_button_1r3i0_1",Im={button:PD},gf=e=>{const t=Re.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=ce(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=ce(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},LD="_icon-button_15e26_1",FD="_sm_15e26_14",BD="_md_15e26_23",zD="_lg_15e26_32",pu={"icon-button":"_icon-button_15e26_1",iconButton:LD,sm:FD,md:BD,lg:zD},sa=e=>{const t=Re.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=ce(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=ce(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 C0={},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]",R="[object WeakMap]",$="[object ArrayBuffer]",O="[object DataView]",D="[object Float32Array]",I="[object Float64Array]",j="[object Int8Array]",A="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",B="[object Uint8ClampedArray]",P="[object Uint16Array]",U="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,q=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,K={};K[D]=K[I]=K[j]=K[A]=K[M]=K[L]=K[B]=K[P]=K[U]=!0,K[s]=K[l]=K[$]=K[u]=K[O]=K[d]=K[f]=K[h]=K[m]=K[g]=K[_]=K[x]=K[S]=K[E]=K[R]=!1;var te=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,ne=typeof self=="object"&&self&&self.Object===Object&&self,W=te||ne||Function("return this")(),F=t&&!t.nodeType&&t,z=F&&!0&&e&&!e.nodeType&&e,V=z&&z.exports===F,N=V&&te.process,ee=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),Q=ee&&ee.isTypedArray;function Z(Y,re){for(var he=-1,Ee=Y==null?0:Y.length,Kt=0,dt=[];++he<Ee;){var sn=Y[he];re(sn,he,Y)&&(dt[Kt++]=sn)}return dt}function se(Y,re){for(var he=-1,Ee=re.length,Kt=Y.length;++he<Ee;)Y[Kt+he]=re[he];return Y}function X(Y,re){for(var he=-1,Ee=Y==null?0:Y.length;++he<Ee;)if(re(Y[he],he,Y))return!0;return!1}function J(Y,re){for(var he=-1,Ee=Array(Y);++he<Y;)Ee[he]=re(he);return Ee}function ie(Y){return function(re){return Y(re)}}function oe(Y,re){return Y.has(re)}function ge(Y,re){return Y==null?void 0:Y[re]}function de(Y){var re=-1,he=Array(Y.size);return Y.forEach(function(Ee,Kt){he[++re]=[Kt,Ee]}),he}function ue(Y,re){return function(he){return Y(re(he))}}function Se(Y){var re=-1,he=Array(Y.size);return Y.forEach(function(Ee){he[++re]=Ee}),he}var le=Array.prototype,fe=Function.prototype,we=Object.prototype,Ge=W["__core-js_shared__"],_e=fe.toString,ye=we.hasOwnProperty,Pe=function(){var Y=/[^.]+$/.exec(Ge&&Ge.keys&&Ge.keys.IE_PROTO||"");return Y?"Symbol(src)_1."+Y:""}(),Ze=we.toString,_t=RegExp("^"+_e.call(ye).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ke=V?W.Buffer:void 0,De=W.Symbol,at=W.Uint8Array,Ue=we.propertyIsEnumerable,mt=le.splice,ut=De?De.toStringTag:void 0,Rt=Object.getOwnPropertySymbols,Xe=ke?ke.isBuffer:void 0,Le=ue(Object.keys,Object),Ve=xo(W,"DataView"),et=xo(W,"Map"),Fe=xo(W,"Promise"),tt=xo(W,"Set"),vt=xo(W,"WeakMap"),ot=xo(Object,"create"),Ne=pa(Ve),Me=pa(et),Ye=pa(Fe),xt=pa(tt),nt=pa(vt),bt=De?De.prototype:void 0,en=bt?bt.valueOf:void 0;function Bt(Y){var re=-1,he=Y==null?0:Y.length;for(this.clear();++re<he;){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 he=re[Y];return he===r?void 0:he}return ye.call(re,Y)?re[Y]:void 0}function $e(Y){var re=this.__data__;return ot?re[Y]!==void 0:ye.call(re,Y)}function Je(Y,re){var he=this.__data__;return this.size+=this.has(Y)?0:1,he[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,he=Y==null?0:Y.length;for(this.clear();++re<he;){var Ee=Y[re];this.set(Ee[0],Ee[1])}}function on(){this.__data__=[],this.size=0}function Gt(Y){var re=this.__data__,he=ei(re,Y);if(he<0)return!1;var Ee=re.length-1;return he==Ee?re.pop():mt.call(re,he,1),--this.size,!0}function Be(Y){var re=this.__data__,he=ei(re,Y);return he<0?void 0:re[he][1]}function ze(Y){return ei(this.__data__,Y)>-1}function ht(Y,re){var he=this.__data__,Ee=ei(he,Y);return Ee<0?(++this.size,he.push([Y,re])):he[Ee][1]=re,this}St.prototype.clear=on,St.prototype.delete=Gt,St.prototype.get=Be,St.prototype.has=ze,St.prototype.set=ht;function Dt(Y){var re=-1,he=Y==null?0:Y.length;for(this.clear();++re<he;){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 he=Mi(this,Y),Ee=he.size;return he.set(Y,re),this.size+=he.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,he=Y==null?0:Y.length;for(this.__data__=new Dt;++re<he;)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 Ae(Y){var re=this.__data__,he=re.delete(Y);return this.size=re.size,he}function Rr(Y){return this.__data__.get(Y)}function da(Y){return this.__data__.has(Y)}function bo(Y,re){var he=this.__data__;if(he instanceof St){var Ee=he.__data__;if(!et||Ee.length<n-1)return Ee.push([Y,re]),this.size=++he.size,this;he=this.__data__=new Dt(Ee)}return he.set(Y,re),this.size=he.size,this}Ct.prototype.clear=ua,Ct.prototype.delete=Ae,Ct.prototype.get=Rr,Ct.prototype.has=da,Ct.prototype.set=bo;function yo(Y,re){var he=nu(Y),Ee=!he&&ZT(Y),Kt=!he&&!Ee&&Wh(Y),dt=!he&&!Ee&&!Kt&&S1(Y),sn=he||Ee||Kt||dt,bn=sn?J(Y.length,String):[],_n=bn.length;for(var tn in Y)ye.call(Y,tn)&&!(sn&&(tn=="length"||Kt&&(tn=="offset"||tn=="parent")||dt&&(tn=="buffer"||tn=="byteLength"||tn=="byteOffset")||HT(tn,_n)))&&bn.push(tn);return bn}function ei(Y,re){for(var he=Y.length;he--;)if(x1(Y[he][0],re))return he;return-1}function Qc(Y,re,he){var Ee=re(Y);return nu(Y)?Ee:se(Ee,he(Y))}function ti(Y){return Y==null?Y===void 0?T:y:ut&&ut in Object(Y)?WT(Y):GT(Y)}function Hs(Y){return qs(Y)&&ti(Y)==s}function fa(Y,re,he,Ee,Kt){return Y===re?!0:Y==null||re==null||!qs(Y)&&!qs(re)?Y!==Y&&re!==re:Vs(Y,re,he,Ee,fa,Kt)}function Vs(Y,re,he,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||S1(Y)?Dn(Y,re,he,Ee,Kt,dt):Bh(Y,re,_n,he,Ee,Kt,dt);if(!(he&i)){var ir=Qn&&ye.call(Y,"__wrapped__"),ar=xr&&ye.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,he,Ee,dt)}}return Sn?(dt||(dt=new Ct),zh(Y,re,he,Ee,Kt,dt)):!1}function eu(Y){if(!C1(Y)||qT(Y))return!1;var re=w1(Y)?_t:q;return re.test(pa(Y))}function ha(Y){return qs(Y)&&_1(Y.length)&&!!K[ti(Y)]}function tu(Y){if(!YT(Y))return Le(Y);var re=[];for(var he in Object(Y))ye.call(Y,he)&&he!="constructor"&&re.push(he);return re}function Dn(Y,re,he,Ee,Kt,dt){var sn=he&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=he&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(!X(re,function(ni,ma){if(!oe(Sn,ma)&&(ir===ni||Kt(ir,ni,he,Ee,dt)))return Sn.push(ma)})){xr=!1;break}}else if(!(ir===ar||Kt(ir,ar,he,Ee,dt))){xr=!1;break}}return dt.delete(Y),dt.delete(re),xr}function Bh(Y,re,he,Ee,Kt,dt,sn){switch(he){case O: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 x1(+Y,+re);case f:return Y.name==re.name&&Y.message==re.message;case x:case E:return Y==re+"";case m:var bn=de;case S:var _n=Ee&i;if(bn||(bn=Se),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,he,Ee,Kt,dt){var sn=he&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:ye.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 T1=sn?Ee(ma,ni,Sn,re,Y,dt):Ee(ni,ma,Sn,Y,re,dt);if(!(T1===void 0?ni===ma||Kt(ni,ma,he,Ee,dt):T1)){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,JT,UT)}function Mi(Y,re){var he=Y.__data__;return VT(re)?he[typeof re=="string"?"string":"hash"]:he.map}function xo(Y,re){var he=ge(Y,re);return eu(he)?he:void 0}function WT(Y){var re=ye.call(Y,ut),he=Y[ut];try{Y[ut]=void 0;var Ee=!0}catch{}var Kt=Ze.call(Y);return Ee&&(re?Y[ut]=he:delete Y[ut]),Kt}var UT=Rt?function(Y){return Y==null?[]:(Y=Object(Y),Z(Rt(Y),function(re){return Ue.call(Y,re)}))}:QT,Oi=ti;(Ve&&Oi(new Ve(new ArrayBuffer(1)))!=O||et&&Oi(new et)!=m||Fe&&Oi(Fe.resolve())!=w||tt&&Oi(new tt)!=S||vt&&Oi(new vt)!=R)&&(Oi=function(Y){var re=ti(Y),he=re==_?Y.constructor:void 0,Ee=he?pa(he):"";if(Ee)switch(Ee){case Ne:return O;case Me:return m;case Ye:return w;case xt:return S;case nt:return R}return re});function HT(Y,re){return re=re??o,!!re&&(typeof Y=="number"||G.test(Y))&&Y>-1&&Y%1==0&&Y<re}function VT(Y){var re=typeof Y;return re=="string"||re=="number"||re=="symbol"||re=="boolean"?Y!=="__proto__":Y===null}function qT(Y){return!!Pe&&Pe in Y}function YT(Y){var re=Y&&Y.constructor,he=typeof re=="function"&&re.prototype||we;return Y===he}function GT(Y){return Ze.call(Y)}function pa(Y){if(Y!=null){try{return _e.call(Y)}catch{}try{return Y+""}catch{}}return""}function x1(Y,re){return Y===re||Y!==Y&&re!==re}var ZT=Hs(function(){return arguments}())?Hs:function(Y){return qs(Y)&&ye.call(Y,"callee")&&!Ue.call(Y,"callee")},nu=Array.isArray;function KT(Y){return Y!=null&&_1(Y.length)&&!w1(Y)}var Wh=Xe||ek;function XT(Y,re){return fa(Y,re)}function w1(Y){if(!C1(Y))return!1;var re=ti(Y);return re==h||re==p||re==c||re==C}function _1(Y){return typeof Y=="number"&&Y>-1&&Y%1==0&&Y<=o}function C1(Y){var re=typeof Y;return Y!=null&&(re=="object"||re=="function")}function qs(Y){return Y!=null&&typeof Y=="object"}var S1=Q?ie(Q):ha;function JT(Y){return KT(Y)?yo(Y):tu(Y)}function QT(){return[]}function ek(){return!1}e.exports=XT})(fd,fd.exports);var WD=fd.exports,LC={exports:{}};(function(e,t){var n=function(){var r=function(x,S){var E=236,k=17,T=x,R=a[S],$=null,O=0,D=null,I=[],j={},A=function(W,F){O=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}(O),M(0,0),M(O-7,0),M(0,O-7),P(),B(),H(W,F),T>=7&&U(W),D==null&&(D=K(T,R,I)),q(D,F)},M=function(W,F){for(var z=-1;z<=7;z+=1)if(!(W+z<=-1||O<=W+z))for(var V=-1;V<=7;V+=1)F+V<=-1||O<=F+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?$[W+z][F+V]=!0:$[W+z][F+V]=!1)},L=function(){for(var W=0,F=0,z=0;z<8;z+=1){A(!0,z);var V=s.getLostPoint(j);(z==0||W>V)&&(W=V,F=z)}return F},B=function(){for(var W=8;W<O-8;W+=1)$[W][6]==null&&($[W][6]=W%2==0);for(var F=8;F<O-8;F+=1)$[6][F]==null&&($[6][F]=F%2==0)},P=function(){for(var W=s.getPatternPosition(T),F=0;F<W.length;F+=1)for(var z=0;z<W.length;z+=1){var V=W[F],N=W[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}},U=function(W){for(var F=s.getBCHTypeNumber(T),z=0;z<18;z+=1){var V=!W&&(F>>z&1)==1;$[Math.floor(z/3)][z%3+O-8-3]=V}for(var z=0;z<18;z+=1){var V=!W&&(F>>z&1)==1;$[z%3+O-8-3][Math.floor(z/3)]=V}},H=function(W,F){for(var z=R<<3|F,V=s.getBCHTypeInfo(z),N=0;N<15;N+=1){var ee=!W&&(V>>N&1)==1;N<6?$[N][8]=ee:N<8?$[N+1][8]=ee:$[O-15+N][8]=ee}for(var N=0;N<15;N+=1){var ee=!W&&(V>>N&1)==1;N<8?$[8][O-N-1]=ee:N<9?$[8][15-N-1+1]=ee:$[8][15-N-1]=ee}$[O-8][8]=!W},q=function(W,F){for(var z=-1,V=O-1,N=7,ee=0,Q=s.getMaskFunction(F),Z=O-1;Z>0;Z-=2)for(Z==6&&(Z-=1);;){for(var se=0;se<2;se+=1)if($[V][Z-se]==null){var X=!1;ee<W.length&&(X=(W[ee]>>>N&1)==1);var J=Q(V,Z-se);J&&(X=!X),$[V][Z-se]=X,N-=1,N==-1&&(ee+=1,N=7)}if(V+=z,V<0||O<=V){V-=z,z=-z;break}}},G=function(W,F){for(var z=0,V=0,N=0,ee=new Array(F.length),Q=new Array(F.length),Z=0;Z<F.length;Z+=1){var se=F[Z].dataCount,X=F[Z].totalCount-se;V=Math.max(V,se),N=Math.max(N,X),ee[Z]=new Array(se);for(var J=0;J<ee[Z].length;J+=1)ee[Z][J]=255&W.getBuffer()[J+z];z+=se;var ie=s.getErrorCorrectPolynomial(X),oe=c(ee[Z],ie.getLength()-1),ge=oe.mod(ie);Q[Z]=new Array(ie.getLength()-1);for(var J=0;J<Q[Z].length;J+=1){var de=J+ge.getLength()-Q[Z].length;Q[Z][J]=de>=0?ge.getAt(de):0}}for(var ue=0,J=0;J<F.length;J+=1)ue+=F[J].totalCount;for(var Se=new Array(ue),le=0,J=0;J<V;J+=1)for(var Z=0;Z<F.length;Z+=1)J<ee[Z].length&&(Se[le]=ee[Z][J],le+=1);for(var J=0;J<N;J+=1)for(var Z=0;Z<F.length;Z+=1)J<Q[Z].length&&(Se[le]=Q[Z][J],le+=1);return Se},K=function(W,F,z){for(var V=u.getRSBlocks(W,F),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(),W)),Q.write(N)}for(var Z=0,ee=0;ee<V.length;ee+=1)Z+=V[ee].dataCount;if(N.getLengthInBits()>Z*8)throw"code length overflow. ("+N.getLengthInBits()+">"+Z*8+")";for(N.getLengthInBits()+4<=Z*8&&N.put(0,4);N.getLengthInBits()%8!=0;)N.putBit(!1);for(;!(N.getLengthInBits()>=Z*8||(N.put(E,8),N.getLengthInBits()>=Z*8));)N.put(k,8);return G(N,V)};j.addData=function(W,F){F=F||"Byte";var z=null;switch(F){case"Numeric":z=f(W);break;case"Alphanumeric":z=h(W);break;case"Byte":z=p(W);break;case"Kanji":z=m(W);break;default:throw"mode:"+F}I.push(z),D=null},j.isDark=function(W,F){if(W<0||O<=W||F<0||O<=F)throw W+","+F;return $[W][F]},j.getModuleCount=function(){return O},j.make=function(){if(T<1){for(var W=1;W<40;W++){for(var F=u.getRSBlocks(W,R),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(),W)),N.write(z)}for(var ee=0,V=0;V<F.length;V++)ee+=F[V].dataCount;if(z.getLengthInBits()<=ee*8)break}T=W}A(!1,L())},j.createTableTag=function(W,F){W=W||2,F=typeof F>"u"?W*4:F;var z="";z+='<table style="',z+=" border-width: 0px; border-style: none;",z+=" border-collapse: collapse;",z+=" padding: 0px; margin: "+F+"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: "+W+"px;",z+=" height: "+W+"px;",z+=" background-color: ",z+=j.isDark(V,N)?"#000000":"#ffffff",z+=";",z+='"/>';z+="</tr>"}return z+="</tbody>",z+="</table>",z},j.createSvgTag=function(W,F,z,V){var N={};typeof arguments[0]=="object"&&(N=arguments[0],W=N.cellSize,F=N.margin,z=N.alt,V=N.title),W=W||2,F=typeof F>"u"?W*4:F,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()*W+F*2,Q,Z,se,X,J="",ie;for(ie="l"+W+",0 0,"+W+" -"+W+",0 0,-"+W+"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(X=se*W+F,Q=0;Q<j.getModuleCount();Q+=1)j.isDark(se,Q)&&(Z=Q*W+F,J+="M"+Z+","+X+ie);return J+='" stroke="transparent" fill="black"/>',J+="</svg>",J},j.createDataURL=function(W,F){W=W||2,F=typeof F>"u"?W*4:F;var z=j.getModuleCount()*W+F*2,V=F,N=z-F;return C(z,z,function(ee,Q){if(V<=ee&&ee<N&&V<=Q&&Q<N){var Z=Math.floor((ee-V)/W),se=Math.floor((Q-V)/W);return j.isDark(se,Z)?0:1}else return 1})},j.createImgTag=function(W,F,z){W=W||2,F=typeof F>"u"?W*4:F;var V=j.getModuleCount()*W+F*2,N="";return N+="<img",N+=' src="',N+=j.createDataURL(W,F),N+='"',N+=' width="',N+=V,N+='"',N+=' height="',N+=V,N+='"',z&&(N+=' alt="',N+=te(z),N+='"'),N+="/>",N};var te=function(W){for(var F="",z=0;z<W.length;z+=1){var V=W.charAt(z);switch(V){case"<":F+="<";break;case">":F+=">";break;case"&":F+="&";break;case'"':F+=""";break;default:F+=V;break}}return F},ne=function(W){var F=1;W=typeof W>"u"?F*2:W;var z=j.getModuleCount()*F+W*2,V=W,N=z-W,ee,Q,Z,se,X,J={"██":"█","█ ":"▀"," █":"▄"," ":" "},ie={"██":"▀","█ ":"▀"," █":" "," ":" "},oe="";for(ee=0;ee<z;ee+=2){for(Z=Math.floor((ee-V)/F),se=Math.floor((ee+1-V)/F),Q=0;Q<z;Q+=1)X="█",V<=Q&&Q<N&&V<=ee&&ee<N&&j.isDark(Z,Math.floor((Q-V)/F))&&(X=" "),V<=Q&&Q<N&&V<=ee+1&&ee+1<N&&j.isDark(se,Math.floor((Q-V)/F))?X+=" ":X+="█",oe+=W<1&&ee+1>=N?ie[X]:J[X];oe+=`
|
|
245
|
-
`}return z%2&&W>0?oe.substring(0,oe.length-z-1)+Array(z+1).join("▀"):oe.substring(0,oe.length-1)};return j.createASCII=function(W,F){if(W=W||1,W<2)return ne(F);W-=1,F=typeof F>"u"?W*2:F;var z=j.getModuleCount()*W+F*2,V=F,N=z-F,ee,Q,Z,se,X=Array(W+1).join("██"),J=Array(W+1).join(" "),ie="",oe="";for(ee=0;ee<z;ee+=1){for(Z=Math.floor((ee-V)/W),oe="",Q=0;Q<z;Q+=1)se=1,V<=Q&&Q<N&&V<=ee&&ee<N&&j.isDark(Z,Math.floor((Q-V)/W))&&(se=0),oe+=se?X:J;for(Z=0;Z<W;Z+=1)ie+=oe+`
|
|
246
|
-
`}return ie.substring(0,ie.length-1)},j.renderTo2dContext=function(W,F){F=F||2;for(var z=j.getModuleCount(),V=0;V<z;V++)for(var N=0;N<z;N++)W.fillStyle=j.isDark(V,N)?"black":"white",W.fillRect(V*F,N*F,F,F)},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),R=function(){var B=T.read();if(B==-1)throw"eof";return B},$=0,O={};;){var D=T.read();if(D==-1)break;var I=R(),j=R(),A=R(),M=String.fromCharCode(D<<8|I),L=j<<8|A;O[M]=L,$+=1}if($!=S)throw $+" != "+S;return O}(),k=63;return function(T){for(var R=[],$=0;$<T.length;$+=1){var O=T.charCodeAt($);if(O<128)R.push(O);else{var D=E[T.charAt($)];typeof D=="number"?(D&255)==D?R.push(D):(R.push(D>>>8),R.push(D&255)):R.push(k)}}return R}};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={},R=function($){for(var O=0;$!=0;)O+=1,$>>>=1;return O};return T.getBCHTypeInfo=function($){for(var O=$<<10;R(O)-R(S)>=0;)O^=S<<R(O)-R(S);return($<<10|O)^k},T.getBCHTypeNumber=function($){for(var O=$<<12;R(O)-R(E)>=0;)O^=E<<R(O)-R(E);return $<<12|O},T.getPatternPosition=function($){return x[$-1]},T.getMaskFunction=function($){switch($){case o.PATTERN000:return function(O,D){return(O+D)%2==0};case o.PATTERN001:return function(O,D){return O%2==0};case o.PATTERN010:return function(O,D){return D%3==0};case o.PATTERN011:return function(O,D){return(O+D)%3==0};case o.PATTERN100:return function(O,D){return(Math.floor(O/2)+Math.floor(D/3))%2==0};case o.PATTERN101:return function(O,D){return O*D%2+O*D%3==0};case o.PATTERN110:return function(O,D){return(O*D%2+O*D%3)%2==0};case o.PATTERN111:return function(O,D){return(O*D%3+(O+D)%2)%2==0};default:throw"bad maskPattern:"+$}},T.getErrorCorrectPolynomial=function($){for(var O=c([1],0),D=0;D<$;D+=1)O=O.multiply(c([1,l.gexp(D)],0));return O},T.getLengthInBits=function($,O){if(1<=O&&O<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(O<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(O<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:"+O},T.getLostPoint=function($){for(var O=$.getModuleCount(),D=0,I=0;I<O;I+=1)for(var j=0;j<O;j+=1){for(var A=0,M=$.isDark(I,j),L=-1;L<=1;L+=1)if(!(I+L<0||O<=I+L))for(var B=-1;B<=1;B+=1)j+B<0||O<=j+B||L==0&&B==0||M==$.isDark(I+L,j+B)&&(A+=1);A>5&&(D+=3+A-5)}for(var I=0;I<O-1;I+=1)for(var j=0;j<O-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)&&(D+=3)}for(var I=0;I<O;I+=1)for(var j=0;j<O-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)&&(D+=40);for(var j=0;j<O;j+=1)for(var I=0;I<O-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)&&(D+=40);for(var U=0,j=0;j<O;j+=1)for(var I=0;I<O;I+=1)$.isDark(I,j)&&(U+=1);var H=Math.abs(100*U/O/O-50)/5;return D+=H*10,D},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 R=new Array(x.length-T+S),$=0;$<x.length-T;$+=1)R[$]=x[$+T];return R}(),k={};return k.getAt=function(T){return E[T]},k.getLength=function(){return E.length},k.multiply=function(T){for(var R=new Array(k.getLength()+T.getLength()-1),$=0;$<k.getLength();$+=1)for(var O=0;O<T.getLength();O+=1)R[$+O]^=l.gexp(l.glog(k.getAt($))+l.glog(T.getAt(O)));return c(R,0)},k.mod=function(T){if(k.getLength()-T.getLength()<0)return k;for(var R=l.glog(k.getAt(0))-l.glog(T.getAt(0)),$=new Array(k.getLength()),O=0;O<k.getLength();O+=1)$[O]=k.getAt(O);for(var O=0;O<T.getLength();O+=1)$[O]^=l.gexp(l.glog(T.getAt(O))+R);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,R){var $={};return $.totalCount=T,$.dataCount=R,$},E={},k=function(T,R){switch(R){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,R){var $=k(T,R);if(typeof $>"u")throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+R;for(var O=$.length/3,D=[],I=0;I<O;I+=1)for(var j=$[I*3+0],A=$[I*3+1],M=$[I*3+2],L=0;L<j;L+=1)D.push(S(A,M));return D},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 R=0;R<T;R+=1)E.putBit((k>>>T-R-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 O=E,D=0;D+2<O.length;)$.put(T(O.substring(D,D+3)),10),D+=3;D<O.length&&(O.length-D==1?$.put(T(O.substring(D,D+1)),4):O.length-D==2&&$.put(T(O.substring(D,D+2)),7))};var T=function($){for(var O=0,D=0;D<$.length;D+=1)O=O*10+R($.charAt(D));return O},R=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(R){return E.length},k.write=function(R){for(var $=E,O=0;O+1<$.length;)R.put(T($.charAt(O))*45+T($.charAt(O+1)),11),O+=2;O<$.length&&R.put(T($.charAt(O)),6)};var T=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;if("A"<=R&&R<="Z")return R.charCodeAt(0)-65+10;switch(R){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+R}};return 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 R=0;R<E.length;R+=1)T.put(E[R],8)},k},m=function(x){var S=i.MODE_KANJI,E=r.stringToBytesFuncs.SJIS;if(!E)throw"sjis not supported.";(function(R,$){var O=E(R);if(O.length!=2||(O[0]<<8|O[1])!=$)throw"sjis not supported."})("友",38726);var k=E(x),T={};return T.getMode=function(){return S},T.getLength=function(R){return~~(k.length/2)},T.write=function(R){for(var $=k,O=0;O+1<$.length;){var D=(255&$[O])<<8|255&$[O+1];if(33088<=D&&D<=40956)D-=33088;else if(57408<=D&&D<=60351)D-=49472;else throw"illegal char at "+(O+1)+"/"+D;D=(D>>>8&255)*192+(D&255),R.put(D,13),O+=2}if(O<$.length)throw"illegal char at "+(O+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 R=0;R<T;R+=1)S.writeByte(E[R+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={},R=function(O){k+=String.fromCharCode($(O&63))},$=function(O){if(!(O<0)){if(O<26)return 65+O;if(O<52)return 97+(O-26);if(O<62)return 48+(O-52);if(O==62)return 43;if(O==63)return 47}throw"n:"+O};return T.writeByte=function(O){for(x=x<<8|O&255,S+=8,E+=1;S>=6;)R(x>>>S-6),S-=6},T.flush=function(){if(S>0&&(R(x<<6-S),x=0,S=0),E%3!=0)for(var O=3-E%3,D=0;D<O;D+=1)k+="="},T.toString=function(){return k},T},_=function(x){var S=x,E=0,k=0,T=0,R={};R.read=function(){for(;T<8;){if(E>=S.length){if(T==0)return-1;throw"unexpected end of file./"+T}var O=S.charAt(E);if(E+=1,O=="=")return T=0,-1;if(O.match(/^\s$/))continue;k=k<<6|$(O.charCodeAt(0)),T+=6}var D=k>>>T-8&255;return T-=8,D};var $=function(O){if(65<=O&&O<=90)return O-65;if(97<=O&&O<=122)return O-97+26;if(48<=O&&O<=57)return O-48+52;if(O==43)return 62;if(O==47)return 63;throw"c:"+O};return R},w=function(x,S){var E=x,k=S,T=new Array(x*S),R={};R.setPixel=function(I,j,A){T[j*E+I]=A},R.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=O(j);I.writeByte(j);for(var M=0;A.length-M>255;)I.writeByte(255),I.writeBytes(A,M,255),M+=255;I.writeByte(A.length-M),I.writeBytes(A,M,A.length-M),I.writeByte(0),I.writeString(";")};var $=function(I){var j=I,A=0,M=0,L={};return L.write=function(B,P){if(B>>>P)throw"length over";for(;A+P>=8;)j.writeByte(255&(B<<A|M)),P-=8-A,B>>>=8-A,M=0,A=0;M=B<<A|M,A=A+P},L.flush=function(){A>0&&j.writeByte(M)},L},O=function(I){for(var j=1<<I,A=(1<<I)+1,M=I+1,L=D(),B=0;B<j;B+=1)L.add(String.fromCharCode(B));L.add(String.fromCharCode(j)),L.add(String.fromCharCode(A));var P=g(),U=$(P);U.write(j,M);var H=0,q=String.fromCharCode(T[H]);for(H+=1;H<T.length;){var G=String.fromCharCode(T[H]);H+=1,L.contains(q+G)?q=q+G:(U.write(L.indexOf(q),M),L.size()<4095&&(L.size()==1<<M&&(M+=1),L.add(q+G)),q=G)}return U.write(L.indexOf(q),M),U.write(A,M),U.flush(),P.toByteArray()},D=function(){var I={},j=0,A={};return A.add=function(M){if(A.contains(M))throw"dup key:"+M;I[M]=j,j+=1},A.size=function(){return j},A.indexOf=function(M){return I[M]},A.contains=function(M){return typeof I[M]<"u"},A};return R},C=function(x,S,E){for(var k=w(x,S),T=0;T<S;T+=1)for(var R=0;R<x;R+=1)k.setPixel(R,T,E(R,T));var $=g();k.write($);for(var O=y(),D=$.toByteArray(),I=0;I<D.length;I+=1)O.writeByte(D[I]);return O.flush(),"data:image/gif;base64,"+O};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})})(LC);var UD=LC.exports,HD=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(C0,"__esModule",{value:!0});exports.QRCode_1=C0.QRCode=void 0;var VD=WD,qD=UD,fp=v,YD=function(e){HD(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!VD(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=qD(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*_,R=S.getModuleCount(),$=y/R,O=window.devicePixelRatio||1;E.height=E.width=T*O,k.scale(O,O),k.fillStyle=s,k.fillRect(0,0,T,T);var D=_,I=[{row:0,col:0},{row:0,col:R-7},{row:R-7,col:0}];if(k.strokeStyle=l,h==="dots"){k.fillStyle=l;for(var j=$/2,A=0;A<R;A++)for(var M=0;M<R;M++)S.isDark(A,M)&&!this.isInPositioninZone(A,M,I)&&(k.beginPath(),k.arc(Math.round(M*$)+j+D,Math.round(A*$)+j+D,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<R;A++)for(var M=0;M<R;M++)if(S.isDark(A,M)&&!this.isInPositioninZone(A,M,I)){var L=[!1,!1,!1,!1];A>0&&!S.isDark(A-1,M)&&M>0&&!S.isDark(A,M-1)&&(L[0]=!0),A>0&&!S.isDark(A-1,M)&&M<R-1&&!S.isDark(A,M+1)&&(L[1]=!0),A<R-1&&!S.isDark(A+1,M)&&M<R-1&&!S.isDark(A,M+1)&&(L[2]=!0),A<R-1&&!S.isDark(A+1,M)&&M>0&&!S.isDark(A,M-1)&&(L[3]=!0);var B=Math.ceil((M+1)*$)-Math.floor(M*$),P=Math.ceil((A+1)*$)-Math.floor(A*$);k.fillStyle=l,k.beginPath(),k.arc(Math.round(M*$)+j+D,Math.round(A*$)+j+D,j,0,2*Math.PI,!1),k.closePath(),k.fill(),L[0]||k.fillRect(Math.round(M*$)+D,Math.round(A*$)+D,B/2,P/2),L[1]||k.fillRect(Math.round(M*$)+D+Math.floor(B/2),Math.round(A*$)+D,B/2,P/2),L[2]||k.fillRect(Math.round(M*$)+D+Math.floor(B/2),Math.round(A*$)+D+Math.floor(P/2),B/2,P/2),L[3]||k.fillRect(Math.round(M*$)+D,Math.round(A*$)+D+Math.floor(P/2),B/2,P/2)}}else for(var A=0;A<R;A++)for(var M=0;M<R;M++)if(S.isDark(A,M)&&!this.isInPositioninZone(A,M,I)){k.fillStyle=l;var B=Math.ceil((M+1)*$)-Math.floor(M*$),P=Math.ceil((A+1)*$)-Math.floor(A*$);k.fillRect(Math.round(M*$)+D,Math.round(A*$)+D,B,P)}for(var U=0;U<3;U++){var H=I[U],A=H.row,M=H.col,q=p,G=void 0;Array.isArray(q)&&(q=q[U]),typeof q=="number"&&(q=[q,q,q,q]),m?Array.isArray(m)?G=m[U]:G=m:G=l,this.drawPositioningPattern(k,$,D,A,M,G,q)}if(c){var K=new Image;o&&(K.crossOrigin="Anonymous"),K.onload=function(te){k.save();var ne=w||y*.2,W=C||ne,F=(y-ne)/2,z=(y-W)/2;if(f||x){k.beginPath(),k.strokeStyle=s,k.fillStyle=s;var V=ne+2*x,N=W+2*x,ee=F+D-x,Q=z+D-x;if(g==="circle"){var Z=ee+V/2,se=Q+N/2;k.ellipse(Z,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,F+D,z+D,ne,W),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=C0.QRCode=YD;const GD="_floating-label_3xm9u_1",ZD="_without-label_3xm9u_21",KD="_floating-label-check_3xm9u_184",hp={floatingLabel:GD,withoutLabel:ZD,floatingLabelCheck:KD},XD=e=>{const t=Re.c(3),{hint:n,children:r}=e;let i;return t[0]!==r||t[1]!==n?(i=n?b.jsx(u0,{text:n,placement:"top",children:r}):r,t[0]=r,t[1]=n,t[2]=i):i=t[2],i},ks=({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:ce("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:ce("luminus-floating-label-check",hp.floatingLabelCheck),children:n}):b.jsx(XD,{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:ce(`luminus-floating-label ${r??""}`,hp.floatingLabel,{[o??""]:o},{[hp.withoutLabel]:d.withoutLabel}),children:n})})};ks.displayName="FloatingLabelInput";const JD="_row-label-input_i295l_1",QD="_label_i295l_4",eI="_input-container_i295l_9",tI="_keep-check-label_i295l_132",nI="_is-invalid_i295l_160",Qs={rowLabelInput:JD,label:QD,inputContainer:eI,keepCheckLabel:tI,isInvalid:nI},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:ce("label col-6",{"col-12":l},Qs.label),children:b.jsxs(mn,{variant:"form-label",className:ce("d-flex gap-1 align-items-center",o?"text-danger":""),children:[d.label,r?b.jsx("span",{className:ce("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:ce("luminus-row-label row gx-0 gy-0",{"is-invalid":o},{[Qs.isInvalid]:o},{[a??""]:a},{"d-none":t},Qs.rowLabelInput),children:[u?b.jsx(u0,{text:u,placement:"top",children:h}):h,b.jsx("div",{className:ce("input-container",Qs.inputContainer,{"col-6":!d.withoutLabel&&!l},{"col-12":d.withoutLabel||l},{[Qs.keepCheckLabel]:s},{[c??""]:c}),children:n})]})};ki.displayName="RowLabelInput";const S0=e=>{const t=Re.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};S0.displayName="NoInputContainer";const vf=e=>{const t=Re.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},FC=e=>{const t=Re.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?ks: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 O;a&&a(((O=$.target)==null?void 0:O.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 R;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?(R=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]=R):R=t[22],R},BC=({InputContainer:e=ks,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,U,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,R]=v.useState((n==null?void 0:n.toString())??""),$=v.useCallback(q=>{const G=q;r&&r(S?G==null||G===""?null:Number(G):G||null)},[S,r]),O=v.useCallback(q=>{var K;const G=(K=q.target)==null?void 0:K.value;if(!i){$(G);return}R(G),k.current!==null&&window.clearTimeout(k.current),k.current=window.setTimeout(()=>{$(G)},i)},[i,$]),D=v.useMemo(()=>{if(C!==void 0)return q=>{q.key==="Enter"&&C&&C()}},[C]);v.useEffect(()=>{R(n===null?"":n.toString())},[n]);const[I,j]=v.useState(!1),A=w0(t,n?n.toString()??null:null,I),M=v.useRef(null),L=(((P=M.current)==null?void 0:P.scrollWidth)??0)>(((U=M.current)==null?void 0:U.clientWidth)??0),B=(H=M.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:O,className:p??"",hidden:c,disabled:u??!1,list:h,onFocus:q=>{j(!0),!_&&q.target.select()},onBlur:()=>j(!1),onKeyDown:D,step:m,minLength:g,maxLength:y,autoComplete:x,ref:M}),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(Cs,{})})}),L?b.jsx("div",{className:"luminus-overflow-tooltip",style:{opacity:0,position:"fixed",top:((B==null?void 0:B.top)??0)+((B==null?void 0:B.height)??0),left:(B==null?void 0:B.left)??0},children:i?T:(n==null?void 0:n.toString())??""}):null]})},bf=e=>{const t=Re.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},zC=({InputContainer:e=ks,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),[R,$]=v.useState(""),O=v.useCallback(B=>{$(B)},[]),D=v.useMemo(()=>n.find(B=>B.id===t)??null,[n,t]),I=v.useCallback(B=>{var P;return B===null?"":!B.name||B.name.length===0?((P=B.id)==null?void 0:P.toString())??"":f?`${B.name} (${B.id})`:B.name},[f]),j=v.useMemo(()=>{const B=n?[...n]:[];return p!==void 0&&t!==void 0&&t!==null&&(B.some(P=>P.id===t)||B.push({id:t,name:p})),B.map(P=>({id:P.id,name:I(P)})).filter(P=>sf(P.name,R)).sort((P,U)=>u?0:(P.name??"").localeCompare(U.name??""))},[n,u,R,I,p,t]),A=v.useCallback(B=>{var P;r&&r((B==null?void 0:B.id)===void 0||(B==null?void 0:B.id)===null?null:o?Number(B.id):(P=B.id)==null?void 0:P.toString())},[r,o]),M=v.useCallback(B=>{T(!1),A(B)},[A]),L=v.useRef(null);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:a,label:i??"",hidden:l,inputContainerClassName:ce({"luminus-dropdown-select-open":k}),className:d,hint:g,disabled:c,children:[b.jsx(vf,{currentSelection:D,selectedItemNavigateTo:x,children:b.jsx(bf,{value:t,MiniDetailComponent:w,miniDetailPlacement:C,children:b.jsxs(Kn.Select,{ref:L,size:s,value:t??"",onMouseDown:B=>{B.currentTarget.focus(),B.preventDefault()},onClick:()=>{!c&&T(!0)},onChange:()=>{},className:ce("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(D)})]})})}),L.current&&b.jsx(kf,{show:k,onCancel:()=>T(!1),items:j,currentSelection:D??null,onSelectionChange:M,onSearchQueryChange:O,texts:E,disabled:c,inputRef:L,autoHideSearch:!0,allItemsLength:n.length,itemsNameWidth:m,addNewOptionPath:y,refreshOptions:_,noRemoveButton:S})]})})},WC=({InputContainer:e=ks,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:R,customEllipsisOptions:$})=>{const[O,D]=v.useState(!1),I=v.useCallback(P=>{s&&s(P)},[s]),j=v.useCallback(P=>{D(!1),I(P)},[I]),A=v.useRef(null),M=n!==void 0,L=M&&o!==null,B=v.useMemo(()=>{var P,U;return m?((P=o==null?void 0:o.id)==null?void 0:P.toString())??"":o!=null&&o.name&&o.name.length>0?o.name:((U=o==null?void 0:o.id)==null?void 0:U.toString())??""},[o,m]);return b.jsx(b.Fragment,{children:b.jsxs(e,{withoutLabel:c,label:l??"",hidden:h,inputContainerClassName:ce({"luminus-dropdown-select-open":O}),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:A,size:u,value:(o==null?void 0:o.id)??"",onMouseDown:P=>{P.currentTarget.focus(),P.preventDefault()},onClick:()=>{!M&&!p&&D(!0)},onChange:()=>{},className:ce("w-100",{"luminus-dropdown-picker-disabled":p,"luminus-dropdown-picker-link":L}),hidden:h,children:[b.jsx("option",{value:""}),o&&b.jsx("option",{value:o.id??void 0,children:B})]})}),g||!p&&M?b.jsxs("div",{className:"custom-picker-button",children:[!g&&!p&&M&&b.jsx(sa,{size:"sm",color:"secondary",onClick:P=>{P.preventDefault(),P.stopPropagation(),D(!0)},children:w??b.jsx(d4,{})}),g??null]}):null]}),A.current&&b.jsx(kf,{show:O,onCancel:()=>D(!1),items:t,currentSelection:o,onSelectionChange:j,onSearchQueryChange:r,texts:i,itemsNameWidth:d,additionalColumns:f,isLoading:a,disabled:p,inputRef:A,archiveColumn:_,displayIdAsName:m,addNewOptionPath:x,refreshOptions:S,suggestedItems:T,suggestedItemsTitle:R,customEllipsisOptions:$})]})})};function rI(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 iI(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 aI(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 oI(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 UC(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 sI(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 lI(e){return typeof e=="number"&&isNaN(e)}function HC(e){return Vo(e)||lI(e)||typeof e=="number"&&!isFinite(e)}function VC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function cI(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 uI(e,t,n){var r=cI(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 dI(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 T0(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 fI(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 qC(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function Vb(e,t){return Array(t+1).join(e)}function YC(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."+Vb("0",Math.abs(o))+i:o>=s?i=i+Vb("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function qb(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=T0(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=qC(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 GC=sI(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}}}),hI=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function pI(e,t,n){return Math.min(Math.max(e,t),n)}function pp(e){return Math.max(e.selectionStart,e.selectionEnd)}function mI(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function gI(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function vI(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function bI(e,t,n,r,i,a,o){o===void 0&&(o=vI);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 Yb(e,t,n,r){var i=e.length;if(t=pI(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 yI(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 ZC(e,t,n,r,i,a){a===void 0&&(a=zi);var o=dI(function(p,m){var g,y;return HC(p)?(y="",g=""):typeof p=="number"||m?(y=typeof p=="number"?YC(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 xI(e){return e.replace(/[^0-9]/g,"")}function wI(e){return e}function _I(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=wI);var s=e.removeFormatting;s===void 0&&(s=xI);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&&(_=yI);var w=e.isValidInputCharacter;w===void 0&&(w=Kl);var C=e.isCharacterSame,x=UC(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=ZC(y,l,!!c,o,s,u),E=S[0],k=E.formattedValue,T=E.numAsString,R=S[1],$=v.useRef(),O=v.useRef({formattedValue:k,numAsString:T}),D=function(X,J){O.current={formattedValue:X.formattedValue,numAsString:X.value},R(X,J)},I=v.useState(!1),j=I[0],A=I[1],M=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 B=o,P=function(X,J){var ie=parseFloat(J);return{formattedValue:X,value:J,floatValue:isNaN(ie)?void 0:ie}},U=function(X,J,ie){X.selectionStart===0&&X.selectionEnd===X.value.length||(Ta(X,J),L.current.setCaretTimeout=setTimeout(function(){X.value===ie&&X.selectionStart!==J&&Ta(X,J)},0))},H=function(X,J,ie){return Yb(X,J,_(X),ie)},q=function(X,J,ie){var oe=_(J),ge=bI(J,k,X,ie,oe,w,C);return ge=Yb(J,ge,oe),ge},G=function(X){var J=X.formattedValue;J===void 0&&(J="");var ie=X.input,oe=X.source,ge=X.event,de=X.numAsString,ue;if(ie){var Se=X.inputValue||ie.value,le=pp(ie);ie.value=J,ue=q(Se,J,le),ue!==void 0&&U(ie,ue,J)}J!==k&&D(P(J,de),{event:ge,source:oe})};v.useEffect(function(){var X=O.current,J=X.formattedValue,ie=X.numAsString;(k!==J||T!==ie)&&D(P(k,T),{event:void 0,source:Zl.props})},[k,T]);var K=M.current?pp(M.current):void 0,te=typeof window<"u"?v.useLayoutEffect:v.useEffect;te(function(){var X=M.current;if(k!==O.current.formattedValue&&X){var J=q(O.current.formattedValue,k,K);X.value=k,U(X,J,k)}},[k]);var ne=function(X,J,ie){var oe=J.target,ge=$.current?hI($.current,oe.selectionEnd):GC(k,X),de=Object.assign(Object.assign({},ge),{lastValue:k}),ue=s(X,de),Se=B(ue);if(ue=s(Se,void 0),d&&!d(P(Se,ue))){var le=J.target,fe=pp(le),we=q(X,k,fe);return le.value=k,U(le,we,k),!1}return G({formattedValue:Se,numAsString:ue,inputValue:X,event:J,source:ie,input:J.target}),!0},W=function(X,J){J===void 0&&(J=0);var ie=X.selectionStart,oe=X.selectionEnd;$.current={selectionStart:ie,selectionEnd:oe+J}},F=function(X){var J=X.target,ie=J.value,oe=ne(ie,X,Zl.event);oe&&f(X),$.current=void 0},z=function(X){var J=X.target,ie=X.key,oe=J.selectionStart,ge=J.selectionEnd,de=J.value;de===void 0&&(de="");var ue;ie==="ArrowLeft"||ie==="Backspace"?ue=Math.max(oe-1,0):ie==="ArrowRight"?ue=Math.min(oe+1,de.length):ie==="Delete"&&(ue=oe);var Se=0;ie==="Delete"&&oe===ge&&(Se=1);var le=ie==="ArrowLeft"||ie==="ArrowRight";if(ue===void 0||oe!==ge&&!le){h(X),W(J,Se);return}var fe=ue;if(le){var we=ie==="ArrowLeft"?"left":"right";fe=H(de,ue,we),fe!==ue&&X.preventDefault()}else ie==="Delete"&&!w(de[ue])?fe=H(de,ue,"right"):ie==="Backspace"&&!w(de[ue])&&(fe=H(de,ue,"left"));fe!==ue&&U(J,fe,de),h(X),W(J,Se)},V=function(X){var J=X.target,ie=function(){var oe=J.selectionStart,ge=J.selectionEnd,de=J.value;if(de===void 0&&(de=""),oe===ge){var ue=H(de,oe);ue!==oe&&U(J,ue,de)}};ie(),requestAnimationFrame(function(){ie()}),p(X),W(J)},N=function(X){X.persist&&X.persist();var J=X.target,ie=X.currentTarget;M.current=J,L.current.focusTimeout=setTimeout(function(){var oe=J.selectionStart,ge=J.selectionEnd,de=J.value;de===void 0&&(de="");var ue=H(de,oe);ue!==oe&&!(oe===0&&ge===de.length)&&U(J,ue,de),m(Object.assign(Object.assign({},X),{currentTarget:ie}))},0)},ee=function(X){M.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),g(X)},Q=j&&mI()?"numeric":void 0,Z=Object.assign({inputMode:Q},x,{type:t,value:k,onChange:F,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({},Z,{ref:a}))}return v.createElement("input",Object.assign({},Z,{ref:a}))}function Gb(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=T0(e,o),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=qC(p,n,!!r)),c&&(h=uI(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 CI(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 SI(e,t){return new RegExp("(^-)|[0-9]|"+VC(e),"g")}function TI(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function kI(e,t,n){var r;t===void 0&&(t=gI(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(M,L,B){var P=!1,U=!1;a.startsWith("-")?P=!1:M.startsWith("--")?(P=!1,U=!0):o.startsWith("-")&&M.length===o.length?P=!1:M[0]==="-"&&(P=!0);var H=P?1:0;return U&&(H=2),H&&(M=M.substring(H),L-=H,B-=H),{value:M,start:L,end:B,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 R=e.length,$=e.length-o.length;e.endsWith(o)?R=$:(d>$||d>e.length-o.length)&&(R=d),e=e.substring(0,R),e=CI(w?"-"+e:e,i),e=(e.match(SI(p))||[]).join("");var O=e.indexOf(p);e=e.replace(new RegExp(VC(p),"g"),function(M,L){return L===O?".":""});var D=T0(e,i),I=D.beforeDecimal,j=D.afterDecimal,A=D.addNegation;return c.end-c.start<l.end-l.start&&I===""&&m&&!parseFloat(j)&&(e=A?"-":""),e}function $I(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 EI(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 MI(e){e=EI(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=UC(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 Gb(A,e)},w=function(A,M){return kI(A,M,e)},C=Vo(d)?u:d,x=f??TI(C,c,t);Vo(d)?Vo(u)||(x=x||typeof u=="number"):x=x||typeof d=="number";var S=function(A){return HC(A)?A:(typeof A=="number"&&(A=YC(A)),x&&typeof s=="number"?qb(A,s,!!l):A)},E=ZC(S(d),S(u),!!x,_,w,h),k=E[0],T=k.numAsString,R=k.formattedValue,$=E[1],O=function(A){var M=A.target,L=A.key,B=M.selectionStart,P=M.selectionEnd,U=M.value;if(U===void 0&&(U=""),(L==="Backspace"||L==="Delete")&&P<c.length){A.preventDefault();return}if(B!==P){i(A);return}L==="Backspace"&&U[0]==="-"&&B===c.length+1&&n&&Ta(M,1),s&&l&&(L==="Backspace"&&U[B-1]===g?(Ta(M,B-1),A.preventDefault()):L==="Delete"&&U[B]===g&&A.preventDefault()),y!=null&&y.includes(L)&&U[B]===g&&Ta(M,B+1);var H=o===!0?",":o;L==="Backspace"&&U[B-1]===H&&Ta(M,B-1),L==="Delete"&&U[B]===H&&Ta(M,B+1),i(A)},D=function(A){var M=T;if(M.match(/\d/g)||(M=""),r||(M=fI(M)),l&&s&&(M=qb(M,s,l)),M!==T){var L=Gb(M,e);$({formattedValue:L,value:M,floatValue:parseFloat(M)},{event:A,source:Zl.event})}a(A)},I=function(A){return A===g?!0:Kl(A)},j=function(A){var M=A.currentValue,L=A.lastValue,B=A.formattedValue,P=A.currentValueIndex,U=A.formattedValueIndex,H=M[P],q=B[U],G=GC(L,M),K=G.to,te=function(ne){return w(ne).indexOf(".")+c.length};return d===0&&l&&s&&M[K.start]===g&&te(M)<P&&te(B)>U?!1:P>=K.start&&P<K.end&&y&&y.includes(H)&&q===g?!0:H===q};return Object.assign(Object.assign({},p),{value:R,valueIsNumericString:!1,isValidInputCharacter:I,isCharacterSame:j,onValueChange:$,format:_,removeFormatting:w,getCaretBoundary:function(A){return $I(A,e)},onKeyDown:O,onBlur:D})}function KC(e){var t=MI(e);return v.createElement(_I,Object.assign({},t))}const XC=e=>{const t=Re.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:R,onBlur:$,ref:O,value:D,name:I}=E,j=c||w;let A,M;t[4]!==y?(A=()=>{y&&x(!0)},M=[y],t[4]=y,t[5]=A,t[6]=M):(A=t[5],M=t[6]),v.useEffect(A,M);const L=T!==void 0;let B;t[7]!==R||t[8]!==f||t[9]!==a||t[10]!==g||t[11]!==C?(B=V=>{const N=V.target.checked??!1;R(N),a&&a.forEach(ee=>g(ee,null,{shouldDirty:!0,shouldValidate:C})),f&&f(N)},t[7]=R,t[8]=f,t[9]=a,t[10]=g,t[11]=C,t[12]=B):B=t[12];const P=B;let U;t[13]!==$?(U=()=>{$()},t[13]=$,t[14]=U):U=t[14];const H=U,q=i??"",G=`check-${r}`,K=o??"checkbox",te=`${i}${s?" *":""}`,ne=D??!1;let W;t[15]!==j||t[16]!==I||t[17]!==O||t[18]!==H||t[19]!==P||t[20]!==l||t[21]!==L||t[22]!==G||t[23]!==K||t[24]!==te||t[25]!==ne?(W=b.jsx(Kn.Check,{id:G,type:K,label:te,name:I,checked:ne,onChange:P,onBlur:H,ref:O,isInvalid:L,hidden:l,disabled:j,className:"w-100"}),t[15]=j,t[16]=I,t[17]=O,t[18]=H,t[19]=P,t[20]=l,t[21]=L,t[22]=G,t[23]=K,t[24]=te,t[25]=ne,t[26]=W):W=t[26];let F;t[27]!==T?(F=T&&b.jsx(oo,{message:T.message}),t[27]=T,t[28]=F):F=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]!==W||t[37]!==F||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:[W,F]}),t[29]=p,t[30]=j,t[31]=h,t[32]=l,t[33]=d,t[34]=L,t[35]=s,t[36]=W,t[37]=F,t[38]=q,t[39]=u,t[40]=z):z=t[40],z},k0=e=>{const t=Re.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:R,fieldState:$}=At.useController(T),{value:O,onChange:D,onBlur:I,ref:j,name:A}=R,{error:M}=$,[L,B]=v.useState(!1);let P;if(t[4]!==d||t[5]!==o){let oe;t[7]!==d?(oe=(ge,de)=>d?0:(ge.name??"").localeCompare(de.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 U=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,G=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]!==U||t[22]!==x?(te=[U,r,C,x],t[19]=r,t[20]=C,t[21]=U,t[22]=x,t[23]=te):te=t[23],v.useEffect(K,te);let ne,W;t[24]!==S?(ne=()=>{S&&B(!0)},W=[S],t[24]=S,t[25]=ne,t[26]=W):(ne=t[25],W=t[26]),v.useEffect(ne,W);const F=M!==void 0;let z;t[27]!==D||t[28]!==s||t[29]!==a||t[30]!==x||t[31]!==L?(z=oe=>{const ge=oe.target.value;let de;s?de=ge===""?null:parseInt(ge,10):de=ge===""?null:ge,D(de),a&&a.forEach(ue=>x(ue,null,{shouldDirty:!0,shouldValidate:L}))},t[27]=D,t[28]=s,t[29]=a,t[30]=x,t[31]=L,t[32]=z):z=t[32];const V=z,N=i??"",ee=O??"";let Q;t[33]===Symbol.for("react.memo_cache_sentinel")?(Q=b.jsx("option",{value:""}),t[33]=Q):Q=t[33];let Z;t[34]!==U?(Z=U.map(OI),t[34]=U,t[35]=Z):Z=t[35];let se;t[36]!==G||t[37]!==A||t[38]!==I||t[39]!==j||t[40]!==V||t[41]!==h||t[42]!==F||t[43]!==l||t[44]!==ee||t[45]!==Z?(se=b.jsxs(Kn.Select,{size:l,name:A,value:ee,onChange:V,onBlur:I,ref:j,isInvalid:F,hidden:h,disabled:G,className:"w-100",children:[Q,Z]}),t[36]=G,t[37]=A,t[38]=I,t[39]=j,t[40]=V,t[41]=h,t[42]=F,t[43]=l,t[44]=ee,t[45]=Z,t[46]=se):se=t[46];let X;t[47]!==q||t[48]!==O||t[49]!==c?(X=c&&O!=null&&b.jsx("div",{className:"luminus-input-remove-icon inset",children:b.jsx(sa,{color:"secondary",size:"sm",onClick:q,children:b.jsx(Cs,{})})}),t[47]=q,t[48]=O,t[49]=c,t[50]=X):X=t[50];let J;t[51]!==M?(J=M&&b.jsx(oo,{message:M.message}),t[51]=M,t[52]=J):J=t[52];let ie;return t[53]!==_||t[54]!==G||t[55]!==y||t[56]!==h||t[57]!==g||t[58]!==F||t[59]!==f||t[60]!==N||t[61]!==se||t[62]!==X||t[63]!==J||t[64]!==m?(ie=b.jsx(b.Fragment,{children:b.jsxs(_,{label:N,required:f,disabled:G,hidden:h,withoutLabel:m,isInvalid:F,hint:g,className:y,children:[se,X,J]})}),t[53]=_,t[54]=G,t[55]=y,t[56]=h,t[57]=g,t[58]=F,t[59]=f,t[60]=N,t[61]=se,t[62]=X,t[63]=J,t[64]=m,t[65]=ie):ie=t[65],ie};function OI(e){return b.jsx("option",{value:e.id??"",children:e.name},e.id)}const $0=e=>{const t=Re.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),[R,$]=v.useState(!1);let O;t[1]!==x||t[2]!==r?(O={name:r,control:x},t[1]=x,t[2]=r,t[3]=O):O=t[3];const{field:D,fieldState:I}=At.useController(O),{onChange:j,onBlur:A,ref:M,value:L,name:B}=D,{error:P}=I;let U;t[4]!==p?(U=p??{},t[4]=p,t[5]=U):U=t[5];let H,q,G;t[6]!==U?({onChange:q,onBlur:H,...G}=U,t[6]=U,t[7]=H,t[8]=q,t[9]=G):(H=t[7],q=t[8],G=t[9]);let K;t[10]!==l||t[11]!==r||t[12]!==S||t[13]!==R?(K=()=>{const ue=l??null,Se=ue==null||ue===""?null:ue.toString();S(r,Se,{shouldDirty:!0,shouldValidate:R})},t[10]=l,t[11]=r,t[12]=S,t[13]=R,t[14]=K):K=t[14];const te=K,ne=d||T;let W,F;t[15]!==E?(W=()=>{E&&$(!0)},F=[E],t[15]=E,t[16]=W,t[17]=F):(W=t[16],F=t[17]),v.useEffect(W,F);const z=P!==void 0;let V;t[18]!==q||t[19]!==j||t[20]!==_||t[21]!==a||t[22]!==S||t[23]!==R?(V=ue=>{const Se=ue.target.value,le=Se==null||Se===""?null:Se;j(le),a&&a.forEach(fe=>S(fe,null,{shouldDirty:!0,shouldValidate:R})),_&&_(le),q&&q(ue)},t[18]=q,t[19]=j,t[20]=_,t[21]=a,t[22]=S,t[23]=R,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,Z=L!=null&&L!=="",se=i??"",X=L??"",J=f??2;let ie;t[28]!==ne||t[29]!==B||t[30]!==M||t[31]!==Q||t[32]!==N||t[33]!==u||t[34]!==z||t[35]!==g||t[36]!==m||t[37]!==G||t[38]!==o||t[39]!==X||t[40]!==J?(ie=b.jsx(Kn.Control,{as:"textarea",name:B,size:o,value:X,onChange:N,onBlur:Q,ref:M,isInvalid:z,hidden:u,disabled:ne,rows:J,className:"w-100",minLength:m,maxLength:g,...G}),t[28]=ne,t[29]=B,t[30]=M,t[31]=Q,t[32]=N,t[33]=u,t[34]=z,t[35]=g,t[36]=m,t[37]=G,t[38]=o,t[39]=X,t[40]=J,t[41]=ie):ie=t[41];let oe;t[42]!==te||t[43]!==Z||t[44]!==s?(oe=s&&Z&&b.jsx("div",{className:"luminus-input-remove-icon",children:b.jsx(sa,{color:"secondary",size:"sm",onClick:te,children:b.jsx(Cs,{})})}),t[42]=te,t[43]=Z,t[44]=s,t[45]=oe):oe=t[45];let ge;t[46]!==P?(ge=P&&b.jsx(oo,{message:P.message}),t[46]=P,t[47]=ge):ge=t[47];let de;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]!==ge||t[59]!==h?(de=b.jsxs(C,{label:se,required:c,disabled:ne,hidden:u,withoutLabel:h,isInvalid:z,className:w,hint:y,isForTextAreaInput:!0,children:[ie,oe,ge]}),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]=ge,t[59]=h,t[60]=de):de=t[60],de},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:R}=At.useFormState(),$=ao({falseIfNotInit:!0}),{field:{value:O,onChange:D,onBlur:I,ref:j,name:A},fieldState:{error:M}}=At.useController({name:r,control:k}),[L,B]=v.useState(!1),P=v.useCallback(()=>{const Z=c??null;n==="number"?T(r,Z!==null?Number(Z):null,{shouldDirty:!0,shouldValidate:L}):T(r,(Z==null?void 0:Z.toString())??"",{shouldDirty:!0,shouldValidate:L})},[c,n,T,r,L]),U=v.useMemo(()=>f||$,[f,$]),H=M!==void 0,[q,G]=v.useState(!1),K=w0(n,O??null,q),te=v.useCallback(Z=>{const se=Z.target.value;let X=se;n==="number"?X=se===""?null:Number(se):X=se===""?null:se,D(X),s&&s.forEach(J=>T(J,null,{shouldDirty:!0,shouldValidate:L})),x&&x(X===null?null:n==="number"?X??null:X.toString())},[D,x,s,T,L,n]),ne=v.useCallback(()=>{G(!1),I()},[I]),W=v.useRef(null),F=(((V=W.current)==null?void 0:V.scrollWidth)??0)>(((N=W.current)==null?void 0:N.clientWidth)??0),z=(ee=W.current)==null?void 0:ee.getBoundingClientRect();return v.useImperativeHandle(e,()=>W.current,[W]),v.useEffect(()=>{R&&B(!0)},[R]),b.jsxs(t,{label:i,required:u,disabled:U,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:O??"",onChange:te,onBlur:ne,onFocus:Z=>{G(!0),!y&&Z.target.select()},ref:Z=>{j(Z),W.current=Z},isInvalid:H,hidden:d,disabled:U,list:p,className:"w-100",step:m,minLength:_,maxLength:w,autoComplete:E}),g&&b.jsx("div",{className:"custom-picker-button",children:g})]}),l&&O!=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(Cs,{})})}),F?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=W.current)==null?void 0:Q.value)??""}):null,M&&b.jsx(oo,{message:M.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:R}=At.useFormState(),$=ao({falseIfNotInit:!0}),{field:{value:O,ref:D,name:I},fieldState:{error:j}}=At.useController({name:n,control:k}),[A,M]=v.useState(!1),[L,B]=v.useState(!1),[P,U]=v.useState(""),H=O,q=v.useMemo(()=>t.find(N=>N.id===H)??null,[t,H]),G=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=>{M(!1),G(N)},[G]),te=v.useCallback(N=>{U(N)},[]),ne=v.useMemo(()=>c||$,[c,$]);v.useEffect(()=>{R&&B(!0)},[R]);const W=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]),F=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:W(ee)})).filter(ee=>sf(ee.name,P)).sort((ee,Q)=>d?0:(ee.name??"").localeCompare(Q.name??""))},[t,d,P,W,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:ce({"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:O??"",ref:D}),b.jsx(bf,{value:H,MiniDetailComponent:w,miniDetailPlacement:C,children:b.jsx(Kn.Select,{size:i,onMouseDown:N=>{N.currentTarget.focus(),N.preventDefault()},onClick:()=>{M(!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:W(q)})})})]}),j&&b.jsx(oo,{message:j.message}),z.current&&b.jsx(kf,{show:A,onCancel:()=>M(!1),items:F,currentSelection:q??null,onSelectionChange:K,onSearchQueryChange:te,texts:E,disabled:ne,inputRef:z,autoHideSearch:!0,allItemsLength:t.length,addNewOptionPath:y,refreshOptions:_,noRemoveButton:S})]})})},JC=({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:R}=At.useFormState(),$=ao({falseIfNotInit:!0}),{field:{value:O,onChange:D,onBlur:I,ref:j,name:A},fieldState:{error:M}}=At.useController({name:t,control:k}),[L,B]=v.useState(!1),P=v.useCallback(()=>{const G=o??null;T(t,G!==null?Number(G):null,{shouldDirty:!0,shouldValidate:L})},[o,T,t,L]),U=v.useMemo(()=>c||$,[c,$]);v.useEffect(()=>{R&&B(!0)},[R]);const H=O;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=M!==void 0;return b.jsxs(e,{label:n??"",required:s,disabled:U,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(KC,{displayType:"input",thousandSeparator:" ",decimalSeparator:",",decimalScale:g,fixedDecimalScale:y,prefix:_,suffix:w,defaultValue:"",name:A,value:O??"",placeholder:r??n,onFocus:G=>{!p&&G.target.select()},onChange:G=>{var ne,W;const K=parseFloat(((W=(ne=G.target)==null?void 0:ne.value)==null?void 0:W.replaceAll(" ","").replaceAll(",","."))??"0");i&&i.forEach(F=>T(F,null,{shouldDirty:!0,shouldValidate:L}));const te=Number.isNaN(K)?null:Number(K);D(te),S&&S(te)},onBlur:()=>I(),hidden:l,disabled:U,className:ce("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(Cs,{})})}),M&&b.jsx(oo,{message:M.message})]})},AI="_item_1dy8x_1",QC={item:AI},Ma=e=>{const t=Re.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=ce(u,QC.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},RI="_button_qhwih_1",DI={button:RI},E0=({ref:e,color:t="primary",icon:n=b.jsx(h4,{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:ce(`btn luminus-context-button text-${t} ${a??""}`,DI.button),...s,children:[n,r]}),M0=e=>{const t=Re.c(2);let n;return t[0]!==e?(n=b.jsx(as.Toggle,{...e}),t[0]=e,t[1]=n):n=t[1],n},II="_divider_1e6rk_1",jI={divider:II},Pm=e=>{const t=Re.c(4),{className:n}=e;let r;t[0]!==n?(r=ce("luminus-dropdown-divider",n,jI.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},NI="_dropdown_1lk66_1",PI={dropdown:NI},O0=e=>{const t=Re.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=ce("luminus-dropdown rounded shadow",PI.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},LI="_wrapper_1tb6d_1",FI="_controls_1tb6d_16",BI="_explorerWindow_1tb6d_20",zI="_folderList_1tb6d_28",WI="_fileList_1tb6d_35",UI="_dndText_1tb6d_61",ga={wrapper:LI,controls:FI,explorerWindow:BI,folderList:zI,fileList:WI,dndText:UI},gn=v.createContext({apiActions:{},loadDocuments(){throw new Error("DocumentsContext was not initialized.")},reducer:[{},{}],entityType:"",entityId:-1}),HI="_defaultFolder_8tlxv_1",VI="_names_8tlxv_5",qI="_folderType_8tlxv_9",mp={defaultFolder:HI,names:VI,folderType:qI},e3=e=>{const t=Re.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=ce("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=ce("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},YI=e=>{const t=Re.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=ce("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(e3,{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 GI(e){if(e.state!=="openned-modal")throw new Error('Not in "openned-modal" state!')}const t3=()=>{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}},Zb=(e,t,n)=>{if(e&&"reportValidity"in e){const r=At.get(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},n3=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Zb(r.ref,n,e):r.refs&&r.refs.forEach(i=>Zb(i,n,e))}},ZI=(e,t)=>{t.shouldUseNativeValidation&&n3(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(KI(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},KI=(e,t)=>e.some(n=>n.startsWith(t+"."));var XI=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&&n3({},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:ZI(XI(o.errors,!a.shouldUseNativeValidation&&a.criteriaMode==="all"),a)};throw o}))}catch(o){return Promise.reject(o)}}};const JI=()=>{const e=Re.c(14),{reducer:t,entityId:n,entityType:r}=v.useContext(gn),[i]=t,{zNumberRequired:a,zStringRequired:o}=mf(),{createFolder:s}=t3();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},QI=e=>{var x;const t=Re.c(38),{handleClose:n}=e,{texts:r}=v.useContext(Qt),{documents:i}=r,{reducer:a,entityType:o}=v.useContext(gn),[s]=a;if(GI(s),s.modalType!=="create-folder")throw new Error("Tried to render CreateFolderModal without create-folder modal type reducer state.");const{onSubmit:l,formMethods:c}=JI();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(k0,{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},r3=100,Kb={getEmployeeLookupUrl:"/employee/lookup"},ej=e=>{const t=Re.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=V4(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}=RC(f,p);let g;t[5]===Symbol.for("react.memo_cache_sentinel")?(g=O=>{d(O)},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(tj)?a.map(O=>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:O.name}),b.jsx(sa,{size:"sm",onClick:()=>o([...a.filter(D=>D.id!==O.id)]),children:b.jsx(l,{icon:"cancel-simple",className:"text-danger"})})]},O.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(nj))??[],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=O=>{O&&o([...a,{id:Number(O.id),name:O.name}])},t[19]=a,t[20]=o,t[21]=T):T=t[21];let R;t[22]!==S||t[23]!==k||t[24]!==T||t[25]!==x?(R=b.jsx("div",{className:"col-xs",children:b.jsx(WC,{disabled:x,InputContainer:S0,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]=R):R=t[26];let $;return t[27]!==R||t[28]!==C?($=b.jsxs("div",{className:"d-flex gap-1 align-items-center mb-1",children:[C,R]}),t[27]=R,t[28]=C,t[29]=$):$=t[29],$};function tj(e){return e}function nj(e){return{id:e.id,name:e.fullName,additionalColumns:{personalNumber:e.id}}}const rj=(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:me.custom,message:"Expiration info must be set",path:[y.find(_=>m[_]==null)??""]})}),h=At.useForm({resolver:xf(f),defaultValues:{...e,validToDate:jl(e.validToDate),expirationDate:jl(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}},ij=e=>{const t=Re.c(96),{handleClose:n,file:r,getEmployeeLookupUrl:i}=e,{texts:a}=v.useContext(Qt),{documents:o,notifCentrum:s}=a,{reducer:l}=v.useContext(gn),[c]=l;let u;t[0]!==r.recipientsList?(u=r.recipientsList??[],t[0]=r.recipientsList,t[1]=u):u=t[1];const[d,f]=v.useState(u),[h,p]=v.useState(r.expirationDate!=null),{formMethods:m,onSubmit:g}=rj(r,n);let y;t[2]!==h||t[3]!==m?(y=()=>{h||(U4(m,["expirationDate","notifDaysBeforeExpired","notifChannel","archiveOnExpired","recipients"]),m.clearErrors(),f([]))},t[2]=h,t[3]=m,t[4]=y):y=t[4];let _;t[5]!==h||t[6]!==r.archiveOnExpired||t[7]!==m?(_=[h,r.archiveOnExpired,m],t[5]=h,t[6]=r.archiveOnExpired,t[7]=m,t[8]=_):_=t[8],v.useEffect(y,_);let w,C;t[9]!==m||t[10]!==d?(w=()=>{m.setValue("recipients",d.length>0?d.map(aj).join(";"):null)},C=[m,d],t[9]=m,t[10]=d,t[11]=w,t[12]=C):(w=t[11],C=t[12]),v.useEffect(w,C);let x;t[13]!==o.editFileProperties?(x=b.jsx(Vn.Header,{closeButton:!0,children:b.jsx(Vn.Title,{children:o.editFileProperties})}),t[13]=o.editFileProperties,t[14]=x):x=t[14];let S;t[15]!==m||t[16]!==g?(S=m.handleSubmit(g),t[15]=m,t[16]=g,t[17]=S):S=t[17];let E;t[18]!==o.name?(E=b.jsx(La,{formField:"name",type:"text",label:o.name,required:!0}),t[18]=o.name,t[19]=E):E=t[19];let k;t[20]!==o.validSince?(k=b.jsx(La,{formField:"validToDate",type:"date",label:o.validSince,required:!0}),t[20]=o.validSince,t[21]=k):k=t[21];let T;t[22]!==o.category||t[23]!==c.documentTypes?(T=b.jsx(Nm,{formField:"documentTypeId",label:o.category,options:c.documentTypes,isNumber:!0,required:!0}),t[22]=o.category,t[23]=c.documentTypes,t[24]=T):T=t[24];let R;t[25]!==h||t[26]!==o.withExpirationDate?(R=b.jsx(FC,{size:"sm",InputContainer:ki,value:h,label:o.withExpirationDate,onChange:p}),t[25]=h,t[26]=o.withExpirationDate,t[27]=R):R=t[27];const $=!h;let O;t[28]!==h||t[29]!==o.expirationDate||t[30]!==$?(O=b.jsx(La,{size:"sm",formField:"expirationDate",type:"date",label:o.expirationDate,required:h,disabled:$}),t[28]=h,t[29]=o.expirationDate,t[30]=$,t[31]=O):O=t[31];const D=!h;let I;t[32]!==h||t[33]!==o.notifDaysBeforeExpired||t[34]!==D?(I=b.jsx(JC,{size:"sm",formField:"notifDaysBeforeExpired",label:o.notifDaysBeforeExpired,required:h,disabled:D}),t[32]=h,t[33]=o.notifDaysBeforeExpired,t[34]=D,t[35]=I):I=t[35];let j;t[36]===Symbol.for("react.memo_cache_sentinel")?(j={id:1,name:"Email"},t[36]=j):j=t[36];let A;t[37]!==s.dashboard?(A=[j,{id:2,name:s.dashboard}],t[37]=s.dashboard,t[38]=A):A=t[38];const M=!h;let L;t[39]!==h||t[40]!==o.notifChannel||t[41]!==A||t[42]!==M?(L=b.jsx(Nm,{formField:"notifChannel",label:o.notifChannel,size:"sm",options:A,isNumber:!0,required:h,disabled:M}),t[39]=h,t[40]=o.notifChannel,t[41]=A,t[42]=M,t[43]=L):L=t[43];const B=!h;let P;t[44]!==h||t[45]!==o.archiveOnExpired||t[46]!==B?(P=b.jsx(XC,{size:"sm",formField:"archiveOnExpired",label:o.archiveOnExpired,required:h,disabled:B}),t[44]=h,t[45]=o.archiveOnExpired,t[46]=B,t[47]=P):P=t[47];const U=`mt-2 ${h?"":"text-muted"}`;let H;t[48]!==h?(H=h&&b.jsx("span",{className:"text-danger",children:"*"}),t[48]=h,t[49]=H):H=t[49];let q;t[50]!==o.recipients||t[51]!==U||t[52]!==H?(q=b.jsxs(mn,{variant:"body",className:U,children:[o.recipients,H]}),t[50]=o.recipients,t[51]=U,t[52]=H,t[53]=q):q=t[53];let G;t[54]!==m?(G=m.getFieldState("recipients"),t[54]=m,t[55]=G):G=t[55];const K=G.error==null;let te;t[56]!==h||t[57]!==i||t[58]!==d||t[59]!==K?(te=b.jsx(ej,{canExpire:h,invalidInput:K,getEmployeeLookupUrl:i,recipients:d,setRecipients:f}),t[56]=h,t[57]=i,t[58]=d,t[59]=K,t[60]=te):te=t[60];let ne;t[61]!==O||t[62]!==I||t[63]!==L||t[64]!==P||t[65]!==q||t[66]!==te?(ne=b.jsxs(b.Fragment,{children:[O,I,L,P,q,te]}),t[61]=O,t[62]=I,t[63]=L,t[64]=P,t[65]=q,t[66]=te,t[67]=ne):ne=t[67];let W;t[68]===Symbol.for("react.memo_cache_sentinel")?(W={maxLength:r3},t[68]=W):W=t[68];let F;t[69]!==o.description?(F=b.jsx($0,{formField:"description",label:o.description,customFormControlProps:W}),t[69]=o.description,t[70]=F):F=t[70];let z;t[71]!==E||t[72]!==k||t[73]!==T||t[74]!==R||t[75]!==ne||t[76]!==F?(z=b.jsxs(Vn.Body,{children:[E,k,T,R,ne,F]}),t[71]=E,t[72]=k,t[73]=T,t[74]=R,t[75]=ne,t[76]=F,t[77]=z):z=t[77];let V;t[78]!==o.cancel||t[79]!==n?(V=b.jsx(Ya,{onClick:n,color:"secondary",variant:"outlined",children:o.cancel}),t[78]=o.cancel,t[79]=n,t[80]=V):V=t[80];let N;t[81]!==o.save?(N=b.jsx(Ya,{type:"submit",children:o.save}),t[81]=o.save,t[82]=N):N=t[82];let ee;t[83]!==V||t[84]!==N?(ee=b.jsxs(Vn.Footer,{children:[V,N]}),t[83]=V,t[84]=N,t[85]=ee):ee=t[85];let Q;t[86]!==z||t[87]!==ee||t[88]!==S?(Q=b.jsxs(Kn,{onSubmit:S,children:[z,ee]}),t[86]=z,t[87]=ee,t[88]=S,t[89]=Q):Q=t[89];let Z;t[90]!==m||t[91]!==Q?(Z=b.jsx(At.FormProvider,{...m,children:Q}),t[90]=m,t[91]=Q,t[92]=Z):Z=t[92];let se;return t[93]!==Z||t[94]!==x?(se=b.jsxs(b.Fragment,{children:[x,Z]}),t[93]=Z,t[94]=x,t[95]=se):se=t[95],se};function aj(e){return e.id}const oj=e=>{const t=Re.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(ij,{file:s,handleClose:n,getEmployeeLookupUrl:r}),t[6]=s,t[7]=r,t[8]=n,t[9]=l):l=t[9],l},sj=({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(QI,{handleClose:r});case"edit-file-properties":return b.jsx(oj,{handleClose:r,getEmployeeLookupUrl:e});default:return null}},[t.state,t.modalType]);return b.jsx(Vn,{show:t.state==="openned-modal",onHide:r,children:i})},Xb="documents_drag_image_element",hd="drop-container-highlight-class",Jb="data-drop-container-id",Qb="data-draggable-id",lj=()=>{const e=document.getElementById(Xb);if(e!==null)return e;const t=document.createElement("div");return t.id=Xb,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},A0=()=>{const e=Re.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=lj();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(Qb))==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=>({[Qb]: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(Jb))==null?void 0:x.value)??"",10);r(E,S)}},e[5]=r,e[6]=c):c=e[6];const u=c,d=uj,f=dj,h=fj;let p;e[7]!==u?(p=(y,_)=>({onDrop:u(_==null?void 0:_.onFilesDrop),onDragOver:d(),onDragEnter:f(_==null?void 0:_.ignoreInner),onDragLeave:h,[Jb]: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 cj(e){e.preventDefault(),e.stopPropagation()}function uj(){return cj}function dj(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 fj(e){e.preventDefault(),e.stopPropagation(),e.target===e.currentTarget&&(e.dataTransfer.dropEffect="none",e.currentTarget.classList.remove(hd))}function i3(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&&i3(a,t,n))return!0}return!1}function hj(e){if(e.activeFolder==="root")return!1;const t=e.foldersMap.get(e.activeFolder);return!(t!=null&&t.onlyRead)}function a3(e,t){const n=t.get(e);return n===void 0?"":n.parentId===null?n.name:`${a3(n.parentId,t)}/${n.name}`}const pj=()=>{const e=Re.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},R0=e=>{var K;const t=Re.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}=pj();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")?(_=jl(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 R;t[26]!==f?(R=b.jsx("ul",{children:f.map(mj)}),t[26]=f,t[27]=R):R=t[27];let $;t[28]!==T||t[29]!==R?($=b.jsx(Vn.Header,{closeButton:!0,children:b.jsxs("div",{children:[T,R]})}),t[28]=T,t[29]=R,t[30]=$):$=t[30];let O;t[31]!==S||t[32]!==k?(O=S.handleSubmit(k),t[31]=S,t[32]=k,t[33]=O):O=t[33];let D;t[34]!==o.documentType||t[35]!==c.documentTypes?(D=b.jsx(k0,{formField:"documentTypeId",label:o.documentType,options:c.documentTypes,isNumber:!0,required:!0}),t[34]=o.documentType,t[35]=c.documentTypes,t[36]=D):D=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:r3},t[42]=A):A=t[42];let M;t[43]!==o.description?(M=b.jsx($0,{formField:"description",label:o.description,customFormControlProps:A}),t[43]=o.description,t[44]=M):M=t[44];let L;t[45]!==D||t[46]!==I||t[47]!==j||t[48]!==M?(L=b.jsxs(Vn.Body,{children:[D,I,j,M]}),t[45]=D,t[46]=I,t[47]=j,t[48]=M,t[49]=L):L=t[49];let B;t[50]!==o.cancel||t[51]!==n?(B=b.jsx(Ya,{variant:"outlined",color:"secondary",onClick:n,children:o.cancel}),t[50]=o.cancel,t[51]=n,t[52]=B):B=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 U;t[55]!==B||t[56]!==P?(U=b.jsxs(Vn.Footer,{children:[B,P]}),t[55]=B,t[56]=P,t[57]=U):U=t[57];let H;t[58]!==O||t[59]!==L||t[60]!==U?(H=b.jsxs(Kn,{onSubmit:O,children:[L,U]}),t[58]=O,t[59]=L,t[60]=U,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 G;return t[65]!==n||t[66]!==$||t[67]!==q?(G=b.jsxs(Vn,{show:!0,onHide:n,children:[$,q]}),t[65]=n,t[66]=$,t[67]=q,t[68]=G):G=t[68],G};function mj(e,t){return b.jsxs("li",{children:[e.name," - ",os(e.size)]},`${e.name}-${t}`)}const gj="_folder_1cktt_1",vj="_collapseArrowDiv_1cktt_8",bj="_button_1cktt_20",yj="_nestedList_1cktt_24",xj="_numberOfFiles_1cktt_31",wj="_collapseArrow_1cktt_8",va={folder:gj,collapseArrowDiv:vj,button:bj,nestedList:yj,numberOfFiles:xj,collapseArrow:wj},o3=e=>{const t=Re.c(59),{dirId:n,writePermissions:r}=e,{ProjectIconComponent:i}=v.useContext(Qt),{reducer:a}=v.useContext(gn),[o,s]=a,{getDropProps:l}=A0(),[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"&&i3(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 R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R=ce(va.button),t[24]=R):R=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 O=g.defaultDocType??"",D=n===o.activeFolder;let I;t[30]!==g.isDefault||t[31]!==g.name||t[32]!==O||t[33]!==D?(I=b.jsx(e3,{isDefault:g.isDefault,folderName:g.name,typeName:O,isActive:D}),t[30]=g.isDefault,t[31]=g.name,t[32]=O,t[33]=D,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 M;t[40]!==x||t[41]!==$||t[42]!==A?(M=b.jsx("button",{className:R,onClick:x,type:"button",...$,children:A}),t[40]=x,t[41]=$,t[42]=A,t[43]=M):M=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(o3,{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 B;t[49]!==M||t[50]!==L||t[51]!==T?(B=b.jsxs("li",{className:va.folder,children:[T,M,L]}),t[49]=M,t[50]=L,t[51]=T,t[52]=B):B=t[52];let P;t[53]!==n||t[54]!==c?(P=c!==null?b.jsx(R0,{files:c,handleClose:()=>u(null),targetFolderId:n}):null,t[53]=n,t[54]=c,t[55]=P):P=t[55];let U;return t[56]!==B||t[57]!==P?(U=b.jsxs(b.Fragment,{children:[B,P]}),t[56]=B,t[57]=P,t[58]=U):U=t[58],U},_j="_wrapper_1th2u_1",Cj="_downloadButton_1th2u_9",Lm={wrapper:_j,downloadButton:Cj},s3=6048e5,Sj=864e5,ey=Symbol.for("constructDateFrom");function Ci(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ey in e?e[ey](t):e instanceof Date?new e.constructor(t):new Date(t)}function rr(e,t){return Ci(t||e,e)}function l3(e,t){const n=()=>Ci(t==null?void 0:t.in,NaN),r=Ej(e);let i;if(r.date){const l=Mj(r.date,2);i=Oj(l.restDateString,l.year)}if(!i||isNaN(+i))return n();const a=+i;let o=0,s;if(r.time&&(o=Aj(r.time),isNaN(o)))return n();if(r.timezone){if(s=Rj(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+-].*)$/},Tj=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,kj=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,$j=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ej(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 Mj(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 Oj(e,t){if(t===null)return new Date(NaN);const n=e.match(Tj);if(!n)return new Date(NaN);const r=!!n[4],i=el(n[1]),a=el(n[2])-1,o=el(n[3]),s=el(n[4]),l=el(n[5])-1;if(r)return Pj(t,s,l)?Dj(t,s,l):new Date(NaN);{const c=new Date(0);return!jj(t,a,o)||!Nj(t,i)?new Date(NaN):(c.setUTCFullYear(t,a,Math.max(i,o)),c)}}function el(e){return e?parseInt(e):1}function Aj(e){const t=e.match(kj);if(!t)return NaN;const n=gp(t[1]),r=gp(t[2]),i=gp(t[3]);return Lj(n,r,i)?n*36e5+r*6e4+i*1e3:NaN}function gp(e){return e&&parseFloat(e.replace(",","."))||0}function Rj(e){if(e==="Z")return 0;const t=e.match($j);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Fj(r,i)?n*(r*36e5+i*6e4):NaN}function Dj(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 Ij=[31,null,31,30,31,30,31,31,30,31,30,31];function c3(e){return e%400===0||e%4===0&&e%100!==0}function jj(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ij[t]||(c3(e)?29:28))}function Nj(e,t){return t>=1&&t<=(c3(e)?366:365)}function Pj(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Lj(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Fj(e,t){return t>=0&&t<=59}let Bj={};function wf(){return Bj}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 u3(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 ty(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 zj(e,...t){const n=Ci.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function ny(e,t){const n=rr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function Wj(e,t,n){const[r,i]=zj(n==null?void 0:n.in,e,t),a=ny(r),o=ny(i),s=+a-ty(a),l=+o-ty(o);return Math.round((s-l)/Sj)}function Uj(e,t){const n=u3(e,t),r=Ci(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),pd(r)}function Hj(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Vj(e){return!(!Hj(e)&&typeof e!="number"||isNaN(+rr(e)))}function qj(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 Yj={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"}},Gj=(e,t,n)=>{let r;const i=Yj[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 Zj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Jj={date:vp({formats:Zj,defaultWidth:"full"}),time:vp({formats:Kj,defaultWidth:"full"}),dateTime:vp({formats:Xj,defaultWidth:"full"})},Qj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},eN=(e,t,n,r)=>Qj[e];function tl(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 tN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rN={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"]},iN={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"]},aN={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"}},oN={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"}},sN=(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"},lN={ordinalNumber:sN,era:tl({values:tN,defaultWidth:"wide"}),quarter:tl({values:nN,defaultWidth:"wide",argumentCallback:e=>e-1}),month:tl({values:rN,defaultWidth:"wide"}),day:tl({values:iN,defaultWidth:"wide"}),dayPeriod:tl({values:aN,defaultWidth:"wide",formattingValues:oN,defaultFormattingWidth:"wide"})};function nl(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)?uN(s,d=>d.test(o)):cN(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 cN(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function uN(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function dN(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 fN=/^(\d+)(th|st|nd|rd)?/i,hN=/\d+/i,pN={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},mN={any:[/^b/i,/^(a|c)/i]},gN={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},vN={any:[/1/i,/2/i,/3/i,/4/i]},bN={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},yN={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]},xN={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},wN={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]},_N={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},CN={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}},SN={ordinalNumber:dN({matchPattern:fN,parsePattern:hN,valueCallback:e=>parseInt(e,10)}),era:nl({matchPatterns:pN,defaultMatchWidth:"wide",parsePatterns:mN,defaultParseWidth:"any"}),quarter:nl({matchPatterns:gN,defaultMatchWidth:"wide",parsePatterns:vN,defaultParseWidth:"any",valueCallback:e=>e+1}),month:nl({matchPatterns:bN,defaultMatchWidth:"wide",parsePatterns:yN,defaultParseWidth:"any"}),day:nl({matchPatterns:xN,defaultMatchWidth:"wide",parsePatterns:wN,defaultParseWidth:"any"}),dayPeriod:nl({matchPatterns:_N,defaultMatchWidth:"any",parsePatterns:CN,defaultParseWidth:"any"})},TN={code:"en-US",formatDistance:Gj,formatLong:Jj,formatRelative:eN,localize:lN,match:SN,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kN(e,t){const n=rr(e,t==null?void 0:t.in);return Wj(n,qj(n))+1}function $N(e,t){const n=rr(e,t==null?void 0:t.in),r=+pd(n)-+Uj(n);return Math.round(r/s3)+1}function d3(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 EN(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=d3(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 MN(e,t){const n=rr(e,t==null?void 0:t.in),r=+Xl(n,t)-+EN(n,t);return Math.round(r/s3)+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"},ry={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=d3(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=u3(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=MN(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):zt(i,t.length)},I:function(e,t,n){const r=$N(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=kN(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 ay(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 ay(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"+iy(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"+iy(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 iy(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 ay(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 oy=(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"})}},f3=(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"})}},ON=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return oy(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}}",oy(r,t)).replace("{{time}}",f3(i,t))},AN={p:f3,P:ON},RN=/^D+$/,DN=/^Y+$/,IN=["D","DD","YY","YYYY"];function jN(e){return RN.test(e)}function NN(e){return DN.test(e)}function PN(e,t,n){const r=LN(e,t,n);if(console.warn(r),IN.includes(e))throw new RangeError(r)}function LN(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 FN=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BN=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zN=/^'([^]*?)'?$/,WN=/''/g,UN=/[a-zA-Z]/;function h3(e,t,n){var u,d,f,h;const r=wf(),i=r.locale??TN,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(!Vj(s))throw new RangeError("Invalid time value");let l=t.match(BN).map(p=>{const m=p[0];if(m==="p"||m==="P"){const g=AN[m];return g(p,i.formatLong)}return p}).join("").match(FN).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:HN(p)};if(ry[m])return{isToken:!0,value:p};if(m.match(UN))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;(NN(m)||jN(m))&&PN(m,t,String(e));const g=ry[m[0]];return g(s,m,i.localize,c)}).join("")}function HN(e){const t=e.match(zN);return t?t[1].replace(WN,"'"):e}function p3(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 VN(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 qN(e){return typeof e=="number"&&isNaN(e)}function m3(e){return qo(e)||qN(e)||typeof e=="number"&&!isFinite(e)}function g3(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function YN(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 GN(e,t,n){var r=YN(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 ZN(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 D0(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 KN(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 v3(e,t,n){for(var r="",i=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||i;return r}function sy(e,t){return Array(t+1).join(e)}function b3(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."+sy("0",Math.abs(o))+i:o>=s?i=i+sy("0",o-s):i=(i.substring(0,o)||"0")+"."+i.substring(o),n+i}function ly(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,i=D0(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=v3(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 y3=VN(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}}}),XN=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function JN(e,t,n){return Math.min(Math.max(e,t),n)}function bp(e){return Math.max(e.selectionStart,e.selectionEnd)}function QN(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function eP(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function tP(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function nP(e,t,n,r,i,a,o){o===void 0&&(o=tP);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 cy(e,t,n,r){var i=e.length;if(t=JN(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 rP(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 x3(e,t,n,r,i,a){a===void 0&&(a=Wi);var o=ZN(function(p,m){var g,y;return m3(p)?(y="",g=""):typeof p=="number"||m?(y=typeof p=="number"?b3(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 iP(e){return e.replace(/[^0-9]/g,"")}function aP(e){return e}function oP(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=aP);var s=e.removeFormatting;s===void 0&&(s=iP);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&&(_=rP);var w=e.isValidInputCharacter;w===void 0&&(w=Ql);var C=e.isCharacterSame,x=p3(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),S=x3(y,l,!!c,o,s,u),E=S[0],k=E.formattedValue,T=E.numAsString,R=S[1],$=v.useRef(),O=v.useRef({formattedValue:k,numAsString:T}),D=function(X,J){O.current={formattedValue:X.formattedValue,numAsString:X.value},R(X,J)},I=v.useState(!1),j=I[0],A=I[1],M=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 B=o,P=function(X,J){var ie=parseFloat(J);return{formattedValue:X,value:J,floatValue:isNaN(ie)?void 0:ie}},U=function(X,J,ie){X.selectionStart===0&&X.selectionEnd===X.value.length||(ka(X,J),L.current.setCaretTimeout=setTimeout(function(){X.value===ie&&X.selectionStart!==J&&ka(X,J)},0))},H=function(X,J,ie){return cy(X,J,_(X),ie)},q=function(X,J,ie){var oe=_(J),ge=nP(J,k,X,ie,oe,w,C);return ge=cy(J,ge,oe),ge},G=function(X){var J=X.formattedValue;J===void 0&&(J="");var ie=X.input,oe=X.source,ge=X.event,de=X.numAsString,ue;if(ie){var Se=X.inputValue||ie.value,le=bp(ie);ie.value=J,ue=q(Se,J,le),ue!==void 0&&U(ie,ue,J)}J!==k&&D(P(J,de),{event:ge,source:oe})};v.useEffect(function(){var X=O.current,J=X.formattedValue,ie=X.numAsString;(k!==J||T!==ie)&&D(P(k,T),{event:void 0,source:Jl.props})},[k,T]);var K=M.current?bp(M.current):void 0,te=typeof window<"u"?v.useLayoutEffect:v.useEffect;te(function(){var X=M.current;if(k!==O.current.formattedValue&&X){var J=q(O.current.formattedValue,k,K);X.value=k,U(X,J,k)}},[k]);var ne=function(X,J,ie){var oe=J.target,ge=$.current?XN($.current,oe.selectionEnd):y3(k,X),de=Object.assign(Object.assign({},ge),{lastValue:k}),ue=s(X,de),Se=B(ue);if(ue=s(Se,void 0),d&&!d(P(Se,ue))){var le=J.target,fe=bp(le),we=q(X,k,fe);return le.value=k,U(le,we,k),!1}return G({formattedValue:Se,numAsString:ue,inputValue:X,event:J,source:ie,input:J.target}),!0},W=function(X,J){J===void 0&&(J=0);var ie=X.selectionStart,oe=X.selectionEnd;$.current={selectionStart:ie,selectionEnd:oe+J}},F=function(X){var J=X.target,ie=J.value,oe=ne(ie,X,Jl.event);oe&&f(X),$.current=void 0},z=function(X){var J=X.target,ie=X.key,oe=J.selectionStart,ge=J.selectionEnd,de=J.value;de===void 0&&(de="");var ue;ie==="ArrowLeft"||ie==="Backspace"?ue=Math.max(oe-1,0):ie==="ArrowRight"?ue=Math.min(oe+1,de.length):ie==="Delete"&&(ue=oe);var Se=0;ie==="Delete"&&oe===ge&&(Se=1);var le=ie==="ArrowLeft"||ie==="ArrowRight";if(ue===void 0||oe!==ge&&!le){h(X),W(J,Se);return}var fe=ue;if(le){var we=ie==="ArrowLeft"?"left":"right";fe=H(de,ue,we),fe!==ue&&X.preventDefault()}else ie==="Delete"&&!w(de[ue])?fe=H(de,ue,"right"):ie==="Backspace"&&!w(de[ue])&&(fe=H(de,ue,"left"));fe!==ue&&U(J,fe,de),h(X),W(J,Se)},V=function(X){var J=X.target,ie=function(){var oe=J.selectionStart,ge=J.selectionEnd,de=J.value;if(de===void 0&&(de=""),oe===ge){var ue=H(de,oe);ue!==oe&&U(J,ue,de)}};ie(),requestAnimationFrame(function(){ie()}),p(X),W(J)},N=function(X){X.persist&&X.persist();var J=X.target,ie=X.currentTarget;M.current=J,L.current.focusTimeout=setTimeout(function(){var oe=J.selectionStart,ge=J.selectionEnd,de=J.value;de===void 0&&(de="");var ue=H(de,oe);ue!==oe&&!(oe===0&&ge===de.length)&&U(J,ue,de),m(Object.assign(Object.assign({},X),{currentTarget:ie}))},0)},ee=function(X){M.current=null,clearTimeout(L.current.focusTimeout),clearTimeout(L.current.setCaretTimeout),g(X)},Q=j&&QN()?"numeric":void 0,Z=Object.assign({inputMode:Q},x,{type:t,value:k,onChange:F,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({},Z,{ref:a}))}return v.createElement("input",Object.assign({},Z,{ref:a}))}function uy(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=D0(e,o),h=f.beforeDecimal,p=f.afterDecimal,m=f.addNegation;return n!==void 0&&(p=v3(p,n,!!r)),c&&(h=GN(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 sP(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 lP(e,t){return new RegExp("(^-)|[0-9]|"+g3(e),"g")}function cP(e,t,n){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(n!=null&&n.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function uP(e,t,n){var r;t===void 0&&(t=eP(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(M,L,B){var P=!1,U=!1;a.startsWith("-")?P=!1:M.startsWith("--")?(P=!1,U=!0):o.startsWith("-")&&M.length===o.length?P=!1:M[0]==="-"&&(P=!0);var H=P?1:0;return U&&(H=2),H&&(M=M.substring(H),L-=H,B-=H),{value:M,start:L,end:B,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 R=e.length,$=e.length-o.length;e.endsWith(o)?R=$:(d>$||d>e.length-o.length)&&(R=d),e=e.substring(0,R),e=sP(w?"-"+e:e,i),e=(e.match(lP(p))||[]).join("");var O=e.indexOf(p);e=e.replace(new RegExp(g3(p),"g"),function(M,L){return L===O?".":""});var D=D0(e,i),I=D.beforeDecimal,j=D.afterDecimal,A=D.addNegation;return c.end-c.start<l.end-l.start&&I===""&&m&&!parseFloat(j)&&(e=A?"-":""),e}function dP(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 fP(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 hP(e){e=fP(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=p3(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 uy(A,e)},w=function(A,M){return uP(A,M,e)},C=qo(d)?u:d,x=f??cP(C,c,t);qo(d)?qo(u)||(x=x||typeof u=="number"):x=x||typeof d=="number";var S=function(A){return m3(A)?A:(typeof A=="number"&&(A=b3(A)),x&&typeof s=="number"?ly(A,s,!!l):A)},E=x3(S(d),S(u),!!x,_,w,h),k=E[0],T=k.numAsString,R=k.formattedValue,$=E[1],O=function(A){var M=A.target,L=A.key,B=M.selectionStart,P=M.selectionEnd,U=M.value;if(U===void 0&&(U=""),(L==="Backspace"||L==="Delete")&&P<c.length){A.preventDefault();return}if(B!==P){i(A);return}L==="Backspace"&&U[0]==="-"&&B===c.length+1&&n&&ka(M,1),s&&l&&(L==="Backspace"&&U[B-1]===g?(ka(M,B-1),A.preventDefault()):L==="Delete"&&U[B]===g&&A.preventDefault()),y!=null&&y.includes(L)&&U[B]===g&&ka(M,B+1);var H=o===!0?",":o;L==="Backspace"&&U[B-1]===H&&ka(M,B-1),L==="Delete"&&U[B]===H&&ka(M,B+1),i(A)},D=function(A){var M=T;if(M.match(/\d/g)||(M=""),r||(M=KN(M)),l&&s&&(M=ly(M,s,l)),M!==T){var L=uy(M,e);$({formattedValue:L,value:M,floatValue:parseFloat(M)},{event:A,source:Jl.event})}a(A)},I=function(A){return A===g?!0:Ql(A)},j=function(A){var M=A.currentValue,L=A.lastValue,B=A.formattedValue,P=A.currentValueIndex,U=A.formattedValueIndex,H=M[P],q=B[U],G=y3(L,M),K=G.to,te=function(ne){return w(ne).indexOf(".")+c.length};return d===0&&l&&s&&M[K.start]===g&&te(M)<P&&te(B)>U?!1:P>=K.start&&P<K.end&&y&&y.includes(H)&&q===g?!0:H===q};return Object.assign(Object.assign({},p),{value:R,valueIsNumericString:!1,isValidInputCharacter:I,isCharacterSame:j,onValueChange:$,format:_,removeFormatting:w,getCaretBoundary:function(A){return dP(A,e)},onKeyDown:O,onBlur:D})}function pP(e){var t=hP(e);return v.createElement(oP,Object.assign({},t))}const mP=(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},gP=e=>{const t=e.getValue();return t?h3(l3(t.toString()),"dd.MM.yyyy"):null},vP=e=>{const t=e.getValue();return t?h3(l3(t.toString()),"dd.MM.yyyy HH:mm"):null},bP=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(pP,{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()})},yP=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 xP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dy={exports:{}},fy;function wP(){return fy||(fy=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})()}(dy)),dy.exports}var _P=wP();const je=xP(_P),CP="_container_1jre8_1",SP="_no-value_1jre8_6",TP="_input_1jre8_21",kP="_no-value-button-container_1jre8_24",gu={container:CP,noValue:SP,input:TP,noValueButtonContainer:kP},$P=({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:je("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:je(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 hs(e,t=hs.characters){return e.replace(/[^A-Za-z0-9]/g,function(n){return t[n]||n})}hs.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 EP="_multiselect_1gflo_1",MP="_multiselect-menu_1gflo_35",OP="_dropdown-menu-item_1gflo_42",AP="_search-item_1gflo_45",RP="_search-input_1gflo_49",DP="_special-option_1gflo_52",ba={multiselect:EP,multiselectMenu:MP,dropdownMenuItem:OP,searchItem:AP,searchInput:RP,specialOption:DP},hy=10,IP=({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(R=>R!==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(R=>R.toString()===T.toString())&&k.push({value:T,label:T,specialOption:!1})}),Array.from(new Set(k.map(T=>T.value))).map(T=>k.find(R=>R.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<hy&&u("")},[g]),b.jsxs(i,{onToggleOpen:k=>C(k),children:[b.jsx(l,{className:je("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:je("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>=hy?b.jsx(o,{className:je("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?hs(k.value).toLowerCase().includes(hs(c.toLowerCase())):!0).map(k=>b.jsx(o,{className:je(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))]})]})},jP=({column:e,IconComponent:t,InputComponent:n,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,DropdownTriggerComponent:o,CheckComponent:s,texts:l})=>{const c=e.getFilterValue(),u=yP(e.columnDef);return["text","number","date","datetime"].includes(u)?b.jsx($P,{column:e,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l}):b.jsx(IP,{CheckComponent:s,column:e,DropdownMenuComponent:r,DropdownMenuContentComponent:i,DropdownMenuItemComponent:a,DropdownTriggerComponent:o,filterValue:c?c.toString():null,IconComponent:t,InputComponent:n,texts:l})};function NP(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function w3(e,t){return e?PP(e)?pe.createElement(e,t):e:null}function PP(e){return LP(e)||typeof e=="function"||FP(e)}function LP(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function FP(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}const BP="_table-scroll-container_wu79d_1",zP="_full-screen_wu79d_8",WP="_table_wu79d_1",UP="_thead_wu79d_24",HP="_tbody_wu79d_25",VP="_th_wu79d_24",qP="_pinned_wu79d_38",YP="_sorted_wu79d_41",GP="_heading_wu79d_44",ZP="_can-sort_wu79d_50",KP="_content_wu79d_53",XP="_resizer_wu79d_59",JP="_resizer-bar_wu79d_73",QP="_reorder-handle_wu79d_79",eL="_dragging_wu79d_84",tL="_row-selection-info_wu79d_88",nL="_tr_wu79d_92",rL="_td_wu79d_100",iL="_left_wu79d_117",aL="_center_wu79d_121",oL="_right_wu79d_125",sL="_first-right_wu79d_134",lL="_grouped_wu79d_142",cL="_expanded_wu79d_147",uL="_selected-cell_wu79d_151",dL="_sm_wu79d_155",fL="_lg_wu79d_160",hL="_clickable_wu79d_168",pL="_cell-selected-row_wu79d_172",mL="_cell-selection-disabled_wu79d_180",gL="_own-click_wu79d_203",vL="_expander-button_wu79d_211",bL="_empty-table-alert_wu79d_217",yL="_remove-filters-button-wrapper_wu79d_225",xL="_remove-filters-button_wu79d_225",wL="_bottom-bar_wu79d_255",_L="_left-items_wu79d_271",CL="_pagination_wu79d_277",SL="_page-info-text_wu79d_283",TL="_right-items_wu79d_289",kL="_sizing-menu_wu79d_310",$L="_sizing-menu-item_wu79d_315",We={tableScrollContainer:BP,fullScreen:zP,table:WP,thead:UP,tbody:HP,th:VP,pinned:qP,sorted:YP,heading:GP,canSort:ZP,content:KP,resizer:XP,resizerBar:JP,reorderHandle:QP,dragging:eL,rowSelectionInfo:tL,tr:nL,td:rL,left:iL,center:aL,right:oL,firstRight:sL,grouped:lL,expanded:cL,selectedCell:uL,sm:dL,lg:fL,clickable:hL,cellSelectedRow:pL,cellSelectionDisabled:mL,ownClick:gL,expanderButton:vL,emptyTableAlert:bL,removeFiltersButtonWrapper:yL,removeFiltersButton:xL,bottomBar:wL,leftItems:_L,pagination:CL,pageInfoText:SL,rightItems:TL,sizingMenu:kL,sizingMenuItem:$L};function EL(){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 $s(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function I0(e){return"nodeType"in e}function Xn(e){var t,n;return e?$s(e)?e:I0(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function j0(e){const{Document:t}=Xn(e);return e instanceof t}function Lc(e){return $s(e)?!1:e instanceof Xn(e).HTMLElement}function _3(e){return e instanceof Xn(e).SVGElement}function Es(e){return e?$s(e)?e.document:I0(e)?j0(e)?e:Lc(e)||_3(e)?e.ownerDocument:document:document:document}const qr=Cf?v.useLayoutEffect:v.useEffect;function N0(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 ML(){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=N0(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 C3(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=C3(1),gd=C3(-1);function OL(e){return"clientX"in e&&"clientY"in e}function P0(e){if(!e)return!1;const{KeyboardEvent:t}=Xn(e.target);return t&&e instanceof t}function AL(e){if(!e)return!1;const{TouchEvent:t}=Xn(e.target);return t&&e instanceof t}function Bm(e){if(AL(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 OL(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}}}),py="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function RL(e){return e.matches(py)?e:e.querySelector(py)}const DL={display:"none"};function IL(e){let{id:t,value:n}=e;return v.createElement("div",{id:t,style:DL},n)}function jL(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 NL(){const[e,t]=v.useState("");return{announce:v.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const S3=v.createContext(null);function PL(e){const t=v.useContext(S3);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function LL(){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 FL={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
|
-
`},BL={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 zL(e){let{announcements:t=BL,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=FL}=e;const{announce:a,announcement:o}=NL(),s=Bc("DndLiveRegion"),[l,c]=v.useState(!1);if(v.useEffect(()=>{c(!0)},[]),PL(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(IL,{id:r,value:i.draggable}),v.createElement(jL,{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 WL(){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 UL(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function HL(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function VL(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function qL(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function my(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 YL=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=my(t,t.left,t.top),a=[];for(const o of r){const{id:s}=o,l=n.get(s);if(l){const c=UL(my(l),i);a.push({id:s,data:{droppableContainer:o,value:c}})}}return a.sort(HL)};function GL(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 ZL=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=GL(s,t);l>0&&i.push({id:o,data:{droppableContainer:a,value:l}})}}return i.sort(VL)};function KL(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function T3(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Er}function XL(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 JL=XL(1);function QL(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 eF(e,t,n){const r=QL(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 tF={ignoreTransform:!1};function Ms(e,t){t===void 0&&(t=tF);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Xn(e).getComputedStyle(e);c&&(n=eF(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 gy(e){return Ms(e,{ignoreTransform:!0})}function nF(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function rF(e,t){return t===void 0&&(t=Xn(e).getComputedStyle(e)),t.position==="fixed"}function iF(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 L0(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(j0(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Lc(i)||_3(i)||n.includes(i))return n;const a=Xn(e).getComputedStyle(i);return i!==e&&iF(i,a)&&n.push(i),rF(i,a)?n:r(i.parentNode)}return e?r(e):n}function k3(e){const[t]=L0(e,1);return t??null}function wp(e){return!Cf||!e?null:$s(e)?e:I0(e)?j0(e)||e===Es(e).scrollingElement?window:Lc(e)?e:null:null}function $3(e){return $s(e)?e.scrollX:e.scrollLeft}function E3(e){return $s(e)?e.scrollY:e.scrollTop}function zm(e){return{x:$3(e),y:E3(e)}}var xn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xn||(xn={}));function M3(e){return!Cf||!e?!1:e===document.scrollingElement}function O3(e){const t={x:0,y:0},n=M3(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 aF={x:.2,y:.2};function oF(e,t,n,r,i){let{top:a,left:o,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=aF);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=O3(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 sF(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 A3(e){return e.reduce((t,n)=>Yo(t,zm(n)),Er)}function lF(e){return e.reduce((t,n)=>t+$3(n),0)}function cF(e){return e.reduce((t,n)=>t+E3(n),0)}function uF(e,t){if(t===void 0&&(t=Ms),!e)return;const{top:n,left:r,bottom:i,right:a}=t(e);k3(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dF=[["x",["left","right"],lF],["y",["top","bottom"],cF]];class F0{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=L0(n),i=A3(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,s]of dF)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 Cl=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 fF(e){const{EventTarget:t}=Xn(e);return e instanceof t?e:Es(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 vy(e){e.preventDefault()}function hF(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 R3={start:[Ot.Space,Ot.Enter],cancel:[Ot.Esc],end:[Ot.Space,Ot.Enter,Ot.Tab]},pF=(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 B0=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 Cl(Es(n)),this.windowListeners=new Cl(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&&uF(r),n(Er)}handleKeyDown(t){if(P0(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:a=R3,coordinateGetter:o=pF,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}=O3(m),E=sF(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,R=g===Ot.Down&&!C||g===Ot.Up&&!y;if(T&&k.x!==d.x){const $=m.scrollLeft+f.x,O=g===Ot.Right&&$<=x.x||g===Ot.Left&&$>=S.x;if(O&&!f.y){m.scrollTo({left:$,behavior:s});return}O?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(R&&k.y!==d.y){const $=m.scrollTop+f.y,O=g===Ot.Down&&$<=x.y||g===Ot.Up&&$>=S.y;if(O&&!f.x){m.scrollTo({top:$,behavior:s});return}O?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()}};B0.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=R3,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 by(e){return!!(e&&"distance"in e)}function yy(e){return!!(e&&"delay"in e)}let z0=class{constructor(t,n,r){var i;r===void 0&&(r=fF(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=Es(o),this.documentListeners=new Cl(this.document),this.listeners=new Cl(r),this.windowListeners=new Cl(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,vy),this.windowListeners.add(or.VisibilityChange,this.handleCancel),this.windowListeners.add(or.ContextMenu,vy),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(yy(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(by(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,hF,{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(by(s)){if(s.tolerance!=null&&_p(c,s.tolerance))return this.handleCancel();if(_p(c,s.distance))return this.handleStart()}if(yy(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 mF={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};let D3=class extends z0{constructor(t){const{event:n}=t,r=Es(n.target);super(t,mF,r)}};D3.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 gF={move:{name:"mousemove"},end:{name:"mouseup"}};var Wm;(function(e){e[e.RightClick=2]="RightClick"})(Wm||(Wm={}));let I3=class extends z0{constructor(t){super(t,gF,Es(t.event.target))}};I3.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 j3=class extends z0{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(){}}};j3.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 Sl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Sl||(Sl={}));var bd;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(bd||(bd={}));function vF(e){let{acceleration:t,activator:n=Sl.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=yF({delta:d,disabled:!a}),[p,m]=ML(),g=v.useRef({x:0,y:0}),y=v.useRef({x:0,y:0}),_=v.useMemo(()=>{switch(n){case Sl.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Sl.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:R}=oF(S,k,_,t,f);for(const $ of["x","y"])h[$][T[$]]||(R[$]=0,T[$]=0);if(R.x>0||R.y>0){m(),w.current=S,p(C,o),g.current=R,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 bF={x:{[xn.Backward]:!1,[xn.Forward]:!1},y:{[xn.Backward]:!1,[xn.Forward]:!1}};function yF(e){let{delta:t,disabled:n}=e;const r=Fm(t);return Fc(i=>{if(n||!r||!i)return bF;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 xF(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 wF(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 xy=new Map;function _F(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 xy;if(!y||y===xy||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 F0(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 N3(e,t){return Fc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function CF(e,t){return N3(e,t)}function SF(e){let{callback:t,disabled:n}=e;const r=N0(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=N0(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 TF(e){return new F0(Ms(e),e)}function wy(e,t,n){t===void 0&&(t=TF);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=SF({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 kF(e){const t=N3(e);return T3(e,t)}const _y=[];function $F(e){const t=v.useRef(e),n=Fc(r=>e?r&&r!==_y&&e&&t.current&&e.parentNode===t.current.parentNode?r:L0(e):_y,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function EF(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):A3(e):Er,[e,t])}function Cy(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 MF(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 OF(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 P3(e){return v.useMemo(()=>e?nF(e):null,[e])}const Sy=[];function AF(e,t){t===void 0&&(t=Ms);const[n]=e,r=P3(n?Xn(n):null),[i,a]=v.useState(Sy);function o(){a(()=>e.length?e.map(l=>M3(l)?r:new F0(t(l),l)):Sy)}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 RF(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Lc(t)?t:e}function DF(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=RF(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 IF=[{sensor:D3,options:{}},{sensor:B0,options:{}}],jF={current:{}},Bu={draggable:{measure:gy},droppable:{measure:gy,strategy:nc.WhileDragging,frequency:Um.Optimized},dragOverlay:{measure:Ms}};let Tl=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 NF={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Tl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:vd},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Bu,measureDroppableContainers:vd,windowRect:null,measuringScheduled:!1},PF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:vd,draggableNodes:new Map,over:null,measureDroppableContainers:vd},Tf=v.createContext(PF),L3=v.createContext(NF);function LF(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Tl}}}function FF(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 Tl(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 Tl(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 Tl(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function BF(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(!P0(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=RL(u);if(d){d.focus();break}}})}},[r,t,i,o,a]),null}function zF(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...r}),n):n}function WF(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 UF(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=T3(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=k3(l);d&&d.scrollBy({top:u.y,left:u.x})}},[t,o,s,r,n])}const F3=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 HF=v.memo(function(e){var t,n,r,i;let{id:a,accessibility:o,autoScroll:s=!0,children:l,sensors:c=IF,collisionDetection:u=ZL,measuring:d,modifiers:f,...h}=e;const p=v.useReducer(FF,void 0,LF),[m,g]=p,[y,_]=LL(),[w,C]=v.useState(Li.Uninitialized),x=w===Li.Initialized,{draggable:{active:S,nodes:E,translate:k},droppable:{containers:T}}=m,R=S!=null?E.get(S):null,$=v.useRef({initial:null,translated:null}),O=v.useMemo(()=>{var Xe;return S!=null?{id:S,data:(Xe=R==null?void 0:R.data)!=null?Xe:jF,rect:$}:null},[S,R]),D=v.useRef(null),[I,j]=v.useState(null),[A,M]=v.useState(null),L=ec(h,Object.values(h)),B=Bc("DndDescribedBy",a),P=v.useMemo(()=>T.getEnabled(),[T]),U=WF(d),{droppableRects:H,measureDroppableContainers:q,measuringScheduled:G}=_F(P,{dragging:x,dependencies:[k.x,k.y],config:U.droppable}),K=xF(E,S),te=v.useMemo(()=>A?Bm(A):null,[A]),ne=Rt(),W=CF(K,U.draggable.measure);UF({activeNode:S!=null?E.get(S):null,config:ne.layoutShiftCompensation,initialRect:W,measure:U.draggable.measure});const F=wy(K,U.draggable.measure,W),z=wy(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=DF({measure:U.dragOverlay.measure}),Q=(n=ee.nodeRef.current)!=null?n:K,Z=x?(r=ee.rect)!=null?r:F:null,se=!!(ee.nodeRef.current&&ee.rect),X=kF(se?null:F),J=P3(Q?Xn(Q):null),ie=$F(x?N??K:null),oe=AF(ie),ge=zF(f,{transform:{x:k.x-X.x,y:k.y-X.y,scaleX:1,scaleY:1},activatorEvent:A,active:O,activeNodeRect:F,containerNodeRect:z,draggingNodeRect:Z,over:V.current.over,overlayNodeRect:ee.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:J}),de=te?Yo(te,k):null,ue=EF(ie),Se=Cy(ue),le=Cy(ue,[F]),fe=Yo(ge,Se),we=Z?JL(Z,ge):null,Ge=O&&we?u({active:O,collisionRect:we,droppableRects:H,droppableContainers:P,pointerCoordinates:de}):null,_e=qL(Ge,"id"),[ye,Pe]=v.useState(null),Ze=se?ge:Yo(ge,le),_t=KL(Ze,(i=ye==null?void 0:ye.rect)!=null?i:null,F),ke=v.useRef(null),De=v.useCallback((Xe,Le)=>{let{sensor:Ve,options:et}=Le;if(D.current==null)return;const Fe=E.get(D.current);if(!Fe)return;const tt=Xe.nativeEvent,vt=new Ve({active:D.current,activeNode:Fe,event:tt,options:et,context:V,onAbort(Ne){if(!E.get(Ne))return;const{onDragAbort:Me}=L.current,Ye={id:Ne};Me==null||Me(Ye),y({type:"onDragAbort",event:Ye})},onPending(Ne,Me,Ye,xt){if(!E.get(Ne))return;const{onDragPending:nt}=L.current,bt={id:Ne,constraint:Me,initialCoordinates:Ye,offset:xt};nt==null||nt(bt),y({type:"onDragPending",event:bt})},onStart(Ne){const Me=D.current;if(Me==null)return;const Ye=E.get(Me);if(!Ye)return;const{onDragStart:xt}=L.current,nt={activatorEvent:tt,active:{id:Me,data:Ye.data,rect:$}};Un.unstable_batchedUpdates(()=>{xt==null||xt(nt),C(Li.Initializing),g({type:hn.DragStart,initialCoordinates:Ne,active:Me}),y({type:"onDragStart",event:nt}),j(ke.current),M(tt)})},onMove(Ne){g({type:hn.DragMove,coordinates:Ne})},onEnd:ot(hn.DragEnd),onCancel:ot(hn.DragCancel)});ke.current=vt;function ot(Ne){return async function(){const{active:Me,collisions:Ye,over:xt,scrollAdjustedTranslate:nt}=V.current;let bt=null;if(Me&&nt){const{cancelDrop:en}=L.current;bt={activatorEvent:tt,active:Me,collisions:Ye,delta:nt,over:xt},Ne===hn.DragEnd&&typeof en=="function"&&await Promise.resolve(en(bt))&&(Ne=hn.DragCancel)}D.current=null,Un.unstable_batchedUpdates(()=>{g({type:Ne}),C(Li.Uninitialized),Pe(null),j(null),M(null),ke.current=null;const en=Ne===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,Le)=>(Ve,et)=>{const Fe=Ve.nativeEvent,tt=E.get(et);if(D.current!==null||!tt||Fe.dndKit||Fe.defaultPrevented)return;const vt={active:tt};Xe(Ve,Le.options,vt)===!0&&(Fe.dndKit={capturedBy:Le.sensor},D.current=et,De(Ve,Le))},[E,De]),Ue=wF(c,at);MF(c),qr(()=>{F&&w===Li.Initializing&&C(Li.Initialized)},[F,w]),v.useEffect(()=>{const{onDragMove:Xe}=L.current,{active:Le,activatorEvent:Ve,collisions:et,over:Fe}=V.current;if(!Le||!Ve)return;const tt={active:Le,activatorEvent:Ve,collisions:et,delta:{x:fe.x,y:fe.y},over:Fe};Un.unstable_batchedUpdates(()=>{Xe==null||Xe(tt),y({type:"onDragMove",event:tt})})},[fe.x,fe.y]),v.useEffect(()=>{const{active:Xe,activatorEvent:Le,collisions:Ve,droppableContainers:et,scrollAdjustedTranslate:Fe}=V.current;if(!Xe||D.current==null||!Le||!Fe)return;const{onDragOver:tt}=L.current,vt=et.get(_e),ot=vt&&vt.rect.current?{id:vt.id,rect:vt.rect.current,data:vt.data,disabled:vt.disabled}:null,Ne={active:Xe,activatorEvent:Le,collisions:Ve,delta:{x:Fe.x,y:Fe.y},over:ot};Un.unstable_batchedUpdates(()=>{Pe(ot),tt==null||tt(Ne),y({type:"onDragOver",event:Ne})})},[_e]),qr(()=>{V.current={activatorEvent:A,active:O,activeNode:K,collisionRect:we,collisions:Ge,droppableRects:H,draggableNodes:E,draggingNode:Q,draggingNodeRect:Z,droppableContainers:T,over:ye,scrollableAncestors:ie,scrollAdjustedTranslate:fe},$.current={initial:Z,translated:we}},[O,K,Ge,we,E,Q,Z,H,T,ye,ie,fe]),vF({...ne,delta:k,draggingRect:we,pointerCoordinates:de,scrollableAncestors:ie,scrollableAncestorRects:oe});const mt=v.useMemo(()=>({active:O,activeNode:K,activeNodeRect:F,activatorEvent:A,collisions:Ge,containerNodeRect:z,dragOverlay:ee,draggableNodes:E,droppableContainers:T,droppableRects:H,over:ye,measureDroppableContainers:q,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:U,measuringScheduled:G,windowRect:J}),[O,K,F,A,Ge,z,ee,E,T,H,ye,q,ie,oe,U,G,J]),ut=v.useMemo(()=>({activatorEvent:A,activators:Ue,active:O,activeNodeRect:F,ariaDescribedById:{draggable:B},dispatch:g,draggableNodes:E,over:ye,measureDroppableContainers:q}),[A,Ue,O,F,g,B,E,ye,q]);return v.createElement(S3.Provider,{value:_},v.createElement(Tf.Provider,{value:ut},v.createElement(L3.Provider,{value:mt},v.createElement(F3.Provider,{value:_t},l)),v.createElement(BF,{disabled:(o==null?void 0:o.restoreFocus)===!1})),v.createElement(zL,{...o,hiddenTextDescribedById:B}));function Rt(){const Xe=(I==null?void 0:I.autoScrollEnabled)===!1,Le=typeof s=="object"?s.enabled===!1:s===!1,Ve=x&&!Xe&&!Le;return typeof s=="object"?{...s,enabled:Ve}:{enabled:Ve}}}),VF=v.createContext(null),Ty="button",qF="Draggable";function YF(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const a=Bc(qF),{activators:o,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=v.useContext(Tf),{role:h=Ty,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,y=v.useContext(g?F3:VF),[_,w]=md(),[C,x]=md(),S=OF(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===Ty?!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 GF(){return v.useContext(L3)}const ZF="Droppable",KF={timeout:25};function XF(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const a=Bc(ZF),{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}={...KF,...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 W0(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function JF(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 QF(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 eB(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const bu={scaleX:1,scaleY:1},tB=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=nB(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 nB(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 B3=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const a=W0(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}},z3="Sortable",W3=v.createContext({activeIndex:-1,containerId:z3,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:B3,disabled:{draggable:!1,droppable:!1}});function rB(e){let{children:t,id:n,items:r,strategy:i=B3,disabled:a=!1}=e;const{active:o,dragOverlay:s,droppableRects:l,over:c,measureDroppableContainers:u}=GF(),d=Bc(z3,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),_=!QF(h,y.current),w=g!==-1&&m===-1||_,C=eB(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:JF(h,l),strategy:i}),[m,d,C.draggable,C.droppable,w,h,g,l,f,i]);return v.createElement(W3.Provider,{value:x},t)}const iB=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return W0(n,r,i).indexOf(t)},aB=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},oB={duration:200,easing:"ease"},U3="transform",sB=tc.Transition.toString({property:U3,duration:0,easing:"linear"}),lB={roleDescription:"sortable"};function cB(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=Ms(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 uB(e){let{animateLayoutChanges:t=aB,attributes:n,disabled:r,data:i,getNewIndex:a=iB,id:o,strategy:s,resizeObserverConfig:l,transition:c=oB}=e;const{items:u,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:m,overIndex:g,useDragOverlay:y,strategy:_}=v.useContext(W3),w=dB(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:R}=XF({id:o,data:x,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...l}}),{active:$,activatorEvent:O,activeNodeRect:D,attributes:I,setNodeRef:j,listeners:A,isDragging:M,over:L,setActivatorNodeRef:B,transform:P}=YF({id:o,data:x,attributes:{...lB,...n},disabled:w.draggable}),U=EL(R,j),H=!!$,q=H&&!p&&vu(f)&&vu(g),G=!y&&M,K=G&&q?P:null,te=q?K??(s??_)({rects:m,activeNodeRect:D,activeIndex:f,overIndex:g,index:C}):null,ne=vu(f)&&vu(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):C,W=$==null?void 0:$.id,F=v.useRef({activeId:W,items:u,newIndex:ne,containerId:d}),z=u!==F.current.items,V=t({active:$,containerId:d,isDragging:M,isSorting:H,id:o,index:C,items:u,newIndex:F.current.newIndex,previousItems:F.current.items,previousContainerId:F.current.containerId,transition:c,wasDragging:F.current.activeId!=null}),N=cB({disabled:!V,index:C,node:k,rect:E});return v.useEffect(()=>{H&&F.current.newIndex!==ne&&(F.current.newIndex=ne),d!==F.current.containerId&&(F.current.containerId=d),u!==F.current.items&&(F.current.items=u)},[H,ne,d,u]),v.useEffect(()=>{if(W===F.current.activeId)return;if(W!=null&&F.current.activeId==null){F.current.activeId=W;return}const Q=setTimeout(()=>{F.current.activeId=W},50);return()=>clearTimeout(Q)},[W]),{active:$,activeIndex:f,attributes:I,data:x,rect:E,index:C,newIndex:ne,items:u,isOver:T,isSorting:H,isDragging:M,listeners:A,node:k,overIndex:g,over:L,setNodeRef:U,setActivatorNodeRef:B,setDroppableNodeRef:R,setDraggableNodeRef:j,transform:N??te,transition:ee()};function ee(){if(N||z&&F.current.newIndex===C)return sB;if(!(G&&!P0(O)||!c)&&(H||V))return tc.Transition.toString({...c,property:U3})}}function dB(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 fB="_column-menu_wt2wp_1",hB="_column-menu-item_wt2wp_4",pB="_danger_wt2wp_8",ji={columnMenu:fB,columnMenuItem:hB,danger:pB},mB=({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}=uB({id:e.id,disabled:!h}),C={...p??{},flex:`${e.column.getSize()} 1 0`,minWidth:e.column.getSize(),...h?{transform:tc.Translate.toString(_)}:{}},x=M=>M.column.getCanSort()?"button":void 0,S=M=>{var P,U;const L=M.column.getIsSorted(),B=M.column.getIsGrouped();return je("th",We.th,{sorted:L,[We.sorted]:L},{grouped:B,[We.grouped]:B},(P=M.column.columnDef.meta)==null?void 0:P.className,(U=M.column.columnDef.meta)==null?void 0:U.headerClassName)},E=M=>{const L=M.column.getCanSort();return je(We.heading,"heading",{[We.canSort]:L})},k=M=>{M.preventDefault(),f({id:e.id,x:M.clientX,y:M.clientY})},T=()=>f(null),R=(d==null?void 0:d.id)===e.id,$=e.column.getIsPinned(),O=e.column.getIsGrouped(),D=(j=(I=e.column.columnDef)==null?void 0:I.meta)==null?void 0:j.alwaysPinned;return b.jsxs("div",{className:je(n,S(e.getContext())),ref:y,style:C,onContextMenu:k,children:[Un.createPortal(b.jsxs(i,{isOpen:R,onToggleOpen:M=>!M&&T(),children:[b.jsx(s,{style:{position:"fixed",top:R?d.y??0:0,left:R?d.x??0:0,display:R?"block":"none",transform:"none",opacity:0}}),b.jsxs(a,{className:je("column-menu",ji.columnMenu),style:{position:"fixed",top:R?d.y??0:0,left:R?d.x??0:0,zIndex:9999,display:R?"block":"none",transform:"none"},onClick:T,children:[$!=="right"&&e.column.getCanPin()&&!D?b.jsx(o,{className:je(ji.columnMenuItem,{[ji.danger]:$}),onClick:()=>e.column.pin($==="left"?!1:"left"),children:$==="left"?u.columnUnpin:u.columnPinLeft}):null,$!=="left"&&e.column.getCanPin()&&!D?b.jsx(o,{className:je(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:je(ji.columnMenuItem,{[ji.danger]:O}),onClick:e.column.getToggleGroupingHandler(),children:O?u.columnUngroup:u.columnGroup}):null,e.column.getCanHide()&&((A=e.column.columnDef.meta)==null?void 0:A.hidden)!==!0?b.jsx(o,{className:je(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:je("content",We.content),children:[h?b.jsx("div",{...g,...m,className:je("reorder-handle",We.reorderHandle,{dragging:w,[We.dragging]:w}),children:b.jsx(r,{icon:"drag-handle"})}):null,w3(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(jP,{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:je("row-selection-info",We.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:je("resizer",We.resizer,e.column.getIsResizing()?"isResizing":"",e.column.getIsResizing()?We.isResizing:""),style:{transform:t.options.columnResizeMode==="onEnd"&&e.column.getIsResizing()?`translateX(${(t.options.columnResizeDirection==="rtl"?-1:1)*(t.getState().columnSizingInfo.deltaOffset??0)}px)`:""},children:b.jsx("div",{className:je("resizer-bar",We.resizerBar)})}):null]})},ky=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},gB="_columns-dropdown_ot346_1",vB="_columns-dropdown-menu_ot346_35",bB="_dropdown-menu-item_ot346_42",yB="_search-item_ot346_45",xB="_search-input_ot346_49",Eo={columnsDropdown:gB,columnsDropdownMenu:vB,dropdownMenuItem:bB,searchItem:yB,searchInput:xB},wB=({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:je("columns-dropdown",Eo.columnsDropdown),id:"column-visibility-dropdown",ref:u,children:e}),b.jsxs(i,{className:je("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:je("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?hs(ky(y).toLowerCase()).includes(hs(l.toLowerCase())):!0).map(y=>b.jsx(a,{className:je(Eo.dropdownMenuItem),onClick:_=>{_.preventDefault(),_.stopPropagation(),y.toggleVisibility()},children:b.jsx(o,{checked:y.getIsVisible(),label:ky(y),onChange:()=>{}})},y.id))]})]})},_B="_modal_13qph_1",CB="_modal-body_13qph_1",SB="_settings-item_13qph_6",TB="_label_13qph_13",kB="_content_13qph_17",$B="_modal-footer_13qph_46",ii={modal:_B,modalBody:CB,settingsItem:SB,label:TB,content:kB,modalFooter:$B},EB=({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:je("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:je(ii.label),children:n==null?void 0:n.settingsModal.pageSize}),b.jsxs("div",{className:je(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:je(ii.settingsItem),children:[b.jsx("div",{className:je("text-nowrap",ii.label),children:"Sloupce tabulky"}),b.jsx("div",{className:je("text-nowrap",ii.content),children:b.jsx(wB,{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})]})]})},MB=e=>e.type==="number"?"sum":"uniqueCount",OB=(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):w3(e,t)},AB=(e,t,n)=>{var r;return(r=e.meta)!=null&&r.customAggregatedCellRender?e.meta.customAggregatedCellRender(t):(MB(e)==="sum"?n.aggregation.sum:n.aggregation.uniqueCount)(Number(t.getValue()))},RB=({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}),DB=({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(RB,{className:je((w=>{var k,T,R,$,O,D,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 je("td",We.td,{[We.left]:C==="left",[We.center]:C==="center",[We.right]:C==="right"||p.type==="number"&&((T=p.numericMeta)==null?void 0:T.noFormatting)!==!0},{sorted:x,[We.sorted]:x},{grouped:S,[We.grouped]:S},{expanded:E,[We.expanded]:E},{clickable:!!m,[We.clickable]:!!m},{"own-click":(R=m==null?void 0:m[0])==null?void 0:R.endsWith("Own"),[We.ownClick]:($=m==null?void 0:m[0])==null?void 0:$.endsWith("Own")},r,(O=p.meta)==null?void 0:O.className,(I=(D=p.meta)==null?void 0:D.rowClassName)==null?void 0:I.call(D,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:je("expander-button",We.expanderButton),size:"sm",onClick:w=>{w.stopPropagation(),e.getToggleExpandedHandler()()},children:b.jsx(a,{icon:e.getIsExpanded()?"chevron-up":"chevron-down"})}):null,t.getIsAggregated()?AB(t.column.columnDef,t.getContext(),s):t.getIsPlaceholder()?null:OB(t.column.columnDef.cell,t.getContext(),l)," ",t.getIsGrouped()?`(${e.subRows.length})`:null]})},IB=v.forwardRef(DB),jB=[["ArrowUp",[0,-1]],["ArrowDown",[0,1]],["ArrowLeft",[-1,0]],["ArrowRight",[1,0]]],$y=new Map(jB),NB=(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]+$y.get(g.code)[0],0),t.size-1),Math.min(Math.max(_[1]+$y.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}},PB=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}},LB=e=>{let{transform:t}=e;return{...t,y:0}},FB=({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:R,UI:{CheckComponent:$}},O)=>{var oe,ge,de,ue,Se,le,fe,we,Ge;const D={boolean:_e=>mP(_e,n),date:gP,datetime:vP,number:bP,...g},[I,j]=v.useState(!1),A=t.isPaginated,M=WL(xp(I3,{}),xp(j3,{}),xp(B0,{})),L=e.getState().columnOrder,B=_e=>{const{active:ye,over:Pe}=_e;ye&&Pe&&ye.id!==Pe.id&&e.setColumnOrder(Ze=>{const _t=Ze.indexOf(ye.id),ke=Ze.indexOf(Pe.id);return _t===-1||ke===-1?Ze:W0(Ze,_t,ke)})},[P,U]=v.useState(null),H=_e=>{U(_e)},q=_e=>{if(!_e.getCanPin())return"";const ye=_e.getIsPinned(),Pe=ye==="right"&&_e.getIsFirstColumn("right"),Ze=ye==="left"&&_e.getIsLastColumn("left");return je({pinned:ye,[We.pinned]:ye,"first-right":Pe,[We.firstRight]:Pe,"last-left":Ze,[We.lastLeft]:Ze})},G=_e=>{if(!_e.getCanPin())return{};const ye=_e.getIsPinned();return{left:ye==="left"?`${_e.getStart("left")}px`:void 0,right:ye==="right"?`${_e.getAfter("right")}px`:void 0}},K=e.getState().sorting;v.useEffect(()=>{var _e,ye;if(K.length>0){const Pe=K[0];if((_e=document.activeElement)!=null&&_e.classList.contains("filter"))return;(ye=document.getElementById(`filter-${Pe.id}`))==null||ye.focus()}},[K]);const te=e.getPrePaginationRowModel().rows,ne=new Map(e.getVisibleLeafColumns().map((_e,ye)=>[ye,_e.id])),W=v.useRef(null),{selectedCoords:F,changeSelectedCoords:z,setSelectedCellByFNDI:V}=NB(T,ne,te,A?((oe=e.getState().pagination)==null?void 0:oe.pageSize)??0:void 0,e.setPageIndex,W);v.useImperativeHandle(O,()=>({setSelectedCell:V}));const N=_e=>{var ye;return T!=null&&T.onlyRowSelection&&((ye=te[F[1]])==null?void 0:ye.index)===_e.index?je(We.cellSelectedRow,"cell-selected-row",{[We.cellSelectionDisabled]:T.disabled}):""},ee=(_e,ye)=>{var Pe;return(T==null?void 0:T.onCellSelect)===void 0||F[0]!==_e||((Pe=te[F[1]])==null?void 0:Pe.index)!==ye||T.onlyRowSelection?"":T.disabled?"bg-primary-subtle":je("selected-cell",We.selectedCell)},Q=t.fullScreen.canFullScreen?((ge=t.fullScreen)==null?void 0:ge.isFullScreen)??!1:!1,Z=(de=t.sizing)!=null&&de.canSize?((ue=t.sizing)==null?void 0:ue.size)??"md":"md",se=e.getState().columnFilters,X=v.useRef(null),{registerSticky:J}=PB(X),ie=(_e,ye,Pe)=>{var Ze;return b.jsx("div",{className:je("tr",We.tr,N(_e),{pinned:_e.getIsPinned()!==!1,[We.pinned]:_e.getIsPinned()!==!1},R?(Ze=R(_e.original))==null?void 0:Ze.className:null),role:"data-row",...R?R(_e.original):{},ref:Pe!==void 0?_t=>J(_t,Pe):void 0,children:_e.getVisibleCells().map((_t,ke)=>{var De;return b.jsx(IB,{cell:_t,className:je(q(_t.column),ee(ke,_e.index)),formatters:D,IconButtonComponent:i,IconComponent:n,LinkComponent:w,ref:(T==null?void 0:T.onCellSelect)!==void 0&&F[0]===ke&&((De=te[F[1]])==null?void 0:De.index)===_e.index?W:null,row:_e,rowClassName:je(...(x==null?void 0:x.filter(at=>at.selector(_e.original)).map(at=>at.className))??[]),rowNavigation:E,style:G(_t.column),texts:m,onCellInteraction:(T==null?void 0:T.onCellSelect)===void 0?k:at=>{var Ue,mt;z([ke,((Ue=e.getState().pagination)==null?void 0:Ue.pageIndex)*((mt=e.getState().pagination)==null?void 0:mt.pageSize)+ye]),k==null||k(at)},onRowClick:S},_t.id)})},_e.id)};return b.jsx(HF,{collisionDetection:YL,modifiers:[LB],sensors:M,onDragEnd:B,children:b.jsxs("div",{className:je("tanstack-bnf-table-container",We.tableScrollContainer,{"full-screen":Q,[We.fullScreen]:Q}),ref:X,children:[se&&se.length>0?b.jsx("div",{className:je("remove-filters-button-wrapper",We.removeFiltersButtonWrapper),children:b.jsxs("button",{className:je(We.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:je("tanstack-bnf-table",We.table,{sm:Z==="sm",lg:Z==="lg",[We.sm]:Z==="sm",[We.lg]:Z==="lg"},C),"data-testid":_,children:[b.jsx("div",{className:je("thead",We.thead),children:e.getHeaderGroups().map(_e=>b.jsx("div",{className:je("tr",We.tr),children:b.jsx(rB,{items:L,strategy:tB,children:_e.headers.map(ye=>{var Pe,Ze;return b.jsx(mB,{CheckComponent:$,className:q(ye.column),columnMenuPos:P,dragEnabled:t.enableReordering&&((Ze=(Pe=ye.column.columnDef)==null?void 0:Pe.meta)==null?void 0:Ze.enableReordering)!==!1,DropdownMenuComponent:a,DropdownMenuContentComponent:s,DropdownMenuItemComponent:l,DropdownTriggerComponent:o,header:ye,IconComponent:n,InputComponent:c,style:G(ye.column),table:e,texts:m,onColumnMenu:H},ye.id)})})},_e.id))}),b.jsxs("div",{className:je("tbody",We.tbody),children:[(((le=(Se=e.options)==null?void 0:Se.data)==null?void 0:le.length)??0)===0?b.jsx("div",{className:je("empty-table-alert",We.emptyTableAlert),children:m.emptyTable}):null,e.getTopRows().map((_e,ye)=>ie(_e,ye,ye)),e.getCenterRows().map((_e,ye)=>ie(_e,ye))]}),b.jsx(EB,{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:((fe=e.getState().pagination)==null?void 0:fe.pageSize)??0,onChange:_e=>e.setPageSize(_e)},resetToDefault:t.resetToInitialValues,show:I,texts:m})]}),y!=null&&y.hidden?null:b.jsxs("div",{className:je("bottom-bar",We.bottomBar),children:[b.jsxs("div",{className:je("left-items",We.leftItems),children:[A?b.jsxs("div",{className:je("pagination",We.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:je("page-info-text",We.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:je("row-count-text",We.rowCountText),children:m.rowCountText(e.getRowCount())})]}),b.jsxs("div",{className:je("right-items",We.rightItems),children:[(we=t.fullScreen)!=null&&we.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,(Ge=t.sizing)!=null&&Ge.canSize?b.jsxs(a,{drop:"up",children:[b.jsx(o,{id:"table-sizing-button",children:b.jsx(n,{icon:"density"})}),b.jsxs(s,{className:je("shadow-lg sizing-menu",We.sizingMenu),children:[b.jsxs(l,{className:je("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("sm"),children:[Z==="sm"?b.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.sm]}),b.jsxs(l,{className:je("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("md"),children:[Z==="md"?b.jsx(n,{icon:"boolean-yes"}):null," ",m.sizing.md]}),b.jsxs(l,{className:je("sizing-menu-item",We.sizingMenuItem),onClick:()=>t.sizing.setSize("lg"),children:[Z==="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(FB);const BB=(e,t)=>t.split(".").reduce((n,r)=>n&&typeof n=="object"?n[r]:void 0,e),H3=()=>{const e=NP();return{accessor:(t,n)=>{const r=i=>BB(i,t)??"";return e.accessor(r,{...n,id:t})},display:t=>e.display(t),group:t=>e.group(t)}};function zB(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 WB(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 UB(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 HB(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 VB(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 qB(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 YB="_excel_18ggp_1",GB="_word_18ggp_5",ZB="_pdf_18ggp_9",KB="_image_18ggp_13",yu={excel:YB,word:GB,pdf:ZB,image:KB},V3=e=>{const t=Re.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=ce(n,yu.image),t[4]=n,t[5]=a):a=t[5];let o;t[6]!==i?(o=b.jsx(WB,{...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=ce(n,yu.excel),t[11]=n,t[12]=a):a=t[12];let o;return t[13]!==i||t[14]!==a?(o=b.jsx(VB,{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=ce(n,yu.word),t[16]=n,t[17]=a):a=t[17];let o;return t[18]!==i||t[19]!==a?(o=b.jsx(qB,{className:a,...i}),t[18]=i,t[19]=a,t[20]=o):o=t[20],o}case"PDF":{let a;t[21]!==n?(a=ce(n,yu.pdf),t[21]=n,t[22]=a):a=t[22];let o;return t[23]!==i||t[24]!==a?(o=b.jsx(oI,{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(zB,{}),t[26]=a):a=t[26],a}}},XB=()=>{const e=Re.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=(O,D,I)=>O?z4(D??"")&&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:O}):O:"",e[0]=o,e[1]=c):c=e[1];const u=c;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=H3(),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:O=>{const D=O.row.getValue("fileExtension"),I=O.row.getValue("id");return u(b.jsx(V3,{fileExtension:(D==null?void 0:D.toString())??"",className:Lm.extensionIcon,size:18}),(D==null?void 0:D.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 O;e[12]!==u?(O=D=>{const I=D.row.getValue("name"),j=D.row.getValue("fileExtension"),A=D.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]=O):O=e[13],g=f.accessor("name",{header:r.name,type:"string",meta:{customCellRender:O}}),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:O=>{const D=O.row.getValue("id");return b.jsx(gf,{className:Lm.downloadButton,onClick:()=>o(Number((D==null?void 0:D.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:JB}}),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 O;e[33]!==r.no||e[34]!==r.yes?(O=D=>D.getValue()?r.yes[0]:r.no[0],e[33]=r.no,e[34]=r.yes,e[35]=O):O=e[35],k=f.accessor("archive",{header:r.archived,type:"boolean",meta:{filterVariant:"select",customCellRender:O}}),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 R=T;let $;return e[48]!==R?($={columns:R},e[48]=R,e[49]=$):$=e[49],$};function JB(e){var n;const t=Number(((n=e.getValue())==null?void 0:n.toString())??"");return t!==void 0?os(t*1024*1024):""}const QB=e=>{var O;const t=Re.c(33),{BnfTableComponent:n,tableIdentifier:r,writePermissions:i}=e,{reducer:a}=v.useContext(gn),[o,s]=a,{columns:l}=XB();let c;t[0]!==s?(c=D=>{s({type:"mark-files-by-action",setStateAction:D})},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 D;t[2]!==o.activeFolder||t[3]!==o.foldersMap?(D=((O=o.foldersMap.get(o.activeFolder))==null?void 0:O.onlyRead)??!1,t[2]=o.activeFolder,t[3]=o.foldersMap,t[4]=D):D=t[4],f=D}const h=f,p=i&&!d;let m;t[5]!==o.markedFiles?(m=Object.fromEntries(o.markedFiles.map(ez)),t[5]=o.markedFiles,t[6]=m):m=t[6];let g;t[7]!==u?(g=D=>{const I=Object.keys(D).filter(j=>D[j]).map(tz);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 D;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],D=o.filteredFiles.filter(I),t[13]=o.activeFolder,t[14]=o.filteredFiles,t[15]=D}else D=t[15];w=D}const C=w,{getDraggableProps:x}=A0();let S;t[18]!==x||t[19]!==h||t[20]!==i?(S=D=>i===!1||h?{}:x(D.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=ce(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 R;t[24]===Symbol.for("react.memo_cache_sentinel")?(R={hidden:!0},t[24]=R):R=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:R,getRowId:nz},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 ez(e){return[e.toString(),!0]}function tz(e){return Number(e)}function nz(e){var t;return((t=e.id)==null?void 0:t.toString())??""}const rz="_wrapper_1q562_1",iz="_divButtons_1q562_10",Sp={wrapper:rz,divButtons:iz},az="_wrapper_1bpdd_1",oz="_fileInput_1bpdd_5",Ey={wrapper:az,fileInput:oz},sz=e=>{const t=Re.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?(_=ce("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:Ey.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(R0,{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:Ey.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=Re.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},lz=e=>{var P,U,H;const t=Re.c(51),{className:n,entityId:r,entityType:i}=e,{texts:a}=v.useContext(Qt),{documents:o}=a,{prompt:s}=g4(),{confirm:l}=b0(),{apiActions:c,reducer:u}=v.useContext(gn),[d,f]=u,{deleteFiles:h,renameFiles:p,downloadAsZip:m,archivateFiles:g,deleteDirectory:y}=c,{renameFolder:_}=t3(),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 R;e:{if(d.activeFolder==="root"){R=!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],R=q}const $=R;let O;if(t[13]!==d.constantFiles||t[14]!==d.markedFiles){let q;t[16]!==d.constantFiles?(q=G=>{var K;return((K=d.constantFiles.find(te=>te.id===G))==null?void 0:K.archive)===!1},t[16]=d.constantFiles,t[17]=q):q=t[17],O=d.markedFiles.every(q),t[13]=d.constantFiles,t[14]=d.markedFiles,t[15]=O}else O=t[15];const D=O;let I;if(t[18]!==d.constantFiles||t[19]!==d.markedFiles){let q;t[21]!==d.constantFiles?(q=G=>{var K;return((K=d.constantFiles.find(te=>te.id===G))==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 M;t[23]!==n||t[24]!==A?(M=ce(n,Sp.wrapper,A,"d-flex justify-content-between"),t[23]=n,t[24]=A,t[25]=M):M=t[25];let L;t[26]!==D||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(sz,{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"||((U=d.foldersMap.get(d.activeFolder))==null?void 0:U.isDefault),onClick:async()=>{var G;await l(`${o.deleteFolder} ${(G=d.foldersMap.get(d.activeFolder))==null?void 0:G.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||!D,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:ce("ignore-dim","body-background-color"),children:o.back})}):void 0,t[26]=D,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 B;return t[48]!==L||t[49]!==M?(B=b.jsx("div",{className:M,children:L}),t[48]=L,t[49]=M,t[50]=B):B=t[50],B},cz=e=>{const t=Re.c(25),{file:n}=e,{confirm:r}=b0(),{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=a3(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],_},uz="_typeSelect_m3myk_1",dz={typeSelect:uz},fz=()=>{const e=Re.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(hz),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(zC,{options:p,label:i.documentType,value:s,onChange:l,isNumber:!0,size:"sm",className:dz.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(BC,{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(pz),e[27]=g,e[28]=x):x=e[28];let S;e[29]!==x?(S=b.jsx(U_,{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 hz(e){return{id:e[0],name:e[1]}}function pz(e){return b.jsx(cz,{file:e},e.id)}function mz(e){return{name:e.name,defaultDocType:e.defaultDocType,childrenIds:[],parentId:e.parentId??null,isDefault:e.isDefault,onlyRead:e.onlyRead}}function gz(e){const t=[],n=new Map,r=new Map;return e.forEach(i=>{n.set(i.id,mz(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 My(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 vz(e,t){return e.map(n=>{var r;return{...n,folderName:((r=t.get(n.folderId))==null?void 0:r.name)??""}})}const bz=([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}=gz(x.folders),k=vz(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:_}},yz=(e,t)=>{var n,r;switch(t.type){case"load-data":{const i={...e,constantFiles:t.files,filteredFiles:My(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=My(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.")}},xz=()=>{const e=Re.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(yz,n);let a;return e[1]!==r?(a=[r,i],e[1]=r,e[2]=a):a=e[2],a},wz=v.memo(e=>{const t=Re.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?Kb:c,h=f===void 0?Kb.getEmployeeLookupUrl:f,{isMobile:p}=Pc(),{ProjectIconComponent:m,texts:g}=v.useContext(Qt),{documents:y}=g,[_,w]=xz(),[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=bz(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 R;t[16]!==w||t[17]!==_?(R=[_,w],t[16]=w,t[17]=_,t[18]=R):R=t[18];let $;t[19]!==k||t[20]!==a||t[21]!==o||t[22]!==T||t[23]!==R?($={entityId:a,entityType:o,apiActions:k,loadDocuments:T,reducer:R},t[19]=k,t[20]=a,t[21]=o,t[22]=T,t[23]=R,t[24]=$):$=t[24];const O=$,{getDropProps:D}=A0();if(p){let X;t[25]===Symbol.for("react.memo_cache_sentinel")?(X=b.jsx(fz,{}),t[25]=X):X=t[25];let J;return t[26]!==O?(J=b.jsx(gn.Provider,{value:O,children:X}),t[26]=O,t[27]=J):J=t[27],J}let I;t[28]!==r?(I=ce(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=ce(j,ga.explorerWindow),t[30]=j,t[31]=A):A=t[31];const M=i??o;let L;t[32]!==M?(L=b.jsx(YI,{customText:M}),t[32]=M,t[33]=L):L=t[33];let B;if(t[34]!==_.rootFolderIds||t[35]!==d){let X;t[37]!==d?(X=J=>b.jsx(o3,{dirId:J,writePermissions:d},J),t[37]=d,t[38]=X):X=t[38],B=_.rootFolderIds.map(X),t[34]=_.rootFolderIds,t[35]=d,t[36]=B}else B=t[36];let P;t[39]!==L||t[40]!==B?(P=b.jsxs("ul",{className:ga.folderList,children:[L,B]}),t[39]=L,t[40]=B,t[41]=P):P=t[41];let U;t[42]!==A||t[43]!==P?(U=b.jsx("div",{className:A,children:P}),t[42]=A,t[43]=P,t[44]=U):U=t[44];let H;t[45]===Symbol.for("react.memo_cache_sentinel")?(H=ce(ga.explorerWindow,ga.fileList),t[45]=H):H=t[45];let q;t[46]!==D||t[47]!==_||t[48]!==d?(q=d&&hj(_)?D(_.activeFolder,{onFilesDrop:X=>x(X),ignoreInner:!0}):{},t[46]=D,t[47]=_,t[48]=d,t[49]=q):q=t[49];let G;t[50]===Symbol.for("react.memo_cache_sentinel")?(G={style:{marginRight:0}},t[50]=G):G=t[50];let K;t[51]!==m?(K=b.jsx(m,{icon:"file-upload",iconProps:G}),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 W=_.activeFolder==="root";let F;t[58]!==W?(F=W.toString(),t[58]=W,t[59]=F):F=t[59];let z;t[60]!==n||t[61]!==F||t[62]!==u||t[63]!==d?(z=b.jsx(QB,{tableIdentifier:u,BnfTableComponent:n,writePermissions:d},F),t[60]=n,t[61]=F,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(lz,{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(sj,{getEmployeeLookupUrl:h}),t[73]=h,t[74]=ee):ee=t[74];let Q;t[75]!==_.activeFolder||t[76]!==C?(Q=C!==null?b.jsx(R0,{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 Z;t[78]!==O||t[79]!==U||t[80]!==V||t[81]!==N||t[82]!==ee||t[83]!==Q?(Z=b.jsxs(gn.Provider,{value:O,children:[U,V,N,ee,Q]}),t[78]=O,t[79]=U,t[80]=V,t[81]=N,t[82]=ee,t[83]=Q,t[84]=Z):Z=t[84];let se;return t[85]!==s||t[86]!==Z||t[87]!==I?(se=b.jsx("div",{...s,className:I,onDragOver:_z,onDragEnter:Cz,children:Z}),t[85]=s,t[86]=Z,t[87]=I,t[88]=se):se=t[88],se});function _z(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}function Cz(e){e.dataTransfer.dropEffect="none",e.stopPropagation(),e.preventDefault()}const Sz="Left",Tz="Right",kz="Up",$z="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]},Oy="mousemove",Ay="mouseup",Ez="touchend",Mz="touchmove",Oz="touchstart";function Az(e,t,n,r){return e>t?n>0?Tz:Sz:r>0?$z:kz}function Ry(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 Rz(e,t){const n=u=>{const d="touches"in u;d&&u.touches.length>1||e((f,h)=>{h.trackMouse&&!d&&(document.addEventListener(Oy,r),document.addEventListener(Ay,o));const{clientX:p,clientY:m}=d?u.touches[0]:u,g=Ry([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]=Ry([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=Az(C,x,_,w),R=typeof f.delta=="number"?f.delta:f.delta[T.toLowerCase()]||Fo.delta;if(C<R&&x<R&&!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 O=!1;return(f.onSwiping||f.onSwiped||f[`onSwiped${T}`])&&(O=!0),O&&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(Oy,r),document.removeEventListener(Ay,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=[[Oz,n,h],[Mz,r,Object.assign(Object.assign({},h),d.preventScrollOnSwipe?{passive:!1}:{})],[Ez,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 Dz(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 U0(e){const{trackMouse:t}=e,n=pe.useRef(Object.assign({},Hm)),r=pe.useRef(Object.assign({},Fo)),i=pe.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]=pe.useMemo(()=>Rz(l=>n.current=l(n.current,r.current),{trackMouse:t}),[t]);return n.current=Dz(n.current,r.current,i.current,s),o}const Iz="_side-content-bar_16o0s_1",jz="_mobile_16o0s_12",Nz="_expanded_16o0s_20",Pz="_content-container_16o0s_23",Lz="_resizer_16o0s_31",Fz="_expander_16o0s_46",Bz="_icon_16o0s_65",ai={sideContentBar:Iz,mobile:jz,expanded:Nz,contentContainer:Pz,resizer:Lz,expander:Fz,icon:Bz},q3=e=>{const t=Re.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=R=>{R.velocity>.8&&l(!1)},t[0]=l,t[1]=f):f=t[1];let h;t[2]===Symbol.for("react.memo_cache_sentinel")?(h={delta:100},t[2]=h):h=t[2];let p;t[3]!==f?(p={onSwipedRight:f,...h},t[3]=f,t[4]=p):p=t[4];const m=U0(p),[g,y]=v.useState(null);let _;t[5]!==s||t[6]!==d?(_=ce("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:ce(ai.resizer,"luminus-side-content-bar-resizer","shadow"),draggable:!0,onDragStart:R=>y({startX:R.clientX,widthStart:n}),onDrag:R=>o(((g==null?void 0:g.widthStart)??0)+(((g==null?void 0:g.startX)??0)-R.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:ce(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},zz=e=>{const t=Re.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},Wz="_full-screen-container_1rm4r_1",Y3={fullScreenContainer:Wz},Uz=ce("overflow-hidden luminus-full-screen-container",Y3.fullScreenContainer),Hz="container-fluid",Vz=e=>{const t=Re.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(IC),{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=Uz;break e}case"main":{E=Hz;break e}default:throw new Error(`PageContainer got incorrect variant type: ${p}`)}const k=E;let T,R;t[0]!==m||t[1]!==u||t[2]!==g||t[3]!==n?(T=()=>(u?m(u):typeof n=="string"&&n&&m(n),()=>g()),R=[u,m,g,n],t[0]=m,t[1]=u,t[2]=g,t[3]=n,t[4]=T,t[5]=R):(T=t[4],R=t[5]),v.useEffect(T,R);let $;t[6]===Symbol.for("react.memo_cache_sentinel")?($={onSwipedLeft:ne=>{ne.velocity>.8&&S(!0)},delta:100},t[6]=$):$=t[6];const O=U0($),{isMobile:D}=Pc(),I=D&&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 M=s?"p-0":"p-3";let L;t[10]!==l||t[11]!==M||t[12]!==k?(L=ce(k,M,l),t[10]=l,t[11]=M,t[12]=k,t[13]=L):L=t[13];let B;t[14]!==i||t[15]!==w||t[16]!==p?(B=p==="fullScreen"?{width:i?`calc(100% - ${w}px)`:"100%"}:void 0,t[14]=i,t[15]=w,t[16]=p,t[17]=B):B=t[17];const P=p==="fullScreen"?Y3.fullScreenContainer:void 0;let U;t[18]!==i||t[19]!==w||t[20]!==p?(U=p==="main"?{paddingRight:i?`${w}px`:void 0}:{height:"100%",width:"100%"},t[18]=i,t[19]=w,t[20]=p,t[21]=U):U=t[21];let H;t[22]!==I||t[23]!==r||t[24]!==_||t[25]!==n?(H=I?b.jsx(Z0,{variant:"warning",children:_.unavailableOnMobile}):b.jsxs(b.Fragment,{children:[n?b.jsx(zz,{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]!==U||t[29]!==H?(q=b.jsx("div",{className:P,style:U,children:H}),t[27]=P,t[28]=U,t[29]=H,t[30]=q):q=t[30];let G;t[31]!==O||t[32]!==L||t[33]!==B||t[34]!==q?(G=b.jsx("div",{className:L,style:B,...O,children:q}),t[31]=O,t[32]=L,t[33]=B,t[34]=q,t[35]=G):G=t[35];let K;t[36]!==I||t[37]!==x||t[38]!==i||t[39]!==h||t[40]!==w?(K=i&&!I?b.jsx(q3,{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]!==G||t[43]!==K?(te=b.jsxs(b.Fragment,{children:[G,K]}),t[42]=G,t[43]=K,t[44]=te):te=t[44],te};var H0={};H0.match=Xz;H0.parse=G3;var qz=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,Yz=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,Gz=/^(?:(min|max)-)?(.+)/,Zz=/(em|rem|px|cm|mm|in|pt|pc)?$/,Kz=/(dpi|dpcm|dppx)?$/;function Xz(e,t){return G3(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=jy(c),u=jy(u);break;case"resolution":c=Iy(c),u=Iy(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=Dy(c),u=Dy(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 G3(e){return e.split(",").map(function(t){t=t.trim();var n=t.match(qz),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(Yz),c=l[1].toLowerCase().match(Gz);return{modifier:c[1],feature:c[2],value:l[2]}}),o})}function Dy(e){var t=Number(e),n;return t||(n=e.match(/^(\d+)\s*\/\s*(\d+)$/),t=n[1]/n[2]),t}function Iy(e){var t=parseFloat(e),n=String(e).match(Kz)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return t*96;default:return t}}function jy(e){var t=parseFloat(e),n=String(e).match(Zz)[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 Jz=H0.match,Ny=typeof window<"u"?window.matchMedia:null;function Qz(e,t,n){var r=this,i;Ny&&!n&&(i=Ny.call(window,e)),i?(this.matches=i.matches,this.media=i.media,i.addListener(s)):(this.matches=Jz(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 eW(e,t,n){return new Qz(e,t,n)}var tW=eW;const nW=an(tW);var rW=/[A-Z]/g,iW=/^ms-/,Tp={};function aW(e){return"-"+e.toLowerCase()}function Z3(e){if(Tp.hasOwnProperty(e))return Tp[e];var t=e.replace(rW,aW);return Tp[e]=iW.test(t)?"-"+t:t}function oW(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=xe.oneOfType([xe.string,xe.number]),K3={all:xe.bool,grid:xe.bool,aural:xe.bool,braille:xe.bool,handheld:xe.bool,print:xe.bool,projection:xe.bool,screen:xe.bool,tty:xe.bool,tv:xe.bool,embossed:xe.bool},sW={orientation:xe.oneOf(["portrait","landscape"]),scan:xe.oneOf(["progressive","interlace"]),aspectRatio:xe.string,deviceAspectRatio:xe.string,height:jn,deviceHeight:jn,width:jn,deviceWidth:jn,color:xe.bool,colorIndex:xe.bool,monochrome:xe.bool,resolution:jn,type:Object.keys(K3)},{type:_me,...lW}=sW,cW={minAspectRatio:xe.string,maxAspectRatio:xe.string,minDeviceAspectRatio:xe.string,maxDeviceAspectRatio:xe.string,minHeight:jn,maxHeight:jn,minDeviceHeight:jn,maxDeviceHeight:jn,minWidth:jn,maxWidth:jn,minDeviceWidth:jn,maxDeviceWidth:jn,minColor:xe.number,maxColor:xe.number,minColorIndex:xe.number,maxColorIndex:xe.number,minMonochrome:xe.number,maxMonochrome:xe.number,minResolution:jn,maxResolution:jn,...lW},uW={...K3,...cW};var dW={all:uW};const fW=e=>`not ${e}`,hW=(e,t)=>{const n=Z3(e);return typeof t=="number"&&(t=`${t}px`),t===!0?n:t===!1?fW(n):`(${n}: ${t})`},pW=e=>e.join(" and "),mW=e=>{const t=[];return Object.keys(dW.all).forEach(n=>{const r=e[n];r!=null&&t.push(hW(n,r))}),pW(t)},gW=v.createContext(void 0),vW=e=>e.query||mW(e),Py=e=>e?Object.keys(e).reduce((n,r)=>(n[Z3(r)]=e[r],n),{}):void 0,X3=()=>{const e=v.useRef(!1);return v.useEffect(()=>{e.current=!0},[]),e.current},bW=e=>{const t=v.useContext(gW),n=()=>Py(e)||Py(t),[r,i]=v.useState(n);return v.useEffect(()=>{const a=n();oW(r,a)||i(a)},[e,t]),r},yW=e=>{const t=()=>vW(e),[n,r]=v.useState(t);return v.useEffect(()=>{const i=t();n!==i&&r(i)},[e]),n},xW=(e,t)=>{const n=()=>nW(e,t||{},!!t),[r,i]=v.useState(n),a=X3();return v.useEffect(()=>{if(a){const o=n();return i(o),()=>{o&&o.dispose()}}},[e,t]),r},wW=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=bW(t),i=yW(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const a=xW(i,r),o=wW(a);return X3(),v.useEffect(()=>{},[o]),v.useEffect(()=>()=>{a&&a.dispose()},[]),o},_W=["sm","md","lg","always"],J3="ResponsiveContextDropdownItem",CW=e=>e.type.displayName===J3,V0=e=>({});V0.displayName=J3;function SW(e){return e.type&&e.type===v.Fragment}const Q3=e=>{const t=[];Array.isArray(e)?t.push(...e):t.push(e);const n=[];return t.forEach(r=>{if(r){if(SW(r)){n.push(...Q3(r.props.children));return}n.push(r)}}),n},TW=(e,t)=>{if(t===void 0)return e;const{searchQueryString:n,...r}=t;return no.generatePath(e,r)+"?"+n},kW="_disabled_9mp5v_1",$W={disabled:kW},EW=()=>{const e=Re.c(5),{ProjectIconComponent:t}=v.useContext(Qt),{checkUserHasPermissions:n}=OC();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,R=y??(_==null?void 0:TW(_==null?void 0:_.route,x)),$=m??(_==null?void 0:_.name),O=C??(_!=null?b.jsx(t,{icon:"link"}):void 0);if(p==="always"||_W.indexOf(p)>=s){u&&c.length>0&&c.push(u),u=null;const D=ce(S.className,{[$W.disabled]:T});R!=null?c.push(b.jsx(Ma,{...S,as:"link",to:R,disabled:T,icon:O,className:D,children:$},g)):c.push(b.jsx(Ma,{...S,icon:O,className:D,children:$},g))}else{const D=R!=null?{as:"link",href:R}:{};l.push(b.jsx(gf,{...S,...D,icon:O,className:ce(T?"disabled":void 0,S.className),children:$},g))}};return Q3(o).forEach(h=>{h&&v.isValidElement(h)&&(CW(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},eS=e=>{const t=Re.c(18),{children:n}=e,{getProcessedChildren:r}=EW();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(O0,{toggle:b.jsx(M0,{as:E0}),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};eS.Item=V0;const MW=v.createContext(void 0);function OW(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(D){var I=c.current,j=u.current;return c.current=u.current=null,o.current=D,s.current=s.current||D,d.current=f.current.apply(j,I)},E=function(D,I){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(D):setTimeout(D,I)},k=function(D){if(!h.current)return!1;var I=D-a.current;return!a.current||I>=t||I<0||_&&D-o.current>=C},T=function(D){return l.current=null,y&&c.current?S(D):(c.current=u.current=null,d.current)},R=function D(){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(D,A)}},$=function(){r&&r({})},O=function(){if(p||w){var D=Date.now(),I=k(D);if(c.current=[].slice.call(arguments),u.current=i,a.current=D,I){if(!l.current&&h.current)return o.current=a.current,E(R,t),g?S(a.current):d.current;if(_)return E(R,t),S(a.current)}return l.current||E(R,t),d.current}};return O.cancel=function(){var D=l.current;D&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),o.current=0,c.current=a.current=u.current=l.current=null,D&&r&&r({})},O.isPending=function(){return!!l.current},O.flush=function(){return l.current?T(Date.now()):d.current},O},[g,_,t,C,y,m,p,w,r]);return x}function AW(e,t){return e===t}function q0(e,t,n){var r=n&&n.equalityFn||AW,i=v.useRef(e),a=v.useState({})[1],o=OW(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 RW="_feedback_esh1j_1",DW="_feedback-spacer_esh1j_8",Ly={feedback:RW,feedbackSpacer:DW},oo=e=>{const t=Re.c(9),{message:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=ce("invalid-feedback luminus-invalid-feedback",Ly.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=ce("invalid-feedback-spacer",Ly.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},IW="_wrapper_1mvyk_1",jW="_open_1mvyk_9",NW="_dropdown_1mvyk_13",PW="_search-input-container_1mvyk_19",LW="_search-input_1mvyk_19",FW="_loading-container_1mvyk_25",BW="_items-container_1mvyk_32",zW="_header-row_1mvyk_38",WW="_name_1mvyk_49",UW="_item_1mvyk_32",HW="_column-item_1mvyk_65",VW="_action-buttons-container_1mvyk_89",qW="_reverse_1mvyk_97",YW="_action-button_1mvyk_89",GW="_actions-dropdown_1mvyk_110",yn={wrapper:IW,open:jW,dropdown:NW,searchInputContainer:PW,searchInput:LW,loadingContainer:FW,itemsContainer:BW,headerRow:zW,name:WW,item:UW,columnItem:HW,actionButtonsContainer:VW,reverse:qW,actionButton:YW,actionsDropdown:GW},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})=>{var Se;const{texts:{customSelect:S}}=v.useContext(Qt),E=v.useRef(null),k=v.useRef(null),T=v.useRef(null),R=v.useRef(null),$=v.useRef(null),[O,D]=v.useState(""),[I]=q0(O,500),[,j]=v.useState(!1),{copyToClipboard:A}=DC(),M=(Se=g.current)==null?void 0:Se.getBoundingClientRect(),L=(M==null?void 0:M.x)??0,B=((M==null?void 0:M.x)??0)+((M==null?void 0:M.width)??0),P=(M==null?void 0:M.y)??0,U=((M==null?void 0:M.y)??0)+((M==null?void 0:M.height)??0),H=(M==null?void 0:M.width)??0,q=(M==null?void 0:M.height)??0,G=5,{isMobile:K}=Pc(),te=8,ne=v.useMemo(()=>L?L>window.innerWidth/2-te:!1,[L]),W=v.useMemo(()=>P?P>window.innerHeight/2-te:!1,[P]);v.useEffect(()=>{var le;e&&((le=T.current)==null||le.focus())},[T,e]),v.useEffect(()=>{e||D("")},[e]),v.useEffect(()=>{s&&s(I)},[I,s]);const[F,z]=v.useState(null);v.useEffect(()=>{e&&n.length>0?z(0):z(null)},[n,e]);const V=v.useMemo(()=>F!==null?n.at(F)??null:null,[F,n]),N=v.useCallback((le,fe)=>{var Ge,_e;const we=document.getElementById(`item-${le}`);if(we){const ye=we.clientHeight??0;fe==="down"?(Ge=R.current)==null||Ge.scrollBy({left:0,top:ye,behavior:"smooth"}):(_e=R.current)==null||_e.scrollBy({left:0,top:-ye,behavior:"smooth"})}},[]),ee=v.useCallback(le=>{if(F===null||p)return;const fe=F+le;fe<0||fe>=n.length||z(we=>(we!==null&&N(we,le>0?"down":"up"),fe))},[F,n,p,N]),Q=v.useCallback(le=>{if(e)switch(le.key){case"Escape":le.stopPropagation(),le.preventDefault(),t();break;case"Enter":le.stopPropagation(),le.preventDefault(),p||o(V);break;case"ArrowUp":le.stopPropagation(),le.preventDefault(),ee(-1);break;case"ArrowDown":le.stopPropagation(),le.preventDefault(),ee(1);break}},[t,e,ee,V,p,o]),Z=v.useCallback(()=>{j(le=>!le)},[]);v.useEffect(()=>(window.addEventListener("scroll",Z),()=>{window.removeEventListener("scroll",Z)}),[Z]),v.useEffect(()=>(window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",Z)}),[Z]),AC(Q),MC([E,k,$],t);const se=c??(u&&u.length>0?250:0),X=(u==null?void 0:u.reduce((le,fe)=>le+(fe.width??100),0))??0,J=v.useMemo(()=>(a&&e&&!p&&!C)??!1,[a,e,p,C]),ie=v.useMemo(()=>(a&&e)??!1,[a,e]),oe=v.useMemo(()=>e&&(ie||_!==void 0||w!==void 0||x!=null&&x.length>0),[e,ie,_,w,x]),ge=32,de=K?`calc(100vw - ${ge}px)`:`calc(max(${H}px, calc(${se}px + ${X}px)))`,ue=v.useMemo(()=>(O.length<1&&r&&r.length>0?r:n).map(le=>{var fe,we;return d?((fe=le.id)==null?void 0:fe.toString())??"":((we=le.name)==null?void 0:we.toString())??""}).reduce((le,fe)=>le.length>fe.length?le:fe,""),[O,r,n,d]);return b.jsxs(b.Fragment,{children:[b.jsx(tS,{show:e,onClick:t}),b.jsxs("div",{className:ce("luminus-dropdown-picker-actions",yn.actionButtonsContainer,{[yn.reverse]:ne}),style:{top:`calc(${P}px + ${q/2}px - 12px)`,left:ne?J&&ie?`calc(${L}px - 24px - 8px - 24px - 4px)`:`calc(${L}px - 24px - 8px)`:`calc(${B}px + 8px)`},children:[J&&b.jsx("button",{ref:k,type:"button",className:ce("luminus-dropdown-picker-clear-button",yn.actionButton),onClick:()=>!p&&o(null),children:b.jsx(mn,{variant:"caption",className:"text-danger",children:b.jsx(u4,{size:16})})}),oe?b.jsx("div",{ref:$,children:b.jsxs(O0,{toggle:b.jsx(M0,{as:E0,className:ce("luminus-dropdown-picker-actions-dropdown",yn.actionsDropdown),icon:b.jsx(mn,{variant:"caption",className:"text-primary",children:b.jsx(h4,{size:16})})}),children:[ie?b.jsx(Ma,{icon:b.jsx(fO,{}),onClick:()=>{var le,fe;A(d?((le=a==null?void 0:a.id)==null?void 0:le.toString())??"":((fe=a==null?void 0:a.name)==null?void 0:fe.toString())??"")},children:S.copySelection}):null,ie&&(_||w)?b.jsx(Pm,{}):null,_?b.jsx(Ma,{icon:b.jsx(dO,{}),onClick:()=>{window.open(_,"_blank")},children:S.addNewOption}):null,w?b.jsx(Ma,{icon:b.jsx(wO,{}),onClick:()=>{w()},children:S.refreshOptions}):null,x&&x.length>0?b.jsx(Pm,{}):null,x==null?void 0:x.map(le=>b.jsxs(Ma,{onClick:()=>{le.onClick(),t()},children:[le.icon??null,le.label]},le.label))]})}):null]}),b.jsx("div",{className:ce("luminus-dropdown-picker",yn.wrapper,{[yn.open]:e}),style:{top:W?`calc(${P}px - 50vh - 8px)`:`calc(${U}px + 8px)`,left:K?`${ge/2}px`:ne?`calc(${B}px - ${de})`:L,right:K?`${ge/2}px`:ne?`${B}px`:`calc(${L}px + ${de})`,width:de,justifyContent:W?"flex-end":"flex-start"},children:b.jsx("div",{ref:E,className:ce("shadow rounded",yn.dropdown),children:!p&&b.jsxs(b.Fragment,{children:[!s||f&&(h??n.length)<=G?null:b.jsx("div",{className:ce("search-input-container border-bottom",yn.searchInputContainer),children:b.jsx(Kn.Control,{ref:T,type:"search",size:"sm",className:yn.searchInput,placeholder:l.searchPlaceholder,value:O,onChange:le=>{var fe;return D(((fe=le.target)==null?void 0:fe.value)??"")}})}),O.length<1&&r&&r.length>0?b.jsx(Z0,{variant:"info",size:"sm",children:i??S.suggestedItemsTitle}):null,m?b.jsx("div",{className:yn.loadingContainer,children:b.jsx(l0,{animation:"border",variant:"primary"})}):(O.length<1&&r&&(r==null?void 0:r.length)>0||n.length>0)&&b.jsxs("div",{ref:R,className:ce("items",yn.itemsContainer),children:[u&&u.length>0&&b.jsxs("div",{className:ce("header-row border-bottom",yn.headerRow),children:[b.jsx("div",{className:yn.name,children:b.jsx(mn,{variant:"body2",children:ue})}),u==null?void 0:u.filter(le=>le.key!==y).map(le=>b.jsx("div",{className:yn.columnItem,style:{width:`${le.width??100}px`,minWidth:`${le.width??100}px`,maxWidth:`${le.width??100}px`},children:b.jsx(mn,{variant:"caption",children:le.name})},le.key))]}),(O.length<1&&r&&r.length>0?r:n).map((le,fe)=>b.jsxs("button",{id:`item-${fe}`,type:"button",className:ce("item cursor-pointer",yn.item,{[yn.focused]:F===fe},{focused:F===fe},{archive:le.additionalColumns?le.additionalColumns[y]:!1}),onClick:()=>!p&&o(le),onMouseEnter:()=>z(fe),children:[b.jsx("div",{className:yn.name,children:b.jsx(mn,{variant:"body2",children:d?le.id:le.name})}),u==null?void 0:u.filter(we=>we.key!==y).map(we=>b.jsx("div",{className:yn.columnItem,style:{width:`${we.width??100}px`,minWidth:`${we.width??100}px`,maxWidth:`${we.width??100}px`},children:b.jsx(mn,{variant:"caption",className:ce("text-muted"),children:le.additionalColumns&&le.additionalColumns[we.key]})},we.key))]},le.id))]})]})})})]})},ZW="_backdrop_3huvf_1",KW="_show_3huvf_11",Fy={backdrop:ZW,show:KW},tS=e=>{const t=Re.c(7),{show:n,onClick:r}=e;let i;t[0]!==n?(i=ce("luminus-backdrop",Fy.backdrop,{[Fy.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 Y0={},zc={};Object.defineProperty(zc,"__esModule",{value:!0});zc.bind=void 0;function XW(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=XW;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 JW=zc;function By(e){if(!(typeof e>"u"))return typeof e=="boolean"?{capture:e}:e}function QW(e,t){if(t==null)return e;var n=Bo(Bo({},e),{options:Bo(Bo({},By(t)),By(e.options))});return n}function eU(e,t,n){var r=t.map(function(i){var a=QW(i,n);return(0,JW.bind)(e,a)});return function(){r.forEach(function(a){return a()})}}$f.bindAll=eU;(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}})})(Y0);function nS(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 G0=nS(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 tU(e){var t=e.dragLeave;return G0()?t.hasOwnProperty(Vm.isLeavingWindow):!1}(function(){if(typeof window>"u"||process.env.NODE_ENV==="test"||!G0())return;function t(){return{enterCount:0,isOverWindow:!1}}var n=t();function r(){n=t()}Y0.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 nU=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=nU(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 rU(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 Z0=e=>{const{variant:t,children:n,className:r,size:i="md",typographyVariant:a=i==="sm"?"body2":"body",...o}={...e};return b.jsx(yE,{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 K0=Uc(),rt=e=>Wc(e,K0),X0=Uc();rt.write=e=>Wc(e,X0);var Ef=Uc();rt.onStart=e=>Wc(e,Ef);var J0=Uc();rt.onFrame=e=>Wc(e,J0);var Q0=Uc();rt.onFinish=e=>Wc(e,Q0);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(rS(n),0,i),Hi+=1,iS(),i};var rS=e=>~(~Go.findIndex(t=>t.time>e)||~Go.length);rt.cancel=e=>{Ef.delete(e),J0.delete(e),Q0.delete(e),K0.delete(e),X0.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 ev=typeof window<"u"?window.requestAnimationFrame:()=>{};rt.use=e=>ev=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"):oS()};var Ui=-1,Hi=0,qm=!1;function Wc(e,t){qm?(t.delete(e),e(0)):(t.add(e),iS())}function iS(){Ui<0&&(Ui=0,rt.frameLoop!=="demand"&&ev(aS))}function iU(){Ui=-1}function aS(){~Ui&&(ev(aS),rt.batchedUpdates(oS))}function oS(){const e=Ui;Ui=rt.now();const t=rS(Ui);if(t&&(sS(Go.splice(0,t),n=>n.handler()),Hi-=t),!Hi){iU();return}Ef.flush(),K0.flush(e?Math.min(64,Ui-e):16.667),J0.flush(),X0.flush(),Q0.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,sS(t,r=>r(n)&&e.add(r)),Hi+=e.size,t=e)}}}function sS(e,t){e.forEach(n=>{try{t(n)}catch(r){rt.catch(r)}})}var aU=Object.defineProperty,oU=(e,t)=>{for(var n in t)aU(e,n,{get:t[n],enumerable:!0})},Mr={};oU(Mr,{assign:()=>lU,colors:()=>Yi,createStringInterpolator:()=>nv,skipAnimation:()=>cS,to:()=>lS,willAdvance:()=>rv});function Ym(){}var sU=(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 kl(e,t){if(e.size){const n=Array.from(e);e.clear(),Ke(n,t)}}var bl=(e,...t)=>kl(e,n=>n(...t)),tv=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),nv,lS,Yi=null,cS=!1,rv=Ym,lU=e=>{e.to&&(lS=e.to),e.now&&(rt.now=e.now),e.colors!==void 0&&(Yi=e.colors),e.skipAnimation!=null&&(cS=e.skipAnimation),e.createStringInterpolator&&(nv=e.createStringInterpolator),e.requestAnimationFrame&&rt.use(e.requestAnimationFrame),e.batchedUpdates&&(rt.batchedUpdates=e.batchedUpdates),e.willAdvance&&(rv=e.willAdvance),e.frameLoop&&(rt.frameLoop=e.frameLoop)},$l=new Set,lr=[],Ep=[],yd=0,Mf={get idle(){return!$l.size&&!lr.length},start(e){yd>e.priority?($l.add(e),rt.onStart(cU)):(uS(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),dS(e))}},clear(){lr=[],$l.clear()}};function cU(){$l.forEach(uS),$l.clear(),rt(Gm)}function uS(e){lr.includes(e)||dS(e)}function dS(e){lr.splice(uU(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||(rv(r),r.advance(e),r.idle||t.push(r))}return yd=0,Ep=lr,Ep.length=0,lr=t,lr.length>0}function uU(e,t){const n=e.findIndex(t);return n<0?e.length:n}var dU={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 fU=new RegExp("rgb"+Of(Sr,Sr,Sr)),hU=new RegExp("rgba"+Of(Sr,Sr,Sr,Sr)),pU=new RegExp("hsl"+Of(Sr,xd,xd)),mU=new RegExp("hsla"+Of(Sr,xd,xd,Sr)),gU=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,vU=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,bU=/^#([0-9a-fA-F]{6})$/,yU=/^#([0-9a-fA-F]{8})$/;function xU(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=bU.exec(e))?parseInt(t[1]+"ff",16)>>>0:Yi&&Yi[e]!==void 0?Yi[e]:(t=fU.exec(e))?(Mo(t[1])<<24|Mo(t[2])<<16|Mo(t[3])<<8|255)>>>0:(t=hU.exec(e))?(Mo(t[1])<<24|Mo(t[2])<<16|Mo(t[3])<<8|Uy(t[4]))>>>0:(t=gU.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=yU.exec(e))?parseInt(t[1],16)>>>0:(t=vU.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=pU.exec(e))?(zy(Wy(t[1]),wu(t[2]),wu(t[3]))|255)>>>0:(t=mU.exec(e))?(zy(Wy(t[1]),wu(t[2]),wu(t[3]))|Uy(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 zy(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 Wy(e){return(parseFloat(e)%360+360)%360/360}function Uy(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 Hy(e){let t=xU(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 nv(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=_U(c,a);return wU(c,a[u],a[u+1],i[u],i[u+1],l,o,s,r.map)}};function wU(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 _U(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var CU={linear:e=>e},ic=Symbol.for("FluidValue.get"),ps=Symbol.for("FluidValue.observers"),sr=e=>!!(e&&e[ic]),Bn=e=>e&&e[ic]?e[ic]():e,Vy=e=>e[ps]||null;function SU(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ac(e,t){const n=e[ps];n&&n.forEach(r=>{SU(r,t)})}var fS=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");TU(this,e)}},TU=(e,t)=>hS(e,ic,t);function Os(e,t){if(e[ic]){let n=e[ps];n||hS(e,ps,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[ps];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ps]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var hS=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),zu=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,kU=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qy=new RegExp(`(${zu.source})(%|[a-z]+)`,"i"),$U=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Af=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,pS=e=>{const[t,n]=EU(e);if(!t||tv())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 pS(n);if(n)return n}return e},EU=e=>{const t=Af.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Op,MU=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,mS=e=>{Op||(Op=Yi?new RegExp(`(${Object.keys(Yi).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(a=>Bn(a).replace(Af,pS).replace(kU,Hy).replace(Op,Hy)),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=!qy.test(t[0])&&((l=t.find(c=>qy.test(c)))==null?void 0:l.replace(zu,""));let s=0;return t[0].replace(zu,()=>`${i[s++](a)}${o||""}`).replace($U,MU)}},iv="react-spring: ",gS=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${iv}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},OU=gS(console.warn);function AU(){OU(`${iv}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var RU=gS(console.warn);function DU(){RU(`${iv}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)||!tv()&&Af.test(e)||e in(Yi||{}))}var Oa=tv()?v.useEffect:v.useLayoutEffect,IU=()=>{const e=v.useRef(!1);return Oa(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function av(){const e=v.useState()[1],t=IU();return()=>{t.current&&e(Math.random())}}var ov=e=>v.useEffect(e,jU),jU=[];function Zm(e){const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current}var sc=Symbol.for("Animated:node"),NU=e=>!!e&&e[sc]===e,Pr=e=>e&&e[sc],sv=(e,t)=>sU(e,sc,t),Df=e=>e&&e[sc]&&e[sc].getPayload(),vS=class{constructor(){sv(this,this)}getPayload(){return this.payload||[]}},If=class bS extends vS{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 bS(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 yS extends If{constructor(t){super(0),this._string=null,this._toString=rc({output:[t,t]})}static create(t){return new yS(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 vS{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Yr(this.source,(n,r)=>{NU(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))}},PU=class xS extends jf{constructor(t){super(t)}static create(t){return new xS(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(LU)),!0)}};function LU(e){return(Rf(e)?wd:If).create(e)}function Km(e){const t=Pr(e);return t?t.constructor:ve.arr(e)?PU:Rf(e)?wd:If}var Yy=(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=zU(i,p)},[i]),[s,l]=BU(r,t),c=av(),u=()=>{const p=a.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,s.getValue(!0)):!1)===!1&&c()},d=new FU(u,l),f=v.useRef(void 0);Oa(()=>(f.current=d,Ke(l,p=>Os(p,d)),()=>{f.current&&(Ke(f.current.deps,p=>oc(p,f.current)),rt.cancel(f.current.update))})),v.useEffect(u,[]),ov(()=>()=>{const p=f.current;Ke(p.deps,m=>oc(m,p))});const h=t.getComponentProps(s.getValue());return pe.createElement(e,{...h,ref:o})})},FU=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&rt.write(this.update)}};function BU(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 zU(e,t){return e&&(ve.fun(e)?e(t):e.current=t),t}var Gy=Symbol.for("AnimatedComponent"),WU=(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=Zy(o)||"Anonymous";return ve.str(o)?o=a[o]||(a[o]=Yy(o,i)):o=o[Gy]||(o[Gy]=Yy(o,i)),o.displayName=`Animated(${s})`,o};return Yr(e,(o,s)=>{ve.arr(e)&&(s=Zy(o)),a[s]=a(o)}),{animated:a}},Zy=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 El=(e,t)=>e===!0||!!(t&&e&&(ve.fun(e)?e(t):Nn(e).includes(t))),wS=(e,t)=>ve.obj(e)?t&&e[t]:e,_S=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,UU=e=>e,Nf=(e,t=UU)=>{let n=HU;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},HU=["config","onProps","onStart","onChange","onPause","onResume","onRest"],VU={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 qU(e){const t={};let n=0;if(Yr(e,(r,i)=>{VU[i]||(t[i]=r,n++)}),n)return t}function lv(e){const t=qU(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 CS(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 SS(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var TS={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={...TS.default,mass:1,damping:1,easing:CU.linear,clamp:!1},YU=class{constructor(){this.velocity=0,Object.assign(this,Qm)}};function GU(e,t,n){n&&(n={...n},Ky(n,t),t={...n,...t}),Ky(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 Ky(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 Xy=[],ZU=class{constructor(){this.changed=!1,this.values=Xy,this.toValues=null,this.fromValues=Xy,this.config=new YU,this.immediate=!1}};function kS(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let l,c,u=El(n.cancel??(r==null?void 0:r.cancel),t);if(u)h();else{ve.und(n.pause)||(i.paused=El(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||El(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 cv=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Zo(e.get()):t.every(n=>n.noop)?$S(e.get()):wr(e.get(),t.every(n=>n.finished)),$S=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 ES(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 Jy,w=new Qy;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 Jy)m=g.result;else if(g instanceof Qy)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){kl(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Jy=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.")}},Qy=class extends Error{constructor(){super("SkipAnimationSignal")}},eg=e=>e instanceof uv,KU=1,uv=class extends fS{constructor(){super(...arguments),this.id=KU++,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 AU(),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"),MS=1,tg=2,ng=4,Ap=e=>(e[Ga]&MS)>0,Ni=e=>(e[Ga]&tg)>0,rl=e=>(e[Ga]&ng)>0,e2=(e,t)=>t?e[Ga]|=tg|MS:e[Ga]&=~tg,t2=(e,t)=>t?e[Ga]|=ng:e[Ga]&=~ng,XU=class extends uv{constructor(e,t){if(super(),this.animation=new ZU,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)||rl(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 rl(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,R=Math.ceil(e/T);for(let $=0;$<R&&(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 O=-a.tension*1e-6*(h-d),D=-a.friction*.001*y,I=(O+D)/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=>cv(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)?wS(o,n):o)),r2(this,e,"onProps"),al(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 kS(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{rl(this)||(t2(this,!0),bl(a.pauseQueue),al(this,"onPause",wr(this,il(this,this.animation.to)),this))},resume:()=>{rl(this)&&(t2(this,!1),Ni(this)&&this._resume(),bl(a.resumeQueue),al(this,"onResume",wr(this,il(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const s=OS(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&&GU(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)&&El(t.reset,a),C=w?d:this.get(),x=lc(u),S=ve.num(x)||ve.arr(x)||Rf(x),E=!p&&(!S||El(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),R=!1;if(!T){const $=w||!Ap(this)&&f;(h||$)&&(R=si(lc(C),x),T=!R),(!si(s.immediate,E)&&!E||!si(m.decay,g)||!si(m.velocity,y))&&(T=!0)}if(R&&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(QU,D=>r2(this,t,D));const O=wr(this,il(this,l));bl(this._pendingCalls,O),this._pendingCalls.add(n),s.changed&&rt.batchedUpdates(()=>{var D;s.changed=!w,$==null||$(O,this),w?zn(o.onRest,O):(D=s.onStart)==null||D.call(s,O,this)})}w&&this._set(C),p?n(ES(t.to,t,this._state,this)):T?this._start():Ni(this)&&!h?this._pendingCalls.add(n):n($S(C))}_focus(e){const t=this.animation;e!==t.to&&(Vy(this)&&this._detach(),t.to=e,Vy(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;sr(t)&&(Os(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?sv(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,al(this,"onStart",wr(this,il(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)||(e2(this,!0),rl(this)||this._resume())}_resume(){Mr.skipAnimation?this.finish():Mf.start(this)}_stop(e,t){if(Ni(this)){e2(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(),il(this,e??n.to));bl(this._pendingCalls,r),n.changed&&(n.changed=!1,al(this,"onRest",r,this))}}};function il(e,t){const n=lc(t),r=lc(e.get());return si(r,n)}function OS(e,t=e.loop,n=e.to){const r=zn(t);if(r){const i=r!==!0&&lv(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=lv(e),r=new Set;return ve.obj(t)&&n2(t,r),ve.obj(n)&&n2(n,r),e.keys=r.size?Array.from(r):null,e}function JU(e){const t=uc(e);return ve.und(t.default)&&(t.default=Nf(t)),t}function n2(e,t){Yr(e,(n,r)=>n!=null&&t.add(r))}var QU=["onStart","onRest","onChange","onPause","onResume"];function r2(e,t,n){e.animation[n]=t[n]!==_S(t,n)?wS(t[n],e.key):void 0}function al(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 eH=["onStart","onChange","onRest"],tH=1,AS=class{constructor(e,t){this.id=tH++,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):(NS(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,kl(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&&kl(t,([s,l])=>{l.value=o,s(l,this,this._item)}),a&&(this._started=!1,kl(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=>RS(e,n))).then(n=>cv(e,n))}async function RS(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(eH,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,bl(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||_S(t,"cancel")===!0;(u||h&&d.asyncId)&&f.push(kS(++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(ES(u,m,d,e)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=cv(e,await Promise.all(f));if(o&&p.finished&&!(n&&p.noop)){const m=OS(t,o,i);if(m)return NS(e,[m]),RS(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}),jS(n,r,i=>IS(i))}),DS(e,n),n}function DS(e,t){Yr(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,Os(n,e))})}function IS(e,t){const n=new XU;return n.key=e,t&&Os(n,t),n}function jS(e,t,n){t.keys&&Ke(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function NS(e,t){Ke(t,n=>{jS(e.springs,n,r=>IS(r,e))})}var PS=pe.createContext({pause:!1,immediate:!1}),LS=()=>{const e=[],t=function(r){DU();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 nH(e,t,n){const r=ve.fun(t)&&t;r&&!n&&(n=[]);const i=v.useMemo(()=>r||arguments.length==3?LS():void 0,[]),a=v.useRef(0),o=av(),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=>{DS(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 AS(null,s.flush)),x=r?r(w,C):t[w];x&&(c.current[w]=JU(x))}}const f=l.current.map((y,_)=>ig(y,c.current[_])),h=v.useContext(PS),p=Zm(h),m=h!==p&&CS(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&&(SS(_,C.ref),_.ref?_.queue.push(C):_.start(C))})}),ov(()=>()=>{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]=nH(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?LS():void 0,[]),h=Nn(e),p=[],m=v.useRef(null),g=i?null:m.current;Oa(()=>{m.current=p}),ov(()=>(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=iH(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 AS},p[j].ctrl.item=I)}),w.length){let I=-1;const{leave:j}=r?r():t;Ke(w,(A,M)=>{const L=g[M];~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=av(),S=Nf(t),E=new Map,k=v.useRef(new Map),T=v.useRef(!1);Ke(p,(I,j)=>{const A=I.key,M=I.phase,L=r?r():t;let B,P;const U=zn(L.delay||0,A);if(M=="mount")B=L.enter,P="enter";else{const K=y.indexOf(A)<0;if(M!="leave")if(K)B=L.leave,P="leave";else if(B=L.update)P="update";else return;else if(!K)B=L.enter,P="enter";else return}if(B=zn(B,I.item,j),B=ve.obj(B)?lv(B):{to:B},!B.config){const K=d||S.config;B.config=zn(K,I.item,j,P)}C+=o;const H={...S,delay:U+C,ref:u,immediate:L.immediate,reset:!1,...B};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(W=>W.key===A);if(ne&&!(K.cancelled&&ne.phase!="update")&&ne.ctrl.idle){const W=te.every(F=>F.ctrl.idle);if(ne.phase=="leave"){const F=zn(s,ne.item);if(F!==!1){const z=F===!0?0:F;if(ne.expired=!0,!W&&z>0){z<=2147483647&&(ne.expirationId=setTimeout(x,z));return}}}W&&te.some(F=>F.expired)&&(k.current.delete(ne),l&&(T.current=!0),x())}};const G=ig(I.ctrl,H);P==="leave"&&l?k.current.set(I,{phase:P,springs:G,payload:H}):E.set(I,{phase:P,springs:G,payload:H})});const R=v.useContext(PS),$=Zm(R),O=R!==$&&CS(R);Oa(()=>{O&&Ke(p,I=>{I.ctrl.start({default:R})})},[R]),Ke(E,(I,j)=>{if(k.current.size){const A=p.findIndex(M=>M.key===j.key);p.splice(A,1)}}),Oa(()=>{Ke(k.current.size?k.current:E,({phase:I,payload:j},A)=>{const{ctrl:M}=A;A.phase=I,f==null||f.add(M),O&&I=="enter"&&M.start({default:R}),j&&(SS(M,j.ref),(M.ref||f)&&!T.current?M.update(j):(M.start(j),T.current&&(T.current=!1)))})},i?void 0:n);const D=I=>pe.createElement(pe.Fragment,null,p.map((j,A)=>{const{springs:M}=E.get(j)||j.ctrl,L=I({...M},j.item,j,A),B=ve.str(j.key)||ve.num(j.key)?j.key:j.ctrl.id,P=pe.version<"19.0.0",U=(L==null?void 0:L.props)??{},H=P?L==null?void 0:L.ref:U==null?void 0:U.ref;return L&&L.type?pe.createElement(L.type,{...U,key:B,ref:H}):L}));return f?[D,f]:D}var rH=1;function iH(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):rH++})}return ve.und(n)?e:ve.fun(n)?e.map(n):Nn(n)}var FS=class extends uv{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);sv(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&&i2(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&&!i2(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)&&Os(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 aH(e){return e.idle!==!1}function i2(e){return!e.size||Array.from(e).every(aH)}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 FS(e,t);Mr.assign({createStringInterpolator:mS,to:(e,t)=>new FS(e,t)});var BS=/^--/;function oH(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!BS.test(e)&&!(Ml.hasOwnProperty(e)&&Ml[e])?t+"px":(""+t).trim()}var a2={};function sH(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:a2[f]||(a2[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=oH(f,i[f]);BS.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 Ml={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},lH=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),cH=["Webkit","Ms","Moz","O"];Ml=Object.keys(Ml).reduce((e,t)=>(cH.forEach(n=>e[lH(n,t)]=e[t]),e),Ml);var uH=/^(matrix|translate|scale|rotate|skew)/,dH=/^(translate)/,fH=/^(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,hH=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(uH.test(s)){if(delete r[s],ve.und(o))return;const l=dH.test(s)?"px":fH.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 pH(i,a)),super(r)}},pH=class extends fS{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)&&Os(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)}},mH=["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:mS,colors:dU});var gH=WU(mH,{applyAnimatedValues:sH,createAnimatedStyle:e=>new hH(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Vt=gH.animated;function vH(){this.__data__=[],this.size=0}var bH=vH;function yH(e,t){return e===t||e!==e&&t!==t}var Hc=yH,xH=Hc;function wH(e,t){for(var n=e.length;n--;)if(xH(e[n][0],t))return n;return-1}var Pf=wH,_H=Pf,CH=Array.prototype,SH=CH.splice;function TH(e){var t=this.__data__,n=_H(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():SH.call(t,n,1),--this.size,!0}var kH=TH,$H=Pf;function EH(e){var t=this.__data__,n=$H(t,e);return n<0?void 0:t[n][1]}var MH=EH,OH=Pf;function AH(e){return OH(this.__data__,e)>-1}var RH=AH,DH=Pf;function IH(e,t){var n=this.__data__,r=DH(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var jH=IH,NH=bH,PH=kH,LH=MH,FH=RH,BH=jH;function As(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])}}As.prototype.clear=NH;As.prototype.delete=PH;As.prototype.get=LH;As.prototype.has=FH;As.prototype.set=BH;var Lf=As,zH=Lf;function WH(){this.__data__=new zH,this.size=0}var UH=WH;function HH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var VH=HH;function qH(e){return this.__data__.get(e)}var YH=qH;function GH(e){return this.__data__.has(e)}var ZH=GH,KH=typeof Hn=="object"&&Hn&&Hn.Object===Object&&Hn,zS=KH,XH=zS,JH=typeof self=="object"&&self&&self.Object===Object&&self,QH=XH||JH||Function("return this")(),Jr=QH,eV=Jr,tV=eV.Symbol,Rs=tV,o2=Rs,WS=Object.prototype,nV=WS.hasOwnProperty,rV=WS.toString,ol=o2?o2.toStringTag:void 0;function iV(e){var t=nV.call(e,ol),n=e[ol];try{e[ol]=void 0;var r=!0}catch{}var i=rV.call(e);return r&&(t?e[ol]=n:delete e[ol]),i}var aV=iV,oV=Object.prototype,sV=oV.toString;function lV(e){return sV.call(e)}var cV=lV,s2=Rs,uV=aV,dV=cV,fV="[object Null]",hV="[object Undefined]",l2=s2?s2.toStringTag:void 0;function pV(e){return e==null?e===void 0?hV:fV:l2&&l2 in Object(e)?uV(e):dV(e)}var $i=pV;function mV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=mV,gV=$i,vV=Qr,bV="[object AsyncFunction]",yV="[object Function]",xV="[object GeneratorFunction]",wV="[object Proxy]";function _V(e){if(!vV(e))return!1;var t=gV(e);return t==yV||t==xV||t==bV||t==wV}var Ff=_V;const dv=an(Ff);var CV=Jr,SV=CV["__core-js_shared__"],TV=SV,Ip=TV,c2=function(){var e=/[^.]+$/.exec(Ip&&Ip.keys&&Ip.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function kV(e){return!!c2&&c2 in e}var $V=kV,EV=Function.prototype,MV=EV.toString;function OV(e){if(e!=null){try{return MV.call(e)}catch{}try{return e+""}catch{}}return""}var US=OV,AV=Ff,RV=$V,DV=Qr,IV=US,jV=/[\\^$.*+?()[\]{}|]/g,NV=/^\[object .+?Constructor\]$/,PV=Function.prototype,LV=Object.prototype,FV=PV.toString,BV=LV.hasOwnProperty,zV=RegExp("^"+FV.call(BV).replace(jV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function WV(e){if(!DV(e)||RV(e))return!1;var t=AV(e)?zV:NV;return t.test(IV(e))}var UV=WV;function HV(e,t){return e==null?void 0:e[t]}var VV=HV,qV=UV,YV=VV;function GV(e,t){var n=YV(e,t);return qV(n)?n:void 0}var lo=GV,ZV=lo,KV=Jr,XV=ZV(KV,"Map"),fv=XV,JV=lo,QV=JV(Object,"create"),Bf=QV,u2=Bf;function eq(){this.__data__=u2?u2(null):{},this.size=0}var tq=eq;function nq(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rq=nq,iq=Bf,aq="__lodash_hash_undefined__",oq=Object.prototype,sq=oq.hasOwnProperty;function lq(e){var t=this.__data__;if(iq){var n=t[e];return n===aq?void 0:n}return sq.call(t,e)?t[e]:void 0}var cq=lq,uq=Bf,dq=Object.prototype,fq=dq.hasOwnProperty;function hq(e){var t=this.__data__;return uq?t[e]!==void 0:fq.call(t,e)}var pq=hq,mq=Bf,gq="__lodash_hash_undefined__";function vq(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mq&&t===void 0?gq:t,this}var bq=vq,yq=tq,xq=rq,wq=cq,_q=pq,Cq=bq;function Ds(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])}}Ds.prototype.clear=yq;Ds.prototype.delete=xq;Ds.prototype.get=wq;Ds.prototype.has=_q;Ds.prototype.set=Cq;var Sq=Ds,d2=Sq,Tq=Lf,kq=fv;function $q(){this.size=0,this.__data__={hash:new d2,map:new(kq||Tq),string:new d2}}var Eq=$q;function Mq(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Oq=Mq,Aq=Oq;function Rq(e,t){var n=e.__data__;return Aq(t)?n[typeof t=="string"?"string":"hash"]:n.map}var zf=Rq,Dq=zf;function Iq(e){var t=Dq(this,e).delete(e);return this.size-=t?1:0,t}var jq=Iq,Nq=zf;function Pq(e){return Nq(this,e).get(e)}var Lq=Pq,Fq=zf;function Bq(e){return Fq(this,e).has(e)}var zq=Bq,Wq=zf;function Uq(e,t){var n=Wq(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Hq=Uq,Vq=Eq,qq=jq,Yq=Lq,Gq=zq,Zq=Hq;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=qq;Is.prototype.get=Yq;Is.prototype.has=Gq;Is.prototype.set=Zq;var hv=Is,Kq=Lf,Xq=fv,Jq=hv,Qq=200;function eY(e,t){var n=this.__data__;if(n instanceof Kq){var r=n.__data__;if(!Xq||r.length<Qq-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jq(r)}return n.set(e,t),this.size=n.size,this}var tY=eY,nY=Lf,rY=UH,iY=VH,aY=YH,oY=ZH,sY=tY;function js(e){var t=this.__data__=new nY(e);this.size=t.size}js.prototype.clear=rY;js.prototype.delete=iY;js.prototype.get=aY;js.prototype.has=oY;js.prototype.set=sY;var Wf=js,lY=lo,cY=function(){try{var e=lY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),HS=cY,f2=HS;function uY(e,t,n){t=="__proto__"&&f2?f2(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var pv=uY,dY=pv,fY=Hc;function hY(e,t,n){(n!==void 0&&!fY(e[t],n)||n===void 0&&!(t in e))&&dY(e,t,n)}var VS=hY;function pY(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 mY=pY,gY=mY,vY=gY(),qS=vY,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 YS=Cd.exports,bY=Jr,yY=bY.Uint8Array,GS=yY,h2=GS;function xY(e){var t=new e.constructor(e.byteLength);return new h2(t).set(new h2(e)),t}var mv=xY,wY=mv;function _Y(e,t){var n=t?wY(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ZS=_Y;function CY(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var KS=CY,SY=Qr,p2=Object.create,TY=function(){function e(){}return function(t){if(!SY(t))return{};if(p2)return p2(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),kY=TY;function $Y(e,t){return function(n){return e(t(n))}}var XS=$Y,EY=XS,MY=EY(Object.getPrototypeOf,Object),gv=MY,OY=Object.prototype;function AY(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||OY;return e===n}var vv=AY,RY=kY,DY=gv,IY=vv;function jY(e){return typeof e.constructor=="function"&&!IY(e)?RY(DY(e)):{}}var JS=jY;function NY(e){return e!=null&&typeof e=="object"}var br=NY,PY=$i,LY=br,FY="[object Arguments]";function BY(e){return LY(e)&&PY(e)==FY}var zY=BY,m2=zY,WY=br,QS=Object.prototype,UY=QS.hasOwnProperty,HY=QS.propertyIsEnumerable,VY=m2(function(){return arguments}())?m2:function(e){return WY(e)&&UY.call(e,"callee")&&!HY.call(e,"callee")},Uf=VY,qY=Array.isArray,Jn=qY,YY=9007199254740991;function GY(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YY}var bv=GY,ZY=Ff,KY=bv;function XY(e){return e!=null&&KY(e.length)&&!ZY(e)}var Ns=XY,JY=Ns,QY=br;function eG(e){return QY(e)&&JY(e)}var e6=eG,Sd={exports:{}};function tG(){return!1}var nG=tG;Sd.exports;(function(e,t){var n=Jr,r=nG,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,rG=$i,iG=gv,aG=br,oG="[object Object]",sG=Function.prototype,lG=Object.prototype,t6=sG.toString,cG=lG.hasOwnProperty,uG=t6.call(Object);function dG(e){if(!aG(e)||rG(e)!=oG)return!1;var t=iG(e);if(t===null)return!0;var n=cG.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&t6.call(n)==uG}var yv=dG;const xv=an(yv);var fG=$i,hG=bv,pG=br,mG="[object Arguments]",gG="[object Array]",vG="[object Boolean]",bG="[object Date]",yG="[object Error]",xG="[object Function]",wG="[object Map]",_G="[object Number]",CG="[object Object]",SG="[object RegExp]",TG="[object Set]",kG="[object String]",$G="[object WeakMap]",EG="[object ArrayBuffer]",MG="[object DataView]",OG="[object Float32Array]",AG="[object Float64Array]",RG="[object Int8Array]",DG="[object Int16Array]",IG="[object Int32Array]",jG="[object Uint8Array]",NG="[object Uint8ClampedArray]",PG="[object Uint16Array]",LG="[object Uint32Array]",Xt={};Xt[OG]=Xt[AG]=Xt[RG]=Xt[DG]=Xt[IG]=Xt[jG]=Xt[NG]=Xt[PG]=Xt[LG]=!0;Xt[mG]=Xt[gG]=Xt[EG]=Xt[vG]=Xt[MG]=Xt[bG]=Xt[yG]=Xt[xG]=Xt[wG]=Xt[_G]=Xt[CG]=Xt[SG]=Xt[TG]=Xt[kG]=Xt[$G]=!1;function FG(e){return pG(e)&&hG(e.length)&&!!Xt[fG(e)]}var BG=FG;function zG(e){return function(t){return e(t)}}var Ps=zG,Td={exports:{}};Td.exports;(function(e,t){var n=zS,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,WG=BG,UG=Ps,g2=Vf,v2=g2&&g2.isTypedArray,HG=v2?UG(v2):WG,wv=HG;function VG(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var n6=VG,qG=pv,YG=Hc,GG=Object.prototype,ZG=GG.hasOwnProperty;function KG(e,t,n){var r=e[t];(!(ZG.call(e,t)&&YG(r,n))||n===void 0&&!(t in e))&&qG(e,t,n)}var _v=KG,XG=_v,JG=pv;function QG(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?JG(n,s,l):XG(n,s,l)}return n}var Ls=QG;function eZ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var tZ=eZ,nZ=9007199254740991,rZ=/^(?:0|[1-9]\d*)$/;function iZ(e,t){var n=typeof e;return t=t??nZ,!!t&&(n=="number"||n!="symbol"&&rZ.test(e))&&e>-1&&e%1==0&&e<t}var qf=iZ,aZ=tZ,oZ=Uf,sZ=Jn,lZ=Hf,cZ=qf,uZ=wv,dZ=Object.prototype,fZ=dZ.hasOwnProperty;function hZ(e,t){var n=sZ(e),r=!n&&oZ(e),i=!n&&!r&&lZ(e),a=!n&&!r&&!i&&uZ(e),o=n||r||i||a,s=o?aZ(e.length,String):[],l=s.length;for(var c in e)(t||fZ.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cZ(c,l)))&&s.push(c);return s}var r6=hZ;function pZ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var mZ=pZ,gZ=Qr,vZ=vv,bZ=mZ,yZ=Object.prototype,xZ=yZ.hasOwnProperty;function wZ(e){if(!gZ(e))return bZ(e);var t=vZ(e),n=[];for(var r in e)r=="constructor"&&(t||!xZ.call(e,r))||n.push(r);return n}var _Z=wZ,CZ=r6,SZ=_Z,TZ=Ns;function kZ(e){return TZ(e)?CZ(e,!0):SZ(e)}var Vc=kZ,$Z=Ls,EZ=Vc;function MZ(e){return $Z(e,EZ(e))}var OZ=MZ,b2=VS,AZ=YS,RZ=ZS,DZ=KS,IZ=JS,y2=Uf,x2=Jn,jZ=e6,NZ=Hf,PZ=Ff,LZ=Qr,FZ=yv,BZ=wv,w2=n6,zZ=OZ;function WZ(e,t,n,r,i,a,o){var s=w2(e,n),l=w2(t,n),c=o.get(l);if(c){b2(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var f=x2(l),h=!f&&NZ(l),p=!f&&!h&&BZ(l);u=l,f||h||p?x2(s)?u=s:jZ(s)?u=DZ(s):h?(d=!1,u=AZ(l,!0)):p?(d=!1,u=RZ(l,!0)):u=[]:FZ(l)||y2(l)?(u=s,y2(s)?u=zZ(s):(!LZ(s)||PZ(s))&&(u=IZ(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),b2(e,n,u)}var UZ=WZ,HZ=Wf,VZ=VS,qZ=qS,YZ=UZ,GZ=Qr,ZZ=Vc,KZ=n6;function i6(e,t,n,r,i){e!==t&&qZ(t,function(a,o){if(i||(i=new HZ),GZ(a))YZ(e,t,o,n,i6,r,i);else{var s=r?r(KZ(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),VZ(e,o,s)}},ZZ)}var XZ=i6;function JZ(e){return e}var Yf=JZ;function QZ(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 eK=QZ,tK=eK,_2=Math.max;function nK(e,t,n){return t=_2(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=_2(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),tK(e,this,s)}}var a6=nK;function rK(e){return function(){return e}}var iK=rK,aK=iK,C2=HS,oK=Yf,sK=C2?function(e,t){return C2(e,"toString",{configurable:!0,enumerable:!1,value:aK(t),writable:!0})}:oK,lK=sK,cK=800,uK=16,dK=Date.now;function fK(e){var t=0,n=0;return function(){var r=dK(),i=uK-(r-n);if(n=r,i>0){if(++t>=cK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hK=fK,pK=lK,mK=hK,gK=mK(pK),o6=gK,vK=Yf,bK=a6,yK=o6;function xK(e,t){return yK(bK(e,t,vK),e+"")}var Cv=xK,wK=Hc,_K=Ns,CK=qf,SK=Qr;function TK(e,t,n){if(!SK(n))return!1;var r=typeof t;return(r=="number"?_K(n)&&CK(t,n.length):r=="string"&&t in n)?wK(n[t],e):!1}var s6=TK,kK=Cv,$K=s6;function EK(e){return kK(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&&$K(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 MK=EK,OK=XZ,AK=MK,RK=AK(function(e,t,n){OK(e,t,n)}),DK=RK;const l6=an(DK);var IK=$i,jK=br,NK="[object Symbol]";function PK(e){return typeof e=="symbol"||jK(e)&&IK(e)==NK}var Gf=PK,LK=Jn,FK=Gf,BK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zK=/^\w*$/;function WK(e,t){if(LK(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||FK(e)?!0:zK.test(e)||!BK.test(e)||t!=null&&e in Object(t)}var Sv=WK,c6=hv,UK="Expected a function";function Tv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(UK);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(Tv.Cache||c6),n}Tv.Cache=c6;var HK=Tv,VK=HK,qK=500;function YK(e){var t=VK(e,function(r){return n.size===qK&&n.clear(),r}),n=t.cache;return t}var GK=YK,ZK=GK,KK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XK=/\\(\\)?/g,JK=ZK(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(KK,function(n,r,i,a){t.push(i?a.replace(XK,"$1"):r||n)}),t}),QK=JK;function eX(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=eX,S2=Rs,tX=Zf,nX=Jn,rX=Gf,T2=S2?S2.prototype:void 0,k2=T2?T2.toString:void 0;function u6(e){if(typeof e=="string")return e;if(nX(e))return tX(e,u6)+"";if(rX(e))return k2?k2.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var iX=u6,aX=iX;function oX(e){return e==null?"":aX(e)}var d6=oX,sX=Jn,lX=Sv,cX=QK,uX=d6;function dX(e,t){return sX(e)?e:lX(e,t)?[e]:cX(uX(e))}var Fs=dX,fX=Gf;function hX(e){if(typeof e=="string"||fX(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Bs=hX,pX=Fs,mX=Bs;function gX(e,t){t=pX(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[mX(t[n++])];return n&&n==r?e:void 0}var qc=gX,vX=qc;function bX(e,t,n){var r=e==null?void 0:vX(e,t);return r===void 0?n:r}var f6=bX;const Gr=an(f6);var yX=_v,xX=Fs,wX=qf,$2=Qr,_X=Bs;function CX(e,t,n,r){if(!$2(e))return e;t=xX(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=_X(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=$2(u)?u:wX(t[i+1])?[]:{})}yX(s,l,c),s=s[l]}return e}var h6=CX,SX=h6;function TX(e,t,n){return e==null?e:SX(e,t,n)}var kX=TX;const yl=an(kX);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 $X(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var EX=["outlineWidth","outlineColor","outlineOpacity"],MX=function(e){return e.outlineWidth,e.outlineColor,e.outlineOpacity,$X(e,EX)},OX=["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"],AX=function(e,t){return ag({},t,e)},RX=function(e,t){var n=l6({},e,t);return OX.forEach(function(r){yl(n,r,AX(Gr(n,r),n.text))}),n},p6=function(e,t){return t?l6({},e,t):e},DX={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}}},IX=function(e){return v.useMemo(function(){return RX(DX,e)},[e])},jX=function(e,t){return v.useMemo(function(){return p6(e,t)},[e,t])},m6=v.createContext(null),NX={},PX=function(e){var t=e.theme,n=t===void 0?NX:t,r=e.children,i=IX(n);return b.jsx(m6.Provider,{value:i,children:r})},Ft=function(){var e=v.useContext(m6);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 LX=["basic","chip","container","table","tableCell","tableCellValue"],FX={pointerEvents:"none",position:"absolute",zIndex:10,top:0,left:0},E2=function(e,t){return"translate("+e+"px, "+t+"px)"},g6=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=Wae(),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:E2(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,LX),x=Za({},FX,C,{transform:(t=_.transform)!=null?t:E2(g,y),opacity:_.transform?1:0});return b.jsx(Vt.div,{ref:u,style:x,children:i})});g6.displayName="TooltipWrapper";var v6=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)})}),kv=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=bs(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(v6,{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})}),BX={width:"100%",borderCollapse:"collapse"},b6=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({},BX,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});b6.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 y6=v.createContext({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),lg={isVisible:!1,position:[null,null],content:null,anchor:null},x6=v.createContext(lg),zX=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(y6);if(e===void 0)throw new Error("useTooltip must be used within a TooltipProvider");return e},WX=function(){var e=v.useContext(x6);if(e===void 0)throw new Error("useTooltipState must be used within a TooltipProvider");return e},UX=function(e){return e.isVisible},HX=function(){var e=WX();return UX(e)?b.jsx(g6,{position:e.position,anchor:e.anchor,children:e.content}):null},VX=function(e){var t=e.container,n=e.children,r=zX(t),i=r.actions,a=r.state;return b.jsx(y6.Provider,{value:i,children:b.jsx(x6.Provider,{value:a,children:n})})},qX=$i,YX=Jn,GX=br,ZX="[object String]";function KX(e){return typeof e=="string"||!YX(e)&&GX(e)&&qX(e)==ZX}var XX=KX;const JX=an(XX);let fr;typeof window<"u"?fr=window:typeof self<"u"?fr=self:fr=global;let cg=null,ug=null;const M2=20,jp=fr.clearTimeout,O2=fr.setTimeout,Np=fr.cancelAnimationFrame||fr.mozCancelAnimationFrame||fr.webkitCancelAnimationFrame,A2=fr.requestAnimationFrame||fr.mozRequestAnimationFrame||fr.webkitRequestAnimationFrame;Np==null||A2==null?(cg=jp,ug=function(t){return O2(t,M2)}):(cg=function([t,n]){Np(t),jp(n)},ug=function(t){const n=A2(function(){jp(r),t()}),r=O2(function(){Np(n),t()},M2);return[n,r]});function QX(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 eJ 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=QX(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 $v(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function zs(){}var Ka=.7,ms=1/Ka,Ko="\\s*([+-]?\\d+)\\s*",dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tJ=/^#([0-9a-f]{3,8})$/,nJ=new RegExp(`^rgb\\(${Ko},${Ko},${Ko}\\)$`),rJ=new RegExp(`^rgb\\(${Wr},${Wr},${Wr}\\)$`),iJ=new RegExp(`^rgba\\(${Ko},${Ko},${Ko},${dc}\\)$`),aJ=new RegExp(`^rgba\\(${Wr},${Wr},${Wr},${dc}\\)$`),oJ=new RegExp(`^hsl\\(${dc},${Wr},${Wr}\\)$`),sJ=new RegExp(`^hsla\\(${dc},${Wr},${Wr},${dc}\\)$`),R2={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(zs,fc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:D2,formatHex:D2,formatHex8:lJ,formatHsl:cJ,formatRgb:I2,toString:I2});function D2(){return this.rgb().formatHex()}function lJ(){return this.rgb().formatHex8()}function cJ(){return _6(this).formatHsl()}function I2(){return this.rgb().formatRgb()}function fc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=tJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?j2(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=nJ.exec(e))?new Mn(t[1],t[2],t[3],1):(t=rJ.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=iJ.exec(e))?_u(t[1],t[2],t[3],t[4]):(t=aJ.exec(e))?_u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=oJ.exec(e))?L2(t[1],t[2]/100,t[3]/100,1):(t=sJ.exec(e))?L2(t[1],t[2]/100,t[3]/100,t[4]):R2.hasOwnProperty(e)?j2(R2[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function j2(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 w6(e){return e instanceof zs||(e=fc(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function gs(e,t,n,r){return arguments.length===1?w6(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,gs,$v(zs,{brighter(e){return e=e==null?ms:Math.pow(ms,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:N2,formatHex:N2,formatHex8:uJ,formatRgb:P2,toString:P2}));function N2(){return`#${Aa(this.r)}${Aa(this.g)}${Aa(this.b)}`}function uJ(){return`#${Aa(this.r)}${Aa(this.g)}${Aa(this.b)}${Aa((isNaN(this.opacity)?1:this.opacity)*255)}`}function P2(){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 L2(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 _6(e){if(e instanceof _r)return new _r(e.h,e.s,e.l,e.opacity);if(e instanceof zs||(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 dJ(e,t,n,r){return arguments.length===1?_6(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,dJ,$v(zs,{brighter(e){return e=e==null?ms:Math.pow(ms,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(F2(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("}${F2(this.h)}, ${Cu(this.s)*100}%, ${Cu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function F2(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 fJ=Math.PI/180,hJ=180/Math.PI;var C6=-.14861,Ev=1.78277,Mv=-.29227,Xf=-.90649,hc=1.97294,B2=hc*Xf,z2=hc*Ev,W2=Ev*Mv-Xf*C6;function pJ(e){if(e instanceof Ba)return new Ba(e.h,e.s,e.l,e.opacity);e instanceof Mn||(e=w6(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(W2*r+B2*t-z2*n)/(W2+B2-z2),a=r-i,o=(hc*(n-i)-Mv*a)/Xf,s=Math.sqrt(o*o+a*a)/(hc*i*(1-i)),l=s?Math.atan2(o,a)*hJ-120:NaN;return new Ba(l<0?l+360:l,s,i,e.opacity)}function Zr(e,t,n,r){return arguments.length===1?pJ(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,$v(zs,{brighter(e){return e=e==null?ms:Math.pow(ms,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)*fJ,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*(C6*r+Ev*i)),255*(t+n*(Mv*r+Xf*i)),255*(t+n*(hc*r)),this.opacity)}}));function mJ(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 gJ(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 mJ((n-r/t)*t,o,i,a,s)}}const Jf=e=>()=>e;function S6(e,t){return function(n){return e+n*t}}function vJ(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 bJ(e,t){var n=t-e;return n?S6(e,n>180||n<-180?n-360*Math.round(n/360):n):Jf(isNaN(e)?t:e)}function yJ(e){return(e=+e)==1?Xo:function(t,n){return n-t?vJ(t,n,e):Jf(isNaN(t)?n:t)}}function Xo(e,t){var n=t-e;return n?S6(e,n):Jf(isNaN(e)?t:e)}const U2=function e(t){var n=yJ(t);function r(i,a){var o=n((i=gs(i)).r,(a=gs(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 xJ(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=gs(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 wJ=xJ(gJ);function _J(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 CJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function SJ(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]=Ov(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 TJ(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 kJ(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]=Ov(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 $J(e){return function(){return e}}function EJ(e){return function(t){return e(t)+""}}function T6(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]?EJ(l[0].x):$J(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 Ov(e,t){var n=typeof t,r;return t==null||n==="boolean"?Jf(t):(n==="number"?pc:n==="string"?(r=fc(t))?(t=r,U2):T6:t instanceof fc?U2:t instanceof Date?TJ:CJ(t)?_J:Array.isArray(t)?SJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?kJ:pc)(e,t)}function k6(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function $6(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)}$6(bJ);var Av=$6(Xo),MJ="__lodash_hash_undefined__";function OJ(e){return this.__data__.set(e,MJ),this}var AJ=OJ;function RJ(e){return this.__data__.has(e)}var DJ=RJ,IJ=hv,jJ=AJ,NJ=DJ;function $d(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new IJ;++t<n;)this.add(e[t])}$d.prototype.add=$d.prototype.push=jJ;$d.prototype.has=NJ;var Rv=$d;function PJ(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 LJ=PJ;function FJ(e){return e!==e}var BJ=FJ;function zJ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var WJ=zJ,UJ=LJ,HJ=BJ,VJ=WJ;function qJ(e,t,n){return t===t?VJ(e,t,n):UJ(e,HJ,n)}var YJ=qJ,GJ=YJ;function ZJ(e,t){var n=e==null?0:e.length;return!!n&&GJ(e,t,0)>-1}var E6=ZJ;function KJ(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 M6=KJ;function XJ(e,t){return e.has(t)}var Dv=XJ,JJ=Rv,QJ=E6,eQ=M6,tQ=Zf,nQ=Ps,rQ=Dv,iQ=200;function aQ(e,t,n,r){var i=-1,a=QJ,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=tQ(t,nQ(n))),r?(a=eQ,o=!1):t.length>=iQ&&(a=rQ,o=!1,t=new JJ(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 oQ=aQ,sQ=oQ,lQ=Cv,cQ=e6,uQ=lQ(function(e,t){return cQ(e)?sQ(e,t):[]}),dQ=uQ;const O6=an(dQ);function yt(e){return function(){return e}}const H2=Math.abs,Tn=Math.atan2,ya=Math.cos,fQ=Math.max,Fp=Math.min,Nr=Math.sin,zo=Math.sqrt,$n=1e-12,mc=Math.PI,Ed=mc/2,Uu=2*mc;function hQ(e){return e>1?0:e<-1?mc:Math.acos(e)}function V2(e){return e>=1?Ed:e<=-1?-Ed:Math.asin(e)}const fg=Math.PI,hg=2*fg,Ca=1e-6,pQ=hg-Ca;function A6(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function mQ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return A6;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 gQ=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?A6:mQ(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>pQ?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 Iv(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 gQ(t)}function vQ(e){return e.innerRadius}function bQ(e){return e.outerRadius}function yQ(e){return e.startAngle}function xQ(e){return e.endAngle}function wQ(e){return e&&e.padAngle}function _Q(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(fQ(0,x*x*C-S*S)),k=(S*w-_*E)/C,T=(-S*_-w*E)/C,R=(S*w+_*E)/C,$=(-S*_+w*E)/C,O=k-g,D=T-y,I=R-g,j=$-y;return O*O+D*D>I*I+j*j&&(k=R,T=$),{cx:k,cy:T,x01:-u,y01:-d,x11:k*(i/x-1),y11:T*(i/x-1)}}function CQ(){var e=vQ,t=bQ,n=yt(0),r=null,i=yQ,a=xQ,o=wQ,s=null,l=Iv(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=H2(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)),R=Fp(H2(h-f)/2,+n.apply(this,arguments)),$=R,O=R,D,I;if(T>$n){var j=V2(T/f*Nr(k)),A=V2(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 M=h*ya(_),L=h*Nr(_),B=f*ya(x),P=f*Nr(x);if(R>$n){var U=h*ya(w),H=h*Nr(w),q=f*ya(C),G=f*Nr(C),K;if(g<mc)if(K=_Q(M,L,q,G,U,H,B,P)){var te=M-K[0],ne=L-K[1],W=U-K[0],F=H-K[1],z=1/Nr(hQ((te*W+ne*F)/(zo(te*te+ne*ne)*zo(W*W+F*F)))/2),V=zo(K[0]*K[0]+K[1]*K[1]);$=Fp(R,(f-V)/(z-1)),O=Fp(R,(h-V)/(z+1))}else $=O=0}E>$n?O>$n?(D=Su(q,G,M,L,h,O,y),I=Su(U,H,B,P,h,O,y),s.moveTo(D.cx+D.x01,D.cy+D.y01),O<R?s.arc(D.cx,D.cy,O,Tn(D.y01,D.x01),Tn(I.y01,I.x01),!y):(s.arc(D.cx,D.cy,O,Tn(D.y01,D.x01),Tn(D.y11,D.x11),!y),s.arc(0,0,h,Tn(D.cy+D.y11,D.cx+D.x11),Tn(I.cy+I.y11,I.cx+I.x11),!y),s.arc(I.cx,I.cy,O,Tn(I.y11,I.x11),Tn(I.y01,I.x01),!y))):(s.moveTo(M,L),s.arc(0,0,h,_,w,!y)):s.moveTo(M,L),!(f>$n)||!(S>$n)?s.lineTo(B,P):$>$n?(D=Su(B,P,U,H,f,-$,y),I=Su(M,L,q,G,f,-$,y),s.lineTo(D.cx+D.x01,D.cy+D.y01),$<R?s.arc(D.cx,D.cy,$,Tn(D.y01,D.x01),Tn(I.y01,I.x01),!y):(s.arc(D.cx,D.cy,$,Tn(D.y01,D.x01),Tn(D.y11,D.x11),!y),s.arc(0,0,f,Tn(D.cy+D.y11,D.cx+D.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 R6(e){this._context=e}R6.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 jv(e){return new R6(e)}function D6(e){return e[0]}function I6(e){return e[1]}function Nv(e,t){var n=yt(!0),r=null,i=jv,a=null,o=Iv(s);e=typeof e=="function"?e:e===void 0?D6:yt(e),t=typeof t=="function"?t:t===void 0?I6: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 SQ(e,t,n){var r=null,i=yt(!0),a=null,o=jv,s=null,l=Iv(c);e=typeof e=="function"?e:e===void 0?D6:yt(+e),t=typeof t=="function"?t:yt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?I6: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 Nv().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 TQ(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function kQ(e){return e}function $Q(){var e=kQ,t=TQ,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 EQ(e){return new eh(e)}function j6(e){this._context=e}j6.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 MQ(e){return new j6(e)}function N6(e){this._context=e}N6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function OQ(e){return new N6(e)}function P6(e,t){this._basis=new eh(e),this._beta=t}P6.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 AQ=function e(t){function n(r){return t===1?new eh(r):new P6(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 Pv(e,t){this._context=e,this._k=(1-t)/6}Pv.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 RQ=function e(t){function n(r){return new Pv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Lv(e,t){this._context=e,this._k=(1-t)/6}Lv.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 DQ=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: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 IQ=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,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 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(){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:Bv(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 Pv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function F6(e,t){this._context=e,this._alpha=t}F6.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:Bv(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 NQ=function e(t){function n(r){return t?new F6(r,t):new Lv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function B6(e,t){this._context=e,this._alpha=t}B6.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:Bv(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 PQ=function e(t){function n(r){return t?new B6(r,t):new Fv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function z6(e){this._context=e}z6.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 LQ(e){return new z6(e)}function q2(e){return e<0?-1:1}function Y2(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(q2(a)+q2(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function G2(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,G2(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,G2(this,n=Y2(this,e,t)),n);break;default:Bp(this,this._t0,n=Y2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function W6(e){this._context=new U6(e)}(W6.prototype=Object.create(Ad.prototype)).point=function(e,t){Ad.prototype.point.call(this,t,e)};function U6(e){this._context=e}U6.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 FQ(e){return new Ad(e)}function BQ(e){return new W6(e)}function H6(e){this._context=e}H6.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=Z2(e),i=Z2(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 Z2(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 zQ(e){return new H6(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 WQ(e){return new th(e,.5)}function UQ(e){return new th(e,0)}function HQ(e){return new th(e,1)}function K2(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 X2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function VQ(e,t){return e[t]}function qQ(e){const t=[];return t.key=e,t}function YQ(){var e=yt([]),t=X2,n=K2,r=VQ;function i(a){var o=Array.from(e.apply(this,arguments),qQ),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?X2:typeof a=="function"?a:yt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??K2,i):n},i}function GQ(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 ZQ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zv(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===ZQ?e:KQ,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 KQ(){return 0}function XQ(e){return e===null?NaN:+e}const JQ=zv(Hu),QQ=JQ.right;zv(XQ).center;class J2 extends Map{constructor(t,n=nee){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(Q2(this,t))}has(t){return super.has(Q2(this,t))}set(t,n){return super.set(eee(this,t),n)}delete(t){return super.delete(tee(this,t))}}function Q2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function eee({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tee({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function nee(e){return e!==null&&typeof e=="object"?e.valueOf():e}const ree=Math.sqrt(50),iee=Math.sqrt(10),aee=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>=ree?10:a>=iee?5:a>=aee?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 oee(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 ex=Symbol("implicit");function Ra(){var e=new J2,t=[],n=[],r=ex;function i(a){let o=e.get(a);if(o===void 0){if(r!==ex)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 J2;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 Wv(){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=oee(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 Wv(t(),[r,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},co.apply(d(),arguments)}function V6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return V6(t())},e}function see(){return V6(Wv.apply(null,arguments).paddingInner(1))}function lee(e){return function(){return e}}function cee(e){return+e}var tx=[0,1];function Wo(e){return e}function vg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:lee(isNaN(t)?NaN:.5)}function uee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function dee(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 fee(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=QQ(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 Uv(){var e=tx,t=tx,n=Ov,r,i,a,o=Wo,s,l,c;function u(){var f=Math.min(e.length,t.length);return o!==Wo&&(o=uee(e[0],e[f-1])),s=f>2?fee:dee,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,cee),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=k6,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 q6(){return Uv()(Wo,Wo)}function hee(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 vs(e){return e=Dd(Math.abs(e)),e?e[1]:NaN}function pee(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 mee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gc(e){if(!(t=gee.exec(e)))throw new Error("invalid format: "+e);var t;return new Hv({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=Hv.prototype;function Hv(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+""}Hv.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 vee(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 Y6;function bee(e,t){var n=Dd(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Y6=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 nx(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 rx={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:hee,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 nx(e*100,t)},r:nx,s:bee,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function ix(e){return e}var ax=Array.prototype.map,ox=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yee(e){var t=e.grouping===void 0||e.thousands===void 0?ix:pee(ax.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?ix:mee(ax.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"):rx[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=rx[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 R($){var O=S,D=E,I,j,A;if(x==="c")D=k($)+D,$="";else{$=+$;var M=$<0||1/$<0;if($=isNaN($)?l:k(Math.abs($),w),C&&($=vee($)),M&&+$==0&&p!=="+"&&(M=!1),O=(M?p==="("?p:s:p==="-"||p==="("?"":p)+O,D=(x==="s"?ox[8+Y6/3]:"")+D+(M&&p==="("?")":""),T){for(I=-1,j=$.length;++I<j;)if(A=$.charCodeAt(I),48>A||A>57){D=(A===46?i+$.slice(I+1):$.slice(I))+D,$=$.slice(0,I);break}}}_&&!g&&($=t($,1/0));var L=O.length+$.length+D.length,B=L<y?new Array(y-L+1).join(f):"";switch(_&&g&&($=t(B+$,B.length?y-D.length:1/0),B=""),h){case"<":$=O+$+D+B;break;case"=":$=O+B+$+D;break;case"^":$=B.slice(0,L=B.length>>1)+O+$+D+B.slice(L);break;default:$=B+O+$+D;break}return a($)}return R.toString=function(){return d+""},R}function u(d,f){var h=c((d=gc(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(vs(f)/3)))*3,m=Math.pow(10,-p),g=ox[8+p/3];return function(y){return h(m*y)+g}}return{format:c,formatPrefix:u}}var Tu,Yc,G6;xee({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function xee(e){return Tu=yee(e),Yc=Tu.format,G6=Tu.formatPrefix,Tu}function wee(e){return Math.max(0,-vs(Math.abs(e)))}function _ee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vs(t)/3)))*3-vs(Math.abs(e)))}function Cee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vs(t)-vs(e))+1}function See(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=_ee(i,o))&&(r.precision=a),G6(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Cee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=wee(i))&&(r.precision=a-(r.type==="%")*2);break}}return Yc(r)}function Z6(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 See(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=q6();return e.copy=function(){return nh(e,Id())},co.apply(e,arguments),Z6(e)}function K6(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 sx(e){return Math.log(e)}function lx(e){return Math.exp(e)}function Tee(e){return-Math.log(-e)}function kee(e){return-Math.exp(-e)}function $ee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Eee(e){return e===10?$ee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Mee(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 cx(e){return(t,n)=>-e(-t,n)}function Oee(e){const t=e(sx,lx),n=t.domain;let r=10,i,a;function o(){return i=Mee(r),a=Eee(r),n()[0]<0?(i=cx(i),a=cx(a),e(Tee,kee)):e(sx,lx),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(K6(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function X6(){const e=Oee(Uv()).domain([1,10]);return e.copy=()=>nh(e,X6()).base(e.base()),co.apply(e,arguments),e}function ux(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function dx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Aee(e){var t=1,n=e(ux(t),dx(t));return n.constant=function(r){return arguments.length?e(ux(t=+r),dx(t)):t},Z6(n)}function J6(){var e=Aee(Uv());return e.copy=function(){return nh(e,J6()).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,Vv=Si*7,fx=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 qv=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());qv.range;const Yv=vn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCMinutes());Yv.range;const Gv=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());Gv.range;const Zv=vn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());Zv.range;const Kv=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);Kv.range;const Q6=vn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Si,e=>e.getUTCDate()-1);Q6.range;const e5=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));e5.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)/Vv)}const Xv=uo(0),Ree=uo(1),Dee=uo(2),Iee=uo(3),jee=uo(4),Nee=uo(5),Pee=uo(6);Xv.range;Ree.range;Dee.range;Iee.range;jee.range;Nee.range;Pee.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)/Vv)}const Jv=fo(0),Lee=fo(1),Fee=fo(2),Bee=fo(3),zee=fo(4),Wee=fo(5),Uee=fo(6);Jv.range;Lee.range;Fee.range;Bee.range;zee.range;Wee.range;Uee.range;const Qv=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());Qv.range;const e1=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());e1.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 t5(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,Vv],[t,1,fx],[t,3,3*fx],[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=zv(([,,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[Hee,Vee]=t5(ih,e1,Jv,e5,Zv,Yv),[qee,Yee]=t5(rh,Qv,Xv,Kv,Gv,qv);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,n5=864e5,r5=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 i5=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()});i5.range;var a5=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()});a5.range;var t1=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)/n5},function(e){return e.getDate()-1});t1.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)/r5})}var Ld=ho(0),bc=ho(1),o5=ho(2),s5=ho(3),Ja=ho(4),l5=ho(5),c5=ho(6);Ld.range;bc.range;o5.range;s5.range;Ja.range;l5.range;c5.range;var u5=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()});u5.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 d5=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()});d5.range;var f5=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()});f5.range;var n1=dn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/n5},function(e){return e.getUTCDate()-1});n1.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)/r5})}var Fd=po(0),yc=po(1),h5=po(2),p5=po(3),Qa=po(4),m5=po(5),g5=po(6);Fd.range;yc.range;h5.range;p5.range;Qa.range;m5.range;g5.range;var v5=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()});v5.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 sl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Gee(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=ll(i),u=cl(i),d=ll(a),f=cl(a),h=ll(o),p=cl(o),m=ll(s),g=cl(s),y=ll(l),_=cl(l),w={a:M,A:L,b:B,B:P,c:null,d:bx,e:bx,f:vte,g:$te,G:Mte,H:pte,I:mte,j:gte,L:b5,m:bte,M:yte,p:U,q:H,Q:wx,s:_x,S:xte,u:wte,U:_te,V:Cte,w:Ste,W:Tte,x:null,X:null,y:kte,Y:Ete,Z:Ote,"%":xx},C={a:q,A:G,b:K,B:te,c:null,d:yx,e:yx,f:Ite,g:Hte,G:qte,H:Ate,I:Rte,j:Dte,L:x5,m:jte,M:Nte,p:ne,q:W,Q:wx,s:_x,S:Pte,u:Lte,U:Fte,V:Bte,w:zte,W:Wte,x:null,X:null,y:Ute,Y:Vte,Z:Yte,"%":xx},x={a:R,A:$,b:O,B:D,c:I,d:gx,e:gx,f:ute,g:mx,G:px,H:vx,I:vx,j:ote,L:cte,m:ate,M:ste,p:T,q:ite,Q:fte,s:hte,S:lte,u:Qee,U:ete,V:tte,w:Jee,W:nte,x:j,X:A,y:mx,Y:px,Z:rte,"%":dte};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),C.x=S(n,C),C.X=S(r,C),C.c=S(t,C);function S(F,z){return function(V){var N=[],ee=-1,Q=0,Z=F.length,se,X,J;for(V instanceof Date||(V=new Date(+V));++ee<Z;)F.charCodeAt(ee)===37&&(N.push(F.slice(Q,ee)),(X=hx[se=F.charAt(++ee)])!=null?se=F.charAt(++ee):X=se==="e"?" ":"0",(J=z[se])&&(se=J(V,X)),N.push(se),Q=ee+1);return N.push(F.slice(Q,ee)),N.join("")}}function E(F,z){return function(V){var N=sl(1900,void 0,1),ee=k(N,F,V+="",0),Q,Z;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(sl(N.y,0,1)),Z=Q.getUTCDay(),Q=Z>4||Z===0?yc.ceil(Q):yc(Q),Q=n1.offset(Q,(N.V-1)*7),N.y=Q.getUTCFullYear(),N.m=Q.getUTCMonth(),N.d=Q.getUTCDate()+(N.w+6)%7):(Q=qp(sl(N.y,0,1)),Z=Q.getDay(),Q=Z>4||Z===0?bc.ceil(Q):bc(Q),Q=t1.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),Z="Z"in N?Yp(sl(N.y,0,1)).getUTCDay():qp(sl(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(Z+5)%7:N.w+N.U*7-(Z+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Yp(N)):qp(N)}}function k(F,z,V,N){for(var ee=0,Q=z.length,Z=V.length,se,X;ee<Q;){if(N>=Z)return-1;if(se=z.charCodeAt(ee++),se===37){if(se=z.charAt(ee++),X=x[se in hx?z.charAt(ee++):se],!X||(N=X(F,V,N))<0)return-1}else if(se!=V.charCodeAt(N++))return-1}return N}function T(F,z,V){var N=c.exec(z.slice(V));return N?(F.p=u.get(N[0].toLowerCase()),V+N[0].length):-1}function R(F,z,V){var N=h.exec(z.slice(V));return N?(F.w=p.get(N[0].toLowerCase()),V+N[0].length):-1}function $(F,z,V){var N=d.exec(z.slice(V));return N?(F.w=f.get(N[0].toLowerCase()),V+N[0].length):-1}function O(F,z,V){var N=y.exec(z.slice(V));return N?(F.m=_.get(N[0].toLowerCase()),V+N[0].length):-1}function D(F,z,V){var N=m.exec(z.slice(V));return N?(F.m=g.get(N[0].toLowerCase()),V+N[0].length):-1}function I(F,z,V){return k(F,t,z,V)}function j(F,z,V){return k(F,n,z,V)}function A(F,z,V){return k(F,r,z,V)}function M(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return l[F.getMonth()]}function P(F){return s[F.getMonth()]}function U(F){return i[+(F.getHours()>=12)]}function H(F){return 1+~~(F.getMonth()/3)}function q(F){return o[F.getUTCDay()]}function G(F){return a[F.getUTCDay()]}function K(F){return l[F.getUTCMonth()]}function te(F){return s[F.getUTCMonth()]}function ne(F){return i[+(F.getUTCHours()>=12)]}function W(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var z=S(F+="",w);return z.toString=function(){return F},z},parse:function(F){var z=E(F+="",!1);return z.toString=function(){return F},z},utcFormat:function(F){var z=S(F+="",C);return z.toString=function(){return F},z},utcParse:function(F){var z=E(F+="",!0);return z.toString=function(){return F},z}}}var hx={"-":"",_:" ",0:"0"},wn=/^\s*\d+/,Zee=/^%/,Kee=/[\\^$*+?|[\]().{}]/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 Xee(e){return e.replace(Kee,"\\$&")}function ll(e){return new RegExp("^(?:"+e.map(Xee).join("|")+")","i")}function cl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Jee(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Qee(e,t,n){var r=wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ete(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tte(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nte(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function px(e,t,n){var r=wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mx(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 rte(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 ite(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 ate(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 gx(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ote(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 vx(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ste(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lte(e,t,n){var r=wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cte(e,t,n){var r=wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ute(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 dte(e,t,n){var r=Zee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function fte(e,t,n){var r=wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function hte(e,t,n){var r=wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function bx(e,t){return Et(e.getDate(),t,2)}function pte(e,t){return Et(e.getHours(),t,2)}function mte(e,t){return Et(e.getHours()%12||12,t,2)}function gte(e,t){return Et(1+t1.count(ra(e),e),t,3)}function b5(e,t){return Et(e.getMilliseconds(),t,3)}function vte(e,t){return b5(e,t)+"000"}function bte(e,t){return Et(e.getMonth()+1,t,2)}function yte(e,t){return Et(e.getMinutes(),t,2)}function xte(e,t){return Et(e.getSeconds(),t,2)}function wte(e){var t=e.getDay();return t===0?7:t}function _te(e,t){return Et(Ld.count(ra(e)-1,e),t,2)}function y5(e){var t=e.getDay();return t>=4||t===0?Ja(e):Ja.ceil(e)}function Cte(e,t){return e=y5(e),Et(Ja.count(ra(e),e)+(ra(e).getDay()===4),t,2)}function Ste(e){return e.getDay()}function Tte(e,t){return Et(bc.count(ra(e)-1,e),t,2)}function kte(e,t){return Et(e.getFullYear()%100,t,2)}function $te(e,t){return e=y5(e),Et(e.getFullYear()%100,t,2)}function Ete(e,t){return Et(e.getFullYear()%1e4,t,4)}function Mte(e,t){var n=e.getDay();return e=n>=4||n===0?Ja(e):Ja.ceil(e),Et(e.getFullYear()%1e4,t,4)}function Ote(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Et(t/60|0,"0",2)+Et(t%60,"0",2)}function yx(e,t){return Et(e.getUTCDate(),t,2)}function Ate(e,t){return Et(e.getUTCHours(),t,2)}function Rte(e,t){return Et(e.getUTCHours()%12||12,t,2)}function Dte(e,t){return Et(1+n1.count(ia(e),e),t,3)}function x5(e,t){return Et(e.getUTCMilliseconds(),t,3)}function Ite(e,t){return x5(e,t)+"000"}function jte(e,t){return Et(e.getUTCMonth()+1,t,2)}function Nte(e,t){return Et(e.getUTCMinutes(),t,2)}function Pte(e,t){return Et(e.getUTCSeconds(),t,2)}function Lte(e){var t=e.getUTCDay();return t===0?7:t}function Fte(e,t){return Et(Fd.count(ia(e)-1,e),t,2)}function w5(e){var t=e.getUTCDay();return t>=4||t===0?Qa(e):Qa.ceil(e)}function Bte(e,t){return e=w5(e),Et(Qa.count(ia(e),e)+(ia(e).getUTCDay()===4),t,2)}function zte(e){return e.getUTCDay()}function Wte(e,t){return Et(yc.count(ia(e)-1,e),t,2)}function Ute(e,t){return Et(e.getUTCFullYear()%100,t,2)}function Hte(e,t){return e=w5(e),Et(e.getUTCFullYear()%100,t,2)}function Vte(e,t){return Et(e.getUTCFullYear()%1e4,t,4)}function qte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Qa(e):Qa.ceil(e),Et(e.getUTCFullYear()%1e4,t,4)}function Yte(){return"+0000"}function xx(){return"%"}function wx(e){return+e}function _x(e){return Math.floor(+e/1e3)}var Oo,ah,_5,C5,S5;Gte({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 Gte(e){return Oo=Gee(e),ah=Oo.format,_5=Oo.parse,C5=Oo.utcFormat,S5=Oo.utcParse,Oo}function Zte(e){return new Date(e)}function Kte(e){return e instanceof Date?+e:+new Date(+e)}function r1(e,t,n,r,i,a,o,s,l,c){var u=q6(),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,Kte)):f().map(Zte)},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(K6(E,S)):u},u.copy=function(){return nh(u,r1(e,t,n,r,i,a,o,s,l,c))},u}function Xte(){return co.apply(r1(qee,Yee,rh,Qv,Xv,Kv,Gv,qv,Da,ah).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Jte(){return co.apply(r1(Hee,Vee,ih,e1,Jv,Q6,Zv,Yv,Da,C5).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 Qte=ft("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ene=ft("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),tne=ft("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),nne=ft("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),rne=ft("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),ine=ft("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),ane=ft("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),one=ft("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),T5=ft("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),sne=ft("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),qt=e=>wJ(e[e.length-1]);var oh=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ft);const lne=qt(oh);var sh=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ft);const cne=qt(sh);var lh=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ft);const une=qt(lh);var ch=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ft);const dne=qt(ch);var uh=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ft);const fne=qt(uh);var dh=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ft);const hne=qt(dh);var fh=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ft);const pne=qt(fh);var hh=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ft);const mne=qt(hh);var ph=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ft);const gne=qt(ph);var mh=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ft);const vne=qt(mh);var gh=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ft);const bne=qt(gh);var vh=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ft);const yne=qt(vh);var bh=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ft);const xne=qt(bh);var yh=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ft);const wne=qt(yh);var xh=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ft);const _ne=qt(xh);var wh=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ft);const Cne=qt(wh);var _h=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ft);const Sne=qt(_h);var Ch=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ft);const Tne=qt(Ch);var Sh=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ft);const kne=qt(Sh);var Th=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ft);const $ne=qt(Th);var kh=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ft);const Ene=qt(kh);var $h=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ft);const Mne=qt($h);var Eh=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ft);const One=qt(Eh);var Mh=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ft);const Ane=qt(Mh);var Oh=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ft);const Rne=qt(Oh);var Ah=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ft);const Dne=qt(Ah);var Rh=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ft);const Ine=qt(Rh);function jne(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 Nne=Av(Zr(300,.5,0),Zr(-240,.5,1));var Pne=Av(Zr(-100,.75,.35),Zr(80,1.5,.8)),Lne=Av(Zr(260,.75,.35),Zr(80,1.5,.8)),ku=Zr();function Fne(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=gs(),Bne=Math.PI/3,zne=Math.PI*2/3;function Wne(e){var t;return e=(.5-e)*Math.PI,$u.r=255*(t=Math.sin(e))*t,$u.g=255*(t=Math.sin(e+Bne))*t,$u.b=255*(t=Math.sin(e+zne))*t,$u+""}function Une(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 Hne=Dh(ft("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var Vne=Dh(ft("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),qne=Dh(ft("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Yne=Dh(ft("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Gne(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var k5=Gne;const Ie=an(k5);var Zne=qc,Kne=h6,Xne=Fs;function Jne(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=Zne(e,o);n(s,o)&&Kne(a,Xne(o,e),s)}return a}var Qne=Jne;function ere(e,t){return e!=null&&t in Object(e)}var tre=ere,nre=Fs,rre=Uf,ire=Jn,are=qf,ore=bv,sre=Bs;function lre(e,t,n){t=nre(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=sre(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&&ore(i)&&are(o,i)&&(ire(e)||rre(e)))}var cre=lre,ure=tre,dre=cre;function fre(e,t){return e!=null&&dre(e,t,ure)}var $5=fre,hre=Qne,pre=$5;function mre(e,t){return hre(e,t,function(n,r){return pre(e,r)})}var gre=mre;function vre(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var i1=vre,Cx=Rs,bre=Uf,yre=Jn,Sx=Cx?Cx.isConcatSpreadable:void 0;function xre(e){return yre(e)||bre(e)||!!(Sx&&e&&e[Sx])}var wre=xre,_re=i1,Cre=wre;function E5(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=Cre),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?E5(s,t-1,n,r,i):_re(i,s):r||(i[i.length]=s)}return i}var M5=E5,Sre=M5;function Tre(e){var t=e==null?0:e.length;return t?Sre(e,1):[]}var kre=Tre,$re=kre,Ere=a6,Mre=o6;function Ore(e){return Mre(Ere(e,void 0,$re),e+"")}var O5=Ore,Are=gre,Rre=O5,Dre=Rre(function(e,t){return e==null?{}:Are(e,t)}),Ire=Dre;const jre=an(Ire);function Nre(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 Pre=Nre,Lre=Rv,Fre=Pre,Bre=Dv,zre=1,Wre=2;function Ure(e,t,n,r,i,a){var o=n&zre,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&Wre?new Lre: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(!Fre(t,function(y,_){if(!Bre(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 A5=Ure;function Hre(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Vre=Hre;function qre(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var a1=qre,Tx=Rs,kx=GS,Yre=Hc,Gre=A5,Zre=Vre,Kre=a1,Xre=1,Jre=2,Qre="[object Boolean]",eie="[object Date]",tie="[object Error]",nie="[object Map]",rie="[object Number]",iie="[object RegExp]",aie="[object Set]",oie="[object String]",sie="[object Symbol]",lie="[object ArrayBuffer]",cie="[object DataView]",$x=Tx?Tx.prototype:void 0,Gp=$x?$x.valueOf:void 0;function uie(e,t,n,r,i,a,o){switch(n){case cie:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lie:return!(e.byteLength!=t.byteLength||!a(new kx(e),new kx(t)));case Qre:case eie:case rie:return Yre(+e,+t);case tie:return e.name==t.name&&e.message==t.message;case iie:case oie:return e==t+"";case nie:var s=Zre;case aie:var l=r&Xre;if(s||(s=Kre),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=Jre,o.set(e,t);var u=Gre(s(e),s(t),r,i,a,o);return o.delete(e),u;case sie:if(Gp)return Gp.call(e)==Gp.call(t)}return!1}var die=uie,fie=i1,hie=Jn;function pie(e,t,n){var r=t(e);return hie(e)?r:fie(r,n(e))}var R5=pie;function mie(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 D5=mie;function gie(){return[]}var I5=gie,vie=D5,bie=I5,yie=Object.prototype,xie=yie.propertyIsEnumerable,Ex=Object.getOwnPropertySymbols,wie=Ex?function(e){return e==null?[]:(e=Object(e),vie(Ex(e),function(t){return xie.call(e,t)}))}:bie,o1=wie,_ie=XS,Cie=_ie(Object.keys,Object),Sie=Cie,Tie=vv,kie=Sie,$ie=Object.prototype,Eie=$ie.hasOwnProperty;function Mie(e){if(!Tie(e))return kie(e);var t=[];for(var n in Object(e))Eie.call(e,n)&&n!="constructor"&&t.push(n);return t}var Oie=Mie,Aie=r6,Rie=Oie,Die=Ns;function Iie(e){return Die(e)?Aie(e):Rie(e)}var Gc=Iie,jie=R5,Nie=o1,Pie=Gc;function Lie(e){return jie(e,Pie,Nie)}var j5=Lie,Mx=j5,Fie=1,Bie=Object.prototype,zie=Bie.hasOwnProperty;function Wie(e,t,n,r,i,a){var o=n&Fie,s=Mx(e),l=s.length,c=Mx(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var f=s[d];if(!(o?f in t:zie.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 Uie=Wie,Hie=lo,Vie=Jr,qie=Hie(Vie,"DataView"),Yie=qie,Gie=lo,Zie=Jr,Kie=Gie(Zie,"Promise"),Xie=Kie,Jie=lo,Qie=Jr,eae=Jie(Qie,"Set"),N5=eae,tae=lo,nae=Jr,rae=tae(nae,"WeakMap"),iae=rae,yg=Yie,xg=fv,wg=Xie,_g=N5,Cg=iae,P5=$i,Ws=US,Ox="[object Map]",aae="[object Object]",Ax="[object Promise]",Rx="[object Set]",Dx="[object WeakMap]",Ix="[object DataView]",oae=Ws(yg),sae=Ws(xg),lae=Ws(wg),cae=Ws(_g),uae=Ws(Cg),Sa=P5;(yg&&Sa(new yg(new ArrayBuffer(1)))!=Ix||xg&&Sa(new xg)!=Ox||wg&&Sa(wg.resolve())!=Ax||_g&&Sa(new _g)!=Rx||Cg&&Sa(new Cg)!=Dx)&&(Sa=function(e){var t=P5(e),n=t==aae?e.constructor:void 0,r=n?Ws(n):"";if(r)switch(r){case oae:return Ix;case sae:return Ox;case lae:return Ax;case cae:return Rx;case uae:return Dx}return t});var Ih=Sa,Zp=Wf,dae=A5,fae=die,hae=Uie,jx=Ih,Nx=Jn,Px=Hf,pae=wv,mae=1,Lx="[object Arguments]",Fx="[object Array]",Eu="[object Object]",gae=Object.prototype,Bx=gae.hasOwnProperty;function vae(e,t,n,r,i,a){var o=Nx(e),s=Nx(t),l=o?Fx:jx(e),c=s?Fx:jx(t);l=l==Lx?Eu:l,c=c==Lx?Eu:c;var u=l==Eu,d=c==Eu,f=l==c;if(f&&Px(e)){if(!Px(t))return!1;o=!0,u=!1}if(f&&!u)return a||(a=new Zp),o||pae(e)?dae(e,t,n,r,i,a):fae(e,t,l,n,r,i,a);if(!(n&mae)){var h=u&&Bx.call(e,"__wrapped__"),p=d&&Bx.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),hae(e,t,n,r,i,a)):!1}var bae=vae,yae=bae,zx=br;function L5(e,t,n,r,i){return e===t?!0:e==null||t==null||!zx(e)&&!zx(t)?e!==e&&t!==t:yae(e,t,n,r,L5,i)}var s1=L5,xae=s1;function wae(e,t){return xae(e,t)}var _ae=wae;const Cae=an(_ae);var F5=v.createContext(),Sae=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=JX(a)?TS[a]:a;return{animate:r,config:s}},[r,a]);return b.jsx(F5.Provider,{value:o,children:t})},Fn=function(){return v.useContext(F5)},Tae=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?v.cloneElement(r,{},t):t},kae={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(PX,{theme:n,children:b.jsx(Sae,{animate:s,config:l,children:b.jsx(VX,{container:c,children:b.jsxs(Tae,{condition:i,wrapper:b.jsx("div",{style:kae,ref:c}),children:[t,o&&b.jsx(HX,{})]})})})})},$ae=function(e,t){return e.width===t.width&&e.height===t.height},Eae=function(e){var t=e.children,n=e.width,r=e.height,i=e.onResize,a=e.debounceResize,o=q0({width:n,height:r},a,{equalityFn:$ae})[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(eJ,{defaultWidth:n,defaultHeight:r,children:function(s){var l=s.width,c=s.height;return b.jsx(Eae,{width:l,height:c,onResize:i,debounceResize:o,children:t})}})};function Wx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mae(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 Wx(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)?Wx(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 B5(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 Oae=["id","colors"],Aae=function(e){var t=e.id,n=e.colors,r=B5(e,Oae);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)})}))},z5={linearGradient:Aae},ul={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Rae=v.memo(function(e){var t=e.id,n=e.background,r=n===void 0?ul.background:n,i=e.color,a=i===void 0?ul.color:i,o=e.size,s=o===void 0?ul.size:o,l=e.padding,c=l===void 0?ul.padding:l,u=e.stagger,d=u===void 0?ul.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},Dae=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}},Iae=function(e){var t=e%360;return t<0&&(t+=360),t},W5={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"}}},dl={spacing:5,rotation:0,background:"#000000",color:"#ffffff",lineWidth:2},jae=v.memo(function(e){var t=e.id,n=e.spacing,r=n===void 0?dl.spacing:n,i=e.rotation,a=i===void 0?dl.rotation:i,o=e.background,s=o===void 0?dl.background:o,l=e.color,c=l===void 0?dl.color:l,u=e.lineWidth,d=u===void 0?dl.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"})]})}),fl={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1},Nae=v.memo(function(e){var t=e.id,n=e.color,r=n===void 0?fl.color:n,i=e.background,a=i===void 0?fl.background:i,o=e.size,s=o===void 0?fl.size:o,l=e.padding,c=l===void 0?fl.padding:l,u=e.stagger,d=u===void 0?fl.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})]})}),U5={patternDots:Rae,patternLines:jae,patternSquares:Nae},Pae=["type"],Ux=Ur({},z5,U5),Lae=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=B5(n,Pae);return Ux[r]?v.createElement(Ux[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(Lae,{defs:a}),b.jsx("rect",{width:n,height:r,fill:f.background}),b.jsx("g",{transform:"translate("+i.left+","+i.top+")",children:o})]})}),Fae=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"}})}),Bae=v.memo(function(e){var t=e.x,n=e.y,r=e.symbol,i=r===void 0?Fae: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,R=e.testId,$=Ft(),O=Fn(),D=O.animate,I=O.config,j=Xr({transform:"translate("+t+", "+n+")",config:I,immediate:!D}),A=v.useCallback(function(L){k==null||k(o,L)},[k,o]),M=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?M:void 0,"data-testid":R,children:[v.createElement(i,{size:a,color:s,datum:o,borderWidth:l,borderColor:c}),u&&b.jsx("text",{textAnchor:f,y:p,style:MX($.dots.text),children:u})]})}),zae=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,R=k.width,$=k.height,O=k.position,D=k.offsetX,I=k.offsetY,j=k.orientation,A=0,M=0,L=j==="vertical"?-90:0,B="start";if(T==="x")switch(O){case"top-left":A=-D,M=I,B="end";break;case"top":M=-I,B=j==="horizontal"?"middle":"start";break;case"top-right":A=D,M=I,B=j==="horizontal"?"start":"end";break;case"right":A=D,M=$/2,B=j==="horizontal"?"start":"middle";break;case"bottom-right":A=D,M=$-I,B="start";break;case"bottom":M=$+I,B=j==="horizontal"?"middle":"end";break;case"bottom-left":M=$-I,A=-D,B=j==="horizontal"?"end":"start";break;case"left":A=-D,M=$/2,B=j==="horizontal"?"end":"middle"}else switch(O){case"top-left":A=D,M=-I,B="start";break;case"top":A=R/2,M=-I,B=j==="horizontal"?"middle":"start";break;case"top-right":A=R-D,M=-I,B=j==="horizontal"?"end":"start";break;case"right":A=R+D,B=j==="horizontal"?"start":"middle";break;case"bottom-right":A=R-D,M=I,B="end";break;case"bottom":A=R/2,M=I,B=j==="horizontal"?"middle":"end";break;case"bottom-left":A=D,M=I,B=j==="horizontal"?"start":"end";break;case"left":A=-D,B=j==="horizontal"?"end":"middle"}return{x:A,y:M,rotation:L,textAnchor:B}}({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]})}),H5=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(zae,Ur({},o,{width:n,height:r,scale:o.axis==="y"?a:i}),s)}):null}),l1=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 T6(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:EQ,basisClosed:MQ,basisOpen:OQ,bundle:AQ,cardinal:RQ,cardinalClosed:DQ,cardinalOpen:IQ,catmullRom:jQ,catmullRomClosed:NQ,catmullRomOpen:PQ,linear:jv,linearClosed:LQ,monotoneX:FQ,monotoneY:BQ,natural:zQ,step:WQ,stepAfter:HQ,stepBefore:UQ},c1=Object.keys(Sg);c1.filter(function(e){return e.endsWith("Closed")});O6(c1,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");O6(c1,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed");var V5=function(e){if(!Sg[e])throw new TypeError("'"+e+"', is not a valid curve interpolator identifier.");return Sg[e]};Ie(oh),Ie(sh),Ie(lh),Ie(ch),Ie(uh),Ie(dh),Ie(fh),Ie(hh),Ie(ph),Ie($h),Ie(Eh),Ie(Mh),Ie(Rh),Ie(Oh),Ie(Ah),Ie(mh),Ie(gh),Ie(vh),Ie(bh),Ie(yh),Ie(xh),Ie(wh),Ie(_h),Ie(Ch),Ie(Sh),Ie(Th),Ie(kh);Ie(oh),Ie(sh),Ie(lh),Ie(ch),Ie(uh),Ie(dh),Ie(fh),Ie(hh),Ie(ph),Ie($h),Ie(Eh),Ie(Mh),Ie(Rh),Ie(Oh),Ie(Ah),Ie(mh),Ie(gh),Ie(vh),Ie(bh),Ie(yh),Ie(xh),Ie(wh),Ie(_h),Ie(Ch),Ie(Sh),Ie(Th),Ie(kh);Ra(T5);var q5={top:0,right:0,bottom:0,left:0},vo=function(e,t,n){return n===void 0&&(n={}),v.useMemo(function(){var r=Ur({},q5,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n])},Wae=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]},Uae=function(e){return typeof e=="function"?e:typeof e=="string"?e.indexOf("time:")===0?ah(e.slice("5")):Yc(e):function(t){return""+t}},bs=function(e){return v.useMemo(function(){return Uae(e)},[e])},Hae=function(e,t){var n=dv(e)?e:function(r){return Gr(r,e)};return n},Y5=function(e){return dv(e)?e:function(t){return Gr(t,e)}},gi=function(e){return v.useMemo(function(){return Y5(e)},[e])},G5=function(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))},Vae=function(e,t,n,r){var i=Math.atan2(r-t,n-e)-Math.PI/2;return i>0?i:2*Math.PI+i},Z5=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]},qae=Object.keys(z5),Yae=Object.keys(U5),Gae=function(e,t,n){if(e==="*")return!0;if(dv(e))return e(t);if(xv(e)){var r=n?Gr(t,n):t;return Cae(jre(r,Object.keys(e)),e)}return!1},u1=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(Gae(_,f,a)){var w=e.find(function($){return $.id===y});if(w){if(Yae.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),yl(f,c,"url(#"+E+")"),d[E]||(u.push(Ur({},w,{id:E,background:x,color:S})),d[E]=1)}else yl(f,c,"url(#"+y+")");else if(qae.includes(w.type))if(w.colors.map(function($){return $.color}).includes("inherit")){var k=Gr(f,s),T=y,R=Ur({},w,{colors:w.colors.map(function($,O){return $.color!=="inherit"?$:(T=T+"."+O+"."+k,Ur({},$,{color:$.color==="inherit"?k:$.color}))})});R.id=T,yl(f,c,"url(#"+T+")"),d[T]||(u.push(R),d[T]=1)}else yl(f,c,"url(#"+y+")")}return 1}},m=Mae(n);!(h=m()).done&&!p(););})),u};function d1(){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 Ol(){return Ol=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},Ol.apply(null,arguments)}function Hx(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 Zae=["style","children"],Kae=["outlineWidth","outlineColor","outlineOpacity"],Us=function(e){var t=e.style,n=e.children,r=Hx(e,Zae),i=t.outlineWidth,a=t.outlineColor,o=t.outlineOpacity,s=Hx(t,Kae);return b.jsxs(b.Fragment,{children:[i>0&&b.jsx(Vt.text,Ol({},r,{style:Ol({},s,{strokeWidth:2*i,stroke:a,strokeOpacity:o,strokeLinejoin:"round"}),children:n})),b.jsx(Vt.text,Ol({},r,{style:s,children:n}))]})};function Vx(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 Xae(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 Vx(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)?Vx(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 K5={nivo:["#e8c1a0","#f47560","#f1e15b","#e8a838","#61cdbb","#97e3d5"],category10:Qte,accent:ene,dark2:tne,paired:nne,pastel1:rne,pastel2:ine,set1:ane,set2:one,set3:T5,tableau10:sne},Jae=Object.keys(K5),X5={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},Qae=Object.keys(X5),eoe={brown_blueGreen:lne,purpleRed_green:cne,pink_yellowGreen:une,purple_orange:dne,red_blue:fne,red_grey:hne,red_yellow_blue:pne,red_yellow_green:mne,spectral:gne},J5={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},toe=Object.keys(J5),noe={blues:Mne,greens:One,greys:Ane,oranges:Ine,purples:Rne,reds:Dne,turbo:Une,viridis:Hne,inferno:qne,magma:Vne,plasma:Yne,cividis:jne,warm:Pne,cool:Lne,cubehelixDefault:Nne,blue_green:vne,blue_purple:bne,green_blue:yne,orange_red:xne,purple_blue_green:wne,purple_blue:_ne,purple_red:Cne,red_purple:Sne,yellow_green_blue:Tne,yellow_green:kne,yellow_orange_brown:$ne,yellow_orange_red:Ene},Kp=Bd({},K5,X5,J5),roe=function(e){return Jae.includes(e)},ioe=function(e){return Qae.includes(e)},aoe=function(e){return toe.includes(e)},ooe={rainbow:Fne,sinebow:Wne};Bd({},eoe,noe,ooe);var soe=function(e){return e.theme!==void 0},loe=function(e){return e.from!==void 0},coe=function(e,t){if(typeof e=="function")return e;if(xv(e)){if(soe(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(loe(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=Xae(e.modifiers);!(i=s()).done;)o();return a.length===0?r:function(l){return a.reduce(function(c,u){return u(c)},gs(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 coe(e,t)},[e,t])},uoe=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(xv(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(roe(e.scheme)){var a=Ra(Kp[e.scheme]),o=function(d){return a(n(d))};return o.scale=a,o}if(ioe(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(aoe(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}},f1=function(e,t){return v.useMemo(function(){return uoe(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 doe={pointerEvents:"none"},foe=function(e){var t=e.label,n=e.style,r=Ft();return b.jsx(Vt.g,{transform:n.transform,opacity:n.progress,style:doe,children:b.jsx(Us,{textAnchor:"middle",dominantBaseline:"central",style:Mt({},r.labels.text,{fill:n.textColor}),children:t})})},Q5=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},eT=function(e,t){return e.filter(function(n){return Math.abs(Zc(n.arc.endAngle-n.arc.startAngle))>=t})},hoe={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})}}},tT=function(e,t){return v.useMemo(function(){var n=hoe[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])},nT=function(e,t){var n=Dae(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return za(n,r)},poe=function(e){return function(t,n,r,i){return ta([t,n,r,i],function(a,o,s,l){var c=nT({startAngle:a,endAngle:o,innerRadius:s,outerRadius:l},e);return"translate("+c.x+","+c.y+")"})}},moe=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=tT(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:poe(t)}},goe=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 eT(t,a).map(function(l){var c=nT(l.arc,r);return Mt({},s(l),{x:c.x,y:c.y,data:l})})},[t,r,a,s])},voe=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?foe: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=moe(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)}})})})},boe=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)})},yoe=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 goe({data:t,offset:n,skipAngle:r,computeExtraProps:c})},xoe=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(Us,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:Mt({},r.labels.text,{fill:n.textColor}),children:t})]})},woe=function(e){var t=Q5(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},h1=function(e,t,n,r){var i,a,o=Q5(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]}},_oe=Nv().x(function(e){return e.x}).y(function(e){return e.y}),Coe=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=h1({startAngle:s,endAngle:l,outerRadius:u},d,f,h).points;return _oe(p)})},Soe=function(e,t,n,r){return ta([e,t,n,r],function(i,a,o,s){return woe({startAngle:i,endAngle:a})})},Toe=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=h1({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+")"})},koe=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 eT(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(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:k(R),textColor:T(R),opacity:0}},update:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:x,straightLength:S,textOffset:E,linkColor:k(R),textColor:T(R),opacity:1}},leave:function(R){return{startAngle:R.arc.startAngle,endAngle:R.arc.endAngle,innerRadius:R.arc.innerRadius,outerRadius:R.arc.outerRadius,offset:C,diagonalLength:0,straightLength:0,textOffset:E,linkColor:k(R),textColor:T(R),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:Coe,interpolateTextAnchor:Soe,interpolateTextPosition:Toe}},$oe=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?xoe:f,p=gi(r),m=koe({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)})})})})},Eoe=function(e,t,n,r){e.textBaseline="middle",eo(e,n.labels.text),t.forEach(function(i){e.textAlign=W5.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()})},Moe=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({},h1(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])},Ooe=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 Moe({data:t,skipAngle:n,offset:r,diagonalLength:i,straightLength:a,computeExtraProps:m})},Aoe=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})},Roe=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)})})},Doe=function(e,t,n){t===void 0&&(t="innerRadius");var r=Fn(),i=r.animate,a=r.config,o=tT(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:Roe}},Ioe=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?Aoe:d,h=Ft(),p=gr(a,h),m=Doe(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})})})},joe=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}},Noe=function(e,t,n,r,i,a){var o=G5(i,a,e,t);return o<n&&o>r},Poe=function(e,t,n,r,i,a,o){if(Noe(e,t,n,r,a,o)){var s=Vae(a,o,e,t);return i.find(function(l){var c=l.startAngle,u=l.endAngle;return s>=c&&s<u})}},Loe=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 CQ().innerRadius(function(o){return o.innerRadius}).outerRadius(function(o){return o.outerRadius}).cornerRadius(r).padAngle(a)},[r,a])},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("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"}})},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:`
|
|
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"}})})},zoe=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"}})},Woe=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},Uoe={top:0,right:0,bottom:0,left:0},p1=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({},Uoe,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}},rT=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}},iT=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}},Hoe={circle:Foe,diamond:Boe,square:zoe,triangle:Woe},Voe=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,R=e.symbolShape,$=R===void 0?cr.symbolShape:R,O=e.symbolSize,D=O===void 0?cr.symbolSize:O,I=e.symbolSpacing,j=I===void 0?cr.symbolSpacing:I,A=e.symbolBorderWidth,M=A===void 0?0:A,L=e.symbolBorderColor,B=L===void 0?"transparent":L,P=e.onClick,U=e.onMouseEnter,H=e.onMouseLeave,q=e.toggleSerie,G=e.effects,K=v.useState({}),te=K[0],ne=K[1],W=Ft(),F=v.useCallback(function(oe){if(G){var ge=G.filter(function(de){return de.on==="hover"}).reduce(function(de,ue){return Vi({},de,ue.style)},{});ne(ge)}U==null||U(g,oe)},[U,g,G]),z=v.useCallback(function(oe){if(G){var ge=G.filter(function(de){return de.on!=="hover"}).reduce(function(de,ue){return Vi({},de,ue.style)},{});ne(ge)}H==null||H(g,oe)},[H,g,G]),V=iT({direction:_,justify:C,symbolSize:(t=te.symbolSize)!=null?t:D,symbolSpacing:j,width:p,height:m}),N=V.symbolX,ee=V.symbolY,Q=V.labelX,Z=V.labelY,se=V.labelAnchor,X=V.labelAlignment,J=[P,U,H,q].some(function(oe){return oe!==void 0}),ie=typeof $=="function"?$:Hoe[$];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:F,onMouseLeave:z}),pe.createElement(ie,Vi({id:g.id,x:N,y:ee,size:(i=te.symbolSize)!=null?i:D,fill:(a=(o=g.fill)!=null?o:g.color)!=null?a:"black",borderWidth:(s=te.symbolBorderWidth)!=null?s:M,borderColor:(l=te.symbolBorderColor)!=null?l:B},g.hidden?W.legends.hidden.symbol:void 0)),b.jsx(Us,{textAnchor:se,style:Vi({},W.legends.text,{fill:(c=(u=(d=te.itemTextColor)!=null?d:x)!=null?u:W.legends.text.fill)!=null?c:"black",dominantBaseline:X,pointerEvents:"none",userSelect:"none"},g.hidden?W.legends.hidden.text:void 0),x:Q,y:Z,children:g.label})]})},qoe=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,R=e.onMouseEnter,$=e.onMouseLeave,O=e.toggleSerie,D=p1({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,M){return b.jsx(Voe,{data:A,x:M*I+D.left,y:M*j+D.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:R,onMouseLeave:$,toggleSerie:O},M)})})},m1=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,R=e.onClick,$=e.onMouseEnter,O=e.onMouseLeave,D=e.toggleSerie,I=e.effects,j=p1({itemCount:t.length,itemsSpacing:p,itemWidth:m,itemHeight:g,direction:c,padding:d}),A=j.width,M=j.height,L=rT({anchor:l,translateX:a,translateY:s,containerWidth:n,containerHeight:r,width:A,height:M}),B=L.x,P=L.y;return b.jsx(qoe,{data:t,x:B,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:R,onMouseEnter:$,onMouseLeave:O,toggleSerie:typeof D=="boolean"?void 0:D})},Yoe={start:"left",middle:"center",end:"right"},g1=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,R=t.theme,$=p1({itemCount:n.length,itemWidth:y,itemHeight:_,itemsSpacing:g,direction:u,padding:f}),O=$.width,D=$.height,I=$.padding,j=rT({anchor:c,translateX:o,translateY:l,containerWidth:r,containerHeight:i,width:O,height:D}),A=j.x,M=j.y,L=u==="row"?y+g:0,B=u==="column"?_+g:0;e.save(),e.translate(A,M),eo(e,R.legends.text),n.forEach(function(P,U){var H,q=U*L+I.left,G=U*B+I.top,K=iT({direction:C,justify:p,symbolSize:E,symbolSpacing:T,width:y,height:_}),te=K.symbolX,ne=K.symbolY,W=K.labelX,F=K.labelY,z=K.labelAnchor,V=K.labelAlignment;e.fillStyle=(H=P.color)!=null?H:"black",e.fillRect(q+te,G+ne,E,E),e.textAlign=Yoe[z],V==="central"&&(e.textBaseline="middle"),to(e,Vi({},R.legends.text,{fill:x??R.legends.text.fill}),String(P.label),q+W,G+F)}),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 qx,Goe=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(m1,vr({},o,{containerWidth:t,containerHeight:n,data:(l=o.data)!=null?l:i,toggleSerie:o.toggleSerie?a:void 0}),s)})})},be={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(kv,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:typeof window<"u"&&(qx=window.devicePixelRatio)!=null?qx:1},Zoe=["points"],aT=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,i=e.value,a=i===void 0?be.value:i,o=e.valueFormat,s=e.colors,l=s===void 0?be.colors:s,c=gi(r),u=gi(a),d=bs(o),f=f1(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])},Koe=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=$Q().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},Xoe=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])}},oT=function(e){var t=e.data,n=e.width,r=e.height,i=e.innerRadius,a=i===void 0?be.innerRadius:i,o=e.startAngle,s=o===void 0?be.startAngle:o,l=e.endAngle,c=l===void 0?be.endAngle:l,u=e.padAngle,d=u===void 0?be.padAngle:u,f=e.sortByValue,h=f===void 0?be.sortByValue:f,p=e.cornerRadius,m=p===void 0?be.cornerRadius:p,g=e.fit,y=g===void 0?be.fit:g,_=e.activeInnerRadiusOffset,w=_===void 0?be.activeInnerRadiusOffset:_,C=e.activeOuterRadiusOffset,x=C===void 0?be.activeOuterRadiusOffset:C,S=e.activeId,E=e.onActiveIdChange,k=e.defaultActiveId,T=e.forwardLegendData,R=Xoe({activeId:S,onActiveIdChange:E,defaultActiveId:k}),$=R.activeId,O=R.setActiveId,D=v.useState([]),I=D[0],j=D[1],A=v.useMemo(function(){var B,P=Math.min(n,r)/2,U=P*Math.min(a,1),H=n/2,q=r/2;if(y){var G=joe(H,q,P,s-90,c-90),K=G.points,te=Kc(G,Zoe),ne=Math.min(n/te.width,r/te.height),W={width:te.width*ne,height:te.height*ne};W.x=(n-W.width)/2,W.y=(r-W.height)/2,H=(H-te.x)/te.width*te.width*ne+W.x,q=(q-te.y)/te.height*te.height*ne+W.y,B={box:te,ratio:ne,points:K},P*=ne,U*=ne}return{centerX:H,centerY:q,radius:P,innerRadius:U,debug:B}},[n,r,a,s,c,y]),M=Koe({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(B){j(function(P){return P.indexOf(B)>-1?P.filter(function(U){return U!==B}):[].concat(P,[B])})},[]);return vr({arcGenerator:Loe({cornerRadius:m,padAngle:hr(d)}),activeId:$,setActiveId:O,toggleSerie:L},M,A)},Joe=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])},Qoe=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(Ioe,{center:t,data:n,arcGenerator:r,borderWidth:i,borderColor:a,transitionMode:h,onClick:y,onMouseEnter:_,onMouseMove:w,onMouseLeave:C})},ese=["isInteractive","animate","motionConfig","theme","renderWrapper"],tse=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,i=e.value,a=i===void 0?be.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?be.sortByValue:s,c=e.layers,u=c===void 0?be.layers:c,d=e.startAngle,f=d===void 0?be.startAngle:d,h=e.endAngle,p=h===void 0?be.endAngle:h,m=e.padAngle,g=m===void 0?be.padAngle:m,y=e.fit,_=y===void 0?be.fit:y,w=e.innerRadius,C=w===void 0?be.innerRadius:w,x=e.cornerRadius,S=x===void 0?be.cornerRadius:x,E=e.activeInnerRadiusOffset,k=E===void 0?be.activeInnerRadiusOffset:E,T=e.activeOuterRadiusOffset,R=T===void 0?be.activeOuterRadiusOffset:T,$=e.width,O=e.height,D=e.margin,I=e.colors,j=I===void 0?be.colors:I,A=e.borderWidth,M=A===void 0?be.borderWidth:A,L=e.borderColor,B=L===void 0?be.borderColor:L,P=e.enableArcLabels,U=P===void 0?be.enableArcLabels:P,H=e.arcLabel,q=H===void 0?be.arcLabel:H,G=e.arcLabelsSkipAngle,K=G===void 0?be.arcLabelsSkipAngle:G,te=e.arcLabelsSkipRadius,ne=te===void 0?be.arcLabelsSkipRadius:te,W=e.arcLabelsTextColor,F=W===void 0?be.arcLabelsTextColor:W,z=e.arcLabelsRadiusOffset,V=z===void 0?be.arcLabelsRadiusOffset:z,N=e.arcLabelsComponent,ee=e.enableArcLinkLabels,Q=ee===void 0?be.enableArcLinkLabels:ee,Z=e.arcLinkLabel,se=Z===void 0?be.arcLinkLabel:Z,X=e.arcLinkLabelsSkipAngle,J=X===void 0?be.arcLinkLabelsSkipAngle:X,ie=e.arcLinkLabelsOffset,oe=ie===void 0?be.arcLinkLabelsOffset:ie,ge=e.arcLinkLabelsDiagonalLength,de=ge===void 0?be.arcLinkLabelsDiagonalLength:ge,ue=e.arcLinkLabelsStraightLength,Se=ue===void 0?be.arcLinkLabelsStraightLength:ue,le=e.arcLinkLabelsThickness,fe=le===void 0?be.arcLinkLabelsThickness:le,we=e.arcLinkLabelsTextOffset,Ge=we===void 0?be.arcLinkLabelsTextOffset:we,_e=e.arcLinkLabelsTextColor,ye=_e===void 0?be.arcLinkLabelsTextColor:_e,Pe=e.arcLinkLabelsColor,Ze=Pe===void 0?be.arcLinkLabelsColor:Pe,_t=e.arcLinkLabelComponent,ke=e.defs,De=ke===void 0?be.defs:ke,at=e.fill,Ue=at===void 0?be.fill:at,mt=e.isInteractive,ut=mt===void 0?be.isInteractive:mt,Rt=e.onClick,Xe=e.onMouseEnter,Le=e.onMouseMove,Ve=e.onMouseLeave,et=e.tooltip,Fe=et===void 0?be.tooltip:et,tt=e.activeId,vt=e.onActiveIdChange,ot=e.defaultActiveId,Ne=e.transitionMode,Me=Ne===void 0?be.transitionMode:Ne,Ye=e.legends,xt=Ye===void 0?be.legends:Ye,nt=e.forwardLegendData,bt=e.role,en=bt===void 0?be.role:bt,Bt=e.forwardedRef,Wt=vo($,O,D),fn=Wt.outerWidth,Yt=Wt.outerHeight,$e=Wt.margin,Je=Wt.innerWidth,St=Wt.innerHeight,on=aT({data:t,id:r,value:a,valueFormat:o,colors:j}),Gt=oT({data:on,width:Je,height:St,fit:_,innerRadius:C,startAngle:f,endAngle:p,padAngle:g,sortByValue:l,cornerRadius:S,activeInnerRadiusOffset:k,activeOuterRadiusOffset:R,activeId:tt,onActiveIdChange:vt,defaultActiveId:ot,forwardLegendData:nt}),Be=Gt.dataWithArc,ze=Gt.legendData,ht=Gt.arcGenerator,Dt=Gt.centerX,Tt=Gt.centerY,Qe=Gt.radius,kt=Gt.innerRadius,yr=Gt.setActiveId,ln=Gt.toggleSerie,cn=u1(De,Be,Ue),Rn={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};u.includes("arcs")&&(Rn.arcs=b.jsx(Qoe,{center:[Dt,Tt],data:Be,arcGenerator:ht,borderWidth:M,borderColor:B,isInteractive:ut,onClick:Rt,onMouseEnter:Xe,onMouseMove:Le,onMouseLeave:Ve,setActiveId:yr,tooltip:Fe,transitionMode:Me},"arcs")),Q&&u.includes("arcLinkLabels")&&(Rn.arcLinkLabels=b.jsx($oe,{center:[Dt,Tt],data:Be,label:se,skipAngle:J,offset:oe,diagonalLength:de,straightLength:Se,strokeWidth:fe,textOffset:Ge,textColor:ye,linkColor:Ze,component:_t},"arcLinkLabels")),U&&u.includes("arcLabels")&&(Rn.arcLabels=b.jsx(voe,{center:[Dt,Tt],data:Be,label:q,radiusOffset:V,skipAngle:K,skipRadius:ne,textColor:F,transitionMode:Me,component:N},"arcLabels")),xt.length>0&&u.includes("legends")&&(Rn.legends=b.jsx(Goe,{width:Je,height:St,data:ze,legends:xt,toggleSerie:ln},"legends"));var ca=Joe({dataWithArc:Be,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})})},nse=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?be.isInteractive:n,i=e.animate,a=i===void 0?be.animate:i,o=e.motionConfig,s=o===void 0?be.motionConfig:o,l=e.theme,c=e.renderWrapper,u=Kc(e,ese);return b.jsx(mo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(tse,vr({isInteractive:r},u,{forwardedRef:t}))})}),rse=["defaultWidth","defaultHeight","onResize","debounceResize"],ise=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Kc(e,rse);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(nse,vr({width:l,height:c},o,{ref:t}))}})}),ase=["isInteractive","theme","renderWrapper"],ose=function(e){var t=e.data,n=e.id,r=n===void 0?be.id:n,i=e.value,a=i===void 0?be.value:i,o=e.valueFormat,s=e.sortByValue,l=s===void 0?be.sortByValue:s,c=e.startAngle,u=c===void 0?be.startAngle:c,d=e.endAngle,f=d===void 0?be.endAngle:d,h=e.padAngle,p=h===void 0?be.padAngle:h,m=e.fit,g=m===void 0?be.fit:m,y=e.innerRadius,_=y===void 0?be.innerRadius:y,w=e.cornerRadius,C=w===void 0?be.cornerRadius:w,x=e.activeInnerRadiusOffset,S=x===void 0?be.activeInnerRadiusOffset:x,E=e.activeOuterRadiusOffset,k=E===void 0?be.activeOuterRadiusOffset:E,T=e.width,R=e.height,$=e.margin,O=e.pixelRatio,D=O===void 0?be.pixelRatio:O,I=e.colors,j=I===void 0?be.colors:I,A=e.borderWidth,M=A===void 0?be.borderWidth:A,L=e.borderColor,B=L===void 0?be.borderColor:L,P=e.enableArcLabels,U=P===void 0?be.enableArcLabels:P,H=e.arcLabel,q=H===void 0?be.arcLabel:H,G=e.arcLabelsSkipAngle,K=G===void 0?be.arcLabelsSkipAngle:G,te=e.arcLabelsTextColor,ne=te===void 0?be.arcLabelsTextColor:te,W=e.arcLabelsRadiusOffset,F=W===void 0?be.arcLabelsRadiusOffset:W,z=e.enableArcLinkLabels,V=z===void 0?be.enableArcLinkLabels:z,N=e.arcLinkLabel,ee=N===void 0?be.arcLinkLabel:N,Q=e.arcLinkLabelsSkipAngle,Z=Q===void 0?be.arcLinkLabelsSkipAngle:Q,se=e.arcLinkLabelsOffset,X=se===void 0?be.arcLinkLabelsOffset:se,J=e.arcLinkLabelsDiagonalLength,ie=J===void 0?be.arcLinkLabelsDiagonalLength:J,oe=e.arcLinkLabelsStraightLength,ge=oe===void 0?be.arcLinkLabelsStraightLength:oe,de=e.arcLinkLabelsThickness,ue=de===void 0?be.arcLinkLabelsThickness:de,Se=e.arcLinkLabelsTextOffset,le=Se===void 0?be.arcLinkLabelsTextOffset:Se,fe=e.arcLinkLabelsTextColor,we=fe===void 0?be.arcLinkLabelsTextColor:fe,Ge=e.arcLinkLabelsColor,_e=Ge===void 0?be.arcLinkLabelsColor:Ge,ye=e.isInteractive,Pe=ye===void 0?be.isInteractive:ye,Ze=e.onClick,_t=e.onMouseMove,ke=e.tooltip,De=ke===void 0?be.tooltip:ke,at=e.activeId,Ue=e.onActiveIdChange,mt=e.defaultActiveId,ut=e.legends,Rt=ut===void 0?be.legends:ut,Xe=e.forwardLegendData,Le=e.role,Ve=e.forwardedRef,et=v.useRef(null),Fe=Ft(),tt=vo(T,R,$),vt=tt.margin,ot=tt.innerWidth,Ne=tt.innerHeight,Me=tt.outerWidth,Ye=tt.outerHeight,xt=aT({data:t,id:r,value:a,valueFormat:o,colors:j}),nt=oT({data:xt,width:ot,height:Ne,fit:g,innerRadius:_,startAngle:u,endAngle:f,padAngle:p,sortByValue:l,cornerRadius:C,activeInnerRadiusOffset:S,activeOuterRadiusOffset:k,activeId:at,onActiveIdChange:Ue,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(B,Fe),St=yoe({data:bt,label:q,skipAngle:K,offset:F,textColor:ne}),on=Ooe({data:bt,skipAngle:Z,offset:X,diagonalLength:ie,straightLength:ge,label:ee,linkColor:_e,textOffset:le,textColor:we});v.useEffect(function(){if(et.current){et.current.width=Me*D,et.current.height=Ye*D;var Qe=et.current.getContext("2d");Qe.scale(D,D),Qe.fillStyle=Fe.background,Qe.fillRect(0,0,Me,Ye),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=M,en(kt.arc),Qe.fill(),M>0&&Qe.stroke()}),V===!0&&Eoe(Qe,on,Fe,ue),U===!0&&boe(Qe,St,Fe),Qe.restore(),Rt.forEach(function(kt){g1(Qe,vr({},kt,{data:bt,containerWidth:ot,containerHeight:Ne,theme:Fe}))})}},[et,ot,Ne,Me,Ye,vt.top,vt.left,D,Bt,Wt,en,bt,M,Je,U,St,V,on,ue,Rt,Fe]);var Gt=v.useMemo(function(){return bt.map(function(Qe){return vr({id:Qe.id},Qe.arc)})},[bt]),Be=function(Qe){if(!et.current)return null;var kt=Jo(et.current,Qe),yr=kt[0],ln=kt[1],cn=Poe(vt.left+Bt,vt.top+Wt,fn,Yt,Gt,yr,ln);return cn?bt.find(function(Rn){return Rn.id===cn.id}):null},ze=Ei(),ht=ze.showTooltipFromEvent,Dt=ze.hideTooltip,Tt=function(Qe){var kt=Be(Qe);kt?(_t==null||_t(kt,Qe),$e(kt.id),ht(v.createElement(De,{datum:kt}),Qe)):($e(null),Dt())};return b.jsx("canvas",{ref:d1(et,Ve),width:Me*D,height:Ye*D,style:{width:Me,height:Ye,cursor:Pe?"auto":"normal"},onMouseEnter:Pe?Tt:void 0,onMouseMove:Pe?Tt:void 0,onMouseLeave:Pe?function(){Dt()}:void 0,onClick:Pe?function(Qe){if(Ze){var kt=Be(Qe);kt&&Ze(kt,Qe)}}:void 0,role:Le})},sse=v.forwardRef(function(e,t){var n=e.isInteractive,r=n===void 0?be.isInteractive:n,i=e.theme,a=e.renderWrapper,o=Kc(e,ase);return b.jsx(mo,{isInteractive:r,renderWrapper:a,theme:i,children:b.jsx(ose,vr({isInteractive:r},o,{forwardedRef:t}))})}),lse=["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,lse);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(sse,vr({width:l,height:c},o,{ref:t}))}})});function cse(){}var use=cse,Xp=N5,dse=use,fse=a1,hse=1/0,pse=Xp&&1/fse(new Xp([,-0]))[1]==hse?function(e){return new Xp(e)}:dse,mse=pse,gse=Rv,vse=E6,bse=M6,yse=Dv,xse=mse,wse=a1,_se=200;function Cse(e,t,n){var r=-1,i=vse,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=bse;else if(a>=_se){var c=t?null:xse(e);if(c)return wse(c);o=!1,i=yse,l=new gse}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 sT=Cse,Sse=sT;function Tse(e){return e&&e.length?Sse(e):[]}var kse=Tse;const Yx=an(kse);var $se=Wf,Ese=s1,Mse=1,Ose=2;function Ase(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 $se;if(r)var f=r(c,u,l,e,t,d);if(!(f===void 0?Ese(u,c,Mse|Ose,r,d):f))return!1}}return!0}var Rse=Ase,Dse=Qr;function Ise(e){return e===e&&!Dse(e)}var lT=Ise,jse=lT,Nse=Gc;function Pse(e){for(var t=Nse(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,jse(i)]}return t}var Lse=Pse;function Fse(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var cT=Fse,Bse=Rse,zse=Lse,Wse=cT;function Use(e){var t=zse(e);return t.length==1&&t[0][2]?Wse(t[0][0],t[0][1]):function(n){return n===e||Bse(n,e,t)}}var Hse=Use,Vse=s1,qse=f6,Yse=$5,Gse=Sv,Zse=lT,Kse=cT,Xse=Bs,Jse=1,Qse=2;function ele(e,t){return Gse(e)&&Zse(t)?Kse(Xse(e),t):function(n){var r=qse(n,e);return r===void 0&&r===t?Yse(n,e):Vse(t,r,Jse|Qse)}}var tle=ele;function nle(e){return function(t){return t==null?void 0:t[e]}}var rle=nle,ile=qc;function ale(e){return function(t){return ile(t,e)}}var ole=ale,sle=rle,lle=ole,cle=Sv,ule=Bs;function dle(e){return cle(e)?sle(ule(e)):lle(e)}var fle=dle,hle=Hse,ple=tle,mle=Yf,gle=Jn,vle=fle;function ble(e){return typeof e=="function"?e:e==null?mle:typeof e=="object"?gle(e)?ple(e[0],e[1]):hle(e):vle(e)}var v1=ble,yle=v1,xle=sT;function wle(e,t){return e&&e.length?xle(e,yle(t)):[]}var _le=wle;const Tg=an(_le);var Cle=qS,Sle=Gc;function Tle(e,t){return e&&Cle(e,t,Sle)}var kle=Tle,$le=Ns;function Ele(e,t){return function(n,r){if(n==null)return n;if(!$le(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 Mle=Ele,Ole=kle,Ale=Mle,Rle=Ale(Ole),uT=Rle,Dle=uT,Ile=Ns;function jle(e,t){var n=-1,r=Ile(e)?Array(e.length):[];return Dle(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var Nle=jle;function Ple(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Lle=Ple,Gx=Gf;function Fle(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=Gx(e),o=t!==void 0,s=t===null,l=t===t,c=Gx(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 Ble=Fle,zle=Ble;function Wle(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=zle(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 Ule=Wle,Jp=Zf,Hle=qc,Vle=v1,qle=Nle,Yle=Lle,Gle=Ps,Zle=Ule,Kle=Yf,Xle=Jn;function Jle(e,t,n){t.length?t=Jp(t,function(a){return Xle(a)?function(o){return Hle(o,a.length===1?a[0]:a)}:a}):t=[Kle];var r=-1;t=Jp(t,Gle(Vle));var i=qle(e,function(a,o,s){var l=Jp(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return Yle(i,function(a,o){return Zle(a,o,n)})}var Qle=Jle,ece=M5,tce=Qle,nce=Cv,Zx=s6,rce=nce(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Zx(e,t[0],t[1])?t=[]:n>2&&Zx(t[0],t[1],t[2])&&(t=[t[0]]),tce(e,ece(t,1),[])}),ice=rce;const ace=an(ice);var oce=$i,sce=br,lce="[object Date]";function cce(e){return sce(e)&&oce(e)==lce}var uce=cce,dce=uce,fce=Ps,Kx=Vf,Xx=Kx&&Kx.isDate,hce=Xx?fce(Xx):dce,pce=hce;const mce=an(pce);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)}],gce={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)},vce=function(e){return function(t){return gce[e].forEach(function(n){n(t)}),t}},dT=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=vce(i);return function(l){if(l===void 0)return l;if(n==="native"||l instanceof Date)return s(l);var c=o?S5(n):_5(n);return s(c(l))}},xa={min:0,max:"auto",stacked:!1,reverse:!1,clamp:!1,nice:!0,round:!1},bce=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?k6:pc).domain(m?[o,i]:[i,o]).clamp(y);return w===!0?S.nice():typeof w=="number"&&S.nice(w),yce(S,h)},yce=function(e,t){t===void 0&&(t=!1);var n=e;return n.type="linear",n.stacked=t,n},xce=function(e,t,n){var r=see().range([0,n]).domain(t.all);return r.type="point",r},wce={round:!1},_ce=function(e,t,n,r){var i=e.round,a=i===void 0?wce.round:i,o=Wv().range(r==="x"?[0,n]:[n,0]).domain(t.all).round(a);return Cce(o)},Cce=function(e){var t=e;return t.type="band",t},Ro={format:"native",precision:"millisecond",min:"auto",max:"auto",useUTC:!0,nice:!1},Sce=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=dT({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?Jte():Xte();_.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},Tce=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=X6().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},kce=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 _=J6().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},$ce=function(e){return e==="x"?"y":"x"},Ece=function(e,t){return e===t},Mce=function(e,t){return e.getTime()===t.getTime()};function xc(e,t,n,r){switch(e.type){case"linear":return bce(e,t,n,r);case"point":return xce(0,t,n);case"band":return _ce(e,t,n,r);case"time":return Sce(e,t,n);case"log":return Tce(e,t,n,r);case"symlog":return kce(e,t,n,r);default:throw new Error("invalid scale spec")}}var Jx=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},Oce=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=Ace(a,t,n);"stacked"in t&&t.stacked===!0&&Rce(o,a),"stacked"in n&&n.stacked===!0&&Dce(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:Jx(d,"x",s),y:Jx(d,"y",l)}})})})});return $a({},o,{series:c,xScale:s,yScale:l})},Ace=function(e,t,n){return{x:Qx(e,"x",t),y:Qx(e,"y",n)}},Qx=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=dT(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=ace(Yx(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:Ie(f)};default:var h=Yx(u);return{all:h,min:h[0],max:Ie(h)}}},fT=function(e,t,n){var r=$ce(e),i=[];t[r].all.forEach(function(a){var o=mce(a)?Mce:Ece,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=Ie(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)},Rce=function(e,t){return fT("x",e,t)},Dce=function(e,t){return fT("y",e,t)},hT=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}},pT={millisecond:[vc,vc],second:[bg,bg],minute:[i5,d5],hour:[a5,f5],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:[o5,h5],wednesday:[s5,p5],thursday:[Ja,Qa],friday:[l5,m5],saturday:[c5,g5],month:[u5,v5],year:[ra,ia]},Ice=Object.keys(pT),jce=new RegExp("^every\\s*(\\d+)?\\s*("+Ice.join("|")+")s?$","i"),mT=function(e,t){if(Array.isArray(t))return t;if(typeof t=="string"&&"useUTC"in e){var n=t.match(jce);if(n){var r=n[1],i=n[2],a=pT[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 gT=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=mT(r,a),h=W5[d],p="bandwidth"in r?hT(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}},vT=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)||mT(i,o)),l="bandwidth"in i?hT(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},Nce=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(Us,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.text,children:""+d})]}))}),Wn={tickSize:5,tickPadding:5,tickRotation:0,legendPosition:"middle",legendOffset:0},Pce=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?Nce: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,R=e.onClick,$=e.ariaHidden,O=Ft(),D=jX(O.axis,T),I=v.useMemo(function(){return vT(g,n)},[g,n]),j=gT({axis:t,scale:n,ticksPosition:l,tickValues:c,tickSize:d,tickPadding:h,tickRotation:m,truncateTickAt:w}),A=j.ticks,M=j.textAlign,L=j.textBaseline,B=null;if(C!==void 0){var P,U=0,H=0,q=0;t==="y"?(q=-90,U=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",U=s/2):S==="end"&&(P="end",U=s)),B=b.jsx(b.Fragment,{children:b.jsx(Us,{transform:"translate("+U+", "+H+") rotate("+q+")",textAnchor:P,style:Or({},D.legend.text,{dominantBaseline:"central"}),children:C})})}var G=Fn(),K=G.animate,te=G.config,ne=Xr({transform:"translate("+i+","+o+")",lineX2:t==="x"?s:0,lineY2:t==="x"?0:s,config:te,immediate:!K}),W=v.useCallback(function(V){return{opacity:1,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),F=v.useCallback(function(V){return{opacity:0,transform:"translate("+V.x+","+V.y+")",textTransform:"translate("+V.textX+","+V.textY+") rotate("+m+")"}},[m]),z=so(A,{keys:function(V){return V.key},initial:W,from:F,enter:W,update:W,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 pe.createElement(_,Or({tickIndex:Q,format:I,rotate:m,textBaseline:L,textAnchor:M,truncateTickAt:w,animatedProps:V,theme:D.ticks},N,R?{onClick:R}:{}))}),b.jsx(Vt.line,{style:D.domain.line,x1:0,x2:ne.lineX2,y1:0,y2:ne.lineY2}),B]})},Lce=v.memo(Pce),bT=["top","right","bottom","left"],yT=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:bT.map(function(o){var s=a[o];if(!s)return null;var l=o==="top"||o==="bottom";return b.jsx(Lce,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)})})}),Fce=v.memo(function(e){var t=e.animatedProps,n=Ft();return b.jsx(Vt.line,Or({},t,n.grid.line))}),ew=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(Fce,Or({},s,{key:s.key,animatedProps:o}))})})}),xT=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(ew,{lines:s}),l&&b.jsx(ew,{lines:l})]})}),Bce=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,R=t.style,$=gT({axis:i,scale:a,ticksPosition:d,tickValues:f,tickSize:p,tickPadding:g,tickRotation:_,engine:"canvas"}),O=$.ticks,D=$.textAlign,I=$.textBaseline;e.save(),e.translate(s,c);var j=p6(T.axis,R);e.textAlign=D,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 M=typeof w=="function"?w:function(G){return""+G},L=(r=j.ticks.line.strokeWidth)!=null?r:0,B=typeof L!="string"&&L>0;if(O.forEach(function(G){B&&(e.lineWidth=L,e.lineCap="square",j.ticks.line.stroke&&(e.strokeStyle=j.ticks.line.stroke),e.beginPath(),e.moveTo(G.x,G.y),e.lineTo(G.x+G.lineX,G.y+G.lineY),e.stroke());var K=M(G.value);e.save(),e.translate(G.x+G.textX,G.y+G.textY),e.rotate(hr(_)),to(e,j.ticks.text,""+K),e.fillText(""+K,0,0),e.restore()}),C!==void 0){var P=0,U=0,H=0,q="center";i==="y"?(H=-90,P=k,S==="start"?(q="start",U=u):S==="middle"?(q="center",U=u/2):S==="end"&&(q="end")):(U=k,S==="start"?q="start":S==="middle"?(q="center",P=u/2):S==="end"&&(q="end",P=u)),e.translate(P,U),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()},wT=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};bT.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=vT(h.format,g);Bce(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()})},zce=d6,Wce=0;function Uce(e){var t=++Wce;return zce(e)+t}var Hce=Uce;const Vce=an(Hce),vi=11102230246251565e-32,kn=134217729,qce=(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 Yce(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 Gce=(3+16*vi)*vi,Zce=(2+12*vi)*vi,Kce=(9+64*vi)*vi*vi,jo=Xc(4),tw=Xc(8),nw=Xc(12),rw=Xc(16),In=Xc(4);function Xce(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,R=n-i,$=t-a,O=r-a;C=T*O,f=kn*T,h=f-(f-T),p=T-h,f=kn*O,m=f-(f-O),g=O-m,x=p*g-(C-h*m-p*m-h*g),S=$*R,f=kn*$,h=f-(f-$),p=$-h,f=kn*R,m=f-(f-R),g=R-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 D=Yce(4,jo),I=Zce*o;if(D>=I||-D>=I||(d=e-T,s=e-(T+d)+(d-i),d=n-R,c=n-(R+d)+(d-i),d=t-$,l=t-($+d)+(d-a),d=r-O,u=r-(O+d)+(d-a),s===0&&l===0&&c===0&&u===0)||(I=Kce*o+qce*Math.abs(D),D+=T*u+O*s-($*c+R*l),D>=I||-D>=I))return D;C=s*O,f=kn*s,h=f-(f-s),p=s-h,f=kn*O,m=f-(f-O),g=O-m,x=p*g-(C-h*m-p*m-h*g),S=l*R,f=kn*l,h=f-(f-l),p=l-h,f=kn*R,m=f-(f-R),g=R-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,tw);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,tw,4,In,nw);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 M=Qp(A,nw,4,In,rw);return rw[M-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)>=Gce*c?l:-Xce(e,t,n,r,i,a,c)}const iw=Math.pow(2,-52),Ou=new Uint32Array(512);class Wd{static from(t,n=nue,r=rue){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 R=t[2*T],$=t[2*T+1];R<s&&(s=R),$<l&&(l=$),R>c&&(c=R),$>u&&(u=$),this._ids[T]=T}const d=(s+c)/2,f=(l+u)/2;let h,p,m;for(let T=0,R=1/0;T<o;T++){const $=em(d,f,t[2*T],t[2*T+1]);$<R&&(h=T,R=$)}const g=t[2*h],y=t[2*h+1];for(let T=0,R=1/0;T<o;T++){if(T===h)continue;const $=em(g,y,t[2*T],t[2*T+1]);$<R&&$>0&&(p=T,R=$)}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 R=eue(g,y,_,w,t[2*T],t[2*T+1]);R<C&&(m=T,C=R)}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 R=0;for(let $=0,O=-1/0;$<o;$++){const D=this._ids[$],I=this._dists[D];I>O&&(T[R++]=D,O=I)}this.hull=T.subarray(0,R),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(Mu(g,y,_,w,x,S)<0){const T=p,R=_,$=w;p=m,_=x,w=S,m=T,x=R,S=$}const E=tue(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,R,$;T<this._ids.length;T++){const O=this._ids[T],D=t[2*O],I=t[2*O+1];if(T>0&&Math.abs(D-R)<=iw&&Math.abs(I-$)<=iw||(R=D,$=I,O===h||O===p||O===m))continue;let j=0;for(let P=0,U=this._hashKey(D,I);P<this._hashSize&&(j=a[(U+P)%this._hashSize],!(j!==-1&&j!==r[j]));P++);j=n[j];let A=j,M;for(;M=r[A],Mu(D,I,t[2*A],t[2*A+1],t[2*M],t[2*M+1])>=0;)if(A=M,A===j){A=-1;break}if(A===-1)continue;let L=this._addTriangle(A,O,r[A],-1,-1,i[A]);i[O]=this._legalize(L+2),i[A]=L,k++;let B=r[A];for(;M=r[B],Mu(D,I,t[2*B],t[2*B+1],t[2*M],t[2*M+1])<0;)L=this._addTriangle(B,O,M,i[O],-1,i[B]),i[O]=this._legalize(L+2),r[B]=B,k--,B=M;if(A===j)for(;M=n[A],Mu(D,I,t[2*M],t[2*M+1],t[2*A],t[2*A+1])<0;)L=this._addTriangle(M,O,A,-1,i[A],i[M]),this._legalize(L+2),i[M]=L,r[A]=A,k--,A=M;this._hullStart=n[O]=A,r[A]=n[B]=O,r[O]=B,a[this._hashKey(D,I)]=O,a[this._hashKey(t[2*A],t[2*A+1])]=A}this.hull=new Uint32Array(k);for(let T=0,R=this._hullStart;T<k;T++)this.hull[T]=R,R=r[R];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(Jce(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(Qce(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 Jce(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 Qce(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 eue(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 tue(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;hl(e,i,a),t[e[n]]>t[e[r]]&&hl(e,n,r),t[e[a]]>t[e[r]]&&hl(e,a,r),t[e[n]]>t[e[a]]&&hl(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;hl(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 hl(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function nue(e){return e[0]}function rue(e){return e[1]}const aw=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)>aw||Math.abs(this._y1-a)>aw)&&(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 iue{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],R=t[x+1],$=t[S],O=t[S+1],D=T-E,I=R-k,j=$-E,A=O-k,M=(D*A-I*j)*2;if(Math.abs(M)<1e-9){if(a===void 0){a=o=0;for(const B of n)a+=t[B*2],o+=t[B*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+O)/2+L*j}else{const L=1/M,B=D*D+I*I,P=j*j+A*A;_=E+(A*B-I*P)*L,w=k+(D*P-j*B)*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 aue=2*Math.PI,No=Math.pow;function oue(e){return e[0]}function sue(e){return e[1]}function lue(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 cue(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class Nh{static from(t,n=oue,r=sue,i){return new Nh("length"in t?uue(t,n,r,i):Float64Array.from(due(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&&lue(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=cue(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 iue(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,aue)}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 uue(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*due(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 _T(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"},b1=function(e){return[e.x,e.y]},Jc=q5,CT="cursor",ST="top",fue=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?b1: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]})},hue=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}},TT=function(e){var t=e.points,n=e.getNodePosition,r=n===void 0?b1:n,i=e.width,a=e.height,o=e.margin,s=o===void 0?Jc:o,l=e.debug;return v.useMemo(function(){return hue({points:fue({points:t,margin:s,getNodePosition:r}),width:i,height:a,margin:s,debug:l})},[r,t,i,a,s,l])},pue=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])},mue=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])},gue=function(e){var t=e.elementRef,n=e.nodes,r=e.getNodePosition,i=r===void 0?b1: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,R=e.tooltipPosition,$=R===void 0?CT:R,O=e.tooltipAnchor,D=O===void 0?ST:O,I=v.useState(null),j=I[0],A=I[1],M=v.useRef(null);v.useEffect(function(){M.current=j},[M,j]);var L=v.useCallback(function(Q){if(!t.current||n.length===0)return null;var Z=Jo(t.current,Q),se=Z[0],X=Z[1],J=a.find(se,X),ie=J!==void 0?n[J]:null;if(ie&&u!==1/0){var oe=i(ie),ge=oe[0],de=oe[1];G5(se,X,ge+l.left,de+l.top)>u&&(J=null,ie=null)}return J===null||ie===null?null:[J,ie]},[t,a,n,i,l,u]),B=Ei(),P=B.showTooltipAt,U=B.showTooltipFromEvent,H=B.hideTooltip,q=v.useMemo(function(){if(T)return $==="cursor"?function(Q,Z){U(T(Q),Z,D)}:function(Q){var Z=i(Q),se=Z[0],X=Z[1];P(T(Q),[se+l.left,X+l.top],D)}},[P,U,T,$,D,i,l]),G=v.useCallback(function(Q){var Z=L(Q);if(A(Z),o==null||o(Z?Z[1]:null),Z){var se=Z[1];q==null||q(se,Q),h==null||h(Z[1],Q)}},[L,A,o,q,h]),K=v.useCallback(function(Q){var Z=L(Q);if(A(Z),Z){var se=Z[0],X=Z[1];if(o==null||o(X),q==null||q(X,Q),M.current){var J=M.current,ie=J[0],oe=J[1];se!==ie?m==null||m(oe,Q):p==null||p(X,Q)}else h==null||h(X,Q)}else o==null||o(null),H==null||H(),M.current&&(m==null||m(M.current[1],Q))},[L,A,o,M,h,p,m,q,H]),te=v.useCallback(function(Q){A(null),o==null||o(null),H(),m&&M.current&&m(M.current[1],Q)},[A,o,M,H,m]),ne=v.useCallback(function(Q){var Z=L(Q);A(Z),Z&&(g==null||g(Z[1],Q))},[L,A,g]),W=v.useCallback(function(Q){var Z=L(Q);A(Z),Z&&(y==null||y(Z[1],Q))},[L,A,y]),F=v.useCallback(function(Q){var Z=L(Q);A(Z),Z&&(_==null||_(Z[1],Q))},[L,A,_]),z=v.useCallback(function(Q){var Z=L(Q);A(Z),Z&&(w==null||w(Z[1],Q))},[L,A,w]),V=v.useCallback(function(Q){var Z=L(Q);k&&(A(Z),o==null||o(Z?Z[1]:null)),Z&&(C==null||C(Z[1],Q))},[L,A,o,k,C]),N=v.useCallback(function(Q){var Z=L(Q);k&&(A(Z),o==null||o(Z?Z[1]:null)),Z&&(x==null||x(Z[1],Q))},[L,A,o,k,x]),ee=v.useCallback(function(Q){k&&(A(null),o==null||o(null)),S&&M.current&&S(M.current[1],Q)},[k,A,o,S,M]);return{current:j,handleMouseEnter:f?G:void 0,handleMouseMove:f?K:void 0,handleMouseLeave:f?te:void 0,handleMouseDown:f?ne:void 0,handleMouseUp:f?W:void 0,handleClick:f?F:void 0,handleDoubleClick:f?z:void 0,handleTouchStart:f?V:void 0,handleTouchMove:f?N:void 0,handleTouchEnd:f?ee:void 0}},vue=["theme"],bue=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,R=T===void 0?er.pointSize:T,$=e.pointColor,O=$===void 0?er.pointColor:$,D=e.role,I=D===void 0?er.role:D,j=e.forwardedRef,A=vo(n,r,i),M=A.outerWidth,L=A.outerHeight,B=A.margin,P=A.innerWidth,U=A.innerHeight,H=pue({data:t,width:P,height:U,xDomain:l,yDomain:u}),q=H.points,G=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:G.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:O,d:G.renderPoints(void 0,R/2)},"points")),o.includes("bounds")&&(te.bounds=b.jsx("path",{fill:"none",stroke:S,strokeWidth:C,d:K.renderBounds()},"bounds"));var ne=mue({points:q,delaunay:G,voronoi:K});return b.jsx(jh,{width:M,height:L,margin:B,role:I,ref:j,children:o.map(function(W,F){return te[W]!==void 0?te[W]:typeof W=="function"?b.jsx(v.Fragment,{children:v.createElement(W,ne)},F):null})})},yue=v.forwardRef(function(e,t){var n=e.theme,r=_T(e,vue);return b.jsx(mo,{isInteractive:!1,animate:!1,theme:n,children:b.jsx(bue,Ud({},r,{forwardedRef:t}))})}),xue=["defaultWidth","defaultHeight","onResize","debounceResize"];v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=_T(e,xue);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(yue,Ud({},o,{width:l,height:c,ref:t}))}})});var wue=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?CT:E,T=e.tooltipAnchor,R=T===void 0?ST:T,$=e.debug,O=v.useRef(null),D=TT({points:t,getNodePosition:o,width:n,height:r,margin:a,debug:$}),I=D.delaunay,j=D.voronoi,A=gue({elementRef:O,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:R}),M=A.current,L=A.handleMouseEnter,B=A.handleMouseMove,P=A.handleMouseLeave,U=A.handleMouseDown,H=A.handleMouseUp,q=A.handleClick,G=A.handleDoubleClick,K=A.handleTouchStart,te=A.handleTouchMove,ne=A.handleTouchEnd,W=v.useMemo(function(){if($&&j)return j.render()},[$,j]);return b.jsxs("g",{ref:O,transform:"translate("+-a.left+","+-a.top+")",children:[$&&j&&b.jsxs(b.Fragment,{children:[b.jsx("path",{d:W,stroke:"red",strokeWidth:1,opacity:.75}),x<1/0&&b.jsx("path",{stroke:"red",strokeWidth:.35,fill:"none",d:I.renderPoints(void 0,x)}),M&&b.jsx("path",{fill:"pink",opacity:.35,d:j.renderCell(M[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:B,onMouseLeave:P,onMouseDown:U,onMouseUp:H,onTouchStart:K,onTouchMove:te,onTouchEnd:ne,onClick:q,onDoubleClick:G})]})},_ue=function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()},Cue=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 ow,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(kv,{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(b6,{rows:t.points.map(function(a){return[b.jsx(v6,{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"&&(ow=window.devicePixelRatio)!=null?ow:1,axisTop:null,axisRight:null,axisBottom:Wn,axisLeft:Wn});function Sue(e){return v.useMemo(function(){return Nv().defined(function(t){return t.x!==null&&t.y!==null}).x(function(t){return t.x}).y(function(t){return t.y}).curve(V5(e))},[e])}function Tue(e){var t=e.curve,n=e.yScale,r=e.areaBaselineValue;return v.useMemo(function(){return SQ().defined(function(i){return i.x!==null&&i.y!==null}).x(function(i){return i.x}).y1(function(i){return i.y}).curve(V5(t)).y0(n(r))},[t,n,r])}var kue=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])},$ue="line",kT=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(Vce($ue))[0],T=bs(i),R=bs(s),$=f1(d,"id"),O=Ft(),D=gr(y,O),I=gr(w,O),j=v.useState(E??[]),A=j[0],M=j[1],L=v.useMemo(function(){return Oce(t.filter(function(W){return A.indexOf(W.id)===-1}),r,o,l,c)},[t,A,r,o,l,c]),B=L.xScale,P=L.yScale,U=L.series,H=v.useMemo(function(){var W=t.map(function(z){return{id:z.id,label:""+z.id,color:$(z)}}),F=W.map(function(z){return On({},U.find(function(V){return V.id===z.id}),{color:z.color})}).filter(function(z){return!!z.id});return{legendData:W.map(function(z){return On({},z,{hidden:!F.find(function(V){return V.id===z.id})})}).reverse(),series:F}},[t,U,$]),q=H.legendData,G=H.series,K=v.useCallback(function(W){M(function(F){return F.indexOf(W)>-1?F.filter(function(z){return z!==W}):[].concat(F,[W])})},[]),te=function(W){var F=W.series,z=W.getPointColor,V=W.getPointBorderColor,N=W.formatX,ee=W.formatY;return v.useMemo(function(){return F.reduce(function(Q,Z,se){return[].concat(Q,Z.data.filter(function(X){return X.position.x!==null&&X.position.y!==null}).map(function(X,J){var ie={id:Z.id+"."+J,indexInSeries:J,absIndex:Q.length+J,seriesIndex:se,seriesId:Z.id,seriesColor:Z.color,x:X.position.x,y:X.position.y,data:On({},X.data,{xFormatted:N(X.data.x),yFormatted:ee(X.data.y)})};return ie.color=z({series:Z,point:ie}),ie.borderColor=V(ie),ie}))},[])},[F,z,V,N,ee])}({series:G,getPointColor:D,getPointBorderColor:I,formatX:T,formatY:R}),ne=kue({componentId:k,enableSlices:x,points:te,width:l,height:c});return{legendData:q,toggleSeries:K,lineGenerator:Sue(h),areaGenerator:Tue({curve:h,yScale:P,areaBaselineValue:m}),getColor:$,series:G,xScale:B,yScale:P,slices:ne,points:te}},Eue=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=l1(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}})},Mue=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(Eue,On({path:t(a.data.map(function(o){return o.position}))},On({areaOpacity:n,areaBlendMode:r},a)),""+a.id)})})}),Oue=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=l1(a);return b.jsx(Vt.path,{d:o,fill:"none",strokeWidth:i,stroke:r})}),Aue=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(Oue,{points:o.map(function(l){return l.position}),lineGenerator:n,color:s,thickness:r},a)})})}),Rue=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]),R=v.useCallback(function(j){h==null||h(t,j)},[t,h]),$=v.useCallback(function(j){p==null||p(t,j)},[t,p]),O=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]),D=v.useCallback(function(j){var A=j.touches[0],M=document.elementFromPoint(A.clientX,A.clientY),L=M==null?void 0:M.getAttribute("data-ref");if(L){var B=n.find(function(P){return P.id===L});B&&(w(v.createElement(a,{slice:B,axis:r}),j,"right"),s(B))}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:R,onDoubleClick:$,onTouchStart:O,onTouchMove:D,onTouchEnd:I,"data-ref":t.id})}),Due=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(Rue,{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)})})}),Iue=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=Hae(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(Bae,{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)})})}),jue=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,M){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),o==null||o(A,M)},[C,g,o,i]),E=v.useCallback(function(A,M){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),s==null||s(A,M)},[C,g,i.left,i.top,s]),k=v.useCallback(function(A,M){x(),l==null||l(A,M)},[x,l]),T=v.useCallback(function(A,M){c==null||c(A,M)},[c]),R=v.useCallback(function(A,M){u==null||u(A,M)},[u]),$=v.useCallback(function(A,M){d==null||d(A,M)},[d]),O=v.useCallback(function(A,M){f==null||f(A,M)},[f]),D=v.useCallback(function(A,M){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),h==null||h(A,M)},[i.left,i.top,h,C,g]),I=v.useCallback(function(A,M){C(v.createElement(g,{point:A}),[A.x+i.left,A.y+i.top],"top"),p==null||p(A,M)},[i.left,i.top,p,C,g]),j=v.useCallback(function(A,M){x(),m==null||m(A,M)},[m,x]);return b.jsx(wue,{nodes:t,width:n,height:r,setCurrent:a,onMouseEnter:S,onMouseMove:E,onMouseLeave:k,onMouseDown:T,onMouseUp:R,onClick:$,onDoubleClick:O,onTouchStart:D,onTouchMove:I,onTouchEnd:j,enableTouchCrosshair:_,debug:y})}),Nue=["isInteractive","animate","motionConfig","theme","renderWrapper"];function Pue(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,R=T===void 0?st.areaBlendMode:T,$=e.enablePoints,O=$===void 0?st.enablePoints:$,D=e.pointSymbol,I=e.pointSize,j=I===void 0?st.pointSize:I,A=e.pointColor,M=A===void 0?st.pointColor:A,L=e.pointBorderWidth,B=L===void 0?st.pointBorderWidth:L,P=e.pointBorderColor,U=P===void 0?st.pointBorderColor:P,H=e.enablePointLabel,q=H===void 0?st.enablePointLabel:H,G=e.pointLabel,K=G===void 0?st.pointLabel:G,te=e.pointLabelYOffset,ne=e.enableGridX,W=ne===void 0?st.enableGridX:ne,F=e.gridXValues,z=e.enableGridY,V=z===void 0?st.enableGridY:z,N=e.gridYValues,ee=e.axisTop,Q=e.axisRight,Z=e.axisBottom,se=Z===void 0?st.axisBottom:Z,X=e.axisLeft,J=X===void 0?st.axisLeft:X,ie=e.defs,oe=ie===void 0?st.defs:ie,ge=e.fill,de=ge===void 0?st.fill:ge,ue=e.markers,Se=e.legends,le=Se===void 0?st.legends:Se,fe=e.isInteractive,we=fe===void 0?st.isInteractive:fe,Ge=e.useMesh,_e=Ge===void 0?st.useMesh:Ge,ye=e.debugMesh,Pe=ye===void 0?st.debugMesh:ye,Ze=e.onMouseEnter,_t=e.onMouseMove,ke=e.onMouseLeave,De=e.onMouseDown,at=e.onMouseUp,Ue=e.onClick,mt=e.onDoubleClick,ut=e.onTouchStart,Rt=e.onTouchMove,Xe=e.onTouchEnd,Le=e.tooltip,Ve=Le===void 0?st.tooltip:Le,et=e.enableSlices,Fe=et===void 0?st.enableSlices:et,tt=e.debugSlices,vt=tt===void 0?st.debugSlices:tt,ot=e.sliceTooltip,Ne=ot===void 0?st.sliceTooltip:ot,Me=e.enableCrosshair,Ye=Me===void 0?st.enableCrosshair:Me,xt=e.crosshairType,nt=xt===void 0?st.crosshairType:xt,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,Be=e.pointAriaDescribedBy,ze=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=kT({data:t,xScale:r,xFormat:i,yScale:o,yFormat:s,width:ln,height:cn,colors:p,curve:c,areaBaselineValue:S,pointColor:M,pointBorderColor:U,enableSlices:Fe,initialHiddenIds:Tt}),ua=Ct.legendData,Ae=Ct.toggleSeries,Rr=Ct.lineGenerator,da=Ct.areaGenerator,bo=Ct.series,yo=Ct.xScale,ei=Ct.yScale,Qc=Ct.slices,ti=Ct.points,Hs=v.useState(null),fa=Hs[0],Vs=Hs[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")&&(W||V)&&(Dn.grid=b.jsx(xT,{width:ln,height:cn,xScale:W?yo:null,yScale:V?ei:null,xValues:F,yValues:N},"grid")),_.includes("markers")&&Array.isArray(ue)&&ue.length>0&&(Dn.markers=b.jsx(H5,{markers:ue,width:ln,height:cn,xScale:yo,yScale:ei},"markers")),_.includes("axes")&&(Dn.axes=b.jsx(yT,{xScale:yo,yScale:ei,width:ln,height:cn,top:ee,right:Q,bottom:se,left:J},"axes")),_.includes("lines")&&(Dn.lines=b.jsx(Aue,{series:bo,lineGenerator:Rr,lineWidth:g},"lines")),_.includes("legends")&&le.length>0&&(Dn.legends=b.jsx(v.Fragment,{children:le.map(function(Dr,Mi){return b.jsx(m1,On({},Dr,{containerWidth:ln,containerHeight:cn,data:Dr.data||ua,toggleSerie:Dr.toggleSerie?Ae:void 0}),Mi)})},"legends"));var Bh=u1(oe,bo,de);C&&(Dn.areas=b.jsx(Mue,{areaGenerator:da,areaOpacity:k,areaBlendMode:R,series:bo},"areas")),we&&Fe!==!1&&(Dn.slices=b.jsx(Due,{slices:Qc,axis:Fe,debug:vt,tooltip:Ne,current:ha,setCurrent:tu,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:ke,onMouseDown:De,onMouseUp:at,onClick:Ue,onDoubleClick:mt,onTouchStart:ut,onTouchMove:Rt,onTouchEnd:Xe},"slices")),O&&(Dn.points=b.jsx(Iue,{points:ti,symbol:D,size:j,borderWidth:B,enableLabel:q,label:K,labelYOffset:te,isFocusable:St,setCurrentPoint:Vs,tooltip:Ve,margin:yr,ariaLabel:on,ariaLabelledBy:Gt,ariaDescribedBy:Be,ariaHidden:ze,ariaDisabled:ht},"points")),we&&Ye&&(fa!==null&&(Dn.crosshair=b.jsx(sg,{width:ln,height:cn,x:fa.x,y:fa.y,type:nt},"crosshair")),ha!==null&&Fe&&(Dn.crosshair=b.jsx(sg,{width:ln,height:cn,x:ha.x,y:ha.y,type:Fe},"crosshair"))),we&&_e&&Fe===!1&&(Dn.mesh=b.jsx(jue,{points:ti,width:ln,height:cn,margin:yr,setCurrent:Vs,onMouseEnter:Ze,onMouseMove:_t,onMouseLeave:ke,onMouseDown:De,onMouseUp:at,onClick:Ue,onDoubleClick:mt,onTouchStart:ut,onTouchMove:Rt,onTouchEnd:Xe,tooltip:Ve,enableTouchCrosshair:en,debug:Pe},"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:Vs,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 Lue=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,Nue);return b.jsx(mo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(Pue,On({isInteractive:r},u,{forwardedRef:t}))})}),Fue=["defaultWidth","defaultHeight","onResize","debounceResize"],Bue=v.forwardRef(function(e,t){var n=e.defaultWidth,r=e.defaultHeight,i=e.onResize,a=e.debounceResize,o=Ph(e,Fue);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(Lue,On({width:l,height:c},o,{ref:t}))}})}),zue=["isInteractive","renderWrapper","theme"],Wue=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,R=T===void 0?nn.areaOpacity:T,$=e.enablePoints,O=$===void 0?nn.enablePoints:$,D=e.pointSize,I=D===void 0?nn.pointSize:D,j=e.pointColor,A=j===void 0?nn.pointColor:j,M=e.pointBorderWidth,L=M===void 0?nn.pointBorderWidth:M,B=e.pointBorderColor,P=B===void 0?nn.pointBorderColor:B,U=e.enableGridX,H=U===void 0?nn.enableGridX:U,q=e.gridXValues,G=e.enableGridY,K=G===void 0?nn.enableGridY:G,te=e.gridYValues,ne=e.axisTop,W=e.axisRight,F=e.axisBottom,z=F===void 0?nn.axisBottom:F,V=e.axisLeft,N=V===void 0?nn.axisLeft:V,ee=e.legends,Q=ee===void 0?nn.legends:ee,Z=e.isInteractive,se=Z===void 0?nn.isInteractive:Z,X=e.debugMesh,J=X===void 0?nn.debugMesh:X,ie=e.onMouseLeave,oe=e.onMouseDown,ge=e.onMouseUp,de=e.onClick,ue=e.onDoubleClick,Se=e.tooltip,le=Se===void 0?nn.tooltip:Se,fe=e.role,we=e.forwardedRef,Ge=v.useRef(null),_e=vo(t,n,r),ye=_e.margin,Pe=_e.innerWidth,Ze=_e.innerHeight,_t=_e.outerWidth,ke=_e.outerHeight,De=Ft(),at=v.useState(null),Ue=at[0],mt=at[1],ut=kT({data:o,xScale:l,xFormat:c,yScale:d,yFormat:f,width:Pe,height:Ze,colors:_,curve:p,areaBaselineValue:k,pointColor:A,pointBorderColor:P}),Rt=ut.lineGenerator,Xe=ut.areaGenerator,Le=ut.series,Ve=ut.xScale,et=ut.yScale,Fe=ut.points,tt=v.useMemo(function(){return{innerWidth:Pe,innerHeight:Ze,series:Le,points:Fe,xScale:Ve,yScale:et,lineWidth:C,lineGenerator:Rt,areaGenerator:Xe,currentPoint:Ue,setCurrentPoint:mt}},[Pe,Ze,Le,Fe,Ve,et,C,Rt,Xe,Ue,mt]),vt=TT({points:Fe,width:Pe,height:Ze,debug:J}),ot=vt.delaunay,Ne=vt.voronoi;v.useEffect(function(){if(Ge.current!==null){Ge.current.width=_t*a,Ge.current.height=ke*a;var $e=Ge.current.getContext("2d");$e.scale(a,a),$e.fillStyle=De.background,$e.fillRect(0,0,_t,ke),$e.translate(ye.left,ye.top),g.forEach(function(Je){var St;typeof Je=="function"&&Je($e,tt);var on=(St=De.grid.line.strokeWidth)!=null?St:0;if(Je==="grid"&&typeof on!="string"&&on>0&&($e.lineWidth=on,$e.strokeStyle=De.grid.line.stroke,H&&zd($e,{width:Pe,height:Ze,scale:Ve,axis:"x",values:q}),K&&zd($e,{width:Pe,height:Ze,scale:et,axis:"y",values:te})),Je==="axes"&&wT($e,{xScale:Ve,yScale:et,width:Pe,height:Ze,top:ne,right:W,bottom:z,left:N,theme:De}),Je==="areas"&&S===!0){$e.save(),$e.globalAlpha=R,Xe.context($e);for(var Gt=Le.length-1;Gt>=0;Gt--)$e.fillStyle=Le[Gt].color,$e.beginPath(),Xe(Le[Gt].data.map(function(ze){return ze.position})),$e.fill();$e.restore()}if(Je==="lines"&&(Rt.context($e),Le.forEach(function(ze){$e.strokeStyle=ze.color,$e.lineWidth=C,$e.beginPath(),Rt(ze.data.map(function(ht){return ht.position})),$e.stroke()})),Je==="points"&&O===!0&&I>0&&Fe.forEach(function(ze){$e.fillStyle=ze.color,$e.beginPath(),$e.arc(ze.x,ze.y,I/2,0,2*Math.PI),$e.fill(),L>0&&($e.strokeStyle=ze.borderColor,$e.lineWidth=L,$e.stroke())}),Je==="mesh"&&J===!0&&Ne!==void 0&&(_ue($e,Ne),Ue&&Cue($e,Ne,Ue.absIndex)),Je==="legends"){var Be=Le.map(function(ze){return{id:ze.id,label:ze.id,color:ze.color}}).reverse();Q.forEach(function(ze){g1($e,On({},ze,{data:ze.data||Be,containerWidth:Pe,containerHeight:Ze,theme:De}))})}})}},[Ge,Pe,_t,Ze,ke,ye.left,ye.top,a,g,De,Rt,Le,Ve,et,H,q,K,te,ne,W,z,N,Q,Fe,O,I,L,Ue,tt,J,S,Xe,R,C,Ne]);var Me=v.useCallback(function($e){if(!Ge.current)return null;var Je=Jo(Ge.current,$e),St=Je[0],on=Je[1];if(!Z5(ye.left,ye.top,Pe,Ze,St,on))return null;var Gt=ot.find(St-ye.left,on-ye.top);return Fe[Gt]},[Ge,ye,Pe,Ze,ot,Fe]),Ye=Ei(),xt=Ye.showTooltipFromEvent,nt=Ye.hideTooltip,bt=v.useCallback(function($e){var Je=Me($e);mt(Je),Je?xt(v.createElement(le,{point:Je}),$e):nt()},[Me,mt,xt,nt,le]),en=v.useCallback(function($e){nt(),mt(null),Ue&&(ie==null||ie(Ue,$e))},[nt,mt,ie,Ue]),Bt=v.useCallback(function($e){if(oe){var Je=Me($e);Je&&oe(Je,$e)}},[Me,oe]),Wt=v.useCallback(function($e){if(ge){var Je=Me($e);Je&&ge(Je,$e)}},[Me,ge]),fn=v.useCallback(function($e){if(de){var Je=Me($e);Je&&de(Je,$e)}},[Me,de]),Yt=v.useCallback(function($e){if(ue){var Je=Me($e);Je&&ue(Je,$e)}},[Me,ue]);return b.jsx("canvas",{ref:d1(Ge,we),width:_t*a,height:ke*a,style:{width:_t,height:ke,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:fe})},Uue=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=Ph(e,zue);return b.jsx(mo,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(Wue,On({},a,{forwardedRef:t}))})}),Hue=["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,Hue);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(Uue,On({width:s,height:l},a,{ref:t}))}})});var Vue=uT;function que(e,t){var n=[];return Vue(e,function(r,i,a){t(r,i,a)&&n.push(r)}),n}var Yue=que,Gue=D5,Zue=Yue,Kue=v1,Xue=Jn;function Jue(e,t){var n=Xue(e)?Gue:Zue;return n(e,Kue(t))}var Que=Jue;const ede=an(Que);var tde=$i,nde=br,rde="[object Number]";function ide(e){return typeof e=="number"||nde(e)&&tde(e)==rde}var ade=ide;const sw=an(ade);function ode(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var sde=ode,lde=Ls,cde=Gc;function ude(e,t){return e&&lde(t,cde(t),e)}var dde=ude,fde=Ls,hde=Vc;function pde(e,t){return e&&fde(t,hde(t),e)}var mde=pde,gde=Ls,vde=o1;function bde(e,t){return gde(e,vde(e),t)}var yde=bde,xde=i1,wde=gv,_de=o1,Cde=I5,Sde=Object.getOwnPropertySymbols,Tde=Sde?function(e){for(var t=[];e;)xde(t,_de(e)),e=wde(e);return t}:Cde,$T=Tde,kde=Ls,$de=$T;function Ede(e,t){return kde(e,$de(e),t)}var Mde=Ede,Ode=R5,Ade=$T,Rde=Vc;function Dde(e){return Ode(e,Rde,Ade)}var ET=Dde,Ide=Object.prototype,jde=Ide.hasOwnProperty;function Nde(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&jde.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Pde=Nde,Lde=mv;function Fde(e,t){var n=t?Lde(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Bde=Fde,zde=/\w*$/;function Wde(e){var t=new e.constructor(e.source,zde.exec(e));return t.lastIndex=e.lastIndex,t}var Ude=Wde,lw=Rs,cw=lw?lw.prototype:void 0,uw=cw?cw.valueOf:void 0;function Hde(e){return uw?Object(uw.call(e)):{}}var Vde=Hde,qde=mv,Yde=Bde,Gde=Ude,Zde=Vde,Kde=ZS,Xde="[object Boolean]",Jde="[object Date]",Qde="[object Map]",efe="[object Number]",tfe="[object RegExp]",nfe="[object Set]",rfe="[object String]",ife="[object Symbol]",afe="[object ArrayBuffer]",ofe="[object DataView]",sfe="[object Float32Array]",lfe="[object Float64Array]",cfe="[object Int8Array]",ufe="[object Int16Array]",dfe="[object Int32Array]",ffe="[object Uint8Array]",hfe="[object Uint8ClampedArray]",pfe="[object Uint16Array]",mfe="[object Uint32Array]";function gfe(e,t,n){var r=e.constructor;switch(t){case afe:return qde(e);case Xde:case Jde:return new r(+e);case ofe:return Yde(e,n);case sfe:case lfe:case cfe:case ufe:case dfe:case ffe:case hfe:case pfe:case mfe:return Kde(e,n);case Qde:return new r;case efe:case rfe:return new r(e);case tfe:return Gde(e);case nfe:return new r;case ife:return Zde(e)}}var vfe=gfe,bfe=Ih,yfe=br,xfe="[object Map]";function wfe(e){return yfe(e)&&bfe(e)==xfe}var _fe=wfe,Cfe=_fe,Sfe=Ps,dw=Vf,fw=dw&&dw.isMap,Tfe=fw?Sfe(fw):Cfe,kfe=Tfe,$fe=Ih,Efe=br,Mfe="[object Set]";function Ofe(e){return Efe(e)&&$fe(e)==Mfe}var Afe=Ofe,Rfe=Afe,Dfe=Ps,hw=Vf,pw=hw&&hw.isSet,Ife=pw?Dfe(pw):Rfe,jfe=Ife,Nfe=Wf,Pfe=sde,Lfe=_v,Ffe=dde,Bfe=mde,zfe=YS,Wfe=KS,Ufe=yde,Hfe=Mde,Vfe=j5,qfe=ET,Yfe=Ih,Gfe=Pde,Zfe=vfe,Kfe=JS,Xfe=Jn,Jfe=Hf,Qfe=kfe,ehe=Qr,the=jfe,nhe=Gc,rhe=Vc,ihe=1,ahe=2,ohe=4,MT="[object Arguments]",she="[object Array]",lhe="[object Boolean]",che="[object Date]",uhe="[object Error]",OT="[object Function]",dhe="[object GeneratorFunction]",fhe="[object Map]",hhe="[object Number]",AT="[object Object]",phe="[object RegExp]",mhe="[object Set]",ghe="[object String]",vhe="[object Symbol]",bhe="[object WeakMap]",yhe="[object ArrayBuffer]",xhe="[object DataView]",whe="[object Float32Array]",_he="[object Float64Array]",Che="[object Int8Array]",She="[object Int16Array]",The="[object Int32Array]",khe="[object Uint8Array]",$he="[object Uint8ClampedArray]",Ehe="[object Uint16Array]",Mhe="[object Uint32Array]",Zt={};Zt[MT]=Zt[she]=Zt[yhe]=Zt[xhe]=Zt[lhe]=Zt[che]=Zt[whe]=Zt[_he]=Zt[Che]=Zt[She]=Zt[The]=Zt[fhe]=Zt[hhe]=Zt[AT]=Zt[phe]=Zt[mhe]=Zt[ghe]=Zt[vhe]=Zt[khe]=Zt[$he]=Zt[Ehe]=Zt[Mhe]=!0;Zt[uhe]=Zt[OT]=Zt[bhe]=!1;function Vu(e,t,n,r,i,a){var o,s=t&ihe,l=t&ahe,c=t&ohe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!ehe(e))return e;var u=Xfe(e);if(u){if(o=Gfe(e),!s)return Wfe(e,o)}else{var d=Yfe(e),f=d==OT||d==dhe;if(Jfe(e))return zfe(e,s);if(d==AT||d==MT||f&&!i){if(o=l||f?{}:Kfe(e),!s)return l?Hfe(e,Bfe(o,e)):Ufe(e,Ffe(o,e))}else{if(!Zt[d])return i?e:{};o=Zfe(e,d,s)}}a||(a=new Nfe);var h=a.get(e);if(h)return h;a.set(e,o),the(e)?e.forEach(function(g){o.add(Vu(g,t,n,g,e,a))}):Qfe(e)&&e.forEach(function(g,y){o.set(y,Vu(g,t,n,y,e,a))});var p=c?l?qfe:Vfe:l?rhe:nhe,m=u?void 0:p(e);return Pfe(m||e,function(g,y){m&&(y=g,g=e[y]),Lfe(o,y,Vu(g,t,n,y,e,a))}),o}var Ohe=Vu;function Ahe(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 Rhe=Ahe,Dhe=qc,Ihe=Rhe;function jhe(e,t){return t.length<2?e:Dhe(e,Ihe(t,0,-1))}var Nhe=jhe,Phe=Fs,Lhe=k5,Fhe=Nhe,Bhe=Bs;function zhe(e,t){return t=Phe(t,e),e=Fhe(e,t),e==null||delete e[Bhe(Lhe(t))]}var Whe=zhe,Uhe=yv;function Hhe(e){return Uhe(e)?void 0:e}var Vhe=Hhe,qhe=Zf,Yhe=Ohe,Ghe=Whe,Zhe=Fs,Khe=Ls,Xhe=Vhe,Jhe=O5,Qhe=ET,epe=1,tpe=2,npe=4,rpe=Jhe(function(e,t){var n={};if(e==null)return n;var r=!1;t=qhe(t,function(a){return a=Zhe(a,e),r||(r=a.length>1),a}),Khe(e,Qhe(e),n),r&&(n=Yhe(n,epe|tpe|npe,Xhe));for(var i=t.length;i--;)Ghe(n,t[i]);return n}),ipe=rpe;const RT=an(ipe);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},ape=function(e){var t=typeof e;return v.isValidElement(e)||t==="string"||t==="function"||t==="object"},ope=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"},spe=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,ede(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({},RT(o,["match","offset"]),c,u,{size:o.size||u.size,datum:l})}))},[])},lpe=function(e,t,n,r){var i=Math.atan2(r-t,n-e);return Iae(Zc(i))},DT=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(sw(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(sw(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=lpe(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}},IT=function(e){var t=e.data,n=e.annotations,r=e.getPosition,i=e.getDimensions;return v.useMemo(function(){return spe({data:t,annotations:n,getPosition:r,getDimensions:i})},[t,n,r,i])},cpe=function(e){var t=e.annotations;return v.useMemo(function(){return t.map(function(n){return Kr({},n,{computed:DT(Kr({},n))})})},[t])},upe=function(e){return v.useMemo(function(){return DT(e)},[e])},dpe=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:RT(a.annotations.text,["outlineWidth","outlineColor"]),children:i})]})},mw=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=l1(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})},fpe=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})]})},hpe=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})]})},ppe=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})]})},mpe=function(e){var t=e.datum,n=e.x,r=e.y,i=e.note,a=upe(e);if(!ape(i))throw new Error("note should be a valid react element");return b.jsxs(b.Fragment,{children:[b.jsx(mw,{points:a.points,isOutline:!0}),wc(e)&&b.jsx(fpe,{x:n,y:r,size:e.size}),Mg(e)&&b.jsx(hpe,{x:n,y:r,size:e.size}),_c(e)&&b.jsx(ppe,{x:n,y:r,width:e.width,height:e.height,borderRadius:e.borderRadius}),b.jsx(mw,{points:a.points}),b.jsx(dpe,{datum:t,x:a.text[0],y:a.text[1],note:i})]})},gw=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)})},gpe=function(e,t){var n=t.annotations,r=t.theme;n.length!==0&&(e.save(),n.forEach(function(i){if(!ope(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(),gw(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(),gw(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())},vpe=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 vw,bpe=function(e){var t=e.bars,n=e.annotations,r=IT({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(mpe,$t({},i),a)})})},ype=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(m1,$t({},l,{containerWidth:t,containerHeight:n,data:(s=l.data)!=null?s:c,toggleSerie:l.toggleSerie&&l.dataFrom==="keys"?i:void 0}),o)})})},xpe=["data"],wpe=function(e){var t,n=e.bar,r=n.data,i=la(n,xpe),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,R=e.ariaLabel,$=e.ariaLabelledBy,O=e.ariaDescribedBy,D=e.ariaDisabled,I=e.ariaHidden,j=Ft(),A=Ei(),M=A.showTooltipFromEvent,L=A.showTooltipAt,B=A.hideTooltip,P=v.useMemo(function(){return function(){return v.createElement(k,$t({},i,r))}},[k,i,r]),U=v.useCallback(function(ne){x==null||x($t({color:i.color},r),ne)},[i,r,x]),H=v.useCallback(function(ne){return M(P(),ne)},[M,P]),q=v.useCallback(function(ne){S==null||S(r,ne),M(P(),ne)},[r,S,M,P]),G=v.useCallback(function(ne){E==null||E(r,ne),B()},[r,B,E]),K=v.useCallback(function(){L(P(),[i.absX+i.width/2,i.absY])},[L,P,i]),te=v.useCallback(function(){B()},[B]);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":R?R(r):void 0,"aria-labelledby":$?$(r):void 0,"aria-describedby":O?O(r):void 0,"aria-disabled":D?D(r):void 0,"aria-hidden":I?I(r):void 0,onMouseEnter:C?q:void 0,onMouseMove:C?H:void 0,onMouseLeave:C?G:void 0,onClick:C?U: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(Us,{x:d,y:f,textAnchor:m,dominantBaseline:"central",fillOpacity:u,style:$t({},j.labels.text,{pointerEvents:"none",fill:c}),children:_})]})},_pe=["color","label"],Cpe=function(e){var t=e.color,n=e.label,r=la(e,_pe);return b.jsx(kv,{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:Cpe,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:wpe,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(),vpe(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"&&(vw=window.devicePixelRatio)!=null?vw:1}),jT=function(e,t,n,r,i,a){return xc(r,{all:e.map(t),min:0,max:0},i,a).padding(n)},NT=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 PT(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 Spe=["layout","width","height","padding","innerPadding","valueScale","indexScale","hiddenIds"],y1=function(e,t){return e>t},LT=function(e,t){return e<t},FT=function(e,t){return Array.from(" ".repeat(t-e),function(n,r){return e+r})},Tpe=function(e){return y1(e,0)?0:e},kpe=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?LT:y1,g=i.map(Lh),y=[];return d.forEach(function(_,w){return FT(0,f.domain().length).forEach(function(C){var x,S,E,k=Fh(i[C][_]),T=k[0],R=k[1],$=s(i[C]),O=((x=f($))!=null?x:0)+t*w+u*w,D=m(S=R,0)?(E=h(S))!=null?E:0:r,I=function(A,M){var L;return m(A,0)?r-M:((L=h(A))!=null?L:0)-r}(R,D),j={id:_,value:T===null?T:R,formattedValue:a(R),hidden:!1,index:C,indexValue:$,data:g[C]};y.push({key:_+"."+j.indexValue,index:y.length,data:j,x:O,y:D,absX:p.left+O,absY:p.top+D,width:t,height:I,color:o(j),label:l(j)})})}),y},$pe=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?LT:y1,g=i.map(Lh),y=[];return c.forEach(function(_,w){return FT(0,h.domain().length).forEach(function(C){var x,S,E,k=Fh(i[C][_]),T=k[0],R=k[1],$=o(i[C]),O=m(S=R,0)?r:(E=f(S))!=null?E:0,D=((x=h($))!=null?x:0)+t*w+d*w,I=function(A,M){var L;return m(A,0)?((L=f(A))!=null?L:0)-r:r-M}(R,O),j={id:_,value:T===null?T:R,formattedValue:a(R),hidden:!1,index:C,indexValue:$,data:g[C]};y.push({key:_+"."+j.indexValue,index:y.length,data:j,x:O,y:D,absX:p.left+O,absY:p.top+D,width:I,height:t,color:s(j),label:l(j)})})}),y},Epe=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,Spe),g=m.keys.filter(function(M){return!p.includes(M)}),y=NT(m.data,g),_=i==="vertical"?["y","x",a]:["x","y",o],w=_[0],C=_[1],x=_[2],S=jT(y,m.getIndex,l,f,x,C),E=d.min==="auto"?Tpe:function(M){return M},k=y.reduce(function(M,L){return[].concat(M,g.map(function(B){return L[B]}))},[]).filter(Boolean),T=E(Math.min.apply(Math,k)),R=(r=Math.max.apply(Math,k),isFinite(r)?r:0),$=xc(d,{all:k,min:T,max:R},w==="x"?a:o,w),O=i==="vertical"?[S,$]:[$,S],D=O[0],I=O[1],j=(S.bandwidth()-u*(g.length-1))/g.length,A=[$t({},m,{data:y,keys:g,innerPadding:u,xScale:D,yScale:I}),j,(t=d.reverse)!=null&&t,(n=$(0))!=null?n:0];return{xScale:D,yScale:I,bars:j>0?i==="vertical"?kpe.apply(void 0,A):$pe.apply(void 0,A):[]}},Mpe=["data","layout","width","height","padding","valueScale","indexScale","hiddenIds"],BT=function(e){var t;return e.some(Array.isArray)?BT((t=[]).concat.apply(t,e)):e},Ope=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(R){return u(R[n?0:1])}(_))!=null?y:0)+.5*s,x=function(R,$){var O;return((O=u(R[n?1:0]))!=null?O: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},Ape=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(R){return c(R[n?1:0])}(_))!=null?y:0)+.5*s,x=function(R,$){var O;return((O=c(R[n?0:1]))!=null?O: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},Rpe=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,Mpe),p=h.keys.filter(function(j){return!f.includes(j)}),m=YQ().keys(p).offset(GQ)(NT(r,p)),g=i==="vertical"?["y","x",a]:["x","y",o],y=g[0],_=g[1],w=g[2],C=jT(r,h.getIndex,l,u,w,_),x=(n=BT(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],R=T[0],$=T[1],O=h.innerPadding>0?h.innerPadding:0,D=C.bandwidth(),I=[$t({},h,{innerPadding:O,stackedData:m,xScale:R,yScale:$}),D,(t=c.reverse)!=null&&t];return{xScale:R,yScale:$,bars:D>0?i==="vertical"?Ope.apply(void 0,I):Ape.apply(void 0,I):[]}},Dpe=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=Y5(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)},bw=function(e,t,n){var r=e.get(t)||0;e.set(t,r+n)},Ipe=function(e,t,n){var r=e.get(t)||0;e.set(t,r+(n>0?n:0))},jpe=function(e,t,n){var r=e.get(t)||0;e.set(t,Math.max(r,Number(n)))},Npe=function(e,t){var n=e.get(t)||0;e.set(t,n+1)},zT=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,R=e.height,$=e.padding,O=$===void 0?Ht.padding:$,D=e.innerPadding,I=D===void 0?Ht.innerPadding:D,j=e.valueScale,A=j===void 0?Ht.valueScale:j,M=e.indexScale,L=M===void 0?Ht.indexScale:M,B=e.initialHiddenIds,P=B===void 0?Ht.initialHiddenIds:B,U=e.enableLabel,H=U===void 0?Ht.enableLabel:U,q=e.labelSkipWidth,G=q===void 0?Ht.labelSkipWidth:q,K=e.labelSkipHeight,te=K===void 0?Ht.labelSkipHeight:K,ne=e.legends,W=ne===void 0?Ht.legends:ne,F=e.legendLabel,z=e.totalsOffset,V=z===void 0?Ht.totalsOffset:z,N=v.useState(P??[]),ee=N[0],Q=N[1],Z=v.useCallback(function(ke){Q(function(De){return De.indexOf(ke)>-1?De.filter(function(at){return at!==ke}):[].concat(De,[ke])})},[]),se=gi(r),X=gi(s),J=gi(c),ie=bs(u),oe=Ft(),ge=f1(f,p),de=gr(g,oe),ue=gr(_,oe),Se=(C==="grouped"?Epe:Rpe)({layout:S,data:E,getIndex:se,keys:a,width:T,height:R,getColor:ge,padding:O,innerPadding:I,valueScale:A,indexScale:L,hiddenIds:ee,formatValue:ie,getTooltipLabel:J,margin:k}),le=Se.bars,fe=Se.xScale,we=Se.yScale,Ge=v.useMemo(function(){return le.filter(function(ke){return ke.data.value!==null}).map(function(ke,De){return $t({},ke,{index:De})})},[le]),_e=v.useCallback(function(ke){var De=ke.width,at=ke.height;return!!H&&!(G>0&&De<G)&&!(te>0&&at<te)},[H,G,te]),ye=v.useMemo(function(){return a.map(function(ke){var De=le.find(function(at){return at.data.id===ke});return $t({},De,{data:$t({id:ke},De==null?void 0:De.data,{hidden:ee.includes(ke)})})})},[ee,a,le]),Pe=(t=A.reverse)!=null&&t,Ze=v.useMemo(function(){return W.map(function(ke){return[ke,Dpe({bars:ke.dataFrom==="keys"?ye:le,direction:ke.direction,from:ke.dataFrom,groupMode:C,layout:S,legendLabel:F,reverse:Pe})]})},[W,ye,le,C,S,F,Pe]),_t=v.useMemo(function(){return function(ke,De,at,Ue,mt,ut,Rt){Ue===void 0&&(Ue=Ht.layout),mt===void 0&&(mt=Ht.groupMode);var Xe=[];if(ke.length===0)return Xe;var Le=new Map,Ve=ke[0].width,et=ke[0].height;if(mt==="stacked"){var Fe=new Map;ke.forEach(function(ot){var Ne=ot.data,Me=Ne.indexValue,Ye=Ne.value;bw(Le,Me,Number(Ye)),Ipe(Fe,Me,Number(Ye))}),Fe.forEach(function(ot,Ne){var Me,Ye,xt,nt=Le.get(Ne)||0;Ue==="vertical"?(Me=De(Ne),Ye=at(ot),xt=at(ot/2)):(Me=De(ot),Ye=at(Ne),xt=De(ot/2)),Me+=Ue==="vertical"?Ve/2:ut,Ye+=Ue==="vertical"?-ut:et/2,Xe.push({key:"total_"+Ne,x:Me,y:Ye,value:nt,formattedValue:Rt(nt),animationOffset:xt})})}else if(mt==="grouped"){var tt=new Map,vt=new Map;ke.forEach(function(ot){var Ne=ot.data,Me=Ne.indexValue,Ye=Ne.value;bw(Le,Me,Number(Ye)),jpe(tt,Me,Number(Ye)),Npe(vt,Me)}),tt.forEach(function(ot,Ne){var Me,Ye,xt,nt=Le.get(Ne)||0,bt=vt.get(Ne);Ue==="vertical"?(Me=De(Ne),Ye=at(ot),xt=at(ot/2)):(Me=De(ot),Ye=at(Ne),xt=De(ot/2)),Me+=Ue==="vertical"?bt*Ve/2:ut,Ye+=Ue==="vertical"?-ut:bt*et/2,Xe.push({key:"total_"+Ne,x:Me,y:Ye,value:nt,formattedValue:Rt(nt),animationOffset:xt})})}return Xe}(le,fe,we,S,C,V,ie)},[le,fe,we,S,C,V,ie]);return{bars:le,barsWithValue:Ge,xScale:fe,yScale:we,getIndex:se,getLabel:X,getTooltipLabel:J,formatValue:ie,getColor:ge,getBorderColor:de,getLabelColor:ue,shouldRenderBarLabel:_e,hiddenIds:ee,toggleSerie:Z,legendsWithData:Ze,barTotals:_t}},Ppe=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)})},Lpe=["isInteractive","animate","motionConfig","theme","renderWrapper"],Fpe=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,R=e.layers,$=R===void 0?Ut.layers:R,O=e.barComponent,D=O===void 0?Ut.barComponent:O,I=e.enableLabel,j=I===void 0?Ut.enableLabel:I,A=e.label,M=e.labelSkipWidth,L=M===void 0?Ut.labelSkipWidth:M,B=e.labelSkipHeight,P=B===void 0?Ut.labelSkipHeight:B,U=e.labelTextColor,H=e.labelPosition,q=H===void 0?Ut.labelPosition:H,G=e.labelOffset,K=G===void 0?Ut.labelOffset:G,te=e.markers,ne=te===void 0?Ut.markers:te,W=e.colorBy,F=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,Z=Q===void 0?Ut.borderRadius:Q,se=e.borderWidth,X=se===void 0?Ut.borderWidth:se,J=e.borderColor,ie=e.annotations,oe=ie===void 0?Ut.annotations:ie,ge=e.legendLabel,de=e.tooltipLabel,ue=e.valueFormat,Se=e.isInteractive,le=Se===void 0?Ut.isInteractive:Se,fe=e.tooltip,we=fe===void 0?Ut.tooltip:fe,Ge=e.onClick,_e=e.onMouseEnter,ye=e.onMouseLeave,Pe=e.legends,Ze=e.role,_t=Ze===void 0?Ut.role:Ze,ke=e.ariaLabel,De=e.ariaLabelledBy,at=e.ariaDescribedBy,Ue=e.isFocusable,mt=Ue===void 0?Ut.isFocusable:Ue,ut=e.barAriaLabel,Rt=e.barAriaLabelledBy,Xe=e.barAriaDescribedBy,Le=e.barAriaHidden,Ve=e.barAriaDisabled,et=e.initialHiddenIds,Fe=e.enableTotals,tt=Fe===void 0?Ut.enableTotals:Fe,vt=e.totalsOffset,ot=vt===void 0?Ut.totalsOffset:vt,Ne=e.forwardedRef,Me=Fn(),Ye=Me.animate,xt=Me.config,nt=vo(o,s,a),bt=nt.outerWidth,en=nt.outerHeight,Bt=nt.margin,Wt=nt.innerWidth,fn=nt.innerHeight,Yt=zT({indexBy:r,label:A,tooltipLabel:de,valueFormat:ue,colors:F,colorBy:W,borderColor:J,labelTextColor:U,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:Pe,legendLabel:ge,initialHiddenIds:et,totalsOffset:ot}),$e=Yt.bars,Je=Yt.barsWithValue,St=Yt.xScale,on=Yt.yScale,Gt=Yt.getLabel,Be=Yt.getTooltipLabel,ze=Yt.getBorderColor,ht=Yt.getLabelColor,Dt=Yt.shouldRenderBarLabel,Tt=Yt.toggleSerie,Qe=Yt.legendsWithData,kt=Yt.barTotals,yr=Yt.getColor,ln=PT(c,(t=u==null?void 0:u.reverse)!=null&&t,q,K),cn=so(Je,{keys:function(Ae){return Ae.key},from:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ht(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:{height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0})},enter:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ht(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},update:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:Ae.height,labelColor:ht(Ae),labelOpacity:1},ln(Ae.width,Ae.height),{transform:"translate("+Ae.x+", "+Ae.y+")",width:Ae.width})},leave:function(Ae){return $t({borderColor:ze(Ae),color:Ae.color,height:0,labelColor:ht(Ae),labelOpacity:0},ln(Ae.width,Ae.height),{labelY:0,transform:"translate("+Ae.x+", "+(Ae.y+Ae.height)+")",width:Ae.width},c==="vertical"?{}:$t({},ln(Ae.width,Ae.height),{labelX:0,height:Ae.height,transform:"translate("+Ae.x+", "+Ae.y+")",width:0}))},config:xt,immediate:!Ye,initial:Ye?void 0:null}),Rn=v.useMemo(function(){return{borderRadius:Z,borderWidth:X,enableLabel:j,isInteractive:le,labelSkipWidth:L,labelSkipHeight:P,onClick:Ge,onMouseEnter:_e,onMouseLeave:ye,getTooltipLabel:Be,tooltip:we,isFocusable:mt,ariaLabel:ut,ariaLabelledBy:Rt,ariaDescribedBy:Xe,ariaHidden:Le,ariaDisabled:Ve}},[Z,X,j,Be,le,P,L,Ge,_e,ye,we,mt,ut,Rt,Xe,Le,Ve]),ca=u1(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(bpe,{bars:$e,annotations:oe},"annotations")),$.includes("axes")&&(Ct.axes=b.jsx(yT,{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(Ae,Rr){return v.createElement(D,$t({},Rn,{bar:Rr,style:Ae,shouldRenderLabel:Dt(Rr),label:Gt(Rr.data)}))})},"bars")),$.includes("grid")&&(Ct.grid=b.jsx(xT,{width:Wt,height:fn,xScale:x?St:null,yScale:E?on:null,xValues:k,yValues:T},"grid")),$.includes("legends")&&(Ct.legends=b.jsx(ype,{width:Wt,height:fn,legends:Qe,toggleSerie:Tt},"legends")),$.includes("markers")&&(Ct.markers=b.jsx(H5,{markers:ne,width:Wt,height:fn,xScale:St,yScale:on},"markers")),$.includes("totals")&&tt&&(Ct.totals=b.jsx(Ppe,{data:kt,springConfig:xt,animate:Ye,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:we,getTooltipLabel:Be,onClick:Ge,onMouseEnter:_e,onMouseLeave:ye,getColor:yr});return b.jsx(jh,{width:bt,height:en,margin:Bt,defs:ca,role:_t,ariaLabel:ke,ariaLabelledBy:De,ariaDescribedBy:at,isFocusable:mt,ref:Ne,children:$.map(function(Ae,Rr){var da;return typeof Ae=="function"?b.jsx(v.Fragment,{children:v.createElement(Ae,ua)},Rr):(da=Ct==null?void 0:Ct[Ae])!=null?da:null})})},Bpe=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,Lpe);return b.jsx(mo,{animate:a,isInteractive:r,motionConfig:s,renderWrapper:c,theme:l,children:b.jsx(Fpe,$t({},u,{isInteractive:r,forwardedRef:t}))})}),zpe=["isInteractive","renderWrapper","theme"],tm=function(e,t,n,r){return e.find(function(i){return Z5(i.x+t.left,i.y+t.top,i.width,i.height,n,r)})},Wpe=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,R=e.labelPosition,$=R===void 0?un.labelPosition:R,O=e.labelOffset,D=O===void 0?un.labelOffset:O,I=e.layers,j=I===void 0?un.layers:I,A=e.renderBar,M=A===void 0?un.renderBar:A,L=e.enableLabel,B=L===void 0?un.enableLabel:L,P=e.label,U=e.labelSkipWidth,H=U===void 0?un.labelSkipWidth:U,q=e.labelSkipHeight,G=q===void 0?un.labelSkipHeight:q,K=e.labelTextColor,te=e.colorBy,ne=e.colors,W=e.borderRadius,F=W===void 0?un.borderRadius:W,z=e.borderWidth,V=z===void 0?un.borderWidth:z,N=e.borderColor,ee=e.annotations,Q=ee===void 0?un.annotations:ee,Z=e.legendLabel,se=e.tooltipLabel,X=e.valueFormat,J=e.isInteractive,ie=J===void 0?un.isInteractive:J,oe=e.tooltip,ge=oe===void 0?un.tooltip:oe,de=e.onClick,ue=e.onMouseEnter,Se=e.onMouseLeave,le=e.legends,fe=e.pixelRatio,we=fe===void 0?un.pixelRatio:fe,Ge=e.role,_e=e.forwardedRef,ye=e.enableTotals,Pe=ye===void 0?un.enableTotals:ye,Ze=e.totalsOffset,_t=Ze===void 0?un.totalsOffset:Ze,ke=v.useRef(null),De=Ft(),at=vo(o,s,a),Ue=at.margin,mt=at.innerWidth,ut=at.innerHeight,Rt=at.outerWidth,Xe=at.outerHeight,Le=zT({indexBy:r,label:P,tooltipLabel:se,valueFormat:X,colors:ne,colorBy:te,borderColor:N,labelTextColor:K,groupMode:l,layout:c,data:n,keys:i,margin:Ue,width:mt,height:ut,padding:f,innerPadding:h,valueScale:u,indexScale:d,enableLabel:B,labelSkipWidth:H,labelSkipHeight:G,legends:le,legendLabel:Z,totalsOffset:_t}),Ve=Le.bars,et=Le.barsWithValue,Fe=Le.xScale,tt=Le.yScale,vt=Le.getLabel,ot=Le.getTooltipLabel,Ne=Le.getBorderColor,Me=Le.getLabelColor,Ye=Le.shouldRenderBarLabel,xt=Le.legendsWithData,nt=Le.barTotals,bt=Le.getColor,en=Ei(),Bt=en.showTooltipFromEvent,Wt=en.hideTooltip,fn=cpe({annotations:IT({data:Ve,annotations:Q,getPosition:function(Be){return{x:Be.x,y:Be.y}},getDimensions:function(Be){var ze=Be.width,ht=Be.height;return{width:ze,height:ht,size:Math.max(ze,ht)}}})}),Yt=v.useMemo(function(){return{borderRadius:F,borderWidth:V,isInteractive:ie,isFocusable:!1,labelSkipWidth:H,labelSkipHeight:G,margin:Ue,width:o,height:s,innerWidth:mt,innerHeight:ut,bars:Ve,legendData:xt,enableLabel:B,xScale:Fe,yScale:tt,tooltip:ge,getTooltipLabel:ot,onClick:de,onMouseEnter:ue,onMouseLeave:Se,getColor:bt}},[F,V,ie,H,G,Ue,o,s,mt,ut,Ve,xt,B,Fe,tt,ge,ot,de,ue,Se,bt]),$e=bs(X),Je=PT(c,(t=u==null?void 0:u.reverse)!=null&&t,$,D);v.useEffect(function(){if(ke.current){ke.current.width=Rt*we,ke.current.height=Xe*we;var Be=ke.current.getContext("2d");Be.scale(we,we),Be.fillStyle=De.background,Be.fillRect(0,0,Rt,Xe),Be.translate(Ue.left,Ue.top),j.forEach(function(ze){ze==="grid"?typeof De.grid.line.strokeWidth=="number"&&De.grid.line.strokeWidth>0&&(Be.lineWidth=De.grid.line.strokeWidth,Be.strokeStyle=De.grid.line.stroke,x&&zd(Be,{width:mt,height:ut,scale:Fe,axis:"x",values:k}),E&&zd(Be,{width:mt,height:ut,scale:tt,axis:"y",values:T})):ze==="axes"?wT(Be,{xScale:Fe,yScale:tt,width:mt,height:ut,top:p,right:m,bottom:y,left:w,theme:De}):ze==="bars"?(eo(Be,De.text),et.forEach(function(ht){M(Be,$t({bar:ht,borderColor:Ne(ht),borderRadius:F,borderWidth:V,label:vt(ht.data),shouldRenderLabel:Ye(ht),labelStyle:$t({},De.labels.text,{fill:Me(ht)})},Je(ht.width,ht.height)))})):ze==="legends"?xt.forEach(function(ht){var Dt=ht[0],Tt=ht[1];g1(Be,$t({},Dt,{data:Tt,containerWidth:mt,containerHeight:ut,theme:De}))}):ze==="annotations"?gpe(Be,{annotations:fn,theme:De}):ze==="totals"&&Pe?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)})}(Be,nt,De,c):typeof ze=="function"&&ze(Be,Yt)}),Be.save()}},[y,w,m,p,et,F,V,fn,x,E,Ne,vt,Me,k,T,l,s,ut,mt,Yt,j,c,xt,Ue.left,Ue.top,Xe,Rt,we,M,Fe,tt,Ye,De,o,nt,Pe,$e,Je]);var St=v.useCallback(function(Be){if(Ve&&ke.current){var ze=Jo(ke.current,Be),ht=ze[0],Dt=ze[1],Tt=tm(Ve,Ue,ht,Dt);Tt!==void 0?(Bt(v.createElement(ge,$t({},Tt.data,{color:Tt.color,label:Tt.label,value:Number(Tt.data.value)})),Be),Be.type==="mouseenter"&&(ue==null||ue(Tt.data,Be))):Wt()}},[Wt,Ue,ue,Ve,Bt,ge]),on=v.useCallback(function(Be){if(Ve&&ke.current){Wt();var ze=Jo(ke.current,Be),ht=ze[0],Dt=ze[1],Tt=tm(Ve,Ue,ht,Dt);Tt&&(Se==null||Se(Tt.data,Be))}},[Wt,Ue,Se,Ve]),Gt=v.useCallback(function(Be){if(Ve&&ke.current){var ze=Jo(ke.current,Be),ht=ze[0],Dt=ze[1],Tt=tm(Ve,Ue,ht,Dt);Tt!==void 0&&(de==null||de($t({},Tt.data,{color:Tt.color}),Be))}},[Ue,de,Ve]);return b.jsx("canvas",{ref:d1(ke,_e),width:Rt*we,height:Xe*we,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:Ge})},Upe=v.forwardRef(function(e,t){var n=e.isInteractive,r=e.renderWrapper,i=e.theme,a=la(e,zpe);return b.jsx(mo,{isInteractive:n,renderWrapper:r,theme:i,animate:!1,children:b.jsx(Wpe,$t({},a,{isInteractive:n,forwardedRef:t}))})}),Hpe=["defaultWidth","defaultHeight","onResize","debounceResize"],Vpe=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(Bpe,$t({},o,{width:l,height:c,ref:t}))}})}),qpe=["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,qpe);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(Upe,$t({},o,{width:l,height:c,ref:t}))}})});exports.AbortError=Rm;exports.AbstractModalHeader=o0;exports.AggregateErrors=hD;exports.Alert=Z0;exports.ApiWebSocketContext=AD;exports.ApprovalState=f7;exports.Arg=Fu;exports.AuthContext=af;exports.Backdrop=tS;exports.BaseModal=V_;exports.BootstrapModalManager=q_;exports.Button=Wg;exports.CheckInput=FC;exports.Col=Ug;exports.ConfirmContext=p4;exports.ConsoleLogger=Dm;exports.ContextButton=gf;exports.CustomSelectInput=zC;exports.CustomSelectInput$1=Nm;exports.DelegationContext=k4;exports.DisabledTransportError=uD;exports.Documents=wz;exports.Dropdown=O0;exports.Dropdown$1=as;exports.DropdownDivider=Pm;exports.DropdownItem=Ma;exports.DropdownPicker=WC;exports.DropdownToggle=M0;exports.ENTERED=Fi;exports.ENTERING=ci;exports.EXITED=Pi;exports.EXITING=Yu;exports.FaMinus=rI;exports.FaPlus=iI;exports.FaSearch=aI;exports.Fade=Zi;exports.FailedToNegotiateWithServerError=fD;exports.FailedToStartTransportError=dD;exports.Fe=d7;exports.FileExtensionIcon=V3;exports.FloatingLabelInput=ks;exports.Form=Kn;exports.FormCheckInput=ef;exports.FormControl=R_;exports.FormDisabledContext=jC;exports.FormSelect=e0;exports.HelmetContext=IC;exports.HookFormCheckInput=XC;exports.HookFormNumericTextInput=JC;exports.HookFormSelectInput=k0;exports.HookFormTextAreaInput=$0;exports.HookFormTextInput=La;exports.HtmlTooltip=R4;exports.HttpError=sD;exports.HubConnection=_0;exports.IconButton=sa;exports.InputAnchorContainer=vf;exports.InvalidFeedback=oo;exports.ListGroup=U_;exports.ListGroupItem=tf;exports.LoadingContext=Oc;exports.LoginState=S4;exports.LuminusComponentsContext=Qt;exports.MdCheck=eO;exports.MdCircle=Q8;exports.MdClear=Cs;exports.MdOutlineAddCircleOutline=uO;exports.MdOutlineArrowOutward=tO;exports.MdOutlineCallMade=lO;exports.MdOutlineCameraAlt=gO;exports.MdOutlineChevronRight=yO;exports.MdOutlineClose=f4;exports.MdOutlineDelete=u4;exports.MdOutlineEdit=d4;exports.MdOutlineExpand=rO;exports.MdOutlineFileUpload=hO;exports.MdOutlineKeyboardArrowLeft=pO;exports.MdOutlineKeyboardArrowRight=mO;exports.MdOutlineMenu=xO;exports.MdOutlineMessage=cO;exports.MdOutlinePhotoLibrary=vO;exports.MdOutlineSource=aO;exports.MdOutlineStar=CO;exports.MdOutlineSubdirectoryArrowRight=_O;exports.MdSave=J8;exports.MdSaveAs=X8;exports.MdSearch=K8;exports.Me=Bue;exports.MiniDetailWrapper=bf;exports.Modal=Vn;exports.ModalContext=i0;exports.NoInputContainer=S0;exports.NullLogger=dd;exports.NumericFormat=KC;exports.OverlayTrigger=s4;exports.PageContainer=Vz;exports.PiPushPinBold=UB;exports.PiPushPinSlashBold=HB;exports.Platform=kr;exports.PrimaryButton=Ya;exports.PromptContext=m4;exports.PropTypes=xe;exports.ResponsiveContextDropdown=eS;exports.ResponsiveContextDropdownItem=V0;exports.RowLabelInput=ki;exports.ShortcutLinksContext=MW;exports.SideContentBar=q3;exports.SimpleDropdownToggle=E0;exports.SimplePicker=kf;exports.SimpleTooltip=u0;exports.Spinner=l0;exports.TextInput=BC;exports.TextMessageFormat=ur;exports.TimeoutError=lD;exports.Tooltip=a4;exports.TransitionWrapper=Pg;exports.Typography=mn;exports.UnsupportedTransportError=cD;exports.UserContext=T4;exports.Xe=Vpe;exports.ZodIssueCode=me;exports.a=q0;exports.addLeadingZeros=Lt;exports.addMilliseconds=xw;exports.arrayType=kC;exports.atobUtf8=I4;exports.axios=Jt;exports.buildEmployeeNameString=M7;exports.buildOrgUnitString=O7;exports.buildVehicleNameString=E7;exports.cancelToken=BR;exports.capitalizeFirstLetter=$7;exports.classNames=ce;exports.classes=Im;exports.classes$1=QC;exports.compareDate=D7;exports.compareDateTime=I7;exports.compilerRuntimeExports=Re;exports.constructFrom=bi;exports.context=Jd;exports.createLogger=vD;exports.differenceInCalendarDays=kw;exports.dist=Y0;exports.divWithClassName=Lg;exports.extractErrorsFromBlobResponse=M4;exports.extractErrorsFromResponse=of;exports.extractFilename=F4;exports.extractPermissionsFromResponse=A4;exports.fixNameIdNulls=$4;exports.format=Dg;exports.formatDate=T7;exports.formatDateTime=k7;exports.formatFileSize=os;exports.generateApiPath=V4;exports.getChildRef=xs;exports.getDataDetail=NC;exports.getDateString=B7;exports.getDaysDifference=j7;exports.getFirstDayOfMonth=P4;exports.getFirstDayOfOffsetMonth=N7;exports.getFirstDayOfYear=L7;exports.getGlobalThis=CD;exports.getLastDayOfMonth=L4;exports.getLastDayOfOffsetMonth=P7;exports.getLastDayOfYear=F7;exports.getSharedManager=Y_;exports.getTimezoneOffsetInMilliseconds=im;exports.getUserAgentHeader=PC;exports.hasOnlyNullValues=E4;exports.hookFormSetNull=W4;exports.hookFormSetNulls=U4;exports.hookFormSetServerErrors=O4;exports.isArrayBuffer=fs;exports.isExtensionOpenable=z4;exports.isFileOpenable=B4;exports.isISODate=j4;exports.isISODateInValidRange=N4;exports.isLeavingWindowInSafari=tU;exports.isPast=Mw;exports.isPrimitive=nd;exports.isSafari=G0;exports.isValidDate=R7;exports.joinStrings=d0;exports.makeDispatch=rU;exports.millisecondsInHour=Hd;exports.millisecondsInMinute=Ag;exports.millisecondsInWeek=Og;exports.msToStartOfNextDay=A7;exports.objectType=hi;exports.once=nS;exports.parseISO=Cc;exports.replaceNullValuesOnlyObjectsWithNulls=h7;exports.saveFile=rd;exports.saveFileFromResponse=U7;exports.secondsInDay=Rg;exports.secondsInHour=ww;exports.secondsInMinute=lk;exports.secondsInMonth=Cw;exports.secondsInQuarter=uk;exports.secondsInWeek=ck;exports.secondsInYear=_w;exports.sendMessage=gD;exports.shortenText=S7;exports.startOfDay=rm;exports.startOfWeek=Qo;exports.stringContains=Cm;exports.stringSearchWithin=sf;exports.stringStartsWith=H4;exports.stringType=x0;exports.style=qi;exports.t=xf;exports.te=ise;exports.toDate=Ln;exports.transitionEndListener=Bw;exports.triggerBrowserReflow=zw;exports.trimIsoDate=jl;exports.truncateText=D4;exports.u=H3;exports.urlfyArray=_m;exports.useAuth=v0;exports.useAxios=jc;exports.useBootstrapBreakpoints=Dw;exports.useBootstrapMinBreakpoint=Iw;exports.useBootstrapPrefix=gt;exports.useClickOutside=MC;exports.useClipboard=DC;exports.useCol=Kw;exports.useConfirm=b0;exports.useCookies=g0;exports.useEventCallback=Gi;exports.useFormControlType=w0;exports.useFormDisabledContext=ao;exports.useGetApiData=RC;exports.useIsomorphicEffect=Jg;exports.useKeyPress=AC;exports.useNotifications=hf;exports.usePermissions=OC;exports.usePrompt=g4;exports.useSwipeable=U0;exports.useWindowSize=Pc;exports.useZodSchemaTypes=mf;exports.z=vl;
|