@akinon/ui-shell-dev 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function eM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var
|
|
1
|
+
function eM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Gae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bd={exports:{}},Bl={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ function eM(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var kv;function pR(){if(kv)return Bl;kv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Bl.Fragment=t,Bl.jsx=n,Bl.jsxs=n,Bl}var Fv;function bR(){return Fv||(Fv=1,bd.exports=pR()),bd.exports}var ge=bR(),r6={exports:{}},i6={exports:{}},yR=i6.exports,Vv;function sa(){return Vv||(Vv=1,(function(e,t){(function(n,r){e.exports=r()})(yR,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",l="minute",c="hour",d="day",f="week",m="month",v="quarter",b="year",y="date",S="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var F=["th","st","nd","rd"],T=B%100;return"["+B+(F[(T-20)%10]||F[T]||F[0])+"]"}},E=function(B,F,T){var j=String(B);return!j||j.length>=F?B:""+Array(F+1-j.length).join(T)+B},O={s:E,z:function(B){var F=-B.utcOffset(),T=Math.abs(F),j=Math.floor(T/60),G=T%60;return(F<=0?"+":"-")+E(j,2,"0")+":"+E(G,2,"0")},m:function B(F,T){if(F.date()<T.date())return-B(T,F);var j=12*(T.year()-F.year())+(T.month()-F.month()),G=F.clone().add(j,m),k=T-G<0,P=F.clone().add(j+(k?-1:1),m);return+(-(j+(T-G)/(k?G-P:P-G))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:m,y:b,w:f,d,D:y,h:c,m:l,s:a,ms:o,Q:v}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},z="en",_={};_[z]=w;var I="$isDayjsObject",A=function(B){return B instanceof q||!(!B||!B[I])},N=function B(F,T,j){var G;if(!F)return z;if(typeof F=="string"){var k=F.toLowerCase();_[k]&&(G=k),T&&(_[k]=T,G=k);var P=F.split("-");if(!G&&P.length>1)return B(P[0])}else{var U=F.name;_[U]=F,G=U}return!j&&G&&(z=G),G||!j&&z},D=function(B,F){if(A(B))return B.clone();var T=typeof F=="object"?F:{};return T.date=B,T.args=arguments,new q(T)},L=O;L.l=N,L.i=A,L.w=function(B,F){return D(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var q=(function(){function B(T){this.$L=N(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[I]=!0}var F=B.prototype;return F.parse=function(T){this.$d=(function(j){var G=j.date,k=j.utc;if(G===null)return new Date(NaN);if(L.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var P=G.match(x);if(P){var U=P[2]-1||0,V=(P[7]||"0").substring(0,3);return k?new Date(Date.UTC(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)):new Date(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)}}return new Date(G)})(T),this.init()},F.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==S},F.isSame=function(T,j){var G=D(T);return this.startOf(j)<=G&&G<=this.endOf(j)},F.isAfter=function(T,j){return D(T)<this.startOf(j)},F.isBefore=function(T,j){return this.endOf(j)<D(T)},F.$g=function(T,j,G){return L.u(T)?this[j]:this.set(G,T)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(T,j){var G=this,k=!!L.u(j)||j,P=L.p(T),U=function(ce,ye){var ue=L.w(G.$u?Date.UTC(G.$y,ye,ce):new Date(G.$y,ye,ce),G);return k?ue:ue.endOf(d)},V=function(ce,ye){return L.w(G.toDate()[ce].apply(G.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(ye)),G)},R=this.$W,X=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(P){case b:return k?U(1,0):U(31,11);case m:return k?U(1,X):U(0,X+1);case f:var ie=this.$locale().weekStart||0,ee=(R<ie?R+7:R)-ie;return U(k?Y-ee:Y+(6-ee),X);case d:case y:return V(Q+"Hours",0);case c:return V(Q+"Minutes",1);case l:return V(Q+"Seconds",2);case a:return V(Q+"Milliseconds",3);default:return this.clone()}},F.endOf=function(T){return this.startOf(T,!1)},F.$set=function(T,j){var G,k=L.p(T),P="set"+(this.$u?"UTC":""),U=(G={},G[d]=P+"Date",G[y]=P+"Date",G[m]=P+"Month",G[b]=P+"FullYear",G[c]=P+"Hours",G[l]=P+"Minutes",G[a]=P+"Seconds",G[o]=P+"Milliseconds",G)[k],V=k===d?this.$D+(j-this.$W):j;if(k===m||k===b){var R=this.clone().set(y,1);R.$d[U](V),R.init(),this.$d=R.set(y,Math.min(this.$D,R.daysInMonth())).$d}else U&&this.$d[U](V);return this.init(),this},F.set=function(T,j){return this.clone().$set(T,j)},F.get=function(T){return this[L.p(T)]()},F.add=function(T,j){var G,k=this;T=Number(T);var P=L.p(j),U=function(X){var Y=D(k);return L.w(Y.date(Y.date()+Math.round(X*T)),k)};if(P===m)return this.set(m,this.$M+T);if(P===b)return this.set(b,this.$y+T);if(P===d)return U(1);if(P===f)return U(7);var V=(G={},G[l]=r,G[c]=i,G[a]=n,G)[P]||1,R=this.$d.getTime()+T*V;return L.w(R,this)},F.subtract=function(T,j){return this.add(-1*T,j)},F.format=function(T){var j=this,G=this.$locale();if(!this.isValid())return G.invalidDate||S;var k=T||"YYYY-MM-DDTHH:mm:ssZ",P=L.z(this),U=this.$H,V=this.$m,R=this.$M,X=G.weekdays,Y=G.months,Q=G.meridiem,ie=function(ye,ue,se,de){return ye&&(ye[ue]||ye(j,k))||se[ue].slice(0,de)},ee=function(ye){return L.s(U%12||12,ye,"0")},ce=Q||function(ye,ue,se){var de=ye<12?"AM":"PM";return se?de.toLowerCase():de};return k.replace(M,(function(ye,ue){return ue||(function(se){switch(se){case"YY":return String(j.$y).slice(-2);case"YYYY":return L.s(j.$y,4,"0");case"M":return R+1;case"MM":return L.s(R+1,2,"0");case"MMM":return ie(G.monthsShort,R,Y,3);case"MMMM":return ie(Y,R);case"D":return j.$D;case"DD":return L.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return ie(G.weekdaysMin,j.$W,X,2);case"ddd":return ie(G.weekdaysShort,j.$W,X,3);case"dddd":return X[j.$W];case"H":return String(U);case"HH":return L.s(U,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ce(U,V,!0);case"A":return ce(U,V,!1);case"m":return String(V);case"mm":return L.s(V,2,"0");case"s":return String(j.$s);case"ss":return L.s(j.$s,2,"0");case"SSS":return L.s(j.$ms,3,"0");case"Z":return P}return null})(ye)||P.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(T,j,G){var k,P=this,U=L.p(j),V=D(T),R=(V.utcOffset()-this.utcOffset())*r,X=this-V,Y=function(){return L.m(P,V)};switch(U){case b:k=Y()/12;break;case m:k=Y();break;case v:k=Y()/3;break;case f:k=(X-R)/6048e5;break;case d:k=(X-R)/864e5;break;case c:k=X/i;break;case l:k=X/r;break;case a:k=X/n;break;default:k=X}return G?k:L.a(k)},F.daysInMonth=function(){return this.endOf(m).$D},F.$locale=function(){return _[this.$L]},F.locale=function(T,j){if(!T)return this.$L;var G=this.clone(),k=N(T,j,!0);return k&&(G.$L=k),G},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},B})(),H=q.prototype;return D.prototype=H,[["$ms",o],["$s",a],["$m",l],["$H",c],["$W",d],["$M",m],["$y",b],["$D",y]].forEach((function(B){H[B[1]]=function(F){return this.$g(F,B[0],B[1])}})),D.extend=function(B,F){return B.$i||(B(F,q,D),B.$i=!0),D},D.locale=N,D.isDayjs=A,D.unix=function(B){return D(1e3*B)},D.en=_[z],D.Ls=_,D.p={},D}))})(i6)),i6.exports}var SR=r6.exports,Wv;function xR(){return Wv||(Wv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(SR,(function(n){function r(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var i=r(n),o="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},l={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},c={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:o,monthsShort:o,weekStart:6,meridiem:function(d){return d>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(d){return d.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(f){return l[f]})).replace(/،/g,",")},postformat:function(d){return d.replace(/\d/g,(function(f){return a[f]})).replace(/,/g,"،")},ordinal:function(d){return d},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return i.default.locale(c,null,!0),c}))})(r6)),r6.exports}xR();var o6={exports:{}},CR=o6.exports,Uv;function MR(){return Uv||(Uv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(CR,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=r(n),o={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(c,d,f){var m=o[f];return Array.isArray(m)&&(m=m[d?0:1]),m.replace("%d",c)}var l={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(c){return c+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(l,null,!0),l}))})(o6)),o6.exports}MR();var a6={exports:{}},wR=a6.exports,qv;function zR(){return qv||(qv=1,(function(e,t){(function(n,r){e.exports=r()})(wR,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})(a6)),a6.exports}zR();var s6={exports:{}},$R=s6.exports,Gv;function ER(){return Gv||(Gv=1,(function(e,t){(function(n,r){e.exports=r(sa())})($R,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(a){return a+"º"}};return i.default.locale(o,null,!0),o}))})(s6)),s6.exports}ER();var l6={exports:{}},OR=l6.exports,Xv;function _R(){return Xv||(Xv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(OR,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return""+a+(a===1?"er":"")}};return i.default.locale(o,null,!0),o}))})(l6)),l6.exports}_R();var c6={exports:{}},IR=c6.exports,Yv;function RR(){return Yv||(Yv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(IR,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(a){return a+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return i.default.locale(o,null,!0),o}))})(c6)),c6.exports}RR();var u6={exports:{}},TR=u6.exports,Kv;function PR(){return Kv||(Kv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(TR,(function(n){function r(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var i=r(n),o="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),l="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),c="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),d=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function f(y,S,x){var M,w;return x==="m"?S?"минута":"минуту":y+" "+(M=+y,w={mm:S?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[x].split("_"),M%10==1&&M%100!=11?w[0]:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?w[1]:w[2])}var m=function(y,S){return d.test(S)?o[y.month()]:a[y.month()]};m.s=a,m.f=o;var v=function(y,S){return d.test(S)?l[y.month()]:c[y.month()]};v.s=c,v.f=l;var b={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:m,monthsShort:v,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:f,mm:f,h:"час",hh:f,d:"день",dd:f,M:"месяц",MM:f,y:"год",yy:f},ordinal:function(y){return y},meridiem:function(y){return y<4?"ночи":y<12?"утра":y<17?"дня":"вечера"}};return i.default.locale(b,null,!0),b}))})(u6)),u6.exports}PR();var d6={exports:{}},AR=d6.exports,Qv;function NR(){return Qv||(Qv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(AR,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};return i.default.locale(o,null,!0),o}))})(d6)),d6.exports}NR();var DR=sa();const ti=Ai(DR);var f6={exports:{}},jR=f6.exports,Zv;function LR(){return Zv||(Zv=1,(function(e,t){(function(n,r){e.exports=r()})(jR,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var a=i.prototype,l=a.format;o.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,f=(function(m,v){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,y,S){var x=S&&S.toUpperCase();return y||v[S]||n[S]||v[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(M,w,E){return w||E.slice(1)}))}))})(c,d===void 0?{}:d);return l.call(this,f)}}}))})(f6)),f6.exports}var BR=LR();const HR=Ai(BR);var h6={exports:{}},kR=h6.exports,Jv;function FR(){return Jv||(Jv=1,(function(e,t){(function(n,r){e.exports=r()})(kR,(function(){return function(n,r){r.prototype.weekday=function(i){var o=this.$locale().weekStart||0,a=this.$W,l=(a<o?a+7:a)-o;return this.$utils().u(i)?l:this.subtract(l,"day").add(i,"day")}}}))})(h6)),h6.exports}var VR=FR();const WR=Ai(VR);ti.locale("en");ti.extend(HR);ti.extend(WR);const tM={setLocale(e){ti.locale(e)},formatIsoDate:(e,t)=>ti(e).format(t||"L LT"),toIsoDate:e=>{if(e){if(typeof e=="string"){const t=ti(e);return t.isValid()?t.toISOString():void 0}if(ti.isDayjs(e)){const t=e;return t.isValid()?t.toISOString():void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e.toISOString();if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{return t.call(e)}catch(n){console.warn("akidate: failed to convert value with toISOString",n);return}}}},parse:e=>{if(e){if(ti.isDayjs(e)){const t=e;return t.isValid()?t:void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:ti(e);if(typeof e=="string"){const t=ti(e);return t.isValid()?t:void 0}if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{const n=t.call(e),r=ti(n);return r.isValid()?r:void 0}catch(n){console.warn("akidate: failed to parse object with toISOString",n);return}}}}},kt=e=>typeof e=="string",Hl=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},ep=e=>e==null?"":""+e,UR=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},qR=/###/g,tp=e=>e&&e.indexOf("###")>-1?e.replace(qR,"."):e,np=e=>!e||kt(e),Sc=(e,t,n)=>{const r=kt(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(np(e))return{};const o=tp(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return np(e)?{}:{obj:e,k:tp(r[i])}},rp=(e,t,n)=>{const{obj:r,k:i}=Sc(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),l=Sc(e,a,Object);for(;l.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),l=Sc(e,a,Object),l?.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},GR=(e,t,n,r)=>{const{obj:i,k:o}=Sc(e,t,Object);i[o]=i[o]||[],i[o].push(n)},P6=(e,t)=>{const{obj:n,k:r}=Sc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},XR=(e,t,n)=>{const r=P6(e,n);return r!==void 0?r:P6(t,n)},nM=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?kt(e[r])||e[r]instanceof String||kt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):nM(e[r],t[r],n):e[r]=t[r]);return e},ks=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var YR={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const KR=e=>kt(e)?e.replace(/[&<>"'\/]/g,t=>YR[t]):e;class QR{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ZR=[" ",",","?","!",";"],JR=new QR(20),eT=(e,t,n)=>{t=t||"",n=n||"";const r=ZR.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=JR.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},t8=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,l="";for(let c=o;c<r.length;++c)if(c!==o&&(l+=n),l+=r[c],a=i[l],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&c<r.length-1)continue;o+=c-o+1;break}i=a}return i},Ic=e=>e?.replace("_","-"),tT={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class A6{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||tT,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(kt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new A6(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new A6(this.logger,t)}}var Ei=new A6;class b5{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let a=0;a<o;a++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let a=0;a<o;a++)i.apply(i,[t,...n])})}}class ip extends b5{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):kt(r)&&o?l.push(...r.split(o)):l.push(r)));const c=P6(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!a||!kt(r)?c:t8(this.data?.[t]?.[n],r,o)}addResource(t,n,r,i,o={silent:!1}){const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),rp(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const o in r)(kt(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,a={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=P6(this.data,l)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?nM(c,r,o):c={...c,...r},rp(this.data,l,c),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var rM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{t=this.processors[o]?.process(t,n,r,i)??t}),t}};const iM=Symbol("i18next/PATH_KEY");function nT(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===iM?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function n8(e,t){const{[iM]:n}=e(nT());return n.join(t?.keySeparator??".")}const op={},ap=e=>!kt(e)&&typeof e!="boolean"&&typeof e!="number";class N6 extends b5{constructor(t,n={}){super(),UR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ei.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!eT(t,r,i);if(a&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:kt(o)?[o]:o};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(o=d.shift()),t=d.join(i)}return{key:t,namespaces:kt(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=n8(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(t[t.length-1],i),d=c[c.length-1];let f=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const m=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m?.toLowerCase()==="cimode")return v?o?{res:`${d}${f}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${f}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:l;const b=this.resolve(t,i);let y=b?.res;const S=b?.usedKey||l,x=b?.exactUsedKey||l,M=["[object Number]","[object Function]","[object RegExp]"],w=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,O=i.count!==void 0&&!kt(i.count),z=N6.hasDefaultValue(i),_=O?this.pluralResolver.getSuffix(m,i.count,i):"",I=i.ordinal&&O?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",A=O&&!i.ordinal&&i.count===0,N=A&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${_}`]||i[`defaultValue${I}`]||i.defaultValue;let D=y;E&&!y&&z&&(D=N);const L=ap(D),q=Object.prototype.toString.apply(D);if(E&&D&&L&&M.indexOf(q)<0&&!(kt(w)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,D,{...i,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(b.res=H,b.usedParams=this.getUsedParamsDetails(i),b):H}if(a){const H=Array.isArray(D),B=H?[]:{},F=H?x:S;for(const T in D)if(Object.prototype.hasOwnProperty.call(D,T)){const j=`${F}${a}${T}`;z&&!y?B[T]=this.translate(j,{...i,defaultValue:ap(N)?N[T]:void 0,joinArrays:!1,ns:c}):B[T]=this.translate(j,{...i,joinArrays:!1,ns:c}),B[T]===j&&(B[T]=D[T])}y=B}}else if(E&&kt(w)&&Array.isArray(y))y=y.join(w),y&&(y=this.extendTranslation(y,t,i,r));else{let H=!1,B=!1;!this.isValidLookup(y)&&z&&(H=!0,y=N),this.isValidLookup(y)||(B=!0,y=l);const T=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:y,j=z&&N!==y&&this.options.updateMissing;if(B||H||j){if(this.logger.log(j?"updateKey":"missingKey",m,d,l,j?N:y),a){const U=this.resolve(l,{...i,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let U=0;U<k.length;U++)G.push(k[U]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(i.lng||this.language):G.push(i.lng||this.language);const P=(U,V,R)=>{const X=z&&R!==y?R:T;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,V,X,j,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(U,d,V,X,j,i),this.emit("missingKey",U,d,V,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?G.forEach(U=>{const V=this.pluralResolver.getSuffixes(U,i);A&&i[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(R=>{P([U],l+R,i[`defaultValue${R}`]||N)})}):P(G,l,N))}y=this.extendTranslation(y,t,i,b,r),B&&y===l&&this.options.appendNamespaceToMissingKey&&(y=`${d}${f}${l}`),(B||H)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${f}${l}`:l,H?y:void 0,i))}return o?(b.res=y,b.usedParams=this.getUsedParamsDetails(i),b):y}extendTranslation(t,n,r,i,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=kt(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const m=t.match(this.interpolator.nestingRegexp);d=m&&m.length}let f=r.replace&&!kt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),c){const m=t.match(this.interpolator.nestingRegexp),v=m&&m.length;d<v&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...m)=>o?.[0]===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=kt(a)?[a]:a;return t!=null&&l?.length&&r.applyPostProcessor!==!1&&(t=rM.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,o,a,l;return kt(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(c,n),f=d.key;i=f;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const v=n.count!==void 0&&!kt(n.count),b=v&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(kt(n.context)||typeof n.context=="number")&&n.context!=="",S=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(l=x,!op[`${S[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(l)&&(op[`${S[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${S.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(M=>{if(this.isValidLookup(r))return;a=M;const w=[f];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(w,f,M,x,n);else{let O;v&&(O=this.pluralResolver.getSuffix(M,n.count,n));const z=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&O.indexOf(_)===0&&w.push(f+O.replace(_,this.options.pluralSeparator)),w.push(f+O),b&&w.push(f+z)),y){const I=`${f}${this.options.contextSeparator||"_"}${n.context}`;w.push(I),v&&(n.ordinal&&O.indexOf(_)===0&&w.push(I+O.replace(_,this.options.pluralSeparator)),w.push(I+O),b&&w.push(I+z))}}let E;for(;E=w.pop();)this.isValidLookup(r)||(o=E,r=this.getResource(M,x,E,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!kt(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class sp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ei.create("languageUtils")}getScriptPartFromCode(t){if(t=Ic(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ic(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(kt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),kt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return kt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):kt(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}const lp={zero:0,one:1,two:2,few:3,many:4,other:5},cp={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rT{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ei.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Ic(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),cp;if(!t.match(/-|_/))return cp;const c=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(c,n)}return this.pluralRulesCache[o]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>lp[i]-lp[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const up=(e,t,n,r=".",i=!0)=>{let o=XR(e,t,n);return!o&&i&&kt(n)&&(o=t8(e,n,r),o===void 0&&(o=t8(t,n,r))),o},yd=e=>e.replace(/\$/g,"$$$$");class iT{constructor(t={}){this.logger=Ei.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:l,suffixEscaped:c,formatSeparator:d,unescapeSuffix:f,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:S,nestingOptionsSeparator:x,maxReplaces:M,alwaysFormat:w}=t.interpolation;this.escape=n!==void 0?n:KR,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?ks(o):a||"{{",this.suffix=l?ks(l):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=f?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=v?ks(v):b||ks("$t("),this.nestingSuffix=y?ks(y):S||ks(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=M||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=b=>{if(b.indexOf(this.formatSeparator)<0){const M=up(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,r,{...i,...n,interpolationkey:b}):M}const y=b.split(this.formatSeparator),S=y.shift().trim(),x=y.join(this.formatSeparator).trim();return this.format(up(n,c,S,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...i,...n,interpolationkey:S})};this.resetRegExp();const f=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>yd(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?yd(this.escape(b)):yd(b)}].forEach(b=>{for(l=0;o=b.regex.exec(t);){const y=o[1].trim();if(a=d(y),a===void 0)if(typeof f=="function"){const x=f(t,o,i);a=kt(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))a="";else if(m){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),a="";else!kt(a)&&!this.useRawValueToEscape&&(a=ep(a));const S=b.safeValue(a);if(t=t.replace(o[0],S),m?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,a;const l=(c,d)=>{const f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;const m=c.split(new RegExp(`${f}[ ]*{`));let v=`{${m[1]}`;c=m[0],v=this.interpolate(v,a);const b=v.match(/'/g),y=v.match(/"/g);((b?.length??0)%2===0&&!y||y.length%2!==0)&&(v=v.replace(/'/g,'"'));try{a=JSON.parse(v),d&&(a={...d,...a})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,S),`${c}${f}${v}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,c};for(;i=this.nestingRegexp.exec(t);){let c=[];a={...r},a=a.replace&&!kt(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const d=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(d!==-1&&(c=i[1].slice(d).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),i[1]=i[1].slice(0,d)),o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&!kt(o))return o;kt(o)||(o=ep(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c.length&&(o=c.reduce((f,m)=>this.format(f,m,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const oT=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[l,...c]=a.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=d),d==="false"&&(n[f]=!1),d==="true"&&(n[f]=!0),isNaN(d)||(n[f]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},dp=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let l=t[a];return l||(l=e(Ic(r),i),t[a]=l),l(n)}},aT=e=>(t,n,r)=>e(Ic(n),r)(t);class sT{constructor(t={}){this.logger=Ei.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?dp:aT;this.formats={number:r((i,o)=>{const a=new Intl.NumberFormat(i,{...o});return l=>a.format(l)}),currency:r((i,o)=>{const a=new Intl.NumberFormat(i,{...o,style:"currency"});return l=>a.format(l)}),datetime:r((i,o)=>{const a=new Intl.DateTimeFormat(i,{...o});return l=>a.format(l)}),relativetime:r((i,o)=>{const a=new Intl.RelativeTimeFormat(i,{...o});return l=>a.format(l,o.range||"day")}),list:r((i,o)=>{const a=new Intl.ListFormat(i,{...o});return l=>a.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=dp(n)}format(t,n,r,i={}){const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,c)=>{const{formatName:d,formatOptions:f}=oT(c);if(this.formats[d]){let m=l;try{const v=i?.formatParams?.[i.interpolationkey]||{},b=v.locale||v.lng||i.locale||i.lng||r;m=this.formats[d](l,b,{...f,...i,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${d}`);return l},t)}}const lT=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class cT extends b5{constructor(t,n,r,i={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ei.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},c={};return t.forEach(d=>{let f=!0;n.forEach(m=>{const v=`${d}|${m}`;!r.reload&&this.store.hasResourceBundle(d,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?a[v]===void 0&&(a[v]=!0):(this.state[v]=1,f=!1,a[v]===void 0&&(a[v]=!0),o[v]===void 0&&(o[v]=!0),c[m]===void 0&&(c[m]=!0)))}),f||(l[d]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(c=>{GR(c.loaded,[o],a),lT(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const f=c.loaded[d];f.length&&f.forEach(m=>{l[d][m]===void 0&&(l[d][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r,i=0,o=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(d,f)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const d=c(t,n);d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}return}return c(t,n,l)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();kt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),kt(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o,a={},l=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...a,isUpdate:o},d=this.backend.create.bind(this.backend);if(d.length<6)try{let f;d.length===5?f=d(t,n,r,i,c):f=d(t,n,r,i),f&&typeof f.then=="function"?f.then(m=>l(null,m)).catch(l):l(null,f)}catch(f){l(f)}else d(t,n,r,i,l,c)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const fp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),kt(e[1])&&(t.defaultValue=e[1]),kt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),hp=e=>(kt(e.ns)&&(e.ns=[e.ns]),kt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),kt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),w0=()=>{},uT=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Rc extends b5{constructor(t={},n){if(super(),this.options=hp(t),this.services={},this.logger=Ei,this.modules={external:[]},uT(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(kt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=fp();this.options={...r,...this.options,...hp(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ei.init(i(this.modules.logger),this.options):Ei.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=sT;const f=new sp(this.options);this.store=new ip(this.options.resources,this.options);const m=this.services;m.logger=Ei,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new rT(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(d),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new iT(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new cT(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new N6(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=w0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...f)=>this.store[d](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...f)=>(this.store[d](...f),this)});const l=Hl(),c=()=>{const d=(f,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(f,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t,n=w0){let r=n;const i=kt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload?.forEach?.(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=Hl();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=w0),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Hl();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?this.isLanguageChangingTo===t&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),n&&n(l,(...d)=>this.t(...d))},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=kt(l)?l:l&&l[0],d=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(kt(l)?[l]:l);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector?.cacheUserLanguage?.(d)),this.loadResources(d,f=>{o(f,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const i=(o,a,...l)=>{let c;typeof a!="object"?c=this.options.overloadTranslationOptionHandler([o,a].concat(l)):c={...a},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const d=this.options.keySeparator||".";let f;return c.keyPrefix&&Array.isArray(o)?f=o.map(m=>(typeof m=="function"&&(m=n8(m,{...this.options,...a})),`${c.keyPrefix}${d}${m}`)):(typeof o=="function"&&(o=n8(o,{...this.options,...a})),f=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o),this.t(f,c)};return kt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const d=this.services.backendConnector.state[`${l}|${c}`];return d===-1||d===0||d===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=Hl();return this.options.ns?(kt(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Hl();kt(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new sp(fp());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Rc(t,n)}cloneInstance(t={},n=w0){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Rc(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const l=Object.keys(this.store.data).reduce((c,d)=>(c[d]={...this.store.data[d]},c[d]=Object.keys(c[d]).reduce((f,m)=>(f[m]={...c[d][m]},f),c[d]),c),{});o.store=new ip(l,i),o.services.resourceStore=o.store}return o.translator=new N6(o.services,i),o.translator.on("*",(l,...c)=>{o.emit(l,...c)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kr=Rc.createInstance();kr.createInstance=Rc.createInstance;kr.createInstance;kr.dir;kr.init;kr.loadResources;kr.reloadResources;kr.use;kr.changeLanguage;kr.getFixedT;kr.t;kr.exists;kr.setDefaultNamespace;kr.hasLoadedNamespace;kr.loadNamespaces;kr.loadLanguages;const oM="locale";function r8(e){"@babel/helpers - typeof";return r8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r8(e)}function aM(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":r8(XMLHttpRequest))==="object"}function dT(e){return!!e&&typeof e.then=="function"}function fT(e){return dT(e)?e:Promise.resolve(e)}const hT="modulepreload",gT=function(e){return"/"+e},gp={},mT=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");i=c(n.map(d=>{if(d=gT(d),d in gp)return;gp[d]=!0;const f=d.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":hT,f||(v.as="script"),v.crossOrigin="",v.href=d,l&&v.setAttribute("nonce",l),document.head.appendChild(v),f)return new Promise((b,y)=>{v.addEventListener("load",b),v.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mp(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e){var t=bT(e,"string");return Za(t)=="symbol"?t:t+""}function bT(e,t){if(Za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Za(e){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(e)}var ia=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?ia=global.fetch:typeof window<"u"&&window.fetch&&(ia=window.fetch);var Tc;aM()&&(typeof global<"u"&&global.XMLHttpRequest?Tc=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Tc=window.XMLHttpRequest));var D6;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?D6=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(D6=window.ActiveXObject));typeof ia!="function"&&(ia=void 0);if(!ia&&!Tc&&!D6)try{mT(()=>import("./browser-ponyfill-Dm0-nbdp.js").then(e=>e.b),[]).then(function(e){ia=e.default}).catch(function(){})}catch{}var i8=function(t,n){if(n&&Za(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},pp=function(t,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).catch(r)};if(i){var a=i(t,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):ia(t,n).then(o).catch(r)},bp=!1,yT=function(t,n,r,i){t.queryStringParams&&(n=i8(n,t.queryStringParams));var o=vp({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=vp({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},bp?{}:a),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{pp(n,l,i,c)}catch(d){if(!a||Object.keys(a).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(a).forEach(function(f){delete l[f]}),pp(n,l,i,c),bp=!0}catch(f){i(f)}}},ST=function(t,n,r,i){r&&Za(r)==="object"&&(r=i8("",r).slice(1)),t.queryStringParams&&(n=i8(n,t.queryStringParams));try{var o=Tc?new Tc:new D6("MSXML2.XMLHTTP.3.0");o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var l in a)o.setRequestHeader(l,a[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},xT=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},ia&&n.indexOf("file:")!==0)return yT(t,n,r,i);if(aM()||typeof ActiveXObject=="function")return ST(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function g2(e){"@babel/helpers - typeof";return g2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g2(e)}function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(n),!0).forEach(function(r){sM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lM(r.key),r)}}function wT(e,t,n){return t&&MT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sM(e,t,n){return(t=lM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lM(e){var t=zT(e,"string");return g2(t)=="symbol"?t:t+""}function zT(e,t){if(g2(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(g2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $T=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return sM({},r,i||"")},parseLoadPayload:function(n,r){},request:xT,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cM=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};CT(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return wT(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Sd(Sd(Sd({},$T()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);g2(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=fT(c),c.then(function(d){if(!d)return a(null,{});var f=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(f,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(f,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&f&&f.message){var v=f.message.toLowerCase(),b=["failed","fetch","network","load"].find(function(x){return v.indexOf(x)>-1});if(b)return r("failed loading "+n+": "+f.message,!0)}if(f)return r(f,!1);var y,S;try{typeof m.data=="string"?y=a.options.parse(m.data,i,o):y=m.data}catch{S="failed parsing "+n+" to json"}if(S)return r(S,!1);r(null,y)})}},{key:"create",value:function(n,r,i,o,a){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,f=[],m=[];n.forEach(function(v){var b=l.options.addPath;typeof l.options.addPath=="function"&&(b=l.options.addPath(v,r));var y=l.services.interpolator.interpolate(b,{lng:v,ns:r});l.options.request(l.options,y,c,function(S,x){d+=1,f.push(S),m.push(x),d===n.length&&typeof a=="function"&&a(f,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(m){var v=o.toResolveHierarchy(m);v.forEach(function(b){c.indexOf(b)<0&&c.push(b)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return d(f)}),c.forEach(function(f){n.allOptions.ns.forEach(function(m){i.read(f,m,"read",null,null,function(v,b){v&&a.warn("loading namespace ".concat(m," for language ").concat(f," failed"),v),!v&&b&&a.log("loaded namespace ".concat(m," for language ").concat(f),b),i.loaded("".concat(f,"|").concat(m),v,b)})})})}}}])})();cM.type="backend";var xd={exports:{}},qt={};/**
|
|
9
|
+
*/var kv;function pR(){if(kv)return Bl;kv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return Bl.Fragment=t,Bl.jsx=n,Bl.jsxs=n,Bl}var Fv;function bR(){return Fv||(Fv=1,bd.exports=pR()),bd.exports}var ge=bR(),r6={exports:{}},i6={exports:{}},yR=i6.exports,Vv;function sa(){return Vv||(Vv=1,(function(e,t){(function(n,r){e.exports=r()})(yR,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",l="minute",c="hour",d="day",f="week",m="month",v="quarter",b="year",y="date",S="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var F=["th","st","nd","rd"],T=B%100;return"["+B+(F[(T-20)%10]||F[T]||F[0])+"]"}},E=function(B,F,T){var j=String(B);return!j||j.length>=F?B:""+Array(F+1-j.length).join(T)+B},O={s:E,z:function(B){var F=-B.utcOffset(),T=Math.abs(F),j=Math.floor(T/60),G=T%60;return(F<=0?"+":"-")+E(j,2,"0")+":"+E(G,2,"0")},m:function B(F,T){if(F.date()<T.date())return-B(T,F);var j=12*(T.year()-F.year())+(T.month()-F.month()),G=F.clone().add(j,m),k=T-G<0,P=F.clone().add(j+(k?-1:1),m);return+(-(j+(T-G)/(k?G-P:P-G))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:m,y:b,w:f,d,D:y,h:c,m:l,s:a,ms:o,Q:v}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},z="en",_={};_[z]=w;var I="$isDayjsObject",A=function(B){return B instanceof q||!(!B||!B[I])},N=function B(F,T,j){var G;if(!F)return z;if(typeof F=="string"){var k=F.toLowerCase();_[k]&&(G=k),T&&(_[k]=T,G=k);var P=F.split("-");if(!G&&P.length>1)return B(P[0])}else{var U=F.name;_[U]=F,G=U}return!j&&G&&(z=G),G||!j&&z},D=function(B,F){if(A(B))return B.clone();var T=typeof F=="object"?F:{};return T.date=B,T.args=arguments,new q(T)},L=O;L.l=N,L.i=A,L.w=function(B,F){return D(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var q=(function(){function B(T){this.$L=N(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[I]=!0}var F=B.prototype;return F.parse=function(T){this.$d=(function(j){var G=j.date,k=j.utc;if(G===null)return new Date(NaN);if(L.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var P=G.match(x);if(P){var U=P[2]-1||0,V=(P[7]||"0").substring(0,3);return k?new Date(Date.UTC(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)):new Date(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,V)}}return new Date(G)})(T),this.init()},F.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==S},F.isSame=function(T,j){var G=D(T);return this.startOf(j)<=G&&G<=this.endOf(j)},F.isAfter=function(T,j){return D(T)<this.startOf(j)},F.isBefore=function(T,j){return this.endOf(j)<D(T)},F.$g=function(T,j,G){return L.u(T)?this[j]:this.set(G,T)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(T,j){var G=this,k=!!L.u(j)||j,P=L.p(T),U=function(ce,ye){var ue=L.w(G.$u?Date.UTC(G.$y,ye,ce):new Date(G.$y,ye,ce),G);return k?ue:ue.endOf(d)},V=function(ce,ye){return L.w(G.toDate()[ce].apply(G.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(ye)),G)},R=this.$W,X=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(P){case b:return k?U(1,0):U(31,11);case m:return k?U(1,X):U(0,X+1);case f:var ie=this.$locale().weekStart||0,ee=(R<ie?R+7:R)-ie;return U(k?Y-ee:Y+(6-ee),X);case d:case y:return V(Q+"Hours",0);case c:return V(Q+"Minutes",1);case l:return V(Q+"Seconds",2);case a:return V(Q+"Milliseconds",3);default:return this.clone()}},F.endOf=function(T){return this.startOf(T,!1)},F.$set=function(T,j){var G,k=L.p(T),P="set"+(this.$u?"UTC":""),U=(G={},G[d]=P+"Date",G[y]=P+"Date",G[m]=P+"Month",G[b]=P+"FullYear",G[c]=P+"Hours",G[l]=P+"Minutes",G[a]=P+"Seconds",G[o]=P+"Milliseconds",G)[k],V=k===d?this.$D+(j-this.$W):j;if(k===m||k===b){var R=this.clone().set(y,1);R.$d[U](V),R.init(),this.$d=R.set(y,Math.min(this.$D,R.daysInMonth())).$d}else U&&this.$d[U](V);return this.init(),this},F.set=function(T,j){return this.clone().$set(T,j)},F.get=function(T){return this[L.p(T)]()},F.add=function(T,j){var G,k=this;T=Number(T);var P=L.p(j),U=function(X){var Y=D(k);return L.w(Y.date(Y.date()+Math.round(X*T)),k)};if(P===m)return this.set(m,this.$M+T);if(P===b)return this.set(b,this.$y+T);if(P===d)return U(1);if(P===f)return U(7);var V=(G={},G[l]=r,G[c]=i,G[a]=n,G)[P]||1,R=this.$d.getTime()+T*V;return L.w(R,this)},F.subtract=function(T,j){return this.add(-1*T,j)},F.format=function(T){var j=this,G=this.$locale();if(!this.isValid())return G.invalidDate||S;var k=T||"YYYY-MM-DDTHH:mm:ssZ",P=L.z(this),U=this.$H,V=this.$m,R=this.$M,X=G.weekdays,Y=G.months,Q=G.meridiem,ie=function(ye,ue,se,de){return ye&&(ye[ue]||ye(j,k))||se[ue].slice(0,de)},ee=function(ye){return L.s(U%12||12,ye,"0")},ce=Q||function(ye,ue,se){var de=ye<12?"AM":"PM";return se?de.toLowerCase():de};return k.replace(M,(function(ye,ue){return ue||(function(se){switch(se){case"YY":return String(j.$y).slice(-2);case"YYYY":return L.s(j.$y,4,"0");case"M":return R+1;case"MM":return L.s(R+1,2,"0");case"MMM":return ie(G.monthsShort,R,Y,3);case"MMMM":return ie(Y,R);case"D":return j.$D;case"DD":return L.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return ie(G.weekdaysMin,j.$W,X,2);case"ddd":return ie(G.weekdaysShort,j.$W,X,3);case"dddd":return X[j.$W];case"H":return String(U);case"HH":return L.s(U,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return ce(U,V,!0);case"A":return ce(U,V,!1);case"m":return String(V);case"mm":return L.s(V,2,"0");case"s":return String(j.$s);case"ss":return L.s(j.$s,2,"0");case"SSS":return L.s(j.$ms,3,"0");case"Z":return P}return null})(ye)||P.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(T,j,G){var k,P=this,U=L.p(j),V=D(T),R=(V.utcOffset()-this.utcOffset())*r,X=this-V,Y=function(){return L.m(P,V)};switch(U){case b:k=Y()/12;break;case m:k=Y();break;case v:k=Y()/3;break;case f:k=(X-R)/6048e5;break;case d:k=(X-R)/864e5;break;case c:k=X/i;break;case l:k=X/r;break;case a:k=X/n;break;default:k=X}return G?k:L.a(k)},F.daysInMonth=function(){return this.endOf(m).$D},F.$locale=function(){return _[this.$L]},F.locale=function(T,j){if(!T)return this.$L;var G=this.clone(),k=N(T,j,!0);return k&&(G.$L=k),G},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},B})(),H=q.prototype;return D.prototype=H,[["$ms",o],["$s",a],["$m",l],["$H",c],["$W",d],["$M",m],["$y",b],["$D",y]].forEach((function(B){H[B[1]]=function(F){return this.$g(F,B[0],B[1])}})),D.extend=function(B,F){return B.$i||(B(F,q,D),B.$i=!0),D},D.locale=N,D.isDayjs=A,D.unix=function(B){return D(1e3*B)},D.en=_[z],D.Ls=_,D.p={},D}))})(i6)),i6.exports}var SR=r6.exports,Wv;function xR(){return Wv||(Wv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(SR,(function(n){function r(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var i=r(n),o="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),a={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},l={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},c={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:o,monthsShort:o,weekStart:6,meridiem:function(d){return d>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(d){return d.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(f){return l[f]})).replace(/،/g,",")},postformat:function(d){return d.replace(/\d/g,(function(f){return a[f]})).replace(/,/g,"،")},ordinal:function(d){return d},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return i.default.locale(c,null,!0),c}))})(r6)),r6.exports}xR();var o6={exports:{}},CR=o6.exports,Uv;function MR(){return Uv||(Uv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(CR,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=r(n),o={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(c,d,f){var m=o[f];return Array.isArray(m)&&(m=m[d?0:1]),m.replace("%d",c)}var l={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(c){return c+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(l,null,!0),l}))})(o6)),o6.exports}MR();var a6={exports:{}},wR=a6.exports,qv;function zR(){return qv||(qv=1,(function(e,t){(function(n,r){e.exports=r()})(wR,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})(a6)),a6.exports}zR();var s6={exports:{}},$R=s6.exports,Gv;function ER(){return Gv||(Gv=1,(function(e,t){(function(n,r){e.exports=r(sa())})($R,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(a){return a+"º"}};return i.default.locale(o,null,!0),o}))})(s6)),s6.exports}ER();var l6={exports:{}},OR=l6.exports,Xv;function _R(){return Xv||(Xv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(OR,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(a){return""+a+(a===1?"er":"")}};return i.default.locale(o,null,!0),o}))})(l6)),l6.exports}_R();var c6={exports:{}},IR=c6.exports,Yv;function RR(){return Yv||(Yv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(IR,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(a){return a+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return i.default.locale(o,null,!0),o}))})(c6)),c6.exports}RR();var u6={exports:{}},TR=u6.exports,Kv;function PR(){return Kv||(Kv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(TR,(function(n){function r(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var i=r(n),o="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),l="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),c="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),d=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function f(y,S,x){var M,w;return x==="m"?S?"минута":"минуту":y+" "+(M=+y,w={mm:S?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[x].split("_"),M%10==1&&M%100!=11?w[0]:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?w[1]:w[2])}var m=function(y,S){return d.test(S)?o[y.month()]:a[y.month()]};m.s=a,m.f=o;var v=function(y,S){return d.test(S)?l[y.month()]:c[y.month()]};v.s=c,v.f=l;var b={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:m,monthsShort:v,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:f,mm:f,h:"час",hh:f,d:"день",dd:f,M:"месяц",MM:f,y:"год",yy:f},ordinal:function(y){return y},meridiem:function(y){return y<4?"ночи":y<12?"утра":y<17?"дня":"вечера"}};return i.default.locale(b,null,!0),b}))})(u6)),u6.exports}PR();var d6={exports:{}},AR=d6.exports,Qv;function NR(){return Qv||(Qv=1,(function(e,t){(function(n,r){e.exports=r(sa())})(AR,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(a){return a+"."}};return i.default.locale(o,null,!0),o}))})(d6)),d6.exports}NR();var DR=sa();const ti=Ai(DR);var f6={exports:{}},jR=f6.exports,Zv;function LR(){return Zv||(Zv=1,(function(e,t){(function(n,r){e.exports=r()})(jR,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var a=i.prototype,l=a.format;o.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,f=(function(m,v){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,y,S){var x=S&&S.toUpperCase();return y||v[S]||n[S]||v[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(M,w,E){return w||E.slice(1)}))}))})(c,d===void 0?{}:d);return l.call(this,f)}}}))})(f6)),f6.exports}var BR=LR();const HR=Ai(BR);var h6={exports:{}},kR=h6.exports,Jv;function FR(){return Jv||(Jv=1,(function(e,t){(function(n,r){e.exports=r()})(kR,(function(){return function(n,r){r.prototype.weekday=function(i){var o=this.$locale().weekStart||0,a=this.$W,l=(a<o?a+7:a)-o;return this.$utils().u(i)?l:this.subtract(l,"day").add(i,"day")}}}))})(h6)),h6.exports}var VR=FR();const WR=Ai(VR);ti.locale("en");ti.extend(HR);ti.extend(WR);const tM={setLocale(e){ti.locale(e)},formatIsoDate:(e,t)=>ti(e).format(t||"L LT"),toIsoDate:e=>{if(e){if(typeof e=="string"){const t=ti(e);return t.isValid()?t.toISOString():void 0}if(ti.isDayjs(e)){const t=e;return t.isValid()?t.toISOString():void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e.toISOString();if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{return t.call(e)}catch(n){console.warn("akidate: failed to convert value with toISOString",n);return}}}},parse:e=>{if(e){if(ti.isDayjs(e)){const t=e;return t.isValid()?t:void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:ti(e);if(typeof e=="string"){const t=ti(e);return t.isValid()?t:void 0}if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{const n=t.call(e),r=ti(n);return r.isValid()?r:void 0}catch(n){console.warn("akidate: failed to parse object with toISOString",n);return}}}}},kt=e=>typeof e=="string",Hl=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},ep=e=>e==null?"":""+e,UR=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},qR=/###/g,tp=e=>e&&e.indexOf("###")>-1?e.replace(qR,"."):e,np=e=>!e||kt(e),Sc=(e,t,n)=>{const r=kt(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(np(e))return{};const o=tp(r[i]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return np(e)?{}:{obj:e,k:tp(r[i])}},rp=(e,t,n)=>{const{obj:r,k:i}=Sc(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let o=t[t.length-1],a=t.slice(0,t.length-1),l=Sc(e,a,Object);for(;l.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),l=Sc(e,a,Object),l?.obj&&typeof l.obj[`${l.k}.${o}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${o}`]=n},GR=(e,t,n,r)=>{const{obj:i,k:o}=Sc(e,t,Object);i[o]=i[o]||[],i[o].push(n)},P6=(e,t)=>{const{obj:n,k:r}=Sc(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},XR=(e,t,n)=>{const r=P6(e,n);return r!==void 0?r:P6(t,n)},nM=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?kt(e[r])||e[r]instanceof String||kt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):nM(e[r],t[r],n):e[r]=t[r]);return e},ks=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var YR={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const KR=e=>kt(e)?e.replace(/[&<>"'\/]/g,t=>YR[t]):e;class QR{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ZR=[" ",",","?","!",";"],JR=new QR(20),eT=(e,t,n)=>{t=t||"",n=n||"";const r=ZR.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=JR.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},t8=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let i=e;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,l="";for(let c=o;c<r.length;++c)if(c!==o&&(l+=n),l+=r[c],a=i[l],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&c<r.length-1)continue;o+=c-o+1;break}i=a}return i},Ic=e=>e?.replace("_","-"),tT={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class A6{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||tT,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(kt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new A6(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new A6(this.logger,t)}}var Ei=new A6;class b5{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,o])=>{for(let a=0;a<o;a++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let a=0;a<o;a++)i.apply(i,[t,...n])})}}class ip extends b5{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,i={}){const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):kt(r)&&o?l.push(...r.split(o)):l.push(r)));const c=P6(this.data,l);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),c||!a||!kt(r)?c:t8(this.data?.[t]?.[n],r,o)}addResource(t,n,r,i,o={silent:!1}){const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),rp(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r,i={silent:!1}){for(const o in r)(kt(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o,a={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=P6(this.data,l)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?nM(c,r,o):c={...c,...r},rp(this.data,l,c),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var rM={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{t=this.processors[o]?.process(t,n,r,i)??t}),t}};const iM=Symbol("i18next/PATH_KEY");function nT(){const e=[],t=Object.create(null);let n;return t.get=(r,i)=>(n?.revoke?.(),i===iM?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function n8(e,t){const{[iM]:n}=e(nT());return n.join(t?.keySeparator??".")}const op={},ap=e=>!kt(e)&&typeof e!="boolean"&&typeof e!="number";class N6 extends b5{constructor(t,n={}){super(),UR(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ei.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!eT(t,r,i);if(a&&!l){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:kt(o)?[o]:o};const d=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(d[0])>-1)&&(o=d.shift()),t=d.join(i)}return{key:t,namespaces:kt(o)?[o]:o}}translate(t,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=n8(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);const o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(t[t.length-1],i),d=c[c.length-1];let f=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const m=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m?.toLowerCase()==="cimode")return v?o?{res:`${d}${f}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:`${d}${f}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(i)}:l;const b=this.resolve(t,i);let y=b?.res;const S=b?.usedKey||l,x=b?.exactUsedKey||l,M=["[object Number]","[object Function]","[object RegExp]"],w=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,O=i.count!==void 0&&!kt(i.count),z=N6.hasDefaultValue(i),_=O?this.pluralResolver.getSuffix(m,i.count,i):"",I=i.ordinal&&O?this.pluralResolver.getSuffix(m,i.count,{ordinal:!1}):"",A=O&&!i.ordinal&&i.count===0,N=A&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${_}`]||i[`defaultValue${I}`]||i.defaultValue;let D=y;E&&!y&&z&&(D=N);const L=ap(D),q=Object.prototype.toString.apply(D);if(E&&D&&L&&M.indexOf(q)<0&&!(kt(w)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,D,{...i,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(b.res=H,b.usedParams=this.getUsedParamsDetails(i),b):H}if(a){const H=Array.isArray(D),B=H?[]:{},F=H?x:S;for(const T in D)if(Object.prototype.hasOwnProperty.call(D,T)){const j=`${F}${a}${T}`;z&&!y?B[T]=this.translate(j,{...i,defaultValue:ap(N)?N[T]:void 0,joinArrays:!1,ns:c}):B[T]=this.translate(j,{...i,joinArrays:!1,ns:c}),B[T]===j&&(B[T]=D[T])}y=B}}else if(E&&kt(w)&&Array.isArray(y))y=y.join(w),y&&(y=this.extendTranslation(y,t,i,r));else{let H=!1,B=!1;!this.isValidLookup(y)&&z&&(H=!0,y=N),this.isValidLookup(y)||(B=!0,y=l);const T=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:y,j=z&&N!==y&&this.options.updateMissing;if(B||H||j){if(this.logger.log(j?"updateKey":"missingKey",m,d,l,j?N:y),a){const U=this.resolve(l,{...i,keySeparator:!1});U&&U.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let G=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let U=0;U<k.length;U++)G.push(k[U]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(i.lng||this.language):G.push(i.lng||this.language);const P=(U,V,R)=>{const X=z&&R!==y?R:T;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,V,X,j,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(U,d,V,X,j,i),this.emit("missingKey",U,d,V,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?G.forEach(U=>{const V=this.pluralResolver.getSuffixes(U,i);A&&i[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(R=>{P([U],l+R,i[`defaultValue${R}`]||N)})}):P(G,l,N))}y=this.extendTranslation(y,t,i,b,r),B&&y===l&&this.options.appendNamespaceToMissingKey&&(y=`${d}${f}${l}`),(B||H)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${f}${l}`:l,H?y:void 0,i))}return o?(b.res=y,b.usedParams=this.getUsedParamsDetails(i),b):y}extendTranslation(t,n,r,i,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=kt(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const m=t.match(this.interpolator.nestingRegexp);d=m&&m.length}let f=r.replace&&!kt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),c){const m=t.match(this.interpolator.nestingRegexp),v=m&&m.length;d<v&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...m)=>o?.[0]===m[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):this.translate(...m,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=kt(a)?[a]:a;return t!=null&&l?.length&&r.applyPostProcessor!==!1&&(t=rM.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,i,o,a,l;return kt(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const d=this.extractFromKey(c,n),f=d.key;i=f;let m=d.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const v=n.count!==void 0&&!kt(n.count),b=v&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(kt(n.context)||typeof n.context=="number")&&n.context!=="",S=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(l=x,!op[`${S[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(l)&&(op[`${S[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${S.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(M=>{if(this.isValidLookup(r))return;a=M;const w=[f];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(w,f,M,x,n);else{let O;v&&(O=this.pluralResolver.getSuffix(M,n.count,n));const z=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&O.indexOf(_)===0&&w.push(f+O.replace(_,this.options.pluralSeparator)),w.push(f+O),b&&w.push(f+z)),y){const I=`${f}${this.options.contextSeparator||"_"}${n.context}`;w.push(I),v&&(n.ordinal&&O.indexOf(_)===0&&w.push(I+O.replace(_,this.options.pluralSeparator)),w.push(I+O),b&&w.push(I+z))}}let E;for(;E=w.pop();)this.isValidLookup(r)||(o=E,r=this.getResource(M,x,E,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!kt(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class sp{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ei.create("languageUtils")}getScriptPartFromCode(t){if(t=Ic(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ic(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(kt(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(a=>{if(a===o)return a;if(!(a.indexOf("-")<0&&o.indexOf("-")<0)&&(a.indexOf("-")>0&&o.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===o||a.indexOf(o)===0&&o.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),kt(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return kt(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):kt(t)&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}const lp={zero:0,one:1,two:2,few:3,many:4,other:5},cp={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rT{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ei.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Ic(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),cp;if(!t.match(/-|_/))return cp;const c=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(c,n)}return this.pluralRulesCache[o]=a,a}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>lp[i]-lp[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,r={}){const i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const up=(e,t,n,r=".",i=!0)=>{let o=XR(e,t,n);return!o&&i&&kt(n)&&(o=t8(e,n,r),o===void 0&&(o=t8(t,n,r))),o},yd=e=>e.replace(/\$/g,"$$$$");class iT{constructor(t={}){this.logger=Ei.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:l,suffixEscaped:c,formatSeparator:d,unescapeSuffix:f,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:S,nestingOptionsSeparator:x,maxReplaces:M,alwaysFormat:w}=t.interpolation;this.escape=n!==void 0?n:KR,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?ks(o):a||"{{",this.suffix=l?ks(l):c||"}}",this.formatSeparator=d||",",this.unescapePrefix=f?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=v?ks(v):b||ks("$t("),this.nestingSuffix=y?ks(y):S||ks(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=M||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=b=>{if(b.indexOf(this.formatSeparator)<0){const M=up(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,r,{...i,...n,interpolationkey:b}):M}const y=b.split(this.formatSeparator),S=y.shift().trim(),x=y.join(this.formatSeparator).trim();return this.format(up(n,c,S,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...i,...n,interpolationkey:S})};this.resetRegExp();const f=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>yd(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?yd(this.escape(b)):yd(b)}].forEach(b=>{for(l=0;o=b.regex.exec(t);){const y=o[1].trim();if(a=d(y),a===void 0)if(typeof f=="function"){const x=f(t,o,i);a=kt(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))a="";else if(m){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),a="";else!kt(a)&&!this.useRawValueToEscape&&(a=ep(a));const S=b.safeValue(a);if(t=t.replace(o[0],S),m?(b.regex.lastIndex+=a.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,r={}){let i,o,a;const l=(c,d)=>{const f=this.nestingOptionsSeparator;if(c.indexOf(f)<0)return c;const m=c.split(new RegExp(`${f}[ ]*{`));let v=`{${m[1]}`;c=m[0],v=this.interpolate(v,a);const b=v.match(/'/g),y=v.match(/"/g);((b?.length??0)%2===0&&!y||y.length%2!==0)&&(v=v.replace(/'/g,'"'));try{a=JSON.parse(v),d&&(a={...d,...a})}catch(S){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,S),`${c}${f}${v}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,c};for(;i=this.nestingRegexp.exec(t);){let c=[];a={...r},a=a.replace&&!kt(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const d=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(d!==-1&&(c=i[1].slice(d).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),i[1]=i[1].slice(0,d)),o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&!kt(o))return o;kt(o)||(o=ep(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),c.length&&(o=c.reduce((f,m)=>this.format(f,m,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const oT=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[l,...c]=a.split(":"),d=c.join(":").trim().replace(/^'+|'+$/g,""),f=l.trim();n[f]||(n[f]=d),d==="false"&&(n[f]=!1),d==="true"&&(n[f]=!0),isNaN(d)||(n[f]=parseInt(d,10))}})}return{formatName:t,formatOptions:n}},dp=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let l=t[a];return l||(l=e(Ic(r),i),t[a]=l),l(n)}},aT=e=>(t,n,r)=>e(Ic(n),r)(t);class sT{constructor(t={}){this.logger=Ei.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?dp:aT;this.formats={number:r((i,o)=>{const a=new Intl.NumberFormat(i,{...o});return l=>a.format(l)}),currency:r((i,o)=>{const a=new Intl.NumberFormat(i,{...o,style:"currency"});return l=>a.format(l)}),datetime:r((i,o)=>{const a=new Intl.DateTimeFormat(i,{...o});return l=>a.format(l)}),relativetime:r((i,o)=>{const a=new Intl.RelativeTimeFormat(i,{...o});return l=>a.format(l,o.range||"day")}),list:r((i,o)=>{const a=new Intl.ListFormat(i,{...o});return l=>a.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=dp(n)}format(t,n,r,i={}){const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(l=>l.indexOf(")")>-1)){const l=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,l)].join(this.formatSeparator)}return o.reduce((l,c)=>{const{formatName:d,formatOptions:f}=oT(c);if(this.formats[d]){let m=l;try{const v=i?.formatParams?.[i.interpolationkey]||{},b=v.locale||v.lng||i.locale||i.lng||r;m=this.formats[d](l,b,{...f,...i,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${d}`);return l},t)}}const lT=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class cT extends b5{constructor(t,n,r,i={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ei.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},c={};return t.forEach(d=>{let f=!0;n.forEach(m=>{const v=`${d}|${m}`;!r.reload&&this.store.hasResourceBundle(d,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?a[v]===void 0&&(a[v]=!0):(this.state[v]=1,f=!1,a[v]===void 0&&(a[v]=!0),o[v]===void 0&&(o[v]=!0),c[m]===void 0&&(c[m]=!0)))}),f||(l[d]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(c=>{GR(c.loaded,[o],a),lT(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(d=>{l[d]||(l[d]={});const f=c.loaded[d];f.length&&f.forEach(m=>{l[d][m]===void 0&&(l[d][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r,i=0,o=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(d,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(d&&f&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(d,f)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const d=c(t,n);d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}return}return c(t,n,l)}prepareLoading(t,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();kt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),kt(n)&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o,a={},l=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...a,isUpdate:o},d=this.backend.create.bind(this.backend);if(d.length<6)try{let f;d.length===5?f=d(t,n,r,i,c):f=d(t,n,r,i),f&&typeof f.then=="function"?f.then(m=>l(null,m)).catch(l):l(null,f)}catch(f){l(f)}else d(t,n,r,i,l,c)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const fp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),kt(e[1])&&(t.defaultValue=e[1]),kt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),hp=e=>(kt(e.ns)&&(e.ns=[e.ns]),kt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),kt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),w0=()=>{},uT=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class Rc extends b5{constructor(t={},n){if(super(),this.options=hp(t),this.services={},this.logger=Ei,this.modules={external:[]},uT(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(kt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=fp();this.options={...r,...this.options,...hp(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ei.init(i(this.modules.logger),this.options):Ei.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:d=sT;const f=new sp(this.options);this.store=new ip(this.options.resources,this.options);const m=this.services;m.logger=Ei,m.resourceStore=this.store,m.languageUtils=f,m.pluralResolver=new rT(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),d&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(d),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new iT(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new cT(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new N6(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=w0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=(...f)=>this.store[d](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=(...f)=>(this.store[d](...f),this)});const l=Hl(),c=()=>{const d=(f,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(f,m)};if(this.languages&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(t,n=w0){let r=n;const i=kt(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload?.forEach?.(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=Hl();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=w0),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rM.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Hl();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,c)=>{c?this.isLanguageChangingTo===t&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve((...d)=>this.t(...d)),n&&n(l,(...d)=>this.t(...d))},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=kt(l)?l:l&&l[0],d=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(kt(l)?[l]:l);d&&(this.language||i(d),this.translator.language||this.translator.changeLanguage(d),this.services.languageDetector?.cacheUserLanguage?.(d)),this.loadResources(d,f=>{o(f,d)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),r}getFixedT(t,n,r){const i=(o,a,...l)=>{let c;typeof a!="object"?c=this.options.overloadTranslationOptionHandler([o,a].concat(l)):c={...a},c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||i.keyPrefix);const d=this.options.keySeparator||".";let f;return c.keyPrefix&&Array.isArray(o)?f=o.map(m=>(typeof m=="function"&&(m=n8(m,{...this.options,...a})),`${c.keyPrefix}${d}${m}`)):(typeof o=="function"&&(o=n8(o,{...this.options,...a})),f=c.keyPrefix?`${c.keyPrefix}${d}${o}`:o),this.t(f,c)};return kt(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const d=this.services.backendConnector.state[`${l}|${c}`];return d===-1||d===0||d===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=Hl();return this.options.ns?(kt(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Hl();kt(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new sp(fp());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new Rc(t,n)}cloneInstance(t={},n=w0){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Rc(i);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const l=Object.keys(this.store.data).reduce((c,d)=>(c[d]={...this.store.data[d]},c[d]=Object.keys(c[d]).reduce((f,m)=>(f[m]={...c[d][m]},f),c[d]),c),{});o.store=new ip(l,i),o.services.resourceStore=o.store}return o.translator=new N6(o.services,i),o.translator.on("*",(l,...c)=>{o.emit(l,...c)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const kr=Rc.createInstance();kr.createInstance=Rc.createInstance;kr.createInstance;kr.dir;kr.init;kr.loadResources;kr.reloadResources;kr.use;kr.changeLanguage;kr.getFixedT;kr.t;kr.exists;kr.setDefaultNamespace;kr.hasLoadedNamespace;kr.loadNamespaces;kr.loadLanguages;const oM="locale";function r8(e){"@babel/helpers - typeof";return r8=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r8(e)}function aM(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":r8(XMLHttpRequest))==="object"}function dT(e){return!!e&&typeof e.then=="function"}function fT(e){return dT(e)?e:Promise.resolve(e)}const hT="modulepreload",gT=function(e){return"/"+e},gp={},mT=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");i=c(n.map(d=>{if(d=gT(d),d in gp)return;gp[d]=!0;const f=d.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":hT,f||(v.as="script"),v.crossOrigin="",v.href=d,l&&v.setAttribute("nonce",l),document.head.appendChild(v),f)return new Promise((b,y)=>{v.addEventListener("load",b),v.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return i.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mp(Object(n),!0).forEach(function(r){vT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e){var t=bT(e,"string");return Za(t)=="symbol"?t:t+""}function bT(e,t){if(Za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Za(e){"@babel/helpers - typeof";return Za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Za(e)}var ia=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?ia=global.fetch:typeof window<"u"&&window.fetch&&(ia=window.fetch);var Tc;aM()&&(typeof global<"u"&&global.XMLHttpRequest?Tc=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Tc=window.XMLHttpRequest));var D6;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?D6=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(D6=window.ActiveXObject));typeof ia!="function"&&(ia=void 0);if(!ia&&!Tc&&!D6)try{mT(()=>import("./browser-ponyfill-DRqcTMoa.js").then(e=>e.b),[]).then(function(e){ia=e.default}).catch(function(){})}catch{}var i8=function(t,n){if(n&&Za(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},pp=function(t,n,r,i){var o=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(d){r(null,{status:c.status,data:d})}).catch(r)};if(i){var a=i(t,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(o).catch(r):ia(t,n).then(o).catch(r)},bp=!1,yT=function(t,n,r,i){t.queryStringParams&&(n=i8(n,t.queryStringParams));var o=vp({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=vp({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},bp?{}:a),c=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{pp(n,l,i,c)}catch(d){if(!a||Object.keys(a).length===0||!d.message||d.message.indexOf("not implemented")<0)return i(d);try{Object.keys(a).forEach(function(f){delete l[f]}),pp(n,l,i,c),bp=!0}catch(f){i(f)}}},ST=function(t,n,r,i){r&&Za(r)==="object"&&(r=i8("",r).slice(1)),t.queryStringParams&&(n=i8(n,t.queryStringParams));try{var o=Tc?new Tc:new D6("MSXML2.XMLHTTP.3.0");o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=t.customHeaders;if(a=typeof a=="function"?a():a,a)for(var l in a)o.setRequestHeader(l,a[l]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(c){console&&console.log(c)}},xT=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},ia&&n.indexOf("file:")!==0)return yT(t,n,r,i);if(aM()||typeof ActiveXObject=="function")return ST(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function g2(e){"@babel/helpers - typeof";return g2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g2(e)}function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yp(Object(n),!0).forEach(function(r){sM(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lM(r.key),r)}}function wT(e,t,n){return t&&MT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sM(e,t,n){return(t=lM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lM(e){var t=zT(e,"string");return g2(t)=="symbol"?t:t+""}function zT(e,t){if(g2(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(g2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $T=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return sM({},r,i||"")},parseLoadPayload:function(n,r){},request:xT,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},cM=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};CT(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return wT(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Sd(Sd(Sd({},$T()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);g2(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=fT(c),c.then(function(d){if(!d)return a(null,{});var f=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(f,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,l=typeof i=="string"?[i]:i,c=typeof o=="string"?[o]:o,d=this.options.parseLoadPayload(l,c);this.options.request(this.options,n,d,function(f,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&f&&f.message){var v=f.message.toLowerCase(),b=["failed","fetch","network","load"].find(function(x){return v.indexOf(x)>-1});if(b)return r("failed loading "+n+": "+f.message,!0)}if(f)return r(f,!1);var y,S;try{typeof m.data=="string"?y=a.options.parse(m.data,i,o):y=m.data}catch{S="failed parsing "+n+" to json"}if(S)return r(S,!1);r(null,y)})}},{key:"create",value:function(n,r,i,o,a){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,o),d=0,f=[],m=[];n.forEach(function(v){var b=l.options.addPath;typeof l.options.addPath=="function"&&(b=l.options.addPath(v,r));var y=l.services.interpolator.interpolate(b,{lng:v,ns:r});l.options.request(l.options,y,c,function(S,x){d+=1,f.push(S),m.push(x),d===n.length&&typeof a=="function"&&a(f,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(m){var v=o.toResolveHierarchy(m);v.forEach(function(b){c.indexOf(b)<0&&c.push(b)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return d(f)}),c.forEach(function(f){n.allOptions.ns.forEach(function(m){i.read(f,m,"read",null,null,function(v,b){v&&a.warn("loading namespace ".concat(m," for language ").concat(f," failed"),v),!v&&b&&a.log("loaded namespace ".concat(m," for language ").concat(f),b),i.loaded("".concat(f,"|").concat(m),v,b)})})})}}}])})();cM.type="backend";var xd={exports:{}},qt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -64,7 +64,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
`);else if(w._keyframe)y(w);else{var E=m.reduce(function(O,z){var _;return(z==null||(_=z.visit)===null||_===void 0?void 0:_.call(z,O))||O},w);Object.keys(E).forEach(function(O){var z=E[O];if(st(z)==="object"&&z&&(O!=="animationName"||!z._keyframe)&&!YA(z)){var _=!1,I=O.trim(),A=!1;(i||o)&&l?I.startsWith("@")?_=!0:I==="&"?I=Gp("",l,d):I=Gp(O,l,d):i&&!l&&(I==="&"||I==="")&&(I="",A=!0);var N=e(z,n,{root:A,injectHash:_,parentSelectors:[].concat(je(a),[I])}),D=me(N,2),L=D[0],q=D[1];b=Z(Z({},b),q),v+="".concat(I).concat(L)}else{let F=function(T,j){var G=T.replace(/[A-Z]/g,function(P){return"-".concat(P.toLowerCase())}),k=j;!EA[T]&&typeof k=="number"&&k!==0&&(k="".concat(k,"px")),T==="animationName"&&j!==null&&j!==void 0&&j._keyframe&&(y(j),k=j.getName(l)),v+="".concat(G,":").concat(k,";")};var H,B=(H=z?.value)!==null&&H!==void 0?H:z;st(z)==="object"&&z!==null&&z!==void 0&&z[UM]&&Array.isArray(B)?B.forEach(function(T){F(O,T)}):F(O,B)}})}}),i?c&&(v&&(v="@layer ".concat(c.name," {").concat(v,"}")),c.dependencies&&(b["@layer ".concat(c.name)]=c.dependencies.map(function(M){return"@layer ".concat(M,", ").concat(c.name,";")}).join(`
|
|
65
65
|
`))):v="{".concat(v,"}"),[v,b]};function qM(e,t){return Dc("".concat(e.join("%")).concat(t))}function QA(){return null}var GM="style";function xr(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,d=c===void 0?0:c,f=g.useContext(ts),m=f.autoClear;f.mock;var v=f.defaultCache,b=f.hashPriority,y=f.container,S=f.ssrInline,x=f.transformers,M=f.linters,w=f.cache,E=f.layer,O=n._tokenKey,z=[O];E&&z.push("layer"),z.push.apply(z,je(r));var _=p8,I=Wf(GM,z,function(){var q=z.join("|");if(qA(q)){var H=GA(q),B=me(H,2),F=B[0],T=B[1];if(F)return[F,O,T,{},l,d]}var j=t(),G=KA(j,{hashId:i,hashPriority:b,layer:E?o:void 0,path:r.join("-"),transformers:x,linters:M}),k=me(G,2),P=k[0],U=k[1],V=y6(P),R=qM(z,V);return[V,O,R,U,l,d]},function(q,H){var B=me(q,3),F=B[2];(H||m)&&p8&&jc(F,{mark:oi,attachTo:y})},function(q){var H=me(q,4),B=H[0];H[1];var F=H[2],T=H[3];if(_&&B!==VM){var j={mark:oi,prepend:E?!1:"queue",attachTo:y,priority:d},G=typeof a=="function"?a():a;G&&(j.csp={nonce:G});var k=[],P=[];Object.keys(T).forEach(function(V){V.startsWith("@layer")?k.push(V):P.push(V)}),k.forEach(function(V){lo(y6(T[V]),"_layer-".concat(V),Z(Z({},j),{},{prepend:!0}))});var U=lo(B,F,j);U[Xo]=w.instanceId,U.setAttribute(v2,O),P.forEach(function(V){lo(y6(T[V]),"_effect-".concat(V),j)})}}),A=me(I,3),N=A[0],D=A[1],L=A[2];return function(q){var H;return!S||_||!v?H=g.createElement(QA,null):H=g.createElement("style",Le({},J(J({},v2,D),oi,L),{dangerouslySetInnerHTML:{__html:N}})),g.createElement(g.Fragment,null,H,q)}}var ZA=function(t,n,r){var i=me(t,6),o=i[0],a=i[1],l=i[2],c=i[3],d=i[4],f=i[5],m=r||{},v=m.plain;if(d)return null;var b=o,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return b=H6(o,a,l,y,v),c&&Object.keys(c).forEach(function(S){if(!n[S]){n[S]=!0;var x=y6(c[S]),M=H6(x,a,"_effect-".concat(S),y,v);S.startsWith("@layer")?b=M+b:b+=M}}),[f,l,b]},XM="cssVar",JA=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,l=t.token,c=t.scope,d=c===void 0?"":c,f=g.useContext(ts),m=f.cache.instanceId,v=f.container,b=l._tokenKey,y=[].concat(je(t.path),[r,d,b]),S=Wf(XM,y,function(){var x=n(),M=AM(x,r,{prefix:i,unitless:o,ignore:a,scope:d}),w=me(M,2),E=w[0],O=w[1],z=qM(y,O);return[E,O,z,r]},function(x){var M=me(x,3),w=M[2];p8&&jc(w,{mark:oi,attachTo:v})},function(x){var M=me(x,3),w=M[1],E=M[2];if(w){var O=lo(w,E,{mark:oi,prepend:"queue",attachTo:v,priority:-999});O[Xo]=m,O.setAttribute(v2,r)}});return S},eN=function(t,n,r){var i=me(t,4),o=i[1],a=i[2],l=i[3],c=r||{},d=c.plain;if(!o)return null;var f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=H6(o,l,a,m,d);return[f,a,v]};J(J(J({},GM,ZA),DM,$A),XM,eN);var Wt=(function(){function e(t,n){Zn(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=n}return Jn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Fs(e){return e.notSplit=!0,e}Fs(["borderTop","borderBottom"]),Fs(["borderTop"]),Fs(["borderBottom"]),Fs(["borderLeft","borderRight"]),Fs(["borderLeft"]),Fs(["borderRight"]);var Gf=g.createContext({});function YM(e){return EM(e)||MM(e)||Hf(e)||OM()}function Oi(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function KM(e,t,n,r){if(!t.length)return n;var i=YM(t),o=i[0],a=i.slice(1),l;return!e&&typeof o=="number"?l=[]:Array.isArray(e)?l=je(e):l=Z({},e),r&&n===void 0&&a.length===1?delete l[o][a[0]]:l[o]=KM(l[o],a,n,r),l}function ni(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Oi(e,t.slice(0,-1))?e:KM(e,t,n,r)}function tN(e){return st(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Xp(e){return Array.isArray(e)?[]:{}}var nN=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function i2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Xp(t[0]);return t.forEach(function(i){function o(a,l){var c=new Set(l),d=Oi(i,a),f=Array.isArray(d);if(f||tN(d)){if(!c.has(d)){c.add(d);var m=Oi(r,a);f?r=ni(r,a,[]):(!m||st(m)!=="object")&&(r=ni(r,a,Xp(d))),nN(d).forEach(function(v){o([].concat(je(a),[v]),c)})}}else r=ni(r,a,d)}o([])}),r}function rN(){}const iN=g.createContext({}),i3=()=>{const e=()=>{};return e.deprecated=rN,e},oN=g.createContext(void 0);var QM={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},aN={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},sN=Z(Z({},aN),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const ZM={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Yp={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},sN),timePickerLocale:Object.assign({},ZM)},O1="${label} is not a valid ${type}",co={locale:"en",Pagination:QM,DatePicker:Yp,TimePicker:ZM,Calendar:Yp,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:O1,method:O1,array:O1,object:O1,number:O1,date:O1,boolean:O1,integer:O1,float:O1,regexp:O1,email:O1,url:O1,hex:O1},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let S6=Object.assign({},co.Modal),x6=[];const Kp=()=>x6.reduce((e,t)=>Object.assign(Object.assign({},e),t),co.Modal);function lN(e){if(e){const t=Object.assign({},e);return x6.push(t),S6=Kp(),()=>{x6=x6.filter(n=>n!==t),S6=Kp()}}S6=Object.assign({},co.Modal)}function JM(){return S6}const Xf=g.createContext(void 0),Ni=(e,t)=>{const n=g.useContext(Xf),r=g.useMemo(()=>{var o;const a=t||co[e],l=(o=n?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),i=g.useMemo(()=>{const o=n?.locale;return n?.exist&&!o?co.locale:o},[n]);return[r,i]},cN="internalMark",uN=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;g.useEffect(()=>lN(t?.Modal),[t]);const i=g.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return g.createElement(Xf.Provider,{value:i},n)},Yf={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},y2=Object.assign(Object.assign({},Yf),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
66
66
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
67
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),_r=Math.round;function Td(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Qp=(e,t,n)=>n===0?e:e/100;function Fl(e,t){const n=t||255;return e>n?n:e<0?0:e}class fn{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof fn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Fl(t.r),this.g=Fl(t.g),this.b=Fl(t.b),this.a=typeof t.a=="number"?Fl(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=_r(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=l=>(r[l]-this[l])*i+this[l],a={r:_r(o("r")),g:_r(o("g")),b:_r(o("b")),a:_r(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>_r((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=_r(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=_r(this.getSaturation()*100),r=_r(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Fl(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const v=_r(r*255);this.r=v,this.g=v,this.b=v}let o=0,a=0,l=0;const c=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,l=f):c>=3&&c<4?(a=f,l=d):c>=4&&c<5?(o=f,l=d):c>=5&&c<6&&(o=d,l=f);const m=r-d/2;this.r=_r((o+m)*255),this.g=_r((a+m)*255),this.b=_r((l+m)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=_r(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,d=_r(r*(1-n)*255),f=_r(r*(1-n*c)*255),m=_r(r*(1-n*(1-c))*255);switch(l){case 0:this.g=m,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=f;break;case 4:this.r=m,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=Td(t,Qp);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Td(t,Qp);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Td(t,(r,i)=>i.includes("%")?_r(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var $0=2,Zp=.16,dN=.05,fN=.05,hN=.15,ew=5,tw=4,gN=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Jp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$0*t:Math.round(e.h)+$0*t:r=n?Math.round(e.h)+$0*t:Math.round(e.h)-$0*t,r<0?r+=360:r>=360&&(r-=360),r}function eb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Zp*t:t===tw?r=e.s+Zp:r=e.s+dN*t,r>1&&(r=1),n&&t===ew&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function tb(e,t,n){var r;return n?r=e.v+fN*t:r=e.v-hN*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ns(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new fn(e),i=r.toHsv(),o=ew;o>0;o-=1){var a=new fn({h:Jp(i,o,!0),s:eb(i,o,!0),v:tb(i,o,!0)});n.push(a)}n.push(r);for(var l=1;l<=tw;l+=1){var c=new fn({h:Jp(i,l),s:eb(i,l),v:tb(i,l)});n.push(c)}return t.theme==="dark"?gN.map(function(d){var f=d.index,m=d.amount;return new fn(t.backgroundColor||"#141414").mix(n[f],m).toHexString()}):n.map(function(d){return d.toHexString()})}var c2={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x8=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];x8.primary=x8[5];var C8=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];C8.primary=C8[5];var M8=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];M8.primary=M8[5];var k6=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];k6.primary=k6[5];var w8=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];w8.primary=w8[5];var z8=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];z8.primary=z8[5];var $8=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];$8.primary=$8[5];var E8=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E8.primary=E8[5];var S2=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S2.primary=S2[5];var O8=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];O8.primary=O8[5];var _8=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_8.primary=_8[5];var I8=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];I8.primary=I8[5];var R8=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];R8.primary=R8[5];var Pd={red:x8,volcano:C8,orange:M8,gold:k6,yellow:w8,lime:z8,green:$8,cyan:E8,blue:S2,geekblue:O8,purple:_8,magenta:I8,grey:R8};function nw(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=t(l),m=t(r),v=t(i),b=t(o),y=t(a),S=n(c,d),x=e.colorLink||e.colorInfo,M=t(x),w=new fn(b[1]).mix(new fn(b[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:w,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:M[4],colorLink:M[6],colorLinkActive:M[7],colorBgMask:new fn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const mN=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function vN(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},mN(r))}const rw=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function C6(e){return(e+8)/e}function pN(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:C6(n)}))}const iw=e=>{const t=pN(e),n=t.map(f=>f.size),r=t.map(f=>f.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],c=r[0],d=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function bN(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const k1=(e,t)=>new fn(e).setA(t).toRgbString(),Vl=(e,t)=>new fn(e).darken(t).toHexString(),yN=e=>{const t=ns(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},SN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:k1(r,.88),colorTextSecondary:k1(r,.65),colorTextTertiary:k1(r,.45),colorTextQuaternary:k1(r,.25),colorFill:k1(r,.15),colorFillSecondary:k1(r,.06),colorFillTertiary:k1(r,.04),colorFillQuaternary:k1(r,.02),colorBgSolid:k1(r,1),colorBgSolidHover:k1(r,.75),colorBgSolidActive:k1(r,.95),colorBgLayout:Vl(n,4),colorBgContainer:Vl(n,0),colorBgElevated:Vl(n,0),colorBgSpotlight:k1(r,.85),colorBgBlur:"transparent",colorBorder:Vl(n,15),colorBorderSecondary:Vl(n,6)}};function z5(e){c2.pink=c2.magenta,Pd.pink=Pd.magenta;const t=Object.keys(Yf).map(n=>{const r=e[n]===c2[n]?Pd[n]:ns(e[n]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),nw(e,{generateColorPalettes:yN,generateNeutralColorPalettes:SN})),iw(e.fontSize)),bN(e)),rw(e)),vN(e))}const Kf=B6(z5),Bc={token:y2,override:{override:y2},hashed:!0},Qf=ae.createContext(Bc),Hc="ant",$5="anticon",xN=["outlined","borderless","filled","underlined"],CN=(e,t)=>t||(e?`${Hc}-${e}`:Hc),ht=g.createContext({getPrefixCls:CN,iconPrefixCls:$5}),{Consumer:Gae}=ht,nb={};function l1(e){const t=g.useContext(ht),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:nb,styles:nb},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}const MN=`-ant-${Date.now()}-${Math.random()}`;function wN(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=l?.(c)||c,c.toRgbString()},i=(a,l)=>{const c=new fn(a),d=ns(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new fn(t.primaryColor),l=ns(a.toRgbString());l.forEach((d,f)=>{n[`primary-${f+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setA(d.a*.12));const c=new fn(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,d=>d.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
|
67
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),_r=Math.round;function Td(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Qp=(e,t,n)=>n===0?e:e/100;function Fl(e,t){const n=t||255;return e>n?n:e<0?0:e}class fn{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(t instanceof fn)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Fl(t.r),this.g=Fl(t.g),this.b=Fl(t.b),this.a=typeof t.a=="number"?Fl(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=_r(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=l=>(r[l]-this[l])*i+this[l],a={r:_r(o("r")),g:_r(o("g")),b:_r(o("b")),a:_r(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>_r((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=_r(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=_r(this.getSaturation()*100),r=_r(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Fl(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const v=_r(r*255);this.r=v,this.g=v,this.b=v}let o=0,a=0,l=0;const c=t/60,d=(1-Math.abs(2*r-1))*n,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,l=f):c>=3&&c<4?(a=f,l=d):c>=4&&c<5?(o=f,l=d):c>=5&&c<6&&(o=d,l=f);const m=r-d/2;this.r=_r((o+m)*255),this.g=_r((a+m)*255),this.b=_r((l+m)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=_r(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,d=_r(r*(1-n)*255),f=_r(r*(1-n*c)*255),m=_r(r*(1-n*(1-c))*255);switch(l){case 0:this.g=m,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=m;break;case 3:this.r=d,this.g=f;break;case 4:this.r=m,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const n=Td(t,Qp);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Td(t,Qp);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Td(t,(r,i)=>i.includes("%")?_r(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var $0=2,Zp=.16,dN=.05,fN=.05,hN=.15,ew=5,tw=4,gN=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Jp(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$0*t:Math.round(e.h)+$0*t:r=n?Math.round(e.h)+$0*t:Math.round(e.h)-$0*t,r<0?r+=360:r>=360&&(r-=360),r}function eb(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Zp*t:t===tw?r=e.s+Zp:r=e.s+dN*t,r>1&&(r=1),n&&t===ew&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function tb(e,t,n){var r;return n?r=e.v+fN*t:r=e.v-hN*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ns(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new fn(e),i=r.toHsv(),o=ew;o>0;o-=1){var a=new fn({h:Jp(i,o,!0),s:eb(i,o,!0),v:tb(i,o,!0)});n.push(a)}n.push(r);for(var l=1;l<=tw;l+=1){var c=new fn({h:Jp(i,l),s:eb(i,l),v:tb(i,l)});n.push(c)}return t.theme==="dark"?gN.map(function(d){var f=d.index,m=d.amount;return new fn(t.backgroundColor||"#141414").mix(n[f],m).toHexString()}):n.map(function(d){return d.toHexString()})}var c2={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},x8=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];x8.primary=x8[5];var C8=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];C8.primary=C8[5];var M8=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];M8.primary=M8[5];var k6=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];k6.primary=k6[5];var w8=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];w8.primary=w8[5];var z8=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];z8.primary=z8[5];var $8=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];$8.primary=$8[5];var E8=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];E8.primary=E8[5];var S2=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];S2.primary=S2[5];var O8=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];O8.primary=O8[5];var _8=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_8.primary=_8[5];var I8=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];I8.primary=I8[5];var R8=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];R8.primary=R8[5];var Pd={red:x8,volcano:C8,orange:M8,gold:k6,yellow:w8,lime:z8,green:$8,cyan:E8,blue:S2,geekblue:O8,purple:_8,magenta:I8,grey:R8};function nw(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=t(l),m=t(r),v=t(i),b=t(o),y=t(a),S=n(c,d),x=e.colorLink||e.colorInfo,M=t(x),w=new fn(b[1]).mix(new fn(b[3]),50).toHexString();return Object.assign(Object.assign({},S),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:w,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:M[4],colorLink:M[6],colorLinkActive:M[7],colorBgMask:new fn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const mN=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function vN(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},mN(r))}const rw=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function C6(e){return(e+8)/e}function pN(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:C6(n)}))}const iw=e=>{const t=pN(e),n=t.map(f=>f.size),r=t.map(f=>f.lineHeight),i=n[1],o=n[0],a=n[2],l=r[1],c=r[0],d=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function bN(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const k1=(e,t)=>new fn(e).setA(t).toRgbString(),Vl=(e,t)=>new fn(e).darken(t).toHexString(),yN=e=>{const t=ns(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},SN=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:k1(r,.88),colorTextSecondary:k1(r,.65),colorTextTertiary:k1(r,.45),colorTextQuaternary:k1(r,.25),colorFill:k1(r,.15),colorFillSecondary:k1(r,.06),colorFillTertiary:k1(r,.04),colorFillQuaternary:k1(r,.02),colorBgSolid:k1(r,1),colorBgSolidHover:k1(r,.75),colorBgSolidActive:k1(r,.95),colorBgLayout:Vl(n,4),colorBgContainer:Vl(n,0),colorBgElevated:Vl(n,0),colorBgSpotlight:k1(r,.85),colorBgBlur:"transparent",colorBorder:Vl(n,15),colorBorderSecondary:Vl(n,6)}};function z5(e){c2.pink=c2.magenta,Pd.pink=Pd.magenta;const t=Object.keys(Yf).map(n=>{const r=e[n]===c2[n]?Pd[n]:ns(e[n]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),nw(e,{generateColorPalettes:yN,generateNeutralColorPalettes:SN})),iw(e.fontSize)),bN(e)),rw(e)),vN(e))}const Kf=B6(z5),Bc={token:y2,override:{override:y2},hashed:!0},Qf=ae.createContext(Bc),Hc="ant",$5="anticon",xN=["outlined","borderless","filled","underlined"],CN=(e,t)=>t||(e?`${Hc}-${e}`:Hc),ht=g.createContext({getPrefixCls:CN,iconPrefixCls:$5}),{Consumer:Xae}=ht,nb={};function l1(e){const t=g.useContext(ht),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:nb,styles:nb},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}const MN=`-ant-${Date.now()}-${Math.random()}`;function wN(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=l?.(c)||c,c.toRgbString()},i=(a,l)=>{const c=new fn(a),d=ns(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=d[1],n[`${l}-color-hover`]=d[4],n[`${l}-color-active`]=d[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=d[0],n[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new fn(t.primaryColor),l=ns(a.toRgbString());l.forEach((d,f)=>{n[`primary-${f+1}`]=d}),n["primary-color-deprecated-l-35"]=r(a,d=>d.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,d=>d.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,d=>d.tint(20)),n["primary-color-deprecated-t-50"]=r(a,d=>d.tint(50)),n["primary-color-deprecated-f-12"]=r(a,d=>d.setA(d.a*.12));const c=new fn(l[0]);n["primary-color-active-deprecated-f-30"]=r(c,d=>d.setA(d.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,d=>d.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
|
|
68
68
|
:root {
|
|
69
69
|
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
70
70
|
`)}
|
|
@@ -389,7 +389,7 @@ html body {
|
|
|
389
389
|
* Released under the MIT License
|
|
390
390
|
*/class Gee{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],a=n.duration;o.forEach(l=>l({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=YE.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,l=!1,c;for(;a>=0;--a)c=o[a],c._active?(c._total>r.duration&&(r.duration=c._total),c.tick(t),l=!0):(o[a]=o[o.length-1],o.pop());l&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var ro=new Gee;const tx="transparent",Xee={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=US(e||tx),i=r.valid&&US(t||tx);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Yee{constructor(t,n,r,i){const o=n[r];i=q0([t.to,i,o,t.from]);const a=q0([t.from,o,i]);this._active=!0,this._fn=t.fn||Xee[t.type||typeof a],this._easing=Oc[t.easing]||Oc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=q0([t.to,n,i,t.from]),this._from=q0([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,l=this._to;let c;if(this._active=o!==l&&(a||n<r),!this._active){this._target[i]=l,this._notify(!0);return}if(n<0){this._target[i]=o;return}c=n/r%2,c=a&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(o,l,c)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class dO{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!sn(t))return;const n=Object.keys(rr.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!sn(o))return;const a={};for(const l of n)a[l]=o[l];(Qn(o.properties)&&o.properties||[i]).forEach(l=>{(l===i||!r.has(l))&&r.set(l,a)})})}_animateOptions(t,n){const r=n.options,i=Qee(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Kee(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),l=Date.now();let c;for(c=a.length-1;c>=0;--c){const d=a[c];if(d.charAt(0)==="$")continue;if(d==="options"){i.push(...this._animateOptions(t,n));continue}const f=n[d];let m=o[d];const v=r.get(d);if(m)if(v&&m.active()){m.update(v,f,l);continue}else m.cancel();if(!v||!v.duration){t[d]=f;continue}o[d]=m=new Yee(v,t,d,f),i.push(m)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return ro.add(this._chart,r),!0}}function Kee(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Qee(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function nx(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function Zee(e,t,n){if(n===!1)return!1;const r=nx(e,n),i=nx(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Jee(e){let t,n,r,i;return sn(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function fO(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function rx(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let a,l,c,d;if(t===null)return;let f=!1;for(a=0,l=i.length;a<l;++a){if(c=+i[a],c===n){if(f=!0,r.all)continue;break}d=e.values[c],Ir(d)&&(o||t===0||O2(t)===O2(d))&&(t+=d)}return!f&&!r.all?0:t}function ete(e,t){const{iScale:n,vScale:r}=t,i=n.axis==="x"?"x":"y",o=r.axis==="x"?"x":"y",a=Object.keys(e),l=new Array(a.length);let c,d,f;for(c=0,d=a.length;c<d;++c)f=a[c],l[c]={[i]:f,[o]:e[f]};return l}function z7(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function tte(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function nte(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function rte(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ix(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function ox(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:l}=r,c=o.axis,d=a.axis,f=tte(o,a,r),m=t.length;let v;for(let b=0;b<m;++b){const y=t[b],{[c]:S,[d]:x}=y,M=y._stacks||(y._stacks={});v=M[d]=rte(i,f,S),v[l]=x,v._top=ix(v,a,!0,r.type),v._bottom=ix(v,a,!1,r.type);const w=v._visualValues||(v._visualValues={});w[l]=x}}function $7(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function ite(e,t){return da(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function ote(e,t,n){return da(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Yl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const E7=e=>e==="reset"||e==="none",ax=(e,t)=>t?e:Object.assign({},e),ate=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:fO(n,!0),values:null};class ste{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=z7(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Yl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(m,v,b,y)=>m==="x"?v:m==="r"?y:b,o=n.xAxisID=en(r.xAxisID,$7(t,"x")),a=n.yAxisID=en(r.yAxisID,$7(t,"y")),l=n.rAxisID=en(r.rAxisID,$7(t,"r")),c=n.indexAxis,d=n.iAxisID=i(c,o,a,l),f=n.vAxisID=i(c,a,o,l);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(d),n.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&FS(this._data,this),t._stacked&&Yl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(sn(n)){const i=this._cachedMeta;this._data=ete(n,i)}else if(r!==n){if(r){FS(r,this);const i=this._cachedMeta;Yl(i),i._parsed=[]}n&&Object.isExtensible(n)&&FJ(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=z7(n.vScale,n),n.stack!==r.stack&&(i=!0,Yl(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&(ox(this,n._parsed),n._stacked=z7(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,l=o.axis;let c=t===0&&n===i.length?!0:r._sorted,d=t>0&&r._parsed[t-1],f,m,v;if(this._parsing===!1)r._parsed=i,r._sorted=!0,v=i;else{Qn(i[t])?v=this.parseArrayData(r,i,t,n):sn(i[t])?v=this.parseObjectData(r,i,t,n):v=this.parsePrimitiveData(r,i,t,n);const b=()=>m[l]===null||d&&m[l]<d[l];for(f=0;f<n;++f)r._parsed[f+t]=m=v[f],c&&(b()&&(c=!1),d=m);r._sorted=c}a&&ox(this,v)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:a}=t,l=o.axis,c=a.axis,d=o.getLabels(),f=o===a,m=new Array(i);let v,b,y;for(v=0,b=i;v<b;++v)y=v+r,m[v]={[l]:f||o.parse(d[y],y),[c]:a.parse(n[y],y)};return m}parseArrayData(t,n,r,i){const{xScale:o,yScale:a}=t,l=new Array(i);let c,d,f,m;for(c=0,d=i;c<d;++c)f=c+r,m=n[f],l[c]={x:o.parse(m[0],f),y:a.parse(m[1],f)};return l}parseObjectData(t,n,r,i){const{xScale:o,yScale:a}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(i);let f,m,v,b;for(f=0,m=i;f<m;++f)v=f+r,b=n[v],d[f]={x:o.parse(c5(b,l),v),y:a.parse(c5(b,c),v)};return d}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,a=n[t.axis],l={keys:fO(i,!0),values:n._stacks[t.axis]._visualValues};return rx(l,a,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let a=o===null?NaN:o;const l=i&&r._stacks[n.axis];i&&l&&(i.values=l,a=rx(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,a=i.length,l=this._getOtherScale(t),c=ate(n,r,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:m}=nte(l);let v,b;function y(){b=i[v];const S=b[l.axis];return!Ir(b[t.axis])||f>S||m<S}for(v=0;v<a&&!(!y()&&(this.updateRangeFromParsed(d,t,b,c),o));++v);if(o){for(v=a-1;v>=0;--v)if(!y()){this.updateRangeFromParsed(d,t,b,c);break}}return d}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i<o;++i)a=n[i][t.axis],Ir(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Jee(en(this.options.clip,Zee(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,a=[],l=this._drawStart||0,c=this._drawCount||i.length-l,d=this.options.drawActiveElementsOnTop;let f;for(r.dataset&&r.dataset.draw(t,o,l,c),f=l;f<l+c;++f){const m=i[f];m.hidden||(m.active&&d?a.push(m):m.draw(t,o))}for(f=0;f<a.length;++f)a[f].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const a=this._cachedMeta.data[t];o=a.$context||(a.$context=ote(this.getContext(),t,a)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=ite(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,a=t+"-"+n,l=o[a],c=this.enableOptionSharing&&u5(r);if(l)return ax(l,c);const d=this.chart.config,f=d.datasetElementScopeKeys(this._type,t),m=i?[`${t}Hover`,"hover",t,""]:[t,""],v=d.getOptionScopes(this.getDataset(),f),b=Object.keys(rr.elements[t]),y=()=>this.getContext(r,i,n),S=d.resolveNamedOptions(v,b,y,m);return S.$shared&&(S.$shared=c,o[a]=Object.freeze(ax(S,c))),S}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,l=o[a];if(l)return l;let c;if(i.options.animation!==!1){const f=this.chart.config,m=f.datasetAnimationScopeKeys(this._type,n),v=f.getOptionScopes(this.getDataset(),m);c=f.createResolver(v,this.getContext(t,r,n))}const d=new dO(i,c&&c.animations);return c&&c._cacheable&&(o[a]=Object.freeze(d)),d}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||E7(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){E7(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!E7(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,a=t+n;let l;const c=d=>{for(d.length+=n,l=d.length-1;l>=a;l--)d[l]=d[l-n]};for(c(o),l=t;l<a;++l)o[l]=new this.dataElementType;this._parsing&&c(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Yl(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Da(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class uh{static override(t){Object.assign(uh.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Da()}parse(){return Da()}format(){return Da()}add(){return Da()}diff(){return Da()}startOf(){return Da()}endOf(){return Da()}}var lte={_date:uh};function cte(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,l=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(l&&t===l.axis&&t!=="r"&&a&&o.length){const d=l._reversePixels?HJ:Sf;if(r){if(i._sharedOptions){const f=o[0],m=typeof f.getRange=="function"&&f.getRange(t);if(m){const v=d(o,t,n-m),b=d(o,t,n+m);return{lo:v.lo,hi:b.hi}}}}else{const f=d(o,t,n);if(c){const{vScale:m}=i._cachedMeta,{_parsed:v}=e,b=v.slice(0,f.lo+1).reverse().findIndex(S=>!Vn(S[m.axis]));f.lo-=Math.max(0,b);const y=v.slice(f.hi).findIndex(S=>!Vn(S[m.axis]));f.hi+=Math.max(0,y)}return f}}return{lo:0,hi:o.length-1}}function u4(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let l=0,c=o.length;l<c;++l){const{index:d,data:f}=o[l],{lo:m,hi:v}=cte(o[l],t,a,i);for(let b=m;b<=v;++b){const y=f[b];y.skip||r(y,d,b)}}}function ute(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,a=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function O7(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||u4(e,n,t,function(l,c,d){!i&&!so(l,e.chartArea,0)||l.inRange(t.x,t.y,r)&&o.push({element:l,datasetIndex:c,index:d})},!0),o}function dte(e,t,n,r){let i=[];function o(a,l,c){const{startAngle:d,endAngle:f}=a.getProps(["startAngle","endAngle"],r),{angle:m}=GE(a,{x:t.x,y:t.y});J9(m,d,f)&&i.push({element:a,datasetIndex:l,index:c})}return u4(e,n,t,o),i}function fte(e,t,n,r,i,o){let a=[];const l=ute(n);let c=Number.POSITIVE_INFINITY;function d(f,m,v){const b=f.inRange(t.x,t.y,i);if(r&&!b)return;const y=f.getCenterPoint(i);if(!(!!o||e.isPointInArea(y))&&!b)return;const x=l(t,y);x<c?(a=[{element:f,datasetIndex:m,index:v}],c=x):x===c&&a.push({element:f,datasetIndex:m,index:v})}return u4(e,n,t,d),a}function _7(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?dte(e,t,n,i):fte(e,t,n,r,i,o)}function sx(e,t,n,r,i){const o=[],a=n==="x"?"inXRange":"inYRange";let l=!1;return u4(e,n,t,(c,d,f)=>{c[a]&&c[a](t[n],i)&&(o.push({element:c,datasetIndex:d,index:f}),l=l||c.inRange(t.x,t.y,i))}),r&&!l?[]:o}var hte={modes:{index(e,t,n,r){const i=Ha(t,e),o=n.axis||"x",a=n.includeInvisible||!1,l=n.intersect?O7(e,i,o,r,a):_7(e,i,o,!1,r,a),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(d=>{const f=l[0].index,m=d.data[f];m&&!m.skip&&c.push({element:m,datasetIndex:d.index,index:f})}),c):[]},dataset(e,t,n,r){const i=Ha(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let l=n.intersect?O7(e,i,o,r,a):_7(e,i,o,!1,r,a);if(l.length>0){const c=l[0].datasetIndex,d=e.getDatasetMeta(c).data;l=[];for(let f=0;f<d.length;++f)l.push({element:d[f],datasetIndex:c,index:f})}return l},point(e,t,n,r){const i=Ha(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return O7(e,i,o,r,a)},nearest(e,t,n,r){const i=Ha(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;return _7(e,i,o,n.intersect,r,a)},x(e,t,n,r){const i=Ha(t,e);return sx(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Ha(t,e);return sx(e,i,"y",n.intersect,r)}}};const hO=["left","top","right","bottom"];function Kl(e,t){return e.filter(n=>n.pos===t)}function lx(e,t){return e.filter(n=>hO.indexOf(n.pos)===-1&&n.box.axis===t)}function Ql(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function gte(e){const t=[];let n,r,i,o,a,l;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:a,stackWeight:l=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:l});return t}function mte(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!hO.includes(i))continue;const a=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return t}function vte(e,t){const n=mte(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,a,l;for(o=0,a=e.length;o<a;++o){l=e[o];const{fullSize:c}=l.box,d=n[l.stack],f=d&&l.stackWeight/d.weight;l.horizontal?(l.width=f?f*r:c&&t.availableWidth,l.height=i):(l.width=r,l.height=f?f*i:c&&t.availableHeight)}return n}function pte(e){const t=gte(e),n=Ql(t.filter(d=>d.box.fullSize),!0),r=Ql(Kl(t,"left"),!0),i=Ql(Kl(t,"right")),o=Ql(Kl(t,"top"),!0),a=Ql(Kl(t,"bottom")),l=lx(t,"x"),c=lx(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(c).concat(a).concat(l),chartArea:Kl(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:o.concat(a).concat(l)}}function cx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function gO(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function bte(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!sn(i)){n.size&&(e[i]-=n.size);const m=r[n.stack]||{size:0,count:1};m.size=Math.max(m.size,n.horizontal?o.height:o.width),n.size=m.size/m.count,e[i]+=n.size}o.getPadding&&gO(a,o.getPadding());const l=Math.max(0,t.outerWidth-cx(a,e,"left","right")),c=Math.max(0,t.outerHeight-cx(a,e,"top","bottom")),d=l!==e.w,f=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:d,other:f}:{same:f,other:d}}function yte(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ste(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function bc(e,t,n,r){const i=[];let o,a,l,c,d,f;for(o=0,a=e.length,d=0;o<a;++o){l=e[o],c=l.box,c.update(l.width||t.w,l.height||t.h,Ste(l.horizontal,t));const{same:m,other:v}=bte(t,n,l,r);d|=m&&i.length,f=f||v,c.fullSize||i.push(l)}return d&&bc(i,t,n,r)||f}function Y0(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function ux(e,t,n,r){const i=n.padding;let{x:o,y:a}=t;for(const l of e){const c=l.box,d=r[l.stack]||{placed:0,weight:1},f=l.stackWeight/d.weight||1;if(l.horizontal){const m=t.w*f,v=d.size||c.height;u5(d.start)&&(a=d.start),c.fullSize?Y0(c,i.left,a,n.outerWidth-i.right-i.left,v):Y0(c,t.left+d.placed,a,m,v),d.start=a,d.placed+=m,a=c.bottom}else{const m=t.h*f,v=d.size||c.width;u5(d.start)&&(o=d.start),c.fullSize?Y0(c,o,i.top,v,n.outerHeight-i.bottom-i.top):Y0(c,o,t.top+d.placed,v,m),d.start=o,d.placed+=m,o=c.right}}t.x=o,t.y=a}var X1={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=Jr(e.options.layout.padding),o=Math.max(t-i.width,0),a=Math.max(n-i.height,0),l=pte(e.boxes),c=l.vertical,d=l.horizontal;In(e.boxes,S=>{typeof S.beforeLayout=="function"&&S.beforeLayout()});const f=c.reduce((S,x)=>x.box.options&&x.box.options.display===!1?S:S+1,0)||1,m=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/f,hBoxMaxHeight:a/2}),v=Object.assign({},i);gO(v,Jr(r));const b=Object.assign({maxPadding:v,w:o,h:a,x:i.left,y:i.top},i),y=vte(c.concat(d),m);bc(l.fullSize,b,m,y),bc(c,b,m,y),bc(d,b,m,y)&&bc(c,b,m,y),yte(b),ux(l.leftAndTop,b,m,y),b.x+=b.w,b.y+=b.h,ux(l.rightAndBottom,b,m,y),e.chartArea={left:b.left,top:b.top,right:b.left+b.w,bottom:b.top+b.h,height:b.h,width:b.w},In(l.chartArea,S=>{const x=S.box;Object.assign(x,e.chartArea),x.update(b.w,b.h,{left:0,top:0,right:0,bottom:0})})}};class mO{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class xte extends mO{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const O6="$chartjs",Cte={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},dx=e=>e===null||e==="";function Mte(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[O6]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",dx(i)){const o=QS(e,"width");o!==void 0&&(e.width=o)}if(dx(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=QS(e,"height");o!==void 0&&(e.height=o)}return e}const vO=Nee?{passive:!0}:!1;function wte(e,t,n){e&&e.addEventListener(t,n,vO)}function zte(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,vO)}function $te(e,t){const n=Cte[e.type]||e.type,{x:r,y:i}=Ha(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function m5(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ete(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const l of o)a=a||m5(l.addedNodes,r),a=a&&!m5(l.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Ote(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const l of o)a=a||m5(l.removedNodes,r),a=a&&!m5(l.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Qc=new Map;let fx=0;function pO(){const e=window.devicePixelRatio;e!==fx&&(fx=e,Qc.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function _te(e,t){Qc.size||window.addEventListener("resize",pO),Qc.set(e,t)}function Ite(e){Qc.delete(e),Qc.size||window.removeEventListener("resize",pO)}function Rte(e,t,n){const r=e.canvas,i=r&&ch(r);if(!i)return;const o=KE((l,c)=>{const d=i.clientWidth;n(l,c),d<i.clientWidth&&n()},window),a=new ResizeObserver(l=>{const c=l[0],d=c.contentRect.width,f=c.contentRect.height;d===0&&f===0||o(d,f)});return a.observe(i),_te(e,o),a}function I7(e,t,n){n&&n.disconnect(),t==="resize"&&Ite(e)}function Tte(e,t,n){const r=e.canvas,i=KE(o=>{e.ctx!==null&&n($te(o,e))},e);return wte(r,t,i),i}class Pte extends mO{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(Mte(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[O6])return!1;const r=n[O6].initial;["height","width"].forEach(o=>{const a=r[o];Vn(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[O6],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:Ete,detach:Ote,resize:Rte}[n]||Tte;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:I7,detach:I7,resize:I7}[n]||zte)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Aee(t,n,r,i)}isAttached(t){const n=t&&ch(t);return!!(n&&n.isConnected)}}function Ate(e){return!lh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?xte:Pte}let vo=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return f5(this.x)&&f5(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}};function Nte(e,t){const n=e.options.ticks,r=Dte(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?Lte(t):[],a=o.length,l=o[0],c=o[a-1],d=[];if(a>i)return Bte(t,d,o,a/i),d;const f=jte(o,t,i);if(a>0){let m,v;const b=a>1?Math.round((c-l)/(a-1)):null;for(K0(t,d,f,Vn(b)?0:l-b,l),m=0,v=a-1;m<v;m++)K0(t,d,f,o[m],o[m+1]);return K0(t,d,f,c,Vn(b)?t.length:c+b),d}return K0(t,d,f),d}function Dte(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function jte(e,t,n){const r=Hte(e),i=t.length/n;if(!r)return Math.max(i,1);const o=AJ(r);for(let a=0,l=o.length-1;a<l;a++){const c=o[a];if(c>i)return c}return Math.max(i,1)}function Lte(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function Bte(e,t,n,r){let i=0,o=n[0],a;for(r=Math.ceil(r),a=0;a<e.length;a++)a===o&&(t.push(e[a]),i++,o=n[i*r])}function K0(e,t,n,r,i){const o=en(r,0),a=Math.min(en(i,e.length),e.length);let l=0,c,d,f;for(n=Math.ceil(n),i&&(c=i-r,n=c/Math.floor(c/n)),f=o;f<0;)l++,f=Math.round(o+l*n);for(d=Math.max(o,0);d<a;d++)d===f&&(t.push(e[d]),l++,f=Math.round(o+l*n))}function Hte(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const kte=e=>e==="left"?"right":e==="right"?"left":e,hx=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,gx=(e,t)=>Math.min(t||e,e);function mx(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function Fte(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,a=e._endPixel,l=1e-6;let c=e.getPixelForTick(i),d;if(!(n&&(r===1?d=Math.max(c-o,a-c):t===0?d=(e.getPixelForTick(1)-c)/2:d=(c-e.getPixelForTick(i-1))/2,c+=i<t?d:-d,c<o-l||c>a+l)))return c}function Vte(e,t){In(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Zl(e){return e.drawTicks?e.tickLength:0}function vx(e,t){if(!e.display)return 0;const n=yr(e.font,t),r=Jr(e.padding);return(Qn(e.text)?e.text.length:1)*n.lineHeight+r.height}function Wte(e,t){return da(e,{scale:t,type:"scale"})}function Ute(e,t,n){return da(e,{tick:n,index:t,type:"tick"})}function qte(e,t,n){let r=th(e);return(n&&t!=="right"||!n&&t==="right")&&(r=kte(r)),r}function Gte(e,t,n,r){const{top:i,left:o,bottom:a,right:l,chart:c}=e,{chartArea:d,scales:f}=c;let m=0,v,b,y;const S=a-i,x=l-o;if(e.isHorizontal()){if(b=Yr(r,o,l),sn(n)){const M=Object.keys(n)[0],w=n[M];y=f[M].getPixelForValue(w)+S-t}else n==="center"?y=(d.bottom+d.top)/2+S-t:y=hx(e,n,t);v=l-o}else{if(sn(n)){const M=Object.keys(n)[0],w=n[M];b=f[M].getPixelForValue(w)-x+t}else n==="center"?b=(d.left+d.right)/2-x+t:b=hx(e,n,t);y=Yr(r,a,i),m=n==="left"?-br:br}return{titleX:b,titleY:y,maxWidth:v,rotation:m}}class W2 extends vo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=xi(t,Number.POSITIVE_INFINITY),n=xi(n,Number.NEGATIVE_INFINITY),r=xi(r,Number.POSITIVE_INFINITY),i=xi(i,Number.NEGATIVE_INFINITY),{min:xi(t,r),max:xi(n,i),minDefined:Ir(t),maxDefined:Ir(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),a;if(i&&o)return{min:n,max:r};const l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)a=l[c].controller.getMinMax(this,t),i||(n=Math.min(n,a.min)),o||(r=Math.max(r,a.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:xi(n,xi(r,n)),max:xi(r,xi(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Fn(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,l=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=fee(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=l<this.ticks.length;this._convertTicksToLabels(c?mx(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=Nte(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Fn(this.options.afterUpdate,[this])}beforeSetDimensions(){Fn(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Fn(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Fn(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Fn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Fn(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Fn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Fn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=gx(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation;let a=i,l,c,d;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),m=f.widest.width,v=f.highest.height,b=m1(this.chart.width-m,0,this.maxWidth);l=t.offset?this.maxWidth/r:b/(r-1),m+6>l&&(l=b/(r-(t.offset?.5:1)),c=this.maxHeight-Zl(t.grid)-n.padding-vx(t.title,this.chart.options.font),d=Math.sqrt(m*m+v*v),a=Z9(Math.min(Math.asin(m1((f.highest.height+6)/l,-1,1)),Math.asin(m1(c/d,-1,1))-Math.asin(m1(v/d,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Fn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Fn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),l=this.isHorizontal();if(a){const c=vx(i,n.options.font);if(l?(t.width=this.maxWidth,t.height=Zl(o)+c):(t.height=this.maxHeight,t.width=Zl(o)+c),r.display&&this.ticks.length){const{first:d,last:f,widest:m,highest:v}=this._getLabelSizes(),b=r.padding*2,y=Qo(this.labelRotation),S=Math.cos(y),x=Math.sin(y);if(l){const M=r.mirror?0:x*m.width+S*v.height;t.height=Math.min(this.maxHeight,t.height+M+b)}else{const M=r.mirror?0:S*m.width+x*v.height;t.width=Math.min(this.maxWidth,t.width+M+b)}this._calculatePadding(d,f,x,S)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,m=this.right-this.getPixelForTick(this.ticks.length-1);let v=0,b=0;c?d?(v=i*t.width,b=r*n.height):(v=r*t.height,b=i*n.width):o==="start"?b=n.width:o==="end"?v=t.width:o!=="inner"&&(v=t.width/2,b=n.width/2),this.paddingLeft=Math.max((v-f+a)*this.width/(this.width-f),0),this.paddingRight=Math.max((b-m+a)*this.width/(this.width-m),0)}else{let f=n.height/2,m=t.height/2;o==="start"?(f=0,m=t.height):o==="end"&&(f=n.height,m=0),this.paddingTop=f+a,this.paddingBottom=m+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Fn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Vn(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=mx(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:i,_longestTextCache:o}=this,a=[],l=[],c=Math.floor(n/gx(n,r));let d=0,f=0,m,v,b,y,S,x,M,w,E,O,z;for(m=0;m<n;m+=c){if(y=t[m].label,S=this._resolveTickFontOptions(m),i.font=x=S.string,M=o[x]=o[x]||{data:{},gc:[]},w=S.lineHeight,E=O=0,!Vn(y)&&!Qn(y))E=h5(i,M.data,M.gc,E,y),O=w;else if(Qn(y))for(v=0,b=y.length;v<b;++v)z=y[v],!Vn(z)&&!Qn(z)&&(E=h5(i,M.data,M.gc,E,z),O+=w);a.push(E),l.push(O),d=Math.max(E,d),f=Math.max(O,f)}Vte(o,n);const _=a.indexOf(d),I=l.indexOf(f),A=N=>({width:a[N]||0,height:l[N]||0});return{first:A(0),last:A(n-1),widest:A(_),highest:A(I),widths:a,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return BJ(this._alignToPixels?Na(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=Ute(this.getContext(),t,r))}return this.$context||(this.$context=Wte(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Qo(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,l=o?o.widest.width+a:0,c=o?o.highest.height+a:0;return this.isHorizontal()?c*r>l*i?l/r:c/i:c*i<l*r?c/r:l/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:l}=i,c=o.offset,d=this.isHorizontal(),m=this.ticks.length+(c?1:0),v=Zl(o),b=[],y=l.setContext(this.getContext()),S=y.display?y.width:0,x=S/2,M=function(T){return Na(r,T,S)};let w,E,O,z,_,I,A,N,D,L,q,H;if(a==="top")w=M(this.bottom),I=this.bottom-v,N=w-x,L=M(t.top)+x,H=t.bottom;else if(a==="bottom")w=M(this.top),L=t.top,H=M(t.bottom)-x,I=w+x,N=this.top+v;else if(a==="left")w=M(this.right),_=this.right-v,A=w-x,D=M(t.left)+x,q=t.right;else if(a==="right")w=M(this.left),D=t.left,q=M(t.right)-x,_=w+x,A=this.left+v;else if(n==="x"){if(a==="center")w=M((t.top+t.bottom)/2+.5);else if(sn(a)){const T=Object.keys(a)[0],j=a[T];w=M(this.chart.scales[T].getPixelForValue(j))}L=t.top,H=t.bottom,I=w+x,N=I+v}else if(n==="y"){if(a==="center")w=M((t.left+t.right)/2);else if(sn(a)){const T=Object.keys(a)[0],j=a[T];w=M(this.chart.scales[T].getPixelForValue(j))}_=w-x,A=_-v,D=t.left,q=t.right}const B=en(i.ticks.maxTicksLimit,m),F=Math.max(1,Math.ceil(m/B));for(E=0;E<m;E+=F){const T=this.getContext(E),j=o.setContext(T),G=l.setContext(T),k=j.lineWidth,P=j.color,U=G.dash||[],V=G.dashOffset,R=j.tickWidth,X=j.tickColor,Y=j.tickBorderDash||[],Q=j.tickBorderDashOffset;O=Fte(this,E,c),O!==void 0&&(z=Na(r,O,k),d?_=A=D=q=z:I=N=L=H=z,b.push({tx1:_,ty1:I,tx2:A,ty2:N,x1:D,y1:L,x2:q,y2:H,width:k,color:P,borderDash:U,borderDashOffset:V,tickWidth:R,tickColor:X,tickBorderDash:Y,tickBorderDashOffset:Q}))}return this._ticksLength=m,this._borderValue=w,b}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,a=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:f,mirror:m}=o,v=Zl(r.grid),b=v+f,y=m?-f:b,S=-Qo(this.labelRotation),x=[];let M,w,E,O,z,_,I,A,N,D,L,q,H="middle";if(i==="top")_=this.bottom-y,I=this._getXAxisLabelAlignment();else if(i==="bottom")_=this.top+y,I=this._getXAxisLabelAlignment();else if(i==="left"){const F=this._getYAxisLabelAlignment(v);I=F.textAlign,z=F.x}else if(i==="right"){const F=this._getYAxisLabelAlignment(v);I=F.textAlign,z=F.x}else if(n==="x"){if(i==="center")_=(t.top+t.bottom)/2+b;else if(sn(i)){const F=Object.keys(i)[0],T=i[F];_=this.chart.scales[F].getPixelForValue(T)+b}I=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")z=(t.left+t.right)/2-b;else if(sn(i)){const F=Object.keys(i)[0],T=i[F];z=this.chart.scales[F].getPixelForValue(T)}I=this._getYAxisLabelAlignment(v).textAlign}n==="y"&&(c==="start"?H="top":c==="end"&&(H="bottom"));const B=this._getLabelSizes();for(M=0,w=l.length;M<w;++M){E=l[M],O=E.label;const F=o.setContext(this.getContext(M));A=this.getPixelForTick(M)+o.labelOffset,N=this._resolveTickFontOptions(M),D=N.lineHeight,L=Qn(O)?O.length:1;const T=L/2,j=F.color,G=F.textStrokeColor,k=F.textStrokeWidth;let P=I;a?(z=A,I==="inner"&&(M===w-1?P=this.options.reverse?"left":"right":M===0?P=this.options.reverse?"right":"left":P="center"),i==="top"?d==="near"||S!==0?q=-L*D+D/2:d==="center"?q=-B.highest.height/2-T*D+D:q=-B.highest.height+D/2:d==="near"||S!==0?q=D/2:d==="center"?q=B.highest.height/2-T*D:q=B.highest.height-L*D,m&&(q*=-1),S!==0&&!F.showLabelBackdrop&&(z+=D/2*Math.sin(S))):(_=A,q=(1-L)*D/2);let U;if(F.showLabelBackdrop){const V=Jr(F.backdropPadding),R=B.heights[M],X=B.widths[M];let Y=q-V.top,Q=0-V.left;switch(H){case"middle":Y-=R/2;break;case"bottom":Y-=R;break}switch(I){case"center":Q-=X/2;break;case"right":Q-=X;break;case"inner":M===w-1?Q-=X:M>0&&(Q-=X/2);break}U={left:Q,top:Y,width:X+V.width,height:R+V.height,color:F.backdropColor}}x.push({label:O,font:N,textOffset:q,options:{rotation:S,color:j,strokeColor:G,strokeWidth:k,textAlign:P,textBaseline:H,translation:[z,_],backdrop:U}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Qo(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),l=t+o,c=a.widest.width;let d,f;return n==="left"?i?(f=this.right+o,r==="near"?d="left":r==="center"?(d="center",f+=c/2):(d="right",f+=c)):(f=this.right-l,r==="near"?d="right":r==="center"?(d="center",f-=c/2):(d="left",f=this.left)):n==="right"?i?(f=this.left+o,r==="near"?d="right":r==="center"?(d="center",f-=c/2):(d="left",f-=c)):(f=this.left+l,r==="near"?d="left":r==="center"?(d="center",f+=c/2):(d="right",f=this.right)):d="right",{textAlign:d,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const l=(c,d,f)=>{!f.width||!f.color||(r.save(),r.lineWidth=f.width,r.strokeStyle=f.color,r.setLineDash(f.borderDash||[]),r.lineDashOffset=f.borderDashOffset,r.beginPath(),r.moveTo(c.x,c.y),r.lineTo(d.x,d.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o<a;++o){const c=i[o];n.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),a=r.display?o.width:0;if(!a)return;const l=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let d,f,m,v;this.isHorizontal()?(d=Na(t,this.left,a)-a/2,f=Na(t,this.right,l)+l/2,m=v=c):(m=Na(t,this.top,a)-a/2,v=Na(t,this.bottom,l)+l/2,d=f=c),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(d,m),n.lineTo(f,v),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&s4(r,i);const o=this.getLabelItems(t);for(const a of o){const l=a.options,c=a.font,d=a.label,f=a.textOffset;ss(r,d,0,f,c,l)}i&&l4(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=yr(r.font),a=Jr(r.padding),l=r.align;let c=o.lineHeight/2;n==="bottom"||n==="center"||sn(n)?(c+=a.bottom,Qn(r.text)&&(c+=o.lineHeight*(r.text.length-1))):c+=a.top;const{titleX:d,titleY:f,maxWidth:m,rotation:v}=Gte(this,c,n,l);ss(t,r.text,0,0,o,{color:r.color,maxWidth:m,rotation:v,textAlign:qte(l,n,i),textBaseline:"middle",translation:[d,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=en(t.grid&&t.grid.z,-1),i=en(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==W2.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o<a;++o){const l=n[o];l[r]===this.id&&(!t||l.type===t)&&i.push(l)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return yr(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Q0{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;Kte(n)&&(r=this.register(n));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,Xte(t,a,r),this.override&&rr.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in rr[i]&&(delete rr[i][r],this.override&&delete as[r])}}function Xte(e,t,n){const r=Yc(Object.create(null),[n?rr.get(n):{},rr.get(t),e.defaults]);rr.set(t,r),e.defaultRoutes&&Yte(t,e.defaultRoutes),e.descriptors&&rr.describe(t,e.descriptors)}function Yte(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),l=a.pop(),c=a.join(".");rr.route(o,i,c,l)})}function Kte(e){return"id"in e&&"defaults"in e}class Qte{constructor(){this.controllers=new Q0(ste,"datasets",!0),this.elements=new Q0(vo,"elements"),this.plugins=new Q0(Object,"plugins"),this.scales=new Q0(W2,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):In(i,a=>{const l=r||this._getRegistryForType(a);this._exec(t,l,a)})})}_exec(t,n,r){const i=Q9(t);Fn(r["before"+i],[],r),n[t](r),Fn(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Mi=new Qte;class Zte{constructor(){this._init=void 0}notify(t,n,r,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),a}_notify(t,n,r,i){i=i||{};for(const o of t){const a=o.plugin,l=a[r],c=[n,i,o.options];if(Fn(l,c,a)===!1&&i.cancelable)return!1}return!0}invalidate(){Vn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=en(r.options&&r.options.plugins,{}),o=Jte(r);return i===!1&&!n?[]:tne(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,a)=>o.filter(l=>!a.some(c=>l.plugin.id===c.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function Jte(e){const t={},n=[],r=Object.keys(Mi.plugins.items);for(let o=0;o<r.length;o++)n.push(Mi.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const a=i[o];n.indexOf(a)===-1&&(n.push(a),t[a.id]=!0)}return{plugins:n,localIds:t}}function ene(e,t){return!t&&e===!1?null:e===!0?{}:e}function tne(e,{plugins:t,localIds:n},r,i){const o=[],a=e.getContext();for(const l of t){const c=l.id,d=ene(r[c],i);d!==null&&o.push({plugin:l,options:nne(e.config,{plugin:l,local:n[c]},d,a)})}return o}function nne(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),a=e.getOptionScopes(r,o);return n&&t.defaults&&a.push(t.defaults),e.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Mf(e,t){const n=rr.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function rne(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function ine(e,t){return e===t?"_index_":"_value_"}function px(e){if(e==="x"||e==="y"||e==="r")return e}function one(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function wf(e,...t){if(px(e))return e;for(const n of t){const r=n.axis||one(n.position)||e.length>1&&px(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function bx(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ane(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return bx(e,"x",n[0])||bx(e,"y",n[0])}return{}}function sne(e,t){const n=as[e.type]||{scales:{}},r=t.scales||{},i=Mf(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const l=r[a];if(!sn(l))return console.error(`Invalid scale configuration for scale: ${a}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const c=wf(a,l,ane(a,e),rr.scales[l.type]),d=ine(c,i),f=n.scales||{};o[a]=$c(Object.create(null),[{axis:c},l,f[c],f[d]])}),e.data.datasets.forEach(a=>{const l=a.type||e.type,c=a.indexAxis||Mf(l,t),f=(as[l]||{}).scales||{};Object.keys(f).forEach(m=>{const v=rne(m,c),b=a[v+"AxisID"]||v;o[b]=o[b]||Object.create(null),$c(o[b],[{axis:v},r[b],f[m]])})}),Object.keys(o).forEach(a=>{const l=o[a];$c(l,[rr.scales[l.type],rr.scale])}),o}function bO(e){const t=e.options||(e.options={});t.plugins=en(t.plugins,{}),t.scales=sne(e,t)}function yO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function lne(e){return e=e||{},e.data=yO(e.data),bO(e),e}const yx=new Map,SO=new Set;function Z0(e,t){let n=yx.get(e);return n||(n=t(),yx.set(e,n),SO.add(n)),n}const Jl=(e,t,n)=>{const r=c5(t,n);r!==void 0&&e.add(r)};class cne{constructor(t){this._config=lne(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=yO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),bO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Z0(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Z0(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Z0(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Z0(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),l=a.get(n);if(l)return l;const c=new Set;n.forEach(f=>{t&&(c.add(t),f.forEach(m=>Jl(c,t,m))),f.forEach(m=>Jl(c,i,m)),f.forEach(m=>Jl(c,as[o]||{},m)),f.forEach(m=>Jl(c,rr,m)),f.forEach(m=>Jl(c,xf,m))});const d=Array.from(c);return d.length===0&&d.push(Object.create(null)),SO.has(n)&&a.set(n,d),d}chartOptionScopes(){const{options:t,type:n}=this;return[t,as[n]||{},rr.datasets[n]||{},{type:n},rr,xf]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:l}=Sx(this._resolverCache,t,i);let c=a;if(dne(a,n)){o.$shared=!1,r=aa(r)?r():r;const d=this.createResolver(t,r,l);c=_2(a,r,d)}for(const d of n)o[d]=c[d];return o}createResolver(t,n,r=[""],i){const{resolver:o}=Sx(this._resolverCache,t,r);return sn(n)?_2(o,n,void 0,i):o}}function Sx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:oh(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},r.set(i,o)),o}const une=e=>sn(e)&&Object.getOwnPropertyNames(e).some(t=>aa(e[t]));function dne(e,t){const{isScriptable:n,isIndexable:r}=eO(e);for(const i of t){const o=n(i),a=r(i),l=(a||o)&&e[i];if(o&&(aa(l)||une(l))||a&&Qn(l))return!0}return!1}var fne="4.5.1";const hne=["top","bottom","left","right","chartArea"];function xx(e,t){return e==="top"||e==="bottom"||hne.indexOf(e)===-1&&t==="x"}function Cx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Mx(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Fn(n&&n.onComplete,[e],t)}function gne(e){const t=e.chart,n=t.options.animation;Fn(n&&n.onProgress,[e],t)}function xO(e){return lh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const _6={},wx=e=>{const t=xO(e);return Object.values(_6).filter(n=>n.canvas===t).pop()};function mne(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function vne(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}class CO{static defaults=rr;static instances=_6;static overrides=as;static registry=Mi;static version=fne;static getChart=wx;static register(...t){Mi.add(...t),zx()}static unregister(...t){Mi.remove(...t),zx()}constructor(t,n){const r=this.config=new cne(n),i=xO(t),o=wx(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Ate(i)),this.platform.updateConfig(r);const l=this.platform.acquireContext(i,a.aspectRatio),c=l&&l.canvas,d=c&&c.height,f=c&&c.width;if(this.id=zJ(),this.ctx=l,this.canvas=c,this.width=f,this.height=d,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zte,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=WJ(m=>this.update(m),a.resizeDelay||0),this._dataChanges=[],_6[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}ro.listen(this,"complete",Mx),ro.listen(this,"progress",gne),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return Vn(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Mi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():KS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return GS(this.canvas,this.ctx),this}stop(){return ro.stop(this),this}resize(t,n){ro.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),l=r.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,KS(this,l,!0)&&(this.notifyPlugins("resize",{size:a}),Fn(r.onResize,[this,a],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};In(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,l)=>(a[l]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const l=n[a],c=wf(a,l),d=c==="r",f=c==="x";return{options:l,dposition:d?"chartArea":f?"bottom":"left",dtype:d?"radialLinear":f?"category":"linear"}}))),In(o,a=>{const l=a.options,c=l.id,d=wf(c,l),f=en(l.type,a.dtype);(l.position===void 0||xx(l.position,d)!==xx(a.dposition))&&(l.position=a.dposition),i[c]=!0;let m=null;if(c in r&&r[c].type===f)m=r[c];else{const v=Mi.getScale(f);m=new v({id:c,type:f,ctx:this.ctx,chart:this}),r[m.id]=m}m.init(l,t)}),In(i,(a,l)=>{a||delete r[l]}),In(r,a=>{X1.configure(this,a,a.options),X1.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(Cx("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let a=this.getDatasetMeta(r);const l=o.type||this.config.type;if(a.type&&a.type!==l&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=l,a.indexAxis=o.indexAxis||Mf(l,this.options),a.order=o.order||0,a.index=r,a.label=""+o.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const c=Mi.getController(l),{datasetElementType:d,dataElementType:f}=rr.datasets[l];Object.assign(c,{dataElementType:Mi.getElement(f),datasetElementType:d&&Mi.getElement(d)}),a.controller=new c(this,r),t.push(a.controller)}}return this._updateMetasets(),t}_resetElements(){In(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let d=0,f=this.data.datasets.length;d<f;d++){const{controller:m}=this.getDatasetMeta(d),v=!i&&o.indexOf(m)===-1;m.buildOrUpdateElements(v),a=Math.max(+m.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),i||In(o,d=>{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Cx("z","_idx"));const{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){In(this.scales,t=>{X1.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!LS(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;mne(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,l)=>l+","+a.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!LS(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;X1.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],In(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,aa(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(ro.has(this)?this.attached&&!ro.running(this)&&ro.start(this):(this.draw(),Mx({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const a=n[i];(!t||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r={meta:t,index:t.index,cancelable:!0},i=uO(this,t);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&s4(n,i),t.controller.draw(),i&&l4(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return so(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=hte.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=da(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);u5(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(l=>l.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),ro.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),GS(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete _6[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,a)=>{n.addEventListener(this,o,a),t[o]=a},i=(o,a,l)=>{o.offsetX=a,o.offsetY=l,this._eventHandler(o)};In(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(c,d)=>{n.addEventListener(this,c,d),t[c]=d},i=(c,d)=>{t[c]&&(n.removeEventListener(this,c,d),delete t[c])},o=(c,d)=>{this.canvas&&this.resize(c,d)};let a;const l=()=>{i("attach",l),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",l)},n.isAttached(this.canvas)?l():a()}unbindEvents(){In(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},In(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,l,c;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){a=t[l];const d=a&&this.getDatasetMeta(a.datasetIndex).controller;d&&d[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:o,index:a})=>{const l=this.getDatasetMeta(o);if(!l)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:l.data[a],index:a}});!s5(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(c,d)=>c.filter(f=>!d.some(m=>f.datasetIndex===m.datasetIndex&&f.index===m.index)),a=o(n,t),l=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,l=this._getActiveElements(t,i,r,a),c=RJ(t),d=vne(t,this._lastEvent,r,c);r&&(this._lastEvent=null,Fn(o.onHover,[t,l,this],this),c&&Fn(o.onClick,[t,l,this],this));const f=!s5(l,i);return(f||n)&&(this._active=l,this._updateHoverStyles(l,i,n)),this._lastEvent=d,f}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}function zx(){return In(CO.instances,e=>e._plugins.invalidate())}function pne(e,t,n){const{startAngle:r,x:i,y:o,outerRadius:a,innerRadius:l,options:c}=t,{borderWidth:d,borderJoinStyle:f}=c,m=Math.min(d/a,Zr(r-n));if(e.beginPath(),e.arc(i,o,a-d/2,r+m/2,n-m/2),l>0){const v=Math.min(d/l,Zr(r-n));e.arc(i,o,l+d/2,n-v/2,r+v/2,!0)}else{const v=Math.min(d/2,a*Zr(r-n));if(f==="round")e.arc(i,o,v,n-Rn/2,r+Rn/2,!0);else if(f==="bevel"){const b=2*v*v,y=-b*Math.cos(n+Rn/2)+i,S=-b*Math.sin(n+Rn/2)+o,x=b*Math.cos(r+Rn/2)+i,M=b*Math.sin(r+Rn/2)+o;e.lineTo(y,S),e.lineTo(x,M)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function bne(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:l,innerRadius:c}=t;let d=i/l;e.beginPath(),e.arc(o,a,l,r-d,n+d),c>i?(d=i/c,e.arc(o,a,c,n+d,r-d,!0)):e.arc(o,a,i,n+br,r-br),e.closePath(),e.clip()}function yne(e){return ih(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Sne(e,t,n,r){const i=yne(e.options.borderRadius),o=(n-t)/2,a=Math.min(o,r*t/2),l=c=>{const d=(n-Math.min(o,c))*r/2;return m1(c,0,Math.min(o,d))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:m1(i.innerStart,0,a),innerEnd:m1(i.innerEnd,0,a)}}function e2(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function v5(e,t,n,r,i,o){const{x:a,y:l,startAngle:c,pixelMargin:d,innerRadius:f}=t,m=Math.max(t.outerRadius+r+n-d,0),v=f>0?f+r+n+d:0;let b=0;const y=i-c;if(r){const F=f>0?f-r:0,T=m>0?m-r:0,j=(F+T)/2,G=j!==0?y*j/(j+r):y;b=(y-G)/2}const S=Math.max(.001,y*m-n/Rn)/m,x=(y-S)/2,M=c+x+b,w=i-x-b,{outerStart:E,outerEnd:O,innerStart:z,innerEnd:_}=Sne(t,v,m,w-M),I=m-E,A=m-O,N=M+E/I,D=w-O/A,L=v+z,q=v+_,H=M+z/L,B=w-_/q;if(e.beginPath(),o){const F=(N+D)/2;if(e.arc(a,l,m,N,F),e.arc(a,l,m,F,D),O>0){const k=e2(A,D,a,l);e.arc(k.x,k.y,O,D,w+br)}const T=e2(q,w,a,l);if(e.lineTo(T.x,T.y),_>0){const k=e2(q,B,a,l);e.arc(k.x,k.y,_,w+br,B+Math.PI)}const j=(w-_/v+(M+z/v))/2;if(e.arc(a,l,v,w-_/v,j,!0),e.arc(a,l,v,j,M+z/v,!0),z>0){const k=e2(L,H,a,l);e.arc(k.x,k.y,z,H+Math.PI,M-br)}const G=e2(I,M,a,l);if(e.lineTo(G.x,G.y),E>0){const k=e2(I,N,a,l);e.arc(k.x,k.y,E,M-br,N)}}else{e.moveTo(a,l);const F=Math.cos(N)*m+a,T=Math.sin(N)*m+l;e.lineTo(F,T);const j=Math.cos(D)*m+a,G=Math.sin(D)*m+l;e.lineTo(j,G)}e.closePath()}function xne(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:l}=t;let c=t.endAngle;if(o){v5(e,t,n,r,c,i);for(let d=0;d<o;++d)e.fill();isNaN(l)||(c=a+(l%gr||gr))}return v5(e,t,n,r,c,i),e.fill(),c}function Cne(e,t,n,r,i){const{fullCircles:o,startAngle:a,circumference:l,options:c}=t,{borderWidth:d,borderJoinStyle:f,borderDash:m,borderDashOffset:v,borderRadius:b}=c,y=c.borderAlign==="inner";if(!d)return;e.setLineDash(m||[]),e.lineDashOffset=v,y?(e.lineWidth=d*2,e.lineJoin=f||"round"):(e.lineWidth=d,e.lineJoin=f||"bevel");let S=t.endAngle;if(o){v5(e,t,n,r,S,i);for(let x=0;x<o;++x)e.stroke();isNaN(l)||(S=a+(l%gr||gr))}y&&bne(e,t,S),c.selfJoin&&S-a>=Rn&&b===0&&f!=="miter"&&pne(e,t,S),o||(v5(e,t,n,r,S,i),e.stroke())}class Mne extends vo{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:a}=GE(i,{x:t,y:n}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:f,circumference:m}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),v=(this.options.spacing+this.options.borderWidth)/2,b=en(m,c-l),y=J9(o,l,c)&&l!==c,S=b>=gr||y,x=ao(a,d+v,f+v);return S&&x}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:c,spacing:d}=this.options,f=(i+o)/2,m=(a+l+d+c)/2;return{x:n+Math.cos(f)*m,y:r+Math.sin(f)*m}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,a=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>gr?Math.floor(r/gr):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const l=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Rn,r||0)),d=i*c;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,xne(t,this,d,o,a),Cne(t,this,d,o,a),t.restore()}}function MO(e,t,n=t){e.lineCap=en(n.borderCapStyle,t.borderCapStyle),e.setLineDash(en(n.borderDash,t.borderDash)),e.lineDashOffset=en(n.borderDashOffset,t.borderDashOffset),e.lineJoin=en(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=en(n.borderWidth,t.borderWidth),e.strokeStyle=en(n.borderColor,t.borderColor)}function wne(e,t,n){e.lineTo(n.x,n.y)}function zne(e){return e.stepped?ree:e.tension||e.cubicInterpolationMode==="monotone"?iee:wne}function wO(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:l}=t,c=Math.max(i,a),d=Math.min(o,l),f=i<a&&o<a||i>l&&o>l;return{count:r,start:c,loop:t.loop,ilen:d<c&&!f?r+d-c:d-c}}function $ne(e,t,n,r){const{points:i,options:o}=t,{count:a,start:l,loop:c,ilen:d}=wO(i,n,r),f=zne(o);let{move:m=!0,reverse:v}=r||{},b,y,S;for(b=0;b<=d;++b)y=i[(l+(v?d-b:b))%a],!y.skip&&(m?(e.moveTo(y.x,y.y),m=!1):f(e,S,y,v,o.stepped),S=y);return c&&(y=i[(l+(v?d:0))%a],f(e,S,y,v,o.stepped)),!!c}function Ene(e,t,n,r){const i=t.points,{count:o,start:a,ilen:l}=wO(i,n,r),{move:c=!0,reverse:d}=r||{};let f=0,m=0,v,b,y,S,x,M;const w=O=>(a+(d?l-O:O))%o,E=()=>{S!==x&&(e.lineTo(f,x),e.lineTo(f,S),e.lineTo(f,M))};for(c&&(b=i[w(0)],e.moveTo(b.x,b.y)),v=0;v<=l;++v){if(b=i[w(v)],b.skip)continue;const O=b.x,z=b.y,_=O|0;_===y?(z<S?S=z:z>x&&(x=z),f=(m*f+O)/++m):(E(),e.lineTo(O,z),y=_,m=0,S=x=z),M=z}E()}function zf(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Ene:$ne}function One(e){return e.stepped?Dee:e.tension||e.cubicInterpolationMode==="monotone"?jee:ka}function _ne(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),MO(e,t.options),e.stroke(i)}function Ine(e,t,n,r){const{segments:i,options:o}=t,a=zf(t);for(const l of i)MO(e,o,l.style),e.beginPath(),a(e,t,l,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Rne=typeof Path2D=="function";function Tne(e,t,n,r){Rne&&!t.options.segment?_ne(e,t,n,r):Ine(e,t,n,r)}class d4 extends vo{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Oee(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Vee(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=cO(this,{property:n,start:i,end:i});if(!a.length)return;const l=[],c=One(r);let d,f;for(d=0,f=a.length;d<f;++d){const{start:m,end:v}=a[d],b=o[m],y=o[v];if(b===y){l.push(b);continue}const S=Math.abs((i-b[n])/(y[n]-b[n])),x=c(b,y,S,r.stepped);x[n]=t[n],l.push(x)}return l.length===1?l[0]:l}pathSegment(t,n,r){return zf(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=zf(this);let a=this._loop;n=n||0,r=r||this.points.length-n;for(const l of i)a&=o(t,this,l,{start:n,end:n+r-1});return!!a}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Tne(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function $x(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class Pne extends vo{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return $x(this,t,"x",n)}inYRange(t,n){return $x(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!so(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Cf(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function zO(e,t){const{x:n,y:r,base:i,width:o,height:a}=e.getProps(["x","y","base","width","height"],t);let l,c,d,f,m;return e.horizontal?(m=a/2,l=Math.min(n,i),c=Math.max(n,i),d=r-m,f=r+m):(m=o/2,l=n-m,c=n+m,d=Math.min(r,i),f=Math.max(r,i)),{left:l,top:d,right:c,bottom:f}}function Jo(e,t,n,r){return e?0:m1(t,n,r)}function Ane(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=JE(r);return{t:Jo(i.top,o.top,0,n),r:Jo(i.right,o.right,0,t),b:Jo(i.bottom,o.bottom,0,n),l:Jo(i.left,o.left,0,t)}}function Nne(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=Ya(i),a=Math.min(t,n),l=e.borderSkipped,c=r||sn(i);return{topLeft:Jo(!c||l.top||l.left,o.topLeft,0,a),topRight:Jo(!c||l.top||l.right,o.topRight,0,a),bottomLeft:Jo(!c||l.bottom||l.left,o.bottomLeft,0,a),bottomRight:Jo(!c||l.bottom||l.right,o.bottomRight,0,a)}}function Dne(e){const t=zO(e),n=t.right-t.left,r=t.bottom-t.top,i=Ane(e,n/2,r/2),o=Nne(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function R7(e,t,n,r){const i=t===null,o=n===null,l=e&&!(i&&o)&&zO(e,r);return l&&(i||ao(t,l.left,l.right))&&(o||ao(n,l.top,l.bottom))}function jne(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Lne(e,t){e.rect(t.x,t.y,t.w,t.h)}function T7(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,a=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+a,radius:e.radius}}class Bne extends vo{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:a}=Dne(this),l=jne(a.radius)?Kc:Lne;t.save(),(a.w!==o.w||a.h!==o.h)&&(t.beginPath(),l(t,T7(a,n,o)),t.clip(),l(t,T7(o,-n,a)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),l(t,T7(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return R7(this,t,n,r)}inXRange(t,n){return R7(this,t,null,n)}inYRange(t,n){return R7(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}function Hne(e,t,n){const r=e.segments,i=e.points,o=t.points,a=[];for(const l of r){let{start:c,end:d}=l;d=f4(c,d,i);const f=$f(n,i[c],i[d],l.loop);if(!t.segments){a.push({source:l,target:f,start:i[c],end:i[d]});continue}const m=cO(t,f);for(const v of m){const b=$f(n,o[v.start],o[v.end],v.loop),y=lO(l,i,b);for(const S of y)a.push({source:S,target:v,start:{[n]:Ex(f,b,"start",Math.max)},end:{[n]:Ex(f,b,"end",Math.min)}})}}return a}function $f(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Zr(i),o=Zr(o)),{property:e,start:i,end:o}}function kne(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:a,end:l})=>{l=f4(a,l,i);const c=i[a],d=i[l];r!==null?(o.push({x:c.x,y:r}),o.push({x:d.x,y:r})):n!==null&&(o.push({x:n,y:c.y}),o.push({x:n,y:d.y}))}),o}function f4(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function Ex(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function $O(e,t){let n=[],r=!1;return Qn(e)?(r=!0,n=e):n=kne(e,t),n.length?new d4({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Ox(e){return e&&e.fill!==!1}function Fne(e,t,n){let i=e[t].fill;const o=[t];let a;if(!n)return i;for(;i!==!1&&o.indexOf(i)===-1;){if(!Ir(i))return i;if(a=e[i],!a)return!1;if(a.visible)return i;o.push(i),i=a.fill}return!1}function Vne(e,t,n){const r=Gne(e);if(sn(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return Ir(i)&&Math.floor(i)===i?Wne(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Wne(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function Une(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:sn(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function qne(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:sn(e)?r=e.value:r=t.getBaseValue(),r}function Gne(e){const t=e.options,n=t.fill;let r=en(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function Xne(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,a=r.points,l=Yne(t,n);l.push($O({x:null,y:t.bottom},r));for(let c=0;c<o.length;c++){const d=o[c];for(let f=d.start;f<=d.end;f++)Kne(i,a[f],l)}return new d4({points:i,options:{}})}function Yne(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function Kne(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:l,point:c}=Qne(o,t,"x");if(!(!c||a&&l)){if(a)r.unshift(c);else if(e.push(c),!l)break}}e.push(...r)}function Qne(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,a=e.points;let l=!1,c=!1;for(let d=0;d<o.length;d++){const f=o[d],m=a[f.start][n],v=a[f.end][n];if(ao(i,m,v)){l=i===m,c=i===v;break}}return{first:l,last:c,point:r}}class EO{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:a}=this;return n=n||{start:0,end:gr},t.arc(i,o,a,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function Zne(e){const{chart:t,fill:n,line:r}=e;if(Ir(n))return Jne(t,n);if(n==="stack")return Xne(e);if(n==="shape")return!0;const i=ere(e);return i instanceof EO?i:$O(i,r)}function Jne(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function ere(e){return(e.scale||{}).getPointPositionForValue?nre(e):tre(e)}function tre(e){const{scale:t={},fill:n}=e,r=Une(n,t);if(Ir(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function nre(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,a=qne(n,t,o),l=[];if(r.grid.circular){const c=t.getPointPositionForValue(0,o);return new EO({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(a)})}for(let c=0;c<i;++c)l.push(t.getPointPositionForValue(c,a));return l}function P7(e,t,n){const r=Zne(t),{chart:i,index:o,line:a,scale:l,axis:c}=t,d=a.options,f=d.fill,m=d.backgroundColor,{above:v=m,below:b=m}=f||{},y=i.getDatasetMeta(o),S=uO(i,y);r&&a.points.length&&(s4(e,n),rre(e,{line:a,target:r,above:v,below:b,area:n,scale:l,axis:c,clip:S}),l4(e))}function rre(e,t){const{line:n,target:r,above:i,below:o,area:a,scale:l,clip:c}=t,d=n._loop?"angle":t.axis;e.save();let f=o;o!==i&&(d==="x"?(_x(e,r,a.top),A7(e,{line:n,target:r,color:i,scale:l,property:d,clip:c}),e.restore(),e.save(),_x(e,r,a.bottom)):d==="y"&&(Ix(e,r,a.left),A7(e,{line:n,target:r,color:o,scale:l,property:d,clip:c}),e.restore(),e.save(),Ix(e,r,a.right),f=i)),A7(e,{line:n,target:r,color:f,scale:l,property:d,clip:c}),e.restore()}function _x(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const l of r){const{start:c,end:d}=l,f=i[c],m=i[f4(c,d,i)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(f.x,n),e.lineTo(f.x,f.y)),a=!!t.pathSegment(e,l,{move:a}),a?e.closePath():e.lineTo(m.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function Ix(e,t,n){const{segments:r,points:i}=t;let o=!0,a=!1;e.beginPath();for(const l of r){const{start:c,end:d}=l,f=i[c],m=i[f4(c,d,i)];o?(e.moveTo(f.x,f.y),o=!1):(e.lineTo(n,f.y),e.lineTo(f.x,f.y)),a=!!t.pathSegment(e,l,{move:a}),a?e.closePath():e.lineTo(n,m.y)}e.lineTo(n,t.first().y),e.closePath(),e.clip()}function A7(e,t){const{line:n,target:r,property:i,color:o,scale:a,clip:l}=t,c=Hne(n,r,i);for(const{source:d,target:f,start:m,end:v}of c){const{style:{backgroundColor:b=o}={}}=d,y=r!==!0;e.save(),e.fillStyle=b,ire(e,a,l,y&&$f(i,m,v)),e.beginPath();const S=!!n.pathSegment(e,d);let x;if(y){S?e.closePath():Rx(e,r,v,i);const M=!!r.pathSegment(e,f,{move:S,reverse:!0});x=S&&M,x||Rx(e,r,m,i)}e.closePath(),e.fill(x?"evenodd":"nonzero"),e.restore()}}function ire(e,t,n,r){const i=t.chart.chartArea,{property:o,start:a,end:l}=r||{};if(o==="x"||o==="y"){let c,d,f,m;o==="x"?(c=a,d=i.top,f=l,m=i.bottom):(c=i.left,d=a,f=i.right,m=l),e.beginPath(),n&&(c=Math.max(c,n.left),f=Math.min(f,n.right),d=Math.max(d,n.top),m=Math.min(m,n.bottom)),e.rect(c,d,f-c,m-d),e.clip()}}function Rx(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var ore={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,a,l,c;for(a=0;a<r;++a)o=e.getDatasetMeta(a),l=o.dataset,c=null,l&&l.options&&l instanceof d4&&(c={visible:e.isDatasetVisible(a),index:a,fill:Vne(l,a,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:l}),o.$filler=c,i.push(c);for(a=0;a<r;++a)c=i[a],!(!c||c.fill===!1)&&(c.fill=Fne(i,a,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let a=i.length-1;a>=0;--a){const l=i[a].$filler;l&&(l.line.updateControlPoints(o,l.axis),r&&l.fill&&P7(e.ctx,l,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;Ox(o)&&P7(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!Ox(r)||n.drawTime!=="beforeDatasetDraw"||P7(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Tx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},are=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Px extends vo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Fn(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=yr(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=Tx(r,o);let d,f;n.font=i.string,this.isHorizontal()?(d=this.maxWidth,f=this._fitRows(a,o,l,c)+10):(f=this.maxHeight,d=this._fitCols(a,i,l,c)+10),this.width=Math.min(d,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],f=i+l;let m=t;o.textAlign="left",o.textBaseline="middle";let v=-1,b=-f;return this.legendItems.forEach((y,S)=>{const x=r+n/2+o.measureText(y.text).width;(S===0||d[d.length-1]+x+2*l>a)&&(m+=f,d[d.length-(S>0?0:1)]=0,b+=f,v++),c[S]={left:0,top:b,row:v,width:x,height:i},d[d.length-1]+=x+l}),m}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],f=a-t;let m=l,v=0,b=0,y=0,S=0;return this.legendItems.forEach((x,M)=>{const{itemWidth:w,itemHeight:E}=sre(r,n,o,x,i);M>0&&b+E+2*l>f&&(m+=v+l,d.push({width:v,height:b}),y+=v+l,S++,v=b=0),c[M]={left:y,top:b,col:S,width:w,height:E},v=Math.max(v,w),b+=E+l}),m+=v,d.push({width:v,height:b}),m}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=f2(o,this.left,this.width);if(this.isHorizontal()){let l=0,c=Yr(r,this.left+i,this.right-this.lineWidths[l]);for(const d of n)l!==d.row&&(l=d.row,c=Yr(r,this.left+i,this.right-this.lineWidths[l])),d.top+=this.top+t+i,d.left=a.leftForLtr(a.x(c),d.width),c+=d.width+i}else{let l=0,c=Yr(r,this.top+t+i,this.bottom-this.columnSizes[l].height);for(const d of n)d.col!==l&&(l=d.col,c=Yr(r,this.top+t+i,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+i,d.left=a.leftForLtr(a.x(d.left),d.width),c+=d.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;s4(t,this),this._draw(),l4(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,l=rr.color,c=f2(t.rtl,this.left,this.width),d=yr(a.font),{padding:f}=a,m=d.size,v=m/2;let b;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=d.string;const{boxWidth:y,boxHeight:S,itemHeight:x}=Tx(a,m),M=function(_,I,A){if(isNaN(y)||y<=0||isNaN(S)||S<0)return;i.save();const N=en(A.lineWidth,1);if(i.fillStyle=en(A.fillStyle,l),i.lineCap=en(A.lineCap,"butt"),i.lineDashOffset=en(A.lineDashOffset,0),i.lineJoin=en(A.lineJoin,"miter"),i.lineWidth=N,i.strokeStyle=en(A.strokeStyle,l),i.setLineDash(en(A.lineDash,[])),a.usePointStyle){const D={radius:S*Math.SQRT2/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:N},L=c.xPlus(_,y/2),q=I+v;ZE(i,D,L,q,a.pointStyleWidth&&y)}else{const D=I+Math.max((m-S)/2,0),L=c.leftForLtr(_,y),q=Ya(A.borderRadius);i.beginPath(),Object.values(q).some(H=>H!==0)?Kc(i,{x:L,y:D,w:y,h:S,radius:q}):i.rect(L,D,y,S),i.fill(),N!==0&&i.stroke()}i.restore()},w=function(_,I,A){ss(i,A.text,_,I+x/2,d,{strikethrough:A.hidden,textAlign:c.textAlign(A.textAlign)})},E=this.isHorizontal(),O=this._computeTitleHeight();E?b={x:Yr(o,this.left+f,this.right-r[0]),y:this.top+f+O,line:0}:b={x:this.left+f,y:Yr(o,this.top+O+f,this.bottom-n[0].height),line:0},oO(this.ctx,t.textDirection);const z=x+f;this.legendItems.forEach((_,I)=>{i.strokeStyle=_.fontColor,i.fillStyle=_.fontColor;const A=i.measureText(_.text).width,N=c.textAlign(_.textAlign||(_.textAlign=a.textAlign)),D=y+v+A;let L=b.x,q=b.y;c.setWidth(this.width),E?I>0&&L+D+f>this.right&&(q=b.y+=z,b.line++,L=b.x=Yr(o,this.left+f,this.right-r[b.line])):I>0&&q+z>this.bottom&&(L=b.x=L+n[b.line].width+f,b.line++,q=b.y=Yr(o,this.top+O+f,this.bottom-n[b.line].height));const H=c.x(L);if(M(H,q,_),L=UJ(N,L+y+v,E?L+D:this.right,t.rtl),w(c.x(L),q,_),E)b.x+=D+f;else if(typeof _.text!="string"){const B=d.lineHeight;b.y+=OO(_,B)+f}else b.y+=z}),aO(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=yr(n.font),i=Jr(n.padding);if(!n.display)return;const o=f2(t.rtl,this.left,this.width),a=this.ctx,l=n.position,c=r.size/2,d=i.top+c;let f,m=this.left,v=this.width;if(this.isHorizontal())v=Math.max(...this.lineWidths),f=this.top+d,m=Yr(t.align,m,this.right-v);else{const y=this.columnSizes.reduce((S,x)=>Math.max(S,x.height),0);f=d+Yr(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const b=Yr(l,m,m+v);a.textAlign=o.textAlign(th(l)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,ss(a,n.text,b,f,r)}_computeTitleHeight(){const t=this.options.title,n=yr(t.font),r=Jr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(ao(t,this.left,this.right)&&ao(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],ao(t,i.left,i.left+i.width)&&ao(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!ure(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=are(i,r);i&&!o&&Fn(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Fn(n.onHover,[t,r,this],this)}else r&&Fn(n.onClick,[t,r,this],this)}}function sre(e,t,n,r,i){const o=lre(r,e,t,n),a=cre(i,r,t.lineHeight);return{itemWidth:o,itemHeight:a}}function lre(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,a)=>o.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function cre(e,t,n){let r=e;return typeof t.text!="string"&&(r=OO(t,n)),r}function OO(e,t){const n=e.text?e.text.length:0;return t*n}function ure(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var dre={id:"legend",_element:Px,start(e,t,n){const r=e.legend=new Px({ctx:e.ctx,options:n,chart:e});X1.configure(e,r,n),X1.addBox(e,r)},stop(e){X1.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;X1.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{const d=c.controller.getStyle(n?0:void 0),f=Jr(d.borderWidth);return{text:t[c.index].label,fillStyle:d.backgroundColor,fontColor:o,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:d.borderColor,pointStyle:r||d.pointStyle,rotation:d.rotation,textAlign:i||d.textAlign,borderRadius:a&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class _O extends vo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Qn(r.text)?r.text.length:1;this._padding=Jr(r.padding);const o=i*yr(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,l=a.align;let c=0,d,f,m;return this.isHorizontal()?(f=Yr(l,r,o),m=n+t,d=o-r):(a.position==="left"?(f=r+t,m=Yr(l,i,n),c=Rn*-.5):(f=o-t,m=Yr(l,n,i),c=Rn*.5),d=i-n),{titleX:f,titleY:m,maxWidth:d,rotation:c}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=yr(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(o);ss(t,n.text,0,0,r,{color:n.color,maxWidth:c,rotation:d,textAlign:th(n.align),textBaseline:"middle",translation:[a,l]})}}function fre(e,t){const n=new _O({ctx:e.ctx,options:t,chart:e});X1.configure(e,n,t),X1.addBox(e,n),e.titleBlock=n}var hre={id:"title",_element:_O,start(e,t,n){fre(e,n)},stop(e){const t=e.titleBlock;X1.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;X1.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const yc={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){const l=e[t].element;if(l&&l.hasValue()){const c=l.tooltipPosition();r.add(c.x),i+=c.y,++o}}return o===0||r.size===0?!1:{x:[...r].reduce((l,c)=>l+c)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,l;for(o=0,a=e.length;o<a;++o){const c=e[o].element;if(c&&c.hasValue()){const d=c.getCenterPoint(),f=yf(t,d);f<i&&(i=f,l=c)}}if(l){const c=l.tooltipPosition();n=c.x,r=c.y}return{x:n,y:r}}};function Ci(e,t){return t&&(Qn(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function io(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
391
391
|
`)>-1?e.split(`
|
|
392
|
-
`):e}function gre(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:l}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Ax(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:l}=t,c=yr(t.bodyFont),d=yr(t.titleFont),f=yr(t.footerFont),m=o.length,v=i.length,b=r.length,y=Jr(t.padding);let S=y.height,x=0,M=r.reduce((O,z)=>O+z.before.length+z.lines.length+z.after.length,0);if(M+=e.beforeBody.length+e.afterBody.length,m&&(S+=m*d.lineHeight+(m-1)*t.titleSpacing+t.titleMarginBottom),M){const O=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;S+=b*O+(M-b)*c.lineHeight+(M-1)*t.bodySpacing}v&&(S+=t.footerMarginTop+v*f.lineHeight+(v-1)*t.footerSpacing);let w=0;const E=function(O){x=Math.max(x,n.measureText(O).width+w)};return n.save(),n.font=d.string,In(e.title,E),n.font=c.string,In(e.beforeBody.concat(e.afterBody),E),w=t.displayColors?a+2+t.boxPadding:0,In(r,O=>{In(O.before,E),In(O.lines,E),In(O.after,E)}),w=0,n.font=f.string,In(e.footer,E),n.restore(),x+=y.width,{width:x,height:S}}function mre(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function vre(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function pre(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:l,right:c}}=e;let d="center";return r==="center"?d=i<=(l+c)/2?"left":"right":i<=o/2?d="left":i>=a-o/2&&(d="right"),vre(d,e,t,n)&&(d="center"),d}function Nx(e,t,n){const r=n.yAlign||t.yAlign||mre(e,n);return{xAlign:n.xAlign||t.xAlign||pre(e,t,n,r),yAlign:r}}function bre(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function yre(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Dx(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:l,yAlign:c}=n,d=i+o,{topLeft:f,topRight:m,bottomLeft:v,bottomRight:b}=Ya(a);let y=bre(t,l);const S=yre(t,c,d);return c==="center"?l==="left"?y+=d:l==="right"&&(y-=d):l==="left"?y-=Math.max(f,v)+i:l==="right"&&(y+=Math.max(m,b)+i),{x:m1(y,0,r.width-t.width),y:m1(S,0,r.height-t.height)}}function J0(e,t,n){const r=Jr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function jx(e){return Ci([],io(e))}function Sre(e,t,n){return da(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Lx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const IO={beforeTitle:to,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:to,beforeBody:to,beforeLabel:to,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Vn(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:to,afterBody:to,beforeFooter:to,footer:to,afterFooter:to};function h1(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?IO[t].call(n,r):i}class Bx extends vo{static positioners=yc;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new dO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Sre(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=h1(r,"beforeTitle",this,t),o=h1(r,"title",this,t),a=h1(r,"afterTitle",this,t);let l=[];return l=Ci(l,io(i)),l=Ci(l,io(o)),l=Ci(l,io(a)),l}getBeforeBody(t,n){return jx(h1(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return In(t,o=>{const a={before:[],lines:[],after:[]},l=Lx(r,o);Ci(a.before,io(h1(l,"beforeLabel",this,o))),Ci(a.lines,h1(l,"label",this,o)),Ci(a.after,io(h1(l,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return jx(h1(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=h1(r,"beforeFooter",this,t),o=h1(r,"footer",this,t),a=h1(r,"afterFooter",this,t);let l=[];return l=Ci(l,io(i)),l=Ci(l,io(o)),l=Ci(l,io(a)),l}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let l=[],c,d;for(c=0,d=n.length;c<d;++c)l.push(gre(this.chart,n[c]));return t.filter&&(l=l.filter((f,m,v)=>t.filter(f,m,v,r))),t.itemSort&&(l=l.sort((f,m)=>t.itemSort(f,m,r))),In(l,f=>{const m=Lx(t.callbacks,f);i.push(h1(m,"labelColor",this,f)),o.push(h1(m,"labelPointStyle",this,f)),a.push(h1(m,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const l=yc[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=Ax(this,r),d=Object.assign({},l,c),f=Nx(this.chart,r,d),m=Dx(r,d,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:m}=Ya(l),{x:v,y:b}=t,{width:y,height:S}=n;let x,M,w,E,O,z;return o==="center"?(O=b+S/2,i==="left"?(x=v,M=x-a,E=O+a,z=O-a):(x=v+y,M=x+a,E=O-a,z=O+a),w=x):(i==="left"?M=v+Math.max(c,f)+a:i==="right"?M=v+y-Math.max(d,m)-a:M=this.caretX,o==="top"?(E=b,O=E-a,x=M-a,w=M+a):(E=b+S,O=E+a,x=M+a,w=M-a),z=E),{x1:x,x2:M,x3:w,y1:E,y2:O,y3:z}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,l,c;if(o){const d=f2(r.rtl,this.x,this.width);for(t.x=J0(this,r.titleAlign,r),n.textAlign=d.textAlign(r.titleAlign),n.textBaseline="middle",a=yr(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,c=0;c<o;++c)n.fillText(i[c],d.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+l,c+1===o&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=o,f=yr(o.bodyFont),m=J0(this,"left",o),v=i.x(m),b=c<f.lineHeight?(f.lineHeight-c)/2:0,y=n.y+b;if(o.usePointStyle){const S={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},x=i.leftForLtr(v,d)+d/2,M=y+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Cf(t,S,x,M),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Cf(t,S,x,M)}else{t.lineWidth=sn(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const S=i.leftForLtr(v,d),x=i.leftForLtr(i.xPlus(v,1),d-2),M=Ya(a.borderRadius);Object.values(M).some(w=>w!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Kc(t,{x:S,y,w:d,h:c,radius:M}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Kc(t,{x,y:y+1,w:d-2,h:c-2,radius:M}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(S,y,d,c),t.strokeRect(S,y,d,c),t.fillStyle=a.backgroundColor,t.fillRect(x,y+1,d-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:f}=r,m=yr(r.bodyFont);let v=m.lineHeight,b=0;const y=f2(r.rtl,this.x,this.width),S=function(A){n.fillText(A,y.x(t.x+b),t.y+v/2),t.y+=v+o},x=y.textAlign(a);let M,w,E,O,z,_,I;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,t.x=J0(this,x,r),n.fillStyle=r.bodyColor,In(this.beforeBody,S),b=l&&x!=="right"?a==="center"?d/2+f:d+2+f:0,O=0,_=i.length;O<_;++O){for(M=i[O],w=this.labelTextColors[O],n.fillStyle=w,In(M.before,S),E=M.lines,l&&E.length&&(this._drawColorBox(n,t,O,y,r),v=Math.max(m.lineHeight,c)),z=0,I=E.length;z<I;++z)S(E[z]),v=m.lineHeight;In(M.after,S)}b=0,v=m.lineHeight,In(this.afterBody,S),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,l;if(o){const c=f2(r.rtl,this.x,this.width);for(t.x=J0(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",a=yr(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:l,y:c}=t,{width:d,height:f}=r,{topLeft:m,topRight:v,bottomLeft:b,bottomRight:y}=Ya(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(l+m,c),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(l+d-v,c),n.quadraticCurveTo(l+d,c,l+d,c+v),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(l+d,c+f-y),n.quadraticCurveTo(l+d,c+f,l+d-y,c+f),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(l+b,c+f),n.quadraticCurveTo(l,c+f,l,c+f-b),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(l,c+m),n.quadraticCurveTo(l,c,l+m,c),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=yc[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=Ax(this,t),c=Object.assign({},a,this._size),d=Nx(n,t,c),f=Dx(t,c,d,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jr(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),oO(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),aO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),o=!s5(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),l=this._positionChanged(a,t),c=n||!s5(a,o)||l;return c&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=yc[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}var xre={id:"tooltip",_element:Bx,positioners:yc,afterInit(e,t,n){n&&(e.tooltip=new Bx({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:IO},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Cre=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Mre(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Cre(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const wre=(e,t)=>e===null?null:m1(Math.round(e),0,t);function Hx(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class zre extends W2{static id="category";static defaults={ticks:{callback:Hx}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Vn(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Mre(r,t,en(n,t),this._addedLabels),wre(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return Hx.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function $re(e,t){const n=[],{bounds:i,step:o,min:a,max:l,precision:c,count:d,maxTicks:f,maxDigits:m,includeBounds:v}=e,b=o||1,y=f-1,{min:S,max:x}=t,M=!Vn(a),w=!Vn(l),E=!Vn(d),O=(x-S)/(m+1);let z=HS((x-S)/y/b)*b,_,I,A,N;if(z<1e-14&&!M&&!w)return[{value:S},{value:x}];N=Math.ceil(x/z)-Math.floor(S/z),N>y&&(z=HS(N*z/y/b)*b),Vn(c)||(_=Math.pow(10,c),z=Math.ceil(z*_)/_),i==="ticks"?(I=Math.floor(S/z)*z,A=Math.ceil(x/z)*z):(I=S,A=x),M&&w&&o&&DJ((l-a)/o,z/1e3)?(N=Math.round(Math.min((l-a)/z,f)),z=(l-a)/N,I=a,A=l):E?(I=M?a:I,A=w?l:A,N=d-1,z=(A-I)/N):(N=(A-I)/z,Ec(N,Math.round(N),z/1e3)?N=Math.round(N):N=Math.ceil(N));const D=Math.max(kS(z),kS(I));_=Math.pow(10,Vn(c)?D:c),I=Math.round(I*_)/_,A=Math.round(A*_)/_;let L=0;for(M&&(v&&I!==a?(n.push({value:a}),I<a&&L++,Ec(Math.round((I+L*z)*_)/_,a,kx(a,O,e))&&L++):I<a&&L++);L<N;++L){const q=Math.round((I+L*z)*_)/_;if(w&&q>l)break;n.push({value:q})}return w&&v&&A!==l?n.length&&Ec(n[n.length-1].value,l,kx(l,O,e))?n[n.length-1].value=l:n.push({value:l}):(!w||A===l)&&n.push({value:A}),n}function kx(e,t,{horizontal:n,minRotation:r}){const i=Qo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Ef extends W2{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Vn(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=c=>i=n?i:c,l=c=>o=r?o:c;if(t){const c=O2(i),d=O2(o);c<0&&d<0?l(0):c>0&&d>0&&a(0)}if(i===o){let c=o===0?1:Math.abs(o*.05);l(o+c),t||a(i-c)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=$re(i,o);return t.bounds==="ticks"&&jJ(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return QE(t,this.chart.options.locale,this.options.ticks.format)}}class Ere extends Ef{static id="linear";static defaults={ticks:{callback:rh.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ir(t)?t:0,this.max=Ir(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Qo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Of(e){const t=e.ticks;if(t.display&&e.display){const n=Jr(t.backdropPadding);return en(t.font&&t.font.size,rr.font.size)+n.height}return 0}function Ore(e,t,n){return n=Qn(n)?n:[n],{w:nee(e,t.string,n),h:n.length*t.lineHeight}}function Fx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function _re(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Rn/o:0;for(let c=0;c<o;c++){const d=a.setContext(e.getPointLabelContext(c));i[c]=d.padding;const f=e.getPointPosition(c,e.drawingArea+i[c],l),m=yr(d.font),v=Ore(e.ctx,m,e._pointLabels[c]);r[c]=v;const b=Zr(e.getIndexAngle(c)+l),y=Math.round(Z9(b)),S=Fx(y,f.x,v.w,0,180),x=Fx(y,f.y,v.h,90,270);Ire(n,t,b,S,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Pre(e,r,i)}function Ire(e,t,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+l)),i.start<t.t?(c=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+c))}function Rre(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:o,padding:a,size:l}=n,c=e.getPointPosition(t,r+i+a,o),d=Math.round(Z9(Zr(c.angle+br))),f=Dre(c.y,l.h,d),m=Are(d),v=Nre(c.x,l.w,m);return{visible:!0,x:c.x,y:f,textAlign:m,left:v,top:f,right:v+l.w,bottom:f+l.h}}function Tre(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:o}=e;return!(so({x:n,y:r},t)||so({x:n,y:o},t)||so({x:i,y:r},t)||so({x:i,y:o},t))}function Pre(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:a,display:l}=o.pointLabels,c={extra:Of(o)/2,additionalAngle:a?Rn/i:0};let d;for(let f=0;f<i;f++){c.padding=n[f],c.size=t[f];const m=Rre(e,f,c);r.push(m),l==="auto"&&(m.visible=Tre(m,d),m.visible&&(d=m))}return r}function Are(e){return e===0||e===180?"center":e<180?"left":"right"}function Nre(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Dre(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function jre(e,t,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:l}=t;if(!Vn(l)){const c=Ya(t.borderRadius),d=Jr(t.backdropPadding);e.fillStyle=l;const f=r-d.left,m=i-d.top,v=o-r+d.width,b=a-i+d.height;Object.values(c).some(y=>y!==0)?(e.beginPath(),Kc(e,{x:f,y:m,w:v,h:b,radius:c}),e.fill()):e.fillRect(f,m,v,b)}}function Lre(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const a=r.setContext(e.getPointLabelContext(i));jre(n,a,o);const l=yr(a.font),{x:c,y:d,textAlign:f}=o;ss(n,e._pointLabels[i],c,d+l.lineHeight/2,l,{color:a.color,textAlign:f,textBaseline:"middle"})}}function RO(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,gr);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let a=1;a<r;a++)o=e.getPointPosition(a,t),i.lineTo(o.x,o.y)}}function Bre(e,t,n,r,i){const o=e.ctx,a=t.circular,{color:l,lineWidth:c}=t;!a&&!r||!l||!c||n<0||(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash(i.dash||[]),o.lineDashOffset=i.dashOffset,o.beginPath(),RO(e,n,a,r),o.closePath(),o.stroke(),o.restore())}function Hre(e,t,n){return da(e,{label:n,index:t,type:"pointLabel"})}class kre extends Ef{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:rh.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Jr(Of(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Ir(t)&&!isNaN(t)?t:0,this.max=Ir(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Of(this.options))}generateTickLabels(t){Ef.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Fn(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?_re(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=gr/(this._pointLabels.length||1),r=this.options.startAngle||0;return Zr(t*n+Qo(r))}getDistanceFromCenterForValue(t){if(Vn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Vn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return Hre(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-br+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),RO(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,a=this._pointLabels.length;let l,c,d;if(n.pointLabels.display&&Lre(this,a),i.display&&this.ticks.forEach((f,m)=>{if(m!==0||m===0&&this.min<0){c=this.getDistanceFromCenterForValue(f.value);const v=this.getContext(m),b=i.setContext(v),y=o.setContext(v);Bre(this,b,c,a,y)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const f=r.setContext(this.getPointLabelContext(l)),{color:m,lineWidth:v}=f;!v||!m||(t.lineWidth=v,t.strokeStyle=m,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,c=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),d=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(d.x,d.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;const d=r.setContext(this.getContext(c)),f=yr(d.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){t.font=f.string,a=t.measureText(l.label).width,t.fillStyle=d.backdropColor;const m=Jr(d.backdropPadding);t.fillRect(-a/2-m.left,-o-f.size/2-m.top,a+m.width,f.size+m.height)}ss(t,l.label,0,-o,f,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),t.restore()}drawTitle(){}}const h4={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},g1=Object.keys(h4);function Vx(e,t){return e-t}function Wx(e,t){if(Vn(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Ir(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(f5(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Ux(e,t,n,r){const i=g1.length;for(let o=g1.indexOf(e);o<i-1;++o){const a=h4[g1[o]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(l*a.size))<=r)return g1[o]}return g1[i-1]}function Fre(e,t,n,r,i){for(let o=g1.length-1;o>=g1.indexOf(n);o--){const a=g1[o];if(h4[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return g1[n?g1.indexOf(n):0]}function Vre(e){for(let t=g1.indexOf(e)+1,n=g1.length;t<n;++t)if(h4[g1[t]].common)return g1[t]}function qx(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=eh(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Wre(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let l,c;for(l=o;l<=a;l=+i.add(l,1,r))c=n[l],c>=0&&(t[c].major=!0);return t}function Gx(e,t,n){const r=[],i={},o=t.length;let a,l;for(a=0;a<o;++a)l=t[a],i[l]=a,r.push({value:l,major:!1});return o===0||!n?r:Wre(e,r,i,n)}class Xx extends W2{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new lte._date(t.adapters.date);i.init(n),$c(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Wx(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:l}=this.getUserBounds();function c(d){!a&&!isNaN(d.min)&&(i=Math.min(i,d.min)),!l&&!isNaN(d.max)&&(o=Math.max(o,d.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=Ir(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Ir(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,l=kJ(i,o,a);return this._unit=n.unit||(r.autoSkip?Ux(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Fre(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vre(this._unit),this.initOffsets(i),t.reverse&&l.reverse(),Gx(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=m1(n,0,a),r=m1(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Ux(o.minUnit,n,r,this._getLabelCapacity(n)),l=en(i.ticks.stepSize,1),c=a==="week"?o.isoWeekday:!1,d=f5(c)||c===!0,f={};let m=n,v,b;if(d&&(m=+t.startOf(m,"isoWeek",c)),m=+t.startOf(m,d?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(v=m,b=0;v<r;v=+t.add(v,l,a),b++)qx(f,v,y);return(v===r||i.bounds==="ticks"||b===1)&&qx(f,v,y),Object.keys(f).sort(Vx).map(S=>+S)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Fn(a,[t,n,r],this);const l=o.time.displayFormats,c=this._unit,d=this._majorUnit,f=c&&l[c],m=d&&l[d],v=r[n],b=d&&m&&v&&v.major;return this._adapter.format(t,i||(b?m:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Qo(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:r*o+l*a,h:r*a+l*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,Gx(this,[t],this._majorUnit),i),a=this._getLabelSize(o),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(Wx(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return VJ(t.sort(Vx))}}function e6(e,t,n){let r=0,i=e.length-1,o,a,l,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Sf(e,"pos",t)),{pos:o,time:l}=e[r],{pos:a,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Sf(e,"time",t)),{time:o,pos:l}=e[r],{time:a,pos:c}=e[i]);const d=a-o;return d?l+(c-l)*(t-o)/d:l}class Yae extends Xx{static id="timeseries";static defaults=Xx.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=e6(n,this.min),this._tableRange=e6(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,l,c,d,f;for(a=0,l=t.length;a<l;++a)d=t[a],d>=n&&d<=r&&i.push(d);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=i.length;a<l;++a)f=i[a+1],c=i[a-1],d=i[a],Math.round((f+c)/2)!==d&&o.push({time:d,pos:a/(l-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(e6(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return e6(this._table,r*this._tableRange+this._minPos,!0)}}CO.register(Mne,Bne,zre,ore,dre,Ere,d4,Pne,kre,hre,xre);L9.Group;var N7={exports:{}},D7,Yx;function Ure(){if(Yx)return D7;Yx=1;function e(k){return k&&typeof k=="object"&&"default"in k?k.default:k}var t=e(y5()),n=Df();function r(k,P){for(var U=Object.getOwnPropertyNames(P),V=0;V<U.length;V++){var R=U[V],X=Object.getOwnPropertyDescriptor(P,R);X&&X.configurable&&k[R]===void 0&&Object.defineProperty(k,R,X)}return k}function i(){return(i=Object.assign||function(k){for(var P=1;P<arguments.length;P++){var U=arguments[P];for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&(k[V]=U[V])}return k}).apply(this,arguments)}function o(k,P){k.prototype=Object.create(P.prototype),r(k.prototype.constructor=k,P)}function a(k,P){if(k==null)return{};var U,V,R={},X=Object.keys(k);for(V=0;V<X.length;V++)U=X[V],0<=P.indexOf(U)||(R[U]=k[U]);return R}function l(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}var c=function(k,P,U,V,R,X,Y,Q){if(!k){var ie;if(P===void 0)ie=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ee=[U,V,R,X,Y,Q],ce=0;(ie=new Error(P.replace(/%s/g,function(){return ee[ce++]}))).name="Invariant Violation"}throw ie.framesToPop=1,ie}},d=c;function f(k,P,U){if("selectionStart"in k&&"selectionEnd"in k)k.selectionStart=P,k.selectionEnd=U;else{var V=k.createTextRange();V.collapse(!0),V.moveStart("character",P),V.moveEnd("character",U-P),V.select()}}function m(k){var P=0,U=0;if("selectionStart"in k&&"selectionEnd"in k)P=k.selectionStart,U=k.selectionEnd;else{var V=document.selection.createRange();V.parentElement()===k&&(P=-V.moveStart("character",-k.value.length),U=-V.moveEnd("character",-k.value.length))}return{start:P,end:U,length:U-P}}var v={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},b="_";function y(k,P,U){var V="",R="",X=null,Y=[];if(P===void 0&&(P=b),U==null&&(U=v),!k||typeof k!="string")return{maskChar:P,formatChars:U,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var Q=!1;return k.split("").forEach(function(ie){Q=!Q&&ie==="\\"||(Q||!U[ie]?(Y.push(V.length),V.length===Y.length-1&&(R+=ie)):X=V.length+1,V+=ie,!1)}),{maskChar:P,formatChars:U,prefix:R,mask:V,lastEditablePosition:X,permanents:Y}}function S(k,P){return k.permanents.indexOf(P)!==-1}function x(k,P,U){var V=k.mask,R=k.formatChars;if(!U)return!1;if(S(k,P))return V[P]===U;var X=R[V[P]];return new RegExp(X).test(U)}function M(k,P){return P.split("").every(function(U,V){return S(k,V)||!x(k,V,U)})}function w(k,P){var U=k.maskChar,V=k.prefix;if(!U){for(;P.length>V.length&&S(k,P.length-1);)P=P.slice(0,P.length-1);return P.length}for(var R=V.length,X=P.length;X>=V.length;X--){var Y=P[X];if(!S(k,X)&&x(k,X,Y)){R=X+1;break}}return R}function E(k,P){return w(k,P)===k.mask.length}function O(k,P){var U=k.maskChar,V=k.mask,R=k.prefix;if(!U){for((P=_(k,"",P,0)).length<R.length&&(P=R);P.length<V.length&&S(k,P.length);)P+=V[P.length];return P}if(P)return _(k,O(k,""),P,0);for(var X=0;X<V.length;X++)S(k,X)?P+=V[X]:P+=U;return P}function z(k,P,U,V){var R=U+V,X=k.maskChar,Y=k.mask,Q=k.prefix,ie=P.split("");if(X)return ie.map(function(ce,ye){return ye<U||R<=ye?ce:S(k,ye)?Y[ye]:X}).join("");for(var ee=R;ee<ie.length;ee++)S(k,ee)&&(ie[ee]="");return U=Math.max(Q.length,U),ie.splice(U,R-U),P=ie.join(""),O(k,P)}function _(k,P,U,V){var R=k.mask,X=k.maskChar,Y=k.prefix,Q=U.split(""),ie=E(k,P);return!X&&V>P.length&&(P+=R.slice(P.length,V)),Q.every(function(ee){for(;se=ee,S(k,ue=V)&&se!==R[ue];){if(V>=P.length&&(P+=R[V]),ce=ee,ye=V,X&&S(k,ye)&&ce===X)return!0;if(++V>=R.length)return!1}var ce,ye,ue,se;return!x(k,V,ee)&&ee!==X||(V<P.length?P=X||ie||V<Y.length?P.slice(0,V)+ee+P.slice(V+1):(P=P.slice(0,V)+ee+P.slice(V),O(k,P)):X||(P+=ee),++V<R.length)}),P}function I(k,P,U,V){var R=k.mask,X=k.maskChar,Y=U.split(""),Q=V;return Y.every(function(ie){for(;ce=ie,S(k,ee=V)&&ce!==R[ee];)if(++V>=R.length)return!1;var ee,ce;return(x(k,V,ie)||ie===X)&&V++,V<R.length}),V-Q}function A(k,P){for(var U=P;0<=U;--U)if(!S(k,U))return U;return null}function N(k,P){for(var U=k.mask,V=P;V<U.length;++V)if(!S(k,V))return V;return null}function D(k){return k||k===0?k+"":""}function L(k,P,U,V,R){var X=k.mask,Y=k.prefix,Q=k.lastEditablePosition,ie=P,ee="",ce=0,ye=0,ue=Math.min(R.start,U.start);return U.end>R.start?ye=(ce=I(k,V,ee=ie.slice(R.start,U.end),ue))?R.length:0:ie.length<V.length&&(ye=V.length-ie.length),ie=V,ye&&(ye===1&&!R.length&&(ue=R.start===U.start?N(k,U.start):A(k,U.start)),ie=z(k,ie,ue,ye)),ie=_(k,ie,ee,ue),(ue+=ce)>=X.length?ue=X.length:ue<Y.length&&!ce?ue=Y.length:ue>=Y.length&&ue<Q&&ce&&(ue=N(k,ue)),ee||(ee=null),{value:ie=O(k,ie),enteredString:ee,selection:{start:ue,end:ue}}}function q(){var k=new RegExp("windows","i"),P=new RegExp("phone","i"),U=navigator.userAgent;return k.test(U)&&P.test(U)}function H(k){return typeof k=="function"}function B(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function F(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function T(k){return(F()?B():function(){return setTimeout(k,1e3/60)})(k)}function j(k){(F()||clearTimeout)(k)}var G=(function(k){function P(V){var R=k.call(this,V)||this;R.focused=!1,R.mounted=!1,R.previousSelection=null,R.selectionDeferId=null,R.saveSelectionLoopDeferId=null,R.saveSelectionLoop=function(){R.previousSelection=R.getSelection(),R.saveSelectionLoopDeferId=T(R.saveSelectionLoop)},R.runSaveSelectionLoop=function(){R.saveSelectionLoopDeferId===null&&R.saveSelectionLoop()},R.stopSaveSelectionLoop=function(){R.saveSelectionLoopDeferId!==null&&(j(R.saveSelectionLoopDeferId),R.saveSelectionLoopDeferId=null,R.previousSelection=null)},R.getInputDOMNode=function(){if(!R.mounted)return null;var de=n.findDOMNode(l(l(R))),ve=typeof window<"u"&&de instanceof window.Element;if(de&&!ve)return null;if(de.nodeName!=="INPUT"&&(de=de.querySelector("input")),!de)throw new Error("react-input-mask: inputComponent doesn't contain input node");return de},R.getInputValue=function(){var de=R.getInputDOMNode();return de?de.value:null},R.setInputValue=function(de){var ve=R.getInputDOMNode();ve&&(R.value=de,ve.value=de)},R.setCursorToEnd=function(){var de=w(R.maskOptions,R.value),ve=N(R.maskOptions,de);ve!==null&&R.setCursorPosition(ve)},R.setSelection=function(de,ve,fe){fe===void 0&&(fe={});var oe=R.getInputDOMNode(),pe=R.isFocused();oe&&pe&&(fe.deferred||f(oe,de,ve),R.selectionDeferId!==null&&j(R.selectionDeferId),R.selectionDeferId=T(function(){R.selectionDeferId=null,f(oe,de,ve)}),R.previousSelection={start:de,end:ve,length:Math.abs(ve-de)})},R.getSelection=function(){return m(R.getInputDOMNode())},R.getCursorPosition=function(){return R.getSelection().start},R.setCursorPosition=function(de){R.setSelection(de,de)},R.isFocused=function(){return R.focused},R.getBeforeMaskedValueChangeConfig=function(){var de=R.maskOptions,ve=de.mask,fe=de.maskChar,oe=de.permanents,pe=de.formatChars;return{mask:ve,maskChar:fe,permanents:oe,alwaysShowMask:!!R.props.alwaysShowMask,formatChars:pe}},R.isInputAutofilled=function(de,ve,fe,oe){var pe=R.getInputDOMNode();try{if(pe.matches(":-webkit-autofill"))return!0}catch{}return!R.focused||oe.end<fe.length&&ve.end===de.length},R.onChange=function(de){var ve=l(l(R)).beforePasteState,fe=l(l(R)).previousSelection,oe=R.props.beforeMaskedValueChange,pe=R.getInputValue(),we=R.value,Oe=R.getSelection();R.isInputAutofilled(pe,Oe,we,fe)&&(we=O(R.maskOptions,""),fe={start:0,end:0,length:0}),ve&&(fe=ve.selection,we=ve.value,Oe={start:fe.start+pe.length,end:fe.start+pe.length,length:0},pe=we.slice(0,fe.start)+pe+we.slice(fe.end),R.beforePasteState=null);var Pe=L(R.maskOptions,pe,Oe,we,fe),Ae=Pe.enteredString,Re=Pe.selection,_e=Pe.value;if(H(oe)){var ze=oe({value:_e,selection:Re},{value:we,selection:fe},Ae,R.getBeforeMaskedValueChangeConfig());_e=ze.value,Re=ze.selection}R.setInputValue(_e),H(R.props.onChange)&&R.props.onChange(de),R.isWindowsPhoneBrowser?R.setSelection(Re.start,Re.end,{deferred:!0}):R.setSelection(Re.start,Re.end)},R.onFocus=function(de){var ve=R.props.beforeMaskedValueChange,fe=R.maskOptions,oe=fe.mask,pe=fe.prefix;if(R.focused=!0,R.mounted=!0,oe){if(R.value)w(R.maskOptions,R.value)<R.maskOptions.mask.length&&R.setCursorToEnd();else{var we=O(R.maskOptions,pe),Oe=O(R.maskOptions,we),Pe=w(R.maskOptions,Oe),Ae=N(R.maskOptions,Pe),Re={start:Ae,end:Ae};if(H(ve)){var _e=ve({value:Oe,selection:Re},{value:R.value,selection:null},null,R.getBeforeMaskedValueChangeConfig());Oe=_e.value,Re=_e.selection}var ze=Oe!==R.getInputValue();ze&&R.setInputValue(Oe),ze&&H(R.props.onChange)&&R.props.onChange(de),R.setSelection(Re.start,Re.end)}R.runSaveSelectionLoop()}H(R.props.onFocus)&&R.props.onFocus(de)},R.onBlur=function(de){var ve=R.props.beforeMaskedValueChange,fe=R.maskOptions.mask;if(R.stopSaveSelectionLoop(),R.focused=!1,fe&&!R.props.alwaysShowMask&&M(R.maskOptions,R.value)){var oe="";H(ve)&&(oe=ve({value:oe,selection:null},{value:R.value,selection:R.previousSelection},null,R.getBeforeMaskedValueChangeConfig()).value);var pe=oe!==R.getInputValue();pe&&R.setInputValue(oe),pe&&H(R.props.onChange)&&R.props.onChange(de)}H(R.props.onBlur)&&R.props.onBlur(de)},R.onMouseDown=function(de){if(!R.focused&&document.addEventListener){R.mouseDownX=de.clientX,R.mouseDownY=de.clientY,R.mouseDownTime=new Date().getTime();var ve=function fe(oe){if(document.removeEventListener("mouseup",fe),R.focused){var pe=Math.abs(oe.clientX-R.mouseDownX),we=Math.abs(oe.clientY-R.mouseDownY),Oe=Math.max(pe,we),Pe=new Date().getTime()-R.mouseDownTime;(Oe<=10&&Pe<=200||Oe<=5&&Pe<=300)&&R.setCursorToEnd()}};document.addEventListener("mouseup",ve)}H(R.props.onMouseDown)&&R.props.onMouseDown(de)},R.onPaste=function(de){H(R.props.onPaste)&&R.props.onPaste(de),de.defaultPrevented||(R.beforePasteState={value:R.getInputValue(),selection:R.getSelection()},R.setInputValue(""))},R.handleRef=function(de){R.props.children==null&&H(R.props.inputRef)&&R.props.inputRef(de)};var X=V.mask,Y=V.maskChar,Q=V.formatChars,ie=V.alwaysShowMask,ee=V.beforeMaskedValueChange,ce=V.defaultValue,ye=V.value;R.maskOptions=y(X,Y,Q),ce==null&&(ce=""),ye==null&&(ye=ce);var ue=D(ye);if(R.maskOptions.mask&&(ie||ue)&&(ue=O(R.maskOptions,ue),H(ee))){var se=V.value;V.value==null&&(se=ce),ue=ee({value:ue,selection:null},{value:se=D(se),selection:null},null,R.getBeforeMaskedValueChangeConfig()).value}return R.value=ue,R}o(P,k);var U=P.prototype;return U.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=q(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},U.componentDidUpdate=function(){var V=this.previousSelection,R=this.props,X=R.beforeMaskedValueChange,Y=R.alwaysShowMask,Q=R.mask,ie=R.maskChar,ee=R.formatChars,ce=this.maskOptions,ye=Y||this.isFocused(),ue=this.props.value!=null,se=ue?D(this.props.value):this.value,de=V?V.start:null;if(this.maskOptions=y(Q,ie,ee),this.maskOptions.mask){!ce.mask&&this.isFocused()&&this.runSaveSelectionLoop();var ve=this.maskOptions.mask&&this.maskOptions.mask!==ce.mask;if(ce.mask||ue||(se=this.getInputValue()),(ve||this.maskOptions.mask&&(se||ye))&&(se=O(this.maskOptions,se)),ve){var fe=w(this.maskOptions,se);(de===null||fe<de)&&(de=E(this.maskOptions,se)?fe:N(this.maskOptions,fe))}!this.maskOptions.mask||!M(this.maskOptions,se)||ye||ue&&this.props.value||(se="");var oe={start:de,end:de};if(H(X)){var pe=X({value:se,selection:oe},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());se=pe.value,oe=pe.selection}this.value=se;var we=this.getInputValue()!==this.value;we?(this.setInputValue(this.value),this.forceUpdate()):ve&&this.forceUpdate();var Oe=!1;oe.start!=null&&oe.end!=null&&(Oe=!V||V.start!==oe.start||V.end!==oe.end),(Oe||we)&&this.setSelection(oe.start,oe.end)}else ce.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},U.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&j(this.selectionDeferId),this.stopSaveSelectionLoop()},U.render=function(){var V,R=this.props,X=(R.mask,R.alwaysShowMask,R.maskChar,R.formatChars,R.inputRef,R.beforeMaskedValueChange,R.children),Y=a(R,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(X){H(X)||d(!1);var Q=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],ie=i({},Y);Q.forEach(function(ce){return delete ie[ce]}),V=X(ie),Q.filter(function(ce){return V.props[ce]!=null&&V.props[ce]!==Y[ce]}).length&&d(!1)}else V=t.createElement("input",i({ref:this.handleRef},Y));var ee={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(Y.disabled||Y.readOnly||(ee.onChange=this.onChange,ee.onPaste=this.onPaste,ee.onMouseDown=this.onMouseDown),Y.value!=null&&(ee.value=this.value)),V=t.cloneElement(V,ee)},P})(t.Component);return D7=G,D7}var Kx;function qre(){return Kx||(Kx=1,N7.exports=Ure()),N7.exports}qre();const Gre=({children:e,plainOffset:t,...n})=>{const{getPrefixCls:r,theme:i}=g.useContext(En.ConfigContext),{token:o,hashId:a}=t1(),l=o.Divider;return xr({token:o,path:["Divider"]},()=>{const d=`.${r()}-divider`,f=`:where(.${a})${d}`,m=V2(i);return{[`${f}-plain`]:{[`&${f}-horizontal${d}-with-text-left`]:{"&:before":{width:t?`${t-l.textPaddingInline}px`:m.sizing.valueAuto,marginInlineStart:t?`-${t}px`:"-40px"},"&:after":{width:m.sizing.valueFull,marginInlineStart:m.sizing.valueZero,marginInlineEnd:t?`-${t}px`:"-40px"}},[`${d}-with-text`]:{fontWeight:l?.fontWeight}}}})(ge.jsx(QG,{...n,children:e}))},Xre=({children:e,...t})=>ge.jsx(mE,{...t,children:e});mo.OTP;mo.Password;const Yre=g.forwardRef(({size:e,...t},n)=>{const{getPrefixCls:r,theme:i}=g.useContext(En.ConfigContext),{token:o,hashId:a}=t1(),l=o,c=`:where(.${a}).${r()}-input-search`,d=`.${r()}-input`,f=`.${r()}-input-affix-wrapper`,m=`.${r()}-input-search-button`;return xr({token:l,path:["InputSearch"]},()=>{const b=(y,S)=>({[`${d}, ${f}`]:{height:y,minHeight:y},[m]:{height:y,minHeight:y,width:y,minWidth:y,paddingInline:0,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:S,borderEndEndRadius:S}});return{[c]:{"&-small":b(l.controlHeightSM,l.borderRadiusSM),"&-middle":b(l.controlHeight,l.borderRadius),"&-large":b(l.controlHeightLG,l.borderRadiusLG)}}})(ge.jsx(mo.Search,{ref:n,...t,size:e??"middle"}))});Yre.displayName="InputSearch";mo.TextArea;const Kre=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Layout"]},()=>{const l=`:where(.${o}).${n()}-layout`,c=`.${n()}-layout`;return{[l]:{},[c]:{}}})(ge.jsx(Di,{...t,children:e}))},{Content:Qre}=Di,Zre=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Content"]},()=>{const l=`:where(.${o}).${n()}-content`,c=`.${n()}-content`;return{[l]:{},[c]:{}}})(ge.jsx(Qre,{...t,children:e}))},{Footer:Jre}=Di,e1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Footer"]},()=>{const l=`:where(.${o}).${n()}-footer`,c=`.${n()}-footer`;return{[l]:{},[c]:{}}})(ge.jsx(Jre,{...t,children:e}))},{Header:t1e}=Di,n1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Header"]},()=>{const l=`:where(.${o}).${n()}-header`,c=`.${n()}-header`;return{[l]:{},[c]:{}}})(ge.jsx(t1e,{...t,children:e}))},{Sider:r1e}=Di,i1e=({children:e,collapsed:t,iconUrl:n,brandImageUrl:r,position:i="left",...o})=>{const{getPrefixCls:a,theme:l}=g.useContext(En.ConfigContext),{token:c,hashId:d}=t1(),f=c.Layout,m=xr({token:c,path:["Sider"]},()=>{const b=`:where(.${d}).${a()}-layout-sider`,y=`.${a()}-layout-sider`;return{[b]:{"&-left":{borderInlineEnd:f.mainBorder},"&-right":{borderInlineStart:f.mainBorder}},[y]:{}}});let v;return n&&r&&(v=ge.jsxs("div",{className:`logo-container ${t?"collapsed":""}`,children:[ge.jsx("img",{className:"logo",src:n,alt:"icon",width:20,height:20}),ge.jsx("img",{className:"brand-image",src:r,alt:"brand-image",height:20})]})),m(ge.jsxs(r1e,{className:`${a()}-layout-sider-${i}`,collapsible:!0,collapsed:t,trigger:null,width:250,collapsedWidth:56,...o,children:[v,e]}))},o1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Flex"]},()=>{const l=`:where(.${o}).${n()}-flex`,c=`.${n()}-flex`;return{[l]:{},[c]:{}}})(ge.jsx(yE,{...t,children:e}))},a1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1(),a=i.Grid;return xr({token:i,path:["Row"]},()=>{const c=`:where(.${o}).${n()}-row`,d=`.${n()}-row`;return{[c]:{maxWidth:a?.rowMaxWidth},[d]:{}}})(ge.jsx(sE,{gutter:[a?.gutter,a?.gutter],...t,children:e}))},s1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Col"]},()=>{const l=`:where(.${o}).${n()}-col`,c=`.${n()}-col`;return{[l]:{},[c]:{}}})(ge.jsx(aE,{...t,children:e}))};function TO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=TO(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function l1e(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=TO(e))&&(r&&(r+=" "),r+=t);return r}const c1e=({title:e,description:t,actions:n,className:r})=>ge.jsxs(yE,{justify:"space-between",align:"flex-start",className:r,style:{borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ge.jsxs($2,{direction:"vertical",size:4,children:[ge.jsx(ho.Title,{level:4,style:{margin:0},children:e}),t&&ge.jsx(ho.Paragraph,{type:"secondary",style:{margin:0,fontSize:10},children:t})]}),n&&ge.jsx($2,{children:n})]}),t2=Object.assign(Kre,{Header:n1e,Footer:e1e,Content:Zre,Sider:i1e}),u1e=({children:e,...t})=>ge.jsx(k9,{...t,children:e});Object.assign(u1e,{Item:k9.Item});const d1e=3,f1e=({defaultOpenKeys:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1(),a=i.Menu,c=`.${`${n()}-menu`}`,d=V2(r),f=xr({token:i,path:["Menu"]},()=>({[`:where(.${o})${c}`]:{minWidth:a.minWidth,[`&${c}-inline-collapsed`]:{minWidth:d.others.valueUnset},[`&${c}-dark`]:{[`${c}-title, ${c}-submenu-title`]:{paddingInlineEnd:"1rem",color:a.mainMenuColor,fontWeight:d.typography.fontWeightBold},[`${c}-item`]:{color:a.mainMenuColor,fontWeight:d.typography.fontWeightBold},[`${c}-sub`]:{fontWeight:d.typography.fontWeightMedium,[`${c}-item`]:{color:a.subMenuTitleColor,fontWeight:d.typography.fontWeightMedium},[`${c}-submenu`]:{[`${c}-submenu-title`]:{color:a.subMenuTitleColor,svg:{position:d.layout.positionAbsolute,marginLeft:a.subMenuTitleIconMargin,insetInlineEnd:d.others.valueUnset}},[`${c}-sub`]:{[`${c}-item-selected`]:{[`&${c}-item-only-child`]:{"&::after":{background:a.subMenuItemSelectedChildColor}}},[`${c}-item-only-child`]:{"&::after":{width:a.childMenuItemSelectedChildWidth,height:a.childMenuItemSelectedChildHeight,borderRadius:a.childMenuItemSelectedChildRadius,marginLeft:a.childMenuItemSelectedChildMargin,opacity:d.others.opacityFull,insetBlock:d.others.valueUnset,insetInlineEnd:d.others.valueUnset,transform:d.layout.displayNone,background:a.childMenuItemSelectedChildBgColor}}}},[`${c}-item-only-child`]:{"&::after":{width:a.subMenuOnlyChildSize,height:a.subMenuOnlyChildSize,borderRadius:d.sizing.valueHalf,background:a.subMenuOnlyChildBgColor,marginLeft:a.subMenuOnlyChildMargin,opacity:d.others.opacityFull,insetBlock:d.others.valueUnset,insetInlineEnd:d.others.valueUnset,transform:d.layout.displayNone}}}},[`&${c}-light`]:{background:a.lightItemBg,[`${c}-submenu`]:{"svg:first-child":{color:a.lightItemMainIconColor,fill:a.lightItemMainIconColor},"&-title":{color:a.lightItemMainTitle},[`${c}-sub`]:{background:a.LightSubItemBg,[`${c}-submenu`]:{[`${c}-submenu-title`]:{color:a.lightSubTitleColor,i:{background:a.lightSubIconColor}},[`${c}-sub`]:{[`${c}-item-selected`]:{[`&${c}-item-only-child`]:{background:a.lightchildItemBg,color:a.lightChildItemColor,"&::after":{background:a.lightChildItemColor}}},[`${c}-item-only-child`]:{color:a.lightSubTitleColor,"&::after":{background:a.lightSubTitleColor}}}},[`${c}-item-only-child`]:{color:a.lightSubTitleColor,fontWeight:d.typography.fontWeightMedium,"&::after":{background:a.lightSubTitleColor}}}}}},[c]:{}})),m=(y,S=0)=>!y||S>=d1e?y:y.map(x=>{const M={...x};return"icon"in M&&M.icon&&(M.icon=ge.jsx(l8,{icon:M.icon,size:S===0?18:10})),"children"in M&&Array.isArray(M.children)&&(M.children=m(M.children,S+1)),M}),v=m(t.items),b=y=>ge.jsx(l8,{icon:"chevron_down",size:14,style:{transform:y.isOpen?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out"}});return f(ge.jsx(F2,{defaultOpenKeys:e,...t,items:v,expandIcon:b}))};l3(function(e,t){t._reactRoot||(t._reactRoot=hM.createRoot(t));var n=t._reactRoot;return n.render(e),function(){return new Promise(function(r){setTimeout(function(){n.unmount(),r()},0)})}});Z5.Group;$2.Compact;const _f=({children:e,block:t,...n})=>ge.jsx($2,{...n,...t&&{style:{width:"100%"}},children:e}),Qx=()=>{},h1e=typeof window<"u",g1e=(e,t,n)=>{if(!h1e)return[t,Qx,Qx];const r=n?n.raw?(d=>d):n.deserializer:JSON.parse,i=g.useRef(d=>{try{const f=n?n.raw?String:n.serializer:JSON.stringify,m=localStorage.getItem(d);return m!==null?r(m):(t&&localStorage.setItem(d,f(t)),t)}catch{return t}}),[o,a]=g.useState(()=>i.current(e));g.useLayoutEffect(()=>a(i.current(e)),[e]);const l=g.useCallback(d=>{try{const f=typeof d=="function"?d(o):d;if(typeof f>"u")return;let m;n?n.raw?typeof f=="string"?m=f:m=JSON.stringify(f):n.serializer?m=n.serializer(f):m=JSON.stringify(f):m=JSON.stringify(f),localStorage.setItem(e,m),a(r(m))}catch{}},[e,a]),c=g.useCallback(()=>{try{localStorage.removeItem(e),a(void 0)}catch{}},[e,a]);return[o,l,c]},m1e=e=>{g.useEffect(()=>{e()},[])},v1e=({children:e,fontFamily:t,form:n})=>{m1e(()=>{r(),En.config({prefixCls:"akinon"})});const r=()=>{if(document.querySelector("style[data-akinon-ui-variables]"))return;const o=document.createElement("style");o.setAttribute("data-akinon-ui-variables","true"),o.innerHTML=`:root {${Object.entries(UZ()).map(([a,l])=>`${a}: ${l};`).join("")}}`,document.head.prepend(o)};return zc.token?.fontFamily&&t&&(zc.token.fontFamily=t),ge.jsx(En,{theme:zc,prefixCls:"akinon",form:n,children:e})};function p1e(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function b1e(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var y1e=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(b1e(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=p1e(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Xr="-ms-",p5="-moz-",Sn="-webkit-",PO="comm",dh="rule",fh="decl",S1e="@import",AO="@keyframes",x1e="@layer",C1e=Math.abs,g4=String.fromCharCode,M1e=Object.assign;function w1e(e,t){return Lr(e,0)^45?(((t<<2^Lr(e,0))<<2^Lr(e,1))<<2^Lr(e,2))<<2^Lr(e,3):0}function NO(e){return e.trim()}function z1e(e,t){return(e=t.exec(e))?e[0]:e}function xn(e,t,n){return e.replace(t,n)}function If(e,t){return e.indexOf(t)}function Lr(e,t){return e.charCodeAt(t)|0}function Zc(e,t,n){return e.slice(t,n)}function zi(e){return e.length}function hh(e){return e.length}function t6(e,t){return t.push(e),e}function $1e(e,t){return e.map(t).join("")}var m4=1,R2=1,DO=0,p1=0,hr=0,U2="";function v4(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m4,column:R2,length:a,return:""}}function ec(e,t){return M1e(v4("",null,null,"",null,null,0),e,{length:-e.length},t)}function E1e(){return hr}function O1e(){return hr=p1>0?Lr(U2,--p1):0,R2--,hr===10&&(R2=1,m4--),hr}function T1(){return hr=p1<DO?Lr(U2,p1++):0,R2++,hr===10&&(R2=1,m4++),hr}function Ii(){return Lr(U2,p1)}function I6(){return p1}function y3(e,t){return Zc(U2,e,t)}function Jc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jO(e){return m4=R2=1,DO=zi(U2=e),p1=0,[]}function LO(e){return U2="",e}function R6(e){return NO(y3(p1-1,Rf(e===91?e+2:e===40?e+1:e)))}function _1e(e){for(;(hr=Ii())&&hr<33;)T1();return Jc(e)>2||Jc(hr)>3?"":" "}function I1e(e,t){for(;--t&&T1()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return y3(e,I6()+(t<6&&Ii()==32&&T1()==32))}function Rf(e){for(;T1();)switch(hr){case e:return p1;case 34:case 39:e!==34&&e!==39&&Rf(hr);break;case 40:e===41&&Rf(e);break;case 92:T1();break}return p1}function R1e(e,t){for(;T1()&&e+hr!==57;)if(e+hr===84&&Ii()===47)break;return"/*"+y3(t,p1-1)+"*"+g4(e===47?e:T1())}function T1e(e){for(;!Jc(Ii());)T1();return y3(e,p1)}function P1e(e){return LO(T6("",null,null,null,[""],e=jO(e),0,[0],e))}function T6(e,t,n,r,i,o,a,l,c){for(var d=0,f=0,m=a,v=0,b=0,y=0,S=1,x=1,M=1,w=0,E="",O=i,z=o,_=r,I=E;x;)switch(y=w,w=T1()){case 40:if(y!=108&&Lr(I,m-1)==58){If(I+=xn(R6(w),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:I+=R6(w);break;case 9:case 10:case 13:case 32:I+=_1e(y);break;case 92:I+=I1e(I6()-1,7);continue;case 47:switch(Ii()){case 42:case 47:t6(A1e(R1e(T1(),I6()),t,n),c);break;default:I+="/"}break;case 123*S:l[d++]=zi(I)*M;case 125*S:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+f:M==-1&&(I=xn(I,/\f/g,"")),b>0&&zi(I)-m&&t6(b>32?Jx(I+";",r,n,m-1):Jx(xn(I," ","")+";",r,n,m-2),c);break;case 59:I+=";";default:if(t6(_=Zx(I,t,n,d,f,i,l,E,O=[],z=[],m),o),w===123)if(f===0)T6(I,t,_,_,O,o,m,l,z);else switch(v===99&&Lr(I,3)===110?100:v){case 100:case 108:case 109:case 115:T6(e,_,_,r&&t6(Zx(e,_,_,0,0,i,l,E,i,O=[],m),z),i,z,m,l,r?O:z);break;default:T6(I,_,_,_,[""],z,0,l,z)}}d=f=b=0,S=M=1,E=I="",m=a;break;case 58:m=1+zi(I),b=y;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&O1e()==125)continue}switch(I+=g4(w),w*S){case 38:M=f>0?1:(I+="\f",-1);break;case 44:l[d++]=(zi(I)-1)*M,M=1;break;case 64:Ii()===45&&(I+=R6(T1())),v=Ii(),f=m=zi(E=I+=T1e(I6())),w++;break;case 45:y===45&&zi(I)==2&&(S=0)}}return o}function Zx(e,t,n,r,i,o,a,l,c,d,f){for(var m=i-1,v=i===0?o:[""],b=hh(v),y=0,S=0,x=0;y<r;++y)for(var M=0,w=Zc(e,m+1,m=C1e(S=a[y])),E=e;M<b;++M)(E=NO(S>0?v[M]+" "+w:xn(w,/&\f/g,v[M])))&&(c[x++]=E);return v4(e,t,n,i===0?dh:l,c,d,f)}function A1e(e,t,n){return v4(e,t,n,PO,g4(E1e()),Zc(e,2,-2),0)}function Jx(e,t,n,r){return v4(e,t,n,fh,Zc(e,0,r),Zc(e,r+1,-1),r)}function h2(e,t){for(var n="",r=hh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function N1e(e,t,n,r){switch(e.type){case x1e:if(e.children.length)break;case S1e:case fh:return e.return=e.return||e.value;case PO:return"";case AO:return e.return=e.value+"{"+h2(e.children,r)+"}";case dh:e.value=e.props.join(",")}return zi(n=h2(e.children,r))?e.return=e.value+"{"+n+"}":""}function D1e(e){var t=hh(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function j1e(e){return function(t){t.root||(t=t.return)&&e(t)}}var eC=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function L1e(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var B1e=function(t,n,r){for(var i=0,o=0;i=o,o=Ii(),i===38&&o===12&&(n[r]=1),!Jc(o);)T1();return y3(t,p1)},H1e=function(t,n){var r=-1,i=44;do switch(Jc(i)){case 0:i===38&&Ii()===12&&(n[r]=1),t[r]+=B1e(p1-1,n,r);break;case 2:t[r]+=R6(i);break;case 4:if(i===44){t[++r]=Ii()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=g4(i)}while(i=T1());return t},k1e=function(t,n){return LO(H1e(jO(t),n))},tC=new WeakMap,F1e=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!tC.get(r))&&!i){tC.set(t,!0);for(var o=[],a=k1e(n,o),l=r.props,c=0,d=0;c<a.length;c++)for(var f=0;f<l.length;f++,d++)t.props[d]=o[c]?a[c].replace(/&\f/g,l[f]):l[f]+" "+a[c]}}},V1e=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function BO(e,t){switch(w1e(e,t)){case 5103:return Sn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Sn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Sn+e+p5+e+Xr+e+e;case 6828:case 4268:return Sn+e+Xr+e+e;case 6165:return Sn+e+Xr+"flex-"+e+e;case 5187:return Sn+e+xn(e,/(\w+).+(:[^]+)/,Sn+"box-$1$2"+Xr+"flex-$1$2")+e;case 5443:return Sn+e+Xr+"flex-item-"+xn(e,/flex-|-self/,"")+e;case 4675:return Sn+e+Xr+"flex-line-pack"+xn(e,/align-content|flex-|-self/,"")+e;case 5548:return Sn+e+Xr+xn(e,"shrink","negative")+e;case 5292:return Sn+e+Xr+xn(e,"basis","preferred-size")+e;case 6060:return Sn+"box-"+xn(e,"-grow","")+Sn+e+Xr+xn(e,"grow","positive")+e;case 4554:return Sn+xn(e,/([^-])(transform)/g,"$1"+Sn+"$2")+e;case 6187:return xn(xn(xn(e,/(zoom-|grab)/,Sn+"$1"),/(image-set)/,Sn+"$1"),e,"")+e;case 5495:case 3959:return xn(e,/(image-set\([^]*)/,Sn+"$1$`$1");case 4968:return xn(xn(e,/(.+:)(flex-)?(.*)/,Sn+"box-pack:$3"+Xr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sn+e+e;case 4095:case 3583:case 4068:case 2532:return xn(e,/(.+)-inline(.+)/,Sn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zi(e)-1-t>6)switch(Lr(e,t+1)){case 109:if(Lr(e,t+4)!==45)break;case 102:return xn(e,/(.+:)(.+)-([^]+)/,"$1"+Sn+"$2-$3$1"+p5+(Lr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~If(e,"stretch")?BO(xn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lr(e,t+1)!==115)break;case 6444:switch(Lr(e,zi(e)-3-(~If(e,"!important")&&10))){case 107:return xn(e,":",":"+Sn)+e;case 101:return xn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Sn+(Lr(e,14)===45?"inline-":"")+"box$3$1"+Sn+"$2$3$1"+Xr+"$2box$3")+e}break;case 5936:switch(Lr(e,t+11)){case 114:return Sn+e+Xr+xn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sn+e+Xr+xn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sn+e+Xr+xn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Sn+e+Xr+e+e}return e}var W1e=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case fh:t.return=BO(t.value,t.length);break;case AO:return h2([ec(t,{value:xn(t.value,"@","@"+Sn)})],i);case dh:if(t.length)return $1e(t.props,function(o){switch(z1e(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return h2([ec(t,{props:[xn(o,/:(read-\w+)/,":"+p5+"$1")]})],i);case"::placeholder":return h2([ec(t,{props:[xn(o,/:(plac\w+)/,":"+Sn+"input-$1")]}),ec(t,{props:[xn(o,/:(plac\w+)/,":"+p5+"$1")]}),ec(t,{props:[xn(o,/:(plac\w+)/,Xr+"input-$1")]})],i)}return""})}},U1e=[W1e],HO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var x=S.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||U1e,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var x=S.getAttribute("data-emotion").split(" "),M=1;M<x.length;M++)o[x[M]]=!0;l.push(S)});var c,d=[F1e,V1e];{var f,m=[N1e,j1e(function(S){f.insert(S)})],v=D1e(d.concat(i,m)),b=function(x){return h2(P1e(x),v)};c=function(x,M,w,E){f=w,b(x?x+"{"+M.styles+"}":M.styles),E&&(y.inserted[M.name]=!0)}}var y={key:n,sheet:new y1e({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return y.sheet.hydrate(l),y};function q1e(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var G1e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},X1e=/[A-Z]|^ms/g,Y1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kO=function(t){return t.charCodeAt(1)===45},nC=function(t){return t!=null&&typeof t!="boolean"},j7=L1e(function(e){return kO(e)?e:e.replace(X1e,"-$&").toLowerCase()}),rC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Y1e,function(r,i,o){return $i={name:i,styles:o,next:$i},i})}return G1e[t]!==1&&!kO(t)&&typeof n=="number"&&n!==0?n+"px":n};function e3(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $i={name:i.name,styles:i.styles,next:$i},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$i={name:a.name,styles:a.styles,next:$i},a=a.next;var l=o.styles+";";return l}return K1e(e,t,n)}case"function":{if(e!==void 0){var c=$i,d=n(e);return $i=c,e3(e,t,d)}break}}var f=n;if(t==null)return f;var m=t[f];return m!==void 0?m:f}function K1e(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=e3(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=o+"{"+t[l]+"}":nC(l)&&(r+=j7(o)+":"+rC(o,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)nC(a[c])&&(r+=j7(o)+":"+rC(o,a[c])+";");else{var d=e3(e,t,a);switch(o){case"animation":case"animationName":{r+=j7(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var iC=/label:\s*([^\s;{]+)\s*(;|$)/g,$i;function ra(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";$i=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=e3(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=e3(n,t,e[l]),r){var c=o;i+=c[l]}iC.lastIndex=0;for(var d="",f;(f=iC.exec(i))!==null;)d+="-"+f[1];var m=q1e(i)+d;return{name:m,styles:i,next:$i}}var Q1e=!0;function p4(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var gh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Q1e===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},mh=function(t,n,r){gh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function oC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function aC(e,t,n){var r=[],i=p4(e,r,n);return r.length<2?n:i+t(r)}var vh=function(t){var n=HO(t);n.sheet.speedy=function(l){this.isSpeedy=l},n.compat=!0;var r=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=ra(d,n.registered,void 0);return mh(n,m,!1),n.key+"-"+m.name},i=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=ra(d,n.registered),v="animation-"+m.name;return oC(n,{name:m.name,styles:"@keyframes "+v+"{"+m.styles+"}"}),v},o=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=ra(d,n.registered);oC(n,m)},a=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return aC(n.registered,r,Z1e(d))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:p4.bind(null,n.registered),merge:aC.bind(null,n.registered,r)}},Z1e=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},ji=vh({key:"css"});ji.flush;ji.hydrate;ji.cx;ji.merge;ji.getRegisteredStyles;ji.injectGlobal;ji.keyframes;ji.css;ji.sheet;var J1e=ji.cache,eie=(function(){function e(){Zn(this,e),J(this,"_cacheList",[J1e])}return Jn(e,[{key:"add",value:function(n){var r=this.getCache(n.key);return r||(this._cacheList.push(n),n)}},{key:"delete",value:function(n){this._cacheList=this._cacheList.filter(function(r){return r.key!==n.key})}},{key:"hasCache",value:function(n){return this._cacheList.some(function(r){return r.key===n.key})}},{key:"getCache",value:function(n){return this._cacheList.find(function(r){return r.key===n})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})(),sC=typeof document<"u",FO=function(t,n){return"".concat(t,"-").concat(n)},tie=function(t,n,r,i){var o=i.hashPriority;gh(t,n,r);var a=".".concat(FO(t.key,n.name)),l=o==="low"?":where(".concat(a,")"):a;if(t.inserted[n.name]===void 0){var c="",d=n;do{var f=t.insert(n===d?l:"",d,t.sheet,!0);!sC&&f!==void 0&&(c+=f),d=d.next}while(d!==void 0);if(!sC&&c.length!==0)return c}},ph=function(t){return st(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},nie=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!==null){var o=void 0;switch(st(i)){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},rie=function(t,n,r){var i=[],o=p4(t,i,r);return i.length<2?r:o+n(i)},iie=function(t,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=ra(i,t.registered,void 0);return tie(t,a,!1,n),FO(t.key,a.name)}},oie=function(t,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.map(function(l){return ph(l)?n(l):l});return rie(t.registered,n,nie(a))}},VO=function(t,n){var r=iie(t,{hashPriority:n.hashPriority||"high",label:n.label}),i=oie(t,r);return{css:r,cx:i}},S3=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ra(n)},aie="acss",sie=function(t){return g.createContext(t)},L7={exports:{}},zn={};/** @license React v16.13.1
|
|
392
|
+
`):e}function gre(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:l}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Ax(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:l}=t,c=yr(t.bodyFont),d=yr(t.titleFont),f=yr(t.footerFont),m=o.length,v=i.length,b=r.length,y=Jr(t.padding);let S=y.height,x=0,M=r.reduce((O,z)=>O+z.before.length+z.lines.length+z.after.length,0);if(M+=e.beforeBody.length+e.afterBody.length,m&&(S+=m*d.lineHeight+(m-1)*t.titleSpacing+t.titleMarginBottom),M){const O=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;S+=b*O+(M-b)*c.lineHeight+(M-1)*t.bodySpacing}v&&(S+=t.footerMarginTop+v*f.lineHeight+(v-1)*t.footerSpacing);let w=0;const E=function(O){x=Math.max(x,n.measureText(O).width+w)};return n.save(),n.font=d.string,In(e.title,E),n.font=c.string,In(e.beforeBody.concat(e.afterBody),E),w=t.displayColors?a+2+t.boxPadding:0,In(r,O=>{In(O.before,E),In(O.lines,E),In(O.after,E)}),w=0,n.font=f.string,In(e.footer,E),n.restore(),x+=y.width,{width:x,height:S}}function mre(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function vre(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function pre(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:l,right:c}}=e;let d="center";return r==="center"?d=i<=(l+c)/2?"left":"right":i<=o/2?d="left":i>=a-o/2&&(d="right"),vre(d,e,t,n)&&(d="center"),d}function Nx(e,t,n){const r=n.yAlign||t.yAlign||mre(e,n);return{xAlign:n.xAlign||t.xAlign||pre(e,t,n,r),yAlign:r}}function bre(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function yre(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Dx(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:l,yAlign:c}=n,d=i+o,{topLeft:f,topRight:m,bottomLeft:v,bottomRight:b}=Ya(a);let y=bre(t,l);const S=yre(t,c,d);return c==="center"?l==="left"?y+=d:l==="right"&&(y-=d):l==="left"?y-=Math.max(f,v)+i:l==="right"&&(y+=Math.max(m,b)+i),{x:m1(y,0,r.width-t.width),y:m1(S,0,r.height-t.height)}}function J0(e,t,n){const r=Jr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function jx(e){return Ci([],io(e))}function Sre(e,t,n){return da(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Lx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const IO={beforeTitle:to,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:to,beforeBody:to,beforeLabel:to,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Vn(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:to,afterBody:to,beforeFooter:to,footer:to,afterFooter:to};function h1(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?IO[t].call(n,r):i}class Bx extends vo{static positioners=yc;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new dO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Sre(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=h1(r,"beforeTitle",this,t),o=h1(r,"title",this,t),a=h1(r,"afterTitle",this,t);let l=[];return l=Ci(l,io(i)),l=Ci(l,io(o)),l=Ci(l,io(a)),l}getBeforeBody(t,n){return jx(h1(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return In(t,o=>{const a={before:[],lines:[],after:[]},l=Lx(r,o);Ci(a.before,io(h1(l,"beforeLabel",this,o))),Ci(a.lines,h1(l,"label",this,o)),Ci(a.after,io(h1(l,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return jx(h1(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=h1(r,"beforeFooter",this,t),o=h1(r,"footer",this,t),a=h1(r,"afterFooter",this,t);let l=[];return l=Ci(l,io(i)),l=Ci(l,io(o)),l=Ci(l,io(a)),l}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let l=[],c,d;for(c=0,d=n.length;c<d;++c)l.push(gre(this.chart,n[c]));return t.filter&&(l=l.filter((f,m,v)=>t.filter(f,m,v,r))),t.itemSort&&(l=l.sort((f,m)=>t.itemSort(f,m,r))),In(l,f=>{const m=Lx(t.callbacks,f);i.push(h1(m,"labelColor",this,f)),o.push(h1(m,"labelPointStyle",this,f)),a.push(h1(m,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const l=yc[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=Ax(this,r),d=Object.assign({},l,c),f=Nx(this.chart,r,d),m=Dx(r,d,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,o={opacity:1,x:m.x,y:m.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:m}=Ya(l),{x:v,y:b}=t,{width:y,height:S}=n;let x,M,w,E,O,z;return o==="center"?(O=b+S/2,i==="left"?(x=v,M=x-a,E=O+a,z=O-a):(x=v+y,M=x+a,E=O-a,z=O+a),w=x):(i==="left"?M=v+Math.max(c,f)+a:i==="right"?M=v+y-Math.max(d,m)-a:M=this.caretX,o==="top"?(E=b,O=E-a,x=M-a,w=M+a):(E=b+S,O=E+a,x=M+a,w=M-a),z=E),{x1:x,x2:M,x3:w,y1:E,y2:O,y3:z}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,l,c;if(o){const d=f2(r.rtl,this.x,this.width);for(t.x=J0(this,r.titleAlign,r),n.textAlign=d.textAlign(r.titleAlign),n.textBaseline="middle",a=yr(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,c=0;c<o;++c)n.fillText(i[c],d.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+l,c+1===o&&(t.y+=r.titleMarginBottom-l)}}_drawColorBox(t,n,r,i,o){const a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=o,f=yr(o.bodyFont),m=J0(this,"left",o),v=i.x(m),b=c<f.lineHeight?(f.lineHeight-c)/2:0,y=n.y+b;if(o.usePointStyle){const S={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},x=i.leftForLtr(v,d)+d/2,M=y+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Cf(t,S,x,M),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Cf(t,S,x,M)}else{t.lineWidth=sn(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const S=i.leftForLtr(v,d),x=i.leftForLtr(i.xPlus(v,1),d-2),M=Ya(a.borderRadius);Object.values(M).some(w=>w!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Kc(t,{x:S,y,w:d,h:c,radius:M}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Kc(t,{x,y:y+1,w:d-2,h:c-2,radius:M}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(S,y,d,c),t.strokeRect(S,y,d,c),t.fillStyle=a.backgroundColor,t.fillRect(x,y+1,d-2,c-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:f}=r,m=yr(r.bodyFont);let v=m.lineHeight,b=0;const y=f2(r.rtl,this.x,this.width),S=function(A){n.fillText(A,y.x(t.x+b),t.y+v/2),t.y+=v+o},x=y.textAlign(a);let M,w,E,O,z,_,I;for(n.textAlign=a,n.textBaseline="middle",n.font=m.string,t.x=J0(this,x,r),n.fillStyle=r.bodyColor,In(this.beforeBody,S),b=l&&x!=="right"?a==="center"?d/2+f:d+2+f:0,O=0,_=i.length;O<_;++O){for(M=i[O],w=this.labelTextColors[O],n.fillStyle=w,In(M.before,S),E=M.lines,l&&E.length&&(this._drawColorBox(n,t,O,y,r),v=Math.max(m.lineHeight,c)),z=0,I=E.length;z<I;++z)S(E[z]),v=m.lineHeight;In(M.after,S)}b=0,v=m.lineHeight,In(this.afterBody,S),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let a,l;if(o){const c=f2(r.rtl,this.x,this.width);for(t.x=J0(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",a=yr(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:a}=this,{x:l,y:c}=t,{width:d,height:f}=r,{topLeft:m,topRight:v,bottomLeft:b,bottomRight:y}=Ya(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(l+m,c),a==="top"&&this.drawCaret(t,n,r,i),n.lineTo(l+d-v,c),n.quadraticCurveTo(l+d,c,l+d,c+v),a==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(l+d,c+f-y),n.quadraticCurveTo(l+d,c+f,l+d-y,c+f),a==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(l+b,c+f),n.quadraticCurveTo(l,c+f,l,c+f-b),a==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(l,c+m),n.quadraticCurveTo(l,c,l+m,c),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=yc[t.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=Ax(this,t),c=Object.assign({},a,this._size),d=Nx(n,t,c),f=Dx(t,c,d,n);(i._to!==f.x||o._to!==f.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Jr(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),oO(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),aO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),o=!s5(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),l=this._positionChanged(a,t),c=n||!s5(a,o)||l;return c&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=yc[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}var xre={id:"tooltip",_element:Bx,positioners:yc,afterInit(e,t,n){n&&(e.tooltip=new Bx({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:IO},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Cre=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Mre(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Cre(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const wre=(e,t)=>e===null?null:m1(Math.round(e),0,t);function Hx(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class zre extends W2{static id="category";static defaults={ticks:{callback:Hx}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Vn(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Mre(r,t,en(n,t),this._addedLabels),wre(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=t;a<=n;a++)i.push({value:a});return i}getLabelForValue(t){return Hx.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function $re(e,t){const n=[],{bounds:i,step:o,min:a,max:l,precision:c,count:d,maxTicks:f,maxDigits:m,includeBounds:v}=e,b=o||1,y=f-1,{min:S,max:x}=t,M=!Vn(a),w=!Vn(l),E=!Vn(d),O=(x-S)/(m+1);let z=HS((x-S)/y/b)*b,_,I,A,N;if(z<1e-14&&!M&&!w)return[{value:S},{value:x}];N=Math.ceil(x/z)-Math.floor(S/z),N>y&&(z=HS(N*z/y/b)*b),Vn(c)||(_=Math.pow(10,c),z=Math.ceil(z*_)/_),i==="ticks"?(I=Math.floor(S/z)*z,A=Math.ceil(x/z)*z):(I=S,A=x),M&&w&&o&&DJ((l-a)/o,z/1e3)?(N=Math.round(Math.min((l-a)/z,f)),z=(l-a)/N,I=a,A=l):E?(I=M?a:I,A=w?l:A,N=d-1,z=(A-I)/N):(N=(A-I)/z,Ec(N,Math.round(N),z/1e3)?N=Math.round(N):N=Math.ceil(N));const D=Math.max(kS(z),kS(I));_=Math.pow(10,Vn(c)?D:c),I=Math.round(I*_)/_,A=Math.round(A*_)/_;let L=0;for(M&&(v&&I!==a?(n.push({value:a}),I<a&&L++,Ec(Math.round((I+L*z)*_)/_,a,kx(a,O,e))&&L++):I<a&&L++);L<N;++L){const q=Math.round((I+L*z)*_)/_;if(w&&q>l)break;n.push({value:q})}return w&&v&&A!==l?n.length&&Ec(n[n.length-1].value,l,kx(l,O,e))?n[n.length-1].value=l:n.push({value:l}):(!w||A===l)&&n.push({value:A}),n}function kx(e,t,{horizontal:n,minRotation:r}){const i=Qo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class Ef extends W2{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Vn(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=c=>i=n?i:c,l=c=>o=r?o:c;if(t){const c=O2(i),d=O2(o);c<0&&d<0?l(0):c>0&&d>0&&a(0)}if(i===o){let c=o===0?1:Math.abs(o*.05);l(o+c),t||a(i-c)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=$re(i,o);return t.bounds==="ticks"&&jJ(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return QE(t,this.chart.options.locale,this.options.ticks.format)}}class Ere extends Ef{static id="linear";static defaults={ticks:{callback:rh.formatters.numeric}};determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ir(t)?t:0,this.max=Ir(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Qo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function Of(e){const t=e.ticks;if(t.display&&e.display){const n=Jr(t.backdropPadding);return en(t.font&&t.font.size,rr.font.size)+n.height}return 0}function Ore(e,t,n){return n=Qn(n)?n:[n],{w:nee(e,t.string,n),h:n.length*t.lineHeight}}function Fx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function _re(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,a=e.options.pointLabels,l=a.centerPointLabels?Rn/o:0;for(let c=0;c<o;c++){const d=a.setContext(e.getPointLabelContext(c));i[c]=d.padding;const f=e.getPointPosition(c,e.drawingArea+i[c],l),m=yr(d.font),v=Ore(e.ctx,m,e._pointLabels[c]);r[c]=v;const b=Zr(e.getIndexAngle(c)+l),y=Math.round(Z9(b)),S=Fx(y,f.x,v.w,0,180),x=Fx(y,f.y,v.h,90,270);Ire(n,t,b,S,x)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Pre(e,r,i)}function Ire(e,t,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let l=0,c=0;r.start<t.l?(l=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-l)):r.end>t.r&&(l=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+l)),i.start<t.t?(c=(t.t-i.start)/a,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/a,e.b=Math.max(e.b,t.b+c))}function Rre(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:o,padding:a,size:l}=n,c=e.getPointPosition(t,r+i+a,o),d=Math.round(Z9(Zr(c.angle+br))),f=Dre(c.y,l.h,d),m=Are(d),v=Nre(c.x,l.w,m);return{visible:!0,x:c.x,y:f,textAlign:m,left:v,top:f,right:v+l.w,bottom:f+l.h}}function Tre(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:o}=e;return!(so({x:n,y:r},t)||so({x:n,y:o},t)||so({x:i,y:r},t)||so({x:i,y:o},t))}function Pre(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:a,display:l}=o.pointLabels,c={extra:Of(o)/2,additionalAngle:a?Rn/i:0};let d;for(let f=0;f<i;f++){c.padding=n[f],c.size=t[f];const m=Rre(e,f,c);r.push(m),l==="auto"&&(m.visible=Tre(m,d),m.visible&&(d=m))}return r}function Are(e){return e===0||e===180?"center":e<180?"left":"right"}function Nre(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Dre(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function jre(e,t,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:l}=t;if(!Vn(l)){const c=Ya(t.borderRadius),d=Jr(t.backdropPadding);e.fillStyle=l;const f=r-d.left,m=i-d.top,v=o-r+d.width,b=a-i+d.height;Object.values(c).some(y=>y!==0)?(e.beginPath(),Kc(e,{x:f,y:m,w:v,h:b,radius:c}),e.fill()):e.fillRect(f,m,v,b)}}function Lre(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=e._pointLabelItems[i];if(!o.visible)continue;const a=r.setContext(e.getPointLabelContext(i));jre(n,a,o);const l=yr(a.font),{x:c,y:d,textAlign:f}=o;ss(n,e._pointLabels[i],c,d+l.lineHeight/2,l,{color:a.color,textAlign:f,textBaseline:"middle"})}}function RO(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,gr);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let a=1;a<r;a++)o=e.getPointPosition(a,t),i.lineTo(o.x,o.y)}}function Bre(e,t,n,r,i){const o=e.ctx,a=t.circular,{color:l,lineWidth:c}=t;!a&&!r||!l||!c||n<0||(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash(i.dash||[]),o.lineDashOffset=i.dashOffset,o.beginPath(),RO(e,n,a,r),o.closePath(),o.stroke(),o.restore())}function Hre(e,t,n){return da(e,{label:n,index:t,type:"pointLabel"})}class kre extends Ef{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:rh.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Jr(Of(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=Ir(t)&&!isNaN(t)?t:0,this.max=Ir(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Of(this.options))}generateTickLabels(t){Ef.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Fn(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?_re(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=gr/(this._pointLabels.length||1),r=this.options.startAngle||0;return Zr(t*n+Qo(r))}getDistanceFromCenterForValue(t){if(Vn(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Vn(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return Hre(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-br+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),RO(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,a=this._pointLabels.length;let l,c,d;if(n.pointLabels.display&&Lre(this,a),i.display&&this.ticks.forEach((f,m)=>{if(m!==0||m===0&&this.min<0){c=this.getDistanceFromCenterForValue(f.value);const v=this.getContext(m),b=i.setContext(v),y=o.setContext(v);Bre(this,b,c,a,y)}}),r.display){for(t.save(),l=a-1;l>=0;l--){const f=r.setContext(this.getPointLabelContext(l)),{color:m,lineWidth:v}=f;!v||!m||(t.lineWidth=v,t.strokeStyle=m,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,c=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),d=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(d.x,d.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;const d=r.setContext(this.getContext(c)),f=yr(d.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){t.font=f.string,a=t.measureText(l.label).width,t.fillStyle=d.backdropColor;const m=Jr(d.backdropPadding);t.fillRect(-a/2-m.left,-o-f.size/2-m.top,a+m.width,f.size+m.height)}ss(t,l.label,0,-o,f,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),t.restore()}drawTitle(){}}const h4={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},g1=Object.keys(h4);function Vx(e,t){return e-t}function Wx(e,t){if(Vn(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Ir(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(f5(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Ux(e,t,n,r){const i=g1.length;for(let o=g1.indexOf(e);o<i-1;++o){const a=h4[g1[o]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-t)/(l*a.size))<=r)return g1[o]}return g1[i-1]}function Fre(e,t,n,r,i){for(let o=g1.length-1;o>=g1.indexOf(n);o--){const a=g1[o];if(h4[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return g1[n?g1.indexOf(n):0]}function Vre(e){for(let t=g1.indexOf(e)+1,n=g1.length;t<n;++t)if(h4[g1[t]].common)return g1[t]}function qx(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=eh(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Wre(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let l,c;for(l=o;l<=a;l=+i.add(l,1,r))c=n[l],c>=0&&(t[c].major=!0);return t}function Gx(e,t,n){const r=[],i={},o=t.length;let a,l;for(a=0;a<o;++a)l=t[a],i[l]=a,r.push({value:l,major:!1});return o===0||!n?r:Wre(e,r,i,n)}class Xx extends W2{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new lte._date(t.adapters.date);i.init(n),$c(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Wx(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:l}=this.getUserBounds();function c(d){!a&&!isNaN(d.min)&&(i=Math.min(i,d.min)),!l&&!isNaN(d.max)&&(o=Math.max(o,d.max))}(!a||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=Ir(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=Ir(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=this.max,l=kJ(i,o,a);return this._unit=n.unit||(r.autoSkip?Ux(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Fre(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Vre(this._unit),this.initOffsets(i),t.reverse&&l.reverse(),Gx(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=m1(n,0,a),r=m1(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Ux(o.minUnit,n,r,this._getLabelCapacity(n)),l=en(i.ticks.stepSize,1),c=a==="week"?o.isoWeekday:!1,d=f5(c)||c===!0,f={};let m=n,v,b;if(d&&(m=+t.startOf(m,"isoWeek",c)),m=+t.startOf(m,d?"day":a),t.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(v=m,b=0;v<r;v=+t.add(v,l,a),b++)qx(f,v,y);return(v===r||i.bounds==="ticks"||b===1)&&qx(f,v,y),Object.keys(f).sort(Vx).map(S=>+S)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Fn(a,[t,n,r],this);const l=o.time.displayFormats,c=this._unit,d=this._majorUnit,f=c&&l[c],m=d&&l[d],v=r[n],b=d&&m&&v&&v.major;return this._adapter.format(t,i||(b?m:f))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Qo(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:r*o+l*a,h:r*a+l*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,Gx(this,[t],this._majorUnit),i),a=this._getLabelSize(o),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(Wx(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return VJ(t.sort(Vx))}}function e6(e,t,n){let r=0,i=e.length-1,o,a,l,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Sf(e,"pos",t)),{pos:o,time:l}=e[r],{pos:a,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Sf(e,"time",t)),{time:o,pos:l}=e[r],{time:a,pos:c}=e[i]);const d=a-o;return d?l+(c-l)*(t-o)/d:l}class Kae extends Xx{static id="timeseries";static defaults=Xx.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=e6(n,this.min),this._tableRange=e6(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,l,c,d,f;for(a=0,l=t.length;a<l;++a)d=t[a],d>=n&&d<=r&&i.push(d);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=i.length;a<l;++a)f=i[a+1],c=i[a-1],d=i[a],Math.round((f+c)/2)!==d&&o.push({time:d,pos:a/(l-1)});return o}_generate(){const t=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(t)||!r.length)&&r.splice(0,0,t),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(e6(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return e6(this._table,r*this._tableRange+this._minPos,!0)}}CO.register(Mne,Bne,zre,ore,dre,Ere,d4,Pne,kre,hre,xre);L9.Group;var N7={exports:{}},D7,Yx;function Ure(){if(Yx)return D7;Yx=1;function e(k){return k&&typeof k=="object"&&"default"in k?k.default:k}var t=e(y5()),n=Df();function r(k,P){for(var U=Object.getOwnPropertyNames(P),V=0;V<U.length;V++){var R=U[V],X=Object.getOwnPropertyDescriptor(P,R);X&&X.configurable&&k[R]===void 0&&Object.defineProperty(k,R,X)}return k}function i(){return(i=Object.assign||function(k){for(var P=1;P<arguments.length;P++){var U=arguments[P];for(var V in U)Object.prototype.hasOwnProperty.call(U,V)&&(k[V]=U[V])}return k}).apply(this,arguments)}function o(k,P){k.prototype=Object.create(P.prototype),r(k.prototype.constructor=k,P)}function a(k,P){if(k==null)return{};var U,V,R={},X=Object.keys(k);for(V=0;V<X.length;V++)U=X[V],0<=P.indexOf(U)||(R[U]=k[U]);return R}function l(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}var c=function(k,P,U,V,R,X,Y,Q){if(!k){var ie;if(P===void 0)ie=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ee=[U,V,R,X,Y,Q],ce=0;(ie=new Error(P.replace(/%s/g,function(){return ee[ce++]}))).name="Invariant Violation"}throw ie.framesToPop=1,ie}},d=c;function f(k,P,U){if("selectionStart"in k&&"selectionEnd"in k)k.selectionStart=P,k.selectionEnd=U;else{var V=k.createTextRange();V.collapse(!0),V.moveStart("character",P),V.moveEnd("character",U-P),V.select()}}function m(k){var P=0,U=0;if("selectionStart"in k&&"selectionEnd"in k)P=k.selectionStart,U=k.selectionEnd;else{var V=document.selection.createRange();V.parentElement()===k&&(P=-V.moveStart("character",-k.value.length),U=-V.moveEnd("character",-k.value.length))}return{start:P,end:U,length:U-P}}var v={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},b="_";function y(k,P,U){var V="",R="",X=null,Y=[];if(P===void 0&&(P=b),U==null&&(U=v),!k||typeof k!="string")return{maskChar:P,formatChars:U,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var Q=!1;return k.split("").forEach(function(ie){Q=!Q&&ie==="\\"||(Q||!U[ie]?(Y.push(V.length),V.length===Y.length-1&&(R+=ie)):X=V.length+1,V+=ie,!1)}),{maskChar:P,formatChars:U,prefix:R,mask:V,lastEditablePosition:X,permanents:Y}}function S(k,P){return k.permanents.indexOf(P)!==-1}function x(k,P,U){var V=k.mask,R=k.formatChars;if(!U)return!1;if(S(k,P))return V[P]===U;var X=R[V[P]];return new RegExp(X).test(U)}function M(k,P){return P.split("").every(function(U,V){return S(k,V)||!x(k,V,U)})}function w(k,P){var U=k.maskChar,V=k.prefix;if(!U){for(;P.length>V.length&&S(k,P.length-1);)P=P.slice(0,P.length-1);return P.length}for(var R=V.length,X=P.length;X>=V.length;X--){var Y=P[X];if(!S(k,X)&&x(k,X,Y)){R=X+1;break}}return R}function E(k,P){return w(k,P)===k.mask.length}function O(k,P){var U=k.maskChar,V=k.mask,R=k.prefix;if(!U){for((P=_(k,"",P,0)).length<R.length&&(P=R);P.length<V.length&&S(k,P.length);)P+=V[P.length];return P}if(P)return _(k,O(k,""),P,0);for(var X=0;X<V.length;X++)S(k,X)?P+=V[X]:P+=U;return P}function z(k,P,U,V){var R=U+V,X=k.maskChar,Y=k.mask,Q=k.prefix,ie=P.split("");if(X)return ie.map(function(ce,ye){return ye<U||R<=ye?ce:S(k,ye)?Y[ye]:X}).join("");for(var ee=R;ee<ie.length;ee++)S(k,ee)&&(ie[ee]="");return U=Math.max(Q.length,U),ie.splice(U,R-U),P=ie.join(""),O(k,P)}function _(k,P,U,V){var R=k.mask,X=k.maskChar,Y=k.prefix,Q=U.split(""),ie=E(k,P);return!X&&V>P.length&&(P+=R.slice(P.length,V)),Q.every(function(ee){for(;se=ee,S(k,ue=V)&&se!==R[ue];){if(V>=P.length&&(P+=R[V]),ce=ee,ye=V,X&&S(k,ye)&&ce===X)return!0;if(++V>=R.length)return!1}var ce,ye,ue,se;return!x(k,V,ee)&&ee!==X||(V<P.length?P=X||ie||V<Y.length?P.slice(0,V)+ee+P.slice(V+1):(P=P.slice(0,V)+ee+P.slice(V),O(k,P)):X||(P+=ee),++V<R.length)}),P}function I(k,P,U,V){var R=k.mask,X=k.maskChar,Y=U.split(""),Q=V;return Y.every(function(ie){for(;ce=ie,S(k,ee=V)&&ce!==R[ee];)if(++V>=R.length)return!1;var ee,ce;return(x(k,V,ie)||ie===X)&&V++,V<R.length}),V-Q}function A(k,P){for(var U=P;0<=U;--U)if(!S(k,U))return U;return null}function N(k,P){for(var U=k.mask,V=P;V<U.length;++V)if(!S(k,V))return V;return null}function D(k){return k||k===0?k+"":""}function L(k,P,U,V,R){var X=k.mask,Y=k.prefix,Q=k.lastEditablePosition,ie=P,ee="",ce=0,ye=0,ue=Math.min(R.start,U.start);return U.end>R.start?ye=(ce=I(k,V,ee=ie.slice(R.start,U.end),ue))?R.length:0:ie.length<V.length&&(ye=V.length-ie.length),ie=V,ye&&(ye===1&&!R.length&&(ue=R.start===U.start?N(k,U.start):A(k,U.start)),ie=z(k,ie,ue,ye)),ie=_(k,ie,ee,ue),(ue+=ce)>=X.length?ue=X.length:ue<Y.length&&!ce?ue=Y.length:ue>=Y.length&&ue<Q&&ce&&(ue=N(k,ue)),ee||(ee=null),{value:ie=O(k,ie),enteredString:ee,selection:{start:ue,end:ue}}}function q(){var k=new RegExp("windows","i"),P=new RegExp("phone","i"),U=navigator.userAgent;return k.test(U)&&P.test(U)}function H(k){return typeof k=="function"}function B(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function F(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function T(k){return(F()?B():function(){return setTimeout(k,1e3/60)})(k)}function j(k){(F()||clearTimeout)(k)}var G=(function(k){function P(V){var R=k.call(this,V)||this;R.focused=!1,R.mounted=!1,R.previousSelection=null,R.selectionDeferId=null,R.saveSelectionLoopDeferId=null,R.saveSelectionLoop=function(){R.previousSelection=R.getSelection(),R.saveSelectionLoopDeferId=T(R.saveSelectionLoop)},R.runSaveSelectionLoop=function(){R.saveSelectionLoopDeferId===null&&R.saveSelectionLoop()},R.stopSaveSelectionLoop=function(){R.saveSelectionLoopDeferId!==null&&(j(R.saveSelectionLoopDeferId),R.saveSelectionLoopDeferId=null,R.previousSelection=null)},R.getInputDOMNode=function(){if(!R.mounted)return null;var de=n.findDOMNode(l(l(R))),ve=typeof window<"u"&&de instanceof window.Element;if(de&&!ve)return null;if(de.nodeName!=="INPUT"&&(de=de.querySelector("input")),!de)throw new Error("react-input-mask: inputComponent doesn't contain input node");return de},R.getInputValue=function(){var de=R.getInputDOMNode();return de?de.value:null},R.setInputValue=function(de){var ve=R.getInputDOMNode();ve&&(R.value=de,ve.value=de)},R.setCursorToEnd=function(){var de=w(R.maskOptions,R.value),ve=N(R.maskOptions,de);ve!==null&&R.setCursorPosition(ve)},R.setSelection=function(de,ve,fe){fe===void 0&&(fe={});var oe=R.getInputDOMNode(),pe=R.isFocused();oe&&pe&&(fe.deferred||f(oe,de,ve),R.selectionDeferId!==null&&j(R.selectionDeferId),R.selectionDeferId=T(function(){R.selectionDeferId=null,f(oe,de,ve)}),R.previousSelection={start:de,end:ve,length:Math.abs(ve-de)})},R.getSelection=function(){return m(R.getInputDOMNode())},R.getCursorPosition=function(){return R.getSelection().start},R.setCursorPosition=function(de){R.setSelection(de,de)},R.isFocused=function(){return R.focused},R.getBeforeMaskedValueChangeConfig=function(){var de=R.maskOptions,ve=de.mask,fe=de.maskChar,oe=de.permanents,pe=de.formatChars;return{mask:ve,maskChar:fe,permanents:oe,alwaysShowMask:!!R.props.alwaysShowMask,formatChars:pe}},R.isInputAutofilled=function(de,ve,fe,oe){var pe=R.getInputDOMNode();try{if(pe.matches(":-webkit-autofill"))return!0}catch{}return!R.focused||oe.end<fe.length&&ve.end===de.length},R.onChange=function(de){var ve=l(l(R)).beforePasteState,fe=l(l(R)).previousSelection,oe=R.props.beforeMaskedValueChange,pe=R.getInputValue(),we=R.value,Oe=R.getSelection();R.isInputAutofilled(pe,Oe,we,fe)&&(we=O(R.maskOptions,""),fe={start:0,end:0,length:0}),ve&&(fe=ve.selection,we=ve.value,Oe={start:fe.start+pe.length,end:fe.start+pe.length,length:0},pe=we.slice(0,fe.start)+pe+we.slice(fe.end),R.beforePasteState=null);var Pe=L(R.maskOptions,pe,Oe,we,fe),Ae=Pe.enteredString,Re=Pe.selection,_e=Pe.value;if(H(oe)){var ze=oe({value:_e,selection:Re},{value:we,selection:fe},Ae,R.getBeforeMaskedValueChangeConfig());_e=ze.value,Re=ze.selection}R.setInputValue(_e),H(R.props.onChange)&&R.props.onChange(de),R.isWindowsPhoneBrowser?R.setSelection(Re.start,Re.end,{deferred:!0}):R.setSelection(Re.start,Re.end)},R.onFocus=function(de){var ve=R.props.beforeMaskedValueChange,fe=R.maskOptions,oe=fe.mask,pe=fe.prefix;if(R.focused=!0,R.mounted=!0,oe){if(R.value)w(R.maskOptions,R.value)<R.maskOptions.mask.length&&R.setCursorToEnd();else{var we=O(R.maskOptions,pe),Oe=O(R.maskOptions,we),Pe=w(R.maskOptions,Oe),Ae=N(R.maskOptions,Pe),Re={start:Ae,end:Ae};if(H(ve)){var _e=ve({value:Oe,selection:Re},{value:R.value,selection:null},null,R.getBeforeMaskedValueChangeConfig());Oe=_e.value,Re=_e.selection}var ze=Oe!==R.getInputValue();ze&&R.setInputValue(Oe),ze&&H(R.props.onChange)&&R.props.onChange(de),R.setSelection(Re.start,Re.end)}R.runSaveSelectionLoop()}H(R.props.onFocus)&&R.props.onFocus(de)},R.onBlur=function(de){var ve=R.props.beforeMaskedValueChange,fe=R.maskOptions.mask;if(R.stopSaveSelectionLoop(),R.focused=!1,fe&&!R.props.alwaysShowMask&&M(R.maskOptions,R.value)){var oe="";H(ve)&&(oe=ve({value:oe,selection:null},{value:R.value,selection:R.previousSelection},null,R.getBeforeMaskedValueChangeConfig()).value);var pe=oe!==R.getInputValue();pe&&R.setInputValue(oe),pe&&H(R.props.onChange)&&R.props.onChange(de)}H(R.props.onBlur)&&R.props.onBlur(de)},R.onMouseDown=function(de){if(!R.focused&&document.addEventListener){R.mouseDownX=de.clientX,R.mouseDownY=de.clientY,R.mouseDownTime=new Date().getTime();var ve=function fe(oe){if(document.removeEventListener("mouseup",fe),R.focused){var pe=Math.abs(oe.clientX-R.mouseDownX),we=Math.abs(oe.clientY-R.mouseDownY),Oe=Math.max(pe,we),Pe=new Date().getTime()-R.mouseDownTime;(Oe<=10&&Pe<=200||Oe<=5&&Pe<=300)&&R.setCursorToEnd()}};document.addEventListener("mouseup",ve)}H(R.props.onMouseDown)&&R.props.onMouseDown(de)},R.onPaste=function(de){H(R.props.onPaste)&&R.props.onPaste(de),de.defaultPrevented||(R.beforePasteState={value:R.getInputValue(),selection:R.getSelection()},R.setInputValue(""))},R.handleRef=function(de){R.props.children==null&&H(R.props.inputRef)&&R.props.inputRef(de)};var X=V.mask,Y=V.maskChar,Q=V.formatChars,ie=V.alwaysShowMask,ee=V.beforeMaskedValueChange,ce=V.defaultValue,ye=V.value;R.maskOptions=y(X,Y,Q),ce==null&&(ce=""),ye==null&&(ye=ce);var ue=D(ye);if(R.maskOptions.mask&&(ie||ue)&&(ue=O(R.maskOptions,ue),H(ee))){var se=V.value;V.value==null&&(se=ce),ue=ee({value:ue,selection:null},{value:se=D(se),selection:null},null,R.getBeforeMaskedValueChangeConfig()).value}return R.value=ue,R}o(P,k);var U=P.prototype;return U.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=q(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},U.componentDidUpdate=function(){var V=this.previousSelection,R=this.props,X=R.beforeMaskedValueChange,Y=R.alwaysShowMask,Q=R.mask,ie=R.maskChar,ee=R.formatChars,ce=this.maskOptions,ye=Y||this.isFocused(),ue=this.props.value!=null,se=ue?D(this.props.value):this.value,de=V?V.start:null;if(this.maskOptions=y(Q,ie,ee),this.maskOptions.mask){!ce.mask&&this.isFocused()&&this.runSaveSelectionLoop();var ve=this.maskOptions.mask&&this.maskOptions.mask!==ce.mask;if(ce.mask||ue||(se=this.getInputValue()),(ve||this.maskOptions.mask&&(se||ye))&&(se=O(this.maskOptions,se)),ve){var fe=w(this.maskOptions,se);(de===null||fe<de)&&(de=E(this.maskOptions,se)?fe:N(this.maskOptions,fe))}!this.maskOptions.mask||!M(this.maskOptions,se)||ye||ue&&this.props.value||(se="");var oe={start:de,end:de};if(H(X)){var pe=X({value:se,selection:oe},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());se=pe.value,oe=pe.selection}this.value=se;var we=this.getInputValue()!==this.value;we?(this.setInputValue(this.value),this.forceUpdate()):ve&&this.forceUpdate();var Oe=!1;oe.start!=null&&oe.end!=null&&(Oe=!V||V.start!==oe.start||V.end!==oe.end),(Oe||we)&&this.setSelection(oe.start,oe.end)}else ce.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},U.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&j(this.selectionDeferId),this.stopSaveSelectionLoop()},U.render=function(){var V,R=this.props,X=(R.mask,R.alwaysShowMask,R.maskChar,R.formatChars,R.inputRef,R.beforeMaskedValueChange,R.children),Y=a(R,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(X){H(X)||d(!1);var Q=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],ie=i({},Y);Q.forEach(function(ce){return delete ie[ce]}),V=X(ie),Q.filter(function(ce){return V.props[ce]!=null&&V.props[ce]!==Y[ce]}).length&&d(!1)}else V=t.createElement("input",i({ref:this.handleRef},Y));var ee={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(Y.disabled||Y.readOnly||(ee.onChange=this.onChange,ee.onPaste=this.onPaste,ee.onMouseDown=this.onMouseDown),Y.value!=null&&(ee.value=this.value)),V=t.cloneElement(V,ee)},P})(t.Component);return D7=G,D7}var Kx;function qre(){return Kx||(Kx=1,N7.exports=Ure()),N7.exports}qre();const Gre=({children:e,plainOffset:t,...n})=>{const{getPrefixCls:r,theme:i}=g.useContext(En.ConfigContext),{token:o,hashId:a}=t1(),l=o.Divider;return xr({token:o,path:["Divider"]},()=>{const d=`.${r()}-divider`,f=`:where(.${a})${d}`,m=V2(i);return{[`${f}-plain`]:{[`&${f}-horizontal${d}-with-text-left`]:{"&:before":{width:t?`${t-l.textPaddingInline}px`:m.sizing.valueAuto,marginInlineStart:t?`-${t}px`:"-40px"},"&:after":{width:m.sizing.valueFull,marginInlineStart:m.sizing.valueZero,marginInlineEnd:t?`-${t}px`:"-40px"}},[`${d}-with-text`]:{fontWeight:l?.fontWeight}}}})(ge.jsx(QG,{...n,children:e}))},Xre=({children:e,...t})=>ge.jsx(mE,{...t,children:e});mo.OTP;mo.Password;const Yre=g.forwardRef(({size:e,...t},n)=>{const{getPrefixCls:r,theme:i}=g.useContext(En.ConfigContext),{token:o,hashId:a}=t1(),l=o,c=`:where(.${a}).${r()}-input-search`,d=`.${r()}-input`,f=`.${r()}-input-affix-wrapper`,m=`.${r()}-input-search-button`;return xr({token:l,path:["InputSearch"]},()=>{const b=(y,S)=>({[`${d}, ${f}`]:{height:y,minHeight:y},[m]:{height:y,minHeight:y,width:y,minWidth:y,paddingInline:0,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:S,borderEndEndRadius:S}});return{[c]:{"&-small":b(l.controlHeightSM,l.borderRadiusSM),"&-middle":b(l.controlHeight,l.borderRadius),"&-large":b(l.controlHeightLG,l.borderRadiusLG)}}})(ge.jsx(mo.Search,{ref:n,...t,size:e??"middle"}))});Yre.displayName="InputSearch";mo.TextArea;const Kre=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Layout"]},()=>{const l=`:where(.${o}).${n()}-layout`,c=`.${n()}-layout`;return{[l]:{},[c]:{}}})(ge.jsx(Di,{...t,children:e}))},{Content:Qre}=Di,Zre=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Content"]},()=>{const l=`:where(.${o}).${n()}-content`,c=`.${n()}-content`;return{[l]:{},[c]:{}}})(ge.jsx(Qre,{...t,children:e}))},{Footer:Jre}=Di,e1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Footer"]},()=>{const l=`:where(.${o}).${n()}-footer`,c=`.${n()}-footer`;return{[l]:{},[c]:{}}})(ge.jsx(Jre,{...t,children:e}))},{Header:t1e}=Di,n1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Header"]},()=>{const l=`:where(.${o}).${n()}-header`,c=`.${n()}-header`;return{[l]:{},[c]:{}}})(ge.jsx(t1e,{...t,children:e}))},{Sider:r1e}=Di,i1e=({children:e,collapsed:t,iconUrl:n,brandImageUrl:r,position:i="left",...o})=>{const{getPrefixCls:a,theme:l}=g.useContext(En.ConfigContext),{token:c,hashId:d}=t1(),f=c.Layout,m=xr({token:c,path:["Sider"]},()=>{const b=`:where(.${d}).${a()}-layout-sider`,y=`.${a()}-layout-sider`;return{[b]:{"&-left":{borderInlineEnd:f.mainBorder},"&-right":{borderInlineStart:f.mainBorder}},[y]:{}}});let v;return n&&r&&(v=ge.jsxs("div",{className:`logo-container ${t?"collapsed":""}`,children:[ge.jsx("img",{className:"logo",src:n,alt:"icon",width:20,height:20}),ge.jsx("img",{className:"brand-image",src:r,alt:"brand-image",height:20})]})),m(ge.jsxs(r1e,{className:`${a()}-layout-sider-${i}`,collapsible:!0,collapsed:t,trigger:null,width:250,collapsedWidth:56,...o,children:[v,e]}))},o1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Flex"]},()=>{const l=`:where(.${o}).${n()}-flex`,c=`.${n()}-flex`;return{[l]:{},[c]:{}}})(ge.jsx(yE,{...t,children:e}))},a1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1(),a=i.Grid;return xr({token:i,path:["Row"]},()=>{const c=`:where(.${o}).${n()}-row`,d=`.${n()}-row`;return{[c]:{maxWidth:a?.rowMaxWidth},[d]:{}}})(ge.jsx(sE,{gutter:[a?.gutter,a?.gutter],...t,children:e}))},s1e=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1();return xr({token:i,path:["Col"]},()=>{const l=`:where(.${o}).${n()}-col`,c=`.${n()}-col`;return{[l]:{},[c]:{}}})(ge.jsx(aE,{...t,children:e}))};function TO(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=TO(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function l1e(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=TO(e))&&(r&&(r+=" "),r+=t);return r}const c1e=({title:e,description:t,actions:n,className:r})=>ge.jsxs(yE,{justify:"space-between",align:"flex-start",className:r,style:{borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ge.jsxs($2,{direction:"vertical",size:4,children:[ge.jsx(ho.Title,{level:4,style:{margin:0},children:e}),t&&ge.jsx(ho.Paragraph,{type:"secondary",style:{margin:0,fontSize:10},children:t})]}),n&&ge.jsx($2,{children:n})]}),t2=Object.assign(Kre,{Header:n1e,Footer:e1e,Content:Zre,Sider:i1e}),u1e=({children:e,...t})=>ge.jsx(k9,{...t,children:e});Object.assign(u1e,{Item:k9.Item});const d1e=3,f1e=({defaultOpenKeys:e,...t})=>{const{getPrefixCls:n,theme:r}=g.useContext(En.ConfigContext),{token:i,hashId:o}=t1(),a=i.Menu,c=`.${`${n()}-menu`}`,d=V2(r),f=xr({token:i,path:["Menu"]},()=>({[`:where(.${o})${c}`]:{minWidth:a.minWidth,[`&${c}-inline-collapsed`]:{minWidth:d.others.valueUnset},[`&${c}-dark`]:{[`${c}-title, ${c}-submenu-title`]:{paddingInlineEnd:"1rem",color:a.mainMenuColor,fontWeight:d.typography.fontWeightBold},[`${c}-item`]:{color:a.mainMenuColor,fontWeight:d.typography.fontWeightBold},[`${c}-sub`]:{fontWeight:d.typography.fontWeightMedium,[`${c}-item`]:{color:a.subMenuTitleColor,fontWeight:d.typography.fontWeightMedium},[`${c}-submenu`]:{[`${c}-submenu-title`]:{color:a.subMenuTitleColor,svg:{position:d.layout.positionAbsolute,marginLeft:a.subMenuTitleIconMargin,insetInlineEnd:d.others.valueUnset}},[`${c}-sub`]:{[`${c}-item-selected`]:{[`&${c}-item-only-child`]:{"&::after":{background:a.subMenuItemSelectedChildColor}}},[`${c}-item-only-child`]:{"&::after":{width:a.childMenuItemSelectedChildWidth,height:a.childMenuItemSelectedChildHeight,borderRadius:a.childMenuItemSelectedChildRadius,marginLeft:a.childMenuItemSelectedChildMargin,opacity:d.others.opacityFull,insetBlock:d.others.valueUnset,insetInlineEnd:d.others.valueUnset,transform:d.layout.displayNone,background:a.childMenuItemSelectedChildBgColor}}}},[`${c}-item-only-child`]:{"&::after":{width:a.subMenuOnlyChildSize,height:a.subMenuOnlyChildSize,borderRadius:d.sizing.valueHalf,background:a.subMenuOnlyChildBgColor,marginLeft:a.subMenuOnlyChildMargin,opacity:d.others.opacityFull,insetBlock:d.others.valueUnset,insetInlineEnd:d.others.valueUnset,transform:d.layout.displayNone}}}},[`&${c}-light`]:{background:a.lightItemBg,[`${c}-submenu`]:{"svg:first-child":{color:a.lightItemMainIconColor,fill:a.lightItemMainIconColor},"&-title":{color:a.lightItemMainTitle},[`${c}-sub`]:{background:a.LightSubItemBg,[`${c}-submenu`]:{[`${c}-submenu-title`]:{color:a.lightSubTitleColor,i:{background:a.lightSubIconColor}},[`${c}-sub`]:{[`${c}-item-selected`]:{[`&${c}-item-only-child`]:{background:a.lightchildItemBg,color:a.lightChildItemColor,"&::after":{background:a.lightChildItemColor}}},[`${c}-item-only-child`]:{color:a.lightSubTitleColor,"&::after":{background:a.lightSubTitleColor}}}},[`${c}-item-only-child`]:{color:a.lightSubTitleColor,fontWeight:d.typography.fontWeightMedium,"&::after":{background:a.lightSubTitleColor}}}}}},[c]:{}})),m=(y,S=0)=>!y||S>=d1e?y:y.map(x=>{const M={...x};return"icon"in M&&M.icon&&(M.icon=ge.jsx(l8,{icon:M.icon,size:S===0?18:10})),"children"in M&&Array.isArray(M.children)&&(M.children=m(M.children,S+1)),M}),v=m(t.items),b=y=>ge.jsx(l8,{icon:"chevron_down",size:14,style:{transform:y.isOpen?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out"}});return f(ge.jsx(F2,{defaultOpenKeys:e,...t,items:v,expandIcon:b}))};l3(function(e,t){t._reactRoot||(t._reactRoot=hM.createRoot(t));var n=t._reactRoot;return n.render(e),function(){return new Promise(function(r){setTimeout(function(){n.unmount(),r()},0)})}});Z5.Group;$2.Compact;const _f=({children:e,block:t,...n})=>ge.jsx($2,{...n,...t&&{style:{width:"100%"}},children:e}),Qx=()=>{},h1e=typeof window<"u",g1e=(e,t,n)=>{if(!h1e)return[t,Qx,Qx];const r=n?n.raw?(d=>d):n.deserializer:JSON.parse,i=g.useRef(d=>{try{const f=n?n.raw?String:n.serializer:JSON.stringify,m=localStorage.getItem(d);return m!==null?r(m):(t&&localStorage.setItem(d,f(t)),t)}catch{return t}}),[o,a]=g.useState(()=>i.current(e));g.useLayoutEffect(()=>a(i.current(e)),[e]);const l=g.useCallback(d=>{try{const f=typeof d=="function"?d(o):d;if(typeof f>"u")return;let m;n?n.raw?typeof f=="string"?m=f:m=JSON.stringify(f):n.serializer?m=n.serializer(f):m=JSON.stringify(f):m=JSON.stringify(f),localStorage.setItem(e,m),a(r(m))}catch{}},[e,a]),c=g.useCallback(()=>{try{localStorage.removeItem(e),a(void 0)}catch{}},[e,a]);return[o,l,c]},m1e=e=>{g.useEffect(()=>{e()},[])},v1e=({children:e,fontFamily:t,form:n})=>{m1e(()=>{r(),En.config({prefixCls:"akinon"})});const r=()=>{if(document.querySelector("style[data-akinon-ui-variables]"))return;const o=document.createElement("style");o.setAttribute("data-akinon-ui-variables","true"),o.innerHTML=`:root {${Object.entries(UZ()).map(([a,l])=>`${a}: ${l};`).join("")}}`,document.head.prepend(o)};return zc.token?.fontFamily&&t&&(zc.token.fontFamily=t),ge.jsx(En,{theme:zc,prefixCls:"akinon",form:n,children:e})};function p1e(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function b1e(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var y1e=(function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(b1e(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=p1e(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Xr="-ms-",p5="-moz-",Sn="-webkit-",PO="comm",dh="rule",fh="decl",S1e="@import",AO="@keyframes",x1e="@layer",C1e=Math.abs,g4=String.fromCharCode,M1e=Object.assign;function w1e(e,t){return Lr(e,0)^45?(((t<<2^Lr(e,0))<<2^Lr(e,1))<<2^Lr(e,2))<<2^Lr(e,3):0}function NO(e){return e.trim()}function z1e(e,t){return(e=t.exec(e))?e[0]:e}function xn(e,t,n){return e.replace(t,n)}function If(e,t){return e.indexOf(t)}function Lr(e,t){return e.charCodeAt(t)|0}function Zc(e,t,n){return e.slice(t,n)}function zi(e){return e.length}function hh(e){return e.length}function t6(e,t){return t.push(e),e}function $1e(e,t){return e.map(t).join("")}var m4=1,R2=1,DO=0,p1=0,hr=0,U2="";function v4(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m4,column:R2,length:a,return:""}}function ec(e,t){return M1e(v4("",null,null,"",null,null,0),e,{length:-e.length},t)}function E1e(){return hr}function O1e(){return hr=p1>0?Lr(U2,--p1):0,R2--,hr===10&&(R2=1,m4--),hr}function T1(){return hr=p1<DO?Lr(U2,p1++):0,R2++,hr===10&&(R2=1,m4++),hr}function Ii(){return Lr(U2,p1)}function I6(){return p1}function y3(e,t){return Zc(U2,e,t)}function Jc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jO(e){return m4=R2=1,DO=zi(U2=e),p1=0,[]}function LO(e){return U2="",e}function R6(e){return NO(y3(p1-1,Rf(e===91?e+2:e===40?e+1:e)))}function _1e(e){for(;(hr=Ii())&&hr<33;)T1();return Jc(e)>2||Jc(hr)>3?"":" "}function I1e(e,t){for(;--t&&T1()&&!(hr<48||hr>102||hr>57&&hr<65||hr>70&&hr<97););return y3(e,I6()+(t<6&&Ii()==32&&T1()==32))}function Rf(e){for(;T1();)switch(hr){case e:return p1;case 34:case 39:e!==34&&e!==39&&Rf(hr);break;case 40:e===41&&Rf(e);break;case 92:T1();break}return p1}function R1e(e,t){for(;T1()&&e+hr!==57;)if(e+hr===84&&Ii()===47)break;return"/*"+y3(t,p1-1)+"*"+g4(e===47?e:T1())}function T1e(e){for(;!Jc(Ii());)T1();return y3(e,p1)}function P1e(e){return LO(T6("",null,null,null,[""],e=jO(e),0,[0],e))}function T6(e,t,n,r,i,o,a,l,c){for(var d=0,f=0,m=a,v=0,b=0,y=0,S=1,x=1,M=1,w=0,E="",O=i,z=o,_=r,I=E;x;)switch(y=w,w=T1()){case 40:if(y!=108&&Lr(I,m-1)==58){If(I+=xn(R6(w),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:I+=R6(w);break;case 9:case 10:case 13:case 32:I+=_1e(y);break;case 92:I+=I1e(I6()-1,7);continue;case 47:switch(Ii()){case 42:case 47:t6(A1e(R1e(T1(),I6()),t,n),c);break;default:I+="/"}break;case 123*S:l[d++]=zi(I)*M;case 125*S:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+f:M==-1&&(I=xn(I,/\f/g,"")),b>0&&zi(I)-m&&t6(b>32?Jx(I+";",r,n,m-1):Jx(xn(I," ","")+";",r,n,m-2),c);break;case 59:I+=";";default:if(t6(_=Zx(I,t,n,d,f,i,l,E,O=[],z=[],m),o),w===123)if(f===0)T6(I,t,_,_,O,o,m,l,z);else switch(v===99&&Lr(I,3)===110?100:v){case 100:case 108:case 109:case 115:T6(e,_,_,r&&t6(Zx(e,_,_,0,0,i,l,E,i,O=[],m),z),i,z,m,l,r?O:z);break;default:T6(I,_,_,_,[""],z,0,l,z)}}d=f=b=0,S=M=1,E=I="",m=a;break;case 58:m=1+zi(I),b=y;default:if(S<1){if(w==123)--S;else if(w==125&&S++==0&&O1e()==125)continue}switch(I+=g4(w),w*S){case 38:M=f>0?1:(I+="\f",-1);break;case 44:l[d++]=(zi(I)-1)*M,M=1;break;case 64:Ii()===45&&(I+=R6(T1())),v=Ii(),f=m=zi(E=I+=T1e(I6())),w++;break;case 45:y===45&&zi(I)==2&&(S=0)}}return o}function Zx(e,t,n,r,i,o,a,l,c,d,f){for(var m=i-1,v=i===0?o:[""],b=hh(v),y=0,S=0,x=0;y<r;++y)for(var M=0,w=Zc(e,m+1,m=C1e(S=a[y])),E=e;M<b;++M)(E=NO(S>0?v[M]+" "+w:xn(w,/&\f/g,v[M])))&&(c[x++]=E);return v4(e,t,n,i===0?dh:l,c,d,f)}function A1e(e,t,n){return v4(e,t,n,PO,g4(E1e()),Zc(e,2,-2),0)}function Jx(e,t,n,r){return v4(e,t,n,fh,Zc(e,0,r),Zc(e,r+1,-1),r)}function h2(e,t){for(var n="",r=hh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function N1e(e,t,n,r){switch(e.type){case x1e:if(e.children.length)break;case S1e:case fh:return e.return=e.return||e.value;case PO:return"";case AO:return e.return=e.value+"{"+h2(e.children,r)+"}";case dh:e.value=e.props.join(",")}return zi(n=h2(e.children,r))?e.return=e.value+"{"+n+"}":""}function D1e(e){var t=hh(e);return function(n,r,i,o){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,o)||"";return a}}function j1e(e){return function(t){t.root||(t=t.return)&&e(t)}}var eC=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function L1e(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var B1e=function(t,n,r){for(var i=0,o=0;i=o,o=Ii(),i===38&&o===12&&(n[r]=1),!Jc(o);)T1();return y3(t,p1)},H1e=function(t,n){var r=-1,i=44;do switch(Jc(i)){case 0:i===38&&Ii()===12&&(n[r]=1),t[r]+=B1e(p1-1,n,r);break;case 2:t[r]+=R6(i);break;case 4:if(i===44){t[++r]=Ii()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=g4(i)}while(i=T1());return t},k1e=function(t,n){return LO(H1e(jO(t),n))},tC=new WeakMap,F1e=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!tC.get(r))&&!i){tC.set(t,!0);for(var o=[],a=k1e(n,o),l=r.props,c=0,d=0;c<a.length;c++)for(var f=0;f<l.length;f++,d++)t.props[d]=o[c]?a[c].replace(/&\f/g,l[f]):l[f]+" "+a[c]}}},V1e=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function BO(e,t){switch(w1e(e,t)){case 5103:return Sn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Sn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Sn+e+p5+e+Xr+e+e;case 6828:case 4268:return Sn+e+Xr+e+e;case 6165:return Sn+e+Xr+"flex-"+e+e;case 5187:return Sn+e+xn(e,/(\w+).+(:[^]+)/,Sn+"box-$1$2"+Xr+"flex-$1$2")+e;case 5443:return Sn+e+Xr+"flex-item-"+xn(e,/flex-|-self/,"")+e;case 4675:return Sn+e+Xr+"flex-line-pack"+xn(e,/align-content|flex-|-self/,"")+e;case 5548:return Sn+e+Xr+xn(e,"shrink","negative")+e;case 5292:return Sn+e+Xr+xn(e,"basis","preferred-size")+e;case 6060:return Sn+"box-"+xn(e,"-grow","")+Sn+e+Xr+xn(e,"grow","positive")+e;case 4554:return Sn+xn(e,/([^-])(transform)/g,"$1"+Sn+"$2")+e;case 6187:return xn(xn(xn(e,/(zoom-|grab)/,Sn+"$1"),/(image-set)/,Sn+"$1"),e,"")+e;case 5495:case 3959:return xn(e,/(image-set\([^]*)/,Sn+"$1$`$1");case 4968:return xn(xn(e,/(.+:)(flex-)?(.*)/,Sn+"box-pack:$3"+Xr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Sn+e+e;case 4095:case 3583:case 4068:case 2532:return xn(e,/(.+)-inline(.+)/,Sn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zi(e)-1-t>6)switch(Lr(e,t+1)){case 109:if(Lr(e,t+4)!==45)break;case 102:return xn(e,/(.+:)(.+)-([^]+)/,"$1"+Sn+"$2-$3$1"+p5+(Lr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~If(e,"stretch")?BO(xn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Lr(e,t+1)!==115)break;case 6444:switch(Lr(e,zi(e)-3-(~If(e,"!important")&&10))){case 107:return xn(e,":",":"+Sn)+e;case 101:return xn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Sn+(Lr(e,14)===45?"inline-":"")+"box$3$1"+Sn+"$2$3$1"+Xr+"$2box$3")+e}break;case 5936:switch(Lr(e,t+11)){case 114:return Sn+e+Xr+xn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Sn+e+Xr+xn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Sn+e+Xr+xn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Sn+e+Xr+e+e}return e}var W1e=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case fh:t.return=BO(t.value,t.length);break;case AO:return h2([ec(t,{value:xn(t.value,"@","@"+Sn)})],i);case dh:if(t.length)return $1e(t.props,function(o){switch(z1e(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return h2([ec(t,{props:[xn(o,/:(read-\w+)/,":"+p5+"$1")]})],i);case"::placeholder":return h2([ec(t,{props:[xn(o,/:(plac\w+)/,":"+Sn+"input-$1")]}),ec(t,{props:[xn(o,/:(plac\w+)/,":"+p5+"$1")]}),ec(t,{props:[xn(o,/:(plac\w+)/,Xr+"input-$1")]})],i)}return""})}},U1e=[W1e],HO=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var x=S.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||U1e,o={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var x=S.getAttribute("data-emotion").split(" "),M=1;M<x.length;M++)o[x[M]]=!0;l.push(S)});var c,d=[F1e,V1e];{var f,m=[N1e,j1e(function(S){f.insert(S)})],v=D1e(d.concat(i,m)),b=function(x){return h2(P1e(x),v)};c=function(x,M,w,E){f=w,b(x?x+"{"+M.styles+"}":M.styles),E&&(y.inserted[M.name]=!0)}}var y={key:n,sheet:new y1e({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return y.sheet.hydrate(l),y};function q1e(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var G1e={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},X1e=/[A-Z]|^ms/g,Y1e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kO=function(t){return t.charCodeAt(1)===45},nC=function(t){return t!=null&&typeof t!="boolean"},j7=L1e(function(e){return kO(e)?e:e.replace(X1e,"-$&").toLowerCase()}),rC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Y1e,function(r,i,o){return $i={name:i,styles:o,next:$i},i})}return G1e[t]!==1&&!kO(t)&&typeof n=="number"&&n!==0?n+"px":n};function e3(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return $i={name:i.name,styles:i.styles,next:$i},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)$i={name:a.name,styles:a.styles,next:$i},a=a.next;var l=o.styles+";";return l}return K1e(e,t,n)}case"function":{if(e!==void 0){var c=$i,d=n(e);return $i=c,e3(e,t,d)}break}}var f=n;if(t==null)return f;var m=t[f];return m!==void 0?m:f}function K1e(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=e3(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=o+"{"+t[l]+"}":nC(l)&&(r+=j7(o)+":"+rC(o,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)nC(a[c])&&(r+=j7(o)+":"+rC(o,a[c])+";");else{var d=e3(e,t,a);switch(o){case"animation":case"animationName":{r+=j7(o)+":"+d+";";break}default:r+=o+"{"+d+"}"}}}return r}var iC=/label:\s*([^\s;{]+)\s*(;|$)/g,$i;function ra(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";$i=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=e3(n,t,o);else{var a=o;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=e3(n,t,e[l]),r){var c=o;i+=c[l]}iC.lastIndex=0;for(var d="",f;(f=iC.exec(i))!==null;)d+="-"+f[1];var m=q1e(i)+d;return{name:m,styles:i,next:$i}}var Q1e=!0;function p4(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var gh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Q1e===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},mh=function(t,n,r){gh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function oC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function aC(e,t,n){var r=[],i=p4(e,r,n);return r.length<2?n:i+t(r)}var vh=function(t){var n=HO(t);n.sheet.speedy=function(l){this.isSpeedy=l},n.compat=!0;var r=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=ra(d,n.registered,void 0);return mh(n,m,!1),n.key+"-"+m.name},i=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=ra(d,n.registered),v="animation-"+m.name;return oC(n,{name:m.name,styles:"@keyframes "+v+"{"+m.styles+"}"}),v},o=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=ra(d,n.registered);oC(n,m)},a=function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return aC(n.registered,r,Z1e(d))};return{css:r,cx:a,injectGlobal:o,keyframes:i,hydrate:function(c){c.forEach(function(d){n.inserted[d]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:p4.bind(null,n.registered),merge:aC.bind(null,n.registered,r)}},Z1e=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},ji=vh({key:"css"});ji.flush;ji.hydrate;ji.cx;ji.merge;ji.getRegisteredStyles;ji.injectGlobal;ji.keyframes;ji.css;ji.sheet;var J1e=ji.cache,eie=(function(){function e(){Zn(this,e),J(this,"_cacheList",[J1e])}return Jn(e,[{key:"add",value:function(n){var r=this.getCache(n.key);return r||(this._cacheList.push(n),n)}},{key:"delete",value:function(n){this._cacheList=this._cacheList.filter(function(r){return r.key!==n.key})}},{key:"hasCache",value:function(n){return this._cacheList.some(function(r){return r.key===n.key})}},{key:"getCache",value:function(n){return this._cacheList.find(function(r){return r.key===n})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})(),sC=typeof document<"u",FO=function(t,n){return"".concat(t,"-").concat(n)},tie=function(t,n,r,i){var o=i.hashPriority;gh(t,n,r);var a=".".concat(FO(t.key,n.name)),l=o==="low"?":where(".concat(a,")"):a;if(t.inserted[n.name]===void 0){var c="",d=n;do{var f=t.insert(n===d?l:"",d,t.sheet,!0);!sC&&f!==void 0&&(c+=f),d=d.next}while(d!==void 0);if(!sC&&c.length!==0)return c}},ph=function(t){return st(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},nie=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!==null){var o=void 0;switch(st(i)){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},rie=function(t,n,r){var i=[],o=p4(t,i,r);return i.length<2?r:o+n(i)},iie=function(t,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=ra(i,t.registered,void 0);return tie(t,a,!1,n),FO(t.key,a.name)}},oie=function(t,n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.map(function(l){return ph(l)?n(l):l});return rie(t.registered,n,nie(a))}},VO=function(t,n){var r=iie(t,{hashPriority:n.hashPriority||"high",label:n.label}),i=oie(t,r);return{css:r,cx:i}},S3=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ra(n)},aie="acss",sie=function(t){return g.createContext(t)},L7={exports:{}},zn={};/** @license React v16.13.1
|
|
393
393
|
* react-is.production.min.js
|
|
394
394
|
*
|
|
395
395
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -397,13 +397,17 @@ html body {
|
|
|
397
397
|
* This source code is licensed under the MIT license found in the
|
|
398
398
|
* LICENSE file in the root directory of this source tree.
|
|
399
399
|
*/var lC;function lie(){if(lC)return zn;lC=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function E(z){if(typeof z=="object"&&z!==null){var _=z.$$typeof;switch(_){case t:switch(z=z.type,z){case c:case d:case r:case o:case i:case m:return z;default:switch(z=z&&z.$$typeof,z){case l:case f:case y:case b:case a:return z;default:return _}}case n:return _}}}function O(z){return E(z)===d}return zn.AsyncMode=c,zn.ConcurrentMode=d,zn.ContextConsumer=l,zn.ContextProvider=a,zn.Element=t,zn.ForwardRef=f,zn.Fragment=r,zn.Lazy=y,zn.Memo=b,zn.Portal=n,zn.Profiler=o,zn.StrictMode=i,zn.Suspense=m,zn.isAsyncMode=function(z){return O(z)||E(z)===c},zn.isConcurrentMode=O,zn.isContextConsumer=function(z){return E(z)===l},zn.isContextProvider=function(z){return E(z)===a},zn.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===t},zn.isForwardRef=function(z){return E(z)===f},zn.isFragment=function(z){return E(z)===r},zn.isLazy=function(z){return E(z)===y},zn.isMemo=function(z){return E(z)===b},zn.isPortal=function(z){return E(z)===n},zn.isProfiler=function(z){return E(z)===o},zn.isStrictMode=function(z){return E(z)===i},zn.isSuspense=function(z){return E(z)===m},zn.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===r||z===d||z===o||z===i||z===m||z===v||typeof z=="object"&&z!==null&&(z.$$typeof===y||z.$$typeof===b||z.$$typeof===a||z.$$typeof===l||z.$$typeof===f||z.$$typeof===x||z.$$typeof===M||z.$$typeof===w||z.$$typeof===S)},zn.typeOf=E,zn}var cC;function cie(){return cC||(cC=1,L7.exports=lie()),L7.exports}var B7,uC;function uie(){if(uC)return B7;uC=1;var e=cie(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=r,o[e.Memo]=i;function a(y){return e.isMemo(y)?i:o[y.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,v=Object.prototype;function b(y,S,x){if(typeof S!="string"){if(v){var M=m(S);M&&M!==v&&b(y,M,x)}var w=c(S);d&&(w=w.concat(d(S)));for(var E=a(y),O=a(S),z=0;z<w.length;++z){var _=w[z];if(!n[_]&&!(x&&x[_])&&!(O&&O[_])&&!(E&&E[_])){var I=f(S,_);try{l(y,_,I)}catch{}}}}return y}return B7=b,B7}uie();var die=function(t){return t()},WO=Ja.useInsertionEffect?Ja.useInsertionEffect:!1,fie=WO||die,dC=WO||g.useLayoutEffect,UO=g.createContext(typeof HTMLElement<"u"?HO({key:"css"}):null);UO.Provider;var qO=function(t){return g.forwardRef(function(n,r){var i=g.useContext(UO);return t(n,i,r)})},t3=g.createContext({}),hie=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Le({},t,n)},gie=eC(function(e){return eC(function(t){return hie(e,t)})}),mie=function(t){var n=g.useContext(t3);return t.theme!==n&&(n=gie(n)(t.theme)),g.createElement(t3.Provider,{value:n},t.children)},bh={}.hasOwnProperty,Tf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",vie=function(t,n){var r={};for(var i in n)bh.call(n,i)&&(r[i]=n[i]);return r[Tf]=t,r},pie=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return gh(n,r,i),fie(function(){return mh(n,r,i)}),null},bie=qO(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Tf],o=[r],a="";typeof e.className=="string"?a=p4(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var l=ra(o,void 0,g.useContext(t3));a+=t.key+"-"+l.name;var c={};for(var d in e)bh.call(e,d)&&d!=="css"&&d!==Tf&&(c[d]=e[d]);return c.className=a,n&&(c.ref=n),g.createElement(g.Fragment,null,g.createElement(pie,{cache:t,serialized:l,isStringTag:typeof i=="string"}),g.createElement(i,c))}),yie=bie,fC=function(t,n){var r=arguments;if(n==null||!bh.call(n,"css"))return g.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=yie,o[1]=vie(t,n);for(var a=2;a<i;a++)o[a]=r[a];return g.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(fC||(fC={}));var Sie=qO(function(e,t){var n=e.styles,r=ra([n],void 0,g.useContext(t3)),i=g.useRef();return dC(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",o),a.hydrate([c])),i.current=[a,l],function(){a.flush()}},[t]),dC(function(){var o=i.current,a=o[0],l=o[1];if(l){o[1]=!1;return}if(r.next!==void 0&&mh(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null}),xie=function(t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return g.memo(function(o){var a=t();return ge.jsx(Sie,{styles:ra(r,void 0,Z(Z({},o),{},{theme:a}))})})}},Cie=function(t){return function(n){var r=t(n);return function(i){var o=r(i),a=o.styles;return a}}},Mie=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],wie=function(t){return g.memo(function(n){var r=n.children,i=n.prefix,o=n.speedy,a=n.getStyleManager,l=n.container,c=n.nonce,d=n.insertionPoint,f=n.stylisPlugins,m=n.linters,v=Et(n,Mie),b=g.useContext(t),y=i??b.sheet.key,S=l??b.sheet.container,x=o??b.sheet.isSpeedy,M=g.useMemo(function(){var E=!1,O=vh({speedy:x??E,key:y,container:S,nonce:c,insertionPoint:d,stylisPlugins:f});if(typeof global<"u"){var z=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;z&&(O.cache=z.add(O.cache))}return O},[y,x,S,c,d,f]);g.useEffect(function(){a?.(M)},[M]);var w=ge.jsx(t.Provider,{value:M,children:r});return Object.keys(v).length||S?ge.jsx(aA,Z(Z({linters:m,container:S},v),{},{children:w})):w})},zie=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgroundColor:r.colorBgContainer,border:"1px solid ".concat(r.colorBorder),cursor:"pointer",":hover":{color:r.colorPrimaryHover,borderColor:r.colorPrimaryHover},":active":{color:r.colorPrimaryActive,borderColor:r.colorPrimaryActive}})}},$ie=function(t){return Object.fromEntries(Object.entries(t).map(function(n){var r=me(n,2),i=r[0],o=r[1];return[i,o.styles]}))},yh=function(){var t=E2.useToken(),n=t.token;return n},s2=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},H7,GO=g.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(H7=s2("dark"))!==null&&H7!==void 0&&H7.matches?"dark":"light"}),b4=function(){return g.useContext(GO)},Eie=function(){var t=yh(),n=b4(),r=n.appearance,i=n.isDarkMode;return g.useMemo(function(){return $ie(zie({token:t,css:S3}))},[t,r,i])},XO=function(){var t=yh(),n=Eie();return g.useMemo(function(){return Z(Z({},t),{},{stylish:n})},[t,n])},Oie=function(t){return Z(Z({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})},_ie=function(){var t=yh(),n={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return g.useMemo(function(){return Oie(n)},[t])},Iie=function(t,n){return Object.entries(t).map(function(r){var i=me(r,2),o=i[0],a=i[1],l=a;return ph(a)||(l=S3(a)),n[o]?"".concat(n[o]," {").concat(l.styles,"}"):""}).join("")},Rie=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],Tie=["prefixCls","iconPrefixCls"],Pie=function(t){var n=t.hashPriority,r=t.useTheme,i=t.EmotionContext;return function(o,a){var l=a?.__BABEL_FILE_NAME__,c=!!l;return function(d){var f=r(),m=g.useContext(i),v=m.cache,b=VO(v,{hashPriority:a?.hashPriority||n,label:a?.label}),y=b.cx,S=b.css,x=_ie(),M=g.useMemo(function(){var w;if(o instanceof Function){var E=f.stylish,O=f.appearance,z=f.isDarkMode,_=f.prefixCls,I=f.iconPrefixCls,A=Et(f,Rie),N=function(L){return Iie(L,x)};Object.assign(N,x),w=o({token:A,stylish:E,appearance:O,isDarkMode:z,prefixCls:_,iconPrefixCls:I,cx:y,css:S3,responsive:N},d)}else w=o;return st(w)==="object"&&(ph(w)?w=S(w):w=Object.fromEntries(Object.entries(w).map(function(D){var L=me(D,2),q=L[0],H=L[1],B=c?"".concat(l,"-").concat(q):void 0;return st(H)==="object"?c?[q,S(H,"label:".concat(B))]:[q,S(H)]:[q,H]}))),w},[d,f]);return g.useMemo(function(){var w=f.prefixCls,E=f.iconPrefixCls,O=Et(f,Tie);return{styles:M,cx:y,theme:O,prefixCls:w,iconPrefixCls:E}},[M,f])}}},hC=function(t){if(t.ThemeProvider)return t.ThemeProvider;var n=t.ThemeContext;return function(r){return ge.jsx(n.Provider,{value:r.theme,children:r.children})}},Aie=mie,YO=t3,KO=g.memo(function(e){var t=e.children,n=e.theme,r=e.prefixCls,i=e.getStaticInstance,o=e.staticInstanceConfig,a=b4(),l=a.appearance,c=a.isDarkMode,d=RE.useMessage(o?.message),f=me(d,2),m=f[0],v=f[1],b=V9.useNotification(o?.notification),y=me(b,2),S=y[0],x=y[1],M=gi.useModal(),w=me(M,2),E=w[0],O=w[1];g.useEffect(function(){i?.({message:m,modal:E,notification:S})},[]);var z=g.useMemo(function(){var _=c?E2.darkAlgorithm:E2.defaultAlgorithm,I=n;if(typeof n=="function"&&(I=n(l)),!I)return{algorithm:_};var A=I.algorithm?I.algorithm instanceof Array?I.algorithm:[I.algorithm]:[];return Z(Z({},I),{},{algorithm:I.algorithm?[_].concat(je(A)):_})},[n,c]);return ge.jsxs(En,{prefixCls:r,theme:z,children:[v,x,O,t]})});KO.displayName="AntdProvider";function Nie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}function Die(e,t){return jie(e)||Nie(e,t)||Lie(e,t)||Bie()}function jie(e){if(Array.isArray(e))return e}function Lie(e,t){if(e){if(typeof e=="string")return gC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gC(e,t)}}function gC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
400
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mC(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,l=ae.useState(function(){return i!==void 0?i:r!==void 0?typeof r=="function"?r():r:e}),c=Die(l,2),d=c[0],f=c[1],m=i!==void 0?i:d;a&&(m=a(m));function v(b){f(b),m!==b&&o&&o(b,m)}return[m,v]}var k7=function(t){typeof g.startTransition=="function"?g.startTransition(t):t()},Wo,Hie=function(t){var n=t.themeMode,r=t.setAppearance,i=t.setBrowserPrefers,o=function(){k7(function(){s2("dark").matches?r("dark"):r("light")})},a=function(){k7(function(){s2("dark").matches?i("dark"):i("light")})};return g.useLayoutEffect(function(){if(n!=="auto"){k7(function(){r(n)});return}return setTimeout(o,1),Wo||(Wo=s2("dark")),Wo.addEventListener("change",o),function(){Wo.removeEventListener("change",o)}},[n]),g.useLayoutEffect(function(){return Wo||(Wo=s2("dark")),Wo.addEventListener("change",a),function(){Wo.removeEventListener("change",a)}},[]),null},QO=g.memo(function(e){var t,n=e.children,r=e.appearance,i=e.defaultAppearance,o=e.onAppearanceChange,a=e.themeMode,l=e.defaultThemeMode,c=e.onThemeModeChange,d=e.useTheme,f=d(),m=f.appearance,v=f.themeMode,b=mC("light",{value:a,defaultValue:l??v,onChange:function(D){return c?.(D)}}),y=me(b,2),S=y[0],x=y[1],M=mC("light",{value:r,defaultValue:i??m,onChange:function(D){return o?.(D)}}),w=me(M,2),E=w[0],O=w[1],z=g.useState((t=s2("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),_=me(z,2),I=_[0],A=_[1];return ge.jsxs(GO.Provider,{value:{themeMode:S,setThemeMode:x,appearance:E,setAppearance:O,isDarkMode:E==="dark",browserPrefers:I},children:[typeof window<"u"&&ge.jsx(Hie,{themeMode:S,setAppearance:O,setBrowserPrefers:A}),n]})});QO.displayName="ThemeSwitcher";var kie=["stylish"],Fie=function(t){var n=t.children,r=t.customToken,i=t.defaultCustomToken,o=t.customStylish,a=t.prefixCls,l=t.StyledThemeProvider,c=b4(),d=c.appearance,f=c.isDarkMode,m=XO(),v=m.stylish,b=Et(m,kie),y=g.useMemo(function(){return i?i instanceof Function?i({token:b,appearance:d,isDarkMode:f}):i:{}},[i,b,d]),S=g.useMemo(function(){return r instanceof Function?Z(Z({},y),r({token:b,appearance:d,isDarkMode:f})):Z(Z({},y),r)},[y,r,b,d]),x=g.useMemo(function(){return o?o({token:Z(Z({},b),S),stylish:v,appearance:d,isDarkMode:f,css:S3}):{}},[o,b,S,v,d]),M=g.useMemo(function(){return Z(Z({},x),v)},[x,v]),w=Z(Z(Z(Z({},b),S),{},{stylish:M},c),{},{prefixCls:a});return ge.jsx(l,{theme:w,children:n})},Vie=function(t){var n=t.styledConfig?hC(t.styledConfig):void 0,r=t.StyleEngineContext;return g.memo(function(i){var o=i.children,a=i.customToken,l=i.customStylish,c=i.theme,d=i.getStaticInstance,f=i.prefixCls,m=i.staticInstanceConfig,v=i.appearance,b=i.defaultAppearance,y=i.onAppearanceChange,S=i.themeMode,x=i.defaultThemeMode,M=i.onThemeModeChange,w=i.styled,E=g.useContext(r),O=E.prefixCls,z=E.StyledThemeContext,_=E.CustomThemeContext,I=g.useContext(_),A=w?hC(w):n||Aie,N=f||O;return ge.jsx(r.Provider,{value:{prefixCls:N,StyledThemeContext:w?.ThemeContext||z||YO,CustomThemeContext:_},children:ge.jsx(QO,{themeMode:S,defaultThemeMode:x,onThemeModeChange:M,defaultAppearance:b,appearance:v,onAppearanceChange:y,useTheme:t.useTheme,children:ge.jsx(KO,{prefixCls:N,staticInstanceConfig:m,theme:c,getStaticInstance:d,children:ge.jsx(Fie,{prefixCls:N,customToken:a,defaultCustomToken:I,customStylish:l,StyledThemeProvider:A,children:o})})})})})},Wie=function(t){return function(){var n=t.StyleEngineContext,r=g.useContext(n),i=r.StyledThemeContext,o=r.CustomThemeContext,a=r.prefixCls,l=XO(),c=b4(),d=g.useContext(o),f=g.useContext(i??YO)||{},m=g.useContext(En.ConfigContext),v=m.iconPrefixCls,b=m.getPrefixCls,y=b(),S=a&&a!=="ant"?a:y,x=g.useMemo(function(){return Z(Z(Z(Z({},l),c),d),{},{prefixCls:S,iconPrefixCls:v})},[l,c,d,S,v]);return!f||Object.keys(f).length===0?x:Z(Z({},f),{},{prefixCls:S,iconPrefixCls:v})}},ZO=new eie;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=ZO);var Uie=function(t){var n,r,i,o=Z(Z({},t),{},{key:(n=t.key)!==null&&n!==void 0?n:"zcss",speedy:(r=t.speedy)!==null&&r!==void 0?r:!1}),a=vh({key:o.key,speedy:o.speedy,container:o.container}),l=sie(a),c=wie(l);a.cache=ZO.add(a.cache);var d=g.createContext(o.customToken?o.customToken:{}),f=(i=o.styled)===null||i===void 0?void 0:i.ThemeContext,m=g.createContext({CustomThemeContext:d,StyledThemeContext:f,prefixCls:o?.prefixCls,iconPrefixCls:o?.iconPrefixCls}),v=Wie({StyleEngineContext:m}),b=Pie({hashPriority:o.hashPriority,useTheme:v,EmotionContext:l}),y=xie(v),S=Cie(b),x=Vie({styledConfig:o.styled,StyleEngineContext:m,useTheme:v});x.displayName="AntdStyleThemeProvider";var M=VO(a.cache,{hashPriority:o.hashPriority}),w=M.cx,E=a.injectGlobal,O=a.keyframes;return{createStyles:b,createGlobalStyle:y,createStylish:S,css:S3,cx:w,keyframes:O,injectGlobal:E,styleManager:a,useTheme:v,StyleProvider:c,ThemeProvider:x}},qie=Uie({key:aie,speedy:!1}),Gie=qie.createStyles,F7={exports:{}},V7,vC;function JO(){return vC||(vC=1,V7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),V7}var W7={exports:{}},U7,pC;function Xie(){return pC||(pC=1,U7=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),U7}var bC;function Yie(){if(bC)return W7.exports;bC=1;var e=Xie(),t=Array.prototype.concat,n=Array.prototype.slice,r=W7.exports=function(o){for(var a=[],l=0,c=o.length;l<c;l++){var d=o[l];e(d)?a=t.call(a,n.call(d)):a.push(d)}return a};return r.wrap=function(i){return function(){return i(r(arguments))}},W7.exports}var yC;function Kie(){if(yC)return F7.exports;yC=1;var e=JO(),t=Yie(),n=Object.hasOwnProperty,r=Object.create(null);for(var i in e)n.call(e,i)&&(r[e[i]]=i);var o=F7.exports={to:{},get:{}};o.get=function(c){var d=c.substring(0,3).toLowerCase(),f,m;switch(d){case"hsl":f=o.get.hsl(c),m="hsl";break;case"hwb":f=o.get.hwb(c),m="hwb";break;default:f=o.get.rgb(c),m="rgb";break}return f?{model:m,value:f}:null},o.get.rgb=function(c){if(!c)return null;var d=/^#([a-f0-9]{3,4})$/i,f=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,m=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,v=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,y=[0,0,0,1],S,x,M;if(S=c.match(f)){for(M=S[2],S=S[1],x=0;x<3;x++){var w=x*2;y[x]=parseInt(S.slice(w,w+2),16)}M&&(y[3]=parseInt(M,16)/255)}else if(S=c.match(d)){for(S=S[1],M=S[3],x=0;x<3;x++)y[x]=parseInt(S[x]+S[x],16);M&&(y[3]=parseInt(M+M,16)/255)}else if(S=c.match(m)){for(x=0;x<3;x++)y[x]=parseInt(S[x+1],0);S[4]&&(S[5]?y[3]=parseFloat(S[4])*.01:y[3]=parseFloat(S[4]))}else if(S=c.match(v)){for(x=0;x<3;x++)y[x]=Math.round(parseFloat(S[x+1])*2.55);S[4]&&(S[5]?y[3]=parseFloat(S[4])*.01:y[3]=parseFloat(S[4]))}else return(S=c.match(b))?S[1]==="transparent"?[0,0,0,0]:n.call(e,S[1])?(y=e[S[1]],y[3]=1,y):null:null;for(x=0;x<3;x++)y[x]=a(y[x],0,255);return y[3]=a(y[3],0,1),y},o.get.hsl=function(c){if(!c)return null;var d=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,f=c.match(d);if(f){var m=parseFloat(f[4]),v=(parseFloat(f[1])%360+360)%360,b=a(parseFloat(f[2]),0,100),y=a(parseFloat(f[3]),0,100),S=a(isNaN(m)?1:m,0,1);return[v,b,y,S]}return null},o.get.hwb=function(c){if(!c)return null;var d=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,f=c.match(d);if(f){var m=parseFloat(f[4]),v=(parseFloat(f[1])%360+360)%360,b=a(parseFloat(f[2]),0,100),y=a(parseFloat(f[3]),0,100),S=a(isNaN(m)?1:m,0,1);return[v,b,y,S]}return null},o.to.hex=function(){var c=t(arguments);return"#"+l(c[0])+l(c[1])+l(c[2])+(c[3]<1?l(Math.round(c[3]*255)):"")},o.to.rgb=function(){var c=t(arguments);return c.length<4||c[3]===1?"rgb("+Math.round(c[0])+", "+Math.round(c[1])+", "+Math.round(c[2])+")":"rgba("+Math.round(c[0])+", "+Math.round(c[1])+", "+Math.round(c[2])+", "+c[3]+")"},o.to.rgb.percent=function(){var c=t(arguments),d=Math.round(c[0]/255*100),f=Math.round(c[1]/255*100),m=Math.round(c[2]/255*100);return c.length<4||c[3]===1?"rgb("+d+"%, "+f+"%, "+m+"%)":"rgba("+d+"%, "+f+"%, "+m+"%, "+c[3]+")"},o.to.hsl=function(){var c=t(arguments);return c.length<4||c[3]===1?"hsl("+c[0]+", "+c[1]+"%, "+c[2]+"%)":"hsla("+c[0]+", "+c[1]+"%, "+c[2]+"%, "+c[3]+")"},o.to.hwb=function(){var c=t(arguments),d="";return c.length>=4&&c[3]!==1&&(d=", "+c[3]),"hwb("+c[0]+", "+c[1]+"%, "+c[2]+"%"+d+")"},o.to.keyword=function(c){return r[c.slice(0,3)]};function a(c,d,f){return Math.min(Math.max(d,c),f)}function l(c){var d=Math.round(c).toString(16).toUpperCase();return d.length<2?"0"+d:d}return F7.exports}var q7,SC;function e_(){if(SC)return q7;SC=1;const e=JO(),t={};for(const i of Object.keys(e))t[e[i]]=i;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};q7=n;for(const i of Object.keys(n)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);const{channels:o,labels:a}=n[i];delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:o}),Object.defineProperty(n[i],"labels",{value:a})}n.rgb.hsl=function(i){const o=i[0]/255,a=i[1]/255,l=i[2]/255,c=Math.min(o,a,l),d=Math.max(o,a,l),f=d-c;let m,v;d===c?m=0:o===d?m=(a-l)/f:a===d?m=2+(l-o)/f:l===d&&(m=4+(o-a)/f),m=Math.min(m*60,360),m<0&&(m+=360);const b=(c+d)/2;return d===c?v=0:b<=.5?v=f/(d+c):v=f/(2-d-c),[m,v*100,b*100]},n.rgb.hsv=function(i){let o,a,l,c,d;const f=i[0]/255,m=i[1]/255,v=i[2]/255,b=Math.max(f,m,v),y=b-Math.min(f,m,v),S=function(x){return(b-x)/6/y+1/2};return y===0?(c=0,d=0):(d=y/b,o=S(f),a=S(m),l=S(v),f===b?c=l-a:m===b?c=1/3+o-l:v===b&&(c=2/3+a-o),c<0?c+=1:c>1&&(c-=1)),[c*360,d*100,b*100]},n.rgb.hwb=function(i){const o=i[0],a=i[1];let l=i[2];const c=n.rgb.hsl(i)[0],d=1/255*Math.min(o,Math.min(a,l));return l=1-1/255*Math.max(o,Math.max(a,l)),[c,d*100,l*100]},n.rgb.cmyk=function(i){const o=i[0]/255,a=i[1]/255,l=i[2]/255,c=Math.min(1-o,1-a,1-l),d=(1-o-c)/(1-c)||0,f=(1-a-c)/(1-c)||0,m=(1-l-c)/(1-c)||0;return[d*100,f*100,m*100,c*100]};function r(i,o){return(i[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2}return n.rgb.keyword=function(i){const o=t[i];if(o)return o;let a=1/0,l;for(const c of Object.keys(e)){const d=e[c],f=r(i,d);f<a&&(a=f,l=c)}return l},n.keyword.rgb=function(i){return e[i]},n.rgb.xyz=function(i){let o=i[0]/255,a=i[1]/255,l=i[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92;const c=o*.4124+a*.3576+l*.1805,d=o*.2126+a*.7152+l*.0722,f=o*.0193+a*.1192+l*.9505;return[c*100,d*100,f*100]},n.rgb.lab=function(i){const o=n.rgb.xyz(i);let a=o[0],l=o[1],c=o[2];a/=95.047,l/=100,c/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const d=116*l-16,f=500*(a-l),m=200*(l-c);return[d,f,m]},n.hsl.rgb=function(i){const o=i[0]/360,a=i[1]/100,l=i[2]/100;let c,d,f;if(a===0)return f=l*255,[f,f,f];l<.5?c=l*(1+a):c=l+a-l*a;const m=2*l-c,v=[0,0,0];for(let b=0;b<3;b++)d=o+1/3*-(b-1),d<0&&d++,d>1&&d--,6*d<1?f=m+(c-m)*6*d:2*d<1?f=c:3*d<2?f=m+(c-m)*(2/3-d)*6:f=m,v[b]=f*255;return v},n.hsl.hsv=function(i){const o=i[0];let a=i[1]/100,l=i[2]/100,c=a;const d=Math.max(l,.01);l*=2,a*=l<=1?l:2-l,c*=d<=1?d:2-d;const f=(l+a)/2,m=l===0?2*c/(d+c):2*a/(l+a);return[o,m*100,f*100]},n.hsv.rgb=function(i){const o=i[0]/60,a=i[1]/100;let l=i[2]/100;const c=Math.floor(o)%6,d=o-Math.floor(o),f=255*l*(1-a),m=255*l*(1-a*d),v=255*l*(1-a*(1-d));switch(l*=255,c){case 0:return[l,v,f];case 1:return[m,l,f];case 2:return[f,l,v];case 3:return[f,m,l];case 4:return[v,f,l];case 5:return[l,f,m]}},n.hsv.hsl=function(i){const o=i[0],a=i[1]/100,l=i[2]/100,c=Math.max(l,.01);let d,f;f=(2-a)*l;const m=(2-a)*c;return d=a*c,d/=m<=1?m:2-m,d=d||0,f/=2,[o,d*100,f*100]},n.hwb.rgb=function(i){const o=i[0]/360;let a=i[1]/100,l=i[2]/100;const c=a+l;let d;c>1&&(a/=c,l/=c);const f=Math.floor(6*o),m=1-l;d=6*o-f,(f&1)!==0&&(d=1-d);const v=a+d*(m-a);let b,y,S;switch(f){default:case 6:case 0:b=m,y=v,S=a;break;case 1:b=v,y=m,S=a;break;case 2:b=a,y=m,S=v;break;case 3:b=a,y=v,S=m;break;case 4:b=v,y=a,S=m;break;case 5:b=m,y=a,S=v;break}return[b*255,y*255,S*255]},n.cmyk.rgb=function(i){const o=i[0]/100,a=i[1]/100,l=i[2]/100,c=i[3]/100,d=1-Math.min(1,o*(1-c)+c),f=1-Math.min(1,a*(1-c)+c),m=1-Math.min(1,l*(1-c)+c);return[d*255,f*255,m*255]},n.xyz.rgb=function(i){const o=i[0]/100,a=i[1]/100,l=i[2]/100;let c,d,f;return c=o*3.2406+a*-1.5372+l*-.4986,d=o*-.9689+a*1.8758+l*.0415,f=o*.0557+a*-.204+l*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,c=Math.min(Math.max(0,c),1),d=Math.min(Math.max(0,d),1),f=Math.min(Math.max(0,f),1),[c*255,d*255,f*255]},n.xyz.lab=function(i){let o=i[0],a=i[1],l=i[2];o/=95.047,a/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;const c=116*a-16,d=500*(o-a),f=200*(a-l);return[c,d,f]},n.lab.xyz=function(i){const o=i[0],a=i[1],l=i[2];let c,d,f;d=(o+16)/116,c=a/500+d,f=d-l/200;const m=d**3,v=c**3,b=f**3;return d=m>.008856?m:(d-16/116)/7.787,c=v>.008856?v:(c-16/116)/7.787,f=b>.008856?b:(f-16/116)/7.787,c*=95.047,d*=100,f*=108.883,[c,d,f]},n.lab.lch=function(i){const o=i[0],a=i[1],l=i[2];let c;c=Math.atan2(l,a)*360/2/Math.PI,c<0&&(c+=360);const f=Math.sqrt(a*a+l*l);return[o,f,c]},n.lch.lab=function(i){const o=i[0],a=i[1],c=i[2]/360*2*Math.PI,d=a*Math.cos(c),f=a*Math.sin(c);return[o,d,f]},n.rgb.ansi16=function(i,o=null){const[a,l,c]=i;let d=o===null?n.rgb.hsv(i)[2]:o;if(d=Math.round(d/50),d===0)return 30;let f=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(a/255));return d===2&&(f+=60),f},n.hsv.ansi16=function(i){return n.rgb.ansi16(n.hsv.rgb(i),i[2])},n.rgb.ansi256=function(i){const o=i[0],a=i[1],l=i[2];return o===a&&a===l?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(a/255*5)+Math.round(l/255*5)},n.ansi16.rgb=function(i){let o=i%10;if(o===0||o===7)return i>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const a=(~~(i>50)+1)*.5,l=(o&1)*a*255,c=(o>>1&1)*a*255,d=(o>>2&1)*a*255;return[l,c,d]},n.ansi256.rgb=function(i){if(i>=232){const d=(i-232)*10+8;return[d,d,d]}i-=16;let o;const a=Math.floor(i/36)/5*255,l=Math.floor((o=i%36)/6)/5*255,c=o%6/5*255;return[a,l,c]},n.rgb.hex=function(i){const a=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(a.length)+a},n.hex.rgb=function(i){const o=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let a=o[0];o[0].length===3&&(a=a.split("").map(m=>m+m).join(""));const l=parseInt(a,16),c=l>>16&255,d=l>>8&255,f=l&255;return[c,d,f]},n.rgb.hcg=function(i){const o=i[0]/255,a=i[1]/255,l=i[2]/255,c=Math.max(Math.max(o,a),l),d=Math.min(Math.min(o,a),l),f=c-d;let m,v;return f<1?m=d/(1-f):m=0,f<=0?v=0:c===o?v=(a-l)/f%6:c===a?v=2+(l-o)/f:v=4+(o-a)/f,v/=6,v%=1,[v*360,f*100,m*100]},n.hsl.hcg=function(i){const o=i[1]/100,a=i[2]/100,l=a<.5?2*o*a:2*o*(1-a);let c=0;return l<1&&(c=(a-.5*l)/(1-l)),[i[0],l*100,c*100]},n.hsv.hcg=function(i){const o=i[1]/100,a=i[2]/100,l=o*a;let c=0;return l<1&&(c=(a-l)/(1-l)),[i[0],l*100,c*100]},n.hcg.rgb=function(i){const o=i[0]/360,a=i[1]/100,l=i[2]/100;if(a===0)return[l*255,l*255,l*255];const c=[0,0,0],d=o%1*6,f=d%1,m=1-f;let v=0;switch(Math.floor(d)){case 0:c[0]=1,c[1]=f,c[2]=0;break;case 1:c[0]=m,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=f;break;case 3:c[0]=0,c[1]=m,c[2]=1;break;case 4:c[0]=f,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=m}return v=(1-a)*l,[(a*c[0]+v)*255,(a*c[1]+v)*255,(a*c[2]+v)*255]},n.hcg.hsv=function(i){const o=i[1]/100,a=i[2]/100,l=o+a*(1-o);let c=0;return l>0&&(c=o/l),[i[0],c*100,l*100]},n.hcg.hsl=function(i){const o=i[1]/100,l=i[2]/100*(1-o)+.5*o;let c=0;return l>0&&l<.5?c=o/(2*l):l>=.5&&l<1&&(c=o/(2*(1-l))),[i[0],c*100,l*100]},n.hcg.hwb=function(i){const o=i[1]/100,a=i[2]/100,l=o+a*(1-o);return[i[0],(l-o)*100,(1-l)*100]},n.hwb.hcg=function(i){const o=i[1]/100,l=1-i[2]/100,c=l-o;let d=0;return c<1&&(d=(l-c)/(1-c)),[i[0],c*100,d*100]},n.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},n.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},n.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},n.gray.hsl=function(i){return[0,0,i[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(i){return[0,100,i[0]]},n.gray.cmyk=function(i){return[0,0,0,i[0]]},n.gray.lab=function(i){return[i[0],0,0]},n.gray.hex=function(i){const o=Math.round(i[0]/100*255)&255,l=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]},q7}var G7,xC;function Qie(){if(xC)return G7;xC=1;const e=e_();function t(){const o={},a=Object.keys(e);for(let l=a.length,c=0;c<l;c++)o[a[c]]={distance:-1,parent:null};return o}function n(o){const a=t(),l=[o];for(a[o].distance=0;l.length;){const c=l.pop(),d=Object.keys(e[c]);for(let f=d.length,m=0;m<f;m++){const v=d[m],b=a[v];b.distance===-1&&(b.distance=a[c].distance+1,b.parent=c,l.unshift(v))}}return a}function r(o,a){return function(l){return a(o(l))}}function i(o,a){const l=[a[o].parent,o];let c=e[a[o].parent][o],d=a[o].parent;for(;a[d].parent;)l.unshift(a[d].parent),c=r(e[a[d].parent][d],c),d=a[d].parent;return c.conversion=l,c}return G7=function(o){const a=n(o),l={},c=Object.keys(a);for(let d=c.length,f=0;f<d;f++){const m=c[f];a[m].parent!==null&&(l[m]=i(m,a))}return l},G7}var X7,CC;function Zie(){if(CC)return X7;CC=1;const e=e_(),t=Qie(),n={},r=Object.keys(e);function i(a){const l=function(...c){const d=c[0];return d==null?d:(d.length>1&&(c=d),a(c))};return"conversion"in a&&(l.conversion=a.conversion),l}function o(a){const l=function(...c){const d=c[0];if(d==null)return d;d.length>1&&(c=d);const f=a(c);if(typeof f=="object")for(let m=f.length,v=0;v<m;v++)f[v]=Math.round(f[v]);return f};return"conversion"in a&&(l.conversion=a.conversion),l}return r.forEach(a=>{n[a]={},Object.defineProperty(n[a],"channels",{value:e[a].channels}),Object.defineProperty(n[a],"labels",{value:e[a].labels});const l=t(a);Object.keys(l).forEach(d=>{const f=l[d];n[a][d]=o(f),n[a][d].raw=i(f)})}),X7=n,X7}var Y7,MC;function Jie(){if(MC)return Y7;MC=1;const e=Kie(),t=Zie(),n=["keyword","gray","hex"],r={};for(const v of Object.keys(t))r[[...t[v].labels].sort().join("")]=v;const i={};function o(v,b){if(!(this instanceof o))return new o(v,b);if(b&&b in n&&(b=null),b&&!(b in t))throw new Error("Unknown model: "+b);let y,S;if(v==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(v instanceof o)this.model=v.model,this.color=[...v.color],this.valpha=v.valpha;else if(typeof v=="string"){const x=e.get(v);if(x===null)throw new Error("Unable to parse color from string: "+v);this.model=x.model,S=t[this.model].channels,this.color=x.value.slice(0,S),this.valpha=typeof x.value[S]=="number"?x.value[S]:1}else if(v.length>0){this.model=b||"rgb",S=t[this.model].channels;const x=Array.prototype.slice.call(v,0,S);this.color=m(x,S),this.valpha=typeof v[S]=="number"?v[S]:1}else if(typeof v=="number")this.model="rgb",this.color=[v>>16&255,v>>8&255,v&255],this.valpha=1;else{this.valpha=1;const x=Object.keys(v);"alpha"in v&&(x.splice(x.indexOf("alpha"),1),this.valpha=typeof v.alpha=="number"?v.alpha:0);const M=x.sort().join("");if(!(M in r))throw new Error("Unable to parse color from object: "+JSON.stringify(v));this.model=r[M];const{labels:w}=t[this.model],E=[];for(y=0;y<w.length;y++)E.push(v[w[y]]);this.color=m(E)}if(i[this.model])for(S=t[this.model].channels,y=0;y<S;y++){const x=i[this.model][y];x&&(this.color[y]=x(this.color[y]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}o.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(v){let b=this.model in e.to?this:this.rgb();b=b.round(typeof v=="number"?v:1);const y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to[b.model](y)},percentString(v){const b=this.rgb().round(typeof v=="number"?v:1),y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to.rgb.percent(y)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const v={},{channels:b}=t[this.model],{labels:y}=t[this.model];for(let S=0;S<b;S++)v[y[S]]=this.color[S];return this.valpha!==1&&(v.alpha=this.valpha),v},unitArray(){const v=this.rgb().color;return v[0]/=255,v[1]/=255,v[2]/=255,this.valpha!==1&&v.push(this.valpha),v},unitObject(){const v=this.rgb().object();return v.r/=255,v.g/=255,v.b/=255,this.valpha!==1&&(v.alpha=this.valpha),v},round(v){return v=Math.max(v||0,0),new o([...this.color.map(l(v)),this.valpha],this.model)},alpha(v){return v!==void 0?new o([...this.color,Math.max(0,Math.min(1,v))],this.model):this.valpha},red:c("rgb",0,d(255)),green:c("rgb",1,d(255)),blue:c("rgb",2,d(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,v=>(v%360+360)%360),saturationl:c("hsl",1,d(100)),lightness:c("hsl",2,d(100)),saturationv:c("hsv",1,d(100)),value:c("hsv",2,d(100)),chroma:c("hcg",1,d(100)),gray:c("hcg",2,d(100)),white:c("hwb",1,d(100)),wblack:c("hwb",2,d(100)),cyan:c("cmyk",0,d(100)),magenta:c("cmyk",1,d(100)),yellow:c("cmyk",2,d(100)),black:c("cmyk",3,d(100)),x:c("xyz",0,d(95.047)),y:c("xyz",1,d(100)),z:c("xyz",2,d(108.833)),l:c("lab",0,d(100)),a:c("lab",1),b:c("lab",2),keyword(v){return v!==void 0?new o(v):t[this.model].keyword(this.color)},hex(v){return v!==void 0?new o(v):e.to.hex(this.rgb().round().color)},hexa(v){if(v!==void 0)return new o(v);const b=this.rgb().round().color;let y=Math.round(this.valpha*255).toString(16).toUpperCase();return y.length===1&&(y="0"+y),e.to.hex(b)+y},rgbNumber(){const v=this.rgb().color;return(v[0]&255)<<16|(v[1]&255)<<8|v[2]&255},luminosity(){const v=this.rgb().color,b=[];for(const[y,S]of v.entries()){const x=S/255;b[y]=x<=.04045?x/12.92:((x+.055)/1.055)**2.4}return .2126*b[0]+.7152*b[1]+.0722*b[2]},contrast(v){const b=this.luminosity(),y=v.luminosity();return b>y?(b+.05)/(y+.05):(y+.05)/(b+.05)},level(v){const b=this.contrast(v);return b>=7?"AAA":b>=4.5?"AA":""},isDark(){const v=this.rgb().color;return(v[0]*2126+v[1]*7152+v[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const v=this.rgb();for(let b=0;b<3;b++)v.color[b]=255-v.color[b];return v},lighten(v){const b=this.hsl();return b.color[2]+=b.color[2]*v,b},darken(v){const b=this.hsl();return b.color[2]-=b.color[2]*v,b},saturate(v){const b=this.hsl();return b.color[1]+=b.color[1]*v,b},desaturate(v){const b=this.hsl();return b.color[1]-=b.color[1]*v,b},whiten(v){const b=this.hwb();return b.color[1]+=b.color[1]*v,b},blacken(v){const b=this.hwb();return b.color[2]+=b.color[2]*v,b},grayscale(){const v=this.rgb().color,b=v[0]*.3+v[1]*.59+v[2]*.11;return o.rgb(b,b,b)},fade(v){return this.alpha(this.valpha-this.valpha*v)},opaquer(v){return this.alpha(this.valpha+this.valpha*v)},rotate(v){const b=this.hsl();let y=b.color[0];return y=(y+v)%360,y=y<0?360+y:y,b.color[0]=y,b},mix(v,b){if(!v||!v.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof v);const y=v.rgb(),S=this.rgb(),x=b===void 0?.5:b,M=2*x-1,w=y.alpha()-S.alpha(),E=((M*w===-1?M:(M+w)/(1+M*w))+1)/2,O=1-E;return o.rgb(E*y.red()+O*S.red(),E*y.green()+O*S.green(),E*y.blue()+O*S.blue(),y.alpha()*x+S.alpha()*(1-x))}};for(const v of Object.keys(t)){if(n.includes(v))continue;const{channels:b}=t[v];o.prototype[v]=function(...y){return this.model===v?new o(this):y.length>0?new o(y,v):new o([...f(t[this.model][v].raw(this.color)),this.valpha],v)},o[v]=function(...y){let S=y[0];return typeof S=="number"&&(S=m(y,b)),new o(S,v)}}function a(v,b){return Number(v.toFixed(b))}function l(v){return function(b){return a(b,v)}}function c(v,b,y){v=Array.isArray(v)?v:[v];for(const S of v)(i[S]||(i[S]=[]))[b]=y;return v=v[0],function(S){let x;return S!==void 0?(y&&(S=y(S)),x=this[v](),x.color[b]=S,x):(x=this[v]().color[b],y&&(x=y(x)),x)}}function d(v){return function(b){return Math.max(0,Math.min(v,b))}}function f(v){return Array.isArray(v)?v:[v]}function m(v,b){for(let y=0;y<b;y++)typeof v[y]!="number"&&(v[y]=0);return v}return Y7=o,Y7}var eoe=Jie();const wC=Ai(eoe),n2={Success:"success",Info1:"info-1",Info2:"info-2",Info3:"info-3",Error:"error",Empty:"empty"},toe=Gie(({css:e},{prefixClsWithoutHash:t,color:n,status:r})=>({dynamicStyles:e`
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
400
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mC(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,l=ae.useState(function(){return i!==void 0?i:r!==void 0?typeof r=="function"?r():r:e}),c=Die(l,2),d=c[0],f=c[1],m=i!==void 0?i:d;a&&(m=a(m));function v(b){f(b),m!==b&&o&&o(b,m)}return[m,v]}var k7=function(t){typeof g.startTransition=="function"?g.startTransition(t):t()},Wo,Hie=function(t){var n=t.themeMode,r=t.setAppearance,i=t.setBrowserPrefers,o=function(){k7(function(){s2("dark").matches?r("dark"):r("light")})},a=function(){k7(function(){s2("dark").matches?i("dark"):i("light")})};return g.useLayoutEffect(function(){if(n!=="auto"){k7(function(){r(n)});return}return setTimeout(o,1),Wo||(Wo=s2("dark")),Wo.addEventListener("change",o),function(){Wo.removeEventListener("change",o)}},[n]),g.useLayoutEffect(function(){return Wo||(Wo=s2("dark")),Wo.addEventListener("change",a),function(){Wo.removeEventListener("change",a)}},[]),null},QO=g.memo(function(e){var t,n=e.children,r=e.appearance,i=e.defaultAppearance,o=e.onAppearanceChange,a=e.themeMode,l=e.defaultThemeMode,c=e.onThemeModeChange,d=e.useTheme,f=d(),m=f.appearance,v=f.themeMode,b=mC("light",{value:a,defaultValue:l??v,onChange:function(D){return c?.(D)}}),y=me(b,2),S=y[0],x=y[1],M=mC("light",{value:r,defaultValue:i??m,onChange:function(D){return o?.(D)}}),w=me(M,2),E=w[0],O=w[1],z=g.useState((t=s2("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),_=me(z,2),I=_[0],A=_[1];return ge.jsxs(GO.Provider,{value:{themeMode:S,setThemeMode:x,appearance:E,setAppearance:O,isDarkMode:E==="dark",browserPrefers:I},children:[typeof window<"u"&&ge.jsx(Hie,{themeMode:S,setAppearance:O,setBrowserPrefers:A}),n]})});QO.displayName="ThemeSwitcher";var kie=["stylish"],Fie=function(t){var n=t.children,r=t.customToken,i=t.defaultCustomToken,o=t.customStylish,a=t.prefixCls,l=t.StyledThemeProvider,c=b4(),d=c.appearance,f=c.isDarkMode,m=XO(),v=m.stylish,b=Et(m,kie),y=g.useMemo(function(){return i?i instanceof Function?i({token:b,appearance:d,isDarkMode:f}):i:{}},[i,b,d]),S=g.useMemo(function(){return r instanceof Function?Z(Z({},y),r({token:b,appearance:d,isDarkMode:f})):Z(Z({},y),r)},[y,r,b,d]),x=g.useMemo(function(){return o?o({token:Z(Z({},b),S),stylish:v,appearance:d,isDarkMode:f,css:S3}):{}},[o,b,S,v,d]),M=g.useMemo(function(){return Z(Z({},x),v)},[x,v]),w=Z(Z(Z(Z({},b),S),{},{stylish:M},c),{},{prefixCls:a});return ge.jsx(l,{theme:w,children:n})},Vie=function(t){var n=t.styledConfig?hC(t.styledConfig):void 0,r=t.StyleEngineContext;return g.memo(function(i){var o=i.children,a=i.customToken,l=i.customStylish,c=i.theme,d=i.getStaticInstance,f=i.prefixCls,m=i.staticInstanceConfig,v=i.appearance,b=i.defaultAppearance,y=i.onAppearanceChange,S=i.themeMode,x=i.defaultThemeMode,M=i.onThemeModeChange,w=i.styled,E=g.useContext(r),O=E.prefixCls,z=E.StyledThemeContext,_=E.CustomThemeContext,I=g.useContext(_),A=w?hC(w):n||Aie,N=f||O;return ge.jsx(r.Provider,{value:{prefixCls:N,StyledThemeContext:w?.ThemeContext||z||YO,CustomThemeContext:_},children:ge.jsx(QO,{themeMode:S,defaultThemeMode:x,onThemeModeChange:M,defaultAppearance:b,appearance:v,onAppearanceChange:y,useTheme:t.useTheme,children:ge.jsx(KO,{prefixCls:N,staticInstanceConfig:m,theme:c,getStaticInstance:d,children:ge.jsx(Fie,{prefixCls:N,customToken:a,defaultCustomToken:I,customStylish:l,StyledThemeProvider:A,children:o})})})})})},Wie=function(t){return function(){var n=t.StyleEngineContext,r=g.useContext(n),i=r.StyledThemeContext,o=r.CustomThemeContext,a=r.prefixCls,l=XO(),c=b4(),d=g.useContext(o),f=g.useContext(i??YO)||{},m=g.useContext(En.ConfigContext),v=m.iconPrefixCls,b=m.getPrefixCls,y=b(),S=a&&a!=="ant"?a:y,x=g.useMemo(function(){return Z(Z(Z(Z({},l),c),d),{},{prefixCls:S,iconPrefixCls:v})},[l,c,d,S,v]);return!f||Object.keys(f).length===0?x:Z(Z({},f),{},{prefixCls:S,iconPrefixCls:v})}},ZO=new eie;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=ZO);var Uie=function(t){var n,r,i,o=Z(Z({},t),{},{key:(n=t.key)!==null&&n!==void 0?n:"zcss",speedy:(r=t.speedy)!==null&&r!==void 0?r:!1}),a=vh({key:o.key,speedy:o.speedy,container:o.container}),l=sie(a),c=wie(l);a.cache=ZO.add(a.cache);var d=g.createContext(o.customToken?o.customToken:{}),f=(i=o.styled)===null||i===void 0?void 0:i.ThemeContext,m=g.createContext({CustomThemeContext:d,StyledThemeContext:f,prefixCls:o?.prefixCls,iconPrefixCls:o?.iconPrefixCls}),v=Wie({StyleEngineContext:m}),b=Pie({hashPriority:o.hashPriority,useTheme:v,EmotionContext:l}),y=xie(v),S=Cie(b),x=Vie({styledConfig:o.styled,StyleEngineContext:m,useTheme:v});x.displayName="AntdStyleThemeProvider";var M=VO(a.cache,{hashPriority:o.hashPriority}),w=M.cx,E=a.injectGlobal,O=a.keyframes;return{createStyles:b,createGlobalStyle:y,createStylish:S,css:S3,cx:w,keyframes:O,injectGlobal:E,styleManager:a,useTheme:v,StyleProvider:c,ThemeProvider:x}},qie=Uie({key:aie,speedy:!1}),Gie=qie.createStyles,F7={exports:{}},V7,vC;function JO(){return vC||(vC=1,V7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),V7}var W7={exports:{}},U7,pC;function Xie(){return pC||(pC=1,U7=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),U7}var bC;function Yie(){if(bC)return W7.exports;bC=1;var e=Xie(),t=Array.prototype.concat,n=Array.prototype.slice,r=W7.exports=function(o){for(var a=[],l=0,c=o.length;l<c;l++){var d=o[l];e(d)?a=t.call(a,n.call(d)):a.push(d)}return a};return r.wrap=function(i){return function(){return i(r(arguments))}},W7.exports}var yC;function Kie(){if(yC)return F7.exports;yC=1;var e=JO(),t=Yie(),n=Object.hasOwnProperty,r=Object.create(null);for(var i in e)n.call(e,i)&&(r[e[i]]=i);var o=F7.exports={to:{},get:{}};o.get=function(c){var d=c.substring(0,3).toLowerCase(),f,m;switch(d){case"hsl":f=o.get.hsl(c),m="hsl";break;case"hwb":f=o.get.hwb(c),m="hwb";break;default:f=o.get.rgb(c),m="rgb";break}return f?{model:m,value:f}:null},o.get.rgb=function(c){if(!c)return null;var d=/^#([a-f0-9]{3,4})$/i,f=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,m=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,v=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,y=[0,0,0,1],S,x,M;if(S=c.match(f)){for(M=S[2],S=S[1],x=0;x<3;x++){var w=x*2;y[x]=parseInt(S.slice(w,w+2),16)}M&&(y[3]=parseInt(M,16)/255)}else if(S=c.match(d)){for(S=S[1],M=S[3],x=0;x<3;x++)y[x]=parseInt(S[x]+S[x],16);M&&(y[3]=parseInt(M+M,16)/255)}else if(S=c.match(m)){for(x=0;x<3;x++)y[x]=parseInt(S[x+1],0);S[4]&&(S[5]?y[3]=parseFloat(S[4])*.01:y[3]=parseFloat(S[4]))}else if(S=c.match(v)){for(x=0;x<3;x++)y[x]=Math.round(parseFloat(S[x+1])*2.55);S[4]&&(S[5]?y[3]=parseFloat(S[4])*.01:y[3]=parseFloat(S[4]))}else return(S=c.match(b))?S[1]==="transparent"?[0,0,0,0]:n.call(e,S[1])?(y=e[S[1]],y[3]=1,y):null:null;for(x=0;x<3;x++)y[x]=a(y[x],0,255);return y[3]=a(y[3],0,1),y},o.get.hsl=function(c){if(!c)return null;var d=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,f=c.match(d);if(f){var m=parseFloat(f[4]),v=(parseFloat(f[1])%360+360)%360,b=a(parseFloat(f[2]),0,100),y=a(parseFloat(f[3]),0,100),S=a(isNaN(m)?1:m,0,1);return[v,b,y,S]}return null},o.get.hwb=function(c){if(!c)return null;var d=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,f=c.match(d);if(f){var m=parseFloat(f[4]),v=(parseFloat(f[1])%360+360)%360,b=a(parseFloat(f[2]),0,100),y=a(parseFloat(f[3]),0,100),S=a(isNaN(m)?1:m,0,1);return[v,b,y,S]}return null},o.to.hex=function(){var c=t(arguments);return"#"+l(c[0])+l(c[1])+l(c[2])+(c[3]<1?l(Math.round(c[3]*255)):"")},o.to.rgb=function(){var c=t(arguments);return c.length<4||c[3]===1?"rgb("+Math.round(c[0])+", "+Math.round(c[1])+", "+Math.round(c[2])+")":"rgba("+Math.round(c[0])+", "+Math.round(c[1])+", "+Math.round(c[2])+", "+c[3]+")"},o.to.rgb.percent=function(){var c=t(arguments),d=Math.round(c[0]/255*100),f=Math.round(c[1]/255*100),m=Math.round(c[2]/255*100);return c.length<4||c[3]===1?"rgb("+d+"%, "+f+"%, "+m+"%)":"rgba("+d+"%, "+f+"%, "+m+"%, "+c[3]+")"},o.to.hsl=function(){var c=t(arguments);return c.length<4||c[3]===1?"hsl("+c[0]+", "+c[1]+"%, "+c[2]+"%)":"hsla("+c[0]+", "+c[1]+"%, "+c[2]+"%, "+c[3]+")"},o.to.hwb=function(){var c=t(arguments),d="";return c.length>=4&&c[3]!==1&&(d=", "+c[3]),"hwb("+c[0]+", "+c[1]+"%, "+c[2]+"%"+d+")"},o.to.keyword=function(c){return r[c.slice(0,3)]};function a(c,d,f){return Math.min(Math.max(d,c),f)}function l(c){var d=Math.round(c).toString(16).toUpperCase();return d.length<2?"0"+d:d}return F7.exports}var q7,SC;function e_(){if(SC)return q7;SC=1;const e=JO(),t={};for(const i of Object.keys(e))t[e[i]]=i;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};q7=n;for(const i of Object.keys(n)){if(!("channels"in n[i]))throw new Error("missing channels property: "+i);if(!("labels"in n[i]))throw new Error("missing channel labels property: "+i);if(n[i].labels.length!==n[i].channels)throw new Error("channel and label counts mismatch: "+i);const{channels:o,labels:a}=n[i];delete n[i].channels,delete n[i].labels,Object.defineProperty(n[i],"channels",{value:o}),Object.defineProperty(n[i],"labels",{value:a})}n.rgb.hsl=function(i){const o=i[0]/255,a=i[1]/255,l=i[2]/255,c=Math.min(o,a,l),d=Math.max(o,a,l),f=d-c;let m,v;d===c?m=0:o===d?m=(a-l)/f:a===d?m=2+(l-o)/f:l===d&&(m=4+(o-a)/f),m=Math.min(m*60,360),m<0&&(m+=360);const b=(c+d)/2;return d===c?v=0:b<=.5?v=f/(d+c):v=f/(2-d-c),[m,v*100,b*100]},n.rgb.hsv=function(i){let o,a,l,c,d;const f=i[0]/255,m=i[1]/255,v=i[2]/255,b=Math.max(f,m,v),y=b-Math.min(f,m,v),S=function(x){return(b-x)/6/y+1/2};return y===0?(c=0,d=0):(d=y/b,o=S(f),a=S(m),l=S(v),f===b?c=l-a:m===b?c=1/3+o-l:v===b&&(c=2/3+a-o),c<0?c+=1:c>1&&(c-=1)),[c*360,d*100,b*100]},n.rgb.hwb=function(i){const o=i[0],a=i[1];let l=i[2];const c=n.rgb.hsl(i)[0],d=1/255*Math.min(o,Math.min(a,l));return l=1-1/255*Math.max(o,Math.max(a,l)),[c,d*100,l*100]},n.rgb.cmyk=function(i){const o=i[0]/255,a=i[1]/255,l=i[2]/255,c=Math.min(1-o,1-a,1-l),d=(1-o-c)/(1-c)||0,f=(1-a-c)/(1-c)||0,m=(1-l-c)/(1-c)||0;return[d*100,f*100,m*100,c*100]};function r(i,o){return(i[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2}return n.rgb.keyword=function(i){const o=t[i];if(o)return o;let a=1/0,l;for(const c of Object.keys(e)){const d=e[c],f=r(i,d);f<a&&(a=f,l=c)}return l},n.keyword.rgb=function(i){return e[i]},n.rgb.xyz=function(i){let o=i[0]/255,a=i[1]/255,l=i[2]/255;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92;const c=o*.4124+a*.3576+l*.1805,d=o*.2126+a*.7152+l*.0722,f=o*.0193+a*.1192+l*.9505;return[c*100,d*100,f*100]},n.rgb.lab=function(i){const o=n.rgb.xyz(i);let a=o[0],l=o[1],c=o[2];a/=95.047,l/=100,c/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const d=116*l-16,f=500*(a-l),m=200*(l-c);return[d,f,m]},n.hsl.rgb=function(i){const o=i[0]/360,a=i[1]/100,l=i[2]/100;let c,d,f;if(a===0)return f=l*255,[f,f,f];l<.5?c=l*(1+a):c=l+a-l*a;const m=2*l-c,v=[0,0,0];for(let b=0;b<3;b++)d=o+1/3*-(b-1),d<0&&d++,d>1&&d--,6*d<1?f=m+(c-m)*6*d:2*d<1?f=c:3*d<2?f=m+(c-m)*(2/3-d)*6:f=m,v[b]=f*255;return v},n.hsl.hsv=function(i){const o=i[0];let a=i[1]/100,l=i[2]/100,c=a;const d=Math.max(l,.01);l*=2,a*=l<=1?l:2-l,c*=d<=1?d:2-d;const f=(l+a)/2,m=l===0?2*c/(d+c):2*a/(l+a);return[o,m*100,f*100]},n.hsv.rgb=function(i){const o=i[0]/60,a=i[1]/100;let l=i[2]/100;const c=Math.floor(o)%6,d=o-Math.floor(o),f=255*l*(1-a),m=255*l*(1-a*d),v=255*l*(1-a*(1-d));switch(l*=255,c){case 0:return[l,v,f];case 1:return[m,l,f];case 2:return[f,l,v];case 3:return[f,m,l];case 4:return[v,f,l];case 5:return[l,f,m]}},n.hsv.hsl=function(i){const o=i[0],a=i[1]/100,l=i[2]/100,c=Math.max(l,.01);let d,f;f=(2-a)*l;const m=(2-a)*c;return d=a*c,d/=m<=1?m:2-m,d=d||0,f/=2,[o,d*100,f*100]},n.hwb.rgb=function(i){const o=i[0]/360;let a=i[1]/100,l=i[2]/100;const c=a+l;let d;c>1&&(a/=c,l/=c);const f=Math.floor(6*o),m=1-l;d=6*o-f,(f&1)!==0&&(d=1-d);const v=a+d*(m-a);let b,y,S;switch(f){default:case 6:case 0:b=m,y=v,S=a;break;case 1:b=v,y=m,S=a;break;case 2:b=a,y=m,S=v;break;case 3:b=a,y=v,S=m;break;case 4:b=v,y=a,S=m;break;case 5:b=m,y=a,S=v;break}return[b*255,y*255,S*255]},n.cmyk.rgb=function(i){const o=i[0]/100,a=i[1]/100,l=i[2]/100,c=i[3]/100,d=1-Math.min(1,o*(1-c)+c),f=1-Math.min(1,a*(1-c)+c),m=1-Math.min(1,l*(1-c)+c);return[d*255,f*255,m*255]},n.xyz.rgb=function(i){const o=i[0]/100,a=i[1]/100,l=i[2]/100;let c,d,f;return c=o*3.2406+a*-1.5372+l*-.4986,d=o*-.9689+a*1.8758+l*.0415,f=o*.0557+a*-.204+l*1.057,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,c=Math.min(Math.max(0,c),1),d=Math.min(Math.max(0,d),1),f=Math.min(Math.max(0,f),1),[c*255,d*255,f*255]},n.xyz.lab=function(i){let o=i[0],a=i[1],l=i[2];o/=95.047,a/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;const c=116*a-16,d=500*(o-a),f=200*(a-l);return[c,d,f]},n.lab.xyz=function(i){const o=i[0],a=i[1],l=i[2];let c,d,f;d=(o+16)/116,c=a/500+d,f=d-l/200;const m=d**3,v=c**3,b=f**3;return d=m>.008856?m:(d-16/116)/7.787,c=v>.008856?v:(c-16/116)/7.787,f=b>.008856?b:(f-16/116)/7.787,c*=95.047,d*=100,f*=108.883,[c,d,f]},n.lab.lch=function(i){const o=i[0],a=i[1],l=i[2];let c;c=Math.atan2(l,a)*360/2/Math.PI,c<0&&(c+=360);const f=Math.sqrt(a*a+l*l);return[o,f,c]},n.lch.lab=function(i){const o=i[0],a=i[1],c=i[2]/360*2*Math.PI,d=a*Math.cos(c),f=a*Math.sin(c);return[o,d,f]},n.rgb.ansi16=function(i,o=null){const[a,l,c]=i;let d=o===null?n.rgb.hsv(i)[2]:o;if(d=Math.round(d/50),d===0)return 30;let f=30+(Math.round(c/255)<<2|Math.round(l/255)<<1|Math.round(a/255));return d===2&&(f+=60),f},n.hsv.ansi16=function(i){return n.rgb.ansi16(n.hsv.rgb(i),i[2])},n.rgb.ansi256=function(i){const o=i[0],a=i[1],l=i[2];return o===a&&a===l?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/255*5)+6*Math.round(a/255*5)+Math.round(l/255*5)},n.ansi16.rgb=function(i){let o=i%10;if(o===0||o===7)return i>50&&(o+=3.5),o=o/10.5*255,[o,o,o];const a=(~~(i>50)+1)*.5,l=(o&1)*a*255,c=(o>>1&1)*a*255,d=(o>>2&1)*a*255;return[l,c,d]},n.ansi256.rgb=function(i){if(i>=232){const d=(i-232)*10+8;return[d,d,d]}i-=16;let o;const a=Math.floor(i/36)/5*255,l=Math.floor((o=i%36)/6)/5*255,c=o%6/5*255;return[a,l,c]},n.rgb.hex=function(i){const a=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(a.length)+a},n.hex.rgb=function(i){const o=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!o)return[0,0,0];let a=o[0];o[0].length===3&&(a=a.split("").map(m=>m+m).join(""));const l=parseInt(a,16),c=l>>16&255,d=l>>8&255,f=l&255;return[c,d,f]},n.rgb.hcg=function(i){const o=i[0]/255,a=i[1]/255,l=i[2]/255,c=Math.max(Math.max(o,a),l),d=Math.min(Math.min(o,a),l),f=c-d;let m,v;return f<1?m=d/(1-f):m=0,f<=0?v=0:c===o?v=(a-l)/f%6:c===a?v=2+(l-o)/f:v=4+(o-a)/f,v/=6,v%=1,[v*360,f*100,m*100]},n.hsl.hcg=function(i){const o=i[1]/100,a=i[2]/100,l=a<.5?2*o*a:2*o*(1-a);let c=0;return l<1&&(c=(a-.5*l)/(1-l)),[i[0],l*100,c*100]},n.hsv.hcg=function(i){const o=i[1]/100,a=i[2]/100,l=o*a;let c=0;return l<1&&(c=(a-l)/(1-l)),[i[0],l*100,c*100]},n.hcg.rgb=function(i){const o=i[0]/360,a=i[1]/100,l=i[2]/100;if(a===0)return[l*255,l*255,l*255];const c=[0,0,0],d=o%1*6,f=d%1,m=1-f;let v=0;switch(Math.floor(d)){case 0:c[0]=1,c[1]=f,c[2]=0;break;case 1:c[0]=m,c[1]=1,c[2]=0;break;case 2:c[0]=0,c[1]=1,c[2]=f;break;case 3:c[0]=0,c[1]=m,c[2]=1;break;case 4:c[0]=f,c[1]=0,c[2]=1;break;default:c[0]=1,c[1]=0,c[2]=m}return v=(1-a)*l,[(a*c[0]+v)*255,(a*c[1]+v)*255,(a*c[2]+v)*255]},n.hcg.hsv=function(i){const o=i[1]/100,a=i[2]/100,l=o+a*(1-o);let c=0;return l>0&&(c=o/l),[i[0],c*100,l*100]},n.hcg.hsl=function(i){const o=i[1]/100,l=i[2]/100*(1-o)+.5*o;let c=0;return l>0&&l<.5?c=o/(2*l):l>=.5&&l<1&&(c=o/(2*(1-l))),[i[0],c*100,l*100]},n.hcg.hwb=function(i){const o=i[1]/100,a=i[2]/100,l=o+a*(1-o);return[i[0],(l-o)*100,(1-l)*100]},n.hwb.hcg=function(i){const o=i[1]/100,l=1-i[2]/100,c=l-o;let d=0;return c<1&&(d=(l-c)/(1-c)),[i[0],c*100,d*100]},n.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},n.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},n.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},n.gray.hsl=function(i){return[0,0,i[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(i){return[0,100,i[0]]},n.gray.cmyk=function(i){return[0,0,0,i[0]]},n.gray.lab=function(i){return[i[0],0,0]},n.gray.hex=function(i){const o=Math.round(i[0]/100*255)&255,l=((o<<16)+(o<<8)+o).toString(16).toUpperCase();return"000000".substring(l.length)+l},n.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]},q7}var G7,xC;function Qie(){if(xC)return G7;xC=1;const e=e_();function t(){const o={},a=Object.keys(e);for(let l=a.length,c=0;c<l;c++)o[a[c]]={distance:-1,parent:null};return o}function n(o){const a=t(),l=[o];for(a[o].distance=0;l.length;){const c=l.pop(),d=Object.keys(e[c]);for(let f=d.length,m=0;m<f;m++){const v=d[m],b=a[v];b.distance===-1&&(b.distance=a[c].distance+1,b.parent=c,l.unshift(v))}}return a}function r(o,a){return function(l){return a(o(l))}}function i(o,a){const l=[a[o].parent,o];let c=e[a[o].parent][o],d=a[o].parent;for(;a[d].parent;)l.unshift(a[d].parent),c=r(e[a[d].parent][d],c),d=a[d].parent;return c.conversion=l,c}return G7=function(o){const a=n(o),l={},c=Object.keys(a);for(let d=c.length,f=0;f<d;f++){const m=c[f];a[m].parent!==null&&(l[m]=i(m,a))}return l},G7}var X7,CC;function Zie(){if(CC)return X7;CC=1;const e=e_(),t=Qie(),n={},r=Object.keys(e);function i(a){const l=function(...c){const d=c[0];return d==null?d:(d.length>1&&(c=d),a(c))};return"conversion"in a&&(l.conversion=a.conversion),l}function o(a){const l=function(...c){const d=c[0];if(d==null)return d;d.length>1&&(c=d);const f=a(c);if(typeof f=="object")for(let m=f.length,v=0;v<m;v++)f[v]=Math.round(f[v]);return f};return"conversion"in a&&(l.conversion=a.conversion),l}return r.forEach(a=>{n[a]={},Object.defineProperty(n[a],"channels",{value:e[a].channels}),Object.defineProperty(n[a],"labels",{value:e[a].labels});const l=t(a);Object.keys(l).forEach(d=>{const f=l[d];n[a][d]=o(f),n[a][d].raw=i(f)})}),X7=n,X7}var Y7,MC;function Jie(){if(MC)return Y7;MC=1;const e=Kie(),t=Zie(),n=["keyword","gray","hex"],r={};for(const v of Object.keys(t))r[[...t[v].labels].sort().join("")]=v;const i={};function o(v,b){if(!(this instanceof o))return new o(v,b);if(b&&b in n&&(b=null),b&&!(b in t))throw new Error("Unknown model: "+b);let y,S;if(v==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(v instanceof o)this.model=v.model,this.color=[...v.color],this.valpha=v.valpha;else if(typeof v=="string"){const x=e.get(v);if(x===null)throw new Error("Unable to parse color from string: "+v);this.model=x.model,S=t[this.model].channels,this.color=x.value.slice(0,S),this.valpha=typeof x.value[S]=="number"?x.value[S]:1}else if(v.length>0){this.model=b||"rgb",S=t[this.model].channels;const x=Array.prototype.slice.call(v,0,S);this.color=m(x,S),this.valpha=typeof v[S]=="number"?v[S]:1}else if(typeof v=="number")this.model="rgb",this.color=[v>>16&255,v>>8&255,v&255],this.valpha=1;else{this.valpha=1;const x=Object.keys(v);"alpha"in v&&(x.splice(x.indexOf("alpha"),1),this.valpha=typeof v.alpha=="number"?v.alpha:0);const M=x.sort().join("");if(!(M in r))throw new Error("Unable to parse color from object: "+JSON.stringify(v));this.model=r[M];const{labels:w}=t[this.model],E=[];for(y=0;y<w.length;y++)E.push(v[w[y]]);this.color=m(E)}if(i[this.model])for(S=t[this.model].channels,y=0;y<S;y++){const x=i[this.model][y];x&&(this.color[y]=x(this.color[y]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}o.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(v){let b=this.model in e.to?this:this.rgb();b=b.round(typeof v=="number"?v:1);const y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to[b.model](y)},percentString(v){const b=this.rgb().round(typeof v=="number"?v:1),y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to.rgb.percent(y)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const v={},{channels:b}=t[this.model],{labels:y}=t[this.model];for(let S=0;S<b;S++)v[y[S]]=this.color[S];return this.valpha!==1&&(v.alpha=this.valpha),v},unitArray(){const v=this.rgb().color;return v[0]/=255,v[1]/=255,v[2]/=255,this.valpha!==1&&v.push(this.valpha),v},unitObject(){const v=this.rgb().object();return v.r/=255,v.g/=255,v.b/=255,this.valpha!==1&&(v.alpha=this.valpha),v},round(v){return v=Math.max(v||0,0),new o([...this.color.map(l(v)),this.valpha],this.model)},alpha(v){return v!==void 0?new o([...this.color,Math.max(0,Math.min(1,v))],this.model):this.valpha},red:c("rgb",0,d(255)),green:c("rgb",1,d(255)),blue:c("rgb",2,d(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,v=>(v%360+360)%360),saturationl:c("hsl",1,d(100)),lightness:c("hsl",2,d(100)),saturationv:c("hsv",1,d(100)),value:c("hsv",2,d(100)),chroma:c("hcg",1,d(100)),gray:c("hcg",2,d(100)),white:c("hwb",1,d(100)),wblack:c("hwb",2,d(100)),cyan:c("cmyk",0,d(100)),magenta:c("cmyk",1,d(100)),yellow:c("cmyk",2,d(100)),black:c("cmyk",3,d(100)),x:c("xyz",0,d(95.047)),y:c("xyz",1,d(100)),z:c("xyz",2,d(108.833)),l:c("lab",0,d(100)),a:c("lab",1),b:c("lab",2),keyword(v){return v!==void 0?new o(v):t[this.model].keyword(this.color)},hex(v){return v!==void 0?new o(v):e.to.hex(this.rgb().round().color)},hexa(v){if(v!==void 0)return new o(v);const b=this.rgb().round().color;let y=Math.round(this.valpha*255).toString(16).toUpperCase();return y.length===1&&(y="0"+y),e.to.hex(b)+y},rgbNumber(){const v=this.rgb().color;return(v[0]&255)<<16|(v[1]&255)<<8|v[2]&255},luminosity(){const v=this.rgb().color,b=[];for(const[y,S]of v.entries()){const x=S/255;b[y]=x<=.04045?x/12.92:((x+.055)/1.055)**2.4}return .2126*b[0]+.7152*b[1]+.0722*b[2]},contrast(v){const b=this.luminosity(),y=v.luminosity();return b>y?(b+.05)/(y+.05):(y+.05)/(b+.05)},level(v){const b=this.contrast(v);return b>=7?"AAA":b>=4.5?"AA":""},isDark(){const v=this.rgb().color;return(v[0]*2126+v[1]*7152+v[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const v=this.rgb();for(let b=0;b<3;b++)v.color[b]=255-v.color[b];return v},lighten(v){const b=this.hsl();return b.color[2]+=b.color[2]*v,b},darken(v){const b=this.hsl();return b.color[2]-=b.color[2]*v,b},saturate(v){const b=this.hsl();return b.color[1]+=b.color[1]*v,b},desaturate(v){const b=this.hsl();return b.color[1]-=b.color[1]*v,b},whiten(v){const b=this.hwb();return b.color[1]+=b.color[1]*v,b},blacken(v){const b=this.hwb();return b.color[2]+=b.color[2]*v,b},grayscale(){const v=this.rgb().color,b=v[0]*.3+v[1]*.59+v[2]*.11;return o.rgb(b,b,b)},fade(v){return this.alpha(this.valpha-this.valpha*v)},opaquer(v){return this.alpha(this.valpha+this.valpha*v)},rotate(v){const b=this.hsl();let y=b.color[0];return y=(y+v)%360,y=y<0?360+y:y,b.color[0]=y,b},mix(v,b){if(!v||!v.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof v);const y=v.rgb(),S=this.rgb(),x=b===void 0?.5:b,M=2*x-1,w=y.alpha()-S.alpha(),E=((M*w===-1?M:(M+w)/(1+M*w))+1)/2,O=1-E;return o.rgb(E*y.red()+O*S.red(),E*y.green()+O*S.green(),E*y.blue()+O*S.blue(),y.alpha()*x+S.alpha()*(1-x))}};for(const v of Object.keys(t)){if(n.includes(v))continue;const{channels:b}=t[v];o.prototype[v]=function(...y){return this.model===v?new o(this):y.length>0?new o(y,v):new o([...f(t[this.model][v].raw(this.color)),this.valpha],v)},o[v]=function(...y){let S=y[0];return typeof S=="number"&&(S=m(y,b)),new o(S,v)}}function a(v,b){return Number(v.toFixed(b))}function l(v){return function(b){return a(b,v)}}function c(v,b,y){v=Array.isArray(v)?v:[v];for(const S of v)(i[S]||(i[S]=[]))[b]=y;return v=v[0],function(S){let x;return S!==void 0?(y&&(S=y(S)),x=this[v](),x.color[b]=S,x):(x=this[v]().color[b],y&&(x=y(x)),x)}}function d(v){return function(b){return Math.max(0,Math.min(v,b))}}function f(v){return Array.isArray(v)?v:[v]}function m(v,b){for(let y=0;y<b;y++)typeof v[y]!="number"&&(v[y]=0);return v}return Y7=o,Y7}var eoe=Jie();const wC=Ai(eoe),n2={Success:"success",Info1:"info-1",Info2:"info-2",Info3:"info-3",Error:"error",Empty:"empty"},toe=e=>{try{return{background:wC(e).lighten(.4).whiten(.4).hsl().toString(),border:wC(e).lighten(.2).whiten(.2).hsl().toString()}}catch{return null}},noe=Gie(({css:e},{prefixClsWithoutHash:t,color:n})=>{const r=n?toe(n):null;return{dynamicStyles:e`
|
|
401
|
+
${r&&`&${t} {
|
|
402
|
+
color: ${n};
|
|
403
|
+
background-color: ${r.background};
|
|
404
|
+
border-color: ${r.border};
|
|
405
|
+
|
|
406
|
+
svg {
|
|
407
|
+
color: ${n};
|
|
408
|
+
}
|
|
409
|
+
}`}
|
|
410
|
+
`}}),roe=({children:e,status:t,className:n,color:r,...i})=>{const{getPrefixCls:o,theme:a}=g.useContext(En.ConfigContext),{token:l,hashId:c}=t1(),d=l.Tag,f=V2(a),m=`.${o()}-tag`,v=xr({token:l,path:["Tag"]},()=>({[`:where(.${c})${m}`]:{borderRadius:d.borderRadius,fontSize:d.fontSize,fontWeight:f.typography.fontWeightMedium,paddingLeft:d.paddingLeft,paddingRight:d.paddingRight},[m]:{svg:{fontSize:d.fontSizeClose}},[`${m}-borderless`]:{border:f.border.borderNone},[`${m}-${n2.Success}`]:{color:d.defaultColorSuccess,borderColor:d.defaultBorderColorSuccess,backgroundColor:d.defaultBgSuccess,svg:{color:d.defaultColorSuccess}},[`${m}-${n2.Info1}`]:{color:d.defaultColorWaiting1,borderColor:d.defaultBorderColorWaiting1,backgroundColor:d.defaultBgWaiting1,svg:{color:d.defaultColorWaiting1}},[`${m}-${n2.Info2}`]:{color:d.defaultColorWaiting2,borderColor:d.defaultBorderColorWaiting2,backgroundColor:d.defaultBgWaiting2,svg:{color:d.defaultColorWaiting2}},[`${m}-${n2.Info3}`]:{color:d.defaultColorWaiting3,borderColor:d.defaultBorderColorWaiting3,backgroundColor:d.defaultBgWaiting3,svg:{color:d.defaultColorWaiting3}},[`${m}-${n2.Error}`]:{color:d.defaultColorFailed,borderColor:d.defaultBorderColorFailed,backgroundColor:d.defaultBgFailed,svg:{color:d.defaultColorFailed}},[`${m}-${n2.Empty}`]:{color:d.defaultColorEmpty,borderColor:d.defaultBorderColorEmpty,backgroundColor:d.defaultBgEmpty}})),{styles:b}=noe({prefixClsWithoutHash:m,color:r});return v(ge.jsx(DE,{className:l1e(t&&`${o()}-tag-${t}`,b.dynamicStyles,n),...i,children:e}))};G9.Dragger;/**
|
|
407
411
|
* @remix-run/router v1.23.0
|
|
408
412
|
*
|
|
409
413
|
* Copyright (c) Remix Software Inc.
|
|
@@ -412,7 +416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
412
416
|
* LICENSE.md file in the root directory of this source tree.
|
|
413
417
|
*
|
|
414
418
|
* @license MIT
|
|
415
|
-
*/function n3(){return n3=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},n3.apply(this,arguments)}var ea;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ea||(ea={}));const zC="popstate";function
|
|
419
|
+
*/function n3(){return n3=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},n3.apply(this,arguments)}var ea;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ea||(ea={}));const zC="popstate";function ioe(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:l}=r.location;return Pf("",{pathname:o,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:n_(i)}return aoe(t,n,null,e)}function Sr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function t_(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ooe(){return Math.random().toString(36).substr(2,8)}function $C(e,t){return{usr:e.state,key:e.key,idx:t}}function Pf(e,t,n,r){return n===void 0&&(n=null),n3({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?q2(t):t,{state:n,key:t&&t.key||r||ooe()})}function n_(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function q2(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function aoe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l=ea.Pop,c=null,d=f();d==null&&(d=0,a.replaceState(n3({},a.state,{idx:d}),""));function f(){return(a.state||{idx:null}).idx}function m(){l=ea.Pop;let x=f(),M=x==null?null:x-d;d=x,c&&c({action:l,location:S.location,delta:M})}function v(x,M){l=ea.Push;let w=Pf(S.location,x,M);d=f()+1;let E=$C(w,d),O=S.createHref(w);try{a.pushState(E,"",O)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;i.location.assign(O)}o&&c&&c({action:l,location:S.location,delta:1})}function b(x,M){l=ea.Replace;let w=Pf(S.location,x,M);d=f();let E=$C(w,d),O=S.createHref(w);a.replaceState(E,"",O),o&&c&&c({action:l,location:S.location,delta:0})}function y(x){let M=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof x=="string"?x:n_(x);return w=w.replace(/ $/,"%20"),Sr(M,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,M)}let S={get action(){return l},get location(){return e(i,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(zC,m),c=x,()=>{i.removeEventListener(zC,m),c=null}},createHref(x){return t(i,x)},createURL:y,encodeLocation(x){let M=y(x);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:v,replace:b,go(x){return a.go(x)}};return S}var EC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(EC||(EC={}));function soe(e,t,n){return n===void 0&&(n="/"),loe(e,t,n)}function loe(e,t,n,r){let i=typeof t=="string"?q2(t):t,o=o_(i.pathname||"/",n);if(o==null)return null;let a=r_(e);coe(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let d=xoe(o);l=boe(a[c],d)}return l}function r_(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,l)=>{let c={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(Sr(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=Qa([r,c.relativePath]),f=n.concat(c);o.children&&o.children.length>0&&(Sr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),r_(o.children,t,f,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:voe(d,o.index),routesMeta:f})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let c of i_(o.path))i(o,a,c)}),t}function i_(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=i_(r.join("/")),l=[];return l.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function coe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:poe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const uoe=/^:[\w-]+$/,doe=3,foe=2,hoe=1,goe=10,moe=-2,OC=e=>e==="*";function voe(e,t){let n=e.split("/"),r=n.length;return n.some(OC)&&(r+=moe),t&&(r+=foe),n.filter(i=>!OC(i)).reduce((i,o)=>i+(uoe.test(o)?doe:o===""?hoe:goe),r)}function poe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function boe(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",m=yoe({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f),v=c.route;if(!m)return null;Object.assign(i,m.params),a.push({params:i,pathname:Qa([o,m.pathname]),pathnameBase:Eoe(Qa([o,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(o=Qa([o,m.pathnameBase]))}return a}function yoe(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Soe(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((d,f,m)=>{let{paramName:v,isOptional:b}=f;if(v==="*"){let S=l[m]||"";a=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const y=l[m];return b&&!y?d[v]=void 0:d[v]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:a,pattern:e}}function Soe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),t_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function xoe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return t_(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function o_(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Coe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?q2(e):e;return{pathname:n?n.startsWith("/")?n:Moe(n,t):t,search:Ooe(r),hash:_oe(i)}}function Moe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function K7(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function woe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function zoe(e,t){let n=woe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function $oe(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=q2(e):(i=n3({},e),Sr(!i.pathname||!i.pathname.includes("?"),K7("?","pathname","search",i)),Sr(!i.pathname||!i.pathname.includes("#"),K7("#","pathname","hash",i)),Sr(!i.search||!i.search.includes("#"),K7("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let m=t.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),m-=1;i.pathname=v.join("/")}l=m>=0?t[m]:"/"}let c=Coe(i,l),d=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||f)&&(c.pathname+="/"),c}const Qa=e=>e.join("/").replace(/\/\/+/g,"/"),Eoe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ooe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_oe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ioe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const a_=["post","put","patch","delete"];new Set(a_);const Roe=["get",...a_];new Set(Roe);/**
|
|
416
420
|
* React Router v6.30.1
|
|
417
421
|
*
|
|
418
422
|
* Copyright (c) Remix Software Inc.
|
|
@@ -421,7 +425,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
421
425
|
* LICENSE.md file in the root directory of this source tree.
|
|
422
426
|
*
|
|
423
427
|
* @license MIT
|
|
424
|
-
*/function r3(){return r3=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},r3.apply(this,arguments)}const Sh=g.createContext(null),
|
|
428
|
+
*/function r3(){return r3=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},r3.apply(this,arguments)}const Sh=g.createContext(null),Toe=g.createContext(null),y4=g.createContext(null),S4=g.createContext(null),G2=g.createContext({outlet:null,matches:[],isDataRoute:!1}),s_=g.createContext(null);function x4(){return g.useContext(S4)!=null}function x3(){return x4()||Sr(!1),g.useContext(S4).location}function l_(e){g.useContext(y4).static||g.useLayoutEffect(e)}function C4(){let{isDataRoute:e}=g.useContext(G2);return e?Uoe():Poe()}function Poe(){x4()||Sr(!1);let e=g.useContext(Sh),{basename:t,future:n,navigator:r}=g.useContext(y4),{matches:i}=g.useContext(G2),{pathname:o}=x3(),a=JSON.stringify(zoe(i,n.v7_relativeSplatPath)),l=g.useRef(!1);return l_(()=>{l.current=!0}),g.useCallback(function(d,f){if(f===void 0&&(f={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let m=$oe(d,JSON.parse(a),o,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Qa([t,m.pathname])),(f.replace?r.replace:r.push)(m,f.state,f)},[t,r,a,o,e])}function Aoe(e,t){return Noe(e,t)}function Noe(e,t,n,r){x4()||Sr(!1);let{navigator:i}=g.useContext(y4),{matches:o}=g.useContext(G2),a=o[o.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=x3(),f;if(t){var m;let x=typeof t=="string"?q2(t):t;c==="/"||(m=x.pathname)!=null&&m.startsWith(c)||Sr(!1),f=x}else f=d;let v=f.pathname||"/",b=v;if(c!=="/"){let x=c.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(x.length).join("/")}let y=soe(e,{pathname:b}),S=Hoe(y&&y.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Qa([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:Qa([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&S?g.createElement(S4.Provider,{value:{location:r3({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ea.Pop}},S):S}function Doe(){let e=Woe(),t=Ioe(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:i},n):null,null)}const joe=g.createElement(Doe,null);class Loe extends g.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?g.createElement(G2.Provider,{value:this.props.routeContext},g.createElement(s_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Boe(e){let{routeContext:t,match:n,children:r}=e,i=g.useContext(Sh);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),g.createElement(G2.Provider,{value:t},r)}function Hoe(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let f=a.findIndex(m=>m.route.id&&l?.[m.route.id]!==void 0);f>=0||Sr(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let m=a[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=f),m.route.id){let{loaderData:v,errors:b}=n,y=m.route.loader&&v[m.route.id]===void 0&&(!b||b[m.route.id]===void 0);if(m.route.lazy||y){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,m,v)=>{let b,y=!1,S=null,x=null;n&&(b=l&&m.route.id?l[m.route.id]:void 0,S=m.route.errorElement||joe,c&&(d<0&&v===0?(qoe("route-fallback"),y=!0,x=null):d===v&&(y=!0,x=m.route.hydrateFallbackElement||null)));let M=t.concat(a.slice(0,v+1)),w=()=>{let E;return b?E=S:y?E=x:m.route.Component?E=g.createElement(m.route.Component,null):m.route.element?E=m.route.element:E=f,g.createElement(Boe,{match:m,routeContext:{outlet:f,matches:M,isDataRoute:n!=null},children:E})};return n&&(m.route.ErrorBoundary||m.route.errorElement||v===0)?g.createElement(Loe,{location:n.location,revalidation:n.revalidation,component:S,error:b,children:w(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):w()},null)}var c_=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(c_||{}),u_=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(u_||{});function koe(e){let t=g.useContext(Sh);return t||Sr(!1),t}function Foe(e){let t=g.useContext(Toe);return t||Sr(!1),t}function Voe(e){let t=g.useContext(G2);return t||Sr(!1),t}function d_(e){let t=Voe(),n=t.matches[t.matches.length-1];return n.route.id||Sr(!1),n.route.id}function Woe(){var e;let t=g.useContext(s_),n=Foe(),r=d_();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Uoe(){let{router:e}=koe(c_.UseNavigateStable),t=d_(u_.UseNavigateStable),n=g.useRef(!1);return l_(()=>{n.current=!0}),g.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,r3({fromRouteId:t},o)))},[e,t])}const _C={};function qoe(e,t,n){_C[e]||(_C[e]=!0)}function Goe(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function r2(e){Sr(!1)}function Xoe(e){let{basename:t="/",children:n=null,location:r,navigationType:i=ea.Pop,navigator:o,static:a=!1,future:l}=e;x4()&&Sr(!1);let c=t.replace(/^\/*/,"/"),d=g.useMemo(()=>({basename:c,navigator:o,static:a,future:r3({v7_relativeSplatPath:!1},l)}),[c,l,o,a]);typeof r=="string"&&(r=q2(r));let{pathname:f="/",search:m="",hash:v="",state:b=null,key:y="default"}=r,S=g.useMemo(()=>{let x=o_(f,c);return x==null?null:{location:{pathname:x,search:m,hash:v,state:b,key:y},navigationType:i}},[c,f,m,v,b,y,i]);return S==null?null:g.createElement(y4.Provider,{value:d},g.createElement(S4.Provider,{children:n,value:S}))}function Yoe(e){let{children:t,location:n}=e;return Aoe(Af(t),n)}new Promise(()=>{});function Af(e,t){t===void 0&&(t=[]);let n=[];return g.Children.forEach(e,(r,i)=>{if(!g.isValidElement(r))return;let o=[...t,i];if(r.type===g.Fragment){n.push.apply(n,Af(r.props.children,o));return}r.type!==r2&&Sr(!1),!r.props.index||!r.props.children||Sr(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Af(r.props.children,o)),n.push(a)}),n}/**
|
|
425
429
|
* React Router DOM v6.30.1
|
|
426
430
|
*
|
|
427
431
|
* Copyright (c) Remix Software Inc.
|
|
@@ -430,8 +434,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
430
434
|
* LICENSE.md file in the root directory of this source tree.
|
|
431
435
|
*
|
|
432
436
|
* @license MIT
|
|
433
|
-
*/function Nf(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Yoe(e,t){let n=Nf(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const Koe="6";try{window.__reactRouterVersion=Koe}catch{}const Qoe="startTransition",IC=Ja[Qoe];function Zoe(e){let{basename:t,children:n,future:r,window:i}=e,o=g.useRef();o.current==null&&(o.current=roe({window:i,v5Compat:!0}));let a=o.current,[l,c]=g.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},f=g.useCallback(m=>{d&&IC?IC(()=>c(m)):c(m)},[c,d]);return g.useLayoutEffect(()=>a.listen(f),[a,f]),g.useEffect(()=>qoe(r),[r]),g.createElement(Goe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}var RC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(RC||(RC={}));var TC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(TC||(TC={}));function Joe(e){let t=g.useRef(Nf(e)),n=g.useRef(!1),r=x3(),i=g.useMemo(()=>Yoe(r.search,n.current?null:t.current),[r.search]),o=C4(),a=g.useCallback((l,c)=>{const d=Nf(typeof l=="function"?l(i):l);n.current=!0,o("?"+d,c)},[o,i]);return[i,a]}const eae="c",$n={SET_APP_ID:"SET_APP_ID",SET_CONFIG:"SET_CONFIG",SET_DATA:"SET_DATA",SET_MODAL_CONTEXT:"SET_MODAL_CONTEXT",SET_HEIGHT:"SET_HEIGHT",SET_PARAMS:"SET_PARAMS",INVOKE_ACTION:"INVOKE_ACTION",INVOKE_DEFAULT_ACTION:"INVOKE_DEFAULT_ACTION",NAVIGATE:"NAVIGATE",NAVIGATE_CHILD:"NAVIGATE_CHILD",ACTION_CONFIRMED:"ACTION_CONFIRMED",ACTION_CANCELED:"ACTION_CANCELED",LOCALE_CHANGED:"LOCALE_CHANGED",CLOSE_RICH_MODAL_REQUEST:"CLOSE_RICH_MODAL_REQUEST"},q1={showConfirmationDialog:"showConfirmationDialog",showModalDialog:"showModalDialog",showToast:"showToast",showErrorMessage:"showErrorMessage",showRichModal:"showRichModal",removeSearchParams:"removeSearchParams",setSearchParams:"setSearchParams"},tae=async e=>{const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(JSON.stringify(e))),n=[],r=new DataView(t);for(let i=0;i<r.byteLength;i+=4)n.push(("00000000"+r.getUint32(i).toString(16)).slice(-8));return n.join("")},PC=async e=>(await tae(e)).slice(0,7),nae=({basePath:e,channel:t})=>`${e||"/"}${t?`-${t}`:""}`,rae=e=>/^https?:\/\//i.test(e),iae=({basePath:e,path:t,external:n})=>n||rae(t)||!e||t.startsWith(e)?t:`${e}${t}`;var ja={},La={},AC;function oae(){if(AC)return La;AC=1,Object.defineProperty(La,"__esModule",{value:!0}),La.detach=La.attach=void 0;var e=Li(),t=!1;function n(){t||typeof window>"u"||(t=!0,window.addEventListener("message",e.onMessage,!1))}La.attach=n;function r(){t=!1,window.removeEventListener("message",e.onMessage,!1)}return La.detach=r,La}var tc={},NC;function aae(){if(NC)return tc;NC=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.broadcastToChildWindows=void 0;var e=Li();function t(n,r,i){for(var o=e.childWindows.length-1;o>=0;o--){var a=e.childWindows[o];a.closed?e.childWindows.splice(o,1):i!==a&&(0,e.broadcast)(n,{origin:r,frame:a.top})}}return tc.broadcastToChildWindows=t,tc}var nc={},DC;function sae(){if(DC)return nc;DC=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.broadcast=void 0;var e=Li();function t(n,r){var i=0,o,a=r.origin,l=r.frame;try{for(l.postMessage(n,a),(0,e.hasOpener)(l)&&l.opener.top!==window.top&&t(n,{origin:a,frame:l.opener.top});o=l.frames[i];)t(n,{origin:a,frame:o}),i++}catch{}}return nc.broadcast=t,nc}var no={},jC;function lae(){return jC||(jC=1,Object.defineProperty(no,"__esModule",{value:!0}),no.subscribers=no.childWindows=no.prefix=void 0,no.prefix="/*framebus*/",no.childWindows=[],no.subscribers={}),no}var rc={},LC;function cae(){if(LC)return rc;LC=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.dispatch=void 0;var e=Li();function t(n,r,i,o,a){if(e.subscribers[n]&&e.subscribers[n][r]){var l=[];i&&l.push(i),o&&l.push(o);for(var c=0;c<e.subscribers[n][r].length;c++)e.subscribers[n][r][c].apply(a,l)}}return rc.dispatch=t,rc}var ic={},BC;function uae(){if(BC)return ic;BC=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.hasOpener=void 0;function e(t){return!(t.top!==t||t.opener==null||t.opener===t||t.opener.closed===!0)}return ic.hasOpener=e,ic}var oc={},HC;function dae(){if(HC)return oc;HC=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.isntString=void 0;function e(t){return typeof t!="string"}return oc.isntString=e,oc}var ac={},kC;function fae(){if(kC)return ac;kC=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.onMessage=void 0;var e=Li();function t(n){if(!(0,e.isntString)(n.data)){var r=(0,e.unpackPayload)(n);if(r){var i=r.eventData,o=r.reply;(0,e.dispatch)("*",r.event,i,o,n),(0,e.dispatch)(n.origin,r.event,i,o,n),(0,e.broadcastToChildWindows)(n.data,r.origin,n.source)}}}return ac.onMessage=t,ac}var sc={},FC;function hae(){if(FC)return sc;FC=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.packagePayload=void 0;var e=Li();function t(n,r,i,o){var a,l={event:n,origin:r};typeof o=="function"&&(l.reply=(0,e.subscribeReplier)(o,r)),l.eventData=i;try{a=e.prefix+JSON.stringify(l)}catch(c){throw new Error("Could not stringify event: ".concat(c.message))}return a}return sc.packagePayload=t,sc}var lc={},VC;function gae(){if(VC)return lc;VC=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.sendMessage=void 0;function e(t,n,r){try{t.postMessage(n,r)}catch{}}return lc.sendMessage=e,lc}var Ba={},cc={},WC;function f_(){if(WC)return cc;WC=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.Framebus=void 0;var e=Li(),t=typeof window<"u"&&window.Promise,n=(function(){function r(i){i===void 0&&(i={}),this.origin=i.origin||"*",this.channel=i.channel||"",this.verifyDomain=i.verifyDomain,this.targetFrames=i.targetFrames||[],this.limitBroadcastToFramesArray=!!i.targetFrames,this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=!!(this.verifyDomain||this.limitBroadcastToFramesArray)}return r.setPromise=function(i){r.Promise=i},r.target=function(i){return new r(i)},r.prototype.addTargetFrame=function(i){this.limitBroadcastToFramesArray&&this.targetFrames.push(i)},r.prototype.include=function(i){return i==null||i.Window==null||i.constructor!==i.Window?!1:(e.childWindows.push(i),!0)},r.prototype.target=function(i){return r.target(i)},r.prototype.emit=function(i,o,a){if(this.isDestroyed)return!1;var l=this.origin;if(i=this.namespaceEvent(i),(0,e.isntString)(i)||(0,e.isntString)(l))return!1;typeof o=="function"&&(a=o,o=void 0);var c=(0,e.packagePayload)(i,l,o,a);return c?(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(d){(0,e.sendMessage)(d,c,l)}):(0,e.broadcast)(c,{origin:l,frame:window.top||window.self}),!0):!1},r.prototype.emitAsPromise=function(i,o){var a=this;return new r.Promise(function(l,c){var d=a.emit(i,o,function(f){l(f)});d||c(new Error('Listener not added for "'.concat(i,'"')))})},r.prototype.on=function(i,o){if(this.isDestroyed)return!1;var a=this,l=this.origin,c=o;return i=this.namespaceEvent(i),(0,e.subscriptionArgsInvalid)(i,c,l)?!1:(this.hasAdditionalChecksForOnListeners&&(c=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];a.passesVerifyDomainCheck(this&&this.origin)&&a.hasMatchingTargetFrame(this&&this.source)&&o.apply(void 0,d)}),this.listeners.push({eventName:i,handler:c,originalHandler:o}),e.subscribers[l]=e.subscribers[l]||{},e.subscribers[l][i]=e.subscribers[l][i]||[],e.subscribers[l][i].push(c),!0)},r.prototype.off=function(i,o){var a=o;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var l=0;l<this.listeners.length;l++){var c=this.listeners[l];c.originalHandler===o&&(a=c.handler)}i=this.namespaceEvent(i);var d=this.origin;if((0,e.subscriptionArgsInvalid)(i,a,d))return!1;var f=e.subscribers[d]&&e.subscribers[d][i];if(!f)return!1;for(var l=0;l<f.length;l++)if(f[l]===a)return f.splice(l,1),!0;return!1},r.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var o=this.listeners[i];this.off(o.eventName,o.handler)}this.listeners.length=0}},r.prototype.passesVerifyDomainCheck=function(i){return this.verifyDomain?this.checkOrigin(i):!0},r.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(i){return i instanceof HTMLIFrameElement?i.contentWindow:i}).filter(function(i){return i}):[]},r.prototype.hasMatchingTargetFrame=function(i){if(!this.limitBroadcastToFramesArray)return!0;var o=this.targetFramesAsWindows().find(function(a){return a===i});return!!o},r.prototype.checkOrigin=function(i){var o,a=document.createElement("a");a.href=location.href,a.protocol==="https:"?o=a.host.replace(/:443$/,""):a.protocol==="http:"?o=a.host.replace(/:80$/,""):o=a.host;var l=a.protocol+"//"+o;return l===i?!0:this.verifyDomain?this.verifyDomain(i):!0},r.prototype.namespaceEvent=function(i){return this.channel?"".concat(this.channel,":").concat(i):i},r.Promise=t,r})();return cc.Framebus=n,cc}var Q7,UC;function mae(){if(UC)return Q7;UC=1;function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=Math.random()*16|0,r=t==="x"?n:n&3|8;return r.toString(16)})}return Q7=e,Q7}var qC;function vae(){if(qC)return Ba;qC=1;var e=Ba&&Ba.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.subscribeReplier=void 0;var t=f_(),n=e(mae());function r(i,o){var a=(0,n.default)();function l(c,d){i(c,d),t.Framebus.target({origin:o}).off(a,l)}return t.Framebus.target({origin:o}).on(a,l),a}return Ba.subscribeReplier=r,Ba}var uc={},GC;function pae(){if(GC)return uc;GC=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.subscriptionArgsInvalid=void 0;var e=Li();function t(n,r,i){return(0,e.isntString)(n)||typeof r!="function"?!0:(0,e.isntString)(i)}return uc.subscriptionArgsInvalid=t,uc}var Z7={},XC;function bae(){return XC||(XC=1,Object.defineProperty(Z7,"__esModule",{value:!0})),Z7}var dc={},YC;function yae(){if(YC)return dc;YC=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.unpackPayload=void 0;var e=Li();function t(n){var r;if(n.data.slice(0,e.prefix.length)!==e.prefix)return!1;try{r=JSON.parse(n.data.slice(e.prefix.length))}catch{return!1}if(r.reply){var i=n.origin,o=n.source,a=r.reply;r.reply=function(c){if(o){var d=(0,e.packagePayload)(a,i,c);d&&o.postMessage(d,i)}}}return r}return dc.unpackPayload=t,dc}var KC;function Li(){return KC||(KC=1,(function(e){var t=ja&&ja.__createBinding||(Object.create?(function(r,i,o,a){a===void 0&&(a=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,a,l)}):(function(r,i,o,a){a===void 0&&(a=o),r[a]=i[o]})),n=ja&&ja.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(oae(),e),n(aae(),e),n(sae(),e),n(lae(),e),n(cae(),e),n(uae(),e),n(dae(),e),n(fae(),e),n(hae(),e),n(gae(),e),n(vae(),e),n(pae(),e),n(bae(),e),n(yae(),e)})(ja)),ja}var J7,QC;function Sae(){if(QC)return J7;QC=1;var e=Li(),t=f_();return(0,e.attach)(),J7=t.Framebus,J7}var xae=Sae();const e8=Ai(xae),n6=(e,t,n)=>{const r=document.createElement("iframe");return r.id=e,r.src=`${t}${n??""}`,r.style.display="none",document.body.appendChild(r),r},h_={apps:[],configs:new Map,navigate:()=>{},updateLocale:()=>{},instances:new Map},g_=g.createContext(h_),us=()=>g.useContext(g_),Cae=({children:e,apps:t,actions:n,data:r,navigation:i})=>{const[o,a]=g.useState({...h_}),l=new e8,c=g.useRef(new Map),d=g.useRef(new Map),f=g.useRef(new Map),m=g.useRef(r);m.current=r;const v=g.useRef(i);v.current=i;const b=E=>{try{const O=v.current.resolveUrl?.({id:E,path:""});if(!O)return;const z=new URL(O,window.location.origin);return z.search="",z.hash="",z.href}catch{return}},y=E=>{const O=b(f.current.get(E)??E);return{...m.current,...O?{shellBaseUrl:O}:{}}},S=(E,O,z,_,I,A)=>{f.current.set(E,_??E);const N=new URL(O).searchParams.get(eae)??void 0,D=new e8({origin:O,targetFrames:[z],channel:nae({basePath:A,channel:N})});D.on($n.SET_CONFIG,H=>{const{config:B}=H;a(F=>({...F,configs:new Map(F.configs.set(E,B)),instances:new Map(F.instances).set(E,{id:E,basePath:A||"",config:B,iframe:z,bus:D})})),D.emit($n.SET_DATA,y(E)),D.emit($n.SET_APP_ID,{appId:E}),typeof I<"u"&&D.emit($n.SET_MODAL_CONTEXT,I)});const L=new e8({origin:O,targetFrames:[z]}),q=()=>{n?.closeRichModal?.(E),D.teardown(),L.teardown(),d.current.delete(E),c.current.delete(E),f.current.delete(E)};L.on($n.SET_CONFIG,H=>{D.teardown(),d.current.set(E,L);const{config:B}=H;a(F=>({...F,configs:new Map(F.configs.set(E,B)),instances:new Map(F.instances).set(E,{id:E,basePath:A||"",config:B,iframe:z,bus:L})})),L.emit($n.SET_DATA,y(E)),L.emit($n.SET_APP_ID,{appId:E}),typeof I<"u"&&L.emit($n.SET_MODAL_CONTEXT,I),L.on($n.INVOKE_ACTION,(F,T)=>{const{actionKey:j,args:G}=F;if(n&&n.actions[j])try{Promise.resolve(n.actions[j](...G)).then(k=>T({success:!0,result:k})).catch(k=>{const P=k instanceof Error?k.message:"An error occurred";T({success:!1,error:P})})}catch(k){const P=k instanceof Error?k.message:"An error occurred";T({success:!1,error:P})}else T({success:!1,error:"Action not found"})}),L.on($n.INVOKE_DEFAULT_ACTION,(F,T)=>{if(!n)return;const{actionKey:j,args:G}=F,{showConfirmationDialog:k,showErrorMessage:P,showModalDialog:U,showToast:V,showRichModal:R}=n;if(j===q1.showConfirmationDialog){try{const[X,Y]=[...G],Q=k?.(X,Y,ie=>L.emit($n.ACTION_CONFIRMED,{data:ie}),()=>L.emit($n.ACTION_CANCELED));T?.({success:!0,result:Q})}catch(X){const Y=X instanceof Error?X.message:"An error occurred";T?.({success:!1,error:Y})}return}if(j===q1.showErrorMessage){const[X,Y]=[...G];try{const Q=P?.(X,Y);T?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";T?.({success:!1,error:ie})}return}if(j===q1.showModalDialog){const[X,Y]=[...G];try{const Q=U?.(X,Y);T?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";T?.({success:!1,error:ie})}return}if(j===q1.showToast){const[X,Y]=[...G];try{const Q=V?.(X,Y);T?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";T?.({success:!1,error:ie})}return}if(j===q1.showRichModal){const[X,Y,Q,ie]=[...G],ee=window.crypto.randomUUID();try{const ce=R?.(ee,X,Y,Q,ie);T?.({success:!0,result:ce});const ye=`app-shell-iframe-modal-${ee}`,ue=n6(ye,O);c.current.set(ee,ue),S(ee,O,ue,E,Y),a(se=>({...se,frames:c,modals:se.modals?se.modals.set(ee,E):new Map([[ee,E]]),modalContext:se.modalContext?se.modalContext.set(ee,Y):new Map([[ee,Y]])}))}catch(ce){const ye=ce instanceof Error?ce.message:"An error occurred";T?.({success:!1,error:ye})}return}}),L.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{_&&q()}),L.on($n.NAVIGATE,F=>{const{navigate:T}=v.current,{path:j,external:G,newTab:k}=F;T&&(_&&!k&&q(),T({id:_||E,path:j,external:G,newTab:k}))}),console.group(`[AKINON - UI Protocol] Deprecated channel usage detected for extension id "${E}"`),console.warn("Please upgrade to the latest version of @akinon/app-client package."),console.error("This method of communication will be removed in future releases."),console.groupEnd()}),L.on($n.SET_HEIGHT,H=>{const{height:B,id:F}=H,T=document.getElementById(F);T&&(T.style.height=`${B}px`)}),D.on($n.SET_HEIGHT,H=>{const{height:B,id:F}=H,T=document.getElementById(F);T&&(T.style.height=`${B}px`)}),D.on($n.INVOKE_ACTION,(H,B)=>{const{actionKey:F,args:T}=H;if(n&&n.actions[F])try{Promise.resolve(n.actions[F](...T)).then(j=>B({success:!0,result:j})).catch(j=>{const G=j instanceof Error?j.message:"An error occurred";B({success:!1,error:G})})}catch(j){const G=j instanceof Error?j.message:"An error occurred";B({success:!1,error:G})}else B({success:!1,error:"Action not found"})}),D.on($n.INVOKE_DEFAULT_ACTION,(H,B)=>{if(!n)return;const{actionKey:F,args:T}=H,{showConfirmationDialog:j,showErrorMessage:G,showModalDialog:k,showToast:P,showRichModal:U,removeSearchParams:V,setSearchParams:R}=n;if(F===q1.showConfirmationDialog){try{const[X,Y]=[...T],Q=j?.(X,Y,ie=>D.emit($n.ACTION_CONFIRMED,{data:ie}),()=>D.emit($n.ACTION_CANCELED));B?.({success:!0,result:Q})}catch(X){const Y=X instanceof Error?X.message:"An error occurred";B?.({success:!1,error:Y})}return}if(F===q1.showErrorMessage){const[X,Y]=[...T];try{const Q=G?.(X,Y);B?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";B?.({success:!1,error:ie})}return}if(F===q1.showModalDialog){const[X,Y]=[...T];try{const Q=k?.(X,Y);B?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";B?.({success:!1,error:ie})}return}if(F===q1.showToast){const[X,Y]=[...T];try{const Q=P?.(X,Y);B?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";B?.({success:!1,error:ie})}return}if(F===q1.showRichModal){const[X,Y,Q,ie]=[...T],ee=window.crypto.randomUUID();try{const ce=U?.(ee,X,Y,Q,ie);B?.({success:!0,result:ce});const ye=`app-shell-iframe-modal-${ee}`,ue=n6(ye,O);c.current.set(ee,ue),S(ee,O,ue,E,Y,A),a(se=>({...se,frames:c,modals:se.modals?se.modals.set(ee,E):new Map([[ee,E]]),modalContext:se.modalContext?se.modalContext.set(ee,Y):new Map([[ee,Y]])}))}catch(ce){const ye=ce instanceof Error?ce.message:"An error occurred";B?.({success:!1,error:ye})}return}if(F===q1.removeSearchParams){const[X]=[...T];try{const Y=V?.(X);B?.({success:!0,result:Y})}catch(Y){const Q=Y instanceof Error?Y.message:"An error occurred";B?.({success:!1,error:Q})}return}if(F===q1.setSearchParams){const[X]=[...T];try{const Y=R?.(X);B?.({success:!0,result:Y})}catch(Y){const Q=Y instanceof Error?Y.message:"An error occurred";B?.({success:!1,error:Q})}return}}),D.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{_&&q()}),D.on($n.NAVIGATE,H=>{const{navigate:B}=v.current,{path:F,external:T,newTab:j}=H;B&&(_&&!j&&q(),B({id:_||E,path:iae({basePath:A,path:F,external:T}),external:T,newTab:j}))}),d.current.set(E,D),a(H=>({...H,buses:d,confirmAction:B=>{d.current.get(E)?.emit($n.ACTION_CONFIRMED,{data:B})},cancelAction:()=>{d.current.get(E)?.emit($n.ACTION_CANCELED)}}))};g.useEffect(()=>(t.filter(z=>z.type==="full_page").forEach(z=>{const _=`app-shell-iframe-fullpage-${z.id}`,I=n6(_,z.url),A=z.subSlug??new URL(z.url).pathname;c.current.set(z.id,I),a(N=>({...N,frames:c})),S(z.id,z.url,I,void 0,void 0,A)}),t.filter(z=>z.type==="plugin").forEach(z=>{const _=`app-shell-iframe-plugin-${z.id}`,I=n6(_,z.url,z.subSlug),A=z.subSlug??new URL(z.url).pathname;c.current.set(z.id,I),a(N=>({...N,frames:c})),S(z.id,z.url,I,void 0,void 0,A)}),()=>{d.current.forEach(z=>z.teardown()),c.current.forEach(z=>z.remove()),d.current.clear(),c.current.clear(),f.current.clear(),a(z=>({...z,instances:new Map}))}),[t?.length]),g.useEffect(()=>{a(E=>({...E,data:r})),r&&d.current&&d.current.forEach((E,O)=>{E.emit($n.SET_DATA,y(O))})},[r]);const x=g.useCallback(({path:E,id:O})=>{O?d.current.get(O)?.emit($n.NAVIGATE_CHILD,{path:E}):l.emit($n.NAVIGATE_CHILD,{path:E})},[]),M=g.useCallback(E=>{d.current.forEach(O=>{O.emit($n.LOCALE_CHANGED,{locale:E})})},[]),w=g.useMemo(()=>({...o,apps:t,navigate:x,updateLocale:M}),[o,t]);return ge.jsx(g_.Provider,{value:w,children:e})},Mae=({id:e,path:t})=>{const n=`app-shell-fullpage-container-${e}`,{frames:r,navigate:i}=us();return g.useEffect(()=>{if(r?.current.has(e)){const o=r.current.get(e),a=document.getElementById(n),l=new URL(o.src).origin;t?o.src=`${l}${t}`:o.src=l;const c={display:"block",width:"100%",height:"100%",border:"none"};Object.assign(o.style,c),a&&(a.innerHTML="",a.appendChild(o))}},[e,r?.current.has(e)]),g.useEffect(()=>{t&&i({path:t,id:e})},[t]),ge.jsx("div",{id:n,className:"app-shell-fullpage-container"})},wae=({placeholderId:e,params:t})=>{const{apps:n,configs:r,frames:i,buses:o}=us(),a=Math.random().toString(16).slice(2),l=Array.from(r.keys()).filter(b=>{const y=r.get(b);return typeof y.placeholderId=="string"?y?.placeholderId===e:y?.placeholderId?.includes(e)}),c=n.filter(b=>l.includes(b.id)),d=c[0];if(!d)return null;c.length>1&&console.warn(`PluginRenderer: Found multiple plugins with placeholderId: ${e}`);const f=`app-shell-plugin-container-${a}`,m=`app-shell-plugin-iframe-${a}`,v=o?.current.get(d.id);return g.useEffect(()=>{(async()=>{const y=i?.current.get(d.id);if(y){const S=document.getElementById(f),x=document.createElement("iframe");if(x.id=m,x.name=m,t){const w=await PC(t);x.src=`${y.src}?c=${w}`}else x.src=y.src;const M={background:"transparent",display:"block",width:"100%",border:"none"};Object.assign(x.style,M),S&&S.appendChild(x),x.onload=async()=>{if(v?.addTargetFrame(x),t){const w=await PC(t);v?.target({channel:w}).emit($n.SET_PARAMS,t)}}}})()},[e,i]),g.useEffect(()=>{(async()=>{if(t){const S=document.querySelector(`#${f} iframe`)?.src.split("?")[1]?.split("=")[1];v?.target({channel:S}).emit($n.SET_PARAMS,t)}})()},[t]),ge.jsx("div",{id:f,className:"app-shell-plugin-container"})},zae={en:{locale:"en",isoLocale:"en-us",name:"English"},tr:{locale:"tr",isoLocale:"tr-tr",name:"Türkçe"}},$ae=({currentLocale:e,locales:t,onLocaleChange:n})=>{const r=o=>()=>{n(o)},i=g.useMemo(()=>Object.keys(t).map(o=>({key:`locale-${o}`,label:t[o].name,onClick:r(o)})),[t]);return ge.jsx("div",{className:"header-locale",children:ge.jsx(Xre,{menu:{items:i},trigger:["click"],placement:"bottomRight",arrow:!0,children:ge.jsx(vf,{type:"text",className:"flex items-center",children:t[e]?.name??e})})})},Eae=()=>"1.7.3",Oae=({onToggleLeftSider:e,onToggleRightSider:t})=>{const{i18n:n}=S5(),{updateLocale:r}=us(),[,i]=g1e(oM,null,{raw:!0}),o=a=>{n.changeLanguage(a),tM.setLocale(a),i(a),r(a)};return g.useEffect(()=>{r(n.language)},[r,n.language]),ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{className:"flex items-center",children:ge.jsx(vf,{type:"text",icon:"outdent",iconSize:16,onClick:e,className:"mr-2"})}),ge.jsx("div",{children:ge.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ge.jsx("span",{style:{width:"10px",height:"10px",backgroundColor:"green",borderRadius:"50%"}}),ge.jsxs("span",{style:{fontSize:"14px",color:"#999"},children:["Akinon UI Shell (v",Eae(),")"]})]})}),ge.jsxs("div",{className:"flex items-center",children:[ge.jsx($ae,{currentLocale:n.language,locales:zae,onLocaleChange:o}),ge.jsx(vf,{type:"text",icon:"siralama",iconSize:16,onClick:t,className:"mr-2"})]})]})};function ZC(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e[t]=="string")return e[t];const n=e;if(n){if(typeof n.en=="string")return n.en;if(typeof n.tr=="string")return n.tr}return""}function _ae(e){return e?e.startsWith("/")?e:`/${e}`:"/"}const Iae=e=>[{key:"/",label:e("navbar.dashboard"),icon:"dashboard"},{key:"/products-and-catalogs",label:e("navbar.products_and_catalogs"),icon:"fiyatlistesi",disabled:!0},{key:"/orders",label:e("navbar.orders"),icon:"siparis",disabled:!0}],Rae=e=>[{key:"/placeholder-2",label:e("navbar.help_and_support"),icon:"bilgilendirme_servis",disabled:!0},{key:"/placeholder-1",label:e("navbar.settings"),icon:"ayarlar",disabled:!0}],Tae=(e,t)=>e.filter(n=>n.type==="full_page").map(n=>{const i=t.get(n.id)?.menu?.map(o=>{const{child:a,path:l,label:c}=o||{};if(a||!l)return!1;const d=_ae(l);return{key:`/external/${n.slug}${d}`,label:ZC(c,"en")||void 0,icon:"eksi"}}).filter(Boolean);return{key:`/external/${n.slug}`,label:ZC(n.name,"en")||n.name,icon:"stoklistesi",children:i}}),Pae=(e,t)=>e.some(r=>r.type==="plugin")?[{key:"/plugin-test",label:t("navbar.plugin_test"),icon:"box"}]:[],Aae=()=>{const{apps:e,configs:t}=us(),{t:n}=S5(),r=x3(),i=C4(),[o,a]=g.useState("/"),[l,c]=g.useState([]),d=Iae(n),f=Rae(n),m=Tae(e,t),v=Pae(e,n),b=g.useMemo(()=>[...d,...m,...v,...f],[d,m,v,f]),{allItemKeys:y,childToParentKey:S}=g.useMemo(()=>{function E(_){if(!_)return[];const I=[];return _.forEach(A=>{"key"in A&&A.key&&I.push(A.key),"children"in A&&A.children&&A.children.forEach(N=>{"key"in N&&N.key&&I.push(N.key)})}),I}const O=E(b),z=new Map;return m.forEach(_=>{"children"in _&&_.children&&_.children.forEach(I=>{"key"in I&&I.key&&"key"in _&&_.key&&z.set(I.key,_.key)})}),{allItemKeys:O,childToParentKey:z}},[b,m]),x=g.useMemo(()=>{const E=new Set;return m.forEach(O=>{"key"in O&&O.key&&"children"in O&&Array.isArray(O.children)&&O.children.length>0&&E.add(O.key)}),E},[m]);g.useEffect(()=>{const E=r.pathname,O=y.filter(_=>typeof _=="string"&&E.startsWith(_)).sort((_,I)=>I.length-_.length)[0];O&&a(O);const z=O?S.get(O):void 0;z?c([z]):m.some(_=>{const I="key"in _&&_.key===O,A="children"in _&&Array.isArray(_.children)&&_.children.length>0;return I&&A})&&c([O])},[r,y,S,m]);const M=E=>{const O=E.key;if(x.has(O)){c(_=>_.includes(O)?[]:[O]),a(O);return}const z=S.get(O);z&&c([z]),O.includes("external")||c([]),i(O)},w=E=>{if(E.length===0){c([]);return}c([E[E.length-1]])};return ge.jsx("div",{children:ge.jsx(f1e,{mode:"inline",selectedKeys:[o],items:b,onClick:M,triggerSubMenuAction:"click",theme:"dark",openKeys:l,onOpenChange:w})})},Nae=({children:e})=>{const[t,n]=g.useState(!1),[r,i]=g.useState(!0),o=()=>n(!t),a=()=>i(!r);return ge.jsxs(t2,{children:[ge.jsx(t2.Sider,{collapsed:t,brandImageUrl:"/logo.png",iconUrl:"/symbol.png",children:ge.jsx(Aae,{})}),ge.jsxs(t2,{children:[ge.jsx(t2.Header,{children:ge.jsx(Oae,{onToggleLeftSider:o,onToggleRightSider:a})}),ge.jsx(t2.Content,{children:e})]}),ge.jsx(t2.Sider,{collapsed:r,collapsedWidth:0,position:"right",children:ge.jsxs(_f,{className:"log-messages",children:[ge.jsxs("div",{className:"log-messages-item",children:[ge.jsx(H0,{type:"success",children:"Development server running"}),ge.jsx(H0,{children:new Date().toLocaleTimeString()})]}),ge.jsxs("div",{className:"log-messages-item",children:[ge.jsx(H0,{children:"Shell environment active"}),ge.jsx(H0,{children:"Ready for testing"})]})]})})]})},Dae=({config:e,children:t})=>{const[n,r]=V9.useNotification(),[i]=Joe(),o=C4(),{i18n:a}=S5(),l=e.apps.map((y,S)=>({id:S+1,url:y.url,slug:y.name.toLowerCase().replace(/\s+/g,"-"),path:"",type:y.type,name:y.navTitle||y.name})),c=({id:y,path:S,external:x})=>{const M=l.find(w=>w.id===y);if(M)return x?S:`/external/${M.slug}${S||""}`},d={navigate:y=>{const S=c(y);if(S!==void 0){if(y.newTab){const x=new URL(S,window.location.origin);if(x.protocol!=="http:"&&x.protocol!=="https:")return;window.open(x.href,"_blank","noopener,noreferrer");return}o(S)}},resolveUrl:y=>{const S=c(y);if(S!==void 0)return new URL(S,window.location.origin).href}},f={lng:a.language,username:"Developer",searchParams:Object.fromEntries([...i]),...e.data||{}},b={...{showModalDialog:()=>{},showToast:(y,S)=>{S==="loading"||S==="destroy"||n[S]({message:y,placement:"top"})},showErrorMessage:(y,S)=>{n.error({message:y,description:S,placement:"top"})},showRichModal:()=>{}},actions:{...{reloadPage:()=>window.location.reload(),logMessage:y=>{try{const S=JSON.parse(localStorage.getItem("logMessages")||"[]");localStorage.setItem("logMessages",JSON.stringify([...S,y]))}catch{console.error("Failed to log message")}}}}};return ge.jsxs(Cae,{apps:l,navigation:d,data:f,actions:b,children:[t,r]})},m_=({children:e})=>ge.jsx("div",{className:"px-8 py-8",children:e}),jae=({title:e,description:t,actions:n,className:r})=>ge.jsxs(o1e,{justify:"space-between",align:"flex-start",className:r,style:{padding:"18px 30px",borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ge.jsxs(_f,{direction:"vertical",size:4,children:[ge.jsx(GZ,{level:4,style:{margin:0},children:e}),t&&ge.jsx(qZ,{type:"secondary",children:t})]}),n&&ge.jsx(_f,{children:n})]}),Lae=({data:e})=>{const t={...e};return delete t.lng,delete t.username,delete t.searchParams,ge.jsx("pre",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"16px",borderRadius:"6px",border:"1px solid #424b6b",fontSize:"13px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace',lineHeight:"1.5",overflow:"auto",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Object.keys(t).length>0?JSON.stringify(t,null,2):`// No custom data configured in shell.config.js
|
|
434
|
-
// Add data to the "data" field to share it with your application`})},
|
|
437
|
+
*/function Nf(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Koe(e,t){let n=Nf(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(o=>{n.append(i,o)})}),n}const Qoe="6";try{window.__reactRouterVersion=Qoe}catch{}const Zoe="startTransition",IC=Ja[Zoe];function Joe(e){let{basename:t,children:n,future:r,window:i}=e,o=g.useRef();o.current==null&&(o.current=ioe({window:i,v5Compat:!0}));let a=o.current,[l,c]=g.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},f=g.useCallback(m=>{d&&IC?IC(()=>c(m)):c(m)},[c,d]);return g.useLayoutEffect(()=>a.listen(f),[a,f]),g.useEffect(()=>Goe(r),[r]),g.createElement(Xoe,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}var RC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(RC||(RC={}));var TC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(TC||(TC={}));function eae(e){let t=g.useRef(Nf(e)),n=g.useRef(!1),r=x3(),i=g.useMemo(()=>Koe(r.search,n.current?null:t.current),[r.search]),o=C4(),a=g.useCallback((l,c)=>{const d=Nf(typeof l=="function"?l(i):l);n.current=!0,o("?"+d,c)},[o,i]);return[i,a]}const tae="c",$n={SET_APP_ID:"SET_APP_ID",SET_CONFIG:"SET_CONFIG",SET_DATA:"SET_DATA",SET_MODAL_CONTEXT:"SET_MODAL_CONTEXT",SET_HEIGHT:"SET_HEIGHT",SET_PARAMS:"SET_PARAMS",INVOKE_ACTION:"INVOKE_ACTION",INVOKE_DEFAULT_ACTION:"INVOKE_DEFAULT_ACTION",NAVIGATE:"NAVIGATE",NAVIGATE_CHILD:"NAVIGATE_CHILD",ACTION_CONFIRMED:"ACTION_CONFIRMED",ACTION_CANCELED:"ACTION_CANCELED",LOCALE_CHANGED:"LOCALE_CHANGED",CLOSE_RICH_MODAL_REQUEST:"CLOSE_RICH_MODAL_REQUEST"},q1={showConfirmationDialog:"showConfirmationDialog",showModalDialog:"showModalDialog",showToast:"showToast",showErrorMessage:"showErrorMessage",showRichModal:"showRichModal",removeSearchParams:"removeSearchParams",setSearchParams:"setSearchParams"},nae=async e=>{const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(JSON.stringify(e))),n=[],r=new DataView(t);for(let i=0;i<r.byteLength;i+=4)n.push(("00000000"+r.getUint32(i).toString(16)).slice(-8));return n.join("")},PC=async e=>(await nae(e)).slice(0,7),rae=({basePath:e,channel:t})=>`${e||"/"}${t?`-${t}`:""}`,iae=e=>/^https?:\/\//i.test(e),oae=({basePath:e,path:t,external:n})=>n||iae(t)||!e||t.startsWith(e)?t:`${e}${t}`;var ja={},La={},AC;function aae(){if(AC)return La;AC=1,Object.defineProperty(La,"__esModule",{value:!0}),La.detach=La.attach=void 0;var e=Li(),t=!1;function n(){t||typeof window>"u"||(t=!0,window.addEventListener("message",e.onMessage,!1))}La.attach=n;function r(){t=!1,window.removeEventListener("message",e.onMessage,!1)}return La.detach=r,La}var tc={},NC;function sae(){if(NC)return tc;NC=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.broadcastToChildWindows=void 0;var e=Li();function t(n,r,i){for(var o=e.childWindows.length-1;o>=0;o--){var a=e.childWindows[o];a.closed?e.childWindows.splice(o,1):i!==a&&(0,e.broadcast)(n,{origin:r,frame:a.top})}}return tc.broadcastToChildWindows=t,tc}var nc={},DC;function lae(){if(DC)return nc;DC=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.broadcast=void 0;var e=Li();function t(n,r){var i=0,o,a=r.origin,l=r.frame;try{for(l.postMessage(n,a),(0,e.hasOpener)(l)&&l.opener.top!==window.top&&t(n,{origin:a,frame:l.opener.top});o=l.frames[i];)t(n,{origin:a,frame:o}),i++}catch{}}return nc.broadcast=t,nc}var no={},jC;function cae(){return jC||(jC=1,Object.defineProperty(no,"__esModule",{value:!0}),no.subscribers=no.childWindows=no.prefix=void 0,no.prefix="/*framebus*/",no.childWindows=[],no.subscribers={}),no}var rc={},LC;function uae(){if(LC)return rc;LC=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.dispatch=void 0;var e=Li();function t(n,r,i,o,a){if(e.subscribers[n]&&e.subscribers[n][r]){var l=[];i&&l.push(i),o&&l.push(o);for(var c=0;c<e.subscribers[n][r].length;c++)e.subscribers[n][r][c].apply(a,l)}}return rc.dispatch=t,rc}var ic={},BC;function dae(){if(BC)return ic;BC=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.hasOpener=void 0;function e(t){return!(t.top!==t||t.opener==null||t.opener===t||t.opener.closed===!0)}return ic.hasOpener=e,ic}var oc={},HC;function fae(){if(HC)return oc;HC=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.isntString=void 0;function e(t){return typeof t!="string"}return oc.isntString=e,oc}var ac={},kC;function hae(){if(kC)return ac;kC=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.onMessage=void 0;var e=Li();function t(n){if(!(0,e.isntString)(n.data)){var r=(0,e.unpackPayload)(n);if(r){var i=r.eventData,o=r.reply;(0,e.dispatch)("*",r.event,i,o,n),(0,e.dispatch)(n.origin,r.event,i,o,n),(0,e.broadcastToChildWindows)(n.data,r.origin,n.source)}}}return ac.onMessage=t,ac}var sc={},FC;function gae(){if(FC)return sc;FC=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.packagePayload=void 0;var e=Li();function t(n,r,i,o){var a,l={event:n,origin:r};typeof o=="function"&&(l.reply=(0,e.subscribeReplier)(o,r)),l.eventData=i;try{a=e.prefix+JSON.stringify(l)}catch(c){throw new Error("Could not stringify event: ".concat(c.message))}return a}return sc.packagePayload=t,sc}var lc={},VC;function mae(){if(VC)return lc;VC=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.sendMessage=void 0;function e(t,n,r){try{t.postMessage(n,r)}catch{}}return lc.sendMessage=e,lc}var Ba={},cc={},WC;function f_(){if(WC)return cc;WC=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.Framebus=void 0;var e=Li(),t=typeof window<"u"&&window.Promise,n=(function(){function r(i){i===void 0&&(i={}),this.origin=i.origin||"*",this.channel=i.channel||"",this.verifyDomain=i.verifyDomain,this.targetFrames=i.targetFrames||[],this.limitBroadcastToFramesArray=!!i.targetFrames,this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=!!(this.verifyDomain||this.limitBroadcastToFramesArray)}return r.setPromise=function(i){r.Promise=i},r.target=function(i){return new r(i)},r.prototype.addTargetFrame=function(i){this.limitBroadcastToFramesArray&&this.targetFrames.push(i)},r.prototype.include=function(i){return i==null||i.Window==null||i.constructor!==i.Window?!1:(e.childWindows.push(i),!0)},r.prototype.target=function(i){return r.target(i)},r.prototype.emit=function(i,o,a){if(this.isDestroyed)return!1;var l=this.origin;if(i=this.namespaceEvent(i),(0,e.isntString)(i)||(0,e.isntString)(l))return!1;typeof o=="function"&&(a=o,o=void 0);var c=(0,e.packagePayload)(i,l,o,a);return c?(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(d){(0,e.sendMessage)(d,c,l)}):(0,e.broadcast)(c,{origin:l,frame:window.top||window.self}),!0):!1},r.prototype.emitAsPromise=function(i,o){var a=this;return new r.Promise(function(l,c){var d=a.emit(i,o,function(f){l(f)});d||c(new Error('Listener not added for "'.concat(i,'"')))})},r.prototype.on=function(i,o){if(this.isDestroyed)return!1;var a=this,l=this.origin,c=o;return i=this.namespaceEvent(i),(0,e.subscriptionArgsInvalid)(i,c,l)?!1:(this.hasAdditionalChecksForOnListeners&&(c=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];a.passesVerifyDomainCheck(this&&this.origin)&&a.hasMatchingTargetFrame(this&&this.source)&&o.apply(void 0,d)}),this.listeners.push({eventName:i,handler:c,originalHandler:o}),e.subscribers[l]=e.subscribers[l]||{},e.subscribers[l][i]=e.subscribers[l][i]||[],e.subscribers[l][i].push(c),!0)},r.prototype.off=function(i,o){var a=o;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var l=0;l<this.listeners.length;l++){var c=this.listeners[l];c.originalHandler===o&&(a=c.handler)}i=this.namespaceEvent(i);var d=this.origin;if((0,e.subscriptionArgsInvalid)(i,a,d))return!1;var f=e.subscribers[d]&&e.subscribers[d][i];if(!f)return!1;for(var l=0;l<f.length;l++)if(f[l]===a)return f.splice(l,1),!0;return!1},r.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var o=this.listeners[i];this.off(o.eventName,o.handler)}this.listeners.length=0}},r.prototype.passesVerifyDomainCheck=function(i){return this.verifyDomain?this.checkOrigin(i):!0},r.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(i){return i instanceof HTMLIFrameElement?i.contentWindow:i}).filter(function(i){return i}):[]},r.prototype.hasMatchingTargetFrame=function(i){if(!this.limitBroadcastToFramesArray)return!0;var o=this.targetFramesAsWindows().find(function(a){return a===i});return!!o},r.prototype.checkOrigin=function(i){var o,a=document.createElement("a");a.href=location.href,a.protocol==="https:"?o=a.host.replace(/:443$/,""):a.protocol==="http:"?o=a.host.replace(/:80$/,""):o=a.host;var l=a.protocol+"//"+o;return l===i?!0:this.verifyDomain?this.verifyDomain(i):!0},r.prototype.namespaceEvent=function(i){return this.channel?"".concat(this.channel,":").concat(i):i},r.Promise=t,r})();return cc.Framebus=n,cc}var Q7,UC;function vae(){if(UC)return Q7;UC=1;function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=Math.random()*16|0,r=t==="x"?n:n&3|8;return r.toString(16)})}return Q7=e,Q7}var qC;function pae(){if(qC)return Ba;qC=1;var e=Ba&&Ba.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.subscribeReplier=void 0;var t=f_(),n=e(vae());function r(i,o){var a=(0,n.default)();function l(c,d){i(c,d),t.Framebus.target({origin:o}).off(a,l)}return t.Framebus.target({origin:o}).on(a,l),a}return Ba.subscribeReplier=r,Ba}var uc={},GC;function bae(){if(GC)return uc;GC=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.subscriptionArgsInvalid=void 0;var e=Li();function t(n,r,i){return(0,e.isntString)(n)||typeof r!="function"?!0:(0,e.isntString)(i)}return uc.subscriptionArgsInvalid=t,uc}var Z7={},XC;function yae(){return XC||(XC=1,Object.defineProperty(Z7,"__esModule",{value:!0})),Z7}var dc={},YC;function Sae(){if(YC)return dc;YC=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.unpackPayload=void 0;var e=Li();function t(n){var r;if(n.data.slice(0,e.prefix.length)!==e.prefix)return!1;try{r=JSON.parse(n.data.slice(e.prefix.length))}catch{return!1}if(r.reply){var i=n.origin,o=n.source,a=r.reply;r.reply=function(c){if(o){var d=(0,e.packagePayload)(a,i,c);d&&o.postMessage(d,i)}}}return r}return dc.unpackPayload=t,dc}var KC;function Li(){return KC||(KC=1,(function(e){var t=ja&&ja.__createBinding||(Object.create?(function(r,i,o,a){a===void 0&&(a=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,a,l)}):(function(r,i,o,a){a===void 0&&(a=o),r[a]=i[o]})),n=ja&&ja.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(aae(),e),n(sae(),e),n(lae(),e),n(cae(),e),n(uae(),e),n(dae(),e),n(fae(),e),n(hae(),e),n(gae(),e),n(mae(),e),n(pae(),e),n(bae(),e),n(yae(),e),n(Sae(),e)})(ja)),ja}var J7,QC;function xae(){if(QC)return J7;QC=1;var e=Li(),t=f_();return(0,e.attach)(),J7=t.Framebus,J7}var Cae=xae();const e8=Ai(Cae),n6=(e,t,n)=>{const r=document.createElement("iframe");return r.id=e,r.src=`${t}${n??""}`,r.style.display="none",document.body.appendChild(r),r},h_={apps:[],configs:new Map,navigate:()=>{},updateLocale:()=>{},instances:new Map},g_=g.createContext(h_),us=()=>g.useContext(g_),Mae=({children:e,apps:t,actions:n,data:r,navigation:i})=>{const[o,a]=g.useState({...h_}),l=new e8,c=g.useRef(new Map),d=g.useRef(new Map),f=g.useRef(new Map),m=g.useRef(r);m.current=r;const v=g.useRef(i);v.current=i;const b=E=>{try{const O=v.current.resolveUrl?.({id:E,path:""});if(!O)return;const z=new URL(O,window.location.origin);return z.search="",z.hash="",z.href}catch{return}},y=E=>{const O=b(f.current.get(E)??E);return{...m.current,...O?{shellBaseUrl:O}:{}}},S=(E,O,z,_,I,A)=>{f.current.set(E,_??E);const N=new URL(O).searchParams.get(tae)??void 0,D=new e8({origin:O,targetFrames:[z],channel:rae({basePath:A,channel:N})});D.on($n.SET_CONFIG,H=>{const{config:B}=H;a(F=>({...F,configs:new Map(F.configs.set(E,B)),instances:new Map(F.instances).set(E,{id:E,basePath:A||"",config:B,iframe:z,bus:D})})),D.emit($n.SET_DATA,y(E)),D.emit($n.SET_APP_ID,{appId:E}),typeof I<"u"&&D.emit($n.SET_MODAL_CONTEXT,I)});const L=new e8({origin:O,targetFrames:[z]}),q=()=>{n?.closeRichModal?.(E),D.teardown(),L.teardown(),d.current.delete(E),c.current.delete(E),f.current.delete(E)};L.on($n.SET_CONFIG,H=>{D.teardown(),d.current.set(E,L);const{config:B}=H;a(F=>({...F,configs:new Map(F.configs.set(E,B)),instances:new Map(F.instances).set(E,{id:E,basePath:A||"",config:B,iframe:z,bus:L})})),L.emit($n.SET_DATA,y(E)),L.emit($n.SET_APP_ID,{appId:E}),typeof I<"u"&&L.emit($n.SET_MODAL_CONTEXT,I),L.on($n.INVOKE_ACTION,(F,T)=>{const{actionKey:j,args:G}=F;if(n&&n.actions[j])try{Promise.resolve(n.actions[j](...G)).then(k=>T({success:!0,result:k})).catch(k=>{const P=k instanceof Error?k.message:"An error occurred";T({success:!1,error:P})})}catch(k){const P=k instanceof Error?k.message:"An error occurred";T({success:!1,error:P})}else T({success:!1,error:"Action not found"})}),L.on($n.INVOKE_DEFAULT_ACTION,(F,T)=>{if(!n)return;const{actionKey:j,args:G}=F,{showConfirmationDialog:k,showErrorMessage:P,showModalDialog:U,showToast:V,showRichModal:R}=n;if(j===q1.showConfirmationDialog){try{const[X,Y]=[...G],Q=k?.(X,Y,ie=>L.emit($n.ACTION_CONFIRMED,{data:ie}),()=>L.emit($n.ACTION_CANCELED));T?.({success:!0,result:Q})}catch(X){const Y=X instanceof Error?X.message:"An error occurred";T?.({success:!1,error:Y})}return}if(j===q1.showErrorMessage){const[X,Y]=[...G];try{const Q=P?.(X,Y);T?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";T?.({success:!1,error:ie})}return}if(j===q1.showModalDialog){const[X,Y]=[...G];try{const Q=U?.(X,Y);T?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";T?.({success:!1,error:ie})}return}if(j===q1.showToast){const[X,Y]=[...G];try{const Q=V?.(X,Y);T?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";T?.({success:!1,error:ie})}return}if(j===q1.showRichModal){const[X,Y,Q,ie]=[...G],ee=window.crypto.randomUUID();try{const ce=R?.(ee,X,Y,Q,ie);T?.({success:!0,result:ce});const ye=`app-shell-iframe-modal-${ee}`,ue=n6(ye,O);c.current.set(ee,ue),S(ee,O,ue,E,Y),a(se=>({...se,frames:c,modals:se.modals?se.modals.set(ee,E):new Map([[ee,E]]),modalContext:se.modalContext?se.modalContext.set(ee,Y):new Map([[ee,Y]])}))}catch(ce){const ye=ce instanceof Error?ce.message:"An error occurred";T?.({success:!1,error:ye})}return}}),L.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{_&&q()}),L.on($n.NAVIGATE,F=>{const{navigate:T}=v.current,{path:j,external:G,newTab:k}=F;T&&(_&&!k&&q(),T({id:_||E,path:j,external:G,newTab:k}))}),console.group(`[AKINON - UI Protocol] Deprecated channel usage detected for extension id "${E}"`),console.warn("Please upgrade to the latest version of @akinon/app-client package."),console.error("This method of communication will be removed in future releases."),console.groupEnd()}),L.on($n.SET_HEIGHT,H=>{const{height:B,id:F}=H,T=document.getElementById(F);T&&(T.style.height=`${B}px`)}),D.on($n.SET_HEIGHT,H=>{const{height:B,id:F}=H,T=document.getElementById(F);T&&(T.style.height=`${B}px`)}),D.on($n.INVOKE_ACTION,(H,B)=>{const{actionKey:F,args:T}=H;if(n&&n.actions[F])try{Promise.resolve(n.actions[F](...T)).then(j=>B({success:!0,result:j})).catch(j=>{const G=j instanceof Error?j.message:"An error occurred";B({success:!1,error:G})})}catch(j){const G=j instanceof Error?j.message:"An error occurred";B({success:!1,error:G})}else B({success:!1,error:"Action not found"})}),D.on($n.INVOKE_DEFAULT_ACTION,(H,B)=>{if(!n)return;const{actionKey:F,args:T}=H,{showConfirmationDialog:j,showErrorMessage:G,showModalDialog:k,showToast:P,showRichModal:U,removeSearchParams:V,setSearchParams:R}=n;if(F===q1.showConfirmationDialog){try{const[X,Y]=[...T],Q=j?.(X,Y,ie=>D.emit($n.ACTION_CONFIRMED,{data:ie}),()=>D.emit($n.ACTION_CANCELED));B?.({success:!0,result:Q})}catch(X){const Y=X instanceof Error?X.message:"An error occurred";B?.({success:!1,error:Y})}return}if(F===q1.showErrorMessage){const[X,Y]=[...T];try{const Q=G?.(X,Y);B?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";B?.({success:!1,error:ie})}return}if(F===q1.showModalDialog){const[X,Y]=[...T];try{const Q=k?.(X,Y);B?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";B?.({success:!1,error:ie})}return}if(F===q1.showToast){const[X,Y]=[...T];try{const Q=P?.(X,Y);B?.({success:!0,result:Q})}catch(Q){const ie=Q instanceof Error?Q.message:"An error occurred";B?.({success:!1,error:ie})}return}if(F===q1.showRichModal){const[X,Y,Q,ie]=[...T],ee=window.crypto.randomUUID();try{const ce=U?.(ee,X,Y,Q,ie);B?.({success:!0,result:ce});const ye=`app-shell-iframe-modal-${ee}`,ue=n6(ye,O);c.current.set(ee,ue),S(ee,O,ue,E,Y,A),a(se=>({...se,frames:c,modals:se.modals?se.modals.set(ee,E):new Map([[ee,E]]),modalContext:se.modalContext?se.modalContext.set(ee,Y):new Map([[ee,Y]])}))}catch(ce){const ye=ce instanceof Error?ce.message:"An error occurred";B?.({success:!1,error:ye})}return}if(F===q1.removeSearchParams){const[X]=[...T];try{const Y=V?.(X);B?.({success:!0,result:Y})}catch(Y){const Q=Y instanceof Error?Y.message:"An error occurred";B?.({success:!1,error:Q})}return}if(F===q1.setSearchParams){const[X]=[...T];try{const Y=R?.(X);B?.({success:!0,result:Y})}catch(Y){const Q=Y instanceof Error?Y.message:"An error occurred";B?.({success:!1,error:Q})}return}}),D.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{_&&q()}),D.on($n.NAVIGATE,H=>{const{navigate:B}=v.current,{path:F,external:T,newTab:j}=H;B&&(_&&!j&&q(),B({id:_||E,path:oae({basePath:A,path:F,external:T}),external:T,newTab:j}))}),d.current.set(E,D),a(H=>({...H,buses:d,confirmAction:B=>{d.current.get(E)?.emit($n.ACTION_CONFIRMED,{data:B})},cancelAction:()=>{d.current.get(E)?.emit($n.ACTION_CANCELED)}}))};g.useEffect(()=>(t.filter(z=>z.type==="full_page").forEach(z=>{const _=`app-shell-iframe-fullpage-${z.id}`,I=n6(_,z.url),A=z.subSlug??new URL(z.url).pathname;c.current.set(z.id,I),a(N=>({...N,frames:c})),S(z.id,z.url,I,void 0,void 0,A)}),t.filter(z=>z.type==="plugin").forEach(z=>{const _=`app-shell-iframe-plugin-${z.id}`,I=n6(_,z.url,z.subSlug),A=z.subSlug??new URL(z.url).pathname;c.current.set(z.id,I),a(N=>({...N,frames:c})),S(z.id,z.url,I,void 0,void 0,A)}),()=>{d.current.forEach(z=>z.teardown()),c.current.forEach(z=>z.remove()),d.current.clear(),c.current.clear(),f.current.clear(),a(z=>({...z,instances:new Map}))}),[t?.length]),g.useEffect(()=>{a(E=>({...E,data:r})),r&&d.current&&d.current.forEach((E,O)=>{E.emit($n.SET_DATA,y(O))})},[r]);const x=g.useCallback(({path:E,id:O})=>{O?d.current.get(O)?.emit($n.NAVIGATE_CHILD,{path:E}):l.emit($n.NAVIGATE_CHILD,{path:E})},[]),M=g.useCallback(E=>{d.current.forEach(O=>{O.emit($n.LOCALE_CHANGED,{locale:E})})},[]),w=g.useMemo(()=>({...o,apps:t,navigate:x,updateLocale:M}),[o,t]);return ge.jsx(g_.Provider,{value:w,children:e})},wae=({id:e,path:t})=>{const n=`app-shell-fullpage-container-${e}`,{frames:r,navigate:i}=us();return g.useEffect(()=>{if(r?.current.has(e)){const o=r.current.get(e),a=document.getElementById(n),l=new URL(o.src).origin;t?o.src=`${l}${t}`:o.src=l;const c={display:"block",width:"100%",height:"100%",border:"none"};Object.assign(o.style,c),a&&(a.innerHTML="",a.appendChild(o))}},[e,r?.current.has(e)]),g.useEffect(()=>{t&&i({path:t,id:e})},[t]),ge.jsx("div",{id:n,className:"app-shell-fullpage-container"})},zae=({placeholderId:e,params:t})=>{const{apps:n,configs:r,frames:i,buses:o}=us(),a=Math.random().toString(16).slice(2),l=Array.from(r.keys()).filter(b=>{const y=r.get(b);return typeof y.placeholderId=="string"?y?.placeholderId===e:y?.placeholderId?.includes(e)}),c=n.filter(b=>l.includes(b.id)),d=c[0];if(!d)return null;c.length>1&&console.warn(`PluginRenderer: Found multiple plugins with placeholderId: ${e}`);const f=`app-shell-plugin-container-${a}`,m=`app-shell-plugin-iframe-${a}`,v=o?.current.get(d.id);return g.useEffect(()=>{(async()=>{const y=i?.current.get(d.id);if(y){const S=document.getElementById(f),x=document.createElement("iframe");if(x.id=m,x.name=m,t){const w=await PC(t);x.src=`${y.src}?c=${w}`}else x.src=y.src;const M={background:"transparent",display:"block",width:"100%",border:"none"};Object.assign(x.style,M),S&&S.appendChild(x),x.onload=async()=>{if(v?.addTargetFrame(x),t){const w=await PC(t);v?.target({channel:w}).emit($n.SET_PARAMS,t)}}}})()},[e,i]),g.useEffect(()=>{(async()=>{if(t){const S=document.querySelector(`#${f} iframe`)?.src.split("?")[1]?.split("=")[1];v?.target({channel:S}).emit($n.SET_PARAMS,t)}})()},[t]),ge.jsx("div",{id:f,className:"app-shell-plugin-container"})},$ae={en:{locale:"en",isoLocale:"en-us",name:"English"},tr:{locale:"tr",isoLocale:"tr-tr",name:"Türkçe"}},Eae=({currentLocale:e,locales:t,onLocaleChange:n})=>{const r=o=>()=>{n(o)},i=g.useMemo(()=>Object.keys(t).map(o=>({key:`locale-${o}`,label:t[o].name,onClick:r(o)})),[t]);return ge.jsx("div",{className:"header-locale",children:ge.jsx(Xre,{menu:{items:i},trigger:["click"],placement:"bottomRight",arrow:!0,children:ge.jsx(vf,{type:"text",className:"flex items-center",children:t[e]?.name??e})})})},Oae=()=>"1.7.4",_ae=({onToggleLeftSider:e,onToggleRightSider:t})=>{const{i18n:n}=S5(),{updateLocale:r}=us(),[,i]=g1e(oM,null,{raw:!0}),o=a=>{n.changeLanguage(a),tM.setLocale(a),i(a),r(a)};return g.useEffect(()=>{r(n.language)},[r,n.language]),ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{className:"flex items-center",children:ge.jsx(vf,{type:"text",icon:"outdent",iconSize:16,onClick:e,className:"mr-2"})}),ge.jsx("div",{children:ge.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ge.jsx("span",{style:{width:"10px",height:"10px",backgroundColor:"green",borderRadius:"50%"}}),ge.jsxs("span",{style:{fontSize:"14px",color:"#999"},children:["Akinon UI Shell (v",Oae(),")"]})]})}),ge.jsxs("div",{className:"flex items-center",children:[ge.jsx(Eae,{currentLocale:n.language,locales:$ae,onLocaleChange:o}),ge.jsx(vf,{type:"text",icon:"siralama",iconSize:16,onClick:t,className:"mr-2"})]})]})};function ZC(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e[t]=="string")return e[t];const n=e;if(n){if(typeof n.en=="string")return n.en;if(typeof n.tr=="string")return n.tr}return""}function Iae(e){return e?e.startsWith("/")?e:`/${e}`:"/"}const Rae=e=>[{key:"/",label:e("navbar.dashboard"),icon:"dashboard"},{key:"/products-and-catalogs",label:e("navbar.products_and_catalogs"),icon:"fiyatlistesi",disabled:!0},{key:"/orders",label:e("navbar.orders"),icon:"siparis",disabled:!0}],Tae=e=>[{key:"/placeholder-2",label:e("navbar.help_and_support"),icon:"bilgilendirme_servis",disabled:!0},{key:"/placeholder-1",label:e("navbar.settings"),icon:"ayarlar",disabled:!0}],Pae=(e,t)=>e.filter(n=>n.type==="full_page").map(n=>{const i=t.get(n.id)?.menu?.map(o=>{const{child:a,path:l,label:c}=o||{};if(a||!l)return!1;const d=Iae(l);return{key:`/external/${n.slug}${d}`,label:ZC(c,"en")||void 0,icon:"eksi"}}).filter(Boolean);return{key:`/external/${n.slug}`,label:ZC(n.name,"en")||n.name,icon:"stoklistesi",children:i}}),Aae=(e,t)=>e.some(r=>r.type==="plugin")?[{key:"/plugin-test",label:t("navbar.plugin_test"),icon:"box"}]:[],Nae=()=>{const{apps:e,configs:t}=us(),{t:n}=S5(),r=x3(),i=C4(),[o,a]=g.useState("/"),[l,c]=g.useState([]),d=Rae(n),f=Tae(n),m=Pae(e,t),v=Aae(e,n),b=g.useMemo(()=>[...d,...m,...v,...f],[d,m,v,f]),{allItemKeys:y,childToParentKey:S}=g.useMemo(()=>{function E(_){if(!_)return[];const I=[];return _.forEach(A=>{"key"in A&&A.key&&I.push(A.key),"children"in A&&A.children&&A.children.forEach(N=>{"key"in N&&N.key&&I.push(N.key)})}),I}const O=E(b),z=new Map;return m.forEach(_=>{"children"in _&&_.children&&_.children.forEach(I=>{"key"in I&&I.key&&"key"in _&&_.key&&z.set(I.key,_.key)})}),{allItemKeys:O,childToParentKey:z}},[b,m]),x=g.useMemo(()=>{const E=new Set;return m.forEach(O=>{"key"in O&&O.key&&"children"in O&&Array.isArray(O.children)&&O.children.length>0&&E.add(O.key)}),E},[m]);g.useEffect(()=>{const E=r.pathname,O=y.filter(_=>typeof _=="string"&&E.startsWith(_)).sort((_,I)=>I.length-_.length)[0];O&&a(O);const z=O?S.get(O):void 0;z?c([z]):m.some(_=>{const I="key"in _&&_.key===O,A="children"in _&&Array.isArray(_.children)&&_.children.length>0;return I&&A})&&c([O])},[r,y,S,m]);const M=E=>{const O=E.key;if(x.has(O)){c(_=>_.includes(O)?[]:[O]),a(O);return}const z=S.get(O);z&&c([z]),O.includes("external")||c([]),i(O)},w=E=>{if(E.length===0){c([]);return}c([E[E.length-1]])};return ge.jsx("div",{children:ge.jsx(f1e,{mode:"inline",selectedKeys:[o],items:b,onClick:M,triggerSubMenuAction:"click",theme:"dark",openKeys:l,onOpenChange:w})})},Dae=({children:e})=>{const[t,n]=g.useState(!1),[r,i]=g.useState(!0),o=()=>n(!t),a=()=>i(!r);return ge.jsxs(t2,{children:[ge.jsx(t2.Sider,{collapsed:t,brandImageUrl:"/logo.png",iconUrl:"/symbol.png",children:ge.jsx(Nae,{})}),ge.jsxs(t2,{children:[ge.jsx(t2.Header,{children:ge.jsx(_ae,{onToggleLeftSider:o,onToggleRightSider:a})}),ge.jsx(t2.Content,{children:e})]}),ge.jsx(t2.Sider,{collapsed:r,collapsedWidth:0,position:"right",children:ge.jsxs(_f,{className:"log-messages",children:[ge.jsxs("div",{className:"log-messages-item",children:[ge.jsx(H0,{type:"success",children:"Development server running"}),ge.jsx(H0,{children:new Date().toLocaleTimeString()})]}),ge.jsxs("div",{className:"log-messages-item",children:[ge.jsx(H0,{children:"Shell environment active"}),ge.jsx(H0,{children:"Ready for testing"})]})]})})]})},jae=({config:e,children:t})=>{const[n,r]=V9.useNotification(),[i]=eae(),o=C4(),{i18n:a}=S5(),l=e.apps.map((y,S)=>({id:S+1,url:y.url,slug:y.name.toLowerCase().replace(/\s+/g,"-"),path:"",type:y.type,name:y.navTitle||y.name})),c=({id:y,path:S,external:x})=>{const M=l.find(w=>w.id===y);if(M)return x?S:`/external/${M.slug}${S||""}`},d={navigate:y=>{const S=c(y);if(S!==void 0){if(y.newTab){const x=new URL(S,window.location.origin);if(x.protocol!=="http:"&&x.protocol!=="https:")return;window.open(x.href,"_blank","noopener,noreferrer");return}o(S)}},resolveUrl:y=>{const S=c(y);if(S!==void 0)return new URL(S,window.location.origin).href}},f={lng:a.language,username:"Developer",searchParams:Object.fromEntries([...i]),...e.data||{}},b={...{showModalDialog:()=>{},showToast:(y,S)=>{S==="loading"||S==="destroy"||n[S]({message:y,placement:"top"})},showErrorMessage:(y,S)=>{n.error({message:y,description:S,placement:"top"})},showRichModal:()=>{}},actions:{...{reloadPage:()=>window.location.reload(),logMessage:y=>{try{const S=JSON.parse(localStorage.getItem("logMessages")||"[]");localStorage.setItem("logMessages",JSON.stringify([...S,y]))}catch{console.error("Failed to log message")}}}}};return ge.jsxs(Mae,{apps:l,navigation:d,data:f,actions:b,children:[t,r]})},m_=({children:e})=>ge.jsx("div",{className:"px-8 py-8",children:e}),Lae=({title:e,description:t,actions:n,className:r})=>ge.jsxs(o1e,{justify:"space-between",align:"flex-start",className:r,style:{padding:"18px 30px",borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ge.jsxs(_f,{direction:"vertical",size:4,children:[ge.jsx(GZ,{level:4,style:{margin:0},children:e}),t&&ge.jsx(qZ,{type:"secondary",children:t})]}),n&&ge.jsx(_f,{children:n})]}),Bae=({data:e})=>{const t={...e};return delete t.lng,delete t.username,delete t.searchParams,ge.jsx("pre",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"16px",borderRadius:"6px",border:"1px solid #424b6b",fontSize:"13px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace',lineHeight:"1.5",overflow:"auto",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Object.keys(t).length>0?JSON.stringify(t,null,2):`// No custom data configured in shell.config.js
|
|
438
|
+
// Add data to the "data" field to share it with your application`})},Hae=()=>{const{apps:e}=us(),t=window.__SHELL_CONFIG__||{},n=t.data;return ge.jsxs("div",{children:[ge.jsx(k0,{title:"Applications Configuration",className:"mb-8",children:e.length===0?ge.jsx("p",{style:{color:"#999"},children:"No applications configured"}):ge.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[e.map((r,i)=>ge.jsxs("div",{style:{borderBottom:i<e.length-1?"1px solid #e0e0e0":"none",paddingBottom:i<e.length-1?"20px":"0"},children:[ge.jsxs("h4",{style:{margin:"0 0 16px 0"},children:[r.name," ",e.length>1&&`(App ${i+1})`]}),ge.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[ge.jsxs("div",{children:[ge.jsx("strong",{children:"Application Type:"}),ge.jsx("p",{style:{margin:"12px 0 4px 0"},children:ge.jsx(roe,{color:r.type==="full_page"?"blue":"green",children:r.type==="full_page"?"Full Page":"Plugin"})})]}),ge.jsxs("div",{children:[ge.jsx("strong",{children:"Development URL:"}),ge.jsx("p",{style:{margin:"12px 0 4px 0",color:"#999",fontFamily:"monospace",fontSize:"13px"},children:r.url})]})]})]},r.id)),ge.jsxs("div",{style:{marginTop:"10px"},children:[ge.jsx("strong",{children:"Shell Theme:"}),ge.jsx("p",{style:{margin:"12px 0 4px 0",color:"#999"},children:t?.shell?.theme})]})]})}),ge.jsx(k0,{title:"Shared Data",className:"mb-8",children:n&&ge.jsx(Bae,{data:n})}),ge.jsx(k0,{title:"Development Instructions",className:"mb-8",children:ge.jsxs("div",{style:{lineHeight:"1.6"},children:[ge.jsx("h4",{style:{margin:"0 0 8px 0"},children:"Getting Started:"}),ge.jsxs("ol",{style:{paddingLeft:"20px"},children:[ge.jsxs("li",{children:["Make sure your application",e.length>1?"s are":" is"," ","running at"," ",ge.jsx("code",{children:e.length>0?e[0].url:"http://localhost:4001"}),e.length>1&&ge.jsxs(ge.Fragment,{children:[" and ",e.slice(1).map((r,i)=>ge.jsxs("span",{children:[i>0&&", ",ge.jsx("code",{children:r.url})]},r.id))]})]}),ge.jsx("li",{children:'Click "Launch Application" to load your app in the shell environment'}),e.some(r=>r.type==="plugin")&&ge.jsx("li",{children:'Use "Test Plugin Integration" to test your plugin in different placeholder configurations'}),ge.jsx("li",{children:"The shell provides a realistic integration environment for testing"})]}),ge.jsx(Gre,{}),ge.jsxs("h4",{style:{margin:"16px 0 8px 0"},children:["Application Types:"," ",e.map((r,i)=>ge.jsxs("span",{children:[i>0&&", ",r.type==="full_page"?"Full Page":"Plugin"]},r.id))]}),e.some(r=>r.type==="full_page")&&ge.jsx("p",{style:{margin:0,color:"#666"},children:"Full page applications render as complete pages within the shell environment, providing full control over the content area and routing."}),e.some(r=>r.type==="plugin")&&ge.jsx("p",{style:{margin:"8px 0 0 0",color:"#666"},children:"Plugin applications render within designated placeholders in the host application, providing component-level integration capabilities."})]})}),ge.jsx(k0,{title:"Component Usage",children:ge.jsxs("div",{style:{lineHeight:"1.6"},children:[ge.jsx("h4",{style:{margin:"0 0 8px 0"},children:"@akinon/ui-* Components:"}),ge.jsx("p",{style:{margin:"0 0 16px 0",color:"#999"},children:"This shell environment includes all Akinon UI components. You can use them in your application by importing from the respective packages."}),ge.jsx("pre",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"16px",borderRadius:"6px",border:"1px solid #424b6b",fontSize:"13px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace',lineHeight:"1.5",overflow:"auto",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:`// Import components from @akinon/ui-react (main package)
|
|
435
439
|
import { Button, Card, Input, Modal } from '@akinon/ui-react';
|
|
436
440
|
|
|
437
441
|
// Or import from specific packages
|
|
@@ -448,4 +452,4 @@ function MyComponent() {
|
|
|
448
452
|
<Button type="primary">Submit</Button>
|
|
449
453
|
</Card>
|
|
450
454
|
);
|
|
451
|
-
}`}),ge.jsx("h3",{style:{margin:"16px 0 8px 0"},children:"Available Components:"}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Data Display"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Avatar",pkg:"@akinon/ui-avatar"},{name:"Badge",pkg:"@akinon/ui-badge"},{name:"Carousel",pkg:"@akinon/ui-carousel"},{name:"Image",pkg:"@akinon/ui-image"},{name:"List",pkg:"@akinon/ui-list"},{name:"Popover",pkg:"@akinon/ui-popover"},{name:"Table",pkg:"@akinon/ui-table"},{name:"Tag",pkg:"@akinon/ui-tag"},{name:"Tooltip",pkg:"@akinon/ui-tooltip"},{name:"Tree",pkg:"@akinon/ui-tree"},{name:"Typography",pkg:"@akinon/ui-typography"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Feedback"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Alert",pkg:"@akinon/ui-alert"},{name:"Drawer",pkg:"@akinon/ui-drawer"},{name:"Message",pkg:"@akinon/ui-message"},{name:"Modal",pkg:"@akinon/ui-modal"},{name:"Notification",pkg:"@akinon/ui-notification"},{name:"Progress",pkg:"@akinon/ui-progress"},{name:"Result",pkg:"@akinon/ui-result"},{name:"Skeleton",pkg:"@akinon/ui-skeleton"},{name:"Spin",pkg:"@akinon/ui-spin"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Form"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"AutoComplete",pkg:"@akinon/ui-auto-complete"},{name:"Button",pkg:"@akinon/ui-button"},{name:"Checkbox",pkg:"@akinon/ui-checkbox"},{name:"ColorPicker",pkg:"@akinon/ui-color-picker"},{name:"DatePicker",pkg:"@akinon/ui-date-picker"},{name:"Input",pkg:"@akinon/ui-input"},{name:"InputNumber",pkg:"@akinon/ui-input-number"},{name:"Radio",pkg:"@akinon/ui-radio"},{name:"Select",pkg:"@akinon/ui-select"},{name:"Slider",pkg:"@akinon/ui-slider"},{name:"Switch",pkg:"@akinon/ui-switch"},{name:"TimePicker",pkg:"@akinon/ui-time-picker"},{name:"Transfer",pkg:"@akinon/ui-transfer"},{name:"TreeSelect",pkg:"@akinon/ui-tree-select"},{name:"Upload",pkg:"@akinon/ui-upload"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Layout"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Card",pkg:"@akinon/ui-card"},{name:"Collapse",pkg:"@akinon/ui-collapse"},{name:"Divider",pkg:"@akinon/ui-divider"},{name:"Layout",pkg:"@akinon/ui-layout"},{name:"Space",pkg:"@akinon/ui-space"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Navigation"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Breadcrumb",pkg:"@akinon/ui-breadcrumb"},{name:"Dropdown",pkg:"@akinon/ui-dropdown"},{name:"Menu",pkg:"@akinon/ui-menu"},{name:"Pagination",pkg:"@akinon/ui-pagination"},{name:"Segmented",pkg:"@akinon/ui-segmented"},{name:"Steps",pkg:"@akinon/ui-steps"},{name:"Tour",pkg:"@akinon/ui-tour"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsxs("p",{style:{margin:"0",color:"#999",fontSize:"14px"},children:[ge.jsx("strong",{children:"Note:"})," All components follow Ant Design API conventions with Akinon-specific styling and theming. Check the Storybook documentation for detailed usage examples and props."]})]})})]})},
|
|
455
|
+
}`}),ge.jsx("h3",{style:{margin:"16px 0 8px 0"},children:"Available Components:"}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Data Display"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Avatar",pkg:"@akinon/ui-avatar"},{name:"Badge",pkg:"@akinon/ui-badge"},{name:"Carousel",pkg:"@akinon/ui-carousel"},{name:"Image",pkg:"@akinon/ui-image"},{name:"List",pkg:"@akinon/ui-list"},{name:"Popover",pkg:"@akinon/ui-popover"},{name:"Table",pkg:"@akinon/ui-table"},{name:"Tag",pkg:"@akinon/ui-tag"},{name:"Tooltip",pkg:"@akinon/ui-tooltip"},{name:"Tree",pkg:"@akinon/ui-tree"},{name:"Typography",pkg:"@akinon/ui-typography"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Feedback"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Alert",pkg:"@akinon/ui-alert"},{name:"Drawer",pkg:"@akinon/ui-drawer"},{name:"Message",pkg:"@akinon/ui-message"},{name:"Modal",pkg:"@akinon/ui-modal"},{name:"Notification",pkg:"@akinon/ui-notification"},{name:"Progress",pkg:"@akinon/ui-progress"},{name:"Result",pkg:"@akinon/ui-result"},{name:"Skeleton",pkg:"@akinon/ui-skeleton"},{name:"Spin",pkg:"@akinon/ui-spin"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Form"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"AutoComplete",pkg:"@akinon/ui-auto-complete"},{name:"Button",pkg:"@akinon/ui-button"},{name:"Checkbox",pkg:"@akinon/ui-checkbox"},{name:"ColorPicker",pkg:"@akinon/ui-color-picker"},{name:"DatePicker",pkg:"@akinon/ui-date-picker"},{name:"Input",pkg:"@akinon/ui-input"},{name:"InputNumber",pkg:"@akinon/ui-input-number"},{name:"Radio",pkg:"@akinon/ui-radio"},{name:"Select",pkg:"@akinon/ui-select"},{name:"Slider",pkg:"@akinon/ui-slider"},{name:"Switch",pkg:"@akinon/ui-switch"},{name:"TimePicker",pkg:"@akinon/ui-time-picker"},{name:"Transfer",pkg:"@akinon/ui-transfer"},{name:"TreeSelect",pkg:"@akinon/ui-tree-select"},{name:"Upload",pkg:"@akinon/ui-upload"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Layout"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Card",pkg:"@akinon/ui-card"},{name:"Collapse",pkg:"@akinon/ui-collapse"},{name:"Divider",pkg:"@akinon/ui-divider"},{name:"Layout",pkg:"@akinon/ui-layout"},{name:"Space",pkg:"@akinon/ui-space"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Navigation"}),ge.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Breadcrumb",pkg:"@akinon/ui-breadcrumb"},{name:"Dropdown",pkg:"@akinon/ui-dropdown"},{name:"Menu",pkg:"@akinon/ui-menu"},{name:"Pagination",pkg:"@akinon/ui-pagination"},{name:"Segmented",pkg:"@akinon/ui-segmented"},{name:"Steps",pkg:"@akinon/ui-steps"},{name:"Tour",pkg:"@akinon/ui-tour"}].map((r,i,o)=>ge.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:i<o.length-1?"1px solid #4c5679":"none"},children:[ge.jsx("span",{children:r.name}),ge.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ge.jsxs("p",{style:{margin:"0",color:"#999",fontSize:"14px"},children:[ge.jsx("strong",{children:"Note:"})," All components follow Ant Design API conventions with Akinon-specific styling and theming. Check the Storybook documentation for detailed usage examples and props."]})]})})]})},kae=()=>{const{t:e}=S5();return ge.jsxs("div",{className:"page-dashboard",children:[ge.jsx("div",{className:"page-heading-container",children:ge.jsx(Lae,{title:e("dashboard.title"),description:e("dashboard.description")})}),ge.jsx("div",{className:"page-content-container",children:ge.jsx(m_,{children:ge.jsx(Hae,{})})})]})},JC=({id:e,path:t})=>{const n=x3(),r=t??"",i=r&&!r.startsWith("/")?`/${r}`:r,o=n.pathname,a=o.indexOf(i),l=a>=0?o.slice(a+i.length):"",c=`${i}${l}`||void 0,d=c?`${c}${n.search??""}${n.hash??""}`:void 0;return ge.jsx("div",{className:"page-plugin-external",children:ge.jsx(wae,{id:e,path:d})})},Fae=()=>{const e=C4(),{apps:t,configs:n}=us(),r=o=>{let a=null;if(Array.from(n.entries()).forEach(([d,f])=>{if("placeholderId"in f&&f.placeholderId===o){a=d;return}}),a===null)return"";const{url:l,subSlug:c}=t.find(({id:d})=>d===a)||{};return l?`[ ${l}${c??""} ]`:""},i=[];return Array.from(n.entries()).forEach(([,o])=>{"placeholderId"in o&&i.push(o.placeholderId)}),ge.jsxs("div",{className:"page-plugin-basic",children:[ge.jsx(tJ,{items:[{onClick:()=>e("/"),title:"Dashboard"},{title:"Plugin Test"}]}),ge.jsx("div",{className:"page-heading-container",children:ge.jsx(c1e,{title:"Plugin Test"})}),ge.jsx("div",{className:"page-content-container",children:ge.jsx(m_,{children:i.length>0?ge.jsx(a1e,{gutter:[20,20],children:i.map(o=>ge.jsx(s1e,{span:12,children:ge.jsx("div",{className:"plugin-placeholder","data-title":`${o} ${r(o)}`,children:ge.jsx(zae,{placeholderId:o})})},o))}):ge.jsxs("div",{style:{textAlign:"center",padding:"48px",border:"1px dashed #d9d9d9",borderRadius:"8px"},children:[ge.jsx("h2",{children:"No Plugin Configurations Found"}),ge.jsxs("p",{children:["No plugin applications with placeholder configurations were found. ",ge.jsx("br",{})," Make sure your shell configuration includes plugin apps with placeholder IDs."]})]})})})]})},Vae=()=>ge.jsx(Fae,{}),Wae=()=>{const{apps:e,configs:t}=us(),n=e.filter(r=>r.type==="full_page");return ge.jsxs(Yoe,{children:[n.map(r=>ge.jsxs(r2,{path:`/external/${r.slug}`,children:[ge.jsx(r2,{index:!0,element:ge.jsx(JC,{id:r.id,path:r.path})}),t.get(r.id)?.menu?.map(i=>i.path!=="/"&&ge.jsx(r2,{path:`/external/${r.slug}${i.path}/*`,element:ge.jsx(JC,{id:r.id,path:r.subSlug?`${r.subSlug}${i.path}`:i.path})},i.path))]},r.id)),ge.jsx(r2,{path:"/plugin-test",element:ge.jsx(Vae,{})}),ge.jsx(r2,{path:"/",element:ge.jsx(kae,{})})]})},Uae=({config:e})=>ge.jsx(Joe,{children:ge.jsx(v1e,{children:ge.jsx(jae,{config:e,children:ge.jsx(Dae,{children:ge.jsx(Wae,{})})})})}),v_=localStorage.getItem(oM)||"en";kr.changeLanguage(v_);tM.setLocale(v_);const qae=window.__SHELL_CONFIG__||{apps:[{url:"http://localhost:4001",path:"./src",name:"Development App",type:"full_page"}],shell:{port:4e3,theme:"omnitron",title:"Development Shell"},sidebar:{items:[]}};YT.createRoot(document.getElementById("root")).render(ge.jsx(ae.StrictMode,{children:ge.jsx(Uae,{config:qae})}));export{Gae as c,Ai as g};
|